@vue-skuilder/courseware 0.1.33 → 0.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CourseWare-BTFRjgBR.js +305 -0
- package/dist/CourseWare-BTFRjgBR.js.map +1 -0
- package/dist/CourseWare-DSeyTAtH.cjs +2 -0
- package/dist/CourseWare-DSeyTAtH.cjs.map +1 -0
- package/dist/assets/CourseWare.css +1 -0
- package/dist/assets/chess.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/math.css +1 -0
- package/dist/assets/piano.css +1 -0
- package/dist/assets/sightsing.css +1 -0
- package/dist/assets/typing.css +1 -0
- package/dist/backend.cjs.js +1 -1
- package/dist/backend.cjs.js.map +1 -1
- package/dist/backend.mjs +4 -3
- package/dist/backend.mjs.map +1 -1
- package/dist/chess/components/ChessBoard.vue.d.ts.map +1 -1
- package/dist/chess/composables/useChessgroundBounds.d.ts +24 -0
- package/dist/chess/composables/useChessgroundBounds.d.ts.map +1 -0
- package/dist/chess/questions/puzzle/puzzle.vue.d.ts.map +1 -1
- package/dist/chess-BbHATAzk.js +2949 -0
- package/dist/chess-BbHATAzk.js.map +1 -0
- package/dist/chess-BsgVZARV.cjs +7 -0
- package/dist/chess-BsgVZARV.cjs.map +1 -0
- package/dist/chess-C_2RQEuq.cjs +1 -0
- package/dist/chess-X1bmWmh3.js +3 -0
- package/dist/french-Bxet7hJm.cjs +2 -0
- package/dist/french-Bxet7hJm.cjs.map +1 -0
- package/dist/french-Dk7YG8Td.js +140 -0
- package/dist/french-Dk7YG8Td.js.map +1 -0
- package/dist/french-evUMlbbq.js +3 -0
- package/dist/french-x9P8RRn8.cjs +1 -0
- package/dist/index.cjs.js +2 -170
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +172 -62021
- package/dist/index.mjs.map +1 -1
- package/dist/math-B1oDAkOy.cjs +34 -0
- package/dist/math-B1oDAkOy.cjs.map +1 -0
- package/dist/math-B4HbgYf6.js +13391 -0
- package/dist/math-B4HbgYf6.js.map +1 -0
- package/dist/math-BWlIa6-l.cjs +1 -0
- package/dist/math-DYni7rRl.js +3 -0
- package/dist/piano-BN5Btq91.js +3 -0
- package/dist/piano-Btvkzjfz.cjs +1 -0
- package/dist/piano-CefQUc72.cjs +2 -0
- package/dist/piano-CefQUc72.cjs.map +1 -0
- package/dist/piano-DF1g6yaX.js +3603 -0
- package/dist/piano-DF1g6yaX.js.map +1 -0
- package/dist/pitch-C-lh9ezH.cjs +2 -0
- package/dist/pitch-C-lh9ezH.cjs.map +1 -0
- package/dist/pitch-CgGJFkZ1.js +106 -0
- package/dist/pitch-CgGJFkZ1.js.map +1 -0
- package/dist/pitch-Dn0iNqiS.js +3 -0
- package/dist/pitch-DsopN5IR.cjs +1 -0
- package/dist/{shapes-nszfsx3o.js → shapes-BQUVJdp5.js} +3 -21
- package/dist/shapes-BQUVJdp5.js.map +1 -0
- package/dist/shapes-C_-mvrCc.cjs +2 -0
- package/dist/shapes-C_-mvrCc.cjs.map +1 -0
- package/dist/shapes-DRq8J94A.cjs +2 -0
- package/dist/shapes-DRq8J94A.cjs.map +1 -0
- package/dist/shapes-ICeg46lr.js +25 -0
- package/dist/shapes-ICeg46lr.js.map +1 -0
- package/dist/sightsing-BFQ7HRig.js +41061 -0
- package/dist/sightsing-BFQ7HRig.js.map +1 -0
- package/dist/sightsing-CJX3k0Fd.js +3 -0
- package/dist/sightsing-Cr_SJ5Vc.cjs +133 -0
- package/dist/sightsing-Cr_SJ5Vc.cjs.map +1 -0
- package/dist/sightsing-CtagQ0FJ.cjs +1 -0
- package/dist/typing-BevtfWlp.js +184 -0
- package/dist/typing-BevtfWlp.js.map +1 -0
- package/dist/typing-CBPjtwrg.cjs +1 -0
- package/dist/typing-CK-glKhm.cjs +2 -0
- package/dist/typing-CK-glKhm.cjs.map +1 -0
- package/dist/typing-k-ojjO7G.js +3 -0
- package/dist/word-work-BOnRlZgd.js +108 -0
- package/dist/word-work-BOnRlZgd.js.map +1 -0
- package/dist/word-work-C5MTSapy.cjs +1 -0
- package/dist/word-work-Dd6tIKrt.js +3 -0
- package/dist/word-work-fNbCLNuN.cjs +2 -0
- package/dist/word-work-fNbCLNuN.cjs.map +1 -0
- package/package.json +6 -5
- package/dist/shapes-DJ-ujuDr.cjs +0 -2
- package/dist/shapes-DJ-ujuDr.cjs.map +0 -1
- package/dist/shapes-nszfsx3o.js.map +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
const e=require(`./shapes-C_-mvrCc.cjs`),t=require(`./CourseWare-DSeyTAtH.cjs`);let n=require(`vue`),r=require(`@vue-skuilder/common-ui`),a=require(`@vue-skuilder/common`);var o=e.n(((e,t)=>{t.exports=`6.4.4`})),c=e.n(((e,t)=>{var TimingCallbacks=function(e,t){var n=this;if(t||={},n.qpm=t.qpm?parseInt(t.qpm,10):null,!n.qpm){var r=e.metaText?e.metaText.tempo:null;n.qpm=e.getBpm(r)}n.extraMeasuresAtBeginning=t.extraMeasuresAtBeginning?parseInt(t.extraMeasuresAtBeginning,10):0,n.beatCallback=t.beatCallback,n.eventCallback=t.eventCallback,n.lineEndCallback=t.lineEndCallback,n.lineEndAnticipation=t.lineEndAnticipation?parseInt(t.lineEndAnticipation,10):0,n.beatSubdivisions=t.beatSubdivisions?parseInt(t.beatSubdivisions,10):1,n.joggerTimer=null,n.replaceTarget=function(e){n.noteTimings=e.setTiming(n.qpm,n.extraMeasuresAtBeginning),e.noteTimings.length===0&&(n.noteTimings=e.setTiming(0,0)),n.lineEndCallback&&(n.lineEndTimings=getLineEndTimings(e.noteTimings,n.lineEndAnticipation)),n.startTime=null,n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.currentTime=0,n.isPaused=!1,n.isRunning=!1,n.pausedPercent=null,n.justUnpaused=!1,n.newSeekPercent=0,n.lastTimestamp=0,n.noteTimings.length!==0&&(n.millisecondsPerBeat=1e3/(n.qpm/60)/n.beatSubdivisions,n.lastMoment=n.noteTimings[n.noteTimings.length-1].milliseconds,n.totalBeats=Math.round(n.lastMoment/n.millisecondsPerBeat))},n.replaceTarget(e),n.doTiming=function(e){if(n.lastTimestamp!==e&&(n.lastTimestamp=e,n.startTime||=e,!n.isPaused&&n.isRunning)){for(n.currentTime=e-n.startTime,n.currentTime+=16;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].milliseconds<n.currentTime;){if(n.eventCallback&&n.noteTimings[n.currentEvent].type===`event`){var t=n.startTime;n.eventCallback(n.noteTimings[n.currentEvent]),t!==n.startTime&&(n.currentTime=e-n.startTime)}n.currentEvent++}if(n.lineEndCallback&&n.lineEndTimings.length>n.currentLine&&n.lineEndTimings[n.currentLine].milliseconds<n.currentTime&&n.currentEvent<n.noteTimings.length){var r=n.noteTimings[n.currentEvent].milliseconds===n.currentTime?n.noteTimings[n.currentEvent]:n.noteTimings[n.currentEvent-1];n.lineEndCallback(n.lineEndTimings[n.currentLine],r,{line:n.currentLine,endTimings:n.lineEndTimings,currentTime:n.currentTime}),n.currentLine++}if(n.currentTime<n.lastMoment){if(requestAnimationFrame(n.doTiming),n.currentBeat*n.millisecondsPerBeat<n.currentTime){var a=n.doBeatCallback(e);a!==null&&(n.currentTime=a)}}else if(n.currentBeat<=n.totalBeats&&n.beatCallback){var o=n.doBeatCallback(e);o!==null&&(n.currentTime=o),requestAnimationFrame(n.doTiming)}if(n.currentTime>=n.lastMoment)if(n.eventCallback){var c=n.eventCallback(null);n.shouldStop(c).then(function(e){e&&n.stop()})}else n.stop()}},n.shouldStop=function(e){return new Promise(function(t){if(!e)return t(!0);if(e===`continue`)return t(!1);e.then&&e.then(function(e){t(e!==`continue`)})})},n.doBeatCallback=function(e){if(n.beatCallback){for(var t=n.currentEvent;t<n.noteTimings.length&&n.noteTimings[t].left===null;)t++;var r,a;if(t<n.noteTimings.length){for(r=n.noteTimings[t].milliseconds,t=Math.max(0,n.currentEvent-1);t>=0&&n.noteTimings[t].left===null;)t--;a=n.noteTimings[t]}var o={},c={};if(a){o.top=a.top,o.height=a.height;var l=Math.max(0,e-n.startTime-a.milliseconds),u=r-a.milliseconds,d=a.endX-a.left,f=u?l*d/u:0;o.left=a.left+f,n.currentEvent===0&&a.milliseconds>e-n.startTime&&(o.left=void 0),c={timestamp:e,startTime:n.startTime,ev:a,endMs:r,offMs:l,offPx:f,gapMs:u,gapPx:d}}else c={timestamp:e,startTime:n.startTime};var p=n.startTime;if(n.beatCallback(n.currentBeat/n.beatSubdivisions,n.totalBeats/n.beatSubdivisions,n.lastMoment,o,c),p!==n.startTime)return e-n.startTime;n.currentBeat++}return null};var a=60;n.animationJogger=function(){n.isRunning&&(n.doTiming(performance.now()),n.joggerTimer=setTimeout(n.animationJogger,a))},n.start=function(e,t){if(n.isRunning=!0,n.isPaused&&(n.isPaused=!1,e===void 0&&(n.justUnpaused=!0)),e)n.setProgress(e,t);else if(e===0)n.reset();else if(n.pausedPercent!==null){var r=performance.now();n.currentTime=n.lastMoment*n.pausedPercent,n.startTime=r-n.currentTime,n.pausedPercent=null,n.reportNext=!0}requestAnimationFrame(n.doTiming),n.joggerTimer=setTimeout(n.animationJogger,a)},n.pause=function(){n.isPaused=!0,n.pausedPercent=(performance.now()-n.startTime)/n.lastMoment,n.isRunning=!1,n.joggerTimer&&=(clearTimeout(n.joggerTimer),null)},n.currentMillisecond=function(){return n.currentTime},n.reset=function(){n.currentBeat=0,n.currentEvent=0,n.currentLine=0,n.startTime=null,n.pausedPercent=null},n.stop=function(){n.pause(),n.reset()},n.setProgress=function(e,t){var r;switch(t){case`seconds`:n.currentTime=e*1e3,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),r=n.currentTime/n.lastMoment;break;case`beats`:n.currentTime=e*n.millisecondsPerBeat*n.beatSubdivisions,n.currentTime<0&&(n.currentTime=0),n.currentTime>n.lastMoment&&(n.currentTime=n.lastMoment),r=n.currentTime/n.lastMoment;break;default:r=e,r<0&&(r=0),r>1&&(r=1),n.currentTime=n.lastMoment*r;break}for(n.isRunning||(n.pausedPercent=r),n.startTime=performance.now()-n.currentTime,n.currentEvent,n.currentEvent=0;n.noteTimings.length>n.currentEvent&&n.noteTimings[n.currentEvent].milliseconds<n.currentTime;)n.currentEvent++;if(n.lineEndCallback)for(n.currentLine=0;n.lineEndTimings.length>n.currentLine&&n.lineEndTimings[n.currentLine].milliseconds+n.lineEndAnticipation<n.currentTime;)n.currentLine++;var o=n.currentBeat;n.currentBeat=Math.floor(n.currentTime/n.millisecondsPerBeat),n.beatCallback&&o!==n.currentBeat&&n.doBeatCallback(n.startTime+n.currentTime),n.eventCallback&&n.currentEvent>=0&&n.noteTimings[n.currentEvent].type===`event`&&n.eventCallback(n.noteTimings[n.currentEvent]),n.lineEndCallback&&n.lineEndCallback(n.lineEndTimings[n.currentLine],n.noteTimings[n.currentEvent],{line:n.currentLine,endTimings:n.lineEndTimings}),n.joggerTimer=setTimeout(n.animationJogger,a)}};function getLineEndTimings(e,t){for(var n=[],r=null,a=0;a<e.length;a++){var o=e[a];o.type!==`end`&&o.top!==r&&(n.push({measureNumber:o.measureNumber,milliseconds:o.milliseconds-t,top:o.top,bottom:o.top+o.height}),r=o.top)}return n}t.exports=TimingCallbacks})),l=e.n(((e,t)=>{var n=c(),r={};(function(){"use strict";var e,t;r.startAnimation=function(r,a,o){e&&=(e.stop(),void 0),o.showCursor&&(t=r.querySelector(`.abcjs-cursor`),t||(t=document.createElement(`DIV`),t.className=`abcjs-cursor cursor`,t.style.position=`absolute`,r.appendChild(t),r.style.position=`relative`));function hideMeasures(e){for(var t=0;t<e.length;t++){var n=e[t];n.classList.contains(`abcjs-bar`)||(n.style.display=`none`)}}var c;function disappearMeasuresAfter(e){c&&hideMeasures(r.querySelectorAll(c)),c=e}function disappearMeasuresBefore(e){hideMeasures(r.querySelectorAll(e))}function measureCallback(e){o.hideCurrentMeasure?disappearMeasuresBefore(e):o.hideFinishedMeasures&&disappearMeasuresAfter(e)}function getLineAndMeasure(e){return`.abcjs-l`+e.line+`.abcjs-m`+e.measureNumber}function setCursor(n){if(n){if(n.measureStart){var r=getLineAndMeasure(n);r&&measureCallback(r)}t&&(t.style.left=n.left+`px`,t.style.top=n.top+`px`,t.style.width=n.width+`px`,t.style.height=n.height+`px`)}else e.stop(),e=void 0}e=new n(a,{qpm:o.bpm,eventCallback:setCursor}),e.start()},r.pauseAnimation=function(t){e&&(t?e.pause():e.start())},r.stopAnimation=function(){e&&=(e.stop(),void 0)}})(),t.exports=r})),u=e.n(((e,t)=>{var n={};n.cloneArray=function(e){for(var t=[],n=0;n<e.length;n++)t.push(Object.assign({},e[n]));return t},n.cloneHashOfHash=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=Object.assign({},e[n]));return t},n.cloneHashOfArrayOfHash=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=n.cloneArray(e[r]));return t},n.strip=function(e){return e.replace(/^\s+/,``).replace(/\s+$/,``)},n.startsWith=function(e,t){return e.indexOf(t)===0},n.endsWith=function(e,t){var n=e.length-t.length;return n>=0&&e.lastIndexOf(t)===n},n.last=function(e){return e.length===0?null:e[e.length-1]},t.exports=n})),d=e.n(((e,t)=>{var n=u(),r={};(function(){"use strict";var e,t,a,o,c;r.initialize=function(n,r,l,u,d){e=n,t=r,a=l,o=u,c=d,initializeFonts()};function initializeFonts(){a.annotationfont={face:`Helvetica`,size:12,weight:`normal`,style:`normal`,decoration:`none`},a.gchordfont={face:`Helvetica`,size:12,weight:`normal`,style:`normal`,decoration:`none`},a.historyfont={face:`"Times New Roman"`,size:16,weight:`normal`,style:`normal`,decoration:`none`},a.infofont={face:`"Times New Roman"`,size:14,weight:`normal`,style:`italic`,decoration:`none`},a.measurefont={face:`"Times New Roman"`,size:14,weight:`normal`,style:`italic`,decoration:`none`},a.partsfont={face:`"Times New Roman"`,size:15,weight:`normal`,style:`normal`,decoration:`none`},a.repeatfont={face:`"Times New Roman"`,size:13,weight:`normal`,style:`normal`,decoration:`none`},a.textfont={face:`"Times New Roman"`,size:16,weight:`normal`,style:`normal`,decoration:`none`},a.tripletfont={face:`Times`,size:11,weight:`normal`,style:`italic`,decoration:`none`},a.vocalfont={face:`"Times New Roman"`,size:13,weight:`bold`,style:`normal`,decoration:`none`},a.wordsfont={face:`"Times New Roman"`,size:16,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.composerfont={face:`"Times New Roman"`,size:14,weight:`normal`,style:`italic`,decoration:`none`},o.formatting.subtitlefont={face:`"Times New Roman"`,size:16,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.tempofont={face:`"Times New Roman"`,size:15,weight:`bold`,style:`normal`,decoration:`none`},o.formatting.titlefont={face:`"Times New Roman"`,size:20,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.footerfont={face:`"Times New Roman"`,size:12,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.headerfont={face:`"Times New Roman"`,size:12,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.voicefont={face:`"Times New Roman"`,size:13,weight:`bold`,style:`normal`,decoration:`none`},o.formatting.tablabelfont={face:`"Trebuchet MS"`,size:16,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.tabnumberfont={face:`"Arial"`,size:11,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.tabgracefont={face:`"Arial"`,size:8,weight:`normal`,style:`normal`,decoration:`none`},o.formatting.annotationfont=a.annotationfont,o.formatting.gchordfont=a.gchordfont,o.formatting.historyfont=a.historyfont,o.formatting.infofont=a.infofont,o.formatting.measurefont=a.measurefont,o.formatting.partsfont=a.partsfont,o.formatting.repeatfont=a.repeatfont,o.formatting.textfont=a.textfont,o.formatting.tripletfont=a.tripletfont,o.formatting.vocalfont=a.vocalfont,o.formatting.wordsfont=a.wordsfont}var l={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},fontTranslation=function(e){switch(e){case`Arial-Italic`:return{face:`Arial`,weight:`normal`,style:`italic`,decoration:`none`};case`Arial-Bold`:return{face:`Arial`,weight:`bold`,style:`normal`,decoration:`none`};case`Bookman-Demi`:return{face:`Bookman,serif`,weight:`bold`,style:`normal`,decoration:`none`};case`Bookman-DemiItalic`:return{face:`Bookman,serif`,weight:`bold`,style:`italic`,decoration:`none`};case`Bookman-Light`:return{face:`Bookman,serif`,weight:`normal`,style:`normal`,decoration:`none`};case`Bookman-LightItalic`:return{face:`Bookman,serif`,weight:`normal`,style:`italic`,decoration:`none`};case`Courier`:return{face:`"Courier New"`,weight:`normal`,style:`normal`,decoration:`none`};case`Courier-Oblique`:return{face:`"Courier New"`,weight:`normal`,style:`italic`,decoration:`none`};case`Courier-Bold`:return{face:`"Courier New"`,weight:`bold`,style:`normal`,decoration:`none`};case`Courier-BoldOblique`:return{face:`"Courier New"`,weight:`bold`,style:`italic`,decoration:`none`};case`AvantGarde-Book`:return{face:`AvantGarde,Arial`,weight:`normal`,style:`normal`,decoration:`none`};case`AvantGarde-BookOblique`:return{face:`AvantGarde,Arial`,weight:`normal`,style:`italic`,decoration:`none`};case`AvantGarde-Demi`:case`Avant-Garde-Demi`:return{face:`AvantGarde,Arial`,weight:`bold`,style:`normal`,decoration:`none`};case`AvantGarde-DemiOblique`:return{face:`AvantGarde,Arial`,weight:`bold`,style:`italic`,decoration:`none`};case`Helvetica-Oblique`:return{face:`Helvetica`,weight:`normal`,style:`italic`,decoration:`none`};case`Helvetica-Bold`:return{face:`Helvetica`,weight:`bold`,style:`normal`,decoration:`none`};case`Helvetica-BoldOblique`:return{face:`Helvetica`,weight:`bold`,style:`italic`,decoration:`none`};case`Helvetica-Narrow`:return{face:`"Helvetica Narrow",Helvetica`,weight:`normal`,style:`normal`,decoration:`none`};case`Helvetica-Narrow-Oblique`:return{face:`"Helvetica Narrow",Helvetica`,weight:`normal`,style:`italic`,decoration:`none`};case`Helvetica-Narrow-Bold`:return{face:`"Helvetica Narrow",Helvetica`,weight:`bold`,style:`normal`,decoration:`none`};case`Helvetica-Narrow-BoldOblique`:return{face:`"Helvetica Narrow",Helvetica`,weight:`bold`,style:`italic`,decoration:`none`};case`Palatino-Roman`:return{face:`Palatino`,weight:`normal`,style:`normal`,decoration:`none`};case`Palatino-Italic`:return{face:`Palatino`,weight:`normal`,style:`italic`,decoration:`none`};case`Palatino-Bold`:return{face:`Palatino`,weight:`bold`,style:`normal`,decoration:`none`};case`Palatino-BoldItalic`:return{face:`Palatino`,weight:`bold`,style:`italic`,decoration:`none`};case`NewCenturySchlbk-Roman`:return{face:`"New Century",serif`,weight:`normal`,style:`normal`,decoration:`none`};case`NewCenturySchlbk-Italic`:return{face:`"New Century",serif`,weight:`normal`,style:`italic`,decoration:`none`};case`NewCenturySchlbk-Bold`:return{face:`"New Century",serif`,weight:`bold`,style:`normal`,decoration:`none`};case`NewCenturySchlbk-BoldItalic`:return{face:`"New Century",serif`,weight:`bold`,style:`italic`,decoration:`none`};case`Times`:case`Times-Roman`:case`Times-Narrow`:case`Times-Courier`:case`Times-New-Roman`:return{face:`"Times New Roman"`,weight:`normal`,style:`normal`,decoration:`none`};case`Times-Italic`:case`Times-Italics`:return{face:`"Times New Roman"`,weight:`normal`,style:`italic`,decoration:`none`};case`Times-Bold`:return{face:`"Times New Roman"`,weight:`bold`,style:`normal`,decoration:`none`};case`Times-BoldItalic`:return{face:`"Times New Roman"`,weight:`bold`,style:`italic`,decoration:`none`};case`ZapfChancery-MediumItalic`:return{face:`"Zapf Chancery",cursive,serif`,weight:`normal`,style:`normal`,decoration:`none`};default:return null}},getFontParameter=function(e,n,r,a,o){function processNumberOnly(){var c=parseInt(e[0].token);return e.shift(),n?e.length===0?{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:c}:e.length===1&&e[0].token===`box`&&l[o]?{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:c,box:!0}:(t(`Extra parameters in font definition.`,r,a),{face:n.face,weight:n.weight,style:n.style,decoration:n.decoration,size:c}):(t(`Can't set just the size of the font since there is no default value.`,r,a),{face:`"Times New Roman"`,weight:`normal`,style:`normal`,decoration:`none`,size:c})}if(e[0].token===`*`){if(e.shift(),e[0].type===`number`)return processNumberOnly();t(`Expected font size number after *.`,r,a)}if(e[0].type===`number`)return processNumberOnly();for(var c=[],u,d=`normal`,f=`normal`,p=`none`,m=!1,h=`face`,g=!1;e.length;){var _=e.shift(),y=_.token.toLowerCase();switch(h){case`face`:g||y!==`utf`&&_.type!==`number`&&y!==`bold`&&y!==`italic`&&y!==`underline`&&y!==`box`?c.length>0&&_.token===`-`?(g=!0,c[c.length-1]=c[c.length-1]+_.token):g?(g=!1,c[c.length-1]=c[c.length-1]+_.token):c.push(_.token):_.type===`number`?(u?t(`Font size specified twice in font definition.`,r,a):u=_.token,h=`modifier`):y===`bold`?d=`bold`:y===`italic`?f=`italic`:y===`underline`?p=`underline`:y===`box`?(l[o]?m=!0:t(`This font style doesn't support "box"`,r,a),h=`finished`):y===`utf`?(_=e.shift(),h=`size`):t(`Unknown parameter `+_.token+` in font definition.`,r,a);break;case`size`:_.type===`number`?u?t(`Font size specified twice in font definition.`,r,a):u=_.token:t(`Expected font size in font definition.`,r,a),h=`modifier`;break;case`modifier`:y===`bold`?d=`bold`:y===`italic`?f=`italic`:y===`underline`?p=`underline`:y===`box`?(l[o]?m=!0:t(`This font style doesn't support "box"`,r,a),h=`finished`):t(`Unknown parameter `+_.token+` in font definition.`,r,a);break;case`finished`:t(`Extra characters found after "box" in font definition.`,r,a);break}}u===void 0?n?u=n.size:(t(`Must specify the size of the font since there is no default value.`,r,a),u=12):u=parseFloat(u),c=c.join(` `),c===``&&(n?c=n.face:(t(`Must specify the name of the font since there is no default value.`,r,a),c=`sans-serif`));var b=fontTranslation(c),x={};return b?(x.face=b.face,x.weight=b.weight,x.style=b.style,x.decoration=b.decoration,x.size=u,m&&(x.box=!0),x):(x.face=c,x.weight=d,x.style=f,x.decoration=p,x.size=u,m&&(x.box=!0),x)},getChangingFont=function(e,t,n){return t.length===0?`Directive "`+e+`" requires a font as a parameter.`:(a[e]=getFontParameter(t,a[e],n,0,e),a.is_in_header&&(o.formatting[e]=a[e]),null)},getGlobalFont=function(e,t,n){return t.length===0?`Directive "`+e+`" requires a font as a parameter.`:(o.formatting[e]=getFontParameter(t,o.formatting[e],n,0,e),null)},setScale=function(e,t){var n=``;t.forEach(function(e){n+=e.token});var r=parseFloat(n);if(isNaN(r)||r===0)return`Directive "`+e+`" requires a number as a parameter.`;o.formatting.scale=r},u=`acoustic-bass-drum.bass-drum-1.side-stick.acoustic-snare.hand-clap.electric-snare.low-floor-tom.closed-hi-hat.high-floor-tom.pedal-hi-hat.low-tom.open-hi-hat.low-mid-tom.hi-mid-tom.crash-cymbal-1.high-tom.ride-cymbal-1.chinese-cymbal.ride-bell.tambourine.splash-cymbal.cowbell.crash-cymbal-2.vibraslap.ride-cymbal-2.hi-bongo.low-bongo.mute-hi-conga.open-hi-conga.low-conga.high-timbale.low-timbale.high-agogo.low-agogo.cabasa.maracas.short-whistle.long-whistle.short-guiro.long-guiro.claves.hi-wood-block.low-wood-block.mute-cuica.open-cuica.mute-triangle.open-triangle`.split(`.`),interpretPercMap=function(e){var t=e.split(/\s+/);if(t.length!==2&&t.length!==3)return{error:`Expected parameters "abc-note", "drum-sound", and optionally "note-head"`};var n=t[0],r=parseInt(t[1],10);if((isNaN(r)||r<35||r>81)&&t[1]&&(r=u.indexOf(t[1].toLowerCase())+35),isNaN(r)||r<35||r>81)return{error:`Expected drum name, received "`+t[1]+`"`};var a={sound:r};return t.length===3&&(a.noteHead=t[2]),{key:n,value:a}},getRequiredMeasurement=function(t,n){var r=e.getMeasurement(n);return r.used===0||n.length!==0?{error:`Directive "`+t+`" requires a measurement as a parameter.`}:r.value},oneParameterMeasurement=function(t,n){var r=e.getMeasurement(n);return r.used===0||n.length!==0?`Directive "`+t+`" requires a measurement as a parameter.`:(o.formatting[t]=r.value,null)},addMultilineVar=function(e,t,n,r,o){if(n.length!==1||n[0].type!==`number`)return`Directive "`+t+`" requires a number as a parameter.`;var c=n[0].intt;return r!==void 0&&c<r?`Directive "`+t+`" requires a number greater than or equal to `+r+` as a parameter.`:o!==void 0&&c>o?`Directive "`+t+`" requires a number less than or equal to `+o+` as a parameter.`:(a[e]=c,null)},addMultilineVarBool=function(e,t,n){if(n.length===1&&(n[0].token===`true`||n[0].token===`false`))return a[e]=n[0].token===`true`,null;var r=addMultilineVar(e,t,n,0,1);return r===null?(a[e]=a[e]===1,null):r},addMultilineVarOneParamChoice=function(e,t,n,r){if(n.length!==1)return`Directive "`+t+`" requires one of [ `+r.join(`, `)+` ] as a parameter.`;for(var o=n[0].token,c=!1,l=0;!c&&l<r.length;l++)r[l]===o&&(c=!0);return c?(a[e]=o,null):`Directive "`+t+`" requires one of [ `+r.join(`, `)+` ] as a parameter.`},d=[`nobarlines`,`barlines`,`beataccents`,`nobeataccents`,`droneon`,`droneoff`,`drumon`,`drumoff`,`fermatafixed`,`fermataproportional`,`gchordon`,`gchordoff`,`controlcombo`,`temperamentnormal`,`noportamento`],f=[`gchord`,`ptstress`,`beatstring`],p=[`bassvol`,`chordvol`,`c`,`channel`,`beatmod`,`deltaloudness`,`drumbars`,`gracedivider`,`makechordchannels`,`randomchordattack`,`chordattack`,`stressmodel`,`transpose`,`rtranspose`,`vol`,`volinc`,`gchordbars`],m=[`program`],h=[`ratio`,`snt`,`bendvelocity`,`pitchbend`,`control`,`temperamentlinear`],g=[`beat`],_=[`drone`],y=[`portamento`],b=[`expand`,`grace`,`trim`],x=[`drum`,`chordname`],S=[`bassprog`,`chordprog`],parseMidiCommand=function(e,n,r){var a=e.shift().token,o=[];if(d.indexOf(a)>=0)e.length!==0&&t(`Unexpected parameter in MIDI `+a,r,0);else if(f.indexOf(a)>=0)e.length===1?o.push(e[0].token):t(`Expected one parameter in MIDI `+a,r,0);else if(p.indexOf(a)>=0)e.length===1?e[0].type===`number`?o.push(e[0].intt):t(`Expected one integer parameter in MIDI `+a,r,0):t(`Expected one parameter in MIDI `+a,r,0);else if(m.indexOf(a)>=0)e.length!==1&&e.length!==2?t(`Expected one or two parameters in MIDI `+a,r,0):e[0].type===`number`?e.length===2&&e[1].type!==`number`?t(`Expected integer parameter in MIDI `+a,r,0):(o.push(e[0].intt),e.length===2&&o.push(e[1].intt)):t(`Expected integer parameter in MIDI `+a,r,0);else if(h.indexOf(a)>=0)e.length===2?e[0].type!==`number`||e[1].type!==`number`?t(`Expected two integer parameters in MIDI `+a,r,0):(o.push(e[0].intt),o.push(e[1].intt)):t(`Expected two parameters in MIDI `+a,r,0);else if(y.indexOf(a)>=0)e.length===2?e[0].type!==`alpha`||e[1].type!==`number`?t(`Expected one string and one integer parameters in MIDI `+a,r,0):(o.push(e[0].token),o.push(e[1].intt)):t(`Expected two parameters in MIDI `+a,r,0);else if(a===`drummap`)e.length===2&&e[0].type===`alpha`&&e[1].type===`number`?(n.formatting||={},n.formatting.midi||(n.formatting.midi={}),n.formatting.midi.drummap||(n.formatting.midi.drummap={}),n.formatting.midi.drummap[e[0].token]=e[1].intt,o=n.formatting.midi.drummap):e.length===3&&e[0].type===`punct`&&e[1].type===`alpha`&&e[2].type===`number`?(n.formatting||={},n.formatting.midi||(n.formatting.midi={}),n.formatting.midi.drummap||(n.formatting.midi.drummap={}),n.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,o=n.formatting.midi.drummap):t(`Expected one note name and one integer parameter in MIDI `+a,r,0);else if(b.indexOf(a)>=0)e.length===3?e[0].type!==`number`||e[1].token!==`/`||e[2].type!==`number`?t(`Expected fraction parameter in MIDI `+a,r,0):(o.push(e[0].intt),o.push(e[2].intt)):t(`Expected fraction parameter in MIDI `+a,r,0);else if(g.indexOf(a)>=0)e.length===4?e[0].type!==`number`||e[1].type!==`number`||e[2].type!==`number`||e[3].type!==`number`?t(`Expected four integer parameters in MIDI `+a,r,0):(o.push(e[0].intt),o.push(e[1].intt),o.push(e[2].intt),o.push(e[3].intt)):t(`Expected four parameters in MIDI `+a,r,0);else if(_.indexOf(a)>=0)e.length===5?e[0].type!==`number`||e[1].type!==`number`||e[2].type!==`number`||e[3].type!==`number`||e[4].type!==`number`?t(`Expected five integer parameters in MIDI `+a,r,0):(o.push(e[0].intt),o.push(e[1].intt),o.push(e[2].intt),o.push(e[3].intt),o.push(e[4].intt)):t(`Expected five parameters in MIDI `+a,r,0);else if(m.indexOf(a)>=0)e.length!==1||e.length!==4?t(`Expected one or two parameters in MIDI `+a,r,0):e[0].type===`number`?e.length===4?(e[1].token!==`octave`&&t(`Expected octave parameter in MIDI `+a,r,0),e[2].token!==`=`&&t(`Expected octave parameter in MIDI `+a,r,0),e[3].type!==`number`&&t(`Expected integer parameter for octave in MIDI `+a,r,0)):(o.push(e[0].intt),e.length===4&&o.push(e[3].intt)):t(`Expected integer parameter in MIDI `+a,r,0);else if(x.indexOf(a)>=0)if(e.length<2)t(`Expected string parameter and at least one integer parameter in MIDI `+a,r,0);else if(e[0].type!==`alpha`)t(`Expected string parameter and at least one integer parameter in MIDI `+a,r,0);else{var l=e.shift();for(o.push(l.token);e.length>0;)l=e.shift(),l.type!==`number`&&t(`Expected integer parameter in MIDI `+a,r,0),o.push(l.intt)}else if(S.indexOf(a)>=0){if(e.length!==1&&e.length!==2)t(`Expected one or two parameters in MIDI `+a,r,0);else if(e[0].type!==`number`)t(`Expected integer parameter in MIDI `+a,r,0);else if(e.length===2&&e[1].type!==`alpha`)t(`Expected alpha parameter in MIDI `+a,r,0);else if(o.push(e[0].intt),e.length===2){var u=e[1].token;u.indexOf(`octave=`)==-1?t(`Expected octave= in MIDI`+a):(u=u.replace(`octave=`,``),u=parseInt(u),isNaN(u)?t(`Expected octave value in MIDI`+a):(u<-1&&(t(`Expected octave= in MIDI `+a+` to be >= -1 (recv:`+u+`)`),u=-1),u>3&&(t(`Expected octave= in MIDI `+a+` to be <= 3 (recv:`+u+`)`),u=3),o.push(u)))}}c.hasBeginMusic()?c.appendElement(`midi`,-1,-1,{cmd:a,params:o}):(n.formatting.midi===void 0&&(n.formatting.midi={}),n.formatting.midi[a]=o)};r.parseFontChangeLine=function(e){e=e.replace(/\$\$/g,``);var t=e.split(`$`);if(t.length>1&&a.setfont){var n=[];t[0]!==``&&n.push({text:t[0]});for(var r=1;r<t.length;r++)if(t[r][0]===`0`)n.push({text:t[r].substring(1).replace(/\x03/g,`$$`)});else{var o=parseInt(t[r][0],10);a.setfont[o]?n.push({font:a.setfont[o],text:t[r].substring(1).replace(/\x03/g,`$$`)}):n[n.length-1].text+=`$`+t[r].replace(/\x03/g,`$$`)}return n}return e.replace(/\x03/g,`$$`)};var C=[`auto`,`above`,`below`,`hidden`];r.addDirective=function(l){var u=e.tokenize(l,0,l.length);if(u.length===0||u[0].type!==`alpha`)return null;var d=l.substring(l.indexOf(u[0].token)+u[0].token.length);d=e.stripComment(d);var f=u.shift().token.toLowerCase(),p=``,m;switch(f){case`bagpipes`:o.formatting.bagpipes=!0;break;case`flatbeams`:o.formatting.flatbeams=!0;break;case`jazzchords`:o.formatting.jazzchords=!0;break;case`accentAbove`:o.formatting.accentAbove=!0;break;case`germanAlphabet`:o.formatting.germanAlphabet=!0;break;case`landscape`:a.landscape=!0;break;case`papersize`:a.papersize=d;break;case`graceslurs`:if(u.length!==1)return`Directive graceslurs requires one parameter: 0 or 1`;if(u[0].token===`0`||u[0].token===`false`)o.formatting.graceSlurs=!1;else if(u[0].token===`1`||u[0].token===`true`)o.formatting.graceSlurs=!0;else return`Directive graceslurs requires one parameter: 0 or 1 (received `+u[0].token+`)`;break;case`lineThickness`:var h=parseStretchLast(u);if(h.value!==void 0&&(o.formatting.lineThickness=h.value),h.error)return h.error;break;case`stretchlast`:var g=parseStretchLast(u);if(g.value!==void 0&&(o.formatting.stretchlast=g.value),g.error)return g.error;break;case`titlecaps`:a.titlecaps=!0;break;case`titleleft`:o.formatting.titleleft=!0;break;case`measurebox`:o.formatting.measurebox=!0;break;case`vocal`:return addMultilineVarOneParamChoice(`vocalPosition`,f,u,C);case`dynamic`:return addMultilineVarOneParamChoice(`dynamicPosition`,f,u,C);case`gchord`:return addMultilineVarOneParamChoice(`chordPosition`,f,u,C);case`ornament`:return addMultilineVarOneParamChoice(`ornamentPosition`,f,u,C);case`volume`:return addMultilineVarOneParamChoice(`volumePosition`,f,u,C);case`botmargin`:case`botspace`:case`composerspace`:case`indent`:case`leftmargin`:case`linesep`:case`musicspace`:case`partsspace`:case`pageheight`:case`pagewidth`:case`rightmargin`:case`stafftopmargin`:case`staffsep`:case`staffwidth`:case`subtitlespace`:case`sysstaffsep`:case`systemsep`:case`textspace`:case`titlespace`:case`topmargin`:case`topspace`:case`vocalspace`:case`wordsspace`:return oneParameterMeasurement(f,u);case`voicescale`:if(u.length!==1||u[0].type!==`number`)return`voicescale requires one float as a parameter`;var _=u.shift();return a.currentVoice&&(a.currentVoice.scale=_.floatt,c.changeVoiceScale(a.currentVoice.scale)),null;case`voicecolor`:if(u.length!==1)return`voicecolor requires one string as a parameter`;var y=u.shift();return a.currentVoice&&(a.currentVoice.color=y.token,c.changeVoiceColor(a.currentVoice.color)),null;case`vskip`:var b=Math.round(getRequiredMeasurement(f,u));return b.error?b.error:(c.addSpacing(b),null);case`scale`:setScale(f,u);break;case`sep`:if(u.length===0)c.addSeparator(14,14,85,{startChar:a.iChar,endChar:a.iChar+5});else{var x=e.getMeasurement(u);if(x.used===0)return`Directive "`+f+`" requires 3 numbers: space above, space below, length of line`;var S=x.value;if(x=e.getMeasurement(u),x.used===0)return`Directive "`+f+`" requires 3 numbers: space above, space below, length of line`;var w=x.value;if(x=e.getMeasurement(u),x.used===0||u.length!==0)return`Directive "`+f+`" requires 3 numbers: space above, space below, length of line`;var T=x.value;c.addSeparator(S,w,T,{startChar:a.iChar,endChar:a.iChar+d.length})}break;case`barsperstaff`:if(p=addMultilineVar(`barsperstaff`,f,u),p!==null)return p;break;case`staffnonote`:if(u.length!==1)return`Directive staffnonote requires one parameter: 0 or 1`;if(u[0].token===`0`)a.staffnonote=!0;else if(u[0].token===`1`)a.staffnonote=!1;else return`Directive staffnonote requires one parameter: 0 or 1 (received `+u[0].token+`)`;break;case`printtempo`:if(p=addMultilineVarBool(`printTempo`,f,u),p!==null)return p;break;case`partsbox`:if(p=addMultilineVarBool(`partsBox`,f,u),p!==null)return p;a.partsfont.box=a.partsBox;break;case`freegchord`:if(p=addMultilineVarBool(`freegchord`,f,u),p!==null)return p;break;case`measurenb`:case`barnumbers`:if(p=addMultilineVar(`barNumbers`,f,u),p!==null)return p;break;case`setbarnb`:if(u.length!==1||u[0].type!==`number`)return`Directive setbarnb requires a number as a parameter.`;a.currBarNumber=c.setBarNumberImmediate(u[0].intt);break;case`begintext`:var E=``;for(m=e.nextLine();m&&m.indexOf(`%%endtext`)!==0;)n.startsWith(m,`%%`)?E+=m.substring(2)+`
|
|
2
|
+
`:E+=m+`
|
|
3
|
+
`,m=e.nextLine();c.addText(E,{startChar:a.iChar,endChar:a.iChar+E.length+7});break;case`continueall`:a.continueall=!0;break;case`beginps`:for(m=e.nextLine();m&&m.indexOf(`%%endps`)!==0;)e.nextLine();t(`Postscript ignored`,l,0);break;case`deco`:d.length>0&&a.ignoredDecorations.push(d.substring(0,d.indexOf(` `))),t(`Decoration redefinition ignored`,l,0);break;case`text`:var D=e.translateString(d);c.addText(r.parseFontChangeLine(D),{startChar:a.iChar,endChar:a.iChar+d.length+7});break;case`center`:var O=e.translateString(d);c.addCentered(r.parseFontChangeLine(O));break;case`font`:break;case`setfont`:var k=e.tokenize(d,0,d.length);if(k.length>=4&&k[0].token===`-`&&k[1].type===`number`){var A=parseInt(k[1].token);A>=1&&A<=9&&(a.setfont||=[],k.shift(),k.shift(),a.setfont[A]=getFontParameter(k,a.setfont[A],l,0,`setfont`))}break;case`gchordfont`:case`partsfont`:case`tripletfont`:case`vocalfont`:case`textfont`:case`annotationfont`:case`historyfont`:case`infofont`:case`measurefont`:case`repeatfont`:case`wordsfont`:return getChangingFont(f,u,l);case`composerfont`:case`subtitlefont`:case`tempofont`:case`titlefont`:case`voicefont`:case`footerfont`:case`headerfont`:return getGlobalFont(f,u,l);case`barlabelfont`:case`barnumberfont`:case`barnumfont`:return getChangingFont(`measurefont`,u,l);case`staves`:case`score`:a.score_is_present=!0;for(var addVoice=function(e,t,r,o,c){(t||a.staves.length===0)&&a.staves.push({index:a.staves.length,numVoices:0});var l=n.last(a.staves);r!==void 0&&l.bracket===void 0&&(l.bracket=r),o!==void 0&&l.brace===void 0&&(l.brace=o),c&&(l.connectBarLines=`end`),a.voices[e]===void 0&&(a.voices[e]={staffNum:l.index,index:l.numVoices},l.numVoices++)},j=!1,M=!1,N=!1,P=!1,F=!1,I=!1,L=!1,R,addContinueBar=function(){if(L=!0,R){var e=`start`;R.staffNum>0&&(a.staves[R.staffNum-1].connectBarLines===`start`||a.staves[R.staffNum-1].connectBarLines===`continue`)&&(e=`continue`),a.staves[R.staffNum].connectBarLines=e}};u.length;){var z=u.shift();switch(z.token){case`(`:j?t(`Can't nest parenthesis in %%score`,l,z.start):(j=!0,P=!0);break;case`)`:!j||P?t(`Unexpected close parenthesis in %%score`,l,z.start):j=!1;break;case`[`:M?t(`Can't nest brackets in %%score`,l,z.start):(M=!0,F=!0);break;case`]`:!M||F?t(`Unexpected close bracket in %%score`,l,z.start):(M=!1,a.staves[R.staffNum].bracket=`end`);break;case`{`:N?t(`Can't nest braces in %%score`,l,z.start):(N=!0,I=!0);break;case`}`:!N||I?t(`Unexpected close brace in %%score`,l,z.start):(N=!1,a.staves[R.staffNum].brace=`end`);break;case`|`:addContinueBar();break;default:for(var B=``;(z.type===`alpha`||z.type===`number`)&&(B+=z.token,z.continueId);)z=u.shift();addVoice(B,!j||P,F?`start`:M?`continue`:void 0,I?`start`:N?`continue`:void 0,L),P=!1,F=!1,I=!1,L=!1,R=a.voices[B],f===`staves`&&addContinueBar();break}}break;case`newpage`:var V=e.getInt(d);c.addNewPage(V.digits===0?-1:V.value);break;case`abc`:var H=d.split(` `);switch(H[0]){case`-copyright`:case`-creator`:case`-edited-by`:case`-version`:case`-charset`:var ee=H.shift();c.addMetaText(f+ee,H.join(` `),{startChar:a.iChar,endChar:a.iChar+d.length+5});break;default:return`Unknown directive: `+f+H[0]}break;case`header`:case`footer`:var U=e.getMeat(d,0,d.length);U=d.substring(U.start,U.end),U[0]===`"`&&U[U.length-1]===`"`&&(U=U.substring(1,U.length-1));var W=U.split(` `),G={};G=W.length===1?{left:``,center:W[0],right:``}:W.length===2?{left:W[0],center:W[1],right:``}:{left:W[0],center:W[1],right:W[2]},W.length>3&&t(`Too many tabs in `+f+`: `+W.length+` found.`,d,0),c.addMetaTextObj(f,G,{startChar:a.iChar,endChar:a.iChar+l.length});break;case`midi`:var K=e.tokenize(d,0,d.length,!0);K.length>0&&K[0].token===`=`&&K.shift(),K.length===0?t(`Expected midi command`,d,0):parseMidiCommand(K,o,d);break;case`percmap`:var q=interpretPercMap(d);q.error?t(q.error,l,8):(o.formatting.percmap||(o.formatting.percmap={}),o.formatting.percmap[q.key]=q.value);break;case`map`:case`playtempo`:case`auquality`:case`continuous`:case`nobarcheck`:o.formatting[f]=d;break;default:return`Unknown directive: `+f}return null},r.globalFormatting=function(n){for(var r in n)if(n.hasOwnProperty(r)){var c=``+n[r],l=e.tokenize(c,0,c.length),u;switch(r){case`titlefont`:case`gchordfont`:case`composerfont`:case`footerfont`:case`headerfont`:case`historyfont`:case`infofont`:case`measurefont`:case`partsfont`:case`repeatfont`:case`subtitlefont`:case`tempofont`:case`textfont`:case`voicefont`:case`tripletfont`:case`vocalfont`:case`wordsfont`:case`annotationfont`:case`tablabelfont`:case`tabnumberfont`:case`tabgracefont`:getChangingFont(r,l,c);break;case`scale`:setScale(r,l);break;case`partsbox`:u=addMultilineVarBool(`partsBox`,r,l),u!==null&&t(u),a.partsfont.box=a.partsBox;break;case`freegchord`:u=addMultilineVarBool(`freegchord`,r,l),u!==null&&t(u);break;case`fontboxpadding`:(l.length!==1||l[0].type!==`number`)&&t(`Directive "`+r+`" requires a number as a parameter.`),o.formatting.fontboxpadding=l[0].floatt;break;case`stafftopmargin`:(l.length!==1||l[0].type!==`number`)&&t(`Directive "`+r+`" requires a number as a parameter.`),o.formatting.stafftopmargin=l[0].floatt;break;case`stretchlast`:var d=parseStretchLast(l);if(d.value!==void 0&&(o.formatting.stretchlast=d.value),d.error)return d.error;break;default:t(`Formatting directive unrecognized: `,r,0)}}};function parseStretchLast(e){if(e.length===0)return{value:1};if(e.length===1){if(e[0].type===`number`){if(e[0].floatt>=0||e[0].floatt<=1)return{value:e[0].floatt}}else if(e[0].token===`false`)return{value:0};else if(e[0].token===`true`)return{value:1}}return{error:`Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received `+e[0].token+`)`}}})(),t.exports=r})),f=e.n(((e,t)=>{var n={},r=`C,,,.D,,,.E,,,.F,,,.G,,,.A,,,.B,,,.C,,.D,,.E,,.F,,.G,,.A,,.B,,.C,.D,.E,.F,.G,.A,.B,.C.D.E.F.G.A.B.c.d.e.f.g.a.b.c'.d'.e'.f'.g'.a'.b'.c''.d''.e''.f''.g''.a''.b''.c'''.d'''.e'''.f'''.g'''.a'''.b'''`.split(`.`);n.pitchIndex=function(e){return r.indexOf(e)},n.noteName=function(e){return r[e]},t.exports=n})),p=e.n(((e,t)=>{var n=[`C`,`C♯`,`D`,`D♯`,`E`,`F`,`F♯`,`G`,`G♯`,`A`,`A♯`,`B`],r=[`C`,`D♭`,`D`,`E♭`,`E`,`F`,`G♭`,`G`,`A♭`,`A`,`B♭`,`B`],a=[`C`,`C#`,`D`,`D#`,`E`,`F`,`F#`,`G`,`G#`,`A`,`A#`,`B`],o=[`C`,`Db`,`D`,`Eb`,`E`,`F`,`Gb`,`G`,`Ab`,`A`,`Bb`,`B`];function transposeChordName(e,t,c,l){if(!t||t%12==0)return e;for(;t<0;)t+=12;t>11&&(t%=12);var u=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!u)return e;var d=u[1],f=u[2],p=u[3],m=u[4],h=n.indexOf(d);if(h<0&&(h=r.indexOf(d)),h<0&&(h=a.indexOf(d)),h<0&&(h=o.indexOf(d)),h<0)return e;if(h+=t,h%=12,e=c?l?o[h]:r[h]:l?a[h]:n[h],f&&(e+=f),p){var h=n.indexOf(p);h<0&&(h=r.indexOf(p)),h<0&&(h=a.indexOf(p)),h<0&&(h=o.indexOf(p)),e+=`/`,h>=0?(h+=t,h%=12,c?l?e+=o[h]:e+=r[h]:l?e+=a[h]:e+=n[h]):e+=p}return m&&(e+=m),e}t.exports=transposeChordName})),m=e.n(((e,t)=>{var n={C:{modes:[`CMaj`,`Amin`,`Am`,`GMix`,`DDor`,`EPhr`,`FLyd`,`BLoc`],stepsFromC:0},Db:{modes:[`DbMaj`,`Bbmin`,`Bbm`,`AbMix`,`EbDor`,`FPhr`,`GbLyd`,`CLoc`],stepsFromC:1},D:{modes:[`DMaj`,`Bmin`,`Bm`,`AMix`,`EDor`,`F#Phr`,`GLyd`,`C#Loc`],stepsFromC:2},Eb:{modes:[`EbMaj`,`Cmin`,`Cm`,`BbMix`,`FDor`,`GPhr`,`AbLyd`,`DLoc`],stepsFromC:3},E:{modes:[`EMaj`,`C#min`,`C#m`,`BMix`,`F#Dor`,`G#Phr`,`ALyd`,`D#Loc`],stepsFromC:4},F:{modes:[`FMaj`,`Dmin`,`Dm`,`CMix`,`GDor`,`APhr`,`BbLyd`,`ELoc`],stepsFromC:5},Gb:{modes:[`GbMaj`,`Ebmin`,`Ebm`,`DbMix`,`AbDor`,`BbPhr`,`CbLyd`,`FLoc`],stepsFromC:6},G:{modes:[`GMaj`,`Emin`,`Em`,`DMix`,`ADor`,`BPhr`,`CLyd`,`F#Loc`],stepsFromC:7},Ab:{modes:[`AbMaj`,`Fmin`,`Fm`,`EbMix`,`BbDor`,`CPhr`,`DbLyd`,`GLoc`],stepsFromC:8},A:{modes:[`AMaj`,`F#min`,`F#m`,`EMix`,`BDor`,`C#Phr`,`DLyd`,`G#Loc`],stepsFromC:9},Bb:{modes:[`BbMaj`,`Gmin`,`Gm`,`FMix`,`CDor`,`DPhr`,`EbLyd`,`ALoc`],stepsFromC:10},B:{modes:[`BMaj`,`G#min`,`G#m`,`F#Mix`,`C#Dor`,`D#Phr`,`ELyd`,`A#Loc`],stepsFromC:11},"C#":{modes:[`C#Maj`,`A#min`,`A#m`,`G#Mix`,`D#Dor`,`E#Phr`,`F#Lyd`,`B#Loc`],stepsFromC:1},"F#":{modes:[`F#Maj`,`D#min`,`D#m`,`C#Mix`,`G#Dor`,`A#Phr`,`BLyd`,`E#Loc`],stepsFromC:6},Cb:{modes:[`CbMaj`,`Abmin`,`Abm`,`GbMix`,`DbDor`,`EbPhr`,`FbLyd`,`BbLoc`],stepsFromC:11}},r=null;function createKeyReverse(){r={};for(var e=Object.keys(n),t=0;t<e.length;t++){var a=n[e[t]];r[e[t].toLowerCase()]=e[t];for(var o=0;o<a.modes.length;o++){var c=a.modes[o].toLowerCase();r[c]=e[t]}}}function relativeMajor(e){r||createKeyReverse();var t=e.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);return!t||!t[2]?e:(t=t[1]+t[2],r[t]||e)}function relativeMode(e,t){var r=n[e];if(!r||t===``)return e;var a=t.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!a)return e;for(var o=a[1],c=0;c<r.modes.length;c++){var l=r.modes[c],u=l.toLowerCase().indexOf(o);if(u!==-1&&u===l.length-o.length)return l.substring(0,l.length-o.length)}return e}function transposeKey(e,t){var r=n[e];if(!r)return e;for(;t<0;)t+=12;for(var a=(r.stepsFromC+t)%12,o=0;o<Object.keys(n).length;o++){var c=Object.keys(n)[o];if(n[c].stepsFromC===a)return c}return e}t.exports={relativeMajor,relativeMode,transposeKey}})),h=e.n(((e,t)=>{var{relativeMajor:n}=m(),r={acc:`sharp`,note:`f`},a={acc:`sharp`,note:`c`},o={acc:`sharp`,note:`g`},c={acc:`sharp`,note:`d`},l={acc:`sharp`,note:`A`},u={acc:`sharp`,note:`e`},d={acc:`sharp`,note:`B`},f={acc:`flat`,note:`B`},p={acc:`flat`,note:`e`},h={acc:`flat`,note:`A`},g={acc:`flat`,note:`d`},_={acc:`flat`,note:`G`},y={acc:`flat`,note:`c`},b={acc:`flat`,note:`F`},x={"C#":[r,a,o,c,l,u,d],"F#":[r,a,o,c,l,u],B:[r,a,o,c,l],E:[r,a,o,c],A:[r,a,o],D:[r,a],G:[r],C:[],F:[f],Bb:[f,p],Eb:[f,p,h],Cm:[f,p,h],Ab:[f,p,h,g],Db:[f,p,h,g,_],Gb:[f,p,h,g,_,y],Cb:[f,p,h,g,_,y,b],"A#":[f,p],"B#":[],"D#":[f,p,h],"E#":[f],"G#":[f,p,h,g],none:[]};function keyAccidentals(e){var t=x[n(e)];return t?JSON.parse(JSON.stringify(t)):null}t.exports=keyAccidentals})),g=e.n(((e,t)=>{var n=f(),r=p(),a=h(),o={},c={C:0,"C#":1,Db:1,D:2,"D#":3,Eb:3,E:4,F:5,"F#":6,Gb:6,G:7,"G#":8,Ab:8,A:9,"A#":10,Bb:10,B:11},l=[`C`,`Db`,`D`,`Eb`,`E`,`F`,`F#`,`G`,`Ab`,`A`,`Bb`,`B`],u=[`C`,`C#`,`D`,`D#`,`E`,`F`,`F#`,`G`,`G#`,`A`,`Bb`,`B`];o.keySignature=function(e,t,n,r,o){if(e.clef.type===`perc`||e.clef.type===`none`)return{accidentals:a(t),root:n,acc:r};o||=0,e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var d=a(t);if(!d)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+o,!e.localTranspose)return{accidentals:d,root:n,acc:r};if(e.globalTransposeOrigKeySig=d,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:d,root:n,acc:r};var f=t[0];t[1]===`b`||t[1]===`#`?(f+=t[1],t=t.substr(2)):t=t.substr(1);var p=c[f],m=p!==void 0;m||(p=0,f=`C`,t=``);for(var h=p+e.localTranspose;h<0;)h+=12;h>11&&(h%=12);var g=t[0]===`m`?u[h]:l[h],_=g+t,y=a(_);y.length>0&&y[0].acc===`flat`&&(e.localTransposePreferFlats=!0);var b=_.charCodeAt(0)-f.charCodeAt(0);return e.localTranspose>0?(b<0||b===0&&(f[1]===`#`||_[1]===`b`))&&(b+=7):e.localTranspose<0&&(b>0||b===0&&(f[1]===`b`||_[1]===`#`))&&(b-=7),e.localTranspose>0?e.localTransposeVerticalMovement=b+Math.floor(e.localTranspose/12)*7:e.localTransposeVerticalMovement=b+Math.ceil(e.localTranspose/12)*7,m?{accidentals:y,root:g[0],acc:g.length>1?g[1]:``}:{accidentals:[],root:n,acc:r}},o.chordName=function(e,t){return r(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var d=[`c`,`d`,`e`,`f`,`g`,`a`,`b`];function accidentalChange(e,t,n,r,a){for(var o=d[(e+49)%7],c=0,l=0;l<r.length;l++)r[l].note.toLowerCase()===o&&(c=m[r[l].acc]);for(var u=m[n]-c,f=d[(t+49)%7],p=0,h=0;h<a.accidentals.length;h++)a.accidentals[h].note.toLowerCase()===f&&(p=m[a.accidentals[h].acc]);var g=u+p;return g<-2&&(t--,g+=f===`c`||f===`f`?1:2),g>2&&(t++,g-=f===`b`||f===`e`?1:2),[t,g]}var m={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},g={"-2":`dblflat`,"-1":`flat`,0:`natural`,1:`sharp`,2:`dblsharp`},_={"-2":`__`,"-1":`_`,0:`=`,1:`^`,2:`^^`};o.note=function(e,t){if(!(!e.localTranspose||e.clef.type===`perc`)){var r=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch+=e.localTransposeVerticalMovement,t.name)){var a=t.accidental?t.name.substring(1):t.name,o=t.accidental?t.name[0]:``,c=n.pitchIndex(a);t.name=o+n.noteName(c+e.localTransposeVerticalMovement)}if(t.accidental){var l=accidentalChange(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=l[0],t.accidental=g[l[1]],t.name&&=_[l[1]]+t.name.replace(/[_^=]/g,``)}}},t.exports=o})),_=e.n(((e,t)=>{var n=d(),r=g(),a={};(function(){var e,t,o,c;a.initialize=function(n,r,a,l,u){e=n,t=r,o=a,c=u},a.standardKey=function(e,t,n,a){return r.keySignature(o,e,t,n,a)};var l={treble:{clef:`treble`,pitch:4,mid:0},"treble+8":{clef:`treble+8`,pitch:4,mid:0},"treble-8":{clef:`treble-8`,pitch:4,mid:0},"treble^8":{clef:`treble+8`,pitch:4,mid:0},treble_8:{clef:`treble-8`,pitch:4,mid:0},treble1:{clef:`treble`,pitch:2,mid:2},treble2:{clef:`treble`,pitch:4,mid:0},treble3:{clef:`treble`,pitch:6,mid:-2},treble4:{clef:`treble`,pitch:8,mid:-4},treble5:{clef:`treble`,pitch:10,mid:-6},perc:{clef:`perc`,pitch:6,mid:0},none:{clef:`none`,mid:0},bass:{clef:`bass`,pitch:8,mid:-12},"bass+8":{clef:`bass+8`,pitch:8,mid:-12},"bass-8":{clef:`bass-8`,pitch:8,mid:-12},"bass^8":{clef:`bass+8`,pitch:8,mid:-12},bass_8:{clef:`bass-8`,pitch:8,mid:-12},"bass+16":{clef:`bass`,pitch:8,mid:-12},"bass-16":{clef:`bass`,pitch:8,mid:-12},"bass^16":{clef:`bass`,pitch:8,mid:-12},bass_16:{clef:`bass`,pitch:8,mid:-12},bass1:{clef:`bass`,pitch:2,mid:-6},bass2:{clef:`bass`,pitch:4,mid:-8},bass3:{clef:`bass`,pitch:6,mid:-10},bass4:{clef:`bass`,pitch:8,mid:-12},bass5:{clef:`bass`,pitch:10,mid:-14},tenor:{clef:`alto`,pitch:8,mid:-8},tenor1:{clef:`alto`,pitch:2,mid:-2},tenor2:{clef:`alto`,pitch:4,mid:-4},tenor3:{clef:`alto`,pitch:6,mid:-6},tenor4:{clef:`alto`,pitch:8,mid:-8},tenor5:{clef:`alto`,pitch:10,mid:-10},alto:{clef:`alto`,pitch:6,mid:-6},alto1:{clef:`alto`,pitch:2,mid:-2},alto2:{clef:`alto`,pitch:4,mid:-4},alto3:{clef:`alto`,pitch:6,mid:-6},alto4:{clef:`alto`,pitch:8,mid:-8},alto5:{clef:`alto`,pitch:10,mid:-10},"alto+8":{clef:`alto+8`,pitch:6,mid:-6},"alto-8":{clef:`alto-8`,pitch:6,mid:-6},"alto^8":{clef:`alto+8`,pitch:6,mid:-6},alto_8:{clef:`alto-8`,pitch:6,mid:-6}},calcMiddle=function(e,t){var n=l[e];return(n?n.mid:0)+t};a.fixClef=function(e){var t=l[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},a.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return e.accidentals.forEach(function(e){t.accidentals.push(Object.assign({},e))}),t};var u={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};a.addPosToKey=function(e,t){var n=e.verticalPos;t.accidentals.forEach(function(e){var t=u[e.note];t-=n,e.verticalPos=t}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){var t=u[e.note];t-=n,e.verticalPos=t}),n<-10?(t.accidentals.forEach(function(e){e.verticalPos-=7,(e.verticalPos>=11||e.verticalPos===10&&e.acc===`flat`)&&(e.verticalPos-=7),e.note===`A`&&e.acc===`sharp`&&(e.verticalPos-=7),(e.note===`G`||e.note===`F`)&&e.acc===`flat`&&(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,(e.verticalPos>=11||e.verticalPos===10&&e.acc===`flat`)&&(e.verticalPos-=7),e.note===`A`&&e.acc===`sharp`&&(e.verticalPos-=7),(e.note===`G`||e.note===`F`)&&e.acc===`flat`&&(e.verticalPos-=7)})):n<-4?(t.accidentals.forEach(function(e){e.verticalPos-=7,n===-8&&(e.note===`f`||e.note===`g`)&&e.acc===`sharp`&&(e.verticalPos-=7)}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos-=7,n===-8&&(e.note===`f`||e.note===`g`)&&e.acc===`sharp`&&(e.verticalPos-=7)})):n>=7&&(t.accidentals.forEach(function(e){e.verticalPos+=7}),t.impliedNaturals&&t.impliedNaturals.forEach(function(e){e.verticalPos+=7}))},a.fixKey=function(e,t){var n=Object.assign({},t);return a.addPosToKey(e,n),n};var parseMiddle=function(e){var t=0,n=e[t++];(n===`^`||n===`_`)&&(n=e[t++]);var r=u[n];for(r===void 0&&(r=6);t<e.length;t++)if(e[t]===`,`)r-=7;else if(e[t]===`'`)r+=7;else break;return{mid:r-6,str:e.substring(t)}},normalizeAccidentals=function(e){for(var t=0;t<e.length;t++)e[t].note===`b`?e[t].note=`B`:e[t].note===`a`?e[t].note=`A`:e[t].note===`F`?e[t].note=`f`:e[t].note===`E`?e[t].note=`e`:e[t].note===`D`?e[t].note=`d`:e[t].note===`C`?e[t].note=`c`:e[t].note===`G`&&e[t].acc===`sharp`?e[t].note=`g`:e[t].note===`g`&&e[t].acc===`flat`&&(e[t].note=`G`)};a.parseKey=function(r,c){r.length===0&&(r=`none`);var l=e.tokenize(r,0,r.length),u={};if(l.length===0)return t(`Must pass in key signature.`,r,0),u;switch(l[0].token){case`HP`:n.addDirective(`bagpipes`),o.key={root:`HP`,accidentals:[],acc:``,mode:``},u.foundKey=!0,l.shift();break;case`Hp`:n.addDirective(`bagpipes`),o.key={root:`Hp`,accidentals:[{acc:`natural`,note:`g`},{acc:`sharp`,note:`f`},{acc:`sharp`,note:`c`}],acc:``,mode:``},u.foundKey=!0,l.shift();break;case`none`:o.key={root:`none`,accidentals:[],acc:``,mode:``},u.foundKey=!0,l.shift();break;default:var d=e.getKeyPitch(l[0].token);if(d.len>0){u.foundKey=!0;var f=``,p=``;l[0].token.length>1?l[0].token=l[0].token.substring(1):l.shift();var m=d.token;if(l.length>0){var h=e.getSharpFlat(l[0].token);if(h.len>0&&(l[0].token.length>1?l[0].token=l[0].token.substring(1):l.shift(),m+=h.token,f=h.token),l.length>0){var g=e.getMode(l[0].token);g.len>0&&(l.shift(),m+=g.token,p=g.token)}if(a.standardKey(m,d.token,f,0)===void 0)return t(`Unsupported key signature: `+m,r,0),u}var _=a.deepCopyKey(o.key),y=!c&&o.globalTranspose?-o.globalTranspose:0,b;if(c&&(b=o.globalTransposeOrigKeySig),o.key=a.deepCopyKey(a.standardKey(m,d.token,f,y)),c&&(o.globalTransposeOrigKeySig=b),o.key.mode=p,_){for(var x,S=0;S<o.key.accidentals.length;S++)for(x=0;x<_.accidentals.length;x++)_.accidentals[x].note&&o.key.accidentals[S].note.toLowerCase()===_.accidentals[x].note.toLowerCase()&&(_.accidentals[x].note=null);for(x=0;x<_.accidentals.length;x++)_.accidentals[x].note&&(o.key.impliedNaturals||(o.key.impliedNaturals=[]),o.key.impliedNaturals.push({acc:`natural`,note:_.accidentals[x].note}))}}break}if(l.length===0||(l[0].token===`exp`&&l.shift(),l.length===0)||(l[0].token===`oct`&&l.shift(),l.length===0))return u;var C=e.getKeyAccidentals2(l);if(C.warn&&t(C.warn,r,0),C.accs){u.foundKey||(u.foundKey=!0,o.key={root:`none`,acc:``,mode:``,accidentals:[]}),normalizeAccidentals(C.accs);for(var w=0;w<C.accs.length;w++){for(var T=!1,E=0;E<o.key.accidentals.length&&!T;E++)o.key.accidentals[E].note===C.accs[w].note&&(T=!0,o.key.accidentals[E].acc!==C.accs[w].acc&&(o.key.accidentals[E].acc=C.accs[w].acc,o.key.explicitAccidentals||(o.key.explicitAccidentals=[]),o.key.explicitAccidentals.push(C.accs[w])));if(!T&&(o.key.explicitAccidentals||(o.key.explicitAccidentals=[]),o.key.explicitAccidentals.push(C.accs[w]),o.key.accidentals.push(C.accs[w]),o.key.impliedNaturals))for(var D=0;D<o.key.impliedNaturals.length;D++)o.key.impliedNaturals[D].note===C.accs[w].note&&o.key.impliedNaturals.splice(D,1)}}for(var O;l.length>0;)switch(l[0].token){case`m`:case`middle`:if(l.shift(),l.length===0)return t(`Expected = after middle`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after middle`,r,O.start);break}if(l.length===0)return t(`Expected parameter after middle=`,r,0),u;var k=e.getPitchFromTokens(l);k.warn&&t(k.warn,r,0),k.position&&(o.clef.verticalPos=k.position-6);break;case`transpose`:if(l.shift(),l.length===0)return t(`Expected = after transpose`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after transpose`,r,O.start);break}if(l.length===0)return t(`Expected parameter after transpose=`,r,0),u;if(l[0].type!==`number`){t(`Expected number after transpose`,r,l[0].start);break}o.clef.transpose=l[0].intt,l.shift();break;case`stafflines`:if(l.shift(),l.length===0)return t(`Expected = after stafflines`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after stafflines`,r,O.start);break}if(l.length===0)return t(`Expected parameter after stafflines=`,r,0),u;if(l[0].type!==`number`){t(`Expected number after stafflines`,r,l[0].start);break}o.clef.stafflines=l[0].intt,l.shift();break;case`staffscale`:if(l.shift(),l.length===0)return t(`Expected = after staffscale`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after staffscale`,r,O.start);break}if(l.length===0)return t(`Expected parameter after staffscale=`,r,0),u;if(l[0].type!==`number`){t(`Expected number after staffscale`,r,l[0].start);break}o.clef.staffscale=l[0].floatt,l.shift();break;case`octave`:if(l.shift(),l.length===0)return t(`Expected = after octave`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after octave`,r,O.start);break}if(l.length===0)return t(`Expected parameter after octave=`,r,0),u;if(l[0].type!==`number`){t(`Expected number after octave`,r,l[0].start);break}o.octave=l[0].intt,l.shift();break;case`style`:if(l.shift(),l.length===0)return t(`Expected = after style`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after style`,r,O.start);break}if(l.length===0)return t(`Expected parameter after style=`,r,0),u;switch(l[0].token){case`normal`:case`harmonic`:case`rhythm`:case`x`:case`triangle`:o.style=l[0].token,l.shift();break;default:t(`error parsing style element: `+l[0].token,r,l[0].start);break}break;case`clef`:if(l.shift(),l.length===0)return t(`Expected = after clef`,r,0),u;if(O=l.shift(),O.token!==`=`){t(`Expected = after clef`,r,O.start);break}if(l.length===0)return t(`Expected parameter after clef=`,r,0),u;case`treble`:case`bass`:case`alto`:case`tenor`:case`perc`:case`none`:var A=l.shift();switch(A.token){case`treble`:case`tenor`:case`alto`:case`bass`:case`perc`:case`none`:break;case`C`:A.token=`alto`;break;case`F`:A.token=`bass`;break;case`G`:A.token=`treble`;break;case`c`:A.token=`alto`;break;case`f`:A.token=`bass`;break;case`g`:A.token=`treble`;break;default:t(`Expected clef name. Found `+A.token,r,A.start);break}l.length>0&&l[0].type===`number`&&(A.token+=l[0].token,l.shift()),l.length>1&&(l[0].token===`-`||l[0].token===`+`||l[0].token===`^`||l[0].token===`_`)&&l[1].token===`8`&&(A.token+=l[0].token+l[1].token,l.shift(),l.shift()),o.clef={type:A.token,verticalPos:calcMiddle(A.token,0)},o.currentVoice&&o.currentVoice.transpose!==void 0&&(o.clef.transpose=o.currentVoice.transpose),u.foundClef=!0;break;default:t(`Unknown parameter: `+l[0].token,r,l[0].start),l.shift()}return u};var setCurrentVoice=function(e){var t=o.voices[e];if(!(o.currentVoice&&o.currentVoice.index===t.index&&o.currentVoice.staffNum===t.staffNum))return o.currentVoice=t,c.setCurrentVoice(t.staffNum,t.index,e)};a.parseVoice=function(n,r,a){var c=e.getMeat(n,r,a),l=c.start,u=c.end,d=e.getToken(n,l,u);if(d.length===0){t(`Expected a voice id`,n,l);return}var f=!1;o.voices[d]===void 0&&(o.voices[d]={},f=!0,o.score_is_present&&t(`Can't have an unknown V: id when the %score directive is present`,n,l)),l+=d.length,l+=e.eatWhiteSpace(n,l);for(var p={startStaff:f},addNextTokenToStaffInfo=function(r){var a=e.getVoiceToken(n,l,u);a.warn===void 0?a.err===void 0?a.token.length===0&&n[l]!==`"`?t(`Expected value for `+r+` in voice`,n,l):p[r]=a.token:t(`Expected value for `+r+` in voice: `+a.err,n,l):t(`Expected value for `+r+` in voice: `+a.warn,n,l),l+=a.len},addNextTokenToVoiceInfo=function(r,a,c){var d=e.getVoiceToken(n,l,u);d.warn===void 0?d.err===void 0?d.token.length===0&&n[l]!==`"`?t(`Expected value for `+a+` in voice`,n,l):(c===`number`&&(d.token=parseFloat(d.token)),o.voices[r][a]=d.token):t(`Expected value for `+a+` in voice: `+d.err,n,l):t(`Expected value for `+a+` in voice: `+d.warn,n,l),l+=d.len},getNextToken=function(r,a){var o=e.getVoiceToken(n,l,u);if(o.warn!==void 0)t(`Expected value for `+r+` in voice: `+o.warn,n,l);else if(o.err!==void 0)t(`Expected value for `+r+` in voice: `+o.err,n,l);else if(o.token.length===0&&n[l]!==`"`)t(`Expected value for `+r+` in voice`,n,l);else return a===`number`&&(o.token=parseFloat(o.token)),o.token;l+=o.len},addNextNoteTokenToVoiceInfo=function(r,a){var c={_B:2,_E:9,_b:-10,_e:-3},d=e.getVoiceToken(n,l,u);if(d.warn!==void 0)t(`Expected one of (_B, _E, _b, _e) for `+a+` in voice: `+d.warn,n,l);else if(d.token.length===0&&n[l]!==`"`)t(`Expected one of (_B, _E, _b, _e) for `+a+` in voice`,n,l);else{var f=c[d.token];f?o.voices[r][a]=f:t(`Expected one of (_B, _E, _b, _e) for `+a+` in voice`,n,l)}l+=d.len};l<u;){var m=e.getVoiceToken(n,l,u);if(l+=m.len,m.warn)t(`Error parsing voice: `+m.warn,n,l);else{var h=null;switch(m.token){case`clef`:case`cl`:addNextTokenToStaffInfo(`clef`);var g=0;p.clef!==void 0&&(p.clef=p.clef.replace(/[',]/g,``),p.clef.indexOf(`+16`)!==-1&&(g+=14,p.clef=p.clef.replace(`+16`,``)),p.verticalPos=calcMiddle(p.clef,g));break;case`treble`:case`bass`:case`tenor`:case`alto`:case`perc`:case`none`:case`treble'`:case`bass'`:case`tenor'`:case`alto'`:case`none'`:case`treble''`:case`bass''`:case`tenor''`:case`alto''`:case`none''`:case`treble,`:case`bass,`:case`tenor,`:case`alto,`:case`none,`:case`treble,,`:case`bass,,`:case`tenor,,`:case`alto,,`:case`none,,`:p.clef=m.token.replace(/[',]/g,``),p.verticalPos=calcMiddle(p.clef,0),o.voices[d].clef=m.token;break;case`staves`:case`stave`:case`stv`:addNextTokenToStaffInfo(`staves`);break;case`brace`:case`brc`:addNextTokenToStaffInfo(`brace`);break;case`bracket`:case`brk`:addNextTokenToStaffInfo(`bracket`);break;case`name`:case`nm`:addNextTokenToStaffInfo(`name`);break;case`subname`:case`sname`:case`snm`:addNextTokenToStaffInfo(`subname`);break;case`merge`:p.startStaff=!1;break;case`stem`:case`stems`:h=e.getVoiceToken(n,l,u),h.warn===void 0?h.err===void 0?h.token===`up`||h.token===`down`?o.voices[d].stem=h.token:t(`Expected up or down for voice stem`,n,l):t(`Expected value for stems in voice: `+h.err,n,l):t(`Expected value for stems in voice: `+h.warn,n,l),l+=h.len;break;case`up`:case`down`:o.voices[d].stem=m.token;break;case`middle`:case`m`:addNextTokenToStaffInfo(`verticalPos`),p.verticalPos=parseMiddle(p.verticalPos).mid;break;case`gchords`:case`gch`:o.voices[d].suppressChords=!0,h=e.getVoiceToken(n,l,u),h.token===`0`&&(l+=h.len);break;case`space`:case`spc`:addNextTokenToStaffInfo(`spacing`);break;case`scale`:addNextTokenToVoiceInfo(d,`scale`,`number`);break;case`score`:addNextNoteTokenToVoiceInfo(d,`scoreTranspose`);break;case`transpose`:addNextTokenToVoiceInfo(d,`transpose`,`number`);break;case`stafflines`:addNextTokenToVoiceInfo(d,`stafflines`,`number`);break;case`staffscale`:addNextTokenToVoiceInfo(d,`staffscale`,`number`);break;case`octave`:addNextTokenToVoiceInfo(d,`octave`,`number`);break;case`volume`:addNextTokenToVoiceInfo(d,`volume`,`number`);break;case`cue`:getNextToken(`cue`,`string`)===`on`?o.voices[d].scale=.6:o.voices[d].scale=1;break;case`style`:h=e.getVoiceToken(n,l,u),h.warn===void 0?h.err===void 0?h.token===`normal`||h.token===`harmonic`||h.token===`rhythm`||h.token===`x`||h.token===`triangle`?o.voices[d].style=h.token:t(`Expected one of [normal, harmonic, rhythm, x, triangle] for voice style`,n,l):t(`Expected value for style in voice: `+h.err,n,l):t(`Expected value for style in voice: `+h.warn,n,l),l+=h.len;break}}l+=e.eatWhiteSpace(n,l)}if((p.startStaff||o.staves.length===0)&&(o.staves.push({index:o.staves.length,meter:o.origMeter}),o.score_is_present||(o.staves[o.staves.length-1].numVoices=0)),o.voices[d].staffNum===void 0){o.voices[d].staffNum=o.staves.length-1;var _=0;for(var y in o.voices)o.voices.hasOwnProperty(y)&&o.voices[y].staffNum===o.voices[d].staffNum&&_++;o.voices[d].index=_-1}var b=o.staves[o.voices[d].staffNum];return o.score_is_present||b.numVoices++,p.clef&&(b.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(b.spacing_below_offset=p.spacing),p.verticalPos&&(b.verticalPos=p.verticalPos),p.name&&(b.name?b.name.push(p.name):b.name=[p.name]),p.subname&&(b.subname?b.subname.push(p.subname):b.subname=[p.subname]),setCurrentVoice(d)}})(),t.exports=a})),y=e.n(((e,t)=>{var n=u(),r=d(),a=_(),ParseHeader=function(e,t,o,c,l){this.reset=function(e,t,n,o){a.initialize(e,t,n,o,l),r.initialize(e,t,n,o,l)},this.reset(e,t,o,c),this.setTitle=function(e,t){o.hasMainTitle?l.addSubtitle(e,{startChar:o.iChar,endChar:o.iChar+t+2}):(l.addMetaText(`title`,e,{startChar:o.iChar,endChar:o.iChar+t+2}),o.hasMainTitle=!0)},this.setMeter=function(n){if(n=e.stripComment(n),n===`C`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`common_time`};if(n===`C|`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`cut_time`};if(n===`o`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`tempus_perfectum`};if(n===`c`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`tempus_imperfectum`};if(n===`o.`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`tempus_perfectum_prolatio`};if(n===`c.`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),{type:`tempus_imperfectum_prolatio`};if(n.length===0||n.toLowerCase()===`none`)return o.havent_set_length===!0&&(o.default_length=.125,o.havent_set_length=!1),null;var r=e.tokenize(n,0,n.length);try{var parseNum=function(){var e={value:0,num:``},t=r.shift();for(t.token===`(`&&(t=r.shift());;){if(t.type!==`number`)throw`Expected top number of meter`;if(e.value+=parseInt(t.token),e.num+=t.token,r.length===0||r[0].token===`/`)return e;if(t=r.shift(),t.token===`)`){if(r.length===0||r[0].token===`/`)return e;throw`Unexpected paren in meter`}if(t.token!==`.`&&t.token!==`+`||(e.num+=t.token,r.length===0))throw`Expected top number of meter`;t=r.shift()}return e},parseFraction=function(){var e=parseNum();if(r.length===0)return e;var t=r.shift();if(t.token!==`/`)throw`Expected slash in meter`;if(t=r.shift(),t.type!==`number`)throw`Expected bottom number of meter`;return e.den=t.token,e.value/=parseInt(e.den),e};if(r.length===0)throw`Expected meter definition in M: line`;for(var a={type:`specified`,value:[]},c=0;;){var l=parseFraction();c+=l.value;var u={num:l.num};if(l.den!==void 0&&(u.den=l.den),a.value.push(u),r.length===0)break}return o.havent_set_length===!0&&(o.default_length=c<.75?.0625:.125,o.havent_set_length=!1),a}catch(e){t(e,n,0)}return null},this.calcTempo=function(e){var t=1/4;o.meter&&o.meter.type===`specified`?t=1/parseInt(o.meter.value[0].den):o.origMeter&&o.origMeter.type===`specified`&&(t=1/parseInt(o.origMeter.value[0].den));for(var n=0;n<e.duration;n++)e.duration[n]=t*e.duration[n];return e},this.resolveTempo=function(){o.tempo&&(this.calcTempo(o.tempo),c.metaText.tempo=o.tempo,delete o.tempo)},this.addUserDefinition=function(e,r,a){var c=e.indexOf(`=`,r);if(c===-1){t(`Need an = in a macro definition`,e,r);return}var l=n.strip(e.substring(r,c)),u=n.strip(e.substring(c+1));if(l.length!==1){t(`Macro definitions can only be one character`,e,r);return}if(`HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~`.indexOf(l)===-1){t(`Macro definitions must be H-Y, h-w, or tilde`,e,r);return}if(u.length===0){t(`Missing macro definition`,e,r);return}o.macros===void 0&&(o.macros={}),o.macros[l]=u},this.setDefaultLength=function(e,t,n){var r=e.substring(t,n).replace(/ /g,``).split(`/`);if(r.length===2){var a=parseInt(r[0]),c=parseInt(r[1]);c>0&&(o.default_length=a/c,o.havent_set_length=!1)}else r.length===1&&r[0]===`1`&&(o.default_length=1,o.havent_set_length=!1)};var u={larghissimo:20,adagissimo:24,sostenuto:28,grave:32,largo:40,lento:50,larghetto:60,adagio:68,adagietto:74,andante:80,andantino:88,"marcia moderato":84,"andante moderato":100,moderato:112,allegretto:116,"allegro moderato":120,allegro:126,animato:132,agitato:140,veloce:148,"mosso vivo":156,vivace:164,vivacissimo:172,allegrissimo:176,presto:184,prestissimo:210};this.setTempo=function(n,r,a,c){try{var l=e.tokenize(n,r,a);if(l.length===0)throw`Missing parameter in Q: field`;var d={startChar:c+r-2,endChar:c+a},f=!0,p=l.shift();if(p.type===`quote`&&(d.preString=p.token,p=l.shift(),l.length===0))return u[d.preString.toLowerCase()]&&(d.bpm=u[d.preString.toLowerCase()],d.suppressBpm=!0),{type:`immediate`,tempo:d};if(p.type===`alpha`&&p.token===`C`){if(l.length===0)throw`Missing tempo after C in Q: field`;if(p=l.shift(),p.type===`punct`&&p.token===`=`){if(l.length===0)throw`Missing tempo after = in Q: field`;if(p=l.shift(),p.type!==`number`)throw`Expected number after = in Q: field`;d.duration=[1],d.bpm=parseInt(p.token)}else if(p.type===`number`){if(d.duration=[parseInt(p.token)],l.length===0)throw`Missing = after duration in Q: field`;if(p=l.shift(),p.type!==`punct`||p.token!==`=`)throw`Expected = after duration in Q: field`;if(l.length===0)throw`Missing tempo after = in Q: field`;if(p=l.shift(),p.type!==`number`)throw`Expected number after = in Q: field`;d.bpm=parseInt(p.token)}else throw`Expected number or equal after C in Q: field`}else if(p.type===`number`){var m=parseInt(p.token);if(l.length===0||l[0].type===`quote`)d.duration=[1],d.bpm=m;else{if(f=!1,p=l.shift(),p.type!==`punct`&&p.token!==`/`||(p=l.shift(),p.type!==`number`))throw`Expected fraction in Q: field`;var h=parseInt(p.token);for(d.duration=[m/h];l.length>0&&l[0].token!==`=`&&l[0].type!==`quote`;){if(p=l.shift(),p.type!==`number`||(m=parseInt(p.token),p=l.shift(),p.type!==`punct`&&p.token!==`/`)||(p=l.shift(),p.type!==`number`))throw`Expected fraction in Q: field`;h=parseInt(p.token),d.duration.push(m/h)}if(p=l.shift(),p.type!==`punct`&&p.token!==`=`)throw`Expected = in Q: field`;if(p=l.shift(),p.type!==`number`)throw`Expected tempo in Q: field`;d.bpm=parseInt(p.token)}}else throw`Unknown value in Q: field`;if(l.length!==0&&(p=l.shift(),p.type===`quote`&&(d.postString=p.token,p=l.shift()),l.length!==0))throw`Unexpected string at end of Q: field`;return o.printTempo===!1&&(d.suppress=!0),{type:f?`delaySet`:`immediate`,tempo:d}}catch(e){return t(e,n,r),{type:`none`}}},this.letter_to_inline_header=function(n,u,d){var f=!1,p=e.eatWhiteSpace(n,u);if(u+=p,n.length>=u+5&&n[u]===`[`&&n[u+2]===`:`){var m=n.indexOf(`]`,u),h=o.iChar+u,g=o.iChar+m+1;switch(n.substring(u,u+3)){case`[I:`:var _=r.addDirective(n.substring(u+3,m));return _&&t(_,n,u),[m-u+1+p];case`[M:`:var y=this.setMeter(n.substring(u+3,m));return l.hasBeginMusic()&&y?l.appendStartingElement(`meter`,h,g,y):o.meter=y,[m-u+1+p];case`[K:`:var b=a.parseKey(n.substring(u+3,m),!0);return b.foundClef&&l.hasBeginMusic()&&l.appendStartingElement(`clef`,h,g,o.clef),b.foundKey&&l.hasBeginMusic()&&l.appendStartingElement(`key`,h,g,a.fixKey(o.clef,o.key)),[m-u+1+p];case`[P:`:var x=r.parseFontChangeLine(n.substring(u+3,m));return d||c.lines.length<=c.lineNum?o.partForNextLine={title:x,startChar:h,endChar:g}:l.appendElement(`part`,h,g,{title:x}),[m-u+1+p];case`[L:`:return this.setDefaultLength(n,u+3,m),[m-u+1+p];case`[Q:`:if(m>0){var S=this.setTempo(n,u+3,m,o.iChar);return S.type===`delaySet`?l.hasBeginMusic()?l.appendElement(`tempo`,h,g,this.calcTempo(S.tempo)):o.tempoForNextLine=[`tempo`,h,g,this.calcTempo(S.tempo)]:S.type===`immediate`&&(!d&&l.hasBeginMusic()?l.appendElement(`tempo`,h,g,S.tempo):o.tempoForNextLine=[`tempo`,h,g,S.tempo]),[m-u+1+p,n[u+1],n.substring(u+3,m)]}break;case`[V:`:if(m>0)return f=a.parseVoice(n,u+3,m),[m-u+1+p,n[u+1],n.substring(u+3,m),f];break;case`[r:`:return[m-u+1+p];default:}}return[0]},this.letter_to_body_header=function(e,c){var u=!1;if(e.length>=c+3)switch(e.substring(c,c+2)){case`I:`:var d=r.addDirective(e.substring(c+2));return d&&t(d,e,c),[e.length];case`M:`:var f=this.setMeter(e.substring(c+2));return l.hasBeginMusic()&&f&&l.appendStartingElement(`meter`,o.iChar+c,o.iChar+e.length,f),[e.length];case`K:`:var p=a.parseKey(e.substring(c+2),l.hasBeginMusic());return p.foundClef&&l.hasBeginMusic()&&l.appendStartingElement(`clef`,o.iChar+c,o.iChar+e.length,o.clef),p.foundKey&&l.hasBeginMusic()&&l.appendStartingElement(`key`,o.iChar+c,o.iChar+e.length,a.fixKey(o.clef,o.key)),[e.length];case`P:`:return l.hasBeginMusic()&&l.appendElement(`part`,o.iChar+c,o.iChar+e.length,{title:e.substring(c+2)}),[e.length];case`L:`:return this.setDefaultLength(e,c+2,e.length),[e.length];case`Q:`:var m=e.indexOf(``,c+2);m===-1&&(m=e.length);var h=this.setTempo(e,c+2,m,o.iChar);return h.type===`delaySet`?l.appendElement(`tempo`,o.iChar+c,o.iChar+e.length,this.calcTempo(h.tempo)):h.type===`immediate`&&l.appendElement(`tempo`,o.iChar+c,o.iChar+e.length,h.tempo),[m,e[c],n.strip(e.substring(c+2))];case`V:`:return u=a.parseVoice(e,c+2,e.length),[e.length,e[c],n.strip(e.substring(c+2)),u];default:}return[0]};var d={A:`author`,B:`book`,C:`composer`,D:`discography`,F:`url`,G:`group`,I:`instruction`,N:`notes`,O:`origin`,R:`rhythm`,S:`source`,W:`unalignedWords`,Z:`transcription`};this.parseHeader=function(n){var u=d[n[0]],f=n.length-2,p=e.translateString(e.stripComment(n.substring(2)));if(u===`unalignedWords`||u===`notes`)l.addMetaTextArray(u,r.parseFontChangeLine(p),{startChar:o.iChar,endChar:o.iChar+n.length});else if(u!==void 0)l.addMetaText(u,r.parseFontChangeLine(p),{startChar:o.iChar,endChar:o.iChar+n.length});else{var m=o.iChar,h=m+n.length;switch(n[0]){case`H`:for(l.addMetaTextArray(`history`,r.parseFontChangeLine(p),{startChar:o.iChar,endChar:o.iChar+n.length}),n=e.peekLine();n&&n[1]!==`:`;)e.nextLine(),l.addMetaTextArray(`history`,r.parseFontChangeLine(e.translateString(e.stripComment(n))),{startChar:o.iChar,endChar:o.iChar+n.length}),n=e.peekLine();break;case`K`:this.resolveTempo();var g=a.parseKey(n.substring(2),!1);!o.is_in_header&&l.hasBeginMusic()&&(g.foundClef&&l.appendStartingElement(`clef`,m,h,o.clef),g.foundKey&&l.appendStartingElement(`key`,m,h,a.fixKey(o.clef,o.key))),o.is_in_header=!1;break;case`L`:this.setDefaultLength(n,2,n.length);break;case`M`:o.origMeter=o.meter=this.setMeter(n.substring(2));break;case`P`:o.is_in_header?l.addMetaText(`partOrder`,r.parseFontChangeLine(p),{startChar:o.iChar,endChar:o.iChar+n.length}):o.partForNextLine={title:p,startChar:m,endChar:h};break;case`Q`:var _=this.setTempo(n,2,n.length,o.iChar);_.type===`delaySet`?o.tempo=_.tempo:_.type===`immediate`&&(c.metaText.tempo?o.tempoForNextLine=[`tempo`,m,h,_.tempo]:c.metaText.tempo=_.tempo);break;case`T`:o.titlecaps&&(p=p.toUpperCase()),this.setTitle(r.parseFontChangeLine(e.theReverser(p)),f);break;case`U`:this.addUserDefinition(n,2,n.length);break;case`V`:if(a.parseVoice(n,2,n.length),!o.is_in_header)return{newline:!0};break;case`s`:return{symbols:!0};case`w`:return{words:!0};case`X`:break;case`E`:case`m`:t(`Ignored header`,n,0);break;default:return{regular:!0}}}return{}}};t.exports=ParseHeader})),b=e.n(((e,t)=>{t.exports.legalAccents=`trill,lowermordent,uppermordent,mordent,pralltriller,accent,fermata,invertedfermata,tenuto,0,1,2,3,4,5,+,wedge,open,thumb,snap,turn,roll,breath,shortphrase,mediumphrase,longphrase,segno,coda,D.S.,D.C.,fine,beambr1,beambr2,slide,marcato,upbow,downbow,/,//,///,////,trem1,trem2,trem3,trem4,turnx,invertedturn,invertedturnx,trill(,trill),arpeggio,xstem,mark,umarcato,style=normal,style=harmonic,style=rhythm,style=x,style=triangle,D.C.alcoda,D.C.alfine,D.S.alcoda,D.S.alfine,editorial,courtesy`.split(`,`),t.exports.volumeDecorations=[`p`,`pp`,`f`,`ff`,`mf`,`mp`,`ppp`,`pppp`,`fff`,`ffff`,`sfz`],t.exports.dynamicDecorations=[`crescendo(`,`crescendo)`,`diminuendo(`,`diminuendo)`,`glissando(`,`glissando)`,`~(`,`~)`],t.exports.accentPseudonyms=[[`<`,`accent`],[`>`,`accent`],[`tr`,`trill`],[`plus`,`+`],[`emphasis`,`accent`],[`^`,`umarcato`],[`marcato`,`umarcato`]],t.exports.accentDynamicPseudonyms=[[`<(`,`crescendo(`],[`<)`,`crescendo)`],[`>(`,`diminuendo(`],[`>)`,`diminuendo)`]],t.exports.nonDecorations=`ABCDEFGabcdefgxyzZ[]|^_{`,t.exports.durations=[.5,.75,.875,.9375,.96875,.984375,.25,.375,.4375,.46875,.484375,.4921875,.125,.1875,.21875,.234375,.2421875,.24609375,.0625,.09375,.109375,.1171875,.12109375,.123046875,.03125,.046875,.0546875,.05859375,.060546875,.0615234375,.015625,.0234375,.02734375,.029296875,.0302734375,.03076171875],t.exports.pitches={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11},t.exports.rests={x:`invisible`,X:`invisible-multimeasure`,y:`spacer`,z:`rest`,Z:`multimeasure`},t.exports.accMap={dblflat:`__`,flat:`_`,natural:`=`,sharp:`^`,dblsharp:`^^`,quarterflat:`_/`,quartersharp:`^/`},t.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}})),x=e.n(((e,t)=>{var n=_(),r=g(),a,o,c,l,u,d,{legalAccents:f,volumeDecorations:p,dynamicDecorations:m,accentPseudonyms:h,accentDynamicPseudonyms:y,nonDecorations:x,durations:S,pitches:C,rests:w,accMap:T,tripletQ:E}=b(),MusicParser=function(e,t,n,r,f,p){a=e,o=t,c=n,l=r,u=f,d=p,this.lineContinuation=!1},isInTie=function(e,t,n){if(e.inTie[t]===void 0)return!1;var r=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;return!!(e.inTie[t][r]&&(n.pitches!==void 0||n.rest.type!==`spacer`))},D={};MusicParser.prototype.parseMusic=function(e){d.resolveTempo(),c.is_in_header=!1;for(var t=0,n=c.iChar;a.isWhiteSpace(e[t])&&t<e.length;)t++;if(!(t===e.length||e[t]===`%`)){var r=c.start_new_line;c.continueall===void 0?c.start_new_line=!0:c.start_new_line=!1;var f=0,p=d.letter_to_body_header(e,t);p[0]>0&&(t+=p[0],p[1]===`V`&&this.startNewLine());for(var m=0;t<e.length;){var h=t;if(e[t]===`%`)break;var g=d.letter_to_inline_header(e,t,r);if(g[0]>0)t+=g[0],g[1]===`V`&&(r=!0);else{(!u.hasBeginMusic()||r&&!this.lineContinuation)&&(this.startNewLine(),r=!1);for(var _;;)if(_=a.eatWhiteSpace(e,t),_>0&&(t+=_),t>0&&e[t-1]===``&&(_=d.letter_to_body_header(e,t),_[0]>0&&(_[1]===`V`&&this.startNewLine(),t=_[0],c.start_new_line=!1)),_=letter_to_spacer(e,t),_[0]>0&&(t+=_[0]),_=letter_to_chord(e,t),_[0]>0){D.chord||=[];var y=a.translateString(_[1]);y=y.replace(/;/g,`
|
|
4
|
+
`);for(var b=!1,C=0;C<D.chord.length;C++)D.chord[C].position===_[2]&&(b=!0,D.chord[C].name+=`
|
|
5
|
+
`+y);b===!1&&(_[2]===null&&_[3]?D.chord.push({name:y,rel_position:_[3]}):D.chord.push({name:y,position:_[2]})),t+=_[0];var w=a.skipWhiteSpace(e.substring(t));w>0&&(D.force_end_beam_last=!0),t+=w}else if(_=x.indexOf(e[t])===-1?letter_to_accent(e,t):[0],_[0]>0)_[1]===null?t+1<e.length&&this.startNewLine():_[1].length>0&&(_[1].indexOf(`style=`)===0?D.style=_[1].substr(6):(D.decoration===void 0&&(D.decoration=[]),_[1]===`beambr1`?D.beambr=1:_[1]===`beambr2`?D.beambr=2:D.decoration.push(_[1]))),t+=_[0];else if(_=letter_to_grace(e,t),_[0]>0)D.gracenotes=_[1],t+=_[0];else break;if(_=letter_to_bar(e,t),_[0]>0){m=0,D.gracenotes!==void 0&&(D.rest={type:`spacer`},D.duration=.125,c.addFormattingOptions(D,l.formatting,`note`),u.appendElement(`note`,n+t,n+t+_[0],D),c.measureNotEmpty=!0,D={});var T={type:_[1]};T.type.length===0?o(`Unknown bar type`,e,t):(c.inEnding&&T.type!==`bar_thin`&&(T.endEnding=!0,c.inEnding=!1),_[2]&&(T.startEnding=_[2],c.inEnding&&(T.endEnding=!0),c.inEnding=!0,_[1]===`bar_right_repeat`?c.restoreStartEndingHoldOvers():c.duplicateStartEndingHoldOvers()),D.decoration!==void 0&&(T.decoration=D.decoration),D.chord!==void 0&&(T.chord=D.chord),T.startEnding&&c.barFirstEndingNum===void 0?c.barFirstEndingNum=c.currBarNumber:T.startEnding&&T.endEnding&&c.barFirstEndingNum?c.currBarNumber=c.barFirstEndingNum:T.endEnding&&(c.barFirstEndingNum=void 0),T.type!==`bar_invisible`&&c.measureNotEmpty&&isFirstVoice()&&(c.currBarNumber++,c.barNumbers&&c.currBarNumber%c.barNumbers===0&&(T.barNumber=c.currBarNumber)),c.addFormattingOptions(D,l.formatting,`bar`),u.appendElement(`bar`,n+h,n+t+_[0],T),c.measureNotEmpty=!1,D={}),t+=_[0]}else if(e[t]===`&`)_=letter_to_overlay(e,t),_[0]>0&&(u.appendElement(`overlay`,n,n+1,{}),t+=1,m++);else{if(_=letter_to_open_slurs_and_triplets(e,t),_.consumed>0&&(_.startSlur!==void 0&&(D.startSlur=_.startSlur),_.dottedSlur&&(D.dottedSlur=!0),_.triplet!==void 0&&(f>0?o(`Can't nest triplets`,e,t):(D.startTriplet=_.triplet,D.tripletMultiplier=_.tripletQ/_.triplet,D.tripletR=_.num_notes,f=_.num_notes===void 0?_.triplet:_.num_notes)),t+=_.consumed),e[t]===`[`){t++;for(var E=null,O=!1,k=!1;!k;){var A=letter_to_accent(e,t);A[0]>0&&(t+=A[0]);var j=getCoreNote(e,t,{},!1);if(j!==null&&j.pitch!==void 0)A[0]>0&&A[1].indexOf(`style=`)!==0&&(D.decoration===void 0&&(D.decoration=[]),D.decoration.push(A[1])),j.end_beam&&(D.end_beam=!0,delete j.end_beam),D.pitches===void 0?(D.duration=j.duration,D.pitches=[j]):D.pitches.push(j),delete j.duration,A[0]>0&&A[1].indexOf(`style=`)===0&&(D.pitches[D.pitches.length-1].style=A[1].substr(6)),c.inTieChord[D.pitches.length]&&(j.endTie=!0,c.inTieChord[D.pitches.length]=void 0),j.startTie&&(c.inTieChord[D.pitches.length]=!0),t=j.endChar,delete j.endChar;else if(e[t]===` `)o(`Spaces are not allowed in chords`,e,t),t++;else{if(t<e.length&&e[t]===`]`){t++,c.next_note_duration!==0&&(D.duration*=c.next_note_duration,c.next_note_duration=0),isInTie(c,m,D)&&(D.pitches.forEach(function(e){e.endTie=!0}),setIsInTie(c,m,!1)),f>0&&!(D.rest&&D.rest.type===`spacer`)&&(f--,f===0&&(D.endTriplet=!0));for(var M=!1;t<e.length&&!M;){switch(e[t]){case` `:case` `:addEndBeam(D);break;case`)`:D.endSlur===void 0?D.endSlur=1:D.endSlur++;break;case`-`:D.pitches.forEach(function(e){e.startTie={}}),setIsInTie(c,m,!0);break;case`>`:case`<`:var N=getBrokenRhythm(e,t);t+=N[0]-1,c.next_note_duration=N[2],E?E*=N[1]:E=N[1];break;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:case`/`:var P=a.getFraction(e,t);E=P.value,t=P.index;var F=e[t];F===` `&&(O=!0),F===`-`||F===`)`||F===` `||F===`<`||F===`>`?t--:M=!0;break;case`0`:E=0;break;default:M=!0;break}M||t++}}else o(`Expected ']' to end the chords`,e,t);D.pitches!==void 0&&(E!==null&&(D.duration*=E,O&&addEndBeam(D)),c.addFormattingOptions(D,l.formatting,`note`),u.appendElement(`note`,n+h,n+t,D),c.measureNotEmpty=!0,D={}),k=!0}}}else{var I={},L=getCoreNote(e,t,I,!0);I.endTie!==void 0&&setIsInTie(c,m,!0),L!==null&&(L.pitch===void 0?(D.rest=L.rest,L.rest.type===`multimeasure`&&isFirstVoice()&&(c.currBarNumber+=L.rest.text-1),L.endSlur!==void 0&&(D.endSlur=L.endSlur),L.endTie!==void 0&&(D.rest.endTie=L.endTie),L.startSlur!==void 0&&(D.startSlur=L.startSlur),L.startTie!==void 0&&(D.rest.startTie=L.startTie),D.startTie!==void 0&&(D.rest.startTie=D.startTie)):(D.pitches=[{}],L.accidental!==void 0&&(D.pitches[0].accidental=L.accidental),D.pitches[0].pitch=L.pitch,D.pitches[0].name=L.name,(L.midipitch||L.midipitch===0)&&(D.pitches[0].midipitch=L.midipitch),L.endSlur!==void 0&&(D.pitches[0].endSlur=L.endSlur),L.endTie!==void 0&&(D.pitches[0].endTie=L.endTie),L.startSlur!==void 0&&(D.pitches[0].startSlur=L.startSlur),D.startSlur!==void 0&&(D.pitches[0].startSlur=D.startSlur),D.dottedSlur!==void 0&&(D.pitches[0].dottedSlur=!0),L.startTie!==void 0&&(D.pitches[0].startTie=L.startTie),D.startTie!==void 0&&(D.pitches[0].startTie=D.startTie)),L.chord!==void 0&&(D.chord=L.chord),L.duration!==void 0&&(D.duration=L.duration),L.decoration!==void 0&&(D.decoration=L.decoration),L.graceNotes!==void 0&&(D.graceNotes=L.graceNotes),delete D.startSlur,delete D.dottedSlur,isInTie(c,m,D)&&(D.pitches===void 0?D.rest.type!==`spacer`&&(D.rest.endTie=!0):D.pitches[0].endTie=!0,setIsInTie(c,m,!1)),(L.startTie||D.startTie)&&setIsInTie(c,m,!0),t=L.endChar,f>0&&!(L.rest&&L.rest.type===`spacer`)&&(f--,f===0&&(D.endTriplet=!0)),L.end_beam&&addEndBeam(D),D.rest&&D.rest.type===`rest`&&D.duration===1&&durationOfMeasure(c)<=1&&(D.rest.type=`whole`,D.duration=durationOfMeasure(c)),D.duration<1&&S.indexOf(D.duration)===-1&&D.duration!==0&&(!D.rest||D.rest.type!==`spacer`)&&o(`Duration not representable: `+e.substring(h,t),e,t),c.addFormattingOptions(D,l.formatting,`note`),u.appendElement(`note`,n+h,n+t,D)||(this.startNewLine(),u.appendElement(`note`,n+h,n+t,D)),c.measureNotEmpty=!0,D={})}t===h&&(e[t]!==` `&&e[t]!=="`"&&o(`Unknown character ignored`,e,t),t++)}}}this.lineContinuation=e.indexOf(``)>=0||p[0]>0,this.lineContinuation||(D={})}};var setIsInTie=function(e,t,n){var r=e.currentVoice?e.currentVoice.staffNum*100+e.currentVoice.index:0;e.inTie[t]===void 0&&(e.inTie[t]=[]),e.inTie[t][r]=n},letter_to_chord=function(e,t){if(e[t]===`"`){var n=a.getBrackettedSubstring(e,t,5);if(n[2]||o(`Missing the closing quote while parsing the chord symbol`,e,t),n[0]>0&&n[1].length>0&&n[1][0]===`^`)n[1]=n[1].substring(1),n[2]=`above`;else if(n[0]>0&&n[1].length>0&&n[1][0]===`_`)n[1]=n[1].substring(1),n[2]=`below`;else if(n[0]>0&&n[1].length>0&&n[1][0]===`<`)n[1]=n[1].substring(1),n[2]=`left`;else if(n[0]>0&&n[1].length>0&&n[1][0]===`>`)n[1]=n[1].substring(1),n[2]=`right`;else if(n[0]>0&&n[1].length>0&&n[1][0]===`@`){n[1]=n[1].substring(1);var l=a.getFloat(n[1]);if(l.digits===0)return o(`Missing first position in absolutely positioned annotation.`,e,t),n[1]=n[1].replace(`@`,``),n[2]=`above`,n;if(n[1]=n[1].substring(l.digits),n[1][0]!==`,`)return o(`Missing comma absolutely positioned annotation.`,e,t),n[1]=n[1].replace(`@`,``),n[2]=`above`,n;n[1]=n[1].substring(1);var u=a.getFloat(n[1]);if(u.digits===0)return o(`Missing second position in absolutely positioned annotation.`,e,t),n[1]=n[1].replace(`@`,``),n[2]=`above`,n;n[1]=n[1].substring(u.digits);var d=a.skipWhiteSpace(n[1]);n[1]=n[1].substring(d),n[2]=null,n[3]={x:l.value,y:u.value}}else c.freegchord!==!0&&(n[1]=n[1].replace(/([ABCDEFG0-9])b/g,`$1♭`),n[1]=n[1].replace(/([ABCDEFG0-9])#/g,`$1♯`),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,`$1$2°$3`),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,`$1$2°`),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,`$1$2ø$3`),n[1]=n[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,`$1$2∆$3`)),n[2]=`default`,n[1]=r.chordName(c,n[1]);return n}return[0,``]},letter_to_grace=function(e,t){if(e[t]===`{`){var n=a.getBrackettedSubstring(e,t,1,`}`);n[2]||o(`Missing the closing '}' while parsing grace note`,e,t),e[t+n[0]]===`)`&&(n[0]++,n[1]+=`)`);for(var r=[],l=0,u=!1;l<n[1].length;){var d=!1;n[1][l]===`/`&&(d=!0,l++);var f=getCoreNote(n[1],l,{},!1);f===null?(n[1][l]===` `?r.length>0&&(r[r.length-1].endBeam=!0):o(`Unknown character '`+n[1][l]+`' while parsing grace note`,e,t),l++):(f.duration/=c.default_length*8,d&&(f.acciaccatura=!0),f.rest?o(`Rests not allowed as grace notes '`+n[1][l]+`' while parsing grace note`,e,t):r.push(f),u&&=(f.endTie=!0,!1),f.startTie&&(u=!0),l=f.endChar,delete f.endChar,f.end_beam&&(f.endBeam=!0,delete f.end_beam))}if(r.length)return[n[0],r]}return[0]};function letter_to_overlay(e,t){if(e[t]===`&`){for(var n=t;e[t]&&e[t]!==`:`&&e[t]!==`|`;)t++;return[t-n,e.substring(n+1,t)]}return[0]}function durationOfMeasure(e){var t=e.origMeter;return!t||t.type!==`specified`||!t.value||t.value.length===0?1:parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10)}var letter_to_accent=function(e,t){var n=c.macros[e[t]];if(n!==void 0)return(n[0]===`!`||n[0]===`+`)&&(n=n.substring(1)),(n[n.length-1]===`!`||n[n.length-1]===`+`)&&(n=n.substring(0,n.length-1)),f.includes(n)?[1,n]:p.includes(n)?(c.volumePosition===`hidden`&&(n=``),[1,n]):m.includes(n)?(c.dynamicPosition===`hidden`&&(n=``),[1,n]):(c.ignoredDecorations.includes(n)||o(`Unknown macro: `+n,e,t),[1,``]);switch(e[t]){case`.`:if(e[t+1]===`(`||e[t+1]===`-`)break;return[1,`staccato`];case`u`:return[1,`upbow`];case`v`:return[1,`downbow`];case`~`:return[1,`irishroll`];case`!`:case`+`:var r=a.getBrackettedSubstring(e,t,5);if(r[1].length>1&&(r[1][0]===`^`||r[1][0]===`_`)&&(r[1]=r[1].substring(1)),f.includes(r[1]))return r;if(p.includes(r[1]))return c.volumePosition===`hidden`&&(r[1]=``),r;if(m.includes(r[1]))return c.dynamicPosition===`hidden`&&(r[1]=``),r;var l=h.findIndex(function(e){return r[1]===e[0]});return l>=0?(r[1]=h[l][1],r):(l=y.findIndex(function(e){return r[1]===e[0]}),l>=0?(r[1]=y[l][1],c.dynamicPosition===`hidden`&&(r[1]=``),r):e[t]===`!`&&(r[0]===1||e[t+r[0]-1]!==`!`)?[1,null]:(o(`Unknown decoration: `+r[1],e,t),r[1]=``,r));case`H`:return[1,`fermata`];case`J`:return[1,`slide`];case`L`:return[1,`accent`];case`M`:return[1,`mordent`];case`O`:return[1,`coda`];case`P`:return[1,`pralltriller`];case`R`:return[1,`roll`];case`S`:return[1,`segno`];case`T`:return[1,`trill`]}return[0,0]},letter_to_spacer=function(e,t){for(var n=t;a.isWhiteSpace(e[t]);)t++;return[t-n]},letter_to_bar=function(e,t){var n=a.getBarLine(e,t);if(n.len===0)return[0,``];if(n.warn)return o(n.warn,e,t),[n.len,``];for(var r=0;r<e.length&&e[t+n.len+r]===` `;r++);var c=n.len;if(e[t+n.len+r]===`[`&&(n.len+=r+1),e[t+n.len]===`"`&&e[t+n.len-1]===`[`){var l=a.getBrackettedSubstring(e,t+n.len,5);return[n.len+l[0],n.token,l[1]]}var u=a.getTokenOf(e.substring(t+n.len),`1234567890-,`);return u.len===0||u.token[0]===`-`?[c,n.token]:[n.len+u.len,n.token,u.token]},letter_to_open_slurs_and_triplets=function(e,t){var n={},r=t;for(e[t]===`.`&&e[t+1]===`(`&&(n.dottedSlur=!0,t++);e[t]===`(`||a.isWhiteSpace(e[t]);)e[t]===`(`&&(t+1<e.length&&e[t+1]>=`2`&&e[t+1]<=`9`?(n.triplet===void 0?(n.triplet=e[t+1]-`0`,n.tripletQ=E[n.triplet],n.num_notes=n.triplet,t+2<e.length&&e[t+2]===`:`&&(t+3<e.length&&e[t+3]===`:`?t+4<e.length&&e[t+4]>=`1`&&e[t+4]<=`9`?(n.num_notes=e[t+4]-`0`,t+=3):o(`expected number after the two colons after the triplet to mark the duration`,e,t):t+3<e.length&&e[t+3]>=`1`&&e[t+3]<=`9`?(n.tripletQ=e[t+3]-`0`,t+4<e.length&&e[t+4]===`:`?t+5<e.length&&e[t+5]>=`1`&&e[t+5]<=`9`&&(n.num_notes=e[t+5]-`0`,t+=4):t+=2):o(`expected number after the triplet to mark the duration`,e,t))):o(`Can't nest triplets`,e,t),t++):n.startSlur===void 0?n.startSlur=1:n.startSlur++),t++;return n.consumed=t-r,n};MusicParser.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};c.partForNextLine.title&&(e.part=c.partForNextLine),e.clef=c.currentVoice&&c.staves[c.currentVoice.staffNum].clef!==void 0?Object.assign({},c.staves[c.currentVoice.staffNum].clef):Object.assign({},c.clef);var t=c.currentVoice?c.currentVoice.scoreTranspose:0;if(e.key=n.standardKey(c.key.root+c.key.acc+c.key.mode,c.key.root,c.key.acc,t),e.key.mode=c.key.mode,c.key.impliedNaturals&&(e.key.impliedNaturals=c.key.impliedNaturals),c.key.explicitAccidentals)for(var r=0;r<c.key.explicitAccidentals.length;r++){for(var a=!1,o=0;o<e.key.accidentals.length;o++)e.key.accidentals[o].note===c.key.explicitAccidentals[r].note&&(e.key.accidentals[o].acc=c.key.explicitAccidentals[r].acc,a=!0);a||e.key.accidentals.push(c.key.explicitAccidentals[r])}if(c.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,n.addPosToKey(e.clef,e.key),c.meter===null?c.currentVoice&&c.staves[c.currentVoice.staffNum].meter&&(e.meter=c.staves[c.currentVoice.staffNum].meter,c.staves[c.currentVoice.staffNum].meter=null):(c.currentVoice?(c.staves.forEach(function(e){e.meter=c.meter}),e.meter=c.staves[c.currentVoice.staffNum].meter,c.staves[c.currentVoice.staffNum].meter=null):e.meter=c.meter,c.meter=null),c.currentVoice&&c.currentVoice.name&&(e.name=c.currentVoice.name),c.vocalfont&&(e.vocalfont=c.vocalfont),c.tripletfont&&(e.tripletfont=c.tripletfont),c.gchordfont&&(e.gchordfont=c.gchordfont),c.style&&(e.style=c.style),c.currentVoice){var l=c.staves[c.currentVoice.staffNum];l.brace&&(e.brace=l.brace),l.bracket&&(e.bracket=l.bracket),l.connectBarLines&&(e.connectBarLines=l.connectBarLines),l.name&&(e.name=l.name[c.currentVoice.index]),l.subname&&(e.subname=l.subname[c.currentVoice.index]),c.currentVoice.stem&&(e.stem=c.currentVoice.stem),c.currentVoice.stafflines&&(e.stafflines=c.currentVoice.stafflines),c.currentVoice.staffscale&&(e.staffscale=c.currentVoice.staffscale),c.currentVoice.scale&&(e.scale=c.currentVoice.scale),c.currentVoice.color&&(e.color=c.currentVoice.color),c.currentVoice.style&&(e.style=c.currentVoice.style),c.currentVoice.transpose&&(e.clef.transpose=c.currentVoice.transpose),e.currentVoice=c.currentVoice;for(var d=Object.keys(c.voices),f=0;f<d.length;f++)e.currentVoice.staffNum===c.voices[d[f]].staffNum&&e.currentVoice.index===c.voices[d[f]].index&&(e.currentVoiceName=d[f])}c.barNumbers===0&&isFirstVoice()&&c.currBarNumber!==1&&(e.barNumber=c.currBarNumber),u.startNewLine(e),c.key.impliedNaturals&&delete c.key.impliedNaturals,c.partForNextLine={},c.tempoForNextLine.length===4&&u.appendElement(c.tempoForNextLine[0],c.tempoForNextLine[1],c.tempoForNextLine[2],c.tempoForNextLine[3]),c.tempoForNextLine=[]};var addEndBeam=function(e){return e.duration!==void 0&&e.duration<.25&&(e.end_beam=!0),e},getCoreNote=function(e,t,n,o){var isComplete=function(e){return e===`octave`||e===`duration`||e===`Zduration`||e===`broken_rhythm`||e===`end_slur`},d;e[t]===`.`&&e[t+1]===`-`&&(d=!0,t++);for(var f=`startSlur`,p=!1;;){switch(e[t]){case`(`:if(f===`startSlur`)n.startSlur===void 0?n.startSlur=1:n.startSlur++;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`)`:if(isComplete(f))n.endSlur===void 0?n.endSlur=1:n.endSlur++;else return null;break;case`^`:if(f===`startSlur`)n.accidental=`sharp`,f=`sharp2`;else if(f===`sharp2`)n.accidental=`dblsharp`,f=`pitch`;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`_`:if(f===`startSlur`)n.accidental=`flat`,f=`flat2`;else if(f===`flat2`)n.accidental=`dblflat`,f=`pitch`;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`=`:if(f===`startSlur`)n.accidental=`natural`,f=`pitch`;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`A`:case`B`:case`C`:case`D`:case`E`:case`F`:case`G`:case`a`:case`b`:case`c`:case`d`:case`e`:case`f`:case`g`:if(f===`startSlur`||f===`sharp2`||f===`flat2`||f===`pitch`){if(n.pitch=C[e[t]],n.pitch+=7*(c.currentVoice&&c.currentVoice.octave!==void 0?c.currentVoice.octave:c.octave),n.name=e[t],n.accidental&&(n.name=T[n.accidental]+n.name),r.note(c,n),f=`octave`,o&&c.next_note_duration!==0?(n.duration=c.default_length*c.next_note_duration,c.next_note_duration=0,p=!0):n.duration=c.default_length,c.clef&&c.clef.type===`perc`||c.currentVoice&&c.currentVoice.clef===`perc`){var m=e[t];n.accidental&&(m=T[n.accidental]+m),l.formatting&&l.formatting.midi&&l.formatting.midi.drummap&&(n.midipitch=l.formatting.midi.drummap[m])}}else if(isComplete(f))return n.endChar=t,n;else return null;break;case`,`:if(f===`octave`)n.pitch-=7,n.name+=`,`;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`'`:if(f===`octave`)n.pitch+=7,n.name+=`'`;else if(isComplete(f))return n.endChar=t,n;else return null;break;case`x`:case`X`:case`y`:case`z`:case`Z`:if(f===`startSlur`)n.rest={type:w[e[t]]},delete n.accidental,delete n.startSlur,delete n.startTie,delete n.endSlur,delete n.endTie,delete n.end_beam,delete n.grace_notes,n.rest.type.indexOf(`multimeasure`)>=0?(n.duration=l.getBarLength(),n.rest.text=1,f=`Zduration`):(o&&c.next_note_duration!==0?(n.duration=c.default_length*c.next_note_duration,c.next_note_duration=0,p=!0):n.duration=c.default_length,f=`duration`);else if(isComplete(f))return n.endChar=t,n;else return null;break;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:case`0`:case`/`:if(f===`octave`||f===`duration`){var h=a.getFraction(e,t);for(n.duration*=h.value,n.endChar=h.index;h.index<e.length&&(a.isWhiteSpace(e[h.index])||e[h.index]===`-`);)e[h.index]===`-`?n.startTie={}:n=addEndBeam(n),h.index++;t=h.index-1,f=`broken_rhythm`}else if(f===`sharp2`)n.accidental=`quartersharp`,f=`pitch`;else if(f===`flat2`)n.accidental=`quarterflat`,f=`pitch`;else if(f===`Zduration`){var g=a.getNumber(e,t);return n.duration=g.num*l.getBarLength(),n.rest.text=g.num,n.endChar=g.index,n}else return null;break;case`-`:if(f===`startSlur`)u.addTieToLastNote(d),n.endTie=!0;else if(f===`octave`||f===`duration`||f===`end_slur`)if(n.startTie={},!p&&o)f=`broken_rhythm`;else return a.isWhiteSpace(e[t+1])&&addEndBeam(n),n.endChar=t+1,n;else if(f===`broken_rhythm`)return n.endChar=t,n;else return null;break;case` `:case` `:if(isComplete(f)){n.end_beam=!0,d=!1;do e[t]===`.`&&e[t+1]===`-`&&(d=!0,t++),e[t]===`-`&&(n.startTie={},d&&(n.startTie.style=`dotted`)),t++;while(t<e.length&&(a.isWhiteSpace(e[t])||e[t]===`-`)||e[t]===`.`&&e[t+1]===`-`);if(n.endChar=t,!p&&o&&(e[t]===`<`||e[t]===`>`))t--,f=`broken_rhythm`;else return n}else return null;break;case`>`:case`<`:if(isComplete(f))if(o){var _=getBrokenRhythm(e,t);t+=_[0]-1,c.next_note_duration=_[2],n.duration=_[1]*n.duration,f=`end_slur`}else return n.endChar=t,n;else return null;break;default:return isComplete(f)?(n.endChar=t,n):null}if(t++,t===e.length)return isComplete(f)?(n.endChar=t,n):null}return null},getBrokenRhythm=function(e,t){switch(e[t]){case`>`:return t<e.length-2&&e[t+1]===`>`&&e[t+2]===`>`?[3,1.875,.125]:t<e.length-1&&e[t+1]===`>`?[2,1.75,.25]:[1,1.5,.5];case`<`:return t<e.length-2&&e[t+1]===`<`&&e[t+2]===`<`?[3,.125,1.875]:t<e.length-1&&e[t+1]===`<`?[2,.25,1.75]:[1,.5,1.5]}return null};function isFirstVoice(){return c.currentVoice===void 0||c.currentVoice.staffNum===0&&c.currentVoice.index===0}t.exports=MusicParser})),S=e.n(((e,t)=>{var n=u(),Tokenizer=function(e,t){this.lineIndex=0,this.lines=e,this.multilineVars=t,this.skipWhiteSpace=function(e){for(var t=0;t<e.length;t++)if(!this.isWhiteSpace(e[t]))return t;return e.length};var finished=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var n=t;n<e.length;n++)if(!this.isWhiteSpace(e[n]))return n-t;return n-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(finished(e,t))return{len:0};switch(e[t]){case`A`:return{len:t+1,token:`A`};case`B`:return{len:t+1,token:`B`};case`C`:return{len:t+1,token:`C`};case`D`:return{len:t+1,token:`D`};case`E`:return{len:t+1,token:`E`};case`F`:return{len:t+1,token:`F`};case`G`:return{len:t+1,token:`G`}}return{len:0}},this.getSharpFlat=function(e){if(e===`bass`)return{len:0};switch(e[0]){case`#`:return{len:1,token:`#`};case`b`:return{len:1,token:`b`}}return{len:0}},this.getMode=function(e){var skipAlpha=function(e,t){for(;t<e.length&&(e[t]>=`a`&&e[t]<=`z`||e[t]>=`A`&&e[t]<=`Z`);)t++;return t},t=this.skipWhiteSpace(e);if(finished(e,t))return{len:0};var n=e.substring(t,t+3).toLowerCase();switch((n.length>1&&n[1]===` `||n[1]===`^`||n[1]===`_`||n[1]===`=`)&&(n=n[0]),n){case`mix`:return{len:skipAlpha(e,t),token:`Mix`};case`dor`:return{len:skipAlpha(e,t),token:`Dor`};case`phr`:return{len:skipAlpha(e,t),token:`Phr`};case`lyd`:return{len:skipAlpha(e,t),token:`Lyd`};case`loc`:return{len:skipAlpha(e,t),token:`Loc`};case`aeo`:return{len:skipAlpha(e,t),token:`m`};case`maj`:return{len:skipAlpha(e,t),token:``};case`ion`:return{len:skipAlpha(e,t),token:``};case`min`:return{len:skipAlpha(e,t),token:`m`};case`m`:return{len:skipAlpha(e,t),token:`m`}}return{len:0}},this.getClef=function(e,t){var r=e,a=this.skipWhiteSpace(e);if(finished(e,a))return{len:0};var o=!1,c=e.substring(a);if(n.startsWith(c,`clef=`)&&(o=!0,c=c.substring(5),a+=5),c.length===0&&o)return{len:a+5,warn:`No clef specified: `+r};var l=this.skipWhiteSpace(c);if(finished(c,l))return{len:0};l>0&&(a+=l,c=c.substring(l));var u=null;if(n.startsWith(c,`treble`))u=`treble`;else if(n.startsWith(c,`bass3`))u=`bass3`;else if(n.startsWith(c,`bass`))u=`bass`;else if(n.startsWith(c,`tenor`))u=`tenor`;else if(n.startsWith(c,`alto2`))u=`alto2`;else if(n.startsWith(c,`alto1`))u=`alto1`;else if(n.startsWith(c,`alto`))u=`alto`;else if(!t&&o&&n.startsWith(c,`none`))u=`none`;else if(n.startsWith(c,`perc`))u=`perc`;else if(!t&&o&&n.startsWith(c,`C`))u=`tenor`;else if(!t&&o&&n.startsWith(c,`F`))u=`bass`;else if(!t&&o&&n.startsWith(c,`G`))u=`treble`;else return{len:a+5,warn:`Unknown clef specified: `+r};return c=c.substring(u.length),l=this.isMatch(c,`+8`),l>0?u+=`+8`:(l=this.isMatch(c,`-8`),l>0&&(u+=`-8`)),{len:a+u.length,token:u,explicit:o}},this.getBarLine=function(e,t){switch(e[t]){case`]`:switch(++t,e[t]){case`|`:return{len:2,token:`bar_thick_thin`};case`[`:return++t,e[t]>=`1`&&e[t]<=`9`||e[t]===`"`?{len:2,token:`bar_invisible`}:{len:1,warn:`Unknown bar symbol`};default:return{len:1,token:`bar_invisible`}}break;case`:`:switch(++t,e[t]){case`:`:return{len:2,token:`bar_dbl_repeat`};case`|`:switch(++t,e[t]){case`]`:switch(++t,e[t]){case`|`:return++t,e[t]===`:`?{len:5,token:`bar_dbl_repeat`}:{len:3,token:`bar_right_repeat`};default:return{len:3,token:`bar_right_repeat`}}break;case`|`:return++t,e[t]===`:`?{len:4,token:`bar_dbl_repeat`}:{len:3,token:`bar_right_repeat`};default:return{len:2,token:`bar_right_repeat`}}break;default:return{len:1,warn:`Unknown bar symbol`}}break;case`[`:if(++t,e[t]===`|`)switch(++t,e[t]){case`:`:return{len:3,token:`bar_left_repeat`};case`]`:return{len:3,token:`bar_invisible`};default:return{len:2,token:`bar_thick_thin`}}else return e[t]>=`1`&&e[t]<=`9`||e[t]===`"`?{len:1,token:`bar_invisible`}:{len:0};break;case`|`:switch(++t,e[t]){case`]`:return{len:2,token:`bar_thin_thick`};case`|`:return++t,e[t]===`:`?{len:3,token:`bar_left_repeat`}:{len:2,token:`bar_thin_thin`};case`:`:for(var n=0;e[t+n]===`:`;)n++;return{len:1+n,token:`bar_left_repeat`};default:return{len:1,token:`bar_thin`}}break}return{len:0}},this.getTokenOf=function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])<0)return{len:n,token:e.substring(0,n)};return{len:n,token:e}},this.getToken=function(e,t,n){for(var r=t;r<n&&!this.isWhiteSpace(e[r]);)r++;return e.substring(t,r)},this.isMatch=function(e,t){var r=this.skipWhiteSpace(e);return finished(e,r)?0:n.startsWith(e.substring(r),t)?r+t.length:0},this.getPitchFromTokens=function(e){var t={};if(t.position={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11}[e[0].token],t.position===void 0)return{warn:`Pitch expected. Found: `+e[0].token};for(e.shift();e.length;)switch(e[0].token){case`,`:t.position-=7,e.shift();break;case`'`:t.position+=7,e.shift();break;default:return t}return t},this.getKeyAccidentals2=function(e){for(var t;e.length>0;){var n;if(e[0].token===`^`){if(n=`sharp`,e.shift(),e.length===0)return{accs:t,warn:`Expected note name after `+n};switch(e[0].token){case`^`:n=`dblsharp`,e.shift();break;case`/`:n=`quartersharp`,e.shift();break}}else if(e[0].token===`=`)n=`natural`,e.shift();else if(e[0].token===`_`){if(n=`flat`,e.shift(),e.length===0)return{accs:t,warn:`Expected note name after `+n};switch(e[0].token){case`_`:n=`dblflat`,e.shift();break;case`/`:n=`quarterflat`,e.shift();break}}else return{accs:t};if(e.length===0)return{accs:t,warn:`Expected note name after `+n};switch(e[0].token[0]){case`a`:case`b`:case`c`:case`d`:case`e`:case`f`:case`g`:case`A`:case`B`:case`C`:case`D`:case`E`:case`F`:case`G`:t===void 0&&(t=[]),t.push({acc:n,note:e[0].token[0]}),e[0].token.length===1?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:`Expected note name after `+n+` Found: `+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(e){var t={"^":`sharp`,"^^":`dblsharp`,"=":`natural`,_:`flat`,__:`dblflat`,"_/":`quarterflat`,"^/":`quartersharp`},n=this.skipWhiteSpace(e);if(finished(e,n))return{len:0};var r=null;switch(e[n]){case`^`:case`_`:case`=`:r=e[n];break;default:return{len:0}}if(n++,finished(e,n))return{len:1,warn:`Expected note name after accidental`};switch(e[n]){case`a`:case`b`:case`c`:case`d`:case`e`:case`f`:case`g`:case`A`:case`B`:case`C`:case`D`:case`E`:case`F`:case`G`:return{len:n+1,token:{acc:t[r],note:e[n]}};case`^`:case`_`:case`/`:if(r+=e[n],n++,finished(e,n))return{len:2,warn:`Expected note name after accidental`};switch(e[n]){case`a`:case`b`:case`c`:case`d`:case`e`:case`f`:case`g`:case`A`:case`B`:case`C`:case`D`:case`E`:case`F`:case`G`:return{len:n+1,token:{acc:t[r],note:e[n]}};default:return{len:2,warn:`Expected note name after accidental`}}break;default:return{len:1,warn:`Expected note name after accidental`}}},this.isWhiteSpace=function(e){return e===` `||e===` `||e===``},this.getMeat=function(e,t,n){var r=e.indexOf(`%`,t);for(r>=0&&r<n&&(n=r);t<n&&(e[t]===` `||e[t]===` `||e[t]===``);)t++;for(;t<n&&(e[n-1]===` `||e[n-1]===` `||e[n-1]===``);)n--;return{start:t,end:n}};var isLetter=function(e){return e>=`A`&&e<=`Z`||e>=`a`&&e<=`z`},isNumber=function(e){return e>=`0`&&e<=`9`};this.tokenize=function(e,t,n,r){var a=this.getMeat(e,t,n);t=a.start,n=a.end;for(var o=[],c;t<n;){if(e[t]===`"`){for(c=t+1;c<n&&e[c]!==`"`;)c++;o.push({type:`quote`,token:e.substring(t+1,c),start:t+1,end:c}),c++}else if(isLetter(e[t])){if(c=t+1,r)for(;c<n&&!this.isWhiteSpace(e[c]);)c++;else for(;c<n&&isLetter(e[c]);)c++;o.push({type:`alpha`,token:e.substring(t,c),continueId:isNumber(e[c]),start:t,end:c}),t=c+1}else if(e[t]===`.`&&isNumber(e[c+1])){c=t+1;for(var l=null,u=null;c<n&&isNumber(e[c]);)c++;u=parseFloat(e.substring(t,c)),o.push({type:`number`,token:e.substring(t,c),intt:l,floatt:u,continueId:isLetter(e[c]),start:t,end:c}),t=c+1}else if(isNumber(e[t])||e[t]===`-`&&isNumber(e[c+1])){c=t+1;for(var d=null,f=null;c<n&&isNumber(e[c]);)c++;if(e[c]===`.`&&isNumber(e[c+1]))for(c++;c<n&&isNumber(e[c]);)c++;else d=parseInt(e.substring(t,c));f=parseFloat(e.substring(t,c)),o.push({type:`number`,token:e.substring(t,c),intt:d,floatt:f,continueId:isLetter(e[c]),start:t,end:c}),t=c+1}else e[t]===` `||e[t]===` `||o.push({type:`punct`,token:e[t],start:t,end:t+1}),c=t+1;t=c}return o},this.getVoiceToken=function(e,t,n){for(var r=t;r<n&&this.isWhiteSpace(e[r])||e[r]===`=`;)r++;if(e[r]===`"`){var a=e.indexOf(`"`,r+1);return a===-1||a>=n?{len:1,err:`Missing close quote`}:{len:a-t+1,token:this.translateString(e.substring(r+1,a))}}else{for(var o=r;o<n&&!this.isWhiteSpace(e[o])&&e[o]!==`=`;)o++;return{len:o-t+1,token:e.substring(r,o)}}};var r={"`a":`à`,"'a":`á`,"^a":`â`,"~a":`ã`,'"a':`ä`,oa:`å`,aa:`å`,"=a":`ā`,ua:`ă`,";a":`ą`,"`e":`è`,"'e":`é`,"^e":`ê`,'"e':`ë`,"=e":`ē`,ue:`ĕ`,";e":`ę`,".e":`ė`,"`i":`ì`,"'i":`í`,"^i":`î`,'"i':`ï`,"=i":`ī`,ui:`ĭ`,";i":`į`,"`o":`ò`,"'o":`ó`,"^o":`ô`,"~o":`õ`,'"o':`ö`,"=o":`ō`,uo:`ŏ`,"/o":`ø`,"`u":`ù`,"'u":`ú`,"^u":`û`,"~u":`ũ`,'"u':`ü`,ou:`ů`,"=u":`ū`,uu:`ŭ`,";u":`ų`,"`A":`À`,"'A":`Á`,"^A":`Â`,"~A":`Ã`,'"A':`Ä`,oA:`Å`,AA:`Å`,"=A":`Ā`,uA:`Ă`,";A":`Ą`,"`E":`È`,"'E":`É`,"^E":`Ê`,'"E':`Ë`,"=E":`Ē`,uE:`Ĕ`,";E":`Ę`,".E":`Ė`,"`I":`Ì`,"'I":`Í`,"^I":`Î`,"~I":`Ĩ`,'"I':`Ï`,"=I":`Ī`,uI:`Ĭ`,";I":`Į`,".I":`İ`,"`O":`Ò`,"'O":`Ó`,"^O":`Ô`,"~O":`Õ`,'"O':`Ö`,"=O":`Ō`,uO:`Ŏ`,"/O":`Ø`,"`U":`Ù`,"'U":`Ú`,"^U":`Û`,"~U":`Ũ`,'"U':`Ü`,oU:`Ů`,"=U":`Ū`,uU:`Ŭ`,";U":`Ų`,ae:`æ`,AE:`Æ`,oe:`œ`,OE:`Œ`,ss:`ß`,"'c":`ć`,"^c":`ĉ`,uc:`č`,cc:`ç`,".c":`ċ`,cC:`Ç`,"'C":`Ć`,"^C":`Ĉ`,uC:`Č`,".C":`Ċ`,"~N":`Ñ`,"~n":`ñ`,"=s":`š`,vs:`š`,DH:`Ð`,dh:`ð`,HO:`Ő`,Ho:`ő`,HU:`Ű`,Hu:`ű`,"'Y":`Ý`,"'y":`ý`,"^Y":`Ŷ`,"^y":`ŷ`,'"Y':`Ÿ`,'"y':`ÿ`,vS:`Š`,vZ:`Ž`,vz:`ž`},a={"#":`♯`,b:`♭`,"=":`♮`},o={201:`♯`,202:`♭`,203:`♮`,241:`¡`,242:`¢`,252:`a`,262:`2`,272:`o`,302:`Â`,312:`Ê`,322:`Ò`,332:`Ú`,342:`â`,352:`ê`,362:`ò`,372:`ú`,243:`£`,253:`«`,263:`3`,273:`»`,303:`Ã`,313:`Ë`,323:`Ó`,333:`Û`,343:`ã`,353:`ë`,363:`ó`,373:`û`,244:`¤`,254:`¬`,264:` ́`,274:`1⁄4`,304:`Ä`,314:`Ì`,324:`Ô`,334:`Ü`,344:`ä`,354:`ì`,364:`ô`,374:`ü`,245:`¥`,255:`-`,265:`μ`,275:`1⁄2`,305:`Å`,315:`Í`,325:`Õ`,335:`Ý`,345:`å`,355:`í`,365:`õ`,375:`ý`,246:`¦`,256:`®`,266:`¶`,276:`3⁄4`,306:`Æ`,316:`Î`,326:`Ö`,336:`Þ`,346:`æ`,356:`î`,366:`ö`,376:`þ`,247:`§`,257:` ̄`,267:`·`,277:`¿`,307:`Ç`,317:`Ï`,327:`×`,337:`ß`,347:`ç`,357:`ï`,367:`÷`,377:`ÿ`,250:` ̈`,260:`°`,270:` ̧`,300:`À`,310:`È`,320:`Ð`,330:`Ø`,340:`à`,350:`è`,360:`ð`,370:`ø`,251:`©`,261:`±`,271:`1`,301:`Á`,311:`É`,321:`Ñ`,331:`Ù`,341:`á`,351:`é`,361:`ñ`,371:`ù`};this.translateString=function(e){var t=e.split(`\\`);if(t.length===1)return e;var n=null;return t.forEach(function(e){if(n===null)n=e;else{var t=r[e.substring(0,2)];t===void 0?(t=o[e.substring(0,3)],t===void 0?(t=a[e.substring(0,1)],t===void 0?n+=`\\`+e:n+=t+e.substring(1)):n+=t+e.substring(3)):n+=t+e.substring(2)}}),n},this.getNumber=function(e,t){for(var n=0;t<e.length;)switch(e[t]){case`0`:n*=10,t++;break;case`1`:n=n*10+1,t++;break;case`2`:n=n*10+2,t++;break;case`3`:n=n*10+3,t++;break;case`4`:n=n*10+4,t++;break;case`5`:n=n*10+5,t++;break;case`6`:n=n*10+6,t++;break;case`7`:n=n*10+7,t++;break;case`8`:n=n*10+8,t++;break;case`9`:n=n*10+9,t++;break;default:return{num:n,index:t}}return{num:n,index:t}},this.getFraction=function(e,t){var n=1,r=1;if(e[t]!==`/`){var a=this.getNumber(e,t);n=a.num,t=a.index}if(e[t]===`/`)if(t++,e[t]===`/`){for(var o=.5;e[t++]===`/`;)o/=2;return{value:n*o,index:t-1}}else{var c=t,l=this.getNumber(e,t);l.num===0&&c===t&&(l.num=2),l.num!==0&&(r=l.num),t=l.index}return{value:n/r,index:t}};function getTitleNumber(e){let t=/^(\d+)\./.exec(e);return t?t[1]:null}var c=[{match:/,\s*[Tt]he$/,replace:`The `},{match:/,\s*[Aa]$/,replace:`A `},{match:/,\s*[Aa]n$/,replace:`An `}];this.theReverser=function(e){for(var t=0;t<c.length;t++){var n=c[t],r=e.match(n.match);if(r){var a=getTitleNumber(e);a&&(e=e.replace(a+`.`,``),e=e.trim());var o=r[0].length,l=n.replace+e.substring(0,e.length-o);return a&&(l=a+`. `+l),l}}return e},this.stripComment=function(e){var t=e.indexOf(`%`);return t>=0?n.strip(e.substring(0,t)):n.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var n=``+t;return{value:t,digits:e.indexOf(n)+n.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var n=``+t;return{value:t,digits:e.indexOf(n)+n.length}},this.getMeasurement=function(e){if(e.length===0)return{used:0};var t=1,n=``;if(e[0].token===`-`)e.shift(),n=`-`,t++;else if(e[0].type!==`number`)return{used:0};if(n+=e.shift().token,e.length===0)return{used:1,value:parseInt(n)};var r=e.shift();if(r.token===`.`){if(t++,e.length===0)return{used:t,value:parseInt(n)};if(e[0].type===`number`&&(r=e.shift(),n=n+`.`+r.token,t++,e.length===0))return{used:t,value:parseFloat(n)};r=e.shift()}switch(r.token){case`pt`:return{used:t+1,value:parseFloat(n)};case`px`:return{used:t+1,value:parseFloat(n)};case`cm`:return{used:t+1,value:parseFloat(n)/2.54*72};case`in`:return{used:t+1,value:parseFloat(n)*72};default:return e.unshift(r),{used:t,value:parseFloat(n)}}};var substInChord=function(e){return e=e.replace(/\\n/g,`
|
|
6
|
+
`),e=e.replace(/\\"/g,`"`),e};this.getBrackettedSubstring=function(e,t,n,r){for(var a=r||e[t],o=t+1,c=!1;o<e.length&&(c||e[o]!==a);)c=e[o]===`\\`,++o;return e[o]===a?[o-t+1,substInChord(e.substring(t+1,o)),!0]:(o=t+n,o>e.length-1&&(o=e.length-1),[o-t+1,substInChord(e.substring(t+1,o)),!1])}};Tokenizer.prototype.peekLine=function(){return this.lines[this.lineIndex]},Tokenizer.prototype.nextLine=function(){if(this.lineIndex>0&&(this.multilineVars.iChar+=this.lines[this.lineIndex-1].length+1),this.lineIndex<this.lines.length){var e=this.lines[this.lineIndex];return this.lineIndex++,e}return null},t.exports=Tokenizer})),C=e.n(((e,t)=>{function wrapLines(e,t,n){if(!(!t||e.lines.length===0)){var r=e.deline({lineBreaks:!1}),a=findLineBreaks(r,t);e.lines=addLineBreaks(r,a,n),e.lineBreaks=a}}function addLineBreaks(e,t,n){for(var r=[],a=[],o=[],c=1,l=0;l<t.length;l++){var u=t[l];if(e[u.ogLine].staff){var d=e[u.ogLine].staff[u.staff];if(r[u.line]||(r[u.line]={staff:[]}),!r[u.line].staff[u.staff]){r[u.line].staff[u.staff]={voices:[]},n!==void 0&&u.staff===0&&u.line>0&&(r[u.line].staff[u.staff].barNumber=c);for(var f=Object.keys(d),p=0;p<f.length;p++){var m=f[p]===`voices`;f[p]===`meter`&&u.line!==0&&(m=!0),m||(r[u.line].staff[u.staff][f[p]]=d[f[p]])}a[u.staff]&&(r[u.line].staff[u.staff].key=a[u.staff])}r[u.line].staff[u.staff].voices[u.voice]||(r[u.line].staff[u.staff].voices[u.voice]=[]),r[u.line].staff[u.staff].voices[u.voice]=e[u.ogLine].staff[u.staff].voices[u.voice].slice(u.start,u.end+1),o[u.staff*10+u.voice]&&r[u.line].staff[u.staff].voices[u.voice].unshift({el_type:`stem`,direction:o[u.staff*10+u.voice].direction});for(var h=r[u.line].staff[u.staff].voices[u.voice],g=h.length-1;g>=0;g--)if(h[g].el_type===`key`){a[u.staff]={root:h[g].root,acc:h[g].acc,mode:h[g].mode,accidentals:h[g].accidentals.filter(function(e){return e.acc!==`natural`})};break}for(g=h.length-1;g>=0;g--)if(h[g].el_type===`stem`){o[u.staff*10+u.voice]={direction:h[g].direction};break}if(n!==void 0&&u.staff===0&&u.voice===0)for(g=0;g<h.length;g++)h[g].el_type===`bar`&&(c++,g===h.length-1?delete h[g].barNumber:h[g].barNumber=c)}else r[u.line]=e[u.ogLine]}for(var _=0;_<r.length;_++)r[_].staff&&(r[_].staff=r[_].staff.filter(function(e){return e!=null}));return r}function findLineBreaks(e,t){for(var n=[],r=0,a=0,o=0,c=0;c<e.length;c++){var l=e[c];if(l.staff){var u=a,d=t[r];r++;for(var f=0;f<l.staff.length;f++)for(var p=l.staff[f],m=0;m<p.voices.length;m++){o=u;for(var h=0,g=0,_=p.voices[m],y=0,b=0;b<_.length;b++)_[b].el_type===`bar`&&(d[g]===h&&(n.push({ogLine:c,line:o,staff:f,voice:m,start:y,end:b}),y=b+1,o++,a=Math.max(a,o),g++),h++);n.push({ogLine:c,line:o,staff:f,voice:m,start:y,end:_.length}),o++,a=Math.max(a,o)}}else n.push({ogLine:c,line:o}),o++,a=Math.max(a,o)}return n}function freeFormLineBreaks(e,t){for(var n=[],r=[],a=0,o=0;o<e.length;o++){var c=e[o],l=a+c;l<t?a=l:t-a<l-t&&a>0?(n.push(o-1),r.push(Math.round(a-c)),a=c):o<e.length-1&&(n.push(o),r.push(Math.round(a)),a=0)}return r.push(Math.round(a)),{lineBreaks:n,totals:r}}function clone(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function oneTry(e,t,n,r,a,o,c,l,u,d,f){for(var p=d;p<e.length;p++){var m=e[p];n+=m,r+=m;var h=Math.abs(n-t[l]);if(Math.abs(h-o)<t[0]/10)if(h<o){var g=clone(a),_=clone(u);_.push(p-1),g.push(r-m),f.push({accumulator:n,lineAccumulator:m,lineWidths:g,lastVariance:Math.abs(n-t[l+1]),highestVariance:Math.max(c,o),currLine:l+1,lineBreaks:_,startIndex:p+1})}else h>o&&p<e.length-1&&(g=clone(a),_=clone(u),f.push({accumulator:n,lineAccumulator:r,lineWidths:g,lastVariance:h,highestVariance:Math.max(c,h),currLine:l,lineBreaks:_,startIndex:p+1}));h>o?(u.push(p-1),l++,c=Math.max(c,o),o=Math.abs(n-t[l]),a.push(r-m),r=m):o=h}a.push(r)}function optimizeLineWidths(e,t,n,r){for(var a=Math.ceil(e.total/t),o=Math.floor(e.total/a),c=[],l=0;l<a;l++)c.push(o*(l+1));var u=[];u.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var d=0;d<u.length;)oneTry(e.measureWidths,c,u[d].accumulator,u[d].lineAccumulator,u[d].lineWidths,u[d].lastVariance,u[d].highestVariance,u[d].currLine,u[d].lineBreaks,u[d].startIndex,u),d++;for(l=0;l<u.length;l++){var f=u[l];f.variances=[],f.aveVariance=0;for(var p=0;p<f.lineWidths.length;p++){var m=f.lineWidths[p];f.variances.push(m-c[0]),f.aveVariance+=Math.abs(m-c[0])}f.aveVariance/=f.lineWidths.length,r.attempts.push({type:`optimizeLineWidths`,lineBreaks:f.lineBreaks,variances:f.variances,aveVariance:f.aveVariance,widths:e.measureWidths})}var h=9999999,g=-1;for(l=0;l<u.length;l++)f=u[l],f.aveVariance<h&&(h=f.aveVariance,g=l);return{failed:!1,lineBreaks:u[g].lineBreaks,variance:u[g].highestVariance}}function fixedMeasureLineBreaks(e,t,n){for(var r=[],a=[],o=0,c=!1,l=0;l<e.length;l++)o+=e[l],o>t&&(c=!0),l%n===n-1&&(l!==e.length-1&&r.push(l),a.push(Math.round(o)),o=0);return{failed:c,totals:a,lineBreaks:r}}function getRevisedTuneParams(e,t,n){var r={lineBreaks:e,staffwidth:t};for(var a in n)n.hasOwnProperty(a)&&a!==`wrap`&&a!==`staffwidth`&&(r[a]=n[a]);return{revisedParams:r}}function calcLineWraps(e,t,n){if(t.length===0||n.staffwidth<t[0].left)return{reParse:!1,explanation:`Staff width is narrower than the margin`,revisedParams:n};var r=n.scale?Math.max(n.scale,.1):1,a=n.wrap.minSpacing?Math.max(parseFloat(n.wrap.minSpacing),1):1,o=n.wrap.minSpacingLimit?Math.max(parseFloat(n.wrap.minSpacingLimit),1):a-.1,c=n.wrap.maxSpacing?Math.max(parseFloat(n.wrap.maxSpacing),1):void 0;n.wrap.lastLineLimit&&!c&&(c=Math.max(parseFloat(n.wrap.lastLineLimit),1));for(var l=n.wrap.preferredMeasuresPerLine?Math.max(parseInt(n.wrap.preferredMeasuresPerLine,10),0):void 0,u=[],d=[],f=0;f<t.length;f++){var p=t[f],m=n.staffwidth-p.left,h=m/a/r,g=m/c/r,_=m/o/r,y={widths:p,lineBreakPoint:h,minLineSize:g,attempts:[],staffWidth:n.staffwidth,minWidth:Math.round(_)},b=null;if(l){var x=fixedMeasureLineBreaks(p.measureWidths,h,l);y.attempts.push({type:`Fixed Measures Per Line`,preferredMeasuresPerLine:l,lineBreaks:x.lineBreaks,failed:x.failed,totals:x.totals}),x.failed||(b=x.lineBreaks)}if(!b){var S=freeFormLineBreaks(p.measureWidths,h);y.attempts.push({type:`Free Form`,lineBreaks:S.lineBreaks,totals:S.totals}),b=S.lineBreaks,b.length>0&&p.measureWidths.length<25&&(S=optimizeLineWidths(p,h,b,y),y.attempts.push({type:`Optimize`,failed:S.failed,reason:S.reason,lineBreaks:S.lineBreaks,totals:S.totals}),S.failed||(b=S.lineBreaks))}u.push(b),d.push(y)}var C=n.staffwidth,w=getRevisedTuneParams(u,C,n);return w.explanation=d,w.reParse=!0,w}t.exports={wrapLines,calcLineWraps}})),w=e.n(((e,t)=>{var n={};n.FONTEM=360,n.FONTSIZE=30,n.STEP=n.FONTSIZE*93/720,n.SPACE=10,n.TOPNOTE=15,n.STAVEHEIGHT=100,n.INDENT=50,t.exports=n})),T=e.n(((e,t)=>{var sequence,n=u();(function(){"use strict";var e=1,t=128;sequence=function(r,a){a||={};var o,c=a.program||0,l=a.midiTranspose||0;r.visualTranspose&&(l-=r.visualTranspose);var u=a.channel||0,d=!1,f=a.drum||``,p=a.drumBars||1,m=a.drumIntro||0,h=f!==``,g=!!a.drumOff,_=[],y=50;c=parseInt(c,10),l=parseInt(l,10),u=parseInt(u,10),u===10&&(c=t),f=f.split(` `),p=parseInt(p,10),m=parseInt(m,10);var b=r.formatting.bagpipes;b&&(c=71);var x=[];if(r.formatting.midi){var S=r.formatting.midi;S.program&&S.program.length>0&&(c=S.program[0],S.program.length>1&&(c=S.program[1],u=S.program[0]),d=!0),S.transpose&&(l=S.transpose[0]),S.channel&&(u=S.channel[0],d=!0),S.drum&&(f=S.drum),S.drumbars&&(p=S.drumbars[0]),S.drumon&&(h=!0),u===10&&(c=t),S.beat&&x.push({el_type:`beat`,beats:S.beat}),S.nobeataccents&&x.push({el_type:`beataccents`,value:!1})}o=a.qpm?parseInt(a.qpm,10):r.metaText.tempo?interpretTempo(r.metaText.tempo,r.getBeatLength()):a.defaultQpm?a.defaultQpm:180;var C=[];b&&C.push({el_type:`bagpipes`}),C.push({el_type:`instrument`,program:c}),u&&C.push({el_type:`channel`,channel:u}),l&&C.push({el_type:`transpose`,transpose:l}),C.push({el_type:`tempo`,qpm:o});for(var w=0;w<x.length;w++)C.push(x[w]);var T=[],E=[],D=[],O=[0],k={};k[0]={el_type:`tempo`,qpm:o,timing:0};for(var A,j=[],M=[],N=!1,P=r.lines,F=0;F<P.length;F++){var I=P[F];if(I.staff){for(var L=I.staff,R=0,z=0;z<L.length;z++){var B=L[z];if(!(B.clef&&B.clef.type===`TAB`))for(var V=0;V<B.voices.length;V++){var H=B.voices[V];if(!T[R]){T[R]=[].concat(JSON.parse(JSON.stringify(C)));var ee=getTrackTitle(I.staff,R);ee&&T[R].unshift({el_type:`name`,trackName:ee})}if(l&&B.clef.type===`perc`&&T[R].push({el_type:`transpose`,transpose:0}),B.clef&&B.clef.type===`perc`&&!d)for(var U=0;U<T[R].length;U++)T[R][U].el_type===`instrument`&&(T[R][U].program=t);else B.key&&addKey(T[R],B.key);B.meter&&addMeter(T[R],B.meter),!N&&h&&(T[R].push({el_type:`drum`,params:{pattern:f,bars:p,on:h,intro:m}}),N=!0),B.clef&&B.clef.type!==`perc`&&B.clef.transpose&&(B.clef.el_type=`clef`,T[R].push({el_type:`transpose`,transpose:B.clef.transpose})),B.clef&&B.clef.type&&(B.clef.type.indexOf(`-8`)>=0?T[R].push({el_type:`transpose`,transpose:-12}):B.clef.type.indexOf(`+8`)>=0&&T[R].push({el_type:`transpose`,transpose:12})),r.formatting.midi&&r.formatting.midi.drumoff&&(T[R].push({el_type:`bar`}),T[R].push({el_type:`drum`,params:{pattern:``,on:!1}}));var W=0,G=0,K=0,q=0;A=[105,95,85,1];for(var J=0;J<H.length;J++){var Y=H[J];switch(Y.el_type){case`note`:if(E[V]&&(A[0]+=E[V],A[1]+=E[V],A[2]+=E[V],T[R].push({el_type:`beat`,beats:A.slice(0)})),D[V]&&(A[0]+=D[V],A[1]+=D[V],A[2]+=D[V],T[R].push({el_type:`beat`,beats:A.slice(0)})),setDynamics(Y),!Y.rest||Y.rest.type!==`spacer`){var X={elem:Y,el_type:`note`,timing:O[R]};if(Y.style?X.style=Y.style:_[R]&&(X.style=_[R]),X.duration=Y.duration===0?.25:Y.duration,Y.startTriplet){if(G=Y.tripletMultiplier,K=Y.startTriplet*G*Y.duration,Y.startTriplet!==Y.tripletR&&J+Y.tripletR<=H.length){for(var te=0,Z=J;Z<J+Y.tripletR;Z++)te+=H[Z].duration;K=G*te}X.duration*=G,X.duration=Math.round(X.duration*1e6)/1e6,q=X.duration}else G&&(Y.endTriplet?(G=0,X.duration=Math.round((K-q)*1e6)/1e6):(X.duration*=G,X.duration=Math.round(X.duration*1e6)/1e6,q+=X.duration));Y.rest&&(X.rest=Y.rest),Y.decoration&&(X.decoration=Y.decoration.slice(0)),Y.pitches&&(X.pitches=n.cloneArray(Y.pitches)),Y.gracenotes&&(X.gracenotes=n.cloneArray(Y.gracenotes)),Y.chord&&(X.chord=n.cloneArray(Y.chord)),T[R].push(X),Y.style===`rhythm`&&chordVoiceOffThisBar(T),W++,O[R]+=X.duration}break;case`key`:case`keySignature`:addKey(T[R],Y);break;case`meter`:addMeter(T[R],Y);break;case`clef`:Y.transpose&&T[R].push({el_type:`transpose`,transpose:Y.transpose}),Y.type&&(Y.type.indexOf(`-8`)>=0?T[R].push({el_type:`transpose`,transpose:-12}):Y.type.indexOf(`+8`)>=0&&T[R].push({el_type:`transpose`,transpose:12}));break;case`tempo`:o=interpretTempo(Y,r.getBeatLength()),T[R].push({el_type:`tempo`,qpm:o,timing:O[R]}),k[``+O[R]]={el_type:`tempo`,qpm:o,timing:O[R]};break;case`bar`:W>0&&T[R].push({el_type:`bar`}),setDynamics(Y),W=0;var ne=Y.type===`bar_right_repeat`||Y.type===`bar_dbl_repeat`,re=Y.startEnding===`1`,ie=Y.type===`bar_left_repeat`||Y.type===`bar_dbl_repeat`||Y.type===`bar_right_repeat`;if(ne){var ae=j[R];ae||=0;var oe=M[R];oe||=T[R].length;for(var se=ae;se<oe;se++){var ce=Object.assign({},T[R][se]);ce.pitches&&=n.cloneArray(ce.pitches),T[R].push(ce)}M[R]=void 0,j[R]=void 0}re&&(M[R]=T[R].length),ie&&(j[R]=T[R].length);break;case`style`:_[R]=Y.head;break;case`timeSignature`:T[R].push(interpretMeter(Y));break;case`part`:break;case`stem`:case`scale`:case`break`:case`font`:break;case`midi`:var le=!1;switch(Y.cmd){case`drumon`:h=!0,le=!0;break;case`drumoff`:h=!1,le=!0;break;case`drum`:f=Y.params,le=!0;break;case`drumbars`:p=Y.params[0],le=!0;break;case`drummap`:break;case`channel`:Y.params[0]===10&&T[R].push({el_type:`instrument`,program:t});break;case`program`:addIfDifferent(T[R],{el_type:`instrument`,program:Y.params[0]}),d=!0;break;case`transpose`:T[R].push({el_type:`transpose`,transpose:Y.params[0]});break;case`gchordoff`:T[R].push({el_type:`gchordOn`,tacet:!0});break;case`gchordon`:T[R].push({el_type:`gchordOn`,tacet:!1});break;case`beat`:T[R].push({el_type:`beat`,beats:Y.params});break;case`nobeataccents`:T[R].push({el_type:`beataccents`,value:!1});break;case`beataccents`:T[R].push({el_type:`beataccents`,value:!0});break;case`vol`:case`volinc`:T[R].push({el_type:Y.cmd,volume:Y.params[0]});break;case`swing`:case`gchord`:case`bassvol`:case`chordvol`:T[R].push({el_type:Y.cmd,param:Y.params[0]});break;case`bassprog`:case`chordprog`:T[R].push({el_type:Y.cmd,value:Y.params[0],octaveShift:Y.params[1]});break;case`gchordbars`:T[R].push({el_type:Y.cmd,param:Y.params[0]});break;default:console.log(`MIDI seq: midi cmd not handled: `,Y.cmd,Y)}le&&(T[0].push({el_type:`drum`,params:{pattern:f,bars:p,intro:m,on:h}}),N=!0);break;default:console.log(`MIDI: element type `+Y.el_type+` not handled.`)}}R++,O[R]||(O[R]=0)}}function setDynamics(e){var t={pppp:[15,10,5,1],ppp:[30,20,10,1],pp:[45,35,20,1],p:[60,50,35,1],mp:[75,65,50,1],mf:[90,80,65,1],f:[105,95,80,1],ff:[120,110,95,1],fff:[127,125,110,1],ffff:[127,125,110,1]},n;if(e.decoration)if(e.decoration.indexOf(`pppp`)>=0?n=`pppp`:e.decoration.indexOf(`ppp`)>=0?n=`ppp`:e.decoration.indexOf(`pp`)>=0?n=`pp`:e.decoration.indexOf(`p`)>=0?n=`p`:e.decoration.indexOf(`mp`)>=0?n=`mp`:e.decoration.indexOf(`mf`)>=0?n=`mf`:e.decoration.indexOf(`f`)>=0?n=`f`:e.decoration.indexOf(`ff`)>=0?n=`ff`:e.decoration.indexOf(`fff`)>=0?n=`fff`:e.decoration.indexOf(`ffff`)>=0&&(n=`ffff`),n&&(A=t[n].slice(0),T[R].push({el_type:`beat`,beats:A.slice(0)}),E[V]=!1,D[V]=!1),e.decoration.indexOf(`crescendo(`)>=0){var r=numNotesToDecoration(H,J,`crescendo)`),a=Math.min(127,A[0]+y),o=endingVolume(H,J+r+1,Object.keys(t));o&&(a=t[o][0]),r>0?E[V]=Math.floor((a-A[0])/r):E[V]=!1,D[V]=!1}else if(e.decoration.indexOf(`crescendo)`)>=0)E[V]=!1;else if(e.decoration.indexOf(`diminuendo(`)>=0){var c=numNotesToDecoration(H,J,`diminuendo)`),l=Math.max(15,A[0]-y),u=endingVolume(H,J+c+1,Object.keys(t));u&&(l=t[u][0]),E[V]=!1,c>0?D[V]=Math.floor((l-A[0])/c):D[V]=!1}else e.decoration.indexOf(`diminuendo)`)>=0&&(D[V]=!1)}}}if(insertTempoChanges(T,k),m)for(var ue=r.getPickupLength(),Q=0;Q<T.length;Q++){for(var de=0;T[Q][de].el_type!==`note`&&T[Q].length>de;)de++;if(T[Q].length>de){for(var Z=0;Z<m;Z++)ue===0||Z<m-1?(T[Q].splice(de,0,{el_type:`note`,rest:{type:`rest`},duration:e},{el_type:`bar`}),de+=2):T[Q].splice(de++,0,{el_type:`note`,rest:{type:`rest`},duration:e-ue});g&&=(h=!1,T[Q].splice(de++,0,{el_type:`drum`,params:{pattern:f,bars:p,intro:m,on:h}}),!1)}}return T.length>0&&T[0].length>0&&(T[0][0].pickupLength=r.getPickupLength()),T};function numNotesToDecoration(e,t,n){for(var r=0,a=t+1;a<e.length;a++)if(e[a].el_type===`note`&&r++,e[a].decoration&&e[a].decoration.indexOf(n)>=0)return r;return r}function endingVolume(e,t,n){for(var r=Math.min(e.length,t+3),a=t;a<r;a++)if(e[a].el_type===`note`&&e[a].decoration){for(var o=0;o<e[a].decoration.length;o++)if(n.indexOf(e[a].decoration[o])>=0)return e[a].decoration[o]}return null}function insertTempoChanges(e,t){if(!(!t||t.length===0))for(var n=Object.keys(t),r=0;r<e.length;r++)for(var a=e[r],o=t[0]?t[0].qpm:0,c=0;c<a.length;c++){var l=a[c];l.el_type===`tempo`&&(o=l.qpm),n.indexOf(``+l.timing)>=0&&o!==t[``+l.timing].qpm&&(o=t[``+l.timing].qpm,l.el_type===`tempo`?(l.qpm=t[``+l.timing].qpm,c++):(e[r].splice(c,0,{el_type:`tempo`,qpm:t[``+l.timing].qpm,timing:l.timing}),c+=2))}}function chordVoiceOffThisBar(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=n.length-1;r>=0&&n[r].el_type!==`bar`;)n[r].noChordVoice=!0,r--}function getTrackTitle(e,t){if(!(!e||e.length<=t||!e[t].title))return e[t].title.join(` `)}function interpretTempo(e,t){var n=1/4;e.duration&&(n=e.duration[0]);var r=60;return e.bpm&&(r=e.bpm),n*r/t}function interpretMeter(t){var n;switch(t.type){case`common_time`:n={el_type:`meter`,num:4,den:4};break;case`cut_time`:n={el_type:`meter`,num:2,den:2};break;case`specified`:n={el_type:`meter`,num:t.value[0].num,den:t.value[0].den};break;default:n={el_type:`meter`}}return e=n.num/n.den,n}function removeNaturals(e){for(var t=[],n=0;n<e.length;n++)e[n].acc!==`natural`&&t.push(e[n]);return t}function addKey(e,t){addIfDifferent(e,t.root===`HP`?{el_type:`key`,accidentals:[{acc:`natural`,note:`g`},{acc:`sharp`,note:`f`},{acc:`sharp`,note:`c`}]}:{el_type:`key`,accidentals:removeNaturals(t.accidentals)})}function addMeter(e,t){addIfDifferent(e,interpretMeter(t))}function addIfDifferent(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].el_type===t.el_type){JSON.stringify(e[n])!==JSON.stringify(t)&&e.push(t);return}e.push(t)}})(),t.exports=sequence})),E=e.n(((e,t)=>{var n=function ChordTrack(e,t,n,r){this.chordTrack=[],this.chordTrackFinished=!1,this.chordChannel=e,this.currentChords=[],this.lastChord,this.chordLastBar,this.chordsOff=!!t,this.gChordTacet=this.chordsOff,this.hasRhythmHead=!1,this.transpose=0,this.lastBarTime=0,this.meter=r,this.tempoChangeFactor=1,this.bassInstrument=n.bassprog&&n.bassprog.length>=1?n.bassprog[0]:0,this.chordInstrument=n.chordprog&&n.chordprog.length>=1?n.chordprog[0]:0,this.bassOctaveShift=n.bassprog&&n.bassprog.length===2?n.bassprog[1]:0,this.chordOctaveShift=n.chordprog&&n.chordprog.length===2?n.chordprog[1]:0,this.boomVolume=n.bassvol&&n.bassvol.length===1?n.bassvol[0]:64,this.chickVolume=n.chordvol&&n.chordvol.length===1?n.chordvol[0]:48,n.gchord&&n.gchord.length>0?this.overridePattern=parseGChord(n.gchord[0]):this.overridePattern=void 0};n.prototype.setMeter=function(e){this.meter=e},n.prototype.setTempoChangeFactor=function(e){this.tempoChangeFactor=e},n.prototype.setLastBarTime=function(e){this.lastBarTime=e},n.prototype.setTranspose=function(e){this.transpose=e},n.prototype.setRhythmHead=function(e,t){this.hasRhythmHead=e;var n=[];if(e&&this.lastChord&&this.lastChord.chick)for(var r=0;r<this.lastChord.chick.length;r++){var a=Object.assign({},t.pitches[0]);a.actualPitch=this.lastChord.chick[r],n.push(a)}return n},n.prototype.barEnd=function(e){this.chordTrack.length>0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,timeToRealTime(e.time)),this.currentChords=[]),this.chordLastBar=this.lastChord},n.prototype.gChordOn=function(e){this.chordsOff||(this.gChordTacet=e.tacet)},n.prototype.paramChange=function(e){switch(e.el_type){case`gchord`:e.param&&e.param.length>0?this.overridePattern=parseGChord(e.param):this.overridePattern=void 0;break;case`bassprog`:this.bassInstrument=e.value,e.octaveShift!=null&&e.octaveShift!=null?this.bassOctaveShift=e.octaveShift:this.bassOctaveShift=0;break;case`chordprog`:this.chordInstrument=e.value,e.octaveShift!=null&&e.octaveShift!=null?this.chordOctaveShift=e.octaveShift:this.chordOctaveShift=0;break;case`bassvol`:this.boomVolume=e.param;break;case`chordvol`:this.chickVolume=e.param;break;default:console.log(`unhandled midi param`,e)}},n.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)},n.prototype.addTrack=function(e){this.chordTrackEmpty()||e.push(this.chordTrack)},n.prototype.findChord=function(e){if(this.gChordTacet)return`break`;if(this.chordTrackFinished||!e.chord||e.chord.length===0)return null;for(var t=0;t<e.chord.length;t++){var n=e.chord[t];if(n.position===`default`)return n.name;if(this.breakSynonyms.indexOf(n.name.toLowerCase())>=0)return`break`}return null},n.prototype.interpretChord=function(e){if(e.length!==0){if(e===`break`)return{chick:[]};var t=e.substring(0,1);if(t===`(`){if(e=e.substring(1,e.length-2),e.length===0)return;t=e.substring(0,1)}var n=this.basses[t];if(n){for(var r=this.transpose;r<-8;)r+=12;for(;r>8;)r-=12;n+=r,n<33?n+=12:n>44&&(n-=12);var a=n;n+=this.bassOctaveShift*12;var o=n-5,c;e.length===1&&(c=this.chordNotes(n,``));var l=e.substring(1),u=l.substring(0,1);u===`b`||u===`♭`?(a--,n--,o--,l=l.substring(1)):(u===`#`||u===`♯`)&&(a++,n++,o++,l=l.substring(1));var d=l.split(`/`);if(c=this.chordNotes(a,d[0]),c.length>=3){var f=c[2]-c[0];o=o+f-7}if(d.length===2&&this.basses[d[1].substring(0,1)]){var p=d[1].substring(1),m={"#":1,"♯":1,b:-1,"♭":-1}[p]||0;n=this.basses[d[1].substring(0,1)]+m+r,n+=this.bassOctaveShift*12,o=n}return{boom:n,boom2:o,chick:c}}}},n.prototype.chordNotes=function(e,t){var n=this.chordIntervals[t];n||=t.slice(0,2).toLowerCase()===`ma`||t[0]===`M`?this.chordIntervals.M:t[0]===`m`||t[0]===`-`?this.chordIntervals.m:this.chordIntervals.M,e+=12,e+=this.chordOctaveShift*12;for(var r=[],a=0;a<n.length;a++)r.push(e+n[a]);return r},n.prototype.writeNote=function(e,t,n,r,a,o){e!==void 0&&this.chordTrack.push({cmd:`note`,pitch:e,volume:n,start:this.lastBarTime+r*durationRounded(t,this.tempoChangeFactor),duration:durationRounded(a,this.tempoChangeFactor),gap:0,instrument:o})},n.prototype.chordTrackEmpty=function(){for(var e=!0,t=0;t<this.chordTrack.length&&e;t++)this.chordTrack[t].cmd===`note`&&(e=!1);return e},n.prototype.resolveChords=function(e,t){if(!this.hasRhythmHead){var n=this.meter.num,r=this.meter.den,a=1/r,o=a/2,c=parseInt(n,10)/parseInt(r,10)-(t-e)/this.tempoChangeFactor;Math.abs(c)<1e-5&&(c=0),(this.currentChords.length===0||this.currentChords[0].beat!==0)&&this.currentChords.unshift({beat:0,chord:this.chordLastBar});var l=expandCurrentChords(this.currentChords,8*n/r,a),u=this.overridePattern?this.overridePattern:this.rhythmPatterns[n+`/`+r];if(c){u=[];for(var d=(t-e)/this.tempoChangeFactor*8,f=0;f<d/2;f+=2)u.push(`chick`),u.push(``)}if(!u){u=[];for(var f=0;f<8*n/r/2;f++)u.push(`chick`),u.push(``)}for(var p=!0,m=Math.min(u.length,l.length),f=0;f<m;f++){f>0&&l[f-1]&&l[f]&&l[f-1].boom!==l[f].boom&&(p=!0);var h=u[f],g=h.indexOf(`boom`)>=0,_=!g&&f!==0&&u[0].indexOf(`boom`)>=0&&(!l[f-1]||l[f-1].boom!==l[f].boom),y=resolvePitch(l[f],h,p,_);g&&(p=!1);for(var b=0;b<y.length;b++)this.writeNote(y[b],.125,g||_?this.boomVolume:this.chickVolume,f,o,g||_?this.bassInstrument:this.chordInstrument),_?_=!1:g=!1}}},n.prototype.processChord=function(e){if(!this.chordTrackFinished){var t=this.findChord(e);if(t){var n=this.interpretChord(t);if(n){this.chordTrack.length===0&&this.chordTrack.push({cmd:`program`,channel:this.chordChannel,instrument:this.chordInstrument}),this.lastChord=n;var r=calcBeat(this.lastBarTime,timeToRealTime(e.time));this.currentChords.push({chord:this.lastChord,beat:r,start:timeToRealTime(e.time)})}}}};function resolvePitch(e,t,n,r){var a=[];if(!e)return a;t.indexOf(`boom`)>=0?a.push(n?e.boom:e.boom2):r&&a.push(e.boom);var o=e.chick.length;if(t.indexOf(`chick`)>=0)for(var c=0;c<o;c++)a.push(e.chick[c]);switch(t){case`DO`:a.push(e.chick[0]);break;case`MI`:a.push(e.chick[1]);break;case`SOL`:a.push(extractNote(e,2));break;case`TI`:a.push(extractNote(e,3));break;case`TOP`:a.push(extractNote(e,4));break;case`do`:a.push(e.chick[0]+12);break;case`mi`:a.push(e.chick[1]+12);break;case`sol`:a.push(extractNote(e,2)+12);break;case`ti`:a.push(extractNote(e,3)+12);break;case`top`:a.push(extractNote(e,4)+12);break}return a}function extractNote(e,t){var n=Math.floor(t/e.chick.length);return e.chick[t%e.chick.length]+n*12}function parseGChord(e){for(var t=[],n=0;n<e.length;n++)switch(e[n]){case`z`:t.push(``);break;case`2`:t.push(``);break;case`c`:t.push(`chick`);break;case`b`:t.push(`boom&chick`);break;case`f`:t.push(`boom`);break;case`G`:t.push(`DO`);break;case`H`:t.push(`MI`);break;case`I`:t.push(`SOL`);break;case`J`:t.push(`TI`);break;case`K`:t.push(`TOP`);break;case`g`:t.push(`do`);break;case`h`:t.push(`mi`);break;case`i`:t.push(`sol`);break;case`j`:t.push(`ti`);break;case`k`:t.push(`top`);break}return t}function expandCurrentChords(e,t,n){n*=8;var r=[];if(e.length===0)return r;for(var a=e[0].chord,o=1;o<e.length;o++){for(var c=e[o];r.length<c.beat;)r.push(a);a=c.chord}for(;r.length<t;)r.push(a);return r}function calcBeat(e,t){return(t-e)*8}n.prototype.breakSynonyms=[`break`,`(break)`,`no chord`,`n.c.`,`tacet`],n.prototype.basses={A:33,B:35,C:36,D:38,E:40,F:41,G:43},n.prototype.chordIntervals={dim:[0,3,6],"°":[0,3,6],"˚":[0,3,6],dim7:[0,3,6,9],"°7":[0,3,6,9],"˚7":[0,3,6,9],ø7:[0,3,6,10],"m7(b5)":[0,3,6,10],m7b5:[0,3,6,10],"m7♭5":[0,3,6,10],"-7(b5)":[0,3,6,10],"-7b5":[0,3,6,10],"7b5":[0,4,6,10],"7(b5)":[0,4,6,10],"7♭5":[0,4,6,10],"7(b9,b5)":[0,4,6,10,13],"7b9,b5":[0,4,6,10,13],"7(#9,b5)":[0,4,6,10,15],"7#9b5":[0,4,6,10,15],"maj7(b5)":[0,4,6,11],maj7b5:[0,4,6,11],"13(b5)":[0,4,6,10,14,21],"13b5":[0,4,6,10,14,21],m:[0,3,7],"-":[0,3,7],m6:[0,3,7,9],"-6":[0,3,7,9],m7:[0,3,7,10],"-7":[0,3,7,10],"-(b6)":[0,3,7,8],"-b6":[0,3,7,8],"-6/9":[0,3,7,9,14],"-7(b9)":[0,3,7,10,13],"-7b9":[0,3,7,10,13],"-maj7":[0,3,7,11],"-9+7":[0,3,7,11,13],"-11":[0,3,7,11,14,17],m11:[0,3,7,11,14,17],"-maj9":[0,3,7,11,14],"-∆9":[0,3,7,11,14],mM9:[0,3,7,11,14],M:[0,4,7],6:[0,4,7,9],"6/9":[0,4,7,9,14],"6add9":[0,4,7,9,14],69:[0,4,7,9,14],7:[0,4,7,10],9:[0,4,7,10,14],11:[0,7,10,14,17],13:[0,4,7,10,14,21],"7b9":[0,4,7,10,13],"7♭9":[0,4,7,10,13],"7(b9)":[0,4,7,10,13],"7(#9)":[0,4,7,10,15],"7#9":[0,4,7,10,15],"(13)":[0,4,7,10,14,21],"7(9,13)":[0,4,7,10,14,21],"7(#9,b13)":[0,4,7,10,15,20],"7(#11)":[0,4,7,10,14,18],"7#11":[0,4,7,10,14,18],"7(b13)":[0,4,7,10,20],"7b13":[0,4,7,10,20],"9(#11)":[0,4,7,10,14,18],"9#11":[0,4,7,10,14,18],"13(#11)":[0,4,7,10,18,21],"13#11":[0,4,7,10,18,21],maj7:[0,4,7,11],"∆7":[0,4,7,11],Δ7:[0,4,7,11],maj9:[0,4,7,11,14],"maj7(9)":[0,4,7,11,14],"maj7(11)":[0,4,7,11,17],"maj7(#11)":[0,4,7,11,18],"maj7(13)":[0,4,7,14,21],"maj7(9,13)":[0,4,7,11,14,21],"7sus4":[0,5,7,10],m7sus4:[0,3,7,10,17],sus4:[0,5,7],sus2:[0,2,7],"7sus2":[0,2,7,10],"9sus4":[0,5,7,10,14],"13sus4":[0,5,7,10,14,21],aug7:[0,4,8,10],"+7":[0,4,8,10],"+":[0,4,8],"7#5":[0,4,8,10],"7♯5":[0,4,8,10],"7+5":[0,4,8,10],"9#5":[0,4,8,10,14],"9♯5":[0,4,8,10,14],"9+5":[0,4,8,10,14],"-7(#5)":[0,3,8,10],"-7#5":[0,3,8,10],"7(#5)":[0,4,8,10],"7(b9,#5)":[0,4,8,10,13],"7b9#5":[0,4,8,10,13],"maj7(#5)":[0,4,8,11],"maj7#5":[0,4,8,11],"maj7(#5,#11)":[0,4,8,11,18],"maj7#5#11":[0,4,8,11,18],"9(#5)":[0,4,8,10,14],"13(#5)":[0,4,8,10,14,21],"13#5":[0,4,8,10,14,21],5:[0,7],"5(8)":[0,7,12],"5add8":[0,7,12]},n.prototype.rhythmPatterns={"2/2":[`boom`,``,``,``,`chick`,``,``,``],"3/2":[`boom`,``,``,``,`chick`,``,``,``,`chick`,``,``,``],"4/2":[`boom`,``,``,``,`chick`,``,``,``,`boom`,``,``,``,`chick`,``,``,``],"2/4":[`boom`,``,`chick`,``],"3/4":[`boom`,``,`chick`,``,`chick`,``],"4/4":[`boom`,``,`chick`,``,`boom`,``,`chick`,``],"5/4":[`boom`,``,`chick`,``,`chick`,``,`boom`,``,`chick`,``],"6/4":[`boom`,``,`chick`,``,`boom`,``,`chick`,``,`boom`,``,`chick`,``],"3/8":[`boom`,``,`chick`],"5/8":[`boom`,`chick`,`chick`,`boom`,`chick`],"6/8":[`boom`,``,`chick`,`boom`,``,`chick`],"7/8":[`boom`,`chick`,`chick`,`boom`,`chick`,`boom`,`chick`],"9/8":[`boom`,``,`chick`,`boom`,``,`chick`,`boom`,``,`chick`],"10/8":[`boom`,`chick`,`chick`,`boom`,`chick`,`chick`,`boom`,`chick`,`boom`,`chick`],"11/8":[`boom`,`chick`,`chick`,`boom`,`chick`,`chick`,`boom`,`chick`,`boom`,`chick`,`chick`],"12/8":[`boom`,``,`chick`,`boom`,``,`chick`,`boom`,``,`chick`,`boom`,``,`chick`]};function timeToRealTime(e){return e/1e6}function durationRounded(e,t){return Math.round(e*t*1e6)/1e6}t.exports=n})),D=e.n(((e,t)=>{var n={f0:`_C`,n0:`=C`,s0:`^C`,x0:`C`,f1:`_D`,n1:`=D`,s1:`^D`,x1:`D`,f2:`_E`,n2:`=E`,s2:`^E`,x2:`E`,f3:`_F`,n3:`=F`,s3:`^F`,x3:`F`,f4:`_G`,n4:`=G`,s4:`^G`,x4:`G`,f5:`_A`,n5:`=A`,s5:`^A`,x5:`A`,f6:`_B`,n6:`=B`,s6:`^B`,x6:`B`,f7:`_c`,n7:`=c`,s7:`^c`,x7:`c`,f8:`_d`,n8:`=d`,s8:`^d`,x8:`d`,f9:`_e`,n9:`=e`,s9:`^e`,x9:`e`,f10:`_f`,n10:`=f`,s10:`^f`,x10:`f`,f11:`_g`,n11:`=g`,s11:`^g`,x11:`g`,f12:`_a`,n12:`=a`,s12:`^a`,x12:`a`,f13:`_b`,n13:`=b`,s13:`^b`,x13:`b`,f14:`_c'`,n14:`=c'`,s14:`^c'`,x14:`c'`,f15:`_d'`,n15:`=d'`,s15:`^d'`,x15:`d'`,f16:`_e'`,n16:`=e'`,s16:`^e'`,x16:`e'`};function pitchesToPerc(e){return n[(e.accidental?e.accidental[0]:`x`)+e.verticalPos]}t.exports=pitchesToPerc})),O=e.n(((e,t)=>{var flatten,n=E(),r=D();(function(){"use strict";var e,t,a,o,c,l,u=1,d,f,p,m,h,g,_={num:4,den:4},y=128,b,x=!0,S=105,C=95,w=85,T=.25,E,D,O=0,k,A={},j,M=0,N,P=0,F=-.001,I=.4;flatten=function(r,y,P,F){y||={},F||={},e=[],t=[0,0,0,0,0,0,0],o=[],c=y.qpm,l=void 0,u=1,d=void 0,f=void 0,p=void 0,m=void 0,h=0,N=P,_={num:4,den:4},x=!0,S=105,C=95,w=85,T=.25,E=void 0,D=void 0,O=0,k=[],A={},j=1,r.length>0&&r[0].length>0&&(M=r[0][0].pickupLength),y.bassprog!==void 0&&!F.bassprog&&(F.bassprog=[y.bassprog]),y.bassvol!==void 0&&!F.bassvol&&(F.bassvol=[y.bassvol]),y.chordprog!==void 0&&!F.chordprog&&(F.chordprog=[y.chordprog]),y.chordvol!==void 0&&!F.chordvol&&(F.chordvol=[y.chordvol]),y.gchord!==void 0&&!F.gchord&&(F.gchord=[y.gchord]),g=new n(r.length,y.chordsOff,F,_),preProcess(r,y);for(var I=0;I<r.length;I++){a=0,g.setTranspose(a);var L=r[I];p=[{cmd:`program`,channel:I,instrument:d}],m=void 0,b=0,g.setLastBarTime(0);var R=!1;(y.voicesOff===!0||y.voicesOff&&y.voicesOff.length&&y.voicesOff.indexOf(I)>=0)&&(R=!0);for(var z=0;z<L.length;z++){var B=L[z];switch(B.el_type){case`name`:m={cmd:`text`,type:`name`,text:B.trackName};break;case`note`:writeNote(B,R);break;case`key`:t=setKeySignature(B);break;case`meter`:l||=B,_=B,g.setMeter(_),T=getBeatFraction(_),alignDrumToMeter();break;case`tempo`:c?u=B.qpm?c/B.qpm:1:c=B.qpm,g.setTempoChangeFactor(u);break;case`transpose`:a=B.transpose,g.setTranspose(a);break;case`bar`:g.barEnd(B),e=[],I===0&&writeDrum(r.length+1),g.setRhythmHead(!1),b=timeToRealTime(B.time),g.setLastBarTime(b);break;case`bagpipes`:break;case`instrument`:if(d===void 0&&(d=B.program),f=B.program,p.length>0&&p[p.length-1].cmd===`program`)p[p.length-1].instrument=B.program;else{var V;for(V=p.length-1;V>=0&&p[V].cmd!==`program`;V--);(V<0||p[V].instrument!==B.program)&&p.push({cmd:`program`,channel:0,instrument:B.program})}break;case`channel`:setChannel(B.channel);break;case`drum`:A=normalizeDrumDefinition(B.params),alignDrumToMeter();break;case`gchordOn`:g.gChordOn(B);break;case`beat`:S=B.beats[0],C=B.beats[1],w=B.beats[2];break;case`vol`:E=B.volume;break;case`volinc`:D=B.volume;break;case`beataccents`:x=B.value;break;case`gchord`:case`bassprog`:case`chordprog`:case`bassvol`:case`chordvol`:case`gchordbars`:g.paramChange(B);break;default:console.log(`MIDI creation. Unknown el_type: `+B.el_type+`
|
|
7
|
+
`);break}}p[0].instrument===void 0&&(p[0].instrument=d||0),m&&p.unshift(m),o.push(p),g.finish(),k.length}return y.detuneOctave&&findOctaves(o,parseInt(y.detuneOctave,10)),g.addTrack(o),k.length>0&&o.push(k),{tempo:c,instrument:d,tracks:o,totalDuration:h}};function setChannel(e){for(var t=p.length-1;t>=0;t--)if(p[t].cmd===`program`){p[t].channel=e;return}}function timeToRealTime(e){return e/1e6}function durationRounded(e){return Math.round(e*u*1e6)/1e6}function preProcess(e,t){for(var n=0;n<e.length;n++){for(var r=e[n],a={},o=t.qpm,c=0,l=1,u=0;u<r.length;u++){var d=r[u];if(d.el_type===`tempo`){o?l=d.qpm?o/d.qpm:1:o=d.qpm;continue}d.time=c;var f=d.duration?d.duration:0;if(c+=Math.round(f*l*1e6),d.pitches){for(var p=0;p<d.pitches.length;p++){var m=d.pitches[p];if(m){if(m.duration=d.duration,m.startTie)a[m.pitch]===void 0?a[m.pitch]={el:u,pitch:p}:(r[a[m.pitch].el].pitches[a[m.pitch].pitch].duration+=m.duration,d.pitches[p]=null);else if(m.endTie){var h=a[m.pitch];if(h){var g=m.duration;delete r[h.el].pitches[h.pitch].startTie,r[h.el].pitches[h.pitch].duration+=g,d.pitches[p]=null,delete a[m.pitch]}else delete m.endTie}}}delete d.duration}}for(var _ in a)if(a.hasOwnProperty(_)){var y=a[_];delete r[y.el].pitches[y.pitch].startTie}}}function getBeatFraction(e){switch(parseInt(e.den,10)){case 2:return .5;case 4:return .25;case 8:return e.num%3==0?.375:.125;case 16:return .125}return .25}function calcBeat(e,t,n){return(n-e)/t}function processVolume(e,t){if(t)return 0;var n;if(E!=null)n=E,E=void 0;else if(!x)n=C;else if(M>e)n=w;else{var r=calcBeat(b,getBeatFraction(_),e);n=r===0?S:parseInt(r,10)===r?C:w}return D&&=(n+=D,void 0),n<0&&(n=0),n>127&&(n=127),t?0:n}function findNoteModifications(e,t){var n={};if(e.decoration)for(var r=0;r<e.decoration.length;r++)e.decoration[r]===`staccato`?n.thisBreakBetweenNotes=`staccato`:e.decoration[r]===`tenuto`?n.thisBreakBetweenNotes=`tenuto`:e.decoration[r]===`accent`?n.velocity=Math.min(127,t*1.5):e.decoration[r]===`trill`?n.noteModification=`trill`:e.decoration[r]===`lowermordent`?n.noteModification=`lowermordent`:e.decoration[r]===`uppermordent`||e.decoration[r]===`mordent`?n.noteModification=`mordent`:e.decoration[r]===`turn`?n.noteModification=`turn`:e.decoration[r]===`roll`&&(n.noteModification=`roll`);return n}function doModifiedNotes(e,t){var n=t.start,r=t.duration,a=durationRounded(1/32);switch(e){case`trill`:for(var o=2;r>0;)p.push({cmd:`note`,pitch:t.pitch+o,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),o=o===2?0:2,r-=a,n+=a;break;case`mordent`:p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),r-=a,n+=a,p.push({cmd:`note`,pitch:t.pitch+2,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),r-=a,n+=a,p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n,duration:r,gap:0,instrument:f});break;case`lowermordent`:p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),r-=a,n+=a,p.push({cmd:`note`,pitch:t.pitch-2,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),r-=a,n+=a,p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n,duration:r,gap:0,instrument:f});break;case`turn`:a=t.duration/4,p.push({cmd:`note`,pitch:t.pitch+2,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n+a,duration:a,gap:0,instrument:f,style:`decoration`}),p.push({cmd:`note`,pitch:t.pitch-1,volume:t.volume,start:n+a*2,duration:a,gap:0,instrument:f,style:`decoration`}),p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n+a*3,duration:a,gap:0,instrument:f,style:`decoration`});break;case`roll`:for(;r>0;)p.push({cmd:`note`,pitch:t.pitch,volume:t.volume,start:n,duration:a,gap:0,instrument:f,style:`decoration`}),r-=a*2,n+=a*2;break}}function writeNote(e,t){var n=processVolume(timeToRealTime(e.time),t);g.processChord(e);var a;if(e.gracenotes&&e.pitches&&e.pitches.length>0&&e.pitches[0]&&(a=processGraceNotes(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=writeGraceNotes(a,timeToRealTime(e.time),n*2/3,f))),e.elem){var o=timeToRealTime(e.time),l=o/T/c*60*1e3;if(e.elem.currentTrackMilliseconds===void 0)e.elem.currentTrackMilliseconds=l,e.elem.currentTrackWholeNotes=o;else if(e.elem.currentTrackMilliseconds.length===void 0)e.elem.currentTrackMilliseconds!==l&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,l],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,o]);else{for(var u=!1,d=0;d<e.elem.currentTrackMilliseconds.length;d++)e.elem.currentTrackMilliseconds[d]===l&&(u=!0);u||(e.elem.currentTrackMilliseconds.push(l),e.elem.currentTrackWholeNotes.push(o))}}if(e.pitches){var m=``,_=findNoteModifications(e,n);_.thisBreakBetweenNotes&&(m=_.thisBreakBetweenNotes),_.velocity&&(n=_.velocity);var b=e.pitches;e.style===`rhythm`&&(b=g.setRhythmHead(!0,e)),e.elem&&(e.elem.midiPitches=[]);for(var x=0;x<b.length;x++){var S=b[x];if(S){S.startSlur&&(O+=S.startSlur.length),S.endSlur&&(O-=S.endSlur.length);var C=S.actualPitch?S.actualPitch:adjustPitch(S);if(f===y&&N){var w=r(S);w&&N[w]&&(C=N[w].sound)}var E={cmd:`note`,pitch:C,volume:n,start:timeToRealTime(e.time),duration:durationRounded(S.duration),instrument:f,startChar:e.elem.startChar,endChar:e.elem.endChar};if(E=adjustForMicroTone(E),e.gracenotes&&(E.duration/=2,E.start+=E.duration),e.elem&&e.elem.midiPitches.push(E),_.noteModification)doModifiedNotes(_.noteModification,E);else{switch(O>0?E.endType=`tenuto`:m&&(E.endType=m),E.endType){case`tenuto`:E.gap=F;break;case`staccato`:var D=E.duration*I;E.gap=c/60*D;break;default:E.gap=P;break}p.push(E)}}}p.length-1}var k=getRealDuration(e);h=Math.max(h,timeToRealTime(e.time)+durationRounded(k))}function getRealDuration(e){return e.pitches&&e.pitches.length>0&&e.pitches[0]?e.pitches[0].duration:e.elem?e.elem.duration:e.duration}var L=[0,2,4,5,7,9,11];function adjustPitch(n){if(n.midipitch!==void 0)return n.midipitch;var r=n.pitch;if(n.accidental)switch(n.accidental){case`sharp`:e[r]=1;break;case`flat`:e[r]=-1;break;case`natural`:e[r]=0;break;case`dblsharp`:e[r]=2;break;case`dblflat`:e[r]=-2;break;case`quartersharp`:e[r]=.25;break;case`quarterflat`:e[r]=-.25;break}var o=extractOctave(r)*12+L[extractNote(r)]+60;return e[r]===void 0?o+=t[extractNote(r)]:o+=e[r],o+=a,o}function setKeySignature(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var n=0;n<e.accidentals.length;n++){var r=e.accidentals[n],a;switch(r.acc){case`flat`:a=-1;break;case`quarterflat`:a=-.25;break;case`sharp`:a=1;break;case`quartersharp`:a=.25;break;default:a=0;break}var o=extractNote(r.note.toLowerCase().charCodeAt(0)-99);t[o]+=a}return t}function processGraceNotes(e,t){for(var n=0,a=[],o,c=0;c<e.length;c++)o=e[c],n+=o.duration;var l=t/2/n;for(c=0;c<e.length;c++){o=e[c];var u=adjustPitch(o);if(f===y&&N){var d=r(o);d&&N[d]&&(u=N[d].sound)}var p={pitch:u,duration:o.duration*l};p=adjustForMicroTone(p),a.push(p)}return a}function writeGraceNotes(e,t,n,r){var a=[];n=Math.round(n);for(var o=0;o<e.length;o++){var c=e[o];p.push({cmd:`note`,pitch:c.pitch,volume:n,start:t,duration:c.duration,gap:0,instrument:r,style:`grace`}),a.push({pitch:c.pitch,durationInMeasures:c.duration,volume:n,instrument:r}),t+=c.duration}return a}function adjustForMicroTone(e){var t=``+e.pitch;return t.indexOf(`.75`)>=0?(e.pitch=Math.round(e.pitch),e.cents=-50):t.indexOf(`.25`)>=0&&(e.pitch=Math.round(e.pitch),e.cents=50),e}function extractOctave(e){return Math.floor(e/7)}function extractNote(e){return e%=7,e<0&&(e+=7),e}function normalizeDrumDefinition(e){if(e.pattern.length===0||e.on===!1)return{on:!1};for(var t=e.pattern[0],n=[],r=``,a=0,o=0;o<t.length;o++)if(t[o]===`d`&&a++,t[o]===`d`||t[o]===`z`)r.length===0?r+=t[o]:(n.push(r),r=t[o]);else{if(r.length===0)return{on:!1};r+=t[o]}if(r.length!==0&&n.push(r),e.pattern.length!==a*2+1)return{on:!1};for(var c={on:!0,bars:e.bars,pattern:[]},l=getBeatFraction(_),u=0,d=0;d<n.length;d++){r=n[d];for(var f=1,p=!1,m=0,h=1;h<r.length;h++)switch(r[h]){case`/`:m!==0&&(f*=m),m=0,p=!0;break;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:m=m*10+r[h];break;default:return{on:!1}}p?(m===0&&(m=2),f/=m):m&&(f*=m),r[0]===`d`?(c.pattern.push({len:f*l,pitch:e.pattern[1+u],velocity:e.pattern[1+u+a]}),u++):c.pattern.push({len:f*l,pitch:null})}return j=e.bars?e.bars:1,c}function alignDrumToMeter(){if(!(!A||!A.pattern)){for(var e=A,t=0,n=_.num/_.den,r=0;r<e.pattern.length;r++)t+=e.pattern[r].len;var a=t/j/n;for(r=0;r<e.pattern.length;r++)e.pattern[r].len=e.pattern[r].len/a;A=e}}function writeDrum(e){if(!(k.length===0&&!A.on)){var t=_.num/_.den;if(k.length===0){if(h<t)return;k.push({cmd:`program`,channel:e,instrument:y})}if(A.on)for(var n=b,r=0;r<A.pattern.length;r++){var a=durationRounded(A.pattern[r].len);A.pattern[r].pitch&&k.push({cmd:`note`,pitch:A.pattern[r].pitch,volume:A.pattern[r].velocity,start:n,duration:a,gap:0,instrument:y}),n+=a}}}function findOctaves(e,t){for(var n={},r=0;r<e.length;r++)for(var a=0;a<e[r].length;a++){var o=e[r][a];o.cmd===`note`&&(n[o.start]===void 0&&(n[o.start]=[]),n[o.start].push({track:r,event:a,pitch:o.pitch}))}var c=Object.keys(n);for(r=0;r<c.length;r++){var l=n[c[r]];if(l.length>1){l=l.sort(function(e,t){return e.pitch-t.pitch});var u=l[l.length-1],d=u.pitch%12,f=!1;for(a=0;!f&&a<l.length-1;a++)l[a].pitch%12===d&&(f=!0);if(f){var p=e[u.track][u.event];p.cents||=0,p.cents+=t}}}}})(),t.exports=flatten})),k=e.n(((e,t)=>{function delineTune(e,t){t||={};for(var n=!!t.lineBreaks,r=[],a=!1,o=[],c=[],l=[],u=[],d=[],f=[],p=[],m=0;m<e.length;m++){var h=e[m];if(h.staff){if(a&&!h.vskip)for(var g=r[r.length-1],_=0;_<g.staff.length;_++){var y=h.staff[_],b=g.staff[_];if(y&&(objEqual(y.meter,o[_])||(addMeterToVoices(y.meter,y.voices),o[_]=y.meter,delete y.meter),objEqual(y.key,c[_])||(addKeyToVoices(y.key,y.voices),c[_]=y.key,delete y.key),y.title&&(b.abbrevTitle=y.title),objEqual(y.clef,l[_])||(addClefToVoices(y.clef,y.voices),l[_]=y.clef,delete y.clef),objEqual(y.vocalfont,u[_])||(addFontToVoices(y.vocalfont,y.voices,`vocalfont`),u[_]=y.vocalfont,delete y.vocalfont),objEqual(y.gchordfont,d[_])||(addFontToVoices(y.gchordfont,y.voices,`gchordfont`),d[_]=y.gchordfont,delete y.gchordfont),objEqual(y.tripletfont,f[_])||(addFontToVoices(y.tripletfont,y.voices,`tripletfont`),f[_]=y.tripletfont,delete y.tripletfont),objEqual(y.annotationfont,p[_])||(addFontToVoices(y.annotationfont,y.voices,`annotationfont`),p[_]=y.annotationfont,delete y.annotationfont)),y)for(var x=0;x<b.voices.length;x++){var S=b.voices[x],C=y.voices[x];n&&S.push({el_type:`break`}),C&&(b.voices[x]=S.concat(C))}}else{for(var w=0;w<h.staff.length;w++)c[w]=h.staff[w].key,o[w]=h.staff[w].meter,l[w]=h.staff[w].clef;r.push(cloneLine(h))}a=!0}else a=!1,r.push(h)}return r}function replacer(e,t){return e===`abselem`?`abselem`:t}function addMeterToVoices(e,t){e.el_type=`meter`,e.startChar=-1,e.endChar=-1;for(var n=0;n<t.length;n++)t[n].unshift(e)}function addKeyToVoices(e,t){e.el_type=`key`,e.startChar=-1,e.endChar=-1;for(var n=0;n<t.length;n++)t[n].unshift(e)}function addClefToVoices(e,t){e.el_type=`clef`,e.startChar=-1,e.endChar=-1;for(var n=0;n<t.length;n++)t[n].unshift(e)}function addFontToVoices(e,t,n){e.el_type=`font`,e.type=n,e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function objEqual(e,t){return e?JSON.stringify(e,replacer)===JSON.stringify(t,replacer):!0}function cloneLine(e){for(var t={},n=Object.keys(e),r=0;r<n.length;r++)if(n[r]!==`staff`)t[n[r]]=e[n[r]];else{t.staff=[];for(var a=0;a<e.staff.length;a++){for(var o={},c=Object.keys(e.staff[a]),l=0;l<c.length;l++)if(c[l]!==`voices`)o[c[l]]=e.staff[a][c[l]];else{o.voices=[];for(var u=0;u<e.staff[a].voices.length;u++)o.voices.push([].concat(e.staff[a].voices[u]))}t.staff.push(o)}}return t}t.exports=delineTune})),A=e.n(((e,t)=>{var n=u(),r=w(),a=T(),o=O(),c=k(),Tune=function(){this.reset=function(){this.version=`1.1.0`,this.media=`screen`,this.metaText={},this.metaTextInfo={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0,this.runningFonts={},delete this.visualTranspose},this.reset();function copy(e,t,n,r){for(var a=0;a<r.length;a++)e[n][r[a]]=t[n][r[a]]}this.copyTopInfo=function(e){var t=[`tempo`,`title`,`header`,`rhythm`,`origin`,`composer`,`author`,`partOrder`];copy(this,e,`metaText`,t),copy(this,e,`metaTextInfo`,t)},this.copyBottomInfo=function(e){var t=[`unalignedWords`,`book`,`source`,`discography`,`notes`,`transcription`,`history`,`abc-copyright`,`abc-creator`,`abc-edited-by`,`footer`];copy(this,e,`metaText`,t),copy(this,e,`metaTextInfo`,t)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return(e.num===6||e.num===9||e.num===12||e.num===3&&e.den===8)&&(t=3),t/e.den};function computePickupLength(e,t){for(var n=0,r=0;r<e.length;r++)if(e[r].staff)for(var a=0;a<e[r].staff.length;a++)for(var o=0;o<e[r].staff[a].voices.length;o++)for(var c=e[r].staff[a].voices[o],l=1,u=0;u<c.length;u++){var d=c[u].rest&&c[u].rest.type===`spacer`;if(c[u].startTriplet&&(l=c[u].tripletMultiplier),c[u].duration&&!d&&c[u].el_type!==`tempo`&&(n+=c[u].duration*l),c[u].endTriplet&&(l=1),n>=t&&(n-=t),c[u].el_type===`bar`)return n}return n}this.getPickupLength=function(){var e=this.getBarLength(),t=computePickupLength(this.lines,e);return t<1e-8||e-t<1e-8?0:t},this.getBarLength=function(){var e=this.getMeterFraction();return e.num/e.den},this.getTotalTime=function(){return this.totalTime},this.getTotalBeats=function(){return this.totalBeats},this.millisecondsPerMeasure=function(e){var t;if(e)t=e;else{var n=this.metaText?this.metaText.tempo:null;t=this.getBpm(n)}return t<=0&&(t=1),this.getBeatsPerMeasure()/t*6e4},this.getBeatsPerMeasure=function(){var e=this.getBeatLength();return this.getBarLength()/e},this.getMeter=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var n=0;n<t.staff.length;n++){var r=t.staff[n].meter;if(r)return r}}return{type:`common_time`}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,n=4;return e&&(e.type===`specified`?(t=parseInt(e.value[0].num,10),n=parseInt(e.value[0].den,10)):e.type===`cut_time`?(t=2,n=2):e.type===`common_time`&&(t=4,n=4)),this.meter={num:t,den:n},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff){for(var n=0;n<t.staff.length;n++)if(t.staff[n].key)return t.staff[n].key}}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var n=this.lines[t];if(n.staff)for(var r=0;r<n.staff.length;r++)for(var a=n.staff[r],o=0;o<a.voices.length;o++)for(var c=a.voices[o],l=0;l<c.length;l++){var u=c[l];if(u.startChar&&u.endChar&&u.startChar<=e&&u.endChar>e)return u}}return null};function addVerticalInfo(e){for(var t,n,r,a,o=e.length-1;o>=0;o--){var c=e[o];c.type===`bar`?(c.top=r,c.nextTop=t,t=r,c.bottom=a,c.nextBottom=n,n=a):c.type===`event`&&(r=c.top,a=c.top+c.height)}}function makeSortedArray(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t=t.sort(function(e,t){var n=e.milliseconds-t.milliseconds;return n===0?e.type===`bar`?-1:1:n}),t}this.addElementToEvents=function(e,t,r,a,o,c,l,u,d,f){if(t.hint)return{isTiedState:void 0,duration:0};var p=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&t.abcelem.rest.type===`spacer`&&(p=0),p>0){for(var m=[],h=0;h<t.elemset.length;h++)t.elemset[h]!==null&&m.push(t.elemset[h]);var g=t.startTie;if(d!==void 0)e[`event`+d].elements.push(m),f&&=(e[`event`+r]||(e[`event`+r]={type:`event`,milliseconds:r,line:c,measureNumber:l,top:a,height:o,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e[`event`+r].measureStart=!0,!1),g||(d=void 0);else{if(!e[`event`+r])e[`event`+r]={type:`event`,milliseconds:r,line:c,measureNumber:l,top:a,height:o,left:t.x,width:t.w,elements:[m],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?n.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e[`event`+r].midiGraceNotePitches=n.cloneArray(t.abcelem.midiGraceNotePitches));else{if(e[`event`+r].left?e[`event`+r].left=Math.min(e[`event`+r].left,t.x):e[`event`+r].left=t.x,e[`event`+r].elements.push(m),e[`event`+r].startCharArray.push(t.abcelem.startChar),e[`event`+r].endCharArray.push(t.abcelem.endChar),e[`event`+r].startChar===null&&(e[`event`+r].startChar=t.abcelem.startChar),e[`event`+r].endChar===null&&(e[`event`+r].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length){e[`event`+r].midiPitches||(e[`event`+r].midiPitches=[]);for(var h=0;h<t.abcelem.midiPitches.length;h++)e[`event`+r].midiPitches.push(t.abcelem.midiPitches[h])}if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e[`event`+r].midiGraceNotePitches||(e[`event`+r].midiGraceNotePitches=[]);for(var _=0;_<t.abcelem.midiGraceNotePitches.length;_++)e[`event`+r].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[_])}}f&&=(e[`event`+r].measureStart=!0,!1)}}return{isTiedState:d,duration:p/u,nextIsBar:f||t.type===`bar`}},this.makeVoicesArray=function(){for(var e=[],t=[],n={},a=0;a<this.engraver.staffgroups.length;a++){var o=this.engraver.staffgroups[a];if(o&&o.staffs&&o.staffs.length>0){var c=o.staffs[0],l=c.absoluteY,u=l-c.top*r.STEP,d=o.staffs[o.staffs.length-1];l=d.absoluteY;for(var f=l-d.bottom*r.STEP-u,p=o.voices,m=0;m<p.length;m++)if(!(p[m].staff&&p[m].staff.isTabStaff)){var h=!1;e[m]||(e[m]=[]),t[m]===void 0&&(t[m]=0);for(var g=p[m].children,_=0;_<g.length;_++)g[_].type===`tempo`&&(n[t[m]]=this.getBpm(g[_].abcelem)),e[m].push({top:u,height:f,line:o.line,measureNumber:t[m],elem:g[_]}),g[_].type===`bar`&&h&&t[m]++,(g[_].type===`note`||g[_].type===`rest`)&&(h=!0)}}}return this.tempoLocations=n,e},this.setupEvents=function(e,t,n,r){r||=1;for(var a=[],o={},c=e,l,u=!0,d=this.makeVoicesArray(),f=0,p=0;p<d.length;p++){var m=c,h=Math.round(m*1e3),g=0,_=-1,y=d[p],b=n;t=this.getBeatLength()*b/60;for(var x=-1,S=0;S<y.length;S++){var C=y[S].measureNumber;x!==C&&this.tempoLocations[C]&&(b=this.tempoLocations[C],t=r*this.getBeatLength()*b/60,x=C);var w=y[S].elem,T=this.addElementToEvents(o,w,h,y[S].top,y[S].height,y[S].line,y[S].measureNumber,t,l,u);l=T.isTiedState,u=T.nextIsBar,m+=T.duration;var E;if(w.duration>0&&o[`event`+h]&&(E=`event`+h),h=Math.round(m*1e3),w.type===`bar`){var D=w.abcelem.type,O=D===`bar_right_repeat`||D===`bar_dbl_repeat`,k=w.abcelem.startEnding===`1`,A=D===`bar_left_repeat`||D===`bar_dbl_repeat`||D===`bar_right_repeat`;if(O){S>0&&(o[E].endX=w.x),_===-1&&(_=S);var j=0;x=-1;for(var M=g;M<_;M++){C=y[M].measureNumber,x!==C&&this.tempoLocations[C]&&(b=this.tempoLocations[C],t=r*this.getBeatLength()*b/60,x=C);var N=y[M].elem;T=this.addElementToEvents(o,N,h,y[M].top,y[M].height,y[M].line,y[M].measureNumber,t,l,u),l=T.isTiedState,u=T.nextIsBar,m+=T.duration,j=h,h=Math.round(m*1e3)}o[`event`+j]&&(o[`event`+j].endX=y[_].elem.x),u=!0,_=-1}k&&(_=S),A&&(g=S)}}f=Math.max(f,h)}return a=makeSortedArray(o),addVerticalInfo(a),addEndPoints(this.lines,a),a.push({type:`end`,milliseconds:f}),this.addUsefulCallbackInfo(a,b*r),a},this.addUsefulCallbackInfo=function(e,t){for(var n=this.millisecondsPerMeasure(t),r=0;r<e.length;r++){var a=e[r];a.millisecondsPerMeasure=n}};function skipTies(e,t){for(;t<e.length&&e[t].left===null;)t++;return e[t]}function addEndPoints(e,t){if(!(t.length<1)){for(var n=0;n<t.length-1;n++){var r=t[n],a=skipTies(t,n+1);if(r.left!==null){var o=a&&r.top===a.top?a.left:e[r.line].staffGroup.w;r.endX===void 0?r.endX=o:o>r.left&&(r.endX=Math.min(r.endX,o))}}var c=t[t.length-1];c.endX=e[c.line].staffGroup.w}}this.getBpm=function(e){var t;if(e||=this.metaText?this.metaText.tempo:null,e){t=e.bpm;var n=this.getBeatLength(),r=e.duration&&e.duration.length>0?e.duration[0]:n;t=t*r/n}if(!t){t=180;var a=this.getMeterFraction();a&&a.num!==3&&a.num%3==0&&(t=120)}return t},this.setTiming=function(e,t){if(t||=0,!this.engraver||!this.engraver.staffgroups)return console.log(`setTiming cannot be called before the tune is drawn.`),this.noteTimings=[],this.noteTimings;var n=this.metaText?this.metaText.tempo:null,r=this.getBpm(n),a=1;e?n&&(a=e/r):e=r;var o=this.getBeatLength(),c=e/60,l=this.getBarLength()/o*t/c;l&&(l-=this.getPickupLength()/o/c);var u=o*c;return this.noteTimings=this.setupEvents(l,u,e,a),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*c):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(e){return e||={},o(a(this,e),e,this.formatting.percmap,this.formatting.midi)},this.deline=function(e){return c(this.lines,e)},this.findSelectableElement=function(e){return this.engraver&&this.engraver.selectables?this.engraver.findSelectableElement(e):null},this.getSelectableArray=function(){return this.engraver&&this.engraver.selectables?this.engraver.selectables:[]}};t.exports=Tune})),j=e.n(((e,t)=>{var n=_(),TuneBuilder=function(e){var t=this,r={},a=``;e.reset(),this.setVisualTranspose=function(t){t&&(e.visualTranspose=t)},this.cleanUp=function(t,r,a){closeLine(e),delete e.runningFonts,simplifyMetaText(e),e.metaText.tempo&&e.metaText.tempo.bpm&&!e.metaText.tempo.duration&&(e.metaText.tempo.duration=[e.getBeatLength()]);var o=!1,c,l,u;for(c=0;c<e.lines.length;c++)if(e.lines[c].staff!==void 0){var d=!1;for(l=0;l<e.lines[c].staff.length;l++)if(e.lines[c].staff[l]===void 0)o=!0,e.lines[c].staff[l]=null;else for(u=0;u<e.lines[c].staff[l].voices.length;u++)e.lines[c].staff[l].voices[u]===void 0?e.lines[c].staff[l].voices[u]=[]:containsNotes(e.lines[c].staff[l].voices[u])&&(d=!0);d||(e.lines[c]=null,o=!0)}if(o&&(e.lines=e.lines.filter(function(e){return!!e}),e.lines.forEach(function(e){e.staff&&=e.staff.filter(function(e){return!!e})})),t)for(;wrapMusicLines(e.lines,t););if(r){for(o=!1,c=0;c<e.lines.length;c++)if(e.lines[c].staff!==void 0)for(l=0;l<e.lines[c].staff.length;l++){var f=!1;for(u=0;u<e.lines[c].staff[l].voices.length;u++)containsNotesStrict(e.lines[c].staff[l].voices[u])&&(f=!0);f||(o=!0,e.lines[c].staff[l]=null)}o&&e.lines.forEach(function(e){e.staff&&=e.staff.filter(function(e){return!!e})})}for(fixTitles(e.lines),c=0;c<e.lines.length;c++)if(e.lines[c].staff)for(l=0;l<e.lines[c].staff.length;l++)delete e.lines[c].staff[l].workingClef;for(;resolveOverlays(e););for(var c=0;c<e.lines.length;c++){var p=e.lines[c].staff;if(p)for(e.staffNum=0;e.staffNum<p.length;e.staffNum++)for(p[e.staffNum].clef&&n.fixClef(p[e.staffNum].clef),e.voiceNum=0;e.voiceNum<p[e.staffNum].voices.length;e.voiceNum++){var m=p[e.staffNum].voices[e.voiceNum];cleanUpSlursInLine(m,e.staffNum,e.voiceNum,a);for(var h=0;h<m.length;h++)m[h].el_type===`clef`&&n.fixClef(m[h]);if(m.length>0&&m[m.length-1].barNumber){var g=getNextMusicLine(e.lines,c);g&&(g.staff[0].barNumber=m[m.length-1].barNumber),delete m[m.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,a},this.addTieToLastNote=function(t){var n=getLastNote(e);return n&&n.pitches&&n.pitches.length>0?(n.pitches[0].startTie={},t&&(n.pitches[0].startTie.style=`dotted`),!0):!1},this.appendElement=function(n,o,c,l){return l.el_type=n,o!==null&&(l.startChar=o),c!==null&&(l.endChar=c),n===`note`?getDuration(l)>=.25||l.force_end_beam_last&&e.potentialStartBeam!==void 0?endBeamLast(e):l.end_beam&&e.potentialStartBeam!==void 0?l.rest===void 0?endBeamHere(l,e):endBeamLast(e):l.rest===void 0&&(e.potentialStartBeam===void 0?l.end_beam||(e.potentialStartBeam=l,delete e.potentialEndBeam):e.potentialEndBeam=l):endBeamLast(e),delete l.end_beam,delete l.force_end_beam_last,l.rest&&l.rest.type===`invisible`&&delete l.decoration,e.lines.length<=e.lineNum||e.lines[e.lineNum].staff.length<=e.staffNum?!1:(pushNote(t,e,l,r,a),!0)},this.appendStartingElement=function(t,n,r,a){closeLine(e);var o;t===`key`&&(o=a.impliedNaturals,delete a.impliedNaturals,delete a.explicitAccidentals);var c=Object.assign({},a);if(e.lines[e.lineNum]){var l=e.lines[e.lineNum].staff;if(l){l.length<=e.staffNum&&(l[e.staffNum]={},l[e.staffNum].clef=Object.assign({},l[0].clef),l[e.staffNum].key=Object.assign({},l[0].key),l[0].meter&&(l[e.staffNum].meter=Object.assign({},l[0].meter)),l[e.staffNum].workingClef=Object.assign({},l[0].workingClef),l[e.staffNum].voices=[[]]),t===`clef`&&(l[e.staffNum].workingClef=c);for(var u=l[e.staffNum].voices[e.voiceNum],d=0;d<u.length;d++){if(u[d].el_type===`note`||u[d].el_type===`bar`){c.el_type=t,c.startChar=n,c.endChar=r,o&&(c.accidentals=o.concat(c.accidentals)),u.push(c);return}if(u[d].el_type===t){c.el_type=t,c.startChar=n,c.endChar=r,o&&(c.accidentals=o.concat(c.accidentals)),u[d]=c;return}}l[e.staffNum][t]=a}}},this.addSubtitle=function(t,n){pushLine(e,{subtitle:{text:t,startChar:n.startChar,endChar:n.endChar}})},this.addSpacing=function(t){e.vskipPending=t},this.addNewPage=function(t){pushLine(e,{newpage:t})},this.addSeparator=function(t,n,r,a){pushLine(e,{separator:{spaceAbove:Math.round(t),spaceBelow:Math.round(n),lineLength:Math.round(r),startChar:a.startChar,endChar:a.endChar}})},this.addText=function(t,n){pushLine(e,{text:{text:t,startChar:n.startChar,endChar:n.endChar}})},this.addCentered=function(t){pushLine(e,{text:[{text:t,center:!0}]})},this.changeVoiceScale=function(e){t.appendElement(`scale`,null,null,{size:e})},this.changeVoiceColor=function(e){t.appendElement(`color`,null,null,{color:e})},this.startNewLine=function(n){closeLine(e),n.currentVoiceName&&(a=n.currentVoiceName,r[n.currentVoiceName]=n),e.lines[e.lineNum]===void 0?createLine(t,e,n):e.lines[e.lineNum].staff===void 0?(e.lineNum++,this.startNewLine(n)):e.lines[e.lineNum].staff[e.staffNum]===void 0?createStaff(t,e,n):e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum]===void 0?createVoice(t,e,n):containsNotes(e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])?(e.lineNum++,this.startNewLine(n)):n.part&&t.appendElement(`part`,n.part.startChar,n.part.endChar,{title:n.part.title})},this.setRunningFont=function(t,n){e.runningFonts[t]=n},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var n=t[t.length-1];if(n.el_type===`bar`)n.barNumber!==void 0&&(n.barNumber=e);else return e-1}return e},this.hasBeginMusic=function(){for(var t=0;t<e.lines.length;t++)if(e.lines[t].staff)return!0;return!1},this.isFirstLine=function(t){for(var n=t-1;n>=0;n--)if(e.lines[n].staff!==void 0)return!1;return!0},this.getCurrentVoice=function(){var t=getPrevMusicLine(e.lines,e.lineNum);if(!t)return null;var n=t.staff[e.staffNum];return n?n.voices[e.voiceNum]===void 0?null:n.voices[e.voiceNum]:null},this.setCurrentVoice=function(t,n,r){e.staffNum=t,e.voiceNum=n,a=r;for(var o=0;o<e.lines.length;o++)if(e.lines[o].staff&&(e.lines[o].staff[t]===void 0||e.lines[o].staff[t].voices[n]===void 0||!containsNotes(e.lines[o].staff[t].voices[n])))return e.lineNum=o,!!(!e.lines[o].staff[t]||e.lines[o].staff[t].voices[n]);return e.lineNum=o,!1},this.addMetaText=function(t,n,r){e.metaText[t]===void 0?(e.metaText[t]=n,e.metaTextInfo[t]=r):(typeof e.metaText[t]==`string`&&typeof n==`string`?e.metaText[t]+=`
|
|
8
|
+
`+n:(e.metaText[t]===`string`&&(e.metaText[t]=[{text:e.metaText[t]}]),typeof n==`string`&&(n=[{text:n}]),e.metaText[t]=e.metaText[t].concat(n)),e.metaTextInfo[t].endChar=r.endChar)},this.addMetaTextArray=function(t,n,r){e.metaText[t]===void 0?(e.metaText[t]=[n],e.metaTextInfo[t]=r):(e.metaText[t].push(n),e.metaTextInfo[t].endChar=r.endChar)},this.addMetaTextObj=function(t,n,r){e.metaText[t]=n,e.metaTextInfo[t]=r}};function isArrayOfStrings(e){if(!e||typeof e==`string`)return!1;for(var t=0;t<e.length;t++)if(typeof e[t]!=`string`)return!1;return!0}function simplifyMetaText(e){isArrayOfStrings(e.metaText.notes)&&(e.metaText.notes=e.metaText.notes.join(`
|
|
9
|
+
`)),isArrayOfStrings(e.metaText.history)&&(e.metaText.history=e.metaText.history.join(`
|
|
10
|
+
`))}function resolveOverlays(e){for(var t=!1,n=[],r=0;r<e.lines.length;r++){var a=e.lines[r];if(a.staff)for(var o=0;o<a.staff.length;o++){for(var c=a.staff[o],l=[],u=0;u<c.voices.length;u++){var d=c.voices[u];l.push({hasOverlay:!1,voice:[],snip:[]}),n[r]=0;for(var f=0,p=!1,m=0,h=-1,g=0;g<d.length;g++){var _=d[g];if(_.el_type===`overlay`&&!p){t=!0,p=!0,h=g,l[u].hasOverlay=!0,m===0&&(m=n[r]);for(var y=0;y<r;y++)n[y]&&e.lines[y].staff&&c.voices.length>=e.lines[y].staff[0].voices.length&&e.lines[y].staff[0].voices.push([{el_type:`note`,duration:n[y],rest:{type:`invisible`},startChar:_.startChar,endChar:_.endChar}])}else _.el_type===`bar`?(p?(p=!1,l[u].snip.push({start:h,len:g-h}),l[u].voice.push(_)):(f>0&&l[u].voice.push({el_type:`note`,duration:f,rest:{type:`invisible`},startChar:_.startChar,endChar:_.endChar}),l[u].voice.push(_)),f=0):_.el_type===`note`?p?l[u].voice.push(_):(f+=_.duration,n[r]+=_.duration):(_.el_type===`scale`||_.el_type===`stem`||_.el_type===`overlay`||_.el_type===`style`||_.el_type===`transpose`||_.el_type===`color`)&&l[u].voice.push(_)}l[u].hasOverlay&&l[u].snip.length===0&&l[u].snip.push({start:h,len:d.length-h})}for(u=0;u<l.length;u++){var b=l[u];if(b.hasOverlay){b.voice.splice(0,0,{el_type:`stem`,direction:`down`}),c.voices.push(b.voice);for(var x=b.snip.length-1;x>=0;x--){var S=b.snip[x];c.voices[u].splice(S.start,S.len),c.voices[u].splice(S.start+1,0,{el_type:`stem`,direction:`auto`});var C=findLastBar(c.voices[u],S.start);c.voices[u].splice(C,0,{el_type:`stem`,direction:`up`})}for(x=0;x<c.voices[c.voices.length-1].length;x++){c.voices[c.voices.length-1][x]=Object.assign({},c.voices[c.voices.length-1][x]);var w=c.voices[c.voices.length-1][x];w.el_type===`bar`&&w.startEnding&&delete w.startEnding,w.el_type===`bar`&&w.endEnding&&delete w.endEnding}}}}}return t}function findLastBar(e,t){for(var n=t-1;n>0&&e[n].el_type!==`bar`;n--);return n}function fixTitles(e){for(var t=!0,n=0;n<e.length;n++){var r=e[n];if(r.staff){for(var a=0;a<r.staff.length;a++){var o=r.staff[a];if(o.title){for(var c=!1,l=0;l<o.title.length;l++)o.title[l]?(o.title[l]=t?o.title[l].name:o.title[l].subname,o.title[l]?c=!0:o.title[l]=``):o.title[l]=``;c||delete o.title}}t=!1}}}function cleanUpSlursInLine(e,t,n,r){r[t]||(r[t]=[]),r[t][n]||(r[t][n]=[]);for(var a,addEndSlur=function(e,o,c){if(r[t][n][c]===void 0){for(a=0;a<r[t][n].length;a++)if(r[t][n][a]!==void 0){c=a;break}if(r[t][n][c]===void 0){var l=c*100+1;e.endSlur.forEach(function(e){l===e&&--l}),r[t][n][c]=[l]}}for(var u,d=0;d<o;d++)u=r[t][n][c].pop(),e.endSlur.push(u);return r[t][n][c].length===0&&delete r[t][n][c],u},addStartSlur=function(e,a,o,c){e.startSlur=[],r[t][n][o]===void 0&&(r[t][n][o]=[]);for(var l=o*100+1,u=0;u<a;u++)c&&(c.forEach(function(e){l===e&&++l}),c.forEach(function(e){l===e&&++l}),c.forEach(function(e){l===e&&++l})),r[t][n][o].forEach(function(e){l===e&&++l}),r[t][n][o].forEach(function(e){l===e&&++l}),r[t][n][o].push(l),e.startSlur.push({label:l}),e.dottedSlur&&(e.startSlur[e.startSlur.length-1].style=`dotted`,delete e.dottedSlur),l++},o=0;o<e.length;o++){var c=e[o];if(c.el_type===`note`){if(c.gracenotes)for(var l=0;l<c.gracenotes.length;l++){if(c.gracenotes[l].endSlur){var u=c.gracenotes[l].endSlur;c.gracenotes[l].endSlur=[];for(var d=0;d<u;d++)addEndSlur(c.gracenotes[l],1,20)}c.gracenotes[l].startSlur&&(a=c.gracenotes[l].startSlur,addStartSlur(c.gracenotes[l],a,20))}if(c.endSlur&&(a=c.endSlur,c.endSlur=[],addEndSlur(c,a,0)),c.startSlur&&(a=c.startSlur,addStartSlur(c,a,0)),c.pitches){for(var f=[],p=0;p<c.pitches.length;p++)if(c.pitches[p].endSlur){var m=c.pitches[p].endSlur;c.pitches[p].endSlur=[];for(var h=0;h<m;h++){var g=addEndSlur(c.pitches[p],1,p+1);f.push(g)}}for(p=0;p<c.pitches.length;p++)c.pitches[p].startSlur&&(a=c.pitches[p].startSlur,addStartSlur(c.pitches[p],a,p+1,f));c.gracenotes&&c.pitches[0].endSlur&&c.pitches[0].endSlur[0]===100&&c.pitches[0].startSlur&&(c.gracenotes[0].endSlur?c.gracenotes[0].endSlur.push(c.pitches[0].startSlur[0].label):c.gracenotes[0].endSlur=[c.pitches[0].startSlur[0].label],c.pitches[0].endSlur.length===1?delete c.pitches[0].endSlur:c.pitches[0].endSlur[0]===100?c.pitches[0].endSlur.shift():c.pitches[0].endSlur[c.pitches[0].endSlur.length-1]===100&&c.pitches[0].endSlur.pop(),r[t][n][1].length===1?delete r[t][n][1]:r[t][n][1].pop())}}}}function wrapMusicLines(e,t){for(i=0;i<e.length;i++)if(e[i].staff!==void 0)for(s=0;s<e[i].staff.length;s++){var n=[];for(v=0;v<e[i].staff[s].voices.length;v++)for(var r=e[i].staff[s].voices[v],a=0,o=0;o<r.length;o++)if(r[o].el_type===`bar`){if(a++,a>=t&&o<r.length-1){var c=getNextMusicLine(e,i);if(!c){var l=JSON.parse(JSON.stringify(e[i]));e.push(Object.assign({},l)),c=e[e.length-1];for(var u=0;u<c.staff.length;u++)for(var d=0;d<c.staff[u].voices.length;d++)c.staff[u].voices[d]=[]}var f=o+1,p=e[i].staff[s].voices[v].slice(f);return e[i].staff[s].voices[v]=e[i].staff[s].voices[v].slice(0,f),c.staff[s].voices[v]=n.concat(p.concat(c.staff[s].voices[v])),!0}}else r[o].duration||n.push(r[o])}return!1}function getPrevMusicLine(e,t){for(;t>=0;){if(e[t].staff)return e[t];t--}return null}function getNextMusicLine(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}function getLastNote(e){if(!e.lines[e.lineNum]||!e.lines[e.lineNum].staff||!e.lines[e.lineNum].staff[e.staffNum])return null;var t=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum];if(!t)return null;for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.el_type===`note`)return r}return null}function getDuration(e){return e.duration?e.duration:0}function closeLine(e){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam}function containsNotes(e){for(var t=0;t<e.length;t++)if(e[t].el_type===`note`||e[t].el_type===`bar`)return!0;return!1}function containsNotesStrict(e){for(var t=0;t<e.length;t++)if(e[t].el_type===`note`&&(e[t].rest===void 0||e[t].chord!==void 0))return!0;return!1}function pushLine(e,t){e.vskipPending&&(t.vskip=e.vskipPending,delete e.vskipPending),e.lines.push(t)}function pushNote(e,t,n,r,a){var o=t.lines[t.lineNum].staff[t.staffNum];if(n.pitches!==void 0){var c=o.workingClef.verticalPos;n.pitches.forEach(function(e){e.verticalPos=e.pitch-c})}if(n.gracenotes!==void 0){var l=o.workingClef.verticalPos;n.gracenotes.forEach(function(e){e.verticalPos=e.pitch-l})}o.voices.length<=t.voiceNum&&(r[a]||(r[a]={}),createVoice(e,t,r[a])),o.voices[t.voiceNum].push(n)}function endBeamHere(e,t){t.potentialStartBeam.startBeam=!0,e.endBeam=!0,delete t.potentialStartBeam,delete t.potentialEndBeam}function endBeamLast(e){e.potentialStartBeam!==void 0&&e.potentialEndBeam!==void 0&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam}function setLineFont(e,t,n){if(e.runningFonts[t]){for(var r=!1,a=Object.keys(n),o=0;o<a.length;o++)e.runningFonts[t][a[o]]!==n[a[o]]&&(r=!0);r&&(e.lines[e.lineNum].staff[e.staffNum][t]=n)}e.runningFonts[t]=n}function createVoice(e,t,n){var r=t.lines[t.lineNum].staff[t.staffNum];if(r.voices[t.voiceNum]=[],r.title||=[],r.title[t.voiceNum]={name:n.name,subname:n.subname},n.style&&e.appendElement(`style`,null,null,{head:n.style}),n.stem)e.appendElement(`stem`,null,null,{direction:n.stem});else if(t.voiceNum>0){if(r.voices[0]!==void 0){for(var a=!1,o=0;o<r.voices[0].length;o++)r.voices[0].el_type===`stem`&&(a=!0);a||r.voices[0].splice(0,0,{el_type:`stem`,direction:`up`})}e.appendElement(`stem`,null,null,{direction:`down`})}n.scale&&e.appendElement(`scale`,null,null,{size:n.scale}),n.color&&e.appendElement(`color`,null,null,{color:n.color})}function createStaff(e,t,n){n.key&&n.key.impliedNaturals&&(n.key.accidentals=n.key.accidentals.concat(n.key.impliedNaturals),delete n.key.impliedNaturals),t.lines[t.lineNum].staff[t.staffNum]={voices:[],clef:n.clef,key:n.key,workingClef:n.clef};var r=t.lines[t.lineNum].staff[t.staffNum];n.stafflines!==void 0&&(r.clef.stafflines=n.stafflines,r.workingClef.stafflines=n.stafflines),n.staffscale&&(r.staffscale=n.staffscale),n.annotationfont&&setLineFont(t,`annotationfont`,n.annotationfont),n.gchordfont&&setLineFont(t,`gchordfont`,n.gchordfont),n.tripletfont&&setLineFont(t,`tripletfont`,n.tripletfont),n.vocalfont&&setLineFont(t,`vocalfont`,n.vocalfont),n.bracket&&(r.bracket=n.bracket),n.brace&&(r.brace=n.brace),n.connectBarLines&&(r.connectBarLines=n.connectBarLines),n.barNumber&&(r.barNumber=n.barNumber),createVoice(e,t,n),n.part&&e.appendElement(`part`,n.part.startChar,n.part.endChar,{title:n.part.title}),n.meter!==void 0&&(r.meter=n.meter),t.vskipPending&&(t.lines[t.lineNum].vskip=t.vskipPending,delete t.vskipPending)}function createLine(e,t,n){t.lines[t.lineNum]={staff:[]},createStaff(e,t,n)}t.exports=TuneBuilder})),M=e.n(((e,t)=>{var n=u(),r=d(),a=y(),o=x(),c=S(),l=C(),f=A(),p=j(),Parse=function(){"use strict";var e=new f,t=new p(e),u,d=``,m=``;this.getTune=function(){var t={formatting:e.formatting,lines:e.lines,media:e.media,metaText:e.metaText,metaTextInfo:e.metaTextInfo,version:e.version,addElementToEvents:e.addElementToEvents,addUsefulCallbackInfo:e.addUsefulCallbackInfo,getTotalTime:e.getTotalTime,getTotalBeats:e.getTotalBeats,getBarLength:e.getBarLength,getBeatLength:e.getBeatLength,getBeatsPerMeasure:e.getBeatsPerMeasure,getBpm:e.getBpm,getMeter:e.getMeter,getMeterFraction:e.getMeterFraction,getPickupLength:e.getPickupLength,getKeySignature:e.getKeySignature,getElementFromChar:e.getElementFromChar,makeVoicesArray:e.makeVoicesArray,millisecondsPerMeasure:e.millisecondsPerMeasure,setupEvents:e.setupEvents,setTiming:e.setTiming,setUpAudio:e.setUpAudio,deline:e.deline,findSelectableElement:e.findSelectableElement,getSelectableArray:e.getSelectableArray};return e.lineBreaks&&(t.lineBreaks=e.lineBreaks),e.visualTranspose&&(t.visualTranspose=e.visualTranspose),t};function addPositioning(e,t,n){e.positioning||={},e.positioning[t]=n}function addFont(e,t,n){e.fonts||={},e.fonts[t]=n}var h={reset:function(){for(var e in this)this.hasOwnProperty(e)&&typeof this[e]!=`function`&&delete this[e];this.iChar=0,this.key={accidentals:[],root:`none`,acc:``,mode:``},this.meter=null,this.origMeter=null,this.hasMainTitle=!1,this.default_length=.125,this.clef={type:`treble`,verticalPos:0},this.octave=0,this.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.partForNextLine={},this.tempoForNextLine=[],this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.ignoredDecorations=[],this.score_is_present=!1,this.inEnding=!1,this.inTie=[],this.inTieChord={},this.vocalPosition=`auto`,this.dynamicPosition=`auto`,this.chordPosition=`auto`,this.ornamentPosition=`auto`,this.volumePosition=`auto`,this.openSlurs=[],this.freegchord=!1,this.endingHoldOver={}},differentFont:function(e,t){return this[e].decoration!==t[e].decoration||this[e].face!==t[e].face||this[e].size!==t[e].size||this[e].style!==t[e].style||this[e].weight!==t[e].weight},addFormattingOptions:function(e,t,n){n===`note`?(this.vocalPosition!==`auto`&&addPositioning(e,`vocalPosition`,this.vocalPosition),this.dynamicPosition!==`auto`&&addPositioning(e,`dynamicPosition`,this.dynamicPosition),this.chordPosition!==`auto`&&addPositioning(e,`chordPosition`,this.chordPosition),this.ornamentPosition!==`auto`&&addPositioning(e,`ornamentPosition`,this.ornamentPosition),this.volumePosition!==`auto`&&addPositioning(e,`volumePosition`,this.volumePosition),this.differentFont(`annotationfont`,t)&&addFont(e,`annotationfont`,this.annotationfont),this.differentFont(`gchordfont`,t)&&addFont(e,`gchordfont`,this.gchordfont),this.differentFont(`vocalfont`,t)&&addFont(e,`vocalfont`,this.vocalfont),this.differentFont(`tripletfont`,t)&&addFont(e,`tripletfont`,this.tripletfont)):n===`bar`&&(this.dynamicPosition!==`auto`&&addPositioning(e,`dynamicPosition`,this.dynamicPosition),this.chordPosition!==`auto`&&addPositioning(e,`chordPosition`,this.chordPosition),this.ornamentPosition!==`auto`&&addPositioning(e,`ornamentPosition`,this.ornamentPosition),this.volumePosition!==`auto`&&addPositioning(e,`volumePosition`,this.volumePosition),this.differentFont(`measurefont`,t)&&addFont(e,`measurefont`,this.measurefont),this.differentFont(`repeatfont`,t)&&addFont(e,`repeatfont`,this.repeatfont))},duplicateStartEndingHoldOvers:function(){this.endingHoldOver={inTie:[],inTieChord:{}};for(var e=0;e<this.inTie.length;e++)if(this.endingHoldOver.inTie.push([]),this.inTie[e])for(var t=0;t<this.inTie[e].length;t++)this.endingHoldOver.inTie[e].push(this.inTie[e][t]);for(var n in this.inTieChord)this.inTieChord.hasOwnProperty(n)&&(this.endingHoldOver.inTieChord[n]=this.inTieChord[n])},restoreStartEndingHoldOvers:function(){if(this.endingHoldOver.inTie){this.inTie=[],this.inTieChord={};for(var e=0;e<this.endingHoldOver.inTie.length;e++){this.inTie.push([]);for(var t=0;t<this.endingHoldOver.inTie[e].length;t++)this.inTie[e].push(this.endingHoldOver.inTie[e][t])}for(var n in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(n)&&(this.inTieChord[n]=this.endingHoldOver.inTieChord[n])}}},addWarning=function(e){h.warnings||=[],h.warnings.push(e)},addWarningObject=function(e){h.warningObjects||=[],h.warningObjects.push(e)},encode=function(e){var t=e.replace(/\x12/g,` `);return t=t.replace(/&/g,`&`),t=t.replace(/</g,`<`),t.replace(/>/g,`>`)},warn=function(e,t,n){t||=` `;var r=t[n];(r===` `||!r)&&(r=`SPACE`);var a=encode(t.substring(n-64,n))+`<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">`+r+`</span>`+encode(t.substring(n+1).substring(0,64));addWarning(`Music Line:`+u.lineIndex+`:`+(n+1)+`: `+e+`: `+a),addWarningObject({message:e,line:t,startChar:h.iChar+n,column:n})},g,_;this.getWarnings=function(){return h.warnings},this.getWarningObjects=function(){return h.warningObjects};var addWords=function(e,t){if(t.indexOf(``)>=0){d+=t;return}if(t=d+t,d=``,!e){warn(`Can't add words before the first line of music`,e,0);return}t=n.strip(t),t[t.length-1]!==`-`&&(t+=` `);for(var r=[],a=0,o=!1,addWord=function(e){var c=n.strip(t.substring(a,e));if(c=c.replace(/\\([-_*|~])/g,`$1`),a=e+1,c.length>0){o&&(c=c.replace(/~/g,` `));var l=t[e];return l!==`_`&&l!==`-`&&(l=` `),r.push({syllable:u.translateString(c),divider:l}),o=!1,!0}return!1},c=!1,l=0;l<t.length;l++){switch(t[l]){case` `:case``:addWord(l);break;case`-`:!c&&!addWord(l)&&r.length>0&&(n.last(r).divider=`-`,r.push({skip:!0,to:`next`}));break;case`_`:c||(addWord(l),r.push({skip:!0,to:`slur`}));break;case`*`:c||(addWord(l),r.push({skip:!0,to:`next`}));break;case`|`:c||(addWord(l),r.push({skip:!0,to:`bar`}));break;case`~`:c||(o=!0);break}c=t[l]===`\\`}var f=!1;e.forEach(function(e){if(r.length!==0){if(r[0].skip){switch(r[0].to){case`next`:e.el_type===`note`&&e.pitches!==null&&!f&&r.shift();break;case`slur`:e.el_type===`note`&&e.pitches!==null&&r.shift();break;case`bar`:e.el_type===`bar`&&r.shift();break}e.el_type!==`bar`&&(e.lyric===void 0?e.lyric=[{syllable:``,divider:` `}]:e.lyric.push({syllable:``,divider:` `}))}else if(e.el_type===`note`&&e.rest===void 0&&!f){var t=r.shift();t.syllable&&=t.syllable.replace(/ +/g,`\xA0`),e.lyric===void 0?e.lyric=[t]:e.lyric.push(t)}}})},addSymbols=function(e,t){if(t.indexOf(``)>=0){m+=t;return}if(t=m+t,m=``,!e){warn(`Can't add symbols before the first line of music`,e,0);return}t=n.strip(t),t[t.length-1]!==`-`&&(t+=` `);for(var r=[],a=0,o=!1,addWord=function(e){var c=n.strip(t.substring(a,e));if(a=e+1,c.length>0){o&&(c=c.replace(/~/g,` `));var l=t[e];return l!==`_`&&l!==`-`&&(l=` `),r.push({syllable:u.translateString(c),divider:l}),o=!1,!0}return!1},c=0;c<t.length;c++)switch(t[c]){case` `:case``:addWord(c);break;case`-`:!addWord(c)&&r.length>0&&(n.last(r).divider=`-`,r.push({skip:!0,to:`next`}));break;case`_`:addWord(c),r.push({skip:!0,to:`slur`});break;case`*`:addWord(c),r.push({skip:!0,to:`next`});break;case`|`:addWord(c),r.push({skip:!0,to:`bar`});break;case`~`:o=!0;break}var l=!1;e.forEach(function(e){if(r.length!==0){if(r[0].skip)switch(r[0].to){case`next`:e.el_type===`note`&&e.pitches!==null&&!l&&r.shift();break;case`slur`:e.el_type===`note`&&e.pitches!==null&&r.shift();break;case`bar`:e.el_type===`bar`&&r.shift();break}else if(e.el_type===`note`&&e.rest===void 0&&!l){var t=r.shift();e.lyric===void 0?e.lyric=[t]:e.lyric.push(t)}}})},parseLine=function(e){if(n.startsWith(e,`%%`)){var a=r.addDirective(e.substring(2));a&&warn(a,e,2);return}var o=e.indexOf(`%`);if(o>=0&&(e=e.substring(0,o)),e=e.replace(/\s+$/,``),e.length!==0){if(d){addWords(t.getCurrentVoice(),e.substring(2));return}if(m){addSymbols(t.getCurrentVoice(),e.substring(2));return}if(e.length<2||e[1]!==`:`||_.lineContinuation){_.parseMusic(e);return}var c=g.parseHeader(e);c.regular&&_.parseMusic(e),c.newline&&_.startNewLine(),c.words&&addWords(t.getCurrentVoice(),e.substring(2)),c.symbols&&addSymbols(t.getCurrentVoice(),e.substring(2))}};function appendLastMeasure(e,t){e.push({el_type:`hint`});for(var n=0;n<t.length;n++){var r=t[n],a=Object.assign({},r);if(e.push(a),r.el_type===`bar`)return}}function addHintMeasure(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=t[n];if(a)for(var o=0;o<a.voices.length;o++){var c=a.voices[o],l=r.voices[o];l&&appendLastMeasure(l,c)}}}function addHintMeasures(){for(var t=0;t<e.lines.length;t++){var n=e.lines[t].staff;if(n){for(var r=t+1;r<e.lines.length&&e.lines[r].staff===void 0;)r++;if(r<e.lines.length){var a=e.lines[r].staff;addHintMeasure(n,a)}}}}this.parse=function(f,p,y){p||={},y||=0,e.reset(),f=f.replace(/\r\n?/g,`
|
|
11
|
+
`)+`
|
|
12
|
+
`;var b=f.split(`
|
|
13
|
+
\\`);if(b.length>1){for(var x=1;x<b.length;x++)for(;b[x].length>0&&b[x][0]!==`
|
|
14
|
+
`;)b[x]=b[x].substr(1),b[x-1]+=` `;f=b.join(` `)}f=f.replace(/\\([ \t]*)(%.*)*\n/g,function(e,t,n){var r=n?Array(n.length+1).join(` `):``;return t+``+r+`
|
|
15
|
+
`});var S=f.split(`
|
|
16
|
+
`);n.last(S).length===0&&S.pop(),u=new c(S,h),g=new a(u,warn,h,e,t),_=new o(u,warn,h,e,t,g),p.print&&(e.media=`print`),h.reset(),h.iChar=y,p.visualTranspose?(h.globalTranspose=parseInt(p.visualTranspose),h.globalTranspose===0?h.globalTranspose=void 0:t.setVisualTranspose(p.visualTranspose)):h.globalTranspose=void 0,p.lineBreaks&&(h.lineBreaks=p.lineBreaks),g.reset(u,warn,h,e);try{p.format&&r.globalFormatting(p.format);for(var C=u.nextLine();C;){if(p.header_only&&h.is_in_header===!1||p.stop_on_warning&&h.warnings)throw`normal_abort`;var w=h.is_in_header;parseLine(C),w&&!h.is_in_header&&(t.setRunningFont(`annotationfont`,h.annotationfont),t.setRunningFont(`gchordfont`,h.gchordfont),t.setRunningFont(`tripletfont`,h.tripletfont),t.setRunningFont(`vocalfont`,h.vocalfont)),C=u.nextLine()}d&&addWords(t.getCurrentVoice(),``),m&&addSymbols(t.getCurrentVoice(),``),h.openSlurs=t.cleanUp(h.barsperstaff,h.staffnonote,h.openSlurs)}catch(e){if(e!==`normal_abort`)throw e}var T=792,E=8.5*72;switch(h.papersize){case`legal`:T=1008,E=8.5*72;break;case`A4`:T=11.7*72,E=8.3*72;break}if(h.landscape){var D=T;T=E,E=D}e.formatting.pagewidth||(e.formatting.pagewidth=E),e.formatting.pageheight||(e.formatting.pageheight=T),p.hint_measures&&addHintMeasures(),l.wrapLines(e,h.lineBreaks,h.barNumbers)}};t.exports=Parse})),N=e.n(((e,t)=>{var n=u(),bookParser=function(e){"use strict";var t=``,r=e.match(/(\s*)/);e=n.strip(e);for(var a=e.split(`
|
|
17
|
+
X:`),o=1;o<a.length;o++)a[o]=`X:`+a[o];var c=r?r[0].length:0,l=[];a.forEach(function(e){l.push({abc:e,startPos:c}),c+=e.length+1}),l.length>1&&!n.startsWith(l[0].abc,`X:`)&&l.shift().abc.split(`
|
|
18
|
+
`).forEach(function(e){n.startsWith(e,`%%`)&&(t+=e+`
|
|
19
|
+
`)});var u=t;return l.forEach(function(e){var r=e.abc.indexOf(`
|
|
20
|
+
|
|
21
|
+
`);r>0&&(e.abc=e.abc.substring(0,r)),e.pure=e.abc,e.abc=t+e.abc,e.title=``;var a=e.pure.split(`T:`);a.length>1&&(a=a[1].split(`
|
|
22
|
+
`),e.title=n.strip(a[0]));var o=e.pure.substring(2,e.pure.indexOf(`
|
|
23
|
+
`));e.id=n.strip(o)}),{header:u,tunes:l}};t.exports=bookParser})),P=e.n(((e,t)=>{function StringTablature(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:3,pitch2:t*e,height:5}}StringTablature.prototype.bypass=function(e){var t=e.staffGroup.voices;return!!(t.length>0&&t[0].isPercussion)},StringTablature.prototype.setRelative=function(e,t,n){switch(e.type){case`bar`:t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case`symbol`:var r=this.bar.pitch2/2;if(e.name==`dots.dot`)return n?(t.pitch=r,!1):(t.pitch=r+this.lineSpace,!0);break}return n},t.exports=StringTablature})),F=e.n(((e,t)=>{var n=function VoiceElement(e,t){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=e,this.voicetotal=t,this.bottom=7,this.top=7,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};n.prototype.addChild=function(e){if(e.type===`bar`){for(var t=!0,n=0;t&&n<this.children.length;n++)this.children[n].type.indexOf(`staff-extra`)<0&&this.children[n].type!==`tempo`&&(t=!1);t||(this.beams.push(`bar`),this.otherchildren.push(`bar`))}this.children[this.children.length]=e,this.setRange(e)},n.prototype.setLimit=function(e,t){var n=t.specialY;n||=t,n[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],n[e]):this.specialY[e]=n[e])},n.prototype.adjustRange=function(e){e.bottom!==void 0&&(this.bottom=Math.min(this.bottom,e.bottom)),e.top!==void 0&&(this.top=Math.max(this.top,e.top))},n.prototype.setRange=function(e){this.adjustRange(e),this.setLimit(`tempoHeightAbove`,e),this.setLimit(`partHeightAbove`,e),this.setLimit(`volumeHeightAbove`,e),this.setLimit(`dynamicHeightAbove`,e),this.setLimit(`endingHeightAbove`,e),this.setLimit(`chordHeightAbove`,e),this.setLimit(`lyricHeightAbove`,e),this.setLimit(`lyricHeightBelow`,e),this.setLimit(`chordHeightBelow`,e),this.setLimit(`volumeHeightBelow`,e),this.setLimit(`dynamicHeightBelow`,e)},n.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},n.prototype.addBeam=function(e){this.beams.push(e)},n.prototype.setWidth=function(e){this.w=e},t.exports=n})),I=e.n(((e,t)=>{var setClass=function(e,t,n,r){if(e)for(var a=0;a<e.length;a++){var o=e[a],c=o.getAttribute(`highlight`);c||=`fill`,o.setAttribute(c,r);var l=o.getAttribute(`class`);l||=``,l=l.replace(n,``),l=l.replace(t,``),t.length>0&&(l.length>0&&l[l.length-1]!==` `&&(l+=` `),l+=t),o.setAttribute(`class`,l)}};t.exports=setClass})),L=e.n(((e,t)=>{var n=I(),highlight=function(e,t){e===void 0&&(e=`abcjs-note_selected`),t===void 0&&(t=`#ff0000`),n(this.elemset,e,``,t)};t.exports=highlight})),R=e.n(((e,t)=>{var n=I(),unhighlight=function(e,t){e===void 0&&(e=`abcjs-note_selected`),t===void 0&&(t=`#000000`),n(this.elemset,``,e,t)};t.exports=unhighlight})),z=e.n(((e,t)=>{var n=L(),r=R(),a=function AbsoluteElement(e,t,n,r,a,o){o||={},this.tuneNumber=a,this.abcelem=e,this.duration=t,this.durationClass=o.durationClassOveride?o.durationClassOveride:this.duration,this.minspacing=n||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=r,this.fixed={w:0,t:void 0,b:void 0},this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};a.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},a.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),this.fixed.t===void 0?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),this.fixed.b===void 0?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom),e.dx<this.extraw&&(this.extraw=e.dx),this.extra[this.extra.length]=e,this._addChild(e)},a.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},a.prototype.addRight=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),e.top!==void 0&&(this.fixed.t===void 0?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top)),e.bottom!==void 0&&(this.fixed.b===void 0?this.fixed.b=e.bottom:this.fixed.b=Math.min(this.fixed.b,e.bottom)),e.dx+e.w>this.w&&(this.w=e.dx+e.w),this.right[this.right.length]=e,this._addChild(e)},a.prototype.addFixed=function(e){this._addChild(e)},a.prototype.addFixedX=function(e){this._addChild(e)},a.prototype.addCentered=function(e){var t=e.w/2;-t<this.extraw&&(this.extraw=-t),this.extra[this.extra.length]=e,e.dx+t>this.w&&(this.w=e.dx+t),this.right[this.right.length]=e,this._addChild(e)},a.prototype.setLimit=function(e,t){t[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],t[e]):this.specialY[e]=t[e])},a.prototype._addChild=function(e){var t=!0;this.abcelem.el_type==`clef`&&e.type==`barNumber`&&(t=!1),e.parent=this,this.children[this.children.length]=e,t&&this.pushTop(e.top),this.pushBottom(e.bottom),this.setLimit(`tempoHeightAbove`,e),this.setLimit(`partHeightAbove`,e),this.setLimit(`volumeHeightAbove`,e),this.setLimit(`dynamicHeightAbove`,e),this.setLimit(`endingHeightAbove`,e),this.setLimit(`chordHeightAbove`,e),this.setLimit(`lyricHeightAbove`,e),this.setLimit(`lyricHeightBelow`,e),this.setLimit(`chordHeightBelow`,e),this.setLimit(`volumeHeightBelow`,e),this.setLimit(`dynamicHeightBelow`,e)},a.prototype.pushTop=function(e){e!==void 0&&(this.top===void 0?this.top=e:this.top=Math.max(e,this.top))},a.prototype.pushBottom=function(e){e!==void 0&&(this.bottom===void 0?this.bottom=e:this.bottom=Math.min(e,this.bottom))},a.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},a.prototype.center=function(e,t){this.x=(t.x-e.x)/2+e.x-this.w/2;for(var n=0;n<this.children.length;n++)this.children[n].setX(this.x)},a.prototype.setHint=function(){this.hint=!0},a.prototype.highlight=function(e,t){n.bind(this)(e,t)},a.prototype.unhighlight=function(e,t){r.bind(this)(e,t)},t.exports=a})),B=e.n(((e,t)=>{var n=function RelativeElement(e,t,n,r,a){switch(a||={},this.x=0,this.c=e,this.dx=t,this.w=n,this.pitch=r,this.scalex=a.scalex||1,this.scaley=a.scaley||1,this.type=a.type||`symbol`,this.pitch2=a.pitch2,this.linewidth=a.linewidth,this.klass=a.klass,this.anchor=a.anchor?a.anchor:`middle`,this.top=r,this.pitch2!==void 0&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,this.pitch2!==void 0&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),a.thickness&&(this.top+=a.thickness/2,this.bottom-=a.thickness/2),a.stemHeight&&(a.stemHeight>0?this.top+=a.stemHeight:this.bottom+=a.stemHeight),a.dim&&(this.dim=a.dim),a.position&&(this.position=a.position),this.height=a.height?a.height:4,a.top&&(this.top=a.top),a.bottom&&(this.bottom=a.bottom),a.name?this.name=a.name:this.c?this.name=this.c:this.name=this.type,a.realWidth?this.realWidth=a.realWidth:this.realWidth=this.w,this.centerVertically=!1,this.type){case`debug`:this.chordHeightAbove=this.height;break;case`lyric`:a.position&&a.position===`below`?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case`chord`:a.position&&a.position===`below`?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case`text`:this.pitch===void 0?a.position&&a.position===`below`?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case`part`:this.partHeightAbove=this.height;break}};n.prototype.getChordDim=function(){if(this.type===`debug`||!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e=0,t=this.type===`chord`?this.realWidth/2:0,n=this.x-t-e;return{left:n,right:n+this.realWidth+e}},n.prototype.invertLane=function(e){this.lane===void 0&&(this.lane=0),this.lane=e-this.lane-1},n.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=this.height*1.25*this.lane:this.chordHeightBelow=this.height*1.25*this.lane},n.prototype.getLane=function(){return this.lane===void 0?0:this.lane},n.prototype.setX=function(e){this.x=e+this.dx},t.exports=n})),V=e.n(((e,t)=>{var n=z(),r=B();function isObject(e){return e!=null&&e.constructor===Object}function cloneObject(e,t){for(var n in t)t.hasOwnProperty(n)&&(Array.isArray(t[n])||isObject(t[n])||(e[n]=t[n]))}function cloneAbsolute(e){var t=new n(``,0,0,``,0);return cloneObject(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},cloneObject(t.abcelem,e.abcelem),t.abcelem.el_type===`note`&&(t.abcelem.el_type=`tabNumber`)),e.cloned=t,t}function cloneAbsoluteAndRelatives(e,t){var n=cloneAbsolute(e);if(t)for(var a=e.children,o=!0,c=0;c<a.length;c++){var l=a[c],u=new r(``,0,0,0,``);cloneObject(u,l),o=t.tablature.setRelative(l,u,o),n.children.push(u)}return n}function buildTabAbsolute(e,t,a){var o=`tab.tiny`,c=7.5;e.isTabBig&&(o=`tab.big`,c=10);var l={el_type:`tab`,icon:o,Ypos:c};if(c+=e.tabSymbolOffset,!e.hideTabSymbol){var u=new n(l,0,0,`symbol`,0);u.x=t;var d=new r(o,0,0,7.5,`tab`);d.x=a,u.children.push(d),u.abcelem.el_type==`tab`&&(d.pitch=c)}return u}function lyricsDim(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var n=e.extra[t];if(n.type==`lyric`)return{bottom:n.bottom,height:n.height}}return null}function TabAbsoluteElements(){this.accidentals=null}function getInitialStaffSize(e){for(var t=0,n=0;n<e.length;n++)e[n].tabNameInfos||t++;return t}function buildRelativeTabNote(e,t,n,a,o){var c=a.num;a.note.quarter!=null&&(c=c.toString(),c+=a.note.quarter);var l=e.semantics.stringToPitch(a.str);n.notes.push({num:c,str:a.str,pitch:a.note.emit()});var u=new r(c,0,0,l+.3,{type:`tabNumber`});return u.x=t,u.isGrace=o,u.isAltered=a.note.isAltered,u}function getXGrace(e,t){var n=0;if(e.extra){for(var r=0;r<e.extra.length;r++)if(e.extra[r].c.indexOf(`noteheads`)>=0){if(n===t)return e.extra[r].x+e.extra[r].w/2;n++}}return-1}function graceInRest(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function convertToNumber(e,t,n){var r=e.semantics.notesToNumber(t,n);if(r.error)return e.setError(r.error),r;if(r.graces&&r.notes){var a=r.notes.length-1;r.notes[a].graces=r.graces}return r}function buildGraceRelativesForRest(e,t,n,r,a){for(var o=0;o<r.length;o++){var c={el_type:`note`,startChar:n.abcelem.startChar,endChar:n.abcelem.endChar,notes:[],grace:!0},l=getXGrace(n,o),u=r[o],d=buildRelativeTabNote(e,l,c,u,!0);t.children.push(d),a.push(c)}}TabAbsoluteElements.prototype.build=function(e,t,n,r,a,o,c){getInitialStaffSize(t);var l=t[a+r],u=t[c],d=null,f=null;l.children[0].abcelem.el_type!=`clef`&&o!=`none`&&l.children.splice(0,0,o);for(var p=0;p<l.children.length;p++){var m=l.children[p],h=m.x,g=h;switch(m.isClef&&(u.children.push(buildTabAbsolute(e,h,g)),m.abcelem.type.indexOf(`-8`)>=0&&(e.semantics.clefTranspose=-12),m.abcelem.type.indexOf(`+8`)>=0&&(e.semantics.clefTranspose=12)),m.type){case`staff-extra key-signature`:this.accidentals=m.abcelem.accidentals,e.semantics.accidentals=this.accidentals;break;case`bar`:e.semantics.measureAccidentals={};var _=!1;p===l.children.length-1&&(_=!0);var y=cloneAbsoluteAndRelatives(m,e);if(y.abcelem.barNumber){delete y.abcelem.barNumber;for(var b=0;b<y.children.length;b++)if(y.children[b].type===`barNumber`){y.children.splice(b,1);break}}y.abcelem.lastBar=_,u.children.push(y),n.push({el_type:m.abcelem.el_type,type:m.abcelem.type,endChar:m.abcelem.endChar,startChar:m.abcelem.startChar,abselem:y});break;case`rest`:var x=graceInRest(m);if(x){if(d=convertToNumber(e,null,x),d.error)return;k={el_type:`note`,startChar:m.abcelem.startChar,endChar:m.abcelem.endChar,notes:[],grace:!0},buildGraceRelativesForRest(e,S,m,d.graces,n)}break;case`note`:var S=cloneAbsolute(m);S.x=m.heads[0].x+m.heads[0].w/2,S.lyricDim=lyricsDim(m);var C=m.abcelem.pitches,w=m.abcelem.gracenotes;if(S.type=`tabNumber`,d=convertToNumber(e,C,w),d.error)return;if(d.graces){var T=d.notes.length-1;d.notes[T].graces=d.graces}f={el_type:`note`,startChar:m.abcelem.startChar,endChar:m.abcelem.endChar,notes:[]};for(var E=0;E<d.notes.length;E++){var D=d.notes[E];if(D.graces)for(var O=0;O<D.graces.length;O++){var k={el_type:`note`,startChar:m.abcelem.startChar,endChar:m.abcelem.endChar,notes:[],grace:!0},A=getXGrace(m,O),j=D.graces[O],M=buildRelativeTabNote(e,A,k,j,!0);S.children.push(M),n.push(k)}var N=buildRelativeTabNote(e,S.x+m.heads[E].dx,f,D,!1);S.children.push(N)}f.notes.length>0&&(f.abselem=S,n.push(f),u.children.push(S));break}}},t.exports=TabAbsoluteElements})),H=e.n(((e,t)=>{var n=F(),r=V(),a=w();function initSpecialY(){return{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}}function getLyricHeight(e){for(var t=0,n=0;n<e.children.length;n++){var r=e.children[n];r.specialY&&r.specialY.lyricHeightBelow>t&&(t=r.specialY.lyricHeightBelow)}return t}function buildTabName(e,t,n){var r=e.semantics,a=t.controller.getTextSize,o=r.tabInfos(e),c=r.suppress(e),l=!0;if(c&&(l=!1),l){var u=a.calc(o,`tablabelfont`,`text instrumentname`);return n.tabNameInfos={textSize:{height:u.height,width:u.width},name:o},u.height}return 0}function islastTabInStaff(e,t){return t[e].isTabStaff?e===t.length-1?!0:!t[e+1].isTabStaff:!1}function getStaffNumbers(e){for(var t=0,n=0;n<e.length;n++)e[n].isTabStaff||t++;return t}function getParentStaffIndex(e,t){for(var n=t;n>=0;n--)if(!e[n].isTabStaff)return n;return-1}function linkStaffAndTabs(e){for(var t=0;t<e.length;t++)if(e[t].isTabStaff){var n=getParentStaffIndex(e,t);e[t].hasStaff=e[n],e[n].hasTab||(e[n].hasTab=[]),e[n].hasTab.push(e[t])}}function isMultiVoiceSingleStaff(e,t){return getStaffNumbers(e)===1&&t.voices.length>1}function getNextTabPos(e,t){for(var n=0,r=0,a=!0,o=0;a;){if(!t[n])return-1;if(t[n].isTabStaff||(o=t[n].voices.length),t[n].isTabStaff){if(r++,islastTabInStaff(n,t)&&r<o)return n+1}else if(r=0,n>=e&&(n+1==t.length||!t[n+1].isTabStaff))return n+1;if(n++,n>t.length)return-1}}function getLastStaff(e,t){for(var n=t;n>=0;n--)if(!e[n].isTabStaff)return e[n];return null}function checkVoiceKeySig(e,t){return e[t].children[0].abcelem.el_type===`clef`?null:t==0?`none`:e[t-1].children[0]}function tabRenderer(e,t,o,c){var l=new r,u={clef:{type:`TAB`}},d=e.linePitch*e.nbLines,f=o.staff;if(f){var p=f[0];if(p&&p.clef&&p.clef.stafflines==0){e.setError(`No tablatures when stafflines=0`);return}f.splice(f.length,0,u)}var m=o.staffGroup,h=m.voices,g=h[0],_=getLyricHeight(g),y=3,b=c,x=m.staffs[b],S=d+y-x.bottom-_;x.isTabStaff&&(S=x.top);var C={bottom:-1,isTabStaff:!0,specialY:initSpecialY(),lines:e.nbLines,linePitch:e.linePitch,dy:.15,top:S},w=getNextTabPos(c,m.staffs);if(w!==-1){C.parentIndex=w-1,m.staffs.splice(w,0,C),m.height+=d+y;var T=getLastStaff(m.staffs,w),E=1;isMultiVoiceSingleStaff(m.staffs,T)&&(E=T.voices.length),u.voices=[];for(var D=0;D<E;D++){var O=new n(0,0);D>0&&(O.duplicate=!0);var k=buildTabName(e,t,O)/a.STEP;k=Math.max(k,1),m.staffs[c].top+=1,m.height+=k,O.staff=C;var A=h.length;h.splice(h.length,0,O);var j=checkVoiceKeySig(h,D+c);u.voices[D]=[],l.build(e,h,u.voices[D],D,c,j,A)}linkStaffAndTabs(m.staffs)}}t.exports=tabRenderer})),ee=e.n(((e,t)=>{var n={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},r=[`C`,`-`,`D`,`-`,`E`,`F`,`-`,`G`,`-`,`A`,`-`,`B`,`c`,`-`,`d`,`-`,`e`,`f`,`-`,`g`,`-`,`a`,`-`,`b`];function noteToMidi(e){var t=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(t&&t.length===5){var a=n[t[1]],o=r.indexOf(t[2]),c=t[4].length-t[3].length;return 48+o+a+c*12}return 0}function midiToNote(e){e=parseInt(e,10);var t=Math.floor(e/12),n=e%12,a=r[n];if(a===`-`&&(a=`^`+r[n-1]),t>4)for(a=a.toLowerCase(),t-=5;t>0;)a+=`'`,t--;else for(;t<4;)a+=`,`,t++;return a}t.exports={noteToMidi,midiToNote}})),U=e.n(((e,t)=>{var{noteToMidi:n,midiToNote:r}=ee();function TabNote(e,t){var a=n(e);t&&(a+=t);var o=r(a),c=!1,l=!1,u=!1,d=null,f=null,p=!1,m=0;e.startsWith(`_`)?(c=!0,m=-1,e[1]==`/`?(c=!1,f=`v`,m=0):e[1]==`_`&&(p=!0,--m)):e.startsWith(`^`)?(l=!0,m=1,e[1]==`/`?(l=!1,f=`^`,m=0):e[1]==`^`&&(p=!0,m+=1)):e.startsWith(`=`)&&(d=!0,m=0),u=c||l||f!=null,(u||d)&&(o=f!=null||p?e.slice(2):e.slice(1));var h=(o.match(/,/g)||[]).length,g=(o.match(/'/g)||[]).length;this.pitch=a,this.pitchAltered=0,this.name=o,this.acc=m,this.isSharp=l,this.isKeySharp=!1,this.isDouble=p,this.isAltered=u,this.isFlat=c,this.isKeyFlat=!1,this.natural=d,this.quarter=f,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=h,this.isQuoted=g}function cloneNote(e){var t=e.name,n=new TabNote(t);return n.pitch=e.pitch,n.hasComma=e.hasComma,n.isLower=e.isLower,n.isQuoted=e.isQuoted,n.isSharp=e.isSharp,n.isKeySharp=e.isKeySharp,n.isFlat=e.isFlat,n.isKeyFlat=e.isKeyFlat,n}TabNote.prototype.sameNoteAs=function(e){return e.pitch===this.pitch},TabNote.prototype.isLowerThan=function(e){return e.pitch>this.pitch},TabNote.prototype.checkKeyAccidentals=function(e,t){if(!(this.isAltered||this.natural)){if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case`__`:this.acc=-2,this.pitchAltered=-2;return;case`_`:this.acc=-1,this.pitchAltered=-1;return;case`=`:this.acc=0,this.pitchAltered=0;return;case`^`:this.acc=1,this.pitchAltered=1;return;case`^^`:this.acc=2,this.pitchAltered=2;return}else if(e)for(var n=this.name,r=0;r<e.length;r++){var a=e[r];n==a.note.toUpperCase()&&(a.acc==`flat`&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),a.acc==`sharp`&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}}},TabNote.prototype.getAccidentalEquiv=function(){var e=cloneNote(this);return e.isSharp||e.isKeySharp?(e=e.nextNote(),e.isFlat=!0,e.isSharp=!1,e.isKeySharp=!1):(e.isFlat||e.isKeyFlat)&&(e=e.prevNote(),e.isSharp=!0,e.isFlat=!1,e.isKeyFlat=!1),e},TabNote.prototype.nextNote=function(){return new TabNote(r(this.pitch+1+this.pitchAltered))},TabNote.prototype.prevNote=function(){return new TabNote(r(this.pitch-1+this.pitchAltered))},TabNote.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+=`'`;for(var n=0;n<this.hasComma;n++)e+=`,`;return e},TabNote.prototype.emit=function(){var e=this.name;(this.isSharp||this.isKeySharp)&&(e=`^`+e,this.isDouble&&(e=`^`+e)),(this.isFlat||this.isKeyFlat)&&(e=`_`+e,this.isDouble&&(e=`_`+e)),this.quarter&&(e=this.quarter==`^`?`^/`+e:`_/`+e),this.natural&&(e=`=`+e);for(var t=1;t<=this.hasComma;t++)e+=`,`;if(this.isLower){e=e.toLowerCase();for(var n=1;n<=this.isQuoted;n++)e+=`'`}return e},t.exports=TabNote})),W=e.n(((e,t)=>{var n=U(),r=[`A`,`B`,`C`,`D`,`E`,`F`,`G`];function tabNotes(e,t){var a=new n(e),o=new n(t);if(o.isLowerThan(a)){var c=a.emit();return{error:`Invalid string Instrument tuning : `+o.emit()+` string lower than `+c+` string`}}var l=[],u=r.indexOf(a.name),d=r.indexOf(o.name);if(u==-1||d==-1)return l;for(var f=!1;!f;)l.push(a.emit()),a=a.nextNote(),a.sameNoteAs(o)&&(f=!0);return l}t.exports=tabNotes})),G=e.n(((e,t)=>{var{noteToMidi:n}=ee(),r=U(),a=W();function buildCapo(e){var t=null,n=e.tuning;if(e.capo>0){t=[];for(var a=0;a<n.length;a++){for(var o=new r(n[a]),c=0;c<e.capo;c++)o=o.nextNote();t[a]=o.emit()}}return t}function buildPatterns(e){var t=[],n=e.tuning;e.capo>0&&(n=e.capoTuning);for(var r=n.length-1,o=0;o<n.length;o++){var c=e.highestNote;o!=n.length-1&&(c=n[o+1]);var l=a(n[o],c);if(l.error)return l;t[r--]=l}return t}function buildSecond(e){var t=[];t[0]=[];for(var n=e.strings,r=1;r<n.length;r++)t[r]=n[r-1];return t}function sameString(e,t){for(var n=0;n<t.length-1;n++){var r=t[n],a=t[n+1];if(r.str==a.str){if(r.str==e.strings.length-1){r.num=`?`,a.num=`?`;return}a.num<r.num?(a.str++,a=noteToNumber(e,a.note,a.str,e.secondPos,e.strings[a.str].length)):(r.str++,r=noteToNumber(e,r.note,r.str,e.secondPos,e.strings[r.str].length)),t[n]=r,t[n+1]=a}}return null}function handleChordNotes(e,t){for(var n=[],a=0;a<t.length;a++)if(!t[a].endTie){var o=new r(t[a].name,e.clefTranspose);o.checkKeyAccidentals(e.accidentals,e.measureAccidentals);var c=toNumber(e,o);n.push(c)}return sameString(e,n),n}function noteToNumber(e,t,n,r,a){var o=e.strings;t.checkKeyAccidentals(e.accidentals,e.measureAccidentals),r&&(o=r);var c=t.emitNoAccidentals(),l=o[n].indexOf(c),u=t.acc;if(l!=-1){if(r&&(l+=a),(t.isFlat||t.acc==-1)&&l==0){var d=t.getAccidentalEquiv();n++,l=o[n].indexOf(d.emit()),u=0}return{num:l+u,str:n,note:t}}return null}function toNumber(e,t){if(t.isAltered||t.natural){var n;t.isFlat?n=t.isDouble?`__`:`_`:t.isSharp?n=t.isDouble?`^^`:`^`:t.natural&&(n=`=`),e.measureAccidentals[t.name.toUpperCase()]=n}for(var r=e.stringPitches.length-1;r>=0;r--)if(t.pitch+t.pitchAltered>=e.stringPitches[r]){var a=t.pitch+t.pitchAltered-e.stringPitches[r];return t.quarter===`^`?a-=.5:t.quarter===`v`&&(a+=.5),{num:Math.round(a),str:e.stringPitches.length-1-r,note:t}}return{num:`?`,str:e.stringPitches.length-1,note:t}}StringPatterns.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch};function invalidNumber(e,t){var n={num:`?`,str:0,note:t};e.push(n),e.error=t.emit()+`: unexpected note for instrument`}StringPatterns.prototype.notesToNumber=function(e,t){var n,a,o=null,c=null;if(e&&(c=[],e.length>1?(c=handleChordNotes(this,e),c.error&&(o=c.error)):e[0].endTie||(n=new r(e[0].name,this.clefTranspose),n.checkKeyAccidentals(this.accidentals,this.measureAccidentals),a=toNumber(this,n),a?c.push(a):(invalidNumber(c,n),o=c.error))),o)return c;var l=null;if(t){l=[];for(var u=0;u<t.length;u++)n=new r(t[u].name,this.clefTranspose),n.checkKeyAccidentals(this.accidentals,this.measureAccidentals),a=toNumber(this,n),a?l.push(a):(invalidNumber(l,n),o=c.error)}return{notes:c,graces:l,error:o}},StringPatterns.prototype.toString=function(){for(var e=[],t=0;t<this.tuning.length;t++){var n=this.tuning[t].replaceAll(`,`,``).replaceAll(`'`,``).toUpperCase();n[0]===`_`?n=n[1]+`b `:n[0]===`^`&&(n=n[1]+`# `),e.push(n)}return e.join(``)},StringPatterns.prototype.tabInfos=function(e){var t=e.params.label;if(t){var n=t.indexOf(`%T`),r=``;return n!=-1&&(r=this.toString(),e.capo>0&&(r+=` capo:`+e.capo),t=t.replace(`%T`,r)),t}return``},StringPatterns.prototype.suppress=function(e){return!!e.params.suppress};function StringPatterns(e){var t=e.tuning,r=e.capo,a=e.params.highestNote;this.linePitch=e.linePitch,this.highestNote=`a'`,a&&(this.highestNote=a),this.measureAccidentals={},this.capo=0,r&&(this.capo=parseInt(r,10)),this.transpose=e.transpose?e.transpose:0,this.tuning=t,this.stringPitches=[];for(var o=0;o<this.tuning.length;o++){var c=n(this.tuning[o])+this.capo;this.stringPitches.push(c)}if(this.capo>0&&(this.capoTuning=buildCapo(this)),this.strings=buildPatterns(this),this.strings.error){e.setError(this.strings.error),e.inError=!0;return}this.secondPos=buildSecond(this)}t.exports=StringPatterns})),K=e.n(((e,t)=>{var n=P(),r=H(),a=G();Plugin.prototype.init=function(e,t,r,o){this.tune=e,this.params=r,this.tuneNumber=t,this.inError=!1,this.abcTune=e,this.linePitch=3,this.nbLines=o.defaultTuning.length,this.isTabBig=o.isTabBig,this.tabSymbolOffset=o.tabSymbolOffset,this.capo=r.capo,this.transpose=r.visualTranspose,this.hideTabSymbol=r.hideTabSymbol,this.tablature=new n(this.nbLines,this.linePitch);var c=r.tuning;c||=o.defaultTuning,this.tuning=c,this.semantics=new a(this)},Plugin.prototype.setError=function(e){e&&(this.error=e,this.inError=!0,this.tune.warnings?this.tune.warnings.push(e):this.tune.warnings=[e])},Plugin.prototype.render=function(e,t,n){this.inError||this.tablature.bypass(t)||r(this,e,t,n)};function Plugin(){}var AbcStringTab=function(){return{name:`StringTab`,tablature:Plugin}};t.exports=AbcStringTab})),q=e.n(((e,t)=>{var n=K(),r={violin:{name:`StringTab`,defaultTuning:[`G,`,`D`,`A`,`e`],isTabBig:!1,tabSymbolOffset:0},fiddle:{name:`StringTab`,defaultTuning:[`G,`,`D`,`A`,`e`],isTabBig:!1,tabSymbolOffset:0},mandolin:{name:`StringTab`,defaultTuning:[`G,`,`D`,`A`,`e`],isTabBig:!1,tabSymbolOffset:0},guitar:{name:`StringTab`,defaultTuning:[`E,`,`A,`,`D`,`G`,`B`,`e`],isTabBig:!0,tabSymbolOffset:0},fiveString:{name:`StringTab`,defaultTuning:[`C,`,`G,`,`D`,`A`,`e`],isTabBig:!1,tabSymbolOffset:-.95}};t.exports={inited:!1,plugins:{},register:function(e){var t=e.name,n=e.tablature;this.plugins[t]=n},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,a){this.inited||=(this.register(new n),!0);var o=null,c=0;if(a.tablature){var l=a.tablature;o=[];for(var u=0;u<l.length;u++){var d=l[u],f=d.instrument;if(f==null)return this.setError(e,`tablature 'instrument' is missing`),o;var p=r[f],m=null;if(p&&(m=this.plugins[p.name]),m){a.visualTranspose!=0&&(d.visualTranspose=a.visualTranspose),d.abcSrc=a.tablature.abcSrc;var h={classz:m,tuneNumber:t,params:d,instance:null,tabType:p};o.push(h),c++}else if(f===``)o.push(null);else return this.setError(e,`Undefined tablature plugin: `+f),o}}return o},layoutTablatures:function layoutTablatures(e,t){var n=t.tablatures,r=0;if(n&&n.length>0)for(var a=n.length,o=0;o<a;++o)n[o]&&n[o].params.firstStaffOnly&&(n[o].params.suppress=!1);for(var c=0;c<t.lines.length;c++){var l=t.lines[c];if(l.staff&&r++,r>1&&n&&n.length>0)for(var a=n.length,o=0;o<a;++o)n[o].params.firstStaffOnly&&(n[o].params.suppress=!0);var u=l.staff;if(u){for(var d=u.length,f=0;f<u.length;f++)if(n[f]&&f<d){var p=n[f];p.instance??(p.instance=new p.classz,p.instance.init(t,p.tuneNumber,p.params,p.tabType)),p.instance.render(e,l,f)}}}}}})),J=e.n(((e,t)=>{var n=M(),r=N(),a=q(),o={};(function(){"use strict";o.numberOfTunes=function(e){var t=e.split(`
|
|
24
|
+
X:`).length;return t===0&&(t=1),t};var e=o.TuneBook=function(e){var t=r(e);this.header=t.header,this.tunes=t.tunes};e.prototype.getTuneById=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].id===``+e)return this.tunes[t];return null},e.prototype.getTuneByTitle=function(e){for(var t=0;t<this.tunes.length;t++)if(this.tunes[t].title===e)return this.tunes[t];return null},o.parseOnly=function(e,t){for(var n=o.numberOfTunes(e),r=[],a=0;a<n;a++)r.push(1);function callback(){}return o.renderEngine(callback,r,e,t)},o.renderEngine=function(t,r,o,c){var l=[],isArray=function(e){return e&&!e.propertyIsEnumerable(`length`)&&typeof e==`object`&&typeof e.length==`number`};if(!(r===void 0||o===void 0)){isArray(r)||(r=[r]),c===void 0&&(c={});for(var u=c.startingTune?parseInt(c.startingTune,10):0,d=new e(o),f=new n,p=0;p<r.length;p++){var m=r[p];if(m===`*`||typeof m==`string`&&(m=document.getElementById(m)),m)if(u>=0&&u<d.tunes.length){f.parse(d.tunes[u].abc,c,d.tunes[u].startPos-d.header.length);var h=f.getTune();c.tablature&&(h.tablatures=a.preparePlugins(h,u,c));var g=f.getWarnings();g&&(h.warnings=g);var _=t(m,h,p,d.tunes[u].abc);l.push(_||h)}else m.innerHTML&&=``;u++}return l}},o.extractMeasures=function(t){for(var n=[],r=new e(t),a=0;a<r.tunes.length;a++){for(var c=r.tunes[a],l=c.abc.split(`K:`),u=l[1].split(`
|
|
25
|
+
`),d=l[0]+`K:`+u[0]+`
|
|
26
|
+
`,f=null,p=null,m=null,h=[],g=!1,_=o.parseOnly(c.abc)[0],y=_.getPickupLength()>0,b=0;b<_.lines.length;b++){var x=_.lines[b];if(x.staff)for(var S=0;S<1;S++)for(var C=x.staff[S],w=0;w<1;w++)for(var T=C.voices[w],E=0;E<T.length;E++){var D=T[E];if(m===null&&D.startChar>=0&&(m=D.startChar,p=D.chord===void 0?f:null),D.chord&&(f=D),D.el_type===`bar`){if(g){var O={abc:c.abc.substring(m,D.endChar)};f=p&&p.chord&&p.chord.length>0?p.chord[0].name:null,f&&(O.lastChord=f),D.startEnding&&(O.startEnding=D.startEnding),D.endEnding&&(O.endEnding=D.endEnding),h.push(O),m=null,g=!1}}else D.el_type===`note`&&(g=!0)}}n.push({header:d,measures:h,hasPickup:y})}return n}})(),t.exports=o})),Y=e.n(((e,t)=>{var n=h(),{relativeMajor:r,transposeKey:a,relativeMode:o}=m(),c=p(),strTranspose;(function(){"use strict";strTranspose=function(e,t,l){if(t===`TEST`)return{keyAccidentals:n,relativeMajor:r,transposeKey:a,relativeMode:o,transposeChordName:c};l=parseInt(l,10);var u=[],d;for(d=0;d<t.length;d++)u=u.concat(transposeOneTune(e,t[d],l));u=u.sort(function(e,t){return t.start-e.start});var f=e.split(``);for(d=0;d<u.length;d++){var p=u[d];f.splice(p.start,p.end-p.start,p.note)}return f.join(``)};function transposeOneTune(e,t,n){var r=[],a=t.getKeySignature();if(a.root===`Hp`||a.root===`HP`)return r;r=r.concat(changeAllKeySigs(e,n));for(var o=0;o<t.lines.length;o++){var c=t.lines[o].staff;if(c)for(var l=0;l<c.length;l++){var u=c[l];u.clef.type!==`perc`&&(r=r.concat(transposeVoices(e,u.voices,u.key,n)))}}return r}function changeAllKeySigs(e,t){for(var n=[],r=e.split(`K:`),a=r[0].length,o=1;o<r.length;o++){var c=r[o],l=c.match(/^( *)([A-G])([#b]?)(\w*)/);if(l){var u=a+2+l[1].length,d=l[2]+l[3]+l[4],f=newKey({root:l[2],acc:l[3],mode:l[4]},t),p=f.root+f.acc+f.mode;n.push({start:u,end:u+d.length,note:p})}a+=c.length+2}return n}function transposeVoices(e,t,n,r){for(var a=[],o=newKey(n,r),c=0;c<t.length;c++)a=a.concat(transposeVoice(e,t[c],n.root,createKeyAccidentals(n),o,r));return a}function createKeyAccidentals(e){for(var t={},n=0;n<e.accidentals.length;n++){var r=e.accidentals[n];r.acc===`flat`?t[r.note.toUpperCase()]=`_`:r.acc===`sharp`&&(t[r.note.toUpperCase()]=`^`)}return t}function setLetterDistance(t,n,r){var a=e.indexOf(t.root)-e.indexOf(n);return n===`none`&&(a=e.indexOf(t.root)),a===0?r>2?a+=7:r===-12&&(a-=7):r>0&&a<0?a+=7:r<0&&a>0&&(a-=7),r>12?a+=7:r<-12&&(a-=7),a}function transposeVoice(e,t,n,r,a,o){for(var l=[],u=setLetterDistance(a,n,o),d={},f={},p=0;p<t.length;p++){var m=t[p];if(m.chord)for(var h=0;h<m.chord.length;h++){var g=m.chord[h];if(g.position===`default`){var _=a.accidentals.length&&a.accidentals[0].acc===`flat`,y=c(g.name,o,_,!0);y=y.replace(/♭/g,`b`).replace(/♯/g,`#`),y!==g.name&&l.push(replaceChord(e,m.startChar,m.endChar,y))}}if(m.el_type===`note`&&m.pitches){for(var b=0;b<m.pitches.length;b++){var x=parseNote(m.pitches[b].name,n,r,d);x.acc&&(d[x.name.toUpperCase()]=x.acc);var S=transposePitch(x,a,u,f);S.acc&&(f[S.upper]=S.acc),l.push(replaceNote(e,m.startChar,m.endChar,S.acc+S.name,b))}if(m.gracenotes)for(var C=0;C<m.gracenotes.length;C++){var w=parseNote(m.gracenotes[C].name,n,r,d);w.acc&&(d[w.name.toUpperCase()]=w.acc);var T=transposePitch(w,a,u,d);T.acc&&(f[T.upper]=T.acc),l.push(replaceGrace(e,m.startChar,m.endChar,T.acc+T.name,C))}}else m.el_type===`bar`?(d={},f={}):m.el_type===`keySignature`&&(n=m.root,r=createKeyAccidentals(m),a=newKey(m,o),u=setLetterDistance(a,n,o))}return l}var e=`CDEFGAB`,t=[`,,,,`,`,,,`,`,,`,`,`,``,`'`,`''`,`'''`,`''''`];function newKey(e,t){if(e.root===`none`)return{root:a(`C`,t),mode:``,acc:``,accidentals:[]};var c=a(r(e.root+e.acc+e.mode),t),l=o(c,e.mode),u=n(c);return{root:l[0],mode:e.mode,acc:l.length>1?l[1]:``,accidentals:u}}function transposePitch(t,n,r,a){for(var o=t.pitch,c=e.indexOf(t.name),l=(e.indexOf(n.root)+o)%7,u=c+r,d=t.oct;u>6;)d++,u-=7;for(;u<0;)d--,u+=7;for(var f=e[l],p=``,m=t.adj,h=`=`,g=0;g<n.accidentals.length;g++)if(n.accidentals[g].note.toLowerCase()===f.toLowerCase()){m+=n.accidentals[g].acc===`flat`?-1:1,h=n.accidentals[g].acc===`flat`?`_`:`^`;break}switch(m){case-2:p=`__`;break;case-1:p=`_`;break;case 0:p=`=`;break;case 1:p=`^`;break;case 2:p=`^^`;break;case-3:var _={};return _.pitch=t.pitch-1,_.oct=t.oct,_.name=e[e.indexOf(t.name)-1],_.name||(_.name=`B`,_.oct--),_.name===`B`||_.name===`E`?_.adj=t.adj+1:_.adj=t.adj+2,transposePitch(_,n,r+1,a);case 3:var _={};return _.pitch=t.pitch+1,_.oct=t.oct,_.name=e[e.indexOf(t.name)+1],_.name||(_.name=`C`,_.oct++),_.name===`C`||_.name===`F`?_.adj=t.adj-1:_.adj=t.adj-2,transposePitch(_,n,r+1,a)}switch((a[f]===p||!a[f]&&p===h)&&!t.courtesy&&(p=``),d){case 0:f+=`,,,`;break;case 1:f+=`,,`;break;case 2:f+=`,`;break;case 4:f=f.toLowerCase();break;case 5:f=f.toLowerCase()+`'`;break;case 6:f=f.toLowerCase()+`''`;break;case 7:f=f.toLowerCase()+`'''`;break;case 8:f=f.toLowerCase()+`''''`;break}return d>4&&(f=f.toLowerCase()),{acc:p,name:f,upper:f.toUpperCase()}}var l=/([_^=]*)([A-Ga-g])([,']*)/,u=/([_^=]*[A-Ga-g][,']*)(\d*\/*\d*)([\>\<\-\)\.\s\\]*)/,d=/([_^=]*[A-Ga-g][,']*)?(\d*\/*\d*)?([\>\<\-\)]*)?/,f=/(\s*)$/;function parseNote(n,r,a,o){var c=r===`none`?0:e.indexOf(r),u=n.match(l),d=u[2].toUpperCase(),f=e.indexOf(d)-c;f<0&&(f+=7);var p=t.indexOf(u[3]);d===u[2]&&p--;var m=o[d]||a[d]||`=`;return{acc:u[1],name:d,pitch:f,oct:p,adj:calcAdjustment(u[1],a[d],o[d]),courtesy:u[1]===m}}function replaceNote(e,t,n,r,a){var o=e.substring(t,n),c=o.match(new RegExp(u.source+f.source),``);if(c){var l=c[1].length,p=c[2].length+c[3].length+c[4].length,m=n-t-l-p;t+=m,n-=p}else if(c=o.match(RegExp(`([^\\[]*)\\[`+d.source+d.source+d.source+d.source+d.source+d.source+d.source+d.source+`\\-?](\\d*\\/*\\d*)?([\\>\\<\\-\\)]*)`+f.source)),c){for(var h=1+c[1].length,g=0;g<a;g++)c[g*3+2]&&(h+=c[g*3+2].length),c[g*3+3]&&(h+=c[g*3+3].length),c[g*3+4]&&(h+=c[g*3+4].length);t+=h;var _=c[a*3+2]?c[a*3+2].length:0;n=t+_}return{start:t,end:n,note:r}}function replaceGrace(e,t,n,r,a){var o=e.substring(t,n),c=/\{/,l=/\}/,u=/([^\{]*)/,f=/(\/*)/,p=o.match(new RegExp(u.source+c.source+f.source+d.source+f.source+d.source+f.source+d.source+f.source+d.source+f.source+d.source+f.source+d.source+f.source+d.source+f.source+d.source+l.source));if(p){for(var m=1+p[1].length,h=0;h<a;h++)p[h*3+2]&&(m+=p[h*3+2].length),p[h*3+3]&&(m+=p[h*3+3].length),p[h*3+4]&&(m+=p[h*3+4].length),p[h*3+5]&&(m+=p[h*3+5].length);p[a*3+2]&&(m+=p[h*3+2].length),t+=m;var g=p[a*3+3]?p[a*3+3].length:0;g+=p[a*3+4]?p[a*3+4].length:0,g+=p[a*3+5]?p[a*3+5].length:0,n=t+g}return{start:t,end:n,note:r}}function replaceChord(e,t,n,r){var a=e.substring(t,n).match(/([^"]+)?(".+")+/);return a[1]&&(t+=a[1].length),n=t+a[2].length,{start:t+1,end:n-1,note:r}}function calcAdjustment(e,t,n){if(!e&&n&&(e=n),!e)return 0;switch(t){case void 0:switch(e){case`__`:return-2;case`_`:return-1;case`=`:return 0;case`^`:return 1;case`^^`:return 2;default:return 0}case`_`:switch(e){case`__`:return-1;case`_`:return 0;case`=`:return 1;case`^`:return 2;case`^^`:return 3;default:return 0}case`^`:switch(e){case`__`:return-3;case`_`:return-2;case`=`:return-1;case`^`:return 0;case`^^`:return 1;default:return 0}}return 0}})(),t.exports=strTranspose})),X=e.n(((e,t)=>{var n=function BeamElem(e,t,n,r){this.type=`BeamElem`,this.isflat=!!n,this.isgrace=!!(t&&t===`grace`),this.forceup=!!(this.isgrace||t&&t===`up`),this.forcedown=!!(t&&t===`down`),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=e,this.beams=[],r&&r.duration?(this.duration=r.duration,r.startTriplet&&(this.duration*=r.tripletMultiplier),this.duration=Math.round(this.duration*1e3)/1e3):this.duration=0};n.prototype.setHint=function(){this.hint=!0},n.prototype.runningDirection=function(e){var t=e.averagepitch;t!==void 0&&(this.total=Math.round(this.total+t),this.count||=0,this.count++)},n.prototype.add=function(e){var t=e.abcelem.averagepitch;t!==void 0&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(this.min===void 0||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(this.max===void 0||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))},n.prototype.addBeam=function(e){this.beams.push(e)},n.prototype.setStemDirection=function(){this.average=calcAverage(this.total,this.count),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6,delete this.count,this.total=0},n.prototype.calcDir=function(){this.average=calcAverage(this.total,this.elems.length),this.forceup?this.stemsUp=!0:this.forcedown?this.stemsUp=!1:this.stemsUp=this.average<6;for(var e=this.stemsUp?`up`:`down`,t=0;t<this.elems.length;t++)for(var n=0;n<this.elems[t].heads.length;n++)this.elems[t].heads[n].stemDir=e};function calcAverage(e,t){return t?e/t:0}t.exports=n})),te=e.n(((e,t)=>{var n=function BraceElem(e,t){this.startVoice=e,this.type=t};n.prototype.setBottomStaff=function(e){this.endVoice=e,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},n.prototype.continuing=function(e){this.lastContinuedVoice=e},n.prototype.getWidth=function(){return 10},n.prototype.isStartVoice=function(e){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===e)},t.exports=n})),Z=e.n(((e,t)=>{var n=w(),r={0:{d:[[`M`,4.83,-14.97],[`c`,.33,-.03,1.11,0,1.47,.06],[`c`,1.68,.36,2.97,1.59,3.78,3.6],[`c`,1.2,2.97,.81,6.96,-.9,9.27],[`c`,-.78,1.08,-1.71,1.71,-2.91,1.95],[`c`,-.45,.09,-1.32,.09,-1.77,0],[`c`,-.81,-.18,-1.47,-.51,-2.07,-1.02],[`c`,-2.34,-2.07,-3.15,-6.72,-1.74,-10.2],[`c`,.87,-2.16,2.28,-3.42,4.14,-3.66],[`z`],[`m`,1.11,.87],[`c`,-.21,-.06,-.69,-.09,-.87,-.06],[`c`,-.54,.12,-.87,.42,-1.17,.99],[`c`,-.36,.66,-.51,1.56,-.6,3],[`c`,-.03,.75,-.03,4.59,0,5.31],[`c`,.09,1.5,.27,2.4,.6,3.06],[`c`,.24,.48,.57,.78,.96,.9],[`c`,.27,.09,.78,.09,1.05,0],[`c`,.39,-.12,.72,-.42,.96,-.9],[`c`,.33,-.66,.51,-1.56,.6,-3.06],[`c`,.03,-.72,.03,-4.56,0,-5.31],[`c`,-.09,-1.47,-.27,-2.37,-.6,-3.03],[`c`,-.24,-.48,-.54,-.78,-.93,-.9],[`z`]],w:10.78,h:14.959},1:{d:[[`M`,3.3,-15.06],[`c`,.06,-.06,.21,-.03,.66,.15],[`c`,.81,.39,1.08,.39,1.83,.03],[`c`,.21,-.09,.39,-.15,.42,-.15],[`c`,.12,0,.21,.09,.27,.21],[`c`,.06,.12,.06,.33,.06,5.94],[`c`,0,3.93,0,5.85,.03,6.03],[`c`,.06,.36,.15,.69,.27,.96],[`c`,.36,.75,.93,1.17,1.68,1.26],[`c`,.3,.03,.39,.09,.39,.3],[`c`,0,.15,-.03,.18,-.09,.24],[`c`,-.06,.06,-.09,.06,-.48,.06],[`c`,-.42,0,-.69,-.03,-2.1,-.24],[`c`,-.9,-.15,-1.77,-.15,-2.67,0],[`c`,-1.41,.21,-1.68,.24,-2.1,.24],[`c`,-.39,0,-.42,0,-.48,-.06],[`c`,-.06,-.06,-.06,-.09,-.06,-.24],[`c`,0,-.21,.06,-.27,.36,-.3],[`c`,.75,-.09,1.32,-.51,1.68,-1.26],[`c`,.12,-.27,.21,-.6,.27,-.96],[`c`,.03,-.18,.03,-1.59,.03,-4.29],[`c`,0,-3.87,0,-4.05,-.06,-4.14],[`c`,-.09,-.15,-.18,-.24,-.39,-.24],[`c`,-.12,0,-.15,.03,-.21,.06],[`c`,-.03,.06,-.45,.99,-.96,2.13],[`c`,-.48,1.14,-.9,2.1,-.93,2.16],[`c`,-.06,.15,-.21,.24,-.33,.24],[`c`,-.24,0,-.42,-.18,-.42,-.39],[`c`,0,-.06,3.27,-7.62,3.33,-7.74],[`z`]],w:8.94,h:15.058},2:{d:[[`M`,4.23,-14.97],[`c`,.57,-.06,1.68,0,2.34,.18],[`c`,.69,.18,1.5,.54,2.01,.9],[`c`,1.35,.96,1.95,2.25,1.77,3.81],[`c`,-.15,1.35,-.66,2.34,-1.68,3.15],[`c`,-.6,.48,-1.44,.93,-3.12,1.65],[`c`,-1.32,.57,-1.8,.81,-2.37,1.14],[`c`,-.57,.33,-.57,.33,-.24,.27],[`c`,.39,-.09,1.26,-.09,1.68,0],[`c`,.72,.15,1.41,.45,2.1,.9],[`c`,.99,.63,1.86,.87,2.55,.75],[`c`,.24,-.06,.42,-.15,.57,-.3],[`c`,.12,-.09,.3,-.42,.3,-.51],[`c`,0,-.09,.12,-.21,.24,-.24],[`c`,.18,-.03,.39,.12,.39,.3],[`c`,0,.12,-.15,.57,-.3,.87],[`c`,-.54,1.02,-1.56,1.74,-2.79,2.01],[`c`,-.42,.09,-1.23,.09,-1.62,.03],[`c`,-.81,-.18,-1.32,-.45,-2.01,-1.11],[`c`,-.45,-.45,-.63,-.57,-.96,-.69],[`c`,-.84,-.27,-1.89,.12,-2.25,.9],[`c`,-.12,.21,-.21,.54,-.21,.72],[`c`,0,.12,-.12,.21,-.27,.24],[`c`,-.15,0,-.27,-.03,-.33,-.15],[`c`,-.09,-.21,.09,-1.08,.33,-1.71],[`c`,.24,-.66,.66,-1.26,1.29,-1.89],[`c`,.45,-.45,.9,-.81,1.92,-1.56],[`c`,1.29,-.93,1.89,-1.44,2.34,-1.98],[`c`,.87,-1.05,1.26,-2.19,1.2,-3.63],[`c`,-.06,-1.29,-.39,-2.31,-.96,-2.91],[`c`,-.36,-.33,-.72,-.51,-1.17,-.54],[`c`,-.84,-.03,-1.53,.42,-1.59,1.05],[`c`,-.03,.33,.12,.6,.57,1.14],[`c`,.45,.54,.54,.87,.42,1.41],[`c`,-.15,.63,-.54,1.11,-1.08,1.38],[`c`,-.63,.33,-1.2,.33,-1.83,0],[`c`,-.24,-.12,-.33,-.18,-.54,-.39],[`c`,-.18,-.18,-.27,-.3,-.36,-.51],[`c`,-.24,-.45,-.27,-.84,-.21,-1.38],[`c`,.12,-.75,.45,-1.41,1.02,-1.98],[`c`,.72,-.72,1.74,-1.17,2.85,-1.32],[`z`]],w:10.764,h:14.97},3:{d:[[`M`,3.78,-14.97],[`c`,.3,-.03,1.41,0,1.83,.06],[`c`,2.22,.3,3.51,1.32,3.72,2.91],[`c`,.03,.33,.03,1.26,-.03,1.65],[`c`,-.12,.84,-.48,1.47,-1.05,1.77],[`c`,-.27,.15,-.36,.24,-.45,.39],[`c`,-.09,.21,-.09,.36,0,.57],[`c`,.09,.15,.18,.24,.51,.39],[`c`,.75,.42,1.23,1.14,1.41,2.13],[`c`,.06,.42,.06,1.35,0,1.71],[`c`,-.18,.81,-.48,1.38,-1.02,1.95],[`c`,-.75,.72,-1.8,1.2,-3.18,1.38],[`c`,-.42,.06,-1.56,.06,-1.95,0],[`c`,-1.89,-.33,-3.18,-1.29,-3.51,-2.64],[`c`,-.03,-.12,-.03,-.33,-.03,-.6],[`c`,0,-.36,0,-.42,.06,-.63],[`c`,.12,-.3,.27,-.51,.51,-.75],[`c`,.24,-.24,.45,-.39,.75,-.51],[`c`,.21,-.06,.27,-.06,.6,-.06],[`c`,.33,0,.39,0,.6,.06],[`c`,.3,.12,.51,.27,.75,.51],[`c`,.36,.33,.57,.75,.6,1.2],[`c`,0,.21,0,.27,-.06,.42],[`c`,-.09,.18,-.12,.24,-.54,.54],[`c`,-.51,.36,-.63,.54,-.6,.87],[`c`,.06,.54,.54,.9,1.38,.99],[`c`,.36,.06,.72,.03,.96,-.06],[`c`,.81,-.27,1.29,-1.23,1.44,-2.79],[`c`,.03,-.45,.03,-1.95,-.03,-2.37],[`c`,-.09,-.75,-.33,-1.23,-.75,-1.44],[`c`,-.33,-.18,-.45,-.18,-1.98,-.18],[`c`,-1.35,0,-1.41,0,-1.5,-.06],[`c`,-.18,-.12,-.24,-.39,-.12,-.6],[`c`,.12,-.15,.15,-.15,1.68,-.15],[`c`,1.5,0,1.62,0,1.89,-.15],[`c`,.18,-.09,.42,-.36,.54,-.57],[`c`,.18,-.42,.27,-.9,.3,-1.95],[`c`,.03,-1.2,-.06,-1.8,-.36,-2.37],[`c`,-.24,-.48,-.63,-.81,-1.14,-.96],[`c`,-.3,-.06,-1.08,-.06,-1.38,.03],[`c`,-.6,.15,-.9,.42,-.96,.84],[`c`,-.03,.3,.06,.45,.63,.84],[`c`,.33,.24,.42,.39,.45,.63],[`c`,.03,.72,-.57,1.5,-1.32,1.65],[`c`,-1.05,.27,-2.1,-.57,-2.1,-1.65],[`c`,0,-.45,.15,-.96,.39,-1.38],[`c`,.12,-.21,.54,-.63,.81,-.81],[`c`,.57,-.42,1.38,-.69,2.25,-.81],[`z`]],w:9.735,h:14.967},4:{d:[[`M`,8.64,-14.94],[`c`,.27,-.09,.42,-.12,.54,-.03],[`c`,.09,.06,.15,.21,.15,.3],[`c`,-.03,.06,-1.92,2.31,-4.23,5.04],[`c`,-2.31,2.73,-4.23,4.98,-4.26,5.01],[`c`,-.03,.06,.12,.06,2.55,.06],[`l`,2.61,0],[`l`,0,-2.37],[`c`,0,-2.19,.03,-2.37,.06,-2.46],[`c`,.03,-.06,.21,-.18,.57,-.42],[`c`,1.08,-.72,1.38,-1.08,1.86,-2.16],[`c`,.12,-.3,.24,-.54,.27,-.57],[`c`,.12,-.12,.39,-.06,.45,.12],[`c`,.06,.09,.06,.57,.06,3.96],[`l`,0,3.9],[`l`,1.08,0],[`c`,1.05,0,1.11,0,1.2,.06],[`c`,.24,.15,.24,.54,0,.69],[`c`,-.09,.06,-.15,.06,-1.2,.06],[`l`,-1.08,0],[`l`,0,.33],[`c`,0,.57,.09,1.11,.3,1.53],[`c`,.36,.75,.93,1.17,1.68,1.26],[`c`,.3,.03,.39,.09,.39,.3],[`c`,0,.15,-.03,.18,-.09,.24],[`c`,-.06,.06,-.09,.06,-.48,.06],[`c`,-.42,0,-.69,-.03,-2.1,-.24],[`c`,-.9,-.15,-1.77,-.15,-2.67,0],[`c`,-1.41,.21,-1.68,.24,-2.1,.24],[`c`,-.39,0,-.42,0,-.48,-.06],[`c`,-.06,-.06,-.06,-.09,-.06,-.24],[`c`,0,-.21,.06,-.27,.36,-.3],[`c`,.75,-.09,1.32,-.51,1.68,-1.26],[`c`,.21,-.42,.3,-.96,.3,-1.53],[`l`,0,-.33],[`l`,-2.7,0],[`c`,-2.91,0,-2.85,0,-3.09,-.15],[`c`,-.18,-.12,-.3,-.39,-.27,-.54],[`c`,.03,-.06,.18,-.24,.33,-.45],[`c`,.75,-.9,1.59,-2.07,2.13,-3.03],[`c`,.33,-.54,.84,-1.62,1.05,-2.16],[`c`,.57,-1.41,.84,-2.64,.9,-4.05],[`c`,.03,-.63,.06,-.72,.24,-.81],[`l`,.12,-.06],[`l`,.45,.12],[`c`,.66,.18,1.02,.24,1.47,.27],[`c`,.6,.03,1.23,-.09,2.01,-.33],[`z`]],w:11.795,h:14.994},5:{d:[[`M`,1.02,-14.94],[`c`,.12,-.09,.03,-.09,1.08,.06],[`c`,2.49,.36,4.35,.36,6.96,-.06],[`c`,.57,-.09,.66,-.06,.81,.06],[`c`,.15,.18,.12,.24,-.15,.51],[`c`,-1.29,1.26,-3.24,2.04,-5.58,2.31],[`c`,-.6,.09,-1.2,.12,-1.71,.12],[`c`,-.39,0,-.45,0,-.57,.06],[`c`,-.09,.06,-.15,.12,-.21,.21],[`l`,-.06,.12],[`l`,0,1.65],[`l`,0,1.65],[`l`,.21,-.21],[`c`,.66,-.57,1.41,-.96,2.19,-1.14],[`c`,.33,-.06,1.41,-.06,1.95,0],[`c`,2.61,.36,4.02,1.74,4.26,4.14],[`c`,.03,.45,.03,1.08,-.03,1.44],[`c`,-.18,1.02,-.78,2.01,-1.59,2.7],[`c`,-.72,.57,-1.62,1.02,-2.49,1.2],[`c`,-1.38,.27,-3.03,.06,-4.2,-.54],[`c`,-1.08,-.54,-1.71,-1.32,-1.86,-2.28],[`c`,-.09,-.69,.09,-1.29,.57,-1.74],[`c`,.24,-.24,.45,-.39,.75,-.51],[`c`,.21,-.06,.27,-.06,.6,-.06],[`c`,.33,0,.39,0,.6,.06],[`c`,.3,.12,.51,.27,.75,.51],[`c`,.36,.33,.57,.75,.6,1.2],[`c`,0,.21,0,.27,-.06,.42],[`c`,-.09,.18,-.12,.24,-.54,.54],[`c`,-.18,.12,-.36,.3,-.42,.33],[`c`,-.36,.42,-.18,.99,.36,1.26],[`c`,.51,.27,1.47,.36,2.01,.27],[`c`,.93,-.21,1.47,-1.17,1.65,-2.91],[`c`,.06,-.45,.06,-1.89,0,-2.31],[`c`,-.15,-1.2,-.51,-2.1,-1.05,-2.55],[`c`,-.21,-.18,-.54,-.36,-.81,-.39],[`c`,-.3,-.06,-.84,-.03,-1.26,.06],[`c`,-.93,.18,-1.65,.6,-2.16,1.2],[`c`,-.15,.21,-.27,.3,-.39,.3],[`c`,-.15,0,-.3,-.09,-.36,-.18],[`c`,-.06,-.09,-.06,-.15,-.06,-3.66],[`c`,0,-3.39,0,-3.57,.06,-3.66],[`c`,.03,-.06,.09,-.15,.15,-.18],[`z`]],w:10.212,h:14.997},6:{d:[[`M`,4.98,-14.97],[`c`,.36,-.03,1.2,0,1.59,.06],[`c`,.9,.15,1.68,.51,2.25,1.05],[`c`,.57,.51,.87,1.23,.84,1.98],[`c`,-.03,.51,-.21,.9,-.6,1.26],[`c`,-.24,.24,-.45,.39,-.75,.51],[`c`,-.21,.06,-.27,.06,-.6,.06],[`c`,-.33,0,-.39,0,-.6,-.06],[`c`,-.3,-.12,-.51,-.27,-.75,-.51],[`c`,-.39,-.36,-.57,-.78,-.57,-1.26],[`c`,0,-.27,0,-.3,.09,-.42],[`c`,.03,-.09,.18,-.21,.3,-.3],[`c`,.12,-.09,.3,-.21,.39,-.27],[`c`,.09,-.06,.21,-.18,.27,-.24],[`c`,.06,-.12,.09,-.15,.09,-.33],[`c`,0,-.18,-.03,-.24,-.09,-.36],[`c`,-.24,-.39,-.75,-.6,-1.38,-.57],[`c`,-.54,.03,-.9,.18,-1.23,.48],[`c`,-.81,.72,-1.08,2.16,-.96,5.37],[`l`,0,.63],[`l`,.3,-.12],[`c`,.78,-.27,1.29,-.33,2.1,-.27],[`c`,1.47,.12,2.49,.54,3.27,1.29],[`c`,.48,.51,.81,1.11,.96,1.89],[`c`,.06,.27,.06,.42,.06,.93],[`c`,0,.54,0,.69,-.06,.96],[`c`,-.15,.78,-.48,1.38,-.96,1.89],[`c`,-.54,.51,-1.17,.87,-1.98,1.08],[`c`,-1.14,.3,-2.4,.33,-3.24,.03],[`c`,-1.5,-.48,-2.64,-1.89,-3.27,-4.02],[`c`,-.36,-1.23,-.51,-2.82,-.42,-4.08],[`c`,.3,-3.66,2.28,-6.3,4.95,-6.66],[`z`],[`m`,.66,7.41],[`c`,-.27,-.09,-.81,-.12,-1.08,-.06],[`c`,-.72,.18,-1.08,.69,-1.23,1.71],[`c`,-.06,.54,-.06,3,0,3.54],[`c`,.18,1.26,.72,1.77,1.8,1.74],[`c`,.39,-.03,.63,-.09,.9,-.27],[`c`,.66,-.42,.9,-1.32,.9,-3.24],[`c`,0,-2.22,-.36,-3.12,-1.29,-3.42],[`z`]],w:9.956,h:14.982},7:{d:[[`M`,.21,-14.97],[`c`,.21,-.06,.45,0,.54,.15],[`c`,.06,.09,.06,.15,.06,.39],[`c`,0,.24,0,.33,.06,.42],[`c`,.06,.12,.21,.24,.27,.24],[`c`,.03,0,.12,-.12,.24,-.21],[`c`,.96,-1.2,2.58,-1.35,3.99,-.42],[`c`,.15,.12,.42,.3,.54,.45],[`c`,.48,.39,.81,.57,1.29,.6],[`c`,.69,.03,1.5,-.3,2.13,-.87],[`c`,.09,-.09,.27,-.3,.39,-.45],[`c`,.12,-.15,.24,-.27,.3,-.3],[`c`,.18,-.06,.39,.03,.51,.21],[`c`,.06,.18,.06,.24,-.27,.72],[`c`,-.18,.24,-.54,.78,-.78,1.17],[`c`,-2.37,3.54,-3.54,6.27,-3.87,9],[`c`,-.03,.33,-.03,.66,-.03,1.26],[`c`,0,.9,0,1.08,.15,1.89],[`c`,.06,.45,.06,.48,.03,.6],[`c`,-.06,.09,-.21,.21,-.3,.21],[`c`,-.03,0,-.27,-.06,-.54,-.15],[`c`,-.84,-.27,-1.11,-.3,-1.65,-.3],[`c`,-.57,0,-.84,.03,-1.56,.27],[`c`,-.6,.18,-.69,.21,-.81,.15],[`c`,-.12,-.06,-.21,-.18,-.21,-.3],[`c`,0,-.15,.6,-1.44,1.2,-2.61],[`c`,1.14,-2.22,2.73,-4.68,5.1,-8.01],[`c`,.21,-.27,.36,-.48,.33,-.48],[`c`,0,0,-.12,.06,-.27,.12],[`c`,-.54,.3,-.99,.39,-1.56,.39],[`c`,-.75,.03,-1.2,-.18,-1.83,-.75],[`c`,-.99,-.9,-1.83,-1.17,-2.31,-.72],[`c`,-.18,.15,-.36,.51,-.45,.84],[`c`,-.06,.24,-.06,.33,-.09,1.98],[`c`,0,1.62,-.03,1.74,-.06,1.8],[`c`,-.15,.24,-.54,.24,-.69,0],[`c`,-.06,-.09,-.06,-.15,-.06,-3.57],[`c`,0,-3.42,0,-3.48,.06,-3.57],[`c`,.03,-.06,.09,-.12,.15,-.15],[`z`]],w:10.561,h:15.093},8:{d:[[`M`,4.98,-14.97],[`c`,.33,-.03,1.02,-.03,1.32,0],[`c`,1.32,.12,2.49,.6,3.21,1.32],[`c`,.39,.39,.66,.81,.78,1.29],[`c`,.09,.36,.09,1.08,0,1.44],[`c`,-.21,.84,-.66,1.59,-1.59,2.55],[`l`,-.3,.3],[`l`,.27,.18],[`c`,1.47,.93,2.31,2.31,2.25,3.75],[`c`,-.03,.75,-.24,1.35,-.63,1.95],[`c`,-.45,.66,-1.02,1.14,-1.83,1.53],[`c`,-1.8,.87,-4.2,.87,-6,.03],[`c`,-1.62,-.78,-2.52,-2.16,-2.46,-3.66],[`c`,.06,-.99,.54,-1.77,1.8,-2.97],[`c`,.54,-.51,.54,-.54,.48,-.57],[`c`,-.39,-.27,-.96,-.78,-1.2,-1.14],[`c`,-.75,-1.11,-.87,-2.4,-.3,-3.6],[`c`,.69,-1.35,2.25,-2.25,4.2,-2.4],[`z`],[`m`,1.53,.69],[`c`,-.42,-.09,-1.11,-.12,-1.38,-.06],[`c`,-.3,.06,-.6,.18,-.81,.3],[`c`,-.21,.12,-.6,.51,-.72,.72],[`c`,-.51,.87,-.42,1.89,.21,2.52],[`c`,.21,.21,.36,.3,1.95,1.23],[`c`,.96,.54,1.74,.99,1.77,1.02],[`c`,.09,0,.63,-.6,.99,-1.11],[`c`,.21,-.36,.48,-.87,.57,-1.23],[`c`,.06,-.24,.06,-.36,.06,-.72],[`c`,0,-.45,-.03,-.66,-.15,-.99],[`c`,-.39,-.81,-1.29,-1.44,-2.49,-1.68],[`z`],[`m`,-1.44,8.07],[`l`,-1.89,-1.08],[`c`,-.03,0,-.18,.15,-.39,.33],[`c`,-1.2,1.08,-1.65,1.95,-1.59,3],[`c`,.09,1.59,1.35,2.85,3.21,3.24],[`c`,.33,.06,.45,.06,.93,.06],[`c`,.63,0,.81,-.03,1.29,-.27],[`c`,.9,-.42,1.47,-1.41,1.41,-2.4],[`c`,-.06,-.66,-.39,-1.29,-.9,-1.65],[`c`,-.12,-.09,-1.05,-.63,-2.07,-1.23],[`z`]],w:10.926,h:14.989},9:{d:[[`M`,4.23,-14.97],[`c`,.42,-.03,1.29,0,1.62,.06],[`c`,.51,.12,.93,.3,1.38,.57],[`c`,1.53,1.02,2.52,3.24,2.73,5.94],[`c`,.18,2.55,-.48,4.98,-1.83,6.57],[`c`,-1.05,1.26,-2.4,1.89,-3.93,1.83],[`c`,-1.23,-.06,-2.31,-.45,-3.03,-1.14],[`c`,-.57,-.51,-.87,-1.23,-.84,-1.98],[`c`,.03,-.51,.21,-.9,.6,-1.26],[`c`,.24,-.24,.45,-.39,.75,-.51],[`c`,.21,-.06,.27,-.06,.6,-.06],[`c`,.33,0,.39,0,.6,.06],[`c`,.3,.12,.51,.27,.75,.51],[`c`,.39,.36,.57,.78,.57,1.26],[`c`,0,.27,0,.3,-.09,.42],[`c`,-.03,.09,-.18,.21,-.3,.3],[`c`,-.12,.09,-.3,.21,-.39,.27],[`c`,-.09,.06,-.21,.18,-.27,.24],[`c`,-.06,.12,-.06,.15,-.06,.33],[`c`,0,.18,0,.24,.06,.36],[`c`,.24,.39,.75,.6,1.38,.57],[`c`,.54,-.03,.9,-.18,1.23,-.48],[`c`,.81,-.72,1.08,-2.16,.96,-5.37],[`l`,0,-.63],[`l`,-.3,.12],[`c`,-.78,.27,-1.29,.33,-2.1,.27],[`c`,-1.47,-.12,-2.49,-.54,-3.27,-1.29],[`c`,-.48,-.51,-.81,-1.11,-.96,-1.89],[`c`,-.06,-.27,-.06,-.42,-.06,-.96],[`c`,0,-.51,0,-.66,.06,-.93],[`c`,.15,-.78,.48,-1.38,.96,-1.89],[`c`,.15,-.12,.33,-.27,.42,-.36],[`c`,.69,-.51,1.62,-.81,2.76,-.93],[`z`],[`m`,1.17,.66],[`c`,-.21,-.06,-.57,-.06,-.81,-.03],[`c`,-.78,.12,-1.26,.69,-1.41,1.74],[`c`,-.12,.63,-.15,1.95,-.09,2.79],[`c`,.12,1.71,.63,2.4,1.77,2.46],[`c`,1.08,.03,1.62,-.48,1.8,-1.74],[`c`,.06,-.54,.06,-3,0,-3.54],[`c`,-.15,-1.05,-.51,-1.53,-1.26,-1.68],[`z`]],w:9.959,h:14.986},"rests.multimeasure":{d:[[`M`,0,-4],[`l`,0,16],[`l`,1,0],[`l`,0,-5],[`l`,40,0],[`l`,0,5],[`l`,1,0],[`l`,0,-16],[`l`,-1,0],[`l`,0,5],[`l`,-40,0],[`l`,0,-5],[`z`]],w:42,h:18},"rests.whole":{d:[[`M`,.06,.03],[`l`,.09,-.06],[`l`,5.46,0],[`l`,5.49,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,2.19],[`l`,0,2.19],[`l`,-.06,.09],[`l`,-.09,.06],[`l`,-5.49,0],[`l`,-5.46,0],[`l`,-.09,-.06],[`l`,-.06,-.09],[`l`,0,-2.19],[`l`,0,-2.19],[`z`]],w:11.25,h:4.68},"rests.half":{d:[[`M`,.06,-4.62],[`l`,.09,-.06],[`l`,5.46,0],[`l`,5.49,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,2.19],[`l`,0,2.19],[`l`,-.06,.09],[`l`,-.09,.06],[`l`,-5.49,0],[`l`,-5.46,0],[`l`,-.09,-.06],[`l`,-.06,-.09],[`l`,0,-2.19],[`l`,0,-2.19],[`z`]],w:11.25,h:4.68},"rests.quarter":{d:[[`M`,1.89,-11.82],[`c`,.12,-.06,.24,-.06,.36,-.03],[`c`,.09,.06,4.74,5.58,4.86,5.82],[`c`,.21,.39,.15,.78,-.15,1.26],[`c`,-.24,.33,-.72,.81,-1.62,1.56],[`c`,-.45,.36,-.87,.75,-.96,.84],[`c`,-.93,.99,-1.14,2.49,-.6,3.63],[`c`,.18,.39,.27,.48,1.32,1.68],[`c`,1.92,2.25,1.83,2.16,1.83,2.34],[`c`,0,.18,-.18,.36,-.36,.39],[`c`,-.15,0,-.27,-.06,-.48,-.27],[`c`,-.75,-.75,-2.46,-1.29,-3.39,-1.08],[`c`,-.45,.09,-.69,.27,-.9,.69],[`c`,-.12,.3,-.21,.66,-.24,1.14],[`c`,-.03,.66,.09,1.35,.3,2.01],[`c`,.15,.42,.24,.66,.45,.96],[`c`,.18,.24,.18,.33,.03,.42],[`c`,-.12,.06,-.18,.03,-.45,-.3],[`c`,-1.08,-1.38,-2.07,-3.36,-2.4,-4.83],[`c`,-.27,-1.05,-.15,-1.77,.27,-2.07],[`c`,.21,-.12,.42,-.15,.87,-.15],[`c`,.87,.06,2.1,.39,3.3,.9],[`l`,.39,.18],[`l`,-1.65,-1.95],[`c`,-2.52,-2.97,-2.61,-3.09,-2.7,-3.27],[`c`,-.09,-.24,-.12,-.48,-.03,-.75],[`c`,.15,-.48,.57,-.96,1.83,-2.01],[`c`,.45,-.36,.84,-.72,.93,-.78],[`c`,.69,-.75,1.02,-1.8,.9,-2.79],[`c`,-.06,-.33,-.21,-.84,-.39,-1.11],[`c`,-.09,-.15,-.45,-.6,-.81,-1.05],[`c`,-.36,-.42,-.69,-.81,-.72,-.87],[`c`,-.09,-.18,0,-.42,.21,-.51],[`z`]],w:7.888,h:21.435},"rests.8th":{d:[[`M`,1.68,-6.12],[`c`,.66,-.09,1.23,.09,1.68,.51],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.12,.27,.33,.45,.6,.48],[`c`,.12,0,.18,0,.33,-.09],[`c`,.39,-.18,1.32,-1.29,1.68,-1.98],[`c`,.09,-.21,.24,-.3,.39,-.3],[`c`,.12,0,.27,.09,.33,.18],[`c`,.03,.06,-.27,1.11,-1.86,6.42],[`c`,-1.02,3.48,-1.89,6.39,-1.92,6.42],[`c`,0,.03,-.12,.12,-.24,.15],[`c`,-.18,.09,-.21,.09,-.45,.09],[`c`,-.24,0,-.3,0,-.48,-.06],[`c`,-.09,-.06,-.21,-.12,-.21,-.15],[`c`,-.06,-.03,.15,-.57,1.68,-4.92],[`c`,.96,-2.67,1.74,-4.89,1.71,-4.89],[`l`,-.51,.15],[`c`,-1.08,.36,-1.74,.48,-2.55,.48],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.33,-.45,.84,-.81,1.38,-.9],[`z`]],w:7.534,h:13.883},"rests.16th":{d:[[`M`,3.33,-6.12],[`c`,.66,-.09,1.23,.09,1.68,.51],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.15,.39,.57,.57,.87,.42],[`c`,.39,-.18,1.2,-1.23,1.62,-2.07],[`c`,.06,-.15,.24,-.24,.36,-.24],[`c`,.12,0,.27,.09,.33,.18],[`c`,.03,.06,-.45,1.86,-2.67,10.17],[`c`,-1.5,5.55,-2.73,10.14,-2.76,10.17],[`c`,-.03,.03,-.12,.12,-.24,.15],[`c`,-.18,.09,-.21,.09,-.45,.09],[`c`,-.24,0,-.3,0,-.48,-.06],[`c`,-.09,-.06,-.21,-.12,-.21,-.15],[`c`,-.06,-.03,.12,-.57,1.44,-4.92],[`c`,.81,-2.67,1.47,-4.86,1.47,-4.89],[`c`,-.03,0,-.27,.06,-.54,.15],[`c`,-1.08,.36,-1.77,.48,-2.58,.48],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.72,-1.05,2.22,-1.23,3.06,-.42],[`c`,.3,.33,.42,.6,.6,1.38],[`c`,.09,.45,.21,.78,.33,.9],[`c`,.09,.09,.27,.18,.45,.21],[`c`,.12,0,.18,0,.33,-.09],[`c`,.33,-.15,1.02,-.93,1.41,-1.59],[`c`,.12,-.21,.18,-.39,.39,-1.08],[`c`,.66,-2.1,1.17,-3.84,1.17,-3.87],[`c`,0,0,-.21,.06,-.42,.15],[`c`,-.51,.15,-1.2,.33,-1.68,.42],[`c`,-.33,.06,-.51,.06,-.96,.06],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.33,-.45,.84,-.81,1.38,-.9],[`z`]],w:9.724,h:21.383},"rests.32nd":{d:[[`M`,4.23,-13.62],[`c`,.66,-.09,1.23,.09,1.68,.51],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.12,.27,.33,.45,.6,.48],[`c`,.12,0,.18,0,.27,-.06],[`c`,.33,-.21,.99,-1.11,1.44,-1.98],[`c`,.09,-.24,.21,-.33,.39,-.33],[`c`,.12,0,.27,.09,.33,.18],[`c`,.03,.06,-.57,2.67,-3.21,13.89],[`c`,-1.8,7.62,-3.3,13.89,-3.3,13.92],[`c`,-.03,.06,-.12,.12,-.24,.18],[`c`,-.21,.09,-.24,.09,-.48,.09],[`c`,-.24,0,-.3,0,-.48,-.06],[`c`,-.09,-.06,-.21,-.12,-.21,-.15],[`c`,-.06,-.03,.09,-.57,1.23,-4.92],[`c`,.69,-2.67,1.26,-4.86,1.29,-4.89],[`c`,0,-.03,-.12,-.03,-.48,.12],[`c`,-1.17,.39,-2.22,.57,-3,.54],[`c`,-.42,-.03,-.75,-.12,-1.11,-.3],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.72,-1.05,2.22,-1.23,3.06,-.42],[`c`,.3,.33,.42,.6,.6,1.38],[`c`,.09,.45,.21,.78,.33,.9],[`c`,.12,.09,.3,.18,.48,.21],[`c`,.12,0,.18,0,.3,-.09],[`c`,.42,-.21,1.29,-1.29,1.56,-1.89],[`c`,.03,-.12,1.23,-4.59,1.23,-4.65],[`c`,0,-.03,-.18,.03,-.39,.12],[`c`,-.63,.18,-1.2,.36,-1.74,.45],[`c`,-.39,.06,-.54,.06,-1.02,.06],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.72,-1.05,2.22,-1.23,3.06,-.42],[`c`,.3,.33,.42,.6,.6,1.38],[`c`,.09,.45,.21,.78,.33,.9],[`c`,.18,.18,.51,.27,.72,.15],[`c`,.3,-.12,.69,-.57,1.08,-1.17],[`c`,.42,-.6,.39,-.51,1.05,-3.03],[`c`,.33,-1.26,.6,-2.31,.6,-2.34],[`c`,0,0,-.21,.03,-.45,.12],[`c`,-.57,.18,-1.14,.33,-1.62,.42],[`c`,-.33,.06,-.51,.06,-.96,.06],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.33,-.45,.84,-.81,1.38,-.9],[`z`]],w:11.373,h:28.883},"rests.64th":{d:[[`M`,5.13,-13.62],[`c`,.66,-.09,1.23,.09,1.68,.51],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.15,.63,.21,.81,.33,.96],[`c`,.18,.21,.54,.3,.75,.18],[`c`,.24,-.12,.63,-.66,1.08,-1.56],[`c`,.33,-.66,.39,-.72,.6,-.72],[`c`,.12,0,.27,.09,.33,.18],[`c`,.03,.06,-.69,3.66,-3.54,17.64],[`c`,-1.95,9.66,-3.57,17.61,-3.57,17.64],[`c`,-.03,.06,-.12,.12,-.24,.18],[`c`,-.21,.09,-.24,.09,-.48,.09],[`c`,-.24,0,-.3,0,-.48,-.06],[`c`,-.09,-.06,-.21,-.12,-.21,-.15],[`c`,-.06,-.03,.06,-.57,1.05,-4.95],[`c`,.6,-2.7,1.08,-4.89,1.08,-4.92],[`c`,0,0,-.24,.06,-.51,.15],[`c`,-.66,.24,-1.2,.36,-1.77,.48],[`c`,-.42,.06,-.57,.06,-1.05,.06],[`c`,-.69,0,-.87,-.03,-1.35,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.72,-1.05,2.22,-1.23,3.06,-.42],[`c`,.3,.33,.42,.6,.6,1.38],[`c`,.09,.45,.21,.78,.33,.9],[`c`,.09,.09,.27,.18,.45,.21],[`c`,.21,.03,.39,-.09,.72,-.42],[`c`,.45,-.45,1.02,-1.26,1.17,-1.65],[`c`,.03,-.09,.27,-1.14,.54,-2.34],[`c`,.27,-1.2,.48,-2.19,.51,-2.22],[`c`,0,-.03,-.09,-.03,-.48,.12],[`c`,-1.17,.39,-2.22,.57,-3,.54],[`c`,-.42,-.03,-.75,-.12,-1.11,-.3],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.15,.39,.57,.57,.9,.42],[`c`,.36,-.18,1.2,-1.26,1.47,-1.89],[`c`,.03,-.09,.3,-1.2,.57,-2.43],[`l`,.51,-2.28],[`l`,-.54,.18],[`c`,-1.11,.36,-1.8,.48,-2.61,.48],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.15,.63,.21,.81,.33,.96],[`c`,.21,.21,.54,.3,.75,.18],[`c`,.36,-.18,.93,-.93,1.29,-1.68],[`c`,.12,-.24,.18,-.48,.63,-2.55],[`l`,.51,-2.31],[`c`,0,-.03,-.18,.03,-.39,.12],[`c`,-1.14,.36,-2.1,.54,-2.82,.51],[`c`,-.42,-.03,-.75,-.12,-1.11,-.3],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.33,-.45,.84,-.81,1.38,-.9],[`z`]],w:12.453,h:36.383},"rests.128th":{d:[[`M`,6.03,-21.12],[`c`,.66,-.09,1.23,.09,1.68,.51],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.12,.27,.33,.45,.6,.48],[`c`,.21,0,.33,-.06,.54,-.36],[`c`,.15,-.21,.54,-.93,.78,-1.47],[`c`,.15,-.33,.18,-.39,.3,-.48],[`c`,.18,-.09,.45,0,.51,.15],[`c`,.03,.09,-7.11,42.75,-7.17,42.84],[`c`,-.03,.03,-.15,.09,-.24,.15],[`c`,-.18,.06,-.24,.06,-.45,.06],[`c`,-.24,0,-.3,0,-.48,-.06],[`c`,-.09,-.06,-.21,-.12,-.21,-.15],[`c`,-.06,-.03,.03,-.57,.84,-4.98],[`c`,.51,-2.7,.93,-4.92,.9,-4.92],[`c`,0,0,-.15,.06,-.36,.12],[`c`,-.78,.27,-1.62,.48,-2.31,.57],[`c`,-.15,.03,-.54,.03,-.81,.03],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.12,.27,.33,.45,.63,.48],[`c`,.12,0,.18,0,.3,-.09],[`c`,.42,-.21,1.14,-1.11,1.5,-1.83],[`c`,.12,-.27,.12,-.27,.54,-2.52],[`c`,.24,-1.23,.42,-2.25,.39,-2.25],[`c`,0,0,-.24,.06,-.51,.18],[`c`,-1.26,.39,-2.25,.57,-3.06,.54],[`c`,-.42,-.03,-.75,-.12,-1.11,-.3],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.15,.63,.21,.81,.33,.96],[`c`,.18,.21,.51,.3,.75,.18],[`c`,.36,-.15,1.05,-.99,1.41,-1.77],[`l`,.15,-.3],[`l`,.42,-2.25],[`c`,.21,-1.26,.42,-2.28,.39,-2.28],[`l`,-.51,.15],[`c`,-1.11,.39,-1.89,.51,-2.7,.51],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.15,.63,.21,.81,.33,.96],[`c`,.18,.18,.48,.27,.72,.21],[`c`,.33,-.12,1.14,-1.26,1.41,-1.95],[`c`,0,-.09,.21,-1.11,.45,-2.34],[`c`,.21,-1.2,.39,-2.22,.39,-2.28],[`c`,.03,-.03,0,-.03,-.45,.12],[`c`,-.57,.18,-1.2,.33,-1.71,.42],[`c`,-.3,.06,-.51,.06,-.93,.06],[`c`,-.66,0,-.84,-.03,-1.32,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.36,-.54,.96,-.87,1.65,-.93],[`c`,.54,-.03,1.02,.15,1.41,.54],[`c`,.27,.3,.39,.54,.57,1.26],[`c`,.09,.33,.18,.66,.21,.72],[`c`,.12,.27,.33,.45,.6,.48],[`c`,.18,0,.36,-.09,.57,-.33],[`c`,.33,-.36,.78,-1.14,.93,-1.56],[`c`,.03,-.12,.24,-1.2,.45,-2.4],[`c`,.24,-1.2,.42,-2.22,.42,-2.28],[`c`,.03,-.03,0,-.03,-.39,.09],[`c`,-1.05,.36,-1.8,.48,-2.58,.48],[`c`,-.63,0,-.84,-.03,-1.29,-.27],[`c`,-1.32,-.63,-1.77,-2.16,-1.02,-3.3],[`c`,.33,-.45,.84,-.81,1.38,-.9],[`z`]],w:12.992,h:43.883},"accidentals.sharp":{d:[[`M`,5.73,-11.19],[`c`,.21,-.12,.54,-.03,.66,.24],[`c`,.06,.12,.06,.21,.06,2.31],[`c`,0,1.23,0,2.22,.03,2.22],[`c`,0,0,.27,-.12,.6,-.24],[`c`,.69,-.27,.78,-.3,.96,-.15],[`c`,.21,.15,.21,.18,.21,1.38],[`c`,0,1.02,0,1.11,-.06,1.2],[`c`,-.03,.06,-.09,.12,-.12,.15],[`c`,-.06,.03,-.42,.21,-.84,.36],[`l`,-.75,.33],[`l`,-.03,2.43],[`c`,0,1.32,0,2.43,.03,2.43],[`c`,0,0,.27,-.12,.6,-.24],[`c`,.69,-.27,.78,-.3,.96,-.15],[`c`,.21,.15,.21,.18,.21,1.38],[`c`,0,1.02,0,1.11,-.06,1.2],[`c`,-.03,.06,-.09,.12,-.12,.15],[`c`,-.06,.03,-.42,.21,-.84,.36],[`l`,-.75,.33],[`l`,-.03,2.52],[`c`,0,2.28,-.03,2.55,-.06,2.64],[`c`,-.21,.36,-.72,.36,-.93,0],[`c`,-.03,-.09,-.06,-.33,-.06,-2.43],[`l`,0,-2.31],[`l`,-1.29,.51],[`l`,-1.26,.51],[`l`,0,2.43],[`c`,0,2.58,0,2.52,-.15,2.67],[`c`,-.06,.09,-.27,.18,-.36,.18],[`c`,-.12,0,-.33,-.09,-.39,-.18],[`c`,-.15,-.15,-.15,-.09,-.15,-2.43],[`c`,0,-1.23,0,-2.22,-.03,-2.22],[`c`,0,0,-.27,.12,-.6,.24],[`c`,-.69,.27,-.78,.3,-.96,.15],[`c`,-.21,-.15,-.21,-.18,-.21,-1.38],[`c`,0,-1.02,0,-1.11,.06,-1.2],[`c`,.03,-.06,.09,-.12,.12,-.15],[`c`,.06,-.03,.42,-.21,.84,-.36],[`l`,.78,-.33],[`l`,0,-2.43],[`c`,0,-1.32,0,-2.43,-.03,-2.43],[`c`,0,0,-.27,.12,-.6,.24],[`c`,-.69,.27,-.78,.3,-.96,.15],[`c`,-.21,-.15,-.21,-.18,-.21,-1.38],[`c`,0,-1.02,0,-1.11,.06,-1.2],[`c`,.03,-.06,.09,-.12,.12,-.15],[`c`,.06,-.03,.42,-.21,.84,-.36],[`l`,.78,-.33],[`l`,0,-2.52],[`c`,0,-2.28,.03,-2.55,.06,-2.64],[`c`,.21,-.36,.72,-.36,.93,0],[`c`,.03,.09,.06,.33,.06,2.43],[`l`,.03,2.31],[`l`,1.26,-.51],[`l`,1.26,-.51],[`l`,0,-2.43],[`c`,0,-2.28,0,-2.43,.06,-2.55],[`c`,.06,-.12,.12,-.18,.27,-.24],[`z`],[`m`,-.33,10.65],[`l`,0,-2.43],[`l`,-1.29,.51],[`l`,-1.26,.51],[`l`,0,2.46],[`l`,0,2.43],[`l`,.09,-.03],[`c`,.06,-.03,.63,-.27,1.29,-.51],[`l`,1.17,-.48],[`l`,0,-2.46],[`z`]],w:8.25,h:22.462},"accidentals.halfsharp":{d:[[`M`,2.43,-10.05],[`c`,.21,-.12,.54,-.03,.66,.24],[`c`,.06,.12,.06,.21,.06,2.01],[`c`,0,1.05,0,1.89,.03,1.89],[`l`,.72,-.48],[`c`,.69,-.48,.69,-.51,.87,-.51],[`c`,.15,0,.18,.03,.27,.09],[`c`,.21,.15,.21,.18,.21,1.41],[`c`,0,1.11,-.03,1.14,-.09,1.23],[`c`,-.03,.03,-.48,.39,-1.02,.75],[`l`,-.99,.66],[`l`,0,2.37],[`c`,0,1.32,0,2.37,.03,2.37],[`l`,.72,-.48],[`c`,.69,-.48,.69,-.51,.87,-.51],[`c`,.15,0,.18,.03,.27,.09],[`c`,.21,.15,.21,.18,.21,1.41],[`c`,0,1.11,-.03,1.14,-.09,1.23],[`c`,-.03,.03,-.48,.39,-1.02,.75],[`l`,-.99,.66],[`l`,0,2.25],[`c`,0,1.95,0,2.28,-.06,2.37],[`c`,-.06,.12,-.12,.21,-.24,.27],[`c`,-.27,.12,-.54,.03,-.69,-.24],[`c`,-.06,-.12,-.06,-.21,-.06,-2.01],[`c`,0,-1.05,0,-1.89,-.03,-1.89],[`l`,-.72,.48],[`c`,-.69,.48,-.69,.48,-.87,.48],[`c`,-.15,0,-.18,0,-.27,-.06],[`c`,-.21,-.15,-.21,-.18,-.21,-1.41],[`c`,0,-1.11,.03,-1.14,.09,-1.23],[`c`,.03,-.03,.48,-.39,1.02,-.75],[`l`,.99,-.66],[`l`,0,-2.37],[`c`,0,-1.32,0,-2.37,-.03,-2.37],[`l`,-.72,.48],[`c`,-.69,.48,-.69,.48,-.87,.48],[`c`,-.15,0,-.18,0,-.27,-.06],[`c`,-.21,-.15,-.21,-.18,-.21,-1.41],[`c`,0,-1.11,.03,-1.14,.09,-1.23],[`c`,.03,-.03,.48,-.39,1.02,-.75],[`l`,.99,-.66],[`l`,0,-2.25],[`c`,0,-2.13,0,-2.28,.06,-2.4],[`c`,.06,-.12,.12,-.18,.27,-.24],[`z`]],w:5.25,h:20.174},"accidentals.nat":{d:[[`M`,.21,-11.4],[`c`,.24,-.06,.78,0,.99,.15],[`c`,.03,.03,.03,.48,0,2.61],[`c`,-.03,1.44,-.03,2.61,-.03,2.61],[`c`,0,.03,.75,-.09,1.68,-.24],[`c`,.96,-.18,1.71,-.27,1.74,-.27],[`c`,.15,.03,.27,.15,.36,.3],[`l`,.06,.12],[`l`,.09,8.67],[`c`,.09,6.96,.12,8.67,.09,8.67],[`c`,-.03,.03,-.12,.06,-.21,.09],[`c`,-.24,.09,-.72,.09,-.96,0],[`c`,-.09,-.03,-.18,-.06,-.21,-.09],[`c`,-.03,-.03,-.03,-.48,0,-2.61],[`c`,.03,-1.44,.03,-2.61,.03,-2.61],[`c`,0,-.03,-.75,.09,-1.68,.24],[`c`,-.96,.18,-1.71,.27,-1.74,.27],[`c`,-.15,-.03,-.27,-.15,-.36,-.3],[`l`,-.06,-.15],[`l`,-.09,-7.53],[`c`,-.06,-4.14,-.09,-8.04,-.12,-8.67],[`l`,0,-1.11],[`l`,.15,-.06],[`c`,.09,-.03,.21,-.06,.27,-.09],[`z`],[`m`,3.75,8.4],[`c`,0,-.33,0,-.42,-.03,-.42],[`c`,-.12,0,-2.79,.45,-2.79,.48],[`c`,-.03,0,-.09,6.3,-.09,6.33],[`c`,.03,0,2.79,-.45,2.82,-.48],[`c`,0,0,.09,-4.53,.09,-5.91],[`z`]],w:5.4,h:22.8},"accidentals.flat":{d:[[`M`,-.36,-14.07],[`c`,.33,-.06,.87,0,1.08,.15],[`c`,.06,.03,.06,.36,-.03,5.25],[`c`,-.06,2.85,-.09,5.19,-.09,5.19],[`c`,0,.03,.12,-.03,.24,-.12],[`c`,.63,-.42,1.41,-.66,2.19,-.72],[`c`,.81,-.03,1.47,.21,2.04,.78],[`c`,.57,.54,.87,1.26,.93,2.04],[`c`,.03,.57,-.09,1.08,-.36,1.62],[`c`,-.42,.81,-1.02,1.38,-2.82,2.61],[`c`,-1.14,.78,-1.44,1.02,-1.8,1.44],[`c`,-.18,.18,-.39,.39,-.45,.42],[`c`,-.27,.18,-.57,.15,-.81,-.06],[`c`,-.06,-.09,-.12,-.18,-.15,-.27],[`c`,-.03,-.06,-.09,-3.27,-.18,-8.34],[`c`,-.09,-4.53,-.15,-8.58,-.18,-9.03],[`l`,0,-.78],[`l`,.12,-.06],[`c`,.06,-.03,.18,-.09,.27,-.12],[`z`],[`m`,3.18,11.01],[`c`,-.21,-.12,-.54,-.15,-.81,-.06],[`c`,-.54,.15,-.99,.63,-1.17,1.26],[`c`,-.06,.3,-.12,2.88,-.06,3.87],[`c`,.03,.42,.03,.81,.06,.9],[`l`,.03,.12],[`l`,.45,-.39],[`c`,.63,-.54,1.26,-1.17,1.56,-1.59],[`c`,.3,-.42,.6,-.99,.72,-1.41],[`c`,.18,-.69,.09,-1.47,-.18,-2.07],[`c`,-.15,-.3,-.33,-.51,-.6,-.63],[`z`]],w:6.75,h:18.801},"accidentals.halfflat":{d:[[`M`,4.83,-14.07],[`c`,.33,-.06,.87,0,1.08,.15],[`c`,.06,.03,.06,.6,-.12,9.06],[`c`,-.09,5.55,-.15,9.06,-.18,9.12],[`c`,-.03,.09,-.09,.18,-.15,.27],[`c`,-.24,.21,-.54,.24,-.81,.06],[`c`,-.06,-.03,-.27,-.24,-.45,-.42],[`c`,-.36,-.42,-.66,-.66,-1.8,-1.44],[`c`,-1.23,-.84,-1.83,-1.32,-2.25,-1.77],[`c`,-.66,-.78,-.96,-1.56,-.93,-2.46],[`c`,.09,-1.41,1.11,-2.58,2.4,-2.79],[`c`,.3,-.06,.84,-.03,1.23,.06],[`c`,.54,.12,1.08,.33,1.53,.63],[`c`,.12,.09,.24,.15,.24,.12],[`c`,0,0,-.12,-8.37,-.18,-9.75],[`l`,0,-.66],[`l`,.12,-.06],[`c`,.06,-.03,.18,-.09,.27,-.12],[`z`],[`m`,-1.65,10.95],[`c`,-.6,-.18,-1.08,.09,-1.38,.69],[`c`,-.27,.6,-.36,1.38,-.18,2.07],[`c`,.12,.42,.42,.99,.72,1.41],[`c`,.3,.42,.93,1.05,1.56,1.59],[`l`,.48,.39],[`l`,0,-.12],[`c`,.03,-.09,.03,-.48,.06,-.9],[`c`,.03,-.57,.03,-1.08,0,-2.22],[`c`,-.03,-1.62,-.03,-1.62,-.24,-2.07],[`c`,-.21,-.42,-.6,-.75,-1.02,-.84],[`z`]],w:6.728,h:18.801},"accidentals.dblflat":{d:[[`M`,-.36,-14.07],[`c`,.33,-.06,.87,0,1.08,.15],[`c`,.06,.03,.06,.36,-.03,5.25],[`c`,-.06,2.85,-.09,5.19,-.09,5.19],[`c`,0,.03,.12,-.03,.24,-.12],[`c`,.63,-.42,1.41,-.66,2.19,-.72],[`c`,.81,-.03,1.47,.21,2.04,.78],[`c`,.57,.54,.87,1.26,.93,2.04],[`c`,.03,.57,-.09,1.08,-.36,1.62],[`c`,-.42,.81,-1.02,1.38,-2.82,2.61],[`c`,-1.14,.78,-1.44,1.02,-1.8,1.44],[`c`,-.18,.18,-.39,.39,-.45,.42],[`c`,-.27,.18,-.57,.15,-.81,-.06],[`c`,-.06,-.09,-.12,-.18,-.15,-.27],[`c`,-.03,-.06,-.09,-3.27,-.18,-8.34],[`c`,-.09,-4.53,-.15,-8.58,-.18,-9.03],[`l`,0,-.78],[`l`,.12,-.06],[`c`,.06,-.03,.18,-.09,.27,-.12],[`z`],[`m`,3.18,11.01],[`c`,-.21,-.12,-.54,-.15,-.81,-.06],[`c`,-.54,.15,-.99,.63,-1.17,1.26],[`c`,-.06,.3,-.12,2.88,-.06,3.87],[`c`,.03,.42,.03,.81,.06,.9],[`l`,.03,.12],[`l`,.45,-.39],[`c`,.63,-.54,1.26,-1.17,1.56,-1.59],[`c`,.3,-.42,.6,-.99,.72,-1.41],[`c`,.18,-.69,.09,-1.47,-.18,-2.07],[`c`,-.15,-.3,-.33,-.51,-.6,-.63],[`z`],[`m`,3,-11],[`c`,.33,-.06,.87,0,1.08,.15],[`c`,.06,.03,.06,.36,-.03,5.25],[`c`,-.06,2.85,-.09,5.19,-.09,5.19],[`c`,0,.03,.12,-.03,.24,-.12],[`c`,.63,-.42,1.41,-.66,2.19,-.72],[`c`,.81,-.03,1.47,.21,2.04,.78],[`c`,.57,.54,.87,1.26,.93,2.04],[`c`,.03,.57,-.09,1.08,-.36,1.62],[`c`,-.42,.81,-1.02,1.38,-2.82,2.61],[`c`,-1.14,.78,-1.44,1.02,-1.8,1.44],[`c`,-.18,.18,-.39,.39,-.45,.42],[`c`,-.27,.18,-.57,.15,-.81,-.06],[`c`,-.06,-.09,-.12,-.18,-.15,-.27],[`c`,-.03,-.06,-.09,-3.27,-.18,-8.34],[`c`,-.09,-4.53,-.15,-8.58,-.18,-9.03],[`l`,0,-.78],[`l`,.12,-.06],[`c`,.06,-.03,.18,-.09,.27,-.12],[`z`],[`m`,3.18,11.01],[`c`,-.21,-.12,-.54,-.15,-.81,-.06],[`c`,-.54,.15,-.99,.63,-1.17,1.26],[`c`,-.06,.3,-.12,2.88,-.06,3.87],[`c`,.03,.42,.03,.81,.06,.9],[`l`,.03,.12],[`l`,.45,-.39],[`c`,.63,-.54,1.26,-1.17,1.56,-1.59],[`c`,.3,-.42,.6,-.99,.72,-1.41],[`c`,.18,-.69,.09,-1.47,-.18,-2.07],[`c`,-.15,-.3,-.33,-.51,-.6,-.63],[`z`]],w:12.1,h:18.804},"accidentals.dblsharp":{d:[[`M`,-.18,-3.96],[`c`,.06,-.03,.12,-.06,.15,-.06],[`c`,.09,0,2.76,.27,2.79,.3],[`c`,.12,.03,.15,.12,.15,.51],[`c`,.06,.96,.24,1.59,.57,2.1],[`c`,.06,.09,.15,.21,.18,.24],[`l`,.09,.06],[`l`,.09,-.06],[`c`,.03,-.03,.12,-.15,.18,-.24],[`c`,.33,-.51,.51,-1.14,.57,-2.1],[`c`,0,-.39,.03,-.45,.12,-.51],[`c`,.03,0,.66,-.09,1.44,-.15],[`c`,1.47,-.15,1.5,-.15,1.56,-.03],[`c`,.03,.06,0,.42,-.09,1.44],[`c`,-.09,.72,-.15,1.35,-.15,1.38],[`c`,0,.03,-.03,.09,-.06,.12],[`c`,-.06,.06,-.12,.09,-.51,.09],[`c`,-1.08,.06,-1.8,.3,-2.28,.75],[`l`,-.12,.09],[`l`,.09,.09],[`c`,.12,.15,.39,.33,.63,.45],[`c`,.42,.18,.96,.27,1.68,.33],[`c`,.39,0,.45,.03,.51,.09],[`c`,.03,.03,.06,.09,.06,.12],[`c`,0,.03,.06,.66,.15,1.38],[`c`,.09,1.02,.12,1.38,.09,1.44],[`c`,-.06,.12,-.09,.12,-1.56,-.03],[`c`,-.78,-.06,-1.41,-.15,-1.44,-.15],[`c`,-.09,-.06,-.12,-.12,-.12,-.54],[`c`,-.06,-.93,-.24,-1.56,-.57,-2.07],[`c`,-.06,-.09,-.15,-.21,-.18,-.24],[`l`,-.09,-.06],[`l`,-.09,.06],[`c`,-.03,.03,-.12,.15,-.18,.24],[`c`,-.33,.51,-.51,1.14,-.57,2.07],[`c`,0,.42,-.03,.48,-.12,.54],[`c`,-.03,0,-.66,.09,-1.44,.15],[`c`,-1.47,.15,-1.5,.15,-1.56,.03],[`c`,-.03,-.06,0,-.42,.09,-1.44],[`c`,.09,-.72,.15,-1.35,.15,-1.38],[`c`,0,-.03,.03,-.09,.06,-.12],[`c`,.06,-.06,.12,-.09,.51,-.09],[`c`,.72,-.06,1.26,-.15,1.68,-.33],[`c`,.24,-.12,.51,-.3,.63,-.45],[`l`,.09,-.09],[`l`,-.12,-.09],[`c`,-.48,-.45,-1.2,-.69,-2.28,-.75],[`c`,-.39,0,-.45,-.03,-.51,-.09],[`c`,-.03,-.03,-.06,-.09,-.06,-.12],[`c`,0,-.03,-.06,-.63,-.12,-1.38],[`c`,-.09,-.72,-.15,-1.35,-.15,-1.38],[`z`]],w:7.95,h:7.977},"dots.dot":{d:[[`M`,1.32,-1.68],[`c`,.09,-.03,.27,-.06,.39,-.06],[`c`,.96,0,1.74,.78,1.74,1.71],[`c`,0,.96,-.78,1.74,-1.71,1.74],[`c`,-.96,0,-1.74,-.78,-1.74,-1.71],[`c`,0,-.78,.54,-1.5,1.32,-1.68],[`z`]],w:3.45,h:3.45},"noteheads.dbl":{d:[[`M`,-.69,-4.02],[`c`,.18,-.09,.36,-.09,.54,0],[`c`,.18,.09,.24,.15,.33,.3],[`c`,.06,.15,.06,.18,.06,1.41],[`l`,0,1.23],[`l`,.12,-.18],[`c`,.72,-1.26,2.64,-2.31,4.86,-2.64],[`c`,.81,-.15,1.11,-.15,2.13,-.15],[`c`,.99,0,1.29,0,2.1,.15],[`c`,.75,.12,1.38,.27,2.04,.54],[`c`,1.35,.51,2.34,1.26,2.82,2.1],[`l`,.12,.18],[`l`,0,-1.23],[`c`,0,-1.2,0,-1.26,.06,-1.38],[`c`,.09,-.18,.15,-.24,.33,-.33],[`c`,.18,-.09,.36,-.09,.54,0],[`c`,.18,.09,.24,.15,.33,.3],[`l`,.06,.15],[`l`,0,3.54],[`l`,0,3.54],[`l`,-.06,.15],[`c`,-.09,.18,-.15,.24,-.33,.33],[`c`,-.18,.09,-.36,.09,-.54,0],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`c`,-.06,-.12,-.06,-.18,-.06,-1.38],[`l`,0,-1.23],[`l`,-.12,.18],[`c`,-.48,.84,-1.47,1.59,-2.82,2.1],[`c`,-.84,.33,-1.71,.54,-2.85,.66],[`c`,-.45,.06,-2.16,.06,-2.61,0],[`c`,-1.14,-.12,-2.01,-.33,-2.85,-.66],[`c`,-1.35,-.51,-2.34,-1.26,-2.82,-2.1],[`l`,-.12,-.18],[`l`,0,1.23],[`c`,0,1.23,0,1.26,-.06,1.38],[`c`,-.09,.18,-.15,.24,-.33,.33],[`c`,-.18,.09,-.36,.09,-.54,0],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`l`,-.06,-.15],[`l`,0,-3.54],[`c`,0,-3.48,0,-3.54,.06,-3.66],[`c`,.09,-.18,.15,-.24,.33,-.33],[`z`],[`m`,7.71,.63],[`c`,-.36,-.06,-.9,-.06,-1.14,0],[`c`,-.3,.03,-.66,.24,-.87,.42],[`c`,-.6,.54,-.9,1.62,-.75,2.82],[`c`,.12,.93,.51,1.68,1.11,2.31],[`c`,.75,.72,1.83,1.2,2.85,1.26],[`c`,1.05,.06,1.83,-.54,2.1,-1.65],[`c`,.21,-.9,.12,-1.95,-.24,-2.82],[`c`,-.36,-.81,-1.08,-1.53,-1.95,-1.95],[`c`,-.3,-.15,-.78,-.3,-1.11,-.39],[`z`]],w:16.83,h:8.145},"noteheads.whole":{d:[[`M`,6.51,-4.05],[`c`,.51,-.03,2.01,0,2.52,.03],[`c`,1.41,.18,2.64,.51,3.72,1.08],[`c`,1.2,.63,1.95,1.41,2.19,2.31],[`c`,.09,.33,.09,.9,0,1.23],[`c`,-.24,.9,-.99,1.68,-2.19,2.31],[`c`,-1.08,.57,-2.28,.9,-3.75,1.08],[`c`,-.66,.06,-2.31,.06,-2.97,0],[`c`,-1.47,-.18,-2.67,-.51,-3.75,-1.08],[`c`,-1.2,-.63,-1.95,-1.41,-2.19,-2.31],[`c`,-.09,-.33,-.09,-.9,0,-1.23],[`c`,.24,-.9,.99,-1.68,2.19,-2.31],[`c`,1.2,-.63,2.61,-.99,4.23,-1.11],[`z`],[`m`,.57,.66],[`c`,-.87,-.15,-1.53,0,-2.04,.51],[`c`,-.15,.15,-.24,.27,-.33,.48],[`c`,-.24,.51,-.36,1.08,-.33,1.77],[`c`,.03,.69,.18,1.26,.42,1.77],[`c`,.6,1.17,1.74,1.98,3.18,2.22],[`c`,1.11,.21,1.95,-.15,2.34,-.99],[`c`,.24,-.51,.36,-1.08,.33,-1.8],[`c`,-.06,-1.11,-.45,-2.04,-1.17,-2.76],[`c`,-.63,-.63,-1.47,-1.05,-2.4,-1.2],[`z`]],w:14.985,h:8.097},"noteheads.half":{d:[[`M`,7.44,-4.05],[`c`,.06,-.03,.27,-.03,.48,-.03],[`c`,1.05,0,1.71,.24,2.1,.81],[`c`,.42,.6,.45,1.35,.18,2.4],[`c`,-.42,1.59,-1.14,2.73,-2.16,3.39],[`c`,-1.41,.93,-3.18,1.44,-5.4,1.53],[`c`,-1.17,.03,-1.89,-.21,-2.28,-.81],[`c`,-.42,-.6,-.45,-1.35,-.18,-2.4],[`c`,.42,-1.59,1.14,-2.73,2.16,-3.39],[`c`,.63,-.42,1.23,-.72,1.98,-.96],[`c`,.9,-.3,1.65,-.42,3.12,-.54],[`z`],[`m`,1.29,.87],[`c`,-.27,-.09,-.63,-.12,-.9,-.03],[`c`,-.72,.24,-1.53,.69,-3.27,1.8],[`c`,-2.34,1.5,-3.3,2.25,-3.57,2.79],[`c`,-.36,.72,-.06,1.5,.66,1.77],[`c`,.24,.12,.69,.09,.99,0],[`c`,.84,-.3,1.92,-.93,4.14,-2.37],[`c`,1.62,-1.08,2.37,-1.71,2.61,-2.19],[`c`,.36,-.72,.06,-1.5,-.66,-1.77],[`z`]],w:10.37,h:8.132},"noteheads.quarter":{d:[[`M`,6.09,-4.05],[`c`,.36,-.03,1.2,0,1.53,.06],[`c`,1.17,.24,1.89,.84,2.16,1.83],[`c`,.06,.18,.06,.3,.06,.66],[`c`,0,.45,0,.63,-.15,1.08],[`c`,-.66,2.04,-3.06,3.93,-5.52,4.38],[`c`,-.54,.09,-1.44,.09,-1.83,.03],[`c`,-1.23,-.27,-1.98,-.87,-2.25,-1.86],[`c`,-.06,-.18,-.06,-.3,-.06,-.66],[`c`,0,-.45,0,-.63,.15,-1.08],[`c`,.24,-.78,.75,-1.53,1.44,-2.22],[`c`,1.2,-1.2,2.85,-2.01,4.47,-2.22],[`z`]],w:9.81,h:8.094},"noteheads.slash.nostem":{d:[[`M`,9.3,-7.77],[`c`,.06,-.06,.18,-.06,1.71,-.06],[`l`,1.65,0],[`l`,.09,.09],[`c`,.06,.06,.06,.09,.06,.15],[`c`,-.03,.12,-9.21,15.24,-9.3,15.33],[`c`,-.06,.06,-.18,.06,-1.71,.06],[`l`,-1.65,0],[`l`,-.09,-.09],[`c`,-.06,-.06,-.06,-.09,-.06,-.15],[`c`,.03,-.12,9.21,-15.24,9.3,-15.33],[`z`]],w:12.81,h:15.63},"noteheads.indeterminate":{d:[[`M`,.78,-4.05],[`c`,.12,-.03,.24,-.03,.36,.03],[`c`,.03,.03,.93,.72,1.95,1.56],[`l`,1.86,1.5],[`l`,1.86,-1.5],[`c`,1.02,-.84,1.92,-1.53,1.95,-1.56],[`c`,.21,-.12,.33,-.09,.75,.24],[`c`,.3,.27,.36,.36,.36,.54],[`c`,0,.03,-.03,.12,-.06,.18],[`c`,-.03,.06,-.9,.75,-1.89,1.56],[`l`,-1.8,1.47],[`c`,0,.03,.81,.69,1.8,1.5],[`c`,.99,.81,1.86,1.5,1.89,1.56],[`c`,.03,.06,.06,.15,.06,.18],[`c`,0,.18,-.06,.27,-.36,.54],[`c`,-.42,.33,-.54,.36,-.75,.24],[`c`,-.03,-.03,-.93,-.72,-1.95,-1.56],[`l`,-1.86,-1.5],[`l`,-1.86,1.5],[`c`,-1.02,.84,-1.92,1.53,-1.95,1.56],[`c`,-.21,.12,-.33,.09,-.75,-.24],[`c`,-.3,-.27,-.36,-.36,-.36,-.54],[`c`,0,-.03,.03,-.12,.06,-.18],[`c`,.03,-.06,.9,-.75,1.89,-1.56],[`l`,1.8,-1.47],[`c`,0,-.03,-.81,-.69,-1.8,-1.5],[`c`,-.99,-.81,-1.86,-1.5,-1.89,-1.56],[`c`,-.06,-.12,-.09,-.21,-.03,-.36],[`c`,.03,-.09,.57,-.57,.72,-.63],[`z`]],w:9.843,h:8.139},"scripts.ufermata":{d:[[`M`,-.75,-10.77],[`c`,.12,0,.45,-.03,.69,-.03],[`c`,2.91,-.03,5.55,1.53,7.41,4.35],[`c`,1.17,1.71,1.95,3.72,2.43,6.03],[`c`,.12,.51,.12,.57,.03,.69],[`c`,-.12,.21,-.48,.27,-.69,.12],[`c`,-.12,-.09,-.18,-.24,-.27,-.69],[`c`,-.78,-3.63,-3.42,-6.54,-6.78,-7.38],[`c`,-.78,-.21,-1.2,-.24,-2.07,-.24],[`c`,-.63,0,-.84,0,-1.2,.06],[`c`,-1.83,.27,-3.42,1.08,-4.8,2.37],[`c`,-1.41,1.35,-2.4,3.21,-2.85,5.19],[`c`,-.09,.45,-.15,.6,-.27,.69],[`c`,-.21,.15,-.57,.09,-.69,-.12],[`c`,-.09,-.12,-.09,-.18,.03,-.69],[`c`,.33,-1.62,.78,-3,1.47,-4.38],[`c`,1.77,-3.54,4.44,-5.67,7.56,-5.97],[`z`],[`m`,.33,7.47],[`c`,1.38,-.3,2.58,.9,2.31,2.25],[`c`,-.15,.72,-.78,1.35,-1.47,1.5],[`c`,-1.38,.27,-2.58,-.93,-2.31,-2.31],[`c`,.15,-.69,.78,-1.29,1.47,-1.44],[`z`]],w:19.748,h:11.289},"scripts.dfermata":{d:[[`M`,-9.63,-.42],[`c`,.15,-.09,.36,-.06,.51,.03],[`c`,.12,.09,.18,.24,.27,.66],[`c`,.78,3.66,3.42,6.57,6.78,7.41],[`c`,.78,.21,1.2,.24,2.07,.24],[`c`,.63,0,.84,0,1.2,-.06],[`c`,1.83,-.27,3.42,-1.08,4.8,-2.37],[`c`,1.41,-1.35,2.4,-3.21,2.85,-5.22],[`c`,.09,-.42,.15,-.57,.27,-.66],[`c`,.21,-.15,.57,-.09,.69,.12],[`c`,.09,.12,.09,.18,-.03,.69],[`c`,-.33,1.62,-.78,3,-1.47,4.38],[`c`,-1.92,3.84,-4.89,6,-8.31,6],[`c`,-3.42,0,-6.39,-2.16,-8.31,-6],[`c`,-.48,-.96,-.84,-1.92,-1.14,-2.97],[`c`,-.18,-.69,-.42,-1.74,-.42,-1.92],[`c`,0,-.12,.09,-.27,.24,-.33],[`z`],[`m`,9.21,0],[`c`,1.2,-.27,2.34,.63,2.34,1.86],[`c`,0,.9,-.66,1.68,-1.5,1.89],[`c`,-1.38,.27,-2.58,-.93,-2.31,-2.31],[`c`,.15,-.69,.78,-1.29,1.47,-1.44],[`z`]],w:19.744,h:11.274},"scripts.sforzato":{d:[[`M`,-6.45,-3.69],[`c`,.06,-.03,.15,-.06,.18,-.06],[`c`,.06,0,2.85,.72,6.24,1.59],[`l`,6.33,1.65],[`c`,.33,.06,.45,.21,.45,.51],[`c`,0,.3,-.12,.45,-.45,.51],[`l`,-6.33,1.65],[`c`,-3.39,.87,-6.18,1.59,-6.21,1.59],[`c`,-.21,0,-.48,-.24,-.51,-.45],[`c`,0,-.15,.06,-.36,.18,-.45],[`c`,.09,-.06,.87,-.27,3.84,-1.05],[`c`,2.04,-.54,3.84,-.99,4.02,-1.02],[`c`,.15,-.06,1.14,-.24,2.22,-.42],[`c`,1.05,-.18,1.92,-.36,1.92,-.36],[`c`,0,0,-.87,-.18,-1.92,-.36],[`c`,-1.08,-.18,-2.07,-.36,-2.22,-.42],[`c`,-.18,-.03,-1.98,-.48,-4.02,-1.02],[`c`,-2.97,-.78,-3.75,-.99,-3.84,-1.05],[`c`,-.12,-.09,-.18,-.3,-.18,-.45],[`c`,.03,-.15,.15,-.3,.3,-.39],[`z`]],w:13.5,h:7.5},"scripts.staccato":{d:[[`M`,-.36,-1.47],[`c`,.93,-.21,1.86,.51,1.86,1.47],[`c`,0,.93,-.87,1.65,-1.8,1.47],[`c`,-.54,-.12,-1.02,-.57,-1.14,-1.08],[`c`,-.21,-.81,.27,-1.65,1.08,-1.86],[`z`]],w:2.989,h:3.004},"scripts.tenuto":{d:[[`M`,-4.2,-.48],[`l`,.12,-.06],[`l`,4.08,0],[`l`,4.08,0],[`l`,.12,.06],[`c`,.39,.21,.39,.75,0,.96],[`l`,-.12,.06],[`l`,-4.08,0],[`l`,-4.08,0],[`l`,-.12,-.06],[`c`,-.39,-.21,-.39,-.75,0,-.96],[`z`]],w:8.985,h:1.08},"scripts.umarcato":{d:[[`M`,-.15,-8.19],[`c`,.15,-.12,.36,-.03,.45,.15],[`c`,.21,.42,3.45,7.65,3.45,7.71],[`c`,0,.12,-.12,.27,-.21,.3],[`c`,-.03,.03,-.51,.03,-1.14,.03],[`c`,-1.05,0,-1.08,0,-1.17,-.06],[`c`,-.09,-.06,-.24,-.36,-1.17,-2.4],[`c`,-.57,-1.29,-1.05,-2.34,-1.08,-2.34],[`c`,0,-.03,-.51,1.02,-1.08,2.34],[`c`,-.93,2.07,-1.08,2.34,-1.14,2.4],[`c`,-.06,.03,-.15,.06,-.18,.06],[`c`,-.15,0,-.33,-.18,-.33,-.33],[`c`,0,-.06,3.24,-7.32,3.45,-7.71],[`c`,.03,-.06,.09,-.15,.15,-.15],[`z`]],w:7.5,h:8.245},"scripts.dmarcato":{d:[[`M`,-3.57,.03],[`c`,.03,0,.57,-.03,1.17,-.03],[`c`,1.05,0,1.08,0,1.17,.06],[`c`,.09,.06,.24,.36,1.17,2.4],[`c`,.57,1.29,1.05,2.34,1.08,2.34],[`c`,0,.03,.51,-1.02,1.08,-2.34],[`c`,.93,-2.07,1.08,-2.34,1.14,-2.4],[`c`,.06,-.03,.15,-.06,.18,-.06],[`c`,.15,0,.33,.18,.33,.33],[`c`,0,.09,-3.45,7.74,-3.54,7.83],[`c`,-.12,.12,-.3,.12,-.42,0],[`c`,-.09,-.09,-3.54,-7.74,-3.54,-7.83],[`c`,0,-.09,.12,-.27,.18,-.3],[`z`]],w:7.5,h:8.25},"scripts.stopped":{d:[[`M`,-.27,-4.08],[`c`,.18,-.09,.36,-.09,.54,0],[`c`,.18,.09,.24,.15,.33,.3],[`l`,.06,.15],[`l`,0,1.5],[`l`,0,1.47],[`l`,1.47,0],[`l`,1.5,0],[`l`,.15,.06],[`c`,.15,.09,.21,.15,.3,.33],[`c`,.09,.18,.09,.36,0,.54],[`c`,-.09,.18,-.15,.24,-.33,.33],[`c`,-.12,.06,-.18,.06,-1.62,.06],[`l`,-1.47,0],[`l`,0,1.47],[`l`,0,1.47],[`l`,-.06,.15],[`c`,-.09,.18,-.15,.24,-.33,.33],[`c`,-.18,.09,-.36,.09,-.54,0],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`l`,-.06,-.15],[`l`,0,-1.47],[`l`,0,-1.47],[`l`,-1.47,0],[`c`,-1.44,0,-1.5,0,-1.62,-.06],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`c`,-.09,-.18,-.09,-.36,0,-.54],[`c`,.09,-.18,.15,-.24,.33,-.33],[`l`,.15,-.06],[`l`,1.47,0],[`l`,1.47,0],[`l`,0,-1.47],[`c`,0,-1.44,0,-1.5,.06,-1.62],[`c`,.09,-.18,.15,-.24,.33,-.33],[`z`]],w:8.295,h:8.295},"scripts.upbow":{d:[[`M`,-4.65,-15.54],[`c`,.12,-.09,.36,-.06,.48,.03],[`c`,.03,.03,.09,.09,.12,.15],[`c`,.03,.06,.66,2.13,1.41,4.62],[`c`,1.35,4.41,1.38,4.56,2.01,6.96],[`l`,.63,2.46],[`l`,.63,-2.46],[`c`,.63,-2.4,.66,-2.55,2.01,-6.96],[`c`,.75,-2.49,1.38,-4.56,1.41,-4.62],[`c`,.06,-.15,.18,-.21,.36,-.24],[`c`,.15,0,.3,.06,.39,.18],[`c`,.15,.21,.24,-.18,-2.1,7.56],[`c`,-1.2,3.96,-2.22,7.32,-2.25,7.41],[`c`,0,.12,-.06,.27,-.09,.3],[`c`,-.12,.21,-.6,.21,-.72,0],[`c`,-.03,-.03,-.09,-.18,-.09,-.3],[`c`,-.03,-.09,-1.05,-3.45,-2.25,-7.41],[`c`,-2.34,-7.74,-2.25,-7.35,-2.1,-7.56],[`c`,.03,-.03,.09,-.09,.15,-.12],[`z`]],w:9.73,h:15.608},"scripts.downbow":{d:[[`M`,-5.55,-9.93],[`l`,.09,-.06],[`l`,5.46,0],[`l`,5.46,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,4.77],[`c`,0,5.28,0,4.89,-.18,5.01],[`c`,-.18,.12,-.42,.06,-.54,-.12],[`c`,-.06,-.09,-.06,-.18,-.06,-2.97],[`l`,0,-2.85],[`l`,-4.83,0],[`l`,-4.83,0],[`l`,0,2.85],[`c`,0,2.79,0,2.88,-.06,2.97],[`c`,-.15,.24,-.51,.24,-.66,0],[`c`,-.06,-.09,-.06,-.21,-.06,-4.89],[`l`,0,-4.77],[`z`]],w:11.22,h:9.992},"scripts.turn":{d:[[`M`,-4.77,-3.9],[`c`,.36,-.06,1.05,-.06,1.44,.03],[`c`,.78,.15,1.5,.51,2.34,1.14],[`c`,.6,.45,1.05,.87,2.22,2.01],[`c`,1.11,1.08,1.62,1.5,2.22,1.86],[`c`,.6,.36,1.32,.57,1.92,.57],[`c`,.9,0,1.71,-.57,1.89,-1.35],[`c`,.24,-.93,-.39,-1.89,-1.35,-2.1],[`l`,-.15,-.06],[`l`,-.09,.15],[`c`,-.03,.09,-.15,.24,-.24,.33],[`c`,-.72,.72,-2.04,.54,-2.49,-.36],[`c`,-.48,-.93,.03,-1.86,1.17,-2.19],[`c`,.3,-.09,1.02,-.09,1.35,0],[`c`,.99,.27,1.74,.87,2.25,1.83],[`c`,.69,1.41,.63,3,-.21,4.26],[`c`,-.21,.3,-.69,.81,-.99,1.02],[`c`,-.3,.21,-.84,.45,-1.17,.54],[`c`,-1.23,.36,-2.49,.15,-3.72,-.6],[`c`,-.75,-.48,-1.41,-1.02,-2.85,-2.46],[`c`,-1.11,-1.08,-1.62,-1.5,-2.22,-1.86],[`c`,-.6,-.36,-1.32,-.57,-1.92,-.57],[`c`,-.9,0,-1.71,.57,-1.89,1.35],[`c`,-.24,.93,.39,1.89,1.35,2.1],[`l`,.15,.06],[`l`,.09,-.15],[`c`,.03,-.09,.15,-.24,.24,-.33],[`c`,.72,-.72,2.04,-.54,2.49,.36],[`c`,.48,.93,-.03,1.86,-1.17,2.19],[`c`,-.3,.09,-1.02,.09,-1.35,0],[`c`,-.99,-.27,-1.74,-.87,-2.25,-1.83],[`c`,-.69,-1.41,-.63,-3,.21,-4.26],[`c`,.21,-.3,.69,-.81,.99,-1.02],[`c`,.48,-.33,1.11,-.57,1.74,-.66],[`z`]],w:16.366,h:7.893},"scripts.trill":{d:[[`M`,-.51,-16.02],[`c`,.12,-.09,.21,-.18,.21,-.18],[`l`,-.81,4.02],[`l`,-.81,4.02],[`c`,.03,0,.51,-.27,1.08,-.6],[`c`,.6,-.3,1.14,-.63,1.26,-.66],[`c`,1.14,-.54,2.31,-.6,3.09,-.18],[`c`,.27,.15,.54,.36,.6,.51],[`l`,.06,.12],[`l`,.21,-.21],[`c`,.9,-.81,2.22,-.99,3.12,-.42],[`c`,.6,.42,.9,1.14,.78,2.07],[`c`,-.15,1.29,-1.05,2.31,-1.95,2.25],[`c`,-.48,-.03,-.78,-.3,-.96,-.81],[`c`,-.09,-.27,-.09,-.9,-.03,-1.2],[`c`,.21,-.75,.81,-1.23,1.59,-1.32],[`l`,.24,-.03],[`l`,-.09,-.12],[`c`,-.51,-.66,-1.62,-.63,-2.31,.03],[`c`,-.39,.42,-.3,.09,-1.23,4.77],[`l`,-.81,4.14],[`c`,-.03,0,-.12,-.03,-.21,-.09],[`c`,-.33,-.15,-.54,-.18,-.99,-.18],[`c`,-.42,0,-.66,.03,-1.05,.18],[`c`,-.12,.06,-.21,.09,-.21,.09],[`c`,0,-.03,.36,-1.86,.81,-4.11],[`c`,.9,-4.47,.87,-4.26,.69,-4.53],[`c`,-.21,-.36,-.66,-.51,-1.17,-.36],[`c`,-.15,.06,-2.22,1.14,-2.58,1.38],[`c`,-.12,.09,-.12,.09,-.21,.6],[`l`,-.09,.51],[`l`,.21,.24],[`c`,.63,.75,1.02,1.47,1.2,2.19],[`c`,.06,.27,.06,.36,.06,.81],[`c`,0,.42,0,.54,-.06,.78],[`c`,-.15,.54,-.33,.93,-.63,1.35],[`c`,-.18,.24,-.57,.63,-.81,.78],[`c`,-.24,.15,-.63,.36,-.84,.42],[`c`,-.27,.06,-.66,.06,-.87,.03],[`c`,-.81,-.18,-1.32,-1.05,-1.38,-2.46],[`c`,-.03,-.6,.03,-.99,.33,-2.46],[`c`,.21,-1.08,.24,-1.32,.21,-1.29],[`c`,-1.2,.48,-2.4,.75,-3.21,.72],[`c`,-.69,-.06,-1.17,-.3,-1.41,-.72],[`c`,-.39,-.75,-.12,-1.8,.66,-2.46],[`c`,.24,-.18,.69,-.42,1.02,-.51],[`c`,.69,-.18,1.53,-.15,2.31,.09],[`c`,.3,.09,.75,.3,.99,.45],[`c`,.12,.09,.15,.09,.15,.03],[`c`,.03,-.03,.33,-1.59,.72,-3.45],[`c`,.36,-1.86,.66,-3.42,.69,-3.45],[`c`,0,-.03,.03,-.03,.21,.03],[`c`,.21,.06,.27,.06,.48,.06],[`c`,.42,-.03,.78,-.18,1.26,-.48],[`c`,.15,-.12,.36,-.27,.48,-.39],[`z`],[`m`,-5.73,7.68],[`c`,-.27,-.03,-.96,-.06,-1.2,-.03],[`c`,-.81,.12,-1.35,.57,-1.5,1.2],[`c`,-.18,.66,.12,1.14,.75,1.29],[`c`,.66,.12,1.92,-.12,3.18,-.66],[`l`,.33,-.15],[`l`,.09,-.39],[`c`,.06,-.21,.09,-.42,.09,-.45],[`c`,0,-.03,-.45,-.3,-.75,-.45],[`c`,-.27,-.15,-.66,-.27,-.99,-.36],[`z`],[`m`,4.29,3.63],[`c`,-.24,-.39,-.51,-.75,-.51,-.69],[`c`,-.06,.12,-.39,1.92,-.45,2.28],[`c`,-.09,.54,-.12,1.14,-.06,1.38],[`c`,.06,.42,.21,.6,.51,.57],[`c`,.39,-.06,.75,-.48,.93,-1.14],[`c`,.09,-.33,.09,-1.05,0,-1.38],[`c`,-.09,-.39,-.24,-.69,-.42,-1.02],[`z`]],w:17.963,h:16.49},"scripts.segno":{d:[[`M`,-3.72,-11.22],[`c`,.78,-.09,1.59,.03,2.31,.42],[`c`,1.2,.6,2.01,1.71,2.31,3.09],[`c`,.09,.42,.09,1.2,.03,1.5],[`c`,-.15,.45,-.39,.81,-.66,.93],[`c`,-.33,.18,-.84,.21,-1.23,.15],[`c`,-.81,-.18,-1.32,-.93,-1.26,-1.89],[`c`,.03,-.36,.09,-.57,.24,-.9],[`c`,.15,-.33,.45,-.6,.72,-.75],[`c`,.12,-.06,.18,-.09,.18,-.12],[`c`,0,-.03,-.03,-.15,-.09,-.24],[`c`,-.18,-.45,-.54,-.87,-.96,-1.08],[`c`,-1.11,-.57,-2.34,-.18,-2.88,.9],[`c`,-.24,.51,-.33,1.11,-.24,1.83],[`c`,.27,1.92,1.5,3.54,3.93,5.13],[`c`,.48,.33,1.26,.78,1.29,.78],[`c`,.03,0,1.35,-2.19,2.94,-4.89],[`l`,2.88,-4.89],[`l`,.84,0],[`l`,.87,0],[`l`,-.03,.06],[`c`,-.15,.21,-6.15,10.41,-6.15,10.44],[`c`,0,0,.21,.15,.48,.27],[`c`,2.61,1.47,4.35,3.03,5.13,4.65],[`c`,1.14,2.34,.51,5.07,-1.44,6.39],[`c`,-.66,.42,-1.32,.63,-2.13,.69],[`c`,-2.01,.09,-3.81,-1.41,-4.26,-3.54],[`c`,-.09,-.42,-.09,-1.2,-.03,-1.5],[`c`,.15,-.45,.39,-.81,.66,-.93],[`c`,.33,-.18,.84,-.21,1.23,-.15],[`c`,.81,.18,1.32,.93,1.26,1.89],[`c`,-.03,.36,-.09,.57,-.24,.9],[`c`,-.15,.33,-.45,.6,-.72,.75],[`c`,-.12,.06,-.18,.09,-.18,.12],[`c`,0,.03,.03,.15,.09,.24],[`c`,.18,.45,.54,.87,.96,1.08],[`c`,1.11,.57,2.34,.18,2.88,-.9],[`c`,.24,-.51,.33,-1.11,.24,-1.83],[`c`,-.27,-1.92,-1.5,-3.54,-3.93,-5.13],[`c`,-.48,-.33,-1.26,-.78,-1.29,-.78],[`c`,-.03,0,-1.35,2.19,-2.91,4.89],[`l`,-2.88,4.89],[`l`,-.87,0],[`l`,-.87,0],[`l`,.03,-.06],[`c`,.15,-.21,6.15,-10.41,6.15,-10.44],[`c`,0,0,-.21,-.15,-.48,-.3],[`c`,-2.61,-1.44,-4.35,-3,-5.13,-4.62],[`c`,-.9,-1.89,-.72,-4.02,.48,-5.52],[`c`,.69,-.84,1.68,-1.41,2.73,-1.53],[`z`],[`m`,8.76,9.09],[`c`,.03,-.03,.15,-.03,.27,-.03],[`c`,.33,.03,.57,.18,.72,.48],[`c`,.09,.18,.09,.57,0,.75],[`c`,-.09,.18,-.21,.3,-.36,.39],[`c`,-.15,.06,-.21,.06,-.39,.06],[`c`,-.21,0,-.27,0,-.39,-.06],[`c`,-.3,-.15,-.48,-.45,-.48,-.75],[`c`,0,-.39,.24,-.72,.63,-.84],[`z`],[`m`,-10.53,2.61],[`c`,.03,-.03,.15,-.03,.27,-.03],[`c`,.33,.03,.57,.18,.72,.48],[`c`,.09,.18,.09,.57,0,.75],[`c`,-.09,.18,-.21,.3,-.36,.39],[`c`,-.15,.06,-.21,.06,-.39,.06],[`c`,-.21,0,-.27,0,-.39,-.06],[`c`,-.3,-.15,-.48,-.45,-.48,-.75],[`c`,0,-.39,.24,-.72,.63,-.84],[`z`]],w:15,h:22.504},"scripts.coda":{d:[[`M`,-.21,-10.47],[`c`,.18,-.12,.42,-.06,.54,.12],[`c`,.06,.09,.06,.18,.06,1.5],[`l`,0,1.38],[`l`,.18,0],[`c`,.39,.06,.96,.24,1.38,.48],[`c`,1.68,.93,2.82,3.24,3.03,6.12],[`c`,.03,.24,.03,.45,.03,.45],[`c`,0,.03,.6,.03,1.35,.03],[`c`,1.5,0,1.47,0,1.59,.18],[`c`,.09,.12,.09,.3,0,.42],[`c`,-.12,.18,-.09,.18,-1.59,.18],[`c`,-.75,0,-1.35,0,-1.35,.03],[`c`,0,0,0,.21,-.03,.42],[`c`,-.24,3.15,-1.53,5.58,-3.45,6.36],[`c`,-.27,.12,-.72,.24,-.96,.27],[`l`,-.18,0],[`l`,0,1.38],[`c`,0,1.32,0,1.41,-.06,1.5],[`c`,-.15,.24,-.51,.24,-.66,0],[`c`,-.06,-.09,-.06,-.18,-.06,-1.5],[`l`,0,-1.38],[`l`,-.18,0],[`c`,-.39,-.06,-.96,-.24,-1.38,-.48],[`c`,-1.68,-.93,-2.82,-3.24,-3.03,-6.15],[`c`,-.03,-.21,-.03,-.42,-.03,-.42],[`c`,0,-.03,-.6,-.03,-1.35,-.03],[`c`,-1.5,0,-1.47,0,-1.59,-.18],[`c`,-.09,-.12,-.09,-.3,0,-.42],[`c`,.12,-.18,.09,-.18,1.59,-.18],[`c`,.75,0,1.35,0,1.35,-.03],[`c`,0,0,0,-.21,.03,-.45],[`c`,.24,-3.12,1.53,-5.55,3.45,-6.33],[`c`,.27,-.12,.72,-.24,.96,-.27],[`l`,.18,0],[`l`,0,-1.38],[`c`,0,-1.53,0,-1.5,.18,-1.62],[`z`],[`m`,-.18,6.93],[`c`,0,-2.97,0,-3.15,-.06,-3.15],[`c`,-.09,0,-.51,.15,-.66,.21],[`c`,-.87,.51,-1.38,1.62,-1.56,3.51],[`c`,-.06,.54,-.12,1.59,-.12,2.16],[`l`,0,.42],[`l`,1.2,0],[`l`,1.2,0],[`l`,0,-3.15],[`z`],[`m`,1.17,-3.06],[`c`,-.09,-.03,-.21,-.06,-.27,-.09],[`l`,-.12,0],[`l`,0,3.15],[`l`,0,3.15],[`l`,1.2,0],[`l`,1.2,0],[`l`,0,-.81],[`c`,-.06,-2.4,-.33,-3.69,-.93,-4.59],[`c`,-.27,-.39,-.66,-.69,-1.08,-.81],[`z`],[`m`,-1.17,10.14],[`l`,0,-3.15],[`l`,-1.2,0],[`l`,-1.2,0],[`l`,0,.81],[`c`,.03,.96,.06,1.47,.15,2.13],[`c`,.24,2.04,.96,3.12,2.13,3.36],[`l`,.12,0],[`l`,0,-3.15],[`z`],[`m`,3.18,-2.34],[`l`,0,-.81],[`l`,-1.2,0],[`l`,-1.2,0],[`l`,0,3.15],[`l`,0,3.15],[`l`,.12,0],[`c`,1.17,-.24,1.89,-1.32,2.13,-3.36],[`c`,.09,-.66,.12,-1.17,.15,-2.13],[`z`]],w:16.035,h:21.062},"scripts.comma":{d:[[`M`,1.14,-4.62],[`c`,.3,-.12,.69,-.03,.93,.15],[`c`,.12,.12,.36,.45,.51,.78],[`c`,.9,1.77,.54,4.05,-1.08,6.75],[`c`,-.36,.63,-.87,1.38,-.96,1.44],[`c`,-.18,.12,-.42,.06,-.54,-.12],[`c`,-.09,-.18,-.09,-.3,.12,-.6],[`c`,.96,-1.44,1.44,-2.97,1.38,-4.35],[`c`,-.06,-.93,-.3,-1.68,-.78,-2.46],[`c`,-.27,-.39,-.33,-.63,-.24,-.96],[`c`,.09,-.27,.36,-.54,.66,-.63],[`z`]],w:3.042,h:9.237},"scripts.roll":{d:[[`M`,1.95,-6],[`c`,.21,-.09,.36,-.09,.57,0],[`c`,.39,.15,.63,.39,1.47,1.35],[`c`,.66,.75,.78,.87,1.08,1.05],[`c`,.75,.45,1.65,.42,2.4,-.06],[`c`,.12,-.09,.27,-.27,.54,-.6],[`c`,.42,-.54,.51,-.63,.69,-.63],[`c`,.09,0,.3,.12,.36,.21],[`c`,.09,.12,.12,.3,.03,.42],[`c`,-.06,.12,-3.15,3.9,-3.3,4.08],[`c`,-.06,.06,-.18,.12,-.27,.18],[`c`,-.27,.12,-.6,.06,-.99,-.27],[`c`,-.27,-.21,-.42,-.39,-1.08,-1.14],[`c`,-.63,-.72,-.81,-.9,-1.17,-1.08],[`c`,-.36,-.18,-.57,-.21,-.99,-.21],[`c`,-.39,0,-.63,.03,-.93,.18],[`c`,-.36,.15,-.51,.27,-.9,.81],[`c`,-.24,.27,-.45,.51,-.48,.54],[`c`,-.12,.09,-.27,.06,-.39,0],[`c`,-.24,-.15,-.33,-.39,-.21,-.6],[`c`,.09,-.12,3.18,-3.87,3.33,-4.02],[`c`,.06,-.06,.18,-.15,.24,-.21],[`z`]],w:10.817,h:6.125},"scripts.prall":{d:[[`M`,-4.38,-3.69],[`c`,.06,-.03,.18,-.06,.24,-.06],[`c`,.3,0,.27,-.03,1.89,1.95],[`l`,1.53,1.83],[`c`,.03,0,.57,-.84,1.23,-1.83],[`c`,1.14,-1.68,1.23,-1.83,1.35,-1.89],[`c`,.06,-.03,.18,-.06,.24,-.06],[`c`,.3,0,.27,-.03,1.89,1.95],[`l`,1.53,1.83],[`l`,.48,-.69],[`c`,.51,-.78,.54,-.84,.69,-.9],[`c`,.42,-.18,.87,.15,.81,.6],[`c`,-.03,.12,-.3,.51,-1.5,2.37],[`c`,-1.38,2.07,-1.5,2.22,-1.62,2.28],[`c`,-.06,.03,-.18,.06,-.24,.06],[`c`,-.3,0,-.27,.03,-1.89,-1.95],[`l`,-1.53,-1.83],[`c`,-.03,0,-.57,.84,-1.23,1.83],[`c`,-1.14,1.68,-1.23,1.83,-1.35,1.89],[`c`,-.06,.03,-.18,.06,-.24,.06],[`c`,-.3,0,-.27,.03,-1.89,-1.95],[`l`,-1.53,-1.83],[`l`,-.48,.69],[`c`,-.51,.78,-.54,.84,-.69,.9],[`c`,-.42,.18,-.87,-.15,-.81,-.6],[`c`,.03,-.12,.3,-.51,1.5,-2.37],[`c`,1.38,-2.07,1.5,-2.22,1.62,-2.28],[`z`]],w:15.011,h:7.5},"scripts.arpeggio":{d:[[`M`,1.5,0],[`c`,1.5,2,1.5,3,1.5,3],[`s`,0,1,-2,1.5],[`s`,-.5,3,1,5.5],[`l`,1.5,0],[`s`,-1.75,-2,-1.9,-3.25],[`s`,2.15,-.6,2.95,-1.6],[`s`,.45,-1,.5,-1.25],[`s`,0,-1,-2,-3.9],[`l`,-1.5,0],[`z`]],w:5,h:10},"scripts.mordent":{d:[[`M`,-.21,-4.95],[`c`,.27,-.15,.63,0,.75,.27],[`c`,.06,.12,.06,.24,.06,1.44],[`l`,0,1.29],[`l`,.57,-.84],[`c`,.51,-.75,.57,-.84,.69,-.9],[`c`,.06,-.03,.18,-.06,.24,-.06],[`c`,.3,0,.27,-.03,1.89,1.95],[`l`,1.53,1.83],[`l`,.48,-.69],[`c`,.51,-.78,.54,-.84,.69,-.9],[`c`,.42,-.18,.87,.15,.81,.6],[`c`,-.03,.12,-.3,.51,-1.5,2.37],[`c`,-1.38,2.07,-1.5,2.22,-1.62,2.28],[`c`,-.06,.03,-.18,.06,-.24,.06],[`c`,-.3,0,-.27,.03,-1.83,-1.89],[`c`,-.81,-.99,-1.5,-1.8,-1.53,-1.86],[`c`,-.06,-.03,-.06,-.03,-.12,.03],[`c`,-.06,.06,-.06,.15,-.06,2.28],[`c`,0,1.95,0,2.25,-.06,2.34],[`c`,-.18,.45,-.81,.48,-1.05,.03],[`c`,-.03,-.06,-.06,-.24,-.06,-1.41],[`l`,0,-1.35],[`l`,-.57,.84],[`c`,-.54,.78,-.6,.87,-.72,.93],[`c`,-.06,.03,-.18,.06,-.24,.06],[`c`,-.3,0,-.27,.03,-1.89,-1.95],[`l`,-1.53,-1.83],[`l`,-.48,.69],[`c`,-.51,.78,-.54,.84,-.69,.9],[`c`,-.42,.18,-.87,-.15,-.81,-.6],[`c`,.03,-.12,.3,-.51,1.5,-2.37],[`c`,1.38,-2.07,1.5,-2.22,1.62,-2.28],[`c`,.06,-.03,.18,-.06,.24,-.06],[`c`,.3,0,.27,-.03,1.89,1.95],[`l`,1.53,1.83],[`c`,.03,0,.06,-.06,.09,-.09],[`c`,.06,-.12,.06,-.15,.06,-2.28],[`c`,0,-1.92,0,-2.22,.06,-2.31],[`c`,.06,-.15,.15,-.24,.3,-.3],[`z`]],w:15.011,h:10.012},"flags.u8th":{d:[[`M`,-.42,3.75],[`l`,0,-3.75],[`l`,.21,0],[`l`,.21,0],[`l`,0,.18],[`c`,0,.3,.06,.84,.12,1.23],[`c`,.24,1.53,.9,3.12,2.13,5.16],[`l`,.99,1.59],[`c`,.87,1.44,1.38,2.34,1.77,3.09],[`c`,.81,1.68,1.2,3.06,1.26,4.53],[`c`,.03,1.53,-.21,3.27,-.75,5.01],[`c`,-.21,.69,-.51,1.5,-.6,1.59],[`c`,-.09,.12,-.27,.21,-.42,.21],[`c`,-.15,0,-.42,-.12,-.51,-.21],[`c`,-.15,-.18,-.18,-.42,-.09,-.66],[`c`,.15,-.33,.45,-1.2,.57,-1.62],[`c`,.42,-1.38,.6,-2.58,.6,-3.9],[`c`,0,-.66,0,-.81,-.06,-1.11],[`c`,-.39,-2.07,-1.8,-4.26,-4.59,-7.14],[`l`,-.42,-.45],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-3.75],[`z`]],w:6.692,h:22.59},"flags.u16th":{d:[[`M`,-.42,7.5],[`l`,0,-7.5],[`l`,.21,0],[`l`,.21,0],[`l`,0,.39],[`c`,.06,1.08,.39,2.19,.99,3.39],[`c`,.45,.9,.87,1.59,1.95,3.12],[`c`,1.29,1.86,1.77,2.64,2.22,3.57],[`c`,.45,.93,.72,1.8,.87,2.64],[`c`,.06,.51,.06,1.5,0,1.92],[`c`,-.12,.6,-.3,1.2,-.54,1.71],[`l`,-.09,.24],[`l`,.18,.45],[`c`,.51,1.2,.72,2.22,.69,3.42],[`c`,-.06,1.53,-.39,3.03,-.99,4.53],[`c`,-.3,.75,-.36,.81,-.57,.9],[`c`,-.15,.09,-.33,.06,-.48,0],[`c`,-.18,-.09,-.27,-.18,-.33,-.33],[`c`,-.09,-.18,-.06,-.3,.12,-.75],[`c`,.66,-1.41,1.02,-2.88,1.08,-4.32],[`c`,0,-.6,-.03,-1.05,-.18,-1.59],[`c`,-.3,-1.2,-.99,-2.4,-2.25,-3.87],[`c`,-.42,-.48,-1.53,-1.62,-2.19,-2.22],[`l`,-.45,-.42],[`l`,-.03,1.11],[`l`,0,1.11],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-7.5],[`z`],[`m`,1.65,.09],[`c`,-.3,-.3,-.69,-.72,-.9,-.87],[`l`,-.33,-.33],[`l`,0,.15],[`c`,0,.3,.06,.81,.15,1.26],[`c`,.27,1.29,.87,2.61,2.04,4.29],[`c`,.15,.24,.6,.87,.96,1.38],[`l`,1.08,1.53],[`l`,.42,.63],[`c`,.03,0,.12,-.36,.21,-.72],[`c`,.06,-.33,.06,-1.2,0,-1.62],[`c`,-.33,-1.71,-1.44,-3.48,-3.63,-5.7],[`z`]],w:6.693,h:26.337},"flags.u32nd":{d:[[`M`,-.42,11.25],[`l`,0,-11.25],[`l`,.21,0],[`l`,.21,0],[`l`,0,.36],[`c`,.09,1.68,.69,3.27,2.07,5.46],[`l`,.87,1.35],[`c`,1.02,1.62,1.47,2.37,1.86,3.18],[`c`,.48,1.02,.78,1.92,.93,2.88],[`c`,.06,.48,.06,1.5,0,1.89],[`c`,-.09,.42,-.21,.87,-.36,1.26],[`l`,-.12,.3],[`l`,.15,.39],[`c`,.69,1.56,.84,2.88,.54,4.38],[`c`,-.09,.45,-.27,1.08,-.45,1.47],[`l`,-.12,.24],[`l`,.18,.36],[`c`,.33,.72,.57,1.56,.69,2.34],[`c`,.12,1.02,-.06,2.52,-.42,3.84],[`c`,-.27,.93,-.75,2.13,-.93,2.31],[`c`,-.18,.15,-.45,.18,-.66,.09],[`c`,-.18,-.09,-.27,-.18,-.33,-.33],[`c`,-.09,-.18,-.06,-.3,.06,-.6],[`c`,.21,-.36,.42,-.9,.57,-1.38],[`c`,.51,-1.41,.69,-3.06,.48,-4.08],[`c`,-.15,-.81,-.57,-1.68,-1.2,-2.55],[`c`,-.72,-.99,-1.83,-2.13,-3.3,-3.33],[`l`,-.48,-.42],[`l`,-.03,1.53],[`l`,0,1.56],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-11.25],[`z`],[`m`,1.26,-3.96],[`c`,-.27,-.3,-.54,-.6,-.66,-.72],[`l`,-.18,-.21],[`l`,0,.42],[`c`,.06,.87,.24,1.74,.66,2.67],[`c`,.36,.87,.96,1.86,1.92,3.18],[`c`,.21,.33,.63,.87,.87,1.23],[`c`,.27,.39,.6,.84,.75,1.08],[`l`,.27,.39],[`l`,.03,-.12],[`c`,.12,-.45,.15,-1.05,.09,-1.59],[`c`,-.27,-1.86,-1.38,-3.78,-3.75,-6.33],[`z`],[`m`,-.27,6.09],[`c`,-.27,-.21,-.48,-.42,-.51,-.45],[`c`,-.06,-.03,-.06,-.03,-.06,.21],[`c`,0,.9,.3,2.04,.81,3.09],[`c`,.48,1.02,.96,1.77,2.37,3.63],[`c`,.6,.78,1.05,1.44,1.29,1.77],[`c`,.06,.12,.15,.21,.15,.18],[`c`,.03,-.03,.18,-.57,.24,-.87],[`c`,.06,-.45,.06,-1.32,-.03,-1.74],[`c`,-.09,-.48,-.24,-.9,-.51,-1.44],[`c`,-.66,-1.35,-1.83,-2.7,-3.75,-4.38],[`z`]],w:6.697,h:32.145},"flags.u64th":{d:[[`M`,-.42,15],[`l`,0,-15],[`l`,.21,0],[`l`,.21,0],[`l`,0,.36],[`c`,.06,1.2,.39,2.37,1.02,3.66],[`c`,.39,.81,.84,1.56,1.8,3.09],[`c`,.81,1.26,1.05,1.68,1.35,2.22],[`c`,.87,1.5,1.35,2.79,1.56,4.08],[`c`,.06,.54,.06,1.56,-.03,2.04],[`c`,-.09,.48,-.21,.99,-.36,1.35],[`l`,-.12,.27],[`l`,.12,.27],[`c`,.09,.15,.21,.45,.27,.66],[`c`,.69,1.89,.63,3.66,-.18,5.46],[`l`,-.18,.39],[`l`,.15,.33],[`c`,.3,.66,.51,1.44,.63,2.1],[`c`,.06,.48,.06,1.35,0,1.71],[`c`,-.15,.57,-.42,1.2,-.78,1.68],[`l`,-.21,.27],[`l`,.18,.33],[`c`,.57,1.05,.93,2.13,1.02,3.18],[`c`,.06,.72,0,1.83,-.21,2.79],[`c`,-.18,1.02,-.63,2.34,-1.02,3.09],[`c`,-.15,.33,-.48,.45,-.78,.3],[`c`,-.18,-.09,-.27,-.18,-.33,-.33],[`c`,-.09,-.18,-.06,-.3,.03,-.54],[`c`,.75,-1.5,1.23,-3.45,1.17,-4.89],[`c`,-.06,-1.02,-.42,-2.01,-1.17,-3.15],[`c`,-.48,-.72,-1.02,-1.35,-1.89,-2.22],[`c`,-.57,-.57,-1.56,-1.5,-1.92,-1.77],[`l`,-.12,-.09],[`l`,0,1.68],[`l`,0,1.68],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-15],[`z`],[`m`,.93,-8.07],[`c`,-.27,-.3,-.48,-.54,-.51,-.54],[`c`,0,0,0,.69,.03,1.02],[`c`,.15,1.47,.75,2.94,2.04,4.83],[`l`,1.08,1.53],[`c`,.39,.57,.84,1.2,.99,1.44],[`c`,.15,.24,.3,.45,.3,.45],[`c`,0,0,.03,-.09,.06,-.21],[`c`,.36,-1.59,-.15,-3.33,-1.47,-5.4],[`c`,-.63,-.93,-1.35,-1.83,-2.52,-3.12],[`z`],[`m`,.06,6.72],[`c`,-.24,-.21,-.48,-.42,-.51,-.45],[`l`,-.06,-.06],[`l`,0,.33],[`c`,0,1.2,.3,2.34,.93,3.6],[`c`,.45,.9,.96,1.68,2.25,3.51],[`c`,.39,.54,.84,1.17,1.02,1.44],[`c`,.21,.33,.33,.51,.33,.48],[`c`,.06,-.09,.21,-.63,.3,-.99],[`c`,.06,-.33,.06,-.45,.06,-.96],[`c`,0,-.6,-.03,-.84,-.18,-1.35],[`c`,-.3,-1.08,-1.02,-2.28,-2.13,-3.57],[`c`,-.39,-.45,-1.44,-1.47,-2.01,-1.98],[`z`],[`m`,0,6.72],[`c`,-.24,-.21,-.48,-.39,-.51,-.42],[`l`,-.06,-.06],[`l`,0,.33],[`c`,0,1.41,.45,2.82,1.38,4.35],[`c`,.42,.72,.72,1.14,1.86,2.73],[`c`,.36,.45,.75,.99,.87,1.2],[`c`,.15,.21,.3,.36,.3,.36],[`c`,.06,0,.3,-.48,.39,-.75],[`c`,.09,-.36,.12,-.63,.12,-1.05],[`c`,-.06,-1.05,-.45,-2.04,-1.2,-3.18],[`c`,-.57,-.87,-1.11,-1.53,-2.07,-2.49],[`c`,-.36,-.33,-.84,-.78,-1.08,-1.02],[`z`]],w:6.682,h:39.694},"flags.d8th":{d:[[`M`,5.67,-21.63],[`c`,.24,-.12,.54,-.06,.69,.15],[`c`,.06,.06,.21,.36,.39,.66],[`c`,.84,1.77,1.26,3.36,1.32,5.1],[`c`,.03,1.29,-.21,2.37,-.81,3.63],[`c`,-.6,1.23,-1.26,2.13,-3.21,4.38],[`c`,-1.35,1.53,-1.86,2.19,-2.4,2.97],[`c`,-.63,.93,-1.11,1.92,-1.38,2.79],[`c`,-.15,.54,-.27,1.35,-.27,1.8],[`l`,0,.15],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-3.75],[`l`,0,-3.75],[`l`,.21,0],[`l`,.21,0],[`l`,.48,-.3],[`c`,1.83,-1.11,3.12,-2.1,4.17,-3.12],[`c`,.78,-.81,1.32,-1.53,1.71,-2.31],[`c`,.45,-.93,.6,-1.74,.51,-2.88],[`c`,-.12,-1.56,-.63,-3.18,-1.47,-4.68],[`c`,-.12,-.21,-.15,-.33,-.06,-.51],[`c`,.06,-.15,.15,-.24,.33,-.33],[`z`]],w:8.492,h:21.691},"flags.ugrace":{d:[[`M`,6.03,6.93],[`c`,.15,-.09,.33,-.06,.51,0],[`c`,.15,.09,.21,.15,.3,.33],[`c`,.09,.18,.06,.39,-.03,.54],[`c`,-.06,.15,-10.89,8.88,-11.07,8.97],[`c`,-.15,.09,-.33,.06,-.48,0],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`c`,-.09,-.18,-.06,-.39,.03,-.54],[`c`,.06,-.15,10.89,-8.88,11.07,-8.97],[`z`]],w:12.019,h:9.954},"flags.dgrace":{d:[[`M`,-6.06,-15.93],[`c`,.18,-.09,.33,-.12,.48,-.06],[`c`,.18,.09,14.01,8.04,14.1,8.1],[`c`,.12,.12,.18,.33,.18,.51],[`c`,-.03,.21,-.15,.39,-.36,.48],[`c`,-.18,.09,-.33,.12,-.48,.06],[`c`,-.18,-.09,-14.01,-8.04,-14.1,-8.1],[`c`,-.12,-.12,-.18,-.33,-.18,-.51],[`c`,.03,-.21,.15,-.39,.36,-.48],[`z`]],w:15.12,h:9.212},"flags.d16th":{d:[[`M`,6.84,-22.53],[`c`,.27,-.12,.57,-.06,.72,.15],[`c`,.15,.15,.33,.87,.45,1.56],[`c`,.06,.33,.06,1.35,0,1.65],[`c`,-.06,.33,-.15,.78,-.27,1.11],[`c`,-.12,.33,-.45,.96,-.66,1.32],[`l`,-.18,.27],[`l`,.09,.18],[`c`,.48,1.02,.72,2.25,.69,3.3],[`c`,-.06,1.23,-.42,2.28,-1.26,3.45],[`c`,-.57,.87,-.99,1.32,-3,3.39],[`c`,-1.56,1.56,-2.22,2.4,-2.76,3.45],[`c`,-.42,.84,-.66,1.8,-.66,2.55],[`l`,0,.15],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-7.5],[`l`,0,-7.5],[`l`,.21,0],[`l`,.21,0],[`l`,0,1.14],[`l`,0,1.11],[`l`,.27,-.15],[`c`,1.11,-.57,1.77,-.99,2.52,-1.47],[`c`,2.37,-1.56,3.69,-3.15,4.05,-4.83],[`c`,.03,-.18,.03,-.39,.03,-.78],[`c`,0,-.6,-.03,-.93,-.24,-1.5],[`c`,-.06,-.18,-.12,-.39,-.15,-.45],[`c`,-.03,-.24,.12,-.48,.36,-.6],[`z`],[`m`,-.63,7.5],[`c`,-.06,-.18,-.15,-.36,-.15,-.36],[`c`,-.03,0,-.03,.03,-.06,.06],[`c`,-.06,.12,-.96,1.02,-1.95,1.98],[`c`,-.63,.57,-1.26,1.17,-1.44,1.35],[`c`,-1.53,1.62,-2.28,2.85,-2.55,4.32],[`c`,-.03,.18,-.03,.54,-.06,.99],[`l`,0,.69],[`l`,.18,-.09],[`c`,.93,-.54,2.1,-1.29,2.82,-1.83],[`c`,.69,-.51,1.02,-.81,1.53,-1.29],[`c`,1.86,-1.89,2.37,-3.66,1.68,-5.82],[`z`]],w:8.475,h:22.591},"flags.d32nd":{d:[[`M`,6.84,-29.13],[`c`,.27,-.12,.57,-.06,.72,.15],[`c`,.12,.12,.27,.63,.36,1.11],[`c`,.33,1.59,.06,3.06,-.81,4.47],[`l`,-.18,.27],[`l`,.09,.15],[`c`,.12,.24,.33,.69,.45,1.05],[`c`,.63,1.83,.45,3.57,-.57,5.22],[`l`,-.18,.3],[`l`,.15,.27],[`c`,.42,.87,.6,1.71,.57,2.61],[`c`,-.06,1.29,-.48,2.46,-1.35,3.78],[`c`,-.54,.81,-.93,1.29,-2.46,3],[`c`,-.51,.54,-1.05,1.17,-1.26,1.41],[`c`,-1.56,1.86,-2.25,3.36,-2.37,5.01],[`l`,0,.33],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-11.25],[`l`,0,-11.25],[`l`,.21,0],[`l`,.21,0],[`l`,0,1.35],[`l`,.03,1.35],[`l`,.78,-.39],[`c`,1.38,-.69,2.34,-1.26,3.24,-1.92],[`c`,1.38,-1.02,2.28,-2.13,2.64,-3.21],[`c`,.15,-.48,.18,-.72,.18,-1.29],[`c`,0,-.57,-.06,-.9,-.24,-1.47],[`c`,-.06,-.18,-.12,-.39,-.15,-.45],[`c`,-.03,-.24,.12,-.48,.36,-.6],[`z`],[`m`,-.63,7.2],[`c`,-.09,-.18,-.12,-.21,-.12,-.15],[`c`,-.03,.09,-1.02,1.08,-2.04,2.04],[`c`,-1.17,1.08,-1.65,1.56,-2.07,2.04],[`c`,-.84,.96,-1.38,1.86,-1.68,2.76],[`c`,-.21,.57,-.27,.99,-.3,1.65],[`l`,0,.54],[`l`,.66,-.33],[`c`,3.57,-1.86,5.49,-3.69,5.94,-5.7],[`c`,.06,-.39,.06,-1.2,-.03,-1.65],[`c`,-.06,-.39,-.24,-.9,-.36,-1.2],[`z`],[`m`,-.06,7.2],[`c`,-.06,-.15,-.12,-.33,-.15,-.45],[`l`,-.06,-.18],[`l`,-.18,.21],[`l`,-1.83,1.83],[`c`,-.87,.9,-1.77,1.8,-1.95,2.01],[`c`,-1.08,1.29,-1.62,2.31,-1.89,3.51],[`c`,-.06,.3,-.06,.51,-.09,.93],[`l`,0,.57],[`l`,.09,-.06],[`c`,.75,-.45,1.89,-1.26,2.52,-1.74],[`c`,.81,-.66,1.74,-1.53,2.22,-2.16],[`c`,1.26,-1.53,1.68,-3.06,1.32,-4.47],[`z`]],w:8.385,h:29.191},"flags.d64th":{d:[[`M`,7.08,-32.88],[`c`,.3,-.12,.66,-.03,.78,.24],[`c`,.18,.33,.27,2.1,.15,2.64],[`c`,-.09,.39,-.21,.78,-.39,1.08],[`l`,-.15,.3],[`l`,.09,.27],[`c`,.03,.12,.09,.45,.12,.69],[`c`,.27,1.44,.18,2.55,-.3,3.6],[`l`,-.12,.33],[`l`,.06,.42],[`c`,.27,1.35,.33,2.82,.21,3.63],[`c`,-.12,.6,-.3,1.23,-.57,1.8],[`l`,-.15,.27],[`l`,.03,.42],[`c`,.06,1.02,.06,2.7,.03,3.06],[`c`,-.15,1.47,-.66,2.76,-1.74,4.41],[`c`,-.45,.69,-.75,1.11,-1.74,2.37],[`c`,-1.05,1.38,-1.5,1.98,-1.95,2.73],[`c`,-.93,1.5,-1.38,2.82,-1.44,4.2],[`l`,0,.42],[`l`,-.21,0],[`l`,-.21,0],[`l`,0,-15],[`l`,0,-15],[`l`,.21,0],[`l`,.21,0],[`l`,0,1.86],[`l`,0,1.89],[`c`,0,0,.21,-.03,.45,-.09],[`c`,2.22,-.39,4.08,-1.11,5.19,-2.01],[`c`,.63,-.54,1.02,-1.14,1.2,-1.8],[`c`,.06,-.3,.06,-1.14,-.03,-1.65],[`c`,-.03,-.18,-.06,-.39,-.09,-.48],[`c`,-.03,-.24,.12,-.48,.36,-.6],[`z`],[`m`,-.45,6.15],[`c`,-.03,-.18,-.06,-.42,-.06,-.54],[`l`,-.03,-.18],[`l`,-.33,.3],[`c`,-.42,.36,-.87,.72,-1.68,1.29],[`c`,-1.98,1.38,-2.25,1.59,-2.85,2.16],[`c`,-.75,.69,-1.23,1.44,-1.47,2.19],[`c`,-.15,.45,-.18,.63,-.21,1.35],[`l`,0,.66],[`l`,.39,-.18],[`c`,1.83,-.9,3.45,-1.95,4.47,-2.91],[`c`,.93,-.9,1.53,-1.83,1.74,-2.82],[`c`,.06,-.33,.06,-.87,.03,-1.32],[`z`],[`m`,-.27,4.86],[`c`,-.03,-.21,-.06,-.36,-.06,-.36],[`c`,0,-.03,-.12,.09,-.24,.24],[`c`,-.39,.48,-.99,1.08,-2.16,2.19],[`c`,-1.47,1.38,-1.92,1.83,-2.46,2.49],[`c`,-.66,.87,-1.08,1.74,-1.29,2.58],[`c`,-.09,.42,-.15,.87,-.15,1.44],[`l`,0,.54],[`l`,.48,-.33],[`c`,1.5,-1.02,2.58,-1.89,3.51,-2.82],[`c`,1.47,-1.47,2.25,-2.85,2.4,-4.26],[`c`,.03,-.39,.03,-1.17,-.03,-1.71],[`z`],[`m`,-.66,7.68],[`c`,.03,-.15,.03,-.6,.03,-.99],[`l`,0,-.72],[`l`,-.27,.33],[`l`,-1.74,1.98],[`c`,-1.77,1.92,-2.43,2.76,-2.97,3.9],[`c`,-.51,1.02,-.72,1.77,-.75,2.91],[`c`,0,.63,0,.63,.06,.6],[`c`,.03,-.03,.3,-.27,.63,-.54],[`c`,.66,-.6,1.86,-1.8,2.31,-2.31],[`c`,1.65,-1.89,2.52,-3.54,2.7,-5.16],[`z`]],w:8.485,h:32.932},"clefs.C":{d:[[`M`,.06,-14.94],[`l`,.09,-.06],[`l`,1.92,0],[`l`,1.92,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,14.85],[`l`,0,14.82],[`l`,-.06,.09],[`l`,-.09,.06],[`l`,-1.92,0],[`l`,-1.92,0],[`l`,-.09,-.06],[`l`,-.06,-.09],[`l`,0,-14.82],[`l`,0,-14.85],[`z`],[`m`,5.37,0],[`c`,.09,-.06,.09,-.06,.57,-.06],[`c`,.45,0,.45,0,.54,.06],[`l`,.06,.09],[`l`,0,7.14],[`l`,0,7.11],[`l`,.09,-.06],[`c`,.18,-.18,.72,-.84,.96,-1.2],[`c`,.3,-.45,.66,-1.17,.84,-1.65],[`c`,.36,-.9,.57,-1.83,.6,-2.79],[`c`,.03,-.48,.03,-.54,.09,-.63],[`c`,.12,-.18,.36,-.21,.54,-.12],[`c`,.18,.09,.21,.15,.24,.66],[`c`,.06,.87,.21,1.56,.57,2.22],[`c`,.51,1.02,1.26,1.68,2.22,1.92],[`c`,.21,.06,.33,.06,.78,.06],[`c`,.45,0,.57,0,.84,-.06],[`c`,.45,-.12,.81,-.33,1.08,-.6],[`c`,.57,-.57,.87,-1.41,.99,-2.88],[`c`,.06,-.54,.06,-3,0,-3.57],[`c`,-.21,-2.58,-.84,-3.87,-2.16,-4.5],[`c`,-.48,-.21,-1.17,-.36,-1.77,-.36],[`c`,-.69,0,-1.29,.27,-1.5,.72],[`c`,-.06,.15,-.06,.21,-.06,.42],[`c`,0,.24,0,.3,.06,.45],[`c`,.12,.24,.24,.39,.63,.66],[`c`,.42,.3,.57,.48,.69,.72],[`c`,.06,.15,.06,.21,.06,.48],[`c`,0,.39,-.03,.63,-.21,.96],[`c`,-.3,.6,-.87,1.08,-1.5,1.26],[`c`,-.27,.06,-.87,.06,-1.14,0],[`c`,-.78,-.24,-1.44,-.87,-1.65,-1.68],[`c`,-.12,-.42,-.09,-1.17,.09,-1.71],[`c`,.51,-1.65,1.98,-2.82,3.81,-3.09],[`c`,.84,-.09,2.46,.03,3.51,.27],[`c`,2.22,.57,3.69,1.8,4.44,3.75],[`c`,.36,.93,.57,2.13,.57,3.36],[`c`,0,1.44,-.48,2.73,-1.38,3.81],[`c`,-1.26,1.5,-3.27,2.43,-5.28,2.43],[`c`,-.48,0,-.51,0,-.75,-.09],[`c`,-.15,-.03,-.48,-.21,-.78,-.36],[`c`,-.69,-.36,-.87,-.42,-1.26,-.42],[`c`,-.27,0,-.3,0,-.51,.09],[`c`,-.57,.3,-.81,.9,-.81,2.1],[`c`,0,1.23,.24,1.83,.81,2.13],[`c`,.21,.09,.24,.09,.51,.09],[`c`,.39,0,.57,-.06,1.26,-.42],[`c`,.3,-.15,.63,-.33,.78,-.36],[`c`,.24,-.09,.27,-.09,.75,-.09],[`c`,2.01,0,4.02,.93,5.28,2.4],[`c`,.9,1.11,1.38,2.4,1.38,3.84],[`c`,0,1.5,-.3,2.88,-.84,3.96],[`c`,-.78,1.59,-2.19,2.64,-4.17,3.15],[`c`,-1.05,.24,-2.67,.36,-3.51,.27],[`c`,-1.83,-.27,-3.3,-1.44,-3.81,-3.09],[`c`,-.18,-.54,-.21,-1.29,-.09,-1.74],[`c`,.15,-.6,.63,-1.2,1.23,-1.47],[`c`,.36,-.18,.57,-.21,.99,-.21],[`c`,.42,0,.63,.03,1.02,.21],[`c`,.42,.21,.84,.63,1.05,1.05],[`c`,.18,.36,.21,.6,.21,.96],[`c`,0,.3,0,.36,-.06,.51],[`c`,-.12,.24,-.27,.42,-.69,.72],[`c`,-.57,.42,-.69,.63,-.69,1.08],[`c`,0,.24,0,.3,.06,.45],[`c`,.12,.21,.3,.39,.57,.54],[`c`,.42,.18,.87,.21,1.53,.15],[`c`,1.08,-.15,1.8,-.57,2.34,-1.32],[`c`,.54,-.75,.84,-1.83,.99,-3.51],[`c`,.06,-.57,.06,-3.03,0,-3.57],[`c`,-.12,-1.47,-.42,-2.31,-.99,-2.88],[`c`,-.27,-.27,-.63,-.48,-1.08,-.6],[`c`,-.27,-.06,-.39,-.06,-.84,-.06],[`c`,-.45,0,-.57,0,-.78,.06],[`c`,-1.14,.27,-2.01,1.17,-2.46,2.49],[`c`,-.21,.57,-.3,.99,-.33,1.65],[`c`,-.03,.51,-.06,.57,-.24,.66],[`c`,-.12,.06,-.27,.06,-.39,0],[`c`,-.21,-.09,-.21,-.15,-.24,-.75],[`c`,-.09,-1.92,-.78,-3.72,-2.01,-5.19],[`c`,-.18,-.21,-.36,-.42,-.39,-.45],[`l`,-.09,-.06],[`l`,0,7.11],[`l`,0,7.14],[`l`,-.06,.09],[`c`,-.09,.06,-.09,.06,-.54,.06],[`c`,-.48,0,-.48,0,-.57,-.06],[`l`,-.06,-.09],[`l`,0,-14.82],[`l`,0,-14.85],[`z`]],w:20.31,h:29.97},"clefs.F":{d:[[`M`,6.3,-7.8],[`c`,.36,-.03,1.65,0,2.13,.03],[`c`,3.6,.42,6.03,2.1,6.93,4.86],[`c`,.27,.84,.36,1.5,.36,2.58],[`c`,0,.9,-.03,1.35,-.18,2.16],[`c`,-.78,3.78,-3.54,7.08,-8.37,9.96],[`c`,-1.74,1.05,-3.87,2.13,-6.18,3.12],[`c`,-.39,.18,-.75,.33,-.81,.36],[`c`,-.06,.03,-.15,.06,-.18,.06],[`c`,-.15,0,-.33,-.18,-.33,-.33],[`c`,0,-.15,.06,-.21,.51,-.48],[`c`,3,-1.77,5.13,-3.21,6.84,-4.74],[`c`,.51,-.45,1.59,-1.5,1.95,-1.95],[`c`,1.89,-2.19,2.88,-4.32,3.15,-6.78],[`c`,.06,-.42,.06,-1.77,0,-2.19],[`c`,-.24,-2.01,-.93,-3.63,-2.04,-4.71],[`c`,-.63,-.63,-1.29,-1.02,-2.07,-1.2],[`c`,-1.62,-.39,-3.36,.15,-4.56,1.44],[`c`,-.54,.6,-1.05,1.47,-1.32,2.22],[`l`,-.09,.21],[`l`,.24,-.12],[`c`,.39,-.21,.63,-.24,1.11,-.24],[`c`,.3,0,.45,0,.66,.06],[`c`,1.92,.48,2.85,2.55,1.95,4.38],[`c`,-.45,.99,-1.41,1.62,-2.46,1.71],[`c`,-1.47,.09,-2.91,-.87,-3.39,-2.25],[`c`,-.18,-.57,-.21,-1.32,-.03,-2.28],[`c`,.39,-2.25,1.83,-4.2,3.81,-5.19],[`c`,.69,-.36,1.59,-.6,2.37,-.69],[`z`],[`m`,11.58,2.52],[`c`,.84,-.21,1.71,.3,1.89,1.14],[`c`,.3,1.17,-.72,2.19,-1.89,1.89],[`c`,-.99,-.21,-1.5,-1.32,-1.02,-2.25],[`c`,.18,-.39,.6,-.69,1.02,-.78],[`z`],[`m`,0,7.5],[`c`,.84,-.21,1.71,.3,1.89,1.14],[`c`,.21,.87,-.3,1.71,-1.14,1.89],[`c`,-.87,.21,-1.71,-.3,-1.89,-1.14],[`c`,-.21,-.84,.3,-1.71,1.14,-1.89],[`z`]],w:20.153,h:23.142},"clefs.G":{d:[[`M`,9.69,-37.41],[`c`,.09,-.09,.24,-.06,.36,0],[`c`,.12,.09,.57,.6,.96,1.11],[`c`,1.77,2.34,3.21,5.85,3.57,8.73],[`c`,.21,1.56,.03,3.27,-.45,4.86],[`c`,-.69,2.31,-1.92,4.47,-4.23,7.44],[`c`,-.3,.39,-.57,.72,-.6,.75],[`c`,-.03,.06,0,.15,.18,.78],[`c`,.54,1.68,1.38,4.44,1.68,5.49],[`l`,.09,.42],[`l`,.39,0],[`c`,1.47,.09,2.76,.51,3.96,1.29],[`c`,1.83,1.23,3.06,3.21,3.39,5.52],[`c`,.09,.45,.12,1.29,.06,1.74],[`c`,-.09,1.02,-.33,1.83,-.75,2.73],[`c`,-.84,1.71,-2.28,3.06,-4.02,3.72],[`l`,-.33,.12],[`l`,.03,1.26],[`c`,0,1.74,-.06,3.63,-.21,4.62],[`c`,-.45,3.06,-2.19,5.49,-4.47,6.21],[`c`,-.57,.18,-.9,.21,-1.59,.21],[`c`,-.69,0,-1.02,-.03,-1.65,-.21],[`c`,-1.14,-.27,-2.13,-.84,-2.94,-1.65],[`c`,-.99,-.99,-1.56,-2.16,-1.71,-3.54],[`c`,-.09,-.81,.06,-1.53,.45,-2.13],[`c`,.63,-.99,1.83,-1.56,3,-1.53],[`c`,1.5,.09,2.64,1.32,2.73,2.94],[`c`,.06,1.47,-.93,2.7,-2.37,2.97],[`c`,-.45,.06,-.84,.03,-1.29,-.09],[`l`,-.21,-.09],[`l`,.09,.12],[`c`,.39,.54,.78,.93,1.32,1.26],[`c`,1.35,.87,3.06,1.02,4.35,.36],[`c`,1.44,-.72,2.52,-2.28,2.97,-4.35],[`c`,.15,-.66,.24,-1.5,.3,-3.03],[`c`,.03,-.84,.03,-2.94,0,-3],[`c`,-.03,0,-.18,0,-.36,.03],[`c`,-.66,.12,-.99,.12,-1.83,.12],[`c`,-1.05,0,-1.71,-.06,-2.61,-.3],[`c`,-4.02,-.99,-7.11,-4.35,-7.8,-8.46],[`c`,-.12,-.66,-.12,-.99,-.12,-1.83],[`c`,0,-.84,0,-1.14,.15,-1.92],[`c`,.36,-2.28,1.41,-4.62,3.3,-7.29],[`l`,2.79,-3.6],[`c`,.54,-.66,.96,-1.2,.96,-1.23],[`c`,0,-.03,-.09,-.33,-.18,-.69],[`c`,-.96,-3.21,-1.41,-5.28,-1.59,-7.68],[`c`,-.12,-1.38,-.15,-3.09,-.06,-3.96],[`c`,.33,-2.67,1.38,-5.07,3.12,-7.08],[`c`,.36,-.42,.99,-1.05,1.17,-1.14],[`z`],[`m`,2.01,4.71],[`c`,-.15,-.3,-.3,-.54,-.3,-.54],[`c`,-.03,0,-.18,.09,-.3,.21],[`c`,-2.4,1.74,-3.87,4.2,-4.26,7.11],[`c`,-.06,.54,-.06,1.41,-.03,1.89],[`c`,.09,1.29,.48,3.12,1.08,5.22],[`c`,.15,.42,.24,.78,.24,.81],[`c`,0,.03,.84,-1.11,1.23,-1.68],[`c`,1.89,-2.73,2.88,-5.07,3.15,-7.53],[`c`,.09,-.57,.12,-1.74,.06,-2.37],[`c`,-.09,-1.23,-.27,-1.92,-.87,-3.12],[`z`],[`m`,-2.94,20.7],[`c`,-.21,-.72,-.39,-1.32,-.42,-1.32],[`c`,0,0,-1.2,1.47,-1.86,2.37],[`c`,-2.79,3.63,-4.02,6.3,-4.35,9.3],[`c`,-.03,.21,-.03,.69,-.03,1.08],[`c`,0,.69,0,.75,.06,1.11],[`c`,.12,.54,.27,.99,.51,1.47],[`c`,.69,1.38,1.83,2.55,3.42,3.42],[`c`,.96,.54,2.07,.9,3.21,1.08],[`c`,.78,.12,2.04,.12,2.94,-.03],[`c`,.51,-.06,.45,-.03,.42,-.3],[`c`,-.24,-3.33,-.72,-6.33,-1.62,-10.08],[`c`,-.09,-.39,-.18,-.75,-.18,-.78],[`c`,-.03,-.03,-.42,0,-.81,.09],[`c`,-.9,.18,-1.65,.57,-2.22,1.14],[`c`,-.72,.72,-1.08,1.65,-1.05,2.64],[`c`,.06,.96,.48,1.83,1.23,2.58],[`c`,.36,.36,.72,.63,1.17,.9],[`c`,.33,.18,.36,.21,.42,.33],[`c`,.18,.42,-.18,.9,-.6,.87],[`c`,-.18,-.03,-.84,-.36,-1.26,-.63],[`c`,-.78,-.51,-1.38,-1.11,-1.86,-1.83],[`c`,-1.77,-2.7,-.99,-6.42,1.71,-8.19],[`c`,.3,-.21,.81,-.48,1.17,-.63],[`c`,.3,-.09,1.02,-.3,1.14,-.3],[`c`,.06,0,.09,0,.09,-.03],[`c`,.03,-.03,-.51,-1.92,-1.23,-4.26],[`z`],[`m`,3.78,7.41],[`c`,-.18,-.03,-.36,-.06,-.39,-.06],[`c`,-.03,0,0,.21,.18,1.02],[`c`,.75,3.18,1.26,6.3,1.5,9.09],[`c`,.06,.72,0,.69,.51,.42],[`c`,.78,-.36,1.44,-.96,1.98,-1.77],[`c`,1.08,-1.62,1.2,-3.69,.3,-5.55],[`c`,-.81,-1.62,-2.31,-2.79,-4.08,-3.15],[`z`]],w:19.051,h:57.057},"clefs.perc":{d:[[`M`,5.07,-7.44],[`l`,.09,-.06],[`l`,1.53,0],[`l`,1.53,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,7.35],[`l`,0,7.32],[`l`,-.06,.09],[`l`,-.09,.06],[`l`,-1.53,0],[`l`,-1.53,0],[`l`,-.09,-.06],[`l`,-.06,-.09],[`l`,0,-7.32],[`l`,0,-7.35],[`z`],[`m`,6.63,0],[`l`,.09,-.06],[`l`,1.53,0],[`l`,1.53,0],[`l`,.09,.06],[`l`,.06,.09],[`l`,0,7.35],[`l`,0,7.32],[`l`,-.06,.09],[`l`,-.09,.06],[`l`,-1.53,0],[`l`,-1.53,0],[`l`,-.09,-.06],[`l`,-.06,-.09],[`l`,0,-7.32],[`l`,0,-7.35],[`z`]],w:21,h:14.97},"tab.big":{d:[[`M`,20.16,-21.66],[`c`,.24,-.09,.66,.09,.78,.36],[`c`,.09,.21,.09,.24,-.18,.54],[`c`,-.78,.81,-1.86,1.44,-2.94,1.71],[`c`,-.87,.24,-1.71,.24,-2.55,.03],[`l`,-.06,-.03],[`l`,-.18,.99],[`c`,-.33,1.98,-.75,4.26,-.96,5.04],[`c`,-.42,1.65,-1.26,3.18,-2.28,4.14],[`c`,-.57,.57,-1.17,.9,-1.86,1.08],[`c`,-.18,.06,-.33,.06,-.66,.06],[`c`,-.54,0,-.78,-.03,-1.23,-.27],[`c`,-.39,-.18,-.66,-.39,-1.38,-.99],[`c`,-.3,-.24,-.66,-.51,-.75,-.57],[`c`,-.21,-.15,-.27,-.24,-.24,-.45],[`c`,.06,-.27,.36,-.6,.6,-.66],[`c`,.18,-.03,.33,.06,.9,.57],[`c`,.48,.42,.72,.57,.93,.69],[`c`,.66,.33,1.38,.21,1.95,-.36],[`c`,.63,-.6,1.05,-1.62,1.23,-3],[`c`,.03,-.18,.09,-.66,.09,-1.11],[`c`,.09,-1.56,.33,-3.81,.57,-5.49],[`c`,.06,-.33,.09,-.63,.09,-.63],[`c`,-.03,-.03,-.81,-.12,-1.02,-.12],[`c`,-.57,0,-1.32,.12,-1.8,.33],[`c`,-.87,.3,-1.35,.78,-1.5,1.41],[`c`,-.18,.63,.09,1.26,.66,1.65],[`c`,.12,.06,.15,.12,.18,.24],[`c`,.09,.27,.06,.57,-.09,.75],[`c`,-.03,.06,-.12,.09,-.27,.15],[`c`,-.72,.21,-1.44,.15,-2.1,-.18],[`c`,-.54,-.27,-.96,-.66,-1.2,-1.14],[`c`,-.39,-.75,-.33,-1.74,.15,-2.52],[`c`,.27,-.42,.84,-.93,1.41,-1.23],[`c`,1.17,-.57,2.88,-.9,4.8,-.9],[`c`,.69,0,.78,0,1.08,.06],[`c`,.45,.09,1.11,.3,2.07,.6],[`c`,1.47,.48,1.83,.57,2.55,.54],[`c`,1.02,-.06,2.04,-.45,2.94,-1.11],[`c`,.12,-.09,.24,-.18,.27,-.18],[`z`],[`m`,-5.88,13.05],[`c`,.21,-.03,.81,0,1.08,.06],[`c`,.48,.12,.9,.42,.99,.69],[`c`,.03,.09,.03,.15,0,.27],[`c`,0,.09,-.03,.57,-.06,1.08],[`c`,-.09,2.19,-.24,5.76,-.39,8.28],[`c`,-.06,1.53,-.06,1.77,.03,2.01],[`c`,.09,.18,.15,.24,.3,.3],[`c`,.24,.12,.54,.06,1.23,-.27],[`c`,.57,-.27,.66,-.3,.75,-.24],[`c`,.09,.06,.18,.3,.18,.45],[`c`,0,.33,-.15,.51,-.45,.63],[`c`,-.12,.03,-.39,.15,-.6,.27],[`c`,-1.17,.6,-1.38,.69,-1.8,.72],[`c`,-.45,.03,-.78,-.09,-1.08,-.39],[`c`,-.39,-.42,-.66,-1.2,-1.02,-3.12],[`c`,-.24,-1.23,-.36,-2.07,-.54,-3.75],[`l`,0,-.18],[`l`,-.36,.45],[`c`,-.6,.75,-1.32,1.59,-1.95,2.25],[`c`,-.15,.18,-.27,.3,-.27,.33],[`c`,0,0,.06,.09,.15,.18],[`c`,.24,.33,.6,.57,1.05,.69],[`c`,.18,.06,.3,.06,.69,.06],[`l`,.48,.03],[`l`,.06,.12],[`c`,.15,.27,.03,.72,-.21,.9],[`c`,-.18,.12,-.93,.27,-1.41,.27],[`c`,-.84,0,-1.59,-.3,-1.98,-.84],[`l`,-.12,-.15],[`l`,-.45,.42],[`c`,-.99,.87,-1.53,1.32,-2.16,1.74],[`c`,-.78,.51,-1.5,.84,-2.1,.93],[`c`,-.69,.12,-1.2,.03,-1.95,-.42],[`c`,-.21,-.12,-.51,-.27,-.66,-.36],[`c`,-.24,-.12,-.3,-.18,-.33,-.24],[`c`,-.12,-.27,.15,-.78,.45,-.93],[`c`,.24,-.12,.33,-.09,.9,.18],[`c`,.6,.3,.84,.39,1.2,.36],[`c`,.87,-.09,1.77,-.69,3.24,-2.31],[`c`,2.67,-2.85,4.59,-5.94,5.7,-9.15],[`c`,.15,-.45,.24,-.63,.42,-.81],[`c`,.21,-.24,.6,-.45,.99,-.51],[`z`],[`m`,-3.99,16.05],[`c`,.18,0,.69,-.03,1.17,0],[`c`,3.27,.03,5.37,.75,6,2.07],[`c`,.45,.99,.12,2.4,-.81,3.42],[`c`,-.24,.27,-.57,.57,-.84,.75],[`c`,-.09,.06,-.18,.09,-.18,.12],[`c`,0,0,.18,.03,.42,.09],[`c`,1.23,.3,2.01,.81,2.37,1.59],[`c`,.27,.54,.3,1.32,.09,2.1],[`c`,-.12,.36,-.45,1.05,-.69,1.35],[`c`,-.87,1.17,-2.1,1.92,-3.54,2.25],[`c`,-.36,.06,-.48,.06,-.96,.06],[`c`,-.45,0,-.66,0,-.84,-.03],[`c`,-.84,-.18,-1.47,-.51,-2.07,-1.11],[`c`,-.33,-.33,-.45,-.51,-.45,-.63],[`c`,0,-.06,.03,-.15,.06,-.24],[`c`,.18,-.33,.69,-.6,.93,-.48],[`c`,.03,.03,.15,.12,.27,.24],[`c`,.39,.42,.99,.57,1.62,.45],[`c`,1.05,-.21,1.98,-1.02,2.31,-2.01],[`c`,.48,-1.53,-.48,-2.55,-2.58,-2.67],[`c`,-.21,0,-.36,-.03,-.42,-.06],[`c`,-.15,-.09,-.21,-.51,-.06,-.78],[`c`,.12,-.27,.24,-.33,.6,-.36],[`c`,.57,-.06,1.11,-.42,1.5,-.99],[`c`,.48,-.72,.54,-1.59,.18,-2.31],[`c`,-.12,-.21,-.45,-.54,-.69,-.69],[`c`,-.33,-.21,-.93,-.45,-1.35,-.51],[`l`,-.12,-.03],[`l`,-.06,.48],[`c`,-.54,2.94,-1.14,6.24,-1.29,6.75],[`c`,-.33,1.35,-.93,2.61,-1.65,3.6],[`c`,-.3,.36,-.81,.9,-1.14,1.14],[`c`,-.3,.24,-.84,.48,-1.14,.57],[`c`,-.33,.09,-.96,.09,-1.26,.03],[`c`,-.45,-.12,-.87,-.39,-1.53,-.96],[`c`,-.24,-.15,-.51,-.39,-.63,-.48],[`c`,-.3,-.21,-.33,-.33,-.21,-.63],[`c`,.12,-.18,.27,-.36,.42,-.45],[`c`,.27,-.12,.36,-.09,.87,.33],[`c`,.78,.6,1.08,.75,1.65,.72],[`c`,.45,-.03,.81,-.21,1.17,-.54],[`c`,.87,-.9,1.38,-2.85,1.38,-5.37],[`c`,0,-.6,.03,-1.11,.12,-2.04],[`c`,.06,-.69,.24,-2.01,.33,-2.58],[`c`,.06,-.24,.06,-.42,.06,-.42],[`c`,0,0,-.12,.03,-.21,.09],[`c`,-1.44,.57,-2.16,1.65,-1.74,2.55],[`c`,.09,.15,.18,.24,.27,.33],[`c`,.24,.21,.3,.27,.33,.39],[`c`,.06,.24,0,.63,-.15,.78],[`c`,-.09,.12,-.54,.21,-.96,.24],[`c`,-1.02,.03,-2.01,-.48,-2.43,-1.32],[`c`,-.21,-.45,-.27,-.9,-.15,-1.44],[`c`,.06,-.27,.21,-.66,.39,-.93],[`c`,.87,-1.29,3,-2.22,5.64,-2.43],[`z`]],w:19.643,h:43.325},"tab.tiny":{d:[[`M`,16.02,-17.25],[`c`,.12,-.09,.15,-.09,.27,-.09],[`c`,.21,.03,.51,.3,.51,.45],[`c`,0,.06,-.12,.18,-.3,.36],[`c`,-1.11,1.08,-2.55,1.59,-3.84,1.41],[`c`,-.15,-.03,-.33,-.06,-.39,-.09],[`c`,-.06,-.03,-.09,-.03,-.12,-.03],[`c`,0,0,-.06,.42,-.15,.93],[`c`,-.33,2.01,-.66,3.69,-.84,4.26],[`c`,-.42,1.41,-1.23,2.67,-2.16,3.33],[`c`,-.27,.18,-.75,.42,-.99,.48],[`c`,-.3,.09,-.72,.09,-1.02,.06],[`c`,-.45,-.09,-.84,-.33,-1.53,-.9],[`c`,-.21,-.18,-.51,-.39,-.63,-.48],[`c`,-.27,-.21,-.3,-.24,-.3,-.36],[`c`,0,-.12,.09,-.36,.18,-.45],[`c`,.09,-.09,.27,-.18,.36,-.18],[`c`,.12,0,.3,.12,.66,.45],[`c`,.57,.51,.87,.69,1.23,.72],[`c`,.93,.06,1.68,-.78,1.98,-2.37],[`c`,.09,-.39,.15,-.75,.18,-1.53],[`c`,.06,-.99,.24,-2.79,.42,-4.05],[`c`,.03,-.3,.06,-.57,.06,-.6],[`c`,0,-.06,-.03,-.09,-.15,-.12],[`c`,-.9,-.18,-2.13,.06,-2.76,.57],[`c`,-.36,.3,-.51,.6,-.51,1.02],[`c`,0,.45,.15,.75,.48,.99],[`c`,.06,.06,.15,.18,.18,.24],[`c`,.12,.24,.03,.63,-.15,.69],[`c`,-.24,.12,-.6,.15,-.9,.15],[`c`,-.36,-.03,-.57,-.09,-.87,-.24],[`c`,-.78,-.36,-1.23,-1.11,-1.2,-1.92],[`c`,.12,-1.53,1.74,-2.49,4.62,-2.7],[`c`,1.2,-.09,1.47,-.03,3.33,.57],[`c`,.9,.3,1.14,.36,1.56,.39],[`c`,.45,0,.93,-.06,1.38,-.21],[`c`,.51,-.18,.81,-.33,1.41,-.75],[`z`],[`m`,-4.68,10.38],[`c`,.39,-.06,.84,0,1.2,.15],[`c`,.24,.12,.36,.21,.45,.36],[`l`,.09,.09],[`l`,-.06,1.41],[`c`,-.09,2.19,-.18,3.96,-.27,5.49],[`c`,-.03,.78,-.06,1.59,-.06,1.86],[`c`,0,.42,0,.48,.06,.57],[`c`,.06,.18,.18,.24,.36,.27],[`c`,.18,0,.39,-.06,.84,-.27],[`c`,.45,-.21,.54,-.24,.63,-.18],[`c`,.12,.12,.15,.54,.03,.69],[`c`,-.03,.03,-.15,.12,-.27,.18],[`c`,-.15,.03,-.3,.12,-.36,.15],[`c`,-.87,.45,-1.02,.51,-1.26,.57],[`c`,-.33,.09,-.6,.06,-.84,-.06],[`c`,-.42,-.18,-.63,-.6,-.87,-1.44],[`c`,-.3,-1.23,-.57,-2.97,-.66,-4.08],[`c`,0,-.18,-.03,-.3,-.03,-.33],[`l`,-.06,.06],[`c`,-.18,.27,-1.11,1.38,-1.68,2.01],[`l`,-.33,.33],[`l`,.06,.09],[`c`,.06,.15,.27,.33,.48,.42],[`c`,.27,.18,.51,.24,.96,.27],[`l`,.39,0],[`l`,.03,.12],[`c`,.12,.21,.03,.57,-.15,.69],[`c`,-.03,.03,-.21,.09,-.36,.15],[`c`,-.27,.06,-.39,.06,-.75,.06],[`c`,-.48,0,-.75,-.03,-1.08,-.21],[`c`,-.21,-.12,-.51,-.36,-.57,-.48],[`l`,-.03,-.09],[`l`,-.39,.36],[`c`,-1.47,1.35,-2.49,1.98,-3.42,2.13],[`c`,-.54,.09,-.96,-.03,-1.62,-.39],[`c`,-.21,-.15,-.45,-.27,-.54,-.3],[`c`,-.18,-.09,-.21,-.21,-.12,-.45],[`c`,.06,-.27,.33,-.48,.54,-.48],[`c`,.03,0,.27,.09,.48,.21],[`c`,.48,.24,.69,.27,.99,.27],[`c`,.6,-.06,1.17,-.42,2.1,-1.35],[`c`,2.22,-2.22,4.02,-4.98,4.95,-7.59],[`c`,.21,-.57,.3,-.78,.48,-.93],[`c`,.15,-.15,.42,-.27,.66,-.33],[`z`],[`m`,-3.06,12.84],[`c`,.27,-.03,1.68,0,2.01,.03],[`c`,1.92,.18,3.15,.69,3.63,1.5],[`c`,.18,.33,.24,.51,.21,.93],[`c`,0,.45,-.06,.72,-.24,1.11],[`c`,-.24,.51,-.69,1.02,-1.17,1.35],[`c`,-.21,.15,-.21,.15,-.12,.18],[`c`,.72,.15,1.11,.3,1.5,.57],[`c`,.39,.24,.63,.57,.75,.96],[`c`,.09,.3,.09,.96,0,1.29],[`c`,-.15,.57,-.39,1.05,-.78,1.5],[`c`,-.66,.75,-1.62,1.32,-2.61,1.53],[`c`,-.27,.06,-.42,.06,-.84,.06],[`c`,-.48,0,-.57,0,-.81,-.06],[`c`,-.6,-.18,-1.05,-.42,-1.47,-.81],[`c`,-.36,-.39,-.42,-.51,-.3,-.75],[`c`,.12,-.21,.39,-.39,.6,-.39],[`c`,.09,0,.15,.03,.33,.18],[`c`,.12,.12,.27,.24,.36,.27],[`c`,.96,.48,2.46,-.33,2.82,-1.5],[`c`,.24,-.81,-.03,-1.44,-.69,-1.77],[`c`,-.39,-.21,-1.02,-.33,-1.53,-.33],[`c`,-.18,0,-.21,0,-.27,-.09],[`c`,-.06,-.09,-.06,-.3,-.03,-.48],[`c`,.06,-.18,.18,-.36,.33,-.36],[`c`,.39,-.06,.51,-.09,.72,-.18],[`c`,.69,-.36,1.11,-1.23,.99,-2.01],[`c`,-.09,-.51,-.42,-.9,-.93,-1.17],[`c`,-.24,-.12,-.6,-.27,-.87,-.3],[`c`,-.09,-.03,-.09,-.03,-.12,.12],[`c`,0,.09,-.21,1.11,-.42,2.25],[`c`,-.66,3.75,-.72,3.99,-1.26,5.07],[`c`,-.9,1.89,-2.25,2.85,-3.48,2.61],[`c`,-.39,-.09,-.69,-.27,-1.38,-.84],[`c`,-.63,-.51,-.63,-.48,-.63,-.6],[`c`,0,-.18,.18,-.48,.39,-.57],[`c`,.21,-.12,.3,-.09,.81,.33],[`c`,.15,.15,.39,.3,.54,.36],[`c`,.18,.12,.27,.12,.48,.15],[`c`,.99,.06,1.71,-.78,2.04,-2.46],[`c`,.12,-.66,.18,-1.14,.21,-2.22],[`c`,.03,-1.23,.12,-2.25,.36,-3.63],[`c`,.03,-.24,.06,-.45,.06,-.48],[`c`,-.06,-.03,-.66,.27,-.9,.42],[`c`,-.06,.06,-.21,.18,-.33,.3],[`c`,-.57,.57,-.6,1.35,-.06,1.74],[`c`,.18,.12,.24,.24,.21,.51],[`c`,-.03,.3,-.15,.42,-.57,.48],[`c`,-1.11,.24,-2.22,-.42,-2.43,-1.38],[`c`,-.09,-.45,.03,-1.02,.3,-1.47],[`c`,.18,-.24,.6,-.63,.9,-.84],[`c`,.9,-.6,2.28,-1.02,3.69,-1.11],[`z`]],w:15.709,h:34.656},"timesig.common":{d:[[`M`,6.66,-7.83],[`c`,.72,-.06,1.41,-.03,1.98,.09],[`c`,1.2,.27,2.34,.96,3.09,1.92],[`c`,.63,.81,1.08,1.86,1.14,2.73],[`c`,.06,1.02,-.51,1.92,-1.44,2.22],[`c`,-.24,.09,-.3,.09,-.63,.09],[`c`,-.33,0,-.42,0,-.63,-.06],[`c`,-.66,-.24,-1.14,-.63,-1.41,-1.2],[`c`,-.15,-.3,-.21,-.51,-.24,-.9],[`c`,-.06,-1.08,.57,-2.04,1.56,-2.37],[`c`,.18,-.06,.27,-.06,.63,-.06],[`l`,.45,0],[`c`,.06,.03,.09,.03,.09,0],[`c`,0,0,-.09,-.12,-.24,-.27],[`c`,-1.02,-1.11,-2.55,-1.68,-4.08,-1.5],[`c`,-1.29,.15,-2.04,.69,-2.4,1.74],[`c`,-.36,.93,-.42,1.89,-.42,5.37],[`c`,0,2.97,.06,3.96,.24,4.77],[`c`,.24,1.08,.63,1.68,1.41,2.07],[`c`,.81,.39,2.16,.45,3.18,.09],[`c`,1.29,-.45,2.37,-1.53,3.03,-2.97],[`c`,.15,-.33,.33,-.87,.39,-1.17],[`c`,.09,-.24,.15,-.36,.3,-.39],[`c`,.21,-.03,.42,.15,.39,.36],[`c`,-.06,.39,-.42,1.38,-.69,1.89],[`c`,-.96,1.8,-2.49,2.94,-4.23,3.18],[`c`,-.99,.12,-2.58,-.06,-3.63,-.45],[`c`,-.96,-.36,-1.71,-.84,-2.4,-1.5],[`c`,-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],[`c`,-.06,-.6,-.06,-2.01,0,-2.61],[`c`,.24,-1.95,.9,-3.45,2.01,-4.56],[`c`,.69,-.66,1.44,-1.11,2.37,-1.47],[`c`,.63,-.24,1.47,-.42,2.22,-.48],[`z`]],w:13.038,h:15.689},"timesig.cut":{d:[[`M`,6.24,-10.44],[`c`,.09,-.06,.09,-.06,.48,-.06],[`c`,.36,0,.36,0,.45,.06],[`l`,.06,.09],[`l`,0,1.23],[`l`,0,1.26],[`l`,.27,0],[`c`,1.26,0,2.49,.45,3.48,1.29],[`c`,1.05,.87,1.8,2.28,1.89,3.48],[`c`,.06,1.02,-.51,1.92,-1.44,2.22],[`c`,-.24,.09,-.3,.09,-.63,.09],[`c`,-.33,0,-.42,0,-.63,-.06],[`c`,-.66,-.24,-1.14,-.63,-1.41,-1.2],[`c`,-.15,-.3,-.21,-.51,-.24,-.9],[`c`,-.06,-1.08,.57,-2.04,1.56,-2.37],[`c`,.18,-.06,.27,-.06,.63,-.06],[`l`,.45,0],[`c`,.06,.03,.09,.03,.09,0],[`c`,0,-.03,-.45,-.51,-.66,-.69],[`c`,-.87,-.69,-1.83,-1.05,-2.94,-1.11],[`l`,-.42,0],[`l`,0,7.17],[`l`,0,7.14],[`l`,.42,0],[`c`,.69,-.03,1.23,-.18,1.86,-.51],[`c`,1.05,-.51,1.89,-1.47,2.46,-2.7],[`c`,.15,-.33,.33,-.87,.39,-1.17],[`c`,.09,-.24,.15,-.36,.3,-.39],[`c`,.21,-.03,.42,.15,.39,.36],[`c`,-.03,.24,-.21,.78,-.39,1.2],[`c`,-.96,2.37,-2.94,3.9,-5.13,3.9],[`l`,-.3,0],[`l`,0,1.26],[`l`,0,1.23],[`l`,-.06,.09],[`c`,-.09,.06,-.09,.06,-.45,.06],[`c`,-.39,0,-.39,0,-.48,-.06],[`l`,-.06,-.09],[`l`,0,-1.29],[`l`,0,-1.29],[`l`,-.21,-.03],[`c`,-1.23,-.21,-2.31,-.63,-3.21,-1.29],[`c`,-.15,-.09,-.45,-.36,-.66,-.57],[`c`,-1.11,-1.11,-1.8,-2.61,-2.04,-4.56],[`c`,-.06,-.6,-.06,-2.01,0,-2.61],[`c`,.24,-1.95,.93,-3.45,2.04,-4.59],[`c`,.42,-.39,.78,-.66,1.26,-.93],[`c`,.75,-.45,1.65,-.75,2.61,-.9],[`l`,.21,-.03],[`l`,0,-1.29],[`l`,0,-1.29],[`z`],[`m`,-.06,10.44],[`c`,0,-5.58,0,-6.99,-.03,-6.99],[`c`,-.15,0,-.63,.27,-.87,.45],[`c`,-.45,.36,-.75,.93,-.93,1.77],[`c`,-.18,.81,-.24,1.8,-.24,4.74],[`c`,0,2.97,.06,3.96,.24,4.77],[`c`,.24,1.08,.66,1.68,1.41,2.07],[`c`,.12,.06,.3,.12,.33,.15],[`l`,.09,0],[`l`,0,-6.96],[`z`]],w:13.038,h:20.97},"timesig.imperfectum":{d:[[`M`,13,-5],[`a`,8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.imperfectum2":{d:[[`M`,13,-5],[`a`,8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum":{d:[[`M`,13,-5],[`a`,8,8,0,1,0,0,10]],w:13.038,h:20.97},"timesig.perfectum2":{d:[[`M`,13,-5],[`a`,8,8,0,1,0,0,10]],w:13.038,h:20.97},f:{d:[[`M`,9.93,-14.28],[`c`,1.53,-.18,2.88,.45,3.12,1.5],[`c`,.12,.51,0,1.32,-.27,1.86],[`c`,-.15,.3,-.42,.57,-.63,.69],[`c`,-.69,.36,-1.56,.03,-1.83,-.69],[`c`,-.09,-.24,-.09,-.69,0,-.87],[`c`,.06,-.12,.21,-.24,.45,-.42],[`c`,.42,-.24,.57,-.45,.6,-.72],[`c`,.03,-.33,-.09,-.39,-.63,-.42],[`c`,-.3,0,-.45,0,-.6,.03],[`c`,-.81,.21,-1.35,.93,-1.74,2.46],[`c`,-.06,.27,-.48,2.25,-.48,2.31],[`c`,0,.03,.39,.03,.9,.03],[`c`,.72,0,.9,0,.99,.06],[`c`,.42,.15,.45,.72,.03,.9],[`c`,-.12,.06,-.24,.06,-1.17,.06],[`l`,-1.05,0],[`l`,-.78,2.55],[`c`,-.45,1.41,-.87,2.79,-.96,3.06],[`c`,-.87,2.37,-2.37,4.74,-3.78,5.91],[`c`,-1.05,.9,-2.04,1.23,-3.09,1.08],[`c`,-1.11,-.18,-1.89,-.78,-2.04,-1.59],[`c`,-.12,-.66,.15,-1.71,.54,-2.19],[`c`,.69,-.75,1.86,-.54,2.22,.39],[`c`,.06,.15,.09,.27,.09,.48],[`c`,0,.24,-.03,.27,-.12,.42],[`c`,-.03,.09,-.15,.18,-.27,.27],[`c`,-.09,.06,-.27,.21,-.36,.27],[`c`,-.24,.18,-.36,.36,-.39,.6],[`c`,-.03,.33,.09,.39,.63,.42],[`c`,.42,0,.63,-.03,.9,-.15],[`c`,.6,-.3,.96,-.96,1.38,-2.64],[`c`,.09,-.42,.63,-2.55,1.17,-4.77],[`l`,1.02,-4.08],[`c`,0,-.03,-.36,-.03,-.81,-.03],[`c`,-.72,0,-.81,0,-.93,-.06],[`c`,-.42,-.18,-.39,-.75,.03,-.9],[`c`,.09,-.06,.27,-.06,1.05,-.06],[`l`,.96,0],[`l`,0,-.09],[`c`,.06,-.18,.3,-.72,.51,-1.17],[`c`,1.2,-2.46,3.3,-4.23,5.34,-4.5],[`z`]],w:16.155,h:19.445},m:{d:[[`M`,2.79,-8.91],[`c`,.09,0,.3,-.03,.45,-.03],[`c`,.24,.03,.3,.03,.45,.12],[`c`,.36,.15,.63,.54,.75,1.02],[`l`,.03,.21],[`l`,.33,-.3],[`c`,.69,-.69,1.38,-1.02,2.07,-1.02],[`c`,.27,0,.33,0,.48,.06],[`c`,.21,.09,.48,.36,.63,.6],[`c`,.03,.09,.12,.27,.18,.42],[`c`,.03,.15,.09,.27,.12,.27],[`c`,0,0,.09,-.09,.18,-.21],[`c`,.33,-.39,.87,-.81,1.29,-.99],[`c`,.78,-.33,1.47,-.21,2.01,.33],[`c`,.3,.33,.48,.69,.6,1.14],[`c`,.09,.42,.06,.54,-.54,3.06],[`c`,-.33,1.29,-.57,2.4,-.57,2.43],[`c`,0,.12,.09,.21,.21,.21],[`c`,.24,0,.75,-.3,1.2,-.72],[`c`,.45,-.39,.6,-.45,.78,-.27],[`c`,.18,.18,.09,.36,-.45,.87],[`c`,-1.05,.96,-1.83,1.47,-2.58,1.71],[`c`,-.93,.33,-1.53,.21,-1.8,-.33],[`c`,-.06,-.15,-.06,-.21,-.06,-.45],[`c`,0,-.24,.03,-.48,.6,-2.82],[`c`,.42,-1.71,.6,-2.64,.63,-2.79],[`c`,.03,-.57,-.3,-.75,-.84,-.48],[`c`,-.24,.12,-.54,.39,-.66,.63],[`c`,-.03,.09,-.42,1.38,-.9,3],[`c`,-.9,3.15,-.84,3,-1.14,3.15],[`l`,-.15,.09],[`l`,-.78,0],[`c`,-.6,0,-.78,0,-.84,-.06],[`c`,-.09,-.03,-.18,-.18,-.18,-.27],[`c`,0,-.03,.36,-1.38,.84,-2.97],[`c`,.57,-2.04,.81,-2.97,.84,-3.12],[`c`,.03,-.54,-.3,-.72,-.84,-.45],[`c`,-.24,.12,-.57,.42,-.66,.63],[`c`,-.06,.09,-.51,1.44,-1.05,2.97],[`c`,-.51,1.56,-.99,2.85,-.99,2.91],[`c`,-.06,.12,-.21,.24,-.36,.3],[`c`,-.12,.06,-.21,.06,-.9,.06],[`c`,-.6,0,-.78,0,-.84,-.06],[`c`,-.09,-.03,-.18,-.18,-.18,-.27],[`c`,0,-.03,.45,-1.38,.99,-2.97],[`c`,1.05,-3.18,1.05,-3.18,.93,-3.45],[`c`,-.12,-.27,-.39,-.3,-.72,-.15],[`c`,-.54,.27,-1.14,1.17,-1.56,2.4],[`c`,-.06,.15,-.15,.3,-.18,.36],[`c`,-.21,.21,-.57,.27,-.72,.09],[`c`,-.09,-.09,-.06,-.21,.06,-.63],[`c`,.48,-1.26,1.26,-2.46,2.01,-3.21],[`c`,.57,-.54,1.2,-.87,1.83,-1.02],[`z`]],w:14.687,h:9.126},p:{d:[[`M`,1.92,-8.7],[`c`,.27,-.09,.81,-.06,1.11,.03],[`c`,.54,.18,.93,.51,1.17,.99],[`c`,.09,.15,.15,.33,.18,.36],[`l`,0,.12],[`l`,.3,-.27],[`c`,.66,-.6,1.35,-1.02,2.13,-1.2],[`c`,.21,-.06,.33,-.06,.78,-.06],[`c`,.45,0,.51,0,.84,.09],[`c`,1.29,.33,2.07,1.32,2.25,2.79],[`c`,.09,.81,-.09,2.01,-.45,2.79],[`c`,-.54,1.26,-1.86,2.55,-3.18,3.03],[`c`,-.45,.18,-.81,.24,-1.29,.24],[`c`,-.69,-.03,-1.35,-.18,-1.86,-.45],[`c`,-.3,-.15,-.51,-.18,-.69,-.09],[`c`,-.09,.03,-.18,.09,-.18,.12],[`c`,-.09,.12,-1.05,2.94,-1.05,3.06],[`c`,0,.24,.18,.48,.51,.63],[`c`,.18,.06,.54,.15,.75,.15],[`c`,.21,0,.36,.06,.42,.18],[`c`,.12,.18,.06,.42,-.12,.54],[`c`,-.09,.03,-.15,.03,-.78,0],[`c`,-1.98,-.15,-3.81,-.15,-5.79,0],[`c`,-.63,.03,-.69,.03,-.78,0],[`c`,-.24,-.15,-.24,-.57,.03,-.66],[`c`,.06,-.03,.48,-.09,.99,-.12],[`c`,.87,-.06,1.11,-.09,1.35,-.21],[`c`,.18,-.06,.33,-.18,.39,-.3],[`c`,.06,-.12,3.24,-9.42,3.27,-9.6],[`c`,.06,-.33,.03,-.57,-.15,-.69],[`c`,-.09,-.06,-.12,-.06,-.3,-.06],[`c`,-.69,.06,-1.53,1.02,-2.28,2.61],[`c`,-.09,.21,-.21,.45,-.27,.51],[`c`,-.09,.12,-.33,.24,-.48,.24],[`c`,-.18,0,-.36,-.15,-.36,-.3],[`c`,0,-.24,.78,-1.83,1.26,-2.55],[`c`,.72,-1.11,1.47,-1.74,2.28,-1.92],[`z`],[`m`,5.37,1.47],[`c`,-.27,-.12,-.75,-.03,-1.14,.21],[`c`,-.75,.48,-1.47,1.68,-1.89,3.15],[`c`,-.45,1.47,-.42,2.34,0,2.7],[`c`,.45,.39,1.26,.21,1.83,-.36],[`c`,.51,-.51,.99,-1.68,1.38,-3.27],[`c`,.3,-1.17,.33,-1.74,.15,-2.13],[`c`,-.09,-.15,-.15,-.21,-.33,-.3],[`z`]],w:14.689,h:13.127},r:{d:[[`M`,6.33,-9.12],[`c`,.27,-.03,.93,0,1.2,.06],[`c`,.84,.21,1.23,.81,1.02,1.53],[`c`,-.24,.75,-.9,1.17,-1.56,.96],[`c`,-.33,-.09,-.51,-.3,-.66,-.75],[`c`,-.03,-.12,-.09,-.24,-.12,-.3],[`c`,-.09,-.15,-.3,-.24,-.48,-.24],[`c`,-.57,0,-1.38,.54,-1.65,1.08],[`c`,-.06,.15,-.33,1.17,-.9,3.27],[`c`,-.57,2.31,-.81,3.12,-.87,3.21],[`c`,-.03,.06,-.12,.15,-.18,.21],[`l`,-.12,.06],[`l`,-.81,.03],[`c`,-.69,0,-.81,0,-.9,-.03],[`c`,-.09,-.06,-.18,-.21,-.18,-.3],[`c`,0,-.06,.39,-1.62,.9,-3.51],[`c`,.84,-3.24,.87,-3.45,.87,-3.72],[`c`,0,-.21,0,-.27,-.03,-.36],[`c`,-.12,-.15,-.21,-.24,-.42,-.24],[`c`,-.24,0,-.45,.15,-.78,.42],[`c`,-.33,.36,-.45,.54,-.72,1.14],[`c`,-.03,.12,-.21,.24,-.36,.27],[`c`,-.12,0,-.15,0,-.24,-.06],[`c`,-.18,-.12,-.18,-.21,-.06,-.54],[`c`,.21,-.57,.42,-.93,.78,-1.32],[`c`,.54,-.51,1.2,-.81,1.95,-.87],[`c`,.81,-.03,1.53,.3,1.92,.87],[`l`,.12,.18],[`l`,.09,-.09],[`c`,.57,-.45,1.41,-.84,2.19,-.96],[`z`]],w:9.41,h:9.132},s:{d:[[`M`,4.47,-8.73],[`c`,.09,0,.36,-.03,.57,-.03],[`c`,.75,.03,1.29,.24,1.71,.63],[`c`,.51,.54,.66,1.26,.36,1.83],[`c`,-.24,.42,-.63,.57,-1.11,.42],[`c`,-.33,-.09,-.6,-.36,-.6,-.57],[`c`,0,-.03,.06,-.21,.15,-.39],[`c`,.12,-.21,.15,-.33,.18,-.48],[`c`,0,-.24,-.06,-.48,-.15,-.6],[`c`,-.15,-.21,-.42,-.24,-.75,-.15],[`c`,-.27,.06,-.48,.18,-.69,.36],[`c`,-.39,.39,-.51,.96,-.33,1.38],[`c`,.09,.21,.42,.51,.78,.72],[`c`,1.11,.69,1.59,1.11,1.89,1.68],[`c`,.21,.39,.24,.78,.15,1.29],[`c`,-.18,1.2,-1.17,2.16,-2.52,2.52],[`c`,-1.02,.24,-1.95,.12,-2.7,-.42],[`c`,-.72,-.51,-.99,-1.47,-.6,-2.19],[`c`,.24,-.48,.72,-.63,1.17,-.42],[`c`,.33,.18,.54,.45,.57,.81],[`c`,0,.21,-.03,.3,-.33,.51],[`c`,-.33,.24,-.39,.42,-.27,.69],[`c`,.06,.15,.21,.27,.45,.33],[`c`,.3,.09,.87,.09,1.2,0],[`c`,.75,-.21,1.23,-.72,1.29,-1.35],[`c`,.03,-.42,-.15,-.81,-.54,-1.2],[`c`,-.24,-.24,-.48,-.42,-1.41,-1.02],[`c`,-.69,-.42,-1.05,-.93,-1.05,-1.47],[`c`,0,-.39,.12,-.87,.3,-1.23],[`c`,.27,-.57,.78,-1.05,1.38,-1.35],[`c`,.24,-.12,.63,-.27,.9,-.3],[`z`]],w:6.632,h:8.758},z:{d:[[`M`,2.64,-7.95],[`c`,.36,-.09,.81,-.03,1.71,.27],[`c`,.78,.21,.96,.27,1.74,.3],[`c`,.87,.06,1.02,.03,1.38,-.21],[`c`,.21,-.15,.33,-.15,.48,-.06],[`c`,.15,.09,.21,.3,.15,.45],[`c`,-.03,.06,-1.26,1.26,-2.76,2.67],[`l`,-2.73,2.55],[`l`,.54,.03],[`c`,.54,.03,.72,.03,2.01,.15],[`c`,.36,.03,.9,.06,1.2,.09],[`c`,.66,0,.81,-.03,1.02,-.24],[`c`,.3,-.3,.39,-.72,.27,-1.23],[`c`,-.06,-.27,-.06,-.27,-.03,-.39],[`c`,.15,-.3,.54,-.27,.69,.03],[`c`,.15,.33,.27,1.02,.27,1.5],[`c`,0,1.47,-1.11,2.7,-2.52,2.79],[`c`,-.57,.03,-1.02,-.09,-2.01,-.51],[`c`,-1.02,-.42,-1.23,-.48,-2.13,-.54],[`c`,-.81,-.06,-.96,-.03,-1.26,.18],[`c`,-.12,.06,-.24,.12,-.27,.12],[`c`,-.27,0,-.45,-.3,-.36,-.51],[`c`,.03,-.06,1.32,-1.32,2.91,-2.79],[`l`,2.88,-2.73],[`c`,-.03,0,-.21,.03,-.42,.06],[`c`,-.21,.03,-.78,.09,-1.23,.12],[`c`,-1.11,.12,-1.23,.15,-1.95,.27],[`c`,-.72,.15,-1.17,.18,-1.29,.09],[`c`,-.27,-.18,-.21,-.75,.12,-1.26],[`c`,.39,-.6,.93,-1.02,1.59,-1.2],[`z`]],w:8.573,h:8.743},"+":{d:[[`M`,3.48,-9.3],[`c`,.18,-.09,.36,-.09,.54,0],[`c`,.18,.09,.24,.15,.33,.3],[`l`,.06,.15],[`l`,0,1.29],[`l`,0,1.29],[`l`,1.29,0],[`c`,1.23,0,1.29,0,1.41,.06],[`c`,.06,.03,.15,.09,.18,.12],[`c`,.12,.09,.21,.33,.21,.48],[`c`,0,.15,-.09,.39,-.21,.48],[`c`,-.03,.03,-.12,.09,-.18,.12],[`c`,-.12,.06,-.18,.06,-1.41,.06],[`l`,-1.29,0],[`l`,0,1.29],[`c`,0,1.23,0,1.29,-.06,1.41],[`c`,-.09,.18,-.15,.24,-.3,.33],[`c`,-.21,.09,-.39,.09,-.57,0],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`c`,-.06,-.12,-.06,-.18,-.06,-1.41],[`l`,0,-1.29],[`l`,-1.29,0],[`c`,-1.23,0,-1.29,0,-1.41,-.06],[`c`,-.18,-.09,-.24,-.15,-.33,-.33],[`c`,-.09,-.18,-.09,-.36,0,-.54],[`c`,.09,-.18,.15,-.24,.33,-.33],[`l`,.15,-.06],[`l`,1.26,0],[`l`,1.29,0],[`l`,0,-1.29],[`c`,0,-1.23,0,-1.29,.06,-1.41],[`c`,.09,-.18,.15,-.24,.33,-.33],[`z`]],w:7.507,h:7.515},",":{d:[[`M`,1.85,-3.36],[`c`,.57,-.15,1.17,.03,1.59,.45],[`c`,.45,.45,.6,.96,.51,1.89],[`c`,-.09,1.23,-.42,2.46,-.99,3.93],[`c`,-.3,.72,-.72,1.62,-.78,1.68],[`c`,-.18,.21,-.51,.18,-.66,-.06],[`c`,-.03,-.06,-.06,-.15,-.06,-.18],[`c`,0,-.06,.12,-.33,.24,-.63],[`c`,.84,-1.8,1.02,-2.61,.69,-3.24],[`c`,-.12,-.24,-.27,-.36,-.75,-.6],[`c`,-.36,-.15,-.42,-.21,-.6,-.39],[`c`,-.69,-.69,-.69,-1.71,0,-2.4],[`c`,.21,-.21,.51,-.39,.81,-.45],[`z`]],w:3.452,h:8.143},"-":{d:[[`M`,.18,-5.34],[`c`,.09,-.06,.15,-.06,2.31,-.06],[`c`,2.46,0,2.37,0,2.46,.21],[`c`,.12,.21,.03,.42,-.15,.54],[`c`,-.09,.06,-.15,.06,-2.28,.06],[`c`,-2.16,0,-2.22,0,-2.31,-.06],[`c`,-.27,-.15,-.27,-.54,-.03,-.69],[`z`]],w:5.001,h:.81},".":{d:[[`M`,1.32,-3.36],[`c`,1.05,-.27,2.1,.57,2.1,1.65],[`c`,0,1.08,-1.05,1.92,-2.1,1.65],[`c`,-.9,-.21,-1.5,-1.14,-1.26,-2.04],[`c`,.12,-.63,.63,-1.11,1.26,-1.26],[`z`]],w:3.413,h:3.402},"scripts.wedge":{d:[[`M`,-3.66,-7.44],[`c`,.06,-.09,0,-.09,.81,.03],[`c`,1.86,.3,3.84,.3,5.73,0],[`c`,.78,-.12,.72,-.12,.78,-.03],[`c`,.15,.15,.12,.24,-.24,.6],[`c`,-.93,.93,-1.98,2.76,-2.67,4.62],[`c`,-.3,.78,-.51,1.71,-.51,2.13],[`c`,0,.15,0,.18,-.06,.27],[`c`,-.12,.09,-.24,.09,-.36,0],[`c`,-.06,-.09,-.06,-.12,-.06,-.27],[`c`,0,-.42,-.21,-1.35,-.51,-2.13],[`c`,-.69,-1.86,-1.74,-3.69,-2.67,-4.62],[`c`,-.36,-.36,-.39,-.45,-.24,-.6],[`z`]],w:7.49,h:7.752},"scripts.thumb":{d:[[`M`,-.54,-3.69],[`c`,.15,-.03,.36,-.06,.51,-.06],[`c`,1.44,0,2.58,1.11,2.94,2.85],[`c`,.09,.48,.09,1.32,0,1.8],[`c`,-.27,1.41,-1.08,2.43,-2.16,2.73],[`l`,-.18,.06],[`l`,0,.12],[`c`,.03,.06,.06,.45,.09,.87],[`c`,.03,.57,.03,.78,0,.84],[`c`,-.09,.27,-.39,.48,-.66,.48],[`c`,-.27,0,-.57,-.21,-.66,-.48],[`c`,-.03,-.06,-.03,-.27,0,-.84],[`c`,.03,-.42,.06,-.81,.09,-.87],[`l`,0,-.12],[`l`,-.18,-.06],[`c`,-1.08,-.3,-1.89,-1.32,-2.16,-2.73],[`c`,-.09,-.48,-.09,-1.32,0,-1.8],[`c`,.15,-.84,.51,-1.53,1.02,-2.04],[`c`,.39,-.39,.84,-.63,1.35,-.75],[`z`],[`m`,1.05,.9],[`c`,-.15,-.09,-.21,-.09,-.45,-.12],[`c`,-.15,0,-.3,.03,-.39,.03],[`c`,-.57,.18,-.9,.72,-1.08,1.74],[`c`,-.06,.48,-.06,1.8,0,2.28],[`c`,.15,.9,.42,1.44,.9,1.65],[`c`,.18,.09,.21,.09,.51,.09],[`c`,.3,0,.33,0,.51,-.09],[`c`,.48,-.21,.75,-.75,.9,-1.65],[`c`,.03,-.27,.03,-.54,.03,-1.14],[`c`,0,-.6,0,-.87,-.03,-1.14],[`c`,-.15,-.9,-.45,-1.44,-.9,-1.65],[`z`]],w:5.955,h:9.75},"scripts.open":{d:[[`M`,-.54,-3.69],[`c`,.15,-.03,.36,-.06,.51,-.06],[`c`,1.44,0,2.58,1.11,2.94,2.85],[`c`,.09,.48,.09,1.32,0,1.8],[`c`,-.33,1.74,-1.47,2.85,-2.91,2.85],[`c`,-1.44,0,-2.58,-1.11,-2.91,-2.85],[`c`,-.09,-.48,-.09,-1.32,0,-1.8],[`c`,.15,-.84,.51,-1.53,1.02,-2.04],[`c`,.39,-.39,.84,-.63,1.35,-.75],[`z`],[`m`,1.11,.9],[`c`,-.21,-.09,-.27,-.09,-.51,-.12],[`c`,-.3,0,-.42,.03,-.66,.15],[`c`,-.24,.12,-.51,.39,-.66,.63],[`c`,-.54,.93,-.63,2.64,-.21,3.81],[`c`,.21,.54,.51,.9,.93,1.11],[`c`,.21,.09,.24,.09,.54,.09],[`c`,.3,0,.33,0,.54,-.09],[`c`,.42,-.21,.72,-.57,.93,-1.11],[`c`,.36,-.99,.36,-2.37,0,-3.36],[`c`,-.21,-.54,-.51,-.9,-.9,-1.11],[`z`]],w:5.955,h:7.5},"scripts.longphrase":{d:[[`M`,1.47,-15.09],[`c`,.36,-.09,.66,-.18,.69,-.18],[`c`,.06,0,.06,.54,.06,11.25],[`l`,0,11.25],[`l`,-.63,.15],[`c`,-.66,.18,-1.44,.39,-1.5,.39],[`c`,-.03,0,-.03,-3.39,-.03,-11.25],[`l`,0,-11.25],[`l`,.36,-.09],[`c`,.21,-.06,.66,-.18,1.05,-.27],[`z`]],w:2.16,h:23.04},"scripts.mediumphrase":{d:[[`M`,1.47,-7.59],[`c`,.36,-.09,.66,-.18,.69,-.18],[`c`,.06,0,.06,.39,.06,7.5],[`l`,0,7.5],[`l`,-.63,.15],[`c`,-.66,.18,-1.44,.39,-1.5,.39],[`c`,-.03,0,-.03,-2.28,-.03,-7.5],[`l`,0,-7.5],[`l`,.36,-.09],[`c`,.21,-.06,.66,-.18,1.05,-.27],[`z`]],w:2.16,h:15.54},"scripts.shortphrase":{d:[[`M`,1.47,-7.59],[`c`,.36,-.09,.66,-.18,.69,-.18],[`c`,.06,0,.06,.21,.06,3.75],[`l`,0,3.75],[`l`,-.42,.09],[`c`,-.57,.18,-1.65,.45,-1.71,.45],[`c`,-.03,0,-.03,-.72,-.03,-3.75],[`l`,0,-3.75],[`l`,.36,-.09],[`c`,.21,-.06,.66,-.18,1.05,-.27],[`z`]],w:2.16,h:8.04},"scripts.snap":{d:[[`M`,4.5,-3.39],[`c`,.36,-.03,.96,-.03,1.35,0],[`c`,1.56,.15,3.15,.9,4.2,2.01],[`c`,.24,.27,.33,.42,.33,.6],[`c`,0,.27,.03,.24,-2.46,2.22],[`c`,-1.29,1.02,-2.4,1.86,-2.49,1.92],[`c`,-.18,.09,-.3,.09,-.48,0],[`c`,-.09,-.06,-1.2,-.9,-2.49,-1.92],[`c`,-2.49,-1.98,-2.46,-1.95,-2.46,-2.22],[`c`,0,-.18,.09,-.33,.33,-.6],[`c`,1.05,-1.08,2.64,-1.86,4.17,-2.01],[`z`],[`m`,1.29,1.17],[`c`,-1.47,-.15,-2.97,.3,-4.14,1.2],[`l`,-.18,.15],[`l`,.06,.09],[`c`,.15,.12,3.63,2.85,3.66,2.85],[`c`,.03,0,3.51,-2.73,3.66,-2.85],[`l`,.06,-.09],[`l`,-.18,-.15],[`c`,-.84,-.66,-1.89,-1.08,-2.94,-1.2],[`z`]],w:10.38,h:6.84}};r[`noteheads.slash.whole`]={d:[[`M`,5,-5],[`l`,1,1],[`l`,-5,5],[`l`,-1,-1],[`z`],[`m`,4,6],[`l`,-5,-5],[`l`,2,-2],[`l`,5,5],[`z`],[`m`,0,-2],[`l`,1,1],[`l`,-5,5],[`l`,-1,-1],[`z`],[`m`,-4,6],[`l`,-5,-5],[`l`,2,-2],[`l`,5,5],[`z`]],w:10.81,h:15.63},r[`noteheads.slash.quarter`]={d:[[`M`,9,-6],[`l`,0,4],[`l`,-9,9],[`l`,0,-4],[`z`]],w:9,h:9},r[`noteheads.harmonic.quarter`]={d:[[`M`,3.63,-4.02],[`c`,.09,-.06,.18,-.09,.24,-.03],[`c`,.03,.03,.87,.93,1.83,2.01],[`c`,1.5,1.65,1.8,1.98,1.8,2.04],[`c`,0,.06,-.3,.39,-1.8,2.04],[`c`,-.96,1.08,-1.8,1.98,-1.83,2.01],[`c`,-.06,.06,-.15,.03,-.24,-.03],[`c`,-.12,-.09,-3.54,-3.84,-3.6,-3.93],[`c`,-.03,-.03,-.03,-.09,-.03,-.15],[`c`,.03,-.06,3.45,-3.84,3.63,-3.96],[`z`]],w:7.5,h:8.165},r[`noteheads.triangle.quarter`]={d:[[`M`,0,4],[`l`,9,0],[`l`,-4.5,-9],[`z`]],w:9,h:9};var pathClone=function(e){for(var t=[],n=0,r=e.length;n<r;n++){t[n]=[];for(var a=0,o=e[n].length;a<o;a++)t[n][a]=e[n][a]}return t},pathScale=function(e,t,n){for(var r=0,a=e.length;r<a;r++){var o=e[r],c,l;for(c=1,l=o.length;c<l;c++)o[c]*=c%2?t:n}};t.exports={printSymbol:function(e,t,n,a,o){if(!r[n])return null;var c=pathClone(r[n].d);c[0][1]+=e,c[0][2]+=t;for(var l=``,u=0;u<c.length;u++)l+=c[u].join(` `);return o.path=l,a.path(o)},getPathForSymbol:function(e,t,n,a,o){if(a||=1,o||=1,!r[n])return null;var c=pathClone(r[n].d);return(a!==1||o!==1)&&pathScale(c,a,o),c[0][1]+=e,c[0][2]+=t,c},getSymbolWidth:function(e){return r[e]?r[e].w:0},symbolHeightInPitches:function(e){return(r[e]?r[e].h:0)/n.STEP},getSymbolAlign:function(e){return e.substring(0,7)===`scripts`&&e!==`scripts.roll`?`center`:`left`},getYCorr:function(e){switch(e){case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:case`+`:return-2;case`timesig.common`:case`timesig.cut`:return 0;case`flags.d32nd`:return-1;case`flags.d64th`:return-2;case`flags.u32nd`:return 1;case`flags.u64th`:return 3;case`rests.whole`:return 1;case`rests.half`:return-1;case`rests.8th`:return-1;case`rests.quarter`:return-1;case`rests.16th`:return-1;case`rests.32nd`:return-1;case`rests.64th`:return-1;case`f`:case`m`:case`p`:case`s`:case`z`:return-4;case`scripts.trill`:case`scripts.upbow`:case`scripts.downbow`:return-2;case`scripts.ufermata`:case`scripts.wedge`:case`scripts.roll`:case`scripts.shortphrase`:case`scripts.longphrase`:return-1;case`scripts.dfermata`:return 1;default:return 0}},setSymbol:function(e,t){r[e]=t}}})),ne=e.n(((e,t)=>{var n=z(),r=Z(),a=B(),createClef=function(e,t){var o,c=0;e.el_type=`clef`;var l=new n(e,0,10,`staff-extra clef`,t);switch(l.isClef=!0,e.type){case`treble`:o=`clefs.G`;break;case`tenor`:o=`clefs.C`;break;case`alto`:o=`clefs.C`;break;case`bass`:o=`clefs.F`;break;case`treble+8`:o=`clefs.G`,c=1;break;case`tenor+8`:o=`clefs.C`,c=1;break;case`bass+8`:o=`clefs.F`,c=1;break;case`alto+8`:o=`clefs.C`,c=1;break;case`treble-8`:o=`clefs.G`,c=-1;break;case`tenor-8`:o=`clefs.C`,c=-1;break;case`bass-8`:o=`clefs.F`,c=-1;break;case`alto-8`:o=`clefs.C`,c=-1;break;case`none`:return null;case`perc`:o=`clefs.perc`;break;default:l.addFixed(new a(`clef=`+e.type,0,0,void 0,{type:`debug`}))}var u=5;if(o){var d=r.symbolHeightInPitches(o),f=clefOffsets(o);if(l.addRight(new a(o,u,r.getSymbolWidth(o),e.clefPos,{top:d+e.clefPos+f,bottom:e.clefPos+f})),c!==0){var p=2/3,m=(r.getSymbolWidth(o)-r.getSymbolWidth(`8`)*p)/2,h=c>0?l.top+3:l.bottom-1,g=c>0?l.top+3:l.bottom-3,_=g-2;e.type===`bass-8`&&(h=3,m=0),l.addRight(new a(`8`,u+m,r.getSymbolWidth(`8`)*p,h,{scalex:p,scaley:p,top:g,bottom:_}))}}return l};function clefOffsets(e){switch(e){case`clefs.G`:return-5;case`clefs.C`:return-4;case`clefs.F`:return-4;case`clefs.perc`:return-2;default:return 0}}t.exports=createClef})),re=e.n(((e,t)=>{var n=z(),r=Z(),a=B(),createKeySignature=function(e,t){if(e.el_type=`keySignature`,!e.accidentals||e.accidentals.length===0)return null;var o=new n(e,0,10,`staff-extra key-signature`,t);o.isKeySig=!0;var c=0;return e.accidentals.forEach(function(e){var t,n=0;switch(e.acc){case`sharp`:t=`accidentals.sharp`,n=-3;break;case`natural`:t=`accidentals.nat`;break;case`flat`:t=`accidentals.flat`,n=-1.2;break;case`quartersharp`:t=`accidentals.halfsharp`,n=-2.5;break;case`quarterflat`:t=`accidentals.halfflat`,n=-1.2;break;default:t=`accidentals.flat`}o.addRight(new a(t,c,r.getSymbolWidth(t),e.verticalPos,{thickness:r.symbolHeightInPitches(t),top:e.verticalPos+r.symbolHeightInPitches(t)+n,bottom:e.verticalPos+n})),c+=r.getSymbolWidth(t)+2},this),o};t.exports=createKeySignature})),ie=e.n(((e,t)=>{var n=Z(),r=B(),createNoteHead=function(e,t,a,o){o||={};var c=o.dir===void 0?null:o.dir,l=o.headx===void 0?0:o.headx,u=o.extrax===void 0?0:o.extrax,d=o.flag===void 0?null:o.flag,f=o.dot===void 0?0:o.dot,p=o.dotshiftx===void 0?0:o.dotshiftx,m=o.scale===void 0?1:o.scale,h=o.accidentalSlot===void 0?[]:o.accidentalSlot,g=o.shouldExtendStem===void 0?!1:o.shouldExtendStem,_=o.printAccidentals===void 0?!0:o.printAccidentals,y=a.verticalPos,b,x=0,S=0,C=0;if(t===void 0)e.addFixed(new r(`pitch is undefined`,0,0,0,{type:`debug`}));else if(t===``)b=new r(null,0,0,y);else{var w=l;if(a.printer_shift){var T=a.printer_shift===`same`?1:0;w=c===`down`?-n.getSymbolWidth(t)*m+T:n.getSymbolWidth(t)*m-T}var E={scalex:m,scaley:m,thickness:n.symbolHeightInPitches(t)*m,name:a.name};if(b=new r(t,w,n.getSymbolWidth(t)*m,y,E),b.stemDir=c,d){var D=y+(c===`down`?-7:7)*m;g&&(c===`down`&&D>6&&(D=6),c===`up`&&D<6&&(D=6));var O=c===`down`?l:l+b.w-.6;e.addRight(new r(d,O,n.getSymbolWidth(d)*m,D,{scalex:m,scaley:m}))}for(S=b.w+p-2+5*f;f>0;f--){var k=1-Math.abs(y)%2;e.addRight(new r(`dots.dot`,b.w+p-2+5*f,n.getSymbolWidth(`dots.dot`),y+k))}}if(b&&(b.highestVert=a.highestVert),_&&a.accidental){var A;switch(a.accidental){case`quartersharp`:A=`accidentals.halfsharp`;break;case`dblsharp`:A=`accidentals.dblsharp`;break;case`sharp`:A=`accidentals.sharp`;break;case`quarterflat`:A=`accidentals.halfflat`;break;case`flat`:A=`accidentals.flat`;break;case`dblflat`:A=`accidentals.dblflat`;break;case`natural`:A=`accidentals.nat`}for(var j=!1,M=u,N=0;N<h.length;N++)if(y-h[N][0]>=6){h[N][0]=y,M=h[N][1],j=!0;break}j===!1&&(M-=n.getSymbolWidth(A)*m+2,h.push([y,M]),x=n.getSymbolWidth(A)*m+2);var P=n.symbolHeightInPitches(A);e.addExtra(new r(A,M,n.getSymbolWidth(A),y,{scalex:m,scaley:m,top:y+P/2,bottom:y-P/2})),C=n.getSymbolWidth(A)/2}return{notehead:b,accidentalshiftx:x,dotshiftx:S,extraLeft:C}};t.exports=createNoteHead})),ae=e.n(((e,t)=>{var n=z(),r=Z(),a=B(),createTimeSignature=function(e,t){e.el_type=`timeSignature`;var o=new n(e,0,10,`staff-extra time-signature`,t);if(e.type===`specified`)for(var c=0,l=0;l<e.value.length;l++)if(l!==0&&(o.addRight(new a(`+`,c+1,r.getSymbolWidth(`+`),6,{thickness:r.symbolHeightInPitches(`+`)})),c+=r.getSymbolWidth(`+`)+2),e.value[l].den){for(var u=0,d=0;d<e.value[l].num.length;d++)u+=r.getSymbolWidth(e.value[l].num[d]);var f=0;for(d=0;d<e.value[l].num.length;d++)f+=r.getSymbolWidth(e.value[l].den[d]);var p=Math.max(u,f);o.addRight(new a(e.value[l].num,c+(p-u)/2,u,8,{thickness:r.symbolHeightInPitches(e.value[l].num[0])})),o.addRight(new a(e.value[l].den,c+(p-f)/2,f,4,{thickness:r.symbolHeightInPitches(e.value[l].den[0])})),c+=p}else{for(var m=0,h=0;h<e.value[l].num.length;h++)m+=r.getSymbolWidth(e.value[l].num[h]);o.addRight(new a(e.value[l].num,c,m,6,{thickness:r.symbolHeightInPitches(e.value[l].num[0])})),c+=m}else e.type===`common_time`?o.addRight(new a(`timesig.common`,0,r.getSymbolWidth(`timesig.common`),6,{thickness:r.symbolHeightInPitches(`timesig.common`)})):e.type===`cut_time`?o.addRight(new a(`timesig.cut`,0,r.getSymbolWidth(`timesig.cut`),6,{thickness:r.symbolHeightInPitches(`timesig.cut`)})):e.type===`tempus_imperfectum`?o.addRight(new a(`timesig.imperfectum`,0,r.getSymbolWidth(`timesig.imperfectum`),6,{thickness:r.symbolHeightInPitches(`timesig.imperfectum`)})):e.type===`tempus_imperfectum_prolatio`?o.addRight(new a(`timesig.imperfectum2`,0,r.getSymbolWidth(`timesig.imperfectum2`),6,{thickness:r.symbolHeightInPitches(`timesig.imperfectum2`)})):e.type===`tempus_perfectum`?o.addRight(new a(`timesig.perfectum`,0,r.getSymbolWidth(`timesig.perfectum`),6,{thickness:r.symbolHeightInPitches(`timesig.perfectum`)})):e.type===`tempus_perfectum_prolatio`?o.addRight(new a(`timesig.perfectum2`,0,r.getSymbolWidth(`timesig.perfectum2`),6,{thickness:r.symbolHeightInPitches(`timesig.perfectum2`)})):console.log(`time signature:`,e);return o};t.exports=createTimeSignature})),oe=e.n(((e,t)=>{t.exports=function DynamicDecoration(e,t,n){this.type=`DynamicDecoration`,this.anchor=e,this.dec=t,n===`below`?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}})),se=e.n(((e,t)=>{t.exports=function CrescendoElem(e,t,n,r){this.type=`CrescendoElem`,this.anchor1=e,this.anchor2=t,this.dir=n,r===`above`?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}})),ce=e.n(((e,t)=>{t.exports=function GlissandoElem(e,t){this.type=`GlissandoElem`,this.anchor1=e,this.anchor2=t}})),le=e.n(((e,t)=>{var n=function TieElem(e){this.type=`TieElem`,this.anchor1=e.anchor1,this.anchor2=e.anchor2,e.isGrace&&(this.isGrace=!0),e.fixedY&&(this.fixedY=!0),e.stemDir&&(this.stemDir=e.stemDir),e.voiceNumber!==void 0&&(this.voiceNumber=e.voiceNumber),e.style!==void 0&&(this.dotted=!0),this.internalNotes=[]};n.prototype.addInternalNote=function(e){this.internalNotes.push(e)},n.prototype.setEndAnchor=function(e){this.anchor2=e,this.anchor1?(this.top=Math.max(this.anchor1.pitch,this.anchor2.pitch)+4,this.bottom=Math.min(this.anchor1.pitch,this.anchor2.pitch)-4):(this.top=this.anchor2.pitch+4,this.bottom=this.anchor2.pitch-4)},n.prototype.setStartX=function(e){this.startLimitX=e},n.prototype.setEndX=function(e){this.endLimitX=e},n.prototype.setHint=function(){this.hint=!0},n.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14;this.anchor1&&this.anchor1.stemDir===`down`&&this.anchor2&&this.anchor2.stemDir===`down`?this.above=!0:this.anchor1&&this.anchor1.stemDir===`up`&&this.anchor2&&this.anchor2.stemDir===`up`?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above=this.anchor1.stemDir===`down`:this.anchor2?this.above=this.anchor2.stemDir===`down`:this.above=e>=6}},n.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(this.voiceNumber===0)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&this.anchor1.stemDir===`down`&&(e=!0),this.anchor2&&this.anchor2.stemDir===`down`&&(e=!0);for(var t=0;t<this.internalNotes.length;t++)this.internalNotes[t].stemDir===`down`&&(e=!0);this.above=e}},n.prototype.calcX=function(e,t){this.anchor1?(this.startX=this.anchor1.x,this.anchor1.scalex<1&&(this.startX-=3)):this.startLimitX?this.startX=this.startLimitX.x+this.startLimitX.w:this.anchor2?this.startX=this.anchor2.x-20:this.startX=e,!this.anchor1&&this.dotted&&(this.startX-=3),this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=t},n.prototype.calcTieY=function(){this.anchor1?this.startY=this.anchor1.pitch:this.anchor2?this.startY=this.anchor2.pitch:this.startY=this.above?14:0,this.anchor2?this.endY=this.anchor2.pitch:this.anchor1?this.endY=this.anchor1.pitch:this.endY=this.above?14:0},n.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&this.anchor1.stemDir===`up`&&!this.fixedY?(this.startY=(this.anchor1.highestVert+this.anchor1.pitch)/2,this.startX+=this.anchor1.w/2):this.startY=this.anchor1.pitch;var e=this.anchor2.parent.beam&&this.anchor2.parent.beam.stemsUp&&this.anchor2.parent.beam.elems[0]!==this.anchor2.parent,t=(this.anchor2.highestVert+this.anchor2.pitch)/2;if(this.above&&this.anchor2.stemDir===`up`&&!this.fixedY&&!e&&t<this.startY?(this.endY=t,this.endX+=Math.round(this.anchor2.w/2)):this.endY=this.above&&e?this.anchor2.highestVert:this.anchor2.pitch,this.anchor1.scalex===1){var n=!!this.anchor1.parent.beam,r=!!this.anchor2.parent.beam;n&&this.anchor1.parent!==this.anchor1.parent.beam.elems[this.anchor1.parent.beam.elems.length-1]&&(this.above?this.startY=this.anchor1.parent.fixed.t:this.startY=this.anchor1.parent.fixed.b),r&&this.anchor2.parent!==this.anchor2.parent.beam.elems[0]&&(this.above?this.endY=this.anchor2.parent.fixed.t:this.endY=this.anchor2.parent.fixed.b)}}else this.anchor1?this.startY=this.endY=this.anchor1.pitch:this.anchor2?this.startY=this.endY=this.anchor2.pitch:(this.startY=this.above?14:0,this.endY=this.above?14:0)},n.prototype.avoidCollisionAbove=function(){if(this.above){for(var e=-50,t=0;t<this.internalNotes.length;t++)this.internalNotes[t].highestVert>e&&(e=this.internalNotes[t].highestVert);e>this.startY&&e>this.endY&&(this.startY=this.endY=e-1)}},n.prototype.getYBounds=function(){var e=10,t=1e3;this.isTie?(this.calcTieDirection(),this.calcX(e,t),this.calcTieY()):(this.calcSlurDirection(),this.calcX(e,t),this.calcSlurY());var n,r;return this.above?(r=Math.min(this.startY,this.endY),n=r+3):(n=Math.min(this.startY,this.endY),r=n-3),[n,r]},t.exports=n})),ue=e.n(((e,t)=>{var n=oe(),r=se(),a=ce(),o=Z(),c=B(),l=le(),u=function Decoration(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},closeDecoration=function(e,t,n,r,a,u,d,f,p){for(var m,h=0;h<t.length;h++){if(t[h]===`staccato`||t[h]===`tenuto`||t[h]===`accent`&&!p){var g=`scripts.`+t[h];if(t[h]===`accent`&&(g=`scripts.sforzato`),m=m===void 0?d===`down`?n+2:f-2:d===`down`?m+2:m-2,t[h]===`accent`)d===`up`?m--:m++;else switch(m){case 2:case 4:case 6:case 8:case 10:d===`up`?m--:m++;break}n>9&&m++;var _=r/2;o.getSymbolAlign(g)!==`center`&&(_-=o.getSymbolWidth(g)/2),a.addFixedX(new c(g,_,o.getSymbolWidth(g),m))}if(t[h]===`slide`&&a.heads[0]){var y=a.heads[0].pitch;y-=2;var b=new c(``,-u-15,0,y-1),x=new c(``,-u-5,0,y+1);a.addFixedX(b),a.addFixedX(x),e.addOther(new l({anchor1:b,anchor2:x,fixedY:!0}))}}return m===void 0&&(m=n),{above:m,below:a.bottom}},volumeDecoration=function(e,t,r,a){for(var o=0;o<t.length;o++)switch(t[o]){case`p`:case`mp`:case`pp`:case`ppp`:case`pppp`:case`f`:case`ff`:case`fff`:case`ffff`:case`sfz`:case`mf`:var c=new n(r,t[o],a);e.addOther(c)}},compoundDecoration=function(e,t,n,r,a){function highestPitch(){if(r.heads.length===0)return 10;for(var e=r.heads[0].pitch,t=1;t<r.heads.length;t++)e=Math.max(e,r.heads[t].pitch);return e}function lowestPitch(){if(r.heads.length===0)return 2;for(var e=r.heads[0].pitch,t=1;t<r.heads.length;t++)e=Math.min(e,r.heads[t].pitch);return e}function compoundDecoration(e,t){var l=a===`down`?lowestPitch()+1:highestPitch()+9;a!==`down`&&t===1&&l--;var u=n/2;u+=a===`down`?-5:3;for(var d=0;d<t;d++)--l,r.addFixedX(new c(e,u,o.getSymbolWidth(e),l))}for(var l=0;l<e.length;l++)switch(e[l]){case`/`:compoundDecoration(`flags.ugrace`,1);break;case`//`:compoundDecoration(`flags.ugrace`,2);break;case`///`:compoundDecoration(`flags.ugrace`,3);break;case`////`:compoundDecoration(`flags.ugrace`,4);break}},stackedDecoration=function(e,t,n,r,a,l,u,d){function incrementPlacement(e,t){e===`above`?r.above+=t:r.below-=t}function getPlacement(e){var t;return e===`above`?(t=r.above,t<l&&(t=l)):(t=r.below,t>u&&(t=u)),t}function textDecoration(e,r,a){var o=getPlacement(r);n.addFixedX(new c(e,t/2,0,o+2,{type:`decoration`,klass:`ornament`,thickness:3,anchor:a})),incrementPlacement(r,5)}function symbolDecoration(e,r){var a=t/2;o.getSymbolAlign(e)!==`center`&&(a-=o.getSymbolWidth(e)/2);var l=o.symbolHeightInPitches(e)+1,u=getPlacement(r);u=r===`above`?u+l/2:u-l/2,n.addFixedX(new c(e,a,o.getSymbolWidth(e),u,{klass:`ornament`,thickness:o.symbolHeightInPitches(e),position:r})),incrementPlacement(r,l)}for(var f={"+":`scripts.stopped`,open:`scripts.open`,snap:`scripts.snap`,wedge:`scripts.wedge`,thumb:`scripts.thumb`,shortphrase:`scripts.shortphrase`,mediumphrase:`scripts.mediumphrase`,longphrase:`scripts.longphrase`,trill:`scripts.trill`,roll:`scripts.roll`,irishroll:`scripts.roll`,marcato:`scripts.umarcato`,dmarcato:`scripts.dmarcato`,umarcato:`scripts.umarcato`,turn:`scripts.turn`,uppermordent:`scripts.prall`,pralltriller:`scripts.prall`,mordent:`scripts.mordent`,lowermordent:`scripts.mordent`,downbow:`scripts.downbow`,upbow:`scripts.upbow`,fermata:`scripts.ufermata`,invertedfermata:`scripts.dfermata`,breath:`,`,coda:`scripts.coda`,segno:`scripts.segno`},p=!1,m=0;m<e.length;m++)switch(e[m]){case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`D.C.`:case`D.S.`:textDecoration(e[m],a,`middle`),p=!0;break;case`D.C.alcoda`:textDecoration(`D.C. al coda`,a,`end`),p=!0;break;case`D.C.alfine`:textDecoration(`D.C. al fine`,a,`end`),p=!0;break;case`D.S.alcoda`:textDecoration(`D.S. al coda`,a,`end`),p=!0;break;case`D.S.alfine`:textDecoration(`D.S. al fine`,a,`end`),p=!0;break;case`fine`:textDecoration(`FINE`,a,`middle`),p=!0;break;case`+`:case`open`:case`snap`:case`wedge`:case`thumb`:case`shortphrase`:case`mediumphrase`:case`longphrase`:case`trill`:case`roll`:case`irishroll`:case`marcato`:case`dmarcato`:case`turn`:case`uppermordent`:case`pralltriller`:case`mordent`:case`lowermordent`:case`downbow`:case`upbow`:case`fermata`:case`breath`:case`umarcato`:case`coda`:case`segno`:symbolDecoration(f[e[m]],a),p=!0;break;case`invertedfermata`:symbolDecoration(f[e[m]],`below`),p=!0;break;case`mark`:n.klass=`mark`;break;case`accent`:d&&(symbolDecoration(`scripts.sforzato`,a),p=!0);break}return p};function leftDecoration(e,t,n){for(var r=0;r<e.length;r++)switch(e[r]){case`arpeggio`:for(var a=t.abcelem.minpitch-1;a<=t.abcelem.maxpitch;a+=2)t.addExtra(new c(`scripts.arpeggio`,-o.getSymbolWidth(`scripts.arpeggio`)*2-n,0,a+2,{klass:`ornament`,thickness:o.symbolHeightInPitches(`scripts.arpeggio`)}));break}}u.prototype.dynamicDecoration=function(e,t,n,o){for(var c,l,u,d=0;d<t.length;d++)switch(t[d]){case`diminuendo(`:this.startDiminuendoX=n,c=void 0;break;case`diminuendo)`:c={start:this.startDiminuendoX,stop:n},this.startDiminuendoX=void 0;break;case`crescendo(`:this.startCrescendoX=n,l=void 0;break;case`crescendo)`:l={start:this.startCrescendoX,stop:n},this.startCrescendoX=void 0;break;case`~(`:case`glissando(`:this.startGlissandoX=n,u=void 0;break;case`~)`:case`glissando)`:u={start:this.startGlissandoX,stop:n},this.startGlissandoX=void 0;break}c&&e.addOther(new r(c.start,c.stop,`>`,o)),l&&e.addOther(new r(l.start,l.stop,`<`,o)),u&&e.addOther(new a(u.start,u.stop))},u.prototype.createDecoration=function(e,t,n,r,a,o,c,l,u,d,f){u||={ornamentPosition:`above`,volumePosition:d?`above`:`below`,dynamicPosition:d?`above`:`below`},volumeDecoration(e,t,a,u.volumePosition),this.dynamicDecoration(e,t,a,u.dynamicPosition),compoundDecoration(t,n,r,a,c);var p=closeDecoration(e,t,n,r,a,o,c,l,f);p.above=Math.max(p.above,this.minTop),p.below=Math.min(p.below,l),stackedDecoration(t,r,a,p,u.ornamentPosition,this.minTop,l,f),leftDecoration(t,a,o)},t.exports=u})),Q=e.n(((e,t)=>{t.exports=function EndingElem(e,t,n){this.type=`EndingElem`,this.text=e,this.anchor1=t,this.anchor2=n,this.endingHeightAbove=5,this.pitch=void 0}})),de=e.n(((e,t)=>{var calcHeight=function(e){for(var t=0,n=0;n<e.voices.length;n++){var r=e.voices[n].staff;e.voices[n].duplicate||(t+=r.top,t+=-r.bottom)}return t};t.exports=calcHeight})),fe=e.n(((e,t)=>{var n=de(),StaffGroupElement=function(e){this.getTextSize=e,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};StaffGroupElement.prototype.setLimit=function(e,t){t.specialY[e]&&(t.staff.specialY[e]?t.staff.specialY[e]=Math.max(t.staff.specialY[e],t.specialY[e]):t.staff.specialY[e]=t.specialY[e])},StaffGroupElement.prototype.addVoice=function(e,t,n){var r=this.voices.length;this.voices[r]=e,this.staffs[t]?this.staffs[t].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:n,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},e.staff=this.staffs[t]},StaffGroupElement.prototype.setHeight=function(){this.height=n(this)},StaffGroupElement.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},StaffGroupElement.prototype.setStaffLimits=function(e){e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom),this.setLimit(`tempoHeightAbove`,e),this.setLimit(`partHeightAbove`,e),this.setLimit(`volumeHeightAbove`,e),this.setLimit(`dynamicHeightAbove`,e),this.setLimit(`endingHeightAbove`,e),this.setLimit(`chordHeightAbove`,e),this.setLimit(`lyricHeightAbove`,e),this.setLimit(`lyricHeightBelow`,e),this.setLimit(`chordHeightBelow`,e),this.setLimit(`volumeHeightBelow`,e),this.setLimit(`dynamicHeightBelow`,e)},t.exports=StaffGroupElement})),pe=e.n(((e,t)=>{var n=z(),r=B(),a=function TempoElement(e,t,n){this.type=`TempoElement`,this.tempo=e,this.tempo.type=`tempo`,this.tuneNumber=t,this.totalHeightInPitches=6,this.tempoHeightAbove=this.totalHeightInPitches,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(n,e,t))};a.prototype.setX=function(e){this.x=e},a.prototype.createNote=function(e,t,a){var o=.75,c=t.duration[0],l=new n(t,c,1,`tempo`,a),u,d,f;c<=1/32?(f=`noteheads.quarter`,d=`flags.u32nd`,u=0):c<=1/16?(f=`noteheads.quarter`,d=`flags.u16th`,u=0):c<=3/32?(f=`noteheads.quarter`,d=`flags.u16nd`,u=1):c<=1/8?(f=`noteheads.quarter`,d=`flags.u8th`,u=0):c<=3/16?(f=`noteheads.quarter`,d=`flags.u8th`,u=1):c<=1/4?(f=`noteheads.quarter`,u=0):c<=3/8?(f=`noteheads.quarter`,u=1):c<=1/2?(f=`noteheads.half`,u=0):c<=3/4?(f=`noteheads.half`,u=1):c<=1?(f=`noteheads.whole`,u=0):c<=1.5?(f=`noteheads.whole`,u=1):c<=2?(f=`noteheads.dbl`,u=0):(f=`noteheads.dbl`,u=1);var p=e(l,f,{verticalPos:0},{dir:`up`,flag:d,dot:u,scale:o}).notehead;l.addHead(p);var m;if(f!==`noteheads.whole`&&f!==`noteheads.dbl`){var h=1/3*o,g=5*o;m=new r(null,p.dx+p.w,0,h,{type:`stem`,pitch2:g,linewidth:-.6}),l.addRight(m)}return l},t.exports=a})),me=e.n(((e,t)=>{var n=function TripletElem(e,t,n){this.type=`TripletElem`,this.anchor1=t,this.number=e,this.durationClass=(`d`+Math.round(t.parent.durationClass*1e3)/1e3).replace(/\./,`-`),this.middleElems=[],this.flatBeams=n.flatBeams};n.prototype.isClosed=function(){return!!this.anchor2},n.prototype.middleNote=function(e){this.middleElems.push(e)},n.prototype.setCloseAnchor=function(e){this.anchor2=e,(!this.anchor1.parent.beam||this.anchor1.stemDir===`up`)&&(this.endingHeightAbove=4)},t.exports=n})),he=e.n(((e,t)=>{function germanNote(e){switch(e){case`B#`:return`H#`;case`B♯`:return`H♯`;case`B`:return`H`;case`Bb`:return`B`;case`B♭`:return`B`}return e}function translateChord(e,t,n){var r=e.split(`
|
|
27
|
+
`);for(let e=0;e<r.length;e++){let a=r[e].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(!a)continue;let o=a[1]||``,c=a[2]||``,l=a[4]||``;n&&(o=germanNote(o),l=germanNote(l));let u=t?``:``,d=l?`/`+l:``;r[e]=[o,c,d].join(u)}return r.join(`
|
|
28
|
+
`)}t.exports=translateChord})),ge=e.n(((e,t)=>{var n=B(),r=w(),a=he(),addChord=function(e,t,n,r,a,o,c,l){for(var u=0;u<n.chord.length;u++){var d=n.chord[u].position,f=n.chord[u].rel_position,p=d===`left`||d===`right`||d===`below`||d===`above`||!!f,m,h;p?(m=`annotationfont`,h=`abcjs-annotation`):(m=`gchordfont`,h=`abcjs-chord`);var g=e.attr(m,h),_=n.chord[u].name,y;if(typeof _==`string`)y=chordString(_,d,f,p,m,h,g,e,t,n,r,a,o,c,l),r=y.roomTaken,a=y.roomTakenRight;else for(var b=0;b<_.length;b++)y=chordString(_[b].text,d,f,p,m,h,g,e,t,n,r,a,o,c,l),r=y.roomTaken,a=y.roomTakenRight}return{roomTaken:r,roomTakenRight:a}};function chordString(e,t,o,c,l,u,d,f,p,m,h,g,_,y,b){for(var x=e.split(`
|
|
29
|
+
`),S=x.length-1;S>=0;S--){var C=x[S],w=0,T;c||(C=a(C,y,b));var E=f.calc(C,l,u),D=E.width,O=E.height/r.STEP;switch(t){case`left`:h+=D+7,w=-h,T=m.averagepitch,p.addExtra(new n(C,w,D+4,T,{type:`text`,height:O,dim:d,position:`left`}));break;case`right`:g+=4,w=g,T=m.averagepitch,p.addRight(new n(C,w,D+4,T,{type:`text`,height:O,dim:d,position:`right`}));break;case`below`:p.addRight(new n(C,0,0,void 0,{type:`text`,position:`below`,height:O,dim:d,realWidth:D}));break;case`above`:p.addRight(new n(C,0,0,void 0,{type:`text`,position:`above`,height:O,dim:d,realWidth:D}));break;default:if(o){var k=o.y+3*r.STEP;p.addRight(new n(C,w+o.x,0,m.minpitch+k/r.STEP,{position:`relative`,type:`text`,height:O,dim:d}))}else{var A=`above`;m.positioning&&m.positioning.chordPosition&&(A=m.positioning.chordPosition),A!==`hidden`&&p.addCentered(new n(C,_/2,D,void 0,{type:`chord`,position:A,height:O,dim:d,realWidth:D}))}}}return{roomTaken:h,roomTakenRight:g}}t.exports=addChord})),_e=e.n(((e,t)=>{var n=z(),r=X(),a=te(),o=ne(),c=re(),l=ie(),d=ae(),f=ue(),p=Q(),m=Z(),h=B(),g=w(),_=fe(),y=pe(),b=le(),x=me(),S=F(),C=ge(),T=D(),E=u(),getDuration=function(e){var t=0;return e.duration&&(t=e.duration),t},O=!1,k={rest:{0:`rests.whole`,1:`rests.half`,2:`rests.quarter`,3:`rests.8th`,4:`rests.16th`,5:`rests.32nd`,6:`rests.64th`,7:`rests.128th`,multi:`rests.multimeasure`},note:{"-1":`noteheads.dbl`,0:`noteheads.whole`,1:`noteheads.half`,2:`noteheads.quarter`,3:`noteheads.quarter`,4:`noteheads.quarter`,5:`noteheads.quarter`,6:`noteheads.quarter`,7:`noteheads.quarter`,nostem:`noteheads.quarter`},rhythm:{"-1":`noteheads.slash.whole`,0:`noteheads.slash.whole`,1:`noteheads.slash.whole`,2:`noteheads.slash.quarter`,3:`noteheads.slash.quarter`,4:`noteheads.slash.quarter`,5:`noteheads.slash.quarter`,6:`noteheads.slash.quarter`,7:`noteheads.slash.quarter`,nostem:`noteheads.slash.nostem`},x:{"-1":`noteheads.indeterminate`,0:`noteheads.indeterminate`,1:`noteheads.indeterminate`,2:`noteheads.indeterminate`,3:`noteheads.indeterminate`,4:`noteheads.indeterminate`,5:`noteheads.indeterminate`,6:`noteheads.indeterminate`,7:`noteheads.indeterminate`,nostem:`noteheads.indeterminate`},harmonic:{"-1":`noteheads.harmonic.quarter`,0:`noteheads.harmonic.quarter`,1:`noteheads.harmonic.quarter`,2:`noteheads.harmonic.quarter`,3:`noteheads.harmonic.quarter`,4:`noteheads.harmonic.quarter`,5:`noteheads.harmonic.quarter`,6:`noteheads.harmonic.quarter`,7:`noteheads.harmonic.quarter`,nostem:`noteheads.harmonic.quarter`},triangle:{"-1":`noteheads.triangle.quarter`,0:`noteheads.triangle.quarter`,1:`noteheads.triangle.quarter`,2:`noteheads.triangle.quarter`,3:`noteheads.triangle.quarter`,4:`noteheads.triangle.quarter`,5:`noteheads.triangle.quarter`,6:`noteheads.triangle.quarter`,7:`noteheads.triangle.quarter`,nostem:`noteheads.triangle.quarter`},uflags:{3:`flags.u8th`,4:`flags.u16th`,5:`flags.u32nd`,6:`flags.u64th`},dflags:{3:`flags.d8th`,4:`flags.d16th`,5:`flags.d32nd`,6:`flags.d64th`}},AbstractEngraver=function(e,t,n){this.decoration=new f,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=n.bagpipes,this.flatBeams=n.flatbeams,this.graceSlurs=n.graceSlurs,this.percmap=n.percmap,this.initialClef=n.initialClef,this.jazzchords=!!n.jazzchords,this.accentAbove=!!n.accentAbove,this.germanAlphabet=!!n.germanAlphabet,this.reset()};AbstractEngraver.prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.voiceColor=void 0,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},this.colorByVoice={},this.tripletmultiplier=1,this.abcline=void 0,this.accidentalSlot=void 0,this.accidentalshiftx=void 0,this.dotshiftx=void 0,this.hasVocals=!1,this.minY=void 0,this.partstartelem=void 0,this.startlimitelem=void 0,this.stemdir=void 0},AbstractEngraver.prototype.setStemHeight=function(e){this.stemHeight=Math.round(e*10/g.STEP)/10},AbstractEngraver.prototype.getCurrentVoiceId=function(e,t){return`s`+e+`v`+t},AbstractEngraver.prototype.pushCrossLineElems=function(e,t){this.slursbyvoice[this.getCurrentVoiceId(e,t)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(e,t)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(e,t)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(e,t)]=this.voiceScale,this.voiceColor&&(this.colorByVoice[this.getCurrentVoiceId(e,t)]=this.voiceColor)},AbstractEngraver.prototype.popCrossLineElems=function(e,t){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(e,t)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(e,t)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(e,t)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(e,t)],this.voiceScale===void 0&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]},AbstractEngraver.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e[t].voices.length;n++)for(var r=0;r<e[t].voices[n].length;r++){var a=e[t].voices[n][r];if(a.lyric){(!a.positioning||a.positioning.vocalPosition===`below`)&&(this.hasVocals=!0);return}}},AbstractEngraver.prototype.createABCLine=function(e,t,n){this.minY=2,this.containsLyrics(e);var r=new _(this.getTextSize);this.tempoSet=!1;for(var a=0;a<e.length;a++)O&&this.restoreState(),O=!1,this.createABCStaff(r,e[a],t,a,n);return r},AbstractEngraver.prototype.createABCStaff=function(e,t,n,r,l){e.getTextSize.updateFonts(t);for(var u=0;u<t.voices.length;u++){var f=new S(u,t.voices.length);u===0?(f.barfrom=t.connectBarLines===`start`||t.connectBarLines===`continue`,f.barto=t.connectBarLines===`continue`||t.connectBarLines===`end`):f.duplicate=!0,t.title&&t.title[u]&&(f.header=t.title[u].replace(/\\n/g,`
|
|
30
|
+
`),f.headerPosition=6+e.getTextSize.baselineToCenter(f.header,`voicefont`,`staff-extra voice-name`,u,t.voices.length)/g.STEP),t.clef&&t.clef.type===`perc`&&(f.isPercussion=!0);var p=(!this.initialClef||l===0)&&o(t.clef,this.tuneNumber);p&&(u===0&&t.barNumber&&this.addMeasureNumber(t.barNumber,p),f.addChild(p),this.startlimitelem=p);var m=c(t.key,this.tuneNumber);if(m&&(f.addChild(m),this.startlimitelem=m),t.meter){t.meter.type===`specified`?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var h=d(t.meter,this.tuneNumber);f.addChild(h),this.startlimitelem=h}f.duplicate&&(f.children=[]);var _=t.clef.stafflines||t.clef.stafflines===0?t.clef.stafflines:5;e.addVoice(f,r,_);var y=_===1;this.createABCVoice(t.voices[u],n,r,u,y,f),e.setStaffLimits(f),u===0&&(t.brace===`start`||!e.brace&&t.brace?(e.brace||=[],e.brace.push(new a(f,`brace`))):t.brace===`end`&&e.brace?e.brace[e.brace.length-1].setBottomStaff(f):t.brace===`continue`&&e.brace&&e.brace[e.brace.length-1].continuing(f),t.bracket===`start`||!e.bracket&&t.bracket?(e.bracket||=[],e.bracket.push(new a(f,`bracket`))):t.bracket===`end`&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(f):t.bracket===`continue`&&e.bracket&&e.bracket[e.bracket.length-1].continuing(f))}};function getBeamGroup(e,t){var n=e[t];if(n.el_type!==`note`||!n.startBeam||n.endBeam)return{count:1,elem:n};for(var r=[];t<e.length&&e[t].el_type===`note`&&(r.push(e[t]),!e[t].endBeam);)t++;return{count:r.length,elem:r}}AbstractEngraver.prototype.createABCVoice=function(e,t,r,a,o,c){this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?`down`:null,this.abcline=e,this.partstartelem&&(this.partstartelem=new p(``,null,null),c.addOther(this.partstartelem));var u=c.voicetotal<2?-1:c.voicenumber;for(var d in this.slurs)this.slurs.hasOwnProperty(d)&&(this.slurs[d]=new b({force:this.slurs[d].force,voiceNumber:u,stemDir:this.slurs[d].stemDir,style:this.slurs[d].dotted}),O&&this.slurs[d].setHint(),c.addOther(this.slurs[d]));for(var f=0;f<this.ties.length;f++)this.ties[f]=new b({force:this.ties[f].force,stemDir:this.ties[f].stemDir,voiceNumber:u,style:this.ties[f].dotted}),O&&this.ties[f].setHint(),c.addOther(this.ties[f]);for(var m=0;m<this.abcline.length;m++)setAveragePitch(this.abcline[m]),this.minY=Math.min(this.abcline[m].minpitch,this.minY);for(var h=r===0,g=0;g<this.abcline.length;){var _=getBeamGroup(this.abcline,g),x=this.createABCElement(h,o,c,_.elem);if(x)for(f=0;f<x.length;f++){if(!this.tempoSet&&t&&!t.suppress){this.tempoSet=!0;var S=new n(t,0,0,`tempo`,this.tuneNumber,{});S.addFixedX(new y(t,this.tuneNumber,l)),c.addChild(S)}c.addChild(x[f])}g+=_.count}this.pushCrossLineElems(r,a)},AbstractEngraver.prototype.saveState=function(){this.tiesSave=E.cloneArray(this.ties),this.slursSave=E.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=E.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=E.cloneHashOfArrayOfHash(this.tiesbyvoice)},AbstractEngraver.prototype.restoreState=function(){this.ties=E.cloneArray(this.tiesSave),this.slurs=E.cloneHashOfHash(this.slursSave),this.slursbyvoice=E.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=E.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},AbstractEngraver.prototype.createABCElement=function(e,t,r,a){var u=[];switch(a.el_type){case void 0:u=this.createBeam(t,r,a);break;case`note`:u[0]=this.createNote(a,!1,t,r),this.triplet&&this.triplet.isClosed()&&(r.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case`bar`:u[0]=this.createBarLine(r,a,e),r.duplicate&&u.length>0&&(u[0].invisible=!0);break;case`meter`:u[0]=d(a,this.tuneNumber),this.startlimitelem=u[0],r.duplicate&&u.length>0&&(u[0].invisible=!0);break;case`clef`:if(u[0]=o(a,this.tuneNumber),!u[0])return null;r.duplicate&&u.length>0&&(u[0].invisible=!0);break;case`key`:var f=c(a,this.tuneNumber);f&&(u[0]=f,this.startlimitelem=u[0]),r.duplicate&&u.length>0&&(u[0].invisible=!0);break;case`stem`:this.stemdir=a.direction===`auto`?void 0:a.direction;break;case`part`:var p=new n(a,0,0,`part`,this.tuneNumber),m=this.getTextSize.calc(a.title,`partsfont`,`part`);p.addFixedX(new h(a.title,0,0,void 0,{type:`part`,height:m.height/g.STEP})),u[0]=p;break;case`tempo`:var _=new n(a,0,0,`tempo`,this.tuneNumber);_.addFixedX(new y(a,this.tuneNumber,l)),u[0]=_;break;case`style`:a.head===`normal`?delete this.style:this.style=a.head;break;case`hint`:O=!0,this.saveState();break;case`midi`:break;case`scale`:this.voiceScale=a.size;break;case`color`:this.voiceColor=a.color,r.color=this.voiceColor;break;default:var b=new n(a,0,0,`unsupported`,this.tuneNumber);b.addFixed(new h(`element type `+a.el_type,0,0,void 0,{type:`debug`})),u[0]=b}return u};function setAveragePitch(e){if(e.pitches){sortPitch(e);for(var t=0,n=0;n<e.pitches.length;n++)t+=e.pitches[n].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}AbstractEngraver.prototype.createBeam=function(e,t,n){var a=[],o=new r(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,n[0]);O&&o.setHint();for(var c=0;c<n.length;c++)o.runningDirection(n[c]);o.setStemDirection();var l=this.stemdir;for(this.stemdir=o.stemsUp?`up`:`down`,c=0;c<n.length;c++){var u=n[c],d=this.createNote(u,!0,e,t);a.push(d),o.add(d),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return o.calcDir(),t.addBeam(o),this.stemdir=l,a};var sortPitch=function(e){var t;do{t=!0;for(var n=0;n<e.pitches.length-1;n++)if(e.pitches[n].pitch>e.pitches[n+1].pitch){t=!1;var r=e.pitches[n];e.pitches[n]=e.pitches[n+1],e.pitches[n+1]=r}}while(!t)},ledgerLines=function(e,t,n,r,a,o,c,l,u){for(var d=n;d>11;d--)d%2==0&&!r&&e.addFixed(new h(null,l,(a+4)*u,d,{type:`ledger`}));for(d=t;d<1;d++)d%2==0&&!r&&e.addFixed(new h(null,l,(a+4)*u,d,{type:`ledger`}));for(d=0;d<o.length;d++){var f=a;c===`down`&&(f=-f),e.addFixed(new h(null,f+l,(a+4)*u,o[d],{type:`ledger`}))}};AbstractEngraver.prototype.addGraceNotes=function(e,t,n,a,o,c,u){var d=3/5;o=Math.round(3.5/5*o);var f=null,p;e.gracenotes.length>1&&(f=new r(o,`grace`,c),O&&f.setHint(),f.mainNote=n);var g,_=[];for(g=e.gracenotes.length-1;g>=0;g--)u+=10,_[g]=u,e.gracenotes[g].accidental&&(u+=7);for(g=0;g<e.gracenotes.length;g++){var y=e.gracenotes[g].verticalPos;p=f?null:k.uflags[c?5:3];var x=l(n,`noteheads.quarter`,e.gracenotes[g],{dir:`up`,headx:-_[g],extrax:-_[g],flag:p,scale:d*this.voiceScale,accidentalSlot:[]});x.notehead.highestVert=x.notehead.pitch+o;var S=x.notehead;if(this.addSlursAndTies(n,e.gracenotes[g],S,t,`up`,!0),n.addExtra(S),e.gracenotes[g].acciaccatura){var C=e.gracenotes[g].verticalPos+7*d,w=f?5:6;n.addRight(new h(`flags.ugrace`,-_[g]+w,0,C,{scalex:d,scaley:d}))}if(f){var T=e.gracenotes[g].duration/2;c&&(T/=2);var E={heads:[S],abcelem:{averagepitch:y,minpitch:y,maxpitch:y,duration:T}};f.add(E)}else{var D=y+1/3*d,A=y+7*d,j=S.dx+S.w;n.addExtra(new h(null,j,0,D,{type:`stem`,pitch2:A,linewidth:-.6}))}ledgerLines(n,y,y,!1,m.getSymbolWidth(`noteheads.quarter`),[],!0,S.dx-1,.6);var M=e.rest&&(e.rest.type===`spacer`||e.rest.type===`invisible`);g===0&&!c&&this.graceSlurs&&!M&&t.addOther(new b({anchor1:S,anchor2:a,isGrace:!0}))}return f&&(f.calcDir(),t.addBeam(f)),u};function addRestToAbsElement(e,t,n,r,a,o,c,u,d){var f,p=7,g,_,y;switch(a&&(o===`down`&&(p=3),o===`up`&&(p=11)),c&&(p=n<.5||n<1?7:5),t.rest.type){case`whole`:f=k.rest[0],t.averagepitch=p,t.minpitch=p,t.maxpitch=p,r=0;break;case`rest`:f=t.style===`rhythm`?k.rhythm[-u]:k.rest[-u],t.averagepitch=p,t.minpitch=p,t.maxpitch=p;break;case`invisible`:case`invisible-multimeasure`:case`spacer`:f=``,t.averagepitch=p,t.minpitch=p,t.maxpitch=p;break;case`multimeasure`:f=k.rest.multi,t.averagepitch=p,t.minpitch=p,t.maxpitch=p,r=0;var b=m.getSymbolWidth(f);e.addHead(new h(f,b,b*2,7));var x=new h(``+t.rest.text,b,b,16,{type:`multimeasure-text`});e.addExtra(x)}if(t.rest.type.indexOf(`multimeasure`)<0&&t.rest.type!==`invisible`){var S=l(e,f,{verticalPos:p},{dot:r,scale:d});g=S.notehead,g&&(e.addHead(g),_=S.accidentalshiftx,y=S.dotshiftx)}return{noteHead:g,roomTaken:_,roomTakenRight:y}}function addIfNotExist(e,t){for(var n=0;n<e.length;n++)if(JSON.stringify(e[n])===JSON.stringify(t))return;e.push(t)}AbstractEngraver.prototype.addNoteToAbcElement=function(e,t,n,r,a,o,c,u,d){var f=0,p,g=0,_=0,y,b,x=[],S=[],C=0,w=t.averagepitch>=6?`down`:`up`;r&&(w=r),a=t.style?t.style:a,(!a||a===`normal`)&&(a=`note`);var E=o?k[a].nostem:k[a][-c];E||console.log(`noteSymbol:`,a,c,o);var D;for(D=w===`down`?t.pitches.length-2:1;w===`down`?D>=0:D<t.pitches.length;D=w===`down`?D-1:D+1){var O=t.pitches[w===`down`?D+1:D-1],A=t.pitches[D],j=w===`down`?O.pitch-A.pitch:A.pitch-O.pitch;j<=1&&!O.printer_shift&&(A.printer_shift=j?`different`:`same`,(A.verticalPos>11||A.verticalPos<1)&&x.push(A.verticalPos-A.verticalPos%2),w===`down`?g=m.getSymbolWidth(E)+2:f=m.getSymbolWidth(E)+2)}var M=t.pitches.length;for(D=0;D<t.pitches.length;D++){if(!u)var N=w===`down`&&D!==0||w===`up`&&D!==M-1?null:k[w===`down`?`dflags`:`uflags`][-c];var P;if(t.pitches[D].style)P=k[t.pitches[D].style][-c];else if(d.isPercussion&&this.percmap){P=E;var F=this.percmap[T(t.pitches[D])];F&&F.noteHead&&k[F.noteHead]&&(P=k[F.noteHead][-c])}else P=E;t.pitches[D].highestVert=t.pitches[D].verticalPos;var I=(r===`up`||w===`up`)&&D===0,L=(r===`down`||w===`down`)&&D===M-1;if(I||L){if((t.startSlur||M===1)&&(t.pitches[D].highestVert=t.pitches[M-1].verticalPos,getDuration(t)<1&&(r===`up`||w===`up`)&&(t.pitches[D].highestVert+=6)),t.startSlur)for(t.pitches[D].startSlur||(t.pitches[D].startSlur=[]),b=0;b<t.startSlur.length;b++)addIfNotExist(t.pitches[D].startSlur,t.startSlur[b]);if(t.endSlur)for(t.pitches[D].highestVert=t.pitches[M-1].verticalPos,getDuration(t)<1&&(r===`up`||w===`up`)&&(t.pitches[D].highestVert+=6),t.pitches[D].endSlur||(t.pitches[D].endSlur=[]),b=0;b<t.endSlur.length;b++)addIfNotExist(t.pitches[D].endSlur,t.endSlur[b])}var R=!u&&c<=-1,z=l(e,P,t.pitches[D],{dir:w,extrax:-g,flag:N,dot:n,dotshiftx:f,scale:this.voiceScale,accidentalSlot:S,shouldExtendStem:!r,printAccidentals:!d.isPercussion});C=Math.max(m.getSymbolWidth(P),C),e.extraw-=z.extraLeft,p=z.notehead,p&&(this.addSlursAndTies(e,t.pitches[D],p,d,R?w:null,!1),t.gracenotes&&t.gracenotes.length>0&&--p.bottom,e.addHead(p)),g+=z.accidentalshiftx,_=Math.max(_,z.dotshiftx)}if(R){var B=Math.round(70*this.voiceScale)/10,V=w===`down`?t.minpitch-B:t.minpitch+1/3;V>6&&!r&&(V=6);var H=w===`down`?t.maxpitch-1/3:t.maxpitch+B;H<6&&!r&&(H=6);var ee=w===`down`||e.heads.length===0?0:e.heads[0].w,U=w===`down`?1:-1;p&&p.c===`noteheads.slash.quarter`&&(w===`down`?--H:V+=1),p&&p.c===`noteheads.triangle.quarter`&&(w===`down`?H-=.7:V-=1.2),e.addRight(new h(null,ee,0,V,{type:`stem`,pitch2:H,linewidth:U,bottom:V-1})),y=Math.min(V,H)}return{noteHead:p,roomTaken:g,roomTakenRight:_,min:y,additionalLedgers:x,dir:w,symbolWidth:C}},AbstractEngraver.prototype.addLyric=function(e,t){var n=``;t.lyric.forEach(function(e){var t=e.divider===` `?``:e.divider;n+=e.syllable+t+`
|
|
31
|
+
`});var r=this.getTextSize.calc(n,`vocalfont`,`lyric`),a=t.positioning?t.positioning.vocalPosition:`below`;e.addCentered(new h(n,0,r.width,void 0,{type:`lyric`,position:a,height:r.height/g.STEP,dim:this.getTextSize.attr(`vocalfont`,`lyric`)}))},AbstractEngraver.prototype.createNote=function(e,t,r,a){var o=null,c=0,l=0,u=0,d=[],f,p=getDuration(e),m=!1;p===0&&(m=!0,p=.25,t=!0);for(var g=Math.floor(Math.log(p)/Math.log(2)),_=0,y=2**g,b=y/2;y<p;_++,y+=b,b/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var S=p*this.tripletmultiplier;e.rest&&e.rest.type===`multimeasure`&&(S=1),e.rest&&e.rest.type===`invisible-multimeasure`&&(S=this.measureLength*e.rest.text);var w=e.rest?`rest`:`note`,T=new n(e,S,1,w,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});if(O&&T.setHint(),e.rest){this.measureLength===p&&e.rest.type!==`invisible`&&e.rest.type!==`spacer`&&e.rest.type.indexOf(`multimeasure`)<0&&(e.rest.type=`whole`);var E=addRestToAbsElement(T,e,p,_,a.voicetotal>1,this.stemdir,r,g,this.voiceScale);o=E.noteHead,c=E.roomTaken,l=E.roomTakenRight}else{var D=this.addNoteToAbcElement(T,e,_,this.stemdir,this.style,m,g,t,a);D.min!==void 0&&(this.minY=Math.min(D.min,this.minY)),o=D.noteHead,c=D.roomTaken,l=D.roomTakenRight,d=D.additionalLedgers,f=D.dir,u=D.symbolWidth}if(e.lyric!==void 0&&this.addLyric(T,e),e.gracenotes!==void 0&&(c+=this.addGraceNotes(e,a,T,o,this.stemHeight*this.voiceScale,this.isBagpipes,c)),e.decoration){var k=t&&f!==`up`?Math.min(-3,T.bottom-6):T.bottom;this.decoration.createDecoration(a,e.decoration,T.top,o?o.w:0,T,c,f,k,e.positioning,this.hasVocals,this.accentAbove)}if(e.barNumber&&T.addFixed(new h(e.barNumber,-10,0,0,{type:`barNumber`})),ledgerLines(T,e.minpitch,e.maxpitch,e.rest,u,d,f,-2,1),e.chord!==void 0){var A=C(this.getTextSize,T,e,c,l,u,this.jazzchords,this.germanAlphabet);c=A.roomTaken,l=A.roomTakenRight}return e.startTriplet&&(this.triplet=new x(e.startTriplet,o,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(o),this.triplet&&!e.startTriplet&&!e.endTriplet&&!(e.rest&&e.rest.type===`spacer`)&&this.triplet.middleNote(o),T},AbstractEngraver.prototype.addSlursAndTies=function(e,t,n,r,a,o){if(t.endTie&&this.ties.length>0){for(var c=!1,l=0;l<this.ties.length;l++)if(this.ties[l].anchor1&&this.ties[l].anchor1.pitch===n.pitch){this.ties[l].setEndAnchor(n),r.setRange(this.ties[l]),this.ties.splice(l,1),c=!0;break}c||(this.ties[0].setEndAnchor(n),r.setRange(this.ties[0]),this.ties.splice(0,1))}var u=r.voicetotal<2?-1:r.voicenumber;if(t.startTie){var d=new b({anchor1:n,force:this.stemdir===`down`||this.stemdir===`up`,stemDir:this.stemdir,isGrace:o,voiceNumber:u,style:t.startTie.style});O&&d.setHint(),this.ties[this.ties.length]=d,r.addOther(d),e.startTie=!0}var f,p;if(t.endSlur)for(var m=0;m<t.endSlur.length;m++)p=t.endSlur[m],this.slurs[p]?(f=this.slurs[p],f.setEndAnchor(n),r.setRange(f),delete this.slurs[p]):(f=new b({anchor2:n,stemDir:this.stemdir,voiceNumber:u}),O&&f.setHint(),r.addOther(f)),this.startlimitelem&&f.setStartX(this.startlimitelem);else if(!o)for(var h in this.slurs)this.slurs.hasOwnProperty(h)&&this.slurs[h].addInternalNote(n);if(t.startSlur)for(m=0;m<t.startSlur.length;m++)p=t.startSlur[m].label,f=new b({anchor1:n,stemDir:this.stemdir,voiceNumber:u,style:t.startSlur[m].style}),O&&f.setHint(),this.slurs[p]=f,r.addOther(f)},AbstractEngraver.prototype.addMeasureNumber=function(e,t){var n=this.getTextSize.calc(e,`measurefont`,`bar-number`),r=0;t.isClef&&(r+=n.width/2);var a=n.width>10&&t.abcelem.type===`treble`?13.5:11;t.addFixed(new h(e,r,n.width,a+n.height/g.STEP,{type:`barNumber`,dim:this.getTextSize.attr(`measurefont`,`bar-number`)}))},AbstractEngraver.prototype.createBarLine=function(e,t,r){var a=new n(t,0,10,`bar`,this.tuneNumber),o=null,c=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var l=t.type===`bar_right_repeat`||t.type===`bar_dbl_repeat`,u=t.type!==`bar_left_repeat`&&t.type!==`bar_thick_thin`&&t.type!==`bar_invisible`,d=t.type===`bar_right_repeat`||t.type===`bar_dbl_repeat`||t.type===`bar_left_repeat`||t.type===`bar_thin_thick`||t.type===`bar_thick_thin`,f=t.type===`bar_left_repeat`||t.type===`bar_thick_thin`||t.type===`bar_thin_thin`||t.type===`bar_dbl_repeat`,m=t.type===`bar_left_repeat`||t.type===`bar_dbl_repeat`;if(l||m){for(var g in this.slurs)this.slurs.hasOwnProperty(g)&&this.slurs[g].setEndX(a);this.startlimitelem=a}if(l&&(a.addRight(new h(`dots.dot`,c,1,7)),a.addRight(new h(`dots.dot`,c,1,5)),c+=6),u&&(o=new h(null,c,1,2,{type:`bar`,pitch2:10,linewidth:.6}),a.addRight(o)),t.type===`bar_invisible`&&(o=new h(null,c,1,2,{type:`none`,pitch2:10,linewidth:.6}),a.addRight(o)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,d?3:1,a,0,`down`,2,t.positioning,this.hasVocals,this.accentAbove),d&&(c+=4,o=new h(null,c,4,2,{type:`bar`,pitch2:10,linewidth:4}),a.addRight(o),c+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=o,this.partstartelem=null),f&&(c+=3,o=new h(null,c,1,2,{type:`bar`,pitch2:10,linewidth:.6}),a.addRight(o)),m&&(c+=3,a.addRight(new h(`dots.dot`,c,1,7)),a.addRight(new h(`dots.dot`,c,1,5))),t.startEnding&&r){var _=this.getTextSize.calc(t.startEnding,`repeatfont`,``).width;a.minspacing+=_+10,this.partstartelem=new p(t.startEnding,o,null),e.addOther(this.partstartelem)}return a.extraw-=5,t.chord!==void 0&&C(this.getTextSize,a,t,0,0,0,!1,this.germanAlphabet),a},t.exports=AbstractEngraver})),ve=e.n(((e,t)=>{var n=`http://www.w3.org/2000/svg`;function Svg(e){this.svg=createSvg(),this.currentGroup=[],e.appendChild(this.svg)}Svg.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=createSvg(),this.currentGroup=[],e&&(e.innerHTML=``,e.appendChild(this.svg))}},Svg.prototype.setTitle=function(e){var t=document.createElement(`title`),n=document.createTextNode(e);t.appendChild(n),this.svg.insertBefore(t,this.svg.firstChild)},Svg.prototype.setResponsiveWidth=function(e,t){if(this.svg.setAttribute(`viewBox`,`0 0 `+e+` `+t),this.svg.setAttribute(`preserveAspectRatio`,`xMinYMin meet`),this.svg.removeAttribute(`height`),this.svg.removeAttribute(`width`),this.svg.style.display=`inline-block`,this.svg.style.position=`absolute`,this.svg.style.top=`0`,this.svg.style.left=`0`,this.svg.parentNode){var n=this.svg.parentNode.getAttribute(`class`);n?n.indexOf(`abcjs-container`)<0&&this.svg.parentNode.setAttribute(`class`,n+` abcjs-container`):this.svg.parentNode.setAttribute(`class`,`abcjs-container`),this.svg.parentNode.style.display=`inline-block`,this.svg.parentNode.style.position=`relative`,this.svg.parentNode.style.width=`100%`;var r=t/e*100;this.svg.parentNode.style[`padding-bottom`]=r+`%`,this.svg.parentNode.style[`vertical-align`]=`middle`,this.svg.parentNode.style.overflow=`hidden`}},Svg.prototype.setSize=function(e,t){this.svg.setAttribute(`width`,e),this.svg.setAttribute(`height`,t)},Svg.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},Svg.prototype.setScale=function(e){e===1?(this.svg.style.transform=``,this.svg.style[`-ms-transform`]=``,this.svg.style[`-webkit-transform`]=``):(this.svg.style.transform=`scale(`+e+`,`+e+`)`,this.svg.style[`-ms-transform`]=`scale(`+e+`,`+e+`)`,this.svg.style[`-webkit-transform`]=`scale(`+e+`,`+e+`)`,this.svg.style[`transform-origin`]=`0 0`,this.svg.style[`-ms-transform-origin-x`]=`0`,this.svg.style[`-ms-transform-origin-y`]=`0`,this.svg.style[`-webkit-transform-origin-x`]=`0`,this.svg.style[`-webkit-transform-origin-y`]=`0`)},Svg.prototype.insertStyles=function(e){var t=document.createElementNS(n,`style`);t.textContent=e,this.svg.insertBefore(t,this.svg.firstChild)},Svg.prototype.setParentStyles=function(e){for(var t in e)e.hasOwnProperty(t)&&this.svg.parentNode&&(this.svg.parentNode.style[t]=e[t]);this.dummySvg&&=(document.querySelector(`body`).removeChild(this.dummySvg),null)};function constructHLine(e,t,n){var r=n-e;return`M `+e+` `+t+` l `+r+` 0 l 0 1 l `+-r+` 0 z `}function constructVLine(e,t,n){var r=n-t;return`M `+e+` `+t+` l 0 `+r+` l 1 0 l 0 `+-r+` z `}Svg.prototype.rect=function(e){var t=[],n=e.x,r=e.y,a=e.x+e.width,o=e.y+e.height;return t.push(constructHLine(n,r,a)),t.push(constructHLine(n,o,a)),t.push(constructVLine(a,r,o)),t.push(constructVLine(n,o,r)),this.path({path:t.join(` `),stroke:`none`,"data-name":e[`data-name`]})},Svg.prototype.dottedLine=function(e){var t=document.createElementNS(n,`line`);t.setAttribute(`x1`,e.x1),t.setAttribute(`x2`,e.x2),t.setAttribute(`y1`,e.y1),t.setAttribute(`y2`,e.y2),t.setAttribute(`stroke`,e.stroke),t.setAttribute(`stroke-dasharray`,`5,5`),this.svg.insertBefore(t,this.svg.firstChild)},Svg.prototype.rectBeneath=function(e){var t=document.createElementNS(n,`rect`);t.setAttribute(`x`,e.x),t.setAttribute(`width`,e.width),t.setAttribute(`y`,e.y),t.setAttribute(`height`,e.height),e.stroke&&t.setAttribute(`stroke`,e.stroke),e[`stroke-opacity`]&&t.setAttribute(`stroke-opacity`,e[`stroke-opacity`]),e.fill&&t.setAttribute(`fill`,e.fill),e[`fill-opacity`]&&t.setAttribute(`fill-opacity`,e[`fill-opacity`]),this.svg.insertBefore(t,this.svg.firstChild)},Svg.prototype.text=function(e,t,r){var a=document.createElementNS(n,`text`);for(var o in a.setAttribute(`stroke`,`none`),t)t.hasOwnProperty(o)&&a.setAttribute(o,t[o]);for(var c=(``+e).split(`
|
|
32
|
+
`),l=0;l<c.length;l++){var u=document.createElementNS(n,`tspan`);if(u.setAttribute(`x`,t.x?t.x:0),l!==0&&u.setAttribute(`dy`,`1.2em`),c[l].indexOf(``)!==-1){var d=c[l].split(``);if(u.textContent=d[0],d[1]){var f=document.createElementNS(n,`tspan`);f.setAttribute(`dy`,`-0.3em`),f.setAttribute(`style`,`font-size:0.7em`),f.textContent=d[1],u.appendChild(f)}if(d[2]){var p=d[1]?`0.4em`:`0.1em`,m=document.createElementNS(n,`tspan`);m.setAttribute(`dy`,p),m.setAttribute(`style`,`font-size:0.7em`),m.textContent=d[2],u.appendChild(m)}}else u.textContent=c[l];a.appendChild(u)}return r?r.appendChild(a):this.append(a),a},Svg.prototype.richTextLine=function(e,t,r,a,o,c){var l=document.createElementNS(n,`text`);l.setAttribute(`stroke`,`none`),l.setAttribute(`class`,a),l.setAttribute(`x`,t),l.setAttribute(`y`,r),l.setAttribute(`text-anchor`,o),l.setAttribute(`dominant-baseline`,`middle`);for(var u=0;u<e.length;u++){for(var d=e[u],f=document.createElementNS(n,`tspan`),p=Object.keys(d.attrs),m=0;m<p.length;m++){var h=d.attrs[p[m]];h!==``&&f.setAttribute(p[m],h)}f.textContent=d.content,l.appendChild(f)}return c?c.appendChild(l):this.append(l),l},Svg.prototype.guessWidth=function(e,t){var n=this.createDummySvg(),r=this.text(e,t,n),a;try{a=r.getBBox(),a=isNaN(a.height)||!a.height?{width:t[`font-size`]/2,height:t[`font-size`]+2}:{width:a.width,height:a.height}}catch{a={width:t[`font-size`]/2,height:t[`font-size`]+2}}return n.removeChild(r),a},Svg.prototype.createDummySvg=function(){return this.dummySvg||(this.dummySvg=createSvg(),this.dummySvg.setAttribute(`style`,[`display: block !important;`,`height: 1px;`,`width: 1px;`,`position: absolute;`].join(``)),document.querySelector(`body`).appendChild(this.dummySvg)),this.dummySvg};var r={};Svg.prototype.getTextSize=function(e,t,n){if(typeof e==`number`&&(e=``+e),!e||e.match(/^\s+$/))return{width:0,height:0};var a;if(e.length<20&&(a=e+JSON.stringify(t),r[a]))return r[a];var o=!n;n||=this.text(e,t);var c;try{c=n.getBBox(),c=isNaN(c.height)||!c.height?this.guessWidth(e,t):{width:c.width,height:c.height}}catch{c=this.guessWidth(e,t)}return o&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(n):this.svg.removeChild(n)),a&&(r[a]=c),c},Svg.prototype.openGroup=function(e){e||={};var t=document.createElementNS(n,`g`);return e.klass&&t.setAttribute(`class`,e.klass),e.fill&&t.setAttribute(`fill`,e.fill),e.stroke&&t.setAttribute(`stroke`,e.stroke),e[`data-name`]&&t.setAttribute(`data-name`,e[`data-name`]),e.prepend?this.prepend(t):this.append(t),this.currentGroup.unshift(t),t},Svg.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&e.children.length===0?(e.parentElement.removeChild(e),null):e},Svg.prototype.path=function(e){var t=document.createElementNS(n,`path`);for(var r in e)e.hasOwnProperty(r)&&(r===`path`?t.setAttributeNS(null,`d`,e.path):r===`klass`?t.setAttributeNS(null,`class`,e[r]):e[r]!==void 0&&t.setAttributeNS(null,r,e[r]));return this.append(t),t},Svg.prototype.pathToBack=function(e){var t=document.createElementNS(n,`path`);for(var r in e)e.hasOwnProperty(r)&&(r===`path`?t.setAttributeNS(null,`d`,e.path):r===`klass`?t.setAttributeNS(null,`class`,e[r]):t.setAttributeNS(null,r,e[r]));return this.prepend(t),t},Svg.prototype.lineToBack=function(e){for(var t=document.createElementNS(n,`line`),r=Object.keys(e),a=0;a<r.length;a++)t.setAttribute(r[a],e[r[a]]);return this.prepend(t),t},Svg.prototype.append=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)},Svg.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},Svg.prototype.setAttributeOnElement=function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttributeNS(null,n,t[n])},Svg.prototype.moveElementToChild=function(e,t){e.appendChild(t)};function createSvg(){var e=document.createElementNS(n,`svg`);return e.setAttributeNS(`http://www.w3.org/2000/xmlns/`,`xmlns:xlink`,`http://www.w3.org/1999/xlink`),e.setAttribute(`role`,`img`),e.setAttribute(`fill`,`currentColor`),e.setAttribute(`stroke`,`currentColor`),e}t.exports=Svg})),ye=e.n(((e,t)=>{var n=w(),r=ve(),Renderer=function(e){this.paper=new r(e),this.controller=null,this.space=3*n.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf(`Firefox/112.0`)>=0};Renderer.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},Renderer.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint=e.media===`print`,this.setPadding(e)},Renderer.prototype.setLineThickness=function(e){this.lineThickness=e},Renderer.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},Renderer.prototype.setPadding=function(e){function setPaddingVariable(t,n,r,a,o){e.formatting[r]===void 0?t.paddingOverride[n]===void 0?t.isPrint?t.padding[n]=a:t.padding[n]=o:t.padding[n]=t.paddingOverride[n]:t.padding[n]=e.formatting[r]}setPaddingVariable(this,`top`,`topmargin`,38,15),setPaddingVariable(this,`bottom`,`botmargin`,38,15),setPaddingVariable(this,`left`,`leftmargin`,68,15),setPaddingVariable(this,`right`,`rightmargin`,68,15)},Renderer.prototype.adjustNonScaledItems=function(e){this.padding.top/=e,this.padding.bottom/=e,this.padding.left/=e,this.padding.right/=e,this.abctune.formatting.headerfont.size/=e,this.abctune.formatting.footerfont.size/=e},Renderer.prototype.initVerticalSpace=function(){this.spacing={composer:7.56,graceBefore:8.67,graceInside:10.67,graceAfter:16,info:0,lineSkipFactor:1.1,music:7.56,paragraphSkipFactor:.4,parts:11.33,slurHeight:1,staffSeparation:61.33,staffTopMargin:0,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},Renderer.prototype.setVerticalSpace=function(e){e.staffsep!==void 0&&(this.spacing.staffSeparation=e.staffsep*4/3),e.composerspace!==void 0&&(this.spacing.composer=e.composerspace*4/3),e.partsspace!==void 0&&(this.spacing.parts=e.partsspace*4/3),e.textspace!==void 0&&(this.spacing.text=e.textspace*4/3),e.musicspace!==void 0&&(this.spacing.music=e.musicspace*4/3),e.titlespace!==void 0&&(this.spacing.title=e.titlespace*4/3),e.sysstaffsep!==void 0&&(this.spacing.systemStaffSeparation=e.sysstaffsep*4/3),e.stafftopmargin!==void 0&&(this.spacing.staffTopMargin=e.stafftopmargin*4/3),e.subtitlespace!==void 0&&(this.spacing.subtitle=e.subtitlespace*4/3),e.topspace!==void 0&&(this.spacing.top=e.topspace*4/3),e.vocalspace!==void 0&&(this.spacing.vocal=e.vocalspace*4/3),e.wordsspace!==void 0&&(this.spacing.words=e.wordsspace*4/3)},Renderer.prototype.calcY=function(e){return this.y-e*n.STEP},Renderer.prototype.moveY=function(e,t){t===void 0&&(t=1),this.y+=e*t},Renderer.prototype.absolutemoveY=function(e){this.y=e},t.exports=Renderer})),be=e.n(((e,t)=>{function FreeText(e,t,n,r,a,o){var c=e.text;this.rows=[];var l;t&&this.rows.push({move:t});var u=n.calc(`textfont`,`defined-text`);if(c===``)this.rows.push({move:u.attr[`font-size`]*2});else if(typeof c==`string`)this.rows.push({move:u.attr[`font-size`]/2}),this.rows.push({left:r,text:c,font:`textfont`,klass:`defined-text`,anchor:`start`,startChar:e.startChar,endChar:e.endChar,absElemType:`freeText`,name:`free-text`}),l=o.calc(c,`textfont`,`defined-text`),this.rows.push({move:l.height});else if(c){for(var d=0,f=r,p=`textfont`,m=0;m<c.length;m++)p=c[m].font?c[m].font:`textfont`,this.rows.push({left:f,text:c[m].text,font:p,klass:`defined-text`,anchor:`start`,startChar:e.startChar,endChar:e.endChar,absElemType:`freeText`,name:`free-text`}),l=o.calc(c[m].text,n.calc(p,`defined-text`).font,`defined-text`),f+=l.width+l.height/2,d=Math.max(d,l.height);this.rows.push({move:d})}else if(e.length===1){var h=a/2;this.rows.push({left:h,text:e[0].text,font:`textfont`,klass:`defined-text`,anchor:`middle`,startChar:e.startChar,endChar:e.endChar,absElemType:`freeText`,name:`free-text`}),l=o.calc(e[0].text,`textfont`,`defined-text`),this.rows.push({move:l.height})}}t.exports=FreeText})),xe=e.n(((e,t)=>{function Separator(e,t,n){this.rows=[],e&&this.rows.push({move:e}),this.rows.push({separator:t,absElemType:`separator`}),n&&this.rows.push({move:n})}t.exports=Separator})),Se=e.n(((e,t)=>{function Subtitle(e,t,n,r,a,o){this.rows=[],e&&this.rows.push({move:e});var c=t.titleleft?`start`:`middle`,l=t.titleleft?a:r;this.rows.push({left:l,text:n.text,font:`subtitlefont`,klass:`text subtitle`,anchor:c,startChar:n.startChar,endChar:n.endChar,absElemType:`subtitle`,name:`subtitle`});var u=o.calc(n.text,`subtitlefont`,`text subtitle`);this.rows.push({move:u.height})}t.exports=Subtitle})),Ce=e.n(((e,t)=>{function addTextIf(e,t,n){if(t.text){t.marginLeft||=0,t.klass||=``,t.anchor||=`start`,t.info||={startChar:-2,endChar:-2},t.marginTop&&e.push({move:t.marginTop});var r={left:t.marginLeft,text:t.text,font:t.font,anchor:t.anchor,startChar:t.info.startChar,endChar:t.info.endChar,"dominant-baseline":t[`dominant-baseline`]};t.absElemType&&(r.absElemType=t.absElemType),!t.inGroup&&t.klass&&(r.klass=t.klass),t.name&&(r.name=t.name),e.push(r);var a=n.calc(`A`,t.font,t.klass),o=t.text.split(`
|
|
33
|
+
`).length;if(t.text[t.text.length-1]===`
|
|
34
|
+
`&&o--,!t.noMove){var c=a.height*1.1*o;e.push({move:Math.round(c)}),t.marginBottom&&e.push({move:t.marginBottom})}}}t.exports=addTextIf})),we=e.n(((e,t)=>{var n=Ce();function richText(e,t,r,a,o,c,l,u){var d=u.calc(`i`,r,a);if(t===``)e.push({move:d.height});else{if(typeof t==`string`){n(e,{marginLeft:c,text:t,font:r,klass:a,marginTop:l.marginTop,anchor:l.anchor,absElemType:l.absElemType,info:l.info,name:o},u);return}l.marginTop&&e.push({move:l.marginTop});var f=0,p={left:c,anchor:l.anchor,phrases:[]};a&&(p.klass=a),e.push(p);for(var m=0;m<t.length;m++){var h=t[m],g=h.font?h.font:u.attr(r,a).font,_={content:h.text};g&&(_.attrs={"font-family":u.getFamily(g.face),"font-size":g.size,"font-weight":g.weight,"font-style":g.style,"font-decoration":g.decoration}),p.phrases.push(_);var y=u.calc(h.text,g,a);f=Math.max(f,y.height),h.text[h.text.length-1]===` `&&d.width}e.push({move:f})}}t.exports=richText})),Te=e.n(((e,t)=>{var n=Ce(),r=we();function TopText(e,t,a,o,c,l,u,d,f,p){if(this.rows=[],e.header&&l){var m=p.calc(`X`,`headerfont`,`abcjs-header abcjs-meta-top`).height;n(this.rows,{marginLeft:u,text:e.header.left,font:`headerfont`,klass:`header meta-top`,marginTop:-m,info:t.header,name:`header`},p),n(this.rows,{marginLeft:u+c/2,text:e.header.center,font:`headerfont`,klass:`header meta-top`,marginTop:-m,anchor:`middle`,info:t.header,name:`header`},p),n(this.rows,{marginLeft:u+c,text:e.header.right,font:`headerfont`,klass:`header meta-top`,marginTop:-m,anchor:`end`,info:t.header,name:`header`},p)}l&&this.rows.push({move:d.top});var h=a.titleleft?`start`:`middle`,g=a.titleleft?u:u+c/2;if(e.title){var _=f?`abcjs-title`:``;r(this.rows,e.title,`titlefont`,_,`title`,g,{marginTop:d.title,anchor:h,absElemType:`title`,info:t.title},p)}if(o.length)for(var y=0;y<o.length&&o[y].subtitle;){var _=f?`abcjs-text abcjs-subtitle`:``;r(this.rows,o[y].subtitle.text,`subtitlefont`,_,`subtitle`,g,{marginTop:d.subtitle,anchor:h,absElemType:`subtitle`,info:o[y].subtitle},p),y++}if(e.rhythm||e.origin||e.composer){if(this.rows.push({move:d.composer}),e.rhythm&&e.rhythm.length>0){var b=!!(e.composer||e.origin),_=f?`abcjs-rhythm`:``;n(this.rows,{marginLeft:u,text:e.rhythm,font:`infofont`,klass:_,absElemType:`rhythm`,noMove:b,info:t.rhythm,name:`rhythm`},p)}e.composer&&e.composer,e.origin&&e.origin;var x=e.composer?e.composer:``;if(e.origin&&(typeof x==`string`&&typeof e.origin==`string`?x+=` (`+e.origin+`)`:typeof x==`string`&&typeof e.origin!=`string`?(x=[{text:x}],x.push({text:` (`}),x=x.concat(e.origin),x.push({text:`)`})):(x.push({text:` (`}),x=x.concat(e.origin),x.push({text:`)`}))),x){var _=f?`abcjs-composer`:``;r(this.rows,x,`composerfont`,_,`composer`,u+c,{anchor:`end`,absElemType:`composer`,info:t.composer,ingroup:!0},p)}}if(e.author&&e.author.length>0){var _=f?`abcjs-author`:``;r(this.rows,e.author,`composerfont`,_,`author`,u+c,{anchor:`end`,absElemType:`author`,info:t.author},p)}if(e.partOrder&&e.partOrder.length>0){var _=f?`abcjs-part-order`:``;r(this.rows,e.partOrder,`partsfont`,_,`part-order`,u,{absElemType:`partOrder`,info:t.partOrder,anchor:`start`},p)}}t.exports=TopText})),Ee=e.n(((e,t)=>{var n=Ce(),r=we();function BottomText(e,t,n,r,a,o,c){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,r,a,o,c),this.extraText(e,r,a,o,c),e.footer&&n&&this.footer(e.footer,t,r,c)}BottomText.prototype.unalignedWords=function(e,t,n,r,a){var o=r?`abcjs-unaligned-words`:``,c=`wordsfont`,l=a.calc(`i`,c,o);this.rows.push({move:n.words}),addMultiLine(this.rows,``,e,t,c,`unalignedWords`,`unalignedWords`,o,`unalignedWords`,n,r,a),this.rows.push({move:l.height})};function addSingleLine(e,t,n,a,o,c,l){n&&(t&&(n=typeof n==`string`?t+n:[{text:t}].concat(n)),o=c?`abcjs-extra-text `+o:``,r(e,n,`historyfont`,o,`description`,a,{absElemType:`extraText`,anchor:`start`},l))}function addMultiLine(e,t,a,o,c,l,u,d,f,p,m,h){if(a){d=m?`abcjs-extra-text `+d:``;var g=h.calc(`A`,c,d);if(typeof a==`string`)t&&(a=t+`
|
|
35
|
+
`+a),n(e,{marginLeft:o,text:a,font:c,absElemType:`extraText`,name:f,"dominant-baseline":`middle`,klass:d},h);else{e.push({startGroup:u,klass:d,name:f}),e.push({move:p.info}),t&&(n(e,{marginLeft:o,text:t,font:c,absElemType:`extraText`,name:f,"dominant-baseline":`middle`},h),e.push({move:g.height*3/4}));for(var _=0;_<a.length;_++)r(e,a[_],c,``,f,o,{anchor:`start`},h),_<a.length-1&&typeof a[_]==`string`&&typeof a[_+1]!=`string`&&e.push({move:g.height*3/4});e.push({endGroup:u,absElemType:l,startChar:-1,endChar:-1,name:f}),e.push({move:g.height})}}}BottomText.prototype.extraText=function(e,t,n,r,a){addSingleLine(this.rows,`Book: `,e.book,t,`abcjs-book`,r,a),addSingleLine(this.rows,`Source: `,e.source,t,`abcjs-source`,r,a),addSingleLine(this.rows,`Discography: `,e.discography,t,`abcjs-discography`,r,a),addMultiLine(this.rows,`Notes:`,e.notes,t,`historyfont`,`extraText`,`notes`,`abcjs-notes`,`description`,n,r,a),addSingleLine(this.rows,`Transcription: `,e.transcription,t,`abcjs-transcription`,r,a),addMultiLine(this.rows,`History:`,e.history,t,`historyfont`,`extraText`,`history`,`abcjs-history`,`description`,n,r,a),addSingleLine(this.rows,`Copyright: `,e[`abc-copyright`],t,`abcjs-copyright`,r,a),addSingleLine(this.rows,`Creator: `,e[`abc-creator`],t,`abcjs-creator`,r,a),addSingleLine(this.rows,`Edited By: `,e[`abc-edited-by`],t,`abcjs-edited-by`,r,a)},BottomText.prototype.footer=function(e,t,r,a){var o=`header meta-bottom`,c=`footerfont`;this.rows.push({startGroup:`footer`,klass:o}),n(this.rows,{marginLeft:r,text:e.left,font:c,klass:o,name:`footer`},a),n(this.rows,{marginLeft:r+t/2,text:e.center,font:c,klass:o,anchor:`middle`,name:`footer`},a),n(this.rows,{marginLeft:r+t,text:e.right,font:c,klass:o,anchor:`end`,name:`footer`},a)},t.exports=BottomText})),De=e.n(((e,t)=>{function findNumber(e,t,n,r){if(e.indexOf(t)===0){var a=e.replace(t,``),o=parseInt(a,10);``+o===a&&(n[r]=o)}}function createAnalysis(e,t){var n=[];if(e.absEl.elemset){for(var r={},a=0;a<e.absEl.elemset.length;a++){var o=e.absEl.elemset[a];if(o)for(var c=o.getAttribute(`class`).split(` `),l=0;l<c.length;l++)r[c[l]]=!0}for(var u=0;u<Object.keys(r).length;u++)n.push(Object.keys(r)[u])}for(var d={},f=0;f<n.length;f++)findNumber(n[f],`abcjs-v`,d,`voice`),findNumber(n[f],`abcjs-l`,d,`line`),findNumber(n[f],`abcjs-m`,d,`measure`);e.staffPos&&(d.staffPos=e.staffPos);for(var p=t.target;p&&p.dataset&&!p.dataset.name&&p.tagName.toLowerCase()!==`svg`;)p=p.parentNode;for(var m=t.target;m&&m.dataset&&!m.dataset.index&&m.tagName.toLowerCase()!==`svg`;)m=m.parentNode;return m&&m.dataset&&(d.name=m.dataset.name,d.clickedName=p.dataset.name,d.parentClasses=m.classList),p&&p.classList&&(d.clickedClasses=p.classList),d.selectableElement=e.svgEl,{classes:n,analysis:d}}t.exports=createAnalysis})),Oe=e.n(((e,t)=>{var n=w(),r=De();function setupSelection(e,t){if(e.rangeHighlight=rangeHighlight,e.dragging)for(var n=0;n<e.selectables.length;n++){var r=e.selectables[n];r.svgEl.getAttribute(`selectable`)===`true`&&(r.svgEl.setAttribute(`tabindex`,0),r.svgEl.setAttribute(`data-index`,n),r.svgEl.addEventListener(`keydown`,keyboardDown.bind(e)),r.svgEl.addEventListener(`keyup`,keyboardSelection.bind(e)),r.svgEl.addEventListener(`focus`,elementFocused.bind(e)))}for(var a=0;a<t.length;a++)t[a].addEventListener(`touchstart`,mouseDown.bind(e),{passive:!0}),t[a].addEventListener(`touchmove`,mouseMove.bind(e),{passive:!0}),t[a].addEventListener(`touchend`,mouseUp.bind(e),{passive:!0}),t[a].addEventListener(`mousedown`,mouseDown.bind(e)),t[a].addEventListener(`mousemove`,mouseMove.bind(e)),t[a].addEventListener(`mouseup`,mouseUp.bind(e))}function getCoord(e){var t=1,n=1,r=e.target.closest(`svg`),a=0;r&&r.viewBox&&r.viewBox.baseVal&&(r.viewBox.baseVal.width!==0&&(t=r.viewBox.baseVal.width/r.clientWidth),r.viewBox.baseVal.height!==0&&(n=r.viewBox.baseVal.height/r.clientHeight),a=r.viewBox.baseVal.y);var o=e.target&&e.target.tagName===`svg`,c,l;return o?(c=e.offsetX,l=e.offsetY):(c=e.layerX,l=e.layerY),c*=t,l*=n,[c,l+a]}function elementFocused(e){this.dragMechanism===`keyboard`&&this.dragYStep!==0&&this.dragTarget&¬ifySelect.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragYStep=0}function keyboardDown(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function keyboardSelection(e){var t=!1,r=e.target.dataset.index;switch(e.keyCode){case 13:case 32:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,this.dragMechanism=`keyboard`,mouseUp.bind(this)(e);break;case 38:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep--,this.dragTarget.svgEl.setAttribute(`transform`,`translate(0,`+this.dragYStep*n.STEP+`)`));break;case 40:t=!0,this.dragTarget=this.selectables[r],this.dragIndex=r,this.dragMechanism=`keyboard`,this.dragTarget&&this.dragTarget.isDraggable&&(this.dragging&&this.dragTarget.isDraggable&&this.dragTarget.absEl.highlight(void 0,this.dragColor),this.dragYStep++,this.dragTarget.svgEl.setAttribute(`transform`,`translate(0,`+this.dragYStep*n.STEP+`)`));break;case 9:this.dragYStep!==0&&mouseUp.bind(this)(e);break;default:break}t&&e.preventDefault()}function findElementInHistory(e,t){if(!t)return-1;for(var n=0;n<e.length;n++)if(t.dataset.index===e[n].svgEl.dataset.index)return n;return-1}function findElementByCoord(e,t,n){for(var r=9999999,a=-1,o=0;o<e.selectables.length&&r>0;o++){var c=e.selectables[o];if(e.getDim(c),c.dim.left<t&&c.dim.right>t&&c.dim.top<n&&c.dim.bottom>n)a=o,r=0;else if(c.dim.top<n&&c.dim.bottom>n){var l=Math.min(Math.abs(c.dim.left-t),Math.abs(c.dim.right-t));l<r&&(r=l,a=o)}else if(c.dim.left<t&&c.dim.right>t){var u=Math.min(Math.abs(c.dim.top-n),Math.abs(c.dim.bottom-n));u<r&&(r=u,a=o)}else{var d=Math.abs(t-c.dim.left)>Math.abs(t-c.dim.right)?Math.abs(t-c.dim.right):Math.abs(t-c.dim.left),f=Math.abs(n-c.dim.top)>Math.abs(n-c.dim.bottom)?Math.abs(n-c.dim.bottom):Math.abs(n-c.dim.top),p=Math.sqrt(d*d+f*f);p<r&&(r=p,a=o)}}return a>=0&&r<=12?a:-1}function getBestMatchCoordinates(e,t,n){return e.x<=t.offsetX&&e.x+e.width>=t.offsetX&&e.y<=t.offsetY&&e.y+e.height>=t.offsetY||Math.abs(t.layerY/n-t.offsetY)<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}function getTarget(e){if(!e)return null;if(e.tagName===`svg`)return e;if(!e.getAttribute)return null;for(var t=e.getAttribute(`selectable`);!t;)e.parentElement?(e=e.parentElement,t=e.tagName===`svg`?!0:e.getAttribute(`selectable`)):t=!0;return e}function getMousePosition(e,t){var n,r,a,o=findElementInHistory(e.selectables,getTarget(t.target));return o>=0?(a=getBestMatchCoordinates(e.selectables[o].svgEl.getBBox(),t,e.scale),n=a[0],r=a[1]):(a=getCoord(t),n=a[0],r=a[1],o=findElementByCoord(e,n,r)),{x:n,y:r,clickedOn:o}}function attachMissingTouchEventAttributes(e){if(!(!e||!e.target||!e.touches||e.touches.length<1)){var t=e.target.getBoundingClientRect(),n=e.touches[0].pageX-t.left,r=e.touches[0].pageY-t.top;e.touches[0].offsetX=n,e.touches[0].offsetY=r,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function mouseDown(e){var t=e;e.type===`touchstart`&&(attachMissingTouchEventAttributes(e),e.touches.length>0&&(t=e.touches[0]));var n=getMousePosition(this,t);n.clickedOn>=0&&(e.type===`touchstart`||e.button===0)&&this.selectables[n.clickedOn]&&(this.dragTarget=this.selectables[n.clickedOn],this.dragIndex=n.clickedOn,this.dragMechanism=`mouse`,this.dragMouseStart={x:n.x,y:n.y},this.dragging&&this.dragTarget.isDraggable&&(addGlobalClass(this.renderer.paper,`abcjs-dragging-in-progress`),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function mouseMove(e){var t=e;if(e.type===`touchmove`&&(attachMissingTouchEventAttributes(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,!(!this.dragTarget||!this.dragging||!this.dragTarget.isDraggable||this.dragMechanism!==`mouse`||!this.dragMouseStart)){var r=getMousePosition(this,t),a=Math.round((r.y-this.dragMouseStart.y)/n.STEP);a!==this.dragYStep&&(this.dragYStep=a,this.dragTarget.svgEl.setAttribute(`transform`,`translate(0,`+a*n.STEP+`)`))}}function mouseUp(e){var t=e;e.type===`touchend`&&this.lastTouchMove&&(attachMissingTouchEventAttributes(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(clearSelection.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),notifySelect.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,t),this.dragTarget.svgEl&&this.dragTarget.svgEl.focus&&(this.dragTarget.svgEl.focus(),this.dragTarget=null,this.dragIndex=-1),removeGlobalClass(this.renderer.svg,`abcjs-dragging-in-progress`))}function setSelection(e){e>=0&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism=`keyboard`,mouseUp.bind(this)({target:this.dragTarget.svgEl}))}function notifySelect(e,t,n,a,o){for(var c=r(e,o),l=c.classes,u=c.analysis,d=0;d<this.listeners.length;d++)this.listeners[d](e.absEl.abcelem,e.absEl.tuneNumber,l.join(` `),u,{step:t,max:n,index:a,setSelection:setSelection.bind(this)},o)}function clearSelection(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function rangeHighlight(e,t){clearSelection.bind(this)();for(var n=0;n<this.staffgroups.length;n++)for(var r=this.staffgroups[n].voices,a=0;a<r.length;a++)for(var o=r[a].children,c=0;c<o.length;c++){var l=o[c].abcelem.startChar,u=o[c].abcelem.endChar;(t>l&&e<u||t===e&&t===u)&&(this.selected[this.selected.length]=o[c],o[c].highlight(void 0,this.selectionColor))}}function getClassSet(e){var t=e.getAttribute(`class`);t||=``;for(var n=t.split(` `),r={},a=0;a<n.length;a++)r[n[a]]=!0;return r}function setClassSet(e,t){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r);e.setAttribute(`class`,n.join(` `))}function addGlobalClass(e,t){if(e){var n=getClassSet(e.svg);n[t]=!0,setClassSet(e.svg,n)}}function removeGlobalClass(e,t){if(e){var n=getClassSet(e.svg);delete n[t],setClassSet(e.svg,n)}}t.exports=setupSelection})),ke=e.n(((e,t)=>{function getBarYAt(e,t,n,r,a){return t+(r-t)/(n-e)*(a-e)}t.exports=getBarYAt})),Ae=e.n(((e,t)=>{var n=B(),r=w(),a=ke(),layoutBeam=function(e){if(!(e.elems.length===0||e.allrests)){var t=calcDy(e.stemsUp,e.isgrace),n=e.elems[0],r=e.elems[e.elems.length-1],a=0,o=e.stemsUp?n.abcelem.maxpitch:n.abcelem.minpitch;a=minStem(n,e.stemsUp,o,a),a=minStem(r,e.stemsUp,o,a),a=Math.max(e.stemHeight,a+3);var c=calcYPos(e.average,e.elems.length,a,e.stemsUp,n.abcelem.averagepitch,r.abcelem.averagepitch,e.isflat,e.min,e.max,e.isgrace),l=calcXPos(e.stemsUp,n,r);e.addBeam({startX:l[0],endX:l[1],startY:c[0],endY:c[1],dy:t});for(var u=createAdditionalBeams(e.elems,e.stemsUp,e.beams[0],e.isgrace,t),d=0;d<u.length;d++)e.addBeam(u[d]);createStems(e.elems,e.stemsUp,e.beams[0],t,e.mainNote)}},getDurlog=function(e){return e===void 0?0:Math.floor(Math.log(e)/Math.log(2))};function minStem(e,t,n,r){if(!e.children)return r;for(var a=0;a<e.children.length;a++){var o=e.children[a];t&&o.top!==void 0&&o.c===`flags.ugrace`?r=Math.max(r,o.top-n):!t&&o.bottom!==void 0&&o.c===`flags.ugrace`&&(r=Math.max(r,n-o.bottom+7))}return r}function calcSlant(e,t,n,r){if(r)return 0;var a=e-t,o=n/2;return a>o&&(a=o),a<-o&&(a=-o),a}function calcDy(e,t){var n=e?r.STEP:-r.STEP;return t&&(n*=.4),n}function calcXPos(e,t,n){var r=t.heads[e?0:t.heads.length-1],a=n.heads[e?0:n.heads.length-1],o=r.x;e&&(o+=r.w-.6);var c=a.x;return c+=e?a.w:.6,[o,c]}function calcYPos(e,t,n,r,a,o,c,l,u,d){var f=n-2,p=n-2,m=Math.round(r?Math.max(e+f,u+p):Math.min(e-f,l-p)),h=calcSlant(a,o,t,c),g=m+Math.floor(h/2),_=m+Math.floor(-h/2);return d||(r&&m<6||!r&&m>6)&&(g=6,_=6),[g,_]}function createStems(e,t,o,c,l){for(var u=0;u<e.length;u++){var d=e[u];if(!d.abcelem.rest){var f=!d.addExtra,p=f?l:d,m=d.heads[t?0:d.heads.length-1],h=1/5,g=m.pitch+(t?h:-h),_=t?m.w:0;f||(_+=m.dx);var y=m.x+_,b=a(o.startX,o.startY,o.endX,o.endY,y),x=t?-.6:.6;t||(b-=c/2/r.STEP),f&&(_+=d.heads[0].dx),m.c===`noteheads.slash.quarter`&&(t?g+=1:--g);var S=new n(null,_,0,g,{type:`stem`,pitch2:b,linewidth:x});S.setX(p.x),p.addRight(S)}}}function createAdditionalBeams(e,t,n,r,o){for(var c=[],l=[],u=0;u<e.length;u++){var d=e[u];if(!d.abcelem.rest){var f=d.heads[t?0:d.heads.length-1],p=f.x+(t?f.w:0),m=a(n.startX,n.startY,n.endX,n.endY,p),h=t?-1.5:1.5;r&&(h=h*2/3);var g=d.abcelem.duration;g===0&&(g=.25);for(var _=getDurlog(g);_<-3;_++){var y=-4-_;if(l[y]?l[y].single=!1:l[y]={x:p+(t?-.6:0),y:m+h*(y+1),durlog:_,single:!0},u>0&&d.abcelem.beambr&&d.abcelem.beambr<=y+1){l[y].split||(l[y].split=[l[y].x]);var b=calcXPos(t,e[u-1],d);l[y].split[l[y].split.length-1]>=b[0]&&(b[0]+=d.w),l[y].split.push(b[0]),l[y].split.push(b[1])}}for(var x=l.length-1;x>=0;x--)if(u===e.length-1||getDurlog(e[u+1].abcelem.duration)>-x-4){var S=p,C=m+h*(x+1);l[x].single&&(S=u===0?p+5:p-5,C=a(n.startX,n.startY,n.endX,n.endY,S)+h*(x+1));var w={startX:l[x].x,endX:S,startY:l[x].y,endY:C,dy:o};if(l[x].split!==void 0){var T=l[x].split;w.endX<=T[T.length-1]&&(T[T.length-1]-=d.w),T.push(w.endX),w.split=l[x].split}c.push(w),l=l.slice(0,x)}}}return c}t.exports=layoutBeam})),je=e.n(((e,t)=>{var n=ke();function layoutTriplet(e){if(e.anchor1&&e.anchor2){e.hasBeam=!!e.anchor1.parent.beam&&e.anchor1.parent.beam===e.anchor2.parent.beam;var t=e.anchor1.parent.beam;if(e.hasBeam&&(t.elems[0]!==e.anchor1.parent||t.elems[t.elems.length-1]!==e.anchor2.parent)&&(e.hasBeam=!1),e.hasBeam){var n=isAbove(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=heightAtMidpoint(n,e.anchor2.x,t),e.yTextPos+=isAbove(t)?3:-2,e.xTextPos=xAtMidpoint(n,e.anchor2.x),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,isAbove(t)&&(e.endingHeightAbove=4)}else{e.startNote=Math.max(e.anchor1.parent.top,9)+4,e.endNote=Math.max(e.anchor2.parent.top,9)+4,e.anchor1.parent.type===`rest`&&e.anchor2.parent.type!==`rest`?e.startNote=e.endNote:e.anchor2.parent.type===`rest`&&e.anchor1.parent.type!==`rest`&&(e.endNote=e.startNote);for(var r=0,a=0;a<e.middleElems.length;a++)r=Math.max(r,e.middleElems[a].top);r+=4,(r>e.startNote||r>e.endNote)&&(e.startNote=r,e.endNote=r),e.flatBeams&&(e.startNote=Math.max(e.startNote,e.endNote),e.endNote=Math.max(e.startNote,e.endNote)),e.yTextPos=e.startNote+(e.endNote-e.startNote)/2,e.xTextPos=e.anchor1.x+(e.anchor2.x+e.anchor2.w-e.anchor1.x)/2,e.top=e.yTextPos+1}}delete e.middleElems,delete e.flatBeams}function isAbove(e){return e.stemsUp}function heightAtMidpoint(e,t,r){if(r.beams.length===0)return 0;r=r.beams[0];var a=e+(t-e)/2;return n(r.startX,r.startY,r.endX,r.endY,a)}function xAtMidpoint(e,t){return e+(t-e)/2}t.exports=layoutTriplet})),Me=e.n(((e,t)=>{var n=Ae(),r=ke(),a=je(),layoutVoice=function(e){for(var t=0;t<e.beams.length;t++)if(e.beams[t].type===`BeamElem`){n(e.beams[t]),moveDecorations(e.beams[t]);for(var r=0;r<e.beams[t].elems.length;r++)e.adjustRange(e.beams[t].elems[r])}for(e.staff.specialY.chordLines=setLaneForChord(e.children),t=0;t<e.otherchildren.length;t++){var o=e.otherchildren[t];o.type===`TripletElem`&&(a(o),e.adjustRange(o))}e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom)};function moveDecorations(e){for(var t=1.5,n=0;n<e.elems.length;n++){var r=e.elems[n];if(r.top)for(var a=yAtNote(r,e),o=0;o<r.children.length;o++){var c=r.children[o];if(c.klass===`ornament`&&c.position!==`below`&&c.bottom-t<a){var l=a-c.bottom+t;c.bottom+=l,c.top+=l,c.pitch+=l,a=r.top=c.top}}}}function placeInLane(e,t){var n=t.getChordDim();if(n){for(var r=0;r<e.length;r++)if(e[r]<n.left){r>0&&t.putChordInLane(r),e[r]=n.right;return}e.push(n.right),t.putChordInLane(e.length-1)}}function setLaneForChord(e){var t=[0],n=[0],r,a,o;for(r=0;r<e.length;r++){for(a=0;a<e[r].children.length;a++)o=e[r].children[a],o.chordHeightAbove&&placeInLane(t,o);for(a=e[r].children.length-1;a>=0;a--)o=e[r].children[a],o.chordHeightBelow&&placeInLane(n,o)}return(t.length>1||n.length>1)&&setLane(e,t.length,n.length),{above:t.length,below:n.length}}function numAnnotationsBelow(e){for(var t=0,n=0;n<e.children.length;n++)e.children[n].chordHeightBelow&&t++;return t}function setLane(e,t,n){for(var r=0;r<e.length;r++){numAnnotationsBelow(e[r]);for(var a=0;a<e[r].children.length;a++){var o=e[r].children[a];o.chordHeightAbove&&o.invertLane(t)}}}function yAtNote(e,t){return t=t.beams[0],r(t.startX,t.startY,t.endX,t.endY,e.x)}t.exports=layoutVoice})),Ne=e.n(((e,t)=>{var n=w(),setUpperAndLowerElements=function(e,t){for(var a,o=0;o<t.staffs.length;o++){var c=t.staffs[o],l={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};if(e.showDebug&&e.showDebug.indexOf(`box`)>=0&&(c.originalTop=c.top,c.originalBottom=c.bottom),incTop(c,l,`lyricHeightAbove`),incTop(c,l,`chordHeightAbove`,c.specialY.chordLines.above),c.specialY.endingHeightAbove&&(c.specialY.chordHeightAbove?c.top+=2:c.top+=c.specialY.endingHeightAbove+r,l.endingHeightAbove=c.top),c.specialY.dynamicHeightAbove&&c.specialY.volumeHeightAbove?(c.top+=Math.max(c.specialY.dynamicHeightAbove,c.specialY.volumeHeightAbove)+r,l.dynamicHeightAbove=c.top,l.volumeHeightAbove=c.top):(incTop(c,l,`dynamicHeightAbove`),incTop(c,l,`volumeHeightAbove`)),incTop(c,l,`partHeightAbove`),incTop(c,l,`tempoHeightAbove`),c.specialY.lyricHeightBelow&&(c.specialY.lyricHeightBelow+=e.spacing.vocal/n.STEP,l.lyricHeightBelow=c.bottom,c.bottom-=c.specialY.lyricHeightBelow+r),c.specialY.chordHeightBelow){l.chordHeightBelow=c.bottom;var u=c.specialY.chordHeightBelow;c.specialY.chordLines.below&&(u*=c.specialY.chordLines.below),c.bottom-=u+r}c.specialY.volumeHeightBelow&&c.specialY.dynamicHeightBelow?(l.volumeHeightBelow=c.bottom,l.dynamicHeightBelow=c.bottom,c.bottom-=Math.max(c.specialY.volumeHeightBelow,c.specialY.dynamicHeightBelow)+r):c.specialY.volumeHeightBelow?(l.volumeHeightBelow=c.bottom,c.bottom-=c.specialY.volumeHeightBelow+r):c.specialY.dynamicHeightBelow&&(l.dynamicHeightBelow=c.bottom,c.bottom-=c.specialY.dynamicHeightBelow+r),e.showDebug&&e.showDebug.indexOf(`box`)>=0&&(c.positionY=l);for(var d=0;d<c.voices.length;d++){var f=t.voices[c.voices[d]];setUpperAndLowerVoiceElements(l,f,e.spacing)}if(a!==void 0){var p=c.top-10,m=a+p,h=e.spacing.systemStaffSeparation/n.STEP-m;h>0&&(c.top+=h)}c.top+=e.spacing.staffTopMargin/n.STEP,a=2-c.bottom}},r=1;function incTop(e,t,n,a){if(e.specialY[n]){var o=e.specialY[n];a&&(o*=a),e.top+=o+r,t[n]=e.top}}function setUpperAndLowerVoiceElements(e,t,n){var r,a;for(r=0;r<t.children.length;r++)a=t.children[r],setUpperAndLowerAbsoluteElements(e,a,n);for(r=0;r<t.otherchildren.length;r++)switch(a=t.otherchildren[r],a.type){case`CrescendoElem`:setUpperAndLowerCrescendoElements(e,a);break;case`DynamicDecoration`:setUpperAndLowerDynamicElements(e,a);break;case`EndingElem`:setUpperAndLowerEndingElements(e,a);break;case`TieElem`:var o=a.getYBounds();t.staff.top=Math.max(t.staff.top,o[0]),t.staff.top=Math.max(t.staff.top,o[1]),t.staff.bottom=Math.min(t.staff.bottom,o[0]),t.staff.bottom=Math.min(t.staff.bottom,o[1]);break}}function setUpperAndLowerAbsoluteElements(e,t,n){for(var r=0;r<t.children.length;r++){var a=t.children[r];for(var o in t.specialY)t.specialY.hasOwnProperty(o)&&a[o]&&(a.pitch=e[o],a.top===void 0&&(a.type===`TempoElement`?setUpperAndLowerTempoElement(e,a):setUpperAndLowerRelativeElements(e,a,n),t.pushTop(a.top),t.pushBottom(a.bottom)))}}function setUpperAndLowerCrescendoElements(e,t){t.dynamicHeightAbove?t.pitch=e.dynamicHeightAbove:t.pitch=e.dynamicHeightBelow}function setUpperAndLowerDynamicElements(e,t){t.volumeHeightAbove?t.pitch=e.volumeHeightAbove:t.pitch=e.volumeHeightBelow}function setUpperAndLowerEndingElements(e,t){t.pitch=e.endingHeightAbove-2}function setUpperAndLowerTempoElement(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var n=t.pitch-t.totalHeightInPitches+1;t.note.top=n,t.note.bottom=n;for(var r=0;r<t.note.children.length;r++){var a=t.note.children[r];a.top+=n,a.bottom+=n,a.pitch+=n,a.pitch2!==void 0&&(a.pitch2+=n)}}}function setUpperAndLowerRelativeElements(e,t,r){switch(t.type){case`part`:t.top=e.partHeightAbove+t.height,t.bottom=e.partHeightAbove;break;case`text`:case`chord`:t.chordHeightAbove?(t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove):(t.top=e.chordHeightBelow,t.bottom=e.chordHeightBelow);break;case`lyric`:t.lyricHeightAbove?(t.top=e.lyricHeightAbove,t.bottom=e.lyricHeightAbove):(t.top=e.lyricHeightBelow+r.vocal/n.STEP,t.bottom=e.lyricHeightBelow+r.vocal/n.STEP,t.pitch-=r.vocal/n.STEP);break;case`debug`:t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove;break}(t.pitch===void 0||t.top===void 0)&&console.error(`RelativeElement position not set.`,t.type,t.pitch,t.top,e)}t.exports=setUpperAndLowerElements})),Pe=e.n(((e,t)=>{var n=function VoiceElements(){};n.beginLayout=function(e,t){t.i=0,t.durationindex=0,t.startx=e,t.minx=e,t.nextx=e,t.spacingduration=0},n.layoutEnded=function(e){return e.i>=e.children.length},n.getNextX=function(e){return Math.max(e.minx,e.nextx)},n.getSpacingUnits=function(e){return Math.sqrt(e.spacingduration*8)},n.layoutOneItem=function(e,t,n,r,a){var o=n.children[n.i];if(!o)return 0;var c=e-n.minx,l=n.durationindex+o.duration>0?r:0;if(o.abcelem.el_type===`note`&&!o.abcelem.rest&&n.voicenumber!==0&&a){var u=a.children[a.i],d=u&&(o.abcelem.maxpitch<=u.abcelem.maxpitch+1&&o.abcelem.maxpitch>=u.abcelem.minpitch-1||o.abcelem.minpitch<=u.abcelem.maxpitch+1&&o.abcelem.minpitch>=u.abcelem.minpitch-1);if(d&&o.abcelem.minpitch===u.abcelem.minpitch&&o.abcelem.maxpitch===u.abcelem.maxpitch&&u.heads&&u.heads.length>0&&o.heads&&o.heads.length>0&&u.heads[0].c===o.heads[0].c&&(d=!1),d){var f=u.heads&&u.heads.length>0?u.heads[0].realWidth:u.fixed.w;o.adjustedWidth||=f+o.w,o.w=o.adjustedWidth;for(var p=0;p<o.children.length;p++){var m=o.children[p];m.name.indexOf(`accidental`)<0&&(m.adjustedWidth||=m.dx+f,m.dx=m.adjustedWidth)}}}var h=getExtraWidth(o,l);return c<h&&(n.i===0||o.type!==`bar`||n.children[n.i-1].type!==`part`&&n.children[n.i-1].type!==`tempo`)&&(e+=h-c),o.setX(e),n.spacingduration=o.duration,n.minx=e+getMinWidth(o),n.i!==n.children.length-1&&(n.minx+=o.minspacing),this.updateNextX(e,t,n),e},n.shiftRight=function(e,t){var n=t.children[t.i];n&&(n.setX(n.x+e),t.minx+=e,t.nextx+=e)},n.updateNextX=function(e,t,n){n.nextx=e+t*this.getSpacingUnits(n)},n.updateIndices=function(e){this.layoutEnded(e)||(e.durationindex+=e.children[e.i].duration,e.children[e.i].type===`bar`&&(e.durationindex=Math.round(e.durationindex*64)/64),e.i++)};function getExtraWidth(e,t){var n=0;return(e.type===`note`||e.type===`bar`)&&(n=t),-e.extraw+n}function getMinWidth(e){return e.w}t.exports=n})),Fe=e.n(((e,t)=>{var n=Pe();function checkLastBarX(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(r.children.length>0){var a=r.children.length-1,o=r.children[a];if(o.abcelem.el_type===`bar`){var c=o.children[0].x;c>t?t=c:o.children[0].x=t}}}}var layoutStaffGroup=function(e,t,r,a,o){var c=1e-7,l=0,u=1e3,d=o;a.startx=d;var f,p=0;for(r&&console.log(`init layout`,e),f=0;f<a.voices.length;f++)n.beginLayout(d,a.voices[f]);for(var m=0;!finished(a.voices);){for(p=null,f=0;f<a.voices.length;f++)!n.layoutEnded(a.voices[f])&&(!p||getDurationIndex(a.voices[f])<p)&&(p=getDurationIndex(a.voices[f]));var h=[],g=[];for(f=0;f<a.voices.length;f++)getDurationIndex(a.voices[f])-p>c?g.push(a.voices[f]):h.push(a.voices[f]);m=0;var _=0;for(f=0;f<h.length;f++)n.getNextX(h[f])>d&&(d=n.getNextX(h[f]),m=n.getSpacingUnits(h[f]),_=h[f].spacingduration);l+=m,u=Math.min(u,m),r&&console.log(`currentduration: `,p,l,u);var y=void 0;for(f=0;f<h.length;f++){var b=h[f];b.voicenumber===0&&(y=f);var x=y!==void 0&&h[y].voicenumber!==b.voicenumber?h[y]:void 0;isSameStaff(b,x)||(x=void 0);var S=n.layoutOneItem(d,e,b,t,x),C=S-d;if(C>0){d=S;for(var w=0;w<f;w++)n.shiftRight(C,h[w])}}for(f=0;f<g.length;f++)g[f].spacingduration-=_,n.updateNextX(d,e,g[f]);for(f=0;f<h.length;f++){var T=h[f];n.updateIndices(T)}}for(f=0;f<a.voices.length;f++)n.getNextX(a.voices[f])>d&&(d=n.getNextX(a.voices[f]),m=n.getSpacingUnits(a.voices[f]));return checkLastBarX(a.voices),l+=m,a.setWidth(d),{spacingUnits:l,minSpace:u}};function finished(e){for(var t=0;t<e.length;t++)if(!n.layoutEnded(e[t]))return!1;return!0}function getDurationIndex(e){return e.durationindex-(e.children[e.i]&&e.children[e.i].duration>0?0:5e-7)}function isSameStaff(e,t){return!e||!e.staff||!e.staff.voices||e.staff.voices.length===0||!t||!t.staff||!t.staff.voices||t.staff.voices.length===0?!1:e.staff.voices[0]===t.staff.voices[0]}t.exports=layoutStaffGroup})),Ie=e.n(((e,t)=>{function getLeftEdgeOfStaff(e,t,n,r,a){var o=e.padding.left,c=0,l,u;for(l=0;l<n.length;l++)n[l].header&&(u=t.calc(n[l].header,`voicefont`,``),c=Math.max(c,u.width));if(c=addBraceSize(c,r,t),c=addBraceSize(c,a,t),c){var d=t.calc(`A`,`voicefont`,``);c+=d.width}o+=c;var f=0;return f=setBraceLocation(r,o,f),f=setBraceLocation(a,o,f),o+f}function addBraceSize(e,t,n){if(t){for(var r=0;r<t.length;r++)if(t[r].header){var a=n.calc(t[r].header,`voicefont`,``);e=Math.max(e,a.width)}}return e}function setBraceLocation(e,t,n){if(e)for(var r=0;r<e.length;r++)setLocation(t,e[r]),n=Math.max(n,e[r].getWidth());return n}function setLocation(e,t){t.x=e}t.exports=getLeftEdgeOfStaff})),Le=e.n(((e,t)=>{var n=Ie();function layoutInGrid(e,t,r){var a=n(e,t.getTextSize,t.voices,t.brace,t.bracket),o=getTotalDuration(t,r.minPadding),c=o.totalDuration,l=o.minSpacing*c;r.minWidth&&(l=Math.max(l,r.minWidth));var u=r.minPadding?r.minPadding/2:2;t.startx=a,t.w=l+a;for(var d=0;d<t.voices.length;d++){var f=t.voices[d];f.startx=a,f.w=l+a;for(var p=a,m=!1,h=0,g=0;g<f.children.length;g++){var _=f.children[g];m||(_.duration===0?(_.x=p,p+=_.w+_.minspacing):(m=!0,h=(l+a-p)/c,t.gridStart=p)),m&&(r.align===`center`?_.x=p+_.duration*h/2-_.w/2:_.duration===0?_.x=p+1-_.w:_.x=p+u-_.extraw,p+=_.duration*h);for(var y=0;y<_.children.length;y++){var b=_.children[y],x=b.dx?b.dx:0;b.x=_.x+x}}t.gridEnd=p}return l}function getTotalDuration(e,t){for(var n=0,r=0,a=0;a<e.voices.length;a++){for(var o=0,c=e.voices[a],l=0;l<c.children.length;l++){var u=c.children[l];if(o+=u.duration,u.duration){var d=(u.w+t)/u.duration;n=Math.max(n,d)}}r=Math.max(r,o)}return{totalDuration:r,minSpacing:n}}t.exports=layoutInGrid})),Re=e.n(((e,t)=>{var n=Me(),r=Ne(),a=Fe(),o=Ie(),c=Le(),layout=function(e,t,a,o,l,u){var d,f,p=a;for(d=0;d<t.lines.length;d++)if(f=t.lines[d],f.staff){var m=u===void 0?setXSpacing(e,p,o,f.staffGroup,t.formatting,d===t.lines.length-1,!1):c(e,f.staffGroup,u);Math.round(m)>Math.round(p)&&(p=m,l&&(d=-1))}for(d=0;d<t.lines.length;d++)if(f=t.lines[d],f.staffGroup&&f.staffGroup.voices){for(var h=0;h<f.staffGroup.voices.length;h++)n(f.staffGroup.voices[h]);r(e,f.staffGroup)}for(d=0;d<t.lines.length;d++)f=t.lines[d],f.staffGroup&&f.staffGroup.setHeight();return p},setXSpacing=function(e,t,n,r,c,l,u){for(var d=o(e,r.getTextSize,r.voices,r.brace,r.bracket),f=n,p=0;p<8;p++){var m=a(f,e.minPadding,u,r,d);if(f=calcHorizontalSpacing(l,c.stretchlast,t+e.padding.left,r.w,f,m.spacingUnits,m.minSpace,e.padding.left+e.padding.right),u&&console.log(`setXSpace`,p,r.w,f,r.minspace),f===null)break}return centerWholeRests(r.voices),r.w-d};function calcHorizontalSpacing(e,t,n,r,a,o,c,l){if(e){if(t===void 0){if(r/n<.66)return null}else if(!(1-(r+l)/n<t))return null}if(Math.abs(n-r)<2)return null;var u=r-o*a;return o>0?(a=(n-u)/o,a*c>50&&(a=50/c),a):null}function centerWholeRests(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=1;r<n.children.length-1;r++){var a=n.children[r];if(a.abcelem.rest&&(a.abcelem.rest.type===`whole`||a.abcelem.rest.type===`multimeasure`)){var o=n.children[r-1],c=n.children[r+1];a.center(o,c)}}}t.exports=layout})),ze=e.n(((e,t)=>{var n=function Classes(e){this.shouldAddClasses=e.shouldAddClasses,this.reset()};n.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},n.prototype.incrLine=function(){this.lineNumber===null?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},n.prototype.incrVoice=function(){this.voiceNumber===null?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},n.prototype.isInMeasure=function(){return this.measureNumber!==null},n.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},n.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},n.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},n.prototype.incrNote=function(){this.noteNumber++},n.prototype.measureTotal=function(){for(var e=0,t=0;t<this.lineNumber;t++)e+=this.measureTotalPerLine[t]?this.measureTotalPerLine[t]:0;return this.measureNumber&&(e+=this.measureNumber),e},n.prototype.getCurrent=function(e){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}},n.prototype.generate=function(e){if(!this.shouldAddClasses)return``;var t=[];if(e&&e.length>0&&t.push(e),e===`abcjs-tab-number`)return t.join(` `);if(e===`text instrument-name`)return`abcjs-text abcjs-instrument-name`;if(this.lineNumber!==null&&t.push(`l`+this.lineNumber),this.measureNumber!==null&&t.push(`m`+this.measureNumber),this.measureNumber!==null&&t.push(`mm`+this.measureTotal()),this.voiceNumber!==null&&t.push(`v`+this.voiceNumber),e&&(e.indexOf(`note`)>=0||e.indexOf(`rest`)>=0||e.indexOf(`lyric`)>=0)&&this.noteNumber!==null&&t.push(`n`+this.noteNumber),t.length>0){t=t.join(` `),t=t.split(` `);for(var n=0;n<t.length;n++)t[n].indexOf(`abcjs-`)!==0&&t[n].length>0&&(t[n]=`abcjs-`+t[n])}return t.join(` `)},t.exports=n})),Be=e.n(((e,t)=>{var n=function GetFontAndAttr(e,t){this.formatting=e,this.classes=t};n.prototype.updateFonts=function(e){e.gchordfont&&(this.formatting.gchordfont=e.gchordfont),e.tripletfont&&(this.formatting.tripletfont=e.tripletfont),e.annotationfont&&(this.formatting.annotationfont=e.annotationfont),e.vocalfont&&(this.formatting.vocalfont=e.vocalfont)},n.prototype.getFamily=function(e){return e[0]===`"`&&e[e.length-1]===`"`?e.substring(1,e.length-1):e},n.prototype.calc=function(e,t){var n;typeof e==`string`?(n=this.formatting[e],n=n?{face:n.face,size:Math.round(n.size*4/3),decoration:n.decoration,style:n.style,weight:n.weight,box:n.box}:{face:`Arial`,size:16,decoration:`underline`,style:`normal`,weight:`normal`}):n={face:e.face,size:Math.round(e.size*4/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var r=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;n.padding=n.size*r;var a={"font-size":n.size,"font-style":n.style,"font-family":this.getFamily(n.face),"font-weight":n.weight,"text-decoration":n.decoration,class:this.classes.generate(t)};return{font:n,attr:a}},t.exports=n})),Ve=e.n(((e,t)=>{var n=function GetTextSize(e,t){this.getFontAndAttr=e,this.svg=t};n.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)},n.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)},n.prototype.getFamily=function(e){return e[0]===`"`&&e[e.length-1]===`"`?e.substring(1,e.length-1):e},n.prototype.calc=function(e,t,n,r){var a=typeof t==`string`?this.attr(t,n):{font:{face:t.face,size:t.size,decoration:t.decoration,style:t.style,weight:t.weight},attr:{"font-size":t.size,"font-style":t.style,"font-family":this.getFamily(t.face),"font-weight":t.weight,"text-decoration":t.decoration,class:this.getFontAndAttr.classes.generate(n)}},o=this.svg.getTextSize(e,a.attr,r);return a.font.box?{height:o.height+a.font.padding*4,width:o.width+a.font.padding*4}:o},n.prototype.baselineToCenter=function(e,t,n,r,a){var o=this.calc(e,t,n).height,c=this.attr(t,n).font.size;return o*.5+(a-r-2)*c},t.exports=n})),He=e.n(((e,t)=>{var sprintf=function(){for(var e=0,t,n=arguments[e++],r=[],a,o,c,l;n;){if(a=/^[^\x25]+/.exec(n))r.push(a[0]);else if(a=/^\x25{2}/.exec(n))r.push(`%`);else if(a=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)){if((t=arguments[a[1]||e++])==null||t==null)throw`Too few arguments.`;if(/[^s]/.test(a[7])&&typeof t!=`number`)throw`Expecting number but found `+typeof t;switch(a[7]){case`b`:t=t.toString(2);break;case`c`:t=String.fromCharCode(t);break;case`d`:t=parseInt(t);break;case`e`:t=a[6]?t.toExponential(a[6]):t.toExponential();break;case`f`:t=a[6]?parseFloat(t).toFixed(a[6]):parseFloat(t);break;case`o`:t=t.toString(8);break;case`s`:t=(t=String(t))&&a[6]?t.substring(0,a[6]):t;break;case`u`:t=Math.abs(t);break;case`x`:t=t.toString(16);break;case`X`:t=t.toString(16).toUpperCase();break}t=/[def]/.test(a[7])&&a[2]&&t>0?`+`+t:t,c=a[3]?a[3]==`0`?`0`:a[3][1]:` `,l=a[5]-String(t).length,o=a[5]?str_repeat(c,l):``,r.push(a[4]?t+o:o+t)}else throw`Huh ?!`;n=n.substring(a[0].length)}return r.join(``)};t.exports=sprintf})),$=e.n(((e,t)=>{function roundNumber(e){return parseFloat(e.toFixed(2))}t.exports=roundNumber})),Ue=e.n(((e,t)=>{var n=$();function renderText(e,t,r){var a=t.y;if(t.phrases){var o=e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);return o}if(t.lane){var c=t.dim.font.size*.25;a+=(t.dim.font.size+c)*t.lane}var l;t.dim?(l=t.dim,l.attr.class=t.klass):l=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(l.attr[`text-anchor`]=t.anchor),t[`dominant-baseline`]&&(l.attr[`dominant-baseline`]=t[`dominant-baseline`]),l.attr.x=t.x,l.attr.y=a,t.centerVertically||(l.attr.y+=l.font.size),t.type===`debugfont`&&(console.log(`Debug msg: `+t.text),l.attr.stroke=`#ff0000`),t.cursor&&(l.attr.cursor=t.cursor);var u=t.text.replace(/\n\n/g,`
|
|
36
|
+
|
|
37
|
+
`);u=u.replace(/^\n/,`\xA0
|
|
38
|
+
`),l.font.box&&(r||e.paper.openGroup({klass:l.attr.class,fill:e.foregroundColor,"data-name":t.name}),l.attr[`text-anchor`]===`end`?l.attr.x-=l.font.padding:l.attr[`text-anchor`]===`start`&&(l.attr.x+=l.font.padding),l.attr.y+=l.font.padding,delete l.attr.class),t.noClass&&delete l.attr.class,l.attr.x=n(l.attr.x),l.attr.y=n(l.attr.y),t.name&&(l.attr[`data-name`]=t.name);var o=e.paper.text(u,l.attr);if(l.font.box){var d=o.getBBox(),f=0;l.attr[`text-anchor`]===`middle`?f=d.width/2+l.font.padding:l.attr[`text-anchor`]===`end`&&(f=d.width+l.font.padding*2);var p=0;t.centerVertically&&(p=d.height-l.font.padding),e.paper.rect({"data-name":`box`,x:Math.round(t.x-f),y:Math.round(a-p),width:Math.round(d.width+l.font.padding*2),height:Math.round(d.height+l.font.padding*2)}),r||(o=e.paper.closeGroup())}return o}t.exports=renderText})),We=e.n(((e,t)=>{var n=He(),r=w(),a=Ue();function drawBrace(e,t,n){var a=t.startVoice.staff.absoluteY-r.STEP*10;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-r.STEP*2:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-r.STEP*2:t.endY=t.startVoice.staff.absoluteY-r.STEP*2,draw(e,t.x,a,t.endY,t.type,t.header,n)}function straightPath(e,t,a,o,c){t+=r.STEP;var l=r.STEP*.75,u=r.STEP*.75,d=o-a,f=n(`M %f %f l %f %f l %f %f l %f %f z`,t,a-u,0,d+u*2,l,0,0,-(d+u*2)),p=r.STEP*2,m=r.STEP;return f+=n(`M %f %f q %f %f %f %f q %f %f %f %f z`,t+l,a-u,p*.6,m*.2,p,-m,-p*.1,m*.3,-p,m+r.STEP),f+=n(`M %f %f q %f %f %f %f q %f %f %f %f z`,t+l,a+u+d,p*.6,-m*.2,p,m,-p*.1,-m*.3,-p,-m-r.STEP),e.paper.path({path:f,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(c),"data-name":c})}function curvyPath(e,t,n,r,a){var o=r-n,c=curve(t,n,[7.5,-8,21,0,18.5,-10.5,7.5],[0,o/5.5,o/3.14,o/2,o/2.93,o/4.88,0]);return c+=curve(t,n,[0,17.5,-7.5,6.6,-5,20,0],[o/2,o/1.46,o/1.22,o,o/1.19,o/1.42,o/2]),e.paper.path({path:c,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(a),"data-name":a})}function curve(e,t,r,a){return n(`M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z`,e+r[0],t+a[0],e+r[1],t+a[1],e+r[2],t+a[2],e+r[3],t+a[3],e+r[4],t+a[4],e+r[5],t+a[5],e+r[6],t+a[6])}var draw=function(e,t,n,r,o,c,l){var u;if(c){e.paper.openGroup({klass:e.controller.classes.generate(`staff-extra voice-name`),"data-name":o});var d=n+(r-n)/2;d-=e.controller.getTextSize.baselineToCenter(c,`voicefont`,`staff-extra voice-name`,0,1),a(e,{x:e.padding.left,y:d,text:c,type:`voicefont`,klass:`staff-extra voice-name`,anchor:`start`,centerVertically:!0})}return o===`brace`?u=curvyPath(e,t,n,r,o):o===`bracket`&&(u=straightPath(e,t,n,r,o)),c&&(u=e.paper.closeGroup()),l.wrapSvgEl({el_type:o,startChar:-1,endChar:-1},u),u};t.exports=drawBrace})),Ge=e.n(((e,t)=>{function printPath(e,t,n){return e.paper.path(t)}t.exports=printPath})),Ke=e.n(((e,t)=>{var n=He(),r=Ge(),a=$();function drawGlissando(e,t,n){(!t.anchor1||!t.anchor2||!t.anchor1.heads||!t.anchor2.heads||t.anchor1.heads.length===0||t.anchor2.heads.length===0)&&window.console.error(`Glissando Element not set.`);var r=4,a=e.calcY(t.anchor1.heads[0].pitch),o=e.calcY(t.anchor2.heads[0].pitch),c=t.anchor1.x+t.anchor1.w/2,l=t.anchor2.x+t.anchor2.w/2,u=lineLength(c,a,l,o),d=t.anchor1.w/2+r,f=t.anchor2.w/2+r,p=slope(c,a,l,o),m=getY(a,p,d);getY(o,p,-f);var h=numSquigglies(u-d-f),g=drawSquiggly(e,c+d,m,h,p);return n.wrapSvgEl({el_type:`glissando`,startChar:-1,endChar:-1},g),[g]}function lineLength(e,t,n,r){var a=n-e,o=r-t;return Math.sqrt(a*a+o*o)}function slope(e,t,n,r){return(r-t)/(n-e)}function getY(e,t,n){return a(e+n*t)}function numSquigglies(e){return Math.max(2,Math.floor((e-10)/6))}var o=[[3.5,-4.8]],c=[[1.5,-1],[.3,-.3],[-3.5,3.8]],l=[[-1.5,2]],u=[[3,4],[3,-4]],d=[[-3,4],[-3,-4]];function segment(e,t){for(var n=``,r=0;r<e.length;r++)n+=`l`+e[r][0]+` `+getY(e[r][1],t,e[r][0]);return n}var drawSquiggly=function(e,t,a,f,p){var m=n(`M %f %f`,t,a);m+=segment(o,p);var h;for(h=0;h<f;h++)m+=segment(u,p);for(m+=segment(c,p),h=0;h<f;h++)m+=segment(d,p);return m+=segment(l,p)+`z`,r(e,{path:m,highlight:`stroke`,stroke:e.foregroundColor,class:e.controller.classes.generate(`decoration`),"data-name":`glissando`})};t.exports=drawGlissando})),qe=e.n(((e,t)=>{var n=He(),r=Ge(),a=$();function drawCrescendo(e,t,n){t.pitch===void 0&&window.console.error(`Crescendo Element y-coordinate not set.`);var r=e.calcY(t.pitch)+4,a=8,o=t.anchor1?t.anchor1.x:0,c=t.anchor2?t.anchor2.x:800,l=t.dir===`<`?drawLine(e,r+a/2,r,r+a/2,r+a,o,c):drawLine(e,r,r+a/2,r+a,r+a/2,o,c);return n.wrapSvgEl({el_type:`dynamicDecoration`,startChar:-1,endChar:-1},l),[l]}var drawLine=function(e,t,o,c,l,u,d){return t=a(t),o=a(o),c=a(c),l=a(l),u=a(u),d=a(d),r(e,{path:n(`M %f %f L %f %f M %f %f L %f %f`,u,t,d,o,u,c,d,l),highlight:`stroke`,stroke:e.foregroundColor,class:e.controller.classes.generate(`dynamics decoration`),"data-name":`dynamics`})};t.exports=drawCrescendo})),Je=e.n(((e,t)=>{var n=$();function Group(){this.ingroup=!1}Group.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},Group.prototype.isInGroup=function(){return this.ingroup},Group.prototype.addPath=function(e){if(e||=[],e.length!==0){e[0][0]=`m`,e[0][1]=n(e[0][1]-this.lastM[0]),e[0][2]=n(e[0][2]-this.lastM[1]),this.lastM[0]+=e[0][1],this.lastM[1]+=e[0][2],this.path.push(e[0]);for(var t=1,r=e.length;t<r;t++)e[t][0]===`m`&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},Group.prototype.endGroup=function(e,t){this.ingroup=!1;for(var n=``,r=0;r<this.path.length;r++)n+=this.path[r].join(` `);this.path=[];var a=this.paper.closeGroup();return a&&(a.setAttribute(`class`,this.controller.classes.generate(e)),a.setAttribute(`fill`,this.controller.renderer.foregroundColor),a.setAttribute(`stroke`,`none`),a.setAttribute(`data-name`,t)),a},t.exports=new Group})),Ye=e.n(((e,t)=>{var n=Ue(),r=Z(),a=Je();function printSymbol(e,t,o,c,l){var u,d;if(!c)return null;if(c.length>1&&c.indexOf(`.`)<0){var f=a.isInGroup()?``:l.klass;e.paper.openGroup({"data-name":l.name,klass:f});for(var p=0,m=0;m<c.length;m++){var h=c[m];d=r.getYCorr(h),u=r.printSymbol(t+p,e.calcY(o+d),h,e.paper,{stroke:l.stroke,fill:l.fill}),u?m<c.length-1&&(p+=kernSymbols(h,c[m+1],r.getSymbolWidth(h))):n(e,{x:t,y:e.y,text:`no symbol:`+c,type:`debugfont`,klass:`debug-msg`,anchor:`start`},!1)}return e.paper.closeGroup()}else return d=r.getYCorr(c),u=a.isInGroup()?r.printSymbol(t,e.calcY(o+d),c,e.paper,{"data-name":l.name}):r.printSymbol(t,e.calcY(o+d),c,e.paper,{klass:l.klass,stroke:l.stroke,fill:l.fill,"data-name":l.name}),u||(n(e,{x:t,y:e.y,text:`no symbol:`+c,type:`debugfont`,klass:`debug-msg`,anchor:`start`},!1),null)}function kernSymbols(e,t,n){var r=n;return e===`f`&&t===`f`&&(r=r*2/3),e===`p`&&t===`p`&&(r=r*5/6),e===`f`&&t===`z`&&(r=r*5/8),r}t.exports=printSymbol})),Xe=e.n(((e,t)=>{var n=Ye();function drawDynamics(e,t,r){t.pitch===void 0&&window.console.error(`Dynamic Element y-coordinate not set.`);var a=n(e,t.anchor.x,t.pitch,t.dec,{scalex:1,scaley:1,klass:e.controller.classes.generate(`decoration dynamics`),fill:e.foregroundColor,stroke:`none`,name:`dynamics`});return r.wrapSvgEl({el_type:`dynamicDecoration`,startChar:-1,endChar:-1,decoration:t.dec},a),[a]}t.exports=drawDynamics})),Ze=e.n(((e,t)=>{var n=He(),r=Ue(),a=Ge(),o=$();function drawTriplet(e,t,n){e.paper.openGroup({klass:e.controller.classes.generate(`triplet `+t.durationClass),"data-name":`triplet`}),t.hasBeam||drawBracket(e,t.anchor1.x,t.startNote,t.anchor2.x+t.anchor2.w,t.endNote),r(e,{x:t.xTextPos,y:e.calcY(t.yTextPos-1),text:``+t.number,type:`tripletfont`,anchor:`middle`,centerVertically:!0,noClass:!0,name:``+t.number},!0);var a=e.paper.closeGroup();return n.wrapSvgEl({el_type:`triplet`,startChar:-1,endChar:-1},a),a}function drawLine(e,t,r,a){return n(`M %f %f L %f %f`,o(e),o(t),o(r),o(a))}function drawBracket(e,t,n,r,o){n=e.calcY(n),o=e.calcY(o);var c=5,l=``;l+=drawLine(t,n,t,n+c),l+=drawLine(r,o,r,o+c);var u=t+(r-t)/2,d=8,f=(o-n)/(r-t),p=u-d,m=n+(p-t)*f;l+=drawLine(t,n,p,m);var h=u+d,g=n+(h-t)*f;l+=drawLine(h,g,r,o),a(e,{path:l,stroke:e.foregroundColor,"data-name":`triplet-bracket`})}t.exports=drawTriplet})),Qe=e.n(((e,t)=>{var n=He(),r=Ue(),a=Ge(),o=$();function drawEnding(e,t,c,l,u){t.pitch===void 0&&window.console.error(`Ending Element y-coordinate not set.`);var d=o(e.calcY(t.pitch)),f=20,p=``;t.anchor1&&(c=o(t.anchor1.x+t.anchor1.w),p+=n(`M %f %f L %f %f `,c,d,c,o(d+f))),t.anchor2&&(l=o(t.anchor2.x),p+=n(`M %f %f L %f %f `,l,d,l,o(d+f))),p+=n(`M %f %f L %f %f `,c,d,l,d),e.paper.openGroup({klass:e.controller.classes.generate(`ending`),"data-name":`ending`}),a(e,{path:p,stroke:e.foregroundColor,fill:e.foregroundColor,"data-name":`line`}),t.anchor1&&r(e,{x:o(c+5),y:o(e.calcY(t.pitch-.5)),text:t.text,type:`repeatfont`,klass:`ending`,anchor:`start`,noClass:!0,name:t.text});var m=e.paper.closeGroup();return u.wrapSvgEl({el_type:`ending`,startChar:-1,endChar:-1},m),[m]}t.exports=drawEnding})),$e=e.n(((e,t)=>{var n=He(),r=$();function drawTie(e,t,n,r,a){layout(t,n,r);var o=``;t.anchor1?o+=`abcjs-start-m`+t.anchor1.parent.counters.measure+`-n`+t.anchor1.parent.counters.note:o+=`abcjs-start-edge`,t.anchor2?o+=` abcjs-end-m`+t.anchor2.parent.counters.measure+`-n`+t.anchor2.parent.counters.note:o+=` abcjs-end-edge`,t.hint&&(o=`abcjs-hint`);var c=t.fixedY?1.5:0,l=drawArc(e,t.startX,t.endX,t.startY+c,t.endY+c,t.above,o,t.isTie,t.dotted),u=-1;t.anchor1&&!t.isTie&&(u=t.anchor1.parent.abcelem.startChar-1);var d=-1;return t.anchor2&&!t.isTie&&(d=t.anchor2.parent.abcelem.endChar+1),a.wrapSvgEl({el_type:`slur`,startChar:u,endChar:d},l),[l]}var layout=function(e,t,n){!e.anchor1||!e.anchor2||e.anchor1.pitch===e.anchor2.pitch&&e.internalNotes.length===0?e.isTie=!0:e.isTie=!1,e.isTie?(e.calcTieDirection(),e.calcX(t,n),e.calcTieY()):(e.calcSlurDirection(),e.calcX(t,n),e.calcSlurY()),e.avoidCollisionAbove()},drawArc=function(e,t,a,o,c,l,u,d,f){var p=d?1.2:1.5;t=r(t+6),a=r(a+4),o+=l?p:-p,c+=l?p:-p;var m=r(e.calcY(o)),h=r(e.calcY(c)),g=a-t,_=h-m,y=Math.sqrt(g*g+_*_),b=g/y,x=_/y,S=y/3.5,C=d?10:25,w=(l?-1:1)*Math.min(C,Math.max(4,S)),T=r(t+S*b-w*x),E=r(m+S*x+w*b),D=r(a-S*b-w*x),O=r(h-S*x+w*b),k=2;u?u+=` slur`:u=`slur`,u+=d?` tie`:` legato`;var A;if(f){u+=` dotted`;var j=n(`M %f %f C %f %f %f %f %f %f`,t,m,T,E,D,O,a,h);A=e.paper.path({path:j,stroke:e.foregroundColor,fill:`none`,"stroke-dasharray":`5 5`,class:e.controller.classes.generate(u),"data-name":d?`tie`:`slur`})}else{var M=n(`M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z`,t,m,T,E,D,O,a,h,r(D-k*x),r(O+k*b),r(T-k*x),r(E+k*b),t,m);A=e.paper.path({path:M,stroke:`none`,fill:e.foregroundColor,class:e.controller.classes.generate(u),"data-name":d?`tie`:`slur`})}return A};t.exports=drawTie})),et=e.n(((e,t)=>{var n=Ge(),r=$();function drawBeam(e,t){if(t.beams.length!==0){for(var r=``,a=0;a<t.beams.length;a++){var o=t.beams[a];if(o.split){for(var c=getSlope(e,o.startX,o.startY,o.endX,o.endY),l=[],u=0;u<o.split.length;u+=2)l.push([o.split[u],o.split[u+1]]);for(u=0;u<l.length;u++){var d=getY(o.startX,o.startY,c,l[u][0]),f=getY(o.startX,o.startY,c,l[u][1]);r+=draw(e,l[u][0],d,l[u][1],f,o.dy)}}else r+=draw(e,o.startX,o.startY,o.endX,o.endY,o.dy)}var p=(`abcjs-d`+t.duration).replace(/\./g,`-`),m=e.controller.classes.generate(`beam-elem `+p);return[n(e,{path:r,stroke:`none`,fill:e.foregroundColor,class:m})]}}function draw(e,t,n,a,o,c){n=r(e.calcY(n)),o=r(e.calcY(o)),t=r(t),a=r(a);var l=r(n+c),u=r(o+c);return`M`+t+` `+n+` L`+a+` `+o+`L`+a+` `+u+` L`+t+` `+l+`z`}function getSlope(e,t,n,r,a){return(a-n)/(r-t)}function getY(e,t,n,r){return t+(r-e)*n}t.exports=drawBeam})),tt=e.n(((e,t)=>{var n=Je(),r=$();function printStem(e,t,a,o,c,l,u){if(a<0||o<c){var d=r(c);c=r(o),o=d}else o=r(o),c=r(c);t=r(t);var f=r(t+a);if(e.firefox112){t+=a/2;var p={x1:t,x2:t,y1:o,y2:c,stroke:e.foregroundColor,"stroke-width":Math.abs(a)};return l&&(p.class=l),u&&(p[`data-name`]=u),e.paper.lineToBack(p)}for(var m=[[`M`,t,o],[`L`,t,c],[`L`,f,c],[`L`,f,o],[`z`]],p={path:``},h=0;h<m.length;h++)p.path+=m[h].join(` `);return l&&(p.class=l),u&&(p[`data-name`]=u),n.isInGroup()||(p.stroke=`none`,p.fill=e.foregroundColor),e.paper.pathToBack(p)}t.exports=printStem})),nt=e.n(((e,t)=>{var n=He(),r=$();function printLine(e,t,a,o,c,l,u){var d=e.foregroundColor;t=r(t),a=r(a);var f=r(o-u),p=r(o+u);if(e.firefox112){o+=u/2;var m={x1:t,x2:a,y1:o,y2:o,stroke:e.foregroundColor,"stroke-width":Math.abs(u*2)};return c&&(m.class=c),l&&(m[`data-name`]=l),e.paper.lineToBack(m)}var h={path:n(`M %f %f L %f %f L %f %f L %f %f z`,t,f,a,f,a,p,t,p),stroke:`none`,fill:d};return l&&(h[`data-name`]=l),c&&(h.class=c),e.paper.pathToBack(h)}t.exports=printLine})),rt=e.n(((e,t)=>{var n=nt();function printStaffLine(e,t,r,a,o,c,l){return n(e,t,r,e.calcY(a),o,c,l)}t.exports=printStaffLine})),it=e.n(((e,t)=>{var n=Ue(),r=tt(),a=rt(),o=Ye();function drawRelativeElement(e,t,c){t.pitch===void 0&&window.console.error(t.type+` Relative Element y-coordinate not set.`);var l=e.calcY(t.pitch);switch(t.type){case`symbol`:if(t.c===null)return null;var u=`symbol`;t.klass&&(u+=` `+t.klass),t.graphelem=o(e,t.x,t.pitch,t.c,{scalex:t.scalex,scaley:t.scaley,klass:e.controller.classes.generate(u),name:t.name});break;case`debug`:t.graphelem=n(e,{x:t.x,y:e.calcY(15),text:``+t.c,type:`debugfont`,klass:e.controller.classes.generate(`debug-msg`),anchor:`start`,centerVertically:!1,dim:t.dim},!1);break;case`tabNumber`:var d=`middle`,f=`tabnumberfont`,p=`abcjs-tab-number`;t.isGrace&&(f=`tabgracefont`,l+=2.5,p=`tab-grace`),t.graphelem=n(e,{x:t.x,y:l,text:``+t.c,type:f,klass:e.controller.classes.generate(p),anchor:d,centerVertically:!1,dim:t.dim,cursor:`default`},!1);break;case`barNumber`:t.graphelem=n(e,{x:t.x,y:l,text:``+t.c,type:`measurefont`,klass:e.controller.classes.generate(`bar-number`),anchor:`middle`,dim:t.dim,name:`bar-number`},!0);break;case`lyric`:t.graphelem=n(e,{x:t.x,y:l,text:t.c,type:`vocalfont`,klass:e.controller.classes.generate(`lyric`),anchor:`middle`,dim:t.dim,name:`lyric`},!1);break;case`chord`:t.graphelem=n(e,{x:t.x,y:l,text:t.c,type:`gchordfont`,klass:e.controller.classes.generate(`chord`),anchor:`middle`,dim:t.dim,lane:t.getLane(),name:`chord`},!1);break;case`decoration`:t.graphelem=n(e,{x:t.x,y:l+6,text:t.c,type:`annotationfont`,klass:e.controller.classes.generate(`annotation`),anchor:t.anchor,centerVertically:!0,dim:t.dim},!1);break;case`text`:t.graphelem=n(e,{x:t.x,y:l,text:t.c,type:`annotationfont`,klass:e.controller.classes.generate(`annotation`),anchor:`start`,centerVertically:t.centerVertically,dim:t.dim,lane:t.getLane(),name:`annotation`},!1);break;case`multimeasure-text`:t.graphelem=n(e,{x:t.x+t.w/2,y:l,text:t.c,type:`tempofont`,klass:e.controller.classes.generate(`rest`),anchor:`middle`,centerVertically:!1,dim:t.dim},!1);break;case`part`:t.graphelem=n(e,{x:t.x,y:l,text:t.c,type:`partsfont`,klass:e.controller.classes.generate(`part`),anchor:`start`,dim:t.dim,name:t.c},!0);break;case`bar`:t.graphelem=r(e,t.x,t.linewidth+e.lineThickness,l,c||e.calcY(t.pitch2),null,`bar`);break;case`stem`:var m=t.linewidth>0?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=r(e,t.x,m,l,e.calcY(t.pitch2),`abcjs-stem`,`stem`);break;case`ledger`:t.graphelem=a(e,t.x,t.x+t.w,t.pitch,`abcjs-ledger`,`ledger`,.35+e.lineThickness);break}return t.scalex!==1&&t.graphelem&&scaleExistingElem(e.paper,t.graphelem,t.scalex,t.scaley,t.x,l),t.graphelem}function scaleExistingElem(e,t,n,r,a,o){e.setAttributeOnElement(t,{style:`transform:scale(`+n+`,`+r+`);transform-origin:`+a+`px `+o+`px;`})}t.exports=drawRelativeElement})),at=e.n(((e,t)=>{var n=it(),r=Ue();function drawTempo(e,t){var a=t.x;t.pitch===void 0&&window.console.error(`Tempo Element y-coordinate not set.`),t.tempo.el_type=`tempo`;var o=e.calcY(t.pitch)+2,c,l;if(t.tempo.preString){c=r(e,{x:a,y:o,text:t.tempo.preString,type:`tempofont`,klass:`abcjs-tempo`,anchor:`start`,noClass:!0,name:`pre`},!0),l=e.controller.getTextSize.calc(t.tempo.preString,`tempofont`,`tempo`,c);var u=l.width,d=u/t.tempo.preString.length;a+=u+d}if(t.note){t.note.setX(a);for(var f=0;f<t.note.children.length;f++)n(e,t.note.children[f],a);a+=t.note.w+5;var p=`= `+t.tempo.bpm;c=r(e,{x:a,y:o,text:p,type:`tempofont`,klass:`abcjs-tempo`,anchor:`start`,noClass:!0,name:`beats`}),l=e.controller.getTextSize.calc(p,`tempofont`,`tempo`,c);var m=l.width,h=m/p.length;a+=m+h}t.tempo.postString&&r(e,{x:a,y:o,text:t.tempo.postString,type:`tempofont`,klass:`abcjs-tempo`,anchor:`start`,noClass:!0,name:`post`},!0)}t.exports=drawTempo})),ot=e.n(((e,t)=>{var n=at(),r=it(),a=w(),o=I(),c=Je();function drawAbsolute(e,t,l,u,d){if(!t.invisible){var f=t.children.length>0&&t.children[0].type===`TempoElement`;t.elemset=[],c.beginGroup(e.paper,e.controller);for(var p=0;p<t.children.length;p++){var m=t.children[p];switch(m.type){case`TempoElement`:n(e,m);break;default:var h=r(e,m,l);m.type===`symbol`&&m.c&&m.c.indexOf(`notehead`)>=0&&h.setAttribute(`class`,`abcjs-notehead`)}}var g=t.type;if((t.type===`note`||t.type===`rest`)&&(t.counters=e.controller.classes.getCurrent(),g+=` d`+Math.round(t.durationClass*1e3)/1e3,g=g.replace(/\./g,`-`),t.abcelem.pitches))for(var _=0;_<t.abcelem.pitches.length;_++)g+=` p`+t.abcelem.pitches[_].pitch;var y=c.endGroup(g,t.type);if(y){if(t.cloned&&(t.cloned.overrideClasses=y.className.baseVal),t.overrideClasses){var b=y.classList&&y.classList.length>0?y.classList[0]+` `:``;y.setAttribute(`class`,b+t.overrideClasses)}if(f)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,u.add(t,y,!1,d);else{t.elemset.push(y);var x=!1;(t.type===`note`||t.type===`tabNumber`)&&(x=!0),u.add(t,y,x,d)}}else t.elemset.length>0&&u.add(t,t.elemset[0],t.type===`note`,d);if(t.klass&&o(t.elemset,`mark`,``,`#00ff00`),t.hint&&o(t.elemset,`abcjs-hint`,``,null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var S=0;S<t.heads.length;S++)t.notePositions.push({x:t.heads[S].x+t.heads[S].w/2,y:d.zero-t.heads[S].pitch*a.STEP})}}}t.exports=drawAbsolute})),st=e.n(((e,t)=>{var n=Ke(),r=qe(),a=Xe(),o=Ze(),c=Qe(),l=$e(),u=et(),d=Ue(),f=ot();function drawVoice(e,t,p,m,h){var g=t.w-1;e.staffbottom=t.staff.bottom;var _=e.foregroundColor;if(t.color&&(e.foregroundColor=t.color),t.header){var y=d(e,{x:e.padding.left,y:e.calcY(t.headerPosition),text:t.header,type:`voicefont`,klass:`staff-extra voice-name`,anchor:`start`,centerVertically:!0,name:`voice-name`},!0);m.wrapSvgEl({el_type:`voiceName`,startChar:-1,endChar:-1,text:t.header},y)}var b,x,S=!1;for(b=0;b<t.children.length;b++){x=t.children[b],(x.type===`note`||x.type===`rest`)&&(S=!0);var C=!1;x.type!==`staff-extra`&&!e.controller.classes.isInMeasure()&&(e.controller.classes.startMeasure(),C=!0),t.staff.isTabStaff&&(x.invisible=!1,x.type==`bar`&&x.abcelem.lastBar&&(p=t.topLine)),f(e,x,t.barto||b===t.children.length-1?p:0,m,h),(x.type===`note`||isNonSpacerRest(x))&&e.controller.classes.incrNote(),x.type===`bar`&&!C&&S&&e.controller.classes.incrMeasure()}for(e.controller.classes.startMeasure(),b=0;b<t.beams.length;b++){var w=t.beams[b];w===`bar`?e.controller.classes.incrMeasure():u(e,w,m)}for(e.controller.classes.startMeasure(),b=0;b<t.otherchildren.length;b++)if(x=t.otherchildren[b],x===`bar`)e.controller.classes.incrMeasure();else switch(x.type){case`GlissandoElem`:x.elemset=n(e,x,m);break;case`CrescendoElem`:x.elemset=r(e,x,m);break;case`DynamicDecoration`:x.elemset=a(e,x,m);break;case`TripletElem`:o(e,x,m);break;case`EndingElem`:x.elemset=c(e,x,t.startx+10,g,m);break;case`TieElem`:x.elemset=l(e,x,t.startx+10,g,m);break;default:console.log(x),f(e,x,t.startx+10,g,m,h)}e.foregroundColor=_}function isNonSpacerRest(e){return e.type===`rest`?!!(e.abcelem&&e.abcelem.rest&&e.abcelem.rest.type!==`spacer`):!1}t.exports=drawVoice})),ct=e.n(((e,t)=>{var n=rt();function printStaff(e,t,r,a,o,c){var l=`abcjs-top-line`,u=2;o&&(u=o),e.paper.openGroup({prepend:!0,klass:e.controller.classes.generate(`abcjs-staff`)});var d=0,f=0;if(a===1)n(e,t,r,6,l,null,c+e.lineThickness),d=e.calcY(10),f=e.calcY(2);else for(var p=a-1;p>=0;p--){var m=(p+1)*u;f=e.calcY(m),d===0&&(d=f),n(e,t,r,m,l,null,c+e.lineThickness),l=void 0}return e.paper.closeGroup(),[d,f]}t.exports=printStaff})),lt=e.n(((e,t)=>{function printDebugBox(e,t,n){var r=e.paper.rectBeneath(t);return n&&e.paper.text(n,{x:0,y:t.y+7,"text-anchor":`start`,"font-size":`14px`,fill:`rgba(0,0,255,.4)`,stroke:`rgba(0,0,255,.4)`}),r}t.exports=printDebugBox})),ut=e.n(((e,t)=>{function drawSeparator(e,t){var n=`rgba(0,0,0,255)`,r=`rgba(0,0,0,0)`,a=Math.round(e.y),o=(e.controller.width-t)/2,c=o+t,l=`M `+o+` `+a+` L `+c+` `+a+` L `+c+` `+(a+1)+` L `+o+` `+(a+1)+` L `+o+` `+a+` z`;e.paper.pathToBack({path:l,stroke:r,fill:n,class:e.controller.classes.generate(`defined-text`)})}t.exports=drawSeparator})),dt=e.n(((e,t)=>{var n=ut(),r=Ue();function nonMusic(e,t,a){for(var o=0;o<t.rows.length;o++){var c=t.rows[o];if(c.absmove)e.absolutemoveY(c.absmove);else if(c.move)e.moveY(c.move);else if(c.text||c.phrases){var l=r(e,{x:c.left?c.left:0,y:e.y,text:c.text,phrases:c.phrases,"dominant-baseline":c[`dominant-baseline`],type:c.font,klass:c.klass,name:c.name,anchor:c.anchor});c.absElemType&&a.wrapSvgEl({el_type:c.absElemType,name:c.name,startChar:c.startChar,endChar:c.endChar,text:c.text},l)}else if(c.separator)n(e,c.separator);else if(c.startGroup)e.paper.openGroup({klass:c.klass,"data-name":c.name});else if(c.endGroup){var u=e.paper.closeGroup();c.absElemType&&a.wrapSvgEl({el_type:c.absElemType,name:c.name,startChar:c.startChar,endChar:c.endChar,text:``},u)}}}t.exports=nonMusic})),ft=e.n(((e,t)=>{var n=w(),r=We(),a=st(),o=ct(),c=lt(),l=tt(),u=dt();function drawStaffGroup(e,t,r,d){for(var f,p=e.y,m=0;m<t.staffs.length;m++){var h=t.staffs[m];e.moveY(n.STEP,h.top),h.absoluteY=e.y,e.showDebug&&(e.showDebug.indexOf(`box`)>=0&&h.voices&&boxAllElements(e,t.voices,h.voices),e.showDebug.indexOf(`grid`)>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:p,y2:p,stroke:`#0000ff`}),c(e,{x:e.padding.left,y:e.calcY(h.originalTop),width:e.controller.width,height:e.calcY(h.originalBottom)-e.calcY(h.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),f=0,debugPrintGridItem(h,`chordHeightAbove`),debugPrintGridItem(h,`chordHeightBelow`),debugPrintGridItem(h,`dynamicHeightAbove`),debugPrintGridItem(h,`dynamicHeightBelow`),debugPrintGridItem(h,`endingHeightAbove`),debugPrintGridItem(h,`lyricHeightAbove`),debugPrintGridItem(h,`lyricHeightBelow`),debugPrintGridItem(h,`partHeightAbove`),debugPrintGridItem(h,`tempoHeightAbove`),debugPrintGridItem(h,`volumeHeightAbove`),debugPrintGridItem(h,`volumeHeightBelow`))),e.moveY(n.STEP,-h.bottom),e.showDebug&&e.showDebug.indexOf(`grid`)>=0&&e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:e.y,y2:e.y,stroke:`#0000aa`})}for(var g,_,y=2,b=0,x=0;x<t.voices.length;x++){var S=t.voices[x].staff,C=t.voices[x].tabNameInfos;if(e.y=S.absoluteY,e.controller.classes.incrVoice(),!t.voices[x].duplicate){if(g||=e.calcY(10),_=e.calcY(y),S.lines!==0){S.linePitch&&(y=S.linePitch),e.controller.classes.newMeasure();var w=o(e,t.startx,t.w,S.lines,S.linePitch,.35);_=w[1],S.bottomLine=_,S.topLine=w[0],S.hasTab&&(b=S.topLine),S.hasStaff&&(b=S.hasStaff.topLine,t.voices[x].barto=!0,t.voices[x].topLine=g)}printBrace(e,S.absoluteY,t.brace,x,r),printBrace(e,S.absoluteY,t.bracket,x,r)}a(e,t.voices[x],b,r,{top:p,zero:e.y,height:t.height*n.STEP});var T=0;if(C){var E={rows:[]};E.rows.push({absmove:_+2}),E.rows.push({left:t.startx+8,text:C.name,font:`tablabelfont`,klass:`text instrument-name`,anchor:`start`}),E.rows.push({move:C.textSize.height}),u(e,E),T=C.textSize.height}e.controller.classes.newMeasure(),t.voices[x].duplicate||(b=e.calcY(2+T))}e.controller.classes.newMeasure();var D=t.staffs.length;D>1&&(g=t.staffs[0].topLine,_=t.staffs[D-1].bottomLine,l(e,t.startx,.6,g,_,null)),e.y=p;function debugPrintGridItem(t,r){var a=[`rgb(207,27,36)`,`rgb(168,214,80)`,`rgb(110,161,224)`,`rgb(191,119,218)`,`rgb(195,30,151)`,`rgb(31,170,177)`,`rgb(220,166,142)`];if(t.positionY&&t.positionY[r]){var o=t.specialY[r]*n.STEP;r===`chordHeightAbove`&&t.specialY.chordLines&&t.specialY.chordLines.above&&(o*=t.specialY.chordLines.above),r===`chordHeightBelow`&&t.specialY.chordLines&&t.specialY.chordLines.below&&(o*=t.specialY.chordLines.below),c(e,{x:e.padding.left,y:e.calcY(t.positionY[r]),width:e.controller.width,height:o,fill:a[f],stroke:a[f],"fill-opacity":.4,"stroke-opacity":.4},r.substr(0,4)),f+=1,f>6&&(f=0)}}}function printBrace(e,t,a,o,c){if(a)for(var l=0;l<a.length;l++)a[l].isStartVoice(o)&&(a[l].startY=t-n.STEP*10,a[l].elemset=r(e,a[l],c))}function boxAllElements(e,t,r){for(var a=0;a<r.length;a++)for(var o=t[r[a]].children,l=0;l<o.length;l++){var u=o[l],d=u.getFixedCoords();if(!(u.invisible||d.t===void 0||d.b===void 0)){var f=(d.t-d.b)*n.STEP;c(e,{x:d.x,y:e.calcY(d.t),width:d.w,height:f,fill:`#88e888`,"fill-opacity":.4,stroke:`#4aa93d`,"stroke-opacity":.8});for(var p=0;p<u.children.length;p++){var m=u.children[p],h=m.getChordDim();if(h){var g=e.calcY(m.pitch);g+=m.dim.font.size*m.getLane(),c(e,{x:h.left,y:g,width:h.right-h.left,height:m.dim.font.size,fill:`none`,stroke:`#4aa93d`,"stroke-opacity":.8})}}}}}t.exports=drawStaffGroup})),pt=e.n(((e,t)=>{function setPaperSize(e,t,n,r){var a=(t+e.padding.left+e.padding.right)*n,o=(e.y+e.padding.bottom)*n;if(e.isPrint&&(o=Math.max(o,1056)),e.ariaLabel!==``){var c=`Sheet Music`;e.abctune&&e.abctune.metaText&&e.abctune.metaText.title&&(c+=` for "`+e.abctune.metaText.title+`"`),e.paper.setTitle(c);var l=e.ariaLabel?e.ariaLabel:c;e.paper.setAttribute(`aria-label`,l)}e.paper.insertStyles(`.abcjs-dragging-in-progress text, .abcjs-dragging-in-progress tspan {`+[`-webkit-touch-callout: none;`,`-webkit-user-select: none;`,`-khtml-user-select: none;`,`-moz-user-select: none;`,`-ms-user-select: none;`,`user-select: none;`].join(` `)+`}`);var u={overflow:`hidden`};r===`resize`?e.paper.setResponsiveWidth(a,o):(u.width=``,u.height=o+`px`,n<1?(u.width=a+`px`,e.paper.setSize(a/n,o/n)):e.paper.setSize(a,o)),e.paper.setScale(n),e.paper.setParentStyles(u)}t.exports=setPaperSize})),mt=e.n(((e,t)=>{var n=L(),r=R();function Selectables(e,t,n){this.elements=[],this.paper=e,this.tuneNumber=n,this.selectTypes=t}Selectables.prototype.getElements=function(){return this.elements},Selectables.prototype.add=function(e,t,n,r){if(this.canSelect(e)){var a=this.selectTypes===void 0?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length};this.paper.setAttributeOnElement(t,a);var o={absEl:e,svgEl:t,isDraggable:n};r!==void 0&&(o.staffPos=r),this.elements.push(o)}},Selectables.prototype.canSelect=function(e){return this.selectTypes===!1||!e||!e.abcelem?!1:this.selectTypes===!0?!0:this.selectTypes===void 0?e.abcelem.el_type===`note`||e.abcelem.el_type===`tabNumber`:this.selectTypes.indexOf(e.abcelem.el_type)>=0},Selectables.prototype.wrapSvgEl=function(e,t){var a={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:n,unhighlight:r};this.add(a,t,!1)},t.exports=Selectables})),ht=e.n(((e,t)=>{var n=ft(),r=pt(),a=dt(),o=w(),c=mt();function draw(e,t,n,o,l,u,d,f,p,m){var h=new c(e.paper,f,p),g={};t.shouldAddClasses&&(g.klass=`abcjs-meta-top`),e.paper.openGroup(g),e.moveY(e.padding.top),a(e,n.topText,h),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var _=[],y=0;y<n.lines.length;y++){t.incrLine();var b=n.lines[y];if(b.staff){t.shouldAddClasses&&(g.klass=`abcjs-staff-wrapper abcjs-l`+t.lineNumber),e.paper.openGroup(g),b.vskip&&e.moveY(b.vskip),_.length>=1&&addStaffPadding(e,e.spacing.staffSeparation,_[_.length-1],b.staffGroup);var x=engraveStaffLine(e,b.staffGroup,h,y);x.line=m+y,_.push(x),e.paper.closeGroup()}else b.nonMusic&&(t.shouldAddClasses&&(g.klass=`abcjs-non-music`),e.paper.openGroup(g),a(e,b.nonMusic,h),e.paper.closeGroup())}return t.reset(),n.bottomText&&n.bottomText.rows&&n.bottomText.rows.length>0&&(t.shouldAddClasses&&(g.klass=`abcjs-meta-bottom`),e.paper.openGroup(g),e.moveY(24),a(e,n.bottomText,h),e.paper.closeGroup()),r(e,l,d,u),{staffgroups:_,selectables:h.getElements()}}function engraveStaffLine(e,t,r,a){n(e,t,r,a);var c=t.height*o.STEP;return e.y+=c,t}function addStaffPadding(e,t,n,r){var a=-(n.staffs[n.staffs.length-1].bottom-2),c=(r.staffs[0].top-10+a)*o.STEP;c<t&&e.moveY(t-c)}t.exports=draw})),gt=e.n(((e,t)=>{var n=De();function findSelectableElement(e){for(var t=e;t&&t.attributes&&t.tagName.toLowerCase()!==`svg`&&!t.attributes.selectable;)t=t.parentNode;if(t&&t.attributes&&t.attributes.selectable){var r=t.attributes[`data-index`].nodeValue;if(r&&(r=parseInt(r,10),r>=0&&r<this.selectables.length)){var a=this.selectables[r],o=n(a,e);return o.index=r,o.element=a,o}}return null}t.exports=findSelectableElement})),_t=e.n(((e,t)=>{var n=w(),r=_e(),a=ye(),o=be(),c=xe(),l=Se(),u=Te(),d=Ee(),f=Oe(),p=Re(),m=ze(),h=Be(),g=Ve(),_=ht(),y=q(),b=gt(),EngraverController=function(e,t){t||={},this.findSelectableElement=b,this.oneSvgPerLine=t.oneSvgPerLine,this.selectionColor=t.selectionColor,this.dragColor=t.dragColor?t.dragColor:t.selectionColor,this.dragging=!!t.dragging,this.selectTypes=t.selectTypes,this.responsive=t.responsive,this.space=3*n.SPACE,this.initialClef=t.initialClef,this.timeBasedLayout=t.timeBasedLayout,this.expandToWidest=!!t.expandToWidest,this.scale=t.scale?parseFloat(t.scale):0,this.classes=new m({shouldAddClasses:t.add_classes}),this.scale>.1||(this.scale=void 0),t.staffwidth?(this.staffwidthScreen=t.staffwidth,this.staffwidthPrint=t.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.listeners=[],t.clickListener&&this.addSelectListener(t.clickListener),this.renderer=new a(e),this.renderer.setPaddingOverride(t),t.showDebug&&(this.renderer.showDebug=t.showDebug),t.jazzchords&&(this.jazzchords=t.jazzchords),t.accentAbove&&(this.accentAbove=t.accentAbove),t.germanAlphabet&&(this.germanAlphabet=t.germanAlphabet),t.lineThickness&&(this.lineThickness=t.lineThickness),this.renderer.controller=this,this.renderer.foregroundColor=t.foregroundColor?t.foregroundColor:`currentColor`,t.ariaLabel!==void 0&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};EngraverController.prototype.reset=function(){this.selected=[],this.staffgroups=[],this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset(),this.dragTarget=null,this.dragIndex=-1,this.dragMouseStart={x:-1,y:-1},this.dragYStep=0,this.lineThickness&&this.renderer.setLineThickness(this.lineThickness)},EngraverController.prototype.engraveABC=function(e,t,n){e[0]===void 0&&(e=[e]),this.reset();for(var r=0;r<e.length;r++)t===void 0&&(t=r),this.getFontAndAttr=new h(e[r].formatting,this.classes),this.getTextSize=new g(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[r],t,n)},EngraverController.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},EngraverController.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new h(e.formatting,this.classes),this.getTextSize=new g(this.getFontAndAttr,this.renderer.paper);var t=this.jazzchords;this.setupTune(e,0),this.constructTuneElements(e),p(this.renderer,e,0,this.space,this.timeBasedLayout);for(var n=[],r,a=!0,o=0;o<e.lines.length;o++){var c=e.lines[o];if(c.staff){if(a&&=(r={left:0,measureWidths:[],total:0},n.push(r),!1),c.staffGroup.voices.length>0)for(var l=c.staffGroup.voices[0],u=!1,d=0,f=0;f<l.children.length;f++){var m=l.children[f];!u&&!m.isClef&&!m.isKeySig&&(u=!0,r.left=m.x,d=m.x),m.type===`bar`&&(r.measureWidths.push(m.x-d),r.total+=m.x-d,d=m.x)}}else a=!0}return this.jazzchords=t,n},EngraverController.prototype.setupTune=function(e,t){this.classes.reset(),e.formatting.jazzchords!==void 0&&(this.jazzchords=e.formatting.jazzchords),e.formatting.accentAbove!==void 0&&(this.accentAbove=e.formatting.accentAbove),this.renderer.newTune(e),this.engraver=new r(this.getTextSize,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams,graceSlurs:e.formatting.graceSlurs!==!1,percmap:e.formatting.percmap,initialClef:this.initialClef,jazzchords:this.jazzchords,timeBasedLayout:this.timeBasedLayout,accentAbove:this.accentAbove,germanAlphabet:this.germanAlphabet}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),this.engraver.measureLength=e.getMeterFraction().num/e.getMeterFraction().den,e.formatting.staffwidth?this.width=e.formatting.staffwidth*1.33:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var n=e.formatting.scale?e.formatting.scale:this.scale;return this.responsive===`resize`&&(n=void 0),n===void 0&&(n=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(n),n},EngraverController.prototype.constructTuneElements=function(e){e.topText=new u(e.metaText,e.metaTextInfo,e.formatting,e.lines,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize);var t,n,r=!1,a=!1;for(t=0;t<e.lines.length;t++)if(n=e.lines[t],n.staff)a=!0,n.staffGroup=this.engraver.createABCLine(n.staff,r?null:e.metaText.tempo,t),r=!0;else if(n.subtitle){if(a){var f=this.width/2+this.renderer.padding.left;n.nonMusic=new l(this.renderer.spacing.subtitle,e.formatting,n.subtitle,f,this.renderer.padding.left,this.getTextSize)}}else n.text===void 0?n.separator!==void 0&&n.separator.lineLength&&(a=!0,n.nonMusic=new c(n.separator.spaceAbove,n.separator.lineLength,n.separator.spaceBelow)):(a=!0,n.nonMusic=new o(n.text,n.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize));e.bottomText=new d(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize)},EngraverController.prototype.engraveTune=function(e,t,n){var r=this.jazzchords,a=this.setupTune(e,t);this.constructTuneElements(e);var o=p(this.renderer,e,this.width,this.space,this.expandToWidest,this.timeBasedLayout);if(this.expandToWidest&&o>this.width+1&&(e.topText=new u(e.metaText,e.metaTextInfo,e.formatting,e.lines,o,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&e.lines.length>0))for(var c=e.lines.length,l=0;l<c;++l){var d=e.lines[l];if(d.nonMusic&&d.nonMusic.rows&&d.nonMusic.rows.length>0)for(var m=d.nonMusic.rows.length,h=0;h<m;++h){var g=d.nonMusic.rows[h];g.left&&(d.subtitle||d.text&&d.text.length>0&&d.text[0].center)&&(g.left=o/2+this.renderer.padding.left)}}e.tablatures&&y.layoutTablatures(this.renderer,e);var b=_(this.renderer,this.classes,e,this.width,o,this.responsive,a,this.selectTypes,t,n);if(this.staffgroups=b.staffgroups,this.selectables=b.selectables,this.oneSvgPerLine){var x=this.renderer.paper.svg.parentNode;this.svgs=splitSvgIntoLines(this.renderer,x,e.metaText.title,this.responsive,a)}else this.svgs=[this.renderer.paper.svg];f(this,this.svgs),this.jazzchords=r};function splitSvgIntoLines(e,t,n,r,a){n||=`Untitled`;var o=t.querySelector(`svg`);r===`resize`&&(t.style.paddingBottom=``);for(var c=o.querySelector(`style`),l=r===`resize`?o.viewBox.baseVal.width:o.getAttribute(`width`),u=t.querySelectorAll(`svg > g`),d=0,f=[],p=0;p<u.length;p++){var m=u[p],h=m.getBBox(),g=h.y-d,_=h.height+g,y=document.createElement(`div`),b=`overflow: hidden;`;r!==`resize`&&(b+=`height:`+_*a+`px;`),y.setAttribute(`style`,b);var x=duplicateSvg(o),S=`Sheet Music for "`+n+`" section `+(p+1);x.setAttribute(`aria-label`,S),r!==`resize`&&x.setAttribute(`height`,_),r===`resize`&&(x.style.position=``);var C=e.firefox112?_+1:_;x.setAttribute(`viewBox`,`0 `+d+` `+l+` `+C),x.appendChild(c.cloneNode(!0));var w=document.createElement(`title`);w.innerText=S,x.appendChild(w),x.appendChild(m),y.appendChild(x),f.push(x),t.appendChild(y),d=h.y+h.height}return t.removeChild(o),f}function duplicateSvg(e){for(var t=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),n=0;n<e.attributes.length;n++){var r=e.attributes[n];r.name!==`height`&&r.name!=`aria-label`&&t.setAttribute(r.name,r.value)}return t}EngraverController.prototype.getDim=function(e){if(!e.dim){var t=e.svgEl.getBBox();e.dim={left:Math.round(t.x),top:Math.round(t.y),right:Math.round(t.x+t.width),bottom:Math.round(t.y+t.height)}}return e.dim},EngraverController.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},t.exports=EngraverController})),vt=e.n(((e,t)=>{var n=J();A();var r=_t(),a=M(),o=C(),c={};function resizeOuter(){var e=window.innerWidth;for(var t in c)if(c.hasOwnProperty(t)){var n=c[t],r=n.offsetLeft;e-=r*2,n.style.width=e+`px`}}try{window.addEventListener(`resize`,resizeOuter),window.addEventListener(`orientationChange`,resizeOuter)}catch{}function renderOne(e,t,n,a,o){n.viewportHorizontal?(e.innerHTML=`<div class="abcjs-inner"></div>`,n.scrollHorizontal?(e.style.overflowX=`auto`,e.style.overflowY=`hidden`):e.style.overflow=`hidden`,c[e.id]=e,e=e.children[0]):n.viewportVertical?(e.innerHTML=`<div class="abcjs-inner scroll-amount"></div>`,e.style.overflowX=`hidden`,e.style.overflowY=`auto`,e=e.children[0]):e.innerHTML=``;var l=new r(e,n);if(l.engraveABC(t,a,o),t.engraver=l,n.viewportVertical||n.viewportHorizontal){var u=e.parentNode;u.style.width=e.style.width}}var renderAbc=function(e,t,r,a,o){var c={},l;if(r){for(l in r)r.hasOwnProperty(l)&&(c[l]=r[l]);c.warnings_id&&c.tablature&&(c.tablature.warning_id=c.warnings_id)}if(a)for(l in a)a.hasOwnProperty(l)&&(l===`listener`?a[l].highlight&&(c.clickListener=a[l].highlight):c[l]=a[l]);if(o)for(l in o)o.hasOwnProperty(l)&&(c[l]=o[l]);function callback(e,t,n,r){var a=!1;return e===`*`&&(a=!0,e=document.createElement(`div`),e.setAttribute(`style`,`visibility: hidden;`),document.body.appendChild(e)),!a&&c.wrap&&c.staffwidth?(t=doLineWrapping(e,t,n,r,c),t):(c.afterParsing&&c.afterParsing(t,n,r),renderOne(e,t,c,n,0),a&&e.parentNode.removeChild(e),null)}return n.renderEngine(callback,e,t,c)};function doLineWrapping(e,t,n,c,l){var u=new r(e,l).getMeasureWidths(t),d=o.calcLineWraps(t,u,l);if(d.reParse){var f=new a;f.parse(c,d.revisedParams),t=f.getTune();var p=f.getWarnings();p&&(t.warnings=p)}return l.afterParsing&&l.afterParsing(t,n,c),renderOne(e,t,d.revisedParams,n,0),t.explanation=d.explanation,t}t.exports=renderAbc})),yt=e.n(((e,t)=>{var n=J(),r=_t(),tuneMetrics=function(e,t){function callback(e,n,a,o){e=document.createElement(`div`),e.setAttribute(`style`,`visibility: hidden;`),document.body.appendChild(e);var c=new r(e,t).getMeasureWidths(n);return e.parentNode.removeChild(e),{sections:c}}return n.renderEngine(callback,`*`,e,t)};t.exports=tuneMetrics})),bt=e.n(((e,t)=>{t.exports={}})),xt=e.n(((e,t)=>{var n=bt(),getNote=function(e,t,r,a){n[t]||(n[t]={});var o=n[t];return o[r]||(o[r]=new Promise(function(n,o){var c=new XMLHttpRequest;let l=e+t+`-mp3/`+r+`.mp3`;c.open(`GET`,l,!0),c.responseType=`arraybuffer`,c.onload=function(){if(c.status!==200){o(Error(`Can't load sound at `+l+` status=`+c.status));return}var noteDecoded=function(e){n({instrument:t,name:r,status:`loaded`,audioBuffer:e})},e=a.decodeAudioData(c.response,noteDecoded,function(){o(Error(`Can't decode sound at `+l))});e&&typeof e.catch==`function`&&e.catch(o)},c.onerror=function(){o(Error(`Can't load sound at `+l))},c.send()}).catch(e=>{throw console.error(`Didn't load note`,t,r,`:`,e.message),e})),o[r]};t.exports=getNote})),St=e.n(((e,t)=>{t.exports=`acoustic_grand_piano.bright_acoustic_piano.electric_grand_piano.honkytonk_piano.electric_piano_1.electric_piano_2.harpsichord.clavinet.celesta.glockenspiel.music_box.vibraphone.marimba.xylophone.tubular_bells.dulcimer.drawbar_organ.percussive_organ.rock_organ.church_organ.reed_organ.accordion.harmonica.tango_accordion.acoustic_guitar_nylon.acoustic_guitar_steel.electric_guitar_jazz.electric_guitar_clean.electric_guitar_muted.overdriven_guitar.distortion_guitar.guitar_harmonics.acoustic_bass.electric_bass_finger.electric_bass_pick.fretless_bass.slap_bass_1.slap_bass_2.synth_bass_1.synth_bass_2.violin.viola.cello.contrabass.tremolo_strings.pizzicato_strings.orchestral_harp.timpani.string_ensemble_1.string_ensemble_2.synth_strings_1.synth_strings_2.choir_aahs.voice_oohs.synth_choir.orchestra_hit.trumpet.trombone.tuba.muted_trumpet.french_horn.brass_section.synth_brass_1.synth_brass_2.soprano_sax.alto_sax.tenor_sax.baritone_sax.oboe.english_horn.bassoon.clarinet.piccolo.flute.recorder.pan_flute.blown_bottle.shakuhachi.whistle.ocarina.lead_1_square.lead_2_sawtooth.lead_3_calliope.lead_4_chiff.lead_5_charang.lead_6_voice.lead_7_fifths.lead_8_bass_lead.pad_1_new_age.pad_2_warm.pad_3_polysynth.pad_4_choir.pad_5_bowed.pad_6_metallic.pad_7_halo.pad_8_sweep.fx_1_rain.fx_2_soundtrack.fx_3_crystal.fx_4_atmosphere.fx_5_brightness.fx_6_goblins.fx_7_echoes.fx_8_scifi.sitar.banjo.shamisen.koto.kalimba.bagpipe.fiddle.shanai.tinkle_bell.agogo.steel_drums.woodblock.taiko_drum.melodic_tom.synth_drum.reverse_cymbal.guitar_fret_noise.breath_noise.seashore.bird_tweet.telephone_ring.helicopter.applause.gunshot.percussion`.split(`.`)})),Ct=e.n(((e,t)=>{var n=St(),createNoteMap=function(e){for(var t=[],r=0;r<e.tracks.length;r++)t.push([]);var a=n[0];return e.tracks.forEach(function(e,r){e.forEach(function(e){switch(e.cmd){case`note`:var o=e.instrument===void 0?a:n[e.instrument];if(e.duration>0){var c=e.gap?e.gap:0,l=e.duration;c=Math.min(c,l*2/3);var u={pitch:e.pitch,instrument:o,start:Math.round(e.start*1e6)/1e6,end:Math.round((e.start+l-c)*1e6)/1e6,volume:e.volume};e.startChar&&(u.startChar=e.startChar),e.endChar&&(u.endChar=e.endChar),e.style&&(u.style=e.style),e.cents&&(u.cents=e.cents),t[r].push(u)}break;case`program`:a=n[e.instrument];break;case`text`:break;default:console.log(`Unhandled midi event`,e)}})}),t};t.exports=createNoteMap})),wt=e.n(((e,t)=>{function registerAudioContext(e){if(e)window.abcjsAudioContext=e;else if(!window.abcjsAudioContext){var t=window.AudioContext||window.webkitAudioContext;if(t)window.abcjsAudioContext=new t;else return!1}return window.abcjsAudioContext.state!==`suspended`}t.exports=registerAudioContext})),Tt=e.n(((e,t)=>{var n=wt();function activeAudioContext(){return window.abcjsAudioContext||n(),window.abcjsAudioContext}t.exports=activeAudioContext})),Et=e.n(((e,t)=>{var n=Tt();function supportsAudio(){if(!window.Promise||!window.AudioContext&&!window.webkitAudioContext&&!navigator.mozAudioContext&&!navigator.msAudioContext)return!1;var e=n();if(e)return e.resume!==void 0}t.exports=supportsAudio})),Dt=e.n(((e,t)=>{t.exports={21:`A0`,22:`Bb0`,23:`B0`,24:`C1`,25:`Db1`,26:`D1`,27:`Eb1`,28:`E1`,29:`F1`,30:`Gb1`,31:`G1`,32:`Ab1`,33:`A1`,34:`Bb1`,35:`B1`,36:`C2`,37:`Db2`,38:`D2`,39:`Eb2`,40:`E2`,41:`F2`,42:`Gb2`,43:`G2`,44:`Ab2`,45:`A2`,46:`Bb2`,47:`B2`,48:`C3`,49:`Db3`,50:`D3`,51:`Eb3`,52:`E3`,53:`F3`,54:`Gb3`,55:`G3`,56:`Ab3`,57:`A3`,58:`Bb3`,59:`B3`,60:`C4`,61:`Db4`,62:`D4`,63:`Eb4`,64:`E4`,65:`F4`,66:`Gb4`,67:`G4`,68:`Ab4`,69:`A4`,70:`Bb4`,71:`B4`,72:`C5`,73:`Db5`,74:`D5`,75:`Eb5`,76:`E5`,77:`F5`,78:`Gb5`,79:`G5`,80:`Ab5`,81:`A5`,82:`Bb5`,83:`B5`,84:`C6`,85:`Db6`,86:`D6`,87:`Eb6`,88:`E6`,89:`F6`,90:`Gb6`,91:`G6`,92:`Ab6`,93:`A6`,94:`Bb6`,95:`B6`,96:`C7`,97:`Db7`,98:`D7`,99:`Eb7`,100:`E7`,101:`F7`,102:`Gb7`,103:`G7`,104:`Ab7`,105:`A7`,106:`Bb7`,107:`B7`,108:`C8`,109:`Db8`,110:`D8`,111:`Eb8`,112:`E8`,113:`F8`,114:`Gb8`,115:`G8`,116:`Ab8`,117:`A8`,118:`Bb8`,119:`B8`,120:`C9`,121:`Db9`}})),Ot=e.n(((e,t)=>{var downloadBuffer=function(e){return window.URL.createObjectURL(bufferToWave(e.audioBuffers))};function bufferToWave(e){var t=e[0],n=t.numberOfChannels,r=t.length*n*2+44,a=new ArrayBuffer(r),o=new DataView(a),c=[],l,u,d=0,f=0;for(setUint32(1179011410),setUint32(r-8),setUint32(1163280727),setUint32(544501094),setUint32(16),setUint16(1),setUint16(n),setUint32(t.sampleRate),setUint32(t.sampleRate*2*n),setUint16(n*2),setUint16(16),setUint32(1635017060),setUint32(r-f-4),l=0;l<n;l++)c.push(t.getChannelData(l));for(;f<r;){for(l=0;l<c.length;l++)u=Math.max(-1,Math.min(1,c[l][d])),u=(.5+u<0?u*32768:u*32767)|0,o.setInt16(f,u,!0),f+=2;d++}return new Blob([a],{type:`audio/wav`});function setUint16(e){o.setUint16(f,e,!0),f+=2}function setUint32(e){o.setUint32(f,e,!0),f+=4}}t.exports=downloadBuffer})),kt=e.n(((e,t)=>{function centsToFactor(e){return 2**(e/1200)}t.exports=centsToFactor})),At=e.n(((e,t)=>{var n=bt(),r=Dt(),a=kt();function placeNote(e,t,o,c,l,u,d,f,p){var m=window.OfflineAudioContext||window.webkitOfflineAudioContext,h=o.len*o.tempoMultiplier;u&&(h+=u/1e3),h-=f,h<0&&(h=.005);var g=new m(2,Math.floor((h+d)*t),t),_=r[o.pitch];if(!n[o.instrument])return p&&p(`placeNote skipped (instrument empty): `+o.instrument+`:`+_),Promise.resolve();var y=n[o.instrument][_];return y?y.then(function(n){var r=g.createBufferSource();r.buffer=n.audioBuffer;var f=o.volume/96*l;r.gainNode=g.createGain(),o.pan&&g.createStereoPanner&&(r.panNode=g.createStereoPanner(),r.panNode.pan.setValueAtTime(o.pan,0)),r.gainNode.gain.value=f,r.gainNode.gain.linearRampToValueAtTime(r.gainNode.gain.value,h),r.gainNode.gain.linearRampToValueAtTime(0,h+d),o.cents&&(r.playbackRate.value=a(o.cents)),r.panNode?(r.panNode.connect(g.destination),r.gainNode.connect(r.panNode)):r.gainNode.connect(g.destination),r.connect(r.gainNode),r.start(0),r.noteOff?r.noteOff(h+d):r.stop(h+d);var m;return g.oncomplete=function(n){if(n.renderedBuffer&&n.renderedBuffer.getChannelData)for(var r=0;r<c.length;r++){var a=c[r]*o.tempoMultiplier;u&&(a-=u/1e3),a<0&&(a=0),a=Math.floor(a*t),copyToChannel(e,n.renderedBuffer,a)}p&&p(`placeNote: `+o.instrument+`:`+_),m()},g.startRendering(),new Promise(function(e){m=e})}).catch(function(e){return p&&p(`placeNote catch: `+e.message),Promise.resolve()}):(p&&p(`placeNote skipped: `+o.instrument+`:`+_),Promise.resolve())}var copyToChannel=function(e,t,n){for(var r=0;r<2;r++)for(var a=t.getChannelData(r),o=e.getChannelData(r),c=0;c<a.length;c++)o[c+n]+=a[c]};t.exports=placeNote})),jt=e.n(((e,t)=>{var n=xt(),r=Ct(),a=wt(),o=Tt(),c=Et(),l=Dt(),u=St(),d=Ot(),f=At(),p=bt(),m=`MIDI is not supported in this browser.`,h=`https://paulrosen.github.io/midi-js-soundfonts/abcjs/`,g=`https://paulrosen.github.io/midi-js-soundfonts/FluidR3_GM/`,_=`https://paulrosen.github.io/midi-js-soundfonts/MusyngKite/`;function CreateSynth(){var e=this;e.audioBufferPossible=void 0,e.directSource=[],e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.audioBuffers=[],e.duration=void 0,e.isRunning=!1,e.options=void 0,e.pickupLength=0,e.init=function(t){t||={},t.options&&(e.options=t.options),a(t.audioContext);var n=o().currentTime;if(e.debugCallback=t.debugCallback,e.debugCallback&&e.debugCallback(`init called`),e.audioBufferPossible=e._deviceCapable(),!e.audioBufferPossible)return Promise.reject({status:`NotSupported`,message:m});var r=t.options?t.options:{};e.soundFontUrl=r.soundFontUrl?r.soundFontUrl:g,e.soundFontUrl[e.soundFontUrl.length-1]!==`/`&&(e.soundFontUrl+=`/`),r.soundFontVolumeMultiplier||r.soundFontVolumeMultiplier===0?e.soundFontVolumeMultiplier=r.soundFontVolumeMultiplier:e.soundFontUrl===g||e.soundFontUrl===_?e.soundFontVolumeMultiplier=3:e.soundFontUrl===h?e.soundFontVolumeMultiplier=.4:e.soundFontVolumeMultiplier=1,r.programOffsets?e.programOffsets=r.programOffsets:e.soundFontUrl===h?e.programOffsets={bright_acoustic_piano:20,honkytonk_piano:20,electric_piano_1:30,electric_piano_2:30,harpsichord:40,clavinet:20,celesta:20,glockenspiel:40,vibraphone:30,marimba:35,xylophone:30,tubular_bells:35,dulcimer:30,drawbar_organ:20,percussive_organ:25,rock_organ:20,church_organ:40,reed_organ:40,accordion:40,harmonica:40,acoustic_guitar_nylon:20,acoustic_guitar_steel:30,electric_guitar_jazz:25,electric_guitar_clean:15,electric_guitar_muted:35,overdriven_guitar:25,distortion_guitar:20,guitar_harmonics:30,electric_bass_finger:15,electric_bass_pick:30,fretless_bass:40,violin:105,viola:50,cello:40,contrabass:60,trumpet:10,trombone:90,alto_sax:20,tenor_sax:20,clarinet:20,flute:50,banjo:50,woodblock:20}:e.programOffsets={};var c=r.fadeLength===void 0?NaN:parseInt(r.fadeLength,10);if(e.fadeLength=isNaN(c)?200:c,c=r.noteEnd===void 0?NaN:parseInt(r.noteEnd,10),e.noteEnd=isNaN(c)?0:c,e.pan=r.pan,e.meterSize=1,t.visualObj)e.flattened=t.visualObj.setUpAudio(r),t.visualObj.getMeterFraction().den&&(e.meterSize=t.visualObj.getMeterFraction().num/t.visualObj.getMeterFraction().den),e.pickupLength=t.visualObj.getPickupLength();else if(t.sequence)e.flattened=t.sequence;else return Promise.reject(Error(`Must pass in either a visualObj or a sequence`));e.millisecondsPerMeasure=t.millisecondsPerMeasure?t.millisecondsPerMeasure:t.visualObj?t.visualObj.millisecondsPerMeasure(e.flattened.tempo):1e3,e.beatsPerMeasure=t.visualObj?t.visualObj.getBeatsPerMeasure():4,e.sequenceCallback=r.sequenceCallback,e.callbackContext=r.callbackContext,e.onEnded=r.onEnded,e.meterFraction=t.visualObj?t.visualObj.getMeterFraction():{den:1};var d={},f=[],y=[],b=u[0];e.flattened.tracks.forEach(function(e){e.forEach(function(e){if(e.cmd===`program`&&u[e.instrument]&&(b=u[e.instrument]),e.pitch!==void 0){var t=e.pitch,n=l[t],r=e.instrument===void 0?b:u[e.instrument];if(n)if(d[r]||(d[r]={}),!p[r]||!p[r][n])d[r][n]=!0;else{var a=r+`:`+n;f.indexOf(a)<0&&f.push(a)}else{var o=r+`:`+n;console.log(`Can't find note: `,t,o),y.indexOf(o)<0&&y.push(o)}}})}),e.debugCallback&&e.debugCallback(`note gathering time = `+Math.floor((o().currentTime-n)*1e3)+`ms`),n=o().currentTime;var x=[];Object.keys(d).forEach(function(e){Object.keys(d[e]).forEach(function(t){x.push({instrument:e,note:t})})}),e.debugCallback&&e.debugCallback(`notes `+JSON.stringify(x));for(var S=[],C=256,w=0;w<x.length;w+=C)S.push(x.slice(w,w+C));return new Promise(function(t,r){var a={cached:f,error:y,loaded:[]},c=0,next=function(){e.debugCallback&&e.debugCallback(`loadBatch idx=`+c+` len=`+S.length),c<S.length?e._loadBatch(S[c],e.soundFontUrl,n).then(function(t){e.debugCallback&&e.debugCallback(`loadBatch then`),n=o().currentTime,t&&(t.error&&(a.error=a.error.concat(t.error)),t.loaded&&(a.loaded=a.loaded.concat(t.loaded))),c++,next()},r):(e.debugCallback&&e.debugCallback(`resolve init`),t(a))};next()})},e._loadBatch=(function(t,r,a,c){var l=[];return t.forEach(function(t){e.debugCallback&&e.debugCallback(`getNote `+t.instrument+`:`+t.note),l.push(n(r,t.instrument,t.note,o()))}),Promise.all(l).then(function(n){e.debugCallback&&e.debugCallback(`mp3 load time = `+Math.floor((o().currentTime-a)*1e3)+`ms`);for(var l=[],u=[],d=[],f=[],p=0;p<n.length;p++){var m=n[p],h=m.instrument+`:`+m.name;m.status===`loaded`?l.push(h):m.status===`pending`?d.push(h):m.status===`cached`?u.push(h):f.push(h+` `+m.message)}if(d.length>0){if(e.debugCallback&&e.debugCallback(`pending `+JSON.stringify(d)),c?c*=2:c=50,c<9e4)return new Promise(function(t,n){setTimeout(function(){var o=[];for(p=0;p<d.length;p++)h=d[p].split(`:`),o.push({instrument:h[0],note:h[1]});e.debugCallback&&e.debugCallback(`retry `+JSON.stringify(o)),e._loadBatch(o,r,a,c).then(function(e){t(e)}).catch(function(e){n(e)})},c)});for(var g=[],_=0;_<t.length;_++)g.push(t[_].instrument+`/`+t[_].note);return e.debugCallback&&e.debugCallback(`loadBatch timeout`),Promise.reject(Error(`timeout attempting to load: `+g.join(`, `)))}else return e.debugCallback&&e.debugCallback(`loadBatch resolve`),Promise.resolve({loaded:l,cached:u,error:f})}).catch(function(t){e.debugCallback&&e.debugCallback(`loadBatch catch `+t.message)})}),e.prime=function(){var t=e.fadeLength/1e3;return e.isRunning=!1,e.audioBufferPossible?(e.debugCallback&&e.debugCallback(`prime called`),new Promise(function(n){var a=o().currentTime,c=e.millisecondsPerMeasure/1e3/e.meterSize;if(e.duration=e.flattened.totalDuration*c,e.duration<=0)return e.audioBuffers=[],n({status:`empty`,seconds:0});e.duration+=t;var l=Math.floor(o().sampleRate*e.duration);e.stop();var u=r(e.flattened);e.options.swing&&addSwing(u,e.options.swing,e.meterFraction,e.pickupLength),e.sequenceCallback&&e.sequenceCallback(u,e.callbackContext);var d=setPan(u.length,e.pan),p={};u.forEach(function(t,n){var r=d&&d.length>n?d[n]:0;t.forEach(function(t){var n=t.instrument+`:`+t.pitch+`:`+t.volume+`:`+Math.round((t.end-t.start)*1e3)/1e3+`:`+r+`:`+c+`:`+(t.cents?t.cents:0);e.debugCallback&&e.debugCallback(`noteMapTrack `+n),p[n]||(p[n]=[]),p[n].push(t.start)})});for(var m=[],h=o().createBuffer(2,l,o().sampleRate),g=0;g<Object.keys(p).length;g++){var _=Object.keys(p)[g],y=_.split(`:`),b=y[6]===void 0?0:parseFloat(y[6]);y={instrument:y[0],pitch:parseInt(y[1],10),volume:parseInt(y[2],10),len:parseFloat(y[3]),pan:parseFloat(y[4]),tempoMultiplier:parseFloat(y[5]),cents:b},m.push(f(h,o().sampleRate,y,p[_],e.soundFontVolumeMultiplier,e.programOffsets[y.instrument],t,e.noteEnd/1e3,e.debugCallback))}e.audioBuffers=[h],e.debugCallback&&(e.debugCallback(`sampleRate = `+o().sampleRate),e.debugCallback(`totalSamples = `+l),e.debugCallback(`creationTime = `+Math.floor((o().currentTime-a)*1e3)+`ms`));function resolveData(e){var t=e&&e.audioBuffers&&e.audioBuffers.length>0?e.audioBuffers[0].duration:0;return{status:o().state,duration:t}}Promise.all(m).then(function(){o().state===`suspended`?o().resume().then(function(){n(resolveData(e))}):o().state===`interrupted`?o().suspend().then(function(){o().resume().then(function(){n(resolveData(e))})}):n(resolveData(e))})})):Promise.reject(Error(m))};function setPan(e,t){if(t==null)return null;var n=[];if(t.length){for(var r=0;r<e;r++)if(r<t.length){var a=parseFloat(t[r]);a<-1?a=-1:a>1&&(a=1),n.push(a)}else n.push(0);return n}else{var o=parseFloat(t);if(o*(e-1)>2)return null;for(var c=e%2==0,l=c?0-o/2:0,u=l+o,d=0;d<e;d++)c=d%2==0,c?(n.push(l),l-=o):(n.push(u),u+=o);return n}return null}e.start=function(){if(!e.audioBufferPossible)throw Error(m);e.debugCallback&&e.debugCallback(`start called`);var t=e.pausedTimeSec?e.pausedTimeSec:0;e._kickOffSound(t),e.startTimeSec=o().currentTime-t,e.pausedTimeSec=void 0,e.debugCallback&&e.debugCallback(`MIDI STARTED`,e.startTimeSec)},e.pause=function(){if(!e.audioBufferPossible)throw Error(m);return e.debugCallback&&e.debugCallback(`pause called`),e.pausedTimeSec=e.stop(),e.pausedTimeSec},e.resume=function(){e.start()},e.seek=function(t,n){var r;switch(n){case`seconds`:r=t;break;case`beats`:r=t*e.millisecondsPerMeasure/e.beatsPerMeasure/1e3;break;default:r=(e.duration-e.fadeLength/1e3)*t;break}if(!e.audioBufferPossible)throw Error(m);e.debugCallback&&e.debugCallback(`seek called sec=`+r),e.isRunning?(e.stop(),e._kickOffSound(r)):e.pausedTimeSec=r,e.pausedTimeSec=r},e.stop=function(){return e.isRunning=!1,e.pausedTimeSec=void 0,e.directSource.forEach(function(e){try{e.stop()}catch(e){console.log(`direct source didn't stop:`,e)}}),e.directSource=[],o().currentTime-e.startTimeSec},e.finished=function(){e.startTimeSec=void 0,e.pausedTimeSec=void 0,e.isRunning=!1},e.download=function(){return d(e)},e.getAudioBuffer=function(){return e.audioBuffers[0]},e.getIsRunning=function(){return e.isRunning},e._deviceCapable=function(){return c()?!0:(console.warn(m),e.debugCallback&&e.debugCallback(m),!1)},e._kickOffSound=function(t){e.isRunning=!0,e.directSource=[],e.audioBuffers.forEach(function(t,n){e.directSource[n]=o().createBufferSource(),e.directSource[n].buffer=t,e.directSource[n].connect(o().destination)}),e.directSource.forEach(function(e){e.start(0,t)}),e.onEnded&&(e.directSource[0].onended=function(){e.onEnded(e.callbackContext)})};function addSwing(e,t,n,r){if(!(n.den!=4&&n.den!=8)&&(t=parseFloat(t),!(isNaN(t)||t<=50))){t>75&&(t=75),t=t/50-1;var a=0,o=.25;n.den===8&&(o/=2);for(var c=o/2,l=c*t,u=0;u<e.length;u++)for(var d=e[u],f=0;f<d.length;f++){var p=d[f];if((p.start-r)%c==0&&(p.start-r)%o!=0&&(f==0||d[f-1].start<=d[f].start-c)&&(f==d.length-1||d[f+1].start>=d[f].start+c)){var m=p.start;p.start+=l,p.volume*=1+a,f>0&&d[f-1].end==m&&(d[f-1].end=p.start,d[f-1].volume*=1-a)}}}}}t.exports=CreateSynth})),Mt=e.n(((e,t)=>{var SynthSequence=function(){var e=this;e.tracks=[],e.totalDuration=0,e.currentInstrument=[],e.starts=[],e.addTrack=function(){return e.tracks.push([]),e.currentInstrument.push(0),e.starts.push(0),e.tracks.length-1},e.setInstrument=function(t,n){e.tracks[t].push({channel:0,cmd:`program`,instrument:n}),e.currentInstrument[t]=n},e.appendNote=function(t,n,r,a,o){var c={cmd:`note`,duration:r,gap:0,instrument:e.currentInstrument[t],pitch:n,start:e.starts[t],volume:a};o&&(c.cents=o),e.tracks[t].push(c),e.starts[t]+=r,e.totalDuration=Math.max(e.totalDuration,e.starts[t])}};t.exports=SynthSequence})),Nt=e.n(((e,t)=>{t.exports=`
|
|
39
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" preserveAspectRatio="xMidYMid meet">
|
|
40
|
+
<g transform="translate(0,700) scale(0.1,-0.1)" >
|
|
41
|
+
<path d="M3111 6981 c-20 -37 -90 -55 -364 -96 -120 -18 -190 -33 -244 -55
|
|
42
|
+
-42 -17 -124 -42 -182 -56 -78 -18 -119 -34 -157 -60 -28 -19 -86 -46 -128
|
|
43
|
+
-60 -43 -13 -107 -42 -144 -64 -37 -23 -84 -46 -106 -52 -21 -7 -56 -29 -79
|
|
44
|
+
-50 -22 -22 -61 -50 -86 -63 -26 -13 -67 -40 -91 -60 -24 -20 -65 -47 -90 -60
|
|
45
|
+
-25 -13 -53 -31 -61 -41 -8 -9 -32 -30 -54 -46 -75 -54 -486 -460 -512 -507
|
|
46
|
+
-15 -25 -48 -69 -75 -98 -26 -28 -48 -57 -48 -63 0 -6 -18 -29 -39 -53 -21
|
|
47
|
+
-23 -56 -71 -77 -107 -20 -36 -50 -80 -65 -97 -16 -18 -33 -52 -40 -75 -12
|
|
48
|
+
-47 -47 -115 -84 -166 -13 -18 -30 -56 -38 -83 -8 -27 -34 -80 -56 -118 -33
|
|
49
|
+
-53 -46 -91 -62 -167 -12 -63 -34 -127 -59 -179 -42 -84 -60 -166 -60 -270 0
|
|
50
|
+
-90 26 -122 125 -154 54 -17 96 -19 430 -20 305 -1 381 2 430 14 82 22 140 51
|
|
51
|
+
153 78 6 12 22 47 37 77 14 30 38 77 54 103 15 27 34 73 40 103 7 30 28 78 48
|
|
52
|
+
107 19 28 44 74 55 101 10 28 34 67 53 87 18 20 49 61 68 90 19 30 44 63 57
|
|
53
|
+
74 13 11 36 40 52 65 59 94 232 270 306 313 20 11 57 37 82 58 25 20 70 52
|
|
54
|
+
100 72 30 19 66 47 79 61 13 14 49 35 80 46 30 12 80 37 111 56 31 19 95 45
|
|
55
|
+
143 58 48 12 110 37 139 55 63 40 127 55 323 76 83 9 208 28 279 41 156 29
|
|
56
|
+
165 29 330 4 453 -71 514 -84 606 -130 31 -16 83 -36 116 -45 32 -9 84 -34
|
|
57
|
+
115 -56 31 -21 82 -48 113 -60 32 -11 72 -33 89 -48 18 -16 59 -45 92 -65 33
|
|
58
|
+
-21 74 -51 90 -66 17 -15 49 -40 73 -54 52 -32 65 -61 50 -113 -8 -31 -61 -90
|
|
59
|
+
-277 -308 -300 -303 -361 -382 -369 -481 -2 -29 0 -66 6 -81 13 -40 88 -138
|
|
60
|
+
115 -151 12 -6 54 -26 92 -44 l70 -33 945 -2 c520 -1 975 2 1012 7 64 8 191
|
|
61
|
+
50 231 76 11 7 33 34 50 60 22 34 42 51 65 58 l32 9 0 1101 0 1102 -32 9 c-21
|
|
62
|
+
7 -44 26 -64 55 -60 84 -77 97 -140 110 -44 9 -76 10 -127 2 -59 -9 -77 -17
|
|
63
|
+
-134 -62 -37 -28 -172 -155 -301 -281 -129 -127 -249 -237 -267 -245 -25 -10
|
|
64
|
+
-41 -11 -71 -2 -58 15 -112 45 -124 69 -6 11 -35 35 -64 54 -28 18 -58 41 -66
|
|
65
|
+
50 -8 9 -41 35 -75 58 -33 22 -77 56 -99 75 -21 18 -64 46 -95 61 -31 14 -73
|
|
66
|
+
39 -93 55 -20 15 -70 40 -110 55 -40 15 -97 44 -127 64 -29 21 -78 44 -107 53
|
|
67
|
+
-30 8 -77 31 -105 51 -42 28 -73 39 -173 60 -68 14 -154 39 -196 58 -95 43
|
|
68
|
+
-131 51 -343 76 -209 24 -242 32 -279 70 l-30 29 -328 0 c-312 0 -330 -1 -339
|
|
69
|
+
-19z"></path>
|
|
70
|
+
<path d="M254 2875 c-89 -16 -107 -26 -145 -78 -32 -44 -62 -66 -91 -67 -17 0
|
|
71
|
+
-18 -61 -18 -1140 l0 -1140 24 0 c16 0 41 -17 72 -50 40 -42 61 -55 117 -72
|
|
72
|
+
l69 -21 82 23 c44 12 96 30 114 39 18 9 148 132 290 272 141 141 267 261 279
|
|
73
|
+
268 51 26 86 14 176 -61 32 -26 62 -48 66 -48 5 0 36 -25 70 -55 34 -30 74
|
|
74
|
+
-61 89 -69 15 -8 37 -28 50 -45 12 -17 50 -45 84 -62 34 -17 78 -44 98 -60 19
|
|
75
|
+
-16 61 -37 93 -48 32 -11 81 -37 107 -56 27 -20 76 -45 109 -56 33 -12 75 -31
|
|
76
|
+
93 -44 62 -45 93 -58 191 -82 54 -12 130 -37 168 -54 68 -29 180 -58 226 -59
|
|
77
|
+
62 0 183 -64 183 -96 0 -12 88 -14 639 -14 l639 0 12 30 c18 44 76 66 233 89
|
|
78
|
+
89 14 160 30 200 47 34 15 106 42 159 60 54 18 112 44 130 57 47 35 85 52 146
|
|
79
|
+
67 29 7 76 28 105 48 29 20 77 48 107 63 30 15 66 39 80 54 14 15 50 40 81 56
|
|
80
|
+
31 15 78 46 104 69 26 22 61 46 79 54 17 7 43 26 56 42 14 16 41 41 60 56 64
|
|
81
|
+
48 380 362 408 405 15 23 40 51 55 63 15 12 36 38 46 58 11 21 37 57 58 82 22
|
|
82
|
+
25 49 62 62 83 13 20 38 56 57 78 19 23 50 74 69 113 19 39 46 86 59 104 14
|
|
83
|
+
18 34 62 46 98 12 36 32 77 45 92 31 38 60 97 80 167 9 33 26 76 37 95 29 50
|
|
84
|
+
47 103 68 206 10 52 32 117 51 155 29 56 33 74 34 140 0 94 -10 108 -101 138
|
|
85
|
+
-61 20 -83 21 -463 21 -226 0 -421 -4 -451 -10 -63 -12 -86 -30 -110 -85 -10
|
|
86
|
+
-22 -33 -63 -52 -92 -21 -31 -42 -80 -53 -123 -11 -44 -32 -93 -56 -128 -20
|
|
87
|
+
-32 -47 -83 -59 -115 -12 -32 -37 -77 -56 -100 -19 -23 -50 -65 -69 -94 -19
|
|
88
|
+
-29 -44 -57 -54 -63 -11 -5 -29 -27 -42 -47 -52 -85 -234 -277 -300 -315 -25
|
|
89
|
+
-15 -53 -38 -62 -51 -9 -14 -42 -39 -74 -57 -32 -18 -75 -48 -95 -66 -21 -18
|
|
90
|
+
-59 -44 -85 -58 -26 -13 -72 -40 -100 -59 -35 -24 -78 -41 -128 -52 -47 -11
|
|
91
|
+
-99 -31 -139 -56 -69 -42 -94 -49 -391 -110 -245 -51 -425 -66 -595 -50 -168
|
|
92
|
+
16 -230 27 -330 61 -47 16 -123 35 -170 44 -98 17 -123 25 -172 58 -20 14 -71
|
|
93
|
+
37 -114 53 -44 15 -95 40 -115 56 -20 16 -70 42 -110 59 -40 16 -88 45 -108
|
|
94
|
+
63 -20 19 -55 46 -78 61 -24 14 -49 35 -55 47 -7 11 -34 33 -60 49 -50 31 -65
|
|
95
|
+
61 -53 102 4 13 130 147 281 298 236 238 277 283 299 335 15 32 35 71 46 86
|
|
96
|
+
12 18 19 44 19 76 0 42 -8 63 -53 138 -92 151 11 139 -1207 141 -798 2 -1030
|
|
97
|
+
0 -1086 -11z"></path>
|
|
98
|
+
</g>
|
|
99
|
+
</svg>
|
|
100
|
+
`})),Pt=e.n(((e,t)=>{t.exports=`
|
|
101
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-play-svg">
|
|
102
|
+
<g>
|
|
103
|
+
<polygon points="4 0 23 12.5 4 25"/>
|
|
104
|
+
</g>
|
|
105
|
+
</svg>
|
|
106
|
+
`})),Ft=e.n(((e,t)=>{t.exports=`
|
|
107
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" class="abcjs-pause-svg">
|
|
108
|
+
<g>
|
|
109
|
+
<rect width="8.23" height="25"/>
|
|
110
|
+
<rect width="8.23" height="25" x="17"/>
|
|
111
|
+
</g>
|
|
112
|
+
</svg>
|
|
113
|
+
`})),It=e.n(((e,t)=>{t.exports=`
|
|
114
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" class="abcjs-loading-svg">
|
|
115
|
+
<circle cx="50" cy="50" fill="none" stroke-width="20" r="35" stroke-dasharray="160 55"></circle>
|
|
116
|
+
</svg>
|
|
117
|
+
`})),Lt=e.n(((e,t)=>{t.exports=`
|
|
118
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25">
|
|
119
|
+
<g>
|
|
120
|
+
<polygon points="5 12.5 24 0 24 25"/>
|
|
121
|
+
<rect width="3" height="25" x="0" y="0"/>
|
|
122
|
+
</g>
|
|
123
|
+
</svg>
|
|
124
|
+
`})),Rt=e.n(((e,t)=>{var n=Et(),r=wt(),a=Tt(),o=Nt(),c=Pt(),l=Ft(),u=It(),d=Lt();function CreateSynthControl(e,t){var n=this;if(typeof e==`string`){var o=e;if(e=document.querySelector(o),!e)throw Error(`Cannot find element "`+o+`" in the DOM.`)}else if(!(e instanceof HTMLElement))throw Error(`The first parameter must be a valid element or selector in the DOM.`);if(n.parent=e,n.options={},t&&(n.options=Object.assign({},t)),n.options.ac&&r(n.options.ac),buildDom(n.parent,n.options),attachListeners(n),n.disable=function(e){var t=n.parent.querySelector(`.abcjs-inline-audio`);e?t.classList.add(`abcjs-disabled`):t.classList.remove(`abcjs-disabled`)},n.setWarp=function(e,t){var r=n.parent.querySelector(`.abcjs-midi-tempo`);r.value=Math.round(t),n.setTempo(e)},n.setTempo=function(e){var t=n.parent.querySelector(`.abcjs-midi-current-tempo`);t&&(t.innerHTML=Math.round(e))},n.resetAll=function(){for(var e=n.parent.querySelectorAll(`.abcjs-pushed`),t=0;t<e.length;t++)e[t].classList.remove(`abcjs-pushed`)},n.pushPlay=function(e){var t=n.parent.querySelector(`.abcjs-midi-start`);t&&(e?t.classList.add(`abcjs-pushed`):t.classList.remove(`abcjs-pushed`))},n.pushLoop=function(e){var t=n.parent.querySelector(`.abcjs-midi-loop`);t&&(e?t.classList.add(`abcjs-pushed`):t.classList.remove(`abcjs-pushed`))},n.setProgress=function(e,t){var r=n.parent.querySelector(`.abcjs-midi-progress-background`),a=n.parent.querySelector(`.abcjs-midi-progress-indicator`);if(!(!r||!a)){var o=r.clientWidth*e;a.style.left=o+`px`;var c=n.parent.querySelector(`.abcjs-midi-clock`);if(c){var l=t*e/1e3,u=Math.floor(l/60),d=Math.floor(l%60),f=d<10?`0`+d:d;c.innerHTML=u+`:`+f}}},n.options.afterResume){var c=!1;n.options.ac?c=n.options.ac.state!==`suspended`:a()&&(c=a().state!==`suspended`),c&&n.options.afterResume()}}function buildDom(e,t){var n=!!t.loopHandler,r=!!t.restartHandler,a=!!t.playHandler||!!t.playPromiseHandler,f=!!t.progressHandler,p=!!t.warpHandler,m=t.hasClock!==!1,h=`<div class="abcjs-inline-audio">
|
|
125
|
+
`;if(n){var g=t.repeatTitle?t.repeatTitle:`Click to toggle play once/repeat.`,_=t.repeatAria?t.repeatAria:g;h+=`<button type="button" class="abcjs-midi-loop abcjs-btn" title="`+g+`" aria-label="`+_+`">`+o+`</button>
|
|
126
|
+
`}if(r){var y=t.restartTitle?t.restartTitle:`Click to go to beginning.`,b=t.restartAria?t.restartAria:y;h+=`<button type="button" class="abcjs-midi-reset abcjs-btn" title="`+y+`" aria-label="`+b+`">`+d+`</button>
|
|
127
|
+
`}if(a){var x=t.playTitle?t.playTitle:`Click to play/pause.`,S=t.playAria?t.playAria:x;h+=`<button type="button" class="abcjs-midi-start abcjs-btn" title="`+x+`" aria-label="`+S+`">`+c+l+u+`</button>
|
|
128
|
+
`}if(f){var C=t.randomTitle?t.randomTitle:`Click to change the playback position.`,w=t.randomAria?t.randomAria:C;h+=`<button type="button" class="abcjs-midi-progress-background" title="`+C+`" aria-label="`+w+`"><span class="abcjs-midi-progress-indicator"></span></button>
|
|
129
|
+
`}if(m&&(h+=`<span class="abcjs-midi-clock"></span>
|
|
130
|
+
`),p){var T=t.warpTitle?t.warpTitle:`Change the playback speed.`,E=t.warpAria?t.warpAria:T,D=t.bpm?t.bpm:`BPM`;h+=`<span class="abcjs-tempo-wrapper"><label><input class="abcjs-midi-tempo" type="number" min="1" max="300" value="100" title="`+T+`" aria-label="`+E+`">%</label><span> (<span class="abcjs-midi-current-tempo"></span> `+D+`)</span></span>
|
|
131
|
+
`}h+=`<div class="abcjs-css-warning" style="font-size: 12px;color:red;border: 1px solid red;text-align: center;width: 300px;margin-top: 4px;font-weight: bold;border-radius: 4px;">CSS required: load abcjs-audio.css</div>`,h+=`</div>
|
|
132
|
+
`,e.innerHTML=h}function acResumerMiddleWare(e,t,o,c,l){var u=!0;if(a()?u=a().state===`suspended`:r(),!n())throw{status:`NotSupported`,message:`This browser does not support audio.`};(u||l)&&o&&o.classList.add(`abcjs-loading`),u?a().resume().then(function(){c?c().then(function(n){doNext(e,t,o,l)}):doNext(e,t,o,l)}):doNext(e,t,o,l)}function doNext(e,t,n,r){r?e(t).then(function(){n&&n.classList.remove(`abcjs-loading`)}):(e(t),n&&n.classList.remove(`abcjs-loading`))}function attachListeners(e){var t=!!e.options.loopHandler,n=!!e.options.restartHandler,r=!!e.options.playHandler||!!e.options.playPromiseHandler,a=!!e.options.progressHandler,o=!!e.options.warpHandler,c=e.parent.querySelector(`.abcjs-midi-start`);t&&e.parent.querySelector(`.abcjs-midi-loop`).addEventListener(`click`,function(t){acResumerMiddleWare(e.options.loopHandler,t,c,e.options.afterResume)}),n&&e.parent.querySelector(`.abcjs-midi-reset`).addEventListener(`click`,function(t){acResumerMiddleWare(e.options.restartHandler,t,c,e.options.afterResume)}),r&&c.addEventListener(`click`,function(t){acResumerMiddleWare(e.options.playPromiseHandler||e.options.playHandler,t,c,e.options.afterResume,!!e.options.playPromiseHandler)}),a&&e.parent.querySelector(`.abcjs-midi-progress-background`).addEventListener(`click`,function(t){acResumerMiddleWare(e.options.progressHandler,t,c,e.options.afterResume)}),o&&e.parent.querySelector(`.abcjs-midi-tempo`).addEventListener(`change`,function(t){acResumerMiddleWare(e.options.warpHandler,t,c,e.options.afterResume)})}t.exports=CreateSynthControl})),zt=e.n(((e,t)=>{var n=Mt(),r=jt(),a=Tt();function playEvent(e,t,r,o,c){for(var l=new n,u=0;u<e.length;u++){var d=e[u],f=l.addTrack();if(l.setInstrument(f,d.instrument),u===0&&t)for(var p=0;p<t.length;p++){var m=t[p];l.appendNote(f,m.pitch,1/64,m.volume,m.cents)}l.appendNote(f,d.pitch,d.duration,d.volume,d.cents)}var h=a();return h.state===`suspended`?h.resume().then(function(){return doPlay(l,r,o,c)}):doPlay(l,r,o,c)}function doPlay(e,t,n,a){var o=new r;return o.init({sequence:e,millisecondsPerMeasure:t,options:{soundFontUrl:n},debugCallback:a}).then(function(){return o.prime()}).then(function(){return o.start(),Promise.resolve()})}t.exports=playEvent})),Bt=e.n(((e,t)=>{var n=Rt(),r=jt(),a=c(),o=Tt();function SynthController(){var e=this;e.warp=100,e.cursorControl=null,e.visualObj=null,e.timer=null,e.midiBuffer=null,e.options=null,e.currentTempo=null,e.control=null,e.isLooping=!1,e.isStarted=!1,e.isLoaded=!1,e.isLoading=!1,e.load=function(t,r,a){a||={},a.displayPlay===void 0&&(a.displayPlay=!0),a.displayProgress===void 0&&(a.displayProgress=!0),e.control=new n(t,{loopHandler:a.displayLoop?e.toggleLoop:void 0,restartHandler:a.displayRestart?e.restart:void 0,playPromiseHandler:a.displayPlay?e.play:void 0,progressHandler:a.displayProgress?e.randomAccess:void 0,warpHandler:a.displayWarp?e.onWarp:void 0,afterResume:e.init}),e.cursorControl=r,e.disable(!0)},e.disable=function(t){e.control&&e.control.disable(t)},e.setTune=function(t,n,r){return e.visualObj=t,e.disable(!1),e.options=r||{},e.control&&(e.pause(),e.setProgress(0,1),e.control.resetAll(),e.restart(),e.isStarted=!1),e.isLooping=!1,n?e.go():Promise.resolve({status:`no-audio-context`})},e.go=function(){e.isLoading=!0;var t=e.visualObj.millisecondsPerMeasure()*100/e.warp;e.currentTempo=Math.round(e.visualObj.getBeatsPerMeasure()/t*6e4),e.control&&e.control.setTempo(e.currentTempo),e.percent=0;var n;return e.midiBuffer||=new r,o().resume().then(function(n){return e.midiBuffer.init({visualObj:e.visualObj,options:e.options,millisecondsPerMeasure:t})}).then(function(t){return n=t,e.midiBuffer.prime()}).then(function(){var t=16;return e.cursorControl&&e.cursorControl.beatSubdivisions!==void 0&&parseInt(e.cursorControl.beatSubdivisions,10)>=1&&parseInt(e.cursorControl.beatSubdivisions,10)<=64&&(t=parseInt(e.cursorControl.beatSubdivisions,10)),e.timer=new a(e.visualObj,{beatCallback:e.beatCallback,eventCallback:e.eventCallback,lineEndCallback:e.lineEndCallback,qpm:e.currentTempo,extraMeasuresAtBeginning:e.cursorControl?e.cursorControl.extraMeasuresAtBeginning:void 0,lineEndAnticipation:e.cursorControl?e.cursorControl.lineEndAnticipation:0,beatSubdivisions:t}),e.cursorControl&&e.cursorControl.onReady&&typeof e.cursorControl.onReady==`function`&&e.cursorControl.onReady(e),e.isLoaded=!0,e.isLoading=!1,Promise.resolve({status:`created`,notesStatus:n})})},e.destroy=function(){e.timer&&=(e.timer.reset(),e.timer.stop(),null),e.midiBuffer&&=(e.midiBuffer.stop(),null),e.setProgress(0,1),e.control&&e.control.resetAll()},e.play=function(){return e.runWhenReady(e._play,void 0)};function sleep(e){return new Promise(function(t){setTimeout(t,e)})}e.runWhenReady=function(t,n){return e.visualObj?e.isLoading?sleep(500).then(function(){return e.isLoading?e.runWhenReady(t,n):t(n)}):e.isLoaded?t(n):e.go().then(function(){return t(n)}):Promise.resolve({status:`loading`})},e._play=function(){return o().resume().then(function(){return e.isStarted=!e.isStarted,e.isStarted?(e.cursorControl&&e.cursorControl.onStart&&typeof e.cursorControl.onStart==`function`&&e.cursorControl.onStart(),e.midiBuffer.start(),e.timer.start(e.percent),e.control&&e.control.pushPlay(!0)):e.pause(),Promise.resolve({status:`ok`})})},e.pause=function(){e.timer&&(e.timer.pause(),e.midiBuffer.pause(),e.control&&e.control.pushPlay(!1))},e.toggleLoop=function(){e.isLooping=!e.isLooping,e.control&&e.control.pushLoop(e.isLooping)},e.restart=function(){e.timer&&(e.timer.setProgress(0),e.midiBuffer.seek(0))},e.randomAccess=function(t){return e.runWhenReady(e._randomAccess,t)},e._randomAccess=function(t){var n=t.target.classList.contains(`abcjs-midi-progress-indicator`)?t.target.parentNode:t.target,r=(t.x-n.getBoundingClientRect().left)/n.offsetWidth;return r<0&&(r=0),r>1&&(r=1),e.seek(r),Promise.resolve({status:`ok`})},e.seek=function(t,n){e.timer&&e.midiBuffer&&(e.timer.setProgress(t,n),e.midiBuffer.seek(t,n))},e.setWarp=function(t){if(parseInt(t,10)>0){e.warp=parseInt(t,10);var n=e.isStarted,r=e.percent;return e.destroy(),e.isStarted=!1,e.go().then(function(){return e.setProgress(r,e.midiBuffer.duration*1e3),e.control&&e.control.setWarp(e.currentTempo,e.warp),n?e.play().then(function(){return e.seek(r),Promise.resolve()}):(e.seek(r),Promise.resolve())})}return Promise.resolve()},e.onWarp=function(t){var n=t.target.value;return e.setWarp(n)},e.setProgress=function(t,n){e.percent=t,e.control&&e.control.setProgress(t,n)},e.finished=function(){if(e.timer.reset(),e.isLooping)return e.timer.start(0),e.midiBuffer.finished(),e.midiBuffer.start(),`continue`;e.timer.stop(),e.isStarted&&(e.control&&e.control.pushPlay(!1),e.isStarted=!1,e.midiBuffer.finished(),e.cursorControl&&e.cursorControl.onFinished&&typeof e.cursorControl.onFinished==`function`&&e.cursorControl.onFinished(),e.setProgress(0,1))},e.beatCallback=function(t,n,r,a){var o=t/n;e.setProgress(o,r),e.cursorControl&&e.cursorControl.onBeat&&typeof e.cursorControl.onBeat==`function`&&e.cursorControl.onBeat(t,n,r,a)},e.eventCallback=function(t){if(t)e.cursorControl&&e.cursorControl.onEvent&&typeof e.cursorControl.onEvent==`function`&&e.cursorControl.onEvent(t);else return e.finished()},e.lineEndCallback=function(t,n){e.cursorControl&&e.cursorControl.onLineEnd&&typeof e.cursorControl.onLineEnd==`function`&&e.cursorControl.onLineEnd(t,n)},e.getUrl=function(){return e.midiBuffer.download()},e.download=function(t){var n=e.getUrl(),r=document.createElement(`a`);document.body.appendChild(r),r.setAttribute(`style`,`display: none;`),r.href=n,r.download=t||`output.wav`,r.click(),window.URL.revokeObjectURL(n),document.body.removeChild(r)}}t.exports=SynthController})),Vt=e.n(((e,t)=>{var n=kt(),rendererFactory;(function(){"use strict";function setAttributes(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n]);return e}function Midi(){this.trackstrings=``,this.trackcount=0,this.noteOnAndChannel=`%90`,this.noteOffAndChannel=`%80`}Midi.prototype.setTempo=function(e){this.trackcount===0&&(this.startTrack(),this.track+=`%00%FF%51%03`+toHex(Math.round(6e7/e),6),this.endTrack())},Midi.prototype.setGlobalInfo=function(e,t,n,r){if(this.trackcount===0){this.startTrack();var a=Math.round(6e7/e);this.track+=`%00%FF%51%03`+toHex(a,6),n&&(this.track+=keySignature(n)),r&&(this.track+=timeSignature(r)),t&&(this.track+=encodeString(t,`%01`)),this.endTrack()}},Midi.prototype.startTrack=function(){this.noteWarped={},this.track=``,this.trackName=``,this.trackInstrument=``,this.silencelength=0,this.trackcount++,this.instrument&&this.setInstrument(this.instrument)},Midi.prototype.endTrack=function(){this.track=this.trackName+this.trackInstrument+this.track,this.track=`MTrk`+toHex(this.track.length/3+4,8)+this.track+`%00%FF%2F%00`,this.trackstrings+=this.track},Midi.prototype.setText=function(e,t){switch(e){case`name`:this.trackName=encodeString(t,`%03`);break}},Midi.prototype.setInstrument=function(e){this.trackInstrument=`%00%C0`+toHex(e,2),this.instrument=e},Midi.prototype.setChannel=function(e,t){this.channel=e;var n=`%00%B`+this.channel.toString(16);this.track+=n+`%79%00`,this.track+=n+`%40%00`,this.track+=n+`%5B%30`,t||=0,t=Math.round((t+1)*64),this.track+=n+`%0A`+toHex(t,2),this.track+=n+`%07%64`,this.noteOnAndChannel=`%9`+this.channel.toString(16),this.noteOffAndChannel=`%8`+this.channel.toString(16)};var e=4096;Midi.prototype.startNote=function(t,r,a){if(this.track+=toDurationHex(this.silencelength),this.silencelength=0,a){this.track+=`%e`+this.channel.toString(16);var o=Math.round(n(a)*e);this.track+=to7BitHex(8192+o),this.track+=toDurationHex(0),this.noteWarped[t]=!0}this.track+=this.noteOnAndChannel,this.track+=`%`+t.toString(16)+toHex(r,2)},Midi.prototype.endNote=function(e){this.track+=toDurationHex(this.silencelength),this.silencelength=0,this.noteWarped[e]&&(this.track+=`%e`+this.channel.toString(16),this.track+=to7BitHex(8192),this.track+=toDurationHex(0),this.noteWarped[e]=!1),this.track+=this.noteOffAndChannel,this.track+=`%`+e.toString(16)+`%00`},Midi.prototype.addRest=function(e){this.silencelength+=e,this.silencelength<0&&(this.silencelength=0)},Midi.prototype.getData=function(){return`data:audio/midi,MThd%00%00%00%06%00%01`+toHex(this.trackcount,4)+`%01%e0`+this.trackstrings},Midi.prototype.embed=function(e,t){var n=this.getData(),r=setAttributes(document.createElement(`a`),{href:n});if(r.innerHTML=`download midi`,e.insertBefore(r,e.firstChild),!t){var a=setAttributes(document.createElement(`embed`),{src:n,type:`video/quicktime`,controller:`true`,autoplay:`false`,loop:`false`,enablejavascript:`true`,style:`display:block; height: 20px;`});e.insertBefore(a,e.firstChild)}};function encodeString(e,t){for(var n=``,r=0;r<e.length;r++)n+=toHex(e.charCodeAt(r),2);return`%00%FF`+t+toHex(n.length/3,2)+n}function keySignature(e){if(!e||!e.accidentals)return``;for(var t=`%00%FF%59%02`,n=0,r=256,a=0;a<e.accidentals.length;a++)e.accidentals[a].acc===`sharp`?n++:e.accidentals[a].acc===`flat`&&r--;var o=toHex(r===256?n:r,2),c=e.mode===`m`?`%01`:`%00`;return t+o+c}function timeSignature(e){var t=`%00%FF%58%04`+toHex(e.num,2),n={1:0,2:1,4:2,8:3,16:4,32:5}[e.den];if(!n)return``;t+=toHex(n,2);var r;switch(e.num+`/`+e.den){case`2/4`:case`3/4`:case`4/4`:case`5/4`:r=24;break;case`6/4`:r=72;break;case`2/2`:case`3/2`:case`4/2`:r=48;break;case`3/8`:case`6/8`:case`9/8`:case`12/8`:r=36;break}return r?(t+=toHex(r,2),t+`%08`):``}function encodeHex(e){for(var t=``,n=0;n<e.length;n+=2)t+=`%`,t+=e.substr(n,2);return t}function toHex(e,t){var n=e.toString(16);for(n=n.split(`.`)[0];n.length<t;)n=`0`+n;return n.length>t&&(n=n.substring(0,t)),encodeHex(n)}function to7BitHex(e){e=Math.round(e);var t=e%128;return toHex((e-t)*2+t,4)}function toDurationHex(e){var t=0,n=[];for(e=Math.round(e);e!==0;)n.push(e&127),e>>=7;for(var r=n.length-1;r>=0;r--){t<<=8;var a=n[r];r!==0&&(a|=128),t|=a}var o=t.toString(16).length;return o+=o%2,toHex(t,o)}rendererFactory=function(){return new Midi}})(),t.exports=rendererFactory})),Ht=e.n(((e,t)=>{var n=Vt(),r;(function(){"use strict";var e=480*4;r=function create(t,r){r===void 0&&(r={});var a=t.setUpAudio(r),o=n(),c=t.metaText?t.metaText.title:void 0;c&&c.length>128&&(c=c.substring(0,124)+`...`);var l=t.getKeySignature(),u=t.getMeterFraction(),d=a.tempo,f=d/60;u.den==8&&(d=6e4/(t.millisecondsPerMeasure()/u.num)/2,f=d/60),o.setGlobalInfo(d,c,l,u);for(var p=0;p<a.tracks.length;p++){o.startTrack();for(var m={},h=0;h<a.tracks[p].length;h++){var g=a.tracks[p][h];switch(g.cmd){case`text`:o.setText(g.type,g.text);break;case`program`:var _=0;r.pan&&r.pan.length>p&&(_=r.pan[p]),g.instrument===128?(o.setChannel(9,_),o.setInstrument(0)):(o.setChannel(g.channel,_),o.setInstrument(g.instrument));break;case`note`:var y=g.gap*f,b=g.start,x=b+g.duration-y;m[b]||(m[b]=[]),m[b].push({pitch:g.pitch,volume:g.volume,cents:g.cents}),m[x]||(m[x]=[]),m[x].push({pitch:g.pitch,volume:0});break;default:console.log(`MIDI create Unknown: `+g.cmd)}}addNotes(o,m,e),o.endTrack()}return o.getData()};function addNotes(e,t,n){for(var r=Object.keys(t),a=0;a<r.length;a++)r[a]=parseFloat(r[a]);r.sort(function(e,t){return e-t});for(var o=0,c=0;c<r.length;c++){var l=t[r[c]];if(r[c]>o){var u=(r[c]-o)*n;e.addRest(u),o=r[c]}for(var d=0;d<l.length;d++){var f=l[d];f.volume?e.startNote(f.pitch,f.volume,f.cents):e.endNote(f.pitch)}}}})(),t.exports=r})),Ut=e.n(((e,t)=>{var n=J(),r=Ht(),getMidiFile=function(e,t){var a={};if(t)for(var o in t)t.hasOwnProperty(o)&&(a[o]=t[o]);a.generateInline=!1;function callback(e,t,n){var o=r(t,a);switch(a.midiOutputType){case`encoded`:return o;case`binary`:var c=o.replace(`data:audio/midi,`,``);c=c.replace(/MThd/g,`%4d%54%68%64`),c=c.replace(/MTrk/g,`%4d%54%72%6b`);for(var l=new ArrayBuffer(c.length/3),u=new Uint8Array(l),d=0;d<c.length/3;d++){var f=d*3+1;u[d]=parseInt(c.substring(f,f+2),16)}return u;default:return generateMidiDownloadLink(t,a,o,n)}}return typeof e==`string`?n.renderEngine(callback,`*`,e,a):callback(null,e,0)};function isFunction(e){return e&&{}.toString.call(e)===`[object Function]`}var generateMidiDownloadLink=function(e,t,n,r){var a=[`abcjs-download-midi`,`abcjs-midi-`+r];t.downloadClass&&a.push(t.downloadClass);var o=`<div class="`+a.join(` `)+`">`;t.preTextDownload&&(o+=t.preTextDownload);var c=e.metaText&&e.metaText.title?e.metaText.title:`Untitled`,l=t.downloadLabel&&isFunction(t.downloadLabel)?t.downloadLabel(e,r):t.downloadLabel?t.downloadLabel.replace(/%T/,c):`Download MIDI for "`+c+`"`;c=c.toLowerCase().replace(/'/g,``).replace(/\W/g,`_`).replace(/__/g,`_`);var u=t.fileName?t.fileName:c+`.midi`;return o+=`<a download="`+u+`" href="`+n+`">`+l+`</a>`,t.postTextDownload&&(o+=t.postTextDownload),o+`</div>`};t.exports=getMidiFile})),Wt=e.n(((e,t)=>{try{if(typeof window.CustomEvent!=`function`){var CustomEvent=function(e,t){t||={bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};CustomEvent.prototype=window.Event.prototype,window.CustomEvent=CustomEvent}}catch{}var EditArea=function(e){typeof e==`string`?this.textarea=document.getElementById(e):this.textarea=e,this.initialText=this.textarea.value,this.isDragging=!1};EditArea.prototype.addSelectionListener=function(e){this.textarea.onmousemove=function(t){this.isDragging&&e.fireSelectionChanged()}},EditArea.prototype.addChangeListener=function(e){this.changelistener=e,this.textarea.onkeyup=function(){e.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,e.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,e.fireChanged()},this.textarea.onchange=function(){e.fireChanged()}},EditArea.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},EditArea.prototype.setSelection=function(e,t){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(e,t);else if(this.textarea.createTextRange){var n=this.textarea.createTextRange();n.collapse(!0),n.moveEnd(`character`,t),n.moveStart(`character`,e),n.select()}this.textarea.focus()},EditArea.prototype.getString=function(){return this.textarea.value},EditArea.prototype.setString=function(e){this.textarea.value=e,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},EditArea.prototype.getElem=function(){return this.textarea},t.exports=EditArea})),Gt=e.n(((e,t)=>{var n=u(),r=Bt(),a=Et(),o=vt(),c=Wt();function gatherAbcParams(e){var t={},n;if(e.abcjsParams)for(n in e.abcjsParams)e.abcjsParams.hasOwnProperty(n)&&(t[n]=e.abcjsParams[n]);if(e.midi_options)for(n in e.midi_options)e.midi_options.hasOwnProperty(n)&&(t[n]=e.midi_options[n]);if(e.parser_options)for(n in e.parser_options)e.parser_options.hasOwnProperty(n)&&(t[n]=e.parser_options[n]);if(e.render_options)for(n in e.render_options)e.render_options.hasOwnProperty(n)&&(t[n]=e.render_options[n]);return t.tablature&&e.warnings_id&&(t.tablature.warnings_id=e.warnings_id),t}var Editor=function(e,t){this.abcjsParams=gatherAbcParams(t),t.indicate_changed&&(this.indicate_changed=!0),typeof e==`string`?this.editarea=new c(e):this.editarea=e,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),t.canvas_id?this.div=t.canvas_id:t.paper_id?this.div=t.paper_id:(this.div=document.createElement(`DIV`),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),typeof this.div==`string`&&(this.div=document.getElementById(this.div)),t.selectionChangeCallback&&(this.selectionChangeCallback=t.selectionChangeCallback),this.clientClickListener=this.abcjsParams.clickListener,this.abcjsParams.clickListener=this.highlight.bind(this),t.synth&&a()&&(this.synth={el:t.synth.el,cursorControl:t.synth.cursorControl,options:t.synth.options}),t.generate_midi&&(this.generate_midi=t.generate_midi,this.abcjsParams.generateDownload&&(typeof t.midi_download_id==`string`?this.downloadMidi=document.getElementById(t.midi_download_id):t.midi_download_id&&(this.downloadMidi=t.midi_download_id)),this.abcjsParams.generateInline!==!1&&(typeof t.midi_id==`string`?this.inlineMidi=document.getElementById(t.midi_id):t.midi_id&&(this.inlineMidi=t.midi_id))),t.warnings_id?typeof t.warnings_id==`string`?this.warningsdiv=document.getElementById(t.warnings_id):this.warningsdiv=t.warnings_id:t.generate_warnings&&(this.warningsdiv=document.createElement(`div`),this.div.parentNode.insertBefore(this.warningsdiv,this.div)),this.onchangeCallback=t.onchange,this.currentAbc=``,this.tunes=[],this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(e,t){var hasClassName=function(e,t){var n=e.className;return n.length>0&&(n===t||RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n))};return hasClassName(e,t)||(e.className+=(e.className?` `:``)+t),e},this.removeClassName=function(e,t){return e.className=n.strip(e.className.replace(RegExp(`(^|\\s+)`+t+`(\\s+|$)`),` `)),e},this.setReadOnly=function(e){var t=`abc_textarea_readonly`,n=this.editarea.getElem();e?(n.setAttribute(`readonly`,`yes`),this.addClassName(n,t)):(n.removeAttribute(`readonly`),this.removeClassName(n,t))}};Editor.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var e=new window.CustomEvent(`generateMidi`,{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(e)}if(this.synth){var t=this.synth.synthControl;this.synth.synthControl||(this.synth.synthControl=new r,this.synth.synthControl.load(this.synth.el,this.synth.cursorControl,this.synth.options)),this.synth.synthControl.setTune(this.tunes[0],t,this.synth.options)}},Editor.prototype.modelChanged=function(){if(!this.bReentry){this.bReentry=!0;try{this.timerId=null,this.synth&&this.synth.synthControl&&this.synth.synthControl.disable(!0),this.tunes=o(this.div,this.currentAbc,this.abcjsParams),this.tunes.length>0&&(this.warnings=this.tunes[0].warnings),this.redrawMidi()}catch(e){console.error(`ABCJS error: `,e),this.warnings||=[],this.warnings.push(e.message)}this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join(`<br />`):`No errors`),this.updateSelection(),this.bReentry=!1}},Editor.prototype.paramChanged=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.abcjsParams[t]=e[t]);this.currentAbc=``,this.fireChanged()},Editor.prototype.synthParamChanged=function(e){if(this.synth){if(this.synth.options={},e)for(var t in e)e.hasOwnProperty(t)&&(this.synth.options[t]=e[t]);this.currentAbc=``,this.fireChanged()}},Editor.prototype.parseABC=function(){var e=this.editarea.getString();return e===this.currentAbc?(this.updateSelection(),!1):(this.currentAbc=e,!0)},Editor.prototype.updateSelection=function(){var e=this.editarea.getSelection();try{this.tunes.length>0&&this.tunes[0].engraver&&this.tunes[0].engraver.rangeHighlight(e.start,e.end)}catch{}this.selectionChangeCallback&&this.selectionChangeCallback(e.start,e.end)},Editor.prototype.fireSelectionChanged=function(){this.updateSelection()},Editor.prototype.setDirtyStyle=function(e){if(this.indicate_changed!==void 0){var addClassName=function(e,t){var hasClassName=function(e,t){var n=e.className;return n.length>0&&(n===t||RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n))};return hasClassName(e,t)||(e.className+=(e.className?` `:``)+t),e},removeClassName=function(e,t){return e.className=n.strip(e.className.replace(RegExp(`(^|\\s+)`+t+`(\\s+|$)`),` `)),e},t=`abc_textarea_dirty`,r=this.editarea.getElem();e?addClassName(r,t):removeClassName(r,t)}},Editor.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var e=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){e.modelChanged()},300);var t=this.isDirty();this.wasDirty!==t&&(this.wasDirty=t,this.setDirtyStyle(t)),this.onchangeCallback&&this.onchangeCallback(this)}},Editor.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},Editor.prototype.isDirty=function(){return this.indicate_changed===void 0?!1:this.editarea.initialText!==this.editarea.getString()},Editor.prototype.highlight=function(e,t,n,r,a,o){this.editarea.setSelection(e.startChar,e.endChar),this.selectionChangeCallback&&this.selectionChangeCallback(e.startChar,e.endChar),this.clientClickListener&&this.clientClickListener(e,t,n,r,a,o)},Editor.prototype.pause=function(e){this.bIsPaused=e,e||this.fireChanged()},Editor.prototype.millisecondsPerMeasure=function(){return!this.synth||!this.synth.synthControl||!this.synth.synthControl.visualObj?0:this.synth.synthControl.visualObj.millisecondsPerMeasure()},Editor.prototype.pauseMidi=function(e){this.midiPause=e,e||this.redrawMidi()},t.exports=Editor})),Kt=e.n(((e,t)=>{var n=o(),r=l(),a=J(),u=T(),d=Y(),f={};f.signature=`abcjs-basic v`+n,Object.keys(r).forEach(function(e){f[e]=r[e]}),Object.keys(a).forEach(function(e){f[e]=a[e]}),f.renderAbc=vt(),f.tuneMetrics=yt(),f.TimingCallbacks=c(),f.setGlyph=Z().setSymbol,f.strTranspose=d;var p=jt(),m=St(),h=Dt(),g=Mt(),_=Rt(),y=wt(),b=Tt(),x=Et(),S=zt();f.synth={CreateSynth:p,instrumentIndexToName:m,pitchToNoteName:h,SynthController:Bt(),SynthSequence:g,CreateSynthControl:_,registerAudioContext:y,activeAudioContext:b,supportsAudio:x,playEvent:S,getMidiFile:Ut(),sequence:u,midiRenderer:Vt()},f.Editor=Gt(),f.EditArea=Wt(),t.exports=f})),qt=e.i(Kt(),1),Jt=(0,n.defineComponent)({name:`MusicScoreRenderer`,props:{abcString:{type:String,required:!0}},mounted(){qt.default.renderAbc(`abc`,this.abcString)}}),Yt={id:`abc`};function _sfc_render$1(e,t,r,a,o,c){return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,Yt)}e.r(_sfc_render$1,`_sfc_render`);var Xt=t.r(Jt,[[`render`,_sfc_render$1]]);function fiveRandomKeys(){let e=[];for(let t=0;t<5;t++)e.push(en[Math.floor(Math.random()*en.length)]);return e}var Zt=(0,n.defineComponent)({name:`IdentifyKeyView`,components:{RadioMultipleChoice:r.RadioMultipleChoice,MusicScoreRenderer:Xt},props:{data:{type:Array,required:!0},modifyDifficulty:{type:Number,required:!1,default:0}},setup(e,{emit:t}){let a=(0,r.useViewable)(e,t,`IdentifyKeyView`),o=(0,r.useQuestionView)(a),c=(0,n.ref)(``);o.question.value=new tn(e.data);let l=(0,n.computed)(()=>o.question.value),u=(0,n.computed)(()=>{let e=fiveRandomKeys();return e.includes(l.value?.key||``)||(e[Math.floor(Math.random()*e.length)]=l.value?.key||``),e}),submit=()=>{};return{...a,...o,answer:c,question:l,choices:u,submit}}}),Qt={"data-viewable":`IdentifyKeyView`};function _sfc_render(e,t,r,a,o,c){let l=(0,n.resolveComponent)(`MusicScoreRenderer`),u=(0,n.resolveComponent)(`RadioMultipleChoice`);return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,Qt,[e.question?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[(0,n.createVNode)(l,{"key-signature":`X:1\nK:${e.question.key}\n||`,"abc-string":`''`},null,8,[`key-signature`]),t[0]||=(0,n.createTextVNode)(` This signature is for the major key: _____ `),(0,n.createVNode)(u,{"choice-list":e.choices},null,8,[`choice-list`])],64)):(0,n.createCommentVNode)(``,!0)])}var $t=t.r(Zt,[[`render`,_sfc_render]]),en=[`C`,`G`,`D`,`A`,`E`,`B`,`F#`,`C#`,`F`,`Bb`,`Eb`,`Ab`,`Db`,`Gb`,`Cb`],tn=class IdentifyKeyQuestion extends r.Question{static dataShapes=[{name:a.DataShapeName.SIGHTSING_IdentifyKey,fields:[{name:`key`,type:a.FieldType.NUMBER,validator:{test:e=>{let t=parseInt(e);return t>=0&&t<=en.length?{msg:``,status:a.Status.ok}:{msg:`Please enter a number between 0 and 11`,status:a.Status.error}}}}]}];static views=[$t];key;static getKey(e){return en[e]}constructor(e){super(e),this.key=IdentifyKeyQuestion.getKey(e[0].key)}isCorrect(e){return console.log(`answer: ${JSON.stringify(e)}, key: ${this.key}`),this.key===e.choiceList[e.selection]}dataShapes(){return IdentifyKeyQuestion.dataShapes}views(){return IdentifyKeyQuestion.views}},nn=new t.t(`sightSing`,[tn]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return nn}});
|
|
133
|
+
//# sourceMappingURL=sightsing-Cr_SJ5Vc.cjs.map
|