PageSourceSearch

https://www.ultimate-guitar.com/static/public/build/ug_react_i18n_…/5972.7cf167453ba7688bc1c47b64a050379b.js

js ultimate-guitar.com collected 2026-09-24 08:41:06 UTC 247,964 bytes, 3 lines download raw bytes

1/*! For license information please see 5972.911d4a5d394e7ff72bfbb6c4b79735da.js.LICENSE.txt */
2(self.webpackChunkug_react_i18n_es6=self.webpackChunkug_react_i18n_es6||[]).push([[5972,4393,8175],{27683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.jc9gB{width:100px}.is_sticky_player.preview{overflow:hidden}.tpp-b-player:not(.is_sticky_player) .jc9gB{overflow-y:auto}.B_8Qd{background:#f8f8f8}.F0Thp{padding-bottom:70px}.tpp-aside.expanded ~ .tpp-b-main .B_8Qd{padding-left:40px}.tpp-b-player{font-family:Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif}.tpp-b-player .control-txt__tuning{display:none}.control-btn__bt{display:none!important}.is_sticky_player .tpp-flex-main{height:auto;min-height:600px}.active-onboarding .is_sticky_player section{z-index:12}.tpp-b-overlay{opacity:0;transition:.2s ease-in-out}.pro--play-tooltip{background-color:#ffc600;border-radius:2px;color:#212121;display:inline-block;font-size:12px;font-weight:400;left:-64px;line-height:16px;padding:10px 16px;position:absolute;top:-37px;width:196px;z-index:5}.pro--play-tooltip-close{color:#212121;font-size:20px;font-weight:300;opacity:.7;position:absolute;right:12px;top:8px}.pro--play-tooltip-close:hover{opacity:1}.pro--play-tooltip:after{border-left:7px solid transparent;border-right:7px solid transparent;border-top:5px solid #ffc600;bottom:-5px;content:"";left:93px;margin-left:-7px;position:absolute}.pro--pro-info{color:#212121;font-family:Open Sans,Roboto,Helvetica neue,Helvetica,sans-serif;font-size:12px;font-weight:400;margin-left:12px}.pro--pro-info__fixed{background:#fff;left:0;line-height:30px;position:absolute;top:0;z-index:1}.pro--pro-info-pro-access{color:#ff5d55;cursor:pointer;font-weight:600}.pro--pro-info-pro-access:hover{-webkit-text-decoration:underline;text-decoration:underline}.s09n5{width:974px}._5z8xU{width:1095px}.mSrSk{margin:12px auto 0;width:320px}._3zON1{background:#fff}.p71qd{background:#fff;left:36px;position:absolute;right:0;top:40px}.dlx6S{background:#fff;left:18px;overflow:hidden;position:absolute;right:0;top:100px}.Nf03J img{width:100%}._2ubPd{display:block;height:431px}._08MeK svg{display:block;width:100%}.iN5Oh > div > div > div{color:#00ba3b}',""]),r.locals={wrapper:"jc9gB",content:"B_8Qd",withExtraPadding:"F0Thp",criticalDesktop:"s09n5",criticalDesktopXTZ:"_5z8xU",criticalMobile:"mSrSk",criticalMobileWrapper:"_3zON1",criticalWrapper:"p71qd",criticalWrapperXTZ:"dlx6S",criticalImage:"Nf03J",criticalExternal:"_2ubPd",criticalInline:"_08MeK",soundProblemAlertBody:"iN5Oh"};const s=r},16772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".yzY8h{--list-columns:4;grid-gap:var(--ug-spacing-xs) 1px;display:grid;gap:var(--ug-spacing-xs) 1px;grid-template-columns:repeat(var(--list-columns),minmax(auto,1fr));overflow:hidden;width:calc(var(--ug-text-tab-aside-width) - var(--ug-spacing-xs) - 15px)}.yzY8h.fetEY{--list-columns:2}",""]),r.locals={container:"yzY8h",piano:"fetEY"};const s=r},90084:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.Cdqrp{display:flex}.Cdqrp[data-orientation="horizontal"]{flex-direction:column}.Cdqrp[data-orientation="horizontal"][data-reverse]{flex-direction:column-reverse}.Cdqrp[data-orientation="vertical"]{flex-direction:row}.Cdqrp[data-orientation="vertical"][data-reverse]{flex-direction:row-reverse}.BZf8j{cursor:pointer}.BZf8j:not([data-focused]){outline:none}.BZf8j[data-disabled]{cursor:not-allowed}.BZf8j[data-selected]{cursor:default}.uwqaM{flex-grow:1;overflow:scroll}',""]),r.locals={container:"Cdqrp",tab:"BZf8j",tabPanel:"uwqaM"};const s=r},32840:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.WdAQw{background:#f8f8f8;position:sticky;top:-1px;z-index:9}.WdAQw:before{background:#f8f8f8;bottom:0;content:"";left:-4px;position:absolute;top:0;width:4px}.WdAQw.nJJnK{top:51px}.WdAQw.hcz0G{top:60px}._0gRjB.WdAQw{background:#f8f8f8}.Nhpcz.WdAQw{background:#111}.Nhpcz.WdAQw:before{background:#111}.lnasI{padding-right:462px}.tpp-b-player ._0gRjB.WdAQw{background:#fff}.tpp-b-player .Nhpcz.WdAQw{background:#111}',""]),r.locals={fixed:"WdAQw",banner:"nJJnK",official:"hcz0G",light:"_0gRjB",dark:"Nhpcz",withStaticPlayerWhitespace:"lnasI"};const s=r},94692:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());
2r.push([e.id,".vmkgc{--icon-size:16px;--ug-button-color:var(--ug-color-text-primary);align-items:center;background-color:var(--ug-button-background-color,transparent);border-radius:var(--ug-border-radius-full);color:var(--ug-button-color);display:flex;gap:6px;padding:var(--ug-spacing-xs);position:relative}.vmkgc.vmkgc[data-pressed]{opacity:var(--ug-opacity-pressed)}.vmkgc[data-hovered]{--ug-button-color:var(--ug-color-text-secondary)}.GmwIA{height:20px;opacity:0;overflow:hidden;transition:opacity .15s ease,visibility .15s ease;visibility:hidden;width:0}.vmkgc[data-hovered] .GmwIA{opacity:1;visibility:visible;width:auto}",""]),r.locals={button:"vmkgc",text:"GmwIA"};const s=r},71331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".GsV1F{--field-border-color:transparent;align-items:center;border-radius:var(--ug-border-radius-full);box-shadow:inset 0 0 0 1px var(--field-border-color);display:flex;width:-moz-fit-content;width:fit-content}.GsV1F[data-focused]{--field-border-color:var(--ug-color-bg-inverse)}.GsV1F[data-collapsed]{background-color:var(--ug-color-bg-secondary);padding:10px}.GsV1F[data-collapsed][data-active]{border:1px solid var(--ug-color-icon-primary);padding:9px}.GsV1F[data-collapsed] .yk2b4{display:none}.GsV1F[data-collapsed] .KUdFj{display:block;text-align:center}.yk2b4{align-items:center;background-color:var(--ug-color-bg-primary);border-radius:var(--ug-border-radius-full);display:flex;gap:var(--ug-spacing-xxs);height:40px}.KUdFj{--icon-size:20px;display:none;height:var(--ug-spacing-l);width:var(--ug-spacing-l)}",""]),r.locals={container:"GsV1F",expanded:"yk2b4",collapsedLabel:"KUdFj"};const s=r},59554:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".NO38S{opacity:1}.JQHVg{opacity:1;transform:rotate(45deg)}.BnB-j.JQHVg path:last-child,.JQHVg path:last-child{fill:#f8f8f8}.fZTi5.JQHVg path:last-child{fill:#111}",""]),r.locals={pinActive:"NO38S",pinInactive:"JQHVg",light:"BnB-j",dark:"fZTi5"};const s=r},71900:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a),s=n(9838),l=r()(o());l.i(s.Z,"",!0),l.push([e.id,"._9m-RG{color:var(--ug-color-text-secondary)}",""]),l.locals={button:"_9m-RG "+s.Z.locals.button};const c=l},32805:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".oJZPK{position:relative}._7VGYm{align-items:center;backdrop-filter:blur(4px);background-color:color-mix(in srgb,var(--ug-color-bg-primary) 70%,transparent);cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:2}.U-4Lo{align-items:center;background-color:var(--ug-color-bg-inverse);border-radius:999px;color:var(--ug-color-text-inverse);display:flex;gap:var(--ug-spacing-xs);padding:var(--ug-spacing-xs) var(--ug-spacing-l)}",""]),r.locals={tabContentWrapper:"oJZPK",blurOverlay:"_7VGYm",overlayButton:"U-4Lo"};const s=r},84689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".quKxh{align-items:center;cursor:default;display:flex;flex-direction:column;position:relative;z-index:1}.R52Y5{height:20px;margin-bottom:var(--ug-spacing-xxs);text-align:center}._5N8DE{background:var(--ug-color-accent-yellow);border-radius:1px;display:inline-block;padding:0 .3em}.S-k9n{padding-bottom:var(--ug-spacing-l)}.S-k9n .R52Y5{margin-bottom:10px}.dfYau{margin:0 -6px;overflow:hidden;position:relative;width:91px}.S-k9n .-Bm3R{margin-top:7px}.S-k9n .dfYau{width:141px}.KCh87 .dfYau{width:71px}.gCVuj{display:flex;justify-content:center;transform:translateX(-33.333%);transition:none;width:300%}.gCVuj.Wbruz{transform:translateX(-66.666%);transition:.15s ease-in-out}.gCVuj.EDkCr{transform:translateX(0);transition:.15s ease-in-out}.gCVuj.lVVuu{opacity:.5}.p0gjt{position:relative}.K5Z10{align-items:flex-start;bottom:calc(var(--ug-spacing-xs)*-1);display:flex;justify-content:center;left:0;margin:0 calc(var(--ug-spacing-xl)*-1);position:absolute;right:0}.LM_KO{z-index:5}.UlSOI{margin:0 calc(var(--ug-spacing-xxs)*-1);padding:var(--ug-spacing-xxs) var(--ug-spacing-xs);position:relative;top:calc(var(--ug-spacing-xxs)*-1)}.zJQwh{padding-bottom:var(--ug-spacing-xxs)}.o-xLq{align-items:center;backdrop-filter:blur(4px);background-color:color-mix(in srgb,var(--ug-color-bg-primary) 70%,transparent);color:var(--ug-color-text-primary);cursor:pointer;display:flex;gap:var(--ug-spacing-xxs);
2height:100%;justify-content:center;left:-12px;position:absolute;top:-4px;white-space:nowrap;width:126%;z-index:4}.S-k9n .o-xLq{height:125%;top:-7px}@media print{.K5Z10{visibility:hidden}}",""]),r.locals={chord:"quKxh",header:"R52Y5",highlighted:"_5N8DE",pianoChord:"S-k9n",carousel:"dfYau",bottomButton:"-Bm3R",ukuleleChord:"KCh87",carouselSlider:"gCVuj",next:"Wbruz",prev:"EDkCr",loading:"lVVuu",carouselArea:"p0gjt",footer:"K5Z10",footerAboveOverlay:"LM_KO",button:"UlSOI",paging:"zJQwh",blurOverlay:"o-xLq"};const s=r},7471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.PO3k7{min-height:64px;position:relative}.PO3k7:hover{background-color:var(--ug-color-bg-island)}.PO3k7:hover .eY4ZO{background-color:var(--ug-color-bg-island)}.PO3k7._5jiIJ{background-color:var(--ug-color-bg-secondary)}.PO3k7._5jiIJ .eY4ZO{background-color:var(--ug-color-bg-secondary)}.PO3k7.v_P9R .eY4ZO{opacity:0;transition:opacity .06s ease,visibility 0s linear .06s;visibility:hidden}.PO3k7.v_P9R .M8i4O{opacity:1;transition:opacity .06s ease .06s,visibility 0s;visibility:visible}[data-theme="dark"] .PO3k7._5jiIJ{background-color:var(--ug-color-bg-tertiary)}[data-theme="dark"] .PO3k7._5jiIJ .eY4ZO{background-color:var(--ug-color-bg-tertiary)}.Xo02p{height:100%;left:0;outline:none;position:absolute;top:0;width:100%;z-index:1}.Xo02p[data-disabled]{cursor:default}.eY4ZO{grid-column-gap:var(--ug-spacing-s);-moz-column-gap:var(--ug-spacing-s);column-gap:var(--ug-spacing-s);display:grid;grid-template-columns:1fr auto;height:100%;min-height:inherit;opacity:1;padding:var(--ug-spacing-xs) var(--ug-spacing-l);pointer-events:none;transition:opacity .06s ease .06s,visibility 0s;z-index:2}.eY4ZO > *{pointer-events:auto}.eY4ZO._5jiIJ{background-color:var(--ug-color-bg-secondary)}.M8i4O{align-items:center;bottom:0;box-shadow:inset 0 -1px 0 var(--ug-color-divider-alpha);display:flex;justify-content:center;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .06s ease,visibility 0s linear .06s;visibility:hidden;width:var(--ug-pro-player-sidebar-width-collapsed);z-index:3}',""]),r.locals={container:"PO3k7",controls:"eY4ZO",selected:"_5jiIJ",collapsed:"v_P9R",collapsedCell:"M8i4O",selector:"Xo02p"};const s=r},86159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.PKmby{display:flex;pointer-events:none;position:relative}.PKmby.Ph3Go::after{background-color:var(--ug-color-text-green);border-radius:50%;bottom:0;content:"";height:6px;position:absolute;right:0;translate:50% 50%;width:6px}',""]),r.locals={container:"PKmby",withActiveIndicator:"Ph3Go"};const s=r},16931:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".WyiwG{display:flex;flex-direction:column;gap:2px;padding-bottom:var(--ug-spacing-xxs);padding-top:var(--ug-spacing-xxs)}.TkqSW{align-self:start;text-align:left;text-transform:capitalize;z-index:2}.V-Mul{z-index:2}",""]),r.locals={instrumentVolume:"WyiwG",instrumentName:"TkqSW",control:"V-Mul"};const s=r},87965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.titgW{border-radius:50%;height:30px;width:30px;z-index:2}.titgW[data-dragging="true"] .VLajA{display:none}.lMtAb{border:1px solid var(--ug-color-button-tertiary);border-radius:50%;height:100%;width:100%;z-index:1}._93ELy{left:-1px;position:absolute;top:-1px}._93ELy path{fill:var(--ug-color-bg-tertiary)}[data-theme="dark"] ._93ELy path{fill:var(--ug-color-text-primary)}.VLajA{align-content:center;background:var(--ug-color-bg-primary);border-radius:50%;height:20px;text-align:center;width:20px;z-index:1}[data-theme="dark"] .VLajA{background:var(--ug-color-bg-secondary);color:var(--ug-color-text-primary);font-weight:600}',""]),r.locals={panControl:"titgW",label:"VLajA",button:"lMtAb",circle:"_93ELy"};const s=r},57486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.UXpBR{--ug-slider-offset:7px;box-sizing:border-box;
2cursor:pointer;padding-bottom:8px;padding-top:8px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--ug-slider-width,100%)}.UXpBR[data-disabled]{cursor:not-allowed;opacity:.3}.UXpBR.YQQQm{--ug-slider-width:72px}.UXpBR.N0bHb{--ug-slider-width:174px}.UXpBR.SeBrP{--ug-slider-width:208px}.MnkXT{align-items:start;box-sizing:border-box;display:flex;height:2px;left:0;position:relative;right:0}.MnkXT::before{background:var(--ug-color-icon-primary);border-radius:1px;content:"";display:block;height:100%;width:calc(var(--fill-width, 0px) - var(--ug-slider-offset))}.MnkXT::after{background:var(--ug-color-control-adaptive-stroke);border-radius:1px;content:"";display:block;height:1px;margin-left:7px;width:calc(100% - var(--fill-width, 0px) - var(--ug-slider-offset))}.EcSDP{background-color:var(--ug-color-icon-primary);border-radius:50%;height:11px;position:absolute;top:50%;translate:-50% -50%;width:11px}',""]),r.locals={container:"UXpBR","size-s":"YQQQm","size-m":"N0bHb","size-l":"SeBrP",track:"MnkXT",thumb:"EcSDP"};const s=r},42878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,"._32-y4{align-items:center;border-radius:0;display:flex;height:28px;justify-content:center;padding:0;width:28px;z-index:2}._32-y4[data-selected]{background-color:var(--ug-color-bg-inverse);color:var(--ug-color-text-inverse)}._32-y4:not(:first-child){box-shadow:inset 0 1px 0 0 var(--ug-color-bg-tertiary),inset 0 -1px 0 0 var(--ug-color-bg-tertiary),inset -1px 0 0 0 var(--ug-color-bg-tertiary)}",""]),r.locals={toggleButton:"_32-y4"};const s=r},29989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".fjCwt{position:relative}.fjCwt.adicV .IUUvw{opacity:0;transition:opacity .06s ease,visibility 0s linear .06s;visibility:hidden}
2.fjCwt.adicV .ONRGj{opacity:1;transition:opacity .06s ease .06s,visibility 0s;visibility:visible}.IUUvw{opacity:1;padding:var(--ug-spacing-s) var(--ug-spacing-m);transition:opacity .06s ease .06s,visibility 0s}.ONRGj{align-items:center;bottom:0;display:flex;justify-content:center;opacity:0;position:absolute;right:0;top:0;transition:opacity .06s ease,visibility 0s linear .06s;visibility:hidden;width:var(--ug-pro-player-sidebar-width-collapsed)}.jhGMF{--button-icon-size:20px}.sTxls{width:40px}",""]),r.locals={wrapper:"fjCwt",collapsed:"adicV",volumeCard:"IUUvw",collapsedOverlay:"ONRGj",volumeButton:"jhGMF",volumeLabel:"sTxls"};const s=r},29799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a),s=n(41074),l=n.n(s),c=new URL(n(54505),n.b),d=r()(o()),u=l()(c);d.push([e.id,".J5nd2{--ug-beats-per-line:18;grid-row-gap:var(--ug-spacing-xs);display:grid;grid-template-columns:repeat(var(--ug-beats-per-line),auto);justify-content:start;padding:var(--ug-spacing-xs) 0 var(--ug-spacing-s);row-gap:var(--ug-spacing-xs)}.DBxzm{box-sizing:border-box;height:72px;margin-bottom:1px;padding-top:34px;position:relative;-webkit-print-color-adjust:exact;print-color-adjust:exact;width:18px}.iFOU6,.j8OV8,.-Oz9i,._8p1vU{background:url("+u+') -200px -200px no-repeat}:root ._8p1vU,[data-theme="dark"] ._8p1vU{background-position:-84px -121px}:root .iFOU6,[data-theme="dark"] .iFOU6{background-position:-66px -121px}:root .j8OV8,[data-theme="dark"] .j8OV8{background-position:-138px -121px}:root .-Oz9i,[data-theme="dark"] .-Oz9i{background-position:-192px -121px}[data-theme="light"] ._8p1vU{background-position:-12px -121px}[data-theme="light"] .iFOU6{background-position:5px -121px}[data-theme="light"] .j8OV8{background-position:-102px -121px}[data-theme="light"] .-Oz9i{background-position:-156px -121px}._7YRTb._8p1vU{background-position:-48px -121px}._7YRTb.iFOU6{background-position:-30px -121px}._7YRTb.j8OV8{background-position:-120px -121px}._7YRTb.-Oz9i{background-position:-174px -121px}.t1cAr::before,.yjnjL::before{background:url('+u+') no-repeat;content:"";height:8px;left:5px;position:absolute;top:1px;width:8px}:root .yjnjL::before,[data-theme="dark"] .yjnjL::before{background-position:-32px -22px}:root .t1cAr::before,[data-theme="dark"] .t1cAr::before{background-position:-32px -29px}[data-theme="light"] .yjnjL::before{background-position:-32px -1px}[data-theme="light"] .t1cAr::before{background-position:-32px -9px}._7YRTb.yjnjL::before{background-position:-40px -1px}._7YRTb.t1cAr::before{background-position:-40px -9px}.Vy51T::after{background:url('+u+') no-repeat;content:"";left:9px;position:absolute;top:54px;width:19px}:root .Vy51T::after,[data-theme="dark"] .Vy51T::after{background-position-x:-50px}[data-theme="light"] .Vy51T::after{background-position-x:-7px}.CUYtZ::after{background-position:-7px -50px;height:8px}.DsXN4::after{background-position:-7px -75px;height:8px}._7rudq::after{background-position:-7px -100px;height:11px}.M7N32::after{align-items:center;content:"3";display:inline-flex;font:var(--ug-font-mono-s);justify-content:center;left:-9px;text-align:center;width:37px}.M7N32.CUYtZ::after{height:11px;padding-top:11px}.M7N32.DsXN4::after{height:11px;padding-top:11px}.M7N32._7rudq::after{height:11px;padding-top:14px}',""]),d.locals={section:"J5nd2",beat:"DBxzm",down:"iFOU6",pm:"j8OV8",realPause:"-Oz9i",up:"_8p1vU",active:"_7YRTb",accent:"t1cAr",mute:"yjnjL",footer:"Vy51T","footer-4":"CUYtZ","footer-8":"DsXN4","footer-16":"_7rudq",footerTriplets:"M7N32"};const p=d},94910:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".yGicc{position:relative}.eLCcU{align-items:center;backdrop-filter:blur(4px);background-color:color-mix(in srgb,var(--ug-color-bg-primary) 70%,transparent);cursor:pointer;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:2}._4ZUEe{position:relative;z-index:3}.GCndJ{align-items:center;background-color:var(--ug-color-bg-inverse);border-radius:999px;color:var(--ug-color-text-inverse);display:flex;gap:var(--ug-spacing-xs);padding:var(--ug-spacing-xs) var(--ug-spacing-l)}",""]),r.locals={wrapper:"yGicc",blurOverlay:"eLCcU",headerAboveOverlay:"_4ZUEe",overlayButton:"GCndJ"};const s=r}
2,37783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".Fjd46{padding-top:var(--ug-spacing-xs)}.W8T0X{margin:-10px}",""]),r.locals={header:"Fjd46",playButton:"W8T0X"};const s=r},80607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".xTWxN{padding:var(--ug-spacing-xs) 0}.TQK0N{margin:0 calc(var(--ug-spacing-s)*-1)}",""]),r.locals={section:"xTWxN",header:"TQK0N"};const s=r},94320:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".RQo1b{padding-bottom:var(--ug-spacing-s)}",""]),r.locals={suggestStrumming:"RQo1b"};const s=r},44944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.NC05z + .NC05z::before{color:var(--ug-color-text-secondary);content:"·";display:inline;margin:0 var(--ug-spacing-xxs)}.NC05z.kv2LI + .NC05z.kv2LI::before{margin:0 var(--ug-spacing-xs)}',""]),r.locals={listItem:"NC05z",wideSeparator:"kv2LI"};const s=r},77590:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".CCUPL{display:inline-block}",""]),r.locals={list:"CCUPL"};const s=r},45699:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,"._5giwr{box-sizing:border-box;margin:0 24px;padding:16px 0;position:relative}._5giwr.vKFDN{border-top:1px solid #dcdcdc}._5giwr.y--d3{text-align:center}._5giwr.HDOBf{color:#000;font-family:Muse Sans,Helvetica neue,Roboto,Arial,sans-serif;margin:0;padding:20px 16px}.Hatgh{display:flex}.HDOBf .Hatgh{align-items:center;justify-content:space-between;margin:0}.HDOBf .Hatgh ._5vBr5{margin-bottom:inherit}._5vBr5{display:inline-block;font-family:Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif;font-size:16px;font-weight:600;letter-spacing:.025em;line-height:24px;margin-bottom:8px;margin-top:0;text-transform:uppercase;vertical-align:top;white-space:nowrap}.HDOBf ._5vBr5{color:#000;font-family:Muse Sans,Helvetica neue,Roboto,Arial,sans-serif;font-size:18px;font-weight:700;letter-spacing:inherit}.fqEMR{display:inline-block;line-height:16px;vertical-align:top}.fqEMR a{color:inherit;display:inline-block;font-size:12px;margin:5.5px 6px}.qIiEg{grid-area:chords}.LyFB-{grid-area:strum}",""]),r.locals={section:"_5giwr",withBorder:"vKFDN",isCentered:"y--d3",mobile:"HDOBf",header:"Hatgh",title:"_5vBr5",titleActionWrapper:"fqEMR",chords:"qIiEg",strum:"LyFB-"};const s=r},49961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,"._2NPB3{align-items:end;display:flex;flex-direction:column;gap:var(--ug-spacing-xs);margin-top:var(--ug-spacing-s)}",""]),r.locals={wrapper:"_2NPB3"};const s=r},58054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,"._0SBlv{border:1px solid var(--ug-color-bg-tertiary)}",""]),r.locals={button:"_0SBlv"};const s=r},20071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.GwtfQ{display:grid;grid-template-columns:1fr auto}.K_wg0{display:flex;flex-direction:column;gap:var(--ug-spacing-m);min-width:0;padding-bottom:var(--ug-text-tab-content-padding-bottom,0);padding-top:var(--ug-spacing-m);position:relative}.OTy31{border-left:1px solid var(--ug-color-divider-alpha);box-sizing:content-box;width:var(--ug-text-tab-aside-width)}.OTy31._2NtBp{border-left:none;width:auto}.OTy31._2NtBp .Z50B1{padding-bottom:calc(196px + var(--ug-spacing-m)*3)}.g2AAe{position:sticky;top:var(--ug-tab-layout-top-offset);z-index:1}.kH2Vl{position:fixed;right:calc(var(--ug-layout-side-column-width) + var(--ug-spacing-xs));top:var(--ug-tab-layout-top-offset)}.OujHI{overflow-y:auto}:root .OujHI,[data-theme="dark"] .OujHI{scrollbar-color:var(--ug-color-control-inverse) var(--ug-color-bg-tertiary)}[data-theme="light"] .OujHI{scrollbar-color:auto}.Z50B1{padding:var(--ug-spacing-xs) var(--ug-spacing-l) var(--ug-spacing-xl)}.OWMAF{bottom:0;grid-area:none;position:sticky;z-index:13}.Arq9Y{display:flex}',""]),r.locals={container:"GwtfQ",content:"K_wg0",aside:"OTy31",collapsed:"_2NtBp",asideWrapper:"Z50B1",asideSticky:"g2AAe",asideFixed:"kH2Vl",asideContainer:"OujHI",video:"OWMAF",fakePlayer:"Arq9Y"};const s=r},75808:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());
2r.push([e.id,"._2tz4Y{height:60px;padding-bottom:var(--ug-spacing-s);padding-top:var(--ug-spacing-s)}",""]),r.locals={container:"_2tz4Y"};const s=r},8372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".-Ozvw{margin:0 calc(var(--ug-spacing-l)*-1)}",""]),r.locals={container:"-Ozvw"};const s=r},25063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".fSHjW{margin:0 calc(var(--ug-spacing-s)*-1);padding-bottom:var(--ug-spacing-s)}",""]),r.locals={section:"fSHjW"};const s=r},47831:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".nD-ZP{--compensated-margin-top:calc(var(--ug-spacing-xl) - var(--ug-spacing-m));--compensated-margin-left:calc(var(--ug-spacing-xl) - var(--ug-spacing-s));margin:var(--compensated-margin-top) var(--ug-spacing-xl) var(--ug-spacing-xl) var(--compensated-margin-left)}",""]),r.locals={container:"nD-ZP"};const s=r},73080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".JGhiX{background-color:var(--ug-color-bg-primary);box-shadow:inset 0 0 0 1px var(--ug-color-bg-tertiary);color:var(--ug-color-text-contrast)}.JGhiX[data-selected]{background-color:var(--ug-color-button-secondary)}",""]),r.locals={toggleButton:"JGhiX"};const s=r},83010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".dKE98{background-color:var(--ug-color-bg-primary);padding-bottom:10px;padding-left:var(--ug-spacing-s);padding-right:var(--ug-spacing-s);padding-top:10px}._6gU1x{padding-top:var(--ug-spacing-xs)}",""]),r.locals={container:"dKE98",subheader:"_6gU1x"};const s=r},22357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.trlgr{--ug-divider-thickness:1px;box-sizing:border-box}.trlgr::after{background-color:var(--ug-color-divider-alpha);content:"";display:block;height:100%;width:100%}.trlgr[aria-orientation="horizontal"]{width:100%}.trlgr[aria-orientation="horizontal"]::after{height:var(--ug-divider-thickness)}.trlgr[aria-orientation="vertical"]{height:100%}.trlgr[aria-orientation="vertical"]::after{width:var(--ug-divider-thickness)}',""]),r.locals={divider:"trlgr"};const s=r},20542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".IUwsj{background:linear-gradient(var(--ug-color-divider-alpha),var(--ug-color-divider-alpha));background-position:left var(--ug-spacing-s) bottom 6px;background-repeat:no-repeat;background-size:calc(100% - var(--ug-spacing-s)*2) 1px;gap:20px;padding-bottom:6px;padding-left:var(--ug-spacing-s);padding-right:var(--ug-spacing-s);padding-top:6px;scroll-padding-inline-start:var(--ug-spacing-xxs)}.TCCAN:first-child{scroll-margin-inline-start:var(--ug-spacing-xs)}.eH_BM{--icon-size:16px;align-items:center;color:var(--ug-color-text-secondary);display:flex;gap:2px;padding-bottom:var(--ug-spacing-s);padding-top:var(--ug-spacing-xxs)}.eH_BM[data-hovered],.eH_BM[data-selected]{color:var(--ug-color-text-contrast)}.eH_BM[data-disabled]{opacity:var(--ug-opacity-disabled)}.QmV14{background-color:var(--ug-color-text-contrast);border-radius:1px;bottom:6px;height:2px;left:0;position:absolute;right:0;z-index:1}.QmV14.W-gNA{transition:transform .3s,width .25s}",""]),r.locals={tabList:"IUwsj",tabListItem:"TCCAN",tab:"eH_BM",selectedTabIndicator:"QmV14",animated:"W-gNA"};const s=r},65092:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".FlgDy{display:inline-block;position:relative;z-index:1}.FlgDy:hover{cursor:default;z-index:10}.rC2pK .FlgDy{margin-left:-12px}.rC2pK .D2OxY{margin:0;padding:0 16px 0 8px}.FlgDy.pvu2n{padding-bottom:18px}.D2OxY.pvu2n{padding-bottom:26px}.rC2pK .D2OxY.mv7XP{padding-bottom:16px}.cnfqk{font-family:Roboto Mono,Courier New,monospace;font-size:13px;font-weight:600;height:20px;line-height:20px;text-align:center}.ngOw9{background:rgba(33,150,243,.15);border-radius:1px;color:#0368d6;display:inline-block;padding:0 .3em}.is_android .ngOw9{background:rgba(15,157,88,.15);color:#0d7945}.D2OxY .cnfqk{margin-bottom:10px}.GQojo .cnfqk{font-size:15px;height:18px;line-height:18px;margin-bottom:6px}.D2OxY.GQojo .cnfqk{margin-bottom:16px}._0meem{margin-left:-4px!important}._0meem{display:inline-block;padding-top:22px}.D2OxY._qQtO{width:165px}.D2OxY._qQtO .cnfqk{margin-bottom:12px}._0meem .cnfqk{font-family:Monaco,Courier New,Courier,monospace;font-size:15px;font-weight:400;left:0;position:absolute;top:0;width:100%}.RZayQ{overflow:hidden;width:79px}._0meem .RZayQ{height:75px;width:69px}._0meem .OYx-D{display:block;left:inherit;padding-left:9px;width:inherit}.QLXEm{text-align:center}._IrPF{border:1px solid hsla(0,0%,54%,.42);border-radius:2px;color:#8a8a8a;display:inline-block;font-size:12px;font-weight:400;line-height:22px;margin:7px auto 8px;padding:0 5px;text-transform:uppercase}.D2OxY ._IrPF{margin-top:7px}.GQojo .RZayQ{width:93px}.D2OxY .RZayQ{width:141px}.D2OxY.GQojo .RZayQ{padding-left:0;padding-right:0;width:197px}._0meem.MNt8N .OYx-D{padding-left:17px}.OYx-D{display:flex;justify-content:center;left:-100%;position:relative;width:300%}.OYx-D.Ccdrz{transform:translateX(-33.333%);transition:.15s linear}.OYx-D.ygqRK{transform:translateX(33.333%);transition:.15s linear}.MNULb{align-items:flex-start;bottom:0;display:flex;justify-content:space-between;left:0;margin:auto;position:absolute;right:0;width:84%}.D2OxY .MNULb{right:8px;width:113px}.L7gxj{margin:-10px -12px;position:relative;top:-1px}.injgI{color:#929292;font-size:10px;font-weight:400;line-height:10px;padding-bottom:8px}._1tGUr:active{opacity:.5}@media print{.MNULb{visibility:hidden}}
2",""]),r.locals={chord:"FlgDy",chordList:"rC2pK",pianoChord:"D2OxY",chordWithFooter:"pvu2n",isMobile:"mv7XP",header:"cnfqk",highlighted:"ngOw9",chordlg:"GQojo","chordsm-mobile-web":"_0meem",pianoMobile:"_qQtO",carousel:"RZayQ",carouselSlider:"OYx-D",bottomButtonWrapper:"QLXEm",bottomButton:"_IrPF",ukuleleChord:"MNt8N",next:"Ccdrz",prev:"ygqRK",footer:"MNULb",button:"L7gxj",paging:"injgI",buttonBehavior:"_1tGUr"};const s=r},22228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'._8i6EJ{position:sticky!important;z-index:9!important}._8i6EJ{background:#f8f8f8;top:-1px}._8i6EJ:before{background:#f8f8f8;bottom:0;content:"";left:-4px;position:absolute;top:0;width:4px}._8i6EJ.Iclff{top:51px}.CxrmX._8i6EJ{background:#f8f8f8}.snh_D._8i6EJ{background:#111}.snh_D._8i6EJ:before{background:#111}.tpp-b-player .CxrmX._8i6EJ{background:#fff}.tpp-b-player .snh_D._8i6EJ{background:#111}.lpqIc{display:inline-flex;flex-wrap:wrap;margin:8px -8px 0}._2r68K.lpqIc{display:block;margin:0 0 0 -6px;padding-bottom:12px}._2r68K.mp-dp.lpqIc{margin-left:-8px;padding-bottom:10px}._2r68K.qJyPh canvas{margin-left:9px}._2r68K.o2KnW canvas{margin-left:14px}._2r68K.o2KnW div{width:63px}.z4uHw.lpqIc{flex-wrap:nowrap;margin-left:-6px;margin-right:-16px;margin-top:7px;overflow-x:auto;white-space:nowrap;width:100%}._1PHGz{padding-right:130px}._5riga{margin-right:462px}',""]),r.locals={fixed:"_8i6EJ",topFixedIndent:"Iclff",light:"CxrmX",dark:"snh_D",list:"lpqIc",isMobile:"_2r68K",piano:"mp-dp",guitar:"qJyPh",ukulele:"o2KnW",isHorizontal:"z4uHw",withRightIndent:"_1PHGz",withStaticPlayerWhitespace:"_5riga"};const s=r},73108:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a),s=n(41074),l=n.n(s),c=new URL(n(11921),n.b),d=r()(o()),u=l()(c);d.push([e.id,'._61oxx{margin-top:-10px}._0IV3M{display:flex;gap:4px;margin-left:-4px;margin-right:-16px;margin-top:0;overflow-x:auto;white-space:nowrap}.RUfUQ::before{background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff);bottom:0;content:"";height:70px;left:0;margin:auto;position:absolute;width:168px;z-index:20}.mXLvx{margin-top:12px}.UEfXz{margin-top:0;padding-bottom:8px;padding-top:9px}.UEfXz:not(:first-of-type){padding-left:16px}.Ctiag{font-family:Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif;font-size:12px;font-weight:600;margin-bottom:4px;text-transform:uppercase}.Yxgvs{font-family:Muse Sans,Helvetica neue,Roboto,Arial,sans-serif;font-size:14px;font-weight:400;margin-bottom:16px;margin-left:4px;text-transform:none}.lKxB2{color:#929292;font-weight:400;text-transform:none}.thpIZ{color:#737373}._2SjK4{margin:-5px -6px;position:relative;z-index:4}.DFmjy > path{fill:#1181e9}.is_android .DFmjy > path{fill:#0b9d58}.a9koH{margin:-5px}.ueSfN{margin-left:-7px;margin-top:-9px}._2SjK4:hover{background:none}.Glx1C{font-size:15px;margin:0;padding-left:0}.Glx1C > span:first-of-type{font-weight:400;text-decoration-line:underline;text-transform:none}.V2Y9h{display:flex;margin-left:-6px;text-align:center}.uxF80{margin-left:0}.Z3YUp{font-size:10px;height:68px;line-height:10px;margin-bottom:1px;padding-top:34px;position:relative;-webkit-print-color-adjust:exact;print-color-adjust:exact;width:18px}.-u97C,.Pp3D7,.djwky,.vaSS9{background:url('+u+") -200px -200px no-repeat;background-size:225px 175px}.vaSS9{background-position:-12px -121px}.vaSS9.L7m1j{background-position:-84px -121px}.vaSS9.CPFIE{background-position:-48px -121px}.-u97C{background-position:5px -121px}.-u97C.L7m1j{background-position:-66px -121px}.-u97C.CPFIE{background-position:-30px -121px}.Pp3D7{background-position:-102px -121px}.Pp3D7.L7m1j{background-position:-138px -121px}.Pp3D7.CPFIE{background-position:-120px -121px}.djwky{background-position:-156px -121px}.djwky.L7m1j{background-position:-192px -121px}.djwky.CPFIE{background-position:-174px -121px}._98Y9J::before,.l4MMU::before{background:url("+u+') no-repeat;background-size:225px 175px;content:"";height:8px;left:5px;position:absolute;top:1px;width:8px}.l4MMU::before{background-position:-32px -1px}.l4MMU.L7m1j::before{background-position:-32px -22px}.l4MMU.CPFIE::before{background-position:-40px -1px}._98Y9J::before{background-position:-32px -9px}._98Y9J.L7m1j::before{background-position:-32px -29px}._98Y9J.CPFIE::before{background-position:-40px -9px}.om4sf::after{background:url('+u+') no-repeat;background-size:225px 175px;content:"";left:9px;position:absolute;top:46px;width:19px}.dGobO::after{content:"3";left:-9px;text-align:center;width:37px}.PIAQQ::after{background-position:-7px -50px;height:8px}.PIAQQ.dGobO::after{height:11px;padding-top:11px}.RVWXH::after{background-position:-7px -75px;height:8px}.RVWXH.dGobO::after{height:11px;padding-top:11px}.KUoJR::after{background-position:-7px -100px;height:11px}.KUoJR.dGobO::after{height:11px;padding-top:14px}.om4sf.L7m1j::after{background-position-x:-50px}',""]),d.locals={container:"_61oxx",mobileContainer:"_0IV3M",withOverlay:"RUfUQ",section:"mXLvx",mobileSection:"UEfXz",header:"Ctiag",mobileHeader:"Yxgvs",bpm:"lKxB2",mobileBpm:"thpIZ",buttonPlay:"_2SjK4",mobilePlayIcon:"DFmjy",buttonPlaySquare:"a9koH",buttonPlayLoading:"ueSfN",mobileButton:"Glx1C",beats:"V2Y9h",mobileBeats:"uxF80",beat:"Z3YUp",down:"-u97C",pm:"Pp3D7",realPause:"djwky",up:"vaSS9",dark:"L7m1j",active:"CPFIE",accent:"_98Y9J",mute:"l4MMU",footer
2:"om4sf",footerTriplets:"dGobO","footer-4":"PIAQQ","footer-8":"RVWXH","footer-16":"KUoJR"};const p=d},41899:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.s-juq{position:relative}.QsmqP{display:block}._3N0pI.s-juq{overflow-x:auto;overflow-y:hidden}.vWPod.s-juq{padding:16px}.k_vI3{font-family:Roboto Mono,Courier New,monospace;line-height:1.4em;margin:0}.KLhHx.k_vI3{line-height:1.4em}._65ROf.k_vI3{line-height:1.3em}.WptWb.k_vI3{line-height:1.2em}._Q5BD .k_vI3{font:15px Monaco,Courier New,Courier,monospace}.lcVLR .k_vI3{background:#f8f8f8}._Q5BD.lcVLR .k_vI3{background:#fff}._B30H .k_vI3{background:#111}.OBvdb{display:none}@media print{.k_vI3{background:#59a500}}._7yEm1{display:block}.yMoLy{background:#fff;width:100%}._22BVQ{display:table;width:100%}.EWlOf{display:table-cell;vertical-align:top}.uwJ7i .EWlOf{width:50%}.CMdAe,._6yV4q{display:block;min-height:1.4em}.KLhHx ._6yV4q{min-height:1.4em}._65ROf ._6yV4q{min-height:1.3em}.WptWb ._6yV4q{min-height:1.2em}._Q5BD ._6yV4q{min-height:unset}.CMdAe .eSJpP:hover{cursor:default}.CMdAe .eSJpP:hover:after{display:none}.nsXNI{color:#0098fd}.nsXNI span{color:#0098fd!important}.eSJpP{border-radius:2px;cursor:default;display:inline-block;font-weight:700;margin:-.1em -.5em -.15em;padding:.1em .5em .15em;position:relative}.eSJpP:after{background:currentColor;border-radius:2px;bottom:.2em;content:"";display:none;left:.25em;opacity:.1;position:absolute;right:.25em;top:.2em}._Q5BD .eSJpP{background:rgba(33,150,243,.15);border-radius:1px;font-weight:400;margin:-.1em calc(-.3em + .5px);padding:0 .3em}._Q5BD .eSJpP:after{background:none}.isAndroid .eSJpP{background:rgba(15,157,88,.15)}.eSJpP:hover:after{display:block}.d8c-l{left:0;opacity:0;position:absolute;top:0}.c2VLQ:hover{background:transparent}.CMdAe{page-break-inside:avoid}._6Im1s{position:relative}._6Im1s:after{display:block}.HslD7{font-weight:600}.fGc1h{font-family:var(--ug-font-family-mono),monospace;line-height:1.6em}:root .yMoLy,_::-webkit-full-page-media,_:future{display:block}@-moz-document url-prefix(){.yMoLy{display:block}}',""]),r.locals={wrapper:"s-juq",code:"QsmqP",horizontalScroll:"_3N0pI",indentMd:"vWPod",content:"k_vI3",lineSizeM:"KLhHx",lineSizeS:"_65ROf",lineSizeXs:"WptWb",isMobile:"_Q5BD",light:"lcVLR",dark:"_B30H",delimiter:"OBvdb",tab:"_7yEm1",printContent:"yMoLy",printColumns:"_22BVQ",printColumn:"EWlOf",printColumns2:"uwJ7i",printTab:"CMdAe",printText:"_6yV4q",chord:"eSJpP",syllableActive:"nsXNI",char:"d8c-l",printChord:"c2VLQ",chordsHighlight:"_6Im1s",redesignedChord:"HslD7",redesignedContent:"fGc1h"};const s=r},92515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".o-c9W{margin-bottom:16px}",""]),r.locals={heading:"o-c9W"};const s=r},92274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'.eU82V{display:flex;flex-grow:1;margin-left:-6px}._1IqNL.eU82V{margin-left:0}._7YwBw{margin-left:-12px}.qAd4f.eU82V{margin-top:8px;padding:0 16px}.rEEzr,.XEr0V{display:inline-block;font-size:12px;font-weight:600;line-height:24px;margin:10px 2px 4px;max-height:26px;padding:0 8px;text-align:center}.rEEzr{cursor:pointer}.rEEzr:first-letter{text-transform:uppercase}.XEr0V:first-letter{text-transform:uppercase}.XEr0V{position:relative;z-index:2}.PcStz .rEEzr{background:#444;color:#929292}.PcStz .rEEzr:hover{background:#535353}.PcStz .XEr0V{background:#111;box-shadow:0 4px #111;color:#ddc}.aFGkI .XEr0V{background:#fff;box-shadow:0 4px #fff;color:#212121}.aFGkI .rEEzr{background:#d8d8d8;color:#606060}.aFGkI .rEEzr:hover{background:#fff}._1IqNL .rEEzr,._1IqNL .XEr0V{border:1px solid;box-shadow:none;margin:0 -1px 0 0}._1IqNL.PcStz .XEr0V{border-color:#7a7a7a}._1IqNL.aFGkI .XEr0V{border-color:#929292}._1IqNL.PcStz .rEEzr{background:#232323;border-color:#606060}._1IqNL.PcStz .rEEzr:hover{background:#444}._1IqNL.aFGkI .rEEzr{border-color:silver}._47G_t .rEEzr,._47G_t .XEr0V{flex-grow:1}._3efF5{text-transform:uppercase}._4sky .rEEzr,._4sky .XEr0V{border:0;margin:0;max-height:none;padding:10px 0}.tagwa{position:relative}.tagwa:after{background-color:#212121;content:"";display:block;height:1px;left:12px;position:absolute;right:12px;top:calc(100% - 4px)}.PcStz .tagwa:after{background-color:#ddc}._4sky.PcStz .tagwa:after{background-color:transparent}.tagwa:hover:before{display:none}.R5bjA .rEEzr,.R5bjA .XEr0V{background:transparent!important}.R5bjA .rEEzr,.R5bjA .XEr0V{border:0;color:#fff;font-size:14px;font-weight:600;margin:0 8px;transition:opacity .3s}.R5bjA .rEEzr{opacity:.5}.R5bjA .XEr0V{opacity:1}',""]),r.locals={tabs:"eU82V",joinedTab:"_1IqNL",buttonsTab:"_7YwBw",tabPlayer:"qAd4f",tab:"rEEzr",tabActive:"XEr0V",dark:"PcStz",light:"aFGkI",stretchedTab:"_47G_t",textUppercase:"_3efF5",mobile:"_4sky",tabActiveButton:"tagwa",isFeedSelector:"R5bjA"};const s=r},80284:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());
2r.push([e.id,".DytjV{color:inherit}._5H3K5{color:#ffc600}.yCL7b{color:#ff8c00}._9B-Al{color:#0098fd}.Er22t{color:#ff5d55}",""]),r.locals={accent:"DytjV",brand:"_5H3K5",highlight:"yCL7b",info:"_9B-Al",danger:"Er22t"};const s=r},25069:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".TYDdf,.c86V4,.tL2v_{display:inline-block;text-align:center;vertical-align:middle}.TYDdf{color:#111;font-weight:400}.by_Pi{background-color:#ffc600}.TbgS4{background-color:#ff5d55}.lu7ft{background-color:#ff5d55}.NcNNk{color:#ddc}.jkbkI{color:#111}.xGNZD{border-radius:6px;font-size:10px;height:6px;line-height:6px;min-width:6px;padding:0 1.5px}.iUMAd{border-radius:16px;font-size:11px;height:16px;line-height:16px;min-width:16px;padding:0 4px}.JIXln{border-radius:20px;font-size:13px;height:20px;line-height:20px;min-width:20px;padding:0 5px}.nXI2S{border-radius:24px;font-size:14px;height:24px;line-height:24px;min-width:24px;padding:0 6px}",""]),r.locals={contained:"TYDdf",point:"c86V4",text:"tL2v_",brand:"by_Pi",accent:"TbgS4",default:"lu7ft",dark:"NcNNk",light:"jkbkI",xs:"xGNZD",sm:"iUMAd",md:"JIXln",lg:"nXI2S"};const s=r},75585:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,'._55_Iq{position:relative}._55_Iq ._55_Iq:after{background:#d8d8d8;bottom:0;content:"";left:0;position:absolute;top:0;width:1px}._55_Iq:nth-child(2):after{top:8px}._4hWYm{background-color:#efefef;border-radius:2px;font-style:italic;margin:0 0 10px;padding:8px}._4hWYm ._4hWYm{margin:0;padding:8px 24px 0}.fTXMw{margin-bottom:8px}.GNeVx ._4hWYm{background-color:#232323}.GNeVx._55_Iq ._55_Iq:after{background:#3e3e3e}',""]),r.locals={quoteContainer:"_55_Iq",quote:"_4hWYm",author:"fTXMw",dark:"GNeVx"};const s=r},79480:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".AFX9K{font-size:24px;font-weight:400;line-height:133%}.FjqEi{font-size:22px;line-height:130%}.-H3F8{font-size:16px;line-height:150%}._0ZuZK{font-size:17px;font-weight:400;line-height:141%}.ar2Wg{font-size:14px;line-height:143%}.dDbMN{font-size:12px;line-height:133%}._1rpH6{font-size:16px;line-height:125%}.jTZpt{font-size:14px;line-height:143%}.KbIjE{font-size:13px;line-height:125%}.soTHL,.Lf02O{font-size:12px;line-height:139%}.Lf02O{font-weight:400}.Juydb{font-size:10px;line-height:120%}.FjqEi,.-H3F8,.ar2Wg,.dDbMN,.AFX9K{margin:0}.Juydb,.FjqEi,.-H3F8,.ar2Wg,.dDbMN,.soTHL{font-weight:600}.-H3F8,.ar2Wg,.dDbMN{letter-spacing:.025em;text-transform:uppercase}p.Juydb,p.jTZpt,p.KbIjE,p.soTHL{margin:0 0 16px}.s1skf{color:#ffc600}.AqPU9{color:hsla(0,0%,100%,.8)}.pUFdd{color:hsla(0,0%,100%,.5)}.iO1wV{color:#ffc600}.FSXbG{color:#ddc}.NV92t,._6LzvM{color:#929292}._gq9Z{color:#212121}.cBN6d{color:#212121}.suHok{color:#7a7a7a}.az6bH{color:#929292}._0raKw{color:#fff}.rU1Zn{color:#212121}.XNqpA{color:#212121}.qgQwC{color:#ff5d55}.WtVKZ{text-align:left}.oQbHO{text-align:center}.jOecM{text-align:right}.MZcCk{white-space:pre}.wdVvi{font-weight:600}.VGmuE{font-style:italic}.vLJ8U{-webkit-text-decoration:line-through;text-decoration:line-through}.wCEmU{-webkit-text-decoration:underline;text-decoration:underline}._2YWj6{font-weight:400}.a6F5T{white-space:nowrap;word-break:keep-all}",""]),r.locals={hero:"AFX9K",h1:"FjqEi",h2:"-H3F8",h2Сommon:"_0ZuZK",h3:"ar2Wg",h4:"dDbMN",textXl:"_1rpH6",textLg:"jTZpt",textMd:"KbIjE",textSm:"soTHL",textThinSm:"Lf02O",caption:"Juydb",colorAccentBlack:"s1skf",colorPrimaryBlack:"AqPU9",colorSecondaryBlack:"pUFdd",colorAccentDark:"iO1wV",colorPrimaryDark:"FSXbG",colorSecondaryDark:"NV92t",colorThirdDark:"_6LzvM",colorAccentLight:"_gq9Z",colorPrimaryLight:"cBN6d",colorSecondaryLight:"suHok",colorThirdLight:"az6bH",colorWhiteDark:"_0raKw",colorBlackDark:"rU1
2Zn",colorBlackLight:"XNqpA",accent:"qgQwC",positionLeft:"WtVKZ",positionCenter:"oQbHO",positionRight:"jOecM",whitespacepre:"MZcCk",bold:"wdVvi",italic:"VGmuE",strike:"vLJ8U",underline:"wCEmU",normal:"_2YWj6",nowrap:"a6F5T"};const s=r},55006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,".T5nyU{flex-grow:1;position:relative}.AvKUM{background:hsla(0,0%,7%,.42);bottom:0;left:0;position:fixed;right:0;top:0;z-index:20}.AvKUM ~ .T5nyU{z-index:21}.LFkhC.T5nyU{margin:0}.yRFta.T5nyU{background:#f8f8f8;color:#212121}.yRFta.T5nyU.LFkhC{background:#fff}.yyQc1.T5nyU{background:#111;color:#ddc}.BQfoS{display:inline-block;font-size:12px;font-weight:400;line-height:16px;margin:2px 0;position:relative;vertical-align:top}.yRFta.BQfoS{color:#929292}.yyQc1.BQfoS{color:#929292}.S6KHd{margin-right:10px}.Qr5Md{margin-right:8px}._4J0Gc{margin:0;padding:0}.nKy9v{margin:0 24px;padding:16px 0;position:relative}.FJ2u4.nKy9v{text-align:center}._0rC06.nKy9v{text-align:right}.bOZ46{margin:0!important;padding-top:0!important}.bOZ46.LFkhC{background:#fff;border-top:1px solid #e0e0e0;min-height:200px}._1Og5Y{margin:10px 0 0!important;padding:0!important}.ekufV{height:698px}.Jcbu3{display:flex;margin:0;padding:0}.Jcbu3 .HAbsx{flex-grow:1}._6_8N-{background:#111}.ekufV,.ClrFC{border-top:1px solid silver;margin:-1px 0;min-height:698px;padding:0;position:relative}.KAm2q{margin:0 24px;padding:0 0 8px}.KAm2q:empty{display:none}.nKy9v .KAm2q{display:flex;justify-content:flex-start;margin:0 0 -16px;padding:0}.LFkhC .KAm2q{border-top:1px solid #212121;margin:0;overflow:hidden;padding:16px}.t7PT6{border-bottom:1px solid transparent}.LFkhC.t7PT6.nKy9v{margin-bottom:-1px}.yRFta.t7PT6{border-bottom-color:silver}.yyQc1.t7PT6{border-bottom-color:#212121}.nKy9v:empty{display:none}.nKy9v + .nKy9v{padding-top:16px}.bMzJb{grid-area:header;margin-bottom:-12px;padding-bottom:0}.B7NFB{padding-top:0}.LFkhC .bMzJb{padding-right:0}._9vKPW{font-size:12px;font-style:italic;margin-bottom:6px;margin-top:24px}.zD_Wa{display:inline-block;font-family:Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif;line-height:24px;margin-bottom:8px;vertical-align:top;white-space:nowrap}.Uxh8z{display:inline-block;line-height:16px;vertical-align:top}.t_rJW{padding:12px 0}.jLdOu{position:relative}.BcPyI{margin-bottom:16px;padding:8px 24px 0}.jc6el{bottom:8px;margin:0 0 16px 24px;position:sticky;z-index:10}._7J_ZF{bottom:-2px;padding:0 24px 16px 16px;position:absolute;right:0;z-index:11}._g4tJ{display:flex;margin-top:16px;position:relative;z-index:20}._iZ6o{align-items:flex-end}._5fxHP{display:flex;flex-direction:row;float:right;margin-top:16px}._5fxHP > div:not(:last-child){margin-right:8px}._1Ydqp{bottom:8px;margin:0 0 16px 24px;position:sticky;z-index:10}.Vzz2Z{animation:_56Phk .2s ease-in-out}.D4F7o{background:transparent;border-bottom:none;margin-top:-50px;position:absolute;right:0;z-index:0}.BUbcY{padding:16px 24px;position:relative}.BUbcY.lyyL-{border-top:1px solid}.yRFta.BUbcY.lyyL-{border-top-color:#212121}.yyQc1.BUbcY.lyyL-{border-top-color:#3e3e3e}@keyframes _56Phk{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}",""]),r.locals={container:"T5nyU",backdrop:"AvKUM",isMobile:"LFkhC",light:"yRFta",dark:"yyQc1",tabInfo:"BQfoS",tabInfoText:"S6KHd",tabInfoControl:"Qr5Md",subtitle:"_4J0Gc",section:"nKy9v","align-center":"FJ2u4","align-right":"_0rC06",sectionProTab:"bOZ46",sectionKaraokeButton:"_1Og5Y",sectionPro:"ekufV",hasControls:"Jcbu3",content:"HAbsx",hasControlsDark:"_6_8N-",sectionProStretch:"ClrFC",sectionAd:"KAm2q",sectionHeader:"t7PT6",sectionChords:"bMzJb",sectionControls:"B7NFB",correctionTitle:"_9vKPW",heading:"zD_Wa",titleActionWrapper:"Uxh8z",topControls:"t_rJW",tabContent:"jLdOu",rateWrapper:"BcPyI",tabControlsWrapper:"jc6el",bottomControlsWrapper:"_7J_ZF",footerControls:"_g4tJ",end:"_iZ6o",containerFixed:"_5fxHP",containerSticky:"_1Ydqp",withAnimation:"Vzz2Z",controlsFadeIn:"_56Phk",movedToTop:"D4F7o",simpleSection:"BUbcY",withBorder:"lyyL-"};const s=r},91220:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());
2r.push([e.id,"._7D6Cn{padding-left:16px;padding-right:16px}.cDaCW{padding:0}",""]),r.locals={wrappper:"_7D6Cn",noPadding:"cDaCW"};const s=r},7544:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(57763),o=n.n(i),a=n(74458),r=n.n(a)()(o());r.push([e.id,"._0lqX6{display:flex}._0lqX6 a{color:inherit;display:inline-block;font-size:12px;font-weight:600;margin:6px}._0lqX6 ._7MM40{display:inline-block;margin-left:10px;margin-top:6px}.AwtRG{display:inline-block;font-family:Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif;line-height:24px;margin-bottom:8px;vertical-align:top;white-space:nowrap}.NwiSm{display:inline-block;line-height:16px;vertical-align:top}._63btm{flex-grow:1;margin:-12px 0 -4px}._63btm a{margin:0}",""]),r.locals={header:"_0lqX6",tabInfo:"_7MM40",heading:"AwtRG",titleActionWrapper:"NwiSm",actions:"_63btm"};const s=r},25410:(e,t,n)=>{var i={"./wasm/xtzmain.js":[46996,6996]};function o(e){if(!n.o(i,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return n.e(t[1]).then((()=>n(o)))}o.keys=()=>Object.keys(i),o.id=25410,e.exports=o},35869:(e,t,n)=>{var i=n(75031).Symbol;e.exports=i},12467:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}},84365:(e,t,n)=>{var i=n(35869),o=n(37043),a=n(5283),r=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?o(e):a(e)}},42489:e=>{var t=Math.floor;e.exports=function(e,n){var i="";if(!e||n<1||n>9007199254740991)return i;do{n%2&&(i+=e),(n=t(n/2))&&(e+=e)}while(n);return i}},74200:(e,t,n)=>{var i=n(35869),o=n(12467),a=n(56227),r=n(69528),s=i?i.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(r(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},87527:(e,t,n)=>{var i=n(72670),o=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(o,""):e}},15274:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},37043:(e,t,n)=>{var i=n(35869),o=Object.prototype,a=o.hasOwnProperty,r=o.toString,s=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var i=!0}catch(e){}var o=r.call(e);return i&&(t?e[s]=n:delete e[s]),o}},91368:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},29131:(e,t,n)=>{var i=n(3947),o=n(50654),a=n(91368),r=n(82917);e.exports=function(e,t,n){if(!r(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&a(t,n.length):"string"==s&&t in n)&&i(n[t],e)}},5283:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},75031:(e,t,n)=>{var i=n(15274),o="object"==typeof self&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},72670:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3947:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},56227:e=>{var t=Array.isArray;e.exports=t},50654:(e,t,n)=>{var i=n(73098),o=n(86613);e.exports=function(e){return null!=e&&o(e.length)&&!i(e)}},73098:(e,t,n)=>{var i=n(84365),o=n(82917);e.exports=function(e){if(!o(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},86613:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},82917:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},55620:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},69528:(e,t,n)=>{var i=n(84365),o=n(55620);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==i(e)}},89035:(e,t,n)=>{var i=n(42489),o=n(29131),a=n(44848),r=n(52954);e.exports=function(e,t,n){return t=(n?o(e,t,n):void 0===t)?1:a(t),i(r(e),t)}},3555:(e,t,n)=>{var i=n(9640),o=1/0;e.exports=function(e){return e?(e=i(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}}
2,44848:(e,t,n)=>{var i=n(3555);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},9640:(e,t,n)=>{var i=n(87527),o=n(82917),a=n(69528),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):r.test(e)?NaN:+e}},52954:(e,t,n)=>{var i=n(74200);e.exports=function(e){return null==e?"":i(e)}},42640:(e,t,n)=>{"use strict";var i=n(6894);t.Z=void 0;var o=n(502),a=(i(n(67956)),i(n(32214)),function(e){return function(t){var n=(0,o.createFactory)(t),i=function(e){return n(e)};return i.defaultProps=e,i}});t.Z=a},13243:(e,t,n)=>{"use strict";n.d(t,{c:()=>r});var i=n(9899),o=n(49274),a=n(40472);const r=async e=>{var t,n;const r={isBufferedStreamEnabled:e.audio.isBufferedStreamEnabled,isLoggingSynthEvents:e.audio.isLoggingSynthEvents,isFilterEnabled:e.audio.isFilterEnabled};return await i.x.load(e.audio.soundfontUri,null!==(t=e.localPrefix)&&void 0!==t?t:"",a.gU+"/",r,null!==(n=e.audio.audioContext)&&void 0!==n?n:null,e.onLogMessage),o.k.ready("loadAudioModule success"),i.x}},9899:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(53442),o=n(49274);const a={isStarted:!1,isRuntimeInitialized:!1,audioContext:null,audioWorkletNode:null,rpcMessageQueue:[],onProcessMessage:function(e){switch(e.data.type){case"rpc":o.k.event("onProcessMessage rpc","method:",e.data.method,"args:",e.data.args),a.rpcListen(e.data.method,e.data.args);break;case"sync_timestamp":a.isStarted&&a.syncTimestamp(e.data.timestamp);break;case"log":a.onLogMessage(e.data.messageType,e.data.message)}},load:async function(e,t,n,r,s,l){o.k.info("xtzAudioWorkletModule.load","soundfontUrl:",e,"localPrefix:",t,"wasmPrefix:",n),l&&(a.onLogMessage=l),a.audioContext=s||new AudioContext;try{await a.audioContext.audioWorklet.addModule(t+"xtz_audio_worklet_processor.js"),o.k.info("xtzAudioWorkletModule.load: audioWorklet module added"),a.audioWorkletNode=new i.f(this.audioContext,e,t,n,r,a.onProcessMessage,{numberOfInputs:1,numberOfOutputs:1,outputChannelCount:[2]}),a.onInitialized()}catch(e){if(!(e instanceof DOMException&&"InvalidStateError"===e.name))throw o.k.error("xtzAudioWorkletModule.load failed:",e),e;o.k.warn("xtzAudioWorkletModule.load: worker not ready")}},proccessRPCMessage:function(e){o.k.event("proccessRPCMessage",e)},onDrivereResume:function(){o.k.event("onDrivereResume"),a.audioContext&&(a.audioContext.resume(),a.isStarted=!0)},onDriverSuspended:function(){var e;o.k.event("onDriverSuspended"),null===(e=a.audioContext)||void 0===e||e.suspend()},onDriverOpened:function(){var e;o.k.event("onDriverOpened"),this.audioWorkletNode&&this.audioContext&&(null===(e=this.audioWorkletNode)||void 0===e||e.connect(this.audioContext.destination))},onDriverClosed:function(){var e;o.k.event("onDriverClosed"),null===(e=a.audioWorkletNode)||void 0===e||e.disconnect()},sampleRate:function(){return a.audioContext?a.audioContext.sampleRate:0},rpcListen:function(e,t){o.k.warn("rpcListen called before setup","method:",e,"args:",t)},rpcSend:function(e,t){var n;o.k.event("rpcSend","method:",e,"args:",t),a.isRuntimeInitialized?null===(n=a.audioWorkletNode)||void 0===n||n.postMessageToWorker({type:"rpc",method:e,args:t}):(o.k.warn("rpcSend: runtime not initialized, queuing message","method:",e),a.rpcMessageQueue.push({method:e,args_str:t}))},syncTimestamp:function(e){o.k.warn("syncTimestamp called before setup","timestamp:",e)},sendSyncID:function(e){var t;o.k.info("sendSyncID",e),null===(t=a.audioWorkletNode)||void 0===t||t.setSyncID(e)},onLogMessage(e,t){},onInitialized:function(){o.k.ready("xtzAudioWorkletModule.onInitialized"),a.isRuntimeInitialized=!0,a.rpcMessageQueue.forEach((function(e){a.proccessRPCMessage(e)})),a.rpcMessageQueue=[]}}},53442:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var i=n(49274);class o extends AudioWorkletNode{constructor(e,t,n,o,a,r,s){super(e,"xtz_audio_worklet_processor",s),this._sampleRate=44100,this._sampleRate=0<e.sampleRate?e.sampleRate:this._sampleRate,i.k.info("XtzAudioWorkletNode constructor","localPrefix:",n,"wasmPrefix:",o,"soundfontUrl:",t,"sample rate:",e.sampleRate),this._workerOptions={ringBufferLength:16400,channelCount:2},this._worker=new Worker(n+"xtz_audio_worklet_worker.js"),this._onAudioModuleProcessMessage=r,this._worker.onmessage=this._onWorkerProcessMeassege.bind(this),this.port.onmessage=this._onProcessorProcessMessage.bind(this);const l=new MessageChannel;this.port.postMessage({message:"MessageChannel",port:l.port1},[l.port1]);const c=new URL(n+o+"xtzaudio.js",window.location.href).toString();this._worker.postMessage({message:"INITIALIZE_WORKER",port:l.port2,options:{ringBufferLength:this._workerOptions.ringBufferLength,importUrl:c,wasmPrefix:o,sampleRate:this._sampleRate,soundfontUrl:t,config:a}},[l.port2])}_onWorkerProcessMeassege(e){var t;i.k.event("XtzAudioWorkletNode._onWorkerProcessMeassege","type:",null===(t=e.data)||void 0===t?void 0:t.type),this._onAudioModuleProcessMessage(e)}_onProcessorProcessMessage(e){var t;i.k.event("XtzAudioWorkletNode._onProcessorProcessMessage","type:",null===(t=e.data)||void 0===t?void 0:t.type),this._onAudioModuleProcessMessage(e)}setSyncID(e){i.k.info("XtzAudioWorkletNode.setSyncID",e),this.port.postMessage({message:"syncID",syncID:e})}postMessageToWorker(e){i.k.event("XtzAudioWorkletNode.postMessageToWorker","type:",null==e?void 0:e.type),this._worker.postMessage(e)}}}
2,76662:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WASM_DIR_PREFIX:()=>o.gU,backingTrackMode:()=>o.vN,fitMode:()=>o.Dr,metaStatus:()=>o.cG,metronomeMode:()=>o.bu,multiMeasureRestMode:()=>o.uh,notation:()=>o.Xy,playbackStatus:()=>o.CP,scrollMode:()=>o._O,soundFont:()=>o._v,supportedFile:()=>o.PR,themeMode:()=>o.sN,xtz:()=>a});var i=n(83994),o=n(40472);const a=new i.Z},73530:(e,t,n)=>{"use strict";n.d(t,{p:()=>r,s:()=>a});var i=n(49274),o=n(40472);const a="canvas_print";async function r(e){let t=[];const r=await n(25410)("./"+o.gU+"/xtzmain.js"),s=await r.default({print(...t){var n,i;null===(i=null===(n=e.listeners)||void 0===n?void 0:n.onLogMessage)||void 0===i||i.call(n,"INFO",t.join(" "))},printErr(...t){var n;if(null!==(n=e.listeners)&&void 0!==n&&n.onLogMessage){const n=["still waiting on run dependencies:","(end of list)","dependency: wasm-instantiate"].some((e=>t.includes(e)));e.listeners.onLogMessage(n?"INFO":"ERROR",t.join(" "))}},locateFile(t){var n;return""+(null!==(n=e.localPrefix)&&void 0!==n?n:"")+o.gU+"/"+t},setStatus(e){},putBinary(e,t){const n=new Uint8Array(e),i=n.length,o=this._malloc(i);new Uint8Array(this.HEAPU8.buffer,o,i).set(n),t(o,i),this._free(o)},verbose(t){var n,i;null===(i=null===(n=e.listeners)||void 0===n?void 0:n.onLogMessage)||void 0===i||i.call(n,"INFO",t)}});return i.k.ready("doCreateMainModule: WASM module loaded"),Object.assign(s,{onLogMessage:function(t,n){var i;if(null===(i=e.listeners)||void 0===i?void 0:i.onLogMessage)e.listeners.onLogMessage(t,n);else{}},onHitElement:function(t){var n,o;const a=t?JSON.parse(t):null;i.k.event("onHitElement",a),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onHitElement)||void 0===o||o.call(n,a)},onScoreLoaded:function(t,n){var o,a;const r=JSON.parse(n);i.k.event("onScoreLoaded","status:",t,"meta:",r),null===(a=null===(o=e.listeners)||void 0===o?void 0:o.onScoreLoaded)||void 0===a||a.call(o,t,r)},onPageFlipped:function(t,n,o,a){var r,s;
2i.k.event("onPageFlipped","isFlipped:",t,"current:",n,"wanted:",o,"old:",a),null===(s=null===(r=e.listeners)||void 0===r?void 0:r.onPageFlipped)||void 0===s||s.call(r,t,n,o,a)},takePrintImage:function(e,n){const i=document.getElementById(a);if(!i)return;if(!(i.getContext("webgl2")||i.getContext("webgl")))return;const o=document.createElement("canvas");o.width=i.width,o.height=i.height;const r=o.getContext("2d");r.drawImage(i,0,0);const s=i.height*(n-e),l=i.width,c=i.height*e,d=r.getImageData(0,c,l,s),u=document.createElement("canvas");u.width=l,u.height=s,u.getContext("2d").putImageData(d,0,0),t.push(u.toDataURL())},onBTrackLoaded:function(t,n,o){var a,r;i.k.event("onBTrackLoaded","track:",t,"success:",n,"trackLength:",o),null===(r=null===(a=e.listeners)||void 0===a?void 0:a.onBTrackLoaded)||void 0===r||r.call(a,t,n,o)},onCountdownTick:function(t){var n,o;i.k.event("onCountdownTick","leftTicks:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onCountdownTick)||void 0===o||o.call(n,t)},onPrintFinished:function(n){i.k.event("onPrintFinished","success:",n),setTimeout((()=>{var i,o;const r=document.getElementById(a);r&&(null===(o=null===(i=e.listeners)||void 0===i?void 0:i.onPrintFinished)||void 0===o||o.call(i,{success:n&&0<t.length,images:t,width:r.width,height:r.height}),t=[],r.remove())}),1)},onPageSetChanged:function(t,n){var o,a;i.k.event("onPageSetChanged","current:",t,"total:",n),null===(a=null===(o=e.listeners)||void 0===o?void 0:o.onPageSetChanged)||void 0===a||a.call(o,t,n)},onMetronomeChanged:function(t,n){var o,a;i.k.event("onMetronomeChanged","enabled:",t,"volume:",n),null===(a=null===(o=e.listeners)||void 0===o?void 0:o.onMetronomeChanged)||void 0===a||a.call(o,t,n)},onPlayingNotesInfo:function(t){var n,o;const a=JSON.parse(t);i.k.info("onPlayingNotesInfo",a),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onPlayingNotesInfo)||void 0===o||o.call(n,a)},onScoreStyleBase64:function(t){var n,o;i.k.event("onScoreStyleBase64"),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onScoreStyleBase64)||void 0===o||o.call(n,t)},onScoreMetaInfoRead:function(t){var n,o;const a=JSON.parse(t);i.k.event("onScoreMetaInfoRead","meta:",a),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onScoreMetaInfoRead)||void 0===o||o.call(n,a)},onSizeScrollChanged:function(t,n,o,a){var r,s;i.k.event("onSizeScrollChanged","width:",t,"height:",n,"scrollOffsetX:",o,"scrollOffsetY:",a),null===(s=null===(r=e.listeners)||void 0===r?void 0:r.onSizeScrollChanged)||void 0===s||s.call(r,t,n,o,a)},onCanvasSizeChanged:(t,n,i)=>{var o,a;return null===(a=null===(o=e.listeners)||void 0===o?void 0:o.onCanvasSizeChanged)||void 0===a?void 0:a.call(o,t,n,JSON.parse(i))},onLoopEnabledChanged:function(t){var n,o;i.k.event("onLoopEnabledChanged","enabled:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onLoopEnabledChanged)||void 0===o||o.call(n,t)},onScoreChunksRequest:function(t){var n,o;i.k.event("onScoreChunksRequest","isScoreModified:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onScoreChunksRequest)||void 0===o||o.call(n,t)},onScrollReachedBottom:function(){var t,n;i.k.event("onScrollReachedBottom"),null===(n=null===(t=e.listeners)||void 0===t?void 0:t.onScrollReachedBottom)||void 0===n||n.call(t)},onSoundLoadingChanged:function(t){var n,o;i.k.info("onSoundLoadingChanged","percent:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onSoundLoadingChanged)||void 0===o||o.call(n,t)},onScoreLoadingStarted:function(){var t,n;i.k.event("onScoreLoadingStarted"),null===(n=null===(t=e.listeners)||void 0===t?void 0:t.onScoreLoadingStarted)||void 0===n||n.call(t)},onScoreMainKeyChanged:function(t){var n,o;i.k.event("onScoreMainKeyChanged","key:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onScoreMainKeyChanged)||void 0===o||o.call(n,t)},onPlayablePartsChanged:function(t){var n,o;const a=JSON.parse(t);i.k.event("onPlayablePartsChanged",a),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onPlayablePartsChanged)||void 0===o||o.call(n,a)},onPlaybackStatusChanged:function(t){var n,o;i.k.event("onPlaybackStatusChanged","status:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onPlaybackStatusChanged)||void 0===o||o.call(n,t)},onPartAudioStateChanged:function(t,n,o,a){var r,s;i.k.event("onPartAudioStateChanged","part:",t,"volume:",n,"balance:",o,"pitch:",a),null===(s=null===(r=e.listeners)||void 0===r?void 0:r.onPartAudioStateChanged)||void 0===s||s.call(r,t,n,o,a)},onBackingTracksSwitched:function(t){var n,o;i.k.event("onBackingTracksSwitched","enabled:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onBackingTracksSwitched)||void 0===o||o.call(n,t)},onPlaybackSecondResponse:function(t){var n,o;i.k.info("onPlaybackSecondResponse","sec:",t),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onPlaybackSecondResponse)||void 0===o||o.call(n,t)},onPlayInstrumentsChanged:function(t){var n,o;const a=JSON.parse(t);i.k.event("onPlayInstrumentsChanged",a),null===(o=null===(n=e.listeners)||void 0===n?void 0:n.onPlayInstrumentsChanged)||void 0===o||o.call(n,a)},onPlaybackPositionChanged:function(t,n,o,a,r,s){var l,c;i.k.info("onPlaybackPositionChanged","sec:",t,"page:",o,"measure:",a),null===(c=null===(l=e.listeners)||void 0===l?void 0:l.onPlaybackPositionChanged)||void 0===c||c.call(l,t,n,o,a,r,s)},onGeneralAudioStateChanged:function(t,n,o){var a,r;i.k.event("onGeneralAudioStateChanged","volume:",t,"balance:",n,"muted:",o),null===(r=null===(a=e.listeners)||void 0===a?void 0:a.onGeneralAudioStateChanged)||void 0===r||r.call(a,t,n,o)},onPlayHeadPositionSet:function(t,n){var o,a;i.k.event("onPlayHeadPositionSet","success:",t,"second:",n),null===(a=null===(o=e.listeners)||void 0===o?void 0:o.onPlayHeadPositionSet)||void 0===a||a.call(o,t,n)}}),s}}
2,40472:(e,t,n)=>{"use strict";n.d(t,{CP:()=>c,Dr:()=>r,PR:()=>g,Xy:()=>l,_O:()=>d,_v:()=>u,bu:()=>s,cG:()=>o,gU:()=>i,sN:()=>a,uh:()=>p,vN:()=>h});const i="wasm",o={noError:0,fileCorrupted:1,breakLoad:2,fileTooNew:3,unknownError:4},a={day:"day",night:"night"},r={device:0,original:1},s={low:0,high:1},l={standard:0,tabulature:1,combine:2,disabled:3},c={playing:0,paused:1,stopped:2,empty:3},d={horizontal:0,vertical:1,page:2,multipage:3},u={midi:0,mdl:1,tabWithEffect:2},p={keepOriginal:0,enable:1,disable:2},h={failure:0,success:1},g={guitarPro:0,musescore:1}},49274:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var i=n(50632);const o=new class{constructor(e){this.isDebugEnabled=!0,this.isDebugEnabled=e}setDebugMode(e){this.isDebugEnabled=e}ready(...e){}error(...e){}warn(...e){this.isDebugEnabled}event(...e){this.isDebugEnabled}info(...e){this.isDebugEnabled}}(i.p.toLowerCase().includes("testing"))},50632:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});const i="4.1.2-notation.stable.27958333535"},83994:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var i=n(73530),o=n(13243),a=n(49274),r=n(50632);const s="{"!=r.p[0],l="xtz_canvas";
2class c{async init(e){a.k.info("init","version:",r.p),e.localPrefix||(e.localPrefix="./distr/"),"/"!=e.localPrefix[e.localPrefix.length-1]&&(e.localPrefix+="/"),s&&(e.localPrefix+=r.p+"/"),this._config=e,this.version=r.p;try{const t=await this._initSystem(e);this._xtzAudioModule=t.audioModule,this._xtzMainWasmModule=t.xtzwasm,this._xtzMainWasmModule.audio=this._xtzAudioModule,this._setupAudioModule(),this._initializeNotation(this._config.canvas,this._config),a.k.ready("init complete. version:",r.p)}catch(e){throw a.k.error("init failed:",e),e}}constructor(){this.version=r.p,this._xtzMainWasmModule=null,this._xtzAudioModule=null,this._config=void 0,this._canvas=void 0,this._canvasOverlay=void 0,this._printCanvas=void 0,this._canvasOverlayCtx=null,this._startX=0,this._margin={top:0,right:0,bottom:0,left:0},this._surfaceReady=!1,this._animationId=null,this._updateTimeout=null,this.mouseWheel=e=>{var t,n;let i=-e.deltaY;!(null!==(n=null===(t=this._config)||void 0===t?void 0:t.control)&&void 0!==n)||!n.isWheelReversed||(i=this._config.control.isWheelReversed?e.deltaY:-e.deltaY),this._wasmCallSafe("MouseWheel","",["number"],[i]),e.preventDefault()},this._draw=()=>this._canvas&&this._surfaceReady?(this._wasmCallSafe("Update","",[],[]),this._wasmCallSafe("Render","",[],[]),void(this._animationId=window.requestAnimationFrame(this._draw))):void this._switchToPlayerOnlyMode(),this._onWebglContextLost=e=>{},this.getTouch=e=>{if(!this._canvas)return null;const t=this._canvas.getBoundingClientRect();if("touches"in e){if(0<e.touches.length){const n=e.touches[0];return{x:n.clientX-t.left,y:n.clientY-t.top}}if(0<e.changedTouches.length){const n=e.changedTouches[0];return{x:n.clientX-t.left,y:n.clientY-t.top}}return null}return{x:e.clientX-t.left,y:e.clientY-t.top}},this.onDown=e=>{var t,n;if(!this.isMultipleTouch(e)){const i=this.getTouch(e);if(i){if("touches"in e&&(null===(n=null===(t=this._config)||void 0===t?void 0:t.control)||void 0===n?void 0:n.isSwipeEnabled)&&1===e.touches.length){e.preventDefault();const t=e.changedTouches[0];this._startX=t.pageX}this._wasmCallSafe("MouseDown","",["number","number"],[i.x,i.y])}}},this.onMove=e=>{var t,n;if(!this.isMultipleTouch(e)){const i=this.getTouch(e);if(i){e instanceof MouseEvent?1===e.buttons&&this._wasmCallSafe("MouseMove","number",["number","number"],[i.x,i.y])&&(null===(n=e.preventDefault)||void 0===n||n.call(e)):this._wasmCallSafe("MouseMove","number",["number","number"],[i.x,i.y])?null===(t=e.preventDefault)||void 0===t||t.call(e):this._wasmCallSafe("EventTouchCancel","",[],[])}}},this.onUp=e=>{var t,n,i,o;if(!this.isMultipleTouch(e)){const a=this.getTouch(e);if(a){if("touches"in e&&(null===(n=null===(t=this._config)||void 0===t?void 0:t.control)||void 0===n?void 0:n.isSwipeEnabled)&&1===e.changedTouches.length){const t=e.changedTouches[0].pageX-this._startX;if((null===(o=null===(i=this._config)||void 0===i?void 0:i.listeners)||void 0===o?void 0:o.onSwipeDetected)&&Math.abs(t)>50)return void this._config.listeners.onSwipeDetected(0<t)}this._wasmCallSafe("MouseUp","",["number","number"],[a.x,a.y])}}}}setBPM(e){a.k.info("setBPM",e);try{this._wasmCallSafe("SetBPM","",["number"],[e])}catch(e){throw a.k.error("setBPM failed:",e),e}}setColorScheme(e){a.k.info("setColorScheme",e);try{this._wasmCallSafe("SetColorScheme","",["string"],[e])}catch(e){throw a.k.error("setColorScheme failed:",e),e}}setZoom(e){a.k.info("setZoom",e);try{this._wasmCallSafe("SetZoom","",["number"],[e])}catch(e){throw a.k.error("setZoom failed:",e),e}}setFitMode(e){a.k.info("setFitMode",e);try{this._wasmCallSafe("SetFitMode","",["number"],[e])}catch(e){throw a.k.error("setFitMode failed:",e),e}}setMidiProgramForPart(e,t){a.k.info("setMidiProgramForPart","part:",e,"program:",t);try{this._wasmCallSafe("SetMidiProgramForPart","",["number","number"],[e,t])}catch(e){throw a.k.error("setMidiProgramForPart failed:",e),e}}resizeCanvas(e,t){var n;const i=null!==(n=window.devicePixelRatio)&&void 0!==n?n:1,o=Math.floor(e.clientWidth*i),r=Math.floor(e.clientHeight*i);(e.width!==o||e.height!==r)&&(a.k.info("resizeCanvas",o,"x",r),e.width=o,e.height=r,t&&(t.width=o,t.height=r))}reinitializeCanvas(e){a.k.info("reinitializeCanvas"),this._config?this._initializeCanvas(e,this._config):a.k.error("reinitializeCanvas: could not initialize canvas without config")}setupSurface(e){a.k.info("setupSurface"),this._canvas&&this._removeAllCanvasEventListeners(this._canvas),this._addCanvasListeners(e,this._config),e.id=l,this._canvas=e,this._wasmCallSafe("SetupSurface","",["string"],[l]);const t=window.devicePixelRatio;this._wasmCallSafe("ResizeSurface","",["number","number","number","number"],[e.clientWidth*t,e.clientHeight*t,e.clientWidth,e.clientHeight]),this._switchToRenderAndPlayerMode()}destroySurface(){a.k.info("destroySurface"),this._switchToPlayerOnlyMode(),this._wasmCallSafe("DestroySurface","",[],[])}deinitializeCanvas(){return a.k.info("deinitializeCanvas"),this._canvas?(this._removeAllCanvasEventListeners(this._canvas),void(this._canvas=void 0)):void a.k.error("deinitializeCanvas: called on null canvas")}resizeSurface(e){a.k.info("resizeSurface",e.width,"x",e.height,"client:",e.clientWidth,"x",e.clientHeight),this._wasmCallSafe("ResizeSurface","",["number","number","number","number"],[e.width,e.height,e.clientWidth,e.clientHeight]),0==e.width||0==e.height?this._switchToPlayerOnlyMode():this._switchToRenderAndPlayerMode()}play(e){var t;a.k.event("play","countdown:",e);try{this._wasmCallSafe("Play","",["number"],[e?1:0]),null===(t=this._xtzAudioMo
2dule)||void 0===t||t.onDrivereResume()}catch(e){throw a.k.error("play failed:",e),e}}rewind(){a.k.event("rewind");try{this._wasmCallSafe("Rewind","",[],[])}catch(e){throw a.k.error("rewind failed:",e),e}}pause(){a.k.event("pause");try{this._wasmCallSafe("Pause","",[],[])}catch(e){throw a.k.error("pause failed:",e),e}}stop(){a.k.event("stop");try{this._wasmCallSafe("Stop","",[],[])}catch(e){throw a.k.error("stop failed:",e),e}}setPlayPositionByTime(e){a.k.info("setPlayPositionByTime","sec:",e);try{this._wasmCallSafe("SetPlayPositionByTime","",["number"],[e])}catch(e){throw a.k.error("setPlayPositionByTime failed:",e),e}}requestPlaybackSecond(){a.k.info("requestPlaybackSecond");try{this._wasmCallSafe("RequestPlaybackSecond","",[],[])}catch(e){throw a.k.error("requestPlaybackSecond failed:",e),e}}setPlayableParts(e){a.k.info("setPlayableParts",e);try{this._wasmCallSafe("SetPlayableParts","",["string"],[JSON.stringify(e)])}catch(e){throw a.k.error("setPlayableParts failed:",e),e}}setMetronomeEnabled(e){a.k.info("setMetronomeEnabled",e);try{this._wasmCallSafe("SetMetronomeEnabled","",["number"],[e?1:0])}catch(e){throw a.k.error("setMetronomeEnabled failed:",e),e}}setLoopEnabled(e){a.k.info("setLoopEnabled",e);try{this._wasmCallSafe("SetLoopEnabled","",["number"],[e?1:0])}catch(e){throw a.k.error("setLoopEnabled failed:",e),e}}enableLoop(e,t){a.k.info("enableLoop","startSec:",e,"endSec:",t);try{this._wasmCallSafe("EnableLoop","",["number, number"],[e,t])}catch(e){throw a.k.error("enableLoop failed:",e),e}}disableLoop(){a.k.info("disableLoop");try{this._wasmCallSafe("DisableLoop","",[],[])}catch(e){throw a.k.error("disableLoop failed:",e),e}}setLoopRegion(e,t){a.k.info("setLoopRegion","firstMeasure:",e,"lastMeasure:",t);try{this._wasmCallSafe("SetLoopRegion","",["number, number"],[e,t])}catch(e){throw a.k.error("setLoopRegion failed:",e),e}}setBackingTrackForPart(e,t){var n;a.k.info("setBackingTrackForPart","part:",e,"bufSize:",t.byteLength);try{null===(n=this._xtzMainWasmModule)||void 0===n||n.putBinary(t,((t,n)=>{this._wasmCallSafe("SetBackingTrack","",["number","number","number"],[e,t,n])}))}catch(e){throw a.k.error("setBackingTrackForPart failed:",e),e}}loadBackingTracksByUrls(e){a.k.info("loadBackingTracksByUrls",e);try{this._wasmCallSafe("LoadBackingTracksByUrls","",["string"],[JSON.stringify(e)])}catch(e){throw a.k.error("loadBackingTracksByUrls failed:",e),e}}switchOnBackingTracks(e){a.k.info("switchOnBackingTracks",e);try{this._wasmCallSafe("SwitchOnBackingTracks","",["number"],[e?1:0])}catch(e){throw a.k.error("switchOnBackingTracks failed:",e),e}}setTransposeValue(e){a.k.info("setTransposeValue",e);try{this._wasmCallSafe("SetTransposeValue","",["number"],[e])}catch(e){throw a.k.error("setTransposeValue failed:",e),e}}setNotationMode(e){a.k.info("setNotationMode",e);try{this._wasmCallSafe("SetNotationMode","",["number"],[e])}catch(e){throw a.k.error("setNotationMode failed:",e),e}}setScrollMode(e){a.k.info("setScrollMode",e);try{this._wasmCallSafe("SetScrollMode","",["number"],[e])}catch(e){throw a.k.error("setScrollMode failed:",e),e}}selectPage(e){a.k.info("selectPage",e);try{this._wasmCallSafe("SelectPage","",["number"],[e])}catch(e){throw a.k.error("selectPage failed:",e),e}}setGeneralVolume(e){a.k.info("setGeneralVolume",e);try{this._wasmCallSafe("SetGeneralVolume","",["number"],[e])}catch(e){throw a.k.error("setGeneralVolume failed:",e),e}}setGeneralBalance(e){a.k.info("setGeneralBalance",e);try{this._wasmCallSafe("SetGeneralBalance","",["number"],[e])}catch(e){throw a.k.error("setGeneralBalance failed:",e),e}}setGeneralPitch(e){a.k.info("setGeneralPitch",e);try{this._wasmCallSafe("SetGeneralPitch","",["number"],[e])}catch(e){throw a.k.error("setGeneralPitch failed:",e),e}}setPlaybackSpeed(e){a.k.info("setPlaybackSpeed",e);try{this._wasmCallSafe("SetPlaybackSpeed","",["number"],[e])}catch(e){throw a.k.error("setPlaybackSpeed failed:",e),e}}setPartVolume(e,t){a.k.info("setPartVolume","part:",e,"volume:",t);try{this._wasmCallSafe("SetPartVolume","",["number","number"],[e,t])}catch(e){throw a.k.error("setPartVolume failed:",e),e}}setPartBalance(e,t){a.k.info("setPartBalance","part:",e,"pan:",t);try{this._wasmCallSafe("SetPartBalance","",["number","number"],[e,t])}catch(e){throw a.k.error("setPartBalance failed:",e),e}}movePlaybackPositionToNextBit(){a.k.event("movePlaybackPositionToNextBit");try{this._wasmCallSafe("MovePlaybackPositionToNextBit","",[],[])}catch(e){throw a.k.error("movePlaybackPositionToNextBit failed:",e),e}}movePlaybackPositionToPrevBit(){a.k.event("movePlaybackPositionToPrevBit");try{this._wasmCallSafe("MovePlaybackPositionToPrevBit","",[],[])}catch(e){throw a.k.error("movePlaybackPositionToPrevBit failed:",e),e}}movePlaybackPositionToNextMeasure(){a.k.event("movePlaybackPositionToNextMeasure");try{this._wasmCallSafe("MovePlaybackPositionToNextMeasure","",[],[])}catch(e){throw a.k.error("movePlaybackPositionToNextMeasure failed:",e),e}}movePlaybackPositionToPrevMeasure(){a.k.event("movePlaybackPositionToPrevMeasure");try{this._wasmCallSafe("MovePlaybackPositionToPrevMeasure","",[],[])}catch(e){throw a.k.error("movePlaybackPositionToPrevMeasure failed:",e),e}}setColorSchemeColors(e){a.k.info("setColorSchemeColors",e);try{this._wasmCallSafe("SetColorSchemeColors","",["string"],[e])}catch(e){throw a.k.error("setColorSchemeColors failed:",e),e}}print(){a.k.info("print"),document.fullscreenElement?document.exitFullscreen().then((()=>{setTimeout((()=>{this._startPrintProcess()}),100)})).catch((e=>{throw a.k.error("print exitFullscreen failed:",e),e})):this._startPrintProcess()}setMultiMeasureRestMode(e){a.k.info("setMultiMeasureRestMode",e);try{this._wasmCallSafe("SetMultiMeasureRestMode","",["number"],[e])}catch(e){throw a.k.error("setMultiMeasureRestMode failed:",e),e}}hitElement(e){a.k.warn("hitElement",e)}setSharedParams(e={}){a.k.info("setSharedParams",e);try{this._wasmCallSafe("SetParams","",["string"],[JSON.stringify(e)])}catch(e){throw a.k.error("setSharedParams failed:",e),e}}setPageMargin(e){a.k.info("setPageMargin",e);try{this._margin=e,this._wasmCallSafe("SetPointsPageMargins","",["number","number","number","number"],[e.top,e.right,e.bottom,e.left])}catch(e){throw a.k.error("setPageMargin failed:",e),e}}readScoreMetaInfo(e,t){var n;a.k.info("readScoreMetaInfo","bufSize:",e.byteLength,"loadParams:",t),null===(n=this._xtzMainWasmModule)||void 0===n||n.putBinary(e,((e,n)=>{t||(t={}),this._wasmCallSafe("ReadScoreMetaInfo","number",["number","number","string"],[e,n,JSON.stringify(t)])}))}load(e,t={}){var n;a.k.info("load","bufSize:",e.byteLength,"loadParams:",t);let i=0;return null===(n=this._xtzMainWasmModule)||void 0===n||n.putBinary(e,((e,n)=>{i=this._wasmCallSafe("Load","number",["number","number","string"],[e,n,JSON.stringify(t)]),a.k.info("load complete, status:",i),this._draw()})),i}loadFirstScoreChunk(e,t,n){var i;a.k.info("loadFirstScoreChunk","bufSize:",e.byteLength,"loadParams:",t),null===(i=this._xtzMainWasmModule)||void 0===i||i.putBinary(e,((e,i)=>{t||(t={}),this._wasmCallSafe("LoadFirstScoreChunk","number",["number","number","string","number"],[e,i,JSON.stringify(t),n?1:0]),this._draw()}))}scoreChunksResponse(e,t){var n;a.k.info("scoreChunksResponse","bufSize:",e.byteLength,"isLastChunk:",t),null===(n=this._xtzMainWasmModule)||void 0===n||n.putBinary(e,((e,n)=>{this._wasmCallSafe("ScoreChunksResponse","",["number","number","number"],[e,n,t?1:0])}))}setPageDimensions(e,t){a.k.info("setPageDimensions",e,"x",t);try{this._wasmCallSafe("SetPageDimensions","",["number","number"],[e,t])}catch(e){throw a.k.error("setPageDimensions failed:",e),e}}setScoreVerticalModeEnabled(e){a.k.info("setScoreVerticalModeEnabled",e);try{this._wasmCallSafe("SetScoreVerticalModeEnabled","",["number"],[e])}catch(e){throw a.k.error("setScoreVerticalModeEnabled failed:",e),e}}setPlayHeadVisible(e){a.k.info("setPlayHeadVisible",e);try{this._wasmCallSafe("SetPlayHeadVisible","",["number"],[e?1:0])}catch(e){throw a.k.error("setPlayHeadVisible failed:",e),e}}requestScoreStyleBase64(){a.k.info("requestScoreStyleBase64");try{this._wasmCallSafe("RequestScoreStyleBase64","",[],[])}catch(e){throw a.k.error("requestScoreStyleBase64 failed:",e),e}}setAutoscrollEnabled(e,t){a.k.info("setAutoscrollEnabled","flip:",e,"scroll:",t);try{this._wasmCallSafe("SetAutoscrollEnabled","",["number","number"],[e,t])}catch(e){throw a.k.error("setAutoscrollEnabled failed:",e),e}}selectSinglePart(e){a.k.info("selectSinglePart",e),this._wasmCallSafe("SelectPart","",["number"],[e])}setNoteSize(e){a.k.info("setNoteSize",e),this._wasmCallSafe("SetNoteSize","",["number"],[e])}setNoteDurationVisible(e){a.k.info("setNoteDurationVisible",e),this._wasmCallSafe("SetNoteDurationVisible","",["number"],[e?1:0])}setScrollOffset(e,t){a.k.info("setScrollOffset","x:",e,"y:",t),this._wasmCallSafe("SetScrollOffset","",["number","number"],[e,t])}showLyricsOnEachPart(e){a.k.info("showLyricsOnEachPart","enabled:",e),this._wasmCallSafe("ShowLyricsOnEachPart","",["number"],[e?1:0])}getCurrentPageIndex(){return a.k.info("getCurrentPageIndex"),this._wasmCallSafe("GetCurrentPageIndex","
2number",[],[])}getPagesCount(){return a.k.info("getPagesCount"),this._wasmCallSafe("GetPagesCount","number",[],[])}enableYouTubePlayback(e,t){const n=t?JSON.stringify(t):"";a.k.info("enableYouTubePlayback enable:",e,"timedata",n),this._wasmCallSafe("EnableYouTubePlayback","",["number","string"],[e?1:0,n])}async _initSystem(e){a.k.info("_initSystem");try{const t=await(0,i.p)(e),n=await(0,o.c)(e);return a.k.info("_initSystem complete"),{audioModule:n,xtzwasm:t}}catch(e){throw a.k.error("_initSystem failed:",e),e}}_setupAudioModule(){this._xtzAudioModule.rpcListen=(e,t)=>{a.k.event("rpcListen","method:",e,"args:",t);try{this._wasmCallSafe("RpcListen","",["number","string"],[e,t])}catch(e){a.k.error("rpcListen failed:",e)}},this._xtzAudioModule.syncTimestamp=e=>{a.k.info("syncTimestamp",e);try{this._wasmCallSafe("SyncTimestamp","",["number"],[e])}catch(e){a.k.error("syncTimestamp failed:",e)}}}_addCanvasListeners(e,t){var n;e.addEventListener("webglcontextlost",this._onWebglContextLost,!1),e.addEventListener("mousedown",this.onDown,!1),e.addEventListener("mousemove",this.onMove,!1),e.addEventListener("mouseup",this.onUp,!1),e.addEventListener("touchstart",this.onDown,{passive:!1}),e.addEventListener("touchmove",this.onMove,{passive:!1}),e.addEventListener("touchend",this.onUp,{passive:!1}),(null===(n=null==t?void 0:t.control)||void 0===n?void 0:n.isWheelEnabled)&&e.addEventListener("wheel",this.mouseWheel,!1)}_removeAllCanvasEventListeners(e){var t,n;e.removeEventListener("webglcontextlost",this._onWebglContextLost,!1),e.removeEventListener("mousedown",this.onDown,!1),e.removeEventListener("mousemove",this.onMove,!1),e.removeEventListener("mouseup",this.onUp,!1),e.removeEventListener("touchstart",this.onDown,!1),e.removeEventListener("touchmove",this.onMove,!1),e.removeEventListener("touchend",this.onUp,!1),(null===(n=null===(t=this._config)||void 0===t?void 0:t.control)||void 0===n?void 0:n.isWheelEnabled)&&e.removeEventListener("wheel",this.mouseWheel,!1)}_initializeCanvas(e,t){a.k.info("_initializeCanvas"),this._addCanvasListeners(e,t),this._canvasOverlay=t.canvasOverlay,this._canvasOverlayCtx=this._canvasOverlay?this._canvasOverlay.getContext("2d"):null,this._canvas=e,this._canvas.id=l,this.resizeCanvas(this._canvas,this._canvasOverlay)}_initializeNotation(e,t){var n,i,o,s;a.k.info("_initializeNotation"),e&&this._initializeCanvas(e,t);const l=e?e.width:window.innerWidth,c=e?e.height:window.innerHeight,d=window.devicePixelRatio;this._wasmCallSafe("Initialize","number",["number","number","number","number","number","string","number"],[l,c,l/d,c/d,!(null===(n=t.verbose)||void 0===n)&&n,r.p,!!window.AudioWorklet]);const u=null!==(o=null===(i=t.view)||void 0===i?void 0:i.margin)&&void 0!==o?o:{top:0,right:0,bottom:0,left:0};this._wasmCallSafe("SetPointsPageMargins","",["number","number","number","number"],[u.top,u.right,u.bottom,u.left]),this._margin=u,this._wasmCallSafe("RegisterSFProvider","",["string"],[t.audio.soundfontUri]),null===(s=this._xtzMainWasmModule)||void 0===s||s.setStatus("Inited"),this._surfaceReady=!0,a.k.ready("_initializeNotation complete")}isMultipleTouch(e){return"touches"in e&&1<e.touches.length}_switchToRenderAndPlayerMode(){this._surfaceReady||(this._surfaceReady=!0,!this._animationId&&(this._animationId=window.requestAnimationFrame(this._draw.bind(this)))),this._stopUpdateLoop()}_switchToPlayerOnlyMode(){this._surfaceReady&&(this._surfaceReady=!1,this._animationId&&(window.cancelAnimationFrame(this._animationId),this._animationId=null)),this._startUpdateLoop()}_startUpdateLoop(){this._stopUpdateLoop();const e=()=>{this._wasmCallSafe("Update","",[],[]),this._updateTimeout=window.setTimeout(e,1e3/60)};e()}_stopUpdateLoop(){this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=null)}_startPrintProcess(){var e;a.k.info("_startPrintProcess");const t=this._setupPrint();if(t){const n=Object.assign({},this._margin);try{this.setPageMargin({top:0,right:0,bottom:0,left:0}),this._wasmCallSafe("Print","",["string"],[t])}catch(t){a.k.error("_startPrintProcess failed:",t),null===(e=this._xtzMainWasmModule)||void 0===e||e.onLogMessage("ERROR",t+"")}finally{this.setPageMargin(n)}}}_setupPrint(){return this._canvas?this._xtzMainWasmModule?(this._printCanvas=document.createElement("canvas"),this._printCanvas.id=i.s,this._printCanvas.setAttribute("style","backgroudColor: #ffffff; position: fixed; top: -10000px; left: -10000px; z-index: 2000;"),this._printCanvas.width=this._canvas.width,this._printCanvas.height=this._canvas.height,document.body.appendChild(this._printCanvas),this._printCanvas.id
2):void a.k.error("_setupPrint: wasm module must be initialized for print"):void a.k.error("_setupPrint: canvas must be initialized for print")}_wasmCallSafe(e,t,n,i){return this._xtzMainWasmModule?this._xtzMainWasmModule.ccall(e,t,n,i):void a.k.warn("_wasmCallSafe: called before init:",e)}}},68974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>C});var i=n(502),o=n(40330),a=n(30366),r=n(54143),s=n(53972),l=n(55113),c=n(20386),d=n.n(c),u=n(20228),p=n(53675),h=n(2908),g=n(56693),m=n(58022),v=n(53618),b=n(24727),f=n(24517);const y=({scrollAreaRef:e,scrollParentRef:t})=>{const n=(0,v.Z)([b.F6,e=>{var t;return 1e3*(null===(t=e.proTab)||void 0===t?void 0:t.autoScrollTime)||(0,r.Mx)(e)},e=>{var t,n;return(null===(t=e.proTab)||void 0===t?void 0:t.isPlaying)&&(null===(n=e.proTab)||void 0===n?void 0:n.isAutoScrollActive)},b.my]),i=n[0],o=n[1],a=n[2],s=n[3];return(0,g.a)({scrollAreaRef:e,scrollParentRef:t,isPlaying:a,currentTime:o,scrollMap:i,tabLength:s}),(0,f.tZ)(f.HY,{children:null})},x=({children:e})=>{const t=(0,v.Z)([e=>{var t;return null===(t=e.proTab)||void 0===t?void 0:t.isFullscreen}])[0];return(0,f.tZ)(m.M,{isFullScreenEnabled:t,getScrollParentRef:(e,t)=>{const n=document.getElementById("pro-player-scroll-container");return t&&n?n:window},Control:y,children:e})};var k;const C=(0,o.$j)((e=>{var t,n;return{autoScrollTime:1e3*(null===(t=e.proTab)||void 0===t?void 0:t.autoScrollTime)||(0,r.Mx)(e),startTempoBpm:(null===(n=e.proTab)||void 0===n?void 0:n.startTempoBpm)||0,isDemoAccess:(0,l.$3)(e)}}))(k=class extends i.Component{render(){const e=this.props,t=e.autoScrollTime,n=e.startTempoBpm,i=e.isDemoAccess;return(0,f.BX)("div",{className:d()(h.Z.content,{[h.Z.withExtraPadding]:i}),children:[(0,f.tZ)(p.Z,{}),(0,f.tZ)(u.Z,{}),(0,f.tZ)(a.fJ,{children:(0,f.tZ)(x,{children:(0,f.tZ)(s.Y,{outsideOffsetWidth:0,startTempoBpm:n,autoScrollTime:t})})})]})}})||k},47812:(e,t,n)=>{"use strict";n.d(t,{J$:()=>d,KI:()=>m,KX:()=>p,RP:()=>b,UD:()=>s,Vc:()=>f,W:()=>a,bW:()=>l,de:()=>g,ig:()=>x,jJ:()=>r,nO:()=>c,nm:()=>y,qE:()=>v,tZ:()=>h,xP:()=>k});var i=n(24838);const o="text",a="tab",r="ch",s="syllable",l="\n",c=e=>e===l,d=e=>"string"==typeof e,u=e=>i._N.isOf(e,r),p=e=>i._N.isOf(e,a),h=e=>i._N.isOf(e,o),g=e=>d(e)&&0===e.trim().length,m=e=>h(e)&&""===e.content.join("").trim(),v=e=>h(e)&&0<(e=>e.content.filter(u).length)(e),b=(e=[],t={})=>i._N.create(o,t,e),f=(e=[],t={})=>i._N.create(a,t,e),y=(e=[],t={})=>i._N.create("column",t,e),x=(e=[],t={})=>i._N.create("page",t,e),k=e=>{return d(e)?e.length:"object"==typeof(t=e)&&t.tag?e.content.reduce(((e,t)=>e+k(t)),0):0;var t}},73942:(e,t,n)=>{"use strict";n.d(t,{Au:()=>p,Fe:()=>u,ON:()=>r,Yj:()=>h,ao:()=>s});var i=n(33242),o=n(54577),a=n(64829);const r=({size:e,octaveCount:t})=>{const n=o.S0*t;return a.Z[e].whiteKeyWidth*n+a.Z[e].borderWidth*(n+1)},s=({size:e})=>a.Z[e].whiteKeyHeight+a.Z[e].borderWidth+a.Z[e].borderTopWidth,l={0:0,2:1,4:2,5:3,7:4,9:5,11:6},c={1:0,3:1,6:3,8:4,10:5},d=({baseDisplayNote:e,index:t,whiteNoteStep:n})=>o.S0*n*t-("F"===e?3*n:0),u=({size:e,index:t,color:n,baseDisplayNote:r})=>{const l=a.Z[e],c=l.whiteKeyWidth,u=l.blackKeyWidth,p=l.blackKeyHeight,h=l.borderWidth,g=l.borderRadius,m=c+h,v=d({baseDisplayNote:r,index:t,whiteNoteStep:m});return[...(0,i.w6)(o.S0).map((t=>{const i=v+m*t+h/2;return 0>i?null:{shape:"rect",props:{x:i,y:0,height:s({size:e})-h/2,width:m,radius:g},style:{stroke:n,strokeWidth:h}}})),...(0,i.w6)(o.R3+1).map((e=>2===e?null:{shape:"rect",props:{x:v+m*(e+1)-u/2+h/2,y:0,height:p,width:u,radius:g},style:{fill:n}}))].filter((e=>e))},p=({size:e,color:t,width:n})=>({shape:"rect",props:{x:0,y:0,width:n,height:a.Z[e].borderTopWidth,radius:0},style:{fill:t}}),h=({size:e,color:t,bgColor:n,octaveIndex:i,keyIndex:r,baseDisplayNote:u})=>{const p=o.p3.includes(r),h=a.Z[e],g=h.fingerWhiteKeySize,m=h.fingerBlackKeyBorderWidth,v=h.fingerBlackKeySize,b=h.borderWidth,f=h.whiteKeyWidth,y=h.blackKeyHeight,x=f+b,k=d({baseDisplayNote:u,index:i,whiteNoteStep:x});if(p){return{shape:"circle",props:{x:k+x*(c[r]+1)+b/2,y:y-v,radius:v/2},style:{fill:n,stroke:t,strokeWidth:m}}}const C=g/2;return{shape:"circle",props:{x:k+x*(l[r]+.5)+b/2,y:s({size:e})-C-(f-g+b)/2-b,radius:C},style:{fill:t}}}}
2,64829:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(1896);const o={[i.sA]:{whiteKeyWidth:9,whiteKeyHeight:39,blackKeyWidth:5,blackKeyHeight:26,borderWidth:1,borderTopWidth:2,borderRadius:2,fingerWhiteKeySize:5,fingerBlackKeySize:7,fingerBlackKeyBorderWidth:2},[i.Fj]:{whiteKeyWidth:13,whiteKeyHeight:61,blackKeyWidth:7,blackKeyHeight:40,borderWidth:1,borderTopWidth:2,borderRadius:2,fingerWhiteKeySize:7,fingerBlackKeySize:9,fingerBlackKeyBorderWidth:2}}},32138:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(502),o=n(83629),a=n(82848),r=n(48525),s=n(16454),l=n(58126),c=n(24517);const d=({onNext:e,onPrev:t,text:n,isControlsDisabled:i})=>(0,c.BX)("footer",{className:r.Z.footer,children:[(0,c.tZ)(o.ZP,{leftIcon:{name:a.vd,size:s.Ce,state:s.qr},className:r.Z.button,onClick:t,disabled:i}),(0,c.tZ)("div",{className:r.Z.paging,children:n}),(0,c.tZ)(o.ZP,{leftIcon:{name:a.db,size:s.Ce,state:s.qr},className:r.Z.button,onClick:e,disabled:i})]}),u=({name:e,size:t,isPiano:n,isUkulele:o,isHeaderHidden:a,isControlsHidden:s=!1,getSliderText:u,showControls:p=!1,disabled:h=!1,variations:g,defaultVariation:m,onChange:v,renderVariation:b,isHighlighted:f,bottomButtonText:y,onChordCarouselItemClick:x})=>{const k=(0,i.useState)(p),C=k[0],S=k[1],w=(0,i.useState)(m),P=w[0],T=w[1],Z=(0,i.useState)(),_=Z[0],M=Z[1],I=(0,i.useMemo)((()=>u(P)),[u,P]),N=e&&x&&"function"==typeof x;(0,i.useEffect)((()=>{T(m)}),[m]);const A=()=>{M("prev")},z=()=>{M("next")},L=(0,i.useMemo)((()=>_?[0>P-1?g.length-1:P-1,P,P+1>=g.length?0:P+1]:[g?P:null]),[g,P,_]),E=(0,i.useMemo)((()=>y?(0,c.tZ)("div",{className:r.Z.bottomButtonWrapper,children:(0,c.tZ)("span",{className:r.Z.bottomButton,children:y})}):!s&&C?(0,c.tZ)(d,{onNext:z,onPrev:A,text:I,isControlsDisabled:h||1===(null==g?void 0:g.length)}):null),[y,s,C,I,h,g]);return(0,c.tZ)(l.Z,{name:e,size:t,isPiano:n,isUkulele:o,onTransitionEnd:()=>{const e=(()=>{if("next"===_){const e=P+1;return e>=g.length?0:e}const e=P-1;return 0>e?g.length-1:e})();M(null),T(e),v(e)},direction:_,onWrapperClick:()=>{N&&x(e)},onMouseEnter:()=>{s||S(!0)},onMouseLeave:()=>{s||p||S(!1)},withOnWrapperClick:N,isHighlighted:f,isHeaderHidden:a,Footer:E,withFooterButton:!!y,withAbsoluteFooter:!y,children:L.map(b)})}},58126:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(20386),o=n.n(i),a=n(80725),r=n(48525),s=n(24517);const l=({name:e,size:t,onTransitionEnd:n,direction:i,isHeaderHidden:l=!1,isHighlighted:c,isUkulele:d,isPiano:u,withFooterButton:p,withAbsoluteFooter:h,onWrapperClick:g,onMouseEnter:m,onMouseLeave:v,withOnWrapperClick:b,Footer:f,children:y})=>{const x=(0,a.F)().isMobile;return(0,s.BX)("div",{onMouseEnter:m,onMouseLeave:v,onClick:g,className:o()(r.Z.chord,r.Z["chord"+t],h&&!b&&r.Z.chordWithFooter,x&&r.Z.isMobile,u&&r.Z.pianoChord,d&&r.Z.ukuleleChord,b&&r.Z.buttonBehavior,u&&!!p&&r.Z.pianoMobile),children:[!l&&(0,s.tZ)("header",{className:r.Z.header,children:c?(0,s.tZ)("span",{className:r.Z.highlighted,children:e}):e}),(0,s.tZ)("div",{className:r.Z.carousel,children:(0,s.tZ)("div",{className:o()([r.Z.carouselSlider,r.Z[i]]),onTransitionEnd:n,children:y})}),f]})}},34920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(502),o=n(33242),a=n(1896),r=n(89391),s=n(80725),l=n(73942),c=n(82002),d=n(24517);const u=window.devicePixelRatio,p=({size:e=a.sA,octaveCount:t=2,fingers:n=[],baseDisplayNote:p})=>{const h=(0,s.F)().isDarkTheme,g=(0,i.useMemo)((()=>(0,l.ON)({size:e,octaveCount:t})),[e]),m=(0,i.useMemo)((()=>(0,l.ao)({size:e})),[e]),v=(0,i.useRef)();return(0,i.useEffect)((()=>{const i=h?c.qH:c.l3,a=h?c.Sx:c.AP,s=v.current.getContext("2d"),d=({shape:e,props:t,style:n})=>{("circle"===e?r.bC:r.DM)({ctx:s,props:t,style:n})};s.clearRect(0,0,g*u,m*u),d((0,l.Au)({size:e,color:i,width:g})),(0,o.w6)(t+("F"===p?1:0)).forEach((t=>{(0,l.Fe)({size:e,index:t,color:i,baseDisplayNote:p}).forEach(d)})),n.forEach((t=>{d((0,l.Yj)({size:e,color:i,bgColor:a,baseDisplayNote:p,...t}))}))}),[n,t,e,h]),(0,d.tZ)("canvas",{ref:v,width:g*u,height:m*u,style:{height:m,width:g}})}},57038:(e,t,n)=>{"use strict";n.d(t,{R3:()=>h,gR:()=>g,MY:()=>m,XA:()=>v});var i=n(42640),o=n(20386),a=n.n(o),r=n(69389),s=n(23278),l=n.n(s),c=n(92515),d={injectType:"styleTag",insert:"head",singleton:!1};l()(c.Z,d);const u=c.Z.locals||{};var p=n(67489);(0,i.Z)({as:"h1",className:a()(u.heading,p.L)})(r.EN),(0,i.Z)({as:"h1",className:a()(u.heading,p.L)})(r.r9),(0,i.Z)({as:"h2",className:a()(u.heading,p.L)})(r.VU),(0,i.Z)({as:"h3",className:a()(u.heading,p.L)})(r.TP);const h=(0,i.Z)({as:"h3",className:a()(u.heading,p.L)})(r.CM),g=(0,i.Z)({as:"p",className:p.L})(r.mS),m=(0,i.Z)({as:"p",className:p.L})(r.Kh),v=((0,i.Z)({as:"p",className:p.L})(r.VI),(0,i.Z)({as:"p",className:p.L})(r.xh))},9285:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>h,Qn:()=>g,ZP:()=>f,eg:()=>p,im:()=>m});var i=n(502),o=n(20386),a=n.n(o),r=n(80725),s=n(83629),l=n(3016),c=n(33351),d=n(50019),u=n(24517);const p=e=>(0,u.tZ)(c.Z,{className:l.Z.tab,rel:e.rel,text:e.text,url:e.url,onClick:e.onClick},e.text),h=e=>(0,u.tZ)("div",{className:l.Z.tabActive,children:e.text},e.text),g=(e,t,n)=>(0,u.tZ)("div",{onClick:n,className:l.Z.tab,role:"button",children:e.text},e.text),m=({children:e,className:t,isJoined:n,isStretched:i,isTextUppercase:o,isFeedSelector:s,type:c})=>{const d=(0,r.F)(),p=d.isMobile,h=d.isDarkTheme;return(0,u.tZ)("nav",{className:a()([t,l.Z.tabs,l.Z[h?"dark":"light"],{[l.Z.buttonsTab]:"button"===c,[l.Z.joinedTab]:n,[l.Z.stretchedTab]:i,[l.Z.textUppercase]:o,[l.Z.mobile]:p,[l.Z.isFeedSelector]:s}]),children:e})},v=({isActive:e,activeStyles:t,...n})=>(0,u.tZ)(s.ZP,{state:e?d.Y3:d.vI,...n,className:a()([t],{[l.Z.tabActiveButton]:e}),type:"text"}),b=({data:e,onChange:t=()=>{},activeIndex:n,activeStyles:o,type:a,...r})=>(0,u.tZ)(m,{...r,type:a,children:e.map((({Wrapper:e=i.Fragment,...r},s)=>"button"===a?(0,u.tZ)(e,{children:(0,u.tZ)(v,{isActive:s===n,activeStyles:s===n&&o,onClick:()=>t(r),...r})}):s===n?h(r):r.url?p(r):g(r,s,(()=>t(s,r.text)))))});b.defaultProps={isJoined:!1,isStretched:!1,isTextUppercase:!1,className:"",activeStyles:""};const f=b},39003:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var i=n(20386),o=n.n(i),a=n(66421);var r=n(27732);const s="contained";var l=n(23278),c=n.n(l),d=n(25069),u={injectType:"styleTag",insert:"head",singleton:!1};c()(d.Z,u);const p=d.Z.locals||{};var h=n(24517);const g=e=>e?"light":"dark",m=(0,a.Z)((({size:e,state:t,text:n,type:i,isLightTheme:a})=>"point"===i?(0,h.tZ)("span",{className:o()(p.point,p[e],p[t])}):i===s?(0,h.tZ)("span",{className:o()(p.contained,p[e],p[t]),children:n}):(0,h.tZ)("span",{className:o()(p.text,p[e],p[g(a)]),children:n})));m.defaultProps={size:r.Qd,state:"brand",text:"",type:s};const v=m}
2,69389:(e,t,n)=>{"use strict";n.d(t,{GB:()=>oe,r9:()=>X,p6:()=>G,VU:()=>q,TP:()=>Y,CM:()=>Q,EN:()=>U,qb:()=>F,iq:()=>j,b:()=>R,fh:()=>D,yE:()=>H,Gy:()=>ee,mS:()=>$,Kh:()=>te,VI:()=>ne,xh:()=>ie,SB:()=>J});var i=n(20386),o=n.n(i),a=n(80725),r=n(5373),s=n(56906);const l=e=>Object.keys(e).reduce(((t,n)=>e[n]===n?e[n]:null),null),c=(e,t)=>({...Object.keys(e).reduce(((t,n)=>({[n]:t=>({tag:e[n],attrs:t.attrs,content:t.content})})),{}),b:t=>({tag:e.b,attrs:t.attrs,content:t.content}),i:t=>({tag:e.i,attrs:t.attrs,content:t.content}),s:t=>({tag:e.s,attrs:t.attrs,content:t.content}),normal:t=>({tag:e.normal,attrs:t.attrs,content:t.content}),nowrap:t=>({tag:e.nowrap,attrs:t.attrs,content:t.content}),sup:t=>({tag:e.sup,attrs:t.attrs,content:t.content}),sub:t=>({tag:e.sub,attrs:t.attrs,content:t.content}),kbd:t=>({tag:e.kbd,attrs:t.attrs,content:t.content}),u:t=>({tag:e.u,attrs:t.attrs,content:t.content}),br:()=>({tag:e.br,attrs:null,content:null}),quote:({content:t,attrs:{u:n}})=>({tag:e.quote,attrs:{author:n?n.substr(1,n.length-2):"username"},content:t}),accent:t=>({tag:e.accent,attrs:t.attrs,content:t.content}),avatar:t=>({tag:e.avatar,attrs:{...t.attrs,url:t.attrs.href||Object.values(t.attrs)[0]},content:t.content}),user:t=>({tag:e.user,attrs:{...t.attrs,username:t.content.join(""),profileUrl:t.attrs.href||Object.values(t.attrs)[0]}}),icon:t=>({tag:e.icon,attrs:t.attrs,content:t.content}),url:(n,i)=>{const o=((e,t)=>l(e.attrs)?l(e.attrs):t.render(e.content))(n,i);return{tag:e.url,attrs:{...t,...(a=n.attrs,r=o,Object.keys(a).reduce(((e,t)=>t===r?{...e,href:r}:{...e,[t]:a[t]}),{})),url:n.attrs.href?n.attrs.href:o},content:n.content};var a,r},img:t=>({tag:e.img,attrs:{...t.attrs,size:+t.attrs.size||null,aspectRatio:+t.attrs.aspectRatio,url:t.attrs.href||Object.values(t.attrs)[0]}}),badge:t=>({tag:e.badge,attrs:{...t.attrs,text:t.content.join("")},content:t.content}),emoji:t=>({tag:e.emoji,attrs:t.attrs,content:null})});var d=n(24517);const u=({defaultTagsMap:e,customBbcodesMap:t,props:n})=>(({defaultTagsMap:e,customBbcodesMap:t,props:n})=>{const i=(0,s.l)(c(e,n));return t?i.extend((n=>({...n,...Object.keys(t).reduce(((n,i)=>({...n,[i]:n=>{const o=n.attrs.href?{url:n.attrs.href}:{};return{tag:e[t[i].as]||t[i].as,attrs:{...n.attrs,...t[i].withProps(n.attrs),...o},content:n.content}}})),{})}))):i})({defaultTagsMap:e,customBbcodesMap:t,props:n})(),p=e=>({onlyAllowTags:["b","i","s","normal","nowrap","br","sup","sub","kbd","u","quote","mark","url","img","accent","avatar","user","icon","badge","emoji","smile",...Object.keys(e)],enableEscapeTags:!0}),h=e=>"object"==typeof e,g=({children:e,defaultTagsMap:t,extraBbcodeMap:n={},customBbcodesMap:i={},className:o,style:a,as:s,customBbcodesPlugin:l=()=>()=>{},id:c,htmlFor:g,onPress:m,testID:v,...b})=>{let f=e||"",y=i;const x={className:o,style:a,onPress:m,...b},k=e=>e.customBbcodesMap||e.extraBbcodeMap,C=e=>{f=e.text,y=e.customBbcodesMap||{},n=e.extraBbcodeMap||{}};return e&&h(e)&&(k(e)&&C(e),e.length&&h(e[0])&&k(e[0])&&C(e[0])),c&&(x.id=c),g&&(x.htmlFor=g),(0,d.tZ)(r.Z,{container:s,componentProps:x,plugins:[l(),u({defaultTagsMap:{...n,...t}
2,customBbcodesMap:y,props:{onPress:m}})],options:p({...y,...n}),children:f})};g.defaultProps={customBbcodesMap:{},style:null,id:"",htmlFor:""};const m=g;var v=n(33351),b=n(66421),f=n(23278),y=n.n(f),x=n(75585),k={injectType:"styleTag",insert:"head",singleton:!1};y()(x.Z,k);const C=x.Z.locals||{},S=(0,b.Z)((({children:e,author:t,isDarkTheme:n})=>(0,d.tZ)("div",{className:o()(C.quoteContainer,{[C.dark]:n}),children:(0,d.BX)("blockquote",{className:C.quote,children:[(0,d.tZ)("span",{children:"[b]Quote by "+t+"[/b]"}),e]})}))),w=({children:e,className:t})=>(0,d.tZ)("span",{className:t,children:e});var P=n(80284),T={injectType:"styleTag",insert:"head",singleton:!1};y()(P.Z,T);const Z=P.Z.locals||{},_=({children:e,state:t})=>(0,d.tZ)(w,{className:o()(Z.accent,Z[t]),children:e});var M=n(79593),I=n(51112),N=n(16454),A=n(69104),z=n(39003),L=n(79480),E={injectType:"styleTag",insert:"head",singleton:!1};y()(L.Z,E);const O=L.Z.locals||{};var B=n(83629);const R="Primary",F="Accent",D="Secondary",H="White",j="Black",W=(e,t)=>{return O["color"+(n=t,n[0].toUpperCase()+n.slice(1))+(e?"Dark":"Light")];var n},V={b:({children:e,state:t="none",...n})=>{const i=(0,a.F)().isDarkTheme;return(0,d.tZ)("span",{className:o()(O.bold,W(i,t)),...n,children:e})},i:({children:e})=>(0,d.tZ)("span",{className:O.italic,children:e}),s:({children:e})=>(0,d.tZ)("span",{className:O.strike,children:e}),normal:({children:e,state:t})=>{const n=(0,a.F)().isDarkTheme;return(0,d.tZ)("span",{className:W(n,t),children:e})},nowrap:({children:e})=>(0,d.tZ)("span",{className:O.nowrap,children:e}),br:"br",sup:"sup",sub:"sub",kbd:"kbd",u:({children:e})=>(0,d.tZ)("span",{className:O.underline,children:e}),quote:S,url:v.Z,img:A.Z,accent:_,avatar:M.Z,user:I.Z,icon:N.ZP,badge:z.Z,emoji:({src:e,srcX2:t})=>(0,d.tZ)("img",{src:e,srcSet:e+" 1x, "+t+" 2x",unselectable:"on",alt:"emoji"}),smile:({children:e})=>(0,d.tZ)("span",{className:e.join(" ")}),button:({children:e,...t})=>(0,d.tZ)(B.ZP,{...t,text:e})},K=e=>function({state:t=R,as:n="div",align:i="",whiteSpace:r="",customBbcodesMap:s={},customBbcodesPlugin:l=()=>()=>{},className:c="",...u}){const p=(0,a.F)().isDarkTheme,h=o()(e,c,O["position"+i],O["whitespace"+r],W(p,t));return(0,d.tZ)(m,{className:h,customBbcodesPlugin:l,customBbcodesMap:s,as:n,defaultTagsMap:V,...u})},U=K(O.hero),X=K(O.h1),G=K(O["h2Сommon"]),q=K(O.h2),Y=K(O.h3),Q=K(O.h4),J=K(O.textXl),$=K(O.textLg),ee=K(),te=K(O.textMd),ne=K(O.textSm),ie=K(O.textThinSm),oe=K(O.caption)},44084:(e,t,n)=>{"use strict";n.d(t,{$0:()=>v,Ar:()=>m,HD:()=>x,I5:()=>y,M9:()=>S,XA:()=>C,dZ:()=>k,kI:()=>b,pc:()=>f});var i=n(502),o=n(20386),a=n.n(o),r=n(80725),s=n(57038),l=n(83629),c=n(81186),d=n(50019),u=n(74444),p=n(8122),h=n(24517),g=n(22223);const m=({children:e,isFocused:t})=>{const n=(0,r.F)(),i=n.isMobile,o=n.name,s=(0,h.tZ)("article",{className:a()(c.Z.container,c.Z[o],i&&c.Z.isMobile),children:e});return t?(0,h.BX)("div",{children:[t&&(0,h.tZ)("div",{className:c.Z.backdrop}),s]}):s},v=(0,i.forwardRef)((({title:e,TitleAction:t,hasControls:n,children:i,type:o,className:l,align:d,subtitle:u,isControlsMovedToTop:g,Actions:m,contentClassName:v,Wrapper:b="section",customStyle:f,...y},x)=>{const k=(0,r.F)(),C=k.isDarkTheme,S=k.isMobile,w=k.name;return i||u?(0,h.BX)(b,{ref:x,className:a()(l,c.Z.section,c.Z[w],c.Z["align-"+d],S&&c.Z.isMobile,"pro"===o&&c.Z.sectionPro,"proStretch"===o&&c.Z.sectionProStretch,"header"===o&&c.Z.sectionHeader,"chords"===o&&c.Z.sectionChords,"ad"===o&&c.Z.sectionAd,"controls"===o&&c.Z.sectionControls,"pro-tab"===o&&c.Z.sectionProTab,"karaoke-button"===o&&c.Z.sectionKaraokeButton,"topControls"===o&&c.Z.topControls,n&&c.Z.hasControls,C&&n&&c.Z.hasControlsDark,g&&c.Z.movedToTop),style:f,...y,children:[e&&(0,h.tZ)(p.Z,{title:e,titleAction:t,actions:m}),u&&(0,h.tZ)(s.XA,{state:u.state,className:c.Z.subtitle,children:u.text}),(0,h.tZ)("div",{className:a()(c.Z.content,v),children:i})]}):null})),b=({children:e,actions:t=[]})=>{const n=(0,r.F)(),i=n.name,o=n.isMobile;return(0,h.BX)("div",{className:a()(c.Z.tabInfo,c.Z[i],o&&c.Z.isMobile),children:[(0,h.tZ)("span",{className:c.Z.tabInfoText,children:e}),t.map((e=>(0,g.az)(l.ZP,{...e,state:d.vI,className:c.Z.tabInfoControl,type:u.Vf,size:"xs",key:(null==e?void 0:e.text)||""})))]})},f=({children:e,verticalAlign:t})=>(0,h.tZ)("div",{className:a()(c.Z.footerControls,c.Z[t]),children:e}),y=({children:e})=>(0,h.tZ)("div",{className:a()(c.Z.tabContent),children:e}),x=({children:e})=>(0,h.tZ)("div",{className:a()(c.Z.rateWrapper),children:e}),k=({children:e})=>(0,h.tZ)("div",{className:a()(c.Z.bottomControlsWrapper),children:e}),C=({children:e})=>(0,h.tZ)("div",{className:a()(c.Z.containerSticky),children:e}),S=({children:e,withAnimation:t})=>(0,h.tZ)("div",{className:a()(c.Z.containerFixed,t&&c.Z.withAnimation),children:e})},30366:(e,t,n)=>{"use strict";n.d(t,{C$:()=>d,FD:()=>u,Kx:()=>r,N8:()=>s,WI:()=>l,aG:()=>p,fJ:()=>a,hc:()=>c,kX:()=>o});var i=n(44084);const o=i.Ar,a=i.$0,r=i.pc,s=i.kI,l=i.M9,c=i.XA,d=i.I5,u=i.HD,p=i.dZ},8122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var i=n(96944),o=n(69389),a=n(24517);const r=({title:e,titleAction:t,actions:n})=>(0,a.BX)("header",{className:i.Z.header,children:[(0,a.tZ)(o.VU,{className:i.Z.heading,children:e}),t&&(0,a.tZ)("span",{className:i.Z.titleActionWrapper,children:t}),n&&(0,a.tZ)("div",{className:i.Z.actions,children:n})]})},61824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i,i:()=>o});const i=e=>{e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.webkitEnterFullscreen?e.webkitEnterFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},o=e=>{e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.msExitFullscreen&&e.msExitFullscreen()}},66653:(e,t,n)=>{"use strict";n.d(t,{I:()=>f});var i=n(54326),o=n(502),a=n(78864),r=n(33269),s=n(20251),l=n(46988),c=n(13739),d=n(61925),u=n(53151),p=n(94912),h=n(60770),g=n(90168),m=n(77257),v=n(34021),b=n(24517);const f=(0,m.a)((({children:e,className:t,onPress:n,testID:m,...f},y)=>{(0,h.I)(f);const x=(0,p.B)(y),k=(0,u.l)(f),C=f.isDisabled,S=f.isPending,w=f.preventFocusOnPress,P=k.isSelected,T=(0,o.useMemo)((()=>w?e=>{null==n||n(e),"mouse"===e.pointerType&&e.target.blur()}:n),[n,w]),Z=(0,a.U)({...f,onPress:S?void 0:(0,r.t)(k.toggle,T)},x),_=Z.buttonProps,M=Z.isPressed,I=(0,s.F)(),N=I.focusProps,A=I.isFocusVisible,z=(0,l.X)({...f,isDisabled:C||S}),L=z.hoverProps,E=z.isHovered,O=(0,c.Me)(_.id);(0,g.$)({id:O,ariaLabelledby:_["aria-labelledby"],isFocusVisible:A,isPending:S});const B="function"==typeof e?e(P):e;return(0,b.tZ)("button",{...(0,d.d)(_,N,L),"aria-disabled":S?"true":_["aria-disabled"],"aria-pressed":P,className:(0,i.Z)(v.Z.button,t),"data-disabled":C||void 0,"data-focused":A||void 0,"data-hovered":E||void 0,"data-pending":S||void 0,"data-pressed":M&&!S||void 0,"data-selected":P||void 0,id:O,ref:x,type:"button",children:B})}))},15396:(e,t,n)=>{"use strict";n.d(t,{CR:()=>c,Cw:()=>k,Eo:()=>f,Ex:()=>y,ND:()=>p,_u:()=>x,bu:()=>S,iV:()=>v,l:()=>u,mU:()=>m,qm:()=>d,qr:()=>b,r8:()=>i,rp:()=>C,tY:()=>h,uE:()=>g,w5:()=>o});const i=1,o=0,a="/static/public/ug/player",r=a+"/native/",s="/static/public/player/soundfonts/realistic_sound/",l=s+"stable",c=a+"/xtz",d="tab_with_effects",u=.25,p=.25,h=2,g=[-2],m=!0,v=.96,b={showTitle:!1,multiMeasureRestMode:1},f={.5:.5,1:.5,2:.5,3:.5,4:.5,5:.5,6:.5,7:.5,8:.5,9:.5,10:.5},y=.3,x={.5:y,1:y,2:y,3:y,4:y,5:y,6:y,7:y,8:y,9:y,10:y},k=JSON.stringify({day:{background:"#ffffff",playbackCursor:"#d32139",mainVoiceItems:"#000000"},night:{background:"#0d0d10",playbackCursor:"#ff6e68",mainVoiceItems:"#cccccc"}}),C=5,S={localPrefix:r,audio:{isFilterEnabled:!0,isBufferedStreamEnabled:!0,soundfontUri:l},view:{margin:{top:C,bottom:50,left:20,right:20}},control:{isWheelEnabled:!1}}}
2,1952:(e,t,n)=>{"use strict";n.d(t,{$_:()=>a,B3:()=>p,EV:()=>r,J4:()=>i,K7:()=>u,Qx:()=>c,Z4:()=>d,Zb:()=>o,oO:()=>l,sS:()=>s});const i={STANDARD:0,TABLATURE:1,STANDARD_TABLATURE:2},o={BEAT:0,BEAT_BAR:1},a=4,r=10,s=7,l=1,c=.8,d=0,u=1,p=u},32004:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});let i=null;const o=()=>{if(null!==i)return i;try{var e;const t=document.createElement("canvas"),n=t.getContext("webgl2")||t.getContext("webgl");if(!n)return i="no-webgl",i;const o=n.getExtension("WEBGL_debug_renderer_info");return i=(o?n.getParameter(o.UNMASKED_RENDERER_WEBGL):n.getParameter(n.RENDERER))+"",null===(e=n.getExtension("WEBGL_lose_context"))||void 0===e||e.loseContext(),i}catch(e){return i="unknown",i}}},55297:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var i=n(15396),o=n(1952);const a=(e,t=!1)=>t?e:e===o.EV?e*i.iV:e},36462:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(40070),o=n(76662);const a={};let r=null;const s=()=>{Object.keys(a).forEach((e=>{delete a[e]}))},l={async init({config:e}){if(l.isInitialized)i.Z.warn("XTZ API service is already initialized");else{try{await o.xtz.init({...e,listeners:a})}catch(e){throw i.Z.warn("[xtz][webgl] xtz.init failed: "+e),e}l.api=o.xtz,l.isInitialized=!0}},api:null,isInitialized:!1,listeners:a,setListeners(e,t){r=e,s(),Object.assign(a,t)},clearListeners(e){r!==e||(r=null,s())}}},57088:(e,t,n)=>{"use strict";n.d(t,{B4:()=>g,FD:()=>u,Km:()=>c,Tj:()=>s,cj:()=>h,l3:()=>p,tU:()=>d});var i=n(38314),o=n(1461),a=n(56067),r=n(74080);const s=(0,i.P1)([r.SK,r.Wh],((e,t)=>e[t]?e[t]:null)),l=(0,i.P1)([s],(e=>e?e.tuning:null)),c=(0,i.P1)([l,o.ei],((e,t)=>{const n=e||t.value;return n?(0,a.k)(n):null})),d=(0,i.P1)([s],(e=>e?e.capo:null)),u=e=>(0,i.P1)([r.SK],(t=>t[e])),p=(0,i.P1)([r.uu],(e=>e.length)),h=(0,i.P1)([r.SK],(e=>Object.keys(e).length)),g=(0,i.P1)([s,r.gd],((e,t)=>!!(e&&e.stringsCount&&t)&&3<e.stringsCount&&9>(null==e?void 0:e.stringsCount)))},74080:(e,t,n)=>{"use strict";n.d(t,{$8:()=>be,An:()=>F,B3:()=>re,DQ:()=>ye,Dh:()=>Z,E3:()=>l,Es:()=>z,FC:()=>B,Ft:()=>m,GB:()=>w,Gp:()=>k,Gu:()=>L,HN:()=>H,IJ:()=>G,IY:()=>Se,I_:()=>O,Id:()=>c,LS:()=>he,N4:()=>K,NM:()=>W,Nf:()=>R,Of:()=>b,Op:()=>ke,Or:()=>me,PW:()=>Y,S3:()=>J,SK:()=>y,SM:()=>E,Sl:()=>we,Sm:()=>Pe,Sp:()=>j,Sy:()=>oe,T8:()=>ie,U:()=>X,Uo:()=>se,Wh:()=>h,Xn:()=>v,Y_:()=>le,ZA:()=>S,_6:()=>A,_U:()=>_e,aS:()=>N,ak:()=>f,am:()=>de,c6:()=>P,cI:()=>ue,dF:()=>te,dQ:()=>g,eM:()=>ve,fK:()=>$,g9:()=>I,gd:()=>C,hu:()=>ae,ip:()=>pe,jA:()=>ge,jv:()=>fe,kw:()=>_,lL:()=>T,ls:()=>Q,nm:()=>u,nu:()=>V,pN:()=>Ze,pl:()=>x,r6:()=>U,ro:()=>Te,sB:()=>ce,uD:()=>xe,uY:()=>ne,uu:()=>M,yR:()=>ee,yv:()=>p,z5:()=>Ce,zP:()=>D});var i=n(86561),o=n(98652),a=n(1952);const r=o.Z.isMobile,s=o.Z.isTablet,l={instruments:{},lyrics:"",activeInstrumentIndex:0,savedTrackIndex:null,backingTracksLoadProgress:0,speed:a.oO,volume:a.Qx,isMuteActive:!1,pan:0,transpose:0,pitch:0,fretFingers:[],zoomValue:r?a.sS:a.EV,currentTime:0,currentPosition:{eventIndex:0,measureIndex:0,pageIndex:0,staffNumber:0},backingTracks:[],isBackingTrackActive:!1,isBackingTracksLoaded:!1,isFullscreenActive:!1,isFretboardOpen:!1,isLoopActive:!1,isLeftHanded:!1,isMetronomeActive:!1,isPlaying:!1,isCountdownActive:!1,countdownValue:0,isNoteDurationActive:!1,isInstrumentsSidebarOpen:!1,isSoundsLoaded:!1,soundsLoadingProgress:0,startTempoBpm:0,duration:0,marks:[],notation:a.J4.TABLATURE,fretboardViewMode:a.Zb.BEAT,isPlayerInitialized:!1,canvasSize:{width:0,height:0},stavesInfo:[],isLoopOnDragActive:!r&&!s,version:"3",isAutoscrollEnabled:!0,isLyricsEnabled:!0,scrollMode:a.B3},c=(0,i.tA)("tabProPlayerCore")({persist:r?{localStorage:["isMetronomeActive","isCountdownActive","volume","zoomValue"],documentSyncStorage:{transpose:{docType:"tools_tab",key:"transpose"}}}:{localStorage:["isMetronomeActive","isCountdownActive","volume","notation","isFretboardOpen","fretboardViewMode","isInstrumentsSidebarOpen","zoomValue","isAutoscrollEnabled","isLyricsEnabled"],tabLocalStorage:["savedTrackIndex","speed"],documentSyncStorage:{transpose:{docType:"tools_tab",key:"transpose"},isLeftHanded:{docType:"tools_user",key:"left_hand"}}},initialState:l,actions:{updateInstrumentById:({id:e,update:t},n)=>{const i=n.instruments;return{instruments:{...i,[e]:{...i[e],...t}}}},updatePlayingInstruments:(e,t)=>{const n=t.instruments;return{instruments:Object.entries(n).reduce(((t,[n,i])=>(t[n]={...i,isPlaying:e.includes(+n)},t)),{})}},toggleFretboard:(e,t)=>({isFretboardOpen:!t.isFretboardOpen}),toggleIsCountdownActive:(e,t)=>
2({isCountdownActive:!t.isCountdownActive}),toggleIsLeftHanded:(e,t)=>({isLeftHanded:!t.isLeftHanded}),toggleIsFretboardOpen:(e,t)=>({isFretboardOpen:!t.isFretboardOpen}),resetSettings:()=>({isFretboardOpen:!1,isLeftHanded:!1,isCountdownActive:!1,pitch:0,fretboardViewMode:a.Zb.BEAT}),resetLoadedScoreState:()=>({instruments:l.instruments,activeInstrumentIndex:l.activeInstrumentIndex,lyrics:l.lyrics,marks:l.marks,duration:l.duration,startTempoBpm:l.startTempoBpm,currentTime:l.currentTime,currentPosition:l.currentPosition,stavesInfo:l.stavesInfo,canvasSize:l.canvasSize,isPlaying:l.isPlaying,isPlayerInitialized:l.isPlayerInitialized}),toggleIsAutoscrollEnabled:(e,t)=>({isAutoscrollEnabled:!t.isAutoscrollEnabled}),setIsAutoscrollEnabled:e=>({isAutoscrollEnabled:e}),toggleIsLyricsEnabled:(e,t)=>({isLyricsEnabled:!t.isLyricsEnabled}),setIsLyricsEnabled:e=>({isLyricsEnabled:e})}}),d=c.props,u=d.getIsPlaying,p=d.getBackingTracksLoadProgress,h=d.getActiveInstrumentIndex,g=d.getSavedTrackIndex,m=d.getCountdownValue,v=d.getCurrentTime,b=d.getFretboardViewMode,f=d.getFretFingers,y=d.getInstruments,x=d.getIsBackingTrackActive,k=(d.getIsBackingTracksLoaded,d.getIsCountdownActive),C=d.getIsFretboardOpen,S=d.getIsFullscreenActive,w=(d.getIsInstrumentsSidebarOpen,d.getIsLeftHanded),P=d.getIsLoopActive,T=d.getIsMetronomeActive,Z=d.getIsNoteDurationActive,_=d.getIsSoundsLoaded,M=d.getBackingTracks,I=d.getDuration,N=(d.getLyrics,d.getNotation),A=d.getMarks,z=d.getPitch,L=d.getSoundsLoadingProgress,E=d.getStartTempoBpm,O=d.getTranspose,B=d.getVolume,R=d.getIsMuteActive,F=d.getZoomValue,D=d.getSpeed,H=(d.getPan,d.getIsPlayerInitialized),j=d.getCanvasSize,W=d.getStavesInfo,V=d.getCurrentPosition,K=d.getIsLoopOnDragActive,U=(d.getVersion,d.getIsAutoscrollEnabled),X=d.getIsLyricsEnabled,G=d.getScrollMode,q=c.actions,Y=q.setIsPlayerInitialized,Q=q.setActiveInstrumentIndex,J=q.setSavedTrackIndex,$=(q.setBackingTracks,q.setBackingTracksLoadProgress),ee=(q.setCountdownValue,q.setCurrentTime),te=(q.setDuration,q.setFretboardViewMode),ne=(q.setFretFingers,q.setInstruments,q.setIsBackingTrackActive),ie=q.setIsBackingTracksLoaded,oe=q.setIsCountdownActive,ae=(q.setIsFretboardOpen,q.setIsFullscreenActive),re=(q.setIsInstrumentsSidebarOpen,q.setIsLeftHanded,q.setIsLoopActive),se=q.setIsMetronomeActive,le=q.setIsNoteDurationActive,ce=q.setIsPlaying,de=(q.setLyrics,q.setIsSoundsLoaded,q.setNotation),ue=(q.setMarks,q.setPitch),pe=q.setTranspose,he=(q.setSoundsLoadingProgress,q.setSpeed),ge=q.setVolume,me=q.setIsMuteActive,ve=q.setPan,be=q.setZoomValue,fe=(q.setStartTempoBpm,q.setStavesInfo,q.setCanvasSize,q.setCurrentPosition,q.updateInstrumentById),ye=q.updatePlayingInstruments,xe=q.toggleFretboard,ke=q.toggleIsCountdownActive,Ce=q.toggleIsLeftHanded,Se=q.toggleIsFretboardOpen,we=q.resetSettings,Pe=q.resetLoadedScoreState,Te=q.toggleIsAutoscrollEnabled,Ze=(q.setIsAutoscrollEnabled,q.toggleIsLyricsEnabled,q.setIsLyricsEnabled),_e=q.setScrollMode},48314:(e,t,n)=>{"use strict";n.d(t,{Kx:()=>m,V9:()=>b,nx:()=>v,uo:()=>h});var i=n(40070),o=n(86712),a=n(61824),r=n(75213),s=n(70942),l=n(36462),c=n(32004),d=n(74080),u=n(57088),p=n(55297);const h={setSharedParams:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setSharedParams(e)},load:({buffer:e,loadParams:t})=>()=>{var n;null===(n=l.w.api)||void 0===n||n.load(e,t)},resetLoadedScore:()=>e=>{var t;null===(t=l.w.api)||void 0===t||t.stop(),e((0,d.Sm)())},play:()=>(e,t)=>{var n;const i=(0,o.Z)([d.Gp],t)[0];null===(n=l.w.api)||void 0===n||n.play(i?1:0),e((0,d.sB)(!0))},togglePlay:()=>(e,t)=>{e((0,o.Z)([d.nm],t)[0]?h.pause():h.play())},stop:()=>e=>{var t;null===(t=l.w.api)||void 0===t||t.stop(),e((0,d.sB)(!1))},pause:()=>e=>{var t;null===(t=l.w.api)||void 0===t||t.pause(),e((0,d.sB)(!1))},rewind:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.rewind()},setPlayPositionByTime:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setPlayPositionByTime(e),t((0,d.yR)(e))},requestPlaybackSecond:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.requestPlaybackSecond()},enableYouTubePlayback:({enable:e,timeData:t})=>()=>{var n,i;e?null===(n=l.w.api)||void 0===n||n.enableYouTubePlayback(!0,null!=t?t:[]):null===(i=l.w.api)||void 0===i||i.enableYouTubePlayback(!1)},setGeneralVolume:e=>(t,n)=>{var i;const a=(0,o.Z)([d.Nf],n)[0];t((0,d.jA)(e)),null===(i=l.w.api)||void 0===i||i.setGeneralVolume(e),a&&t((0,d.Or)(!1))},toggleGeneralMute:()=>(e,t)=>{const n=(0,o.Z)([d.Nf,d.FC],t),i=n[0],a=n[1],r=!i;var s,c;(e((0,d.Or)(r)),r)?null===(s=l.w.api)||void 0===s||s.setGeneralVolume(0):null===(c=l.w.api)||void 0===c||c.setGeneralVolume(a)},setGeneralBalance:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setGeneralBalance(e),t((0,d.eM)(e))},setGeneralPitch:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setGeneralPitch(e),t((0,d.cI)(e))},setPlaybackSpeed:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setPlaybackSpeed(e),t((0,d.LS)(e))},setPartVolume:({id:e,volume:t})=>(n,i)=>{const a=(0,o.Z)([d.SK],i)[0],r=Object.values(a).some((t=>t.isSoloActive&&t.id!==e));var s;(!a[e].isMuteActive&&!r||a[e].isSoloActive)&&(null===(s=l.w.api)||void 0===s||s.setPartVolume(e,t));n((0,d.jv)({id:e,update:{volume:t}}))},setPartBalance:({id:e,pan:t})=>n=>{var i;null===(i=l.w.api)||void 0===i||i.setPartBalance(e,t),n((0,d.jv)({id:e,update:{pan:t}}))},togglePartSolo:e=>(t,n)=>{const i=(0,o.Z)([d.SK],n)[0],a={},r=i[e].isSoloActive,s=Object.values(i).some((t=>t.isSoloActive&&t.id!==e));
2r&&!s?Object.values(i).forEach((e=>{var t;(a[e.id]={...e,isSoloActive:!1},e.isMuteActive)||(null===(t=l.w.api)||void 0===t||t.setPartVolume(e.id,e.volume))})):Object.values(i).forEach((t=>{var n;const i=t.id,o=i===e;if(a[i]={...t,isSoloActive:o?!t.isSoloActive:t.isSoloActive,isMuteActive:!o&&t.isMuteActive},o){var r;const e=t.isSoloActive?0:t.volume;return void(null===(r=l.w.api)||void 0===r||r.setPartVolume(i,e))}const s=t.isSoloActive?t.volume:0;null===(n=l.w.api)||void 0===n||n.setPartVolume(i,s)}),{}),t((0,d.jv)({id:e,update:a[e]}))},togglePartMute:e=>(t,n)=>{const i=(0,o.Z)([d.SK],n)[0],a={...i},r=!i[e].isMuteActive;var s,c;(a[e]={...i[e],isSoloActive:!1,isMuteActive:r},r)?null===(s=l.w.api)||void 0===s||s.setPartVolume(e,0):null===(c=l.w.api)||void 0===c||c.setPartVolume(e,i[e].volume);Object.values(a).some((e=>e.isSoloActive))||Object.values(a).forEach((e=>{var t;e.isMuteActive||(null===(t=l.w.api)||void 0===t||t.setPartVolume(e.id,e.volume))})),t((0,d.jv)({id:e,update:a[e]}))},setTransposeValue:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setTransposeValue(e),t((0,d.ip)(e))},reapplyTransposeToXtz:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setTransposeValue(e)},setLoopEnabled:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setLoopEnabled(e),t((0,d.B3)(e))},toggleLoop:()=>(e,t)=>{const n=(0,o.Z)([d.c6],t)[0];e(h.setLoopEnabled(!n))},setMetronomeEnabled:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setMetronomeEnabled(e),t((0,d.Uo)(e))},toggleMetronome:()=>(e,t)=>{const n=(0,o.Z)([d.lL],t)[0];e(h.setMetronomeEnabled(!n))},switchOnBackingTracks:e=>(t,n)=>{const a=(0,o.Z)([d.uu,d.yv],n),r=a[0],s=a[1];if(e&&0===s){var c;const e=(0,o.Z)([d.SK],n)[0],t=new Map;Object.entries(e).forEach((([e,n])=>{r.find((e=>e.name===n.title))&&t.set(n.title,+e)}));const a=r.map(((e,n)=>{const o=t.get(e.name);return void 0===o&&i.Z.error("[XTZ]: Can't find instrument for BT \""+e.name+'": '+document.location.href),e.url||i.Z.error("[XTZ]: Can't find url in BT."+n+": "+document.location.href),{url:e.url,part:void 0===o?n:o,name:e.name}}));null===(c=l.w.api)||void 0===c||c.loadBackingTracksByUrls(a)}else{var u;null===(u=l.w.api)||void 0===u||u.switchOnBackingTracks(e)}t((0,d.uY)(e))},toggleBackingTrack:()=>(e,t)=>{const n=(0,o.Z)([d.pl],t)[0];e(h.switchOnBackingTracks(!n))},setActivePart:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.selectSinglePart(e),t((0,d.ls)(e)),t((0,d.S3)(e))},setPlayableParts:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setPlayableParts(e)},loadBackingTracksByUrls:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.loadBackingTracksByUrls(e)},movePlaybackPositionToNextBit:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.movePlaybackPositionToNextBit()},movePlaybackPositionToPrevBit:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.movePlaybackPositionToPrevBit()},movePlaybackPositionToNextMeasure:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.movePlaybackPositionToNextMeasure()},movePlaybackPositionToPrevMeasure:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.movePlaybackPositionToPrevMeasure()},resizeCanvas:({canvas:e,canvasOverlay:t})=>()=>{var n;null===(n=l.w.api)||void 0===n||n.resizeCanvas(e,t)},reinitializeCanvas:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.reinitializeCanvas(e)},deinitializeCanvas:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.deinitializeCanvas()},setupSurface:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setupSurface(e)},destroySurface:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.destroySurface()},resizeSurface:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.resizeSurface(e)},setNotationMode:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setNotationMode(e),t((0,d.am)(e))},setZoom:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setNoteSize((0,p.F)(e)),t((0,d.$8)(e))},setNoteDurationVisible:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setNoteDurationVisible(e),t((0,d.Y_)(e))},setScrollOffset:({x:e,y:t})=>()=>{var n;null===(n=l.w.api)||void 0===n||n.setScrollOffset(e,t)},setPageMargin:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setPageMargin(e)},setColorSchemeColors:e=>()=>{var t;const n=JSON.stringify(e);null===(t=l.w.api)||void 0===t||t.setColorSchemeColors(n)},setColorScheme:e=>()=>{var t;null===(t=l.w.api)||void 0===t||t.setColorScheme(e)},print:()=>()=>{var e;null===(e=l.w.api)||void 0===e||e.print()},setScrollMode:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.setScrollMode(e),t((0,d._U)(e))},setLyricsEnabled:e=>t=>{var n;null===(n=l.w.api)||void 0===n||n.showLyricsOnEachPart(e),t((0,d.pN)(e))},toggleLyrics:()=>(e,t)=>{const n=(0,o.Z)([d.U],t)[0];e(h.setLyricsEnabled(!n))}};let g=0;const m=()=>(e,t)=>{const n=(0,o.Z)([u.l3],t)[0];++g;const i=g/n;e((0,d.fK)(i)),1==i&&setTimeout((()=>{e((0,d.T8)(!0)),e(h.switchOnBackingTracks(!0))}),500)},v=({reason:e,error:t})=>n=>{i.Z.setExtraContextData({xtz_render_failure_reason:e,gpu_renderer:(0,c.Z)()}),i.Z.error("[xtz][webgl] render failure: "+e+(t?" — "+t:"")),n((0,r.c0)({content:"Couldn't display the tab. Try reloading the page; if it persists, disable hardware acceleration in your browser settings.",Icon:s.a,iconState:"red",hideTimeout:1e4}))},b=e=>(t,n)=>{(0,o.Z)([d.ZA],n)[0]?(t((0,d.hu)(!1)),(0,a.i)(document)):(t((0,d.hu)(!0)),(0,a.Z)(e))}},80721:(e,t,n)=>{"use strict";n.d(t,{k:()=>a});var i=n(57647),o=n(47812);const a=e=>(0,i.hB)(e).filter((e=>e.tag===o.jJ)).map((e=>({name:e.content[0],variation:e.attrs.app}))).filter(((e,t,n)=>e.name&&e.name.trim()&&t===n.findIndex((t=>t.name===e.name&&e.variation===t.variation))))},57647:(e,t,n)=>{"use strict";n.d(t,{EH:()=>g,ZP:()=>S,hB:()=>C});var i=n(62362),o=n(45332),a=n(47812);const r=(e,t)=>e.reduce(((e,t)=>e+(0,a.xP)(t)),0)>t,s=(e,t)=>e.some((e=>r(e,t))),l=(e,t)=>
2e.reduce(((e,n)=>(0,a.de)(n)?e.concat(n.split("")):(0,a.J$)(n)?e.concat(((e,t)=>e.match(new RegExp(".{1,"+t+"}","g")))(n,t)):(e.push(n),e)),[]),c=({content:e,...t},n)=>{if(!r(e,n))return{...t,content:e};const i=l(e,n);return(0,a.Vc)(((e,t)=>{let n=0;return e.reduce(((e,i)=>{const o=(0,a.xP)(i);return n+=o,n>t?(n=o,e.push([i])):e[e.length-1].push(i),e}),[[]])})(i,n).map((e=>(0,a.RP)(e,t.attrs))))},d=(e,t)=>{let n=0;const i=e.length;for(let o=0;o<i;o++){if(n+=e[o],n>t)return o-1;if(n===t||o===i-1)return o}return-1},u=(e,t)=>1===e.length&&r(e,t)?t:((e,t)=>{let n=0;for(let i=0;i<e.length;i++){const o=(0,a.xP)(e[i]);if(n+o>t)return n;n+=o}return t})(e,t),p=({content:e,...t},n)=>{const i=e.map((e=>e.content));if(!s(i,n))return{...t,content:e};const o=Math.floor(n/2);let r=n,c=n;i.forEach((e=>{const t=l(e,n),i=u(t,n);r=Math.min(r,i),i>=o&&(c=Math.min(c,i))}));const p=i.map((e=>l(e,r)));return(0,a.Vc)(((e,t)=>{const n=[];let i=[...e.map((e=>e))],o=t;for(;;){const e=i.map((e=>e.map(a.xP)));if(o===t&&!s(i,t)||0===o)return n.push(i),n;const r=e.map((e=>d(e,o)));if(r.includes(-1))o--;else{const e=i.map(((e,t)=>e.slice(0,r[t]+1)));i=i.map(((e,t)=>e.slice(r[t]+1))).filter((e=>e.length)),o=t,n.push(e)}}})(p,c).map((t=>t.map(((t,n)=>(0,a.RP)(t,e[n].attrs))))).reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]))},h=e=>e.replace(/[ ]+$/,""),g=e=>h((0,o.Z)(e)).split(a.bW).map(h).join(a.bW),m=e=>e.reduce(((e,t)=>{const n=e.length-1;if((0,a.nO)(t))e.push([]);else if((0,a.KX)(t)){e[e[n].length?n+1:n]={...t,content:m(t.content)}}else e[n].push(t);return e}),[[]]).map((e=>(0,a.KX)(e)?e:(0,a.RP)(0===e.length?[" "]:e))),v=e=>{let t=0;const n=e=>({...e,attrs:{...e.attrs,originalIndex:t++}});return e.map((e=>"tab"===e.tag?{...e,content:e.content.map(n)}:n(e)))},b=e=>t=>t.map((t=>(0,a.tZ)(t)?c(t,e):(0,a.KX)(t)?p(t,e):t)),f=({linesCount:e,firstPageIndent:t,columnCount:n})=>i=>i.reduce(((i,o,r,s)=>{const l=i.length-1,c=i[l];if((0,a.KI)(o)&&!c.length)return i;const d=e=>(0,a.KX)(e)?e.content.length:1,u=c.map(d).reduce(((e,t)=>e+t),0),p=e-u-(l<n?t:0),h=p>d(o),g=1===p&&(0,a.qE)(o)&&!(0,a.KI)(s[r+1]);return h&&!g?c.push(o):i.push([o]),i}),[[]]).map(((e,n)=>(0,a.ig)(e,{hasTopContent:n<t&&!!t}))),y=e=>t=>t.reduce(((t,n,i)=>(i%e?t[t.length-1].push(n):t.push([n]),t)),[]).map((e=>(0,a.ig)(e.map((e=>(0,a.nm)(e.content))),e[0].attrs))),x=e=>{},k=(e,t)=>(0,i.Z)([]).process(e,{onlyAllowTags:t,onError:x}).tree,C=e=>k(g(e),[a.jJ]),S={parse({str:e,maxLineLength:t=0,columnCount:n=1,linesPerPage:o=0,firstPageIndent:r=0}){const s=[m,v,!!t&&b(t),!!o&&f({columnCount:n,firstPageIndent:r,linesCount:o}),1<n&&y(n)].filter(Boolean);return(0,i.Z)(s).process(g(e),{onlyAllowTags:[a.UD,a.jJ,a.W],onError:x}).tree},getAstWithChords:C,getAstWithTiming:e=>k(g(e),[a.UD]),parseTabs:e=>k(e,[a.W])}},1896:(e,t,n)=>{"use strict";n.d(t,{Fj:()=>o,RX:()=>s,em:()=>r,nm:()=>a,sA:()=>i});
2const i="sm",o="lg",a="sm-mobile-web",r="lg-mobile-web",s="×"},95330:(e,t,n)=>{"use strict";n.d(t,{l9:()=>o,mX:()=>i,yV:()=>a});const i=6,o=4,a=5},48309:(e,t,n)=>{"use strict";n.d(t,{M:()=>i});const i={SHOW_MODAL:"ADBLOCK_WARNING_SHOW_MODAL",CLOSE_MODAL:"ADBLOCK_WARNING_CLOSE_MODAL",SUBSCRIBE_BUTTON_CLICK:"ADBLOCK_WARNING_SUBSCRIBE_BUTTON_CLICK",SHOW_ADBLOCK_OFF_CLICK:"ADBLOCK_WARNING_SHOW_ADBLOCK_CLICK",AUTOSCROLL_CLICK:"ADBLOCK_WARNING_AUTOSCROLL_CLICK",AUTOSCROLL_SPEED_CLICK:"ADBLOCK_WARNING_AUTOSCROLL_SPEED_CLICK",TRANSPOSE_CLICK:"ADBLOCK_WARNING_TRANSPOSE_CLICK",REPORT_ISSUE_CLICK:"ADBLOCK_WARNING_REPORT_ISSUE_CLICK",SHOW_CHORD_MESSAGE:"ADBLOCK_WARNING_SHOW_CHORD_MESSAGE"}},82644:(e,t,n)=>{"use strict";n.d(t,{nR:()=>i,tl:()=>o});const i=1.5,o=.1},58022:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});var i=n(502);const o=e=>{const t=e.parentNode;if(!(e instanceof HTMLElement))return t?o(t):window;const n=window.getComputedStyle(e).overflowY;return/(auto|scroll)/.test(n)&&e.scrollHeight>=e.clientHeight?e:t?o(t):window};var a=n(24517);const r=({children:e,isFullScreenEnabled:t=!1,getScrollParentRef:n,bottomOffset:r,showNotification:s,Control:l})=>{const c=((e=!1,t)=>{const n=(0,i.useRef)(null),a=(0,i.useRef)();return(0,i.useEffect)((()=>n.current?t?void(a.current=t(n,e)):void(a.current=o(n.current)):void 0),[e]),{scrollAreaRef:n,scrollParentRef:a}})(t,n),d=c.scrollAreaRef,u=c.scrollParentRef;return(0,a.BX)(a.HY,{children:[(0,a.tZ)(l,{scrollAreaRef:d,scrollParentRef:u,bottomOffset:r,showNotification:s}),(0,a.tZ)("div",{ref:d,children:e})]})}},98890:(e,t,n)=>{"use strict";n.d(t,{T:()=>m});var i=n(502),o=n(85290),a=n(1336);const r=()=>window.devicePixelRatio||1,s=()=>({zoom:1,devicePxPerCssPx:1}),l=()=>{const e=(90===Math.abs(+window.orientation)?window.screen.height:window.screen.width)/window.innerWidth;return{zoom:e,devicePxPerCssPx:e*r()}},c=()=>{const e=e=>e.replace(/;/g," !important;"),t=document.createElement("div");t.innerHTML="1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>0",t.setAttribute("style",e("font: 100px/1em sans-serif; -webkit-text-size-adjust: none; height: auto; width: 1em; padding: 0; overflow: visible;"));const n=document.createElement("div");n.setAttribute("style",e("width:0; height:0; overflow:hidden; visibility:hidden; position: absolute;")),n.appendChild(t),document.body.appendChild(n);let i=1e3/t.clientHeight;return i=Math.round(100*i)/100,.95<i&&1.05>i&&(i=window.outerWidth/window.innerWidth),document.body.removeChild(n),{zoom:i,devicePxPerCssPx:i*r()}},d=()=>({zoom:1,devicePxPerCssPx:r()}),u=()=>{let e=window.top?window.top.outerWidth/window.top.innerWidth:0;return e=Math.round(100*e)/100,{zoom:e,devicePxPerCssPx:e*r()}},p="ontouchstart"in window&&"string"==typeof document.body.style.webkitTextSizeAdjust?l:"string"==typeof document.body.style.webkitTextSizeAdjust?c:0<=navigator.userAgent.indexOf("Opera")?u:window.devicePixelRatio?d:s,h=()=>{let e=p().zoom;return.4>e?e=5:.6>e?e=4:.8>e?e=3:1>e&&(e=2),e};var g=n(82644);const m=({speed:e,isPlaying:t,onPlayChange:n,onSetSpeed:r,scrollParentRef:s,scrollAreaRef:l,bottomOffset:c=0})=>{const d=(0,i.useRef)(0),u=(0,i.useRef)(t),p=(0,i.useRef)(e),m=(0,i.useRef)(h());p.current=e,u.current=t;const v=(0,i.useCallback)((()=>{m.current=h()}),[]),b=(0,i.useCallback)((()=>{n(!1),clearTimeout(d.current)}),[]),f=(0,i.useCallback)((e=>{const t=s.current;if(!u.current||!l.current||!t)return;const n=0<window.innerHeight-c-l.current.getBoundingClientRect().bottom,i=t instanceof Window?t.scrollX:t.scrollLeft;if(n){if(!e)return void b();t.scrollTo(i,0)}if(!n){const e=t instanceof Window?t.scrollY:t.scrollTop;t.scrollTo(i,e+m.current)}const o=1e3/p.current*(g.nR/(40-(40/15-1)));d.current=window.setTimeout(f,o)}),[t,c]);(0,i.useEffect)((()=>{p.current=e}),[e]),(0,i.useEffect)((()=>{t?f(!0):clearTimeout(d.current)}),[t]);const y=(0,i.useCallback)((()=>{requestAnimationFrame((()=>{clearTimeout(d.current),d.current=window.setTimeout(f,500)}))}),[f]),x=(0,i.useCallback)((e=>{var t,i;if(["INPUT","TEXTAREA"].includes((null===(t=document.activeElement)||void 0===t?void 0:t.tagName)||"")&&"numeric"!==(null===(i=document.activeElement)||void 0===i?void 0:i.getAttribute("inputMode")))return;const s=e=>{e>g.nR||e<g.tl?r(p.current):(p.current=e,r(e))};
2return[187,43,107,61].includes(e.keyCode)?(s((e=>{const t=(10*e+1)/10;return t>g.nR?g.nR:t})(p.current)),void o.w.send({event:a.A.INCREASE,item:"+",params:{isPlaying:u.current}})):[189,45,109,173].includes(e.keyCode)?(s((e=>{const t=(10*e-1)/10;return t<g.tl?g.tl:t})(p.current)),void o.w.send({event:a.A.DECREASE,item:"-",params:{isPlaying:u.current}})):27===e.keyCode?(b(),void o.w.send({event:a.A.STOP,item:"esc",params:{isPlaying:u.current}})):void(32===e.keyCode&&(e.preventDefault(),o.w.send({event:u.current?a.A.STOP:a.A.START,item:"space",params:{isPlaying:u.current}}),n()))}),[r,n]);(0,i.useEffect)((()=>(window.addEventListener("wheel",y,{passive:!0}),window.addEventListener("mousewheel",y,{passive:!0}),window.addEventListener("resize",v,{passive:!0}),document.body.addEventListener("keydown",x),()=>{window.removeEventListener("wheel",y),window.removeEventListener("mousewheel",y),window.removeEventListener("resize",v),document.body.removeEventListener("keydown",x)})),[x]),(0,i.useEffect)((()=>()=>{u.current&&setTimeout(b,1e3)}),[])}},56693:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var i=n(502);const o=({isPlaying:e,currentTime:t,scrollMap:n,tabLength:o,scrollParentRef:a,scrollAreaRef:r,centerInParent:s=!1,topStickyOffset:l=0})=>{const c=(0,i.useMemo)((()=>{var e;return(null===(e=n.find((({time:e})=>e>=t))||n.slice(-1)[0])||void 0===e?void 0:e.index)||0}),[t,n]);(0,i.useEffect)((()=>{const t=a.current,n=r.current;if(!e||!n||!t)return;const i=t===window,d=n.offsetHeight/o,u=s?l:0,p=s?t.clientHeight/2-l:0,h=i?window.innerHeight/2-u:p,g=c*d-h,m=i?t.screenX:t.scrollLeft,v=n.getBoundingClientRect().top;t.scrollTo({behavior:"smooth",top:i?window.scrollY+v+g:g,left:m})}),[e,c,o,s,l])}},11241:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var i=n(89851),o=n(23621),a=n(23278),r=n.n(a),s=n(94692),l={injectType:"styleTag",insert:"head",singleton:!1};r()(s.Z,l);const c=s.Z.locals||{};var d=n(24517);const u=({Icon:e,onPress:t,text:n,labelText:a})=>(0,d.BX)(o.Y,{className:c.button,onPress:t,"aria-label":a,children:[(0,d.tZ)(e,{}),n&&(0,d.tZ)(i.x,{className:c.text,type:"body-s-medium",children:n})]})},2289:(e,t,n)=>{"use strict";n.d(t,{GA:()=>i,eE:()=>a,kC:()=>o});let i=function(e){return e.INSTRUMENT_OPEN="Tab Chords Instruments Open",e.INSTRUMENT_CLICK="Tab Chords Instrument Click",e.TRANSPOSE_OPEN="Tab Transpose Click",e.TRANSPOSE_UP="Tab Transpose Up Click",e.TRANSPOSE_DOWN="Tab Transpose Down Click",e.TRANSPOSE_RESET="Tab Transpose Reset Click",e.PIN_CHORDS="Tab Chords Pin Click",e.UNPIN_CHORDS="Tab Chords Pin Cancel",e}({});const o="Chord Panel Collapse Click",a="Tab Aside Panel Collapse Click"},88433:(e,t,n)=>{"use strict";n.d(t,{d:()=>H});var i=n(67030),o=n(53618),a=n(81848),r=n(502),s=n(78123),l=n(19156),c=n(59317),d=n(85290),u=n(78769),p=n(78923),h=n(97104),g=n(2289);var m=n(84368),v=n(52757),b=n(91174),f=n(20386),y=n.n(f),x=n(23278),k=n.n(x),C=n(16772),S={injectType:"styleTag",insert:"head",singleton:!1};k()(C.Z,S);const w=C.Z.locals||{};var P=n(24517);const T=({chordType:e,children:t,className:n})=>(0,P.tZ)("div",{className:y()(w.container,e===l.WW&&w.piano,n),children:t}),Z=({chordsCount:e=1/0,isHighlighted:t=!1,chordType:n,className:i,useFakeData:a=!1})=>{const s=(0,o.Z)([b.DZ])[0],l=(0,r.useCallback)(((e,n)=>(0,P.tZ)(v.D,{isHighlighted:t,name:e,useFakeData:a,uiKey:m.T2,chordIndex:n},e)),[t,a]);return(0,P.tZ)(T,{chordType:n,className:i,children:s.slice(0,e).map(((e,t)=>l(e,t)))})};var _=n(65893),M=n(97045),I=n(57509),N=n(23621),A=n(89851),z=n(71900),L={injectType:"styleTag",insert:"head",singleton:!1};k()(z.Z,L);const E=z.Z.locals||{},O=({text:e,Icon:t,onPress:n})=>(0,P.BX)(N.Y,{className:E.button,onPress:n,children:[(0,P.tZ)(A.x,{type:"body-s",children:e}),(0,P.tZ)(t,{})]}),B=()=>{const e=(0,h.Q)().t,t=(0,o.Z)([I.JC.getCollapsed])[0],n=(0,c.Z)({toggleCollapsed:I.rM.toggleCollapsed});return(0,P.tZ)(O,{text:e(t?{message:["Show all"]}:{message:["Show less"]}),Icon:t?_.v:M.g,onPress:()=>{n.toggleCollapsed(),d.w.send({event:g.kC,value:!t})}})};var R=n(32805),F={injectType:"styleTag",insert:"head",singleton:!1};k()(R.Z,F);const D=R.Z.locals||{},H=({chordsOverlay:e,onChordsOverlayClick:t})=>{const n=(()=>{const e=(0,h.Q)().t,t=(0,o.Z)([u.hf,a.MR]),n=t[0],i=t[1],m=[{title:e({message:["Guitar"]}),key:l.nq},{title:e({message:["Ukulele"]}),key:l.d2},{title:e({message:["Piano"]}),key:l.WW}].filter((e=>!!i||e.key===n)),v=(0,c.Z)({setChordType:p.BI}),b=(0,r.useCallback)((e=>{d.w.send({event:g.GA.INSTRUMENT_CLICK,instrument:(0,s.zf)(e)}),v.setChordType(e)}),[]);return{chordTypes:m,chordType:n,onChange:b}}
2)(),m=n.chordTypes,v=n.chordType,b=n.onChange,f=(0,o.Z)([a.ii,a.xU]),y=f[0],x=f[1],k=!!e;return(0,P.tZ)(i.m,{onSelectionChange:b,defaultSelectedKey:v,items:m.map((({key:n,title:i})=>({key:n,title:i,content:(0,P.BX)("div",{className:k?D.tabContentWrapper:void 0,children:[(0,P.tZ)(Z,{chordType:n,chordsCount:y,useFakeData:k}),x&&(0,P.tZ)(B,{}),k&&(0,P.tZ)("div",{className:D.blurOverlay,role:"button",tabIndex:0,onClick:t,onKeyDown:t,children:(0,P.tZ)("div",{className:D.overlayButton,children:e})})]})})))})}},53675:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var i=n(502),o=n(33976),a=n(54595),r=n(53618),s=n(59317),l=n(85290),c=n(1461),d=n(81231),u=n(78769),p=n(91174),h=n(97104),g=n(2289),m=n(81848),v=n(80725),b=n(20386),f=n.n(b),y=n(23278),x=n.n(y),k=n(22228),C={injectType:"styleTag",insert:"head",singleton:!1};x()(k.Z,C);const S=k.Z.locals||{};var w=n(48525),P=n(24517);const T=({chords:e,isHorizontal:t,isMobile:n,chordType:i,renderItem:o})=>(0,P.tZ)("div",{className:f()(S.list,w.Z.chordList,{[S.isHorizontal]:t,[S.isMobile]:n,[S[i]]:i}),children:e.map(o)});var Z=n(84368),_=n(85371),M=n(98652),I=n(1896);const N=({isHorizontal:e=!1,onChordCarouselItemClick:t,chordsCount:n=1/0,isHighlighted:o=!1})=>{const a=(0,r.Z)([p.DZ,u.hf]),s=a[0],l=a[1],c=(0,v.F)().isMobile,d=(0,h.Q)().t,g=(0,i.useCallback)((e=>{const n=!M.Z.isAccessToTabFeaturesOpen&&c?d({message:["Play"]}).toUpperCase():"";return(0,P.tZ)(_.Z,{isHighlighted:o,name:e,uiKey:Z.T2,isControlsHidden:c,onChordCarouselItemClick:t,bottomButtonText:n,size:c?I.nm:I.sA},e)}),[]);return(0,P.tZ)(T,{chords:s.slice(0,n),isHorizontal:e,renderItem:g,chordType:l})};var A=n(9285),z=n(78123),L=n(19156),E=n(78923);const O=()=>{const e=(()=>{const e=(0,h.Q)().t,t=[{text:e({message:["Guitar"]}),state:L.nq,value:L.nq},{text:e({message:["Ukulele"]}),state:L.d2,value:L.d2},{text:e({message:["Piano"]}),state:L.WW,value:L.WW}],n=(0,r.Z)([u.hf])[0],o=(0,s.Z)({setChordType:E.BI}),a=(0,i.useMemo)((()=>t.findIndex((e=>e.value===n))),[n]),c=(0,i.useMemo)((()=>t[a].text),[a]),d=(0,i.useCallback)((e=>{l.w.send({event:g.GA.INSTRUMENT_CLICK,instrument:(0,z.zf)(e)}),o.setChordType(e)}),[]);return{chordTypes:t,activeIndex:a,activeState:c,onChange:d}})(),t=e.chordTypes,n=e.activeIndex,o=e.onChange,a=(0,i.useCallback)((({value:e})=>o(e)),[]);return(0,P.tZ)(A.ZP,{type:"button",data:t,activeIndex:n,onChange:a})};var B=n(9335),R=n(83629),F=n(74444),D=n(1980),H=n(40643),j=n(16454),W=n(59554),V={injectType:"styleTag",insert:"head",singleton:!1};x()(W.Z,V);const K=W.Z.locals||{},U=({fixed:e,onClick:t})=>{const n=(0,v.F)(),i=n.theme,o=n.isDarkTheme?j.A5:j.o8;return(0,P.tZ)(R.ZP,{type:F.c,leftIcon:{name:H.WZ,state:o},size:D.BQ,className:[e?K.pinActive:K.pinInactive,K[i]],onClick:t})};var X=n(32840),G={injectType:"styleTag",insert:"head",singleton:!1};x()(X.Z,G);const q=X.Z.locals||{},Y=({children:e,title:t,hasPin:n=!0,withStaticPlayerWhitespace:o,setFixed:a,isFixed:r,topPaddingType:s})=>{const l=(0,v.F)().theme,c=(0,i.useCallback)((()=>{a(!r)}),[r]);return(0,P.tZ)(B.Z,{title:t,TitleAction:n&&(0,P.tZ)(U,{fixed:r,onClick:c}),type:B.W.CHORDS,className:f()(q[l],{[q.fixed]:r,[q.withStaticPlayerWhitespace]:o,[q[s||""]]:s}),children:e})},Q=()=>{const e=(0,h.Q)().t,t=(0,r.Z)([p.PY,c.X6,o.q,a.t.getUnits,m.MR,d.PW,u.eP]),n=t[0],i=t[1],v=t[2],b=t[3],f=t[4],y=t[5],x=t[6],k=(0,s.Z)({setIsPinned:u.kF.setIsPinned});return n&&y?(0,P.BX)(Y,{title:e({message:["Chords"]}),withStaticPlayerWhitespace:!!b.bottom,setFixed:e=>{const t=e?g.GA.PIN_CHORDS:g.GA.UNPIN_CHORDS;l.w.send({event:t}),k.setIsPinned(e)},isFixed:x,topPaddingType:v?"banner":i&&"official",children:[f&&(0,P.tZ)(O,{}),(0,P.tZ)(N,{})]}):null},J=(0,i.memo)(Q)},57509:(e,t,n)=>{"use strict";n.d(t,{JC:()=>a,UQ:()=>i,rM:()=>o});const i=(0,n(86561).tA)("chordPanel")({persist:{localStorage:["collapsed"]},initialState:{collapsed:!1},actions:{toggleCollapsed:(e,t)=>({collapsed:!t.collapsed})}}),o=i.actions,a=i.props},81848:(e,t,n)=>{"use strict";n.d(t,{ii:()=>u,MR:()=>d,xU:()=>p});var i=n(56619),o=n(19156),a=n(38314),r=n(1461),s=n(78769),l=n(91174);var c=n(57509);const d=(0,a.P1)([r.HS],(e=>e!==i.gI)),u=(0,a.P1)([s.hf,c.JC.getCollapsed],((e,t)=>t?e===o.WW?8:12:1/0)),p=(0,a.P1)([s.hf,l.DZ],((e,t)=>e===o.WW?t.length>8:t.length>12))},66861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,b:()=>i});let i=function(e){return e.DIAGRAMS_VARIATION_CLICK="Tab Chord Diagram Variation Click",e.DIAGRAM_PLAY="Tab Chord Play Click",e}({});const o="Tab Chord Hover View"},48825:(e,t,n)=>{"use strict";n.d(t,{p3:()=>a,qb:()=>o,z:()=>r});var i=n(19156);const o=[{type:i.nq,title:{message:["Guitar"]}},{type:i.d2,title:{message:["Ukulele"]}},{type:i.WW,title:{message:["Piano"]}}],a={capoSize:4,containerIndents:{top:10,left:20,right:20,bottom:20},effectTop:3,crossLineSize:4.6,openStringRadius:2.5,fingerSize:10,fingerFontSize:9,fretFontSize:10,nutSize:3,footerTextTopIndent:2,fretDividerSize:1,fretSize:11,stringDistance:9,stringSize:1},r={whiteKeyWidth:9,whiteKeyHeight:39,blackKeyWidth:5,blackKeyHeight:26,borderWidth:1,borderTopWidth:3,borderRadius:2,fingerWhiteKeySize:5,fingerBlackKeySize:5,fingerBlackKeyBorderWidth:1}},41522:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});const i=(0,n(96797).Z)((()=>n.e(2762).then(n.bind(n,26404)).then((({NewDraggableChordContainer:e})=>e))))},85371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var i=n(502),o=n(32138),a=n(34920),r=n(74913),s=n(1896),l=n(59317),c=n(53618),d=n(1461),u=n(97104),p=n(78769),h=n(78923),g=n(91174),m=n(24517),v=n(22223);const b=({name:e,uiKey:t,size:n,showControls:b,isHeaderHidden:f=!1,isControlsHidden:y=!1,showTuning:x=!0,onChordCarouselItemClick:k,bottomButtonText:C,isHighlighted:S})=>{const w=(0,u.Q)().t,P=(0,l.Z)({setChordVariation:h.Pk}),T=(0,c.Z)([g.uO,g.bQ,g.Bc,g.iL,p.pi,p.ws,d.Km,p.j5]),Z=T[0],_=T[1],M=T[2],I=T[3],N=T[4],A=T[5],z=T[6],L=T[7],E=Z[e],O=_[e]||"",B=M[E],R=I[E];let F=n||s.sA;A&&(F=F===s.nm?s.sA:F);const D=(0,i.useCallback)((e=>{P.setChordVariation({name:E,variationIndex:e,uiKey:t})}),[E]),H=(0,i.useCallback)((e=>A?e?w({message:["Inversion #",["activeVariation","number"]]},{activeVariation:e}):w({message:["Root"]}):w({message:[["activeVariation","number"]," of ",["variations","number"]]},{activeVariation:e+1,variations:B?B.length:1})),[B,A]),j=(0,i.useCallback)((e=>{const t=B&&null!==e?B[e]:null;return t?A?(0,v.az)(a.Z,{size:F,...t,key:t.id}):(0,v.az)(r.Z,{...t,key:t.id,size:F,tuning:x&&F===s.Fj?z:void 0,isLeftHand:L,isUkulele:N}):A?(0,m.tZ)(a.Z,{size:F},"placeholder"):(0,m.tZ)(r.Z,{fretNum:!1,size:F,fingers:[],disabled:[],isLeftHand:L,isUkulele:N},"placeholder")}),[A,N,F,z,B,L]);return(0,m.tZ)(o.Z,{isHighlighted:S,size:F,showControls:b,isHeaderHidden:f,isControlsHidden:!b&&y,name:O,isUkulele:N,isPiano:A,variations:B,defaultVariation:R,onChange:D,getSliderText:H,renderVariation:j,onChordCarouselItemClick:k,bottomButtonText:C})}},52757:(e,t,n)=>{"use strict";n.d(t,{D:()=>Q});var i=n(502),o=n(59317),a=n(53618),r=n(1461),s=n(97104),l=n(54577);const c=(e,t,n,i,o,a)=>({shape:"rect",props:{x:e,y:t,width:n,height:i,radius:o},style:a}),d=({ctx:e,props:{x:t,y:n,radius:i},style:{fill:o,strokeWidth:a=1,stroke:r}})=>{e.beginPath(),e.arc(t,n,i,0,2*Math.PI),e.closePath(),o&&(e.fillStyle=o),r&&(e.strokeStyle=r,e.lineWidth=a),o&&e.fill(),r&&e.stroke()},u=({ctx:e,props:{x:t,y:n,width:i,height:o,radius:a=0},style:{fill:r,strokeWidth:s=1,stroke:l}})=>{const c=t,d=n;let u=a;const p=i,h=o;p<2*u&&(u=p/2),h<2*u&&(u=h/2),e.beginPath(),e.moveTo(c+u,d),e.arcTo(c+p,d,c+p,d+h,u),e.arcTo(c+p,d+h,c,d+h,u),e.arcTo(c,d+h,c,d,u),e.arcTo(c,d,c+p,d,u),e.closePath(),r&&(e.fillStyle=r),l&&(e.strokeStyle=l,e.lineWidth=s),r&&e.fill(),l&&e.stroke()};var p=n(48825);const h=e=>Array.from({length:e},((e,t)=>t)),g=(e,t,n)=>l.S0*n*t-("F"===e?3*n:0),m=()=>p.z.whiteKeyHeight+p.z.borderWidth+p.z.borderTopWidth,v={0:0,2:1,4:2,5:3,7:4,9:5,11:6},b={1:0,3:1,6:3,8:4,10:5},f=(e,t,n,i)=>{const o=p.z.whiteKeyWidth,a=p.z.blackKeyWidth,r=p.z.blackKeyHeight,s=p.z.borderWidth,d=p.z.borderRadius,u=o+s,v=g(i,e,u);return[...h(l.S0).map((e=>{const t=v+u*e+s/2;return 0>t?null:c(t,0,u,m()-s/2,d,{stroke:n,strokeWidth:s})})).filter((e=>null!==e)),...h(l.R3+1).map((e=>2===e?null:c(v+u*(e+1)-a/2+s/2,0,a,r,d,{fill:t}))).filter((e=>null!==e))]},y=({octaveCount:e=2,fingers:t=[],baseDisplayNote:n="C",getThemeColor:i})=>{const o=(e=>{const t=p.z.whiteKeyWidth,n=p.z.borderWidth,i=l.S0*e;return t*i+n*(i+1)})(e),a=m(),r=i("icon-primary"),s=i("icon-secondary"),c=i("bg-primary");return{render(i){i.clearRect(0,0,o,a);const h="F"===n?1:0;for(let t=0;t<e+h;
2t++){f(t,r,s,n).forEach((({props:e,style:t})=>u({ctx:i,props:e,style:t})))}const y=((e,t)=>({shape:"rect",props:{x:0,y:0,width:t,height:p.z.borderTopWidth,radius:0},style:{fill:e}}))(r,o);u({ctx:i,props:y.props,style:y.style}),t.forEach((({octaveIndex:e,keyIndex:t})=>{const o=((e,t,n,i,o)=>{const a=l.p3.includes(i),r=p.z.fingerWhiteKeySize,s=p.z.fingerBlackKeyBorderWidth,c=p.z.fingerBlackKeySize,d=p.z.borderWidth,u=p.z.whiteKeyWidth,h=p.z.blackKeyHeight,f=u+d,y=g(o,n,f);if(a)return{shape:"circle",props:{x:y+f*(b[i]+1)+d/2,y:h-c,radius:c/2},style:{fill:t,stroke:e,strokeWidth:s}};const x=r/2;return((e,t,n,i)=>({shape:"circle",props:{x:e,y:t,radius:n},style:i}))(y+f*(v[i]+.5)+d/2,m()-x-(u-r+d)/2-d,x,{fill:e})})(r,c,e,t,n);d({ctx:i,props:o.props,style:o.style})}))},containerWidth:o,containerHeight:a}};var x=n(92972),k=n(83623),C=n(24517);const S=()=>"undefined"==typeof window?1:window.devicePixelRatio||1,w=({containerWidth:e,containerHeight:t,render:n})=>{const o=(0,i.useRef)(null),a=(0,i.useState)(S),r=a[0],s=a[1];return(0,i.useEffect)((()=>{var e;if("undefined"==typeof window)return;let t=null;const n=()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{const e=S();s(e)}))};return window.addEventListener("resize",n),null===(e=window.visualViewport)||void 0===e||e.addEventListener("resize",n),()=>{var e;window.removeEventListener("resize",n),null===(e=window.visualViewport)||void 0===e||e.removeEventListener("resize",n),t&&cancelAnimationFrame(t)}}),[]),(0,i.useLayoutEffect)((()=>{const i=o.current;if(i){const o=i.getContext("2d");o&&(i.width=e*r,i.height=t*r,o.setTransform(1,0,0,1,0,0),o.scale(r,r),o.imageSmoothingEnabled=!1,o.clearRect(0,0,o.canvas.width,o.canvas.height),n(o)
2)}}),[n,e,t,r]),(0,C.tZ)("canvas",{ref:o,width:e*r,height:t*r,style:{width:e,height:t}})},P=["createChord","customColor"],T=e=>{const t=e.createChord,n=e.customColor,i=(0,x.Z)(e,P);return(0,C.tZ)(k.G,{children:({getThemeColor:e})=>{const o=t({...i,getThemeColor:e,customColor:n});return(0,C.tZ)(w,{containerWidth:o.containerWidth,containerHeight:o.containerHeight,render:o.render})}})},Z=e=>(0,C.tZ)(T,{...e,createChord:y});var _=n(95330);const M=e=>h(e).map((e=>e+1)),I=({capo:e,fingers:t,disabled:n,tuning:i,fretNum:o,isUkulele:a,isLeftHand:r,getThemeColor:s,customColor:l})=>{const c=p.p3.containerIndents,h=p.p3.capoSize,g=p.p3.fingerFontSize,m=p.p3.fingerSize,v=p.p3.fretDividerSize,b=p.p3.fretFontSize,f=p.p3.fretSize,y=p.p3.nutSize,x=p.p3.stringDistance,k=p.p3.stringSize,C=p.p3.footerTextTopIndent,S=a?_.l9:_.mX,w=k+x,P=w*S-x,T=v+f,Z=y+T*_.yV;return{render(a){var I,N,A;const z=s(null!==(I=null==l?void 0:l.mainColor)&&void 0!==I?I:"icon-primary"),L=s(null!==(N=null==l?void 0:l.fretColor)&&void 0!==N?N:"icon-muted"),E=s(null!==(A=null==l?void 0:l.inverseColor)&&void 0!==A?A:"icon-inverse");(e=>{e.clearRect(0,0,e.canvas.width,e.canvas.height)})(a);const O=(e,t,n,i)=>{u({ctx:a,props:e,style:{fill:t,stroke:n,strokeWidth:i}})},B=({text:e,x:t,y:n,fontSize:i,fontWeight:o,textAlign:r="center",textBaseline:s="top",fill:l=z})=>{(({ctx:e,text:t,props:{x:n,y:i},style:{fontSize:o=11,fontFamily:a="sans-serif",fontWeight:r=400,fill:s,textAlign:l="left",textBaseline:c="top"}})=>{var d;e.textBaseline=c,e.beginPath(),e.font=r+" "+o+"px "+a,e.textAlign=l,s&&(e.fillStyle=s),e.fillText(null!==(d=null==t?void 0:t.toString())&&void 0!==d?d:"",n,i),e.closePath()})({ctx:a,text:e,props:{x:t,y:n},style:{textAlign:r,fill:l,fontFamily:"'Roboto Mono', 'Courier New', monospace",fontSize:i,fontWeight:o,textBaseline:s}})},R=e=>{const t=k/2+w*(e-1);return c.left+(r?t:P-t)};M(_.yV).forEach((e=>{O({x:c.left,y:c.top+y+T*e-v,width:P,height:v},e===_.yV?z:L)})),M(S).forEach((e=>{O({x:c.left+w*(e-1),y:c.top,width:k,height:Z-v},z)})),O({x:c.left,y:c.top,width:P,height:o?v:y},z),(()=>{if(null!=e&&e.fret&&null!=e&&e.lastString){const t=(S-e.lastString)*w;O({x:c.left-x/2+(r?0:t),y:c.top+y+(f-h)/2+(e.fret-1)*T,width:P+x-t,height:h,radius:h/2},z,E,1)}})(),o&&B({text:""+o,x:c.left+P+h+3,y:c.top+(f/2-h+v),fontSize:b,textAlign:"left"}),t.forEach((({fret:e,string:t,finger:n})=>{const i=R(t),o=c.top+y+(e-1)*T+f/2;d({ctx:a,props:{radius:m/2,x:i,y:o},style:{fill:z}}),B({text:n.toString(),x:i,y:o+(.5*g+.5),fontSize:g,fontWeight:600,textBaseline:"bottom",fill:E})}
2)),i&&i.trim().split(" ").forEach(((e,t)=>{((e,t)=>{B({text:e,x:R(t),y:c.top+Z+C,fontSize:g})})(e,t+1)})),(()=>{const i=t.map((e=>e.string)),o=M(S),s=(()=>{if(!e||!e.lastString)return[];if(r){const t=S-e.lastString+1;return M(e.lastString).map((e=>e+t-1))}return M(e.lastString)})(),l=o.filter((e=>!i.includes(e)&&!n.includes(e)&&!s.includes(e)));n.forEach((e=>{const t=(e-1)*w+k/2,n=c.left+(r?t:P-t);((e,t,n,i,o)=>{var a;e.beginPath(),e.strokeStyle=o.stroke,e.lineCap="round",e.lineWidth=null!==(a=o.strokeWidth)&&void 0!==a?a:1,e.moveTo(t-i/2,n-i/2),e.lineTo(t+i/2,n+i/2),e.moveTo(t-i/2,n+i/2),e.lineTo(t+i/2,n-i/2),e.stroke()})(a,n,p.p3.effectTop,p.p3.crossLineSize,{stroke:z,strokeWidth:1})})),l.forEach((e=>{const t=(e-1)*w+k/2;d({ctx:a,props:{x:c.left+(r?t:P-t),y:p.p3.effectTop,radius:p.p3.openStringRadius},style:{stroke:z,strokeWidth:1}})}))})()},containerWidth:P+c.left+c.right,containerHeight:Z+c.top+c.bottom}},N=e=>(0,C.tZ)(T,{...e,createChord:I});var A=n(20386),z=n.n(A),L=n(89851),E=n(23582),O=n(72191),B=n(1295),R=n(23278),F=n.n(R),D=n(84689),H={injectType:"styleTag",insert:"head",singleton:!1};F()(D.Z,H);const j=D.Z.locals||{},W=({name:e,isHeaderHidden:t,isHighlighted:n,isPending:i})=>{const o=n?"yellow":i?"secondary":"primary";return t?null:(0,C.tZ)("div",{className:j.header,children:(0,C.tZ)(L.x,{type:"mono-m-semibold",state:o,children:e})})},V=({name:e,isPiano:t=!1,isUkulele:n=!1,isHeaderHidden:o=!1,isControlsHidden:a=!1,getSliderText:r,showControls:s=!1,disabled:l=!1,variations:c,defaultVariation:d,onChange:u,renderVariation:p,isHighlighted:h,isPending:g=!1,testID:m,overlay:v,onOverlayClick:b})=>{const f=(0,i.useState)(s),y=f[0],x=f[1],k=(0,i.useState)(d),S=k[0],w=k[1],P=(0,i.useState)(null),T=P[0],Z=P[1],_=(0,i.useMemo)((()=>r(S)),[r,S]),M=z()(j.chord,{[j.pianoChord]:t,[j.ukuleleChord]:n,[j.highlighted]:h}),I=z()(j.carouselSlider,{[j.next]:"next"===T,[j.prev]:"prev"===T,[j.loading]:g});(0,i.useEffect)((()=>{w(d)}),[d]);const N=(null==c?void 0:c.length)||0;if(!c||0===N)return(0,C.BX)("section",{className:M,children:[(0,C.tZ)(W,{isHeaderHidden:o,isHighlighted:h,name:e,isPending:g}),(0,C.BX)("div",{className:j.carouselArea,children:[(0,C.tZ)("div",{className:j.carousel,children:(0,C.tZ)("div",{className:j.carouselSlider,children:p(null)})}),v&&(0,C.tZ)("div",{className:j.blurOverlay,role:"button",tabIndex:0,onClick:b,onKeyDown:b,children:v})]})]});const A=(S-1+N)%N,R=(S+1)%N;return(0,C.BX)("section",{onMouseEnter:()=>{a||g||x(!0)},onMouseLeave:()=>{a||s||x(!1)},className:M,"aria-busy":g,children:[(0,C.tZ)(W,{isHeaderHidden:o,isHighlighted:h,name:e,isPending:g}),(0,C.BX)("div",{className:j.carouselArea,children:[(0,C.tZ)("div",{className:j.carousel,children:(0,C.tZ)("div",{className:I,onTransitionEnd:()=>
2{if(!T)return;let e=S;"next"===T?e=R:"prev"===T&&(e=A),Z(null),w(e),u(e)},children:[A,S,R].map(((e,t)=>{const n=null==c?void 0:c[e],o=n?n.id+"-"+t:"placeholder-"+t;return(0,C.tZ)(i.default.Fragment,{children:p(e)},o)}))})}),v&&(0,C.tZ)("div",{className:j.blurOverlay,role:"button",tabIndex:0,onClick:b,onKeyDown:b,children:v})]}),!a&&y&&(0,C.BX)("div",{className:z()(j.footer,v&&j.footerAboveOverlay),children:[(0,C.tZ)(E.z,{Icon:O.w,className:j.button,onPress:()=>{g||Z("prev")},isDisabled:l||g||2>(null==c?void 0:c.length),"aria-label":"Previous Variation",state:"tertiary"}),(0,C.tZ)(L.x,{className:j.paging,type:"caption-l",state:"secondary",children:_}),(0,C.tZ)(E.z,{Icon:B.X,className:j.button,onPress:()=>{g||Z("next")},isDisabled:l||g||1===(null==c?void 0:c.length),"aria-label":"Next Variation",state:"tertiary"})]})]})};var K=n(91174),U=n(78769),X=n(78923);const G={id:"fake_am",open:[0,1,1,1,1,0],fretNum:!1,fingers:[{string:4,fret:2,finger:2},{string:3,fret:2,finger:3},{string:2,fret:1,finger:1}],disabled:[6],notes:[]},q={id:"fake_am_ukulele",open:[0,0,0,0],fretNum:!1,fingers:[{string:1,fret:2,finger:1}],disabled:[],notes:[]},Y={id:"fake_am_piano",baseDisplayNote:"C",startOctaveIndex:3,octaveCount:2,fingers:[{midiIndex:57,absoluteOctaveIndex:3,octaveIndex:0,keyIndex:9},{midiIndex:60,absoluteOctaveIndex:4,octaveIndex:1,keyIndex:0},{midiIndex:64,absoluteOctaveIndex:4,octaveIndex:1,keyIndex:4}]},Q=({name:e,uiKey:t,showControls:n,isHeaderHidden:l=!1,isControlsHidden:c=!1,showTuning:d=!1,isHighlighted:u,chordIndex:p,overlay:h,onOverlayClick:g,useFakeData:m=!1})=>{var v;const b=(0,o.Z)({setChordVariation:X.Pk}),f=(0,s.Q)().t,y=(0,a.Z)([K.uO,K.bQ,K.Bc,K.iL,U.pi,U.ws,r.Km,U.j5,K.Li]),x=y[0],k=y[1],S=y[2],w=y[3],P=y[4],T=y[5],_=y[6],M=y[7],I=y[8],A=m||!!h,z=x[e],L=k[e]||"",E=S[z],O=null!==(v=w[z])&&void 0!==v?v:0,B=(0,i.useState)(void 0),R=B[0],F=B[1],D=(0,i.useState)(0),H=D[0],j=D[1];(0,i.useLayoutEffect)((()=>{F(void 0),j(0)}),[e,T,P,A]);const W=(0,i.useMemo)((()=>I.includes(e)||I.includes(z)),[I,e,z]),Q=!A&&!W;(0,i.useEffect)((()=>{E&&0<E.length&&(F(E),j(O))}),[E,O]);const J=(0,i.useMemo)((()=>T?[Y]:P?[q]:[G]),[T,P]);let $=A?J:Q&&null!=R&&R.length?R:E,ee=A?0:Q&&null!=R&&R.length?H:O;const te=(0,i.useCallback)((e=>{A||b.setChordVariation({name:z,variationIndex:e,uiKey:t})}),[b,z,t,A]),ne=(0,i.useCallback)((e=>T?e?f({message:["Inversion #",["activeVariation","number"]]},{activeVariation:e}):f({message:["Root"]}):f({message:[["activeVariation","number"]," of ",["variations","number"]]},{activeVariation:e+1,variations:$?$.length:1})),[$,T]),ie=(0,i.useCallback)((e=>{const t=$&&null!==e?$[e]:null;return t?T?(0,C.tZ)(Z,{...t}):(0,C.tZ)(N,{...t,tuning:d?_:void 0,isLeftHand:M,isUkulele:P}):T?(0,C.tZ)(Z,{}):(0,C.tZ)(N,{fretNum:!1,fingers:[],disabled:[],isLeftHand:M,isUkulele:P})}),[T,P,_,$,M,d]);return(0,C.tZ)(V,{isHighlighted:u,showControls:n,isHeaderHidden:l,isControlsHidden:!n&&c,name:L,isUkulele:P,isPiano:T,variations:$,defaultVariation:ee,isPending:Q,onChange:te,getSliderText:ne,renderVariation:ie,overlay:h,onOverlayClick:g})}},19123:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});const i=(0,n(7791).Id)((()=>n.e(4498).then(n.bind(n,81619))))("playChord")},91174:(e,t,n)=>{"use strict";n.d(t,{Bc:()=>u,DZ:()=>m,Li:()=>v,PY:()=>p,aq:()=>c,bQ:()=>b,iL:()=>g,uO:()=>h});var i=n(38314),o=n(18986),a=n(80721),r=n(1461),s=n(78769),l=n(60538);const c=(0,i.P1)([r.BY,r.I_,s.k4],((e,t,n)=>(n?t:e)||e)),d=(0,i.P1)([c],(e=>(0,a.k)(e))),u=(0,i.P1)([l.nL,s.hf],((e,t)=>e[t])),p=(0,i.P1)([l.nL],(e=>Object.values(e).some((e=>Object.keys(e).length)))),h=(0,i.P1)([d,s.lv,s.hf,r.ot,s.ax],((e,t,n,i,a)=>{const r=o.Z.getComputedTranspose({capo:i,chordType:n,transpose:t,isCapoEnabled:a});return e.reduce(((e,{name:t})=>{const n=o.Z.transpose({currentTranspose:r,chord:t});return e[t]=n,e}),{})})),g=(0,i.P1)([h,d,s.IH,u],((e,t,n,i)=>({...n,...Object.values(e).reduce(((e,a)=>{if("number"==typeof n[a])e[a]=n[a];else if(i[a]){var r;e[a]=o.Z.getChordVariationIndex({id:(null===(r=t.find((e=>e.name===a)))||void 0===r?void 0:r.variation)||a,variations:i[a]})}else e[a]=0;return e}),{})}))),m=(0,i.P1)([u,h],((e,t)=>Object.keys(t).filter((n=>{const i=e[t[n]];return void 0===i||0<(null==i?void 0:i.length)})))),v=(0,i.P1)([m,u,h],((e,t,n)=>e.filter((e=>{var i;return 0<(null===(i=t[n[e]])||void 0===i?void 0:i.length)})))),b=(0,i.P1)([h,s.ws,s.ot,g,u],((e,t,n,i,a)=>Object.keys(e).reduce(((r,s)=>{let l=e[s];if(t){const e=a[l];if(e&&0<e.length){var c,d;l=(null===(c=e[i[l]])||void 0===c?void 0:c.id)||(null===(d=e[0])||void 0===d?void 0:d.id)||l}}return n&&(l=o.Z.transpose({chord:l,currentTranspose:0,withFlat:!0})),r[s]=l,r}),{})))},60622:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getChords:()=>x,setChordType:()=>_,setChordVariation:()=>M,setLeftHandedMode:()=>I,setTranspose:()=>P,setTransposeAsync:()=>w,toggleIsCapoEnabled:()=>N,toggleSimplify:()=>C,toggleSimplifyProTab:()=>S,transposeDown:()=>Z,transposeUp:()=>T});var i=n(18986),o=n(19156),a=n(40398),r=n(56067),s=n(78123),l=n(80721),c=n(86712),d=n(1461),u=n(85290),p=n(66861);const h=(e,t)=>Object.entries(t).reduce(((e,[t,n])=>{const i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp("\\[ch(?:[^\\]]*)\\]"+i+"\\[/ch\\]","g");return e.replace(o,"[ch]"+n+"[/ch]")}),e);var g=n(40311),m=n(7113),v=n(48608);const b={getChords({chords:e,chordType:t,tuning:n,isCustom:i=!1}){const o={appl_api_version:2,instr:t,tuning:n,json:1,custom:i?1:0},a=e.reduce(((e,t)=>(e[t]=t,e)),{});return g.Z.get({url:m.dj+"/tab/applicature/transpose",payload:{...o,...a}}).then((({applicature:e})=>e))},getPianoChordsInversions:({chords:e})=>g.Z.get({url:m.dj+"/tab/applicature/piano-inversions",payload:{chords:e}}),simplify:({tabId:e,tuning:t,chordType:n,tabAccessType:i,transpose:o})=>g.Z.get({url:"/tab/content/simplify",payload:{tab_id:e,tab_access_type:i,simplified:1,instrument:n,tuning:t,transpose:o}}).then((e=>({content:e.content,chords:e.applicature}))),simplifyChords:({chords:e,chordType:t,tuning:n})=>g.Z.get({url:m.dj+"/tab/applicature/simplify-chords",payload:{chords:e,instr:t,tuning:n}}).then((({replacements:e,applicature:t})=>({replacements:e,applicature:t}))),setChordType(e){v.Z.set("__ug_v2_tab_tools_chordType",e,365)}};var f=n(60538),y=n(78769);const x=({chords:e})=>(t,n,{logger:s}
2)=>{const l=(0,c.Z)([d.X6,d.Uc,y.hf,d.Km],n),u=l[0],p=l[1],h=l[2],g=l[3];let m=(0,r.k)(g);!u&&[a.ac,a.gm,a.UU].includes(m)&&(m=a.Ns);const v=e=>{b.getChords({tuning:m,chordType:h,chords:e,isCustom:p}).then((n=>{const o=e.reduce(((e,t)=>(e[t]=n[t]||{old_ch:t},e)),{});t(f.Mw.addChords({chords:i.Z.convertChords({chords:o,chordType:h}),chordType:h}))})).catch(s.error)};return h===o.WW?void b.getPianoChordsInversions({chords:e}).then((e=>{const n=Object.keys(e).filter((t=>!(1<Object.keys(e[t]).length)));t(f.Mw.addChords({chords:i.Z.convertPianoChordsInversions({chords:e}),chordType:h})),n.length&&v(n)})).catch(s.error):void v(e)},k=({applicature:e,simplifiedContent:t,checked:n,computedChordType:a,dispatch:r,logger:s})=>{(a===o.WW?b.getPianoChordsInversions({chords:Object.keys(e)}):Promise.resolve({})).then((o=>{const s=Object.keys(o).filter((e=>!(1<Object.keys(o[e]).length)));r(d.c4.setSimplifiedContent(t)),r(y.kF.setIsSimplified({isSimplified:n,chordType:a})),r(f.Mw.addChords({chordType:a,chords:{...i.Z.convertPianoChordsInversions({chords:o}),...i.Z.convertChords({chords:Object.keys(e).filter((e=>s.includes(e)||!o[e])).reduce(((t,n)=>(t[n]=e[n],t)),{}),chordType:a})}}))})).catch(s.error)},C=({checked:e,chordType:t})=>(n,o,{logger:a})=>{const r=(0,c.Z)([y.hf,d.pQ,d.Km,d.NZ,d.HS,d.I_,y.ax],o),s=r[0],l=r[1],u=r[2],p=r[3],h=r[4],g=r[5],m=r[6],v=i.Z.getChordType({tabType:h,chordType:t||s});return!e||g?void n(y.kF.setIsSimplified({isSimplified:e,chordType:v})):void b.simplify({tabId:l,tuning:i.Z.getTuning({chordType:v,tabType:h,tuning:u}),chordType:v,tabAccessType:p,transpose:i.Z.getComputedTranspose({capo:0,chordType:v,transpose:0,isCapoEnabled:m})}).then((t=>{k({applicature:t.chords,simplifiedContent:t.content,checked:e,computedChordType:v,dispatch:n,logger:a})})).catch(a.error)},S=({checked:e,chordType:t})=>(n,o,{logger:a})=>{const r=(0,c.Z)([y.hf,d.HS,d.BY,d.I_,d.Km],o),s=r[0],u=r[1],p=r[2],g=r[3],m=r[4],v=i.Z.getChordType({tabType:u,chordType:t||s});if(!e||g)return void n(y.kF.setIsSimplified({isSimplified:e,chordType:v}));const f=(0,l.k)(p).map((e=>e.name));return 0===f.length?void n(y.kF.setIsSimplified({isSimplified:e,chordType:v})):void b.simplifyChords({chords:f,chordType:v,tuning:i.Z.getTuning({chordType:v,tabType:u,tuning:m})}).then((({replacements:t,applicature:i})=>0===Object.keys(t).length?void n(y.kF.setIsSimplified({isSimplified:e,chordType:v})):void k({applicature:i,simplifiedContent:h(p,t),checked:e,computedChordType:v,dispatch:n,logger:a}))).catch(a.error)},w=({chordType:e,currentTranspose:t,withFlat:n})=>(o,a)=>{const r=(0,c.Z)([y.ot,d.HS,y.hf],a),s=r[0],l=r[1],u=r[2],p=i.Z.getChordType({tabType:l,chordType:e||u}),h=void 0===n?s:n;o(y.kF.setTranspose({chordType:p,isFlatActive:h,transpose:t}))},P=({step:e=0,transpose:t,useFlats:n})=>(o,a)=>{const r=(0,y.lv)(a()),s=i.Z.getNormalizedTranspose(void 0===t?r+e:t);o(w({currentTranspose:s,withFlat:n}))},T=()=>P({step:1}),Z=()=>P({step:-1}),_=e=>(t,n)=>{const i=(0,c.Z)([y.lv,y.k4,d.X6],n),o=i[0],a=i[1],r=i[2];t(a&&!r?C({checked:!0,chordType:e}):w({chordType:e,currentTranspose:o})),b.setChordType(e)},M=({uiKey:e,...t})=>(n,i)=>{const o=(0,c.Z)([y.hf],i)[0];n(y.kF.setChordVariation(t)),u.w.send({event:p.b.DIAGRAMS_VARIATION_CLICK,instrument:(0,s.zf)(o),ui:e})},I=e=>t=>{t(y.kF.setLeftHanded(e))},N=()=>(e,t)=>{const n=(0,c.Z)([y.ax],t)[0];e(y.kF.setIsCapoEnabled(!n))}},59377:(e,t,n)=>{"use strict";n.d(t,{C:()=>u});var i=n(502),o=n(20386),a=n.n(o),r=n(74256),s=n(13588),l=n(9535),c=n(11326),d=n(24517);const u=({classNames:e={},defaultValue:t,isDisabled:n,maxValue:o=l.Fe,minValue:u=l.m$,onChange:p,onChangeEnd:h,onDragStart:g,onDragEnd:m,step:v=l.q3,size:b,value:f})=>{const y=(0,i.useRef)(null),x=(0,i.useRef)({drag:r.Z,dragEnd:r.Z}),k=(0,s.Z)({initialValue:t,controlledValue:f,onChange:p}),C=k[0],S=void 0===C?l.sb:C,w=k[1],P=(0,i.useState)(!1),T=P[0],Z=P[1],_=(S-u)/(o-u)*100,M=(0,i.useCallback)((e=>{var t;if(!y.current)return u;const n=y.current.getBoundingClientRect(),i=n.left,a=n.width,r=e instanceof window.MouseEvent?e.clientX:null===(t=e.touches[0])||void 0===t?void 0:t.clientX,s=r-i;return void 0===r?void 0:0>s?u:s>a?o:u+Math.round(s/a*(o-u)/v)*v}),[o,u,v]),I=(e,t=!1)=>{const n=M(e);void 0!==n&&(w(n),t&&h&&h(n))};x.current={drag:e=>I(e),dragEnd:e=>I(e,!0)};const N=(0,i.useCallback)((e=>{if(n)return;const t={drag(e){e.stopPropagation(),requestAnimationFrame((()=>{x.current.drag(e)}))},dragEnd(e){x.current.dragEnd(e),t.unsubscribe(),Z(!1),null==m||m()},cancel(){Z(!1),null==m||m()},unsubscribe(){document.removeEventListener("mousemove",t.drag),document.removeEventListener("mouseup",t.dragEnd),document.removeEventListener("touchmove",t.drag),document.removeEventListener("touchend",t.dragEnd),document.removeEventListener("touchcancel",t.cancel)}};document.addEventListener("mousemove",t.drag),document.addEventListener("mouseup",t.dragEnd),document.addEventListener("touchmove",t.drag),document.addEventListener("touchend",t.dragEnd),document.addEventListener("touchcancel",t.cancel),I(e.nativeEvent),Z(!0),null==g||g()}),[n,g,m]);return(0,d.tZ)("div",{className:a()(c.Z.container,{[c.Z["size-"+b]]:void 0!==b},e.container),role:"slider","aria-valuemin":u,"aria-valuemax":o,"aria-valuenow":S,"data-disabled":n||void 0,"data-dragging":T||void 0,onMouseDown:N,onTouchStart:N,children:(0,d.tZ)("div",{className:a()(c.Z.track,e.track),ref:y,style:{"--fill-width":_+"%"},children:(0,d.tZ)("div",{className:a()(c.Z.thumb,e.thumb),style:{left:_+"%"}})})})}},9535:(e,t,n)=>{"use strict";n.d(t,{BD:()=>d,Bt:()=>a,Fe:()=>r,Nb:()=>o,Ql:()=>g,RK:()=>i,Z4:()=>h,j8:()=>u,m$:()=>s,oT:()=>p,q3:()=>l,sb:()=>c});const i=0,o=1,a=.01,r=100,s=0,l=1,c=0,d=-1,u=1,p=.01,h=150,g=160},42527:(e,t,n)=>{"use strict";n.d(t,{A9:()=>Q,CB:()=>s,CJ:()=>S,D2:()=>h,D9:()=>U,E1:()=>w,Fj:()=>$,Fu:()=>a,GG:()=>F,Gk:()=>A,I7:()=>u,IM:()=>Y,IO:()=>G,IS:()=>J,Ke:()=>K,Kn:()=>x,MS:()=>m,Mg:()=>R,Mm:()=>g,Nv:()=>X,O_:()=>L,Qh:()=>O,R6:()=>T,Rc:()=>f,WQ:()=>q,Wf:()=>p,Wg:()=>b,_$:()=>V,_2:()=>z,_j:()=>d,ad:()=>Z,c5:()=>W,er:()=>l,fz:()=>v,g3:()=>ee,il:()=>M,j3:()=>j,jg:()=>B,l1:()=>E,lJ:()=>k,lV:()=>y,lw:()=>_,mA:()=>D,pd:()=>I,qb:()=>r,tV:()=>c,ur:()=>o,wv:()=>C,xc:()=>H,yd:()=>N,yk:()=>P,zL:()=>i});const i="Tab Play Click",o="Tab Play Audio Click",a="Tab Play Settings Click",r="Tab Play Settings Submit",s="Tab Pro Rewind Click",l="Tab Pro Instrument Volume Pull",c="Tab Pro Volume Pull",d="Tab Pro Speed Pull",u="Tab Pro Fretboard Click",p="Tab Pro Fretboard Close",h="Tab Pro Fretboard Chose Click",g="Tab Settings Lyrics Switch",m="Tab Pro Metronome Start",v="Tab Pro Metronome End",b="Tab Pro Transpose Up Click",f="Tab Pro Transpose Down Click",y="Tab Pro Loop Start",x="Tab Pro Loop End",k="Tab Pro Instrument Click",C="Tab Pro Instrument Mute Click",S="Tab Pro Instrument Solo Click",w="Tab Pro Mute All Click",P="Tab Official Backing Track Click",T="Tab Pro Zoom Click",Z="Tab Pro Fullscreen Click",_="Tab Pro Fullscreen Close",M="Tab Pro Print Click",I="Tab Settings Reset",N="Tab Menu Type Click",A="Tab Navigation Click",z="Tab Pro Instrument Pin Click",L="Tab Settings Pitch Click",E="UG Content Play",O="etp_playback_error",B="Tab Pro Instruments Success",R="Tab Interactive Type Switch",F="Tab Pro XTZ Init Start",D="Tab Pro XTZ Init End",H="Tab Pro XTZ First Render",j="Tab Pro Soundfonts Load",W="Tab Pro Playback Init",V="Tab Pro First Sound Ready",K="Tab Pro First Sound Played",U="Tab Pro Player FPS Metrics",X="Tab Pro UI Input Latency",G="Tab Pro Player Memory Usage",q="Tab Pro Scroll Frame Metrics",Y="Tab Guitar Pro Download GP Click",Q="Tab Guitar Pro Download GP Success",J="Tab Pro Notation Change",$="play",ee="pause"},20561:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});let i=function(e){return e.STRUMMING_PLAY="Tab Strumming Play Click",e.CREATE_STRUMMING_CLICK="Tab Strumming Add Open",e.EDIT_STRUMMING_CLICK="Tab Strumming Correction Open",e}({})},70003:(e,t,n)=>{"use strict";n.d(t,{J:()=>a,gk:()=>i,rz:()=>o});const i="strumming:voteExtplain",o=15e3;let a=function(e){return e[e.OTHER=1]="OTHER",e[e.WRONG_TEMPO=2]="WRONG_TEMPO",e[e.WRONG_ARROWS_DIRECTION=3]="WRONG_ARROWS_DIRECTION",e[e.WRONG_RHYTHM_BAR_COUNT=4]="WRONG_RHYTHM_BAR_COUNT",e[e.DOES_NOT_MATCH_THE_SONG=5]="DOES_NOT_MATCH_THE_SONG",e}({})}
2,34814:(e,t,n)=>{"use strict";n.d(t,{c:()=>J});var i=n(53618),o=n(1461),a=n(97104),r=n(89851),s=n(40373),l=n(502),c=n(15231),d=n(49845),u=n(80875),p=n(85290),h=n(20561),g=n(24517);const m=({state:e="secondary"})=>{const t=(0,a.Q)().t,n=(0,i.Z)([o.pQ,o.E6,o.Zz,s.vj,s.KM.getCanEditStrumming]),r=n[0],m=n[1],v=n[2],b=n[3],f=n[4],y=t(b?{message:["Edit"]}:{message:["Create"]}),x=(0,l.useMemo)((()=>f?(0,u.Zx)({id:r,focus_on_strumming:1}):(0,c.Gr)({url:(0,u.gx)({id:r,strumming:1}),params:{app_utm_source:"ug",app_utm_medium:"internal",app_utm_campaign:"tab",app_utm_content:"icon",app_utm_term:b?"strumming_edit":"strumming_create"},options:{followAppUtm:!0}})),[r,f,b]),k=(0,l.useCallback)((()=>{b?p.w.send({event:h.j.EDIT_STRUMMING_CLICK}):p.w.send({event:h.j.CREATE_STRUMMING_CLICK})}),[]);return m||!v?null:(0,g.tZ)(d.r,{href:x,onPress:k,state:e,children:y})};var v=n(23278),b=n.n(v),f=n(94320),y={injectType:"styleTag",insert:"head",singleton:!1};b()(f.Z,y);const x=f.Z.locals||{},k=({children:e})=>(0,g.tZ)(r.x,{as:"p",state:"secondary",type:"body-s-medium",className:x.suggestStrumming,children:e});var C=n(13683),S=n(80607),w={injectType:"styleTag",insert:"head",singleton:!1};b()(S.Z,w);const P=S.Z.locals||{},T=({actionSlot:e,children:t,title:n})=>(0,g.BX)("section",{className:P.section,children:[(0,g.tZ)("div",{className:P.header,children:(0,g.tZ)(C.M,{actionsSlot:e,header:n})}),t]}),Z=({action:e})=>{const t=(0,a.Q)().t,n=t({message:["Strumming pattern"]}),i=t({message:["There is no strumming pattern for this song yet."]});return(0,g.tZ)(T,{title:n,actionSlot:e,children:(0,g.BX)(k,{children:[i," ",(0,g.tZ)(m,{state:"primary"})," ",t({message:["and get +5 IQ"]})]})})};var _=n(29076),M=n(22716),I=n(20386),N=n.n(I),A=n(40665),z=n(23582),L=n(17914);const E=(0,n(68387).I)("0 0 20 20",(0,g.tZ)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m3-11H7v6h6z",clipRule:"evenodd"}));var O=n(29799),B={injectType:"styleTag",insert:"head",singleton:!1};b()(O.Z,B);const R=O.Z.locals||{},F=({beats:e,activeIndex:t,hasTriplets:n,denuminator:i})=>{const o=((e,t,n)=>e.map(((e,i)=>((e,t,n)=>n?((e,t)=>t%3?"":16===e?t/3%2?"&":t/6+1:t/3+1)(e,t):((e,t)=>8===e?t%2?"&":t/2+1:16===e?t%2?"":t%4?"&":t/4+1:t+1)(e,t))(t,i,n))))(e,i,n),a=((e,t,n)=>{if(e<=18)return null;let i=2;i=16===t?n?6:4:n?3:2;const o=((e,t)=>{const n=e%t;return 0==n?e:e+(t-n)})(Math.ceil(e/2),i);return o>=e?null:o})(e.length,i,n),s=null===a?void 0:{"--ug-beats-per-line":a};return(0,g.tZ)("section",{className:N()(R.section),style:s,children:e.map(((e,a)=>{const s=((e,t)=>t?1==e%3:0==e%2)(a,n);return(0,g.tZ)("div",{className:N()(R.beat,R["p.m."===e.stroke?"pm":e.stroke],R[e.effect],a===t&&R.active,s&&[R.footer,n&&R.footerTriplets,R["footer-"+i]]),children:(0,g.tZ)(r.x,{as:"p",align:"center",type:"mono-s",children:o[a]})},"beat_"+a)}))})};var D=n(37783),H={injectType:"styleTag",insert:"head",singleton:!1};b()(D.Z,H);const j=D.Z.locals||{},W=({part:e,bpm:t,hasTriplets:n,beats:i,denuminator:o,activeIndex:s,index:l,onPlayToggle:c,canPlay:d,loading:u,headerClassName:p})=>{const h=(0,a.Q)().t;return(0,g.BX)("article",{children:[(0,g.BX)(A.Ug,{gap:"xxs",className:N()(j.header,p),children:[d&&(0,g.tZ)(z.z,{className:j.playButton,state:"tertiary",Icon:-1===s?L.z:E,isPending:u,onPress:()=>{c(l)},"aria-label":h({message:["Play"]})}),(0,g.BX)(r.x,{state:"primary",type:"body-s-medium",children:[e," ",(0,g.BX)(r.x,{state:"secondary",children:[" "+t," bpm"]})]})]}),(0,g.tZ)(F,{beats:i,denuminator:o,activeIndex:s,hasTriplets:n})]})};var V=n(94910),K={injectType:"styleTag",insert:"head",singleton:!1};b()(V.Z,K);const U=V.Z.locals||{};var X=n(22223);const G=({i:e,playingPatternIndex:t,playingBeatIndex:n,isLoaded:i})=>t===e?{activeIndex:n,loading:!i}:{activeIndex:-1,loading:!1},q=({strumming:e=[],onPlayToggle:t,canPlay:n,playingPatternIndex:i,playingBeatIndex:o,isLoaded:a,overlay:r,onOverlayClick:s})=>(0,g.BX)("section",{className:r?U.wrapper:void 0,children:[e.map(((e,s)=>(0,X.az)(W,{...e,...G({i:s,playingPatternIndex:i,playingBeatIndex:o,isLoaded:a}),key:e.part,onPlayToggle:t,canPlay:n,index:s,headerClassName:r?U.headerAboveOverlay:void 0}))),r&&(0,g.tZ)("div",{className:U.blurOverlay,role:"button",tabIndex:0,onClick:s,onKeyDown:s,children:(0,g.tZ)("div",{className:U.overlayButton,children:r})})]}),Y=[{stroke:"down",effect:"none"},{stroke:"up",effect:"none"},{stroke:"down",effect:"none"},{stroke:"up",effect:"none"},{stroke:"down",effect:"none"},{stroke:"up",effect:"none"},{stroke:"down",effect:"none"},{stroke:"up",effect:"none"}],Q=({action:e,strummingOverlay:t,onStrummingOverlayClick:n})=>{const o=(0,a.Q)().t,r=(0,i.Z)([s.KM.getStrummings])[0],c=o({message:["Strumming pattern"]}),d=(0,_.w)(),u=d.isLoaded,p=d.playingPattern,h=d.playingIndex,v=d.onPlayToggle,b=(0,l.useMemo)((()=>t?r.map((e=>({...e,beats:e.beats.map(((e,t)=>
2(e=>Y[e%Y.length])(t)))}))):r),[t,r]);return(0,g.tZ)(T,{actionSlot:(0,g.BX)(g.HY,{children:[(0,g.tZ)(m,{}),e]}),title:c,children:(0,g.tZ)(q,{isLoaded:u,playingPatternIndex:p,playingBeatIndex:h,onPlayToggle:v,strumming:b,canPlay:M.x,overlay:t,onOverlayClick:n})})},J=({action:e,strummingOverlay:t,onStrummingOverlayClick:n})=>{const l=(0,a.Q)().t,c=(0,i.Z)([s.vj,o.E6,o.X6]),d=c[0],u=c[1],p=c[2];return d?(0,g.tZ)(Q,{action:e,strummingOverlay:t,onStrummingOverlayClick:n}):u||p?(0,g.tZ)(r.x,{children:l({message:["No strumming"]})}):(0,g.tZ)(Z,{action:e})}},20228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>oe});var i=n(502),o=n(53618),a=n(1461),r=n(40373),s=n(20386),l=n.n(s),c=n(85973),d=n(80725),u=n(50019),p=n(74444),h=n(23278),g=n.n(h),m=n(73108),v={injectType:"styleTag",insert:"head",singleton:!1};g()(m.Z,v);const b=m.Z.locals||{};var f=n(69837),y=n(83629);function x(e,t,n){return e.map(((e,i)=>((e,t,n)=>{const i=parseInt(e,10);return n?((e,t)=>t%3?"":8===e?t/3+1:16===e?t/3%2?"&":t/6+1:2*t/3+1)(i,t):((e,t)=>8===e?t%2?"&":t/2+1:16===e?t%2?"":t%4?"&":t/4+1:t+1)(i,t)})(t,i,n)))}var k=n(26078),C=n(16454),S=n(1980),w=n(24517),P=n(22223);const T=e=>e===c.qx?C.o8:C.A5,Z=({i:e,playingPattern:t,playingIndex:n,isLoaded:i})=>t===e?{activeIndex:n,loading:!i}:{activeIndex:-1,loading:!1},_=({beats:e,activeIndex:t,hasTriplets:n,denuminator:i})=>{const o=(0,d.F)(),a=o.isMobile,r=o.name,s=x(e,i,n);return(0,w.tZ)("section",{className:l()(b.beats,{[b.mobileBeats]:a}),children:e.map(((e,o)=>{const a=((e,t)=>t?1==e%3:0==e%2)(o,n);return(0,w.tZ)("div",{className:l()(b.beat,b[r],b["p.m."===e.stroke?"pm":e.stroke],b[e.effect],o===t&&b.active,a&&[b.footer,n&&b.footerTriplets,b["footer-"+i]]),children:s[o]},"beat_"+o)}))})},M=({bpm:e,isMobile:t})=>(0,w.BX)("span",{className:l()(b.bpm,t&&b.mobileBpm),children:[" "+e," bpm"]}),I=({part:e,activeIndex:t,onClick:n,loading:i,bpm:o})=>{const a=(0,d.F)(),r=a.name,s=a.isMobile;return i?(0,w.tZ)(y.ZP,{className:l()(b.buttonPlay,b.buttonPlayLoading,s&&b.mobileButton),type:p.Hi,state:u.Y3,size:S.VE,text:e,onClick:n,renderLeft:()=>(0,w.tZ)(f.Z,{}),renderRight:()=>(0,w.tZ)(M,{bpm:o,isMobile:s})}):(0,w.tZ)(y.ZP,{leftIcon:{name:-1===t?k.x0:k.EO,state:T(r),className:s?b.mobilePlayIcon:""},type:p.Hi,state:u.Y3,className:l()(b.buttonPlay,{[b.buttonPlaySquare]:!e,[b.mobileButton]:s}),size:S.VE,text:e,onClick:n,renderRight:()=>(0,w.tZ)(M,{bpm:o,isMobile:s})})},N=({part:e,bpm:t})=>(0,w.BX)("span",{children:[e," ",(0,w.tZ)(M,{bpm:t})]}),A=({part:e,bpm:t,hasTriplets:n,beats:i,denuminator:o,activeIndex:a,index:r,onPlayToggle:s,canPlay:c,loading:u})=>{const p=(0,d.F)(),h=p.name,g=p.isMobile;return(0,w.BX)("article",{className:l()(b.section,b[h],g&&b.mobileSection),children:[(0,w.tZ)("header",{className:l()(b.header,g&&b.mobileHeader),children:c?(0,w.tZ)(I,{activeIndex:a,loading:u,part:e,bpm:t,onClick:()=>{s(r)}}):(0,w.tZ)(N,{part:e,bpm:t})}),(0,w.tZ)(_,{beats:i,denuminator:o,activeIndex:a,hasTriplets:n})]})},z=({withOverlay:e,children:t})=>{const n=(0,d.F)(),i=n.isMobile,o=n.name;return(0,w.tZ)("section",{className:l()(b.container,b[o],{[b.mobileContainer]:i,[b.withOverlay]:e}),children:t})},L=({strumming:e=[],onPlayToggle:t,canPlay:n,playingPattern:i,playingIndex:o,isLoaded:a,withOverlay:r})=>(0,w.tZ)(z,{withOverlay:r,children:e.map(((e,r)=>(0,P.az)(A,{...e,...Z({i:r,playingPattern:i,playingIndex:o,isLoaded:a}),key:e.part,onPlayToggle:t,canPlay:n,index:r})))});var E=n(9335),O=n(40475),B=n(97104),R=n(29076),F=n(70003);const D=(0,n(96797).Z)((()=>n.e(4893).then(n.bind(n,77898))));var H=n(30366),j=n(78793),W=n(59317),V=n(15231),K=n(33351),U=n(25430),X=n(80875),G=n(85290),q=n(20561);const Y=()=>{const e=(0,B.Q)().t,t=(0,o.Z)([a.pQ,a.E6,a.Zz,r.vj,r.KM.getCanEditStrumming]),n=t[0],s=t[1],l=t[2],c=t[3],d=t[4],u=e(c?{message:["Edit"]}:{message:["Create"]}),p=(0,i.useMemo)((()=>d?(0,X.Zx)({id:n,focus_on_strumming:1}):(0,V.Gr)({url:(0,X.gx)({id:n,strumming:1}),params:{app_utm_source:"ug",app_utm_medium:"internal",app_utm_campaign:"tab",app_utm_content:"icon",app_utm_term:c?"strumming_edit":"strumming_create"},options:{followAppUtm:!0}})),[n,d,c]),h=(0,i.useCallback)((()=>{c?G.w.send({event:q.j.EDIT_STRUMMING_CLICK}):G.w.send({event:q.j.CREATE_STRUMMING_CLICK})}),[]);return s||!l?null:(0,w.tZ)(K.Z,{url:p,text:u,onClick:h,state:U.LB})};var Q=n(66525);const J=()=>{const e=(0,B.Q)().t,t=(0,o.Z)([r.KM.getStrummings,a.Uc,r.KM.getIsStrummingSurveyVisible]),n=t[0],s=t[1],l=t[2],c=(0,W.Z)({voteStrumming:Q.lr,openModalById:j.u3}),d=e({message:[["smart_count","plural",{"1":"Is this strumming pattern","other":"Are these strumming patterns"}]," correct?"]},{smart_count:n.length}),u=(0,i.useCallback)((()=>{c.voteStrumming({vote:1})}),[]),p=(0,i.useCallback)((()=>{c.openModalById(F.gk),c.voteStrumming({vote:-1})}),[]),h=(0,i.useMemo)((()=>[{text:e({message:["Yes"]}),onClick:u},{text:e({message:["No"]}),onClick:p}]),[]);return s||!l?(0,w.tZ)(Y,{}):(0,w.BX)(w.HY,{children:[(0,w.tZ)(Y,{}),(0,w.tZ)(H.N8,{actions:h,children:d})]})};var $=n(22716);const ee=()=>{const e=(0,B.Q)().t,t=(0,o.Z)([r.KM.getStrummings,e=>(0,O.SJ)(e,F.gk)]),n=t[0],i=t[1],a=e({message:["Strumming"]}),s=(0,R.w)();return(0,w.BX)(E.Z,{type:E.W.STRUMMING,title:a,TitleAction:(0,w.tZ)(J,{}),children:[(0,w.tZ)(L,{...s,strumming:n,canPlay:$.x}),i&&(0,w.tZ)(D,{})]})};var te=n(69389);const ne=()=>{const e=(0,B.Q)().t,t=e({message:["Strumming"]}),n=e({message:["There is no strumming pattern for this song yet."]}),i={text:e({message:[["action"]," and get ",["price"]]},{action:"[action][/action]",price:"[price]+5 IQ[/price]"}),customBbcodesMap:{action:{as:Y,withProps:()=>({})},price:{as:"span",withProps:()=>({className:"text-success"})}}};return(0,w.tZ)(E.Z,{type:E.W.STRUMMING,title:t,children:(0,w.BX)(H.N8,{children:[n," ",(0,w.tZ)(te.xh,{state:"third",as:"span",children:i})]})})},ie=()=>{const e=(0,o.Z)([r.vj,a.E6,a.X6]),t=e[0],n=e[1],i=e[2];return t?(0,w.tZ)(ee,{}):n||i?null:(0,w.tZ)(ne,{})},oe=(0,i.memo)(ie)},22716:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});const i=!(!window.AudioContext&&!window.webkitAudioContext)},29076:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var i=n(53618),o=n(59317),a=n(502),r=n(40373),s=n(66525);const l=()=>{const e=(0,i.Z)([r.KM.getActivePlayingPatternIndex,r.KM.getActivePlayingBeatIndex,r.KM.getIsPlaybackLoaded]),t=e[0],n=e[1],l=e[2],c=(0,o.Z)({playToggle:s.no,stopPlay:s.gl});return(0,a.useEffect)((()=>()=>{c.stopPlay()}),[]),{isLoaded:l,playingIndex:n,playingPattern:t,onPlayToggle:c.playToggle}}},66525:(e,t,n)=>{"use strict";n.d(t,{gl:()=>r,lr:()=>o,no:()=>a});const i=(0,n(7791).Id)((()=>n.e(8977).then(n.bind(n,93308)))),o=i("voteStrumming"),a=i("playToggle"),r=i("stopPlay")}
2,54464:(e,t,n)=>{"use strict";n.d(t,{H:()=>l});var i=n(20386),o=n.n(i),a=n(89851),r=n(25795),s=n(24517);const l=({title:e,value:t,titleState:n="secondary",valueState:i="secondary",titleType:l="body-s",valueType:c="body-s-medium",wideSeparator:d=!1})=>{const u="string"==typeof t?(0,s.tZ)(a.x,{type:c,state:i,children:t}):t,p="string"==typeof e?(0,s.BX)(a.x,{type:l,state:n,children:[e,!!t&&": "]}):e;return(0,s.BX)("span",{className:o()(r.Z.listItem,d&&r.Z.wideSeparator),children:[p,u]})}},71371:(e,t,n)=>{"use strict";n.d(t,{q:()=>s});var i=n(64162),o=n(54464),a=n(24517);function r(e){return null==e||!1===e||"string"==typeof e&&""===e.trim()}const s=({listItems:e,titleState:t,valueState:n,titleType:s,valueType:l,wideSeparator:c})=>{const d=e.filter((({title:e,value:t})=>!r(e)||!r(t))).map((({id:e,title:i,value:r})=>(0,a.tZ)(o.H,{title:i,value:r,titleState:t,valueState:n,titleType:s,valueType:l,wideSeparator:c},e)));return(0,a.tZ)("div",{className:i.Z.list,children:d})}},63505:(e,t,n)=>{"use strict";n.d(t,{H1:()=>o,HG:()=>a,Sm:()=>r,UC:()=>s,oi:()=>i});const i="menu switch on",o="menu switch off",a="Tab Settings Dark Mode Switch",r="Tab Capo Change Click",s="Tab Capo List Open"},22388:(e,t,n)=>{"use strict";n.d(t,{w:()=>Z});var i=n(49845),o=n(97104),a=n(69138),r=n(37047),s=n(1461),l=n(53618),c=n(82416),d=n(71371),u=n(19032),p=n(20759),h=n(24340),g=n(52907),m=n(65893),v=n(502),b=n(59317),f=n(78769),y=n(60622),x=n(78059);const k=["No capo","1st fret","2nd fret","3rd fret"];var C=n(78123),S=n(63505),w=n(24517);const P=({capoFret:e})=>{const t=(0,v.useRef)(null),n=(0,l.Z)([f.ax,s.HS,s.pQ]),i=n[0],a=n[1],r=n[2],c=(0,b.Z)({toggleIsCapoEnabled:y.toggleIsCapoEnabled}),d=(0,v.useState)(!1),P=d[0],T=d[1],Z=()=>{P||x.N.send({event:S.UC,type:a,item_id:r}),T((e=>!e))},_=(0,o.Q)().t,M=(0,C.zf)(_({message:["no capo"]})),I=_({message:[["smart_count","plural",{"1":["#","st"],"2":["#","nd"],"3":["#","rd"],"other":["#","th"]}]," fret"]},{smart_count:e}),N=0<e&&i?I:M,A=[{key:u.K_.NO_CAPO,title:M},{key:u.K_.CAPO,title:I}];return(0,w.BX)(w.HY,{children:[(0,w.tZ)(p.A,{textType:"body-s-medium",Icon:m.v,onPress:Z,ref:t,children:N}),(0,w.tZ)(h.T,{"aria-label":"Capo switching menu",placement:"bottom start",isOpen:P,onOpenChange:Z,triggerRef:t,children:(0,w.tZ)(g.O,{variant:"primary",iconPlacement:"end",items:A,selectedKey:i?u.K_.CAPO:u.K_.NO_CAPO,onSelectionChange:t=>{var n,i;c.toggleIsCapoEnabled(),x.N.send({event:S.Sm,type:a,item_id:r,value:"capo"===t?(n=e,null!==(i=k[n])&&void 0!==i?i:n+"th fret"):"No capo"}),T(!1)}})})]})},T=({instrumentTuning:e,tuningMeta:t,customTuningMeta:n})=>{if(!e&&!t.text)return null;const o={text:t.text,url:t.url,onClick:t.onClick},a=(({text:e,url:t,onClick:n})=>t?(0,w.tZ)(i.r,{href:t,state:"primary",onClick:n,children:e}):e)(e?{text:e,url:n.url,onClick:n.onClick}:o);return{id:u.s,title:null==t?void 0:t.name,value:a}},Z=({instrumentTuning:e,instrumentCapo:t,tonality:n,excludedIds:i=[]})=>{const p=(0,a.f)(),h=(0,r.j)(e||void 0),g=(0,l.Z)([s.bB,s.$g]),m=g[0],v=g[1],b=(0,o.Q)().t;if(null==p||!p.length)return null;const f=p.find((({id:e})=>e===u.s)),y=!(i.includes(u.s)||!e&&!(null==f?void 0:f.text))?T({instrumentTuning:e,tuningMeta:null!=f?f:{id:u.s,name:b({message:["Tuning"]}),text:null!=e?e:""},customTuningMeta:h}):null,x=p.some((({id:e})=>e===u._L)),k=i.includes(u._L)||x||!n?null:{id:u._L,title:b({message:["Key"]}),value:n},C=(0,c.zf)(b({message:["no capo"]})),S=null!=t?t:0,Z=b({message:[["smart_count","plural",{"1":["#","st"],"2":["#","nd"],"3":["#","rd"],"other":["#","th"]}]," fret"]},{smart_count:S}),_=S?Z:C,M=[...y?[y]:[],...k?[k]:[],...p.filter((({id:e})=>e!==u.s&&e!==u.q4&&(null==t||e!==u.Mw))).filter((({id:e})=>!(e&&i.includes(e)))).map((({id:e,name:t,text:n})=>({id:null!=e?e:t+":"+n,title:t,value:e===u.Mw&&v&&0<m?(0,w.tZ)(P,{capoFret:null!=m?m:0}):n}))),...null==t?[]:[{id:u.Mw,title:b({message:["Capo"]}),value:_}]];return(0,w.tZ)(d.q,{listItems:M,titleState:"secondary",valueState:"primary"})}},9335:(e,t,n)=>{"use strict";n.d(t,{W:()=>h,Z:()=>g});var i=n(20386),o=n.n(i),a=n(80725),r=n(23278),s=n.n(r),l=n(45699),c={injectType:"styleTag",insert:"head",singleton:!1};s()(l.Z,c);const d=l.Z.locals||{};var u=n(24517);const p=({title:e,TitleAction:t,isH3:n,excludePageGuardian:i,onClick:o})=>(0,u.BX)("header",{className:d.header,onClick:o,children:[(0,u.tZ)("h2",{className:d.title,dangerouslySetInnerHTML:{__html:e},...i?{"data-exclude-page-guardian":"true"}:{}}),t&&(0,u.tZ)("span",{className:d.titleActionWrapper,children:t})]});let h=function(e){return e.CHORDS="chords",e.STRUMMING="strum",e}({});const g=({title:e,TitleAction:t,type:n,withBorder:i,isCentered:r,minHeight:s,className:l,id:c,children:h,excludePageGuardian:g})=>{const m=(0,a.F)().isMobile;return(0,u.BX)("section",{className:o()(m?d.mobile:d.desktop,i&&d.withBorder,r&&d.isCentered,d.section,n&&d[n],l),id:c,style:s?{minHeight:s}:void 0,children:[e&&(0,u.tZ)(p,{title:e,TitleAction:t,excludePageGuardian:g}),h]})}},80981:(e,t,n)=>{"use strict";n.d(t,{x:()=>c});var i=n(23278),o=n.n(i),a=n(49961),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{};var l=n(24517);const c=({children:e})=>(0,l.tZ)("div",{className:s.wrapper,children:e})},95166:(e,t,n)=>{"use strict";n.d(t,{W:()=>p});var i=n(97104),o=n(59317),a=n(68387),r=n(24517);const s=(0,a.I)("0 0 20 20",(0,r.tZ)("path",{d:"M17 16h-2V4h2zM8 9H2v2h6v3l6-4-6-4z"}));var l=n(11241),c=n(2289),d=n(85290),u=n(31079);const p=()=>
2{const e=(0,i.Q)().t,t=(0,o.Z)({setCollapsedAsidePanel:u.mV.setCollapsedAsidePanel});return(0,r.tZ)(l.n,{text:e({message:["Collapse"]}),labelText:e({message:["Collapse"]}),Icon:s,onPress:()=>{t.setCollapsedAsidePanel(!0),d.w.send({event:c.eE})}})}},23868:(e,t,n)=>{"use strict";n.d(t,{I:()=>_});var i=n(97104),o=n(63995),a=n(53618),r=n(59317),s=n(91174),l=n(40373),c=n(502),d=n(20386),u=n.n(d),p=n(46988),h=n(20251),g=n(23278),m=n.n(g),v=n(71331),b={injectType:"styleTag",insert:"head",singleton:!1};m()(v.Z,b);const f=v.Z.locals||{};var y=n(24517);const x=({children:e,collapsedLabel:t,active:n=!1})=>{const i=(0,c.useRef)(null),o=(0,p.X)({}),a=o.hoverProps,r=o.isHovered,s=(0,h.F)().isFocused,l=(0,c.useState)(!1),d=l[0],g=l[1];return(0,c.useEffect)((()=>{const e=e=>{i.current&&(i.current.contains(e.target)||g(!1))};return document.addEventListener("touchend",e),()=>{document.removeEventListener("touchend",e)}}),[]),(0,y.BX)("div",{className:f.container,"data-active":n||void 0,"data-collapsed":!s&&!r&&!d||void 0,"data-focused":s||void 0,"data-hovered":r||void 0,"data-pressed":d||void 0,ref:i,...a,onTouchStart:()=>{d||g(!d)},children:[(0,y.tZ)("div",{className:u()(f.collapsedLabel,f.active),children:t}),(0,y.tZ)("div",{className:f.expanded,children:e})]})};var k=n(85290);var C=n(31079),S=n(23582),w=n(58054),P={injectType:"styleTag",insert:"head",singleton:!1};m()(w.Z,P);const T=w.Z.locals||{},Z=({title:e,onPress:t})=>e?(0,y.tZ)(S.z,{className:T.button,state:"tertiary",Icon:o.I,onPress:t,children:e}):null,_=()=>{const e=(0,i.Q)().t,t=(0,a.Z)([s.PY,l.vj]),n=t[0],c=t[1],d=(0,r.Z)({setCollapsedAsidePanel:C.mV.setCollapsedAsidePanel});let u;return n&&c?u=e({message:["Chords"]})+" & "+e({message:["Strumming"]}):n?u=e({message:["Show chords"]}):c&&(u=e({message:["Show strumming"]})),u?(0,y.tZ)(x,{collapsedLabel:(0,y.tZ)(o.I,{size:"xs"}),active:!1,children:(0,y.tZ)(Z,{title:u,onPress:()=>{d.setCollapsedAsidePanel(!1),k.w.send({event:"Tab Aside Panel Expand Click"})}})}):null}},87805:(e,t,n)=>{"use strict";n.d(t,{U_:()=>h,k4:()=>g,kE:()=>b,gP:()=>m});var i=n(502),o=n(20386),a=n.n(o),r=n(40514),s=n(23278),l=n.n(s),c=n(20071),d={injectType:"styleTag",insert:"head",singleton:!1};l()(c.Z,d);const u=c.Z.locals||{};var p=n(24517);const h=381,g=80,m=r.N.s,v=(e,t)=>{const n=(e=>{if(!e)return 0;const t=getComputedStyle(e).getPropertyValue("--ug-tab-sticky-controls-height").trim(),n=parseInt(t,10);return Number.isFinite(n)?n:0})(e.current);return(e.current&&Math.max(e.current.getBoundingClientRect().y,n+t))+"px"},b=({main:e,aside:t,asideCollapsed:n,video:o,fakePlayer:r,stickySegmentHeight:s,layoutReflowTrigger:l,couldAsideBeFixed:c=!0})=>{const d=!!t,h=(0,i.useRef)(null),g=(0,i.useRef)(null),b=(0,i.useRef)(null),f=(0,i.useRef)(null),y=(0,i.useRef)(null),x=(0,i.useCallback)((()=>{if(!f.current||!y.current||!c)return;if(y.current.style.top="var(--ug-tab-layout-top-offset)",!n)return void(y.current.style.position="sticky");const e=f.current.getBoundingClientRect(),t=e.top,i=e.bottom,o=y.current.getBoundingClientRect().bottom;0<t?(y.current.style.position="sticky",y.current.style.top="var(--ug-tab-layout-top-offset)"):i>o?(y.current.style.position="fixed",y.current.style.top="var(--ug-tab-layout-top-offset)"):(y.current.style.position="fixed",y.current.style.top="calc(var(--ug-tab-layout-top-offset) - "+(o-i)+"px)")}),[n]);return(0,i.useEffect)((()=>{h.current&&g.current&&(n&&(g.current.style.height="auto"),setTimeout((()=>{var e,t;null===(e=window)||void 0===e||e.dispatchEvent(new Event("scroll")),null==g||null===(t=g.current)||void 0===t||t.scroll({top:0})}),0));let e=null;const t=()=>{if(h.current&&g.current&&!n){var e,t;const n=null!==(e=null===(t=b.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:0,i=v(h,s);g.current.style.height="calc(100vh - "+i+" - "+n+"px)"}},i=()=>{null!==e||(e=window.requestAnimationFrame((()=>{e=null,t()})))},o=new ResizeObserver(i);return b.current&&o.observe(b.current),window.addEventListener("scroll",i,{passive:!0}),t(),()=>{o.disconnect(),window.removeEventListener("scroll",i),null!==e&&window.cancelAnimationFrame(e)}}),[n,d,s]),(0,i.useLayoutEffect)((()=>{var e;y.current&&n&&c&&(y.current.style.position="fixed",y.current.style.top=(null==f||null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().top)+"px")}),[n,c,d]),(0,i.useEffect)((()=>{let e=null;const t=()=>{null!==e||(e=window.requestAnimationFrame((()=>{e=null,x()})))};return window.addEventListener("scroll",t,{passive:!0}),x(),()=>{window.removeEventListener("scroll",t),null!==e&&window.cancelAnimationFrame(e)}}),[d,l,x]),(0,p.BX)(p.HY,{children:[(0,p.BX)("div",{className:u.container,children:[(0,p.tZ)("div",{ref:f,style:{paddingInline:m},className:u.content,children:e}),t&&(0,p.tZ)("div",{ref:h,className:a()(u.aside,n&&u.collapsed),children:(0,p.BX)("div",{ref:y,className:a()(u.asideSticky,n&&c&&u.asideFixed),children:[(0,p.tZ)("div",{className:u.fakePlayer,ref:b,children:r}),(0,p.tZ)("div",{className:u.asideContainer,ref:g,children:(0,p.tZ)("div",{className:u.asideWrapper,children:t})})]})})]}),o&&(0,p.tZ)("div",{className:u.video,children:o})]})}},25276:(e,t,n)=>{"use strict";n.d(t,{d:()=>s,z:()=>r});var i=n(40514),o=n(502),a=n(24517);const r=i.N.s,s=(0,o.forwardRef)((({children:e},t)=>(0,a.tZ)("div",{ref:t,style:{paddingInline:r+"px"},children:e})))}
2,53972:(e,t,n)=>{"use strict";n.d(t,{Y:()=>J});var i=n(502),o=n(47384),a=n(20386),r=n.n(a),s=n(80725),l=n(66421),c=n(23278),d=n.n(c),u=n(41899),p={injectType:"styleTag",insert:"head",singleton:!1};d()(u.Z,p);const h=u.Z.locals||{};var g=n(89035),m=n.n(g);class v extends i.Component{constructor(...e){super(...e),this.isNode=e=>"object"==typeof e&&e.tag,this.isStringNode=e=>"string"==typeof e,this.isChordNode=e=>"ch"===e.tag,this.isAdNode=e=>"ad"===e.tag,this.isTabNode=e=>"tab"===e.tag,this.isSyllableNode=e=>"syllable"===e.tag,this.isTextNode=e=>"text"===e.tag,this.isColumnNode=e=>"column"===e.tag,this.isEOL=e=>e===this.EOL,this.renderString=(e,t,n)=>{const i=n[t-1];if(e.length&&this.isNode(i)&&this.isChordNode(i)){const t=this.getChordByEl(i),n=t.originalChord,o=t.displayedChord.length-n.length;if(0>o)return m()(" ",o)+e;if(0<o){const t=e.split("").reduce((({canAddSpace:e,firstSpaceCount:t},n)=>" "===n?e?{canAddSpace:e,firstSpaceCount:t+1}:{canAddSpace:e,firstSpaceCount:t}:{canAddSpace:!1,firstSpaceCount:t}),{canAddSpace:!0,firstSpaceCount:0}),n=t.firstSpaceCount;return e.substr(n-1<=o?n-1:o)}return e}return e},this.renderNode=(e,t,n,i=0)=>{if(this.isNode(e)){if(this.isAdNode(e))return this.props.renderAd(e);if(this.isChordNode(e))return this.renderChord(e,t,n,i);if(this.isTabNode(e))return this.renderTab(e);if(this.isSyllableNode(e))return this.renderSyllable(e);if(this.isTextNode(e))return this.renderText(e,t);if(this.isColumnNode(e))return this.renderColumn(e)}return this.isStringNode(e)?this.isEOL(e)?this.renderEOL:this.renderString(e,t,n):""}}get EOL(){return"\n"}get renderEOL(){return"\r\n"}getChordByEl(e){const t=this.props.chordsMap,n=e.content.map(this.renderNode).join("").trim();return{originalChord:n,displayedChord:t&&t[n]||n}}}var b,f,y=n(24517);const x="lineSizeM",k=e=>e.reduce(((e,t)=>e.concat(Array.isArray(t)?k(t):t)),[]),C=e=>e.attrs&&+e.attrs["data-time"],S=({children:e,isRedesign:t})=>{const n=(0,s.F)(),i=n.isDarkTheme,o=n.isMobile;return t?(0,y.tZ)("section",{className:h.wrapper,children:e}):(0,y.tZ)("section",{className:r()(h.wrapper,{[h.isMobile]:o,[h.dark]:i,[h.light]:!i}),children:e})};let w=(0,l.Z)(((f=class extends v{constructor(e){super(e),this.content=(0,i.createRef)(),this.char=(0,i.createRef)(),this.chordHoverTimeout=null,this.draggableChordHoverTimeout=null,this.lineIndex=-1,this.onChordMouseOver=e=>{const t=e.target.getAttribute("data-name");"function"!=typeof this.props.onChordMouseOver||this.state.isChordCarouselFocused||this.props.onChordMouseOver(),clearTimeout(this.chordHoverTimeout),this.setState({hoveredChordName:t,$$hoverChord:e.target,isChordFocused:!0})},this.onChordMouseOut=()=>{this.chordHoverTimeout=setTimeout((()=>{this.setState({isChordFocused:!1})}),0)},this.onChordCarouselMouseOver=()=>{clearTimeout(this.draggableChordHoverTimeout),this.setState({isChordCarouselFocused:!0})},this.onChordCarouselMouseOut=()=>{this.draggableChordHoverTimeout=setTimeout((()=>{this.setState({isChordCarouselFocused:!1})}),0)},this.onChordDragEnd=e=>{this.setState((t=>({dragChords:[...t.dragChords,{position:e,name:this.state.hoveredChordName,id:this.props.generateId()}],isChordCarouselFocused:!1,$$hoverChord:null})))},this.onDraggableClose=()=>{this.onChordMouseOut(),this.onChordCarouselMouseOut()},this.createChordCloseHandler=e=>()=>{this.setState((t=>({dragChords:t.dragChords.filter((t=>t.id!==e))})))},this.onMobileChordClick=()=>{this.props.onChordClick&&this.props.onChordClick()},this.reduceSyllableTime=(e,t)=>(this.isNode(t)&&(this.isSyllableNode(t)?e.push(C(t)):e.push(t.content.reduce(this.reduceSyllableTime,[]))),e),this.renderText=e=>(this.lineIndex+=1,this.props.withoutSpanWrapper?(0,y.BX)(y.HY,{children:[e.content.every(this.isStringNode)?this.renderNode(e.content.join(""),0,[]):e.content.map(((e,t,n)=>this.renderNode(e,t,n,this.lineIndex))),this.renderEOL]}):(0,y.BX)("span",{className:r()([h.printText,{[h.syllableActive]:this.props.activeLineIndexes.includes(+e.attrs.originalIndex)&&this.props.isLinesHighlighted}]),children:[e.content.map(((e,t,n)=>this.renderNode(e,t,n,this.lineIndex))),this.renderEOL]})),this.renderSyllable=e=>{const t=C(e),n=this.state.activeSyllableTime===t;return(0,y.tZ)("span",{className:r()({[h.syllableActive]:n}),children:e.content.map(this.renderNode)})},this.renderTab=e=>this.props.withoutSpanWrapper?(0,y.tZ)(y.HY,{children:e.content.map(this.renderText)}):(0,y.tZ)("span",{className:h.tab,children:e.content.map(this.renderText)}),this.renderChord=(e,t,n,i)=>{const o=this.props,a=o.chordsMap,s=o.isChordsHighlight,l=o.colorChords,c=o.onChordClick,d=o.shouldShowChordsOnClick,u=o.isMobile,p=o.isRedesign,g=o.visibleLineIndexe
2s,m=void 0===g?{start:0,end:1/0}:g,v=this.onChordMouseOver,b=this.onMobileChordClick,f=m.start,x=m.end,k=e.content.map(this.renderNode).join("").trim(),C=a[k],S=(C||k)&&c&&"function"==typeof c?c:d?v:b;return i<f||i>x?C||k:(0,y.tZ)("span",{className:r()(h.chord,{[h.chordsHighlight]:s,[h.redesignedChord]:p}),"data-name":k,style:{color:l},onClick:S,onMouseOver:!u&&C?this.onChordMouseOver:null,onMouseLeave:!u&&C?this.onChordMouseOut:null,children:C||k},t)},this.state={...this.state,hoveredChordName:null,isChordCarouselFocused:!1,isChordFocused:!1,$$hoverChord:null,dragChords:[],activeSyllableTime:null,syllableTimes:k(e.tabAST.reduce(this.reduceSyllableTime,[]))}}componentDidMount(){this.onFirstRender()}componentWillReceiveProps(e){if(e.tabAST!==this.props.tabAST&&this.setState({syllableTimes:k(e.tabAST.reduce(this.reduceSyllableTime,[]))}),e.autoScrollTime!==this.props.autoScrollTime){const i=this.state,o=i.syllableTimes,a=i.activeSyllableTime;let r=e.autoScrollTime;0<this.props.startTempoBpm&&(r+=6e4/this.props.startTempoBpm);const s=(t=r,(n=o).find(((e,i)=>t>=e&&t<n[i+1])));a!==s&&this.setState({activeSyllableTime:s})}var t,n}renderContent(){return this.props.tabAST.map(this.renderNode)}onFirstRender(){const e=this.content.current.getBoundingClientRect(),t=this.char.current.getBoundingClientRect();this.props.onFirstRender({tabRect:e,lineHeight:t.height,charWidth:t.width})}renderDraggableChords(){const e=this.props,t=e.isLoading,n=e.DraggableChord,i=e.isMobile,o=e.needShowAdblockWarning,a=this.state,r=a.isChordCarouselFocused,s=a.isChordFocused;return(0,y.BX)(y.HY,{children:[this.state.dragChords.map((e=>(0,y.tZ)(n,{position:e.position,name:e.name,onClose:this.createChordCloseHandler(e.id),dragged:!0},e.id))),!t&&(s||r)&&(i?(0,y.tZ)(n,{name:this.state.hoveredChordName,$$hoverChord:this.state.$$hoverChord,onClose:this.onDraggableClose}):(0,y.tZ)(n,{name:this.state.hoveredChordName,$$hoverChord:this.state.$$hoverChord,onDragEnd:this.onChordDragEnd,onMouseOver:this.onChordCarouselMouseOver,onMouseLeave:this.onChordCarouselMouseOut,needShowAdblockWarning:o,withoutHover:this.props.isAutoscrollActive}))]})}shouldComponentUpdate(e,t){return Object.keys(e).some((t=>e[t]!==this.props[t]))||Object.keys(t).some((e=>t[e]!==this.state[e]))}render(){const e=this.props,t=e.typeFace,n=e.fontSize,i=e.getRef,o=e.onCopy,a=e.lineSize,s=e.isRedesign,l=e.isMobile;e.testIDs;return this.lineIndex=-1,(0,y.BX)(S,{isRedesign:s,children:[this.renderDraggableChords(),(0,y.tZ)("code",{className:h.code,ref:this.content,children:(0,y.BX)("pre",{className:r()([h.content,h[a],s&&h.redesignedContent]),style:s||l?{fontSize:n}:{fontSize:n,fontFamily:t},ref:i,onCopy:o,children:[this.renderContent(),(0,y.tZ)("div",{className:h.char,ref:this.char,children:"X"})]})})]})}}).defaultProps={lineSize:x,startTempoBpm:0,onFirstRender:()=>{}},b=f))||b;var P=n(30285),T=n(53618),Z=n(1461),_=n(54143),M=n(91174),I=n(59317),N=n(78923);var A=n(41522),z=n(84368),L=n(61319),E=n(1896),O=n(97104),B=n(19123),R=n(85371);const F=({name:e,needShowAdblockWarning:t,...n})=>{const o=(0,O.Q)().t,a=(0,I.Z)({playChord:B.e}),r=(0,s.F)().isMobile,l=(0,i.useCallback)((()=>{a.playChord(e)}),[e]);return t?(0,y.tZ)(L.P,{...n,forceShowClose:r,children:"Please, disable AdBlock to see chord diagrams"}):(0,y.tZ)(L.P,{...n,onPlay:l,name:e,playText:o({message:["Play"]}),playingText:o({message:["Playing"]}),forceShowClose:r,children:!!e&&(0,y.tZ)(R.Z,{isHighlighted:!1,size:r?E.nm:void 0,name:e,uiKey:z.Ki,showControls:!0})})};var D=n(28517),H=n(48309),j=n(85290);var W=n(32595),V=n(24727),K=n(92317),U=n(40383);var X=n(57647),G=n(82661),q=n(29991),Y=n(31079);const Q=({contentOffsetWidth:e})=>{const t=(0,T.Z)([V.aq])[0],n=(({contentOffsetWidth:e})=>{const t=(0,q.v)(),n=t.hiddenCharRef,o=t.mainContentRef,a=(0,T.Z)([Y.L_,W.hL]),r=a[0],s=a[1],l=(0,G.d)();return(0,i.useMemo)((()=>{if(!(n&&o&&n.current&&o.current))return 1e4;const t=o.current.offsetWidth-e,i=n.current.getBoundingClientRect().width;return 0<i?Math.floor(t/i):1e4}),[r,l,e,s])})({contentOffsetWidth:e});return(0,i.useMemo)((()=>X.ZP.parse({str:t,maxLineLength:n})),[t,n])},J=({isRedesign:e,outsideOffsetWidth:t,DraggableChordOverride:n,...a})=>{const r=(0,T.Z)([Z.pQ,P.HM,M.PY,M.bQ,W.tj,W.hL,V.a8,_.kZ,W.Tt,D.XX,_.EZ]),l=r[0],c=r[1],d=r[2],u=r[3],p=r[4],h=r[5],g=r[6],m=r[7],v=r[8],b=r[9],f=r[10],k=(({isRedesign:e})=>
2{const t=(0,s.F)(),n=t.isMobile,i=t.isDarkTheme,o=(0,T.Z)([W.M])[0];return n?U.ao?"#0d7945":"#0368d6":e?K.k8[o]:(i?K.ZP.dark:K.ZP.light)[o]})({isRedesign:e}),C=d?x:"lineSizeXs",S=(0,i.useCallback)((()=>{b&&j.w.send({event:H.M.SHOW_CHORD_MESSAGE})}),[b]);((e=!1)=>{const t=(0,T.Z)([M.uO,M.Bc]),n=t[0],o=t[1],a=(0,I.Z)({getChords:N.nL}),r=(0,i.useRef)(!1),s=(0,i.useMemo)((()=>{const t=Object.values(n),i=e&&!r.current;return r.current=!0,t.filter((e=>{var t;return void 0===o[e]||i&&1===(null===(t=o[e])||void 0===t?void 0:t.length)}))}),[n,o]);(0,i.useEffect)((()=>{s.length&&a.getChords({chords:s})}),[s])})();const z=Q({contentOffsetWidth:t});return(0,y.tZ)(w,{...a,generateId:o.Ox,isRedesign:e,tabId:l,isLoading:c,tabAST:z,lineSize:C,colorChords:k,hasChords:d,isChordsHighlight:p,fontSize:h,activeLineIndexes:g,isLinesHighlighted:m,typeFace:v,DraggableChord:e?n||A.z:F,chordsMap:u,needShowAdblockWarning:b,onChordMouseOver:S,withoutSpanWrapper:!f})}},24727:(e,t,n)=>{"use strict";n.d(t,{a8:()=>u,F6:()=>p,jF:()=>l,LK:()=>h,aq:()=>c,my:()=>g});var i=n(57647),o=n(38314),a=n(54143),r=n(78769),s=n(1461);const l=(0,o.P1)([s.BY,s.DW],((e,t)=>{const n=(0,i.EH)(e).replace(/(\[tab\])|(\[\/tab\])/gi,"").split("\n");let o=0,a=0;return t.map((([e,t,i])=>{const r=n.slice(o).findIndex((t=>{a=((e,t)=>{const n=e.replace(/\s+/g,"").toLowerCase(),i=t.replace(/\s+/g,"").toLowerCase();if(!n.length&&!i.length)return 1;if(!n.length||!i.length)return 0;if(n===i)return 1;if(1===n.length&&1===i.length)return 0;if(2>n.length||2>i.length)return 0;const o=new Map;for(let e=0;e<n.length-1;e++){const t=n.substring(e,e+2),i=o.has(t)?o.get(t)+1:1;o.set(t,i)}let a=0;for(let e=0;e<i.length-1;e++){const t=i.substring(e,e+2),n=o.has(t)?o.get(t):0;0<n&&(o.set(t,n-1),a++)}return 2*a/(n.length+i.length-2)})(t,e);return.6<a})),s=-1===r?r:o+r;return-1<s&&(o=.9<=a?s+1:s),{index:s,time:+t,endTime:+i}})).filter((({index:e})=>-1!==e))})),c=(0,o.P1)([s.BY,s.I_,r.k4],((e,t,n)=>(n?t:e)||e)),d=[],u=(0,o.P1)([a.Mx,l,c,a.iq,a.kZ],((e,t,n,i,o)=>{var a;if(!i||!o)return d;const r=null===(a=t.find((({time:t,endTime:n})=>e>=t&&e<n)))||void 0===a?void 0:a.index;if(void 0===r)return d;const s=n.split("\n")[r-1]||"";return s&&-1!==s.indexOf("[ch]")?[r-1,r]:[r]})),p=(0,o.P1)([c,a.MV],((e,t)=>{const n=(0,i.EH)(e).split("\n");return[{index:0,time:0},...n.map(((e,t)=>{const n=/data-time="([0-9]*?)"/i.exec(e);return{time:n?n[1]:0,index:t}})).filter((e=>e.time)).map((({index:e,time:t})=>({index:e,time:+t}))),{index:n.length,time:t}]})),h=(0,o.P1)([a.Mx,l],((e,t)=>{const n=t.findIndex((({time:t})=>e<t));if(-1===n)return"";if(!n){if(e>=t[0].time)return"";return"Intro "+Math.ceil(t[0].time-e)+" sec"}return"Next line in "+Math.ceil(t[n].time-e)+" sec"})),g=(0,o.P1)([c],(e=>(0,i.EH)(e).split("\n").length))},5646:(e,t,n)=>{"use strict";n.d(t,{Ig:()=>a,Nz:()=>l,OT:()=>s,Py:()=>i,Wv:()=>r,Yx:()=>c,hU:()=>d,zO:()=>o});const i={message:["You're using Original audio. To change tempo, switch to Synth & mixer."]},o={message:["You're using Original audio. To transpose, switch to Synth & mixer."]},a={message:["You're using Original audio. To use metronome, switch to Synth & mixer."]},r={message:["You're using Original audio. To change pitch, switch to Synth & mixer."]},s={message:["You're using Original audio. To use mixer, switch to Synth & mixer."]},l={message:["You're using Original audio. To use countdown, switch to Synth & mixer."]},c={message:["This video can't be played. Switching to Synth & mixer."]},d={message:["Switch mode"]}},30683:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>a,um:()=>o,vm:()=>r,xE:()=>i});const i=69,o=24,a=26,r=95},31741:(e,t,n)=>{"use strict";n.d(t,{Hv:()=>o,Ro:()=>l,UL:()=>s,Vb:()=>a,Xk:()=>c,ls:()=>i,qP:()=>r});const i=0,o=-5,a=5,r=0,s=-12,l=12,c=1},13917:(e,t,n)=>{"use strict";n.d(t,{_2:()=>l,az:()=>o,rM:()=>a,uz:()=>s,yv:()=>i,zX:()=>r});const i=.1,o=1.5,a=.01,r=1,s=5,l=20},93906:(e,t,n)=>{"use strict";n.d(t,{NM:()=>f,dk:()=>y,nx:()=>v});var i=n(502),o=n(54143),a=n(56693),r=n(98890),s=n(58022),l=n(53618),c=n(59317),d=n(24727),u=n(74080),p=n(30683),h=n(4043),g=n(68328),m=n(24517);const v=(e,t)=>
2{const n=document.getElementById("pro-player-scroll-container");return t&&n?n:window},b=({scrollAreaRef:e,scrollParentRef:t})=>{const n=(0,l.Z)([d.F6,u.Xn,u.nm,d.my,u.r6,u.ZA]),r=n[0],s=n[1],h=n[2],g=n[3],v=n[4],b=n[5],f=1e3*s,y=v&&h,x=(0,c.Z)({setCurrentTime:o.TB.setCurrentTime,setActive:o.TB.setActive});return(0,i.useEffect)((()=>{x.setCurrentTime(f)}),[x,f]),(0,i.useEffect)((()=>{x.setActive(y)}),[x,y]),(0,a.a)({scrollAreaRef:e,scrollParentRef:t,isPlaying:y,currentTime:f,scrollMap:r,tabLength:g,centerInParent:!0,topStickyOffset:b?p.xE:0}),(0,m.tZ)("span",{"aria-hidden":"true"})},f=({scrollAreaRef:e,scrollParentRef:t})=>{const n=(0,l.Z)([o.JD,o.pC]),i=n[0],a=n[1],s=(0,c.Z)({toggleProTabAutoscroll:g.toggleProTabAutoscroll,setProTabAutoscrollActive:g.setProTabAutoscrollActive,setProTabAutoscrollSpeed:g.setProTabAutoscrollSpeed});return(0,r.T)({isPlaying:i,speed:a,onPlayChange:e=>"boolean"==typeof e?void s.setProTabAutoscrollActive(e):void s.toggleProTabAutoscroll(),onSetSpeed:e=>{s.setProTabAutoscrollSpeed(e)},scrollAreaRef:e,scrollParentRef:t}),(0,m.tZ)("span",{"aria-hidden":"true"})},y=({children:e})=>{const t=(0,l.Z)([u.ZA,h.IB]),n=t[0],i=t[1];return(0,m.tZ)(s.M,{isFullScreenEnabled:n,getScrollParentRef:v,Control:i?f:b,children:e})}},38759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProTabTextContainer:()=>de});var i=n(502),o=n(54143),a=n(31079),r=n(87805),s=n(91315),l=n(89851),c=n(53618),d=n(91174),u=n(40373),p=n(74080),h=n(22388),g=n(25276),m=n(53972),v=n(41522),b=n(29423),f=n(27328),y=n(90210),x=n(46402),k=n(94905),C=n(24517);const S=(0,C.BX)(C.HY,{children:[(0,C.tZ)(b.m,{size:"xs"}),(0,C.tZ)(l.x,{type:"body-s",children:"Show chord"})]}),w=e=>{const t=(0,x.d)(),n=(0,c.Z)([y.jC.getHasProAccess])[0];return!f.V.withOfficialTabsWithPaywall||n?(0,C.tZ)(v.z,{...e}):(0,C.tZ)(v.z,{...e,chordOverlay:S,onOverlayClick:()=>{t({triggerName:k.X0})}})};var P=n(4043),T=n(93906),Z=n(23278),_=n.n(Z),M=n(47831),I={injectType:"styleTag",insert:"head",singleton:!1};_()(M.Z,I);const N=M.Z.locals||{},A=({children:e})=>(0,C.tZ)("div",{className:N.container,children:e});var z=n(87776),L=n(80981),E=n(23868),O=n(95166),B=n(34814),R=n(88433),F=n(97104),D=n(59317),H=n(40665),j=n(20759),W=n(4498);const V=()=>{const e=(0,F.Q)().t,t=(0,c.Z)([W.NJ])[0],n=(0,D.Z)({setChordsAsideMode:W.Qj.setChordsAsideMode});return(0,C.BX)(H.Ug,{gap:"l",children:[(0,C.tZ)(j.A,{underline:"none",textType:"subtitle-s",state:"chords"===t?"primary":"secondary",onPress:()=>n.setChordsAsideMode("chords"),children:e({message:["Chords"]})}),(0,C.tZ)(j.A,{underline:"none",textType:"subtitle-s",state:"mixer"===t?"primary":"secondary",onPress:()=>n.setChordsAsideMode("mixer"),children:e({message:["Mixer"]})})]})};var K=n(85531),U=n(78091),X=n(8372),G={injectType:"styleTag",insert:"head",singleton:!1};_()(X.Z,G);const q=X.Z.locals||{},Y=({children:e})=>(0,C.tZ)("div",{className:q.container,children:e}),Q=()=>{const e=(0,i.useState)(!1),t=e[0],n=e[1],o=(0,c.Z)([p.SK])[0];return(0,C.BX)(Y,{children:[(0,C.tZ)(K.D,{isHintSuppressed:t,suppressOtherHints:n}),Object.keys(o).map((e=>(0,C.tZ)(U.v,{id:+e,isHintSuppressed:t,suppressOtherHints:n},e)))]})};var J=n(25063),$={injectType:"styleTag",insert:"head",singleton:!1};_()(J.Z,$);const ee=J.Z.locals||{},te=({children:e})=>(0,C.tZ)("section",{className:ee.section,children:e});var ne=n(75808),ie={injectType:"styleTag",insert:"head",singleton:!1};_()(ne.Z,ie);const oe=ne.Z.locals||{},ae=({children:e})=>(0,C.tZ)(H.Ug,{className:oe.container,justify:"space-between",alignItems:"center",children:e}),re=({strummingOverlay:e,onStrummingOverlayClick:t,chordsOverlay:n,onChordsOverlayClick:i})=>{const o=(0,c.Z)([a.L_,d.PY,u.K6,W.NJ]),r=o[0],s=o[1],l=o[2],p=o[3];return r?(0,C.tZ)(L.x,{children:(0,C.tZ)(E.I,{})}):(0,C.BX)(C.HY,{children:[(0,C.tZ)(ae,{children:(0,C.BX)(C.HY,{children:[(0,C.tZ)(V,{}),(0,C.tZ)(O.W,{})]})}),"mixer"===p?(0,C.tZ)(Q,{}):(0,C.BX)(C.HY,{children:[s&&(0,C.BX)(C.HY,{children:[(0,C.tZ)(te,{children:(0,C.tZ)(R.d,{chordsOverlay:n,onChordsOverlayClick:i})}),(0,C.tZ)(z.c,{})]}),l&&(0,C.tZ)(B.c,{action:s?null:(0,C.tZ)(O.W,{}),strummingOverlay:e,onStrummingOverlayClick:t})]})]})};var se=n(78769),le=n(78923),ce=n(1461);const de=()=>{(()=>{const e=(0,c.Z)([se.k4,se.hf,ce.I_,ce.BY]),t=e[0],n=e[1],o=e[2],a=e[3],r=(0,D.Z)({toggleSimplifyProTab:le.aG}),s=(0,i.useRef)(!1);(0,i.useEffect)((()=>{t&&!o&&a&&!s.current&&(s.current=!0,r.toggleSimplifyProTab({checked:!0,chordType:n}))}
2),[t,o,n,a])})();const e=(0,c.Z)([d.PY,u.vj,a.L_,p.SM,o.Mx,P.gD,p.ZA,y.jC.getHasProAccess]),t=e[0],n=e[1],v=e[2],S=e[3],Z=e[4],_=e[5],M=e[6],I=e[7],N=(0,s.R)().topStickySegmentHeight,z=(0,i.useMemo)((()=>({isChordsMode:_,isFullscreenActive:M})),[_,M]),L=(0,x.d)(),E=f.V.withOfficialTabsWithPaywall&&!I,O=E?(0,C.BX)(C.HY,{children:[(0,C.tZ)(b.m,{size:"xs"}),(0,C.tZ)(l.x,{type:"body-s",children:"Show strumming"})]}):void 0,B=(0,i.useCallback)((()=>{L({triggerName:k.FO})}),[L]),R=E?(0,C.BX)(C.HY,{children:[(0,C.tZ)(b.m,{size:"xs"}),(0,C.tZ)(l.x,{type:"body-s",children:"Show chords"})]}):void 0,F=(0,i.useCallback)((()=>{L({triggerName:k.vL})}),[L]),H=2*g.z+2*r.gP+(v?r.k4:r.U_);return(0,C.tZ)(r.kE,{couldAsideBeFixed:!1,layoutReflowTrigger:z,main:(0,C.BX)(T.dk,{children:[(0,C.tZ)(A,{children:(0,C.tZ)(h.w,{})}),(0,C.tZ)(g.d,{children:(0,C.tZ)(m.Y,{outsideOffsetWidth:H,isRedesign:!0,DraggableChordOverride:w,startTempoBpm:S,autoScrollTime:Z})})]}),aside:(t||n)&&(0,C.tZ)(re,{...E?{strummingOverlay:O,onStrummingOverlayClick:B,chordsOverlay:R,onChordsOverlayClick:F}:{}}),asideCollapsed:v,stickySegmentHeight:N})}},85531:(e,t,n)=>{"use strict";n.d(t,{D:()=>N});var i=n(53618),o=n(59317),a=n(74080),r=n(48314),s=n(1952),l=n(97104),c=n(20386),d=n.n(c),u=n(23582),p=n(40665),h=n(94374),g=n(89851),m=n(39406),v=n(7928),b=n(9535),f=n(59377),y=n(23278),x=n.n(y),k=n(29989),C={injectType:"styleTag",insert:"head",singleton:!1};x()(k.Z,C);const S=k.Z.locals||{};var w=n(24517);const P=({isCollapsed:e,isMuteActive:t,volume:n,muteHintText:i,onVolumeChange:o,onMuteToggle:a,onDragStart:r,onDragEnd:s,isHintSuppressed:l=!1})=>{const c=()=>(0,w.tZ)(u.z,{className:S.volumeButton,state:"secondary",Icon:t?m.t:v.P,onPress:a});return(0,w.BX)("div",{className:d()(S.wrapper,{[S.collapsed]:e}),children:[(0,w.BX)(p.Ug,{gap:"m",className:S.volumeCard,children:[(0,w.tZ)(h.k,{title:i,placement:"top",isDisabled:l,children:c()}),(0,w.tZ)(f.C,{classNames:{container:S.control},size:"l",minValue:b.RK,maxValue:b.Nb,step:b.Bt,value:t?0:n,onChange:o,onDragStart:r,onDragEnd:s}),(0,w.tZ)(g.x,{className:S.volumeLabel,type:"body-s-medium",children:(t?0:Math.round(100*n))+"%"})]}),(0,w.tZ)("div",{className:S.collapsedOverlay,"aria-hidden":!e,children:c()})]})};var T=n(42527),Z=n(85290),_=n(4043),M=n(4498),I=n(59001);const N=({isHintSuppressed:e=!1,suppressOtherHints:t}={})=>{const n=(0,l.Q)().t,c=(0,i.Z)([a.Nf,a.FC,_.Ah,M.Cl]),d=c[0],u=c[1],p=c[2],h=c[3],g=(0,o.Z)({setGeneralVolume:r.uo.setGeneralVolume,toggleGeneralMute:r.uo.toggleGeneralMute}),m=(0,I.c)(),v=m.isMixerBlocked,b=m.showMixerBlockNotification;return(0,w.tZ)(P,{isMuteActive:d,volume:u,muteHintText:n({message:["Mute"]}),onVolumeChange:e=>v?void b():void g.setGeneralVolume(e),onMuteToggle:()=>v?void b():(g.toggleGeneralMute(),void Z.w.send({event:T.E1,value:!d,params:{tab_mode:h,xtz_version:s.$_}})),isCollapsed:p,onDragStart:()=>null==t?void 0:t(!0),onDragEnd:()=>null==t?void 0:t(!1),isHintSuppressed:e})}},78091:(e,t,n)=>{"use strict";n.d(t,{v:()=>fe});var i=n(57088),o=n(74080),a=n(48314),r=n(1952),s=n(97104),l=n(94905),c=n(46402),d=n(42527);var u=n(20386),p=n.n(u),h=n(23621),g=n(40665),m=n(23278),v=n.n(m),b=n(7471),f={injectType:"styleTag",insert:"head",singleton:!1};v()(b.Z,f);const y=b.Z.locals||{};var x=n(24517);const k=({volume:e,pan:t,actions:n,collapsed:i,isCollapsed:o=!1,isSelected:a=!1,onPress:r})=>(0,x.BX)("div",{className:p()(y.container,{[y.collapsed]:o,[y.selected]:a}),children:[(0,x.tZ)(h.Y,{className:y.selector,isDisabled:a,onPress:r,excludeFromTabOrder:!0}),(0,x.BX)(g.Ug,{className:p()(y.controls,{[y.selected]:a}),children:[e,t,n,i]}),(0,x.tZ)("div",{className:y.collapsedCell,"aria-hidden":!o,children:i})]});var C=n(20759),S=n(94374),w=n(9535),P=n(59377),T=n(16931),Z={injectType:"styleTag",insert:"head",singleton:!1};v()(T.Z,Z);const _=T.Z.locals||{},M=({title:e,volume:t,onVolumeChange:n,onInstrumentPress:i,onDragStart:o,onDragEnd:a,isHintSuppressed:r=!1})=>{const s=e.length>22,l=s?e.slice(0,22)+"...":e,c=(0,x.tZ)(C.A,{textType:"body-s-medium",onPress:i,className:_.instrumentName,underline:"none",children:l});return(0,x.BX)("div",{className:_.instrumentVolume,children:[s?(0,x.tZ)(S.k,{title:e,placement:"top",
2isDisabled:r,children:c}):c,(0,x.tZ)(P.C,{classNames:{container:_.control},size:"m",minValue:w.RK,maxValue:w.Nb,step:w.Bt,value:t,onChange:n,onDragStart:o,onDragEnd:a})]})};var I=n(67386),N=n(42878),A={injectType:"styleTag",insert:"head",singleton:!1};v()(N.Z,A);const z=N.Z.locals||{},L=({soloText:e,soloHintText:t,isSoloActive:n,onSoloToggle:i,muteText:o,muteHintText:a,isMuteActive:r,onMuteToggle:s,isHintSuppressed:l=!1})=>(0,x.BX)(g.Ug,{children:[(0,x.tZ)(S.k,{title:t,placement:"top",isDisabled:l,children:(0,x.tZ)(I.C,{className:z.toggleButton,isSelected:n,onChange:i,children:e})}),(0,x.tZ)(S.k,{title:a,placement:"top",isDisabled:l,children:(0,x.tZ)(I.C,{className:z.toggleButton,isSelected:r,onChange:s,children:o})})]});var E=n(502),O=n(74256),B=n(13588),R=n(89851),F=n(87965),D={injectType:"styleTag",insert:"head",singleton:!1};v()(F.Z,D);const H=F.Z.locals||{},j=({angle:e,className:t})=>{const n=15,i=-90+e,o=e=>Math.PI/180*e,a=15+n*Math.cos(o(-90)),r=15+n*Math.sin(o(-90)),s=15+n*Math.cos(o(i)),l=15+n*Math.sin(o(i)),c=180<Math.abs(e)?1:0,d=0<=e?1:0,u="\n    M 15 15\n    L "+a.toFixed(4)+" "+r.toFixed(4)+"\n    A "+"15 "+"15 0 "+c+" "+d+" "+s.toFixed(4)+" "+l.toFixed(4)+"\n    Z\n  ";return(0,x.BX)("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"0 0 30 30",children:[(0,x.tZ)("path",{d:u}),(0,x.tZ)("line",{x1:15,y1:15,x2:s,y2:l,stroke:"#000",strokeWidth:2,strokeLinecap:"round"})]})},W=({defaultValue:e,minValue:t=w.BD,maxValue:n=w.j8,step:i=w.oT,value:o,labelText:a,isHintSuppressed:r,hintText:s,suppressOtherHints:l,onChange:c,onChangeEnd:d})=>{const u=(0,E.useRef)(null),p=(0,E.useRef)({drag:O.Z,dragEnd:O.Z}),g=(0,E.useRef)(null),m=(0,E.useRef)(!1),v=(0,E.useState)(!1),b=v[0],f=v[1],y=(0,E.useState)(!1),k=y[0],C=y[1],P=(0,E.useState)(!1),T=P[0],Z=P[1],_=(0,B.Z)({initialValue:e,controlledValue:o,onChange:c}),M=_[0],I=void 0===M?0:M,N=_[1],A=(0,E.useCallback)((e=>{var o;if(!u.current||!g.current)return I;const a=e instanceof window.MouseEvent?e.clientY:null===(o=e.touches[0])||void 0===o?void 0:o.clientY;if(void 0===a)return;const r=g.current.startY-a,s=g.current.startValue+r/w.Ql*(n-t),l=Math.max(t,Math.min(n,s));return Math.round(l/i)*i}),[n,t,i]),z=(0,E.useCallback)(((e,t=!1)=>{if(m.current){const n=A(e);void 0!==n&&(N(n),t&&d&&d(n))}}),[A,N,d]),L=(0,E.useCallback)((()=>{var e;const t=null===(e=u.current)||void 0===e?void 0:e.getBoundingClientRect();g.current=t?{startY:t.top+t.height/2,startValue:I}:{startY:0,startValue:I},m.current=!0;const n={drag(e){e.stopPropagation(),Z(!0),requestAnimationFrame((()=>{p.current.drag(e)}))},dragEnd(e){T&&p.current.dragEnd(e),n.unsubscribe(),m.current=!1,f(!1),l(!1),Z(!1),g.current=null},cancel(){m.current=!1,f(!1),l(!1),Z(!1),g.current=null},unsubscribe(){document.removeEventListener("mousemove",n.drag),document.removeEventListener("mouseup",n.dragEnd),document.removeEventListener("touchmove",n.drag),document.removeEventListener("touchend",n.dragEnd),document.removeEventListener("touchcancel",n.cancel)}};p.current={drag:e=>z(e),dragEnd:e=>z(e,!0)},document.addEventListener("mousemove",n.drag),document.addEventListener("mouseup",n.dragEnd),document.addEventListener("touchmove",n.drag),document.addEventListener("touchend",n.dragEnd),document.addEventListener("touchcancel",n.cancel),f(!0),l(!0)}),[z]),F=(0,x.tZ)("div",{ref:u,className:H.panControl,"data-dragging":b||void 0,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:(0,x.BX)(h.Y,{"data-focused":b,onPressStart:L,className:H.button,children:[(0,x.tZ)(R.x,{className:H.label,children:a}),(0,x.tZ)(j,{className:H.circle,angle:Math.round(w.Z4*I)})]})});return(0,x.tZ)(S.k,{isOpen:b||k&&!r,title:s,placement:"top right",children:F})};var V=n(7928),K=n(1344),U=n(33539),X=n(68387);const G=(0,X.I)("0 0 20 20",(0,x.tZ)("path",{fillRule:"evenodd",d:"m11.164 6.018-.043.113A3 3 0 0 1 15 9v3.999a3 3 0 0 1-4 2.83V18H9V6.366a1.8 1.8 0 0 1-.164-.348 3 3 0 0 0-.98-1.376C6.986 3.96 6 3.105 6 2h8c0 1.105-.988 1.959-1.855 2.642-.447.352-.79.828-.98 1.376M11 8.998V13a1 1 0 0 0 2 0V9a1 1 0 0 0-2-.001",clipRule:"evenodd"})),q=(0,X.I)("0 0 20 20",(0,x.tZ)("g",{fillRule:"evenodd",clipRule:"evenodd",children:(0,x.tZ)("path",{d:"M4 2v4h12V2zm4 2a1 1 0 1 0-2 0 1 1 0 0 0 2 0m5-1a1 1 0 1 1 0 2 1 1 0 0 1 0-2M3 12V8h14v4zm4-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m6 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2M2 14v4h16v-4zm6 2a1 1 0 1 0-2 0 1 1 0 0 0 2 0m5-1a1 1 0 1 1 0 2 1 1 0 0 1 0-2"})}));var Y=n(84358),Q=n(87193);const J=(0,X.I)("0 0 20 20",(0,x.BX)("g",{children:[(0,x.tZ)("path",{fillRule:"evenodd",d:"M14.076 2H5.924a17.6 17.6 0 0 0-1.463 12H15.54a17.6 17.6 0 0 0-1.463-12M5.415 4l1.528 6 1.529-6L10 10l1.528-6 1.529 6 1.528-6z",clipRule:"evenodd"}),(0,x.tZ)("path",{d:"M14.944 16H5.056q.37 1.02.868 2h8.152q.498-.98.868-2"})]})),$=(0,X.I)("0 0 20 20",(0,x.tZ)("path",{d:"M8 2H2v16h4l-1.846-6H8V9H3.23L2 5h6zm4 0H9l3 8-4 8h4v-8l3 8h3zm3 7V2h4z"}));var ee=n(24853);const te=(0,X.I)("0 0 20 20",(0,x.tZ)("path",{fillRule:"evenodd",d:"M9 1h2l1 3v14H8v-1a1 1 0 1 0 0-2V4zm1 4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m1 4a1 1 0 1 0-2 0 1 1 0 0 0 2 0m0 3a1 1 0 1 0-2 0 1 1 0 0 0 2 0",clipRule:"evenodd"})),ne=(0,X.I)("0 0 20 20",(0,x.BX)("g",{children:[(0,x.tZ)("path",{d:"M3.667 1H2v2h1.667A2.333 2.333 0 0 1 6 5.333V13a5 5 0 0 0 10 0v-2l2-3h-7v4.5a1.5 1.5 0 0 1-3 0V11a1 1 0 1 0 2 0 1 1 0 0 0-2 0V8a1 1 0 1 0 2 0 1 1 0 0 0-2 0V5.333A4.333 4.333 0 0 0 3.667 1"}),(0,x.tZ)("path",{d:"M10 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})]})),ie=(0,X.I)("0 0 20 20",(0,x.tZ)("path",{d:"M7.815 9.04a3 3 0 0 0-1.646-2.956L6 6l2-4h4l2 4-.169.084a3 3 0 0 0-1.646 2.955L13 18H7zM4.5 8a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M17 9.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0M4.5 13a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M17 14.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"}));var oe=n(80026);const ae=(0,X.I)("0 0 20 20",(0,x.tZ)("path",{fillRule:"evenodd",d:"M19 17V3H1v14zM3 9v6h14V9h-2v4h-2V9h-2v4H9V9H7v4H5V9zm3-4a1 1 0 1 1 0 2 1 1 0 0 1 0-2m4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 0h4v2h-4z",clipRule:"evenodd"})),re={generalVolume:V.P,"ac-guitar":K.s,bass:U.q,brass:G,chroma:q,drums:Y.n,"el-guitar":Q.e,ethnic:J,fx:$,organ:ee.$,percussive:J,piano:ee.$,pipe:te,reed:ne,"strings-c":ie,strings:ie,"synth-fx":$,"synth-lead":oe.L,"synth-pad":ae};var se=n(86159),le={injectType:"styleTag",insert:"head",singleton:!1};v()(se.Z,le);const ce=se.Z.locals||{},de=({hasActiveIndicator:e,instrumentKey:t,size:n="m"})=>{const i=re[t];return i?(0,x.tZ)("div",{className:p()(ce.container,{[ce.withActiveIndicator]:e}),children:(0,x.tZ)(i,{size:n})}):null};var ue=n(85290),pe=n(53618),he=n(59317),ge=n(4043),me=n(4498),ve=n(68328),be=n(59001);
2const fe=({id:e,isHintSuppressed:t,suppressOtherHints:n})=>{const u=(0,s.Q)().t,p=(0,pe.Z)([(0,i.FD)(e),o.Wh,ge.Ah,me.Cl]),h=p[0],g=p[1],m=p[2],v=p[3],b=h.isSoloActive,f=h.isMuteActive,y=h.pan,C=h.isPlaying,S=h.xtzInternalTypeId,w=h.isPercussion,P=h.title,T=h.volume,Z=(0,he.Z)({setActiveInstrumentIndex:ve.setActivePart,setInstrumentVolume:a.uo.setPartVolume,togglePartSolo:a.uo.togglePartSolo,togglePartMute:a.uo.togglePartMute,setInstrumentPan:a.uo.setPartBalance}),_=(0,c.d)(),I=(0,be.c)(),N=I.isMixerBlocked,A=I.showMixerBlockNotification,z=()=>{Z.setActiveInstrumentIndex({id:e}),ue.w.send({event:d.lJ,instrument:P,params:{tab_mode:v,xtz_version:r.$_}})},E=((e,t)=>{let n="ac-guitar";return t?n="drums":0<=e&&7>=e?n="piano":8<=e&&15>=e?n="chroma":16<=e&&23>=e?n="organ":24<=e&&25>=e?n="ac-guitar":26<=e&&31>=e?n="el-guitar":32<=e&&39>=e?n="bass":40<=e&&47>=e?n="strings":48<=e&&55>=e?n="strings-c":56<=e&&63>=e?n="brass":64<=e&&71>=e?n="reed":72<=e&&79>=e?n="pipe":80<=e&&87>=e?n="synth-lead":88<=e&&95>=e?n="synth-pad":96<=e&&103>=e?n="synth-fx":104<=e&&111>=e?n="ethnic":112<=e&&118>=e?n="percussive":119<=e&&127>=e&&(n="fx"),n})(S,w),O=u(0===y?{message:["C"]}:0>y?{message:["L"]}:{message:["R"]}),B=Math.round(100*Math.abs(y))+"%",R=0===y?u({message:["Pan"]})+": "+u({message:["Center"]}):u({message:["Pan"]})+": "+B+" "+O;return(0,x.tZ)(k,{volume:(0,x.tZ)(M,{title:P,volume:T,onVolumeChange:t=>N?void A():void _({event:()=>{Z.setInstrumentVolume({id:e,volume:t}),ue.w.send({event:d.er,instrument:P,value:Math.round(100*t),params:{tab_mode:v,xtz_version:r.$_}})},triggerName:l.gK}),onInstrumentPress:z,onDragStart:()=>n(!0),onDragEnd:()=>n(!1),isHintSuppressed:t}),actions:(0,x.tZ)(L,{soloText:u({message:["S"]}),soloHintText:u({message:["Solo"]}),isSoloActive:b,onSoloToggle:()=>N?void A():void _({event:()=>{Z.togglePartSolo(e),ue.w.send({event:d.CJ,instrument:P,value:!b,params:{tab_mode:v,xtz_version:r.$_}})},triggerName:l.zo}),muteText:u({message:["M"]}),muteHintText:u({message:["Mute"]}),isMuteActive:f,onMuteToggle:()=>N?void A():void _({event:()=>{Z.togglePartMute(e),ue.w.send({event:d.wv,instrument:P,value:!f,params:{tab_mode:v,xtz_version:r.$_}})},triggerName:l.c0}),isHintSuppressed:t}),pan:(0,x.tZ)(W,{value:y,isHintSuppressed:t,suppressOtherHints:n,labelText:O,hintText:R,onChange:t=>N?void A():void _({event:()=>Z.setInstrumentPan({id:e,pan:t}),triggerName:l.kL})}),collapsed:(0,x.tZ)(de,{hasActiveIndicator:C,instrumentKey:E,size:"m"}),isSelected:g===e,isCollapsed:m,onPress:z})}},4784:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var i=n(94449),o=n(27328);const a={get isYoutubeSyncProTabEnabled(){return"en"===(0,i.Cf)()&&o.V.withYoutubeSyncProTab},get isAutoscrollChordsOfficialTabEnabled(){return o.V.withAutoscrollChordsOfficialTabB},get isBigPlayButtonProTab2Enabled(){return o.V.withBigPlayButtonProTab2}}},59001:(e,t,n)=>{"use strict";n.d(t,{c:()=>u});var i=n(97104),o=n(53618),a=n(59317),r=n(75213),s=n(4043),l=n(4498),c=n(68328),d=n(5646);const u=()=>{const e=(0,i.Q)().t,t=(0,o.Z)([s.ul,s.IB]),n=t[0],u=t[1],p=(0,a.Z)({showNotification:r.c0,changePlaybackMode:c.changePlaybackMode,changePlayMode:c.changePlayMode});return{isMixerBlocked:n||u,showMixerBlockNotification:()=>u?void p.showNotification({content:"You're in Scroll mode. To adjust instruments, switch to Play mode",action:{label:"Switch to Play",onPress:()=>
2p.changePlayMode({mode:l.FC.AUDIO})}}):void p.showNotification({content:e(d.OT),action:{label:e(d.hU),onPress:()=>p.changePlaybackMode({mode:l.pi.SYNTH})}})}}},4043:(e,t,n)=>{"use strict";n.d(t,{Ah:()=>u,EL:()=>v,IB:()=>y,Iz:()=>b,KF:()=>f,QA:()=>p,XK:()=>h,gD:()=>d,mZ:()=>m,uX:()=>c,ul:()=>g});var i=n(38314),o=n(1461),a=n(55113),r=n(74080),s=n(4498),l=n(4784);const c=(0,i.P1)([o.a7,a.$3,s.T1],((e,t,n)=>e||t||n)),d=(0,i.P1)([s.Cl],(e=>"chords"===e)),u=(0,i.P1)([s.lQ,s.xB,d],((e,t,n)=>!e&&!t&&!n)),p=(0,i.P1)([a.$3],(e=>e)),h=(0,i.P1)([s.gJ,o.X6,s.Wy],((e,t,n)=>l.e.isYoutubeSyncProTabEnabled&&!!e&&0<n.length)),g=(0,i.P1)([h,s.QA],((e,t)=>e&&t===s.pi.ORIGINAL)),m=(0,i.P1)([h,s.Jx,r.nm],((e,t,n)=>e&&!t&&!n)),v=(0,i.P1)([o.X6],(e=>l.e.isAutoscrollChordsOfficialTabEnabled&&e)),b=(0,i.P1)([v],(e=>l.e.isBigPlayButtonProTab2Enabled||e)),f=()=>l.e.isBigPlayButtonProTab2Enabled,y=(0,i.P1)([v,d,s.ox],((e,t,n)=>e&&t&&n===s.FC.SCROLL))},4498:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>l,FC:()=>a,Jx:()=>Z,NJ:()=>g,OJ:()=>x,OM:()=>p,QA:()=>w,QP:()=>k,Qj:()=>M,R1:()=>r,RK:()=>v,T1:()=>m,Tq:()=>h,Wy:()=>S,Xt:()=>f,_e:()=>P,gJ:()=>y,gh:()=>C,jT:()=>T,lQ:()=>d,ox:()=>_,pi:()=>o,xB:()=>c,yb:()=>u,z6:()=>b});var i=n(86561);const o={ORIGINAL:"Original",SYNTH:"Synth"},a={AUDIO:"synth audio",SCROLL:"scroll"},r=(0,i.tA)("proTabScreen")({persist:{localStorage:["isCollapsedControlsPanel","hasSelectedPlaybackMode","playbackMode","isVideoPlayerCollapsed"]},initialState:{isAutoscrollDisabled:!1,activeType:"pro",isInstrumentListExpanded:!1,isInstrumentListPinned:!1,isCollapsedControlsPanel:!1,isInstrumentSwitching:!1,typeUrls:void 0,chordsAsideMode:"chords",isOfficialTabWithPublicAccess:!1,isVideoPlayerOpen:!1,isVideoPlayerCollapsed:!1,isVideoPlayerFullSize:!1,videoId:"",videoSyncId:null,videoPointsUrl:"",videoOffset:0,syncPoints:[],playbackMode:o.ORIGINAL,shouldAutoPlayVideo:!1,videoSeekTime:null,hasSelectedPlaybackMode:!1,playMode:a.AUDIO},actions:{toggleIsInstrumentListPinned:(e,t)=>({isInstrumentListPinned:!t.isInstrumentListPinned}),toggleIsInstrumentListExpanded:(e,t)=>({isInstrumentListExpanded:!t.isInstrumentListExpanded}),toggleIsCollapsedControlsPanel:(e,t)=>({isCollapsedControlsPanel:!t.isCollapsedControlsPanel}),toggleVideoPlayerOpen:(e,t)=>({isVideoPlayerOpen:!t.isVideoPlayerOpen}),openVideoPlayerWithAutoPlay:()=>({isVideoPlayerOpen:!0,shouldAutoPlayVideo:!0}),setSyncPoints:e=>({syncPoints:e,videoOffset:e[0]||0}),togglePlaybackMode:(e,t)=>({playbackMode:t.playbackMode===o.ORIGINAL?o.SYNTH:o.ORIGINAL,isVideoPlayerOpen:t.playbackMode===o.SYNTH}),toggleVideoPlayerCollapsed:(e,t)=>({isVideoPlayerCollapsed:!t.isVideoPlayerCollapsed}),toggleVideoPlayerFullSize:(e,t)=>({isVideoPlayerFullSize:!t.isVideoPlayerFullSize})}}),s=r.props,l=s.getActiveType,c=(s.getIsAutoscrollDisabled,s.getIsInstrumentListExpanded),d=s.getIsInstrumentListPinned,u=s.getIsCollapsedControlsPanel,p=s.getIsInstrumentSwitching,h=s.getTypeUrls,g=s.getChordsAsideMode,m=s.getIsOfficialTabWithPublicAccess,v=s.getIsVideoPlayerOpen,b=s.getIsVideoPlayerCollapsed,f=s.getIsVideoPlayerFullSize,y=s.getVideoId,x=s.getVideoSyncId,k=s.getVideoPointsUrl,C=s.getVideoOffset,S=s.getSyncPoints,w=s.getPlaybackMode,P=s.getShouldAutoPlayVideo,T=s.getVideoSeekTime,Z=s.getHasSelectedPlaybackMode,_=s.getPlayMode,M=r.actions}
2,68328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyPlaybackModeSettings:()=>S,changePlayMode:()=>_,changePlaybackMode:()=>Z,loadTabVideoSyncPoints:()=>P,playWithVideoSync:()=>w,restorePersistedPlayerSettings:()=>x,rewindWithVideoSync:()=>T,setActivePart:()=>y,setProTabAutoscrollActive:()=>A,setProTabAutoscrollSpeed:()=>z,settingsReset:()=>k,stopAutoscrollForTabView:()=>M,togglePlay:()=>C,toggleProTabAutoscroll:()=>N});var i=n(40070),o=n(48314),a=n(74080),r=n(57088),s=n(1952),l=n(81231),c=n(85290),d=n(42527),u=n(54143),p=n(86712),h=n(84368),g=n(31741),m=n(13917);const v={async loadSyncPoints(e){const t=await fetch(e);if(!t.ok)throw new Error("Failed to load video sync points (status "+t.status+"): "+e);const n=await t.json();if(!Array.isArray(null==n?void 0:n.videoSync))throw new Error("Invalid video sync points payload: "+e);return n.videoSync.map((e=>e/1e3))}};var b=n(4498),f=n(4043);const y=({id:e})=>t=>{t(b.Qj.setIsInstrumentSwitching(!0)),t(o.uo.setActivePart(e))},x=()=>(e,t)=>{const n=(0,p.Z)([a.dQ,a.zP,a.Wh,r.cj],t),i=n[0],l=n[1],c=n[2],d=n[3];null!==i&&Number.isInteger(i)&&0<=i&&i<d&&i!==c&&e(o.uo.setActivePart(i)),l!==s.oO&&e(o.uo.setPlaybackSpeed(Math.min(m.az,Math.max(m.yv,l))))},k=()=>e=>{e(l.yJ.reset()),e((0,a.Sl)()),e(o.uo.setGeneralPitch(g.ls))},C=()=>(e,t)=>{const n=(0,p.Z)([a.pl,b.Cl,a.nm,f.EL,f.IB],t),i=n[0],r=n[1],l=n[2],u=n[3],g=n[4];c.w.send({event:d.zL,value:i?h.S9:h.Vt,params:{tab_mode:r,xtz_version:s.$_,state:l?d.g3:d.Fj,...u&&{mode:g?b.FC.SCROLL:b.FC.AUDIO}}}),e(o.uo.togglePlay())},S=({mode:e})=>(t,n)=>{const i=(0,a.Nf)(n()),r=e===b.pi.ORIGINAL,s=(0,a.I_)(n());i!==r&&t(o.uo.toggleGeneralMute()),r&&t((0,a.Sy)(!1)),t(b.Qj.setIsVideoPlayerOpen(r)),s!==g.qP&&t(o.uo.reapplyTransposeToXtz(r?g.qP:s))},w=()=>(e,t)=>{const n=(0,p.Z)([a.nm,f.XK,b.QA,b.Cl,f.EL,f.IB,a.pl],t),i=n[0],r=n[1],l=n[2],u=n[3],g=n[4],m=n[5],v=n[6],y=r?l===b.pi.ORIGINAL:v;c.w.send({event:d.zL,value:y?h.S9:h.Vt,params:{tab_mode:u,xtz_version:s.$_,state:i?d.g3:d.Fj,...g&&{mode:m?b.FC.SCROLL:b.FC.AUDIO}}}),r&&l===b.pi.ORIGINAL&&!i?e(b.Qj.openVideoPlayerWithAutoPlay()):e(o.uo.togglePlay())},P=()=>async(e,t)=>{const n=(0,p.Z)([b.QP],t)[0];if(n)try{const t=await v.loadSyncPoints(n);e(b.Qj.setSyncPoints(t))}catch(e){i.Z.error(e)}},T=()=>(e,t)=>{const n=(0,p.Z)([f.XK,b.QA],t),i=n[0],a=n[1];e(o.uo.rewind()),i&&a===b.pi.ORIGINAL&&e(b.Qj.setVideoSeekTime(0))},Z=({mode:e})=>(t,n)=>
2{const i=(0,p.Z)([b.Cl,a.nm],n),r=i[0],l=i[1];c.w.send({event:d.ur,value:e,params:{tab_mode:r,xtz_version:s.$_}}),l&&t(o.uo.pause()),t(S({mode:e})),t(b.Qj.setPlaybackMode(e)),t(T())},_=({mode:e})=>(t,n)=>{const i=(0,p.Z)([b.ox,a.nm,u.JD,b.Cl],n),r=i[0],l=i[1],h=i[2],g=i[3];e===r||(c.w.send({event:d.qb,params:{tab_mode:g,xtz_version:s.$_,mode:e}}),l&&t(o.uo.pause()),h&&t(u.TB.setActive(!1)),t(b.Qj.setPlayMode(e)))},M=()=>(e,t)=>{(0,p.Z)([u.JD],t)[0]&&e(u.TB.setActive(!1))},I=(e,t,n)=>{const i=(0,p.Z)([a.pl,b.Cl,f.EL,b.ox],n),o=i[0],r=i[1],l=i[2],g=i[3];c.w.send({event:d.zL,value:o?h.S9:h.Vt,params:{tab_mode:r,xtz_version:s.$_,state:e?d.Fj:d.g3,...l&&{mode:g}}}),t(u.TB.setActive(e))},N=()=>(e,t)=>{const n=(0,p.Z)([u.JD],t)[0];I(!n,e,t)},A=e=>(t,n)=>{const i=(0,p.Z)([u.JD],n)[0];e===i||I(e,t,n)},z=e=>(t,n)=>{const i=(0,p.Z)([b.Cl],n)[0];c.w.send({event:d._j,value:e,params:{tab_mode:i,xtz_version:s.$_}}),t(u.TB.setSpeed(e))}},67386:(e,t,n)=>{"use strict";n.d(t,{C:()=>h});var i=n(502),o=n(20386),a=n.n(o),r=n(66653),s=n(89851),l=n(4517),c=n(50979),d=n(26443),u=n(76799),p=n(24517);const h=(0,i.forwardRef)((({children:e,className:t,Icon:n,IconWhenSelected:i,iconPlacement:o="start",iconState:h,pendingLabel:g,pendingSpinnerType:m,...v},b)=>{const f=v.isPending,y=!!e,x=!!n,k=!!i;if(!x&&!y)return(0,c.F)("ToggleButton must have either text or an icon for the unselected state");const C=x?(0,p.tZ)(n,{state:h}):void 0,S=k?(0,p.tZ)(i,{state:h}):void 0;return(0,p.tZ)(r.I,{className:a()(d.Z.button,u.Z.toggleButton,d.Z["iconPlacement-"+o],t,{[d.Z.withIconOnly]:x&&!y}),ref:b,...v,children:t=>{const n=t&&k?S:C,i=y?(0,p.tZ)(s.x,{type:"body-s-medium",align:"center",children:"function"==typeof e?e(t):e}):void 0;return(0,p.BX)(p.HY,{children:[f?(0,p.tZ)(l.$,{"aria-label":g,type:m}):n,i]})}})}))},13683:(e,t,n)=>{"use strict";n.d(t,{M:()=>l});var i=n(502),o=n(40665),a=n(89851),r=n(6759),s=n(24517);const l=({header:e,headingLevel:t=2,subheader:n,actionsSlot:l})=>{const c=(0,i.useId)();return(0,s.BX)(o.Ug,{gap:"xxl",justify:"space-between",className:r.Z.container,children:[(0,s.BX)("div",{children:[(0,s.tZ)(a.x,{as:"h"+t,type:"subtitle-s",state:"primary","aria-describedby":c,children:e}),(0,s.tZ)(a.x,{type:"body-s",state:"secondary",className:r.Z.subheader,id:c,children:n})]}),!!l&&(0,s.tZ)(o.Ug,{gap:"m",children:l})]})}},87776:(e,t,n)=>{"use strict";n.d(t,{J:()=>l,c:()=>s});var i=n(40514),o=n(36130),a=n(24517);const r=({blockGap:e,inlineGap:t,orientation:n})=>{const r={};return e&&(r.paddingBlock=i.N[e]),t&&(r.paddingInline=i.N[t]),(0,a.tZ)("div",{"aria-orientation":n,className:o.Z.divider,role:"separator",style:r})},s=e=>(0,a.tZ)(r,{...e,orientation:"horizontal"}),l=e=>(0,a.tZ)(r,{...e,orientation:"vertical"})},67030:(e,t,n)=>{"use strict";n.d(t,{m:()=>U});var i=n(20386),o=n.n(i),a=n(54326),r=n(502);const s=new WeakMap;function l(e,t,n){if(!e)return"";return"string"==typeof t&&(t=t.replace(/\s+/g,"")),s.get(e)+"-"+n+"-"+t}class c{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t||!t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){let t=e;do{t=this.collection.getKeyAfter(t),null==t&&(t=this.collection.getFirstKey())}while(null!=t&&this.isDisabled(t));return t}getPreviousKey(e){let t=e;do{t=this.collection.getKeyBefore(t),null==t&&(t=this.collection.getLastKey())}while(null!=t&&this.isDisabled(t));return t}constructor(e,t,n,i=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=i,this.tabDirection="horizontal"===n}}
2var d=n(13739),u=n(53005),p=n(61925),h=n(51331),g=n(46508);var m=n(96236),v=n(40042),b=n(33906);function f(e){var t;let n=(0,b.z)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),i=n[0],o=n[1],a=(0,r.useMemo)((()=>null==i?[]:[i]),[i]),s=(0,v.n)({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:a,onSelectionChange:t=>{if("all"!==t){var n;let a=null!==(n=t.values().next().value)&&void 0!==n?n:null;a===i&&e.onSelectionChange&&e.onSelectionChange(a),o(a)}}}),l=s.collection,c=s.disabledKeys,d=s.selectionManager,u=null==i?null:l.getItem(i);return{collection:l,disabledKeys:c,selectionManager:d,selectedKey:i,setSelectedKey:o,selectedItem:u}}function y(e){var t,n;let i=f({...e,onSelectionChange:e.onSelectionChange?t=>{var n;null!=t&&(null===(n=e.onSelectionChange)||void 0===n||n.call(e,t))}:void 0,suppressTextValueWarning:!0,defaultSelectedKey:null!==(n=null!==(t=e.defaultSelectedKey)&&void 0!==t?t:x(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set))&&void 0!==n?n:void 0}),o=i.selectionManager,a=i.collection,s=i.selectedKey,l=(0,r.useRef)(s);return(0,r.useEffect)((()=>{let t=s;null==e.selectedKey&&(o.isEmpty||null==t||!a.getItem(t))&&(t=x(a,i.disabledKeys),null!=t&&o.setSelectedKeys([t])),(null==t||null!=o.focusedKey)&&(o.isFocused||t===l.current)||o.setFocusedKey(t),l.current=t})),{...i,isDisabled:e.isDisabled||!1}}function x(e,t){let n=null;if(e){var i,o,a,r;for(n=e.getFirstKey();null!=n&&(t.has(n)||(null===(o=e.getItem(n))||void 0===o||null===(i=o.props)||void 0===i?void 0:i.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);null!=n&&(t.has(n)||(null===(r=e.getItem(n))||void 0===r||null===(a=r.props)||void 0===a?void 0:a.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}var k=n(60630),C=n(75354),S=n(47198),w=n(44663),P=n(68714);var T=n(20251),Z=n(46988),_=n(23278),M=n.n(_),I=n(90084),N={injectType:"styleTag",insert:"head",singleton:!1};M()(I.Z,N);const A=I.Z.locals||{};var z=n(24517);const L=({className:e,item:t,state:n})=>{const i=(0,r.useRef)(null),o=function(e,t,n){let i=e.key,o=e.isDisabled,a=e.shouldSelectOnPressUp,r=t.selectionManager,s=i===t.selectedKey,c=o||t.isDisabled||t.selectionManager.isDisabled(i),d=(0,P.C)({selectionManager:r,key:i,ref:n,isDisabled:c,shouldSelectOnPressUp:a,linkBehavior:"selection"}),u=d.itemProps,h=d.isPressed,g=l(t,i,"tab"),m=l(t,i,"tabpanel"),v=u.tabIndex,b=t.collection.getItem(i),f=(0,C.z)(null==b?void 0:b.props,{labelable:!0});delete f.id;let y=(0,S.eY)(null==b?void 0:b.props),x=(0,w.kc)({...null==b?void 0:b.props,isDisabled:c},n).focusableProps;return{tabProps:(0,p.d)(f,x,y,u,{id:g,"aria-selected":s,"aria-disabled":c||void 0,"aria-controls":s?m:void 0,tabIndex:c?void 0:v,role:"tab"}),isSelected:s,isDisabled:c,isPressed:h}}({key:t.key},n,i),s=o.tabProps,c=o.isDisabled,d=o.isPressed,u=o.isSelected,h=(0,T.F)(),g=h.focusProps,m=h.isFocusVisible,v=(0,Z.X)({isDisabled:c}),b=v.hoverProps,f=v.isHovered;return(0,z.tZ)("div",{...(0,p.d)(s,g,b),className:(0,a.Z)(A.tab,e),"data-disabled":c||void 0,"data-focused":m||void 0,"data-hovered":f||void 0,"data-pressed":d||void 0,"data-selected":u||void 0,ref:i,children:t.rendered})};var E=n(53930),O=n(78111);function B(e,t){let n=null==t?void 0:t.isDisabled,i=(0,r.useState)(!1),o=i[0],a=i[1];return(0,O.b)((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=(0,E.QL)(e.current,{tabbable:!0});a(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&o}function R(e,t,n){let i=B(n)?void 0:0;var o;const a=l(t,null!==(o=e.id)&&void 0!==o?o:null==t?void 0:t.selectedKey,"tabpanel"),r=(0,u.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,p.d)(r,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}const F=({className:e,state:t,...n})=>{var i;const o=(0,r.useRef)(null),a=R(n,t,o).tabPanelProps;return(0,z.tZ)("div",{...a,className:e,ref:o,children:null===(i=t.selectedItem)||void 0===i?void 0:i.props.children})},D=({classNames:e={},decorateRenderedItem:t,layout:n,renderItemTitle:i,tabListPlacement:o="start",...l})=>{var v;const b="vertical"===n?"vertical":"horizontal",f={children:(0,r.useCallback)((e=>(0,z.tZ)(m.c,{title:i(e),children:e.content},e.key)),[i]),orientation:b,...l},x=(0,r.useRef)(null),C=y(f),S=function(e,t,n){let i=e.orientation,o=void 0===i?"horizontal":i,a=e.keyboardActivation,l=void 0===a?"automatic":a,m=t.collection,v=t.selectionManager,b=t.disabledKeys,f=(0,h.j)().direction,y=(0,r.useMemo)((()=>new c(m,f,o,b)),[m,b,o,f]),x=(0,g.g)({ref:n,selectionManager:v,keyboardDelegate:y,selectOnFocus:"automatic"===l,disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}).collectionProps,k=(0,d.Me)();s.set(t,k);let C=(0,u.b)({...e,id:k});return{tabListProps:{...(0,p.d)(x,C),role:"tablist","aria-orientation":o,tabIndex:void 0}}}(f,C,x),w=S.tabListProps,P=null===(v=C.selectedItem)||void 0===v?void 0:v.key,T=(0,r.useCallback)((t=>(0,z.tZ)(L,{className:e.tab,item:t,state:C})),[e.tab,C]),Z=(0,r.useMemo)((()=>t?(e,n)=>null===n.value?e:t(e,n.value):void 0),[t]);return(0,z.BX)("div",{className:(0,a.Z)(A.container,e.container),"data-orientation":b,"data-reverse":"end"===o||void 0,children:[(0,z.tZ)(k.g,{classNames:e,decorateRenderedItem:Z,items:Array.from(C.collection),layout:n,listRef:x,renderItem:T,selectedKey:P,...w}),(0,z.tZ)(F,{className:(0,a.Z)(A.tabPanel,e.tabPanel),state:C},P)]})};var H=n(89851),j=n(20542),W={injectType:"styleTag",insert:"head",singleton:!1};M()(j.Z,W);const V=j.Z.locals||{},K=({Icon:e,title:t})=>{const n=e?(0,z.tZ)(e,{}):null;
2return(0,z.BX)(z.HY,{children:[(0,z.tZ)(H.x,{type:"body-s-medium",children:t}),n]})},U=({defaultSelectedKey:e,disabledKeys:t,isAnimated:n=!1,items:i,onSelectionChange:a,...r})=>(0,z.tZ)(D,{...r,classNames:{tab:V.tab,tabList:V.tabList,tabListItem:V.tabListItem,selectedTabIndicator:o()(V.selectedTabIndicator,{[V.animated]:n})},defaultSelectedKey:e,disabledKeys:t,items:i,keyboardActivation:"manual",layout:"scroll",onSelectionChange:a,renderItemTitle:K})},1344:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"m12 4 2-1v12a1.5 1.5 0 0 0-1.5 1.5V18h-5v-1.5A1.5 1.5 0 0 0 6 15V3l2 1 2-1zm3 3a1 1 0 1 1 2 0 1 1 0 0 1-2 0m1 2a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0M4 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"}))},33539:(e,t,n)=>{"use strict";n.d(t,{q:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M5 15 7.5 2l3.05 1.22a4 4 0 0 1 2.415 2.828L15 15h-.5a2 2 0 0 0-2 2v1h-5v-1a2 2 0 0 0-2-2zm-1.5-5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M15 11.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0M4.5 5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3M14 6.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0"}))},72191:(e,t,n)=>{"use strict";n.d(t,{w:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M11.607 16.5 13 15.13 7.786 10 13 4.87 11.607 3.5 5 10z",clipRule:"evenodd"}))},1295:(e,t,n)=>{"use strict";n.d(t,{X:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M8.393 16.5 7 15.13 12.214 10 7 4.87 8.393 3.5 15 10z",clipRule:"evenodd"}))},84358:(e,t,n)=>{"use strict";n.d(t,{n:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.BX)("g",{children:[(0,o.tZ)("path",{d:"M4 6.129c.5 0 .957-.19 1.307-.502L8 10.258l-5.5 5.677L4.5 18l5.5-5.677.003.003L12 10.258l2.692-4.632c.35.314.808.503 1.308.503 1.105 0 2-.924 2-2.064S17.105 2 16 2s-2 .924-2 2.065c0 .516.184.988.487 1.35L10 8.193 5.513 5.415A2.1 2.1 0 0 0 6 4.065C6 2.925 5.105 2 4 2s-2 .924-2 2.065c0 1.14.895 2.064 2 2.064"}),(0,o.tZ)("path",{d:"M12 10.258v4.13l-.018-.019L15.5 18l2-2.065z"})]}))},87193:(e,t,n)=>{"use strict";n.d(t,{e:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M12.023 2c1.784 0 3.232 1.343 3.232 3 0 1.314-.911 2.431-2.179 2.837L15.271 14c-1.342 0-2.3.736-2.546 1.576-.063.217-.062.436-.062.66V18H7.41v-1.5c.036-1.5-1.737-2-1.737-2L8.73 4.76C9.22 3.193 10.246 2 12.023 2m-8.59 10.958a.8.8 0 1 1 1.526.482.8.8 0 0 1-1.526-.482m.632-2.003a.8.8 0 1 1 1.526.482.8.8 0 0 1-1.527-.482m.631-2.003a.8.8 0 1 1 1.527.482.8.8 0 0 1-1.527-.482m.632-2.002a.8.8 0 1 1 1.527.481.8.8 0 0 1-1.527-.482m.632-2.003a.8.8 0 1 1 1.527.483.8.8 0 0 1-1.527-.483m.631-2.003a.8.8 0 1 1 1.527.483.8.8 0 0 1-1.527-.483"}))}
2,29423:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M5 7v2H3v9h14V9h-2V7A5 5 0 0 0 5 7m5-3a3 3 0 0 0-3 3v2h6V7a3 3 0 0 0-3-3m0 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3",clipRule:"evenodd"}))},24853:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M19 3v14H1V3zM9 5H7v6H5V5H3v9h14V5h-2v6h-2V5h-2v6H9z",clipRule:"evenodd"}))},17914:(e,t,n)=>{"use strict";n.d(t,{z:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16m-2-4 6-4-6-4z",clipRule:"evenodd"}))},63995:(e,t,n)=>{"use strict";n.d(t,{I:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M4 16V4H2v12zm7-7h6v2h-6v3l-6-4 6-4z"}))},80026:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M10 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8m-2.5 1 1 7h3l1-7z"}))},7928:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M3.622 5.543 10 2v16l-6.378-3.543a5.098 5.098 0 0 1 0-8.914M12 7a3 3 0 1 1 0 6v2a5 5 0 0 0 0-10z"}))},39406:(e,t,n)=>{"use strict";n.d(t,{t:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{d:"M3.666 5.543 10.149 2v16l-6.483-3.543A5.09 5.09 0 0 1 1 10a5.09 5.09 0 0 1 2.666-4.457m9.234 8.164 2.332-2.293 2.33 2.293L19 12.293 16.67 10 19 7.707l-1.438-1.414-2.33 2.293L12.9 6.293l-1.438 1.414L13.794 10l-2.33 2.293z"}))},70942:(e,t,n)=>{"use strict";n.d(t,{a:()=>a});var i=n(68387),o=n(24517);const a=(0,i.I)("0 0 20 20",(0,o.tZ)("path",{fillRule:"evenodd",d:"M19.5 18 10 2 .5 18zM9.003 12.5V7h1.994v5.5zm2.493 3c0 .828-.67 1.5-1.496 1.5a1.5 1.5 0 0 1-1.496-1.5c0-.828.67-1.5 1.496-1.5s1.496.672 1.496 1.5",clipRule:"evenodd"}))},14002:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(1896);const o={containerIndents:{top:10,left:20,right:20,bottom:20},ukuleleContainerIndents:{top:10,left:20,right:24,bottom:24},nutSize:2,fretDeviderSize:1,stringSize:1,stringDistance:6,fretSize:7,fingerSize:5,capoSize:3,fingerTextTopIndent:2,effectSize:6,fingerFontSize:10,fretFontSize:11},a={[i.sA]:o,[i.nm]:{...o,containerIndents:{top:9,bottom:12,left:4,right:20},stringDistance:8,fretSize:9,fingerSize:7},[i.Fj]:{...o,nutSize:4,stringDistance:9,capoSize:4,fretSize:12,fingerSize:9,fingerFontSize:11},[i.em]:{...o,containerIndents:{top:16,left:14,right:14,bottom:10},ukuleleContainerIndents:{top:16,left:24,right:24,bottom:10},stringDistance:9,nutSize:3,fretSize:11,capoSize:4,fingerSize:10,fretFontSize:10,fingerFontSize:9,fingerTextTopIndent:4,effectSize:6}}},94654:(e,t,n)=>{"use strict";n.d(t,{C:()=>d});var i=n(1896),o=n(95330),a=n(82002),r=n(37660),s=n(14002),l=n(89391);const c=e=>Array(e).fill(""),d=({size:e,capo:t,fingers:n,disabled:d,tuning:u,fretNum:p,isUkulele:h,isLeftHand:g,isDarkTheme:m})=>{const v=s.Z[e],b=v.containerIndents,f=v.capoSize,y=v.fingerFontSize,x=v.fingerSize,k=v.fretDeviderSize,C=v.fretFontSize,S=v.fretSize,w=v.nutSize,P=v.stringDistance,T=v.stringSize,Z=v.fingerTextTopIndent,_=h?o.l9:o.mX,M=T+P,I=M*_-P,N=k+S,A=w+N*o.yV;return{render(e){const s=m?a.qH:a.Sx,h=m?a.kM:a.r9,v=m?a.L6:a.a6;(0,l.UN)(e);const z=(t,n=s)=>{(0,l.DM)({ctx:e,props:t,style:{fill:n}})},L=({text:t,x:n,y:i,fontSize:o,textAlign:a="center",textBaseline:c="top"})=>{(0,l.Yo)({ctx:e,text:t,props:{x:n,y:i},style:{textAlign:a,fill:s,fontFamily:r.B,fontSize:o,textBaseline:c}})},E=e=>{const t=T/2+M*(e-1);return b.left+(g?t:I-t)},O=(e,t)=>{L({text:e,x:E(t),y:b.top+A+Z,fontSize:y})};c(o.yV).forEach(((e,t,n)=>{z({x:b.left,y:b.top+w+N*(t+1)-k,width:I,height:k},t+1===n.length?s:h)})),c(_).forEach(((e,t,n)=>{const i=d.includes(g?t+1:n.length-t);z({x:b.left+M*t,y:b.top,width:T,height:A-k},i?v:s)})),z({x:b.left,y:b.top,width:I,height:w}),(()=>{if(null!=t&&t.fret||null!=t&&t.lastString){const e=(_-t.lastString)*M;z({x:b.left-P/2+(g?0:e),y:b.top+w+(S-f)/2+(t.fret-1)*N,width:I+P-e,height:f,radius:f/2})}}
2)(),p&&L({text:p+"fr",x:b.left+I+f+1,y:b.top,fontSize:C,textAlign:"left"}),n.forEach((({fret:t,string:n})=>{(0,l.bC)({ctx:e,props:{radius:x/2,x:E(n),y:b.top+w+(t-1)*N+S/2},style:{fill:s}})})),u?u.trim().split(" ").forEach(((e,t)=>{O(e,t+1)})):n.forEach((({finger:e,string:t})=>{O(e.toString(),t)})),d.forEach((e=>{const t=(e-1)*M+T/2;L({text:i.RX,fontSize:y,x:b.left+(g?t:I-t),y:b.top,textBaseline:"bottom"})}))},containerWidth:I+b.left+b.right,containerHeight:A+b.top+b.bottom}}},89391:(e,t,n)=>{"use strict";n.d(t,{DM:()=>r,UN:()=>a,Yo:()=>s,bC:()=>o});const i=window.devicePixelRatio,o=({ctx:e,props:{x:t,y:n,radius:o},style:{fill:a,strokeWidth:r=1,stroke:s}})=>{e.beginPath(),e.arc(t*i,n*i,o*i,0,2*Math.PI),e.closePath(),a&&(e.fillStyle=a),s&&(e.strokeStyle=s,e.lineWidth=r),a&&e.fill(),s&&e.stroke()},a=e=>{e.clearRect(0,0,e.canvas.width,e.canvas.height)},r=({ctx:e,props:{x:t,y:n,width:o,height:a,radius:r=0},style:{fill:s,strokeWidth:l=1,stroke:c}})=>{const d=t*i,u=n*i;let p=r*i;const h=o*i,g=a*i;h<2*p&&(p=h/2),g<2*p&&(p=g/2),e.beginPath(),e.moveTo(d+p,u),e.arcTo(d+h,u,d+h,u+g,p),e.arcTo(d+h,u+g,d,u+g,p),e.arcTo(d,u+g,d,u,p),e.arcTo(d,u,d+h,u,p),e.closePath(),s&&(e.fillStyle=s),c&&(e.strokeStyle=c,e.lineWidth=l*i),s&&e.fill(),c&&e.stroke()},s=({ctx:e,text:t,props:{x:n,y:o},style:{fontSize:a=11,fontFamily:r="sans-serif",fontWeight:s=400,fill:l,textAlign:c="left",textBaseline:d="top"}})=>{e.textBaseline=d,e.beginPath(),e.font=s+" "+a*i+"px "+r,e.textAlign=c,l&&(e.fillStyle=l),e.fillText(t.toString(),n*i,o*i),e.closePath()}},74913:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(502),o=n(80725),a=n(94654),r=n(24517);const s=window.devicePixelRatio,l=({size:e="sm",capo:t,disabled:n,fingers:l,fretNum:c,isLeftHand:d,isUkulele:u,tuning:p=""})=>{const h=(0,o.F)().isDarkTheme,g=(0,i.useMemo)((()=>(0,a.C)({capo:t,disabled:n,fingers:l,fretNum:c,isDarkTheme:h,isLeftHand:d,isUkulele:u,size:e,tuning:p})),[e,u,d,e,h,c,p]),m=g.containerHeight,v=g.containerWidth,b=g.render,f=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=f.current;e&&b(e.getContext("2d"))}),[b]),(0,r.tZ)("canvas",{ref:f,width:v*s,height:m*s,style:{height:m,width:v}})}},26078:(e,t,n)=>{"use strict";n.d(t,{EO:()=>l,N$:()=>o,O7:()=>a,bL:()=>r,x0:()=>s,xh:()=>i});const i="tab/wave",o="tab/tonebridge",a="tab/play_round",r="tab/notes",s="tab/play_circle",l="tab/stop"}
2,67489:(e,t,n)=>{"use strict";n.d(t,{L:()=>h,Z:()=>p});n(502);var i=n(20386),o=n.n(i),a=n(23278),r=n.n(a),s=n(91220),l={injectType:"styleTag",insert:"head",singleton:!1};r()(s.Z,l);const c=s.Z.locals||{};var d=n(24517);const u=({children:e,className:t,As:n="div",withoutAnyPadding:i,...a})=>(0,d.tZ)(n,{className:o()(c.wrappper,t,{[c.noPadding]:i}),...a,children:e});u.defaultProps={As:"div",className:""};const p=u,h=c.wrappper},27732:(e,t,n)=>{"use strict";n.d(t,{Qd:()=>o,eB:()=>i});const i="md",o="lg"},82002:(e,t,n)=>{"use strict";n.d(t,{AP:()=>a,L6:()=>c,Sx:()=>i,a6:()=>s,kM:()=>o,l3:()=>l,qH:()=>d,r9:()=>r});const i="#111",o="#7A7A7A",a="#F8F8F8",r="#C0C0C0",s="#787878",l="#212121",c="#929292",d="#DDDDCC"},37660:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});const i="Open Sans,-apple-system,Roboto,Helvetica neue,Helvetica,sans-serif"},82661:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var i=n(502);const o=()=>({width:window.innerWidth,height:window.innerHeight}),a=()=>{const e=(0,i.useState)(o),t=e[0],n=e[1],a=(0,i.useRef)(null),r=(0,i.useRef)(t);return(0,i.useEffect)((()=>{const e=()=>{null!==a.current||(a.current=requestAnimationFrame((()=>{const e=o(),t=r.current;(e.width!==t.width||e.height!==t.height)&&(r.current=e,n(e)),a.current=null})))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),null!==a.current&&cancelAnimationFrame(a.current)}}),[]),t}},2908:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(27683),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},11326:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(57486),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},25795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(44944),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},64162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(77590),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},76799:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(73080),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},6759:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(83010),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},36130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(22357),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},48525:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(65092),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},3016:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(92274),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},81186:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(55006),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},96944:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(23278),o=n.n(i),a=n(7544),r={injectType:"styleTag",insert:"head",singleton:!1};o()(a.Z,r);const s=a.Z.locals||{}},50408:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(502);const o=function(e){var t=(0,i.useRef)();return t.current||(t.current={v:e()}),t.current.v}},13588:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(502),o=n(50408);const a=function(e){var t=e.controlledValue,n=e.initialValue,a=e.onChange,r=void 0!==t,s=((0,o.Z)((function(){return r})),(0,i.useState)(n)),l=s[0],c=s[1];return[r?t:l,(0,i.useCallback)((function(e){r||c(e),a&&a(e)}),[r,a])]}},54505:(e,t,n)=>{"use strict";e.exports=n.p+"202609/strumming.6e03eaf9..svg"},11921:(e,t,n)=>{"use strict";e.exports=n.p+"202609/[email protected]"},53151:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});var i=n(33906),o=n(502);function a(e={}){let t=e.isReadOnly,n=(0,i.z)(e.isSelected,e.defaultSelected||!1,e.onChange),a=n[0],r=n[1],s=(0,o.useState)(a)[0];var l;return{isSelected:a,defaultSelected:null!==(l=e.defaultSelected)&&void 0!==l?l:s,setSelected:function(e){t||r(e)},toggle:function(){t||r(!a)}}}}}]);
3//# sourceMappingURL=/static/public/build/ug_react_i18n_es6/../../sourcemap/ug_react_i18n_es6/202609/5972.911d4a5d394e7ff72bfbb6c4b79735da.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.