abcjs 6.3.0 → 6.4.1
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/README.md +4 -0
- package/RELEASE.md +52 -0
- package/dist/abcjs-basic-min.js +2 -2
- package/dist/abcjs-basic.js +1031 -622
- package/dist/abcjs-basic.js.map +1 -1
- package/dist/abcjs-plugin-min.js +2 -2
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/api/tune-metrics.js +18 -0
- package/src/data/abc_tune.js +13 -2
- package/src/edit/abc_editarea.js +4 -1
- package/src/parse/abc_parse.js +2 -0
- package/src/parse/abc_parse_directive.js +6 -0
- package/src/synth/abc_midi_flattener.js +40 -462
- package/src/synth/abc_midi_sequencer.js +25 -10
- package/src/synth/chord-track.js +565 -0
- package/src/synth/create-note-map.js +2 -1
- package/src/synth/create-synth.js +91 -42
- package/src/test/abc_parser_lint.js +1 -0
- package/src/write/creation/abstract-engraver.js +4 -1
- package/src/write/creation/decoration.js +3 -2
- package/src/write/creation/elements/tie-element.js +23 -0
- package/src/write/draw/draw.js +1 -1
- package/src/write/engraver-controller.js +9 -5
- package/src/write/interactive/create-analysis.js +50 -0
- package/src/write/interactive/find-selectable-element.js +24 -0
- package/src/write/interactive/selection.js +5 -45
- package/src/write/layout/layout-in-grid.js +83 -0
- package/src/write/layout/layout.js +29 -24
- package/src/write/layout/set-upper-and-lower-elements.js +2 -0
- package/src/write/layout/staff-group.js +2 -2
- package/src/write/layout/voice-elements.js +1 -1
- package/src/write/layout/voice.js +1 -1
- package/src/write/renderer.js +3 -0
- package/types/index.d.ts +96 -32
- package/version.js +1 -1
- package/abc2xml_239/abc2xml.html +0 -769
- package/abc2xml_239/abc2xml.py +0 -2248
- package/abc2xml_239/abc2xml_changelog.html +0 -124
- package/abc2xml_239/lazy-river.abc +0 -26
- package/abc2xml_239/lazy-river.xml +0 -3698
- package/abc2xml_239/mean-to-me.abc +0 -22
- package/abc2xml_239/mean-to-me.xml +0 -2954
- package/abc2xml_239/pyparsing.py +0 -3672
- package/abc2xml_239/pyparsing.pyc +0 -0
- package/temp.txt +0 -50
package/dist/abcjs-plugin-min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! abcjs_plugin v6.
|
|
1
|
+
/*! abcjs_plugin v6.4.1 Copyright © 2009-2023 Paul Rosen and Gregory Dyke (https://abcjs.net) */
|
|
2
2
|
/*! For license information please see abcjs_plugin.LICENSE */
|
|
3
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.abcjs=t():e.ABCJS=t()}(this,(function(){return e={7001:function(e,t,r){"use strict";var i=r(1592).TuneBook,a=r(8905),n=r(5253),s=new function(){var e=!1;try{e=abcjs_is_user_script}catch(e){}this.show_midi=!e,this.hide_abc=!1,this.render_before=!1,this.midi_options={},this.render_options={},this.render_classname="abcrendered",this.text_classname="abctext",this.auto_render_threshold=20,this.show_text="show score for: ",this.debug=!1};s.start=function(){var e=window.document.body;this.errors="";var t=this.getABCContainingElements(e);if(0!==t.length){if(this.debug)for(var r=0;r<t.length;r++){var i="Possible ABC found ("+(r+1)+" of "+t.length+"):\n\n"+t[r].innerText;alert(i)}var a=t.map(this.convertToDivs,this).reduce((function(e,t){return e.concat(t)}));this.auto_render=a.length<=this.auto_render_threshold,a.forEach((function(e){this.render(e,e.abctext_)}),this)}},s.getABCContainingElements=function(e){for(var t,r=[],i=!1,a=0,n=e.childNodes.length;a<n;++a)3!==(t=e.childNodes[a]).nodeType||i?1===t.nodeType&&"TEXTAREA"!==t.tagName&&(r=r.concat(this.getABCContainingElements(t))):t.nodeValue.match(/^\s*X:/m)&&"TEXTAREA"!==t.parentNode.tagName&&(r.push(e),i=!0);return r},s.convertToDivs=function(e){for(var t,r="",i=null,a=!1,n=[],s=Array.prototype.slice.call(e.childNodes),o=0,c=s.length;o<c;++o)if(3!==(t=s[o]).nodeType||t.nodeValue.match(/^\s*$/))a&&"BR"===t.tagName||a&&1===t.nodeType?(r+="\n",i.appendChild(t)):a&&(a=!1,r=r.replace(/\n+/,"\n"),i.abctext_=r,n.push(i));else{var l=t.nodeValue;l.match(/^\s*X:/m)&&(a=!0,r="",(i=document.createElement("DIV")).className=this.text_classname,t.parentElement.insertBefore(i,t),this.hide_abc&&(i.style.display="none")),a&&(r+=l.replace(/^\n+/,""),i.appendChild(t))}return a&&(r=r.replace(/\n+$/,"\n").replace(/^\n+/,"\n"),i.abctext_=r,n.push(i)),n},s.render=function(e,t){var r=document.createElement("DIV");r.className=this.render_classname,this.render_before?e.parentElement.insertBefore(r,e):e.nextSibling?e.parentElement.insertBefore(r,e.nextSibling):e.parentElement.appendChild(r);var s=this;try{this.debug&&alert("About to render:\n\n"+t);var o=new i(t),c=new a;c.parse(o.tunes[0].abc);var l=c.getTune(),h=function(){try{var t=new n(r,s.render_options);t.engraveABC(l)}catch(i){r.remove(),(r=document.createElement("DIV")).className=s.render_classname,(t=new n(r)).engraveABC(l),s.render_before?e.parentElement.insertBefore(r,e):e.nextSibling?e.parentElement.insertBefore(r,e.nextSibling):e.parentElement.appendChild(r)}},f=document.createElement("A");f.className="abcshow",f.href="#",f.innerHTML=this.show_text+(l.metaText.title||"untitled"),this.auto_render?h():(f.onclick=function(){return h(),f.remove(),!1},r.parentElement.insertBefore(f,r))}catch(e){this.errors+=e}};var o=!0;"undefined"!=typeof abcjs_plugin_autostart&&(o=abcjs_plugin_autostart),o&&"undefined"!=typeof window&&void 0!==window.document&&("loading"!==window.document.readyState?s.start():document.addEventListener("DOMContentLoaded",(function(){s.start()})));var c={plugin:s};e.exports=c},4321:function(e,t,r){var i=r(6074),a={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}},n={inited:!1,plugins:{},register:function(e){var t=e.name,r=e.tablature;this.plugins[t]=r},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,r){var i=null;if(r.tablature){var n=r.tablature;i=[];for(var s=0;s<n.length;s++){var o=n[s],c=o.instrument;if(null==c)return this.setError(e,"tablature 'instrument' is missing"),i;var l=a[c],h=null;if(l&&(h=this.plugins[l.name]),h){0!=r.visualTranspose&&(o.visualTranspose=r.visualTranspose),o.abcSrc=r.tablature.abcSrc;var f={classz:h,tuneNumber:t,params:o,instance:null,tabType:l};i.push(f)}else{if(""!==c)return this.setError(e,"Undefined tablature plugin: "+c),i;i.push(null)}}}return i},layoutTablatures:function(e,t){var r=t.tablatures,i=0;if(r&&r.length>0)for(var a=r.length,n=0;n<a;++n)r[n]&&r[n].params.firstStaffOnly&&(r[n].params.suppress=!1);for(var s=0;s<t.lines.length;s++){var o=t.lines[s];if(o.staff&&i++,i>1&&r&&r.length>0)for(a=r.length,n=0;n<a;++n)r[n].params.firstStaffOnly&&(r[n].params.suppress=!0);var c=o.staff;if(c)for(var l=c.length,h=0;h<c.length;h++)if(r[h]&&h<l){var f=r[h];null==f.instance&&(f.instance=new f.classz,f.instance.init(t,f.tuneNumber,f.params,h,f.tabType)),f.instance.render(e,o,h)}}},init:function(){this.inited||(this.register(new i),this.inited=!0)}};e.exports=n},1592:function(e,t,r){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=r(8905),n=r(9565),s=r(4321),o={};!function(){"use strict";o.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=o.TuneBook=function(e){var t=n(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 r=o.numberOfTunes(e),i=[],a=0;a<r;a++)i.push(1);return o.renderEngine((function(){}),i,e,t)},o.renderEngine=function(t,r,n,o){var c=[];if(void 0!==r&&void 0!==n){var l;(!(l=r)||l.propertyIsEnumerable("length")||"object"!==i(l)||"number"!=typeof l.length)&&(r=[r]),void 0===o&&(o={});for(var h=o.startingTune?parseInt(o.startingTune,10):0,f=new e(n),u=new a,d=0;d<r.length;d++){var p=r[d];if("*"===p||"string"==typeof p&&(p=document.getElementById(p)),p)if(h>=0&&h<f.tunes.length){u.parse(f.tunes[h].abc,o,f.tunes[h].startPos-f.header.length);var m=u.getTune();o.tablature&&(s.init(),m.tablatures=s.preparePlugins(m,h,o));var g=u.getWarnings();g&&(m.warnings=g);var v=t(p,m,d,f.tunes[h].abc);c.push(v||m)}else p.innerHTML&&(p.innerHTML="");h++}return c}},o.extractMeasures=function(t){for(var r=[],i=new e(t),a=0;a<i.tunes.length;a++){for(var n=i.tunes[a],s=n.abc.split("K:"),c=s[1].split("\n"),l=s[0]+"K:"+c[0]+"\n",h=null,f=null,u=null,d=[],p=!1,m=o.parseOnly(n.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var x=b.staff[y],w=0;w<1;w++)for(var k=x.voices[w],T=0;T<k.length;T++){var C=k[T];if(null===u&&C.startChar>=0&&(u=C.startChar,f=void 0===C.chord?h:null),C.chord&&(h=C),"bar"===C.el_type){if(p){var S={abc:n.abc.substring(u,C.endChar)};(h=f&&f.chord&&f.chord.length>0?f.chord[0].name:null)&&(S.lastChord=h),C.startEnding&&(S.startEnding=C.startEnding),C.endEnding&&(S.endEnding=C.endEnding),d.push(S),u=null,p=!1}}else"note"===C.el_type&&(p=!0)}}r.push({header:l,measures:d,hasPickup:g})}return r}}(),e.exports=o},9447:function(e,t,r){var i=r(4914).relativeMajor,a={acc:"sharp",note:"f"},n={acc:"sharp",note:"c"},s={acc:"sharp",note:"g"},o={acc:"sharp",note:"d"},c={acc:"sharp",note:"A"},l={acc:"sharp",note:"e"},h={acc:"flat",note:"B"},f={acc:"flat",note:"e"},u={acc:"flat",note:"A"},d={acc:"flat",note:"d"},p={acc:"flat",note:"G"},m={acc:"flat",note:"c"},g={"C#":[a,n,s,o,c,l,{acc:"sharp",note:"B"}],"F#":[a,n,s,o,c,l],B:[a,n,s,o,c],E:[a,n,s,o],A:[a,n,s],D:[a,n],G:[a],C:[],F:[h],Bb:[h,f],Eb:[h,f,u],Cm:[h,f,u],Ab:[h,f,u,d],Db:[h,f,u,d,p],Gb:[h,f,u,d,p,m],Cb:[h,f,u,d,p,m,{acc:"flat",note:"F"}],"A#":[h,f],"B#":[],"D#":[h,f,u],"E#":[h],"G#":[h,f,u,d],none:[]};e.exports=function(e){var t=g[i(e)];return t?JSON.parse(JSON.stringify(t)):null}},4914:function(e){var t={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;e.exports={relativeMajor:function(e){r||function(){r={};for(var e=Object.keys(t),i=0;i<e.length;i++){var a=t[e[i]];r[e[i].toLowerCase()]=e[i];for(var n=0;n<a.modes.length;n++){var s=a.modes[n].toLowerCase();r[s]=e[i]}}}();var i=e.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);if(!i||!i[2])return e;i=i[1]+i[2];var a=r[i];return a||e},relativeMode:function(e,r){var i=t[e];if(!i)return e;if(""===r)return e;var a=r.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!a)return e;for(var n=a[1],s=0;s<i.modes.length;s++){var o=i.modes[s],c=o.toLowerCase().indexOf(n);if(-1!==c&&c===o.length-n.length)return o.substring(0,o.length-n.length)}return e},transposeKey:function(e,r){var i=t[e];if(!i)return e;for(;r<0;)r+=12;for(var a=(i.stepsFromC+r)%12,n=0;n<Object.keys(t).length;n++){var s=Object.keys(t)[n];if(t[s].stepsFromC===a)return s}return e}}},6780:function(e,t,r){var i=r(5008),a=r(4331),n=r(1028),s=r(9716),o=r(351);e.exports=function(){function e(e,t,r,i){for(var a=0;a<i.length;a++)e[r][i[a]]=t[r][i[a]]}function t(e,t){for(;t<e.length&&null===e[t].left;)t++;return e[t]}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(),this.copyTopInfo=function(t){var r=["tempo","title","header","rhythm","origin","composer","author","partOrder"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.copyBottomInfo=function(t){var r=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return(6===e.num||9===e.num||12===e.num||3===e.num&&8===e.den)&&(t=3),t/e.den},this.getPickupLength=function(){var e=this.getBarLength(),t=function(e,t){for(var r=0,i=0;i<e.length;i++)if(e[i].staff)for(var a=0;a<e[i].staff.length;a++)for(var n=0;n<e[i].staff[a].voices.length;n++)for(var s=e[i].staff[a].voices[n],o=1,c=0;c<s.length;c++){var l=s[c].rest&&"spacer"===s[c].rest.type;if(s[c].startTriplet&&(o=s[c].tripletMultiplier),s[c].duration&&!l&&"tempo"!==s[c].el_type&&(r+=s[c].duration*o),s[c].endTriplet&&(o=1),r>=t&&(r-=t),"bar"===s[c].el_type)return r}return r}(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 r=this.metaText?this.metaText.tempo:null;t=this.getBpm(r)}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 r=0;r<t.staff.length;r++){var i=t.staff[r].meter;if(i)return i}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,r=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),r=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,r=2):"common_time"===e.type&&(t=4,r=4)),this.meter={num:t,den:r},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var r=0;r<t.staff.length;r++)if(t.staff[r].key)return t.staff[r].key}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var r=this.lines[t];if(r.staff)for(var i=0;i<r.staff.length;i++)for(var a=r.staff[i],n=0;n<a.voices.length;n++)for(var s=a.voices[n],o=0;o<s.length;o++){var c=s[o];if(c.startChar&&c.endChar&&c.startChar<=e&&c.endChar>e)return c}}return null},this.addElementToEvents=function(e,t,r,a,n,s,o,c,l,h){if(t.hint)return{isTiedState:void 0,duration:0};var f=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(f=0),f>0){for(var u=[],d=0;d<t.elemset.length;d++)null!==t.elemset[d]&&u.push(t.elemset[d]);var p=t.startTie;if(void 0!==l)e["event"+l].elements.push(u),h&&(e["event"+r]||(e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:n,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+r].measureStart=!0,h=!1),p||(l=void 0);else{if(e["event"+r]){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(u),e["event"+r].startCharArray.push(t.abcelem.startChar),e["event"+r].endCharArray.push(t.abcelem.endChar),null===e["event"+r].startChar&&(e["event"+r].startChar=t.abcelem.startChar),null===e["event"+r].endChar&&(e["event"+r].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length)for(e["event"+r].midiPitches||(e["event"+r].midiPitches=[]),d=0;d<t.abcelem.midiPitches.length;d++)e["event"+r].midiPitches.push(t.abcelem.midiPitches[d]);if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+r].midiGraceNotePitches||(e["event"+r].midiGraceNotePitches=[]);for(var m=0;m<t.abcelem.midiGraceNotePitches.length;m++)e["event"+r].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[m])}}else e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:n,left:t.x,width:t.w,elements:[u],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?i.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+r].midiGraceNotePitches=i.cloneArray(t.abcelem.midiGraceNotePitches));h&&(e["event"+r].measureStart=!0,h=!1),p&&(l=r)}}return{isTiedState:l,duration:f/c,nextIsBar:h||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=[],r={},i=0;i<this.engraver.staffgroups.length;i++){var n=this.engraver.staffgroups[i];if(n&&n.staffs&&n.staffs.length>0)for(var s=n.staffs[0],o=s.absoluteY,c=o-s.top*a.STEP,l=n.staffs[n.staffs.length-1],h=(o=l.absoluteY)-l.bottom*a.STEP-c,f=n.voices,u=0;u<f.length;u++)if(!f[u].staff||!f[u].staff.isTabStaff){var d=!1;e[u]||(e[u]=[]),void 0===t[u]&&(t[u]=0);for(var p=f[u].children,m=0;m<p.length;m++)"tempo"===p[m].type&&(r[t[u]]=this.getBpm(p[m].abcelem)),e[u].push({top:c,height:h,line:n.line,measureNumber:t[u],elem:p[m]}),"bar"===p[m].type&&d&&t[u]++,"note"!==p[m].type&&"rest"!==p[m].type||(d=!0)}}return this.tempoLocations=r,e},this.setupEvents=function(e,r,i,a){a||(a=1);for(var n,s=[],o={},c=e,l=!0,h=this.makeVoicesArray(),f=0,u=0;u<h.length;u++){var d=c,p=Math.round(1e3*d),m=0,g=-1,v=h[u],b=i;r=this.getBeatLength()*b/60;for(var y=-1,x=0;x<v.length;x++){var w=v[x].measureNumber;y!==w&&this.tempoLocations[w]&&(b=this.tempoLocations[w],r=a*this.getBeatLength()*b/60,y=w);var k,T=v[x].elem,C=this.addElementToEvents(o,T,p,v[x].top,v[x].height,v[x].line,v[x].measureNumber,r,n,l);if(n=C.isTiedState,l=C.nextIsBar,d+=C.duration,T.duration>0&&o["event"+p]&&(k="event"+p),p=Math.round(1e3*d),"bar"===T.type){var S=T.abcelem.type,N="bar_right_repeat"===S||"bar_dbl_repeat"===S,E="1"===T.abcelem.startEnding,_="bar_left_repeat"===S||"bar_dbl_repeat"===S||"bar_right_repeat"===S;if(N){x>0&&(o[k].endX=T.x),-1===g&&(g=x);var M=0;y=-1;for(var A=m;A<g;A++){y!==(w=v[A].measureNumber)&&this.tempoLocations[w]&&(b=this.tempoLocations[w],r=a*this.getBeatLength()*b/60,y=w);var B=v[A].elem;n=(C=this.addElementToEvents(o,B,p,v[A].top,v[A].height,v[A].line,v[A].measureNumber,r,n,l)).isTiedState,l=C.nextIsBar,d+=C.duration,M=p,p=Math.round(1e3*d)}o["event"+M]&&(o["event"+M].endX=v[g].elem.x),l=!0,g=-1}E&&(g=x),_&&(m=x)}}f=Math.max(f,p)}return function(e){for(var t,r,i,a,n=e.length-1;n>=0;n--){var s=e[n];"bar"===s.type?(s.top=i,s.nextTop=t,t=i,s.bottom=a,s.nextBottom=r,r=a):"event"===s.type&&(i=s.top,a=s.top+s.height)}}(s=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t.sort((function(e,t){var r=e.milliseconds-t.milliseconds;return 0!==r?r:"bar"===e.type?-1:1}))}(o)),function(e,r){if(!(r.length<1)){for(var i=0;i<r.length-1;i++){var a=r[i],n=t(r,i+1);if(null!==a.left){var s=n&&a.top===n.top?n.left:e[a.line].staffGroup.w;void 0!==a.endX?s>a.left&&(a.endX=Math.min(a.endX,s)):a.endX=s}}var o=r[r.length-1];o.endX=e[o.line].staffGroup.w}}(this.lines,s),s.push({type:"end",milliseconds:f}),this.addUsefulCallbackInfo(s,b*a),s},this.addUsefulCallbackInfo=function(e,t){for(var r=this.millisecondsPerMeasure(t),i=0;i<e.length;i++)e[i].millisecondsPerMeasure=r},this.getBpm=function(e){var t;if(e){t=e.bpm;var r=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:r)/r}if(!t){t=180;var i=this.getMeterFraction();i&&3!==i.num&&i.num%3==0&&(t=120)}return t},this.setTiming=function(e,t){if(t=t||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var r=this.metaText?this.metaText.tempo:null,i=this.getBpm(r),a=1;e?r&&(a=e/i):e=i;var n=this.getBeatLength(),s=e/60,o=this.getBarLength()/n*t/s;o&&(o-=this.getPickupLength()/n/s);var c=n*s;return this.noteTimings=this.setupEvents(o,c,e,a),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*s):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(e){e||(e={});var t=n(this,e);return s(t,e,this.formatting.percmap,this.formatting.midi)},this.deline=function(e){return o(this.lines,e)}}},351:function(e){function t(e,t){return"abselem"===e?"abselem":t}function r(e,t){e.el_type="meter",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function i(e,t){e.el_type="key",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function a(e,t){e.el_type="clef",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function n(e,t,r){e.el_type="font",e.type=r,e.startChar=-1,e.endChar=-1;for(var i=0;i<t.length;i++)t[i].unshift(e)}function s(e,r){return!e||JSON.stringify(e,t)===JSON.stringify(r,t)}function o(e){for(var t={},r=Object.keys(e),i=0;i<r.length;i++)if("staff"!==r[i])t[r[i]]=e[r[i]];else{t.staff=[];for(var a=0;a<e.staff.length;a++){for(var n={},s=Object.keys(e.staff[a]),o=0;o<s.length;o++)if("voices"!==s[o])n[s[o]]=e.staff[a][s[o]];else{n.voices=[];for(var c=0;c<e.staff[a].voices.length;c++)n.voices.push([].concat(e.staff[a].voices[c]))}t.staff.push(n)}}return t}e.exports=function(e,t){t||(t={});for(var c=!!t.lineBreaks,l=[],h=!1,f=[],u=[],d=[],p=[],m=[],g=[],v=[],b=0;b<e.length;b++){var y=e[b];if(y.staff){if(h&&!y.vskip)for(var x=l[l.length-1],w=0;w<x.staff.length;w++){var k=y.staff[w],T=x.staff[w];if(k&&(s(k.meter,f[w])||(r(k.meter,k.voices),f[w]=k.meter,delete k.meter),s(k.key,u[w])||(i(k.key,k.voices),u[w]=k.key,delete k.key),k.title&&(T.abbrevTitle=k.title),s(k.clef,d[w])||(a(k.clef,k.voices),d[w]=k.clef,delete k.clef),s(k.vocalfont,p[w])||(n(k.vocalfont,k.voices,"vocalfont"),p[w]=k.vocalfont,delete k.vocalfont),s(k.gchordfont,m[w])||(n(k.gchordfont,k.voices,"gchordfont"),m[w]=k.gchordfont,delete k.gchordfont),s(k.tripletfont,g[w])||(n(k.tripletfont,k.voices,"tripletfont"),g[w]=k.tripletfont,delete k.tripletfont),s(k.annotationfont,v[w])||(n(k.annotationfont,k.voices,"annotationfont"),v[w]=k.annotationfont,delete k.annotationfont)),k)for(var C=0;C<T.voices.length;C++){var S=T.voices[C],N=k.voices[C];c&&S.push({el_type:"break"}),N&&(T.voices[C]=S.concat(N))}}else{for(var E=0;E<y.staff.length;E++)u[E]=y.staff[E].key,f[E]=y.staff[E].meter,d[E]=y.staff[E].clef;l.push(o(y))}h=!0}else h=!1,l.push(y)}return l}},5008:function(e){var t={clone:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},cloneArray:function(e){for(var r=[],i=0;i<e.length;i++)r.push(t.clone(e[i]));return r},cloneHashOfHash:function(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.clone(e[i]));return r},cloneHashOfArrayOfHash:function(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.cloneArray(e[i]));return r},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var r=e.length-t.length;return r>=0&&e.lastIndexOf(t)===r},last:function(e){return 0===e.length?null:e[e.length-1]}};e.exports=t},8905:function(e,t,r){var i=r(5008),a=r(8360),n=r(9928),s=r(6476),o=r(1881),c=r(1756),l=r(6780),h=r(575);e.exports=function(){"use strict";var e,t=new l,r=new h(t),f="",u="";function d(e,t,r){e.positioning||(e.positioning={}),e.positioning[t]=r}function p(e,t,r){e.fonts||(e.fonts={}),e.fonts[t]=r}this.getTune=function(){var e={formatting:t.formatting,lines:t.lines,media:t.media,metaText:t.metaText,metaTextInfo:t.metaTextInfo,version:t.version,addElementToEvents:t.addElementToEvents,addUsefulCallbackInfo:t.addUsefulCallbackInfo,getTotalTime:t.getTotalTime,getTotalBeats:t.getTotalBeats,getBarLength:t.getBarLength,getBeatLength:t.getBeatLength,getBeatsPerMeasure:t.getBeatsPerMeasure,getBpm:t.getBpm,getMeter:t.getMeter,getMeterFraction:t.getMeterFraction,getPickupLength:t.getPickupLength,getKeySignature:t.getKeySignature,getElementFromChar:t.getElementFromChar,makeVoicesArray:t.makeVoicesArray,millisecondsPerMeasure:t.millisecondsPerMeasure,setupEvents:t.setupEvents,setTiming:t.setTiming,setUpAudio:t.setUpAudio,deline:t.deline};return t.lineBreaks&&(e.lineBreaks=t.lineBreaks),t.visualTranspose&&(e.visualTranspose=t.visualTranspose),e};var m,g,v={reset:function(){for(var e in this)this.hasOwnProperty(e)&&"function"!=typeof this[e]&&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,r){"note"===r?("auto"!==this.vocalPosition&&d(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&d(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&d(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&d(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&d(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&p(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&p(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&p(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&p(e,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&d(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&d(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&d(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&d(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&p(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&p(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 r in this.inTieChord)this.inTieChord.hasOwnProperty(r)&&(this.endingHoldOver.inTieChord[r]=this.inTieChord[r])},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 r in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(r)&&(this.inTieChord[r]=this.endingHoldOver.inTieChord[r])}}},b=function(e){var t=e.replace(/\x12/g," ");return(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")},y=function(t,r,i){r||(r=" ");var a=r[i];" "!==a&&a||(a="SPACE");var n,s=b(r.substring(i-64,i))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+a+"</span>"+b(r.substring(i+1).substring(0,64));!function(e){v.warnings||(v.warnings=[]),v.warnings.push(e)}("Music Line:"+e.lineIndex+":"+(i+1)+": "+t+": "+s),n={message:t,line:r,startChar:v.iChar+i,column:i},v.warningObjects||(v.warningObjects=[]),v.warningObjects.push(n)};this.getWarnings=function(){return v.warnings},this.getWarningObjects=function(){return v.warningObjects};var x=function(t,r){if(r.indexOf("")>=0)f+=r;else if(r=f+r,f="",t){"-"!==(r=i.strip(r))[r.length-1]&&(r+=" ");for(var a=[],n=0,s=!1,o=function(t){var o=i.strip(r.substring(n,t));if(o=o.replace(/\\([-_*|~])/g,"$1"),n=t+1,o.length>0){s&&(o=o.replace(/~/g," "));var c=r[t];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=!1,l=0;l<r.length;l++){switch(r[l]){case" ":case"":o(l);break;case"-":!c&&!o(l)&&a.length>0&&(i.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":c||(o(l),a.push({skip:!0,to:"slur"}));break;case"*":c||(o(l),a.push({skip:!0,to:"next"}));break;case"|":c||(o(l),a.push({skip:!0,to:"bar"}));break;case"~":c||(s=!0)}c="\\"===r[l]}t.forEach((function(e){if(0!==a.length)if(a[0].skip){switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();t.syllable&&(t.syllable=t.syllable.replace(/ +/g," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else y("Can't add words before the first line of music",t,0)},w=function(t,r){if(r.indexOf("")>=0)u+=r;else if(r=u+r,u="",t){"-"!==(r=i.strip(r))[r.length-1]&&(r+=" ");for(var a=[],n=0,s=!1,o=function(t){var o=i.strip(r.substring(n,t));if(n=t+1,o.length>0){s&&(o=o.replace(/~/g," "));var c=r[t];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<r.length;c++)switch(r[c]){case" ":case"":o(c);break;case"-":!o(c)&&a.length>0&&(i.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":o(c),a.push({skip:!0,to:"slur"});break;case"*":o(c),a.push({skip:!0,to:"next"});break;case"|":o(c),a.push({skip:!0,to:"bar"});break;case"~":s=!0}t.forEach((function(e){if(0!==a.length)if(a[0].skip)switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else y("Can't add symbols before the first line of music",t,0)},k=function(e){if(i.startsWith(e,"%%")){var t=a.addDirective(e.substring(2));t&&y(t,e,2)}else{var n=e.indexOf("%");if(n>=0&&(e=e.substring(0,n)),0!==(e=e.replace(/\s+$/,"")).length)if(f)x(r.getCurrentVoice(),e.substring(2));else if(u)w(r.getCurrentVoice(),e.substring(2));else if(e.length<2||":"!==e[1]||g.lineContinuation)g.parseMusic(e);else{var s=m.parseHeader(e);s.regular&&g.parseMusic(e),s.newline&&g.startNewLine(),s.words&&x(r.getCurrentVoice(),e.substring(2)),s.symbols&&w(r.getCurrentVoice(),e.substring(2))}}};function T(e,t){e.push({el_type:"hint"});for(var r=0;r<t.length;r++){var a=t[r],n=i.clone(a);if(e.push(n),"bar"===a.el_type)return}}function C(e,t){for(var r=0;r<e.length;r++){var i=e[r],a=t[r];if(a)for(var n=0;n<a.voices.length;n++){var s=a.voices[n],o=i.voices[n];o&&T(o,s)}}}this.parse=function(l,h,d){h||(h={}),d||(d=0),t.reset();var p=(l=l.replace(/\r\n?/g,"\n")+"\n").split("\n\\");if(p.length>1){for(var b=1;b<p.length;b++)for(;p[b].length>0&&"\n"!==p[b][0];)p[b]=p[b].substr(1),p[b-1]+=" ";l=p.join(" ")}var T=(l=l.replace(/\\([ \t]*)(%.*)*\n/g,(function(e,t,r){return t+""+(r?Array(r.length+1).join(" "):"")+"\n"}))).split("\n");0===i.last(T).length&&T.pop(),e=new o(T,v),m=new n(e,y,v,t,r),g=new s(e,y,v,t,r,m),h.print&&(t.media="print"),v.reset(),v.iChar=d,h.visualTranspose?(v.globalTranspose=parseInt(h.visualTranspose),0===v.globalTranspose?v.globalTranspose=void 0:r.setVisualTranspose(h.visualTranspose)):v.globalTranspose=void 0,h.lineBreaks&&(v.lineBreaks=h.lineBreaks),m.reset(e,y,v,t);try{h.format&&a.globalFormatting(h.format);for(var S=e.nextLine();S;){if(h.header_only&&!1===v.is_in_header)throw"normal_abort";if(h.stop_on_warning&&v.warnings)throw"normal_abort";var N=v.is_in_header;k(S),N&&!v.is_in_header&&(r.setRunningFont("annotationfont",v.annotationfont),r.setRunningFont("gchordfont",v.gchordfont),r.setRunningFont("tripletfont",v.tripletfont),r.setRunningFont("vocalfont",v.vocalfont)),S=e.nextLine()}f&&x(r.getCurrentVoice(),""),u&&w(r.getCurrentVoice(),""),v.openSlurs=r.cleanUp(v.barsperstaff,v.staffnonote,v.openSlurs)}catch(e){if("normal_abort"!==e)throw e}var E=792,_=612;switch(v.papersize){case"legal":E=1008,_=612;break;case"A4":E=842.4,_=597.6}if(v.landscape){var M=E;E=_,_=M}t.formatting.pagewidth||(t.formatting.pagewidth=_),t.formatting.pageheight||(t.formatting.pageheight=E),h.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var r=t.lines[e].staff;if(r){for(var i=e+1;i<t.lines.length&&void 0===t.lines[i].staff;)i++;i<t.lines.length&&C(r,t.lines[i].staff)}}}(),c.wrapLines(t,v.lineBreaks,v.barNumbers)}}},9565:function(e,t,r){var i=r(5008);e.exports=function(e){"use strict";for(var t="",r=e.match(/(\s*)/),a=(e=i.strip(e)).split("\nX:"),n=1;n<a.length;n++)a[n]="X:"+a[n];var s=r?r[0].length:0,o=[];a.forEach((function(e){o.push({abc:e,startPos:s}),s+=e.length+1})),o.length>1&&!i.startsWith(o[0].abc,"X:")&&o.shift().abc.split("\n").forEach((function(e){i.startsWith(e,"%%")&&(t+=e+"\n")}));var c=t;return o.forEach((function(e){var r=e.abc.indexOf("\n\n");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("\n"),e.title=i.strip(a[0]));var n=e.pure.substring(2,e.pure.indexOf("\n"));e.id=i.strip(n)})),{header:c,tunes:o}}},8360:function(e,t,r){var i=r(5008),a={};!function(){"use strict";var e,t,r,n,s;a.initialize=function(i,a,o,c,l){e=i,t=a,n=c,s=l,(r=o).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},r.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},r.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},r.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},r.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},n.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},n.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},n.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},n.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},n.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},n.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},n.formatting.annotationfont=r.annotationfont,n.formatting.gchordfont=r.gchordfont,n.formatting.historyfont=r.historyfont,n.formatting.infofont=r.infofont,n.formatting.measurefont=r.measurefont,n.formatting.partsfont=r.partsfont,n.formatting.repeatfont=r.repeatfont,n.formatting.textfont=r.textfont,n.formatting.tripletfont=r.tripletfont,n.formatting.vocalfont=r.vocalfont,n.formatting.wordsfont=r.wordsfont};var o={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},c=function(e,r,i,a,n){function s(){var s=parseInt(e[0].token);return e.shift(),r?0===e.length?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}:1===e.length&&"box"===e[0].token&&o[n]?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s,box:!0}:(t("Extra parameters in font definition.",i,a),{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}):(t("Can't set just the size of the font since there is no default value.",i,a),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:s})}if("*"===e[0].token){if(e.shift(),"number"===e[0].type)return s();t("Expected font size number after *.",i,a)}if("number"===e[0].type)return s();for(var c,l=[],h="normal",f="normal",u="none",d=!1,p="face",m=!1;e.length;){var g=e.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?l.length>0&&"-"===g.token?(m=!0,l[l.length-1]=l[l.length-1]+g.token):m?(m=!1,l[l.length-1]=l[l.length-1]+g.token):l.push(g.token):"number"===g.type?(c?t("Font size specified twice in font definition.",i,a):c=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?f="italic":"underline"===v?u="underline":"box"===v?(o[n]?d=!0:t('This font style doesn\'t support "box"',i,a),p="finished"):"utf"===v?(g=e.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",i,a);break;case"size":"number"===g.type?c?t("Font size specified twice in font definition.",i,a):c=g.token:t("Expected font size in font definition.",i,a),p="modifier";break;case"modifier":"bold"===v?h="bold":"italic"===v?f="italic":"underline"===v?u="underline":"box"===v?(o[n]?d=!0:t('This font style doesn\'t support "box"',i,a),p="finished"):t("Unknown parameter "+g.token+" in font definition.",i,a);break;case"finished":t('Extra characters found after "box" in font definition.',i,a)}}void 0===c?r?c=r.size:(t("Must specify the size of the font since there is no default value.",i,a),c=12):c=parseFloat(c),""===(l=l.join(" "))&&(r?l=r.face:(t("Must specify the name of the font since there is no default value.",i,a),l="sans-serif"));var b=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}}(l),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=c,d&&(y.box=!0),y):(y.face=l,y.weight=h,y.style=f,y.decoration=u,y.size=c,d&&(y.box=!0),y)},l=function(e,t,i){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(r[e]=c(t,r[e],i,0,e),r.is_in_header&&(n.formatting[e]=r[e]),null)},h=function(e,t){var r="";t.forEach((function(e){r+=e.token}));var i=parseFloat(r);if(isNaN(i)||0===i)return'Directive "'+e+'" requires a number as a parameter.';n.formatting.scale=i},f=["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"],u=function(e,t,i,a,n){if(1!==i.length||"number"!==i[0].type)return'Directive "'+t+'" requires a number as a parameter.';var s=i[0].intt;return void 0!==a&&s<a?'Directive "'+t+'" requires a number greater than or equal to '+a+" as a parameter.":void 0!==n&&s>n?'Directive "'+t+'" requires a number less than or equal to '+n+" as a parameter.":(r[e]=s,null)},d=function(e,t,i){if(1===i.length&&("true"===i[0].token||"false"===i[0].token))return r[e]="true"===i[0].token,null;var a=u(e,t,i,0,1);return null!==a?a:(r[e]=1===r[e],null)},p=function(e,t,i,a){if(1!==i.length)return'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter.";for(var n=i[0].token,s=!1,o=0;!s&&o<a.length;o++)a[o]===n&&(s=!0);return s?(r[e]=n,null):'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter."},m=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],g=["gchord","ptstress","beatstring"],v=["bassvol","chordvol","bassprog","chordprog","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],b=["program"],y=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],x=["beat"],w=["drone"],k=["portamento"],T=["expand","grace","trim"],C=["drum","chordname"];a.parseFontChangeLine=function(e){var t=(e=e.replace(/\$\$/g,"")).split("$");if(t.length>1&&r.setfont){var i=[];""!==t[0]&&i.push({text:t[0]});for(var a=1;a<t.length;a++)if("0"===t[a][0])i.push({text:t[a].substring(1).replace(/\x03/g,"$$")});else{var n=parseInt(t[a][0],10);r.setfont[n]?i.push({font:r.setfont[n],text:t[a].substring(1).replace(/\x03/g,"$$")}):i[i.length-1].text+="$"+t[a].replace(/\x03/g,"$$")}return i}return e.replace(/\x03/g,"$$")};var S=["auto","above","below","hidden"];function N(e){if(0===e.length)return{value:1};if(1===e.length)if("number"===e[0].type){if(e[0].floatt>=0||e[0].floatt<=1)return{value:e[0].floatt}}else{if("false"===e[0].token)return{value:0};if("true"===e[0].token)return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+e[0].token+")"}}a.addDirective=function(o){var E=e.tokenize(o,0,o.length);if(0===E.length||"alpha"!==E[0].type)return null;var _=o.substring(o.indexOf(E[0].token)+E[0].token.length);_=e.stripComment(_);var M,A=E.shift().token.toLowerCase(),B="";switch(A){case"bagpipes":n.formatting.bagpipes=!0;break;case"flatbeams":n.formatting.flatbeams=!0;break;case"jazzchords":n.formatting.jazzchords=!0;break;case"accentAbove":n.formatting.accentAbove=!0;break;case"germanAlphabet":n.formatting.germanAlphabet=!0;break;case"landscape":r.landscape=!0;break;case"papersize":r.papersize=_;break;case"graceslurs":if(1!==E.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===E[0].token||"false"===E[0].token)n.formatting.graceSlurs=!1;else{if("1"!==E[0].token&&"true"!==E[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+E[0].token+")";n.formatting.graceSlurs=!0}break;case"lineThickness":var L=N(E);if(void 0!==L.value&&(n.formatting.lineThickness=L.value),L.error)return L.error;break;case"stretchlast":var P=N(E);if(void 0!==P.value&&(n.formatting.stretchlast=P.value),P.error)return P.error;break;case"titlecaps":r.titlecaps=!0;break;case"titleleft":n.formatting.titleleft=!0;break;case"measurebox":n.formatting.measurebox=!0;break;case"vocal":return p("vocalPosition",A,E,S);case"dynamic":return p("dynamicPosition",A,E,S);case"gchord":return p("chordPosition",A,E,S);case"ornament":return p("ornamentPosition",A,E,S);case"volume":return p("volumePosition",A,E,S);case"botmargin":case"botspace":case"composerspace":case"indent":case"leftmargin":case"linesep":case"musicspace":case"partsspace":case"pageheight":case"pagewidth":case"rightmargin":case"staffsep":case"staffwidth":case"subtitlespace":case"sysstaffsep":case"systemsep":case"textspace":case"titlespace":case"topmargin":case"topspace":case"vocalspace":case"wordsspace":return function(t,r){var i=e.getMeasurement(r);return 0===i.used||0!==r.length?'Directive "'+t+'" requires a measurement as a parameter.':(n.formatting[t]=i.value,null)}(A,E);case"voicescale":if(1!==E.length||"number"!==E[0].type)return"voicescale requires one float as a parameter";var z=E.shift();return r.currentVoice&&(r.currentVoice.scale=z.floatt,s.changeVoiceScale(r.currentVoice.scale)),null;case"voicecolor":if(1!==E.length)return"voicecolor requires one string as a parameter";var H=E.shift();return r.currentVoice&&(r.currentVoice.color=H.token,s.changeVoiceColor(r.currentVoice.color)),null;case"vskip":var O=Math.round(function(t,r){var i=e.getMeasurement(r);return 0===i.used||0!==r.length?{error:'Directive "'+t+'" requires a measurement as a parameter.'}:i.value}(A,E));return O.error?O.error:(s.addSpacing(O),null);case"scale":h(A,E);break;case"sep":if(0===E.length)s.addSeparator(14,14,85,{startChar:r.iChar,endChar:r.iChar+5});else{var D=e.getMeasurement(E);if(0===D.used)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var F=D.value;if(0===(D=e.getMeasurement(E)).used)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var I=D.value;if(0===(D=e.getMeasurement(E)).used||0!==E.length)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var V=D.value;s.addSeparator(F,I,V,{startChar:r.iChar,endChar:r.iChar+_.length})}break;case"barsperstaff":if(null!==(B=u("barsperstaff",A,E)))return B;break;case"staffnonote":if(1!==E.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===E[0].token)r.staffnonote=!0;else{if("1"!==E[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+E[0].token+")";r.staffnonote=!1}break;case"printtempo":if(null!==(B=d("printTempo",A,E)))return B;break;case"partsbox":if(null!==(B=d("partsBox",A,E)))return B;r.partsfont.box=r.partsBox;break;case"freegchord":if(null!==(B=d("freegchord",A,E)))return B;break;case"measurenb":case"barnumbers":if(null!==(B=u("barNumbers",A,E)))return B;break;case"setbarnb":if(1!==E.length||"number"!==E[0].type)return"Directive setbarnb requires a number as a parameter.";r.currBarNumber=s.setBarNumberImmediate(E[0].intt);break;case"begintext":var Y="";for(M=e.nextLine();M&&0!==M.indexOf("%%endtext");)i.startsWith(M,"%%")?Y+=M.substring(2)+"\n":Y+=M+"\n",M=e.nextLine();s.addText(Y,{startChar:r.iChar,endChar:r.iChar+Y.length+7});break;case"continueall":r.continueall=!0;break;case"beginps":for(M=e.nextLine();M&&0!==M.indexOf("%%endps");)e.nextLine();t("Postscript ignored",o,0);break;case"deco":_.length>0&&r.ignoredDecorations.push(_.substring(0,_.indexOf(" "))),t("Decoration redefinition ignored",o,0);break;case"text":var G=e.translateString(_);s.addText(a.parseFontChangeLine(G),{startChar:r.iChar,endChar:r.iChar+_.length+7});break;case"center":var j=e.translateString(_);s.addCentered(a.parseFontChangeLine(j));break;case"font":break;case"setfont":var W=e.tokenize(_,0,_.length);if(W.length>=4&&"-"===W[0].token&&"number"===W[1].type){var q=parseInt(W[1].token);q>=1&&q<=9&&(r.setfont||(r.setfont=[]),W.shift(),W.shift(),r.setfont[q]=c(W,r.setfont[q],o,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 l(A,E,o);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(e,t,r){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(n.formatting[e]=c(t,n.formatting[e],r,0,e),null)}(A,E,o);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",E,o);case"staves":case"score":r.score_is_present=!0;for(var X,R=function(e,t,a,n,s){(t||0===r.staves.length)&&r.staves.push({index:r.staves.length,numVoices:0});var o=i.last(r.staves);void 0!==a&&void 0===o.bracket&&(o.bracket=a),void 0!==n&&void 0===o.brace&&(o.brace=n),s&&(o.connectBarLines="end"),void 0===r.voices[e]&&(r.voices[e]={staffNum:o.index,index:o.numVoices},o.numVoices++)},U=!1,K=!1,$=!1,Q=!1,Z=!1,J=!1,ee=!1,te=function(){if(ee=!0,X){var e="start";X.staffNum>0&&("start"!==r.staves[X.staffNum-1].connectBarLines&&"continue"!==r.staves[X.staffNum-1].connectBarLines||(e="continue")),r.staves[X.staffNum].connectBarLines=e}};E.length;){var re=E.shift();switch(re.token){case"(":U?t("Can't nest parenthesis in %%score",o,re.start):(U=!0,Q=!0);break;case")":!U||Q?t("Unexpected close parenthesis in %%score",o,re.start):U=!1;break;case"[":K?t("Can't nest brackets in %%score",o,re.start):(K=!0,Z=!0);break;case"]":!K||Z?t("Unexpected close bracket in %%score",o,re.start):(K=!1,r.staves[X.staffNum].bracket="end");break;case"{":$?t("Can't nest braces in %%score",o,re.start):($=!0,J=!0);break;case"}":!$||J?t("Unexpected close brace in %%score",o,re.start):($=!1,r.staves[X.staffNum].brace="end");break;case"|":te();break;default:for(var ie="";("alpha"===re.type||"number"===re.type)&&(ie+=re.token,re.continueId);)re=E.shift();R(ie,!U||Q,Z?"start":K?"continue":void 0,J?"start":$?"continue":void 0,ee),Q=!1,Z=!1,J=!1,ee=!1,X=r.voices[ie],"staves"===A&&te()}}break;case"newpage":var ae=e.getInt(_);s.addNewPage(0===ae.digits?-1:ae.value);break;case"abc":var ne=_.split(" ");switch(ne[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var se=ne.shift();s.addMetaText(A+se,ne.join(" "),{startChar:r.iChar,endChar:r.iChar+_.length+5});break;default:return"Unknown directive: "+A+ne[0]}break;case"header":case"footer":var oe=e.getMeat(_,0,_.length);'"'===(oe=_.substring(oe.start,oe.end))[0]&&'"'===oe[oe.length-1]&&(oe=oe.substring(1,oe.length-1));var ce=oe.split("\t"),le={};le=1===ce.length?{left:"",center:ce[0],right:""}:2===ce.length?{left:ce[0],center:ce[1],right:""}:{left:ce[0],center:ce[1],right:ce[2]},ce.length>3&&t("Too many tabs in "+A+": "+ce.length+" found.",_,0),s.addMetaTextObj(A,le,{startChar:r.iChar,endChar:r.iChar+o.length});break;case"midi":var he=e.tokenize(_,0,_.length,!0);he.length>0&&"="===he[0].token&&he.shift(),0===he.length?t("Expected midi command",_,0):function(e,r,i){var a=e.shift().token,n=[];if(m.indexOf(a)>=0)0!==e.length&&t("Unexpected parameter in MIDI "+a,i,0);else if(g.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,i,0):n.push(e[0].token);else if(v.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,i,0):"number"!==e[0].type?t("Expected one integer parameter in MIDI "+a,i,0):n.push(e[0].intt);else if(b.indexOf(a)>=0)1!==e.length&&2!==e.length?t("Expected one or two parameters in MIDI "+a,i,0):"number"!==e[0].type||2===e.length&&"number"!==e[1].type?t("Expected integer parameter in MIDI "+a,i,0):(n.push(e[0].intt),2===e.length&&n.push(e[1].intt));else if(y.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type?t("Expected two integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt));else if(k.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,i,0):"alpha"!==e[0].type||"number"!==e[1].type?t("Expected one string and one integer parameters in MIDI "+a,i,0):(n.push(e[0].token),n.push(e[1].intt));else if("drummap"===a)2===e.length&&"alpha"===e[0].type&&"number"===e[1].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token]=e[1].intt,n=r.formatting.midi.drummap):3===e.length&&"punct"===e[0].type&&"alpha"===e[1].type&&"number"===e[2].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,n=r.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+a,i,0);else if(T.indexOf(a)>=0)3!==e.length||"number"!==e[0].type||"/"!==e[1].token||"number"!==e[2].type?t("Expected fraction parameter in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[2].intt));else if(x.indexOf(a)>=0)4!==e.length?t("Expected four parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type?t("Expected four integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt),n.push(e[2].intt),n.push(e[3].intt));else if(w.indexOf(a)>=0)5!==e.length?t("Expected five parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type||"number"!==e[4].type?t("Expected five integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt),n.push(e[2].intt),n.push(e[3].intt),n.push(e[4].intt));else if(b.indexOf(a)>=0)1!==e.length||4!==e.length?t("Expected one or two parameters in MIDI "+a,i,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+a,i,0):4===e.length?("octave"!==e[1].token&&t("Expected octave parameter in MIDI "+a,i,0),"="!==e[2].token&&t("Expected octave parameter in MIDI "+a,i,0),"number"!==e[3].type&&t("Expected integer parameter for octave in MIDI "+a,i,0)):(n.push(e[0].intt),4===e.length&&n.push(e[3].intt));else if(C.indexOf(a)>=0)if(e.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+a,i,0);else if("alpha"!==e[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+a,i,0);else{var o=e.shift();for(n.push(o.token);e.length>0;)"number"!==(o=e.shift()).type&&t("Expected integer parameter in MIDI "+a,i,0),n.push(o.intt)}s.hasBeginMusic()?s.appendElement("midi",-1,-1,{cmd:a,params:n}):(void 0===r.formatting.midi&&(r.formatting.midi={}),r.formatting.midi[a]=n)}(he,n,_);break;case"percmap":var fe=function(e){var t=e.split(/\s+/);if(2!==t.length&&3!==t.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var r=t[0],i=parseInt(t[1],10);if((isNaN(i)||i<35||i>81)&&t[1]&&(i=f.indexOf(t[1].toLowerCase())+35),isNaN(i)||i<35||i>81)return{error:'Expected drum name, received "'+t[1]+'"'};var a={sound:i};return 3===t.length&&(a.noteHead=t[2]),{key:r,value:a}}(_);fe.error?t(fe.error,o,8):(n.formatting.percmap||(n.formatting.percmap={}),n.formatting.percmap[fe.key]=fe.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":n.formatting[A]=_;break;default:return"Unknown directive: "+A}return null},a.globalFormatting=function(i){for(var a in i)if(i.hasOwnProperty(a)){var s,o=""+i[a],c=e.tokenize(o,0,o.length);switch(a){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":l(a,c,o);break;case"scale":h(a,c);break;case"partsbox":null!==(s=d("partsBox",a,c))&&t(s),r.partsfont.box=r.partsBox;break;case"freegchord":null!==(s=d("freegchord",a,c))&&t(s);break;case"fontboxpadding":1===c.length&&"number"===c[0].type||t('Directive "'+a+'" requires a number as a parameter.'),n.formatting.fontboxpadding=c[0].floatt;break;case"stretchlast":var f=N(c);if(void 0!==f.value&&(n.formatting.stretchlast=f.value),f.error)return f.error;break;default:t("Formatting directive unrecognized: ",a,0)}}}}(),e.exports=a},9928:function(e,t,r){var i=r(5008),a=r(8360),n=r(9708);e.exports=function(e,t,r,s,o){this.reset=function(e,t,r,i){n.initialize(e,t,r,i,o),a.initialize(e,t,r,i,o)},this.reset(e,t,r,s),this.setTitle=function(e,t){r.hasMainTitle?o.addSubtitle(e,{startChar:r.iChar,endChar:r.iChar+t+2}):(o.addMetaText("title",e,{startChar:r.iChar,endChar:r.iChar+t+2}),r.hasMainTitle=!0)},this.setMeter=function(i){if("C"===(i=e.stripComment(i)))return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"common_time"};if("C|"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"cut_time"};if("o"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===i.length||"none"===i.toLowerCase())return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),null;var a=e.tokenize(i,0,i.length);try{var n=function(){var e=function(){var e={value:0,num:""},t=a.shift();for("("===t.token&&(t=a.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===a.length||"/"===a[0].token)return e;if(")"===(t=a.shift()).token){if(0===a.length||"/"===a[0].token)return e;throw"Unexpected paren in meter"}if("."!==t.token&&"+"!==t.token)throw"Expected top number of meter";if(e.num+=t.token,0===a.length)throw"Expected top number of meter";t=a.shift()}return e}();if(0===a.length)return e;var t=a.shift();if("/"!==t.token)throw"Expected slash in meter";if("number"!==(t=a.shift()).type)throw"Expected bottom number of meter";return e.den=t.token,e.value=e.value/parseInt(e.den),e};if(0===a.length)throw"Expected meter definition in M: line";for(var s={type:"specified",value:[]},o=0;;){var c=n();o+=c.value;var l={num:c.num};if(void 0!==c.den&&(l.den=c.den),s.value.push(l),0===a.length)break}return!0===r.havent_set_length&&(r.default_length=o<.75?.0625:.125,r.havent_set_length=!1),s}catch(e){t(e,i,0)}return null},this.calcTempo=function(e){var t=1/4;r.meter&&"specified"===r.meter.type?t=1/parseInt(r.meter.value[0].den):r.origMeter&&"specified"===r.origMeter.type&&(t=1/parseInt(r.origMeter.value[0].den));for(var i=0;i<e.duration;i++)e.duration[i]=t*e.duration[i];return e},this.resolveTempo=function(){r.tempo&&(this.calcTempo(r.tempo),s.metaText.tempo=r.tempo,delete r.tempo)},this.addUserDefinition=function(e,a,n){var s=e.indexOf("=",a);if(-1!==s){var o=i.strip(e.substring(a,s)),c=i.strip(e.substring(s+1));1===o.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(o)?0!==c.length?(void 0===r.macros&&(r.macros={}),r.macros[o]=c):t("Missing macro definition",e,a):t("Macro definitions must be H-Y, h-w, or tilde",e,a):t("Macro definitions can only be one character",e,a)}else t("Need an = in a macro definition",e,a)},this.setDefaultLength=function(e,t,i){var a=e.substring(t,i).replace(/ /g,"").split("/");if(2===a.length){var n=parseInt(a[0]),s=parseInt(a[1]);s>0&&(r.default_length=n/s,r.havent_set_length=!1)}else 1===a.length&&"1"===a[0]&&(r.default_length=1,r.havent_set_length=!1)};var c={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(i,a,n,s){try{var o=e.tokenize(i,a,n);if(0===o.length)throw"Missing parameter in Q: field";var l={startChar:s+a-2,endChar:s+n},h=!0,f=o.shift();if("quote"===f.type&&(l.preString=f.token,f=o.shift(),0===o.length))return c[l.preString.toLowerCase()]&&(l.bpm=c[l.preString.toLowerCase()],l.suppressBpm=!0),{type:"immediate",tempo:l};if("alpha"===f.type&&"C"===f.token){if(0===o.length)throw"Missing tempo after C in Q: field";if("punct"===(f=o.shift()).type&&"="===f.token){if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(f=o.shift()).type)throw"Expected number after = in Q: field";l.duration=[1],l.bpm=parseInt(f.token)}else{if("number"!==f.type)throw"Expected number or equal after C in Q: field";if(l.duration=[parseInt(f.token)],0===o.length)throw"Missing = after duration in Q: field";if("punct"!==(f=o.shift()).type||"="!==f.token)throw"Expected = after duration in Q: field";if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(f=o.shift()).type)throw"Expected number after = in Q: field";l.bpm=parseInt(f.token)}}else{if("number"!==f.type)throw"Unknown value in Q: field";var u=parseInt(f.token);if(0===o.length||"quote"===o[0].type)l.duration=[1],l.bpm=u;else{if(h=!1,"punct"!==(f=o.shift()).type&&"/"!==f.token)throw"Expected fraction in Q: field";if("number"!==(f=o.shift()).type)throw"Expected fraction in Q: field";var d=parseInt(f.token);for(l.duration=[u/d];o.length>0&&"="!==o[0].token&&"quote"!==o[0].type;){if("number"!==(f=o.shift()).type)throw"Expected fraction in Q: field";if(u=parseInt(f.token),"punct"!==(f=o.shift()).type&&"/"!==f.token)throw"Expected fraction in Q: field";if("number"!==(f=o.shift()).type)throw"Expected fraction in Q: field";d=parseInt(f.token),l.duration.push(u/d)}if("punct"!==(f=o.shift()).type&&"="!==f.token)throw"Expected = in Q: field";if("number"!==(f=o.shift()).type)throw"Expected tempo in Q: field";l.bpm=parseInt(f.token)}}if(0!==o.length&&("quote"===(f=o.shift()).type&&(l.postString=f.token,f=o.shift()),0!==o.length))throw"Unexpected string at end of Q: field";return!1===r.printTempo&&(l.suppress=!0),{type:h?"delaySet":"immediate",tempo:l}}catch(e){return t(e,i,a),{type:"none"}}},this.letter_to_inline_header=function(i,c,l){var h=e.eatWhiteSpace(i,c);if(c+=h,i.length>=c+5&&"["===i[c]&&":"===i[c+2]){var f=i.indexOf("]",c),u=r.iChar+c,d=r.iChar+f+1;switch(i.substring(c,c+3)){case"[I:":var p=a.addDirective(i.substring(c+3,f));return p&&t(p,i,c),[f-c+1+h];case"[M:":var m=this.setMeter(i.substring(c+3,f));return o.hasBeginMusic()&&m?o.appendStartingElement("meter",u,d,m):r.meter=m,[f-c+1+h];case"[K:":var g=n.parseKey(i.substring(c+3,f),!0);return g.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",u,d,r.clef),g.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",u,d,n.fixKey(r.clef,r.key)),[f-c+1+h];case"[P:":var v=a.parseFontChangeLine(i.substring(c+3,f));return l||s.lines.length<=s.lineNum?r.partForNextLine={title:v,startChar:u,endChar:d}:o.appendElement("part",u,d,{title:v}),[f-c+1+h];case"[L:":return this.setDefaultLength(i,c+3,f),[f-c+1+h];case"[Q:":if(f>0){var b=this.setTempo(i,c+3,f,r.iChar);return"delaySet"===b.type?o.hasBeginMusic()?o.appendElement("tempo",u,d,this.calcTempo(b.tempo)):r.tempoForNextLine=["tempo",u,d,this.calcTempo(b.tempo)]:"immediate"===b.type&&(!l&&o.hasBeginMusic()?o.appendElement("tempo",u,d,b.tempo):r.tempoForNextLine=["tempo",u,d,b.tempo]),[f-c+1+h,i[c+1],i.substring(c+3,f)]}break;case"[V:":if(f>0)return n.parseVoice(i,c+3,f),[f-c+1+h,i[c+1],i.substring(c+3,f)];break;case"[r:":return[f-c+1+h]}}return[0]},this.letter_to_body_header=function(e,s){if(e.length>=s+3)switch(e.substring(s,s+2)){case"I:":var c=a.addDirective(e.substring(s+2));return c&&t(c,e,s),[e.length];case"M:":var l=this.setMeter(e.substring(s+2));return o.hasBeginMusic()&&l&&o.appendStartingElement("meter",r.iChar+s,r.iChar+e.length,l),[e.length];case"K:":var h=n.parseKey(e.substring(s+2),o.hasBeginMusic());return h.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",r.iChar+s,r.iChar+e.length,r.clef),h.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",r.iChar+s,r.iChar+e.length,n.fixKey(r.clef,r.key)),[e.length];case"P:":return o.hasBeginMusic()&&o.appendElement("part",r.iChar+s,r.iChar+e.length,{title:e.substring(s+2)}),[e.length];case"L:":return this.setDefaultLength(e,s+2,e.length),[e.length];case"Q:":var f=e.indexOf("",s+2);-1===f&&(f=e.length);var u=this.setTempo(e,s+2,f,r.iChar);return"delaySet"===u.type?o.appendElement("tempo",r.iChar+s,r.iChar+e.length,this.calcTempo(u.tempo)):"immediate"===u.type&&o.appendElement("tempo",r.iChar+s,r.iChar+e.length,u.tempo),[f,e[s],i.strip(e.substring(s+2))];case"V:":return n.parseVoice(e,s+2,e.length),[e.length,e[s],i.strip(e.substring(s+2))]}return[0]};var l={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(i){var c=l[i[0]],h=i.length-2,f=e.translateString(e.stripComment(i.substring(2)));if("unalignedWords"===c||"notes"===c)o.addMetaTextArray(c,a.parseFontChangeLine(f),{startChar:r.iChar,endChar:r.iChar+i.length});else if(void 0!==c)o.addMetaText(c,a.parseFontChangeLine(f),{startChar:r.iChar,endChar:r.iChar+i.length});else{var u=r.iChar,d=u+i.length;switch(i[0]){case"H":for(o.addMetaTextArray("history",a.parseFontChangeLine(f),{startChar:r.iChar,endChar:r.iChar+i.length}),i=e.peekLine();i&&":"!==i[1];)e.nextLine(),o.addMetaTextArray("history",a.parseFontChangeLine(e.translateString(e.stripComment(i))),{startChar:r.iChar,endChar:r.iChar+i.length}),i=e.peekLine();break;case"K":this.resolveTempo();var p=n.parseKey(i.substring(2),!1);!r.is_in_header&&o.hasBeginMusic()&&(p.foundClef&&o.appendStartingElement("clef",u,d,r.clef),p.foundKey&&o.appendStartingElement("key",u,d,n.fixKey(r.clef,r.key))),r.is_in_header=!1;break;case"L":this.setDefaultLength(i,2,i.length);break;case"M":r.origMeter=r.meter=this.setMeter(i.substring(2));break;case"P":r.is_in_header?o.addMetaText("partOrder",a.parseFontChangeLine(f),{startChar:r.iChar,endChar:r.iChar+i.length}):r.partForNextLine={title:f,startChar:u,endChar:d};break;case"Q":var m=this.setTempo(i,2,i.length,r.iChar);"delaySet"===m.type?r.tempo=m.tempo:"immediate"===m.type&&(s.metaText.tempo?r.tempoForNextLine=["tempo",u,d,m.tempo]:s.metaText.tempo=m.tempo);break;case"T":r.titlecaps&&(f=f.toUpperCase()),this.setTitle(a.parseFontChangeLine(e.theReverser(f)),h);break;case"U":this.addUserDefinition(i,2,i.length);break;case"V":if(n.parseVoice(i,2,i.length),!r.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",i,0);break;default:return{regular:!0}}}return{}}}},9708:function(e,t,r){var i=r(5008),a=r(8360),n=r(2821),s={};!function(){var e,t,r,o;s.initialize=function(i,a,n,s,c){e=i,t=a,r=n,o=c},s.standardKey=function(e,t,i,a){return n.keySignature(r,e,t,i,a)};var c={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}},l=function(e,t){var r=c[e];return(r?r.mid:0)+t};s.fixClef=function(e){var t=c[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},s.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return e.accidentals.forEach((function(e){t.accidentals.push(i.clone(e))})),t};var h={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};s.addPosToKey=function(e,t){var r=e.verticalPos;t.accidentals.forEach((function(e){var t=h[e.note];t-=r,e.verticalPos=t})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){var t=h[e.note];t-=r,e.verticalPos=t})),r<-10?(t.accidentals.forEach((function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)}))):r<-4?(t.accidentals.forEach((function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}))):r>=7&&(t.accidentals.forEach((function(e){e.verticalPos+=7})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos+=7})))},s.fixKey=function(e,t){var r=i.clone(t);return s.addPosToKey(e,r),r};var f=function(e){var t=0,r=e[t++];"^"!==r&&"_"!==r||(r=e[t++]);var i=h[r];for(void 0===i&&(i=6);t<e.length;t++)if(","===e[t])i-=7;else{if("'"!==e[t])break;i+=7}return{mid:i-6,str:e.substring(t)}};s.parseKey=function(i,n){0===i.length&&(i="none");var o=e.tokenize(i,0,i.length),c={};if(0===o.length)return t("Must pass in key signature.",i,0),c;switch(o[0].token){case"HP":a.addDirective("bagpipes"),r.key={root:"HP",accidentals:[],acc:"",mode:""},c.foundKey=!0,o.shift();break;case"Hp":a.addDirective("bagpipes"),r.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},c.foundKey=!0,o.shift();break;case"none":r.key={root:"none",accidentals:[],acc:"",mode:""},c.foundKey=!0,o.shift();break;default:var h=e.getKeyPitch(o[0].token);if(h.len>0){c.foundKey=!0;var f="",u="";o[0].token.length>1?o[0].token=o[0].token.substring(1):o.shift();var d=h.token;if(o.length>0){var p=e.getSharpFlat(o[0].token);if(p.len>0&&(o[0].token.length>1?o[0].token=o[0].token.substring(1):o.shift(),d+=p.token,f=p.token),o.length>0){var m=e.getMode(o[0].token);m.len>0&&(o.shift(),d+=m.token,u=m.token)}if(void 0===s.standardKey(d,h.token,f,0))return t("Unsupported key signature: "+d,i,0),c}var g,v=s.deepCopyKey(r.key),b=!n&&r.globalTranspose?-r.globalTranspose:0;if(n&&(g=r.globalTransposeOrigKeySig),r.key=s.deepCopyKey(s.standardKey(d,h.token,f,b)),n&&(r.globalTransposeOrigKeySig=g),r.key.mode=u,v){for(var y,x=0;x<r.key.accidentals.length;x++)for(y=0;y<v.accidentals.length;y++)v.accidentals[y].note&&r.key.accidentals[x].note.toLowerCase()===v.accidentals[y].note.toLowerCase()&&(v.accidentals[y].note=null);for(y=0;y<v.accidentals.length;y++)v.accidentals[y].note&&(r.key.impliedNaturals||(r.key.impliedNaturals=[]),r.key.impliedNaturals.push({acc:"natural",note:v.accidentals[y].note}))}}}if(0===o.length)return c;if("exp"===o[0].token&&o.shift(),0===o.length)return c;if("oct"===o[0].token&&o.shift(),0===o.length)return c;var w,k=e.getKeyAccidentals2(o);if(k.warn&&t(k.warn,i,0),k.accs){c.foundKey||(c.foundKey=!0,r.key={root:"none",acc:"",mode:"",accidentals:[]}),function(e){for(var t=0;t<e.length;t++)"b"===e[t].note?e[t].note="B":"a"===e[t].note?e[t].note="A":"F"===e[t].note?e[t].note="f":"E"===e[t].note?e[t].note="e":"D"===e[t].note?e[t].note="d":"C"===e[t].note?e[t].note="c":"G"===e[t].note&&"sharp"===e[t].acc?e[t].note="g":"g"===e[t].note&&"flat"===e[t].acc&&(e[t].note="G")}(k.accs);for(var T=0;T<k.accs.length;T++){for(var C=!1,S=0;S<r.key.accidentals.length&&!C;S++)r.key.accidentals[S].note===k.accs[T].note&&(C=!0,r.key.accidentals[S].acc!==k.accs[T].acc&&(r.key.accidentals[S].acc=k.accs[T].acc,r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(k.accs[T])));if(!C&&(r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(k.accs[T]),r.key.accidentals.push(k.accs[T]),r.key.impliedNaturals))for(var N=0;N<r.key.impliedNaturals.length;N++)r.key.impliedNaturals[N].note===k.accs[T].note&&r.key.impliedNaturals.splice(N,1)}}for(;o.length>0;)switch(o[0].token){case"m":case"middle":if(o.shift(),0===o.length)return t("Expected = after middle",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after middle",i,w.start);break}if(0===o.length)return t("Expected parameter after middle=",i,0),c;var E=e.getPitchFromTokens(o);E.warn&&t(E.warn,i,0),E.position&&(r.clef.verticalPos=E.position-6);break;case"transpose":if(o.shift(),0===o.length)return t("Expected = after transpose",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after transpose",i,w.start);break}if(0===o.length)return t("Expected parameter after transpose=",i,0),c;if("number"!==o[0].type){t("Expected number after transpose",i,o[0].start);break}r.clef.transpose=o[0].intt,o.shift();break;case"stafflines":if(o.shift(),0===o.length)return t("Expected = after stafflines",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after stafflines",i,w.start);break}if(0===o.length)return t("Expected parameter after stafflines=",i,0),c;if("number"!==o[0].type){t("Expected number after stafflines",i,o[0].start);break}r.clef.stafflines=o[0].intt,o.shift();break;case"staffscale":if(o.shift(),0===o.length)return t("Expected = after staffscale",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after staffscale",i,w.start);break}if(0===o.length)return t("Expected parameter after staffscale=",i,0),c;if("number"!==o[0].type){t("Expected number after staffscale",i,o[0].start);break}r.clef.staffscale=o[0].floatt,o.shift();break;case"octave":if(o.shift(),0===o.length)return t("Expected = after octave",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after octave",i,w.start);break}if(0===o.length)return t("Expected parameter after octave=",i,0),c;if("number"!==o[0].type){t("Expected number after octave",i,o[0].start);break}r.octave=o[0].intt,o.shift();break;case"style":if(o.shift(),0===o.length)return t("Expected = after style",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after style",i,w.start);break}if(0===o.length)return t("Expected parameter after style=",i,0),c;switch(o[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":r.style=o[0].token,o.shift();break;default:t("error parsing style element: "+o[0].token,i,o[0].start)}break;case"clef":if(o.shift(),0===o.length)return t("Expected = after clef",i,0),c;if("="!==(w=o.shift()).token){t("Expected = after clef",i,w.start);break}if(0===o.length)return t("Expected parameter after clef=",i,0),c;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var _=o.shift();switch(_.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":_.token="alto";break;case"F":case"f":_.token="bass";break;case"G":case"g":_.token="treble";break;default:t("Expected clef name. Found "+_.token,i,_.start)}o.length>0&&"number"===o[0].type&&(_.token+=o[0].token,o.shift()),o.length>1&&("-"===o[0].token||"+"===o[0].token||"^"===o[0].token||"_"===o[0].token)&&"8"===o[1].token&&(_.token+=o[0].token+o[1].token,o.shift(),o.shift()),r.clef={type:_.token,verticalPos:l(_.token,0)},r.currentVoice&&void 0!==r.currentVoice.transpose&&(r.clef.transpose=r.currentVoice.transpose),c.foundClef=!0;break;default:t("Unknown parameter: "+o[0].token,i,o[0].start),o.shift()}return c},s.parseVoice=function(i,a,n){var s=e.getMeat(i,a,n),c=s.start,h=s.end,u=e.getToken(i,c,h);if(0!==u.length){var d=!1;void 0===r.voices[u]&&(r.voices[u]={},d=!0,r.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",i,c)),c+=u.length,c+=e.eatWhiteSpace(i,c);for(var p={startStaff:d},m=function(r){var a=e.getVoiceToken(i,c,h);void 0!==a.warn?t("Expected value for "+r+" in voice: "+a.warn,i,c):void 0!==a.err?t("Expected value for "+r+" in voice: "+a.err,i,c):0===a.token.length&&'"'!==i[c]?t("Expected value for "+r+" in voice",i,c):p[r]=a.token,c+=a.len},g=function(a,n,s){var o=e.getVoiceToken(i,c,h);void 0!==o.warn?t("Expected value for "+n+" in voice: "+o.warn,i,c):void 0!==o.err?t("Expected value for "+n+" in voice: "+o.err,i,c):0===o.token.length&&'"'!==i[c]?t("Expected value for "+n+" in voice",i,c):("number"===s&&(o.token=parseFloat(o.token)),r.voices[a][n]=o.token),c+=o.len},v=function(r,a){var n=e.getVoiceToken(i,c,h);if(void 0!==n.warn)t("Expected value for "+r+" in voice: "+n.warn,i,c);else if(void 0!==n.err)t("Expected value for "+r+" in voice: "+n.err,i,c);else{if(0!==n.token.length||'"'===i[c])return"number"===a&&(n.token=parseFloat(n.token)),n.token;t("Expected value for "+r+" in voice",i,c)}c+=n.len},b=function(a,n){var s=e.getVoiceToken(i,c,h);if(void 0!==s.warn)t("Expected one of (_B, _E, _b, _e) for "+n+" in voice: "+s.warn,i,c);else if(0===s.token.length&&'"'!==i[c])t("Expected one of (_B, _E, _b, _e) for "+n+" in voice",i,c);else{var o={_B:2,_E:9,_b:-10,_e:-3}[s.token];o?r.voices[a][n]=o:t("Expected one of (_B, _E, _b, _e) for "+n+" in voice",i,c)}c+=s.len};c<h;){var y=e.getVoiceToken(i,c,h);if(c+=y.len,y.warn)t("Error parsing voice: "+y.warn,i,c);else{var x=null;switch(y.token){case"clef":case"cl":m("clef");var w=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(w+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=l(p.clef,w));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=y.token.replace(/[',]/g,""),p.verticalPos=l(p.clef,0),r.voices[u].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(x=e.getVoiceToken(i,c,h)).warn?t("Expected value for stems in voice: "+x.warn,i,c):void 0!==x.err?t("Expected value for stems in voice: "+x.err,i,c):"up"===x.token||"down"===x.token?r.voices[u].stem=x.token:t("Expected up or down for voice stem",i,c),c+=x.len;break;case"up":case"down":r.voices[u].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=f(p.verticalPos).mid;break;case"gchords":case"gch":r.voices[u].suppressChords=!0,"0"===(x=e.getVoiceToken(i,c,h)).token&&(c+=x.len);break;case"space":case"spc":m("spacing");break;case"scale":g(u,"scale","number");break;case"score":b(u,"scoreTranspose");break;case"transpose":g(u,"transpose","number");break;case"stafflines":g(u,"stafflines","number");break;case"staffscale":g(u,"staffscale","number");break;case"octave":g(u,"octave","number");break;case"volume":g(u,"volume","number");break;case"cue":var k=v("cue","string");r.voices[u].scale="on"===k?.6:1;break;case"style":void 0!==(x=e.getVoiceToken(i,c,h)).warn?t("Expected value for style in voice: "+x.warn,i,c):void 0!==x.err?t("Expected value for style in voice: "+x.err,i,c):"normal"===x.token||"harmonic"===x.token||"rhythm"===x.token||"x"===x.token||"triangle"===x.token?r.voices[u].style=x.token:t("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",i,c),c+=x.len}}c+=e.eatWhiteSpace(i,c)}if((p.startStaff||0===r.staves.length)&&(r.staves.push({index:r.staves.length,meter:r.origMeter}),r.score_is_present||(r.staves[r.staves.length-1].numVoices=0)),void 0===r.voices[u].staffNum){r.voices[u].staffNum=r.staves.length-1;var T=0;for(var C in r.voices)r.voices.hasOwnProperty(C)&&r.voices[C].staffNum===r.voices[u].staffNum&&T++;r.voices[u].index=T-1}var S=r.staves[r.voices[u].staffNum];r.score_is_present||S.numVoices++,p.clef&&(S.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(S.spacing_below_offset=p.spacing),p.verticalPos&&(S.verticalPos=p.verticalPos),p.name&&(S.name?S.name.push(p.name):S.name=[p.name]),p.subname&&(S.subname?S.subname.push(p.subname):S.subname=[p.subname]),function(e){r.currentVoice=r.voices[e],o.setCurrentVoice(r.currentVoice.staffNum,r.currentVoice.index)}(u)}else t("Expected a voice id",i,c)}}(),e.exports=s},6476:function(e,t,r){var i,a,n,s,o,c,l=r(5008),h=r(9708),f=r(2821),u=r(2539),d=u.legalAccents,p=u.volumeDecorations,m=u.dynamicDecorations,g=u.accentPseudonyms,v=u.accentDynamicPseudonyms,b=u.nonDecorations,y=u.durations,x=u.pitches,w=u.rests,k=u.accMap,T=u.tripletQ,C=function(e,t,r,l,h,f){i=e,a=t,n=r,s=l,o=h,c=f,this.lineContinuation=!1},S=function(e,t,r){if(void 0===e.inTie[t])return!1;var i=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0;return!(!e.inTie[t][i]||void 0===r.pitches&&"spacer"===r.rest.type)},N={};C.prototype.parseMusic=function(e){c.resolveTempo(),n.is_in_header=!1;for(var t=0,r=n.iChar;i.isWhiteSpace(e[t])&&t<e.length;)t++;if(t!==e.length&&"%"!==e[t]){var l=n.start_new_line;void 0===n.continueall?n.start_new_line=!0:n.start_new_line=!1;var h=0,f=c.letter_to_body_header(e,t);f[0]>0&&(t+=f[0],"V"===f[1]&&this.startNewLine());for(var u=0;t<e.length;){var d=t;if("%"===e[t])break;var p=c.letter_to_inline_header(e,t,l);if(p[0]>0)t+=p[0],"V"===p[1]&&(l=!0);else{var m;for((!o.hasBeginMusic()||l&&!this.lineContinuation)&&(this.startNewLine(),l=!1);;)if((m=i.eatWhiteSpace(e,t))>0&&(t+=m),t>0&&""===e[t-1]&&(m=c.letter_to_body_header(e,t))[0]>0&&("V"===m[1]&&this.startNewLine(),t=m[0],n.start_new_line=!1),(m=P(e,t))[0]>0&&(t+=m[0]),(m=_(e,t))[0]>0){N.chord||(N.chord=[]);var g=i.translateString(m[1]);g=g.replace(/;/g,"\n");for(var v=!1,x=0;x<N.chord.length;x++)N.chord[x].position===m[2]&&(v=!0,N.chord[x].name+="\n"+g);!1===v&&(null===m[2]&&m[3]?N.chord.push({name:g,rel_position:m[3]}):N.chord.push({name:g,position:m[2]})),t+=m[0];var w=i.skipWhiteSpace(e.substring(t));w>0&&(N.force_end_beam_last=!0),t+=w}else if((m=-1===b.indexOf(e[t])?L(e,t):[0])[0]>0)null===m[1]?t+1<e.length&&this.startNewLine():m[1].length>0&&(0===m[1].indexOf("style=")?N.style=m[1].substr(6):(void 0===N.decoration&&(N.decoration=[]),"beambr1"===m[1]?N.beambr=1:"beambr2"===m[1]?N.beambr=2:N.decoration.push(m[1]))),t+=m[0];else{if(!((m=M(e,t))[0]>0))break;N.gracenotes=m[1],t+=m[0]}if((m=z(e,t))[0]>0){u=0,void 0!==N.gracenotes&&(N.rest={type:"spacer"},N.duration=.125,n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+t,r+t+m[0],N),n.measureNotEmpty=!0,N={});var k={type:m[1]};0===k.type.length?a("Unknown bar type",e,t):(n.inEnding&&"bar_thin"!==k.type&&(k.endEnding=!0,n.inEnding=!1),m[2]&&(k.startEnding=m[2],n.inEnding&&(k.endEnding=!0),n.inEnding=!0,"bar_right_repeat"===m[1]?n.restoreStartEndingHoldOvers():n.duplicateStartEndingHoldOvers()),void 0!==N.decoration&&(k.decoration=N.decoration),void 0!==N.chord&&(k.chord=N.chord),k.startEnding&&void 0===n.barFirstEndingNum?n.barFirstEndingNum=n.currBarNumber:k.startEnding&&k.endEnding&&n.barFirstEndingNum?n.currBarNumber=n.barFirstEndingNum:k.endEnding&&(n.barFirstEndingNum=void 0),"bar_invisible"!==k.type&&n.measureNotEmpty&&(void 0===n.currentVoice||0===n.currentVoice.staffNum&&0===n.currentVoice.index)&&(n.currBarNumber++,n.barNumbers&&n.currBarNumber%n.barNumbers==0&&(k.barNumber=n.currBarNumber)),n.addFormattingOptions(N,s.formatting,"bar"),o.appendElement("bar",r+d,r+t+m[0],k),n.measureNotEmpty=!1,N={}),t+=m[0]}else if("&"===e[t])(m=A(e,t))[0]>0&&(o.appendElement("overlay",r,r+1,{}),t+=1,u++);else{if((m=H(e,t)).consumed>0&&(void 0!==m.startSlur&&(N.startSlur=m.startSlur),m.dottedSlur&&(N.dottedSlur=!0),void 0!==m.triplet&&(h>0?a("Can't nest triplets",e,t):(N.startTriplet=m.triplet,N.tripletMultiplier=m.tripletQ/m.triplet,N.tripletR=m.num_notes,h=void 0===m.num_notes?m.triplet:m.num_notes)),t+=m.consumed),"["===e[t]){t++;for(var T=null,C=!1,I=!1;!I;){var V=L(e,t);V[0]>0&&(t+=V[0]);var Y=D(e,t,{},!1);if(null!==Y&&void 0!==Y.pitch)V[0]>0&&0!==V[1].indexOf("style=")&&(void 0===N.decoration&&(N.decoration=[]),N.decoration.push(V[1])),Y.end_beam&&(N.end_beam=!0,delete Y.end_beam),void 0===N.pitches?(N.duration=Y.duration,N.pitches=[Y]):N.pitches.push(Y),delete Y.duration,V[0]>0&&0===V[1].indexOf("style=")&&(N.pitches[N.pitches.length-1].style=V[1].substr(6)),n.inTieChord[N.pitches.length]&&(Y.endTie=!0,n.inTieChord[N.pitches.length]=void 0),Y.startTie&&(n.inTieChord[N.pitches.length]=!0),t=Y.endChar,delete Y.endChar;else if(" "===e[t])a("Spaces are not allowed in chords",e,t),t++;else{if(t<e.length&&"]"===e[t]){t++,0!==n.next_note_duration&&(N.duration=N.duration*n.next_note_duration,n.next_note_duration=0),S(n,u,N)&&(N.pitches.forEach((function(e){e.endTie=!0})),E(n,u,!1)),h>0&&(!N.rest||"spacer"!==N.rest.type)&&0==--h&&(N.endTriplet=!0);for(var G=!1;t<e.length&&!G;){switch(e[t]){case" ":case"\t":O(N);break;case")":void 0===N.endSlur?N.endSlur=1:N.endSlur++;break;case"-":N.pitches.forEach((function(e){e.startTie={}})),E(n,u,!0);break;case">":case"<":var j=F(e,t);t+=j[0]-1,n.next_note_duration=j[2],T?T*=j[1]:T=j[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var W=i.getFraction(e,t);T=W.value;var q=e[t=W.index];" "===q&&(C=!0),"-"===q||")"===q||" "===q||"<"===q||">"===q?t--:G=!0;break;default:G=!0}G||t++}}else a("Expected ']' to end the chords",e,t);void 0!==N.pitches&&(null!==T&&(N.duration=N.duration*T,C&&O(N)),n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+d,r+t,N),n.measureNotEmpty=!0,N={}),I=!0}}}else{var X={},R=D(e,t,X,!0);void 0!==X.endTie&&E(n,u,!0),null!==R&&(void 0!==R.pitch?(N.pitches=[{}],void 0!==R.accidental&&(N.pitches[0].accidental=R.accidental),N.pitches[0].pitch=R.pitch,N.pitches[0].name=R.name,(R.midipitch||0===R.midipitch)&&(N.pitches[0].midipitch=R.midipitch),void 0!==R.endSlur&&(N.pitches[0].endSlur=R.endSlur),void 0!==R.endTie&&(N.pitches[0].endTie=R.endTie),void 0!==R.startSlur&&(N.pitches[0].startSlur=R.startSlur),void 0!==N.startSlur&&(N.pitches[0].startSlur=N.startSlur),void 0!==N.dottedSlur&&(N.pitches[0].dottedSlur=!0),void 0!==R.startTie&&(N.pitches[0].startTie=R.startTie),void 0!==N.startTie&&(N.pitches[0].startTie=N.startTie)):(N.rest=R.rest,void 0!==R.endSlur&&(N.endSlur=R.endSlur),void 0!==R.endTie&&(N.rest.endTie=R.endTie),void 0!==R.startSlur&&(N.startSlur=R.startSlur),void 0!==R.startTie&&(N.rest.startTie=R.startTie),void 0!==N.startTie&&(N.rest.startTie=N.startTie)),void 0!==R.chord&&(N.chord=R.chord),void 0!==R.duration&&(N.duration=R.duration),void 0!==R.decoration&&(N.decoration=R.decoration),void 0!==R.graceNotes&&(N.graceNotes=R.graceNotes),delete N.startSlur,delete N.dottedSlur,S(n,u,N)&&(void 0!==N.pitches?N.pitches[0].endTie=!0:"spacer"!==N.rest.type&&(N.rest.endTie=!0),E(n,u,!1)),(R.startTie||N.startTie)&&E(n,u,!0),t=R.endChar,h>0&&(!R.rest||"spacer"!==R.rest.type)&&0==--h&&(N.endTriplet=!0),R.end_beam&&O(N),N.rest&&"rest"===N.rest.type&&1===N.duration&&B(n)<=1&&(N.rest.type="whole",N.duration=B(n)),N.duration<1&&-1===y.indexOf(N.duration)&&0!==N.duration&&(N.rest&&"spacer"===N.rest.type||a("Duration not representable: "+e.substring(d,t),e,t)),n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+d,r+t,N),n.measureNotEmpty=!0,N={})}t===d&&(" "!==e[t]&&"`"!==e[t]&&a("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("")>=0||f[0]>0,this.lineContinuation||(N={})}};var E=function(e,t,r){var i=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0;void 0===e.inTie[t]&&(e.inTie[t]=[]),e.inTie[t][i]=r},_=function(e,t){if('"'===e[t]){var r=i.getBrackettedSubstring(e,t,5);if(r[2]||a("Missing the closing quote while parsing the chord symbol",e,t),r[0]>0&&r[1].length>0&&"^"===r[1][0])r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1][0])r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1][0])r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1][0])r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1][0]){r[1]=r[1].substring(1);var s=i.getFloat(r[1]);0===s.digits&&a("Missing first position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(s.digits),","!==r[1][0]&&a("Missing comma absolutely positioned annotation.",e,t),r[1]=r[1].substring(1);var o=i.getFloat(r[1]);0===o.digits&&a("Missing second position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(o.digits);var c=i.skipWhiteSpace(r[1]);r[1]=r[1].substring(c),r[2]=null,r[3]={x:s.value,y:o.value}}else!0!==n.freegchord&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),r[2]="default",r[1]=f.chordName(n,r[1]);return r}return[0,""]},M=function(e,t){if("{"===e[t]){var r=i.getBrackettedSubstring(e,t,1,"}");r[2]||a("Missing the closing '}' while parsing grace note",e,t),")"===e[t+r[0]]&&(r[0]++,r[1]+=")");for(var s=[],o=0,c=!1;o<r[1].length;){var l=!1;"/"===r[1][o]&&(l=!0,o++);var h=D(r[1],o,{},!1);null!==h?(h.duration=h.duration/(8*n.default_length),l&&(h.acciaccatura=!0),s.push(h),c&&(h.endTie=!0,c=!1),h.startTie&&(c=!0),o=h.endChar,delete h.endChar,h.end_beam&&(h.endBeam=!0,delete h.end_beam)):(" "===r[1][o]?s.length>0&&(s[s.length-1].endBeam=!0):a("Unknown character '"+r[1][o]+"' while parsing grace note",e,t),o++)}if(s.length)return[r[0],s]}return[0]};function A(e,t){if("&"===e[t]){for(var r=t;e[t]&&":"!==e[t]&&"|"!==e[t];)t++;return[t-r,e.substring(r+1,t)]}return[0]}function B(e){var t=e.origMeter;return t&&"specified"===t.type&&t.value&&0!==t.value.length?parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10):1}var L=function(e,t){var r=n.macros[e[t]];if(void 0!==r)return"!"!==r[0]&&"+"!==r[0]||(r=r.substring(1)),"!"!==r[r.length-1]&&"+"!==r[r.length-1]||(r=r.substring(0,r.length-1)),d.includes(r)?[1,r]:p.includes(r)?("hidden"===n.volumePosition&&(r=""),[1,r]):m.includes(r)?("hidden"===n.dynamicPosition&&(r=""),[1,r]):(n.ignoredDecorations.includes(r)||a("Unknown macro: "+r,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 s=i.getBrackettedSubstring(e,t,5);if(s[1].length>1&&("^"===s[1][0]||"_"===s[1][0])&&(s[1]=s[1].substring(1)),d.includes(s[1]))return s;if(p.includes(s[1]))return"hidden"===n.volumePosition&&(s[1]=""),s;if(m.includes(s[1]))return"hidden"===n.dynamicPosition&&(s[1]=""),s;var o=g.findIndex((function(e){return s[1]===e[0]}));return o>=0?(s[1]=g[o][1],s):(o=v.findIndex((function(e){return s[1]===e[0]})))>=0?(s[1]=v[o][1],"hidden"===n.dynamicPosition&&(s[1]=""),s):"!"!==e[t]||1!==s[0]&&"!"===e[t+s[0]-1]?(a("Unknown decoration: "+s[1],e,t),s[1]="",s):[1,null];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]},P=function(e,t){for(var r=t;i.isWhiteSpace(e[t]);)t++;return[t-r]},z=function(e,t){var r=i.getBarLine(e,t);if(0===r.len)return[0,""];if(r.warn)return a(r.warn,e,t),[r.len,""];for(var n=0;n<e.length&&" "===e[t+r.len+n];n++);var s=r.len;if("["===e[t+r.len+n]&&(r.len+=n+1),'"'===e[t+r.len]&&"["===e[t+r.len-1]){var o=i.getBrackettedSubstring(e,t+r.len,5);return[r.len+o[0],r.token,o[1]]}var c=i.getTokenOf(e.substring(t+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[s,r.token]:[r.len+c.len,r.token,c.token]},H=function(e,t){var r={},n=t;for("."===e[t]&&"("===e[t+1]&&(r.dottedSlur=!0,t++);"("===e[t]||i.isWhiteSpace(e[t]);)"("===e[t]&&(t+1<e.length&&e[t+1]>="2"&&e[t+1]<="9"?(void 0!==r.triplet?a("Can't nest triplets",e,t):(r.triplet=e[t+1]-"0",r.tripletQ=T[r.triplet],r.num_notes=r.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"?(r.num_notes=e[t+4]-"0",t+=3):a("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"?(r.tripletQ=e[t+3]-"0",t+4<e.length&&":"===e[t+4]?t+5<e.length&&e[t+5]>="1"&&e[t+5]<="9"&&(r.num_notes=e[t+5]-"0",t+=4):t+=2):a("expected number after the triplet to mark the duration",e,t))),t++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),t++;return r.consumed=t-n,r};C.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};n.partForNextLine.title&&(e.part=n.partForNextLine),e.clef=n.currentVoice&&void 0!==n.staves[n.currentVoice.staffNum].clef?l.clone(n.staves[n.currentVoice.staffNum].clef):l.clone(n.clef);var t=n.currentVoice?n.currentVoice.scoreTranspose:0;if(e.key=h.standardKey(n.key.root+n.key.acc+n.key.mode,n.key.root,n.key.acc,t),e.key.mode=n.key.mode,n.key.impliedNaturals&&(e.key.impliedNaturals=n.key.impliedNaturals),n.key.explicitAccidentals)for(var r=0;r<n.key.explicitAccidentals.length;r++){for(var i=!1,a=0;a<e.key.accidentals.length;a++)e.key.accidentals[a].note===n.key.explicitAccidentals[r].note&&(e.key.accidentals[a].acc=n.key.explicitAccidentals[r].acc,i=!0);i||e.key.accidentals.push(n.key.explicitAccidentals[r])}if(n.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,h.addPosToKey(e.clef,e.key),null!==n.meter?(n.currentVoice?(n.staves.forEach((function(e){e.meter=n.meter})),e.meter=n.staves[n.currentVoice.staffNum].meter,n.staves[n.currentVoice.staffNum].meter=null):e.meter=n.meter,n.meter=null):n.currentVoice&&n.staves[n.currentVoice.staffNum].meter&&(e.meter=n.staves[n.currentVoice.staffNum].meter,n.staves[n.currentVoice.staffNum].meter=null),n.currentVoice&&n.currentVoice.name&&(e.name=n.currentVoice.name),n.vocalfont&&(e.vocalfont=n.vocalfont),n.tripletfont&&(e.tripletfont=n.tripletfont),n.gchordfont&&(e.gchordfont=n.gchordfont),n.style&&(e.style=n.style),n.currentVoice){var s=n.staves[n.currentVoice.staffNum];s.brace&&(e.brace=s.brace),s.bracket&&(e.bracket=s.bracket),s.connectBarLines&&(e.connectBarLines=s.connectBarLines),s.name&&(e.name=s.name[n.currentVoice.index]),s.subname&&(e.subname=s.subname[n.currentVoice.index]),n.currentVoice.stem&&(e.stem=n.currentVoice.stem),n.currentVoice.stafflines&&(e.stafflines=n.currentVoice.stafflines),n.currentVoice.staffscale&&(e.staffscale=n.currentVoice.staffscale),n.currentVoice.scale&&(e.scale=n.currentVoice.scale),n.currentVoice.color&&(e.color=n.currentVoice.color),n.currentVoice.style&&(e.style=n.currentVoice.style),n.currentVoice.transpose&&(e.clef.transpose=n.currentVoice.transpose)}var c=void 0===n.currentVoice||0===n.currentVoice.staffNum&&0===n.currentVoice.index;0===n.barNumbers&&c&&1!==n.currBarNumber&&(e.barNumber=n.currBarNumber),o.startNewLine(e),n.key.impliedNaturals&&delete n.key.impliedNaturals,n.partForNextLine={},4===n.tempoForNextLine.length&&o.appendElement(n.tempoForNextLine[0],n.tempoForNextLine[1],n.tempoForNextLine[2],n.tempoForNextLine[3]),n.tempoForNextLine=[]};var O=function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e},D=function(e,t,r,a){var c,l=function(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e};"."===e[t]&&"-"===e[t+1]&&(c=!0,t++);for(var h="startSlur",u=!1;;){switch(e[t]){case"(":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;void 0===r.startSlur?r.startSlur=1:r.startSlur++;break;case")":if(!l(h))return null;void 0===r.endSlur?r.endSlur=1:r.endSlur++;break;case"^":if("startSlur"===h)r.accidental="sharp",h="sharp2";else{if("sharp2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblsharp",h="pitch"}break;case"_":if("startSlur"===h)r.accidental="flat",h="flat2";else{if("flat2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblflat",h="pitch"}break;case"=":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="natural",h="pitch";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("startSlur"!==h&&"sharp2"!==h&&"flat2"!==h&&"pitch"!==h)return l(h)?(r.endChar=t,r):null;if(r.pitch=x[e[t]],r.pitch+=7*(n.currentVoice&&void 0!==n.currentVoice.octave?n.currentVoice.octave:n.octave),r.name=e[t],r.accidental&&(r.name=k[r.accidental]+r.name),f.note(n,r),h="octave",a&&0!==n.next_note_duration?(r.duration=n.default_length*n.next_note_duration,n.next_note_duration=0,u=!0):r.duration=n.default_length,n.clef&&"perc"===n.clef.type||n.currentVoice&&"perc"===n.currentVoice.clef){var d=e[t];r.accidental&&(d=k[r.accidental]+d),s.formatting&&s.formatting.midi&&s.formatting.midi.drummap&&(r.midipitch=s.formatting.midi.drummap[d])}break;case",":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch-=7,r.name+=",";break;case"'":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch+=7,r.name+="'";break;case"x":case"X":case"y":case"z":case"Z":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.rest={type:w[e[t]]},delete r.accidental,delete r.startSlur,delete r.startTie,delete r.endSlur,delete r.endTie,delete r.end_beam,delete r.grace_notes,r.rest.type.indexOf("multimeasure")>=0?(r.duration=s.getBarLength(),r.rest.text=1,h="Zduration"):(a&&0!==n.next_note_duration?(r.duration=n.default_length*n.next_note_duration,n.next_note_duration=0,u=!0):r.duration=n.default_length,h="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===h||"duration"===h){var p=i.getFraction(e,t);for(r.duration=r.duration*p.value,r.endChar=p.index;p.index<e.length&&(i.isWhiteSpace(e[p.index])||"-"===e[p.index]);)"-"===e[p.index]?r.startTie={}:r=O(r),p.index++;t=p.index-1,h="broken_rhythm"}else if("sharp2"===h)r.accidental="quartersharp",h="pitch";else{if("flat2"!==h){if("Zduration"===h){var m=i.getNumber(e,t);return r.duration=m.num*s.getBarLength(),r.rest.text=m.num,r.endChar=m.index,r}return null}r.accidental="quarterflat",h="pitch"}break;case"-":if("startSlur"===h)o.addTieToLastNote(c),r.endTie=!0;else{if("octave"!==h&&"duration"!==h&&"end_slur"!==h)return"broken_rhythm"===h?(r.endChar=t,r):null;if(r.startTie={},u||!a)return i.isWhiteSpace(e[t+1])&&O(r),r.endChar=t+1,r;h="broken_rhythm"}break;case" ":case"\t":if(!l(h))return null;r.end_beam=!0,c=!1;do{"."===e[t]&&"-"===e[t+1]&&(c=!0,t++),"-"===e[t]&&(r.startTie={},c&&(r.startTie.style="dotted")),t++}while(t<e.length&&(i.isWhiteSpace(e[t])||"-"===e[t])||"."===e[t]&&"-"===e[t+1]);if(r.endChar=t,u||!a||"<"!==e[t]&&">"!==e[t])return r;t--,h="broken_rhythm";break;case">":case"<":if(!l(h))return null;if(!a)return r.endChar=t,r;var g=F(e,t);t+=g[0]-1,n.next_note_duration=g[2],r.duration=g[1]*r.duration,h="end_slur";break;default:return l(h)?(r.endChar=t,r):null}if(++t===e.length)return l(h)?(r.endChar=t,r):null}return null},F=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};e.exports=C},2539:function(e){e.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"],e.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],e.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"],e.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],e.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],e.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",e.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],e.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},e.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},e.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},e.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}},1881:function(e,t,r){var i=r(5008),a=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 r=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var r=t;r<e.length;r++)if(!this.isWhiteSpace(e[r]))return r-t;return r-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(r(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("bass"===e)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 t=function(e,t){for(;t<e.length&&(e[t]>="a"&&e[t]<="z"||e[t]>="A"&&e[t]<="Z");)t++;return t},i=this.skipWhiteSpace(e);if(r(e,i))return{len:0};var a=e.substring(i,i+3).toLowerCase();switch((a.length>1&&" "===a[1]||"^"===a[1]||"_"===a[1]||"="===a[1])&&(a=a[0]),a){case"mix":return{len:t(e,i),token:"Mix"};case"dor":return{len:t(e,i),token:"Dor"};case"phr":return{len:t(e,i),token:"Phr"};case"lyd":return{len:t(e,i),token:"Lyd"};case"loc":return{len:t(e,i),token:"Loc"};case"aeo":case"min":case"m":return{len:t(e,i),token:"m"};case"maj":case"ion":return{len:t(e,i),token:""}}return{len:0}},this.getClef=function(e,t){var a=e,n=this.skipWhiteSpace(e);if(r(e,n))return{len:0};var s=!1,o=e.substring(n);if(i.startsWith(o,"clef=")&&(s=!0,o=o.substring(5),n+=5),0===o.length&&s)return{len:n+5,warn:"No clef specified: "+a};var c=this.skipWhiteSpace(o);if(r(o,c))return{len:0};c>0&&(n+=c,o=o.substring(c));var l=null;if(i.startsWith(o,"treble"))l="treble";else if(i.startsWith(o,"bass3"))l="bass3";else if(i.startsWith(o,"bass"))l="bass";else if(i.startsWith(o,"tenor"))l="tenor";else if(i.startsWith(o,"alto2"))l="alto2";else if(i.startsWith(o,"alto1"))l="alto1";else if(i.startsWith(o,"alto"))l="alto";else if(!t&&s&&i.startsWith(o,"none"))l="none";else if(i.startsWith(o,"perc"))l="perc";else if(!t&&s&&i.startsWith(o,"C"))l="tenor";else if(!t&&s&&i.startsWith(o,"F"))l="bass";else{if(t||!s||!i.startsWith(o,"G"))return{len:n+5,warn:"Unknown clef specified: "+a};l="treble"}return o=o.substring(l.length),(c=this.isMatch(o,"+8"))>0?l+="+8":(c=this.isMatch(o,"-8"))>0&&(l+="-8"),{len:n+l.length,token:l,explicit:s}},this.getBarLine=function(e,t){switch(e[t]){case"]":switch(e[++t]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return 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(e[++t]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(e[++t]){case"]":return"|"===e[++t]&&":"===e[++t]?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};case"|":return":"===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("|"!==e[++t])return e[t]>="1"&&e[t]<="9"||'"'===e[t]?{len:1,token:"bar_invisible"}:{len:0};switch(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"}}break;case"|":switch(e[++t]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return":"===e[++t]?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var r=0;":"===e[t+r];)r++;return{len:1+r,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var r=0;r<e.length;r++)if(t.indexOf(e[r])<0)return{len:r,token:e.substring(0,r)};return{len:r,token:e}},this.getToken=function(e,t,r){for(var i=t;i<r&&!this.isWhiteSpace(e[i]);)i++;return e.substring(t,i)},this.isMatch=function(e,t){var a=this.skipWhiteSpace(e);return r(e,a)?0:i.startsWith(e.substring(a),t)?a+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],void 0===t.position)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 r;if("^"===e[0].token){if(r="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"^":r="dblsharp",e.shift();break;case"/":r="quartersharp",e.shift()}}else if("="===e[0].token)r="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(r="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"_":r="dblflat",e.shift();break;case"/":r="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+r};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":void 0===t&&(t=[]),t.push({acc:r,note:e[0].token[0]}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+r+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(e){var t={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},i=this.skipWhiteSpace(e);if(r(e,i))return{len:0};var a=null;switch(e[i]){case"^":case"_":case"=":a=e[i];break;default:return{len:0}}if(i++,r(e,i))return{len:1,warn:"Expected note name after accidental"};switch(e[i]){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:i+1,token:{acc:t[a],note:e[i]}};case"^":case"_":case"/":if(a+=e[i],i++,r(e,i))return{len:2,warn:"Expected note name after accidental"};switch(e[i]){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:i+1,token:{acc:t[a],note:e[i]}};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||"\t"===e||""===e},this.getMeat=function(e,t,r){var i=e.indexOf("%",t);for(i>=0&&i<r&&(r=i);t<r&&(" "===e[t]||"\t"===e[t]||""===e[t]);)t++;for(;t<r&&(" "===e[r-1]||"\t"===e[r-1]||""===e[r-1]);)r--;return{start:t,end:r}};var a=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"},n=function(e){return e>="0"&&e<="9"};this.tokenize=function(e,t,r,i){var s=this.getMeat(e,t,r);t=s.start,r=s.end;for(var o,c=[];t<r;){if('"'===e[t]){for(o=t+1;o<r&&'"'!==e[o];)o++;c.push({type:"quote",token:e.substring(t+1,o),start:t+1,end:o}),o++}else if(a(e[t])){if(o=t+1,i)for(;o<r&&!this.isWhiteSpace(e[o]);)o++;else for(;o<r&&a(e[o]);)o++;c.push({type:"alpha",token:e.substring(t,o),continueId:n(e[o]),start:t,end:o}),t=o+1}else if("."===e[t]&&n(e[o+1])){o=t+1;for(var l;o<r&&n(e[o]);)o++;l=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:null,floatt:l,continueId:a(e[o]),start:t,end:o}),t=o+1}else if(n(e[t])||"-"===e[t]&&n(e[o+1])){o=t+1;for(var h,f=null;o<r&&n(e[o]);)o++;if("."===e[o]&&n(e[o+1]))for(o++;o<r&&n(e[o]);)o++;else f=parseInt(e.substring(t,o));h=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:f,floatt:h,continueId:a(e[o]),start:t,end:o}),t=o+1}else" "===e[t]||"\t"===e[t]||c.push({type:"punct",token:e[t],start:t,end:t+1}),o=t+1;t=o}return c},this.getVoiceToken=function(e,t,r){for(var i=t;i<r&&this.isWhiteSpace(e[i])||"="===e[i];)i++;if('"'===e[i]){var a=e.indexOf('"',i+1);return-1===a||a>=r?{len:1,err:"Missing close quote"}:{len:a-t+1,token:this.translateString(e.substring(i+1,a))}}for(var n=i;n<r&&!this.isWhiteSpace(e[n])&&"="!==e[n];)n++;return{len:n-t+1,token:e.substring(i,n)}};var s={"`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:"ž"},o={"#":"♯",b:"♭","=":"♮"},c={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:"ù"};function l(e){var t=/^(\d+)\./.exec(e);return t?t[1]:null}this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var r=null;return t.forEach((function(e){if(null===r)r=e;else{var t=s[e.substring(0,2)];void 0!==t?r+=t+e.substring(2):void 0!==(t=c[e.substring(0,3)])?r+=t+e.substring(3):(t=o[e.substring(0,1)],r+=void 0!==t?t+e.substring(1):"\\"+e)}})),r},this.getNumber=function(e,t){for(var r=0;t<e.length;)switch(e[t]){case"0":r*=10,t++;break;case"1":r=10*r+1,t++;break;case"2":r=10*r+2,t++;break;case"3":r=10*r+3,t++;break;case"4":r=10*r+4,t++;break;case"5":r=10*r+5,t++;break;case"6":r=10*r+6,t++;break;case"7":r=10*r+7,t++;break;case"8":r=10*r+8,t++;break;case"9":r=10*r+9,t++;break;default:return{num:r,index:t}}return{num:r,index:t}},this.getFraction=function(e,t){var r=1,i=1;if("/"!==e[t]){var a=this.getNumber(e,t);r=a.num,t=a.index}if("/"===e[t]){if("/"===e[++t]){for(var n=.5;"/"===e[t++];)n/=2;return{value:r*n,index:t-1}}var s=t,o=this.getNumber(e,t);0===o.num&&s===t&&(o.num=2),0!==o.num&&(i=o.num),t=o.index}return{value:r/i,index:t}};var h=[{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<h.length;t++){var r=h[t],i=e.match(r.match);if(i){var a=l(e);a&&(e=(e=e.replace(a+".","")).trim());var n=i[0].length,s=r.replace+e.substring(0,e.length-n);return a&&(s=a+". "+s),s}}return e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?i.strip(e.substring(0,t)):i.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,r="";if("-"===e[0].token)e.shift(),r="-",t++;else if("number"!==e[0].type)return{used:0};if(r+=e.shift().token,0===e.length)return{used:1,value:parseInt(r)};var i=e.shift();if("."===i.token){if(t++,0===e.length)return{used:t,value:parseInt(r)};if("number"===e[0].type&&(r=r+"."+(i=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(r)};i=e.shift()}switch(i.token){case"pt":case"px":return{used:t+1,value:parseFloat(r)};case"cm":return{used:t+1,value:parseFloat(r)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(r)};default:return e.unshift(i),{used:t,value:parseFloat(r)}}};var f=function(e){return e=(e=e.replace(/\\n/g,"\n")).replace(/\\"/g,'"')};this.getBrackettedSubstring=function(e,t,r,i){for(var a=i||e[t],n=t+1,s=!1;n<e.length&&(s||e[n]!==a);)s="\\"===e[n],++n;return e[n]===a?[n-t+1,f(e.substring(t+1,n)),!0]:((n=t+r)>e.length-1&&(n=e.length-1),[n-t+1,f(e.substring(t+1,n)),!1])}};a.prototype.peekLine=function(){return this.lines[this.lineIndex]},a.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},e.exports=a},2821:function(e,t,r){var i=r(867),a=r(4208),n=r(9447),s={},o={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},c=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],l=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];s.keySignature=function(e,t,r,i,a){if("perc"===e.clef.type||"none"===e.clef.type)return{accidentals:n(t),root:r,acc:i};a||(a=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var s=n(t);if(!s)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+a,!e.localTranspose)return{accidentals:s,root:r,acc:i};if(e.globalTransposeOrigKeySig=s,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:s,root:r,acc:i};var h=t[0];"b"===t[1]||"#"===t[1]?(h+=t[1],t=t.substr(2)):t=t.substr(1);var f=o[h],u=void 0!==f;u||(f=0,h="C",t="");for(var d=f+e.localTranspose;d<0;)d+=12;d>11&&(d%=12);var p="m"===t[0]?l[d]:c[d],m=p+t,g=n(m);g.length>0&&"flat"===g[0].acc&&(e.localTransposePreferFlats=!0);var v=m.charCodeAt(0)-h.charCodeAt(0);return e.localTranspose>0?v<0?v+=7:0===v&&("#"!==h[1]&&"b"!==m[1]||(v+=7)):e.localTranspose<0&&(v>0?v-=7:0===v&&("b"!==h[1]&&"#"!==m[1]||(v-=7))),e.localTranspose>0?e.localTransposeVerticalMovement=v+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=v+7*Math.ceil(e.localTranspose/12),u?{accidentals:g,root:p[0],acc:p.length>1?p[1]:""}:{accidentals:[],root:r,acc:i}},s.chordName=function(e,t){return a(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var h=["c","d","e","f","g","a","b"],f={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},u={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},d={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};s.note=function(e,t){if(e.localTranspose&&"perc"!==e.clef.type){var r=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)){var a=t.accidental?t.name.substring(1):t.name,n=t.accidental?t.name[0]:"",s=i.pitchIndex(a);t.name=n+i.noteName(s+e.localTransposeVerticalMovement)}if(t.accidental){var o=function(e,t,r,i,a){for(var n=h[(e+49)%7],s=0,o=0;o<i.length;o++)i[o].note.toLowerCase()===n&&(s=f[i[o].acc]);for(var c=f[r]-s,l=h[(t+49)%7],u=0,d=0;d<a.accidentals.length;d++)a.accidentals[d].note.toLowerCase()===l&&(u=f[a.accidentals[d].acc]);var p=c+u;return p<-2&&(t--,p+="c"===l||"f"===l?1:2),p>2&&(t++,p-="b"===l||"e"===l?1:2),[t,p]}(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=o[0],t.accidental=u[o[1]],t.name&&(t.name=d[o[1]]+t.name.replace(/[_^=]/g,""))}}},e.exports=s},867:function(e){var t={},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'''"];t.pitchIndex=function(e){return r.indexOf(e)},t.noteName=function(e){return r[e]},e.exports=t},4208:function(e){var t=["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"],i=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],a=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];e.exports=function(e,n,s,o){if(!n||n%12==0)return e;for(;n<0;)n+=12;n>11&&(n%=12);var c=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!c)return e;var l,h=c[1],f=c[2],u=c[3],d=c[4];return(l=t.indexOf(h))<0&&(l=r.indexOf(h)),l<0&&(l=i.indexOf(h)),l<0&&(l=a.indexOf(h)),l<0||(l+=n,l%=12,e=s?o?a[l]:r[l]:o?i[l]:t[l],f&&(e+=f),u&&((l=t.indexOf(u))<0&&(l=r.indexOf(u)),l<0&&(l=i.indexOf(u)),l<0&&(l=a.indexOf(u)),e+="/",l>=0?(l+=n,l%=12,e+=s?o?a[l]:r[l]:o?i[l]:t[l]):e+=u),d&&(e+=d)),e}},575:function(e,t,r){var i=r(9708),a=r(5008);function n(e){if(!e)return!1;if("string"==typeof e)return!1;for(var t=0;t<e.length;t++)if("string"!=typeof e[t])return!1;return!0}r(8360),e.exports=function(e){var t=this;function r(e,t){for(var r=t-1;r>0&&"bar"!==e[r].el_type;r--);return r}this.setVisualTranspose=function(t){t&&(e.visualTranspose=t)},this.resolveOverlays=function(){for(var t=!1,i=[],n=0;n<e.lines.length;n++){var s=e.lines[n];if(s.staff)for(var o=0;o<s.staff.length;o++){for(var c=s.staff[o],l=[],h=0;h<c.voices.length;h++){var f=c.voices[h];l.push({hasOverlay:!1,voice:[],snip:[]}),i[n]=0;for(var u=0,d=!1,p=0,m=-1,g=0;g<f.length;g++){var v=f[g];if("overlay"!==v.el_type||d)"bar"===v.el_type?(d?(d=!1,l[h].snip.push({start:m,len:g-m}),l[h].voice.push(v)):(u>0&&l[h].voice.push({el_type:"note",duration:u,rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}),l[h].voice.push(v)),u=0):"note"===v.el_type?d?l[h].voice.push(v):(u+=v.duration,i[n]+=v.duration):"scale"!==v.el_type&&"stem"!==v.el_type&&"overlay"!==v.el_type&&"style"!==v.el_type&&"transpose"!==v.el_type&&"color"!==v.el_type||l[h].voice.push(v);else{t=!0,d=!0,m=g,l[h].hasOverlay=!0,0===p&&(p=i[n]);for(var b=0;b<n;b++)i[b]&&e.lines[b].staff&&c.voices.length>=e.lines[b].staff[0].voices.length&&e.lines[b].staff[0].voices.push([{el_type:"note",duration:i[b],rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}])}}l[h].hasOverlay&&0===l[h].snip.length&&l[h].snip.push({start:m,len:f.length-m})}for(h=0;h<l.length;h++){var y=l[h];if(y.hasOverlay){y.voice.splice(0,0,{el_type:"stem",direction:"down"}),c.voices.push(y.voice);for(var x=y.snip.length-1;x>=0;x--){var w=y.snip[x];c.voices[h].splice(w.start,w.len),c.voices[h].splice(w.start+1,0,{el_type:"stem",direction:"auto"});var k=r(c.voices[h],w.start);c.voices[h].splice(k,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]=a.clone(c.voices[c.voices.length-1][x]);var T=c.voices[c.voices.length-1][x];"bar"===T.el_type&&T.startEnding&&delete T.startEnding,"bar"===T.el_type&&T.endEnding&&delete T.endEnding}}}}}return t},this.cleanUp=function(t,r,s){this.closeLine(),delete e.runningFonts,function(e){n(e.metaText.notes)&&(e.metaText.notes=e.metaText.notes.join("\n")),n(e.metaText.history)&&(e.metaText.history=e.metaText.history.join("\n"))}(e),e.metaText.tempo&&e.metaText.tempo.bpm&&!e.metaText.tempo.duration&&(e.metaText.tempo.duration=[e.getBeatLength()]);var o,c,l,h=!1;for(o=0;o<e.lines.length;o++)if(void 0!==e.lines[o].staff){var f=!1;for(c=0;c<e.lines[o].staff.length;c++)if(void 0===e.lines[o].staff[c])h=!0,e.lines[o].staff[c]=null;else for(l=0;l<e.lines[o].staff[c].voices.length;l++)void 0===e.lines[o].staff[c].voices[l]?e.lines[o].staff[c].voices[l]=[]:this.containsNotes(e.lines[o].staff[c].voices[l])&&(f=!0);f||(e.lines[o]=null,h=!0)}if(h&&(e.lines=e.lines.filter((function(e){return!!e})),e.lines.forEach((function(e){e.staff&&(e.staff=e.staff.filter((function(e){return!!e})))}))),t)for(;m(e.lines,t););if(r){for(h=!1,o=0;o<e.lines.length;o++)if(void 0!==e.lines[o].staff)for(c=0;c<e.lines[o].staff.length;c++){var u=!1;for(l=0;l<e.lines[o].staff[c].voices.length;l++)this.containsNotesStrict(e.lines[o].staff[c].voices[l])&&(u=!0);u||(h=!0,e.lines[o].staff[c]=null)}h&&e.lines.forEach((function(e){e.staff&&(e.staff=e.staff.filter((function(e){return!!e})))}))}for(function(e){for(var t=!0,r=0;r<e.length;r++){var i=e[r];if(i.staff){for(var a=0;a<i.staff.length;a++){var n=i.staff[a];if(n.title){for(var s=!1,o=0;o<n.title.length;o++)n.title[o]?(n.title[o]=t?n.title[o].name:n.title[o].subname,n.title[o]?s=!0:n.title[o]=""):n.title[o]="";s||delete n.title}}t=!1}}}(e.lines),o=0;o<e.lines.length;o++)if(e.lines[o].staff)for(c=0;c<e.lines[o].staff.length;c++)delete e.lines[o].staff[c].workingClef;for(;this.resolveOverlays(););function d(e,t,r){var i;s[t]||(s[t]=[]),s[t][r]||(s[t][r]=[]);for(var a=function(e,a,n){if(void 0===s[t][r][n]){for(i=0;i<s[t][r].length;i++)if(void 0!==s[t][r][i]){n=i;break}if(void 0===s[t][r][n]){var o=100*n+1;e.endSlur.forEach((function(e){o===e&&--o})),s[t][r][n]=[o]}}for(var c,l=0;l<a;l++)c=s[t][r][n].pop(),e.endSlur.push(c);return 0===s[t][r][n].length&&delete s[t][r][n],c},n=function(e,i,a,n){e.startSlur=[],void 0===s[t][r][a]&&(s[t][r][a]=[]);for(var o=100*a+1,c=0;c<i;c++)n&&(n.forEach((function(e){o===e&&++o})),n.forEach((function(e){o===e&&++o})),n.forEach((function(e){o===e&&++o}))),s[t][r][a].forEach((function(e){o===e&&++o})),s[t][r][a].forEach((function(e){o===e&&++o})),s[t][r][a].push(o),e.startSlur.push({label:o}),e.dottedSlur&&(e.startSlur[e.startSlur.length-1].style="dotted",delete e.dottedSlur),o++},o=0;o<e.length;o++){var c=e[o];if("note"===c.el_type){if(c.gracenotes)for(var l=0;l<c.gracenotes.length;l++){if(c.gracenotes[l].endSlur){var h=c.gracenotes[l].endSlur;c.gracenotes[l].endSlur=[];for(var f=0;f<h;f++)a(c.gracenotes[l],1,20)}c.gracenotes[l].startSlur&&(i=c.gracenotes[l].startSlur,n(c.gracenotes[l],i,20))}if(c.endSlur&&(i=c.endSlur,c.endSlur=[],a(c,i,0)),c.startSlur&&n(c,i=c.startSlur,0),c.pitches){for(var u=[],d=0;d<c.pitches.length;d++)if(c.pitches[d].endSlur){var p=c.pitches[d].endSlur;c.pitches[d].endSlur=[];for(var m=0;m<p;m++){var g=a(c.pitches[d],1,d+1);u.push(g)}}for(d=0;d<c.pitches.length;d++)c.pitches[d].startSlur&&(i=c.pitches[d].startSlur,n(c.pitches[d],i,d+1,u));c.gracenotes&&c.pitches[0].endSlur&&100===c.pitches[0].endSlur[0]&&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],1===c.pitches[0].endSlur.length?delete c.pitches[0].endSlur:100===c.pitches[0].endSlur[0]?c.pitches[0].endSlur.shift():100===c.pitches[0].endSlur[c.pitches[0].endSlur.length-1]&&c.pitches[0].endSlur.pop(),1===s[t][r][1].length?delete s[t][r][1]:s[t][r][1].pop())}}}}function p(e){i.fixClef(e)}function m(e,t){for(o=0;o<e.length;o++)if(void 0!==e[o].staff)for(c=0;c<e[o].staff.length;c++){var r=[];for(l=0;l<e[o].staff[c].voices.length;l++)for(var i=e[o].staff[c].voices[l],n=0,s=0;s<i.length;s++)if("bar"===i[s].el_type){if(++n>=t&&s<i.length-1){var h=g(e,o);if(!h){var f=JSON.parse(JSON.stringify(e[o]));e.push(a.clone(f)),h=e[e.length-1];for(var u=0;u<h.staff.length;u++)for(var d=0;d<h.staff[u].voices.length;d++)h.staff[u].voices[d]=[]}var p=s+1,m=e[o].staff[c].voices[l].slice(p);return e[o].staff[c].voices[l]=e[o].staff[c].voices[l].slice(0,p),h.staff[c].voices[l]=r.concat(m.concat(h.staff[c].voices[l])),!0}}else i[s].duration||r.push(i[s])}return!1}function g(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(e.lineNum=0;e.lineNum<e.lines.length;e.lineNum++){var v=e.lines[e.lineNum].staff;if(v)for(e.staffNum=0;e.staffNum<v.length;e.staffNum++)for(v[e.staffNum].clef&&p(v[e.staffNum].clef),e.voiceNum=0;e.voiceNum<v[e.staffNum].voices.length;e.voiceNum++){var b=v[e.staffNum].voices[e.voiceNum];d(b,e.staffNum,e.voiceNum);for(var y=0;y<b.length;y++)"clef"===b[y].el_type&&p(b[y]);if(b.length>0&&b[b.length-1].barNumber){var x=g(e.lines,e.lineNum);x&&(x.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,s},e.reset(),this.getLastNote=function(){if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff&&e.lines[e.lineNum].staff[e.staffNum]&&e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])for(var t=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum].length-1;t>=0;t--){var r=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum][t];if("note"===r.el_type)return r}return null},this.addTieToLastNote=function(e){var t=this.getLastNote();return!!(t&&t.pitches&&t.pitches.length>0)&&(t.pitches[0].startTie={},e&&(t.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(e){return e.duration?e.duration:0},this.closeLine=function(){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam},this.appendElement=function(r,i,a,n){var s=e;n.el_type=r,null!==i&&(n.startChar=i),null!==a&&(n.endChar=a);var o=function(){void 0!==s.potentialStartBeam&&void 0!==s.potentialEndBeam&&(s.potentialStartBeam.startBeam=!0,s.potentialEndBeam.endBeam=!0),delete s.potentialStartBeam,delete s.potentialEndBeam};"note"===r?t.getDuration(n)>=.25||n.force_end_beam_last&&void 0!==s.potentialStartBeam?o():n.end_beam&&void 0!==s.potentialStartBeam?void 0===n.rest?(s.potentialStartBeam.startBeam=!0,n.endBeam=!0,delete s.potentialStartBeam,delete s.potentialEndBeam):o():void 0===n.rest&&(void 0===s.potentialStartBeam?n.end_beam||(s.potentialStartBeam=n,delete s.potentialEndBeam):s.potentialEndBeam=n):o(),delete n.end_beam,delete n.force_end_beam_last,function(e){var t=s.lines[s.lineNum].staff[s.staffNum];if(t){if(void 0!==e.pitches){var r=t.workingClef.verticalPos;e.pitches.forEach((function(e){e.verticalPos=e.pitch-r}))}if(void 0!==e.gracenotes){var i=t.workingClef.verticalPos;e.gracenotes.forEach((function(e){e.verticalPos=e.pitch-i}))}t.voices[s.voiceNum].push(e)}}(n)},this.appendStartingElement=function(t,r,i,n){var s;this.closeLine(),"key"===t&&(s=n.impliedNaturals,delete n.impliedNaturals,delete n.explicitAccidentals);var o=a.clone(n);if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff){e.lines[e.lineNum].staff.length<=e.staffNum&&(e.lines[e.lineNum].staff[e.staffNum]={},e.lines[e.lineNum].staff[e.staffNum].clef=a.clone(e.lines[e.lineNum].staff[0].clef),e.lines[e.lineNum].staff[e.staffNum].key=a.clone(e.lines[e.lineNum].staff[0].key),e.lines[e.lineNum].staff[0].meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=a.clone(e.lines[e.lineNum].staff[0].meter)),e.lines[e.lineNum].staff[e.staffNum].workingClef=a.clone(e.lines[e.lineNum].staff[0].workingClef),e.lines[e.lineNum].staff[e.staffNum].voices=[[]]),"clef"===t&&(e.lines[e.lineNum].staff[e.staffNum].workingClef=o);for(var c=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum],l=0;l<c.length;l++){if("note"===c[l].el_type||"bar"===c[l].el_type)return o.el_type=t,o.startChar=r,o.endChar=i,s&&(o.accidentals=s.concat(o.accidentals)),void c.push(o);if(c[l].el_type===t)return o.el_type=t,o.startChar=r,o.endChar=i,s&&(o.accidentals=s.concat(o.accidentals)),void(c[l]=o)}e.lines[e.lineNum].staff[e.staffNum][t]=n}},this.pushLine=function(t){e.vskipPending&&(t.vskip=e.vskipPending,delete e.vskipPending),e.lines.push(t)},this.addSubtitle=function(e,t){this.pushLine({subtitle:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addSpacing=function(t){e.vskipPending=t},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,r,i){this.pushLine({separator:{spaceAbove:Math.round(e),spaceBelow:Math.round(t),lineLength:Math.round(r),startChar:i.startChar,endChar:i.endChar}})},this.addText=function(e,t){this.pushLine({text:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&(void 0===e[t].rest||void 0!==e[t].chord))return!0;return!1},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(r){var i=e;this.closeLine();var a=function(e){var r=i.lines[i.lineNum].staff[i.staffNum];if(r.voices[i.voiceNum]=[],r.title||(r.title=[]),r.title[i.voiceNum]={name:e.name,subname:e.subname},e.style&&t.appendElement("style",null,null,{head:e.style}),e.stem)t.appendElement("stem",null,null,{direction:e.stem});else if(i.voiceNum>0){if(void 0!==r.voices[0]){for(var a=!1,n=0;n<r.voices[0].length;n++)"stem"===r.voices[0].el_type&&(a=!0);a||r.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}t.appendElement("stem",null,null,{direction:"down"})}e.scale&&t.appendElement("scale",null,null,{size:e.scale}),e.color&&t.appendElement("color",null,null,{color:e.color})},n=function(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),i.lines[i.lineNum].staff[i.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(i.lines[i.lineNum].staff[i.staffNum].clef.stafflines=e.stafflines,i.lines[i.lineNum].staff[i.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(i.lines[i.lineNum].staff[i.staffNum].staffscale=e.staffscale),e.annotationfont&&t.setLineFont("annotationfont",e.annotationfont),e.gchordfont&&t.setLineFont("gchordfont",e.gchordfont),e.tripletfont&&t.setLineFont("tripletfont",e.tripletfont),e.vocalfont&&t.setLineFont("vocalfont",e.vocalfont),e.bracket&&(i.lines[i.lineNum].staff[i.staffNum].bracket=e.bracket),e.brace&&(i.lines[i.lineNum].staff[i.staffNum].brace=e.brace),e.connectBarLines&&(i.lines[i.lineNum].staff[i.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(i.lines[i.lineNum].staff[i.staffNum].barNumber=e.barNumber),a(e),e.part&&t.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(i.lines[i.lineNum].staff[i.staffNum].meter=e.meter),i.vskipPending&&(i.lines[i.lineNum].vskip=i.vskipPending,delete i.vskipPending)};void 0===e.lines[e.lineNum]?function(e){i.lines[i.lineNum]={staff:[]},n(e)}(r):void 0===e.lines[e.lineNum].staff?(e.lineNum++,this.startNewLine(r)):void 0===e.lines[e.lineNum].staff[e.staffNum]?n(r):void 0===e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum]?a(r):this.containsNotes(e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])?(e.lineNum++,this.startNewLine(r)):r.part&&t.appendElement("part",r.part.startChar,r.part.endChar,{title:r.part.title})},this.setRunningFont=function(t,r){e.runningFonts[t]=r},this.setLineFont=function(t,r){if(e.runningFonts[t]){for(var i=!1,a=Object.keys(r),n=0;n<a.length;n++)e.runningFonts[t][a[n]]!==r[a[n]]&&(i=!0);i&&(e.lines[e.lineNum].staff[e.staffNum][t]=r)}e.runningFonts[t]=r},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var r=t[t.length-1];if("bar"!==r.el_type)return e-1;void 0!==r.barNumber&&(r.barNumber=e)}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 r=t-1;r>=0;r--)if(void 0!==e.lines[r].staff)return!1;return!0},this.getCurrentVoice=function(){var t=e.lines[e.lineNum];if(!t)return null;var r=t.staff[e.staffNum];return r&&void 0!==r.voices[e.voiceNum]?r.voices[e.voiceNum]:null},this.setCurrentVoice=function(t,r){e.staffNum=t,e.voiceNum=r;for(var i=0;i<e.lines.length;i++)if(e.lines[i].staff&&(void 0===e.lines[i].staff[t]||void 0===e.lines[i].staff[t].voices[r]||!this.containsNotes(e.lines[i].staff[t].voices[r])))return void(e.lineNum=i);e.lineNum=i},this.addMetaText=function(t,r,i){void 0===e.metaText[t]?(e.metaText[t]=r,e.metaTextInfo[t]=i):("string"==typeof e.metaText[t]&&"string"==typeof r?e.metaText[t]+="\n"+r:("string"===e.metaText[t]&&(e.metaText[t]=[{text:e.metaText[t]}]),"string"==typeof r&&(r=[{text:r}]),e.metaText[t]=e.metaText[t].concat(r)),e.metaTextInfo[t].endChar=i.endChar)},this.addMetaTextArray=function(t,r,i){void 0===e.metaText[t]?(e.metaText[t]=[r],e.metaTextInfo[t]=i):(e.metaText[t].push(r),e.metaTextInfo[t].endChar=i.endChar)},this.addMetaTextObj=function(t,r,i){e.metaText[t]=r,e.metaTextInfo[t]=i}}},1756:function(e){function t(e,t){for(var r=[],i=[],a=0,n=0;n<e.length;n++){var s=e[n],o=a+s;o<t?a=o:t-a<o-t&&a>0?(r.push(n-1),i.push(Math.round(a-s)),a=s):n<e.length-1&&(r.push(n),i.push(Math.round(a)),a=0)}return i.push(Math.round(a)),{lineBreaks:r,totals:i}}function r(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function i(e,t,i,a,n,s,o,c,l,h,f){for(var u=h;u<e.length;u++){var d=e[u];i+=d,a+=d;var p=Math.abs(i-t[c]);if(Math.abs(p-s)<t[0]/10)if(p<s){var m=r(n),g=r(l);g.push(u-1),m.push(a-d),f.push({accumulator:i,lineAccumulator:d,lineWidths:m,lastVariance:Math.abs(i-t[c+1]),highestVariance:Math.max(o,s),currLine:c+1,lineBreaks:g,startIndex:u+1})}else p>s&&u<e.length-1&&(m=r(n),g=r(l),f.push({accumulator:i,lineAccumulator:a,lineWidths:m,lastVariance:p,highestVariance:Math.max(o,p),currLine:c,lineBreaks:g,startIndex:u+1}));p>s?(l.push(u-1),c++,o=Math.max(o,s),s=Math.abs(i-t[c]),n.push(a-d),a=d):s=p}n.push(a)}function a(e,t,r,a){for(var n=Math.ceil(e.total/t),s=Math.floor(e.total/n),o=[],c=0;c<n;c++)o.push(s*(c+1));var l=[];l.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var h=0;h<l.length;)i(e.measureWidths,o,l[h].accumulator,l[h].lineAccumulator,l[h].lineWidths,l[h].lastVariance,l[h].highestVariance,l[h].currLine,l[h].lineBreaks,l[h].startIndex,l),h++;for(c=0;c<l.length;c++){var f=l[c];f.variances=[],f.aveVariance=0;for(var u=0;u<f.lineWidths.length;u++){var d=f.lineWidths[u];f.variances.push(d-o[0]),f.aveVariance+=Math.abs(d-o[0])}f.aveVariance=f.aveVariance/f.lineWidths.length,a.attempts.push({type:"optimizeLineWidths",lineBreaks:f.lineBreaks,variances:f.variances,aveVariance:f.aveVariance,widths:e.measureWidths})}var p=9999999,m=-1;for(c=0;c<l.length;c++)(f=l[c]).aveVariance<p&&(p=f.aveVariance,m=c);return{failed:!1,lineBreaks:l[m].lineBreaks,variance:l[m].highestVariance}}function n(e,t,r){for(var i=[],a=[],n=0,s=!1,o=0;o<e.length;o++)(n+=e[o])>t&&(s=!0),o%r==r-1&&(o!==e.length-1&&i.push(o),a.push(Math.round(n)),n=0);return{failed:s,totals:a,lineBreaks:i}}e.exports={wrapLines:function(e,t,r){if(t&&0!==e.lines.length){var i=e.deline({lineBreaks:!1}),a=function(e,t){for(var r=[],i=0,a=0,n=0,s=0;s<e.length;s++){var o=e[s];if(o.staff){var c=a,l=t[i];i++;for(var h=0;h<o.staff.length;h++)for(var f=o.staff[h],u=0;u<f.voices.length;u++){n=c;for(var d=0,p=0,m=f.voices[u],g=0,v=0;v<m.length;v++)"bar"===m[v].el_type&&(l[p]===d&&(r.push({ogLine:s,line:n,staff:h,voice:u,start:g,end:v}),g=v+1,n++,a=Math.max(a,n),p++),d++);r.push({ogLine:s,line:n,staff:h,voice:u,start:g,end:m.length}),n++,a=Math.max(a,n)}}else r.push({ogLine:s,line:n}),n++,a=Math.max(a,n)}return r}(i,t);e.lines=function(e,t,r){for(var i=[],a=[],n=[],s=1,o=0;o<t.length;o++){var c=t[o];if(e[c.ogLine].staff){var l=e[c.ogLine].staff[c.staff];if(i[c.line]||(i[c.line]={staff:[]}),!i[c.line].staff[c.staff]){i[c.line].staff[c.staff]={voices:[]},void 0!==r&&0===c.staff&&c.line>0&&(i[c.line].staff[c.staff].barNumber=s);for(var h=Object.keys(l),f=0;f<h.length;f++){var u="voices"===h[f];"meter"===h[f]&&0!==c.line&&(u=!0),u||(i[c.line].staff[c.staff][h[f]]=l[h[f]])}a[c.staff]&&(i[c.line].staff[c.staff].key=a[c.staff])}i[c.line].staff[c.staff].voices[c.voice]||(i[c.line].staff[c.staff].voices[c.voice]=[]),i[c.line].staff[c.staff].voices[c.voice]=e[c.ogLine].staff[c.staff].voices[c.voice].slice(c.start,c.end+1),n[10*c.staff+c.voice]&&i[c.line].staff[c.staff].voices[c.voice].unshift({el_type:"stem",direction:n[10*c.staff+c.voice].direction});for(var d=i[c.line].staff[c.staff].voices[c.voice],p=d.length-1;p>=0;p--)if("key"===d[p].el_type){a[c.staff]={root:d[p].root,acc:d[p].acc,mode:d[p].mode,accidentals:d[p].accidentals.filter((function(e){return"natural"!==e.acc}))};break}for(p=d.length-1;p>=0;p--)if("stem"===d[p].el_type){n[10*c.staff+c.voice]={direction:d[p].direction};break}if(void 0!==r&&0===c.staff&&0===c.voice)for(p=0;p<d.length;p++)"bar"===d[p].el_type&&(s++,p===d.length-1?delete d[p].barNumber:d[p].barNumber=s)}else i[c.line]=e[c.ogLine]}for(var m=0;m<i.length;m++)i[m].staff&&(i[m].staff=i[m].staff.filter((function(e){return null!=e})));return i}(i,a,r),e.lineBreaks=a}},calcLineWraps:function(e,r,i){if(0===r.length||i.staffwidth<r[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:i};var s=i.scale?Math.max(i.scale,.1):1,o=i.wrap.minSpacing?Math.max(parseFloat(i.wrap.minSpacing),1):1,c=i.wrap.minSpacingLimit?Math.max(parseFloat(i.wrap.minSpacingLimit),1):o-.1,l=i.wrap.maxSpacing?Math.max(parseFloat(i.wrap.maxSpacing),1):void 0;i.wrap.lastLineLimit&&!l&&(l=Math.max(parseFloat(i.wrap.lastLineLimit),1));for(var h=i.wrap.preferredMeasuresPerLine?Math.max(parseInt(i.wrap.preferredMeasuresPerLine,10),0):void 0,f=[],u=[],d=0;d<r.length;d++){var p=r[d],m=i.staffwidth-p.left,g=m/o/s,v=m/c/s,b={widths:p,lineBreakPoint:g,minLineSize:m/l/s,attempts:[],staffWidth:i.staffwidth,minWidth:Math.round(v)},y=null;if(h){var x=n(p.measureWidths,g,h);b.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:h,lineBreaks:x.lineBreaks,failed:x.failed,totals:x.totals}),x.failed||(y=x.lineBreaks)}if(!y){var w=t(p.measureWidths,g);b.attempts.push({type:"Free Form",lineBreaks:w.lineBreaks,totals:w.totals}),(y=w.lineBreaks).length>0&&p.measureWidths.length<25&&(w=a(p,g,0,b),b.attempts.push({type:"Optimize",failed:w.failed,reason:w.reason,lineBreaks:w.lineBreaks,totals:w.totals}),w.failed||(y=w.lineBreaks))}f.push(y),u.push(b)}var k=function(e,t,r){var i={lineBreaks:e,staffwidth:t};for(var a in r)r.hasOwnProperty(a)&&"wrap"!==a&&"staffwidth"!==a&&(i[a]=r[a]);return{revisedParams:i}}(f,i.staffwidth,i);return k.explanation=u,k.reParse=!0,k}}},9716:function(e,t,r){var i,a=r(5008),n=r(5058);!function(){"use strict";var e,t,r,s,o,c,l,h,f,u,d,p,m,g,v,b,y,x,w,k,T,C,S,N,E=1,_={num:4,den:4},M=0,A=0,B=128,L=64,P=48,z=!1,H=!1,O=!0,D=105,F=95,I=85,V=.25,Y=0,G={},j=0;function W(e){for(var t=f.length-1;t>=0;t--)if("program"===f[t].cmd)return void(f[t].channel=e)}function q(){for(var e=!0,t=0;t<p.length&&e;t++)"note"===p[t].cmd&&(e=!1);return e}function X(e){return e/1e6}function R(e){return Math.round(e*E*1e6)/1e6}function U(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}i=function(i,a,n,B){a||(a={}),B||(B={}),e=[],t=[0,0,0,0,0,0,0],s=[],o=a.qpm,c=void 0,E=1,l=void 0,h=void 0,f=void 0,u=void 0,d=0,N=n,_={num:4,den:4},p=[],m=!1,v=i.length,g=!1,b=[],M=B.bassprog&&1===B.bassprog.length?B.bassprog[0]:0,A=B.chordprog&&1===B.chordprog.length?B.chordprog[0]:0,L=B.bassvol&&1===B.bassvol.length?B.bassvol[0]:64,P=B.chordvol&&1===B.chordvol.length?B.chordvol[0]:48,y=void 0,x=void 0,z=!!a.chordsOff,H=!1,O=!0,D=105,F=95,I=85,V=.25,k=void 0,T=void 0,Y=0,C=[],G={},S=1,i.length>0&&i[0].length>0&&(j=i[0][0].pickupLength),function(e,t){for(var r=0;r<e.length;r++){for(var i=e[r],a={},n=t.qpm,s=0,o=1,c=0;c<i.length;c++){var l=i[c];if("tempo"!==l.el_type){l.time=s;var h=l.duration?l.duration:0;if(s+=Math.round(h*o*1e6),l.pitches){for(var f=0;f<l.pitches.length;f++){var u=l.pitches[f];if(u)if(u.duration=l.duration,u.startTie)void 0===a[u.pitch]?a[u.pitch]={el:c,pitch:f}:(i[a[u.pitch].el].pitches[a[u.pitch].pitch].duration+=u.duration,l.pitches[f]=null);else if(u.endTie){var d=a[u.pitch];if(d){var p=u.duration;delete i[d.el].pitches[d.pitch].startTie,i[d.el].pitches[d.pitch].duration+=p,l.pitches[f]=null,delete a[u.pitch]}else delete u.endTie}}delete l.duration}}else n?o=l.qpm?n/l.qpm:1:n=l.qpm}for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];delete i[g.el].pitches[g.pitch].startTie}}}(i,a);for(var R=0;R<i.length;R++){r=0;var K=i[R];f=[{cmd:"program",channel:R,instrument:l}],u=void 0,w=0;var $=!1;(!0===a.voicesOff||a.voicesOff&&a.voicesOff.length&&a.voicesOff.indexOf(R)>=0)&&($=!0);for(var Q=0;Q<K.length;Q++){var Z=K[Q];switch(Z.el_type){case"name":u={cmd:"text",type:"name",text:Z.trackName};break;case"note":J(Z,$)&&(m=R);break;case"key":t=re(Z);break;case"meter":c||(c=Z),V=U(_=Z),de();break;case"tempo":o?E=Z.qpm?o/Z.qpm:1:o=Z.qpm;break;case"transpose":r=Z.transpose;break;case"bar":p.length>0&&(!1===m||R===m)&&(fe(w,X(Z.time)),b=[]),e=[],0===R&&pe(i.length+1),H=!1,x=y,w=X(Z.time);break;case"bagpipes":break;case"instrument":if(void 0===l&&(l=Z.program),h=Z.program,f.length>0&&"program"===f[f.length-1].cmd)f[f.length-1].instrument=Z.program;else{var ee;for(ee=f.length-1;ee>=0&&"program"!==f[ee].cmd;ee--);(ee<0||f[ee].instrument!==Z.program)&&f.push({cmd:"program",channel:0,instrument:Z.program})}break;case"channel":W(Z.channel);break;case"drum":G=ue(Z.params),de();break;case"gchord":a.chordsOff||(z=Z.tacet);break;case"beat":D=Z.beats[0],F=Z.beats[1],I=Z.beats[2];break;case"vol":k=Z.volume;break;case"volinc":T=Z.volume;break;case"beataccents":O=Z.value;break;default:console.log("MIDI creation. Unknown el_type: "+Z.el_type+"\n")}}void 0===f[0].instrument&&(f[0].instrument=l||0),u&&f.unshift(u),s.push(f),q()||(g=!0),C.length}return a.detuneOctave&&function(e,t){for(var r={},i=0;i<e.length;i++)for(var a=0;a<e[i].length;a++){var n=e[i][a];"note"===n.cmd&&(void 0===r[n.start]&&(r[n.start]=[]),r[n.start].push({track:i,event:a,pitch:n.pitch}))}var s=Object.keys(r);for(i=0;i<s.length;i++){var o=r[s[i]];if(o.length>1){var c=(o=o.sort((function(e,t){return e.pitch-t.pitch})))[o.length-1],l=c.pitch%12,h=!1;for(a=0;!h&&a<o.length-1;a++)o[a].pitch%12===l&&(h=!0);if(h){var f=e[c.track][c.event];f.cents||(f.cents=0),f.cents+=t}}}}(s,parseInt(a.detuneOctave,10)),q()||s.push(p),C.length>0&&s.push(C),{tempo:o,instrument:l,tracks:s,totalDuration:d}};var K=["break","(break)","no chord","n.c.","tacet"];function $(e,t,r){return(r-e)/t}function Q(e){var t=!1,i=function(e){if(z)return"break";if(g||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var r=e.chord[t];if("default"===r.position)return r.name;if(K.indexOf(r.name.toLowerCase())>=0)return"break"}return null}(e);if(i){var a=function(e){if(0!==e.length){if("break"===e)return{chick:[]};var t=e.substring(0,1);if("("===t){if(0===(e=e.substring(1,e.length-2)).length)return;t=e.substring(0,1)}var i=ne[t];if(i){for(var a=r;a<-8;)a+=12;for(;a>8;)a-=12;var n,s=(i+=a)-5;1===e.length&&(n=oe(i,""));var o=e.substring(1),c=o.substring(0,1);"b"===c||"♭"===c?(i--,s--,o=o.substring(1)):"#"!==c&&"♯"!==c||(i++,s++,o=o.substring(1));var l=o.split("/");if((n=oe(i,l[0])).length>=3&&(s=s+(n[2]-n[0])-7),2===l.length&&ne[l[1].substring(0,1)]){var h={"#":1,"♯":1,b:-1,"♭":-1}[l[1].substring(1)]||0;s=i=ne[l[1].substring(0,1)]+h+a}return{boom:i,boom2:s,chick:n}}}}(i);if(a){0===p.length&&(t=!0,p.push({cmd:"program",channel:v,instrument:A})),y=a;var n=$(w,U(_),X(e.time));b.push({chord:y,beat:n,start:X(e.time)})}}return t}function Z(e,t){var r=t.start,i=t.duration,a=R(1/32);switch(e){case"trill":for(var n=1;i>0;)f.push({cmd:"note",pitch:t.pitch+n,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n=1===n?0:1,i-=a,r+=a;break;case"mordent":f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,f.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:i,gap:0,instrument:h});break;case"lowermordent":f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,f.push({cmd:"note",pitch:t.pitch-1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:i,gap:0,instrument:h});break;case"turn":a=t.duration/5,f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),f.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+a,duration:a,gap:0,instrument:h,style:"decoration"}),f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+2*a,duration:a,gap:0,instrument:h,style:"decoration"}),f.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+3*a,duration:a,gap:0,instrument:h,style:"decoration"}),f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+4*a,duration:a,gap:0,instrument:h});break;case"roll":for(;i>0;)f.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=2*a,r+=2*a}}function J(e,t){f.length;var r,i=function(e,t){if(t)return 0;var r;if(k)r=k,k=void 0;else if(O)if(j>e)r=I;else{_.num,_.den;var i=$(w,U(_),e);r=0===i?D:parseInt(i,10)===i?F:I}else r=F;return T&&(r+=T,T=void 0),r<0&&(r=0),r>127&&(r=127),t?0:r}(X(e.time),t),s=Q(e);if(e.gracenotes&&e.pitches&&e.pitches.length>0&&e.pitches[0]&&(r=function(e,t){for(var r,i=0,a=[],s=0;s<e.length;s++)i+=(r=e[s]).duration;var o=t/2/i;for(s=0;s<e.length;s++){var c=te(r=e[s]);if(h===B&&N){var l=n(r);l&&N[l]&&(c=N[l].sound)}var f={pitch:c,duration:r.duration*o};f=ie(f),a.push(f)}return a}(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=function(e,t,r,i){var a=[];r=Math.round(r);for(var n=0;n<e.length;n++){var s=e[n];f.push({cmd:"note",pitch:s.pitch,volume:r,start:t,duration:s.duration,gap:0,instrument:i,style:"grace"}),a.push({pitch:s.pitch,durationInMeasures:s.duration,volume:r,instrument:i}),t+=s.duration}return a}(r,X(e.time),2*i/3,h))),e.elem){var c=X(e.time),l=c/V/o*60*1e3;if(void 0===e.elem.currentTrackMilliseconds)e.elem.currentTrackMilliseconds=l,e.elem.currentTrackWholeNotes=c;else if(void 0===e.elem.currentTrackMilliseconds.length)e.elem.currentTrackMilliseconds!==l&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,l],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,c]);else{for(var u=!1,p=0;p<e.elem.currentTrackMilliseconds.length;p++)e.elem.currentTrackMilliseconds[p]===l&&(u=!0);u||(e.elem.currentTrackMilliseconds.push(l),e.elem.currentTrackWholeNotes.push(c))}}if(e.pitches){var m="",g=function(e,t){var r={};if(e.decoration)for(var i=0;i<e.decoration.length;i++)"staccato"===e.decoration[i]?r.thisBreakBetweenNotes="staccato":"tenuto"===e.decoration[i]?r.thisBreakBetweenNotes="tenuto":"accent"===e.decoration[i]?r.velocity=Math.min(127,1.5*t):"trill"===e.decoration[i]?r.noteModification="trill":"lowermordent"===e.decoration[i]?r.noteModification="lowermordent":"uppermordent"===e.decoration[i]||"mordent"===e.decoration[i]?r.noteModification="mordent":"turn"===e.decoration[i]?r.noteModification="turn":"roll"===e.decoration[i]&&(r.noteModification="roll");return r}(e,i);g.thisBreakBetweenNotes&&(m=g.thisBreakBetweenNotes),g.velocity&&(i=g.velocity);var v=e.pitches;if("rhythm"===e.style&&(H=!0,y&&y.chick)){v=[];for(var b=0;b<y.chick.length;b++){var x=a.clone(e.pitches[0]);x.actualPitch=y.chick[b],v.push(x)}}e.elem&&(e.elem.midiPitches=[]);for(var C=0;C<v.length;C++){var S=v[C];if(S){S.startSlur&&(Y+=S.startSlur.length),S.endSlur&&(Y-=S.endSlur.length);var E=S.actualPitch?S.actualPitch:te(S);if(h===B&&N){var M=n(S);M&&N[M]&&(E=N[M].sound)}var A={cmd:"note",pitch:E,volume:i,start:X(e.time),duration:R(S.duration),instrument:h,startChar:e.elem.startChar,endChar:e.elem.endChar};if(A=ie(A),e.gracenotes&&(A.duration=A.duration/2,A.start=A.start+A.duration),e.elem&&e.elem.midiPitches.push(A),g.noteModification)Z(g.noteModification,A);else{switch(Y>0?A.endType="tenuto":m&&(A.endType=m),A.endType){case"tenuto":A.gap=-.001;break;case"staccato":var L=.4*A.duration;A.gap=o/60*L;break;default:A.gap=0}f.push(A)}}}f.length}var P=function(e){return e.pitches&&e.pitches.length>0&&e.pitches[0]?e.pitches[0].duration:e.elem?e.elem.duration:e.duration}(e);return d=Math.max(d,X(e.time)+R(P)),s}var ee=[0,2,4,5,7,9,11];function te(i){if(void 0!==i.midipitch)return i.midipitch;var a=i.pitch;if(i.accidental)switch(i.accidental){case"sharp":e[a]=1;break;case"flat":e[a]=-1;break;case"natural":e[a]=0;break;case"dblsharp":e[a]=2;break;case"dblflat":e[a]=-2;break;case"quartersharp":e[a]=.25;break;case"quarterflat":e[a]=-.25}var n=12*function(e){return Math.floor(e/7)}(a)+ee[ae(a)]+60;return void 0!==e[a]?n+=e[a]:n+=t[ae(a)],n+=r}function re(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var r=0;r<e.accidentals.length;r++){var i,a=e.accidentals[r];switch(a.acc){case"flat":i=-1;break;case"quarterflat":i=-.25;break;case"sharp":i=1;break;case"quartersharp":i=.25;break;default:i=0}t[ae(a.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=i}return t}function ie(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 ae(e){return(e%=7)<0&&(e+=7),e}var ne={A:33,B:35,C:36,D:38,E:40,F:41,G:43},se={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]};function oe(e,t){var r=se[t];r||(r="ma"===t.slice(0,2).toLowerCase()||"M"===t[0]?se.M:"m"===t[0]||"-"===t[0]?se.m:se.M),e+=12;for(var i=[],a=0;a<r.length;a++)i.push(e+r[a]);return i}function ce(e,t,r,i,a){void 0!==e&&p.push({cmd:"note",pitch:e,volume:r,start:w+i*R(t),duration:R(a),gap:0,instrument:M})}function le(e,t,r,i,a){for(var n=0;n<e.length;n++)p.push({cmd:"note",pitch:e[n],volume:r,start:w+i*R(t),duration:R(a),gap:0,instrument:A})}var he={"2/2":["boom","chick"],"2/4":["boom","chick"],"3/4":["boom","chick","chick"],"4/4":["boom","chick","boom2","chick"],"5/4":["boom","chick","chick","boom2","chick"],"6/8":["boom","","chick","boom2","","chick"],"9/8":["boom","","chick","boom2","","chick","boom2","","chick"],"12/8":["boom","","chick","boom2","","chick","boom","","chick","boom2","","chick"]};function fe(e,t){var r=_.num,i=_.den,a=1/i,n=a/2,s=he[r+"/"+i],o=parseInt(r,10)/parseInt(i,10)-(t-e)/E;if(Math.abs(o)<1e-5&&(o=!1),!s||o){s=[];for(var c=(t-e)/E/a,l=0;l<c;l++)s.push("chick")}if(0===b.length&&b.push({beat:0,chord:y}),0!==b[0].beat&&y&&x&&b.unshift({beat:0,chord:x}),1!==b.length){for(var h=.125===a?3:1,f={},u=0;u<b.length;u++){var d=b[u];f[""+Math.round(d.beat*h)]=d}for(var p=0;p<s.length;p++){var m,g;if(f[""+p]&&(m=f[""+p]),!H&&m)switch(s[p]){case"boom":f[""+(p+1)]?le(m.chord.chick,a,P,p,n):(ce(m.chord.boom,a,L,p,n),g=m.chord.boom);break;case"boom2":f[""+(p+1)]?le(m.chord.chick,a,P,p,n):g===m.chord.boom?(ce(m.chord.boom2,a,L,p,n),g=void 0):(ce(m.chord.boom,a,L,p,n),g=m.chord.boom);break;case"chick":le(m.chord.chick,a,P,p,n);break;case"":f[""+p]&&le(m.chord.chick,a,P,p,n)}}}else for(var v=b[0].beat;v<s.length;v++)if(!H)switch(s[v]){case"boom":ce(b[0].chord.boom,a,L,v,n);break;case"boom2":ce(b[0].chord.boom2,a,L,v,n);break;case"chick":le(b[0].chord.chick,a,P,v,n)}}function ue(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],r=[],i="",a=0,n=0;n<t.length;n++)if("d"===t[n]&&a++,"d"===t[n]||"z"===t[n])0!==i.length?(r.push(i),i=t[n]):i+=t[n];else{if(0===i.length)return{on:!1};i+=t[n]}if(0!==i.length&&r.push(i),e.pattern.length!==2*a+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},o=U(_),c=0,l=0;l<r.length;l++){i=r[l];for(var h=1,f=!1,u=0,d=1;d<i.length;d++)switch(i[d]){case"/":0!==u&&(h*=u),u=0,f=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u=10*u+i[d];break;default:return{on:!1}}f?(0===u&&(u=2),h/=u):u&&(h*=u),"d"===i[0]?(s.pattern.push({len:h*o,pitch:e.pattern[1+c],velocity:e.pattern[1+c+a]}),c++):s.pattern.push({len:h*o,pitch:null})}return S=e.bars?e.bars:1,s}function de(){if(G&&G.pattern){for(var e=G,t=0,r=_.num/_.den,i=0;i<e.pattern.length;i++)t+=e.pattern[i].len;var a=t/S/r;for(i=0;i<e.pattern.length;i++)e.pattern[i].len=e.pattern[i].len/a;G=e}}function pe(e){if(0!==C.length||G.on){var t=_.num/_.den;if(0===C.length){if(d<t)return;C.push({cmd:"program",channel:e,instrument:B})}if(G.on)for(var r=w,i=0;i<G.pattern.length;i++){var a=R(G.pattern[i].len);G.pattern[i].pitch&&C.push({cmd:"note",pitch:G.pattern[i].pitch,volume:G.pattern[i].velocity,start:r,duration:a,gap:0,instrument:B}),r+=a}}}}(),e.exports=i},1028:function(e,t,r){var i,a=r(5008);!function(){"use strict";var e=1,t=128;function r(e,t,r){for(var i=0,a=t+1;a<e.length;a++)if("note"===e[a].el_type&&i++,e[a].decoration&&e[a].decoration.indexOf(r)>=0)return i;return i}function n(e,t,r){for(var i=Math.min(e.length,t+3),a=t;a<i;a++)if("note"===e[a].el_type&&e[a].decoration)for(var n=0;n<e[a].decoration.length;n++)if(r.indexOf(e[a].decoration[n])>=0)return e[a].decoration[n];return null}function s(e){for(var t=0;t<e.length;t++)for(var r=e[t],i=r.length-1;i>=0&&"bar"!==r[i].el_type;)r[i].noChordVoice=!0,i--}function o(e,t){if(e&&!(e.length<=t)&&e[t].title)return e[t].title.join(" ")}function c(e,t){var r=1/4;e.duration&&(r=e.duration[0]);var i=60;return e.bpm&&(i=e.bpm),r*i/t}function l(t){var r;switch(t.type){case"common_time":r={el_type:"meter",num:4,den:4};break;case"cut_time":r={el_type:"meter",num:2,den:2};break;case"specified":r={el_type:"meter",num:t.value[0].num,den:t.value[0].den};break;default:r={el_type:"meter"}}return e=r.num/r.den,r}function h(e){for(var t=[],r=0;r<e.length;r++)"natural"!==e[r].acc&&t.push(e[r]);return t}function f(e,t){d(e,"HP"===t.root?{el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:{el_type:"key",accidentals:h(t.accidentals)})}function u(e,t){d(e,l(t))}function d(e,t){for(var r=e.length-1;r>=0;r--)if(e[r].el_type===t.el_type)return void(JSON.stringify(e[r])!==JSON.stringify(t)&&e.push(t));e.push(t)}i=function(i,h){var p,m=(h=h||{}).program||0,g=h.midiTranspose||0;i.visualTranspose&&(g-=i.visualTranspose);var v=h.channel||0,b=!1,y=h.drum||"",x=h.drumBars||1,w=h.drumIntro||0,k=""!==y,T=[];m=parseInt(m,10),g=parseInt(g,10),10===(v=parseInt(v,10))&&(m=t),y=y.split(" "),x=parseInt(x,10),w=parseInt(w,10);var C=i.formatting.bagpipes;C&&(m=71);var S=[];if(i.formatting.midi){var N=i.formatting.midi;N.program&&N.program.length>0&&(m=N.program[0],N.program.length>1&&(m=N.program[1],v=N.program[0]),b=!0),N.transpose&&(g=N.transpose[0]),N.channel&&(v=N.channel[0],b=!0),N.drum&&(y=N.drum),N.drumbars&&(x=N.drumbars[0]),N.drumon&&(k=!0),10===v&&(m=t),N.beat&&S.push({el_type:"beat",beats:N.beat}),N.nobeataccents&&S.push({el_type:"beataccents",value:!1})}p=h.qpm?parseInt(h.qpm,10):i.metaText.tempo?c(i.metaText.tempo,i.getBeatLength()):h.defaultQpm?h.defaultQpm:180;var E=[];C&&E.push({el_type:"bagpipes"}),E.push({el_type:"instrument",program:m}),v&&E.push({el_type:"channel",channel:v}),g&&E.push({el_type:"transpose",transpose:g}),E.push({el_type:"tempo",qpm:p});for(var _=0;_<S.length;_++)E.push(S[_]);var M,A=[],B=[],L=[],P=[0],z={};z[0]={el_type:"tempo",qpm:p,timing:0};for(var H=[],O=[],D=!1,F=i.lines,I=0;I<F.length;I++){var V=F[I];if(V.staff)for(var Y=function(e){var t,i={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]};if(e.decoration)if(e.decoration.indexOf("pppp")>=0?t="pppp":e.decoration.indexOf("ppp")>=0?t="ppp":e.decoration.indexOf("pp")>=0?t="pp":e.decoration.indexOf("p")>=0?t="p":e.decoration.indexOf("mp")>=0?t="mp":e.decoration.indexOf("mf")>=0?t="mf":e.decoration.indexOf("f")>=0?t="f":e.decoration.indexOf("ff")>=0?t="ff":e.decoration.indexOf("fff")>=0?t="fff":e.decoration.indexOf("ffff")>=0&&(t="ffff"),t&&(M=i[t].slice(0),A[j].push({el_type:"beat",beats:M.slice(0)}),B[X]=!1,L[X]=!1),e.decoration.indexOf("crescendo(")>=0){var a=r(R,ee,"crescendo)"),s=Math.min(127,M[0]+50),o=n(R,ee+a+1,Object.keys(i));o&&(s=i[o][0]),B[X]=a>0&&Math.floor((s-M[0])/a),L[X]=!1}else if(e.decoration.indexOf("crescendo)")>=0)B[X]=!1;else if(e.decoration.indexOf("diminuendo(")>=0){var c=r(R,ee,"diminuendo)"),l=Math.max(15,M[0]-50),h=n(R,ee+c+1,Object.keys(i));h&&(l=i[h][0]),B[X]=!1,L[X]=c>0&&Math.floor((l-M[0])/c)}else e.decoration.indexOf("diminuendo)")>=0&&(L[X]=!1)},G=V.staff,j=0,W=0;W<G.length;W++){var q=G[W];if(!q.clef||"TAB"!==q.clef.type)for(var X=0;X<q.voices.length;X++){var R=q.voices[X];if(!A[j]){A[j]=[].concat(JSON.parse(JSON.stringify(E)));var U=o(V.staff,j);U&&A[j].unshift({el_type:"name",trackName:U})}if(g&&"perc"===q.clef.type&&A[j].push({el_type:"transpose",transpose:0}),q.clef&&"perc"===q.clef.type&&!b)for(var K=0;K<A[j].length;K++)"instrument"===A[j][K].el_type&&(A[j][K].program=t);else q.key&&f(A[j],q.key);q.meter&&u(A[j],q.meter),!D&&k&&(A[j].push({el_type:"drum",params:{pattern:y,bars:x,on:k,intro:w}}),D=!0),q.clef&&"perc"!==q.clef.type&&q.clef.transpose&&(q.clef.el_type="clef",A[j].push({el_type:"transpose",transpose:q.clef.transpose})),q.clef&&q.clef.type&&(q.clef.type.indexOf("-8")>=0?A[j].push({el_type:"transpose",transpose:-12}):q.clef.type.indexOf("+8")>=0&&A[j].push({el_type:"transpose",transpose:12})),i.formatting.midi&&i.formatting.midi.drumoff&&(A[j].push({el_type:"bar"}),A[j].push({el_type:"drum",params:{pattern:"",on:!1}}));var $=0,Q=0,Z=0,J=0;M=[105,95,85,1];for(var ee=0;ee<R.length;ee++){var te=R[ee];switch(te.el_type){case"note":if(B[X]&&(M[0]+=B[X],M[1]+=B[X],M[2]+=B[X],A[j].push({el_type:"beat",beats:M.slice(0)})),L[X]&&(M[0]+=L[X],M[1]+=L[X],M[2]+=L[X],A[j].push({el_type:"beat",beats:M.slice(0)})),Y(te),!te.rest||"spacer"!==te.rest.type){var re={elem:te,el_type:"note",timing:P[j]};if(te.style?re.style=te.style:T[j]&&(re.style=T[j]),re.duration=0===te.duration?.25:te.duration,te.startTriplet){if(Q=te.tripletMultiplier,Z=te.startTriplet*Q*te.duration,te.startTriplet!==te.tripletR&&ee+te.tripletR<=R.length){for(var ie=0,ae=ee;ae<ee+te.tripletR;ae++)ie+=R[ae].duration;Z=Q*ie}re.duration=re.duration*Q,re.duration=Math.round(1e6*re.duration)/1e6,J=re.duration}else Q&&(te.endTriplet?(Q=0,re.duration=Math.round(1e6*(Z-J))/1e6):(re.duration=re.duration*Q,re.duration=Math.round(1e6*re.duration)/1e6,J+=re.duration));te.rest&&(re.rest=te.rest),te.decoration&&(re.decoration=te.decoration.slice(0)),te.pitches&&(re.pitches=a.cloneArray(te.pitches)),te.gracenotes&&(re.gracenotes=a.cloneArray(te.gracenotes)),te.chord&&(re.chord=a.cloneArray(te.chord)),A[j].push(re),"rhythm"===te.style&&s(A),$++,P[j]+=re.duration}break;case"key":case"keySignature":f(A[j],te);break;case"meter":u(A[j],te);break;case"clef":te.transpose&&A[j].push({el_type:"transpose",transpose:te.transpose}),te.type&&(te.type.indexOf("-8")>=0?A[j].push({el_type:"transpose",transpose:-12}):te.type.indexOf("+8")>=0&&A[j].push({el_type:"transpose",transpose:12}));break;case"tempo":p=c(te,i.getBeatLength()),A[j].push({el_type:"tempo",qpm:p,timing:P[j]}),z[""+P[j]]={el_type:"tempo",qpm:p,timing:P[j]};break;case"bar":$>0&&A[j].push({el_type:"bar"}),Y(te),$=0;var ne="bar_right_repeat"===te.type||"bar_dbl_repeat"===te.type,se="1"===te.startEnding,oe="bar_left_repeat"===te.type||"bar_dbl_repeat"===te.type||"bar_right_repeat"===te.type;if(ne){var ce=H[j];ce||(ce=0);var le=O[j];le||(le=A[j].length);for(var he=ce;he<le;he++){var fe=a.clone(A[j][he]);fe.pitches&&(fe.pitches=a.cloneArray(fe.pitches)),A[j].push(fe)}O[j]=void 0,H[j]=void 0}se&&(O[j]=A[j].length),oe&&(H[j]=A[j].length);break;case"style":T[j]=te.head;break;case"timeSignature":A[j].push(l(te));break;case"part":case"stem":case"scale":case"break":case"font":break;case"midi":var ue=!1;switch(te.cmd){case"drumon":k=!0,ue=!0;break;case"drumoff":k=!1,ue=!0;break;case"drum":y=te.params,ue=!0;break;case"drumbars":x=te.params[0],ue=!0;break;case"drummap":break;case"channel":10===te.params[0]&&A[j].push({el_type:"instrument",program:t});break;case"program":d(A[j],{el_type:"instrument",program:te.params[0]}),b=!0;break;case"transpose":A[j].push({el_type:"transpose",transpose:te.params[0]});break;case"gchordoff":A[j].push({el_type:"gchord",tacet:!0});break;case"gchordon":A[j].push({el_type:"gchord",tacet:!1});break;case"beat":A[j].push({el_type:"beat",beats:te.params});break;case"nobeataccents":A[j].push({el_type:"beataccents",value:!1});break;case"beataccents":A[j].push({el_type:"beataccents",value:!0});break;case"vol":A[j].push({el_type:"vol",volume:te.params[0]});break;case"volinc":A[j].push({el_type:"volinc",volume:te.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",te.cmd,te)}ue&&(A[0].push({el_type:"drum",params:{pattern:y,bars:x,intro:w,on:k}}),D=!0);break;default:console.log("MIDI: element type "+te.el_type+" not handled.")}}P[++j]||(P[j]=0)}}}if(function(e,t){if(t&&0!==t.length)for(var r=Object.keys(t),i=0;i<e.length;i++)for(var a=e[i],n=t[0]?t[0].qpm:0,s=0;s<a.length;s++){var o=a[s];"tempo"===o.el_type&&(n=o.qpm),r.indexOf(""+o.timing)>=0&&n!==t[""+o.timing].qpm&&(n=t[""+o.timing].qpm,"tempo"===o.el_type?(o.qpm=t[""+o.timing].qpm,s++):(e[i].splice(s,0,{el_type:"tempo",qpm:t[""+o.timing].qpm,timing:o.timing}),s+=2))}}(A,z),w)for(var de=i.getPickupLength(),pe=0;pe<A.length;pe++){for(var me=0;"note"!==A[pe][me].el_type&&A[pe].length>me;)me++;if(A[pe].length>me)for(ae=0;ae<w;ae++)0===de||ae<w-1?A[pe].splice(me,0,{el_type:"note",rest:{type:"rest"},duration:e},{el_type:"bar"}):A[pe].splice(me,0,{el_type:"note",rest:{type:"rest"},duration:e-de})}return A.length>0&&A[0].length>0&&(A[0][0].pickupLength=i.getPickupLength()),A}}(),e.exports=i},2842:function(e){var t={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},r=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];e.exports={noteToMidi:function(e){var i=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(i&&5===i.length){var a=t[i[1]];return 48+r.indexOf(i[2])+a+12*(i[4].length-i[3].length)}return 0},midiToNote:function(e){e=parseInt(e,10);var t=Math.floor(e/12),i=e%12,a=r[i];if("-"===a&&(a="^"+r[i-1]),t>4)for(a=a.toLowerCase(),t-=5;t>0;)a+="'",t--;else for(;t<4;)a+=",",t++;return a}}},5058:function(e){var t={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'"};e.exports=function(e){var r=(e.accidental?e.accidental[0]:"x")+e.verticalPos;return t[r]}},1921:function(e,t,r){var i=r(2842).noteToMidi,a=r(6776),n=r(6629);function s(e,t){for(var r=[],i=0;i<t.length;i++)if(!t[i].endTie){var n=new a.TabNote(t[i].name,e.clefTranspose);n.checkKeyAccidentals(e.accidentals,e.measureAccidentals);var s=c(e,n);r.push(s)}return function(e,t){for(var r=0;r<t.length-1;r++){var i=t[r],a=t[r+1];if(i.str==a.str){if(i.str==e.strings.length-1)return i.num="?",void(a.num="?");a.num<i.num?(a.str++,a=o(e,a.note,a.str,e.secondPos,e.strings[a.str].length)):(i.str++,i=o(e,i.note,i.str,e.secondPos,e.strings[i.str].length)),t[r]=i,t[r+1]=a}}}(e,r),r}function o(e,t,r,i,a){var n=e.strings;t.checkKeyAccidentals(e.accidentals,e.measureAccidentals),i&&(n=i);var s=t.emitNoAccidentals(),o=n[r].indexOf(s),c=t.acc;if(-1!=o){if(i&&(o+=a),(t.isFlat||-1==t.acc)&&0==o){var l=t.getAccidentalEquiv();o=n[++r].indexOf(l.emit()),c=0}return{num:o+c,str:r,note:t}}return null}function c(e,t){var r;(t.isAltered||t.natural)&&(t.isFlat?r=t.isDouble?"__":"_":t.isSharp?r=t.isDouble?"^^":"^":t.natural&&(r="="),e.measureAccidentals[t.name.toUpperCase()]=r);for(var i=e.stringPitches.length-1;i>=0;i--)if(t.pitch+t.pitchAltered>=e.stringPitches[i]){var a=t.pitch+t.pitchAltered-e.stringPitches[i];return"^"===t.quarter?a-=.5:"v"===t.quarter&&(a+=.5),{num:Math.round(a),str:e.stringPitches.length-1-i,note:t}}return{num:"?",str:e.stringPitches.length-1,note:t}}function l(e,t){var r={num:"?",str:0,note:t};e.push(r),e.error=t.emit()+": unexpected note for instrument"}function h(e){var t=e.tuning,r=e.capo,s=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",s&&(this.highestNote=s),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=i(this.tuning[o])+this.capo;this.stringPitches.push(c)}if(this.capo>0&&(this.capoTuning=function(e){var t=null,r=e.tuning;if(e.capo>0){t=[];for(var i=0;i<r.length;i++){for(var n=new a.TabNote(r[i]),s=0;s<e.capo;s++)n=n.nextNote();t[i]=n.emit()}}return t}(this)),this.strings=function(e){var t=[],r=e.tuning;e.capo>0&&(r=e.capoTuning);for(var i=r.length-1,a=0;a<r.length;a++){var s=e.highestNote;a!=r.length-1&&(s=r[a+1]);var o=new n(r[a],s).build();if(o.error)return o;t[i--]=o}return t}(this),this.strings.error)return e._super.setError(this.strings.error),void(e.inError=!0);this.secondPos=function(e){var t=[];t[0]=[];for(var r=e.strings,i=1;i<r.length;i++)t[i]=r[i-1];return t}(this)}h.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch},h.prototype.notesToNumber=function(e,t){var r,i,n=null,o=null;if(e&&(o=[],e.length>1?(o=s(this,e)).error&&(n=o.error):e[0].endTie||((r=new a.TabNote(e[0].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(i=c(this,r))?o.push(i):(l(o,r),n=o.error))),n)return o;var h=null;if(t){h=[];for(var f=0;f<t.length;f++)(r=new a.TabNote(t[f].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(i=c(this,r))?h.push(i):(l(h,r),n=o.error)}return{notes:o,graces:h,error:n}},h.prototype.toString=function(){for(var e=[],t=0;t<this.tuning.length;t++){var r=this.tuning[t].replaceAll(",","").replaceAll("'","").toUpperCase();"_"===r[0]?r=r[1]+"b ":"^"===r[0]&&(r=r[1]+"# "),e.push(r)}return e.join("")},h.prototype.tabInfos=function(e){var t=e._super.params.label;if(t){var r="";return-1!=t.indexOf("%T")&&(r=this.toString(),e.capo>0&&(r+=" capo:"+e.capo),t=t.replace("%T",r)),t}return""},h.prototype.suppress=function(e){return!!e._super.params.suppress},e.exports=h},8918:function(e){function t(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:3,pitch2:t*e,height:5}}t.prototype.bypass=function(e){var t=e.staffGroup.voices;return!!(t.length>0&&t[0].isPercussion)},t.prototype.setRelative=function(e,t,r){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var i=this.bar.pitch2/2;if("dots.dot"==e.name)return r?(t.pitch=i,!1):(t.pitch=i+this.lineSpace,!0)}return r},e.exports=t},6776:function(e,t,r){var i=r(2842),a=i.noteToMidi,n=i.midiToNote;function s(e,t){var r=a(e);t&&(r+=t);var i,s=n(r),o=!1,c=!1,l=null,h=null,f=!1,u=0;e.startsWith("_")?(o=!0,u=-1,"/"==e[1]?(o=!1,h="v",u=0):"_"==e[1]&&(f=!0,u-=1)):e.startsWith("^")?(c=!0,u=1,"/"==e[1]?(c=!1,h="^",u=0):"^"==e[1]&&(f=!0,u+=1)):e.startsWith("=")&&(l=!0,u=0),((i=o||c||null!=h)||l)&&(s=null!=h||f?e.slice(2):e.slice(1));var d=(s.match(/,/g)||[]).length,p=(s.match(/'/g)||[]).length;this.pitch=r,this.pitchAltered=0,this.name=s,this.acc=u,this.isSharp=c,this.isKeySharp=!1,this.isDouble=f,this.isAltered=i,this.isFlat=o,this.isKeyFlat=!1,this.natural=l,this.quarter=h,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=d,this.isQuoted=p}s.prototype.sameNoteAs=function(e){return e.pitch===this.pitch},s.prototype.isLowerThan=function(e){return e.pitch>this.pitch},s.prototype.checkKeyAccidentals=function(e,t){if(!this.isAltered&&!this.natural)if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":return this.acc=-2,void(this.pitchAltered=-2);case"_":return this.acc=-1,void(this.pitchAltered=-1);case"=":return this.acc=0,void(this.pitchAltered=0);case"^":return this.acc=1,void(this.pitchAltered=1);case"^^":return this.acc=2,void(this.pitchAltered=2)}else if(e)for(var r=this.name,i=0;i<e.length;i++){var a=e[i];r==a.note.toUpperCase()&&("flat"==a.acc&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),"sharp"==a.acc&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}},s.prototype.getAccidentalEquiv=function(){var e,t,r=((t=new s((e=this).name)).pitch=e.pitch,t.hasComma=e.hasComma,t.isLower=e.isLower,t.isQuoted=e.isQuoted,t.isSharp=e.isSharp,t.isKeySharp=e.isKeySharp,t.isFlat=e.isFlat,t.isKeyFlat=e.isKeyFlat,t);return r.isSharp||r.isKeySharp?((r=r.nextNote()).isFlat=!0,r.isSharp=!1,r.isKeySharp=!1):(r.isFlat||r.isKeyFlat)&&((r=r.prevNote()).isSharp=!0,r.isFlat=!1,r.isKeyFlat=!1),r},s.prototype.nextNote=function(){return new s(n(this.pitch+1+this.pitchAltered))},s.prototype.prevNote=function(){return new s(n(this.pitch-1+this.pitchAltered))},s.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+="'";for(var r=0;r<this.hasComma;r++)e+=",";return e},s.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 r=1;r<=this.isQuoted;r++)e+="'"}return e},e.exports={TabNote:s,notes:["A","B","C","D","E","F","G"]}},6629:function(e,t,r){var i=r(6776),a=i.notes;function n(e,t){this.fromN=new i.TabNote(e),this.toN=new i.TabNote(t)}n.prototype.build=function(){var e=this.fromN,t=this.toN;if(t.isLowerThan(e)){var r=e.emit();return{error:"Invalid string Instrument tuning : "+t.emit()+" string lower than "+r+" string"}}var i=[],n=a.indexOf(e.name),s=a.indexOf(t.name);if(-1==n||-1==s)return i;for(var o=!1;!o;)i.push(e.emit()),(e=e.nextNote()).sameNoteAs(t)&&(o=!0);return i},e.exports=n},589:function(e,t,r){var i=r(1921);function a(e,t){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=t),e.tuning=this.tuning,this.strings=new i(e)}a.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},a.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=a},6074:function(e,t,r){var i=r(8918),a=r(8660),n=r(676),s=r(589);function o(){}o.prototype.init=function(e,t,r,n,o){var c=new a(e,t,r);this.abcTune=e,this._super=c,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 i(this.nbLines,this.linePitch);var l=new s(this,o.defaultTuning);this.semantics=l},o.prototype.render=function(e,t,r){this._super.inError||this.tablature.bypass(t)||new n(this,e,t,r).doLayout()},e.exports=function(){return{name:"StringTab",tablature:o}}},1696:function(e,t,r){var i=r(1409),a=r(6658);function n(e,t){for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])||null!=(i=t[r])&&i.constructor===Object||(e[r]=t[r]));var i}function s(e){var t=new i("",0,0,"",0);return n(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},n(t.abcelem,e.abcelem),"note"===t.abcelem.el_type&&(t.abcelem.el_type="tabNumber")),e.cloned=t,t}function o(e,t){var r=s(e);if(t)for(var i=e.children,o=!0,c=0;c<i.length;c++){var l=i[c],h=new a("",0,0,0,"");n(h,l),o=t.tablature.setRelative(l,h,o),r.children.push(h)}return r}function c(e,t,r){var n="tab.tiny",s=7.5;e.isTabBig&&(n="tab.big",s=10);var o={el_type:"tab",icon:n,Ypos:s};if(s+=e.tabSymbolOffset,!e.hideTabSymbol){var c=new i(o,0,0,"symbol",0);c.x=t;var l=new a(n,0,0,7.5,"tab");l.x=r,c.children.push(l),"tab"==c.abcelem.el_type&&(l.pitch=s)}return c}function l(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var r=e.extra[t];if("lyric"==r.type)return{bottom:r.bottom,height:r.height}}return null}function h(){this.accidentals=null}function f(e,t,r,i,n){var s=i.num;null!=i.note.quarter&&(s=s.toString(),s+=i.note.quarter);var o=e.semantics.stringToPitch(i.str);r.notes.push({num:s,str:i.str,pitch:i.note.emit()});var c=new a(s,0,0,o+.3,{type:"tabNumber"});return c.x=t,c.isGrace=n,c.isAltered=i.note.isAltered,c}function u(e,t){var r=0;if(e.extra)for(var i=0;i<e.extra.length;i++)if(e.extra[i].c.indexOf("noteheads")>=0){if(r===t)return e.extra[i].x+e.extra[i].w/2;r++}return-1}function d(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function p(e,t,r){var i=e.semantics.notesToNumber(t,r);if(i.error)return e._super.setError(i.error),i;if(i.graces&&i.notes){var a=i.notes.length-1;i.notes[a].graces=i.graces}return i}function m(e,t,r,i,a){for(var n=0;n<i.length;n++){var s={el_type:"note",startChar:r.abcelem.startChar,endChar:r.abcelem.endChar,notes:[],grace:!0},o=f(e,u(r,n),s,i[n],!0);t.children.push(o),a.push(s)}}h.prototype.build=function(e,t,r,i,a,n,h){!function(e){for(var t=0;t<e.length;t++)e[t].tabNameInfos||0}(t);var g=t[a+i],v=t[h],b=null,y=null;"clef"!=g.children[0].abcelem.el_type&&"none"!=n&&g.children.splice(0,0,n);for(var x=0;x<g.children.length;x++){var w=g.children[x],k=w.x,T=k;switch(w.isClef&&(v.children.push(c(e,k,T)),w.abcelem.type.indexOf("-8")>=0&&(e.semantics.strings.clefTranspose=-12),w.abcelem.type.indexOf("+8")>=0&&(e.semantics.strings.clefTranspose=12)),w.type){case"staff-extra key-signature":this.accidentals=w.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":e.semantics.strings.measureAccidentals={};var C=!1;x===g.children.length-1&&(C=!0);var S=o(w,e);if(S.abcelem.barNumber){delete S.abcelem.barNumber;for(var N=0;N<S.children.length;N++)if("barNumber"===S.children[N].type){S.children.splice(N,1);break}}S.abcelem.lastBar=C,v.children.push(S),r.push({el_type:w.abcelem.el_type,type:w.abcelem.type,endChar:w.abcelem.endChar,startChar:w.abcelem.startChar,abselem:S});break;case"rest":var E=d(w);if(E){if((b=p(e,null,E)).error)return;H={el_type:"note",startChar:w.abcelem.startChar,endChar:w.abcelem.endChar,notes:[],grace:!0},m(e,_,w,b.graces,r)}break;case"note":var _=s(w);_.x=w.heads[0].x+w.heads[0].w/2,_.lyricDim=l(w);var M=w.abcelem.pitches,A=w.abcelem.gracenotes;if(_.type="tabNumber",(b=p(e,M,A)).error)return;if(b.graces){var B=b.notes.length-1;b.notes[B].graces=b.graces}y={el_type:"note",startChar:w.abcelem.startChar,endChar:w.abcelem.endChar,notes:[]};for(var L=0;L<b.notes.length;L++){var P=b.notes[L];if(P.graces)for(var z=0;z<P.graces.length;z++){var H={el_type:"note",startChar:w.abcelem.startChar,endChar:w.abcelem.endChar,notes:[],grace:!0},O=f(e,u(w,z),H,P.graces[z],!0);_.children.push(O),r.push(H)}var D=f(e,_.x+w.heads[L].dx,y,P,!1);_.children.push(D)}y.notes.length>0&&(y.abselem=_,r.push(y),v.children.push(_))}}},e.exports=h},8660:function(e){function t(e,t,r){this.tune=e,this.params=r,this.tuneNumber=t,this.inError=!1}t.prototype.setError=function(e){var t=this.tune;e&&(this.error=e,this.inError=!0,t.warnings?t.warnings.push(e):t.warnings=[e])},e.exports=t},676:function(e,t,r){var i=r(3197),a=r(1696),n=r(4331);function s(e,t){var r=e.plugin.semantics.strings,i=e.renderer.controller.getTextSize,a=r.tabInfos(e.plugin),n=!0;if(r.suppress(e.plugin)&&(n=!1),n){var s=i.calc(a,"tablabelfont","text instrumentname");return t.tabNameInfos={textSize:{height:s.height,width:s.width},name:a},s.height}return 0}function o(e,t,r,i){this.renderer=t,this.plugin=e,this.line=r,this.absolutes=new a,this.staffIndex=i,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}function c(e,t){return!(!t[e].isTabStaff||e!==t.length-1&&t[e+1].isTabStaff)}function l(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return r;return-1}function h(e,t){return"clef"===e[t].children[0].abcelem.el_type?null:0==t?"none":e[t-1].children[0]}o.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&0==t.clef.stafflines)return void this.plugin._super.setError("No tablatures when stafflines=0");e.splice(e.length,0,this.tabStaff)}var r=this.line.staffGroup,a=r.voices,o=function(e){for(var t=0,r=0;r<e.children.length;r++){var i=e.children[r];i.specialY&&i.specialY.lyricHeightBelow>t&&(t=i.specialY.lyricHeightBelow)}return t}(a[0]),f=this.staffIndex,u=r.staffs[f],d=this.tabSize+3-u.bottom-o;u.isTabStaff&&(d=u.top);var p={bottom:-1,isTabStaff:!0,specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0},lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:d},m=function(e,t){for(var r=e.staffIndex,i=0,a=0,n=0;;){if(!t[i])return-1;if(t[i].isTabStaff||(n=t[i].voices.length),t[i].isTabStaff){if(a++,c(i,t)&&a<n)return i+1}else if(a=0,i>=r){if(i+1==t.length)return i+1;if(!t[i+1].isTabStaff)return i+1}if(++i>t.length)return-1}}(this,r.staffs);if(-1!==m){p.parentIndex=m-1,r.staffs.splice(m,0,p),r.height+=this.tabSize+3;var g=function(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return e[r];return null}(r.staffs,m),v=1;(function(e,t){return 1===function(e){for(var t=0,r=0;r<e.length;r++)e[r].isTabStaff||t++;return t}(e)&&t.voices.length>1})(r.staffs,g)&&(v=g.voices.length),this.tabStaff.voices=[];for(var b=0;b<v;b++){var y=new i(0,0);b>0&&(y.duplicate=!0);var x=s(this,y)/n.STEP;x=Math.max(x,1),r.staffs[this.staffIndex].top+=1,r.height+=x,y.staff=p;var w=a.length;a.splice(a.length,0,y);var k=h(a,b+this.staffIndex);this.tabStaff.voices[b]=[],this.absolutes.build(this.plugin,a,this.tabStaff.voices[b],b,this.staffIndex,k,w)}!function(e){for(var t=0;t<e.length;t++)if(e[t].isTabStaff){var r=l(e,t);e[t].hasStaff=e[r],e[r].hasTab||(e[r].hasTab=[]),e[r].hasTab.push(e[t])}}(r.staffs)}},e.exports=o},1897:function(e,t,r){var i=r(1409),a=r(8491),n=r(5224),s=r(9600),o=r(3923),c=r(2143),l=r(2525),h=r(8677),f=r(8256),u=r(6020),d=r(6658),p=r(4331),m=r(7398),g=r(1106),v=r(6183),b=r(2096),y=r(3197),x=r(2652),w=r(5058),k=r(5008),T=function(e){var t=0;return e.duration&&(t=e.duration),t},C=!1,S={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"}},N=function(e,t,r){this.decoration=new h,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=r.bagpipes,this.flatBeams=r.flatbeams,this.graceSlurs=r.graceSlurs,this.percmap=r.percmap,this.initialClef=r.initialClef,this.jazzchords=!!r.jazzchords,this.accentAbove=!!r.accentAbove,this.germanAlphabet=!!r.germanAlphabet,this.reset()};function E(e,t){var r=e[t];if("note"!==r.el_type||!r.startBeam||r.endBeam)return{count:1,elem:r};for(var i=[];t<e.length&&"note"===e[t].el_type&&(i.push(e[t]),!e[t].endBeam);)t++;return{count:i.length,elem:i}}function _(e){if(e.pitches){M(e);for(var t=0,r=0;r<e.pitches.length;r++)t+=e.pitches[r].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}N.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},N.prototype.setStemHeight=function(e){this.stemHeight=Math.round(10*e/p.STEP)/10},N.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},N.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)},N.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)],void 0===this.voiceScale&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]},N.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var r=0;r<e[t].voices.length;r++)for(var i=0;i<e[t].voices[r].length;i++){var a=e[t].voices[r][i];if(a.lyric)return void(a.positioning&&"below"!==a.positioning.vocalPosition||(this.hasVocals=!0))}},N.prototype.createABCLine=function(e,t,r){this.minY=2,this.containsLyrics(e);var i=new m(this.getTextSize);this.tempoSet=!1;for(var a=0;a<e.length;a++)C&&this.restoreState(),C=!1,this.createABCStaff(i,e[a],t,a,r);return i},N.prototype.createABCStaff=function(e,t,r,i,a){e.getTextSize.updateFonts(t);for(var c=0;c<t.voices.length;c++){var h=new y(c,t.voices.length);0===c?(h.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,h.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):h.duplicate=!0,t.title&&t.title[c]&&(h.header=t.title[c].replace(/\\n/g,"\n"),h.headerPosition=6+e.getTextSize.baselineToCenter(h.header,"voicefont","staff-extra voice-name",c,t.voices.length)/p.STEP),t.clef&&"perc"===t.clef.type&&(h.isPercussion=!0);var f=(!this.initialClef||0===a)&&s(t.clef,this.tuneNumber);f&&(0===c&&t.barNumber&&this.addMeasureNumber(t.barNumber,f),h.addChild(f),this.startlimitelem=f);var u=o(t.key,this.tuneNumber);if(u&&(h.addChild(u),this.startlimitelem=u),t.meter){"specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var d=l(t.meter,this.tuneNumber);h.addChild(d),this.startlimitelem=d}h.duplicate&&(h.children=[]);var m=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(h,i,m);var g=1===m;this.createABCVoice(t.voices[c],r,i,c,g,h),e.setStaffLimits(h),0===c&&("start"===t.brace||!e.brace&&t.brace?(e.brace||(e.brace=[]),e.brace.push(new n(h,"brace"))):"end"===t.brace&&e.brace?e.brace[e.brace.length-1].setBottomStaff(h):"continue"===t.brace&&e.brace&&e.brace[e.brace.length-1].continuing(h),"start"===t.bracket||!e.bracket&&t.bracket?(e.bracket||(e.bracket=[]),e.bracket.push(new n(h,"bracket"))):"end"===t.bracket&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(h):"continue"===t.bracket&&e.bracket&&e.bracket[e.bracket.length-1].continuing(h))}},N.prototype.createABCVoice=function(e,t,r,a,n,s){this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new f("",null,null),s.addOther(this.partstartelem));var o=s.voicetotal<2?-1:s.voicenumber;for(var l in this.slurs)this.slurs.hasOwnProperty(l)&&(this.slurs[l]=new v({force:this.slurs[l].force,voiceNumber:o,stemDir:this.slurs[l].stemDir,style:this.slurs[l].dotted}),C&&this.slurs[l].setHint(),s.addOther(this.slurs[l]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v({force:this.ties[h].force,stemDir:this.ties[h].stemDir,voiceNumber:o,style:this.ties[h].dotted}),C&&this.ties[h].setHint(),s.addOther(this.ties[h]);for(var u=0;u<this.abcline.length;u++)_(this.abcline[u]),this.minY=Math.min(this.abcline[u].minpitch,this.minY);for(var d=0===r,p=0;p<this.abcline.length;){var m=E(this.abcline,p),b=this.createABCElement(d,n,s,m.elem);if(b)for(h=0;h<b.length;h++){if(!this.tempoSet&&t&&!t.suppress){this.tempoSet=!0;var y=new i(t,0,0,"tempo",this.tuneNumber,{});y.addFixedX(new g(t,this.tuneNumber,c)),s.addChild(y)}s.addChild(b[h])}p+=m.count}this.pushCrossLineElems(r,a)},N.prototype.saveState=function(){this.tiesSave=k.cloneArray(this.ties),this.slursSave=k.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=k.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=k.cloneHashOfArrayOfHash(this.tiesbyvoice)},N.prototype.restoreState=function(){this.ties=k.cloneArray(this.tiesSave),this.slurs=k.cloneHashOfHash(this.slursSave),this.slursbyvoice=k.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=k.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},N.prototype.createABCElement=function(e,t,r,a){var n=[];switch(a.el_type){case void 0:n=this.createBeam(t,r,a);break;case"note":n[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":n[0]=this.createBarLine(r,a,e),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"meter":n[0]=l(a,this.tuneNumber),this.startlimitelem=n[0],r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"clef":if(n[0]=s(a,this.tuneNumber),!n[0])return null;r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"key":var h=o(a,this.tuneNumber);h&&(n[0]=h,this.startlimitelem=n[0]),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"stem":this.stemdir="auto"===a.direction?void 0:a.direction;break;case"part":var f=new i(a,0,0,"part",this.tuneNumber),u=this.getTextSize.calc(a.title,"partsfont","part");f.addFixedX(new d(a.title,0,0,void 0,{type:"part",height:u.height/p.STEP})),n[0]=f;break;case"tempo":var m=new i(a,0,0,"tempo",this.tuneNumber);m.addFixedX(new g(a,this.tuneNumber,c)),n[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":C=!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 v=new i(a,0,0,"unsupported",this.tuneNumber);v.addFixed(new d("element type "+a.el_type,0,0,void 0,{type:"debug"})),n[0]=v}return n},N.prototype.createBeam=function(e,t,r){var i=[],n=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,r[0]);C&&n.setHint();for(var s=0;s<r.length;s++)n.runningDirection(r[s]);n.setStemDirection();var o=this.stemdir;for(this.stemdir=n.stemsUp?"up":"down",s=0;s<r.length;s++){var c=r[s],l=this.createNote(c,!0,e,t);i.push(l),n.add(l),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return n.calcDir(),t.addBeam(n),this.stemdir=o,i};var M=function(e){var t;do{t=!0;for(var r=0;r<e.pitches.length-1;r++)if(e.pitches[r].pitch>e.pitches[r+1].pitch){t=!1;var i=e.pitches[r];e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=i}}while(!t)},A=function(e,t,r,i,a,n,s,o,c){for(var l=r;l>11;l--)l%2!=0||i||e.addFixed(new d(null,o,(a+4)*c,l,{type:"ledger"}));for(l=t;l<1;l++)l%2!=0||i||e.addFixed(new d(null,o,(a+4)*c,l,{type:"ledger"}));for(l=0;l<n.length;l++){var h=a;"down"===s&&(h=-h),e.addFixed(new d(null,h+o,(a+4)*c,n[l],{type:"ledger"}))}};function B(e,t){for(var r=0;r<e.length;r++)if(JSON.stringify(e[r])===JSON.stringify(t))return;e.push(t)}N.prototype.addGraceNotes=function(e,t,r,i,n,s,o){var l=.6;n=Math.round(.7*n);var h,f,p=null;e.gracenotes.length>1&&(p=new a(n,"grace",s),C&&p.setHint(),p.mainNote=r);var m=[];for(f=e.gracenotes.length-1;f>=0;f--)o+=10,m[f]=o,e.gracenotes[f].accidental&&(o+=7);for(f=0;f<e.gracenotes.length;f++){var g=e.gracenotes[f].verticalPos;h=p?null:S.uflags[s?5:3];var b=c(r,"noteheads.quarter",e.gracenotes[f],{dir:"up",headx:-m[f],extrax:-m[f],flag:h,scale:l*this.voiceScale,accidentalSlot:[]});b.notehead.highestVert=b.notehead.pitch+n;var y=b.notehead;if(this.addSlursAndTies(r,e.gracenotes[f],y,t,"up",!0),r.addExtra(y),e.gracenotes[f].acciaccatura){var x=e.gracenotes[f].verticalPos+4.2,w=p?5:6;r.addRight(new d("flags.ugrace",-m[f]+w,0,x,{scalex:l,scaley:l}))}if(p){var k=e.gracenotes[f].duration/2;s&&(k/=2);var T={heads:[y],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:k}};p.add(T)}else{var N=g+1/3*l,E=g+4.2,_=y.dx+y.w;r.addExtra(new d(null,_,0,N,{type:"stem",pitch2:E,linewidth:-.6}))}A(r,g,g,!1,u.getSymbolWidth("noteheads.quarter"),[],!0,y.dx-1,.6);var M=e.rest&&("spacer"===e.rest.type||"invisible"===e.rest.type);0!==f||s||!this.graceSlurs||M||t.addOther(new v({anchor1:y,anchor2:i,isGrace:!0}))}return p&&(p.calcDir(),t.addBeam(p)),o},N.prototype.addNoteToAbcElement=function(e,t,r,i,a,n,s,o,l){var h,f,p,m,g,v=0,b=0,y=0,x=[],k=[],C=0,N=t.averagepitch>=6?"down":"up";for(i&&(N=i),(a=t.style?t.style:a)&&"normal"!==a||(a="note"),(m=n?S[a].nostem:S[a][-s])||console.log("noteSymbol:",a,s,n),g="down"===N?t.pitches.length-2:1;"down"===N?g>=0:g<t.pitches.length;g="down"===N?g-1:g+1){var E=t.pitches["down"===N?g+1:g-1],_=t.pitches[g],M="down"===N?E.pitch-_.pitch:_.pitch-E.pitch;M<=1&&!E.printer_shift&&(_.printer_shift=M?"different":"same",(_.verticalPos>11||_.verticalPos<1)&&x.push(_.verticalPos-_.verticalPos%2),"down"===N?b=u.getSymbolWidth(m)+2:v=u.getSymbolWidth(m)+2)}var A=t.pitches.length;for(g=0;g<t.pitches.length;g++){var L,P;if(o||(L="down"===N&&0!==g||"up"===N&&g!==A-1?null:S["down"===N?"dflags":"uflags"][-s]),t.pitches[g].style)P=S[t.pitches[g].style][-s];else if(l.isPercussion&&this.percmap){P=m;var z=this.percmap[w(t.pitches[g])];z&&z.noteHead&&S[z.noteHead]&&(P=S[z.noteHead][-s])}else P=m;if(t.pitches[g].highestVert=t.pitches[g].verticalPos,("up"===i||"up"===N)&&0===g||("down"===i||"down"===N)&&g===A-1){if((t.startSlur||1===A)&&(t.pitches[g].highestVert=t.pitches[A-1].verticalPos,T(t)<1&&("up"===i||"up"===N)&&(t.pitches[g].highestVert+=6)),t.startSlur)for(t.pitches[g].startSlur||(t.pitches[g].startSlur=[]),p=0;p<t.startSlur.length;p++)B(t.pitches[g].startSlur,t.startSlur[p]);if(t.endSlur)for(t.pitches[g].highestVert=t.pitches[A-1].verticalPos,T(t)<1&&("up"===i||"up"===N)&&(t.pitches[g].highestVert+=6),t.pitches[g].endSlur||(t.pitches[g].endSlur=[]),p=0;p<t.endSlur.length;p++)B(t.pitches[g].endSlur,t.endSlur[p])}var H=!o&&s<=-1,O=c(e,P,t.pitches[g],{dir:N,extrax:-b,flag:L,dot:r,dotshiftx:v,scale:this.voiceScale,accidentalSlot:k,shouldExtendStem:!i,printAccidentals:!l.isPercussion});C=Math.max(u.getSymbolWidth(P),C),e.extraw-=O.extraLeft,(h=O.notehead)&&(this.addSlursAndTies(e,t.pitches[g],h,l,H?N:null,!1),t.gracenotes&&t.gracenotes.length>0&&(h.bottom=h.bottom-1),e.addHead(h)),b+=O.accidentalshiftx,y=Math.max(y,O.dotshiftx)}if(H){var D=Math.round(70*this.voiceScale)/10,F="down"===N?t.minpitch-D:t.minpitch+1/3;F>6&&!i&&(F=6);var I="down"===N?t.maxpitch-1/3:t.maxpitch+D;I<6&&!i&&(I=6);var V="down"===N||0===e.heads.length?0:e.heads[0].w,Y="down"===N?1:-1;h&&"noteheads.slash.quarter"===h.c&&("down"===N?I-=1:F+=1),h&&"noteheads.triangle.quarter"===h.c&&("down"===N?I-=.7:F-=1.2),e.addRight(new d(null,V,0,F,{type:"stem",pitch2:I,linewidth:Y,bottom:F-1})),f=Math.min(F,I)}return{noteHead:h,roomTaken:b,roomTakenRight:y,min:f,additionalLedgers:x,dir:N,symbolWidth:C}},N.prototype.addLyric=function(e,t){var r="";t.lyric.forEach((function(e){var t=" "===e.divider?"":e.divider;r+=e.syllable+t+"\n"}));var i=this.getTextSize.calc(r,"vocalfont","lyric"),a=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new d(r,0,i.width,void 0,{type:"lyric",position:a,height:i.height/p.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},N.prototype.createNote=function(e,t,r,a){var n,s=null,o=0,l=0,h=0,f=[],p=T(e),m=!1;0===p&&(m=!0,p=.25,t=!0);for(var g=Math.floor(Math.log(p)/Math.log(2)),v=0,y=Math.pow(2,g),w=y/2;y<p;v++,y+=w,w/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var k=p*this.tripletmultiplier;e.rest&&"multimeasure"===e.rest.type&&(k=1),e.rest&&"invisible-multimeasure"===e.rest.type&&(k=this.measureLength*e.rest.text);var N=e.rest?"rest":"note",E=new i(e,k,1,N,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});if(C&&E.setHint(),e.rest){this.measureLength===p&&"invisible"!==e.rest.type&&"spacer"!==e.rest.type&&e.rest.type.indexOf("multimeasure")<0&&(e.rest.type="whole");var _=function(e,t,r,i,a,n,s,o,l){var h,f,p,m,g=7;switch(a&&("down"===n&&(g=3),"up"===n&&(g=11)),s&&(g=r<.5||r<1?7:5),t.rest.type){case"whole":h=S.rest[0],t.averagepitch=g,t.minpitch=g,t.maxpitch=g,i=0;break;case"rest":h="rhythm"===t.style?S.rhythm[-o]:S.rest[-o],t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"invisible":case"invisible-multimeasure":case"spacer":h="",t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"multimeasure":h=S.rest.multi,t.averagepitch=g,t.minpitch=g,t.maxpitch=g,i=0;var v=u.getSymbolWidth(h);e.addHead(new d(h,v,2*v,7));var b=new d(""+t.rest.text,v,v,16,{type:"multimeasure-text"});e.addExtra(b)}if(t.rest.type.indexOf("multimeasure")<0&&"invisible"!==t.rest.type){var y=c(e,h,{verticalPos:g},{dot:i,scale:l});(f=y.notehead)&&(e.addHead(f),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:f,roomTaken:p,roomTakenRight:m}}(E,e,p,v,a.voicetotal>1,this.stemdir,r,g,this.voiceScale);s=_.noteHead,o=_.roomTaken,l=_.roomTakenRight}else{var M=this.addNoteToAbcElement(E,e,v,this.stemdir,this.style,m,g,t,a);void 0!==M.min&&(this.minY=Math.min(M.min,this.minY)),s=M.noteHead,o=M.roomTaken,l=M.roomTakenRight,f=M.additionalLedgers,n=M.dir,h=M.symbolWidth}if(void 0!==e.lyric&&this.addLyric(E,e),void 0!==e.gracenotes&&(o+=this.addGraceNotes(e,a,E,s,this.stemHeight*this.voiceScale,this.isBagpipes,o)),e.decoration&&this.decoration.createDecoration(a,e.decoration,E.top,s?s.w:0,E,o,n,E.bottom,e.positioning,this.hasVocals,this.accentAbove),e.barNumber&&E.addFixed(new d(e.barNumber,-10,0,0,{type:"barNumber"})),A(E,e.minpitch,e.maxpitch,e.rest,h,f,n,-2,1),void 0!==e.chord){var B=x(this.getTextSize,E,e,o,l,h,this.jazzchords,this.germanAlphabet);o=B.roomTaken,l=B.roomTakenRight}return e.startTriplet&&(this.triplet=new b(e.startTriplet,s,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(s),!this.triplet||e.startTriplet||e.endTriplet||e.rest&&"spacer"===e.rest.type||this.triplet.middleNote(s),E},N.prototype.addSlursAndTies=function(e,t,r,i,a,n){if(t.endTie&&this.ties.length>0){for(var s=!1,o=0;o<this.ties.length;o++)if(this.ties[o].anchor1&&this.ties[o].anchor1.pitch===r.pitch){this.ties[o].setEndAnchor(r),i.setRange(this.ties[o]),this.ties.splice(o,1),s=!0;break}s||(this.ties[0].setEndAnchor(r),i.setRange(this.ties[0]),this.ties.splice(0,1))}var c,l,h=i.voicetotal<2?-1:i.voicenumber;if(t.startTie){var f=new v({anchor1:r,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:n,voiceNumber:h,style:t.startTie.style});C&&f.setHint(),this.ties[this.ties.length]=f,i.addOther(f),e.startTie=!0}if(t.endSlur)for(var u=0;u<t.endSlur.length;u++)l=t.endSlur[u],this.slurs[l]?((c=this.slurs[l]).setEndAnchor(r),i.setRange(c),delete this.slurs[l]):(c=new v({anchor2:r,stemDir:this.stemdir,voiceNumber:h}),C&&c.setHint(),i.addOther(c)),this.startlimitelem&&c.setStartX(this.startlimitelem);else if(!n)for(var d in this.slurs)this.slurs.hasOwnProperty(d)&&this.slurs[d].addInternalNote(r);if(t.startSlur)for(u=0;u<t.startSlur.length;u++)l=t.startSlur[u].label,c=new v({anchor1:r,stemDir:this.stemdir,voiceNumber:h,style:t.startSlur[u].style}),C&&c.setHint(),this.slurs[l]=c,i.addOther(c)},N.prototype.addMeasureNumber=function(e,t){var r=this.getTextSize.calc(e,"measurefont","bar-number"),i=0;t.isClef&&(i+=r.width/2);var a=r.width>10&&"treble"===t.abcelem.type?13:11;t.addFixed(new d(e,i,r.width,a+r.height/p.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},N.prototype.createBarLine=function(e,t,r){var a=new i(t,0,10,"bar",this.tuneNumber),n=null,s=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var o="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,c="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,l="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,h="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,u="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(o||u){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(a);this.startlimitelem=a}if(o&&(a.addRight(new d("dots.dot",s,1,7)),a.addRight(new d("dots.dot",s,1,5)),s+=6),c&&(n=new d(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),"bar_invisible"===t.type&&(n=new d(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),a.addRight(n)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,a,0,"down",2,t.positioning,this.hasVocals,this.accentAbove),l&&(n=new d(null,s+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),a.addRight(n),s+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=n,this.partstartelem=null),h&&(n=new d(null,s+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),u&&(s+=3,a.addRight(new d("dots.dot",s,1,7)),a.addRight(new d("dots.dot",s,1,5))),t.startEnding&&r){var m=this.getTextSize.calc(t.startEnding,"repeatfont","").width;a.minspacing+=m+10,this.partstartelem=new f(t.startEnding,n,null),e.addOther(this.partstartelem)}return a.extraw-=5,void 0!==t.chord&&x(this.getTextSize,a,t,0,0,0,!1,this.germanAlphabet),a},e.exports=N},2652:function(e,t,r){var i=r(6658),a=r(4331),n=r(5810);function s(e,t,r,s,o,c,l,h,f,u,d,p,m,g,v){for(var b=e.split("\n"),y=b.length-1;y>=0;y--){var x,w=b[y],k=0;s||(w=n(w,g,v));var T=h.calc(w,o,c),C=T.width,S=T.height/a.STEP;switch(t){case"left":k=-(d+=C+7),x=u.averagepitch,f.addExtra(new i(w,k,C+4,x,{type:"text",height:S,dim:l,position:"left"}));break;case"right":k=p+=4,x=u.averagepitch,f.addRight(new i(w,k,C+4,x,{type:"text",height:S,dim:l,position:"right"}));break;case"below":f.addRight(new i(w,0,0,void 0,{type:"text",position:"below",height:S,dim:l,realWidth:C}));break;case"above":f.addRight(new i(w,0,0,void 0,{type:"text",position:"above",height:S,dim:l,realWidth:C}));break;default:if(r){var N=r.y+3*a.STEP;f.addRight(new i(w,k+r.x,0,u.minpitch+N/a.STEP,{position:"relative",type:"text",height:S,dim:l}))}else{var E="above";u.positioning&&u.positioning.chordPosition&&(E=u.positioning.chordPosition),"hidden"!==E&&f.addCentered(new i(w,m/2,C,void 0,{type:"chord",position:E,height:S,dim:l,realWidth:C}))}}}return{roomTaken:d,roomTakenRight:p}}e.exports=function(e,t,r,i,a,n,o,c){for(var l=0;l<r.chord.length;l++){var h,f,u=r.chord[l].position,d=r.chord[l].rel_position,p="left"===u||"right"===u||"below"===u||"above"===u||!!d;p?(h="annotationfont",f="abcjs-annotation"):(h="gchordfont",f="abcjs-chord");var m,g=e.attr(h,f),v=r.chord[l].name;if("string"==typeof v)i=(m=s(v,u,d,p,h,f,g,e,t,r,i,a,n,o,c)).roomTaken,a=m.roomTakenRight;else for(var b=0;b<v.length;b++)i=(m=s(v[b].text,u,d,p,h,f,g,e,t,r,i,a,n,o,c)).roomTaken,a=m.roomTakenRight}return{roomTaken:i,roomTakenRight:a}}},1716:function(e){e.exports=function(e,t,r){if(t.text){t.marginLeft||(t.marginLeft=0),t.klass||(t.klass=""),t.anchor||(t.anchor="start"),t.info||(t.info={startChar:-2,endChar:-2}),t.marginTop&&e.push({move:t.marginTop});var i={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&&(i.absElemType=t.absElemType),!t.inGroup&&t.klass&&(i.klass=t.klass),t.name&&(i.name=t.name),e.push(i);var a=r.calc("A",t.font,t.klass),n=t.text.split("\n").length;if("\n"===t.text[t.text.length-1]&&n--,!t.noMove){var s=1.1*a.height*n;e.push({move:Math.round(s)}),t.marginBottom&&e.push({move:t.marginBottom})}}}},3661:function(e){e.exports=function(e){for(var t=0,r=0;r<e.voices.length;r++){var i=e.voices[r].staff;e.voices[r].duplicate||(t+=i.top,t+=-i.bottom)}return t}},9600:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){var r,s=0;e.el_type="clef";var o=new i(e,0,10,"staff-extra clef",t);switch(o.isClef=!0,e.type){case"treble":r="clefs.G";break;case"tenor":case"alto":r="clefs.C";break;case"bass":r="clefs.F";break;case"treble+8":r="clefs.G",s=1;break;case"tenor+8":case"alto+8":r="clefs.C",s=1;break;case"bass+8":r="clefs.F",s=1;break;case"treble-8":r="clefs.G",s=-1;break;case"tenor-8":case"alto-8":r="clefs.C",s=-1;break;case"bass-8":r="clefs.F",s=-1;break;case"none":return null;case"perc":r="clefs.perc";break;default:o.addFixed(new n("clef="+e.type,0,0,void 0,{type:"debug"}))}if(r){var c=a.symbolHeightInPitches(r),l=function(e){switch(e){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(r);if(o.addRight(new n(r,5,a.getSymbolWidth(r),e.clefPos,{top:c+e.clefPos+l,bottom:e.clefPos+l})),0!==s){var h=2/3,f=(a.getSymbolWidth(r)-a.getSymbolWidth("8")*h)/2,u=s>0?o.top+3:o.bottom-1,d=s>0?o.top+3:o.bottom-3,p=d-2;"bass-8"===e.type&&(u=3,f=0),o.addRight(new n("8",5+f,a.getSymbolWidth("8")*h,u,{scalex:h,scaley:h,top:d,bottom:p}))}}return o}},3923:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){if(e.el_type="keySignature",!e.accidentals||0===e.accidentals.length)return null;var r=new i(e,0,10,"staff-extra key-signature",t);r.isKeySig=!0;var s=0;return e.accidentals.forEach((function(e){var t,i=0;switch(e.acc){case"sharp":t="accidentals.sharp",i=-3;break;case"natural":t="accidentals.nat";break;case"flat":t="accidentals.flat",i=-1.2;break;case"quartersharp":t="accidentals.halfsharp",i=-2.5;break;case"quarterflat":t="accidentals.halfflat",i=-1.2;break;default:t="accidentals.flat"}r.addRight(new n(t,s,a.getSymbolWidth(t),e.verticalPos,{thickness:a.symbolHeightInPitches(t),top:e.verticalPos+a.symbolHeightInPitches(t)+i,bottom:e.verticalPos+i})),s+=a.getSymbolWidth(t)+2}),this),r}},2143:function(e,t,r){var i=r(6020),a=r(6658);e.exports=function(e,t,r,n){n||(n={});var s,o=void 0!==n.dir?n.dir:null,c=void 0!==n.headx?n.headx:0,l=void 0!==n.extrax?n.extrax:0,h=void 0!==n.flag?n.flag:null,f=void 0!==n.dot?n.dot:0,u=void 0!==n.dotshiftx?n.dotshiftx:0,d=void 0!==n.scale?n.scale:1,p=void 0!==n.accidentalSlot?n.accidentalSlot:[],m=void 0!==n.shouldExtendStem&&n.shouldExtendStem,g=void 0===n.printAccidentals||n.printAccidentals,v=r.verticalPos,b=0,y=0,x=0;if(void 0===t)e.addFixed(new a("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)s=new a(null,0,0,v);else{var w=c;if(r.printer_shift){var k="same"===r.printer_shift?1:0;w="down"===o?-i.getSymbolWidth(t)*d+k:i.getSymbolWidth(t)*d-k}var T={scalex:d,scaley:d,thickness:i.symbolHeightInPitches(t)*d,name:r.name};if((s=new a(t,w,i.getSymbolWidth(t)*d,v,T)).stemDir=o,h){var C=v+("down"===o?-7:7)*d;m&&("down"===o&&C>6&&(C=6),"up"===o&&C<6&&(C=6));var S="down"===o?c:c+s.w-.6;e.addRight(new a(h,S,i.getSymbolWidth(h)*d,C,{scalex:d,scaley:d}))}for(y=s.w+u-2+5*f;f>0;f--){var N=1-Math.abs(v)%2;e.addRight(new a("dots.dot",s.w+u-2+5*f,i.getSymbolWidth("dots.dot"),v+N))}}if(s&&(s.highestVert=r.highestVert),g&&r.accidental){var E;switch(r.accidental){case"quartersharp":E="accidentals.halfsharp";break;case"dblsharp":E="accidentals.dblsharp";break;case"sharp":E="accidentals.sharp";break;case"quarterflat":E="accidentals.halfflat";break;case"flat":E="accidentals.flat";break;case"dblflat":E="accidentals.dblflat";break;case"natural":E="accidentals.nat"}for(var _=!1,M=l,A=0;A<p.length;A++)if(v-p[A][0]>=6){p[A][0]=v,M=p[A][1],_=!0;break}!1===_&&(M-=i.getSymbolWidth(E)*d+2,p.push([v,M]),b=i.getSymbolWidth(E)*d+2);var B=i.symbolHeightInPitches(E);e.addExtra(new a(E,M,i.getSymbolWidth(E),v,{scalex:d,scaley:d,top:v+B/2,bottom:v-B/2})),x=i.getSymbolWidth(E)/2}return{notehead:s,accidentalshiftx:b,dotshiftx:y,extraLeft:x}}},2525:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){e.el_type="timeSignature";var r=new i(e,0,10,"staff-extra time-signature",t);if("specified"===e.type)for(var s=0,o=0;o<e.value.length;o++)if(0!==o&&(r.addRight(new n("+",s+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),s+=a.getSymbolWidth("+")+2),e.value[o].den){for(var c=0,l=0;l<e.value[o].num.length;l++)c+=a.getSymbolWidth(e.value[o].num[l]);var h=0;for(l=0;l<e.value[o].num.length;l++)h+=a.getSymbolWidth(e.value[o].den[l]);var f=Math.max(c,h);r.addRight(new n(e.value[o].num,s+(f-c)/2,c,8,{thickness:a.symbolHeightInPitches(e.value[o].num[0])})),r.addRight(new n(e.value[o].den,s+(f-h)/2,h,4,{thickness:a.symbolHeightInPitches(e.value[o].den[0])})),s+=f}else{for(var u=0,d=0;d<e.value[o].num.length;d++)u+=a.getSymbolWidth(e.value[o].num[d]);r.addRight(new n(e.value[o].num,s,u,6,{thickness:a.symbolHeightInPitches(e.value[o].num[0])})),s+=u}else"common_time"===e.type?r.addRight(new n("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?r.addRight(new n("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?r.addRight(new n("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?r.addRight(new n("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?r.addRight(new n("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?r.addRight(new n("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return r}},8677:function(e,t,r){var i=r(3185),a=r(6891),n=r(8844),s=r(6020),o=r(6658),c=r(6183),l=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},h=function(e,t,r,i,a){function n(e,t){var n="down"===a?function(){if(0===i.heads.length)return 2;for(var e=i.heads[0].pitch,t=1;t<i.heads.length;t++)e=Math.min(e,i.heads[t].pitch);return e}()+1:function(){if(0===i.heads.length)return 10;for(var e=i.heads[0].pitch,t=1;t<i.heads.length;t++)e=Math.max(e,i.heads[t].pitch);return e}()+9;"down"!==a&&1===t&&n--;var c=r/2;c+="down"===a?-5:3;for(var l=0;l<t;l++)n-=1,i.addFixedX(new o(e,c,s.getSymbolWidth(e),n))}for(var c=0;c<e.length;c++)switch(e[c]){case"/":n("flags.ugrace",1);break;case"//":n("flags.ugrace",2);break;case"///":n("flags.ugrace",3);break;case"////":n("flags.ugrace",4)}};l.prototype.dynamicDecoration=function(e,t,r,i){for(var s,o,c,l=0;l<t.length;l++)switch(t[l]){case"diminuendo(":this.startDiminuendoX=r,s=void 0;break;case"diminuendo)":s={start:this.startDiminuendoX,stop:r},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=r,o=void 0;break;case"crescendo)":o={start:this.startCrescendoX,stop:r},this.startCrescendoX=void 0;break;case"~(":case"glissando(":this.startGlissandoX=r,c=void 0;break;case"~)":case"glissando)":c={start:this.startGlissandoX,stop:r},this.startGlissandoX=void 0}s&&e.addOther(new a(s.start,s.stop,">",i)),o&&e.addOther(new a(o.start,o.stop,"<",i)),c&&e.addOther(new n(c.start,c.stop))},l.prototype.createDecoration=function(e,t,r,a,n,l,f,u,d,p,m){d||(d={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(e,t,r,a){for(var n=0;n<t.length;n++)switch(t[n]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var s=new i(r,t[n],a);e.addOther(s)}}(e,t,n,d.volumePosition),this.dynamicDecoration(e,t,n,d.dynamicPosition),h(t,0,a,n,f);var g=function(e,t,r,i,a,n,l,h,f){for(var u,d=0;d<t.length;d++){if("staccato"===t[d]||"tenuto"===t[d]||"accent"===t[d]&&!f){var p="scripts."+t[d];if("accent"===t[d]&&(p="scripts.sforzato"),u=void 0===u?"down"===l?r+2:h-2:"down"===l?u+2:u-2,"accent"===t[d])"up"===l?u--:u++;else switch(u){case 2:case 4:case 6:case 8:case 10:"up"===l?u--:u++}r>9&&u++;var m=i/2;"center"!==s.getSymbolAlign(p)&&(m-=s.getSymbolWidth(p)/2),a.addFixedX(new o(p,m,s.getSymbolWidth(p),u))}if("slide"===t[d]&&a.heads[0]){var g=a.heads[0].pitch,v=new o("",-n-15,0,(g-=2)-1),b=new o("",-n-5,0,g+1);a.addFixedX(v),a.addFixedX(b),e.addOther(new c({anchor1:v,anchor2:b,fixedY:!0}))}}return void 0===u&&(u=r),{above:u,below:a.bottom}}(e,t,r,a,n,l,f,u,m);g.above=Math.max(g.above,this.minTop),function(e,t,r,i,a,n,c,l){function h(e,t){"above"===e?i.above+=t:i.below-=t}function f(e){var t;return"above"===e?(t=i.above)<n&&(t=n):(t=i.below)>c&&(t=c),t}function u(e,i,a){var n=f(i);r.addFixedX(new o(e,t/2,0,n+2,{type:"decoration",klass:"ornament",thickness:3,anchor:a})),h(i,5)}function d(e,i){var a=t/2;"center"!==s.getSymbolAlign(e)&&(a-=s.getSymbolWidth(e)/2);var n=s.symbolHeightInPitches(e)+1,c=f(i);c="above"===i?c+n/2:c-n/2,r.addFixedX(new o(e,a,s.getSymbolWidth(e),c,{klass:"ornament",thickness:s.symbolHeightInPitches(e)})),h(i,n)}for(var p={"+":"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"},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.":u(e[m],a,"middle"),!0;break;case"D.C.alcoda":u("D.C. al coda",a,"end"),!0;break;case"D.C.alfine":u("D.C. al fine",a,"end"),!0;break;case"D.S.alcoda":u("D.S. al coda",a,"end"),!0;break;case"D.S.alfine":u("D.S. al fine",a,"end"),!0;break;case"fine":u("FINE",a,"middle"),!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":d(p[e[m]],a),!0;break;case"invertedfermata":d(p[e[m]],"below"),!0;break;case"mark":r.klass="mark";break;case"accent":l&&(d("scripts.sforzato",a),!0)}}(t,a,n,g,d.ornamentPosition,this.minTop,this.minBottom,m),function(e,t,r){for(var i=0;i<e.length;i++)if("arpeggio"===e[i])for(var a=t.abcelem.minpitch-1;a<=t.abcelem.maxpitch;a+=2)t.addExtra(new o("scripts.arpeggio",2*-s.getSymbolWidth("scripts.arpeggio")-r,0,a+2,{klass:"ornament",thickness:s.symbolHeightInPitches("scripts.arpeggio")}))}(t,n,l)},e.exports=l},1409:function(e,t,r){var i=r(5741),a=r(5829),n=function(e,t,r,i,a,n){n||(n={}),this.tuneNumber=a,this.abcelem=e,this.duration=t,this.durationClass=n.durationClassOveride?n.durationClassOveride:this.duration,this.minspacing=r||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=i,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}};n.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},n.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),void 0===this.fixed.b?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)},n.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},n.prototype.addRight=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0!==e.top&&(void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top)),void 0!==e.bottom&&(void 0===this.fixed.b?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)},n.prototype.addFixed=function(e){this._addChild(e)},n.prototype.addFixedX=function(e){this._addChild(e)},n.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)},n.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])},n.prototype._addChild=function(e){e.parent=this,this.children[this.children.length]=e,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)},n.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},n.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},n.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},n.prototype.center=function(e,t){var r=(t.x-e.x)/2+e.x;this.x=r-this.w/2;for(var i=0;i<this.children.length;i++)this.children[i].setX(this.x)},n.prototype.setHint=function(){this.hint=!0},n.prototype.highlight=function(e,t){i.bind(this)(e,t)},n.prototype.unhighlight=function(e,t){a.bind(this)(e,t)},e.exports=n},8491:function(e){var t=function(e,t,r,i){this.type="BeamElem",this.isflat=!!r,this.isgrace=!(!t||"grace"!==t),this.forceup=!!(this.isgrace||t&&"up"===t),this.forcedown=!(!t||"down"!==t),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=e,this.beams=[],i&&i.duration?(this.duration=i.duration,i.startTriplet&&(this.duration*=i.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0};function r(e,t){return t?e/t:0}t.prototype.setHint=function(){this.hint=!0},t.prototype.runningDirection=function(e){var t=e.averagepitch;void 0!==t&&(this.total=Math.round(this.total+t),this.count||(this.count=0),this.count++)},t.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setStemDirection=function(){this.average=r(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},t.prototype.calcDir=function(){this.average=r(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 i=0;i<this.elems[t].heads.length;i++)this.elems[t].heads[i].stemDir=e},e.exports=t},9316:function(e,t,r){var i=r(1716),a=r(6994);function n(e,t,r,i,a,n,s){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,i,a,n,s),this.extraText(e,i,a,n,s),e.footer&&r&&this.footer(e.footer,t,i,s)}function s(e,t,r,i,n,s,o){r&&(t&&(r="string"==typeof r?t+r:[{text:t}].concat(r)),a(e,r,"historyfont",n=s?"abcjs-extra-text "+n:"","description",i,{absElemType:"extraText",anchor:"start"},o))}function o(e,t,r,n,s,o,c,l,h,f,u,d){if(r){l=u?"abcjs-extra-text "+l:"";var p=d.calc("A",s,l);if("string"==typeof r)t&&(r=t+"\n"+r),i(e,{marginLeft:n,text:r,font:s,absElemType:"extraText",name:h,"dominant-baseline":"middle",klass:l},d);else{e.push({startGroup:c,klass:l,name:h}),e.push({move:f.info}),t&&(i(e,{marginLeft:n,text:t,font:s,absElemType:"extraText",name:h,"dominant-baseline":"middle"},d),e.push({move:3*p.height/4}));for(var m=0;m<r.length;m++)a(e,r[m],s,"",h,n,{anchor:"start"},d),m<r.length-1&&"string"==typeof r[m]&&"string"!=typeof r[m+1]&&e.push({move:3*p.height/4});e.push({endGroup:c,absElemType:o,startChar:-1,endChar:-1,name:h}),e.push({move:p.height})}}}n.prototype.unalignedWords=function(e,t,r,i,a){var n=i?"abcjs-unaligned-words":"",s="wordsfont",c=a.calc("i",s,n);this.rows.push({move:r.words}),o(this.rows,"",e,t,s,"unalignedWords","unalignedWords",n,"unalignedWords",r,i,a),this.rows.push({move:c.height})},n.prototype.extraText=function(e,t,r,i,a){s(this.rows,"Book: ",e.book,t,"abcjs-book",i,a),s(this.rows,"Source: ",e.source,t,"abcjs-source",i,a),s(this.rows,"Discography: ",e.discography,t,"abcjs-discography",i,a),o(this.rows,"Notes:",e.notes,t,"historyfont","extraText","notes","abcjs-notes","description",r,i,a),s(this.rows,"Transcription: ",e.transcription,t,"abcjs-transcription",i,a),o(this.rows,"History:",e.history,t,"historyfont","extraText","history","abcjs-history","description",r,i,a),s(this.rows,"Copyright: ",e["abc-copyright"],t,"abcjs-copyright",i,a),s(this.rows,"Creator: ",e["abc-creator"],t,"abcjs-creator",i,a),s(this.rows,"Edited By: ",e["abc-edited-by"],t,"abcjs-edited-by",i,a)},n.prototype.footer=function(e,t,r,a){var n="header meta-bottom",s="footerfont";this.rows.push({startGroup:"footer",klass:n}),i(this.rows,{marginLeft:r,text:e.left,font:s,klass:n,name:"footer"},a),i(this.rows,{marginLeft:r+t/2,text:e.center,font:s,klass:n,anchor:"middle",name:"footer"},a),i(this.rows,{marginLeft:r+t,text:e.right,font:s,klass:n,anchor:"end",name:"footer"},a)},e.exports=n},5224:function(e){var t=function(e,t){this.startVoice=e,this.type=t};t.prototype.setBottomStaff=function(e){this.endVoice=e,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},t.prototype.continuing=function(e){this.lastContinuedVoice=e},t.prototype.getWidth=function(){return 10},t.prototype.isStartVoice=function(e){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===e)},e.exports=t},6891:function(e){e.exports=function(e,t,r,i){this.type="CrescendoElem",this.anchor1=e,this.anchor2=t,this.dir=r,"above"===i?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},3185:function(e){e.exports=function(e,t,r){this.type="DynamicDecoration",this.anchor=e,this.dec=t,"below"===r?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},8256:function(e){e.exports=function(e,t,r){this.type="EndingElem",this.text=e,this.anchor1=t,this.anchor2=r,this.endingHeightAbove=5,this.pitch=void 0}},3736:function(e){e.exports=function(e,t,r,i,a,n){var s,o=e.text;this.rows=[],t&&this.rows.push({move:t});var c=r.calc("textfont","defined-text");if(""===o)this.rows.push({move:2*c.attr["font-size"]});else if("string"==typeof o)this.rows.push({move:c.attr["font-size"]/2}),this.rows.push({left:i,text:o,font:"textfont",klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=n.calc(o,"textfont","defined-text"),this.rows.push({move:s.height});else if(o){for(var l=0,h=i,f="textfont",u=0;u<o.length;u++)f=o[u].font?o[u].font:"textfont",this.rows.push({left:h,text:o[u].text,font:f,klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),h+=(s=n.calc(o[u].text,r.calc(f,"defined-text").font,"defined-text")).width+s.height/2,l=Math.max(l,s.height);this.rows.push({move:l})}else if(1===e.length){var d=a/2;this.rows.push({left:d,text:e[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=n.calc(e[0].text,"textfont","defined-text"),this.rows.push({move:s.height})}}},8844:function(e){e.exports=function(e,t){this.type="GlissandoElem",this.anchor1=e,this.anchor2=t}},6658:function(e){var t=function(e,t,r,i,a){switch(a=a||{},this.x=0,this.c=e,this.dx=t,this.w=r,this.pitch=i,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=i,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=i,void 0!==this.pitch2&&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&&"below"===a.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};t.prototype.getChordDim=function(){if("debug"===this.type)return null;if(!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e="chord"===this.type?this.realWidth/2:0,t=this.x-e-0;return{left:t,right:t+this.realWidth+0}},t.prototype.invertLane=function(e){void 0===this.lane&&(this.lane=0),this.lane=e-this.lane-1},t.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=1.25*this.height*this.lane:this.chordHeightBelow=1.25*this.height*this.lane},t.prototype.getLane=function(){return void 0===this.lane?0:this.lane},t.prototype.setX=function(e){this.x=e+this.dx},e.exports=t},6994:function(e,t,r){var i=r(1716);e.exports=function(e,t,r,a,n,s,o,c){var l=c.calc("i",r,a);if(""===t)e.push({move:l.height});else{if("string"==typeof t)return void i(e,{marginLeft:s,text:t,font:r,klass:a,marginTop:o.marginTop,anchor:o.anchor,absElemType:o.absElemType,info:o.info,name:n},c);o.marginTop&&e.push({move:o.marginTop});var h=0,f={left:s,anchor:o.anchor,phrases:[]};a&&(f.klass=a),e.push(f);for(var u=0;u<t.length;u++){var d=t[u],p=d.font?d.font:c.attr(r,a).font,m={content:d.text};p&&(m.attrs={"font-family":c.getFamily(p.face),"font-size":p.size,"font-weight":p.weight,"font-style":p.style,"font-decoration":p.decoration}),f.phrases.push(m);var g=c.calc(d.text,p,a);h=Math.max(h,g.height)," "===d.text[d.text.length-1]&&l.width}e.push({move:h})}}},5588:function(e){e.exports=function(e,t,r){this.rows=[],e&&this.rows.push({move:e}),this.rows.push({separator:t,absElemType:"separator"}),r&&this.rows.push({move:r})}},7398:function(e,t,r){var i=r(3661),a=function(e){this.getTextSize=e,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};a.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])},a.prototype.addVoice=function(e,t,r){var i=this.voices.length;this.voices[i]=e,this.staffs[t]?this.staffs[t].voices.push(i):this.staffs[this.staffs.length]={top:10,bottom:2,lines:r,voices:[i],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]},a.prototype.setHeight=function(){this.height=i(this)},a.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},a.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)},e.exports=a},4726:function(e){e.exports=function(e,t,r,i,a,n){this.rows=[],e&&this.rows.push({move:e});var s=t.titleleft?"start":"middle",o=t.titleleft?a:i;this.rows.push({left:o,text:r.text,font:"subtitlefont",klass:"text subtitle",anchor:s,startChar:r.startChar,endChar:r.endChar,absElemType:"subtitle",name:"subtitle"});var c=n.calc(r.text,"subtitlefont","text subtitle");this.rows.push({move:c.height})}},1106:function(e,t,r){var i=r(1409),a=r(6658),n=function(e,t,r){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(r,e,t))};n.prototype.setX=function(e){this.x=e},n.prototype.createNote=function(e,t,r){var n,s,o,c=.75,l=t.duration[0],h=new i(t,l,1,"tempo",r);l<=1/32?(o="noteheads.quarter",s="flags.u32nd",n=0):l<=1/16?(o="noteheads.quarter",s="flags.u16th",n=0):l<=3/32?(o="noteheads.quarter",s="flags.u16nd",n=1):l<=1/8?(o="noteheads.quarter",s="flags.u8th",n=0):l<=3/16?(o="noteheads.quarter",s="flags.u8th",n=1):l<=1/4?(o="noteheads.quarter",n=0):l<=3/8?(o="noteheads.quarter",n=1):l<=.5?(o="noteheads.half",n=0):l<=3/4?(o="noteheads.half",n=1):l<=1?(o="noteheads.whole",n=0):l<=1.5?(o="noteheads.whole",n=1):l<=2?(o="noteheads.dbl",n=0):(o="noteheads.dbl",n=1);var f,u=e(h,o,{verticalPos:0},{dir:"up",flag:s,dot:n,scale:c}).notehead;if(h.addHead(u),"noteheads.whole"!==o&&"noteheads.dbl"!==o){var d=u.dx+u.w;f=new a(null,d,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),h.addRight(f)}return h},e.exports=n},6183:function(e){var t=function(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),void 0!==e.voiceNumber&&(this.voiceNumber=e.voiceNumber),void 0!==e.style&&(this.dotted=!0),this.internalNotes=[]};t.prototype.addInternalNote=function(e){this.internalNotes.push(e)},t.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)},t.prototype.setStartX=function(e){this.startLimitX=e},t.prototype.setEndX=function(e){this.endLimitX=e},t.prototype.setHint=function(){this.hint=!0},t.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e;e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.anchor1&&"down"===this.anchor1.stemDir&&this.anchor2&&"down"===this.anchor2.stemDir?this.above=!0:this.anchor1&&"up"===this.anchor1.stemDir&&this.anchor2&&"up"===this.anchor2.stemDir?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=e>=6}},t.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++)"down"===this.internalNotes[t].stemDir&&(e=!0);this.above=e}},t.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},t.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},t.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&"up"===this.anchor1.stemDir&&!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;this.above&&"up"===this.anchor2.stemDir&&!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}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)},t.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)}},e.exports=t},1134:function(e,t,r){var i=r(1716),a=r(6994);e.exports=function(e,t,r,n,s,o,c,l,h,f){if(this.rows=[],e.header&&o){var u=f.calc("X","headerfont","abcjs-header abcjs-meta-top").height;i(this.rows,{marginLeft:c,text:e.header.left,font:"headerfont",klass:"header meta-top",marginTop:-u,info:t.header,name:"header"},f),i(this.rows,{marginLeft:c+s/2,text:e.header.center,font:"headerfont",klass:"header meta-top",marginTop:-u,anchor:"middle",info:t.header,name:"header"},f),i(this.rows,{marginLeft:c+s,text:e.header.right,font:"headerfont",klass:"header meta-top",marginTop:-u,anchor:"end",info:t.header,name:"header"},f)}o&&this.rows.push({move:l.top});var d=r.titleleft?"start":"middle",p=r.titleleft?c:c+s/2;if(e.title){var m=h?"abcjs-title":"";a(this.rows,e.title,"titlefont",m,"title",p,{marginTop:l.title,anchor:d,absElemType:"title",info:t.title},f)}if(n.length)for(var g=0;g<n.length&&n[g].subtitle;)m=h?"abcjs-text abcjs-subtitle":"",a(this.rows,n[g].subtitle.text,"subtitlefont",m,"subtitle",p,{marginTop:l.subtitle,anchor:d,absElemType:"subtitle",info:n[g].subtitle},f),g++;if(e.rhythm||e.origin||e.composer){if(this.rows.push({move:l.composer}),e.rhythm&&e.rhythm.length>0){var v=!(!e.composer&&!e.origin);m=h?"abcjs-rhythm":"",i(this.rows,{marginLeft:c,text:e.rhythm,font:"infofont",klass:m,absElemType:"rhythm",noMove:v,info:t.rhythm,name:"rhythm"},f)}e.composer&&e.composer,e.origin&&e.origin;var b=e.composer?e.composer:"";e.origin&&("string"==typeof b&&"string"==typeof e.origin?b+=" ("+e.origin+")":"string"==typeof b&&"string"!=typeof e.origin?((b=[{text:b}]).push({text:" ("}),(b=b.concat(e.origin)).push({text:")"})):(b.push({text:" ("}),(b=b.concat(e.origin)).push({text:")"}))),b&&(m=h?"abcjs-composer":"",a(this.rows,b,"composerfont",m,"composer",c+s,{anchor:"end",absElemType:"composer",info:t.composer,ingroup:!0},f))}e.author&&e.author.length>0&&(m=h?"abcjs-author":"",a(this.rows,e.author,"composerfont",m,"author",c+s,{anchor:"end",absElemType:"author",info:t.author},f)),e.partOrder&&e.partOrder.length>0&&(m=h?"abcjs-part-order":"",a(this.rows,e.partOrder,"partsfont",m,"part-order",c,{absElemType:"partOrder",info:t.partOrder,anchor:"start"},f))}},2096:function(e){var t=function(e,t,r){this.type="TripletElem",this.anchor1=t,this.number=e,this.durationClass=("d"+Math.round(1e3*t.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=r.flatBeams};t.prototype.isClosed=function(){return!!this.anchor2},t.prototype.middleNote=function(e){this.middleElems.push(e)},t.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&"up"!==this.anchor1.stemDir||(this.endingHeightAbove=4)},e.exports=t},3197:function(e){var t=function(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}};t.prototype.addChild=function(e){if("bar"===e.type){for(var t=!0,r=0;t&&r<this.children.length;r++)this.children[r].type.indexOf("staff-extra")<0&&"tempo"!==this.children[r].type&&(t=!1);t||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=e,this.setRange(e)},t.prototype.setLimit=function(e,t){var r=t.specialY;r||(r=t),r[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],r[e]):this.specialY[e]=r[e])},t.prototype.adjustRange=function(e){void 0!==e.bottom&&(this.bottom=Math.min(this.bottom,e.bottom)),void 0!==e.top&&(this.top=Math.max(this.top,e.top))},t.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)},t.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setWidth=function(e){this.w=e},e.exports=t},6020:function(e,t,r){var i=r(4331),a={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},"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},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"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},"noteheads.triangle.quarter":{d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}},n=function(e){for(var t=[],r=0,i=e.length;r<i;r++){t[r]=[];for(var a=0,n=e[r].length;a<n;a++)t[r][a]=e[r][a]}return t},s={printSymbol:function(e,t,r,i,s){if(!a[r])return null;var o=n(a[r].d);o[0][1]+=e,o[0][2]+=t;for(var c="",l=0;l<o.length;l++)c+=o[l].join(" ");return s.path=c,i.path(s)},getPathForSymbol:function(e,t,r,i,s){if(i=i||1,s=s||1,!a[r])return null;var o=n(a[r].d);return 1===i&&1===s||function(e,t,r){for(var i=0,a=e.length;i<a;i++){var n,s,o=e[i];for(n=1,s=o.length;n<s;n++)o[n]*=n%2?t:r}}(o,i,s),o[0][1]+=e,o[0][2]+=t,o},getSymbolWidth:function(e){return a[e]?a[e].w:0},symbolHeightInPitches:function(e){return(a[e]?a[e].h:0)/i.STEP},getSymbolAlign:function(e){return"scripts"===e.substring(0,7)&&"scripts.roll"!==e?"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"+":case"flags.d64th":case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"timesig.common":case"timesig.cut":default:return 0;case"flags.d32nd":case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"flags.u32nd":case"rests.whole":case"scripts.dfermata":return 1;case"flags.u64th":return 3;case"f":case"m":case"p":case"s":case"z":return-4}},setSymbol:function(e,t){a[e]=t}};e.exports=s},5810:function(e){function t(e){switch(e){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":case"B♭":return"B"}return e}e.exports=function(e,r,i){for(var a=e.split("\n"),n=0;n<a.length;n++){var s=a[n].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(s){var o=s[1]||"",c=s[2]||"",l=s[4]||"";i&&(o=t(o),l=t(l));var h=r?"":"",f=l?"/"+l:"";a[n]=[o,c,f].join(h)}}return a.join("\n")}},4750:function(e,t,r){var i=r(3987),a=r(2435),n=r(4331),s=r(2187),o=r(8832);e.exports=function(e,t,r,c,l){if(!t.invisible){var h=t.children.length>0&&"TempoElement"===t.children[0].type;t.elemset=[],o.beginGroup(e.paper,e.controller);for(var f=0;f<t.children.length;f++){var u=t.children[f];if("TempoElement"===u.type)i(e,u);else{var d=a(e,u,r);"symbol"===u.type&&u.c&&u.c.indexOf("notehead")>=0&&d.setAttribute("class","abcjs-notehead")}}var p=t.type;if(("note"===t.type||"rest"===t.type)&&(t.counters=e.controller.classes.getCurrent(),p=(p+=" d"+Math.round(1e3*t.durationClass)/1e3).replace(/\./g,"-"),t.abcelem.pitches))for(var m=0;m<t.abcelem.pitches.length;m++)p+=" p"+t.abcelem.pitches[m].pitch;var g=o.endGroup(p,t.type);if(g){if(t.cloned&&(t.cloned.overrideClasses=g.className.baseVal),t.overrideClasses){var v=g.classList&&g.classList.length>0?g.classList[0]+" ":"";g.setAttribute("class",v+t.overrideClasses)}if(h)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,c.add(t,g,!1,l);else{t.elemset.push(g);var b=!1;"note"!==t.type&&"tabNumber"!==t.type||(b=!0),c.add(t,g,b,l)}}else t.elemset.length>0&&c.add(t,t.elemset[0],"note"===t.type,l);if(t.klass&&s(t.elemset,"mark","","#00ff00"),t.hint&&s(t.elemset,"abcjs-hint","",null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var y=0;y<t.heads.length;y++)t.notePositions.push({x:t.heads[y].x+t.heads[y].w/2,y:l.zero-t.heads[y].pitch*n.STEP})}}}},7489:function(e,t,r){var i=r(6454),a=r(7199);function n(e,t,r,i,n,s){r=a(e.calcY(r)),n=a(e.calcY(n)),t=a(t),i=a(i);var o=a(r+s);return"M"+t+" "+r+" L"+i+" "+n+"L"+i+" "+a(n+s)+" L"+t+" "+o+"z"}function s(e,t,r,i){return t+(i-e)*r}e.exports=function(e,t){if(0!==t.beams.length){for(var r="",a=0;a<t.beams.length;a++){var o=t.beams[a];if(o.split){for(var c=(m=o.startX,g=o.startY,v=o.endX,(o.endY-g)/(v-m)),l=[],h=0;h<o.split.length;h+=2)l.push([o.split[h],o.split[h+1]]);for(h=0;h<l.length;h++){var f=s(o.startX,o.startY,c,l[h][0]),u=s(o.startX,o.startY,c,l[h][1]);r+=n(e,l[h][0],f,l[h][1],u,o.dy)}}else r+=n(e,o.startX,o.startY,o.endX,o.endY,o.dy)}var d=("abcjs-d"+t.duration).replace(/\./g,"-"),p=e.controller.classes.generate("beam-elem "+d);return[i(e,{path:r,stroke:"none",fill:e.foregroundColor,class:p})]}var m,g,v}},129:function(e,t,r){var i=r(6764),a=r(4331),n=r(5759);function s(e,t,r,a){return i("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 o=function(e,t,r,o,c,l,h){var f;if(l){e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":c});var u=r+(o-r)/2;u-=e.controller.getTextSize.baselineToCenter(l,"voicefont","staff-extra voice-name",0,1),n(e,{x:e.padding.left,y:u,text:l,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===c?f=function(e,t,r,i,a){var n=i-r,o=s(t,r,[7.5,-8,21,0,18.5,-10.5,7.5],[0,n/5.5,n/3.14,n/2,n/2.93,n/4.88,0]);return o+=s(t,r,[0,17.5,-7.5,6.6,-5,20,0],[n/2,n/1.46,n/1.22,n,n/1.19,n/1.42,n/2]),e.paper.path({path:o,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(a),"data-name":a})}(e,t,r,o,c):"bracket"===c&&(f=function(e,t,r,n,s){t+=a.STEP;var o=.75*a.STEP,c=.75*a.STEP,l=n-r,h=i("M %f %f l %f %f l %f %f l %f %f z",t,r-c,0,l+2*c,o,0,0,-(l+2*c)),f=2*a.STEP,u=a.STEP;return h+=i("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r-c,.6*f,.2*u,f,-u,.1*-f,.3*u,-f,u+a.STEP),h+=i("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r+c+l,.6*f,.2*-u,f,u,.1*-f,.3*-u,-f,-u-a.STEP),e.paper.path({path:h,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(s),"data-name":s})}(e,t,r,o,c)),l&&(f=e.paper.closeGroup()),h.wrapSvgEl({el_type:c,startChar:-1,endChar:-1},f),f};e.exports=function(e,t,r){var i=t.startVoice.staff.absoluteY-10*a.STEP;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-2*a.STEP:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-2*a.STEP:t.endY=t.startVoice.staff.absoluteY-2*a.STEP,o(e,t.x,i,t.endY,t.type,t.header,r)}},3245:function(e,t,r){var i=r(6764),a=r(6454),n=r(7199),s=function(e,t,r,s,o,c,l){t=n(t),r=n(r),s=n(s),o=n(o),c=n(c),l=n(l);var h=i("M %f %f L %f %f M %f %f L %f %f",c,t,l,r,c,s,l,o);return a(e,{path:h,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var i,a=e.calcY(t.pitch)+4,n=t.anchor1?t.anchor1.x:0,o=t.anchor2?t.anchor2.x:800;return i="<"===t.dir?s(e,a+4,a,a+4,a+8,n,o):s(e,a,a+4,a+8,a+4,n,o),r.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},i),[i]}},1547:function(e){e.exports=function(e,t,r){var i=e.paper.rectBeneath(t);return r&&e.paper.text(r,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),i}},5012:function(e,t,r){var i=r(5537),a=r(7611),n=r(5668),s=r(4331),o=r(3524);function c(e,t,r,a){i(e,t,r,a);var n=t.height*s.STEP;return e.y+=n,t}function l(e,t,r,i){var a=-(r.staffs[r.staffs.length-1].bottom-2),n=(i.staffs[0].top-10+a)*s.STEP;n<t&&e.moveY(t-n)}e.exports=function(e,t,r,i,s,h,f,u,d,p){var m=new o(e.paper,u,d),g={};t.shouldAddClasses&&(g.klass="abcjs-meta-top"),e.paper.openGroup(g),e.moveY(e.padding.top),n(e,r.topText,m),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var v=[],b=0;b<r.lines.length;b++){t.incrLine();var y=r.lines[b];if(y.staff){t.shouldAddClasses&&(g.klass="abcjs-staff l"+t.lineNumber),e.paper.openGroup(g),y.vskip&&e.moveY(y.vskip),v.length>=1&&l(e,e.spacing.staffSeparation,v[v.length-1],y.staffGroup);var x=c(e,y.staffGroup,m,b);x.line=p+b,v.push(x),e.paper.closeGroup()}else y.nonMusic&&(t.shouldAddClasses&&(g.klass="abcjs-non-music"),e.paper.openGroup(g),n(e,y.nonMusic,m),e.paper.closeGroup())}return t.reset(),r.bottomText&&r.bottomText.rows&&r.bottomText.rows.length>0&&(t.shouldAddClasses&&(g.klass="abcjs-meta-bottom"),e.paper.openGroup(g),e.moveY(24),n(e,r.bottomText,m),e.paper.closeGroup()),a(e,s,f,h),{staffgroups:v,selectables:m.getElements()}}},9879:function(e,t,r){var i=r(4777);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var a=i(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]}},5947:function(e,t,r){var i=r(6764),a=r(5759),n=r(6454),s=r(7199);e.exports=function(e,t,r,o,c){void 0===t.pitch&&window.console.error("Ending Element y-coordinate not set.");var l=s(e.calcY(t.pitch)),h="";t.anchor1&&(r=s(t.anchor1.x+t.anchor1.w),h+=i("M %f %f L %f %f ",r,l,r,s(l+20))),t.anchor2&&(o=s(t.anchor2.x),h+=i("M %f %f L %f %f ",o,l,o,s(l+20))),h+=i("M %f %f L %f %f ",r,l,o,l),e.paper.openGroup({klass:e.controller.classes.generate("ending"),"data-name":"ending"}),n(e,{path:h,stroke:e.foregroundColor,fill:e.foregroundColor,"data-name":"line"}),t.anchor1&&a(e,{x:s(r+5),y:s(e.calcY(t.pitch-.5)),text:t.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:t.text});var f=e.paper.closeGroup();return c.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},f),[f]}},9045:function(e,t,r){var i=r(6764),a=r(6454),n=r(7199);function s(e,t,r){return n(e+r*t)}var o=[[3.5,-4.8]],c=[[1.5,-1],[.3,-.3],[-3.5,3.8]],l=[[-1.5,2]],h=[[3,4],[3,-4]],f=[[-3,4],[-3,-4]];function u(e,t){for(var r="",i=0;i<e.length;i++)r+="l"+e[i][0]+" "+s(e[i][1],t,e[i][0]);return r}var d=function(e,t,r,n,s){var d,p=i("M %f %f",t,r);for(p+=u(o,s),d=0;d<n;d++)p+=u(h,s);for(p+=u(c,s),d=0;d<n;d++)p+=u(f,s);return p+=u(l,s)+"z",a(e,{path:p,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("decoration"),"data-name":"glissando"})};e.exports=function(e,t,r){t.anchor1&&t.anchor2&&t.anchor1.heads&&t.anchor2.heads&&0!==t.anchor1.heads.length&&0!==t.anchor2.heads.length||window.console.error("Glissando Element not set.");var i,a,n=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,h=function(e,t,r,i){var a=r-e,n=i-t;return Math.sqrt(a*a+n*n)}(c,n,l,o),f=t.anchor1.w/2+4,u=t.anchor2.w/2+4,p=function(e,t,r,i){return(i-t)/(r-e)}(c,n,l,o),m=s(n,p,f),g=(s(o,p,-u),i=h-f-u,a=5,Math.max(2,Math.floor((i-2*a)/6))),v=d(e,c+f,m,g,p);return r.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},v),[v]}},8832:function(e,t,r){var i=r(7199);function a(){this.ingroup=!1}a.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},a.prototype.isInGroup=function(){return this.ingroup},a.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]=i(e[0][1]-this.lastM[0]),e[0][2]=i(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++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},a.prototype.endGroup=function(e,t){this.ingroup=!1;for(var r=0;r<this.path.length;r++)this.path[r].join(" ");this.path=[];var i=this.paper.closeGroup();return i&&(i.setAttribute("class",this.controller.classes.generate(e)),i.setAttribute("fill",this.controller.renderer.foregroundColor),i.setAttribute("stroke","none"),i.setAttribute("data-name",t)),i};var n=new a;e.exports=n},5668:function(e,t,r){var i=r(4169),a=r(5759);e.exports=function(e,t,r){for(var n=0;n<t.rows.length;n++){var s=t.rows[n];if(s.absmove)e.absolutemoveY(s.absmove);else if(s.move)e.moveY(s.move);else if(s.text||s.phrases){var o=s.left?s.left:0,c=a(e,{x:o,y:e.y,text:s.text,phrases:s.phrases,"dominant-baseline":s["dominant-baseline"],type:s.font,klass:s.klass,name:s.name,anchor:s.anchor});s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:s.text},c)}else if(s.separator)i(e,s.separator);else if(s.startGroup)e.paper.openGroup({klass:s.klass,"data-name":s.name});else if(s.endGroup){var l=e.paper.closeGroup();s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:""},l)}}}},6637:function(e,t,r){var i=r(6764),a=r(7199);e.exports=function(e,t,r,n,s,o,c){var l=e.foregroundColor;t=a(t),r=a(r);var h=a(n-c),f=a(n+c);if(e.firefox112){var u={x1:t,x2:r,y1:n+=c/2,y2:n,stroke:e.foregroundColor,"stroke-width":Math.abs(2*c)};return s&&(u.class=s),o&&(u["data-name"]=o),e.paper.lineToBack(u)}var d={path:i("M %f %f L %f %f L %f %f L %f %f z",t,h,r,h,r,f,t,f),stroke:"none",fill:l};return o&&(d["data-name"]=o),s&&(d.class=s),e.paper.pathToBack(d)}},6454:function(e){e.exports=function(e,t,r){return e.paper.path(t)}},3624:function(e,t,r){var i=r(8832),a=r(7199);e.exports=function(e,t,r,n,s,o,c){if(r<0||n<s){var l=a(s);s=a(n),n=l}else n=a(n),s=a(s);t=a(t);var h=a(t+r);if(e.firefox112){var f={x1:t+=r/2,x2:t,y1:n,y2:s,stroke:e.foregroundColor,"stroke-width":Math.abs(r)};return o&&(f.class=o),c&&(f["data-name"]=c),e.paper.lineToBack(f)}for(var u=[["M",t,n],["L",t,s],["L",h,s],["L",h,n],["z"]],d=(f={path:""},0);d<u.length;d++)f.path+=u[d].join(" ");return o&&(f.class=o),c&&(f["data-name"]=c),i.isInGroup()||(f.stroke="none",f.fill=e.foregroundColor),e.paper.pathToBack(f)}},4777:function(e,t,r){var i=r(5759),a=r(6020),n=r(8832);e.exports=function(e,t,r,s,o){var c,l,h,f,u,d;if(!s)return null;if(s.length>1&&s.indexOf(".")<0){var p=n.isInGroup()?"":o.klass;e.paper.openGroup({"data-name":o.name,klass:p});for(var m=0,g=0;g<s.length;g++){var v=s[g];l=a.getYCorr(v),(c=a.printSymbol(t+m,e.calcY(r+l),v,e.paper,{stroke:o.stroke,fill:o.fill}))?g<s.length-1&&(m+=(h=v,f=s[g+1],u=a.getSymbolWidth(v),d=void 0,d=u,"f"===h&&"f"===f&&(d=2*d/3),"p"===h&&"p"===f&&(d=5*d/6),"f"===h&&"z"===f&&(d=5*d/8),d)):i(e,{x:t,y:e.y,text:"no symbol:"+s,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return e.paper.closeGroup()}return l=a.getYCorr(s),(c=n.isInGroup()?a.printSymbol(t,e.calcY(r+l),s,e.paper,{"data-name":o.name}):a.printSymbol(t,e.calcY(r+l),s,e.paper,{klass:o.klass,stroke:o.stroke,fill:o.fill,"data-name":o.name}))?c:(i(e,{x:t,y:e.y,text:"no symbol:"+s,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},2435:function(e,t,r){var i=r(5759),a=r(3624),n=r(7865),s=r(4777);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error(t.type+" Relative Element y-coordinate not set.");var o=e.calcY(t.pitch);switch(t.type){case"symbol":if(null===t.c)return null;var c="symbol";t.klass&&(c+=" "+t.klass),t.graphelem=s(e,t.x,t.pitch,t.c,{scalex:t.scalex,scaley:t.scaley,klass:e.controller.classes.generate(c),name:t.name});break;case"debug":t.graphelem=i(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 l="tabnumberfont",h="abcjs-tab-number";t.isGrace&&(l="tabgracefont",o+=2.5,h="tab-grace"),t.graphelem=i(e,{x:t.x,y:o,text:""+t.c,type:l,klass:e.controller.classes.generate(h),anchor:"middle",centerVertically:!1,dim:t.dim,cursor:"default"},!1);break;case"barNumber":t.graphelem=i(e,{x:t.x,y:o,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=i(e,{x:t.x,y:o,text:t.c,type:"vocalfont",klass:e.controller.classes.generate("lyric"),anchor:"middle",dim:t.dim,name:"lyric"},!1);break;case"chord":t.graphelem=i(e,{x:t.x,y:o,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=i(e,{x:t.x,y:o+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=i(e,{x:t.x,y:o,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=i(e,{x:t.x+t.w/2,y:o,text:t.c,type:"tempofont",klass:e.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:t.dim},!1);break;case"part":t.graphelem=i(e,{x:t.x,y:o,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=a(e,t.x,t.linewidth+e.lineThickness,o,r||e.calcY(t.pitch2),null,"bar");break;case"stem":var f=t.linewidth>0?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=a(e,t.x,f,o,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=n(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger",.35+e.lineThickness)}return 1!==t.scalex&&t.graphelem&&function(e,t,r,i,a,n){e.setAttributeOnElement(t,{style:"transform:scale("+r+","+i+");transform-origin:"+a+"px "+n+"px;"})}(e.paper,t.graphelem,t.scalex,t.scaley,t.x,o),t.graphelem}},7199:function(e){e.exports=function(e){return parseFloat(e.toFixed(2))}},3524:function(e,t,r){var i=r(5741),a=r(5829);function n(e,t,r){this.elements=[],this.paper=e,this.tuneNumber=r,this.selectTypes=t}n.prototype.getElements=function(){return this.elements},n.prototype.add=function(e,t,r,i){if(this.canSelect(e)){var a;a=void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(t,a);var n={absEl:e,svgEl:t,isDraggable:r};void 0!==i&&(n.staffPos=i),this.elements.push(n)}},n.prototype.canSelect=function(e){return!(!1===this.selectTypes||!e||!e.abcelem||!0!==this.selectTypes&&!(void 0===this.selectTypes?"note"===e.abcelem.el_type||"tabNumber"===e.abcelem.el_type:this.selectTypes.indexOf(e.abcelem.el_type)>=0))},n.prototype.wrapSvgEl=function(e,t){var r={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:i,unhighlight:a};this.add(r,t,!1)},e.exports=n},4169:function(e){e.exports=function(e,t){var r=Math.round(e.y),i=(e.controller.width-t)/2,a=i+t,n="M "+i+" "+r+" L "+a+" "+r+" L "+a+" "+(r+1)+" L "+i+" "+(r+1)+" L "+i+" "+r+" z";e.paper.pathToBack({path:n,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:e.controller.classes.generate("defined-text")})}},7611:function(e){e.exports=function(e,t,r,i){var a=(t+e.padding.left+e.padding.right)*r,n=(e.y+e.padding.bottom)*r;if(e.isPrint&&(n=Math.max(n,1056)),""!==e.ariaLabel){var s="Sheet Music";e.abctune&&e.abctune.metaText&&e.abctune.metaText.title&&(s+=' for "'+e.abctune.metaText.title+'"'),e.paper.setTitle(s);var o=e.ariaLabel?e.ariaLabel:s;e.paper.setAttribute("aria-label",o)}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 c={overflow:"hidden"};"resize"===i?e.paper.setResponsiveWidth(a,n):(c.width="",c.height=n+"px",r<1?(c.width=a+"px",e.paper.setSize(a/r,n/r)):e.paper.setSize(a,n)),e.paper.setScale(r),e.paper.setParentStyles(c)}},6764:function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(){for(var e,r,i,a,n,s=0,o=arguments[s++],c=[];o;){if(r=/^[^\x25]+/.exec(o))c.push(r[0]);else if(r=/^\x25{2}/.exec(o))c.push("%");else{if(!(r=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(o)))throw"Huh ?!";if(null==(e=arguments[r[1]||s++])||null==e)throw"Too few arguments.";if(/[^s]/.test(r[7])&&"number"!=typeof e)throw"Expecting number but found "+t(e);switch(r[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=r[6]?e.toExponential(r[6]):e.toExponential();break;case"f":e=r[6]?parseFloat(e).toFixed(r[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&r[6]?e.substring(0,r[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(r[7])&&r[2]&&e>0?"+"+e:e,a=r[3]?"0"==r[3]?"0":r[3][1]:" ",n=r[5]-String(e).length,i=r[5]?str_repeat(a,n):"",c.push(r[4]?e+i:i+e)}o=o.substring(r[0].length)}return c.join("")}},5537:function(e,t,r){var i=r(4331),a=r(129),n=r(3145),s=r(7641),o=r(1547),c=r(3624),l=r(5668);function h(e,t,r,n,s){if(r)for(var o=0;o<r.length;o++)r[o].isStartVoice(n)&&(r[o].startY=t-10*i.STEP,r[o].elemset=a(e,r[o],s))}function f(e,t,r){for(var a=0;a<r.length;a++)for(var n=t[r[a]].children,s=0;s<n.length;s++){var c=n[s],l=c.getFixedCoords();if(!c.invisible&&void 0!==l.t&&void 0!==l.b){var h=(l.t-l.b)*i.STEP;o(e,{x:l.x,y:e.calcY(l.t),width:l.w,height:h,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var f=0;f<c.children.length;f++){var u=c.children[f],d=u.getChordDim();if(d){var p=e.calcY(u.pitch);p+=u.dim.font.size*u.getLane(),o(e,{x:d.left,y:p,width:d.right-d.left,height:u.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}e.exports=function(e,t,r,a){for(var u,d,p,m=e.y,g=0;g<t.staffs.length;g++){var v=t.staffs[g];e.moveY(i.STEP,v.top),v.absoluteY=e.y,e.showDebug&&(e.showDebug.indexOf("box")>=0&&v.voices&&f(e,t.voices,v.voices),e.showDebug.indexOf("grid")>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:m,y2:m,stroke:"#0000ff"}),o(e,{x:e.padding.left,y:e.calcY(v.originalTop),width:e.controller.width,height:e.calcY(v.originalBottom)-e.calcY(v.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),u=0,E(v,"chordHeightAbove"),E(v,"chordHeightBelow"),E(v,"dynamicHeightAbove"),E(v,"dynamicHeightBelow"),E(v,"endingHeightAbove"),E(v,"lyricHeightAbove"),E(v,"lyricHeightBelow"),E(v,"partHeightAbove"),E(v,"tempoHeightAbove"),E(v,"volumeHeightAbove"),E(v,"volumeHeightBelow"))),e.moveY(i.STEP,-v.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 b=2,y=0,x=0;x<t.voices.length;x++){var w=t.voices[x].staff,k=t.voices[x].tabNameInfos;if(e.y=w.absoluteY,e.controller.classes.incrVoice(),!t.voices[x].duplicate){if(d||(d=e.calcY(10)),p=e.calcY(b),0!==w.lines){w.linePitch&&(b=w.linePitch),e.controller.classes.newMeasure();var T=s(e,t.startx,t.w,w.lines,w.linePitch,.35);p=T[1],w.bottomLine=p,w.topLine=T[0],w.hasTab&&(y=w.topLine),w.hasStaff&&(y=w.hasStaff.topLine,t.voices[x].barto=!0,t.voices[x].topLine=d)}h(e,w.absoluteY,t.brace,x,r),h(e,w.absoluteY,t.bracket,x,r)}n(e,t.voices[x],y,r,{top:m,zero:e.y,height:t.height*i.STEP});var C=0;if(k){var S={rows:[]};S.rows.push({absmove:p+2}),S.rows.push({left:t.startx+8,text:k.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),S.rows.push({move:k.textSize.height}),l(e,S),C=k.textSize.height}e.controller.classes.newMeasure(),t.voices[x].duplicate||(y=e.calcY(2+C))}e.controller.classes.newMeasure();var N=t.staffs.length;function E(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 n=t.specialY[r]*i.STEP;"chordHeightAbove"===r&&t.specialY.chordLines&&t.specialY.chordLines.above&&(n*=t.specialY.chordLines.above),"chordHeightBelow"===r&&t.specialY.chordLines&&t.specialY.chordLines.below&&(n*=t.specialY.chordLines.below),o(e,{x:e.padding.left,y:e.calcY(t.positionY[r]),width:e.controller.width,height:n,fill:a[u],stroke:a[u],"fill-opacity":.4,"stroke-opacity":.4},r.substr(0,4)),(u+=1)>6&&(u=0)}}N>1&&(d=t.staffs[0].topLine,p=t.staffs[N-1].bottomLine,c(e,t.startx,.6,d,p,null)),e.y=m}},7865:function(e,t,r){var i=r(6637);e.exports=function(e,t,r,a,n,s,o){var c=e.calcY(a);return i(e,t,r,c,n,s,o)}},7641:function(e,t,r){var i=r(7865);e.exports=function(e,t,r,a,n,s){var o="abcjs-top-line",c=2;n&&(c=n),e.paper.openGroup({prepend:!0,klass:e.controller.classes.generate("abcjs-staff")});var l=0,h=0;if(1===a)i(e,t,r,6,o,null,s+e.lineThickness),l=e.calcY(10),h=e.calcY(2);else for(var f=a-1;f>=0;f--){var u=(f+1)*c;h=e.calcY(u),0===l&&(l=h),i(e,t,r,u,o,null,s+e.lineThickness),o=void 0}return e.paper.closeGroup(),[l,h]}},3987:function(e,t,r){var i=r(2435),a=r(5759);e.exports=function(e,t){var r=t.x;void 0===t.pitch&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var n,s=e.calcY(t.pitch)+2;if(t.tempo.preString){n=a(e,{x:r,y:s,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0);var o=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",n).width;r+=o+o/t.tempo.preString.length}if(t.note){t.note.setX(r);for(var c=0;c<t.note.children.length;c++)i(e,t.note.children[c],r);r+=t.note.w+5;var l="= "+t.tempo.bpm;n=a(e,{x:r,y:s,text:l,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"});var h=e.controller.getTextSize.calc(l,"tempofont","tempo",n).width;r+=h+h/l.length}t.tempo.postString&&a(e,{x:r,y:s,text:t.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}},5759:function(e,t,r){var i=r(7199);e.exports=function(e,t,r){var a,n=t.y;if(t.phrases)return c=e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);if(t.lane){var s=.25*t.dim.font.size;n+=(t.dim.font.size+s)*t.lane}t.dim?(a=t.dim).attr.class=t.klass:a=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(a.attr["text-anchor"]=t.anchor),t["dominant-baseline"]&&(a.attr["dominant-baseline"]=t["dominant-baseline"]),a.attr.x=t.x,a.attr.y=n,t.centerVertically||(a.attr.y+=a.font.size),"debugfont"===t.type&&(console.log("Debug msg: "+t.text),a.attr.stroke="#ff0000"),t.cursor&&(a.attr.cursor=t.cursor);var o=t.text.replace(/\n\n/g,"\n \n");o=o.replace(/^\n/," \n"),a.font.box&&(r||e.paper.openGroup({klass:a.attr.class,fill:e.foregroundColor,"data-name":t.name}),"end"===a.attr["text-anchor"]?a.attr.x-=a.font.padding:"start"===a.attr["text-anchor"]&&(a.attr.x+=a.font.padding),a.attr.y+=a.font.padding,delete a.attr.class),t.noClass&&delete a.attr.class,a.attr.x=i(a.attr.x),a.attr.y=i(a.attr.y),t.name&&(a.attr["data-name"]=t.name);var c=e.paper.text(o,a.attr);if(a.font.box){var l=c.getBBox(),h=0;"middle"===a.attr["text-anchor"]?h=l.width/2+a.font.padding:"end"===a.attr["text-anchor"]&&(h=l.width+2*a.font.padding);var f=0;t.centerVertically&&(f=l.height-a.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-h),y:Math.round(n-f),width:Math.round(l.width+2*a.font.padding),height:Math.round(l.height+2*a.font.padding)}),r||(c=e.paper.closeGroup())}return c}},3272:function(e,t,r){var i=r(6764),a=r(7199),n=function(e,t,r){e.anchor1&&e.anchor2?e.anchor1.pitch===e.anchor2.pitch&&0===e.internalNotes.length?e.isTie=!0:e.isTie=!1:e.isTie=!0,e.isTie?(e.calcTieDirection(),e.calcX(t,r),e.calcTieY()):(e.calcSlurDirection(),e.calcX(t,r),e.calcSlurY()),e.avoidCollisionAbove()},s=function(e,t,r,n,s,o,c,l,h){var f=l?1.2:1.5;t=a(t+6),r=a(r+4),n+=o?f:-f,s+=o?f:-f;var u,d=a(e.calcY(n)),p=a(e.calcY(s)),m=r-t,g=p-d,v=Math.sqrt(m*m+g*g),b=m/v,y=g/v,x=v/3.5,w=l?10:25,k=(o?-1:1)*Math.min(w,Math.max(4,x)),T=a(t+x*b-k*y),C=a(d+x*y+k*b),S=a(r-x*b-k*y),N=a(p-x*y+k*b);if(c?c+=" slur":c="slur",c+=l?" tie":" legato",h){c+=" dotted";var E=i("M %f %f C %f %f %f %f %f %f",t,d,T,C,S,N,r,p);u=e.paper.path({path:E,stroke:e.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}else{var _=i("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,d,T,C,S,N,r,p,a(S-2*y),a(N+2*b),a(T-2*y),a(C+2*b),t,d);u=e.paper.path({path:_,stroke:"none",fill:e.foregroundColor,class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}return u};e.exports=function(e,t,r,i,a){n(t,r,i);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=s(e,t.startX,t.endX,t.startY+c,t.endY+c,t.above,o,t.isTie,t.dotted),h=-1;t.anchor1&&!t.isTie&&(h=t.anchor1.parent.abcelem.startChar-1);var f=-1;return t.anchor2&&!t.isTie&&(f=t.anchor2.parent.abcelem.endChar+1),a.wrapSvgEl({el_type:"slur",startChar:h,endChar:f},l),[l]}},4322:function(e,t,r){var i=r(6764),a=r(5759),n=r(6454),s=r(7199);function o(e,t,r,a){return i("M %f %f L %f %f",s(e),s(t),s(r),s(a))}e.exports=function(e,t,r){e.paper.openGroup({klass:e.controller.classes.generate("triplet "+t.durationClass),"data-name":"triplet"}),t.hasBeam||function(e,t,r,i,a){r=e.calcY(r),a=e.calcY(a);var s=5,c="";c+=o(t,r,t,r+s),c+=o(i,a,i,a+s);var l=t+(i-t)/2,h=8,f=(a-r)/(i-t),u=l-h;c+=o(t,r,u,r+(u-t)*f);var d=l+h;c+=o(d,r+(d-t)*f,i,a),n(e,{path:c,stroke:e.foregroundColor,"data-name":"triplet-bracket"})}(e,t.anchor1.x,t.startNote,t.anchor2.x+t.anchor2.w,t.endNote),a(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 i=e.paper.closeGroup();return r.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},i),i}},3145:function(e,t,r){var i=r(9045),a=r(3245),n=r(9879),s=r(4322),o=r(5947),c=r(3272),l=r(7489),h=r(5759),f=r(4750);e.exports=function(e,t,r,u,d){var p=t.w-1;e.staffbottom=t.staff.bottom;var m,g,v=e.foregroundColor;if(t.color&&(e.foregroundColor=t.color),t.header){var b=h(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);u.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:t.header},b)}var y,x=!1;for(m=0;m<t.children.length;m++){"note"!==(g=t.children[m]).type&&"rest"!==g.type||(x=!0);var w=!1;"staff-extra"===g.type||e.controller.classes.isInMeasure()||(e.controller.classes.startMeasure(),w=!0),t.staff.isTabStaff&&(g.invisible=!1,"bar"==g.type&&g.abcelem.lastBar&&(r=t.topLine)),f(e,g,t.barto||m===t.children.length-1?r:0,u,d),("note"===g.type||"rest"===(y=g).type&&!(!y.abcelem||!y.abcelem.rest||"spacer"===y.abcelem.rest.type))&&e.controller.classes.incrNote(),"bar"===g.type&&!w&&x&&e.controller.classes.incrMeasure()}for(e.controller.classes.startMeasure(),m=0;m<t.beams.length;m++){var k=t.beams[m];"bar"===k?e.controller.classes.incrMeasure():l(e,k,u)}for(e.controller.classes.startMeasure(),m=0;m<t.otherchildren.length;m++)if("bar"===(g=t.otherchildren[m]))e.controller.classes.incrMeasure();else switch(g.type){case"GlissandoElem":g.elemset=i(e,g,u);break;case"CrescendoElem":g.elemset=a(e,g,u);break;case"DynamicDecoration":g.elemset=n(e,g,u);break;case"TripletElem":s(e,g,u);break;case"EndingElem":g.elemset=o(e,g,t.startx+10,p,u);break;case"TieElem":g.elemset=c(e,g,t.startx+10,p,u);break;default:console.log(g),f(e,g,t.startx+10,p,u,d)}e.foregroundColor=v}},5253:function(e,t,r){var i=r(4331),a=r(1897),n=r(8510),s=r(3736),o=r(5588),c=r(4726),l=r(1134),h=r(9316),f=r(8068),u=r(1564),d=r(1954),p=r(1328),m=r(9799),g=r(5012),v=r(4321),b=function(e,t){t=t||{},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*i.SPACE,this.initialClef=t.initialClef,this.expandToWidest=!!t.expandToWidest,this.scale=t.scale?parseFloat(t.scale):0,this.classes=new d({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 n(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",void 0!==t.ariaLabel&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};function y(e){for(var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=0;r<e.attributes.length;r++){var i=e.attributes[r];"height"!==i.name&&"aria-label"!=i.name&&t.setAttribute(i.name,i.value)}return t}b.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)},b.prototype.engraveABC=function(e,t,r){void 0===e[0]&&(e=[e]),this.reset();for(var i=0;i<e.length;i++)void 0===t&&(t=i),this.getFontAndAttr=new p(e[i].formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[i],t,r)},b.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},b.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new p(e.formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper);var t=this.jazzchords;this.setupTune(e,0),this.constructTuneElements(e),u(this.renderer,e,0,this.space);for(var r,i=[],a=!0,n=0;n<e.lines.length;n++){var s=e.lines[n];if(s.staff){if(a&&(r={left:0,measureWidths:[],total:0},i.push(r),a=!1),s.staffGroup.voices.length>0)for(var o=s.staffGroup.voices[0],c=!1,l=0,h=0;h<o.children.length;h++){var f=o.children[h];c||f.isClef||f.isKeySig||(c=!0,r.left=f.x,l=f.x),"bar"===f.type&&(r.measureWidths.push(f.x-l),r.total+=f.x-l,l=f.x)}}else a=!0}return this.jazzchords=t,i},b.prototype.setupTune=function(e,t){this.classes.reset(),void 0!==e.formatting.jazzchords&&(this.jazzchords=e.formatting.jazzchords),void 0!==e.formatting.accentAbove&&(this.accentAbove=e.formatting.accentAbove),this.renderer.newTune(e),this.engraver=new a(this.getTextSize,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams,graceSlurs:!1!==e.formatting.graceSlurs,percmap:e.formatting.percmap,initialClef:this.initialClef,jazzchords:this.jazzchords,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=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var r=e.formatting.scale?e.formatting.scale:this.scale;return"resize"===this.responsive&&(r=void 0),void 0===r&&(r=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(r),r},b.prototype.constructTuneElements=function(e){var t,r;e.topText=new l(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 i=!1,a=!1;for(t=0;t<e.lines.length;t++)if((r=e.lines[t]).staff)a=!0,r.staffGroup=this.engraver.createABCLine(r.staff,i?null:e.metaText.tempo,t),i=!0;else if(r.subtitle){if(a){var n=this.width/2+this.renderer.padding.left;r.nonMusic=new c(this.renderer.spacing.subtitle,e.formatting,r.subtitle,n,this.renderer.padding.left,this.getTextSize)}}else void 0!==r.text?(a=!0,r.nonMusic=new s(r.text,r.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):void 0!==r.separator&&r.separator.lineLength&&(a=!0,r.nonMusic=new o(r.separator.spaceAbove,r.separator.lineLength,r.separator.spaceBelow));e.bottomText=new h(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize)},b.prototype.engraveTune=function(e,t,r){var i=this.jazzchords,a=this.setupTune(e,t);this.constructTuneElements(e);var n=u(this.renderer,e,this.width,this.space,this.expandToWidest);if(this.expandToWidest&&n>this.width+1&&(e.topText=new l(e.metaText,e.metaTextInfo,e.formatting,e.lines,n,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&e.lines.length>0))for(var s=e.lines.length,o=0;o<s;++o){var c=e.lines[o];if(c.nonMusic&&c.nonMusic.rows&&c.nonMusic.rows.length>0)for(var h=c.nonMusic.rows.length,d=0;d<h;++d){var p=c.nonMusic.rows[d];p.left&&(c.subtitle||c.text&&c.text.length>0&&c.text[0].center)&&(p.left=n/2+this.renderer.padding.left)}}e.tablatures&&v.layoutTablatures(this.renderer,e);var m=g(this.renderer,this.classes,e,this.width,n,this.responsive,a,this.selectTypes,t,r);if(this.staffgroups=m.staffgroups,this.selectables=m.selectables,this.oneSvgPerLine){var b=this.renderer.paper.svg.parentNode;this.svgs=function(e,t,r,i){r||(r="Untitled");var a=t.querySelector("svg");"resize"===i&&(t.style.paddingBottom="");for(var n=a.querySelector("style"),s="resize"===i?a.viewBox.baseVal.width:a.getAttribute("width"),o=t.querySelectorAll("svg > g"),c=0,l=[],h=0;h<o.length;h++){var f=o[h],u=f.getBBox(),d=u.y-c,p=u.height+d,m=document.createElement("div"),g="overflow: hidden;";"resize"!==i&&(g+="height:"+p+"px;"),m.setAttribute("style",g);var v=y(a),b='Sheet Music for "'+r+'" section '+(h+1);v.setAttribute("aria-label",b),"resize"!==i&&v.setAttribute("height",p),"resize"===i&&(v.style.position="");var x=e.firefox112?p+1:p;v.setAttribute("viewBox","0 "+c+" "+s+" "+x),v.appendChild(n.cloneNode(!0));var w=document.createElement("title");w.innerText=b,v.appendChild(w),v.appendChild(f),m.appendChild(v),l.push(v),t.appendChild(m),c=u.y+u.height}return t.removeChild(a),l}(this.renderer,b,e.metaText.title,this.responsive)}else this.svgs=[this.renderer.paper.svg];f(this,this.svgs),this.jazzchords=i},b.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},b.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},e.exports=b},1954:function(e){var t=function(e){this.shouldAddClasses=e.shouldAddClasses,this.reset()};t.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},t.prototype.incrLine=function(){null===this.lineNumber?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},t.prototype.incrVoice=function(){null===this.voiceNumber?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},t.prototype.isInMeasure=function(){return null!==this.measureNumber},t.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},t.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},t.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},t.prototype.incrNote=function(){this.noteNumber++},t.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},t.prototype.getCurrent=function(e){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}},t.prototype.generate=function(e){if(!this.shouldAddClasses)return"";var t=[];if(e&&e.length>0&&t.push(e),"abcjs-tab-number"===e)return t.join(" ");if("text instrument-name"===e)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&t.push("l"+this.lineNumber),null!==this.measureNumber&&t.push("m"+this.measureNumber),null!==this.measureNumber&&t.push("mm"+this.measureTotal()),null!==this.voiceNumber&&t.push("v"+this.voiceNumber),e&&(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&null!==this.noteNumber&&t.push("n"+this.noteNumber),t.length>0){t=(t=t.join(" ")).split(" ");for(var r=0;r<t.length;r++)0!==t[r].indexOf("abcjs-")&&t[r].length>0&&(t[r]="abcjs-"+t[r])}return t.join(" ")},e.exports=t},1328:function(e){var t=function(e,t){this.formatting=e,this.classes=t};t.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)},t.prototype.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t){var r;r="string"==typeof e?(r=this.formatting[e])?{face:r.face,size:Math.round(4*r.size/3),decoration:r.decoration,style:r.style,weight:r.weight,box:r.box}:{face:"Arial",size:Math.round(16),decoration:"underline",style:"normal",weight:"normal"}:{face:e.face,size:Math.round(4*e.size/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var i=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;return r.padding=r.size*i,{font:r,attr:{"font-size":r.size,"font-style":r.style,"font-family":this.getFamily(r.face),"font-weight":r.weight,"text-decoration":r.decoration,class:this.classes.generate(t)}}},e.exports=t},9799:function(e){var t=function(e,t){this.getFontAndAttr=e,this.svg=t};t.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)},t.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)},t.prototype.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t,r,i){var a;a="string"==typeof t?this.attr(t,r):{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(r)}};var n=this.svg.getTextSize(e,a.attr,i);return a.font.box?{height:n.height+4*a.font.padding,width:n.width+4*a.font.padding}:n},t.prototype.baselineToCenter=function(e,t,r,i,a){return.5*this.calc(e,t,r).height+(a-i-2)*this.attr(t,r).font.size},e.exports=t},2187:function(e){e.exports=function(e,t,r,i){if(e)for(var a=0;a<e.length;a++){var n=e[a],s=n.getAttribute("highlight");s||(s="fill"),n.setAttribute(s,i);var o=n.getAttribute("class");o||(o=""),o=(o=o.replace(r,"")).replace(t,""),t.length>0&&(o.length>0&&" "!==o[o.length-1]&&(o+=" "),o+=t),n.setAttribute("class",o)}}},4331:function(e){var t={FONTEM:360,FONTSIZE:30};t.STEP=93*t.FONTSIZE/720,t.SPACE=10,t.TOPNOTE=15,t.STAVEHEIGHT=100,t.INDENT=50,e.exports=t},5741:function(e,t,r){var i=r(2187);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#ff0000"),i(this.elemset,e,"",t)}},8068:function(e,t,r){var i=r(4331);function a(e){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&d.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragYStep=0}function n(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function s(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",f.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*i.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*i.STEP+")"));break;case 9:0!==this.dragYStep&&f.bind(this)(e)}t&&e.preventDefault()}function o(e,t){var r,i,a,n=function(e,t){if(!t)return-1;for(var r=0;r<e.length;r++)if(t.dataset.index===e[r].svgEl.dataset.index)return r;return-1}(e.selectables,function(e){if(!e)return null;if("svg"===e.tagName)return e;if(!e.getAttribute)return null;for(var t=e.getAttribute("selectable");!t;)t=!e.parentElement||"svg"===(e=e.parentElement).tagName||e.getAttribute("selectable");return e}(t.target));return n>=0?(a=function(e,t,r){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/r-t.offsetY)<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}(e.selectables[n].svgEl.getBBox(),t,e.scale),r=a[0],i=a[1]):(a=function(e){var t,r,i=1,a=1,n=e.target.closest("svg"),s=0;return n&&n.viewBox&&n.viewBox.baseVal&&(0!==n.viewBox.baseVal.width&&(i=n.viewBox.baseVal.width/n.clientWidth),0!==n.viewBox.baseVal.height&&(a=n.viewBox.baseVal.height/n.clientHeight),s=n.viewBox.baseVal.y),e.target&&"svg"===e.target.tagName?(t=e.offsetX,r=e.offsetY):(t=e.layerX,r=e.layerY),[t*=i,(r*=a)+s]}(t),n=function(e,t,r){for(var i=9999999,a=-1,n=0;n<e.selectables.length&&i>0;n++){var s=e.selectables[n];if(e.getDim(s),s.dim.left<t&&s.dim.right>t&&s.dim.top<r&&s.dim.bottom>r)a=n,i=0;else if(s.dim.top<r&&s.dim.bottom>r){var o=Math.min(Math.abs(s.dim.left-t),Math.abs(s.dim.right-t));o<i&&(i=o,a=n)}else if(s.dim.left<t&&s.dim.right>t){var c=Math.min(Math.abs(s.dim.top-r),Math.abs(s.dim.bottom-r));c<i&&(i=c,a=n)}else{var l=Math.abs(t-s.dim.left)>Math.abs(t-s.dim.right)?Math.abs(t-s.dim.right):Math.abs(t-s.dim.left),h=Math.abs(r-s.dim.top)>Math.abs(r-s.dim.bottom)?Math.abs(r-s.dim.bottom):Math.abs(r-s.dim.top),f=Math.sqrt(l*l+h*h);f<i&&(i=f,a=n)}}return a>=0&&i<=12?a:-1}(e,r=a[0],i=a[1])),{x:r,y:i,clickedOn:n}}function c(e){if(e&&e.target&&e.touches&&!(e.touches.length<1)){var t=e.target.getBoundingClientRect(),r=e.touches[0].pageX-t.left,i=e.touches[0].pageY-t.top;e.touches[0].offsetX=r,e.touches[0].offsetY=i,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function l(e){var t=e;"touchstart"===e.type&&(c(e),e.touches.length>0&&(t=e.touches[0]));var r=o(this,t);r.clickedOn>=0&&("touchstart"===e.type||0===e.button)&&this.selectables[r.clickedOn]&&(this.dragTarget=this.selectables[r.clickedOn],this.dragIndex=r.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:r.x,y:r.y},this.dragging&&this.dragTarget.isDraggable&&(function(e,t){if(e){var r=v(e.svg);r[t]=!0,b(e.svg,r)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function h(e){var t=e;if("touchmove"===e.type&&(c(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart){var r=o(this,t),a=Math.round((r.y-this.dragMouseStart.y)/i.STEP);a!==this.dragYStep&&(this.dragYStep=a,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+a*i.STEP+")"))}}function f(e){var t=e;"touchend"===e.type&&this.lastTouchMove&&(c(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(m.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),d.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),function(e,t){if(e){var r=v(e.svg);delete r[t],b(e.svg,r)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function u(e){e>=0&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism="keyboard",f.bind(this)({target:this.dragTarget.svgEl}))}function d(e,t,r,i,a){var n=[];if(e.absEl.elemset){for(var s={},o=0;o<e.absEl.elemset.length;o++){var c=e.absEl.elemset[o];if(c)for(var l=c.getAttribute("class").split(" "),h=0;h<l.length;h++)s[l[h]]=!0}for(var f=0;f<Object.keys(s).length;f++)n.push(Object.keys(s)[f])}for(var d={},m=0;m<n.length;m++)p(n[m],"abcjs-v",d,"voice"),p(n[m],"abcjs-l",d,"line"),p(n[m],"abcjs-m",d,"measure");e.staffPos&&(d.staffPos=e.staffPos);for(var g=a.target;g&&g.dataset&&!g.dataset.name&&"svg"!==g.tagName.toLowerCase();)g=g.parentNode;for(var v=a.target;v&&v.dataset&&!v.dataset.index&&"svg"!==v.tagName.toLowerCase();)v=v.parentNode;v&&v.dataset&&(d.name=v.dataset.name,d.clickedName=g.dataset.name,d.parentClasses=v.classList),g&&g.classList&&(d.clickedClasses=g.classList),d.selectableElement=e.svgEl;for(var b=0;b<this.listeners.length;b++)this.listeners[b](e.absEl.abcelem,e.absEl.tuneNumber,n.join(" "),d,{step:t,max:r,index:i,setSelection:u.bind(this)},a)}function p(e,t,r,i){if(0===e.indexOf(t)){var a=e.replace(t,""),n=parseInt(a,10);""+n===a&&(r[i]=n)}}function m(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function g(e,t){m.bind(this)();for(var r=0;r<this.staffgroups.length;r++)for(var i=this.staffgroups[r].voices,a=0;a<i.length;a++)for(var n=i[a].children,s=0;s<n.length;s++){var o=n[s].abcelem.startChar,c=n[s].abcelem.endChar;(t>o&&e<c||t===e&&t===c)&&(this.selected[this.selected.length]=n[s],n[s].highlight(void 0,this.selectionColor))}}function v(e){var t=e.getAttribute("class");t||(t="");for(var r=t.split(" "),i={},a=0;a<r.length;a++)i[r[a]]=!0;return i}function b(e,t){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(i);e.setAttribute("class",r.join(" "))}e.exports=function(e,t){if(e.rangeHighlight=g,e.dragging)for(var r=0;r<e.selectables.length;r++){var i=e.selectables[r];"true"===i.svgEl.getAttribute("selectable")&&(i.svgEl.setAttribute("tabindex",0),i.svgEl.setAttribute("data-index",r),i.svgEl.addEventListener("keydown",n.bind(e)),i.svgEl.addEventListener("keyup",s.bind(e)),i.svgEl.addEventListener("focus",a.bind(e)))}for(var o=0;o<t.length;o++)t[o].addEventListener("touchstart",l.bind(e),{passive:!0}),t[o].addEventListener("touchmove",h.bind(e),{passive:!0}),t[o].addEventListener("touchend",f.bind(e),{passive:!0}),t[o].addEventListener("mousedown",l.bind(e)),t[o].addEventListener("mousemove",h.bind(e)),t[o].addEventListener("mouseup",f.bind(e))}},5829:function(e,t,r){var i=r(2187);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#000000"),i(this.elemset,"",e,t)}},6251:function(e,t,r){var i=r(6658),a=r(4331),n=r(3721),s=function(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))};function o(e,t,r,i){if(!e.children)return i;for(var a=0;a<e.children.length;a++){var n=e.children[a];t&&void 0!==n.top&&"flags.ugrace"===n.c?i=Math.max(i,n.top-r):t||void 0===n.bottom||"flags.ugrace"!==n.c||(i=Math.max(i,r-n.bottom+7))}return i}function c(e,t,r){var i=t.heads[e?0:t.heads.length-1],a=r.heads[e?0:r.heads.length-1],n=i.x;e&&(n+=i.w-.6);var s=a.x;return[n,s+=e?a.w:.6]}e.exports=function(e){if(0!==e.elems.length&&!e.allrests){var t=function(e,t){var r=e?a.STEP:-a.STEP;return t&&(r*=.4),r}(e.stemsUp,e.isgrace),r=e.elems[0],l=e.elems[e.elems.length-1],h=0,f=e.stemsUp?r.abcelem.maxpitch:r.abcelem.minpitch;h=o(r,e.stemsUp,f,h),h=o(l,e.stemsUp,f,h),h=Math.max(e.stemHeight,h+3);var u=(g=e.average,v=e.elems.length,b=h,y=e.stemsUp,x=r.abcelem.averagepitch,w=l.abcelem.averagepitch,k=e.isflat,T=e.min,C=e.max,S=e.isgrace,N=b-2,E=b-2,_=Math.round(y?Math.max(g+N,C+E):Math.min(g-N,T-E)),M=function(e,t,r,i){if(i)return 0;var a=e-t,n=r/2;return a>n&&(a=n),a<-n&&(a=-n),a}(x,w,v,k),A=_+Math.floor(M/2),B=_+Math.floor(-M/2),S||(y&&_<6||!y&&_>6)&&(A=6,B=6),[A,B]),d=c(e.stemsUp,r,l);e.addBeam({startX:d[0],endX:d[1],startY:u[0],endY:u[1],dy:t});for(var p=function(e,t,r,i,a){for(var o=[],l=[],h=0;h<e.length;h++){var f=e[h];if(!f.abcelem.rest){var u=f.heads[t?0:f.heads.length-1],d=u.x+(t?u.w:0),p=n(r.startX,r.startY,r.endX,r.endY,d),m=t?-1.5:1.5;i&&(m=2*m/3);var g=f.abcelem.duration;0===g&&(g=.25);for(var v=s(g);v<-3;v++){var b=-4-v;if(l[b]?l[b].single=!1:l[b]={x:d+(t?-.6:0),y:p+m*(b+1),durlog:v,single:!0},h>0&&f.abcelem.beambr&&f.abcelem.beambr<=b+1){l[b].split||(l[b].split=[l[b].x]);var y=c(t,e[h-1],f);l[b].split[l[b].split.length-1]>=y[0]&&(y[0]+=f.w),l[b].split.push(y[0]),l[b].split.push(y[1])}}for(var x=l.length-1;x>=0;x--)if(h===e.length-1||s(e[h+1].abcelem.duration)>-x-4){var w=d,k=p+m*(x+1);l[x].single&&(w=0===h?d+5:d-5,k=n(r.startX,r.startY,r.endX,r.endY,w)+m*(x+1));var T={startX:l[x].x,endX:w,startY:l[x].y,endY:k,dy:a};if(void 0!==l[x].split){var C=l[x].split;T.endX<=C[C.length-1]&&(C[C.length-1]-=f.w),C.push(T.endX),T.split=l[x].split}o.push(T),l=l.slice(0,x)}}}return o}(e.elems,e.stemsUp,e.beams[0],e.isgrace,t),m=0;m<p.length;m++)e.addBeam(p[m]);!function(e,t,r,s,o){for(var c=0;c<e.length;c++){var l=e[c];if(!l.abcelem.rest){var h=!l.addExtra,f=h?o:l,u=l.heads[t?0:l.heads.length-1],d=.2,p=u.pitch+(t?d:-d),m=t?u.w:0;h||(m+=u.dx);var g=u.x+m,v=n(r.startX,r.startY,r.endX,r.endY,g),b=t?-.6:.6;t||(v-=s/2/a.STEP),h&&(m+=l.heads[0].dx),"noteheads.slash.quarter"===u.c&&(t?p+=1:p-=1);var y=new i(null,m,0,p,{type:"stem",pitch2:v,linewidth:b});y.setX(f.x),f.addRight(y)}}}(e.elems,e.stemsUp,e.beams[0],t,e.mainNote)}var g,v,b,y,x,w,k,T,C,S,N,E,_,M,A,B}},3721:function(e){e.exports=function(e,t,r,i,a){return t+(i-t)/(r-e)*(a-e)}},4760:function(e){function t(e,t,r){if(t)for(var i=0;i<t.length;i++)if(t[i].header){var a=r.calc(t[i].header,"voicefont","");e=Math.max(e,a.width)}return e}function r(e,t,r){if(e)for(var a=0;a<e.length;a++)i(t,e[a]),r=Math.max(r,e[a].getWidth());return r}function i(e,t){t.x=e}e.exports=function(e,i,a,n,s){var o,c,l=e.padding.left,h=0;for(o=0;o<a.length;o++)a[o].header&&(c=i.calc(a[o].header,"voicefont",""),h=Math.max(h,c.width));h=t(h,n,i),(h=t(h,s,i))&&(h+=i.calc("A","voicefont","").width);var f=0;return f=r(n,l+=h,f),l+(f=r(s,l,f))}},1564:function(e,t,r){var i=r(6759),a=r(6934),n=r(735),s=r(4760),o=function(e,t,r,i,a,o,l){for(var h=s(e,i.getTextSize,i.voices,i.brace,i.bracket),f=r,u=0;u<8;u++){var d=n(f,e,l,i,h);if(f=c(o,a.stretchlast,t+e.padding.left,i.w,f,d.spacingUnits,d.minSpace,e.padding.left+e.padding.right),l&&console.log("setXSpace",u,i.w,f,i.minspace),null===f)break}return function(e){for(var t=0;t<e.length;t++)for(var r=e[t],i=1;i<r.children.length-1;i++){var a=r.children[i];if(a.abcelem.rest&&("whole"===a.abcelem.rest.type||"multimeasure"===a.abcelem.rest.type)){var n=r.children[i-1],s=r.children[i+1];a.center(n,s)}}}(i.voices),i.w-h};function c(e,t,r,i,a,n,s,o){if(e)if(void 0===t){if(i/r<.66)return null}else if(!(1-(i+o)/r<t))return null;return Math.abs(r-i)<2?null:n>0?((a=(r-(i-n*a))/n)*s>50&&(a=50/s),a):null}e.exports=function(e,t,r,n,s){var c,l,h=r;for(c=0;c<t.lines.length;c++)if((l=t.lines[c]).staff){var f=o(e,h,n,l.staffGroup,t.formatting,c===t.lines.length-1,!1);Math.round(f)>Math.round(h)&&(h=f,s&&(c=-1))}for(c=0;c<t.lines.length;c++)if((l=t.lines[c]).staffGroup&&l.staffGroup.voices){for(var u=0;u<l.staffGroup.voices.length;u++)i(l.staffGroup.voices[u]);a(e,l.staffGroup)}for(c=0;c<t.lines.length;c++)(l=t.lines[c]).staffGroup&&l.staffGroup.setHeight();return h}},6934:function(e,t,r){var i=r(4331),a=1;function n(e,t,r,i){if(e.specialY[r]){var n=e.specialY[r];i&&(n*=i),e.top+=n+a,t[r]=e.top}}function s(e,t,r){var i,a;for(i=0;i<t.children.length;i++)o(e,a=t.children[i],r);for(i=0;i<t.otherchildren.length;i++)switch((a=t.otherchildren[i]).type){case"CrescendoElem":c(e,a);break;case"DynamicDecoration":l(e,a);break;case"EndingElem":h(e,a)}}function o(e,t,r){for(var i=0;i<t.children.length;i++){var a=t.children[i];for(var n in t.specialY)t.specialY.hasOwnProperty(n)&&a[n]&&(a.pitch=e[n],void 0===a.top&&("TempoElement"===a.type?f(e,a):u(e,a,r),t.pushTop(a.top),t.pushBottom(a.bottom)))}}function c(e,t){t.dynamicHeightAbove?t.pitch=e.dynamicHeightAbove:t.pitch=e.dynamicHeightBelow}function l(e,t){t.volumeHeightAbove?t.pitch=e.volumeHeightAbove:t.pitch=e.volumeHeightBelow}function h(e,t){t.pitch=e.endingHeightAbove-2}function f(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var r=t.pitch-t.totalHeightInPitches+1;t.note.top=r,t.note.bottom=r;for(var i=0;i<t.note.children.length;i++){var a=t.note.children[i];a.top+=r,a.bottom+=r,a.pitch+=r,void 0!==a.pitch2&&(a.pitch2+=r)}}}function u(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/i.STEP,t.bottom=e.lyricHeightBelow+r.vocal/i.STEP,t.pitch-=r.vocal/i.STEP);break;case"debug":t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove}void 0!==t.pitch&&void 0!==t.top||console.error("RelativeElement position not set.",t.type,t.pitch,t.top,e)}e.exports=function(e,t){for(var r,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),n(c,l,"lyricHeightAbove"),n(c,l,"chordHeightAbove",c.specialY.chordLines.above),c.specialY.endingHeightAbove&&(c.specialY.chordHeightAbove?c.top+=2:c.top+=c.specialY.endingHeightAbove+a,l.endingHeightAbove=c.top),c.specialY.dynamicHeightAbove&&c.specialY.volumeHeightAbove?(c.top+=Math.max(c.specialY.dynamicHeightAbove,c.specialY.volumeHeightAbove)+a,l.dynamicHeightAbove=c.top,l.volumeHeightAbove=c.top):(n(c,l,"dynamicHeightAbove"),n(c,l,"volumeHeightAbove")),n(c,l,"partHeightAbove"),n(c,l,"tempoHeightAbove"),c.specialY.lyricHeightBelow&&(c.specialY.lyricHeightBelow+=e.spacing.vocal/i.STEP,l.lyricHeightBelow=c.bottom,c.bottom-=c.specialY.lyricHeightBelow+a),c.specialY.chordHeightBelow){l.chordHeightBelow=c.bottom;var h=c.specialY.chordHeightBelow;c.specialY.chordLines.below&&(h*=c.specialY.chordLines.below),c.bottom-=h+a}c.specialY.volumeHeightBelow&&c.specialY.dynamicHeightBelow?(l.volumeHeightBelow=c.bottom,l.dynamicHeightBelow=c.bottom,c.bottom-=Math.max(c.specialY.volumeHeightBelow,c.specialY.dynamicHeightBelow)+a):c.specialY.volumeHeightBelow?(l.volumeHeightBelow=c.bottom,c.bottom-=c.specialY.volumeHeightBelow+a):c.specialY.dynamicHeightBelow&&(l.dynamicHeightBelow=c.bottom,c.bottom-=c.specialY.dynamicHeightBelow+a),e.showDebug&&e.showDebug.indexOf("box")>=0&&(c.positionY=l);for(var f=0;f<c.voices.length;f++)s(l,t.voices[c.voices[f]],e.spacing);if(void 0!==r){var u=r+(c.top-10),d=e.spacing.systemStaffSeparation/i.STEP-u;d>0&&(c.top+=d)}r=2-c.bottom}}},735:function(e,t,r){var i=r(937);function a(e){for(var t=0;t<e.length;t++)if(!i.layoutEnded(e[t]))return!1;return!0}function n(e){return e.durationindex-(e.children[e.i]&&e.children[e.i].duration>0?0:5e-7)}e.exports=function(e,t,r,s,o){var c,l=0,h=1e3,f=o;s.startx=f;var u,d,p=0;for(r&&console.log("init layout",e),c=0;c<s.voices.length;c++)i.beginLayout(f,s.voices[c]);for(var m=0;!a(s.voices);){for(p=null,c=0;c<s.voices.length;c++)i.layoutEnded(s.voices[c])||p&&!(n(s.voices[c])<p)||(p=n(s.voices[c]));var g=[],v=[];for(c=0;c<s.voices.length;c++)n(s.voices[c])-p>1e-7?v.push(s.voices[c]):g.push(s.voices[c]);m=0;var b=0;for(c=0;c<g.length;c++)i.getNextX(g[c])>f&&(f=i.getNextX(g[c]),m=i.getSpacingUnits(g[c]),b=g[c].spacingduration);l+=m,h=Math.min(h,m),r&&console.log("currentduration: ",p,l,h);var y=void 0;for(c=0;c<g.length;c++){var x=g[c];0===x.voicenumber&&(y=c);var w=void 0!==y&&g[y].voicenumber!==x.voicenumber?g[y]:void 0;d=w,(u=x)&&u.staff&&u.staff.voices&&0!==u.staff.voices.length&&d&&d.staff&&d.staff.voices&&0!==d.staff.voices.length&&u.staff.voices[0]===d.staff.voices[0]||(w=void 0);var k=i.layoutOneItem(f,e,x,t.minPadding,w),T=k-f;if(T>0){f=k;for(var C=0;C<c;C++)i.shiftRight(T,g[C])}}for(c=0;c<v.length;c++)v[c].spacingduration-=b,i.updateNextX(f,e,v[c]);for(c=0;c<g.length;c++){var S=g[c];i.updateIndices(S)}}for(c=0;c<s.voices.length;c++)i.getNextX(s.voices[c])>f&&(f=i.getNextX(s.voices[c]),m=i.getSpacingUnits(s.voices[c]));return function(e){for(var t=0,r=0;r<e.length;r++){var i=e[r];if(i.children.length>0){var a=i.children.length-1,n=i.children[a];if("bar"===n.abcelem.el_type){var s=n.children[0].x;s>t?t=s:n.children[0].x=t}}}}(s.voices),l+=m,s.setWidth(f),{spacingUnits:l,minSpace:h}}},3294:function(e,t,r){var i=r(3721);function a(e){return e.stemsUp}e.exports=function(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 r=a(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=function(e,t,r){if(0===r.beams.length)return 0;r=r.beams[0];var a=e+(t-e)/2;return i(r.startX,r.startY,r.endX,r.endY,a)}(r,e.anchor2.x,t),e.yTextPos+=a(t)?3:-2,e.xTextPos=(o=r,c=e.anchor2.x,o+(c-o)/2),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,a(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,"rest"===e.anchor1.parent.type&&"rest"!==e.anchor2.parent.type?e.startNote=e.endNote:"rest"===e.anchor2.parent.type&&"rest"!==e.anchor1.parent.type&&(e.endNote=e.startNote);for(var n=0,s=0;s<e.middleElems.length;s++)n=Math.max(n,e.middleElems[s].top);((n+=4)>e.startNote||n>e.endNote)&&(e.startNote=n,e.endNote=n),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}}var o,c;delete e.middleElems,delete e.flatBeams}},937:function(e){var t=function(){};t.beginLayout=function(e,t){t.i=0,t.durationindex=0,t.startx=e,t.minx=e,t.nextx=e,t.spacingduration=0},t.layoutEnded=function(e){return e.i>=e.children.length},t.getNextX=function(e){return Math.max(e.minx,e.nextx)},t.getSpacingUnits=function(e){return Math.sqrt(8*e.spacingduration)},t.layoutOneItem=function(e,t,r,i,a){var n=r.children[r.i];if(!n)return 0;var s=e-r.minx,o=r.durationindex+n.duration>0?i:0;if("note"===n.abcelem.el_type&&!n.abcelem.rest&&0!==r.voicenumber&&a){var c=a.children[a.i],l=c&&(n.abcelem.maxpitch<=c.abcelem.maxpitch+1&&n.abcelem.maxpitch>=c.abcelem.minpitch-1||n.abcelem.minpitch<=c.abcelem.maxpitch+1&&n.abcelem.minpitch>=c.abcelem.minpitch-1);if(l&&n.abcelem.minpitch===c.abcelem.minpitch&&n.abcelem.maxpitch===c.abcelem.maxpitch&&c.heads&&c.heads.length>0&&n.heads&&n.heads.length>0&&c.heads[0].c===n.heads[0].c&&(l=!1),l){var h=c.heads&&c.heads.length>0?c.heads[0].realWidth:c.fixed.w;n.adjustedWidth||(n.adjustedWidth=h+n.w),n.w=n.adjustedWidth;for(var f=0;f<n.children.length;f++){var u=n.children[f];u.name.indexOf("accidental")<0&&(u.adjustedWidth||(u.adjustedWidth=u.dx+h),u.dx=u.adjustedWidth)}}}var d=function(e,t){var r=0;return"note"!==e.type&&"bar"!==e.type||(r=t),-e.extraw+r}(n,o);return s<d&&(0===r.i||"bar"!==n.type||"part"!==r.children[r.i-1].type&&"tempo"!==r.children[r.i-1].type)&&(e+=d-s),n.setX(e),r.spacingduration=n.duration,r.minx=e+function(e){return e.w}(n),r.i!==r.children.length-1&&(r.minx+=n.minspacing),this.updateNextX(e,t,r),e},t.shiftRight=function(e,t){var r=t.children[t.i];r&&(r.setX(r.x+e),t.minx+=e,t.nextx+=e)},t.updateNextX=function(e,t,r){r.nextx=e+t*Math.sqrt(8*r.spacingduration)},t.updateIndices=function(e){this.layoutEnded(e)||(e.durationindex+=e.children[e.i].duration,"bar"===e.children[e.i].type&&(e.durationindex=Math.round(64*e.durationindex)/64),e.i++)},e.exports=t},6759:function(e,t,r){var i=r(6251),a=r(3721),n=r(3294);function s(e){for(var t=0;t<e.elems.length;t++){var r=e.elems[t];if(r.top)for(var i=l(r,e),a=0;a<r.children.length;a++){var n=r.children[a];if("ornament"===n.klass&&n.bottom-1.5<i){var s=i-n.bottom+1.5;n.bottom+=s,n.top+=s,n.pitch+=s,i=r.top=n.top}}}}function o(e,t){var r=t.getChordDim();if(r){for(var i=0;i<e.length;i++)if(e[i]<r.left)return i>0&&t.putChordInLane(i),void(e[i]=r.right);e.push(r.right),t.putChordInLane(e.length-1)}}function c(e){for(var t=0,r=0;r<e.children.length;r++)e.children[r].chordHeightBelow&&t++;return t}function l(e,t){return t=t.beams[0],a(t.startX,t.startY,t.endX,t.endY,e.x)}e.exports=function(e){for(var t=0;t<e.beams.length;t++)if("BeamElem"===e.beams[t].type){i(e.beams[t]),s(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=function(e){var t,r,i,a=[0],n=[0];for(t=0;t<e.length;t++){for(r=0;r<e[t].children.length;r++)(i=e[t].children[r]).chordHeightAbove&&o(a,i);for(r=e[t].children.length-1;r>=0;r--)(i=e[t].children[r]).chordHeightBelow&&o(n,i)}return(a.length>1||n.length>1)&&function(e,t,r){for(var i=0;i<e.length;i++){c(e[i]);for(var a=0;a<e[i].children.length;a++){var n=e[i].children[a];n.chordHeightAbove&&n.invertLane(t)}}}(e,a.length,n.length),{above:a.length,below:n.length}}(e.children),t=0;t<e.otherchildren.length;t++){var a=e.otherchildren[t];"TripletElem"===a.type&&(n(a),e.adjustRange(a))}e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom)}},8510:function(e,t,r){var i=r(4331),a=r(4101),n=function(e){this.paper=new a(e),this.controller=null,this.space=3*i.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};n.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},n.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint="print"===e.media,this.setPadding(e)},n.prototype.setLineThickness=function(e){this.lineThickness=e},n.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},n.prototype.setPadding=function(e){function t(t,r,i,a,n){void 0!==e.formatting[i]?t.padding[r]=e.formatting[i]:void 0!==t.paddingOverride[r]?t.padding[r]=t.paddingOverride[r]:t.isPrint?t.padding[r]=a:t.padding[r]=n}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},n.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},n.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,stemHeight:36.67,subtitle:3.78,systemStaffSeparation:48,text:18.9,title:7.56,top:30.24,vocal:0,words:0}},n.prototype.setVerticalSpace=function(e){void 0!==e.staffsep&&(this.spacing.staffSeparation=4*e.staffsep/3),void 0!==e.composerspace&&(this.spacing.composer=4*e.composerspace/3),void 0!==e.partsspace&&(this.spacing.parts=4*e.partsspace/3),void 0!==e.textspace&&(this.spacing.text=4*e.textspace/3),void 0!==e.musicspace&&(this.spacing.music=4*e.musicspace/3),void 0!==e.titlespace&&(this.spacing.title=4*e.titlespace/3),void 0!==e.sysstaffsep&&(this.spacing.systemStaffSeparation=4*e.sysstaffsep/3),void 0!==e.subtitlespace&&(this.spacing.subtitle=4*e.subtitlespace/3),void 0!==e.topspace&&(this.spacing.top=4*e.topspace/3),void 0!==e.vocalspace&&(this.spacing.vocal=4*e.vocalspace/3),void 0!==e.wordsspace&&(this.spacing.words=4*e.wordsspace/3)},n.prototype.calcY=function(e){return this.y-e*i.STEP},n.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},n.prototype.absolutemoveY=function(e){this.y=e},e.exports=n},4101:function(e){var t="http://www.w3.org/2000/svg";function r(e){this.svg=s(),this.currentGroup=[],e.appendChild(this.svg)}function i(e,t,r){var i=r-e;return"M "+e+" "+t+" l "+i+" 0 l 0 1 l "+-i+" 0 z "}function a(e,t,r){var i=r-t;return"M "+e+" "+t+" l 0 "+i+" l 1 0 l 0 "+-i+" z "}r.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=s(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}},r.prototype.setTitle=function(e){var t=document.createElement("title"),r=document.createTextNode(e);t.appendChild(r),this.svg.insertBefore(t,this.svg.firstChild)},r.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 r=this.svg.parentNode.getAttribute("class");r?r.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",r+" 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 i=t/e*100;this.svg.parentNode.style["padding-bottom"]=i+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},r.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},r.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},r.prototype.setScale=function(e){1!==e?(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"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},r.prototype.insertStyles=function(e){var r=document.createElementNS(t,"style");r.textContent=e,this.svg.insertBefore(r,this.svg.firstChild)},r.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),this.dummySvg=null)},r.prototype.rect=function(e){var t=[],r=e.x,n=e.y,s=e.x+e.width,o=e.y+e.height;return t.push(i(r,n,s)),t.push(i(r,o,s)),t.push(a(s,n,o)),t.push(a(r,o,n)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})},r.prototype.dottedLine=function(e){var r=document.createElementNS(t,"line");r.setAttribute("x1",e.x1),r.setAttribute("x2",e.x2),r.setAttribute("y1",e.y1),r.setAttribute("y2",e.y2),r.setAttribute("stroke",e.stroke),r.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.rectBeneath=function(e){var r=document.createElementNS(t,"rect");r.setAttribute("x",e.x),r.setAttribute("width",e.width),r.setAttribute("y",e.y),r.setAttribute("height",e.height),e.stroke&&r.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&r.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&r.setAttribute("fill",e.fill),e["fill-opacity"]&&r.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.text=function(e,r,i){var a=document.createElementNS(t,"text");for(var n in a.setAttribute("stroke","none"),r)r.hasOwnProperty(n)&&a.setAttribute(n,r[n]);for(var s=(""+e).split("\n"),o=0;o<s.length;o++){var c=document.createElementNS(t,"tspan");if(c.setAttribute("x",r.x?r.x:0),0!==o&&c.setAttribute("dy","1.2em"),-1!==s[o].indexOf("")){var l=s[o].split("");if(c.textContent=l[0],l[1]){var h=document.createElementNS(t,"tspan");h.setAttribute("dy","-0.3em"),h.setAttribute("style","font-size:0.7em"),h.textContent=l[1],c.appendChild(h)}if(l[2]){var f=l[1]?"0.4em":"0.1em",u=document.createElementNS(t,"tspan");u.setAttribute("dy",f),u.setAttribute("style","font-size:0.7em"),u.textContent=l[2],c.appendChild(u)}}else c.textContent=s[o];a.appendChild(c)}return i?i.appendChild(a):this.append(a),a},r.prototype.richTextLine=function(e,r,i,a,n,s){var o=document.createElementNS(t,"text");o.setAttribute("stroke","none"),o.setAttribute("class",a),o.setAttribute("x",r),o.setAttribute("y",i),o.setAttribute("text-anchor",n),o.setAttribute("dominant-baseline","middle");for(var c=0;c<e.length;c++){for(var l=e[c],h=document.createElementNS(t,"tspan"),f=Object.keys(l.attrs),u=0;u<f.length;u++){var d=l.attrs[f[u]];""!==d&&h.setAttribute(f[u],d)}h.textContent=l.content,o.appendChild(h)}return s?s.appendChild(o):this.append(o),o},r.prototype.guessWidth=function(e,t){var r,i=this.createDummySvg(),a=this.text(e,t,i);try{r=a.getBBox(),r=isNaN(r.height)||!r.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:r.width,height:r.height}}catch(e){r={width:t["font-size"]/2,height:t["font-size"]+2}}return i.removeChild(a),r},r.prototype.createDummySvg=function(){return this.dummySvg||(this.dummySvg=s(),this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)),this.dummySvg};var n={};function s(){var e=document.createElementNS(t,"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}r.prototype.getTextSize=function(e,t,r){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};var i;if(e.length<20&&(i=e+JSON.stringify(t),n[i]))return n[i];var a,s=!r;r||(r=this.text(e,t));try{a=r.getBBox(),a=isNaN(a.height)||!a.height?this.guessWidth(e,t):{width:a.width,height:a.height}}catch(r){a=this.guessWidth(e,t)}return s&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(r):this.svg.removeChild(r)),i&&(n[i]=a),a},r.prototype.openGroup=function(e){e=e||{};var r=document.createElementNS(t,"g");return e.klass&&r.setAttribute("class",e.klass),e.fill&&r.setAttribute("fill",e.fill),e.stroke&&r.setAttribute("stroke",e.stroke),e["data-name"]&&r.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(r):this.append(r),this.currentGroup.unshift(r),r},r.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&0===e.children.length?(e.parentElement.removeChild(e),null):e},r.prototype.path=function(e){var r=document.createElementNS(t,"path");for(var i in e)e.hasOwnProperty(i)&&("path"===i?r.setAttributeNS(null,"d",e.path):"klass"===i?r.setAttributeNS(null,"class",e[i]):void 0!==e[i]&&r.setAttributeNS(null,i,e[i]));return this.append(r),r},r.prototype.pathToBack=function(e){var r=document.createElementNS(t,"path");for(var i in e)e.hasOwnProperty(i)&&("path"===i?r.setAttributeNS(null,"d",e.path):"klass"===i?r.setAttributeNS(null,"class",e[i]):r.setAttributeNS(null,i,e[i]));return this.prepend(r),r},r.prototype.lineToBack=function(e){for(var r=document.createElementNS(t,"line"),i=Object.keys(e),a=0;a<i.length;a++)r.setAttribute(i[a],e[i[a]]);return this.prepend(r),r},r.prototype.append=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)},r.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},r.prototype.setAttributeOnElement=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttributeNS(null,r,t[r])},r.prototype.moveElementToChild=function(e,t){e.appendChild(t)},e.exports=r}},t={},r=function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}(7001),r;var e,t,r}));
|
|
3
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.abcjs=t():e.ABCJS=t()}(this,(function(){return e={7001:function(e,t,r){"use strict";var i=r(1592).TuneBook,a=r(8905),n=r(5253),s=new function(){var e=!1;try{e=abcjs_is_user_script}catch(e){}this.show_midi=!e,this.hide_abc=!1,this.render_before=!1,this.midi_options={},this.render_options={},this.render_classname="abcrendered",this.text_classname="abctext",this.auto_render_threshold=20,this.show_text="show score for: ",this.debug=!1};s.start=function(){var e=window.document.body;this.errors="";var t=this.getABCContainingElements(e);if(0!==t.length){if(this.debug)for(var r=0;r<t.length;r++){var i="Possible ABC found ("+(r+1)+" of "+t.length+"):\n\n"+t[r].innerText;alert(i)}var a=t.map(this.convertToDivs,this).reduce((function(e,t){return e.concat(t)}));this.auto_render=a.length<=this.auto_render_threshold,a.forEach((function(e){this.render(e,e.abctext_)}),this)}},s.getABCContainingElements=function(e){for(var t,r=[],i=!1,a=0,n=e.childNodes.length;a<n;++a)3!==(t=e.childNodes[a]).nodeType||i?1===t.nodeType&&"TEXTAREA"!==t.tagName&&(r=r.concat(this.getABCContainingElements(t))):t.nodeValue.match(/^\s*X:/m)&&"TEXTAREA"!==t.parentNode.tagName&&(r.push(e),i=!0);return r},s.convertToDivs=function(e){for(var t,r="",i=null,a=!1,n=[],s=Array.prototype.slice.call(e.childNodes),o=0,c=s.length;o<c;++o)if(3!==(t=s[o]).nodeType||t.nodeValue.match(/^\s*$/))a&&"BR"===t.tagName||a&&1===t.nodeType?(r+="\n",i.appendChild(t)):a&&(a=!1,r=r.replace(/\n+/,"\n"),i.abctext_=r,n.push(i));else{var l=t.nodeValue;l.match(/^\s*X:/m)&&(a=!0,r="",(i=document.createElement("DIV")).className=this.text_classname,t.parentElement.insertBefore(i,t),this.hide_abc&&(i.style.display="none")),a&&(r+=l.replace(/^\n+/,""),i.appendChild(t))}return a&&(r=r.replace(/\n+$/,"\n").replace(/^\n+/,"\n"),i.abctext_=r,n.push(i)),n},s.render=function(e,t){var r=document.createElement("DIV");r.className=this.render_classname,this.render_before?e.parentElement.insertBefore(r,e):e.nextSibling?e.parentElement.insertBefore(r,e.nextSibling):e.parentElement.appendChild(r);var s=this;try{this.debug&&alert("About to render:\n\n"+t);var o=new i(t),c=new a;c.parse(o.tunes[0].abc);var l=c.getTune(),h=function(){try{var t=new n(r,s.render_options);t.engraveABC(l)}catch(i){r.remove(),(r=document.createElement("DIV")).className=s.render_classname,(t=new n(r)).engraveABC(l),s.render_before?e.parentElement.insertBefore(r,e):e.nextSibling?e.parentElement.insertBefore(r,e.nextSibling):e.parentElement.appendChild(r)}},d=document.createElement("A");d.className="abcshow",d.href="#",d.innerHTML=this.show_text+(l.metaText.title||"untitled"),this.auto_render?h():(d.onclick=function(){return h(),d.remove(),!1},r.parentElement.insertBefore(d,r))}catch(e){this.errors+=e}};var o=!0;"undefined"!=typeof abcjs_plugin_autostart&&(o=abcjs_plugin_autostart),o&&"undefined"!=typeof window&&void 0!==window.document&&("loading"!==window.document.readyState?s.start():document.addEventListener("DOMContentLoaded",(function(){s.start()})));var c={plugin:s};e.exports=c},4321:function(e,t,r){var i=r(6074),a={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}},n={inited:!1,plugins:{},register:function(e){var t=e.name,r=e.tablature;this.plugins[t]=r},setError:function(e,t){e.warnings?e.warning.push(t):e.warnings=[t]},preparePlugins:function(e,t,r){var i=null;if(r.tablature){var n=r.tablature;i=[];for(var s=0;s<n.length;s++){var o=n[s],c=o.instrument;if(null==c)return this.setError(e,"tablature 'instrument' is missing"),i;var l=a[c],h=null;if(l&&(h=this.plugins[l.name]),h){0!=r.visualTranspose&&(o.visualTranspose=r.visualTranspose),o.abcSrc=r.tablature.abcSrc;var d={classz:h,tuneNumber:t,params:o,instance:null,tabType:l};i.push(d)}else{if(""!==c)return this.setError(e,"Undefined tablature plugin: "+c),i;i.push(null)}}}return i},layoutTablatures:function(e,t){var r=t.tablatures,i=0;if(r&&r.length>0)for(var a=r.length,n=0;n<a;++n)r[n]&&r[n].params.firstStaffOnly&&(r[n].params.suppress=!1);for(var s=0;s<t.lines.length;s++){var o=t.lines[s];if(o.staff&&i++,i>1&&r&&r.length>0)for(a=r.length,n=0;n<a;++n)r[n].params.firstStaffOnly&&(r[n].params.suppress=!0);var c=o.staff;if(c)for(var l=c.length,h=0;h<c.length;h++)if(r[h]&&h<l){var d=r[h];null==d.instance&&(d.instance=new d.classz,d.instance.init(t,d.tuneNumber,d.params,h,d.tabType)),d.instance.render(e,o,h)}}},init:function(){this.inited||(this.register(new i),this.inited=!0)}};e.exports=n},1592:function(e,t,r){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=r(8905),n=r(9565),s=r(4321),o={};!function(){"use strict";o.numberOfTunes=function(e){var t=e.split("\nX:").length;return 0===t&&(t=1),t};var e=o.TuneBook=function(e){var t=n(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 r=o.numberOfTunes(e),i=[],a=0;a<r;a++)i.push(1);return o.renderEngine((function(){}),i,e,t)},o.renderEngine=function(t,r,n,o){var c=[];if(void 0!==r&&void 0!==n){var l;(!(l=r)||l.propertyIsEnumerable("length")||"object"!==i(l)||"number"!=typeof l.length)&&(r=[r]),void 0===o&&(o={});for(var h=o.startingTune?parseInt(o.startingTune,10):0,d=new e(n),u=new a,f=0;f<r.length;f++){var p=r[f];if("*"===p||"string"==typeof p&&(p=document.getElementById(p)),p)if(h>=0&&h<d.tunes.length){u.parse(d.tunes[h].abc,o,d.tunes[h].startPos-d.header.length);var m=u.getTune();o.tablature&&(s.init(),m.tablatures=s.preparePlugins(m,h,o));var g=u.getWarnings();g&&(m.warnings=g);var v=t(p,m,f,d.tunes[h].abc);c.push(v||m)}else p.innerHTML&&(p.innerHTML="");h++}return c}},o.extractMeasures=function(t){for(var r=[],i=new e(t),a=0;a<i.tunes.length;a++){for(var n=i.tunes[a],s=n.abc.split("K:"),c=s[1].split("\n"),l=s[0]+"K:"+c[0]+"\n",h=null,d=null,u=null,f=[],p=!1,m=o.parseOnly(n.abc)[0],g=m.getPickupLength()>0,v=0;v<m.lines.length;v++){var b=m.lines[v];if(b.staff)for(var y=0;y<1;y++)for(var x=b.staff[y],k=0;k<1;k++)for(var w=x.voices[k],T=0;T<w.length;T++){var C=w[T];if(null===u&&C.startChar>=0&&(u=C.startChar,d=void 0===C.chord?h:null),C.chord&&(h=C),"bar"===C.el_type){if(p){var S={abc:n.abc.substring(u,C.endChar)};(h=d&&d.chord&&d.chord.length>0?d.chord[0].name:null)&&(S.lastChord=h),C.startEnding&&(S.startEnding=C.startEnding),C.endEnding&&(S.endEnding=C.endEnding),f.push(S),u=null,p=!1}}else"note"===C.el_type&&(p=!0)}}r.push({header:l,measures:f,hasPickup:g})}return r}}(),e.exports=o},9447:function(e,t,r){var i=r(4914).relativeMajor,a={acc:"sharp",note:"f"},n={acc:"sharp",note:"c"},s={acc:"sharp",note:"g"},o={acc:"sharp",note:"d"},c={acc:"sharp",note:"A"},l={acc:"sharp",note:"e"},h={acc:"flat",note:"B"},d={acc:"flat",note:"e"},u={acc:"flat",note:"A"},f={acc:"flat",note:"d"},p={acc:"flat",note:"G"},m={acc:"flat",note:"c"},g={"C#":[a,n,s,o,c,l,{acc:"sharp",note:"B"}],"F#":[a,n,s,o,c,l],B:[a,n,s,o,c],E:[a,n,s,o],A:[a,n,s],D:[a,n],G:[a],C:[],F:[h],Bb:[h,d],Eb:[h,d,u],Cm:[h,d,u],Ab:[h,d,u,f],Db:[h,d,u,f,p],Gb:[h,d,u,f,p,m],Cb:[h,d,u,f,p,m,{acc:"flat",note:"F"}],"A#":[h,d],"B#":[],"D#":[h,d,u],"E#":[h],"G#":[h,d,u,f],none:[]};e.exports=function(e){var t=g[i(e)];return t?JSON.parse(JSON.stringify(t)):null}},4914:function(e){var t={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;e.exports={relativeMajor:function(e){r||function(){r={};for(var e=Object.keys(t),i=0;i<e.length;i++){var a=t[e[i]];r[e[i].toLowerCase()]=e[i];for(var n=0;n<a.modes.length;n++){var s=a.modes[n].toLowerCase();r[s]=e[i]}}}();var i=e.toLowerCase().match(/([a-g][b#]?)(maj|min|mix|dor|phr|lyd|loc|m)?/);if(!i||!i[2])return e;i=i[1]+i[2];var a=r[i];return a||e},relativeMode:function(e,r){var i=t[e];if(!i)return e;if(""===r)return e;var a=r.toLowerCase().match(/^(maj|min|mix|dor|phr|lyd|loc|m)/);if(!a)return e;for(var n=a[1],s=0;s<i.modes.length;s++){var o=i.modes[s],c=o.toLowerCase().indexOf(n);if(-1!==c&&c===o.length-n.length)return o.substring(0,o.length-n.length)}return e},transposeKey:function(e,r){var i=t[e];if(!i)return e;for(;r<0;)r+=12;for(var a=(i.stepsFromC+r)%12,n=0;n<Object.keys(t).length;n++){var s=Object.keys(t)[n];if(t[s].stepsFromC===a)return s}return e}}},6780:function(e,t,r){var i=r(5008),a=r(4331),n=r(1028),s=r(9716),o=r(351);e.exports=function(){function e(e,t,r,i){for(var a=0;a<i.length;a++)e[r][i[a]]=t[r][i[a]]}function t(e,t){for(;t<e.length&&null===e[t].left;)t++;return e[t]}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(),this.copyTopInfo=function(t){var r=["tempo","title","header","rhythm","origin","composer","author","partOrder"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.copyBottomInfo=function(t){var r=["unalignedWords","book","source","discography","notes","transcription","history","abc-copyright","abc-creator","abc-edited-by","footer"];e(this,t,"metaText",r),e(this,t,"metaTextInfo",r)},this.getBeatLength=function(){var e=this.getMeterFraction(),t=1;return(6===e.num||9===e.num||12===e.num||3===e.num&&8===e.den)&&(t=3),t/e.den},this.getPickupLength=function(){var e=this.getBarLength(),t=function(e,t){for(var r=0,i=0;i<e.length;i++)if(e[i].staff)for(var a=0;a<e[i].staff.length;a++)for(var n=0;n<e[i].staff[a].voices.length;n++)for(var s=e[i].staff[a].voices[n],o=1,c=0;c<s.length;c++){var l=s[c].rest&&"spacer"===s[c].rest.type;if(s[c].startTriplet&&(o=s[c].tripletMultiplier),s[c].duration&&!l&&"tempo"!==s[c].el_type&&(r+=s[c].duration*o),s[c].endTriplet&&(o=1),r>=t&&(r-=t),"bar"===s[c].el_type)return r}return r}(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 r=this.metaText?this.metaText.tempo:null;t=this.getBpm(r)}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 r=0;r<t.staff.length;r++){var i=t.staff[r].meter;if(i)return i}}return{type:"common_time"}},this.getMeterFraction=function(){var e=this.getMeter(),t=4,r=4;return e&&("specified"===e.type?(t=parseInt(e.value[0].num,10),r=parseInt(e.value[0].den,10)):"cut_time"===e.type?(t=2,r=2):"common_time"===e.type&&(t=4,r=4)),this.meter={num:t,den:r},this.meter},this.getKeySignature=function(){for(var e=0;e<this.lines.length;e++){var t=this.lines[e];if(t.staff)for(var r=0;r<t.staff.length;r++)if(t.staff[r].key)return t.staff[r].key}return{}},this.getElementFromChar=function(e){for(var t=0;t<this.lines.length;t++){var r=this.lines[t];if(r.staff)for(var i=0;i<r.staff.length;i++)for(var a=r.staff[i],n=0;n<a.voices.length;n++)for(var s=a.voices[n],o=0;o<s.length;o++){var c=s[o];if(c.startChar&&c.endChar&&c.startChar<=e&&c.endChar>e)return c}}return null},this.addElementToEvents=function(e,t,r,a,n,s,o,c,l,h){if(t.hint)return{isTiedState:void 0,duration:0};var d=t.durationClass?t.durationClass:t.duration;if(t.abcelem.rest&&"spacer"===t.abcelem.rest.type&&(d=0),d>0){for(var u=[],f=0;f<t.elemset.length;f++)null!==t.elemset[f]&&u.push(t.elemset[f]);var p=t.startTie;if(void 0!==l)e["event"+l].elements.push(u),h&&(e["event"+r]||(e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:n,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),e["event"+r].measureStart=!0,h=!1),p||(l=void 0);else{if(e["event"+r]){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(u),e["event"+r].startCharArray.push(t.abcelem.startChar),e["event"+r].endCharArray.push(t.abcelem.endChar),null===e["event"+r].startChar&&(e["event"+r].startChar=t.abcelem.startChar),null===e["event"+r].endChar&&(e["event"+r].endChar=t.abcelem.endChar),t.abcelem.midiPitches&&t.abcelem.midiPitches.length)for(e["event"+r].midiPitches||(e["event"+r].midiPitches=[]),f=0;f<t.abcelem.midiPitches.length;f++)e["event"+r].midiPitches.push(t.abcelem.midiPitches[f]);if(t.abcelem.midiGraceNotePitches&&t.abcelem.midiGraceNotePitches.length){e["event"+r].midiGraceNotePitches||(e["event"+r].midiGraceNotePitches=[]);for(var m=0;m<t.abcelem.midiGraceNotePitches.length;m++)e["event"+r].midiGraceNotePitches.push(t.abcelem.midiGraceNotePitches[m])}}else e["event"+r]={type:"event",milliseconds:r,line:s,measureNumber:o,top:a,height:n,left:t.x,width:t.w,elements:[u],startChar:t.abcelem.startChar,endChar:t.abcelem.endChar,startCharArray:[t.abcelem.startChar],endCharArray:[t.abcelem.endChar],midiPitches:t.abcelem.midiPitches?i.cloneArray(t.abcelem.midiPitches):[]},t.abcelem.midiGraceNotePitches&&(e["event"+r].midiGraceNotePitches=i.cloneArray(t.abcelem.midiGraceNotePitches));h&&(e["event"+r].measureStart=!0,h=!1)}}return{isTiedState:l,duration:d/c,nextIsBar:h||"bar"===t.type}},this.makeVoicesArray=function(){for(var e=[],t=[],r={},i=0;i<this.engraver.staffgroups.length;i++){var n=this.engraver.staffgroups[i];if(n&&n.staffs&&n.staffs.length>0)for(var s=n.staffs[0],o=s.absoluteY,c=o-s.top*a.STEP,l=n.staffs[n.staffs.length-1],h=(o=l.absoluteY)-l.bottom*a.STEP-c,d=n.voices,u=0;u<d.length;u++)if(!d[u].staff||!d[u].staff.isTabStaff){var f=!1;e[u]||(e[u]=[]),void 0===t[u]&&(t[u]=0);for(var p=d[u].children,m=0;m<p.length;m++)"tempo"===p[m].type&&(r[t[u]]=this.getBpm(p[m].abcelem)),e[u].push({top:c,height:h,line:n.line,measureNumber:t[u],elem:p[m]}),"bar"===p[m].type&&f&&t[u]++,"note"!==p[m].type&&"rest"!==p[m].type||(f=!0)}}return this.tempoLocations=r,e},this.setupEvents=function(e,r,i,a){a||(a=1);for(var n,s=[],o={},c=e,l=!0,h=this.makeVoicesArray(),d=0,u=0;u<h.length;u++){var f=c,p=Math.round(1e3*f),m=0,g=-1,v=h[u],b=i;r=this.getBeatLength()*b/60;for(var y=-1,x=0;x<v.length;x++){var k=v[x].measureNumber;y!==k&&this.tempoLocations[k]&&(b=this.tempoLocations[k],r=a*this.getBeatLength()*b/60,y=k);var w,T=v[x].elem,C=this.addElementToEvents(o,T,p,v[x].top,v[x].height,v[x].line,v[x].measureNumber,r,n,l);if(n=C.isTiedState,l=C.nextIsBar,f+=C.duration,T.duration>0&&o["event"+p]&&(w="event"+p),p=Math.round(1e3*f),"bar"===T.type){var S=T.abcelem.type,N="bar_right_repeat"===S||"bar_dbl_repeat"===S,E="1"===T.abcelem.startEnding,_="bar_left_repeat"===S||"bar_dbl_repeat"===S||"bar_right_repeat"===S;if(N){x>0&&(o[w].endX=T.x),-1===g&&(g=x);var M=0;y=-1;for(var A=m;A<g;A++){y!==(k=v[A].measureNumber)&&this.tempoLocations[k]&&(b=this.tempoLocations[k],r=a*this.getBeatLength()*b/60,y=k);var B=v[A].elem;n=(C=this.addElementToEvents(o,B,p,v[A].top,v[A].height,v[A].line,v[A].measureNumber,r,n,l)).isTiedState,l=C.nextIsBar,f+=C.duration,M=p,p=Math.round(1e3*f)}o["event"+M]&&(o["event"+M].endX=v[g].elem.x),l=!0,g=-1}E&&(g=x),_&&(m=x)}}d=Math.max(d,p)}return function(e){for(var t,r,i,a,n=e.length-1;n>=0;n--){var s=e[n];"bar"===s.type?(s.top=i,s.nextTop=t,t=i,s.bottom=a,s.nextBottom=r,r=a):"event"===s.type&&(i=s.top,a=s.top+s.height)}}(s=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t.sort((function(e,t){var r=e.milliseconds-t.milliseconds;return 0!==r?r:"bar"===e.type?-1:1}))}(o)),function(e,r){if(!(r.length<1)){for(var i=0;i<r.length-1;i++){var a=r[i],n=t(r,i+1);if(null!==a.left){var s=n&&a.top===n.top?n.left:e[a.line].staffGroup.w;void 0!==a.endX?s>a.left&&(a.endX=Math.min(a.endX,s)):a.endX=s}}var o=r[r.length-1];o.endX=e[o.line].staffGroup.w}}(this.lines,s),s.push({type:"end",milliseconds:d}),this.addUsefulCallbackInfo(s,b*a),s},this.addUsefulCallbackInfo=function(e,t){for(var r=this.millisecondsPerMeasure(t),i=0;i<e.length;i++)e[i].millisecondsPerMeasure=r},this.getBpm=function(e){var t;if(e){t=e.bpm;var r=this.getBeatLength();t=t*(e.duration&&e.duration.length>0?e.duration[0]:r)/r}if(!t){t=180;var i=this.getMeterFraction();i&&3!==i.num&&i.num%3==0&&(t=120)}return t},this.setTiming=function(e,t){if(t=t||0,!this.engraver||!this.engraver.staffgroups)return console.log("setTiming cannot be called before the tune is drawn."),this.noteTimings=[],this.noteTimings;var r=this.metaText?this.metaText.tempo:null,i=this.getBpm(r),a=1;e?r&&(a=e/i):e=i;var n=this.getBeatLength(),s=e/60,o=this.getBarLength()/n*t/s;o&&(o-=this.getPickupLength()/n/s);var c=n*s;return this.noteTimings=this.setupEvents(o,c,e,a),this.noteTimings.length>0?(this.totalTime=this.noteTimings[this.noteTimings.length-1].milliseconds/1e3,this.totalBeats=this.totalTime*s):(this.totalTime=void 0,this.totalBeats=void 0),this.noteTimings},this.setUpAudio=function(e){e||(e={});var t=n(this,e);return s(t,e,this.formatting.percmap,this.formatting.midi)},this.deline=function(e){return o(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:[]}}},351:function(e){function t(e,t){return"abselem"===e?"abselem":t}function r(e,t){e.el_type="meter",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function i(e,t){e.el_type="key",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function a(e,t){e.el_type="clef",e.startChar=-1,e.endChar=-1;for(var r=0;r<t.length;r++)t[r].unshift(e)}function n(e,t,r){e.el_type="font",e.type=r,e.startChar=-1,e.endChar=-1;for(var i=0;i<t.length;i++)t[i].unshift(e)}function s(e,r){return!e||JSON.stringify(e,t)===JSON.stringify(r,t)}function o(e){for(var t={},r=Object.keys(e),i=0;i<r.length;i++)if("staff"!==r[i])t[r[i]]=e[r[i]];else{t.staff=[];for(var a=0;a<e.staff.length;a++){for(var n={},s=Object.keys(e.staff[a]),o=0;o<s.length;o++)if("voices"!==s[o])n[s[o]]=e.staff[a][s[o]];else{n.voices=[];for(var c=0;c<e.staff[a].voices.length;c++)n.voices.push([].concat(e.staff[a].voices[c]))}t.staff.push(n)}}return t}e.exports=function(e,t){t||(t={});for(var c=!!t.lineBreaks,l=[],h=!1,d=[],u=[],f=[],p=[],m=[],g=[],v=[],b=0;b<e.length;b++){var y=e[b];if(y.staff){if(h&&!y.vskip)for(var x=l[l.length-1],k=0;k<x.staff.length;k++){var w=y.staff[k],T=x.staff[k];if(w&&(s(w.meter,d[k])||(r(w.meter,w.voices),d[k]=w.meter,delete w.meter),s(w.key,u[k])||(i(w.key,w.voices),u[k]=w.key,delete w.key),w.title&&(T.abbrevTitle=w.title),s(w.clef,f[k])||(a(w.clef,w.voices),f[k]=w.clef,delete w.clef),s(w.vocalfont,p[k])||(n(w.vocalfont,w.voices,"vocalfont"),p[k]=w.vocalfont,delete w.vocalfont),s(w.gchordfont,m[k])||(n(w.gchordfont,w.voices,"gchordfont"),m[k]=w.gchordfont,delete w.gchordfont),s(w.tripletfont,g[k])||(n(w.tripletfont,w.voices,"tripletfont"),g[k]=w.tripletfont,delete w.tripletfont),s(w.annotationfont,v[k])||(n(w.annotationfont,w.voices,"annotationfont"),v[k]=w.annotationfont,delete w.annotationfont)),w)for(var C=0;C<T.voices.length;C++){var S=T.voices[C],N=w.voices[C];c&&S.push({el_type:"break"}),N&&(T.voices[C]=S.concat(N))}}else{for(var E=0;E<y.staff.length;E++)u[E]=y.staff[E].key,d[E]=y.staff[E].meter,f[E]=y.staff[E].clef;l.push(o(y))}h=!0}else h=!1,l.push(y)}return l}},5008:function(e){var t={clone:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},cloneArray:function(e){for(var r=[],i=0;i<e.length;i++)r.push(t.clone(e[i]));return r},cloneHashOfHash:function(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.clone(e[i]));return r},cloneHashOfArrayOfHash:function(e){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=t.cloneArray(e[i]));return r},strip:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(e,t){return 0===e.indexOf(t)},endsWith:function(e,t){var r=e.length-t.length;return r>=0&&e.lastIndexOf(t)===r},last:function(e){return 0===e.length?null:e[e.length-1]}};e.exports=t},8905:function(e,t,r){var i=r(5008),a=r(8360),n=r(9928),s=r(6476),o=r(1881),c=r(1756),l=r(6780),h=r(575);e.exports=function(){"use strict";var e,t=new l,r=new h(t),d="",u="";function f(e,t,r){e.positioning||(e.positioning={}),e.positioning[t]=r}function p(e,t,r){e.fonts||(e.fonts={}),e.fonts[t]=r}this.getTune=function(){var e={formatting:t.formatting,lines:t.lines,media:t.media,metaText:t.metaText,metaTextInfo:t.metaTextInfo,version:t.version,addElementToEvents:t.addElementToEvents,addUsefulCallbackInfo:t.addUsefulCallbackInfo,getTotalTime:t.getTotalTime,getTotalBeats:t.getTotalBeats,getBarLength:t.getBarLength,getBeatLength:t.getBeatLength,getBeatsPerMeasure:t.getBeatsPerMeasure,getBpm:t.getBpm,getMeter:t.getMeter,getMeterFraction:t.getMeterFraction,getPickupLength:t.getPickupLength,getKeySignature:t.getKeySignature,getElementFromChar:t.getElementFromChar,makeVoicesArray:t.makeVoicesArray,millisecondsPerMeasure:t.millisecondsPerMeasure,setupEvents:t.setupEvents,setTiming:t.setTiming,setUpAudio:t.setUpAudio,deline:t.deline,findSelectableElement:t.findSelectableElement,getSelectableArray:t.getSelectableArray};return t.lineBreaks&&(e.lineBreaks=t.lineBreaks),t.visualTranspose&&(e.visualTranspose=t.visualTranspose),e};var m,g,v={reset:function(){for(var e in this)this.hasOwnProperty(e)&&"function"!=typeof this[e]&&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,r){"note"===r?("auto"!==this.vocalPosition&&f(e,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&f(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&f(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&f(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&f(e,"volumePosition",this.volumePosition),this.differentFont("annotationfont",t)&&p(e,"annotationfont",this.annotationfont),this.differentFont("gchordfont",t)&&p(e,"gchordfont",this.gchordfont),this.differentFont("vocalfont",t)&&p(e,"vocalfont",this.vocalfont),this.differentFont("tripletfont",t)&&p(e,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&f(e,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&f(e,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&f(e,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&f(e,"volumePosition",this.volumePosition),this.differentFont("measurefont",t)&&p(e,"measurefont",this.measurefont),this.differentFont("repeatfont",t)&&p(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 r in this.inTieChord)this.inTieChord.hasOwnProperty(r)&&(this.endingHoldOver.inTieChord[r]=this.inTieChord[r])},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 r in this.endingHoldOver.inTieChord)this.endingHoldOver.inTieChord.hasOwnProperty(r)&&(this.inTieChord[r]=this.endingHoldOver.inTieChord[r])}}},b=function(e){var t=e.replace(/\x12/g," ");return(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")},y=function(t,r,i){r||(r=" ");var a=r[i];" "!==a&&a||(a="SPACE");var n,s=b(r.substring(i-64,i))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+a+"</span>"+b(r.substring(i+1).substring(0,64));!function(e){v.warnings||(v.warnings=[]),v.warnings.push(e)}("Music Line:"+e.lineIndex+":"+(i+1)+": "+t+": "+s),n={message:t,line:r,startChar:v.iChar+i,column:i},v.warningObjects||(v.warningObjects=[]),v.warningObjects.push(n)};this.getWarnings=function(){return v.warnings},this.getWarningObjects=function(){return v.warningObjects};var x=function(t,r){if(r.indexOf("")>=0)d+=r;else if(r=d+r,d="",t){"-"!==(r=i.strip(r))[r.length-1]&&(r+=" ");for(var a=[],n=0,s=!1,o=function(t){var o=i.strip(r.substring(n,t));if(o=o.replace(/\\([-_*|~])/g,"$1"),n=t+1,o.length>0){s&&(o=o.replace(/~/g," "));var c=r[t];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=!1,l=0;l<r.length;l++){switch(r[l]){case" ":case"":o(l);break;case"-":!c&&!o(l)&&a.length>0&&(i.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":c||(o(l),a.push({skip:!0,to:"slur"}));break;case"*":c||(o(l),a.push({skip:!0,to:"next"}));break;case"|":c||(o(l),a.push({skip:!0,to:"bar"}));break;case"~":c||(s=!0)}c="\\"===r[l]}t.forEach((function(e){if(0!==a.length)if(a[0].skip){switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}"bar"!==e.el_type&&(void 0===e.lyric?e.lyric=[{syllable:"",divider:" "}]:e.lyric.push({syllable:"",divider:" "}))}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();t.syllable&&(t.syllable=t.syllable.replace(/ +/g," ")),void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else y("Can't add words before the first line of music",t,0)},k=function(t,r){if(r.indexOf("")>=0)u+=r;else if(r=u+r,u="",t){"-"!==(r=i.strip(r))[r.length-1]&&(r+=" ");for(var a=[],n=0,s=!1,o=function(t){var o=i.strip(r.substring(n,t));if(n=t+1,o.length>0){s&&(o=o.replace(/~/g," "));var c=r[t];return"_"!==c&&"-"!==c&&(c=" "),a.push({syllable:e.translateString(o),divider:c}),s=!1,!0}return!1},c=0;c<r.length;c++)switch(r[c]){case" ":case"":o(c);break;case"-":!o(c)&&a.length>0&&(i.last(a).divider="-",a.push({skip:!0,to:"next"}));break;case"_":o(c),a.push({skip:!0,to:"slur"});break;case"*":o(c),a.push({skip:!0,to:"next"});break;case"|":o(c),a.push({skip:!0,to:"bar"});break;case"~":s=!0}t.forEach((function(e){if(0!==a.length)if(a[0].skip)switch(a[0].to){case"next":case"slur":"note"===e.el_type&&null!==e.pitches&&a.shift();break;case"bar":"bar"===e.el_type&&a.shift()}else if("note"===e.el_type&&void 0===e.rest){var t=a.shift();void 0===e.lyric?e.lyric=[t]:e.lyric.push(t)}}))}else y("Can't add symbols before the first line of music",t,0)},w=function(e){if(i.startsWith(e,"%%")){var t=a.addDirective(e.substring(2));t&&y(t,e,2)}else{var n=e.indexOf("%");if(n>=0&&(e=e.substring(0,n)),0!==(e=e.replace(/\s+$/,"")).length)if(d)x(r.getCurrentVoice(),e.substring(2));else if(u)k(r.getCurrentVoice(),e.substring(2));else if(e.length<2||":"!==e[1]||g.lineContinuation)g.parseMusic(e);else{var s=m.parseHeader(e);s.regular&&g.parseMusic(e),s.newline&&g.startNewLine(),s.words&&x(r.getCurrentVoice(),e.substring(2)),s.symbols&&k(r.getCurrentVoice(),e.substring(2))}}};function T(e,t){e.push({el_type:"hint"});for(var r=0;r<t.length;r++){var a=t[r],n=i.clone(a);if(e.push(n),"bar"===a.el_type)return}}function C(e,t){for(var r=0;r<e.length;r++){var i=e[r],a=t[r];if(a)for(var n=0;n<a.voices.length;n++){var s=a.voices[n],o=i.voices[n];o&&T(o,s)}}}this.parse=function(l,h,f){h||(h={}),f||(f=0),t.reset();var p=(l=l.replace(/\r\n?/g,"\n")+"\n").split("\n\\");if(p.length>1){for(var b=1;b<p.length;b++)for(;p[b].length>0&&"\n"!==p[b][0];)p[b]=p[b].substr(1),p[b-1]+=" ";l=p.join(" ")}var T=(l=l.replace(/\\([ \t]*)(%.*)*\n/g,(function(e,t,r){return t+""+(r?Array(r.length+1).join(" "):"")+"\n"}))).split("\n");0===i.last(T).length&&T.pop(),e=new o(T,v),m=new n(e,y,v,t,r),g=new s(e,y,v,t,r,m),h.print&&(t.media="print"),v.reset(),v.iChar=f,h.visualTranspose?(v.globalTranspose=parseInt(h.visualTranspose),0===v.globalTranspose?v.globalTranspose=void 0:r.setVisualTranspose(h.visualTranspose)):v.globalTranspose=void 0,h.lineBreaks&&(v.lineBreaks=h.lineBreaks),m.reset(e,y,v,t);try{h.format&&a.globalFormatting(h.format);for(var S=e.nextLine();S;){if(h.header_only&&!1===v.is_in_header)throw"normal_abort";if(h.stop_on_warning&&v.warnings)throw"normal_abort";var N=v.is_in_header;w(S),N&&!v.is_in_header&&(r.setRunningFont("annotationfont",v.annotationfont),r.setRunningFont("gchordfont",v.gchordfont),r.setRunningFont("tripletfont",v.tripletfont),r.setRunningFont("vocalfont",v.vocalfont)),S=e.nextLine()}d&&x(r.getCurrentVoice(),""),u&&k(r.getCurrentVoice(),""),v.openSlurs=r.cleanUp(v.barsperstaff,v.staffnonote,v.openSlurs)}catch(e){if("normal_abort"!==e)throw e}var E=792,_=612;switch(v.papersize){case"legal":E=1008,_=612;break;case"A4":E=842.4,_=597.6}if(v.landscape){var M=E;E=_,_=M}t.formatting.pagewidth||(t.formatting.pagewidth=_),t.formatting.pageheight||(t.formatting.pageheight=E),h.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var r=t.lines[e].staff;if(r){for(var i=e+1;i<t.lines.length&&void 0===t.lines[i].staff;)i++;i<t.lines.length&&C(r,t.lines[i].staff)}}}(),c.wrapLines(t,v.lineBreaks,v.barNumbers)}}},9565:function(e,t,r){var i=r(5008);e.exports=function(e){"use strict";for(var t="",r=e.match(/(\s*)/),a=(e=i.strip(e)).split("\nX:"),n=1;n<a.length;n++)a[n]="X:"+a[n];var s=r?r[0].length:0,o=[];a.forEach((function(e){o.push({abc:e,startPos:s}),s+=e.length+1})),o.length>1&&!i.startsWith(o[0].abc,"X:")&&o.shift().abc.split("\n").forEach((function(e){i.startsWith(e,"%%")&&(t+=e+"\n")}));var c=t;return o.forEach((function(e){var r=e.abc.indexOf("\n\n");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("\n"),e.title=i.strip(a[0]));var n=e.pure.substring(2,e.pure.indexOf("\n"));e.id=i.strip(n)})),{header:c,tunes:o}}},8360:function(e,t,r){var i=r(5008),a={};!function(){"use strict";var e,t,r,n,s;a.initialize=function(i,a,o,c,l){e=i,t=a,n=c,s=l,(r=o).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},r.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},r.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},r.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},r.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},r.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},r.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},r.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},n.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},n.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},n.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},n.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},n.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},n.formatting.tablabelfont={face:'"Trebuchet MS"',size:16,weight:"normal",style:"normal",decoration:"none"},n.formatting.tabnumberfont={face:'"Arial"',size:11,weight:"normal",style:"normal",decoration:"none"},n.formatting.tabgracefont={face:'"Arial"',size:8,weight:"normal",style:"normal",decoration:"none"},n.formatting.annotationfont=r.annotationfont,n.formatting.gchordfont=r.gchordfont,n.formatting.historyfont=r.historyfont,n.formatting.infofont=r.infofont,n.formatting.measurefont=r.measurefont,n.formatting.partsfont=r.partsfont,n.formatting.repeatfont=r.repeatfont,n.formatting.textfont=r.textfont,n.formatting.tripletfont=r.tripletfont,n.formatting.vocalfont=r.vocalfont,n.formatting.wordsfont=r.wordsfont};var o={gchordfont:!0,measurefont:!0,partsfont:!0,annotationfont:!0,composerfont:!0,historyfont:!0,infofont:!0,subtitlefont:!0,textfont:!0,titlefont:!0,voicefont:!0},c=function(e,r,i,a,n){function s(){var s=parseInt(e[0].token);return e.shift(),r?0===e.length?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}:1===e.length&&"box"===e[0].token&&o[n]?{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s,box:!0}:(t("Extra parameters in font definition.",i,a),{face:r.face,weight:r.weight,style:r.style,decoration:r.decoration,size:s}):(t("Can't set just the size of the font since there is no default value.",i,a),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:s})}if("*"===e[0].token){if(e.shift(),"number"===e[0].type)return s();t("Expected font size number after *.",i,a)}if("number"===e[0].type)return s();for(var c,l=[],h="normal",d="normal",u="none",f=!1,p="face",m=!1;e.length;){var g=e.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?l.length>0&&"-"===g.token?(m=!0,l[l.length-1]=l[l.length-1]+g.token):m?(m=!1,l[l.length-1]=l[l.length-1]+g.token):l.push(g.token):"number"===g.type?(c?t("Font size specified twice in font definition.",i,a):c=g.token,p="modifier"):"bold"===v?h="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(o[n]?f=!0:t('This font style doesn\'t support "box"',i,a),p="finished"):"utf"===v?(g=e.shift(),p="size"):t("Unknown parameter "+g.token+" in font definition.",i,a);break;case"size":"number"===g.type?c?t("Font size specified twice in font definition.",i,a):c=g.token:t("Expected font size in font definition.",i,a),p="modifier";break;case"modifier":"bold"===v?h="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(o[n]?f=!0:t('This font style doesn\'t support "box"',i,a),p="finished"):t("Unknown parameter "+g.token+" in font definition.",i,a);break;case"finished":t('Extra characters found after "box" in font definition.',i,a)}}void 0===c?r?c=r.size:(t("Must specify the size of the font since there is no default value.",i,a),c=12):c=parseFloat(c),""===(l=l.join(" "))&&(r?l=r.face:(t("Must specify the name of the font since there is no default value.",i,a),l="sans-serif"));var b=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}}(l),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=c,f&&(y.box=!0),y):(y.face=l,y.weight=h,y.style=d,y.decoration=u,y.size=c,f&&(y.box=!0),y)},l=function(e,t,i){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(r[e]=c(t,r[e],i,0,e),r.is_in_header&&(n.formatting[e]=r[e]),null)},h=function(e,t){var r="";t.forEach((function(e){r+=e.token}));var i=parseFloat(r);if(isNaN(i)||0===i)return'Directive "'+e+'" requires a number as a parameter.';n.formatting.scale=i},d=["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"],u=function(e,t,i,a,n){if(1!==i.length||"number"!==i[0].type)return'Directive "'+t+'" requires a number as a parameter.';var s=i[0].intt;return void 0!==a&&s<a?'Directive "'+t+'" requires a number greater than or equal to '+a+" as a parameter.":void 0!==n&&s>n?'Directive "'+t+'" requires a number less than or equal to '+n+" as a parameter.":(r[e]=s,null)},f=function(e,t,i){if(1===i.length&&("true"===i[0].token||"false"===i[0].token))return r[e]="true"===i[0].token,null;var a=u(e,t,i,0,1);return null!==a?a:(r[e]=1===r[e],null)},p=function(e,t,i,a){if(1!==i.length)return'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter.";for(var n=i[0].token,s=!1,o=0;!s&&o<a.length;o++)a[o]===n&&(s=!0);return s?(r[e]=n,null):'Directive "'+t+'" requires one of [ '+a.join(", ")+" ] as a parameter."},m=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],g=["gchord","ptstress","beatstring"],v=["bassvol","chordvol","bassprog","chordprog","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","vol","volinc"],b=["program"],y=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],x=["beat"],k=["drone"],w=["portamento"],T=["expand","grace","trim"],C=["drum","chordname"];a.parseFontChangeLine=function(e){var t=(e=e.replace(/\$\$/g,"")).split("$");if(t.length>1&&r.setfont){var i=[];""!==t[0]&&i.push({text:t[0]});for(var a=1;a<t.length;a++)if("0"===t[a][0])i.push({text:t[a].substring(1).replace(/\x03/g,"$$")});else{var n=parseInt(t[a][0],10);r.setfont[n]?i.push({font:r.setfont[n],text:t[a].substring(1).replace(/\x03/g,"$$")}):i[i.length-1].text+="$"+t[a].replace(/\x03/g,"$$")}return i}return e.replace(/\x03/g,"$$")};var S=["auto","above","below","hidden"];function N(e){if(0===e.length)return{value:1};if(1===e.length)if("number"===e[0].type){if(e[0].floatt>=0||e[0].floatt<=1)return{value:e[0].floatt}}else{if("false"===e[0].token)return{value:0};if("true"===e[0].token)return{value:1}}return{error:"Directive stretchlast requires zero or one parameter: false, true, or number between 0 and 1 (received "+e[0].token+")"}}a.addDirective=function(o){var E=e.tokenize(o,0,o.length);if(0===E.length||"alpha"!==E[0].type)return null;var _=o.substring(o.indexOf(E[0].token)+E[0].token.length);_=e.stripComment(_);var M,A=E.shift().token.toLowerCase(),B="";switch(A){case"bagpipes":n.formatting.bagpipes=!0;break;case"flatbeams":n.formatting.flatbeams=!0;break;case"jazzchords":n.formatting.jazzchords=!0;break;case"accentAbove":n.formatting.accentAbove=!0;break;case"germanAlphabet":n.formatting.germanAlphabet=!0;break;case"landscape":r.landscape=!0;break;case"papersize":r.papersize=_;break;case"graceslurs":if(1!==E.length)return"Directive graceslurs requires one parameter: 0 or 1";if("0"===E[0].token||"false"===E[0].token)n.formatting.graceSlurs=!1;else{if("1"!==E[0].token&&"true"!==E[0].token)return"Directive graceslurs requires one parameter: 0 or 1 (received "+E[0].token+")";n.formatting.graceSlurs=!0}break;case"lineThickness":var L=N(E);if(void 0!==L.value&&(n.formatting.lineThickness=L.value),L.error)return L.error;break;case"stretchlast":var P=N(E);if(void 0!==P.value&&(n.formatting.stretchlast=P.value),P.error)return P.error;break;case"titlecaps":r.titlecaps=!0;break;case"titleleft":n.formatting.titleleft=!0;break;case"measurebox":n.formatting.measurebox=!0;break;case"vocal":return p("vocalPosition",A,E,S);case"dynamic":return p("dynamicPosition",A,E,S);case"gchord":return p("chordPosition",A,E,S);case"ornament":return p("ornamentPosition",A,E,S);case"volume":return p("volumePosition",A,E,S);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 function(t,r){var i=e.getMeasurement(r);return 0===i.used||0!==r.length?'Directive "'+t+'" requires a measurement as a parameter.':(n.formatting[t]=i.value,null)}(A,E);case"voicescale":if(1!==E.length||"number"!==E[0].type)return"voicescale requires one float as a parameter";var z=E.shift();return r.currentVoice&&(r.currentVoice.scale=z.floatt,s.changeVoiceScale(r.currentVoice.scale)),null;case"voicecolor":if(1!==E.length)return"voicecolor requires one string as a parameter";var H=E.shift();return r.currentVoice&&(r.currentVoice.color=H.token,s.changeVoiceColor(r.currentVoice.color)),null;case"vskip":var O=Math.round(function(t,r){var i=e.getMeasurement(r);return 0===i.used||0!==r.length?{error:'Directive "'+t+'" requires a measurement as a parameter.'}:i.value}(A,E));return O.error?O.error:(s.addSpacing(O),null);case"scale":h(A,E);break;case"sep":if(0===E.length)s.addSeparator(14,14,85,{startChar:r.iChar,endChar:r.iChar+5});else{var D=e.getMeasurement(E);if(0===D.used)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var F=D.value;if(0===(D=e.getMeasurement(E)).used)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var I=D.value;if(0===(D=e.getMeasurement(E)).used||0!==E.length)return'Directive "'+A+'" requires 3 numbers: space above, space below, length of line';var V=D.value;s.addSeparator(F,I,V,{startChar:r.iChar,endChar:r.iChar+_.length})}break;case"barsperstaff":if(null!==(B=u("barsperstaff",A,E)))return B;break;case"staffnonote":if(1!==E.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===E[0].token)r.staffnonote=!0;else{if("1"!==E[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+E[0].token+")";r.staffnonote=!1}break;case"printtempo":if(null!==(B=f("printTempo",A,E)))return B;break;case"partsbox":if(null!==(B=f("partsBox",A,E)))return B;r.partsfont.box=r.partsBox;break;case"freegchord":if(null!==(B=f("freegchord",A,E)))return B;break;case"measurenb":case"barnumbers":if(null!==(B=u("barNumbers",A,E)))return B;break;case"setbarnb":if(1!==E.length||"number"!==E[0].type)return"Directive setbarnb requires a number as a parameter.";r.currBarNumber=s.setBarNumberImmediate(E[0].intt);break;case"begintext":var Y="";for(M=e.nextLine();M&&0!==M.indexOf("%%endtext");)i.startsWith(M,"%%")?Y+=M.substring(2)+"\n":Y+=M+"\n",M=e.nextLine();s.addText(Y,{startChar:r.iChar,endChar:r.iChar+Y.length+7});break;case"continueall":r.continueall=!0;break;case"beginps":for(M=e.nextLine();M&&0!==M.indexOf("%%endps");)e.nextLine();t("Postscript ignored",o,0);break;case"deco":_.length>0&&r.ignoredDecorations.push(_.substring(0,_.indexOf(" "))),t("Decoration redefinition ignored",o,0);break;case"text":var G=e.translateString(_);s.addText(a.parseFontChangeLine(G),{startChar:r.iChar,endChar:r.iChar+_.length+7});break;case"center":var j=e.translateString(_);s.addCentered(a.parseFontChangeLine(j));break;case"font":break;case"setfont":var W=e.tokenize(_,0,_.length);if(W.length>=4&&"-"===W[0].token&&"number"===W[1].type){var q=parseInt(W[1].token);q>=1&&q<=9&&(r.setfont||(r.setfont=[]),W.shift(),W.shift(),r.setfont[q]=c(W,r.setfont[q],o,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 l(A,E,o);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(e,t,r){return 0===t.length?'Directive "'+e+'" requires a font as a parameter.':(n.formatting[e]=c(t,n.formatting[e],r,0,e),null)}(A,E,o);case"barlabelfont":case"barnumberfont":case"barnumfont":return l("measurefont",E,o);case"staves":case"score":r.score_is_present=!0;for(var X,R=function(e,t,a,n,s){(t||0===r.staves.length)&&r.staves.push({index:r.staves.length,numVoices:0});var o=i.last(r.staves);void 0!==a&&void 0===o.bracket&&(o.bracket=a),void 0!==n&&void 0===o.brace&&(o.brace=n),s&&(o.connectBarLines="end"),void 0===r.voices[e]&&(r.voices[e]={staffNum:o.index,index:o.numVoices},o.numVoices++)},U=!1,K=!1,$=!1,Q=!1,J=!1,Z=!1,ee=!1,te=function(){if(ee=!0,X){var e="start";X.staffNum>0&&("start"!==r.staves[X.staffNum-1].connectBarLines&&"continue"!==r.staves[X.staffNum-1].connectBarLines||(e="continue")),r.staves[X.staffNum].connectBarLines=e}};E.length;){var re=E.shift();switch(re.token){case"(":U?t("Can't nest parenthesis in %%score",o,re.start):(U=!0,Q=!0);break;case")":!U||Q?t("Unexpected close parenthesis in %%score",o,re.start):U=!1;break;case"[":K?t("Can't nest brackets in %%score",o,re.start):(K=!0,J=!0);break;case"]":!K||J?t("Unexpected close bracket in %%score",o,re.start):(K=!1,r.staves[X.staffNum].bracket="end");break;case"{":$?t("Can't nest braces in %%score",o,re.start):($=!0,Z=!0);break;case"}":!$||Z?t("Unexpected close brace in %%score",o,re.start):($=!1,r.staves[X.staffNum].brace="end");break;case"|":te();break;default:for(var ie="";("alpha"===re.type||"number"===re.type)&&(ie+=re.token,re.continueId);)re=E.shift();R(ie,!U||Q,J?"start":K?"continue":void 0,Z?"start":$?"continue":void 0,ee),Q=!1,J=!1,Z=!1,ee=!1,X=r.voices[ie],"staves"===A&&te()}}break;case"newpage":var ae=e.getInt(_);s.addNewPage(0===ae.digits?-1:ae.value);break;case"abc":var ne=_.split(" ");switch(ne[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var se=ne.shift();s.addMetaText(A+se,ne.join(" "),{startChar:r.iChar,endChar:r.iChar+_.length+5});break;default:return"Unknown directive: "+A+ne[0]}break;case"header":case"footer":var oe=e.getMeat(_,0,_.length);'"'===(oe=_.substring(oe.start,oe.end))[0]&&'"'===oe[oe.length-1]&&(oe=oe.substring(1,oe.length-1));var ce=oe.split("\t"),le={};le=1===ce.length?{left:"",center:ce[0],right:""}:2===ce.length?{left:ce[0],center:ce[1],right:""}:{left:ce[0],center:ce[1],right:ce[2]},ce.length>3&&t("Too many tabs in "+A+": "+ce.length+" found.",_,0),s.addMetaTextObj(A,le,{startChar:r.iChar,endChar:r.iChar+o.length});break;case"midi":var he=e.tokenize(_,0,_.length,!0);he.length>0&&"="===he[0].token&&he.shift(),0===he.length?t("Expected midi command",_,0):function(e,r,i){var a=e.shift().token,n=[];if(m.indexOf(a)>=0)0!==e.length&&t("Unexpected parameter in MIDI "+a,i,0);else if(g.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,i,0):n.push(e[0].token);else if(v.indexOf(a)>=0)1!==e.length?t("Expected one parameter in MIDI "+a,i,0):"number"!==e[0].type?t("Expected one integer parameter in MIDI "+a,i,0):n.push(e[0].intt);else if(b.indexOf(a)>=0)1!==e.length&&2!==e.length?t("Expected one or two parameters in MIDI "+a,i,0):"number"!==e[0].type||2===e.length&&"number"!==e[1].type?t("Expected integer parameter in MIDI "+a,i,0):(n.push(e[0].intt),2===e.length&&n.push(e[1].intt));else if(y.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type?t("Expected two integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt));else if(w.indexOf(a)>=0)2!==e.length?t("Expected two parameters in MIDI "+a,i,0):"alpha"!==e[0].type||"number"!==e[1].type?t("Expected one string and one integer parameters in MIDI "+a,i,0):(n.push(e[0].token),n.push(e[1].intt));else if("drummap"===a)2===e.length&&"alpha"===e[0].type&&"number"===e[1].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token]=e[1].intt,n=r.formatting.midi.drummap):3===e.length&&"punct"===e[0].type&&"alpha"===e[1].type&&"number"===e[2].type?(r.formatting||(r.formatting={}),r.formatting.midi||(r.formatting.midi={}),r.formatting.midi.drummap||(r.formatting.midi.drummap={}),r.formatting.midi.drummap[e[0].token+e[1].token]=e[2].intt,n=r.formatting.midi.drummap):t("Expected one note name and one integer parameter in MIDI "+a,i,0);else if(T.indexOf(a)>=0)3!==e.length||"number"!==e[0].type||"/"!==e[1].token||"number"!==e[2].type?t("Expected fraction parameter in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[2].intt));else if(x.indexOf(a)>=0)4!==e.length?t("Expected four parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type?t("Expected four integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt),n.push(e[2].intt),n.push(e[3].intt));else if(k.indexOf(a)>=0)5!==e.length?t("Expected five parameters in MIDI "+a,i,0):"number"!==e[0].type||"number"!==e[1].type||"number"!==e[2].type||"number"!==e[3].type||"number"!==e[4].type?t("Expected five integer parameters in MIDI "+a,i,0):(n.push(e[0].intt),n.push(e[1].intt),n.push(e[2].intt),n.push(e[3].intt),n.push(e[4].intt));else if(b.indexOf(a)>=0)1!==e.length||4!==e.length?t("Expected one or two parameters in MIDI "+a,i,0):"number"!==e[0].type?t("Expected integer parameter in MIDI "+a,i,0):4===e.length?("octave"!==e[1].token&&t("Expected octave parameter in MIDI "+a,i,0),"="!==e[2].token&&t("Expected octave parameter in MIDI "+a,i,0),"number"!==e[3].type&&t("Expected integer parameter for octave in MIDI "+a,i,0)):(n.push(e[0].intt),4===e.length&&n.push(e[3].intt));else if(C.indexOf(a)>=0)if(e.length<2)t("Expected string parameter and at least one integer parameter in MIDI "+a,i,0);else if("alpha"!==e[0].type)t("Expected string parameter and at least one integer parameter in MIDI "+a,i,0);else{var o=e.shift();for(n.push(o.token);e.length>0;)"number"!==(o=e.shift()).type&&t("Expected integer parameter in MIDI "+a,i,0),n.push(o.intt)}s.hasBeginMusic()?s.appendElement("midi",-1,-1,{cmd:a,params:n}):(void 0===r.formatting.midi&&(r.formatting.midi={}),r.formatting.midi[a]=n)}(he,n,_);break;case"percmap":var de=function(e){var t=e.split(/\s+/);if(2!==t.length&&3!==t.length)return{error:'Expected parameters "abc-note", "drum-sound", and optionally "note-head"'};var r=t[0],i=parseInt(t[1],10);if((isNaN(i)||i<35||i>81)&&t[1]&&(i=d.indexOf(t[1].toLowerCase())+35),isNaN(i)||i<35||i>81)return{error:'Expected drum name, received "'+t[1]+'"'};var a={sound:i};return 3===t.length&&(a.noteHead=t[2]),{key:r,value:a}}(_);de.error?t(de.error,o,8):(n.formatting.percmap||(n.formatting.percmap={}),n.formatting.percmap[de.key]=de.value);break;case"map":case"playtempo":case"auquality":case"continuous":case"nobarcheck":n.formatting[A]=_;break;default:return"Unknown directive: "+A}return null},a.globalFormatting=function(i){for(var a in i)if(i.hasOwnProperty(a)){var s,o=""+i[a],c=e.tokenize(o,0,o.length);switch(a){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":l(a,c,o);break;case"scale":h(a,c);break;case"partsbox":null!==(s=f("partsBox",a,c))&&t(s),r.partsfont.box=r.partsBox;break;case"freegchord":null!==(s=f("freegchord",a,c))&&t(s);break;case"fontboxpadding":1===c.length&&"number"===c[0].type||t('Directive "'+a+'" requires a number as a parameter.'),n.formatting.fontboxpadding=c[0].floatt;break;case"stafftopmargin":1===c.length&&"number"===c[0].type||t('Directive "'+a+'" requires a number as a parameter.'),n.formatting.stafftopmargin=c[0].floatt;break;case"stretchlast":var d=N(c);if(void 0!==d.value&&(n.formatting.stretchlast=d.value),d.error)return d.error;break;default:t("Formatting directive unrecognized: ",a,0)}}}}(),e.exports=a},9928:function(e,t,r){var i=r(5008),a=r(8360),n=r(9708);e.exports=function(e,t,r,s,o){this.reset=function(e,t,r,i){n.initialize(e,t,r,i,o),a.initialize(e,t,r,i,o)},this.reset(e,t,r,s),this.setTitle=function(e,t){r.hasMainTitle?o.addSubtitle(e,{startChar:r.iChar,endChar:r.iChar+t+2}):(o.addMetaText("title",e,{startChar:r.iChar,endChar:r.iChar+t+2}),r.hasMainTitle=!0)},this.setMeter=function(i){if("C"===(i=e.stripComment(i)))return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"common_time"};if("C|"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"cut_time"};if("o"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===i)return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===i.length||"none"===i.toLowerCase())return!0===r.havent_set_length&&(r.default_length=.125,r.havent_set_length=!1),null;var a=e.tokenize(i,0,i.length);try{var n=function(){var e=function(){var e={value:0,num:""},t=a.shift();for("("===t.token&&(t=a.shift());;){if("number"!==t.type)throw"Expected top number of meter";if(e.value+=parseInt(t.token),e.num+=t.token,0===a.length||"/"===a[0].token)return e;if(")"===(t=a.shift()).token){if(0===a.length||"/"===a[0].token)return e;throw"Unexpected paren in meter"}if("."!==t.token&&"+"!==t.token)throw"Expected top number of meter";if(e.num+=t.token,0===a.length)throw"Expected top number of meter";t=a.shift()}return e}();if(0===a.length)return e;var t=a.shift();if("/"!==t.token)throw"Expected slash in meter";if("number"!==(t=a.shift()).type)throw"Expected bottom number of meter";return e.den=t.token,e.value=e.value/parseInt(e.den),e};if(0===a.length)throw"Expected meter definition in M: line";for(var s={type:"specified",value:[]},o=0;;){var c=n();o+=c.value;var l={num:c.num};if(void 0!==c.den&&(l.den=c.den),s.value.push(l),0===a.length)break}return!0===r.havent_set_length&&(r.default_length=o<.75?.0625:.125,r.havent_set_length=!1),s}catch(e){t(e,i,0)}return null},this.calcTempo=function(e){var t=1/4;r.meter&&"specified"===r.meter.type?t=1/parseInt(r.meter.value[0].den):r.origMeter&&"specified"===r.origMeter.type&&(t=1/parseInt(r.origMeter.value[0].den));for(var i=0;i<e.duration;i++)e.duration[i]=t*e.duration[i];return e},this.resolveTempo=function(){r.tempo&&(this.calcTempo(r.tempo),s.metaText.tempo=r.tempo,delete r.tempo)},this.addUserDefinition=function(e,a,n){var s=e.indexOf("=",a);if(-1!==s){var o=i.strip(e.substring(a,s)),c=i.strip(e.substring(s+1));1===o.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(o)?0!==c.length?(void 0===r.macros&&(r.macros={}),r.macros[o]=c):t("Missing macro definition",e,a):t("Macro definitions must be H-Y, h-w, or tilde",e,a):t("Macro definitions can only be one character",e,a)}else t("Need an = in a macro definition",e,a)},this.setDefaultLength=function(e,t,i){var a=e.substring(t,i).replace(/ /g,"").split("/");if(2===a.length){var n=parseInt(a[0]),s=parseInt(a[1]);s>0&&(r.default_length=n/s,r.havent_set_length=!1)}else 1===a.length&&"1"===a[0]&&(r.default_length=1,r.havent_set_length=!1)};var c={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(i,a,n,s){try{var o=e.tokenize(i,a,n);if(0===o.length)throw"Missing parameter in Q: field";var l={startChar:s+a-2,endChar:s+n},h=!0,d=o.shift();if("quote"===d.type&&(l.preString=d.token,d=o.shift(),0===o.length))return c[l.preString.toLowerCase()]&&(l.bpm=c[l.preString.toLowerCase()],l.suppressBpm=!0),{type:"immediate",tempo:l};if("alpha"===d.type&&"C"===d.token){if(0===o.length)throw"Missing tempo after C in Q: field";if("punct"===(d=o.shift()).type&&"="===d.token){if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(d=o.shift()).type)throw"Expected number after = in Q: field";l.duration=[1],l.bpm=parseInt(d.token)}else{if("number"!==d.type)throw"Expected number or equal after C in Q: field";if(l.duration=[parseInt(d.token)],0===o.length)throw"Missing = after duration in Q: field";if("punct"!==(d=o.shift()).type||"="!==d.token)throw"Expected = after duration in Q: field";if(0===o.length)throw"Missing tempo after = in Q: field";if("number"!==(d=o.shift()).type)throw"Expected number after = in Q: field";l.bpm=parseInt(d.token)}}else{if("number"!==d.type)throw"Unknown value in Q: field";var u=parseInt(d.token);if(0===o.length||"quote"===o[0].type)l.duration=[1],l.bpm=u;else{if(h=!1,"punct"!==(d=o.shift()).type&&"/"!==d.token)throw"Expected fraction in Q: field";if("number"!==(d=o.shift()).type)throw"Expected fraction in Q: field";var f=parseInt(d.token);for(l.duration=[u/f];o.length>0&&"="!==o[0].token&&"quote"!==o[0].type;){if("number"!==(d=o.shift()).type)throw"Expected fraction in Q: field";if(u=parseInt(d.token),"punct"!==(d=o.shift()).type&&"/"!==d.token)throw"Expected fraction in Q: field";if("number"!==(d=o.shift()).type)throw"Expected fraction in Q: field";f=parseInt(d.token),l.duration.push(u/f)}if("punct"!==(d=o.shift()).type&&"="!==d.token)throw"Expected = in Q: field";if("number"!==(d=o.shift()).type)throw"Expected tempo in Q: field";l.bpm=parseInt(d.token)}}if(0!==o.length&&("quote"===(d=o.shift()).type&&(l.postString=d.token,d=o.shift()),0!==o.length))throw"Unexpected string at end of Q: field";return!1===r.printTempo&&(l.suppress=!0),{type:h?"delaySet":"immediate",tempo:l}}catch(e){return t(e,i,a),{type:"none"}}},this.letter_to_inline_header=function(i,c,l){var h=e.eatWhiteSpace(i,c);if(c+=h,i.length>=c+5&&"["===i[c]&&":"===i[c+2]){var d=i.indexOf("]",c),u=r.iChar+c,f=r.iChar+d+1;switch(i.substring(c,c+3)){case"[I:":var p=a.addDirective(i.substring(c+3,d));return p&&t(p,i,c),[d-c+1+h];case"[M:":var m=this.setMeter(i.substring(c+3,d));return o.hasBeginMusic()&&m?o.appendStartingElement("meter",u,f,m):r.meter=m,[d-c+1+h];case"[K:":var g=n.parseKey(i.substring(c+3,d),!0);return g.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",u,f,r.clef),g.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",u,f,n.fixKey(r.clef,r.key)),[d-c+1+h];case"[P:":var v=a.parseFontChangeLine(i.substring(c+3,d));return l||s.lines.length<=s.lineNum?r.partForNextLine={title:v,startChar:u,endChar:f}:o.appendElement("part",u,f,{title:v}),[d-c+1+h];case"[L:":return this.setDefaultLength(i,c+3,d),[d-c+1+h];case"[Q:":if(d>0){var b=this.setTempo(i,c+3,d,r.iChar);return"delaySet"===b.type?o.hasBeginMusic()?o.appendElement("tempo",u,f,this.calcTempo(b.tempo)):r.tempoForNextLine=["tempo",u,f,this.calcTempo(b.tempo)]:"immediate"===b.type&&(!l&&o.hasBeginMusic()?o.appendElement("tempo",u,f,b.tempo):r.tempoForNextLine=["tempo",u,f,b.tempo]),[d-c+1+h,i[c+1],i.substring(c+3,d)]}break;case"[V:":if(d>0)return n.parseVoice(i,c+3,d),[d-c+1+h,i[c+1],i.substring(c+3,d)];break;case"[r:":return[d-c+1+h]}}return[0]},this.letter_to_body_header=function(e,s){if(e.length>=s+3)switch(e.substring(s,s+2)){case"I:":var c=a.addDirective(e.substring(s+2));return c&&t(c,e,s),[e.length];case"M:":var l=this.setMeter(e.substring(s+2));return o.hasBeginMusic()&&l&&o.appendStartingElement("meter",r.iChar+s,r.iChar+e.length,l),[e.length];case"K:":var h=n.parseKey(e.substring(s+2),o.hasBeginMusic());return h.foundClef&&o.hasBeginMusic()&&o.appendStartingElement("clef",r.iChar+s,r.iChar+e.length,r.clef),h.foundKey&&o.hasBeginMusic()&&o.appendStartingElement("key",r.iChar+s,r.iChar+e.length,n.fixKey(r.clef,r.key)),[e.length];case"P:":return o.hasBeginMusic()&&o.appendElement("part",r.iChar+s,r.iChar+e.length,{title:e.substring(s+2)}),[e.length];case"L:":return this.setDefaultLength(e,s+2,e.length),[e.length];case"Q:":var d=e.indexOf("",s+2);-1===d&&(d=e.length);var u=this.setTempo(e,s+2,d,r.iChar);return"delaySet"===u.type?o.appendElement("tempo",r.iChar+s,r.iChar+e.length,this.calcTempo(u.tempo)):"immediate"===u.type&&o.appendElement("tempo",r.iChar+s,r.iChar+e.length,u.tempo),[d,e[s],i.strip(e.substring(s+2))];case"V:":return n.parseVoice(e,s+2,e.length),[e.length,e[s],i.strip(e.substring(s+2))]}return[0]};var l={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(i){var c=l[i[0]],h=i.length-2,d=e.translateString(e.stripComment(i.substring(2)));if("unalignedWords"===c||"notes"===c)o.addMetaTextArray(c,a.parseFontChangeLine(d),{startChar:r.iChar,endChar:r.iChar+i.length});else if(void 0!==c)o.addMetaText(c,a.parseFontChangeLine(d),{startChar:r.iChar,endChar:r.iChar+i.length});else{var u=r.iChar,f=u+i.length;switch(i[0]){case"H":for(o.addMetaTextArray("history",a.parseFontChangeLine(d),{startChar:r.iChar,endChar:r.iChar+i.length}),i=e.peekLine();i&&":"!==i[1];)e.nextLine(),o.addMetaTextArray("history",a.parseFontChangeLine(e.translateString(e.stripComment(i))),{startChar:r.iChar,endChar:r.iChar+i.length}),i=e.peekLine();break;case"K":this.resolveTempo();var p=n.parseKey(i.substring(2),!1);!r.is_in_header&&o.hasBeginMusic()&&(p.foundClef&&o.appendStartingElement("clef",u,f,r.clef),p.foundKey&&o.appendStartingElement("key",u,f,n.fixKey(r.clef,r.key))),r.is_in_header=!1;break;case"L":this.setDefaultLength(i,2,i.length);break;case"M":r.origMeter=r.meter=this.setMeter(i.substring(2));break;case"P":r.is_in_header?o.addMetaText("partOrder",a.parseFontChangeLine(d),{startChar:r.iChar,endChar:r.iChar+i.length}):r.partForNextLine={title:d,startChar:u,endChar:f};break;case"Q":var m=this.setTempo(i,2,i.length,r.iChar);"delaySet"===m.type?r.tempo=m.tempo:"immediate"===m.type&&(s.metaText.tempo?r.tempoForNextLine=["tempo",u,f,m.tempo]:s.metaText.tempo=m.tempo);break;case"T":r.titlecaps&&(d=d.toUpperCase()),this.setTitle(a.parseFontChangeLine(e.theReverser(d)),h);break;case"U":this.addUserDefinition(i,2,i.length);break;case"V":if(n.parseVoice(i,2,i.length),!r.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",i,0);break;default:return{regular:!0}}}return{}}}},9708:function(e,t,r){var i=r(5008),a=r(8360),n=r(2821),s={};!function(){var e,t,r,o;s.initialize=function(i,a,n,s,c){e=i,t=a,r=n,o=c},s.standardKey=function(e,t,i,a){return n.keySignature(r,e,t,i,a)};var c={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}},l=function(e,t){var r=c[e];return(r?r.mid:0)+t};s.fixClef=function(e){var t=c[e.type];t&&(e.clefPos=t.pitch,e.type=t.clef)},s.deepCopyKey=function(e){var t={accidentals:[],root:e.root,acc:e.acc,mode:e.mode};return e.accidentals.forEach((function(e){t.accidentals.push(i.clone(e))})),t};var h={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};s.addPosToKey=function(e,t){var r=e.verticalPos;t.accidentals.forEach((function(e){var t=h[e.note];t-=r,e.verticalPos=t})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){var t=h[e.note];t-=r,e.verticalPos=t})),r<-10?(t.accidentals.forEach((function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos-=7,(e.verticalPos>=11||10===e.verticalPos&&"flat"===e.acc)&&(e.verticalPos-=7),"A"===e.note&&"sharp"===e.acc&&(e.verticalPos-=7),"G"!==e.note&&"F"!==e.note||"flat"!==e.acc||(e.verticalPos-=7)}))):r<-4?(t.accidentals.forEach((function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos-=7,-8!==r||"f"!==e.note&&"g"!==e.note||"sharp"!==e.acc||(e.verticalPos-=7)}))):r>=7&&(t.accidentals.forEach((function(e){e.verticalPos+=7})),t.impliedNaturals&&t.impliedNaturals.forEach((function(e){e.verticalPos+=7})))},s.fixKey=function(e,t){var r=i.clone(t);return s.addPosToKey(e,r),r};var d=function(e){var t=0,r=e[t++];"^"!==r&&"_"!==r||(r=e[t++]);var i=h[r];for(void 0===i&&(i=6);t<e.length;t++)if(","===e[t])i-=7;else{if("'"!==e[t])break;i+=7}return{mid:i-6,str:e.substring(t)}};s.parseKey=function(i,n){0===i.length&&(i="none");var o=e.tokenize(i,0,i.length),c={};if(0===o.length)return t("Must pass in key signature.",i,0),c;switch(o[0].token){case"HP":a.addDirective("bagpipes"),r.key={root:"HP",accidentals:[],acc:"",mode:""},c.foundKey=!0,o.shift();break;case"Hp":a.addDirective("bagpipes"),r.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},c.foundKey=!0,o.shift();break;case"none":r.key={root:"none",accidentals:[],acc:"",mode:""},c.foundKey=!0,o.shift();break;default:var h=e.getKeyPitch(o[0].token);if(h.len>0){c.foundKey=!0;var d="",u="";o[0].token.length>1?o[0].token=o[0].token.substring(1):o.shift();var f=h.token;if(o.length>0){var p=e.getSharpFlat(o[0].token);if(p.len>0&&(o[0].token.length>1?o[0].token=o[0].token.substring(1):o.shift(),f+=p.token,d=p.token),o.length>0){var m=e.getMode(o[0].token);m.len>0&&(o.shift(),f+=m.token,u=m.token)}if(void 0===s.standardKey(f,h.token,d,0))return t("Unsupported key signature: "+f,i,0),c}var g,v=s.deepCopyKey(r.key),b=!n&&r.globalTranspose?-r.globalTranspose:0;if(n&&(g=r.globalTransposeOrigKeySig),r.key=s.deepCopyKey(s.standardKey(f,h.token,d,b)),n&&(r.globalTransposeOrigKeySig=g),r.key.mode=u,v){for(var y,x=0;x<r.key.accidentals.length;x++)for(y=0;y<v.accidentals.length;y++)v.accidentals[y].note&&r.key.accidentals[x].note.toLowerCase()===v.accidentals[y].note.toLowerCase()&&(v.accidentals[y].note=null);for(y=0;y<v.accidentals.length;y++)v.accidentals[y].note&&(r.key.impliedNaturals||(r.key.impliedNaturals=[]),r.key.impliedNaturals.push({acc:"natural",note:v.accidentals[y].note}))}}}if(0===o.length)return c;if("exp"===o[0].token&&o.shift(),0===o.length)return c;if("oct"===o[0].token&&o.shift(),0===o.length)return c;var k,w=e.getKeyAccidentals2(o);if(w.warn&&t(w.warn,i,0),w.accs){c.foundKey||(c.foundKey=!0,r.key={root:"none",acc:"",mode:"",accidentals:[]}),function(e){for(var t=0;t<e.length;t++)"b"===e[t].note?e[t].note="B":"a"===e[t].note?e[t].note="A":"F"===e[t].note?e[t].note="f":"E"===e[t].note?e[t].note="e":"D"===e[t].note?e[t].note="d":"C"===e[t].note?e[t].note="c":"G"===e[t].note&&"sharp"===e[t].acc?e[t].note="g":"g"===e[t].note&&"flat"===e[t].acc&&(e[t].note="G")}(w.accs);for(var T=0;T<w.accs.length;T++){for(var C=!1,S=0;S<r.key.accidentals.length&&!C;S++)r.key.accidentals[S].note===w.accs[T].note&&(C=!0,r.key.accidentals[S].acc!==w.accs[T].acc&&(r.key.accidentals[S].acc=w.accs[T].acc,r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(w.accs[T])));if(!C&&(r.key.explicitAccidentals||(r.key.explicitAccidentals=[]),r.key.explicitAccidentals.push(w.accs[T]),r.key.accidentals.push(w.accs[T]),r.key.impliedNaturals))for(var N=0;N<r.key.impliedNaturals.length;N++)r.key.impliedNaturals[N].note===w.accs[T].note&&r.key.impliedNaturals.splice(N,1)}}for(;o.length>0;)switch(o[0].token){case"m":case"middle":if(o.shift(),0===o.length)return t("Expected = after middle",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after middle",i,k.start);break}if(0===o.length)return t("Expected parameter after middle=",i,0),c;var E=e.getPitchFromTokens(o);E.warn&&t(E.warn,i,0),E.position&&(r.clef.verticalPos=E.position-6);break;case"transpose":if(o.shift(),0===o.length)return t("Expected = after transpose",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after transpose",i,k.start);break}if(0===o.length)return t("Expected parameter after transpose=",i,0),c;if("number"!==o[0].type){t("Expected number after transpose",i,o[0].start);break}r.clef.transpose=o[0].intt,o.shift();break;case"stafflines":if(o.shift(),0===o.length)return t("Expected = after stafflines",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after stafflines",i,k.start);break}if(0===o.length)return t("Expected parameter after stafflines=",i,0),c;if("number"!==o[0].type){t("Expected number after stafflines",i,o[0].start);break}r.clef.stafflines=o[0].intt,o.shift();break;case"staffscale":if(o.shift(),0===o.length)return t("Expected = after staffscale",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after staffscale",i,k.start);break}if(0===o.length)return t("Expected parameter after staffscale=",i,0),c;if("number"!==o[0].type){t("Expected number after staffscale",i,o[0].start);break}r.clef.staffscale=o[0].floatt,o.shift();break;case"octave":if(o.shift(),0===o.length)return t("Expected = after octave",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after octave",i,k.start);break}if(0===o.length)return t("Expected parameter after octave=",i,0),c;if("number"!==o[0].type){t("Expected number after octave",i,o[0].start);break}r.octave=o[0].intt,o.shift();break;case"style":if(o.shift(),0===o.length)return t("Expected = after style",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after style",i,k.start);break}if(0===o.length)return t("Expected parameter after style=",i,0),c;switch(o[0].token){case"normal":case"harmonic":case"rhythm":case"x":case"triangle":r.style=o[0].token,o.shift();break;default:t("error parsing style element: "+o[0].token,i,o[0].start)}break;case"clef":if(o.shift(),0===o.length)return t("Expected = after clef",i,0),c;if("="!==(k=o.shift()).token){t("Expected = after clef",i,k.start);break}if(0===o.length)return t("Expected parameter after clef=",i,0),c;case"treble":case"bass":case"alto":case"tenor":case"perc":case"none":var _=o.shift();switch(_.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":case"c":_.token="alto";break;case"F":case"f":_.token="bass";break;case"G":case"g":_.token="treble";break;default:t("Expected clef name. Found "+_.token,i,_.start)}o.length>0&&"number"===o[0].type&&(_.token+=o[0].token,o.shift()),o.length>1&&("-"===o[0].token||"+"===o[0].token||"^"===o[0].token||"_"===o[0].token)&&"8"===o[1].token&&(_.token+=o[0].token+o[1].token,o.shift(),o.shift()),r.clef={type:_.token,verticalPos:l(_.token,0)},r.currentVoice&&void 0!==r.currentVoice.transpose&&(r.clef.transpose=r.currentVoice.transpose),c.foundClef=!0;break;default:t("Unknown parameter: "+o[0].token,i,o[0].start),o.shift()}return c},s.parseVoice=function(i,a,n){var s=e.getMeat(i,a,n),c=s.start,h=s.end,u=e.getToken(i,c,h);if(0!==u.length){var f=!1;void 0===r.voices[u]&&(r.voices[u]={},f=!0,r.score_is_present&&t("Can't have an unknown V: id when the %score directive is present",i,c)),c+=u.length,c+=e.eatWhiteSpace(i,c);for(var p={startStaff:f},m=function(r){var a=e.getVoiceToken(i,c,h);void 0!==a.warn?t("Expected value for "+r+" in voice: "+a.warn,i,c):void 0!==a.err?t("Expected value for "+r+" in voice: "+a.err,i,c):0===a.token.length&&'"'!==i[c]?t("Expected value for "+r+" in voice",i,c):p[r]=a.token,c+=a.len},g=function(a,n,s){var o=e.getVoiceToken(i,c,h);void 0!==o.warn?t("Expected value for "+n+" in voice: "+o.warn,i,c):void 0!==o.err?t("Expected value for "+n+" in voice: "+o.err,i,c):0===o.token.length&&'"'!==i[c]?t("Expected value for "+n+" in voice",i,c):("number"===s&&(o.token=parseFloat(o.token)),r.voices[a][n]=o.token),c+=o.len},v=function(r,a){var n=e.getVoiceToken(i,c,h);if(void 0!==n.warn)t("Expected value for "+r+" in voice: "+n.warn,i,c);else if(void 0!==n.err)t("Expected value for "+r+" in voice: "+n.err,i,c);else{if(0!==n.token.length||'"'===i[c])return"number"===a&&(n.token=parseFloat(n.token)),n.token;t("Expected value for "+r+" in voice",i,c)}c+=n.len},b=function(a,n){var s=e.getVoiceToken(i,c,h);if(void 0!==s.warn)t("Expected one of (_B, _E, _b, _e) for "+n+" in voice: "+s.warn,i,c);else if(0===s.token.length&&'"'!==i[c])t("Expected one of (_B, _E, _b, _e) for "+n+" in voice",i,c);else{var o={_B:2,_E:9,_b:-10,_e:-3}[s.token];o?r.voices[a][n]=o:t("Expected one of (_B, _E, _b, _e) for "+n+" in voice",i,c)}c+=s.len};c<h;){var y=e.getVoiceToken(i,c,h);if(c+=y.len,y.warn)t("Error parsing voice: "+y.warn,i,c);else{var x=null;switch(y.token){case"clef":case"cl":m("clef");var k=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(k+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=l(p.clef,k));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=y.token.replace(/[',]/g,""),p.verticalPos=l(p.clef,0),r.voices[u].clef=y.token;break;case"staves":case"stave":case"stv":m("staves");break;case"brace":case"brc":m("brace");break;case"bracket":case"brk":m("bracket");break;case"name":case"nm":m("name");break;case"subname":case"sname":case"snm":m("subname");break;case"merge":p.startStaff=!1;break;case"stem":case"stems":void 0!==(x=e.getVoiceToken(i,c,h)).warn?t("Expected value for stems in voice: "+x.warn,i,c):void 0!==x.err?t("Expected value for stems in voice: "+x.err,i,c):"up"===x.token||"down"===x.token?r.voices[u].stem=x.token:t("Expected up or down for voice stem",i,c),c+=x.len;break;case"up":case"down":r.voices[u].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=d(p.verticalPos).mid;break;case"gchords":case"gch":r.voices[u].suppressChords=!0,"0"===(x=e.getVoiceToken(i,c,h)).token&&(c+=x.len);break;case"space":case"spc":m("spacing");break;case"scale":g(u,"scale","number");break;case"score":b(u,"scoreTranspose");break;case"transpose":g(u,"transpose","number");break;case"stafflines":g(u,"stafflines","number");break;case"staffscale":g(u,"staffscale","number");break;case"octave":g(u,"octave","number");break;case"volume":g(u,"volume","number");break;case"cue":var w=v("cue","string");r.voices[u].scale="on"===w?.6:1;break;case"style":void 0!==(x=e.getVoiceToken(i,c,h)).warn?t("Expected value for style in voice: "+x.warn,i,c):void 0!==x.err?t("Expected value for style in voice: "+x.err,i,c):"normal"===x.token||"harmonic"===x.token||"rhythm"===x.token||"x"===x.token||"triangle"===x.token?r.voices[u].style=x.token:t("Expected one of [normal, harmonic, rhythm, x, triangle] for voice style",i,c),c+=x.len}}c+=e.eatWhiteSpace(i,c)}if((p.startStaff||0===r.staves.length)&&(r.staves.push({index:r.staves.length,meter:r.origMeter}),r.score_is_present||(r.staves[r.staves.length-1].numVoices=0)),void 0===r.voices[u].staffNum){r.voices[u].staffNum=r.staves.length-1;var T=0;for(var C in r.voices)r.voices.hasOwnProperty(C)&&r.voices[C].staffNum===r.voices[u].staffNum&&T++;r.voices[u].index=T-1}var S=r.staves[r.voices[u].staffNum];r.score_is_present||S.numVoices++,p.clef&&(S.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(S.spacing_below_offset=p.spacing),p.verticalPos&&(S.verticalPos=p.verticalPos),p.name&&(S.name?S.name.push(p.name):S.name=[p.name]),p.subname&&(S.subname?S.subname.push(p.subname):S.subname=[p.subname]),function(e){r.currentVoice=r.voices[e],o.setCurrentVoice(r.currentVoice.staffNum,r.currentVoice.index)}(u)}else t("Expected a voice id",i,c)}}(),e.exports=s},6476:function(e,t,r){var i,a,n,s,o,c,l=r(5008),h=r(9708),d=r(2821),u=r(2539),f=u.legalAccents,p=u.volumeDecorations,m=u.dynamicDecorations,g=u.accentPseudonyms,v=u.accentDynamicPseudonyms,b=u.nonDecorations,y=u.durations,x=u.pitches,k=u.rests,w=u.accMap,T=u.tripletQ,C=function(e,t,r,l,h,d){i=e,a=t,n=r,s=l,o=h,c=d,this.lineContinuation=!1},S=function(e,t,r){if(void 0===e.inTie[t])return!1;var i=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0;return!(!e.inTie[t][i]||void 0===r.pitches&&"spacer"===r.rest.type)},N={};C.prototype.parseMusic=function(e){c.resolveTempo(),n.is_in_header=!1;for(var t=0,r=n.iChar;i.isWhiteSpace(e[t])&&t<e.length;)t++;if(t!==e.length&&"%"!==e[t]){var l=n.start_new_line;void 0===n.continueall?n.start_new_line=!0:n.start_new_line=!1;var h=0,d=c.letter_to_body_header(e,t);d[0]>0&&(t+=d[0],"V"===d[1]&&this.startNewLine());for(var u=0;t<e.length;){var f=t;if("%"===e[t])break;var p=c.letter_to_inline_header(e,t,l);if(p[0]>0)t+=p[0],"V"===p[1]&&(l=!0);else{var m;for((!o.hasBeginMusic()||l&&!this.lineContinuation)&&(this.startNewLine(),l=!1);;)if((m=i.eatWhiteSpace(e,t))>0&&(t+=m),t>0&&""===e[t-1]&&(m=c.letter_to_body_header(e,t))[0]>0&&("V"===m[1]&&this.startNewLine(),t=m[0],n.start_new_line=!1),(m=P(e,t))[0]>0&&(t+=m[0]),(m=_(e,t))[0]>0){N.chord||(N.chord=[]);var g=i.translateString(m[1]);g=g.replace(/;/g,"\n");for(var v=!1,x=0;x<N.chord.length;x++)N.chord[x].position===m[2]&&(v=!0,N.chord[x].name+="\n"+g);!1===v&&(null===m[2]&&m[3]?N.chord.push({name:g,rel_position:m[3]}):N.chord.push({name:g,position:m[2]})),t+=m[0];var k=i.skipWhiteSpace(e.substring(t));k>0&&(N.force_end_beam_last=!0),t+=k}else if((m=-1===b.indexOf(e[t])?L(e,t):[0])[0]>0)null===m[1]?t+1<e.length&&this.startNewLine():m[1].length>0&&(0===m[1].indexOf("style=")?N.style=m[1].substr(6):(void 0===N.decoration&&(N.decoration=[]),"beambr1"===m[1]?N.beambr=1:"beambr2"===m[1]?N.beambr=2:N.decoration.push(m[1]))),t+=m[0];else{if(!((m=M(e,t))[0]>0))break;N.gracenotes=m[1],t+=m[0]}if((m=z(e,t))[0]>0){u=0,void 0!==N.gracenotes&&(N.rest={type:"spacer"},N.duration=.125,n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+t,r+t+m[0],N),n.measureNotEmpty=!0,N={});var w={type:m[1]};0===w.type.length?a("Unknown bar type",e,t):(n.inEnding&&"bar_thin"!==w.type&&(w.endEnding=!0,n.inEnding=!1),m[2]&&(w.startEnding=m[2],n.inEnding&&(w.endEnding=!0),n.inEnding=!0,"bar_right_repeat"===m[1]?n.restoreStartEndingHoldOvers():n.duplicateStartEndingHoldOvers()),void 0!==N.decoration&&(w.decoration=N.decoration),void 0!==N.chord&&(w.chord=N.chord),w.startEnding&&void 0===n.barFirstEndingNum?n.barFirstEndingNum=n.currBarNumber:w.startEnding&&w.endEnding&&n.barFirstEndingNum?n.currBarNumber=n.barFirstEndingNum:w.endEnding&&(n.barFirstEndingNum=void 0),"bar_invisible"!==w.type&&n.measureNotEmpty&&(void 0===n.currentVoice||0===n.currentVoice.staffNum&&0===n.currentVoice.index)&&(n.currBarNumber++,n.barNumbers&&n.currBarNumber%n.barNumbers==0&&(w.barNumber=n.currBarNumber)),n.addFormattingOptions(N,s.formatting,"bar"),o.appendElement("bar",r+f,r+t+m[0],w),n.measureNotEmpty=!1,N={}),t+=m[0]}else if("&"===e[t])(m=A(e,t))[0]>0&&(o.appendElement("overlay",r,r+1,{}),t+=1,u++);else{if((m=H(e,t)).consumed>0&&(void 0!==m.startSlur&&(N.startSlur=m.startSlur),m.dottedSlur&&(N.dottedSlur=!0),void 0!==m.triplet&&(h>0?a("Can't nest triplets",e,t):(N.startTriplet=m.triplet,N.tripletMultiplier=m.tripletQ/m.triplet,N.tripletR=m.num_notes,h=void 0===m.num_notes?m.triplet:m.num_notes)),t+=m.consumed),"["===e[t]){t++;for(var T=null,C=!1,I=!1;!I;){var V=L(e,t);V[0]>0&&(t+=V[0]);var Y=D(e,t,{},!1);if(null!==Y&&void 0!==Y.pitch)V[0]>0&&0!==V[1].indexOf("style=")&&(void 0===N.decoration&&(N.decoration=[]),N.decoration.push(V[1])),Y.end_beam&&(N.end_beam=!0,delete Y.end_beam),void 0===N.pitches?(N.duration=Y.duration,N.pitches=[Y]):N.pitches.push(Y),delete Y.duration,V[0]>0&&0===V[1].indexOf("style=")&&(N.pitches[N.pitches.length-1].style=V[1].substr(6)),n.inTieChord[N.pitches.length]&&(Y.endTie=!0,n.inTieChord[N.pitches.length]=void 0),Y.startTie&&(n.inTieChord[N.pitches.length]=!0),t=Y.endChar,delete Y.endChar;else if(" "===e[t])a("Spaces are not allowed in chords",e,t),t++;else{if(t<e.length&&"]"===e[t]){t++,0!==n.next_note_duration&&(N.duration=N.duration*n.next_note_duration,n.next_note_duration=0),S(n,u,N)&&(N.pitches.forEach((function(e){e.endTie=!0})),E(n,u,!1)),h>0&&(!N.rest||"spacer"!==N.rest.type)&&0==--h&&(N.endTriplet=!0);for(var G=!1;t<e.length&&!G;){switch(e[t]){case" ":case"\t":O(N);break;case")":void 0===N.endSlur?N.endSlur=1:N.endSlur++;break;case"-":N.pitches.forEach((function(e){e.startTie={}})),E(n,u,!0);break;case">":case"<":var j=F(e,t);t+=j[0]-1,n.next_note_duration=j[2],T?T*=j[1]:T=j[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var W=i.getFraction(e,t);T=W.value;var q=e[t=W.index];" "===q&&(C=!0),"-"===q||")"===q||" "===q||"<"===q||">"===q?t--:G=!0;break;default:G=!0}G||t++}}else a("Expected ']' to end the chords",e,t);void 0!==N.pitches&&(null!==T&&(N.duration=N.duration*T,C&&O(N)),n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+f,r+t,N),n.measureNotEmpty=!0,N={}),I=!0}}}else{var X={},R=D(e,t,X,!0);void 0!==X.endTie&&E(n,u,!0),null!==R&&(void 0!==R.pitch?(N.pitches=[{}],void 0!==R.accidental&&(N.pitches[0].accidental=R.accidental),N.pitches[0].pitch=R.pitch,N.pitches[0].name=R.name,(R.midipitch||0===R.midipitch)&&(N.pitches[0].midipitch=R.midipitch),void 0!==R.endSlur&&(N.pitches[0].endSlur=R.endSlur),void 0!==R.endTie&&(N.pitches[0].endTie=R.endTie),void 0!==R.startSlur&&(N.pitches[0].startSlur=R.startSlur),void 0!==N.startSlur&&(N.pitches[0].startSlur=N.startSlur),void 0!==N.dottedSlur&&(N.pitches[0].dottedSlur=!0),void 0!==R.startTie&&(N.pitches[0].startTie=R.startTie),void 0!==N.startTie&&(N.pitches[0].startTie=N.startTie)):(N.rest=R.rest,void 0!==R.endSlur&&(N.endSlur=R.endSlur),void 0!==R.endTie&&(N.rest.endTie=R.endTie),void 0!==R.startSlur&&(N.startSlur=R.startSlur),void 0!==R.startTie&&(N.rest.startTie=R.startTie),void 0!==N.startTie&&(N.rest.startTie=N.startTie)),void 0!==R.chord&&(N.chord=R.chord),void 0!==R.duration&&(N.duration=R.duration),void 0!==R.decoration&&(N.decoration=R.decoration),void 0!==R.graceNotes&&(N.graceNotes=R.graceNotes),delete N.startSlur,delete N.dottedSlur,S(n,u,N)&&(void 0!==N.pitches?N.pitches[0].endTie=!0:"spacer"!==N.rest.type&&(N.rest.endTie=!0),E(n,u,!1)),(R.startTie||N.startTie)&&E(n,u,!0),t=R.endChar,h>0&&(!R.rest||"spacer"!==R.rest.type)&&0==--h&&(N.endTriplet=!0),R.end_beam&&O(N),N.rest&&"rest"===N.rest.type&&1===N.duration&&B(n)<=1&&(N.rest.type="whole",N.duration=B(n)),N.duration<1&&-1===y.indexOf(N.duration)&&0!==N.duration&&(N.rest&&"spacer"===N.rest.type||a("Duration not representable: "+e.substring(f,t),e,t)),n.addFormattingOptions(N,s.formatting,"note"),o.appendElement("note",r+f,r+t,N),n.measureNotEmpty=!0,N={})}t===f&&(" "!==e[t]&&"`"!==e[t]&&a("Unknown character ignored",e,t),t++)}}}this.lineContinuation=e.indexOf("")>=0||d[0]>0,this.lineContinuation||(N={})}};var E=function(e,t,r){var i=e.currentVoice?100*e.currentVoice.staffNum+e.currentVoice.index:0;void 0===e.inTie[t]&&(e.inTie[t]=[]),e.inTie[t][i]=r},_=function(e,t){if('"'===e[t]){var r=i.getBrackettedSubstring(e,t,5);if(r[2]||a("Missing the closing quote while parsing the chord symbol",e,t),r[0]>0&&r[1].length>0&&"^"===r[1][0])r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1][0])r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1][0])r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1][0])r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1][0]){r[1]=r[1].substring(1);var s=i.getFloat(r[1]);0===s.digits&&a("Missing first position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(s.digits),","!==r[1][0]&&a("Missing comma absolutely positioned annotation.",e,t),r[1]=r[1].substring(1);var o=i.getFloat(r[1]);0===o.digits&&a("Missing second position in absolutely positioned annotation.",e,t),r[1]=r[1].substring(o.digits);var c=i.skipWhiteSpace(r[1]);r[1]=r[1].substring(c),r[2]=null,r[3]={x:s.value,y:o.value}}else!0!==n.freegchord&&(r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o([^A-Za-z])/g,"$1$2°$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)o$/g,"$1$2°"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)0([^A-Za-z])/g,"$1$2ø$3"),r[1]=r[1].replace(/^([ABCDEFG])([♯♭]?)\^([^A-Za-z])/g,"$1$2∆$3")),r[2]="default",r[1]=d.chordName(n,r[1]);return r}return[0,""]},M=function(e,t){if("{"===e[t]){var r=i.getBrackettedSubstring(e,t,1,"}");r[2]||a("Missing the closing '}' while parsing grace note",e,t),")"===e[t+r[0]]&&(r[0]++,r[1]+=")");for(var s=[],o=0,c=!1;o<r[1].length;){var l=!1;"/"===r[1][o]&&(l=!0,o++);var h=D(r[1],o,{},!1);null!==h?(h.duration=h.duration/(8*n.default_length),l&&(h.acciaccatura=!0),s.push(h),c&&(h.endTie=!0,c=!1),h.startTie&&(c=!0),o=h.endChar,delete h.endChar,h.end_beam&&(h.endBeam=!0,delete h.end_beam)):(" "===r[1][o]?s.length>0&&(s[s.length-1].endBeam=!0):a("Unknown character '"+r[1][o]+"' while parsing grace note",e,t),o++)}if(s.length)return[r[0],s]}return[0]};function A(e,t){if("&"===e[t]){for(var r=t;e[t]&&":"!==e[t]&&"|"!==e[t];)t++;return[t-r,e.substring(r+1,t)]}return[0]}function B(e){var t=e.origMeter;return t&&"specified"===t.type&&t.value&&0!==t.value.length?parseInt(t.value[0].num,10)/parseInt(t.value[0].den,10):1}var L=function(e,t){var r=n.macros[e[t]];if(void 0!==r)return"!"!==r[0]&&"+"!==r[0]||(r=r.substring(1)),"!"!==r[r.length-1]&&"+"!==r[r.length-1]||(r=r.substring(0,r.length-1)),f.includes(r)?[1,r]:p.includes(r)?("hidden"===n.volumePosition&&(r=""),[1,r]):m.includes(r)?("hidden"===n.dynamicPosition&&(r=""),[1,r]):(n.ignoredDecorations.includes(r)||a("Unknown macro: "+r,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 s=i.getBrackettedSubstring(e,t,5);if(s[1].length>1&&("^"===s[1][0]||"_"===s[1][0])&&(s[1]=s[1].substring(1)),f.includes(s[1]))return s;if(p.includes(s[1]))return"hidden"===n.volumePosition&&(s[1]=""),s;if(m.includes(s[1]))return"hidden"===n.dynamicPosition&&(s[1]=""),s;var o=g.findIndex((function(e){return s[1]===e[0]}));return o>=0?(s[1]=g[o][1],s):(o=v.findIndex((function(e){return s[1]===e[0]})))>=0?(s[1]=v[o][1],"hidden"===n.dynamicPosition&&(s[1]=""),s):"!"!==e[t]||1!==s[0]&&"!"===e[t+s[0]-1]?(a("Unknown decoration: "+s[1],e,t),s[1]="",s):[1,null];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]},P=function(e,t){for(var r=t;i.isWhiteSpace(e[t]);)t++;return[t-r]},z=function(e,t){var r=i.getBarLine(e,t);if(0===r.len)return[0,""];if(r.warn)return a(r.warn,e,t),[r.len,""];for(var n=0;n<e.length&&" "===e[t+r.len+n];n++);var s=r.len;if("["===e[t+r.len+n]&&(r.len+=n+1),'"'===e[t+r.len]&&"["===e[t+r.len-1]){var o=i.getBrackettedSubstring(e,t+r.len,5);return[r.len+o[0],r.token,o[1]]}var c=i.getTokenOf(e.substring(t+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[s,r.token]:[r.len+c.len,r.token,c.token]},H=function(e,t){var r={},n=t;for("."===e[t]&&"("===e[t+1]&&(r.dottedSlur=!0,t++);"("===e[t]||i.isWhiteSpace(e[t]);)"("===e[t]&&(t+1<e.length&&e[t+1]>="2"&&e[t+1]<="9"?(void 0!==r.triplet?a("Can't nest triplets",e,t):(r.triplet=e[t+1]-"0",r.tripletQ=T[r.triplet],r.num_notes=r.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"?(r.num_notes=e[t+4]-"0",t+=3):a("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"?(r.tripletQ=e[t+3]-"0",t+4<e.length&&":"===e[t+4]?t+5<e.length&&e[t+5]>="1"&&e[t+5]<="9"&&(r.num_notes=e[t+5]-"0",t+=4):t+=2):a("expected number after the triplet to mark the duration",e,t))),t++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),t++;return r.consumed=t-n,r};C.prototype.startNewLine=function(){var e={startChar:-1,endChar:-1};n.partForNextLine.title&&(e.part=n.partForNextLine),e.clef=n.currentVoice&&void 0!==n.staves[n.currentVoice.staffNum].clef?l.clone(n.staves[n.currentVoice.staffNum].clef):l.clone(n.clef);var t=n.currentVoice?n.currentVoice.scoreTranspose:0;if(e.key=h.standardKey(n.key.root+n.key.acc+n.key.mode,n.key.root,n.key.acc,t),e.key.mode=n.key.mode,n.key.impliedNaturals&&(e.key.impliedNaturals=n.key.impliedNaturals),n.key.explicitAccidentals)for(var r=0;r<n.key.explicitAccidentals.length;r++){for(var i=!1,a=0;a<e.key.accidentals.length;a++)e.key.accidentals[a].note===n.key.explicitAccidentals[r].note&&(e.key.accidentals[a].acc=n.key.explicitAccidentals[r].acc,i=!0);i||e.key.accidentals.push(n.key.explicitAccidentals[r])}if(n.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,h.addPosToKey(e.clef,e.key),null!==n.meter?(n.currentVoice?(n.staves.forEach((function(e){e.meter=n.meter})),e.meter=n.staves[n.currentVoice.staffNum].meter,n.staves[n.currentVoice.staffNum].meter=null):e.meter=n.meter,n.meter=null):n.currentVoice&&n.staves[n.currentVoice.staffNum].meter&&(e.meter=n.staves[n.currentVoice.staffNum].meter,n.staves[n.currentVoice.staffNum].meter=null),n.currentVoice&&n.currentVoice.name&&(e.name=n.currentVoice.name),n.vocalfont&&(e.vocalfont=n.vocalfont),n.tripletfont&&(e.tripletfont=n.tripletfont),n.gchordfont&&(e.gchordfont=n.gchordfont),n.style&&(e.style=n.style),n.currentVoice){var s=n.staves[n.currentVoice.staffNum];s.brace&&(e.brace=s.brace),s.bracket&&(e.bracket=s.bracket),s.connectBarLines&&(e.connectBarLines=s.connectBarLines),s.name&&(e.name=s.name[n.currentVoice.index]),s.subname&&(e.subname=s.subname[n.currentVoice.index]),n.currentVoice.stem&&(e.stem=n.currentVoice.stem),n.currentVoice.stafflines&&(e.stafflines=n.currentVoice.stafflines),n.currentVoice.staffscale&&(e.staffscale=n.currentVoice.staffscale),n.currentVoice.scale&&(e.scale=n.currentVoice.scale),n.currentVoice.color&&(e.color=n.currentVoice.color),n.currentVoice.style&&(e.style=n.currentVoice.style),n.currentVoice.transpose&&(e.clef.transpose=n.currentVoice.transpose)}var c=void 0===n.currentVoice||0===n.currentVoice.staffNum&&0===n.currentVoice.index;0===n.barNumbers&&c&&1!==n.currBarNumber&&(e.barNumber=n.currBarNumber),o.startNewLine(e),n.key.impliedNaturals&&delete n.key.impliedNaturals,n.partForNextLine={},4===n.tempoForNextLine.length&&o.appendElement(n.tempoForNextLine[0],n.tempoForNextLine[1],n.tempoForNextLine[2],n.tempoForNextLine[3]),n.tempoForNextLine=[]};var O=function(e){return void 0!==e.duration&&e.duration<.25&&(e.end_beam=!0),e},D=function(e,t,r,a){var c,l=function(e){return"octave"===e||"duration"===e||"Zduration"===e||"broken_rhythm"===e||"end_slur"===e};"."===e[t]&&"-"===e[t+1]&&(c=!0,t++);for(var h="startSlur",u=!1;;){switch(e[t]){case"(":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;void 0===r.startSlur?r.startSlur=1:r.startSlur++;break;case")":if(!l(h))return null;void 0===r.endSlur?r.endSlur=1:r.endSlur++;break;case"^":if("startSlur"===h)r.accidental="sharp",h="sharp2";else{if("sharp2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblsharp",h="pitch"}break;case"_":if("startSlur"===h)r.accidental="flat",h="flat2";else{if("flat2"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="dblflat",h="pitch"}break;case"=":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.accidental="natural",h="pitch";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("startSlur"!==h&&"sharp2"!==h&&"flat2"!==h&&"pitch"!==h)return l(h)?(r.endChar=t,r):null;if(r.pitch=x[e[t]],r.pitch+=7*(n.currentVoice&&void 0!==n.currentVoice.octave?n.currentVoice.octave:n.octave),r.name=e[t],r.accidental&&(r.name=w[r.accidental]+r.name),d.note(n,r),h="octave",a&&0!==n.next_note_duration?(r.duration=n.default_length*n.next_note_duration,n.next_note_duration=0,u=!0):r.duration=n.default_length,n.clef&&"perc"===n.clef.type||n.currentVoice&&"perc"===n.currentVoice.clef){var f=e[t];r.accidental&&(f=w[r.accidental]+f),s.formatting&&s.formatting.midi&&s.formatting.midi.drummap&&(r.midipitch=s.formatting.midi.drummap[f])}break;case",":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch-=7,r.name+=",";break;case"'":if("octave"!==h)return l(h)?(r.endChar=t,r):null;r.pitch+=7,r.name+="'";break;case"x":case"X":case"y":case"z":case"Z":if("startSlur"!==h)return l(h)?(r.endChar=t,r):null;r.rest={type:k[e[t]]},delete r.accidental,delete r.startSlur,delete r.startTie,delete r.endSlur,delete r.endTie,delete r.end_beam,delete r.grace_notes,r.rest.type.indexOf("multimeasure")>=0?(r.duration=s.getBarLength(),r.rest.text=1,h="Zduration"):(a&&0!==n.next_note_duration?(r.duration=n.default_length*n.next_note_duration,n.next_note_duration=0,u=!0):r.duration=n.default_length,h="duration");break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"0":case"/":if("octave"===h||"duration"===h){var p=i.getFraction(e,t);for(r.duration=r.duration*p.value,r.endChar=p.index;p.index<e.length&&(i.isWhiteSpace(e[p.index])||"-"===e[p.index]);)"-"===e[p.index]?r.startTie={}:r=O(r),p.index++;t=p.index-1,h="broken_rhythm"}else if("sharp2"===h)r.accidental="quartersharp",h="pitch";else{if("flat2"!==h){if("Zduration"===h){var m=i.getNumber(e,t);return r.duration=m.num*s.getBarLength(),r.rest.text=m.num,r.endChar=m.index,r}return null}r.accidental="quarterflat",h="pitch"}break;case"-":if("startSlur"===h)o.addTieToLastNote(c),r.endTie=!0;else{if("octave"!==h&&"duration"!==h&&"end_slur"!==h)return"broken_rhythm"===h?(r.endChar=t,r):null;if(r.startTie={},u||!a)return i.isWhiteSpace(e[t+1])&&O(r),r.endChar=t+1,r;h="broken_rhythm"}break;case" ":case"\t":if(!l(h))return null;r.end_beam=!0,c=!1;do{"."===e[t]&&"-"===e[t+1]&&(c=!0,t++),"-"===e[t]&&(r.startTie={},c&&(r.startTie.style="dotted")),t++}while(t<e.length&&(i.isWhiteSpace(e[t])||"-"===e[t])||"."===e[t]&&"-"===e[t+1]);if(r.endChar=t,u||!a||"<"!==e[t]&&">"!==e[t])return r;t--,h="broken_rhythm";break;case">":case"<":if(!l(h))return null;if(!a)return r.endChar=t,r;var g=F(e,t);t+=g[0]-1,n.next_note_duration=g[2],r.duration=g[1]*r.duration,h="end_slur";break;default:return l(h)?(r.endChar=t,r):null}if(++t===e.length)return l(h)?(r.endChar=t,r):null}return null},F=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};e.exports=C},2539:function(e){e.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"],e.exports.volumeDecorations=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],e.exports.dynamicDecorations=["crescendo(","crescendo)","diminuendo(","diminuendo)","glissando(","glissando)","~(","~)"],e.exports.accentPseudonyms=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],e.exports.accentDynamicPseudonyms=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],e.exports.nonDecorations="ABCDEFGabcdefgxyzZ[]|^_{",e.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],e.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},e.exports.rests={x:"invisible",X:"invisible-multimeasure",y:"spacer",z:"rest",Z:"multimeasure"},e.exports.accMap={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^",quarterflat:"_/",quartersharp:"^/"},e.exports.tripletQ={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2}},1881:function(e,t,r){var i=r(5008),a=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 r=function(e,t){return t>=e.length};this.eatWhiteSpace=function(e,t){for(var r=t;r<e.length;r++)if(!this.isWhiteSpace(e[r]))return r-t;return r-t},this.getKeyPitch=function(e){var t=this.skipWhiteSpace(e);if(r(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("bass"===e)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 t=function(e,t){for(;t<e.length&&(e[t]>="a"&&e[t]<="z"||e[t]>="A"&&e[t]<="Z");)t++;return t},i=this.skipWhiteSpace(e);if(r(e,i))return{len:0};var a=e.substring(i,i+3).toLowerCase();switch((a.length>1&&" "===a[1]||"^"===a[1]||"_"===a[1]||"="===a[1])&&(a=a[0]),a){case"mix":return{len:t(e,i),token:"Mix"};case"dor":return{len:t(e,i),token:"Dor"};case"phr":return{len:t(e,i),token:"Phr"};case"lyd":return{len:t(e,i),token:"Lyd"};case"loc":return{len:t(e,i),token:"Loc"};case"aeo":case"min":case"m":return{len:t(e,i),token:"m"};case"maj":case"ion":return{len:t(e,i),token:""}}return{len:0}},this.getClef=function(e,t){var a=e,n=this.skipWhiteSpace(e);if(r(e,n))return{len:0};var s=!1,o=e.substring(n);if(i.startsWith(o,"clef=")&&(s=!0,o=o.substring(5),n+=5),0===o.length&&s)return{len:n+5,warn:"No clef specified: "+a};var c=this.skipWhiteSpace(o);if(r(o,c))return{len:0};c>0&&(n+=c,o=o.substring(c));var l=null;if(i.startsWith(o,"treble"))l="treble";else if(i.startsWith(o,"bass3"))l="bass3";else if(i.startsWith(o,"bass"))l="bass";else if(i.startsWith(o,"tenor"))l="tenor";else if(i.startsWith(o,"alto2"))l="alto2";else if(i.startsWith(o,"alto1"))l="alto1";else if(i.startsWith(o,"alto"))l="alto";else if(!t&&s&&i.startsWith(o,"none"))l="none";else if(i.startsWith(o,"perc"))l="perc";else if(!t&&s&&i.startsWith(o,"C"))l="tenor";else if(!t&&s&&i.startsWith(o,"F"))l="bass";else{if(t||!s||!i.startsWith(o,"G"))return{len:n+5,warn:"Unknown clef specified: "+a};l="treble"}return o=o.substring(l.length),(c=this.isMatch(o,"+8"))>0?l+="+8":(c=this.isMatch(o,"-8"))>0&&(l+="-8"),{len:n+l.length,token:l,explicit:s}},this.getBarLine=function(e,t){switch(e[t]){case"]":switch(e[++t]){case"|":return{len:2,token:"bar_thick_thin"};case"[":return 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(e[++t]){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(e[++t]){case"]":return"|"===e[++t]&&":"===e[++t]?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};case"|":return":"===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("|"!==e[++t])return e[t]>="1"&&e[t]<="9"||'"'===e[t]?{len:1,token:"bar_invisible"}:{len:0};switch(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"}}break;case"|":switch(e[++t]){case"]":return{len:2,token:"bar_thin_thick"};case"|":return":"===e[++t]?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var r=0;":"===e[t+r];)r++;return{len:1+r,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(e,t){for(var r=0;r<e.length;r++)if(t.indexOf(e[r])<0)return{len:r,token:e.substring(0,r)};return{len:r,token:e}},this.getToken=function(e,t,r){for(var i=t;i<r&&!this.isWhiteSpace(e[i]);)i++;return e.substring(t,i)},this.isMatch=function(e,t){var a=this.skipWhiteSpace(e);return r(e,a)?0:i.startsWith(e.substring(a),t)?a+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],void 0===t.position)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 r;if("^"===e[0].token){if(r="sharp",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"^":r="dblsharp",e.shift();break;case"/":r="quartersharp",e.shift()}}else if("="===e[0].token)r="natural",e.shift();else{if("_"!==e[0].token)return{accs:t};if(r="flat",e.shift(),0===e.length)return{accs:t,warn:"Expected note name after "+r};switch(e[0].token){case"_":r="dblflat",e.shift();break;case"/":r="quarterflat",e.shift()}}if(0===e.length)return{accs:t,warn:"Expected note name after "+r};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":void 0===t&&(t=[]),t.push({acc:r,note:e[0].token[0]}),1===e[0].token.length?e.shift():e[0].token=e[0].token.substring(1);break;default:return{accs:t,warn:"Expected note name after "+r+" Found: "+e[0].token}}}return{accs:t}},this.getKeyAccidental=function(e){var t={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},i=this.skipWhiteSpace(e);if(r(e,i))return{len:0};var a=null;switch(e[i]){case"^":case"_":case"=":a=e[i];break;default:return{len:0}}if(i++,r(e,i))return{len:1,warn:"Expected note name after accidental"};switch(e[i]){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:i+1,token:{acc:t[a],note:e[i]}};case"^":case"_":case"/":if(a+=e[i],i++,r(e,i))return{len:2,warn:"Expected note name after accidental"};switch(e[i]){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:i+1,token:{acc:t[a],note:e[i]}};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||"\t"===e||""===e},this.getMeat=function(e,t,r){var i=e.indexOf("%",t);for(i>=0&&i<r&&(r=i);t<r&&(" "===e[t]||"\t"===e[t]||""===e[t]);)t++;for(;t<r&&(" "===e[r-1]||"\t"===e[r-1]||""===e[r-1]);)r--;return{start:t,end:r}};var a=function(e){return e>="A"&&e<="Z"||e>="a"&&e<="z"},n=function(e){return e>="0"&&e<="9"};this.tokenize=function(e,t,r,i){var s=this.getMeat(e,t,r);t=s.start,r=s.end;for(var o,c=[];t<r;){if('"'===e[t]){for(o=t+1;o<r&&'"'!==e[o];)o++;c.push({type:"quote",token:e.substring(t+1,o),start:t+1,end:o}),o++}else if(a(e[t])){if(o=t+1,i)for(;o<r&&!this.isWhiteSpace(e[o]);)o++;else for(;o<r&&a(e[o]);)o++;c.push({type:"alpha",token:e.substring(t,o),continueId:n(e[o]),start:t,end:o}),t=o+1}else if("."===e[t]&&n(e[o+1])){o=t+1;for(var l;o<r&&n(e[o]);)o++;l=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:null,floatt:l,continueId:a(e[o]),start:t,end:o}),t=o+1}else if(n(e[t])||"-"===e[t]&&n(e[o+1])){o=t+1;for(var h,d=null;o<r&&n(e[o]);)o++;if("."===e[o]&&n(e[o+1]))for(o++;o<r&&n(e[o]);)o++;else d=parseInt(e.substring(t,o));h=parseFloat(e.substring(t,o)),c.push({type:"number",token:e.substring(t,o),intt:d,floatt:h,continueId:a(e[o]),start:t,end:o}),t=o+1}else" "===e[t]||"\t"===e[t]||c.push({type:"punct",token:e[t],start:t,end:t+1}),o=t+1;t=o}return c},this.getVoiceToken=function(e,t,r){for(var i=t;i<r&&this.isWhiteSpace(e[i])||"="===e[i];)i++;if('"'===e[i]){var a=e.indexOf('"',i+1);return-1===a||a>=r?{len:1,err:"Missing close quote"}:{len:a-t+1,token:this.translateString(e.substring(i+1,a))}}for(var n=i;n<r&&!this.isWhiteSpace(e[n])&&"="!==e[n];)n++;return{len:n-t+1,token:e.substring(i,n)}};var s={"`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:"ž"},o={"#":"♯",b:"♭","=":"♮"},c={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:"ù"};function l(e){var t=/^(\d+)\./.exec(e);return t?t[1]:null}this.translateString=function(e){var t=e.split("\\");if(1===t.length)return e;var r=null;return t.forEach((function(e){if(null===r)r=e;else{var t=s[e.substring(0,2)];void 0!==t?r+=t+e.substring(2):void 0!==(t=c[e.substring(0,3)])?r+=t+e.substring(3):(t=o[e.substring(0,1)],r+=void 0!==t?t+e.substring(1):"\\"+e)}})),r},this.getNumber=function(e,t){for(var r=0;t<e.length;)switch(e[t]){case"0":r*=10,t++;break;case"1":r=10*r+1,t++;break;case"2":r=10*r+2,t++;break;case"3":r=10*r+3,t++;break;case"4":r=10*r+4,t++;break;case"5":r=10*r+5,t++;break;case"6":r=10*r+6,t++;break;case"7":r=10*r+7,t++;break;case"8":r=10*r+8,t++;break;case"9":r=10*r+9,t++;break;default:return{num:r,index:t}}return{num:r,index:t}},this.getFraction=function(e,t){var r=1,i=1;if("/"!==e[t]){var a=this.getNumber(e,t);r=a.num,t=a.index}if("/"===e[t]){if("/"===e[++t]){for(var n=.5;"/"===e[t++];)n/=2;return{value:r*n,index:t-1}}var s=t,o=this.getNumber(e,t);0===o.num&&s===t&&(o.num=2),0!==o.num&&(i=o.num),t=o.index}return{value:r/i,index:t}};var h=[{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<h.length;t++){var r=h[t],i=e.match(r.match);if(i){var a=l(e);a&&(e=(e=e.replace(a+".","")).trim());var n=i[0].length,s=r.replace+e.substring(0,e.length-n);return a&&(s=a+". "+s),s}}return e},this.stripComment=function(e){var t=e.indexOf("%");return t>=0?i.strip(e.substring(0,t)):i.strip(e)},this.getInt=function(e){var t=parseInt(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getFloat=function(e){var t=parseFloat(e);if(isNaN(t))return{digits:0};var r=""+t;return{value:t,digits:e.indexOf(r)+r.length}},this.getMeasurement=function(e){if(0===e.length)return{used:0};var t=1,r="";if("-"===e[0].token)e.shift(),r="-",t++;else if("number"!==e[0].type)return{used:0};if(r+=e.shift().token,0===e.length)return{used:1,value:parseInt(r)};var i=e.shift();if("."===i.token){if(t++,0===e.length)return{used:t,value:parseInt(r)};if("number"===e[0].type&&(r=r+"."+(i=e.shift()).token,t++,0===e.length))return{used:t,value:parseFloat(r)};i=e.shift()}switch(i.token){case"pt":case"px":return{used:t+1,value:parseFloat(r)};case"cm":return{used:t+1,value:parseFloat(r)/2.54*72};case"in":return{used:t+1,value:72*parseFloat(r)};default:return e.unshift(i),{used:t,value:parseFloat(r)}}};var d=function(e){return e=(e=e.replace(/\\n/g,"\n")).replace(/\\"/g,'"')};this.getBrackettedSubstring=function(e,t,r,i){for(var a=i||e[t],n=t+1,s=!1;n<e.length&&(s||e[n]!==a);)s="\\"===e[n],++n;return e[n]===a?[n-t+1,d(e.substring(t+1,n)),!0]:((n=t+r)>e.length-1&&(n=e.length-1),[n-t+1,d(e.substring(t+1,n)),!1])}};a.prototype.peekLine=function(){return this.lines[this.lineIndex]},a.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},e.exports=a},2821:function(e,t,r){var i=r(867),a=r(4208),n=r(9447),s={},o={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},c=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],l=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];s.keySignature=function(e,t,r,i,a){if("perc"===e.clef.type||"none"===e.clef.type)return{accidentals:n(t),root:r,acc:i};a||(a=0),e.localTransposeVerticalMovement=0,e.localTransposePreferFlats=!1;var s=n(t);if(!s)return e.key;if(e.localTranspose=(e.globalTranspose?e.globalTranspose:0)+a,!e.localTranspose)return{accidentals:s,root:r,acc:i};if(e.globalTransposeOrigKeySig=s,e.localTranspose%12==0)return e.localTransposeVerticalMovement=e.localTranspose/12*7,{accidentals:s,root:r,acc:i};var h=t[0];"b"===t[1]||"#"===t[1]?(h+=t[1],t=t.substr(2)):t=t.substr(1);var d=o[h],u=void 0!==d;u||(d=0,h="C",t="");for(var f=d+e.localTranspose;f<0;)f+=12;f>11&&(f%=12);var p="m"===t[0]?l[f]:c[f],m=p+t,g=n(m);g.length>0&&"flat"===g[0].acc&&(e.localTransposePreferFlats=!0);var v=m.charCodeAt(0)-h.charCodeAt(0);return e.localTranspose>0?v<0?v+=7:0===v&&("#"!==h[1]&&"b"!==m[1]||(v+=7)):e.localTranspose<0&&(v>0?v-=7:0===v&&("b"!==h[1]&&"#"!==m[1]||(v-=7))),e.localTranspose>0?e.localTransposeVerticalMovement=v+7*Math.floor(e.localTranspose/12):e.localTransposeVerticalMovement=v+7*Math.ceil(e.localTranspose/12),u?{accidentals:g,root:p[0],acc:p.length>1?p[1]:""}:{accidentals:[],root:r,acc:i}},s.chordName=function(e,t){return a(t,e.localTranspose,e.localTransposePreferFlats,e.freegchord)};var h=["c","d","e","f","g","a","b"],d={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},u={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"},f={"-2":"__","-1":"_",0:"=",1:"^",2:"^^"};s.note=function(e,t){if(e.localTranspose&&"perc"!==e.clef.type){var r=t.pitch;if(e.localTransposeVerticalMovement&&(t.pitch=t.pitch+e.localTransposeVerticalMovement,t.name)){var a=t.accidental?t.name.substring(1):t.name,n=t.accidental?t.name[0]:"",s=i.pitchIndex(a);t.name=n+i.noteName(s+e.localTransposeVerticalMovement)}if(t.accidental){var o=function(e,t,r,i,a){for(var n=h[(e+49)%7],s=0,o=0;o<i.length;o++)i[o].note.toLowerCase()===n&&(s=d[i[o].acc]);for(var c=d[r]-s,l=h[(t+49)%7],u=0,f=0;f<a.accidentals.length;f++)a.accidentals[f].note.toLowerCase()===l&&(u=d[a.accidentals[f].acc]);var p=c+u;return p<-2&&(t--,p+="c"===l||"f"===l?1:2),p>2&&(t++,p-="b"===l||"e"===l?1:2),[t,p]}(r,t.pitch,t.accidental,e.globalTransposeOrigKeySig,e.targetKey);t.pitch=o[0],t.accidental=u[o[1]],t.name&&(t.name=f[o[1]]+t.name.replace(/[_^=]/g,""))}}},e.exports=s},867:function(e){var t={},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'''"];t.pitchIndex=function(e){return r.indexOf(e)},t.noteName=function(e){return r[e]},e.exports=t},4208:function(e){var t=["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"],i=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],a=["C","Db","D","Eb","E","F","Gb","G","Ab","A","Bb","B"];e.exports=function(e,n,s,o){if(!n||n%12==0)return e;for(;n<0;)n+=12;n>11&&(n%=12);var c=e.match(/^([A-G][b#♭♯]?)([^\/]+)?\/?([A-G][b#♭♯]?)?(.+)?/);if(!c)return e;var l,h=c[1],d=c[2],u=c[3],f=c[4];return(l=t.indexOf(h))<0&&(l=r.indexOf(h)),l<0&&(l=i.indexOf(h)),l<0&&(l=a.indexOf(h)),l<0||(l+=n,l%=12,e=s?o?a[l]:r[l]:o?i[l]:t[l],d&&(e+=d),u&&((l=t.indexOf(u))<0&&(l=r.indexOf(u)),l<0&&(l=i.indexOf(u)),l<0&&(l=a.indexOf(u)),e+="/",l>=0?(l+=n,l%=12,e+=s?o?a[l]:r[l]:o?i[l]:t[l]):e+=u),f&&(e+=f)),e}},575:function(e,t,r){var i=r(9708),a=r(5008);function n(e){if(!e)return!1;if("string"==typeof e)return!1;for(var t=0;t<e.length;t++)if("string"!=typeof e[t])return!1;return!0}r(8360),e.exports=function(e){var t=this;function r(e,t){for(var r=t-1;r>0&&"bar"!==e[r].el_type;r--);return r}this.setVisualTranspose=function(t){t&&(e.visualTranspose=t)},this.resolveOverlays=function(){for(var t=!1,i=[],n=0;n<e.lines.length;n++){var s=e.lines[n];if(s.staff)for(var o=0;o<s.staff.length;o++){for(var c=s.staff[o],l=[],h=0;h<c.voices.length;h++){var d=c.voices[h];l.push({hasOverlay:!1,voice:[],snip:[]}),i[n]=0;for(var u=0,f=!1,p=0,m=-1,g=0;g<d.length;g++){var v=d[g];if("overlay"!==v.el_type||f)"bar"===v.el_type?(f?(f=!1,l[h].snip.push({start:m,len:g-m}),l[h].voice.push(v)):(u>0&&l[h].voice.push({el_type:"note",duration:u,rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}),l[h].voice.push(v)),u=0):"note"===v.el_type?f?l[h].voice.push(v):(u+=v.duration,i[n]+=v.duration):"scale"!==v.el_type&&"stem"!==v.el_type&&"overlay"!==v.el_type&&"style"!==v.el_type&&"transpose"!==v.el_type&&"color"!==v.el_type||l[h].voice.push(v);else{t=!0,f=!0,m=g,l[h].hasOverlay=!0,0===p&&(p=i[n]);for(var b=0;b<n;b++)i[b]&&e.lines[b].staff&&c.voices.length>=e.lines[b].staff[0].voices.length&&e.lines[b].staff[0].voices.push([{el_type:"note",duration:i[b],rest:{type:"invisible"},startChar:v.startChar,endChar:v.endChar}])}}l[h].hasOverlay&&0===l[h].snip.length&&l[h].snip.push({start:m,len:d.length-m})}for(h=0;h<l.length;h++){var y=l[h];if(y.hasOverlay){y.voice.splice(0,0,{el_type:"stem",direction:"down"}),c.voices.push(y.voice);for(var x=y.snip.length-1;x>=0;x--){var k=y.snip[x];c.voices[h].splice(k.start,k.len),c.voices[h].splice(k.start+1,0,{el_type:"stem",direction:"auto"});var w=r(c.voices[h],k.start);c.voices[h].splice(w,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]=a.clone(c.voices[c.voices.length-1][x]);var T=c.voices[c.voices.length-1][x];"bar"===T.el_type&&T.startEnding&&delete T.startEnding,"bar"===T.el_type&&T.endEnding&&delete T.endEnding}}}}}return t},this.cleanUp=function(t,r,s){this.closeLine(),delete e.runningFonts,function(e){n(e.metaText.notes)&&(e.metaText.notes=e.metaText.notes.join("\n")),n(e.metaText.history)&&(e.metaText.history=e.metaText.history.join("\n"))}(e),e.metaText.tempo&&e.metaText.tempo.bpm&&!e.metaText.tempo.duration&&(e.metaText.tempo.duration=[e.getBeatLength()]);var o,c,l,h=!1;for(o=0;o<e.lines.length;o++)if(void 0!==e.lines[o].staff){var d=!1;for(c=0;c<e.lines[o].staff.length;c++)if(void 0===e.lines[o].staff[c])h=!0,e.lines[o].staff[c]=null;else for(l=0;l<e.lines[o].staff[c].voices.length;l++)void 0===e.lines[o].staff[c].voices[l]?e.lines[o].staff[c].voices[l]=[]:this.containsNotes(e.lines[o].staff[c].voices[l])&&(d=!0);d||(e.lines[o]=null,h=!0)}if(h&&(e.lines=e.lines.filter((function(e){return!!e})),e.lines.forEach((function(e){e.staff&&(e.staff=e.staff.filter((function(e){return!!e})))}))),t)for(;m(e.lines,t););if(r){for(h=!1,o=0;o<e.lines.length;o++)if(void 0!==e.lines[o].staff)for(c=0;c<e.lines[o].staff.length;c++){var u=!1;for(l=0;l<e.lines[o].staff[c].voices.length;l++)this.containsNotesStrict(e.lines[o].staff[c].voices[l])&&(u=!0);u||(h=!0,e.lines[o].staff[c]=null)}h&&e.lines.forEach((function(e){e.staff&&(e.staff=e.staff.filter((function(e){return!!e})))}))}for(function(e){for(var t=!0,r=0;r<e.length;r++){var i=e[r];if(i.staff){for(var a=0;a<i.staff.length;a++){var n=i.staff[a];if(n.title){for(var s=!1,o=0;o<n.title.length;o++)n.title[o]?(n.title[o]=t?n.title[o].name:n.title[o].subname,n.title[o]?s=!0:n.title[o]=""):n.title[o]="";s||delete n.title}}t=!1}}}(e.lines),o=0;o<e.lines.length;o++)if(e.lines[o].staff)for(c=0;c<e.lines[o].staff.length;c++)delete e.lines[o].staff[c].workingClef;for(;this.resolveOverlays(););function f(e,t,r){var i;s[t]||(s[t]=[]),s[t][r]||(s[t][r]=[]);for(var a=function(e,a,n){if(void 0===s[t][r][n]){for(i=0;i<s[t][r].length;i++)if(void 0!==s[t][r][i]){n=i;break}if(void 0===s[t][r][n]){var o=100*n+1;e.endSlur.forEach((function(e){o===e&&--o})),s[t][r][n]=[o]}}for(var c,l=0;l<a;l++)c=s[t][r][n].pop(),e.endSlur.push(c);return 0===s[t][r][n].length&&delete s[t][r][n],c},n=function(e,i,a,n){e.startSlur=[],void 0===s[t][r][a]&&(s[t][r][a]=[]);for(var o=100*a+1,c=0;c<i;c++)n&&(n.forEach((function(e){o===e&&++o})),n.forEach((function(e){o===e&&++o})),n.forEach((function(e){o===e&&++o}))),s[t][r][a].forEach((function(e){o===e&&++o})),s[t][r][a].forEach((function(e){o===e&&++o})),s[t][r][a].push(o),e.startSlur.push({label:o}),e.dottedSlur&&(e.startSlur[e.startSlur.length-1].style="dotted",delete e.dottedSlur),o++},o=0;o<e.length;o++){var c=e[o];if("note"===c.el_type){if(c.gracenotes)for(var l=0;l<c.gracenotes.length;l++){if(c.gracenotes[l].endSlur){var h=c.gracenotes[l].endSlur;c.gracenotes[l].endSlur=[];for(var d=0;d<h;d++)a(c.gracenotes[l],1,20)}c.gracenotes[l].startSlur&&(i=c.gracenotes[l].startSlur,n(c.gracenotes[l],i,20))}if(c.endSlur&&(i=c.endSlur,c.endSlur=[],a(c,i,0)),c.startSlur&&n(c,i=c.startSlur,0),c.pitches){for(var u=[],f=0;f<c.pitches.length;f++)if(c.pitches[f].endSlur){var p=c.pitches[f].endSlur;c.pitches[f].endSlur=[];for(var m=0;m<p;m++){var g=a(c.pitches[f],1,f+1);u.push(g)}}for(f=0;f<c.pitches.length;f++)c.pitches[f].startSlur&&(i=c.pitches[f].startSlur,n(c.pitches[f],i,f+1,u));c.gracenotes&&c.pitches[0].endSlur&&100===c.pitches[0].endSlur[0]&&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],1===c.pitches[0].endSlur.length?delete c.pitches[0].endSlur:100===c.pitches[0].endSlur[0]?c.pitches[0].endSlur.shift():100===c.pitches[0].endSlur[c.pitches[0].endSlur.length-1]&&c.pitches[0].endSlur.pop(),1===s[t][r][1].length?delete s[t][r][1]:s[t][r][1].pop())}}}}function p(e){i.fixClef(e)}function m(e,t){for(o=0;o<e.length;o++)if(void 0!==e[o].staff)for(c=0;c<e[o].staff.length;c++){var r=[];for(l=0;l<e[o].staff[c].voices.length;l++)for(var i=e[o].staff[c].voices[l],n=0,s=0;s<i.length;s++)if("bar"===i[s].el_type){if(++n>=t&&s<i.length-1){var h=g(e,o);if(!h){var d=JSON.parse(JSON.stringify(e[o]));e.push(a.clone(d)),h=e[e.length-1];for(var u=0;u<h.staff.length;u++)for(var f=0;f<h.staff[u].voices.length;f++)h.staff[u].voices[f]=[]}var p=s+1,m=e[o].staff[c].voices[l].slice(p);return e[o].staff[c].voices[l]=e[o].staff[c].voices[l].slice(0,p),h.staff[c].voices[l]=r.concat(m.concat(h.staff[c].voices[l])),!0}}else i[s].duration||r.push(i[s])}return!1}function g(e,t){for(t++;e.length>t;){if(e[t].staff)return e[t];t++}return null}for(e.lineNum=0;e.lineNum<e.lines.length;e.lineNum++){var v=e.lines[e.lineNum].staff;if(v)for(e.staffNum=0;e.staffNum<v.length;e.staffNum++)for(v[e.staffNum].clef&&p(v[e.staffNum].clef),e.voiceNum=0;e.voiceNum<v[e.staffNum].voices.length;e.voiceNum++){var b=v[e.staffNum].voices[e.voiceNum];f(b,e.staffNum,e.voiceNum);for(var y=0;y<b.length;y++)"clef"===b[y].el_type&&p(b[y]);if(b.length>0&&b[b.length-1].barNumber){var x=g(e.lines,e.lineNum);x&&(x.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return delete e.staffNum,delete e.voiceNum,delete e.lineNum,delete e.potentialStartBeam,delete e.potentialEndBeam,delete e.vskipPending,s},e.reset(),this.getLastNote=function(){if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff&&e.lines[e.lineNum].staff[e.staffNum]&&e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])for(var t=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum].length-1;t>=0;t--){var r=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum][t];if("note"===r.el_type)return r}return null},this.addTieToLastNote=function(e){var t=this.getLastNote();return!!(t&&t.pitches&&t.pitches.length>0)&&(t.pitches[0].startTie={},e&&(t.pitches[0].startTie.style="dotted"),!0)},this.getDuration=function(e){return e.duration?e.duration:0},this.closeLine=function(){e.potentialStartBeam&&e.potentialEndBeam&&(e.potentialStartBeam.startBeam=!0,e.potentialEndBeam.endBeam=!0),delete e.potentialStartBeam,delete e.potentialEndBeam},this.appendElement=function(r,i,a,n){var s=e;n.el_type=r,null!==i&&(n.startChar=i),null!==a&&(n.endChar=a);var o=function(){void 0!==s.potentialStartBeam&&void 0!==s.potentialEndBeam&&(s.potentialStartBeam.startBeam=!0,s.potentialEndBeam.endBeam=!0),delete s.potentialStartBeam,delete s.potentialEndBeam};"note"===r?t.getDuration(n)>=.25||n.force_end_beam_last&&void 0!==s.potentialStartBeam?o():n.end_beam&&void 0!==s.potentialStartBeam?void 0===n.rest?(s.potentialStartBeam.startBeam=!0,n.endBeam=!0,delete s.potentialStartBeam,delete s.potentialEndBeam):o():void 0===n.rest&&(void 0===s.potentialStartBeam?n.end_beam||(s.potentialStartBeam=n,delete s.potentialEndBeam):s.potentialEndBeam=n):o(),delete n.end_beam,delete n.force_end_beam_last,function(e){var t=s.lines[s.lineNum].staff[s.staffNum];if(t){if(void 0!==e.pitches){var r=t.workingClef.verticalPos;e.pitches.forEach((function(e){e.verticalPos=e.pitch-r}))}if(void 0!==e.gracenotes){var i=t.workingClef.verticalPos;e.gracenotes.forEach((function(e){e.verticalPos=e.pitch-i}))}t.voices[s.voiceNum].push(e)}}(n)},this.appendStartingElement=function(t,r,i,n){var s;this.closeLine(),"key"===t&&(s=n.impliedNaturals,delete n.impliedNaturals,delete n.explicitAccidentals);var o=a.clone(n);if(e.lines[e.lineNum]&&e.lines[e.lineNum].staff){e.lines[e.lineNum].staff.length<=e.staffNum&&(e.lines[e.lineNum].staff[e.staffNum]={},e.lines[e.lineNum].staff[e.staffNum].clef=a.clone(e.lines[e.lineNum].staff[0].clef),e.lines[e.lineNum].staff[e.staffNum].key=a.clone(e.lines[e.lineNum].staff[0].key),e.lines[e.lineNum].staff[0].meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=a.clone(e.lines[e.lineNum].staff[0].meter)),e.lines[e.lineNum].staff[e.staffNum].workingClef=a.clone(e.lines[e.lineNum].staff[0].workingClef),e.lines[e.lineNum].staff[e.staffNum].voices=[[]]),"clef"===t&&(e.lines[e.lineNum].staff[e.staffNum].workingClef=o);for(var c=e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum],l=0;l<c.length;l++){if("note"===c[l].el_type||"bar"===c[l].el_type)return o.el_type=t,o.startChar=r,o.endChar=i,s&&(o.accidentals=s.concat(o.accidentals)),void c.push(o);if(c[l].el_type===t)return o.el_type=t,o.startChar=r,o.endChar=i,s&&(o.accidentals=s.concat(o.accidentals)),void(c[l]=o)}e.lines[e.lineNum].staff[e.staffNum][t]=n}},this.pushLine=function(t){e.vskipPending&&(t.vskip=e.vskipPending,delete e.vskipPending),e.lines.push(t)},this.addSubtitle=function(e,t){this.pushLine({subtitle:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addSpacing=function(t){e.vskipPending=t},this.addNewPage=function(e){this.pushLine({newpage:e})},this.addSeparator=function(e,t,r,i){this.pushLine({separator:{spaceAbove:Math.round(e),spaceBelow:Math.round(t),lineLength:Math.round(r),startChar:i.startChar,endChar:i.endChar}})},this.addText=function(e,t){this.pushLine({text:{text:e,startChar:t.startChar,endChar:t.endChar}})},this.addCentered=function(e){this.pushLine({text:[{text:e,center:!0}]})},this.containsNotes=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type||"bar"===e[t].el_type)return!0;return!1},this.containsNotesStrict=function(e){for(var t=0;t<e.length;t++)if("note"===e[t].el_type&&(void 0===e[t].rest||void 0!==e[t].chord))return!0;return!1},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(r){var i=e;this.closeLine();var a=function(e){var r=i.lines[i.lineNum].staff[i.staffNum];if(r.voices[i.voiceNum]=[],r.title||(r.title=[]),r.title[i.voiceNum]={name:e.name,subname:e.subname},e.style&&t.appendElement("style",null,null,{head:e.style}),e.stem)t.appendElement("stem",null,null,{direction:e.stem});else if(i.voiceNum>0){if(void 0!==r.voices[0]){for(var a=!1,n=0;n<r.voices[0].length;n++)"stem"===r.voices[0].el_type&&(a=!0);a||r.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}t.appendElement("stem",null,null,{direction:"down"})}e.scale&&t.appendElement("scale",null,null,{size:e.scale}),e.color&&t.appendElement("color",null,null,{color:e.color})},n=function(e){e.key&&e.key.impliedNaturals&&(e.key.accidentals=e.key.accidentals.concat(e.key.impliedNaturals),delete e.key.impliedNaturals),i.lines[i.lineNum].staff[i.staffNum]={voices:[],clef:e.clef,key:e.key,workingClef:e.clef},void 0!==e.stafflines&&(i.lines[i.lineNum].staff[i.staffNum].clef.stafflines=e.stafflines,i.lines[i.lineNum].staff[i.staffNum].workingClef.stafflines=e.stafflines),e.staffscale&&(i.lines[i.lineNum].staff[i.staffNum].staffscale=e.staffscale),e.annotationfont&&t.setLineFont("annotationfont",e.annotationfont),e.gchordfont&&t.setLineFont("gchordfont",e.gchordfont),e.tripletfont&&t.setLineFont("tripletfont",e.tripletfont),e.vocalfont&&t.setLineFont("vocalfont",e.vocalfont),e.bracket&&(i.lines[i.lineNum].staff[i.staffNum].bracket=e.bracket),e.brace&&(i.lines[i.lineNum].staff[i.staffNum].brace=e.brace),e.connectBarLines&&(i.lines[i.lineNum].staff[i.staffNum].connectBarLines=e.connectBarLines),e.barNumber&&(i.lines[i.lineNum].staff[i.staffNum].barNumber=e.barNumber),a(e),e.part&&t.appendElement("part",e.part.startChar,e.part.endChar,{title:e.part.title}),void 0!==e.meter&&(i.lines[i.lineNum].staff[i.staffNum].meter=e.meter),i.vskipPending&&(i.lines[i.lineNum].vskip=i.vskipPending,delete i.vskipPending)};void 0===e.lines[e.lineNum]?function(e){i.lines[i.lineNum]={staff:[]},n(e)}(r):void 0===e.lines[e.lineNum].staff?(e.lineNum++,this.startNewLine(r)):void 0===e.lines[e.lineNum].staff[e.staffNum]?n(r):void 0===e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum]?a(r):this.containsNotes(e.lines[e.lineNum].staff[e.staffNum].voices[e.voiceNum])?(e.lineNum++,this.startNewLine(r)):r.part&&t.appendElement("part",r.part.startChar,r.part.endChar,{title:r.part.title})},this.setRunningFont=function(t,r){e.runningFonts[t]=r},this.setLineFont=function(t,r){if(e.runningFonts[t]){for(var i=!1,a=Object.keys(r),n=0;n<a.length;n++)e.runningFonts[t][a[n]]!==r[a[n]]&&(i=!0);i&&(e.lines[e.lineNum].staff[e.staffNum][t]=r)}e.runningFonts[t]=r},this.setBarNumberImmediate=function(e){var t=this.getCurrentVoice();if(t&&t.length>0){var r=t[t.length-1];if("bar"!==r.el_type)return e-1;void 0!==r.barNumber&&(r.barNumber=e)}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 r=t-1;r>=0;r--)if(void 0!==e.lines[r].staff)return!1;return!0},this.getCurrentVoice=function(){var t=e.lines[e.lineNum];if(!t)return null;var r=t.staff[e.staffNum];return r&&void 0!==r.voices[e.voiceNum]?r.voices[e.voiceNum]:null},this.setCurrentVoice=function(t,r){e.staffNum=t,e.voiceNum=r;for(var i=0;i<e.lines.length;i++)if(e.lines[i].staff&&(void 0===e.lines[i].staff[t]||void 0===e.lines[i].staff[t].voices[r]||!this.containsNotes(e.lines[i].staff[t].voices[r])))return void(e.lineNum=i);e.lineNum=i},this.addMetaText=function(t,r,i){void 0===e.metaText[t]?(e.metaText[t]=r,e.metaTextInfo[t]=i):("string"==typeof e.metaText[t]&&"string"==typeof r?e.metaText[t]+="\n"+r:("string"===e.metaText[t]&&(e.metaText[t]=[{text:e.metaText[t]}]),"string"==typeof r&&(r=[{text:r}]),e.metaText[t]=e.metaText[t].concat(r)),e.metaTextInfo[t].endChar=i.endChar)},this.addMetaTextArray=function(t,r,i){void 0===e.metaText[t]?(e.metaText[t]=[r],e.metaTextInfo[t]=i):(e.metaText[t].push(r),e.metaTextInfo[t].endChar=i.endChar)},this.addMetaTextObj=function(t,r,i){e.metaText[t]=r,e.metaTextInfo[t]=i}}},1756:function(e){function t(e,t){for(var r=[],i=[],a=0,n=0;n<e.length;n++){var s=e[n],o=a+s;o<t?a=o:t-a<o-t&&a>0?(r.push(n-1),i.push(Math.round(a-s)),a=s):n<e.length-1&&(r.push(n),i.push(Math.round(a)),a=0)}return i.push(Math.round(a)),{lineBreaks:r,totals:i}}function r(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r]);return t}function i(e,t,i,a,n,s,o,c,l,h,d){for(var u=h;u<e.length;u++){var f=e[u];i+=f,a+=f;var p=Math.abs(i-t[c]);if(Math.abs(p-s)<t[0]/10)if(p<s){var m=r(n),g=r(l);g.push(u-1),m.push(a-f),d.push({accumulator:i,lineAccumulator:f,lineWidths:m,lastVariance:Math.abs(i-t[c+1]),highestVariance:Math.max(o,s),currLine:c+1,lineBreaks:g,startIndex:u+1})}else p>s&&u<e.length-1&&(m=r(n),g=r(l),d.push({accumulator:i,lineAccumulator:a,lineWidths:m,lastVariance:p,highestVariance:Math.max(o,p),currLine:c,lineBreaks:g,startIndex:u+1}));p>s?(l.push(u-1),c++,o=Math.max(o,s),s=Math.abs(i-t[c]),n.push(a-f),a=f):s=p}n.push(a)}function a(e,t,r,a){for(var n=Math.ceil(e.total/t),s=Math.floor(e.total/n),o=[],c=0;c<n;c++)o.push(s*(c+1));var l=[];l.push({accumulator:0,lineAccumulator:0,lineWidths:[],lastVariance:999999,highestVariance:0,currLine:0,lineBreaks:[],startIndex:0});for(var h=0;h<l.length;)i(e.measureWidths,o,l[h].accumulator,l[h].lineAccumulator,l[h].lineWidths,l[h].lastVariance,l[h].highestVariance,l[h].currLine,l[h].lineBreaks,l[h].startIndex,l),h++;for(c=0;c<l.length;c++){var d=l[c];d.variances=[],d.aveVariance=0;for(var u=0;u<d.lineWidths.length;u++){var f=d.lineWidths[u];d.variances.push(f-o[0]),d.aveVariance+=Math.abs(f-o[0])}d.aveVariance=d.aveVariance/d.lineWidths.length,a.attempts.push({type:"optimizeLineWidths",lineBreaks:d.lineBreaks,variances:d.variances,aveVariance:d.aveVariance,widths:e.measureWidths})}var p=9999999,m=-1;for(c=0;c<l.length;c++)(d=l[c]).aveVariance<p&&(p=d.aveVariance,m=c);return{failed:!1,lineBreaks:l[m].lineBreaks,variance:l[m].highestVariance}}function n(e,t,r){for(var i=[],a=[],n=0,s=!1,o=0;o<e.length;o++)(n+=e[o])>t&&(s=!0),o%r==r-1&&(o!==e.length-1&&i.push(o),a.push(Math.round(n)),n=0);return{failed:s,totals:a,lineBreaks:i}}e.exports={wrapLines:function(e,t,r){if(t&&0!==e.lines.length){var i=e.deline({lineBreaks:!1}),a=function(e,t){for(var r=[],i=0,a=0,n=0,s=0;s<e.length;s++){var o=e[s];if(o.staff){var c=a,l=t[i];i++;for(var h=0;h<o.staff.length;h++)for(var d=o.staff[h],u=0;u<d.voices.length;u++){n=c;for(var f=0,p=0,m=d.voices[u],g=0,v=0;v<m.length;v++)"bar"===m[v].el_type&&(l[p]===f&&(r.push({ogLine:s,line:n,staff:h,voice:u,start:g,end:v}),g=v+1,n++,a=Math.max(a,n),p++),f++);r.push({ogLine:s,line:n,staff:h,voice:u,start:g,end:m.length}),n++,a=Math.max(a,n)}}else r.push({ogLine:s,line:n}),n++,a=Math.max(a,n)}return r}(i,t);e.lines=function(e,t,r){for(var i=[],a=[],n=[],s=1,o=0;o<t.length;o++){var c=t[o];if(e[c.ogLine].staff){var l=e[c.ogLine].staff[c.staff];if(i[c.line]||(i[c.line]={staff:[]}),!i[c.line].staff[c.staff]){i[c.line].staff[c.staff]={voices:[]},void 0!==r&&0===c.staff&&c.line>0&&(i[c.line].staff[c.staff].barNumber=s);for(var h=Object.keys(l),d=0;d<h.length;d++){var u="voices"===h[d];"meter"===h[d]&&0!==c.line&&(u=!0),u||(i[c.line].staff[c.staff][h[d]]=l[h[d]])}a[c.staff]&&(i[c.line].staff[c.staff].key=a[c.staff])}i[c.line].staff[c.staff].voices[c.voice]||(i[c.line].staff[c.staff].voices[c.voice]=[]),i[c.line].staff[c.staff].voices[c.voice]=e[c.ogLine].staff[c.staff].voices[c.voice].slice(c.start,c.end+1),n[10*c.staff+c.voice]&&i[c.line].staff[c.staff].voices[c.voice].unshift({el_type:"stem",direction:n[10*c.staff+c.voice].direction});for(var f=i[c.line].staff[c.staff].voices[c.voice],p=f.length-1;p>=0;p--)if("key"===f[p].el_type){a[c.staff]={root:f[p].root,acc:f[p].acc,mode:f[p].mode,accidentals:f[p].accidentals.filter((function(e){return"natural"!==e.acc}))};break}for(p=f.length-1;p>=0;p--)if("stem"===f[p].el_type){n[10*c.staff+c.voice]={direction:f[p].direction};break}if(void 0!==r&&0===c.staff&&0===c.voice)for(p=0;p<f.length;p++)"bar"===f[p].el_type&&(s++,p===f.length-1?delete f[p].barNumber:f[p].barNumber=s)}else i[c.line]=e[c.ogLine]}for(var m=0;m<i.length;m++)i[m].staff&&(i[m].staff=i[m].staff.filter((function(e){return null!=e})));return i}(i,a,r),e.lineBreaks=a}},calcLineWraps:function(e,r,i){if(0===r.length||i.staffwidth<r[0].left)return{reParse:!1,explanation:"Staff width is narrower than the margin",revisedParams:i};var s=i.scale?Math.max(i.scale,.1):1,o=i.wrap.minSpacing?Math.max(parseFloat(i.wrap.minSpacing),1):1,c=i.wrap.minSpacingLimit?Math.max(parseFloat(i.wrap.minSpacingLimit),1):o-.1,l=i.wrap.maxSpacing?Math.max(parseFloat(i.wrap.maxSpacing),1):void 0;i.wrap.lastLineLimit&&!l&&(l=Math.max(parseFloat(i.wrap.lastLineLimit),1));for(var h=i.wrap.preferredMeasuresPerLine?Math.max(parseInt(i.wrap.preferredMeasuresPerLine,10),0):void 0,d=[],u=[],f=0;f<r.length;f++){var p=r[f],m=i.staffwidth-p.left,g=m/o/s,v=m/c/s,b={widths:p,lineBreakPoint:g,minLineSize:m/l/s,attempts:[],staffWidth:i.staffwidth,minWidth:Math.round(v)},y=null;if(h){var x=n(p.measureWidths,g,h);b.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:h,lineBreaks:x.lineBreaks,failed:x.failed,totals:x.totals}),x.failed||(y=x.lineBreaks)}if(!y){var k=t(p.measureWidths,g);b.attempts.push({type:"Free Form",lineBreaks:k.lineBreaks,totals:k.totals}),(y=k.lineBreaks).length>0&&p.measureWidths.length<25&&(k=a(p,g,0,b),b.attempts.push({type:"Optimize",failed:k.failed,reason:k.reason,lineBreaks:k.lineBreaks,totals:k.totals}),k.failed||(y=k.lineBreaks))}d.push(y),u.push(b)}var w=function(e,t,r){var i={lineBreaks:e,staffwidth:t};for(var a in r)r.hasOwnProperty(a)&&"wrap"!==a&&"staffwidth"!==a&&(i[a]=r[a]);return{revisedParams:i}}(d,i.staffwidth,i);return w.explanation=u,w.reParse=!0,w}}},9716:function(e,t,r){var i,a=r(7207),n=r(5058);!function(){"use strict";var e,t,r,s,o,c,l,h,d,u,f,p,m,g,v,b,y,x,k=1,w={num:4,den:4},T=128,C=!0,S=105,N=95,E=85,_=.25,M=0,A={},B=0;function L(e){for(var t=d.length-1;t>=0;t--)if("program"===d[t].cmd)return void(d[t].channel=e)}function P(e){return e/1e6}function z(e){return Math.round(e*k*1e6)/1e6}function H(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 O(e,t){var r=t.start,i=t.duration,a=z(1/32);switch(e){case"trill":for(var n=1;i>0;)d.push({cmd:"note",pitch:t.pitch+n,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),n=1===n?0:1,i-=a,r+=a;break;case"mordent":d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,d.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:i,gap:0,instrument:h});break;case"lowermordent":d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,d.push({cmd:"note",pitch:t.pitch-1,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=a,r+=a,d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:i,gap:0,instrument:h});break;case"turn":a=t.duration/5,d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),d.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+a,duration:a,gap:0,instrument:h,style:"decoration"}),d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+2*a,duration:a,gap:0,instrument:h,style:"decoration"}),d.push({cmd:"note",pitch:t.pitch+1,volume:t.volume,start:r+3*a,duration:a,gap:0,instrument:h,style:"decoration"}),d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r+4*a,duration:a,gap:0,instrument:h});break;case"roll":for(;i>0;)d.push({cmd:"note",pitch:t.pitch,volume:t.volume,start:r,duration:a,gap:0,instrument:h,style:"decoration"}),i-=2*a,r+=2*a}}function D(e,t){var r,i=function(e,t){if(t)return 0;var r;if(g)r=g,g=void 0;else if(C)if(B>e)r=E;else{var i=(e-m)/H(w);r=0===i?S:parseInt(i,10)===i?N:E}else r=N;return v&&(r+=v,v=void 0),r<0&&(r=0),r>127&&(r=127),t?0:r}(P(e.time),t);if(p.processChord(e),e.gracenotes&&e.pitches&&e.pitches.length>0&&e.pitches[0]&&(r=function(e,t){for(var r,i=0,a=[],s=0;s<e.length;s++)i+=(r=e[s]).duration;var o=t/2/i;for(s=0;s<e.length;s++){var c=I(r=e[s]);if(h===T&&x){var l=n(r);l&&x[l]&&(c=x[l].sound)}var d={pitch:c,duration:r.duration*o};d=Y(d),a.push(d)}return a}(e.gracenotes,e.pitches[0].duration),e.elem&&(e.elem.midiGraceNotePitches=function(e,t,r,i){var a=[];r=Math.round(r);for(var n=0;n<e.length;n++){var s=e[n];d.push({cmd:"note",pitch:s.pitch,volume:r,start:t,duration:s.duration,gap:0,instrument:i,style:"grace"}),a.push({pitch:s.pitch,durationInMeasures:s.duration,volume:r,instrument:i}),t+=s.duration}return a}(r,P(e.time),2*i/3,h))),e.elem){var a=P(e.time),s=a/_/o*60*1e3;if(void 0===e.elem.currentTrackMilliseconds)e.elem.currentTrackMilliseconds=s,e.elem.currentTrackWholeNotes=a;else if(void 0===e.elem.currentTrackMilliseconds.length)e.elem.currentTrackMilliseconds!==s&&(e.elem.currentTrackMilliseconds=[e.elem.currentTrackMilliseconds,s],e.elem.currentTrackWholeNotes=[e.elem.currentTrackWholeNotes,a]);else{for(var c=!1,l=0;l<e.elem.currentTrackMilliseconds.length;l++)e.elem.currentTrackMilliseconds[l]===s&&(c=!0);c||(e.elem.currentTrackMilliseconds.push(s),e.elem.currentTrackWholeNotes.push(a))}}if(e.pitches){var u="",b=function(e,t){var r={};if(e.decoration)for(var i=0;i<e.decoration.length;i++)"staccato"===e.decoration[i]?r.thisBreakBetweenNotes="staccato":"tenuto"===e.decoration[i]?r.thisBreakBetweenNotes="tenuto":"accent"===e.decoration[i]?r.velocity=Math.min(127,1.5*t):"trill"===e.decoration[i]?r.noteModification="trill":"lowermordent"===e.decoration[i]?r.noteModification="lowermordent":"uppermordent"===e.decoration[i]||"mordent"===e.decoration[i]?r.noteModification="mordent":"turn"===e.decoration[i]?r.noteModification="turn":"roll"===e.decoration[i]&&(r.noteModification="roll");return r}(e,i);b.thisBreakBetweenNotes&&(u=b.thisBreakBetweenNotes),b.velocity&&(i=b.velocity);var y=e.pitches;"rhythm"===e.style&&(y=p.setRhythmHead(!0,e)),e.elem&&(e.elem.midiPitches=[]);for(var k=0;k<y.length;k++){var A=y[k];if(A){A.startSlur&&(M+=A.startSlur.length),A.endSlur&&(M-=A.endSlur.length);var L=A.actualPitch?A.actualPitch:I(A);if(h===T&&x){var D=n(A);D&&x[D]&&(L=x[D].sound)}var F={cmd:"note",pitch:L,volume:i,start:P(e.time),duration:z(A.duration),instrument:h,startChar:e.elem.startChar,endChar:e.elem.endChar};if(F=Y(F),e.gracenotes&&(F.duration=F.duration/2,F.start=F.start+F.duration),e.elem&&e.elem.midiPitches.push(F),b.noteModification)O(b.noteModification,F);else{switch(M>0?F.endType="tenuto":u&&(F.endType=u),F.endType){case"tenuto":F.gap=-.001;break;case"staccato":var V=.4*F.duration;F.gap=o/60*V;break;default:F.gap=0}d.push(F)}}}d.length}var G=function(e){return e.pitches&&e.pitches.length>0&&e.pitches[0]?e.pitches[0].duration:e.elem?e.elem.duration:e.duration}(e);f=Math.max(f,P(e.time)+z(G))}i=function(i,n,T,z){n||(n={}),z||(z={}),e=[],t=[0,0,0,0,0,0,0],s=[],o=n.qpm,c=void 0,k=1,l=void 0,h=void 0,d=void 0,u=void 0,f=0,x=T,w={num:4,den:4},C=!0,S=105,N=95,E=85,_=.25,g=void 0,v=void 0,M=0,b=[],A={},y=1,i.length>0&&i[0].length>0&&(B=i[0][0].pickupLength),void 0===n.bassprog||z.bassprog||(z.bassprog=[n.bassprog]),void 0===n.bassvol||z.bassvol||(z.bassvol=[n.bassvol]),void 0===n.chordprog||z.chordprog||(z.chordprog=[n.chordprog]),void 0===n.chordvol||z.chordvol||(z.chordvol=[n.chordvol]),void 0===n.gchord||z.gchord||(z.gchord=[n.gchord]),p=new a(i.length,n.chordsOff,z,w),function(e,t){for(var r=0;r<e.length;r++){for(var i=e[r],a={},n=t.qpm,s=0,o=1,c=0;c<i.length;c++){var l=i[c];if("tempo"!==l.el_type){l.time=s;var h=l.duration?l.duration:0;if(s+=Math.round(h*o*1e6),l.pitches){for(var d=0;d<l.pitches.length;d++){var u=l.pitches[d];if(u)if(u.duration=l.duration,u.startTie)void 0===a[u.pitch]?a[u.pitch]={el:c,pitch:d}:(i[a[u.pitch].el].pitches[a[u.pitch].pitch].duration+=u.duration,l.pitches[d]=null);else if(u.endTie){var f=a[u.pitch];if(f){var p=u.duration;delete i[f.el].pitches[f.pitch].startTie,i[f.el].pitches[f.pitch].duration+=p,l.pitches[d]=null,delete a[u.pitch]}else delete u.endTie}}delete l.duration}}else n?o=l.qpm?n/l.qpm:1:n=l.qpm}for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];delete i[g.el].pitches[g.pitch].startTie}}}(i,n);for(var O=0;O<i.length;O++){r=0,p.setTranspose(r);var F=i[O];d=[{cmd:"program",channel:O,instrument:l}],u=void 0,m=0,p.setLastBarTime(0);var I=!1;(!0===n.voicesOff||n.voicesOff&&n.voicesOff.length&&n.voicesOff.indexOf(O)>=0)&&(I=!0);for(var Y=0;Y<F.length;Y++){var G=F[Y];switch(G.el_type){case"name":u={cmd:"text",type:"name",text:G.trackName};break;case"note":D(G,I);break;case"key":t=V(G);break;case"meter":c||(c=G),w=G,p.setMeter(w),_=H(w),W();break;case"tempo":o?k=G.qpm?o/G.qpm:1:o=G.qpm,p.setTempoChangeFactor(k);break;case"transpose":r=G.transpose,p.setTranspose(r);break;case"bar":p.barEnd(G),e=[],0===O&&q(i.length+1),p.setRhythmHead(!1),m=P(G.time),p.setLastBarTime(m);break;case"bagpipes":break;case"instrument":if(void 0===l&&(l=G.program),h=G.program,d.length>0&&"program"===d[d.length-1].cmd)d[d.length-1].instrument=G.program;else{var X;for(X=d.length-1;X>=0&&"program"!==d[X].cmd;X--);(X<0||d[X].instrument!==G.program)&&d.push({cmd:"program",channel:0,instrument:G.program})}break;case"channel":L(G.channel);break;case"drum":A=j(G.params),W();break;case"gchordOn":p.gChordOn(G);break;case"beat":S=G.beats[0],N=G.beats[1],E=G.beats[2];break;case"vol":g=G.volume;break;case"volinc":v=G.volume;break;case"beataccents":C=G.value;break;case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":p.paramChange(G);break;default:console.log("MIDI creation. Unknown el_type: "+G.el_type+"\n")}}void 0===d[0].instrument&&(d[0].instrument=l||0),u&&d.unshift(u),s.push(d),p.finish(),b.length}return n.detuneOctave&&function(e,t){for(var r={},i=0;i<e.length;i++)for(var a=0;a<e[i].length;a++){var n=e[i][a];"note"===n.cmd&&(void 0===r[n.start]&&(r[n.start]=[]),r[n.start].push({track:i,event:a,pitch:n.pitch}))}var s=Object.keys(r);for(i=0;i<s.length;i++){var o=r[s[i]];if(o.length>1){var c=(o=o.sort((function(e,t){return e.pitch-t.pitch})))[o.length-1],l=c.pitch%12,h=!1;for(a=0;!h&&a<o.length-1;a++)o[a].pitch%12===l&&(h=!0);if(h){var d=e[c.track][c.event];d.cents||(d.cents=0),d.cents+=t}}}}(s,parseInt(n.detuneOctave,10)),p.addTrack(s),b.length>0&&s.push(b),{tempo:o,instrument:l,tracks:s,totalDuration:f}};var F=[0,2,4,5,7,9,11];function I(i){if(void 0!==i.midipitch)return i.midipitch;var a=i.pitch;if(i.accidental)switch(i.accidental){case"sharp":e[a]=1;break;case"flat":e[a]=-1;break;case"natural":e[a]=0;break;case"dblsharp":e[a]=2;break;case"dblflat":e[a]=-2;break;case"quartersharp":e[a]=.25;break;case"quarterflat":e[a]=-.25}var n=12*function(e){return Math.floor(e/7)}(a)+F[G(a)]+60;return void 0!==e[a]?n+=e[a]:n+=t[G(a)],n+=r}function V(e){var t=[0,0,0,0,0,0,0];if(!e.accidentals)return t;for(var r=0;r<e.accidentals.length;r++){var i,a=e.accidentals[r];switch(a.acc){case"flat":i=-1;break;case"quarterflat":i=-.25;break;case"sharp":i=1;break;case"quartersharp":i=.25;break;default:i=0}t[G(a.note.toLowerCase().charCodeAt(0)-"c".charCodeAt(0))]+=i}return t}function Y(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 G(e){return(e%=7)<0&&(e+=7),e}function j(e){if(0===e.pattern.length||!1===e.on)return{on:!1};for(var t=e.pattern[0],r=[],i="",a=0,n=0;n<t.length;n++)if("d"===t[n]&&a++,"d"===t[n]||"z"===t[n])0!==i.length?(r.push(i),i=t[n]):i+=t[n];else{if(0===i.length)return{on:!1};i+=t[n]}if(0!==i.length&&r.push(i),e.pattern.length!==2*a+1)return{on:!1};for(var s={on:!0,bars:e.bars,pattern:[]},o=H(w),c=0,l=0;l<r.length;l++){i=r[l];for(var h=1,d=!1,u=0,f=1;f<i.length;f++)switch(i[f]){case"/":0!==u&&(h*=u),u=0,d=!0;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":u=10*u+i[f];break;default:return{on:!1}}d?(0===u&&(u=2),h/=u):u&&(h*=u),"d"===i[0]?(s.pattern.push({len:h*o,pitch:e.pattern[1+c],velocity:e.pattern[1+c+a]}),c++):s.pattern.push({len:h*o,pitch:null})}return y=e.bars?e.bars:1,s}function W(){if(A&&A.pattern){for(var e=A,t=0,r=w.num/w.den,i=0;i<e.pattern.length;i++)t+=e.pattern[i].len;var a=t/y/r;for(i=0;i<e.pattern.length;i++)e.pattern[i].len=e.pattern[i].len/a;A=e}}function q(e){if(0!==b.length||A.on){var t=w.num/w.den;if(0===b.length){if(f<t)return;b.push({cmd:"program",channel:e,instrument:T})}if(A.on)for(var r=m,i=0;i<A.pattern.length;i++){var a=z(A.pattern[i].len);A.pattern[i].pitch&&b.push({cmd:"note",pitch:A.pattern[i].pitch,volume:A.pattern[i].velocity,start:r,duration:a,gap:0,instrument:T}),r+=a}}}}(),e.exports=i},1028:function(e,t,r){var i,a=r(5008);!function(){"use strict";var e=1,t=128;function r(e,t,r){for(var i=0,a=t+1;a<e.length;a++)if("note"===e[a].el_type&&i++,e[a].decoration&&e[a].decoration.indexOf(r)>=0)return i;return i}function n(e,t,r){for(var i=Math.min(e.length,t+3),a=t;a<i;a++)if("note"===e[a].el_type&&e[a].decoration)for(var n=0;n<e[a].decoration.length;n++)if(r.indexOf(e[a].decoration[n])>=0)return e[a].decoration[n];return null}function s(e){for(var t=0;t<e.length;t++)for(var r=e[t],i=r.length-1;i>=0&&"bar"!==r[i].el_type;)r[i].noChordVoice=!0,i--}function o(e,t){if(e&&!(e.length<=t)&&e[t].title)return e[t].title.join(" ")}function c(e,t){var r=1/4;e.duration&&(r=e.duration[0]);var i=60;return e.bpm&&(i=e.bpm),r*i/t}function l(t){var r;switch(t.type){case"common_time":r={el_type:"meter",num:4,den:4};break;case"cut_time":r={el_type:"meter",num:2,den:2};break;case"specified":r={el_type:"meter",num:t.value[0].num,den:t.value[0].den};break;default:r={el_type:"meter"}}return e=r.num/r.den,r}function h(e){for(var t=[],r=0;r<e.length;r++)"natural"!==e[r].acc&&t.push(e[r]);return t}function d(e,t){f(e,"HP"===t.root?{el_type:"key",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}]}:{el_type:"key",accidentals:h(t.accidentals)})}function u(e,t){f(e,l(t))}function f(e,t){for(var r=e.length-1;r>=0;r--)if(e[r].el_type===t.el_type)return void(JSON.stringify(e[r])!==JSON.stringify(t)&&e.push(t));e.push(t)}i=function(i,h){var p,m=(h=h||{}).program||0,g=h.midiTranspose||0;i.visualTranspose&&(g-=i.visualTranspose);var v=h.channel||0,b=!1,y=h.drum||"",x=h.drumBars||1,k=h.drumIntro||0,w=""!==y,T=!!h.drumOff,C=[];m=parseInt(m,10),g=parseInt(g,10),10===(v=parseInt(v,10))&&(m=t),y=y.split(" "),x=parseInt(x,10),k=parseInt(k,10);var S=i.formatting.bagpipes;S&&(m=71);var N=[];if(i.formatting.midi){var E=i.formatting.midi;E.program&&E.program.length>0&&(m=E.program[0],E.program.length>1&&(m=E.program[1],v=E.program[0]),b=!0),E.transpose&&(g=E.transpose[0]),E.channel&&(v=E.channel[0],b=!0),E.drum&&(y=E.drum),E.drumbars&&(x=E.drumbars[0]),E.drumon&&(w=!0),10===v&&(m=t),E.beat&&N.push({el_type:"beat",beats:E.beat}),E.nobeataccents&&N.push({el_type:"beataccents",value:!1})}p=h.qpm?parseInt(h.qpm,10):i.metaText.tempo?c(i.metaText.tempo,i.getBeatLength()):h.defaultQpm?h.defaultQpm:180;var _=[];S&&_.push({el_type:"bagpipes"}),_.push({el_type:"instrument",program:m}),v&&_.push({el_type:"channel",channel:v}),g&&_.push({el_type:"transpose",transpose:g}),_.push({el_type:"tempo",qpm:p});for(var M=0;M<N.length;M++)_.push(N[M]);var A,B=[],L=[],P=[],z=[0],H={};H[0]={el_type:"tempo",qpm:p,timing:0};for(var O=[],D=[],F=!1,I=i.lines,V=0;V<I.length;V++){var Y=I[V];if(Y.staff)for(var G=function(e){var t,i={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]};if(e.decoration)if(e.decoration.indexOf("pppp")>=0?t="pppp":e.decoration.indexOf("ppp")>=0?t="ppp":e.decoration.indexOf("pp")>=0?t="pp":e.decoration.indexOf("p")>=0?t="p":e.decoration.indexOf("mp")>=0?t="mp":e.decoration.indexOf("mf")>=0?t="mf":e.decoration.indexOf("f")>=0?t="f":e.decoration.indexOf("ff")>=0?t="ff":e.decoration.indexOf("fff")>=0?t="fff":e.decoration.indexOf("ffff")>=0&&(t="ffff"),t&&(A=i[t].slice(0),B[W].push({el_type:"beat",beats:A.slice(0)}),L[R]=!1,P[R]=!1),e.decoration.indexOf("crescendo(")>=0){var a=r(U,te,"crescendo)"),s=Math.min(127,A[0]+50),o=n(U,te+a+1,Object.keys(i));o&&(s=i[o][0]),L[R]=a>0&&Math.floor((s-A[0])/a),P[R]=!1}else if(e.decoration.indexOf("crescendo)")>=0)L[R]=!1;else if(e.decoration.indexOf("diminuendo(")>=0){var c=r(U,te,"diminuendo)"),l=Math.max(15,A[0]-50),h=n(U,te+c+1,Object.keys(i));h&&(l=i[h][0]),L[R]=!1,P[R]=c>0&&Math.floor((l-A[0])/c)}else e.decoration.indexOf("diminuendo)")>=0&&(P[R]=!1)},j=Y.staff,W=0,q=0;q<j.length;q++){var X=j[q];if(!X.clef||"TAB"!==X.clef.type)for(var R=0;R<X.voices.length;R++){var U=X.voices[R];if(!B[W]){B[W]=[].concat(JSON.parse(JSON.stringify(_)));var K=o(Y.staff,W);K&&B[W].unshift({el_type:"name",trackName:K})}if(g&&"perc"===X.clef.type&&B[W].push({el_type:"transpose",transpose:0}),X.clef&&"perc"===X.clef.type&&!b)for(var $=0;$<B[W].length;$++)"instrument"===B[W][$].el_type&&(B[W][$].program=t);else X.key&&d(B[W],X.key);X.meter&&u(B[W],X.meter),!F&&w&&(B[W].push({el_type:"drum",params:{pattern:y,bars:x,on:w,intro:k}}),F=!0),X.clef&&"perc"!==X.clef.type&&X.clef.transpose&&(X.clef.el_type="clef",B[W].push({el_type:"transpose",transpose:X.clef.transpose})),X.clef&&X.clef.type&&(X.clef.type.indexOf("-8")>=0?B[W].push({el_type:"transpose",transpose:-12}):X.clef.type.indexOf("+8")>=0&&B[W].push({el_type:"transpose",transpose:12})),i.formatting.midi&&i.formatting.midi.drumoff&&(B[W].push({el_type:"bar"}),B[W].push({el_type:"drum",params:{pattern:"",on:!1}}));var Q=0,J=0,Z=0,ee=0;A=[105,95,85,1];for(var te=0;te<U.length;te++){var re=U[te];switch(re.el_type){case"note":if(L[R]&&(A[0]+=L[R],A[1]+=L[R],A[2]+=L[R],B[W].push({el_type:"beat",beats:A.slice(0)})),P[R]&&(A[0]+=P[R],A[1]+=P[R],A[2]+=P[R],B[W].push({el_type:"beat",beats:A.slice(0)})),G(re),!re.rest||"spacer"!==re.rest.type){var ie={elem:re,el_type:"note",timing:z[W]};if(re.style?ie.style=re.style:C[W]&&(ie.style=C[W]),ie.duration=0===re.duration?.25:re.duration,re.startTriplet){if(J=re.tripletMultiplier,Z=re.startTriplet*J*re.duration,re.startTriplet!==re.tripletR&&te+re.tripletR<=U.length){for(var ae=0,ne=te;ne<te+re.tripletR;ne++)ae+=U[ne].duration;Z=J*ae}ie.duration=ie.duration*J,ie.duration=Math.round(1e6*ie.duration)/1e6,ee=ie.duration}else J&&(re.endTriplet?(J=0,ie.duration=Math.round(1e6*(Z-ee))/1e6):(ie.duration=ie.duration*J,ie.duration=Math.round(1e6*ie.duration)/1e6,ee+=ie.duration));re.rest&&(ie.rest=re.rest),re.decoration&&(ie.decoration=re.decoration.slice(0)),re.pitches&&(ie.pitches=a.cloneArray(re.pitches)),re.gracenotes&&(ie.gracenotes=a.cloneArray(re.gracenotes)),re.chord&&(ie.chord=a.cloneArray(re.chord)),B[W].push(ie),"rhythm"===re.style&&s(B),Q++,z[W]+=ie.duration}break;case"key":case"keySignature":d(B[W],re);break;case"meter":u(B[W],re);break;case"clef":re.transpose&&B[W].push({el_type:"transpose",transpose:re.transpose}),re.type&&(re.type.indexOf("-8")>=0?B[W].push({el_type:"transpose",transpose:-12}):re.type.indexOf("+8")>=0&&B[W].push({el_type:"transpose",transpose:12}));break;case"tempo":p=c(re,i.getBeatLength()),B[W].push({el_type:"tempo",qpm:p,timing:z[W]}),H[""+z[W]]={el_type:"tempo",qpm:p,timing:z[W]};break;case"bar":Q>0&&B[W].push({el_type:"bar"}),G(re),Q=0;var se="bar_right_repeat"===re.type||"bar_dbl_repeat"===re.type,oe="1"===re.startEnding,ce="bar_left_repeat"===re.type||"bar_dbl_repeat"===re.type||"bar_right_repeat"===re.type;if(se){var le=O[W];le||(le=0);var he=D[W];he||(he=B[W].length);for(var de=le;de<he;de++){var ue=a.clone(B[W][de]);ue.pitches&&(ue.pitches=a.cloneArray(ue.pitches)),B[W].push(ue)}D[W]=void 0,O[W]=void 0}oe&&(D[W]=B[W].length),ce&&(O[W]=B[W].length);break;case"style":C[W]=re.head;break;case"timeSignature":B[W].push(l(re));break;case"part":case"stem":case"scale":case"break":case"font":break;case"midi":var fe=!1;switch(re.cmd){case"drumon":w=!0,fe=!0;break;case"drumoff":w=!1,fe=!0;break;case"drum":y=re.params,fe=!0;break;case"drumbars":x=re.params[0],fe=!0;break;case"drummap":break;case"channel":10===re.params[0]&&B[W].push({el_type:"instrument",program:t});break;case"program":f(B[W],{el_type:"instrument",program:re.params[0]}),b=!0;break;case"transpose":B[W].push({el_type:"transpose",transpose:re.params[0]});break;case"gchordoff":B[W].push({el_type:"gchordOn",tacet:!0});break;case"gchordon":B[W].push({el_type:"gchordOn",tacet:!1});break;case"beat":B[W].push({el_type:"beat",beats:re.params});break;case"nobeataccents":B[W].push({el_type:"beataccents",value:!1});break;case"beataccents":B[W].push({el_type:"beataccents",value:!0});break;case"vol":case"volinc":B[W].push({el_type:re.cmd,volume:re.params[0]});break;case"swing":case"gchord":case"bassprog":case"chordprog":case"bassvol":case"chordvol":B[W].push({el_type:re.cmd,param:re.params[0]});break;default:console.log("MIDI seq: midi cmd not handled: ",re.cmd,re)}fe&&(B[0].push({el_type:"drum",params:{pattern:y,bars:x,intro:k,on:w}}),F=!0);break;default:console.log("MIDI: element type "+re.el_type+" not handled.")}}z[++W]||(z[W]=0)}}}if(function(e,t){if(t&&0!==t.length)for(var r=Object.keys(t),i=0;i<e.length;i++)for(var a=e[i],n=t[0]?t[0].qpm:0,s=0;s<a.length;s++){var o=a[s];"tempo"===o.el_type&&(n=o.qpm),r.indexOf(""+o.timing)>=0&&n!==t[""+o.timing].qpm&&(n=t[""+o.timing].qpm,"tempo"===o.el_type?(o.qpm=t[""+o.timing].qpm,s++):(e[i].splice(s,0,{el_type:"tempo",qpm:t[""+o.timing].qpm,timing:o.timing}),s+=2))}}(B,H),k)for(var pe=i.getPickupLength(),me=0;me<B.length;me++){for(var ge=0;"note"!==B[me][ge].el_type&&B[me].length>ge;)ge++;if(B[me].length>ge){for(ne=0;ne<k;ne++)0===pe||ne<k-1?(B[me].splice(ge,0,{el_type:"note",rest:{type:"rest"},duration:e},{el_type:"bar"}),ge+=2):B[me].splice(ge++,0,{el_type:"note",rest:{type:"rest"},duration:e-pe});T&&(w=!1,B[me].splice(ge++,0,{el_type:"drum",params:{pattern:y,bars:x,intro:k,on:w}}),T=!1)}}return B.length>0&&B[0].length>0&&(B[0][0].pickupLength=i.getPickupLength()),B}}(),e.exports=i},7207:function(e,t,r){var i=r(5008),a=function(e,t,r,i){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=i,this.tempoChangeFactor=1,this.bassInstrument=r.bassprog&&1===r.bassprog.length?r.bassprog[0]:0,this.chordInstrument=r.chordprog&&1===r.chordprog.length?r.chordprog[0]:0,this.boomVolume=r.bassvol&&1===r.bassvol.length?r.bassvol[0]:64,this.chickVolume=r.chordvol&&1===r.chordvol.length?r.chordvol[0]:48,this.overridePattern=r.gchord?s(r.gchord[0]):void 0};function n(e,t,r,i){var a=[];if(!e)return a;if(t.indexOf("boom")>=0?a.push(r?e.boom:e.boom2):i&&a.push(e.boom),t.indexOf("chick")>=0)for(var n=0;n<e.chick.length;n++)a.push(e.chick[n]);switch(t){case"DO":a.push(e.chick[0]);break;case"MI":a.push(e.chick[1]);break;case"SOL":a.push(e.chick[2]);break;case"TI":e.chick.length>3?a.push(e.chick[2]):a.push(e.chick[0]+12);break;case"TOP":e.chick.length>4?a.push(e.chick[2]):a.push(e.chick[1]+12);break;case"do":a.push(e.chick[0]+12);break;case"mi":a.push(e.chick[1]+12);break;case"sol":a.push(e.chick[2]+12);break;case"ti":e.chick.length>3?a.push(e.chick[2]+12):a.push(e.chick[0]+24);break;case"top":e.chick.length>4?a.push(e.chick[2]+12):a.push(e.chick[1]+24)}return a}function s(e){for(var t=[],r=0;r<e.length;r++)switch(e[r]){case"z":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")}return t}function o(e){return e/1e6}function c(e,t){return Math.round(e*t*1e6)/1e6}a.prototype.setMeter=function(e){this.meter=e},a.prototype.setTempoChangeFactor=function(e){this.tempoChangeFactor=e},a.prototype.setLastBarTime=function(e){this.lastBarTime=e},a.prototype.setTranspose=function(e){this.transpose=e},a.prototype.setRhythmHead=function(e,t){this.hasRhythmHead=e;var r=[];if(e&&this.lastChord&&this.lastChord.chick)for(var a=0;a<this.lastChord.chick.length;a++){var n=i.clone(t.pitches[0]);n.actualPitch=this.lastChord.chick[a],r.push(n)}return r},a.prototype.barEnd=function(e){this.chordTrack.length>0&&!this.chordTrackFinished&&(this.resolveChords(this.lastBarTime,o(e.time)),this.currentChords=[]),this.chordLastBar=this.lastChord},a.prototype.gChordOn=function(e){this.chordsOff||(this.gChordTacet=e.tacet)},a.prototype.paramChange=function(e){switch(e.el_type){case"gchord":this.overridePattern=s(e.param);break;case"bassprog":this.bassInstrument=e.param;break;case"chordprog":this.chordInstrument=e.param;break;case"bassvol":this.boomVolume=e.param;break;case"chordvol":this.chickVolume=e.param;break;default:console.log("unhandled midi param",e)}},a.prototype.finish=function(){this.chordTrackEmpty()||(this.chordTrackFinished=!0)},a.prototype.addTrack=function(e){this.chordTrackEmpty()||e.push(this.chordTrack)},a.prototype.findChord=function(e){if(this.gChordTacet)return"break";if(this.chordTrackFinished||!e.chord||0===e.chord.length)return null;for(var t=0;t<e.chord.length;t++){var r=e.chord[t];if("default"===r.position)return r.name;if(this.breakSynonyms.indexOf(r.name.toLowerCase())>=0)return"break"}return null},a.prototype.interpretChord=function(e){if(0!==e.length){if("break"===e)return{chick:[]};var t=e.substring(0,1);if("("===t){if(0===(e=e.substring(1,e.length-2)).length)return;t=e.substring(0,1)}var r=this.basses[t];if(r){for(var i=this.transpose;i<-8;)i+=12;for(;i>8;)i-=12;var a,n=(r+=i)-5;1===e.length&&(a=this.chordNotes(r,""));var s=e.substring(1),o=s.substring(0,1);"b"===o||"♭"===o?(r--,n--,s=s.substring(1)):"#"!==o&&"♯"!==o||(r++,n++,s=s.substring(1));var c=s.split("/");if((a=this.chordNotes(r,c[0])).length>=3&&(n=n+(a[2]-a[0])-7),2===c.length&&this.basses[c[1].substring(0,1)]){var l={"#":1,"♯":1,b:-1,"♭":-1}[c[1].substring(1)]||0;n=r=this.basses[c[1].substring(0,1)]+l+i}return{boom:r,boom2:n,chick:a}}}},a.prototype.chordNotes=function(e,t){var r=this.chordIntervals[t];r||(r="ma"===t.slice(0,2).toLowerCase()||"M"===t[0]?this.chordIntervals.M:"m"===t[0]||"-"===t[0]?this.chordIntervals.m:this.chordIntervals.M),e+=12;for(var i=[],a=0;a<r.length;a++)i.push(e+r[a]);return i},a.prototype.writeNote=function(e,t,r,i,a,n){void 0!==e&&this.chordTrack.push({cmd:"note",pitch:e,volume:r,start:this.lastBarTime+i*c(t,this.tempoChangeFactor),duration:c(a,this.tempoChangeFactor),gap:0,instrument:n})},a.prototype.chordTrackEmpty=function(){for(var e=!0,t=0;t<this.chordTrack.length&&e;t++)"note"===this.chordTrack[t].cmd&&(e=!1);return e},a.prototype.resolveChords=function(e,t){if(!this.hasRhythmHead){var r=this.meter.num,i=this.meter.den,a=1/i,s=a/2,o=parseInt(r,10)/parseInt(i,10)-(t-e)/this.tempoChangeFactor;Math.abs(o)<1e-5&&(o=0),0!==this.currentChords.length&&0===this.currentChords[0].beat||this.currentChords.unshift({beat:0,chord:this.chordLastBar});var c=function(e,t,r){var i=[];if(0===e.length)return i;for(var a=e[0].chord,n=1;n<e.length;n++){for(var s=e[n];i.length<s.beat;)i.push(a);a=s.chord}for(;i.length<t;)i.push(a);return i}(this.currentChords,8*r/i),l=this.overridePattern?this.overridePattern:this.rhythmPatterns[r+"/"+i];if(o){l=[];for(var h=(t-e)/this.tempoChangeFactor*8,d=0;d<h/2;d+=2)l.push("chick"),l.push("")}if(!l)for(l=[],d=0;d<8*r/i/2;d++)l.push("chick"),l.push("");var u=!0,f=Math.min(l.length,c.length);for(d=0;d<f;d++){d>0&&c[d-1]&&c[d]&&c[d-1].boom!==c[d].boom&&(u=!0);var p=l[d],m=p.indexOf("boom")>=0,g=!m&&0!==d&&l[0].indexOf("boom")>=0&&(!c[d-1]||c[d-1].boom!==c[d].boom),v=n(c[d],p,u,g);m&&(u=!1);for(var b=0;b<v.length;b++)this.writeNote(v[b],.125,m||g?this.boomVolume:this.chickVolume,d,s,m||g?this.bassInstrument:this.chordInstrument),g?g=!1:m=!1}}},a.prototype.processChord=function(e){if(!this.chordTrackFinished){var t,r=this.findChord(e);if(r){var i=this.interpretChord(r);if(i){0===this.chordTrack.length&&this.chordTrack.push({cmd:"program",channel:this.chordChannel,instrument:this.chordInstrument}),this.lastChord=i;var a=(t=this.lastBarTime,8*(o(e.time)-t));this.currentChords.push({chord:this.lastChord,beat:a,start:o(e.time)})}}}},a.prototype.breakSynonyms=["break","(break)","no chord","n.c.","tacet"],a.prototype.basses={A:33,B:35,C:36,D:38,E:40,F:41,G:43},a.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]},a.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"],"6/8":["boom","","chick","boom","","chick"],"9/8":["boom","","chick","boom","","chick","boom","","chick"],"12/8":["boom","","chick","boom","","chick","boom","","chick","boom","","chick"]},e.exports=a},2842:function(e){var t={__:-2,_:-1,"_/":-.5,"=":0,"":0,"^/":.5,"^":1,"^^":2},r=["C","-","D","-","E","F","-","G","-","A","-","B","c","-","d","-","e","f","-","g","-","a","-","b"];e.exports={noteToMidi:function(e){var i=e.match(/([_^\/]*)([ABCDEFGabcdefg])(,*)('*)/);if(i&&5===i.length){var a=t[i[1]];return 48+r.indexOf(i[2])+a+12*(i[4].length-i[3].length)}return 0},midiToNote:function(e){e=parseInt(e,10);var t=Math.floor(e/12),i=e%12,a=r[i];if("-"===a&&(a="^"+r[i-1]),t>4)for(a=a.toLowerCase(),t-=5;t>0;)a+="'",t--;else for(;t<4;)a+=",",t++;return a}}},5058:function(e){var t={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'"};e.exports=function(e){var r=(e.accidental?e.accidental[0]:"x")+e.verticalPos;return t[r]}},1921:function(e,t,r){var i=r(2842).noteToMidi,a=r(6776),n=r(6629);function s(e,t){for(var r=[],i=0;i<t.length;i++)if(!t[i].endTie){var n=new a.TabNote(t[i].name,e.clefTranspose);n.checkKeyAccidentals(e.accidentals,e.measureAccidentals);var s=c(e,n);r.push(s)}return function(e,t){for(var r=0;r<t.length-1;r++){var i=t[r],a=t[r+1];if(i.str==a.str){if(i.str==e.strings.length-1)return i.num="?",void(a.num="?");a.num<i.num?(a.str++,a=o(e,a.note,a.str,e.secondPos,e.strings[a.str].length)):(i.str++,i=o(e,i.note,i.str,e.secondPos,e.strings[i.str].length)),t[r]=i,t[r+1]=a}}}(e,r),r}function o(e,t,r,i,a){var n=e.strings;t.checkKeyAccidentals(e.accidentals,e.measureAccidentals),i&&(n=i);var s=t.emitNoAccidentals(),o=n[r].indexOf(s),c=t.acc;if(-1!=o){if(i&&(o+=a),(t.isFlat||-1==t.acc)&&0==o){var l=t.getAccidentalEquiv();o=n[++r].indexOf(l.emit()),c=0}return{num:o+c,str:r,note:t}}return null}function c(e,t){var r;(t.isAltered||t.natural)&&(t.isFlat?r=t.isDouble?"__":"_":t.isSharp?r=t.isDouble?"^^":"^":t.natural&&(r="="),e.measureAccidentals[t.name.toUpperCase()]=r);for(var i=e.stringPitches.length-1;i>=0;i--)if(t.pitch+t.pitchAltered>=e.stringPitches[i]){var a=t.pitch+t.pitchAltered-e.stringPitches[i];return"^"===t.quarter?a-=.5:"v"===t.quarter&&(a+=.5),{num:Math.round(a),str:e.stringPitches.length-1-i,note:t}}return{num:"?",str:e.stringPitches.length-1,note:t}}function l(e,t){var r={num:"?",str:0,note:t};e.push(r),e.error=t.emit()+": unexpected note for instrument"}function h(e){var t=e.tuning,r=e.capo,s=e._super.params.highestNote;this.linePitch=e.linePitch,this.highestNote="a'",s&&(this.highestNote=s),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=i(this.tuning[o])+this.capo;this.stringPitches.push(c)}if(this.capo>0&&(this.capoTuning=function(e){var t=null,r=e.tuning;if(e.capo>0){t=[];for(var i=0;i<r.length;i++){for(var n=new a.TabNote(r[i]),s=0;s<e.capo;s++)n=n.nextNote();t[i]=n.emit()}}return t}(this)),this.strings=function(e){var t=[],r=e.tuning;e.capo>0&&(r=e.capoTuning);for(var i=r.length-1,a=0;a<r.length;a++){var s=e.highestNote;a!=r.length-1&&(s=r[a+1]);var o=new n(r[a],s).build();if(o.error)return o;t[i--]=o}return t}(this),this.strings.error)return e._super.setError(this.strings.error),void(e.inError=!0);this.secondPos=function(e){var t=[];t[0]=[];for(var r=e.strings,i=1;i<r.length;i++)t[i]=r[i-1];return t}(this)}h.prototype.stringToPitch=function(e){return 5.3+(this.strings.length-1-e)*this.linePitch},h.prototype.notesToNumber=function(e,t){var r,i,n=null,o=null;if(e&&(o=[],e.length>1?(o=s(this,e)).error&&(n=o.error):e[0].endTie||((r=new a.TabNote(e[0].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(i=c(this,r))?o.push(i):(l(o,r),n=o.error))),n)return o;var h=null;if(t){h=[];for(var d=0;d<t.length;d++)(r=new a.TabNote(t[d].name,this.clefTranspose)).checkKeyAccidentals(this.accidentals,this.measureAccidentals),(i=c(this,r))?h.push(i):(l(h,r),n=o.error)}return{notes:o,graces:h,error:n}},h.prototype.toString=function(){for(var e=[],t=0;t<this.tuning.length;t++){var r=this.tuning[t].replaceAll(",","").replaceAll("'","").toUpperCase();"_"===r[0]?r=r[1]+"b ":"^"===r[0]&&(r=r[1]+"# "),e.push(r)}return e.join("")},h.prototype.tabInfos=function(e){var t=e._super.params.label;if(t){var r="";return-1!=t.indexOf("%T")&&(r=this.toString(),e.capo>0&&(r+=" capo:"+e.capo),t=t.replace("%T",r)),t}return""},h.prototype.suppress=function(e){return!!e._super.params.suppress},e.exports=h},8918:function(e){function t(e,t){this.numLines=e,this.lineSpace=t,this.verticalSize=this.numLines*this.lineSpace,this.bar={pitch:3,pitch2:t*e,height:5}}t.prototype.bypass=function(e){var t=e.staffGroup.voices;return!!(t.length>0&&t[0].isPercussion)},t.prototype.setRelative=function(e,t,r){switch(e.type){case"bar":t.pitch=this.bar.pitch,t.pitch2=this.bar.pitch2,t.height=this.height;break;case"symbol":var i=this.bar.pitch2/2;if("dots.dot"==e.name)return r?(t.pitch=i,!1):(t.pitch=i+this.lineSpace,!0)}return r},e.exports=t},6776:function(e,t,r){var i=r(2842),a=i.noteToMidi,n=i.midiToNote;function s(e,t){var r=a(e);t&&(r+=t);var i,s=n(r),o=!1,c=!1,l=null,h=null,d=!1,u=0;e.startsWith("_")?(o=!0,u=-1,"/"==e[1]?(o=!1,h="v",u=0):"_"==e[1]&&(d=!0,u-=1)):e.startsWith("^")?(c=!0,u=1,"/"==e[1]?(c=!1,h="^",u=0):"^"==e[1]&&(d=!0,u+=1)):e.startsWith("=")&&(l=!0,u=0),((i=o||c||null!=h)||l)&&(s=null!=h||d?e.slice(2):e.slice(1));var f=(s.match(/,/g)||[]).length,p=(s.match(/'/g)||[]).length;this.pitch=r,this.pitchAltered=0,this.name=s,this.acc=u,this.isSharp=c,this.isKeySharp=!1,this.isDouble=d,this.isAltered=i,this.isFlat=o,this.isKeyFlat=!1,this.natural=l,this.quarter=h,this.isLower=this.name==this.name.toLowerCase(),this.name=this.name[0].toUpperCase(),this.hasComma=f,this.isQuoted=p}s.prototype.sameNoteAs=function(e){return e.pitch===this.pitch},s.prototype.isLowerThan=function(e){return e.pitch>this.pitch},s.prototype.checkKeyAccidentals=function(e,t){if(!this.isAltered&&!this.natural)if(t[this.name.toUpperCase()])switch(t[this.name.toUpperCase()]){case"__":return this.acc=-2,void(this.pitchAltered=-2);case"_":return this.acc=-1,void(this.pitchAltered=-1);case"=":return this.acc=0,void(this.pitchAltered=0);case"^":return this.acc=1,void(this.pitchAltered=1);case"^^":return this.acc=2,void(this.pitchAltered=2)}else if(e)for(var r=this.name,i=0;i<e.length;i++){var a=e[i];r==a.note.toUpperCase()&&("flat"==a.acc&&(this.acc=-1,this.isKeyFlat=!0,this.pitchAltered=-1),"sharp"==a.acc&&(this.acc=1,this.isKeySharp=!0,this.pitchAltered=1))}},s.prototype.getAccidentalEquiv=function(){var e,t,r=((t=new s((e=this).name)).pitch=e.pitch,t.hasComma=e.hasComma,t.isLower=e.isLower,t.isQuoted=e.isQuoted,t.isSharp=e.isSharp,t.isKeySharp=e.isKeySharp,t.isFlat=e.isFlat,t.isKeyFlat=e.isKeyFlat,t);return r.isSharp||r.isKeySharp?((r=r.nextNote()).isFlat=!0,r.isSharp=!1,r.isKeySharp=!1):(r.isFlat||r.isKeyFlat)&&((r=r.prevNote()).isSharp=!0,r.isFlat=!1,r.isKeyFlat=!1),r},s.prototype.nextNote=function(){return new s(n(this.pitch+1+this.pitchAltered))},s.prototype.prevNote=function(){return new s(n(this.pitch-1+this.pitchAltered))},s.prototype.emitNoAccidentals=function(){var e=this.name;this.isLower&&(e=e.toLowerCase());for(var t=0;t<this.isQuoted;t++)e+="'";for(var r=0;r<this.hasComma;r++)e+=",";return e},s.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 r=1;r<=this.isQuoted;r++)e+="'"}return e},e.exports={TabNote:s,notes:["A","B","C","D","E","F","G"]}},6629:function(e,t,r){var i=r(6776),a=i.notes;function n(e,t){this.fromN=new i.TabNote(e),this.toN=new i.TabNote(t)}n.prototype.build=function(){var e=this.fromN,t=this.toN;if(t.isLowerThan(e)){var r=e.emit();return{error:"Invalid string Instrument tuning : "+t.emit()+" string lower than "+r+" string"}}var i=[],n=a.indexOf(e.name),s=a.indexOf(t.name);if(-1==n||-1==s)return i;for(var o=!1;!o;)i.push(e.emit()),(e=e.nextNote()).sameNoteAs(t)&&(o=!0);return i},e.exports=n},589:function(e,t,r){var i=r(1921);function a(e,t){this.tuning=e._super.params.tuning,this.tuning||(this.tuning=t),e.tuning=this.tuning,this.strings=new i(e)}a.prototype.notesToNumber=function(e,t){return this.strings.notesToNumber(e,t)},a.prototype.stringToPitch=function(e){return this.strings.stringToPitch(e)},e.exports=a},6074:function(e,t,r){var i=r(8918),a=r(8660),n=r(676),s=r(589);function o(){}o.prototype.init=function(e,t,r,n,o){var c=new a(e,t,r);this.abcTune=e,this._super=c,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 i(this.nbLines,this.linePitch);var l=new s(this,o.defaultTuning);this.semantics=l},o.prototype.render=function(e,t,r){this._super.inError||this.tablature.bypass(t)||new n(this,e,t,r).doLayout()},e.exports=function(){return{name:"StringTab",tablature:o}}},1696:function(e,t,r){var i=r(1409),a=r(6658);function n(e,t){for(var r in t)t.hasOwnProperty(r)&&(Array.isArray(t[r])||null!=(i=t[r])&&i.constructor===Object||(e[r]=t[r]));var i}function s(e){var t=new i("",0,0,"",0);return n(t,e),t.top=0,t.bottom=-1,e.abcelem&&(t.abcelem={},n(t.abcelem,e.abcelem),"note"===t.abcelem.el_type&&(t.abcelem.el_type="tabNumber")),e.cloned=t,t}function o(e,t){var r=s(e);if(t)for(var i=e.children,o=!0,c=0;c<i.length;c++){var l=i[c],h=new a("",0,0,0,"");n(h,l),o=t.tablature.setRelative(l,h,o),r.children.push(h)}return r}function c(e,t,r){var n="tab.tiny",s=7.5;e.isTabBig&&(n="tab.big",s=10);var o={el_type:"tab",icon:n,Ypos:s};if(s+=e.tabSymbolOffset,!e.hideTabSymbol){var c=new i(o,0,0,"symbol",0);c.x=t;var l=new a(n,0,0,7.5,"tab");l.x=r,c.children.push(l),"tab"==c.abcelem.el_type&&(l.pitch=s)}return c}function l(e){if(e.extra)for(var t=0;t<e.extra.length;t++){var r=e.extra[t];if("lyric"==r.type)return{bottom:r.bottom,height:r.height}}return null}function h(){this.accidentals=null}function d(e,t,r,i,n){var s=i.num;null!=i.note.quarter&&(s=s.toString(),s+=i.note.quarter);var o=e.semantics.stringToPitch(i.str);r.notes.push({num:s,str:i.str,pitch:i.note.emit()});var c=new a(s,0,0,o+.3,{type:"tabNumber"});return c.x=t,c.isGrace=n,c.isAltered=i.note.isAltered,c}function u(e,t){var r=0;if(e.extra)for(var i=0;i<e.extra.length;i++)if(e.extra[i].c.indexOf("noteheads")>=0){if(r===t)return e.extra[i].x+e.extra[i].w/2;r++}return-1}function f(e){if(e.abcelem){var t=e.abcelem;if(t.rest)return t.gracenotes}return null}function p(e,t,r){var i=e.semantics.notesToNumber(t,r);if(i.error)return e._super.setError(i.error),i;if(i.graces&&i.notes){var a=i.notes.length-1;i.notes[a].graces=i.graces}return i}function m(e,t,r,i,a){for(var n=0;n<i.length;n++){var s={el_type:"note",startChar:r.abcelem.startChar,endChar:r.abcelem.endChar,notes:[],grace:!0},o=d(e,u(r,n),s,i[n],!0);t.children.push(o),a.push(s)}}h.prototype.build=function(e,t,r,i,a,n,h){!function(e){for(var t=0;t<e.length;t++)e[t].tabNameInfos||0}(t);var g=t[a+i],v=t[h],b=null,y=null;"clef"!=g.children[0].abcelem.el_type&&"none"!=n&&g.children.splice(0,0,n);for(var x=0;x<g.children.length;x++){var k=g.children[x],w=k.x,T=w;switch(k.isClef&&(v.children.push(c(e,w,T)),k.abcelem.type.indexOf("-8")>=0&&(e.semantics.strings.clefTranspose=-12),k.abcelem.type.indexOf("+8")>=0&&(e.semantics.strings.clefTranspose=12)),k.type){case"staff-extra key-signature":this.accidentals=k.abcelem.accidentals,e.semantics.strings.accidentals=this.accidentals;break;case"bar":e.semantics.strings.measureAccidentals={};var C=!1;x===g.children.length-1&&(C=!0);var S=o(k,e);if(S.abcelem.barNumber){delete S.abcelem.barNumber;for(var N=0;N<S.children.length;N++)if("barNumber"===S.children[N].type){S.children.splice(N,1);break}}S.abcelem.lastBar=C,v.children.push(S),r.push({el_type:k.abcelem.el_type,type:k.abcelem.type,endChar:k.abcelem.endChar,startChar:k.abcelem.startChar,abselem:S});break;case"rest":var E=f(k);if(E){if((b=p(e,null,E)).error)return;H={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[],grace:!0},m(e,_,k,b.graces,r)}break;case"note":var _=s(k);_.x=k.heads[0].x+k.heads[0].w/2,_.lyricDim=l(k);var M=k.abcelem.pitches,A=k.abcelem.gracenotes;if(_.type="tabNumber",(b=p(e,M,A)).error)return;if(b.graces){var B=b.notes.length-1;b.notes[B].graces=b.graces}y={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[]};for(var L=0;L<b.notes.length;L++){var P=b.notes[L];if(P.graces)for(var z=0;z<P.graces.length;z++){var H={el_type:"note",startChar:k.abcelem.startChar,endChar:k.abcelem.endChar,notes:[],grace:!0},O=d(e,u(k,z),H,P.graces[z],!0);_.children.push(O),r.push(H)}var D=d(e,_.x+k.heads[L].dx,y,P,!1);_.children.push(D)}y.notes.length>0&&(y.abselem=_,r.push(y),v.children.push(_))}}},e.exports=h},8660:function(e){function t(e,t,r){this.tune=e,this.params=r,this.tuneNumber=t,this.inError=!1}t.prototype.setError=function(e){var t=this.tune;e&&(this.error=e,this.inError=!0,t.warnings?t.warnings.push(e):t.warnings=[e])},e.exports=t},676:function(e,t,r){var i=r(3197),a=r(1696),n=r(4331);function s(e,t){var r=e.plugin.semantics.strings,i=e.renderer.controller.getTextSize,a=r.tabInfos(e.plugin),n=!0;if(r.suppress(e.plugin)&&(n=!1),n){var s=i.calc(a,"tablabelfont","text instrumentname");return t.tabNameInfos={textSize:{height:s.height,width:s.width},name:a},s.height}return 0}function o(e,t,r,i){this.renderer=t,this.plugin=e,this.line=r,this.absolutes=new a,this.staffIndex=i,this.tabStaff={clef:{type:"TAB"}},this.tabSize=e.linePitch*e.nbLines}function c(e,t){return!(!t[e].isTabStaff||e!==t.length-1&&t[e+1].isTabStaff)}function l(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return r;return-1}function h(e,t){return"clef"===e[t].children[0].abcelem.el_type?null:0==t?"none":e[t-1].children[0]}o.prototype.doLayout=function(){var e=this.line.staff;if(e){var t=e[0];if(t&&t.clef&&0==t.clef.stafflines)return void this.plugin._super.setError("No tablatures when stafflines=0");e.splice(e.length,0,this.tabStaff)}var r=this.line.staffGroup,a=r.voices,o=function(e){for(var t=0,r=0;r<e.children.length;r++){var i=e.children[r];i.specialY&&i.specialY.lyricHeightBelow>t&&(t=i.specialY.lyricHeightBelow)}return t}(a[0]),d=this.staffIndex,u=r.staffs[d],f=this.tabSize+3-u.bottom-o;u.isTabStaff&&(f=u.top);var p={bottom:-1,isTabStaff:!0,specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0},lines:this.plugin.nbLines,linePitch:this.plugin.linePitch,dy:.15,top:f},m=function(e,t){for(var r=e.staffIndex,i=0,a=0,n=0;;){if(!t[i])return-1;if(t[i].isTabStaff||(n=t[i].voices.length),t[i].isTabStaff){if(a++,c(i,t)&&a<n)return i+1}else if(a=0,i>=r){if(i+1==t.length)return i+1;if(!t[i+1].isTabStaff)return i+1}if(++i>t.length)return-1}}(this,r.staffs);if(-1!==m){p.parentIndex=m-1,r.staffs.splice(m,0,p),r.height+=this.tabSize+3;var g=function(e,t){for(var r=t;r>=0;r--)if(!e[r].isTabStaff)return e[r];return null}(r.staffs,m),v=1;(function(e,t){return 1===function(e){for(var t=0,r=0;r<e.length;r++)e[r].isTabStaff||t++;return t}(e)&&t.voices.length>1})(r.staffs,g)&&(v=g.voices.length),this.tabStaff.voices=[];for(var b=0;b<v;b++){var y=new i(0,0);b>0&&(y.duplicate=!0);var x=s(this,y)/n.STEP;x=Math.max(x,1),r.staffs[this.staffIndex].top+=1,r.height+=x,y.staff=p;var k=a.length;a.splice(a.length,0,y);var w=h(a,b+this.staffIndex);this.tabStaff.voices[b]=[],this.absolutes.build(this.plugin,a,this.tabStaff.voices[b],b,this.staffIndex,w,k)}!function(e){for(var t=0;t<e.length;t++)if(e[t].isTabStaff){var r=l(e,t);e[t].hasStaff=e[r],e[r].hasTab||(e[r].hasTab=[]),e[r].hasTab.push(e[t])}}(r.staffs)}},e.exports=o},1897:function(e,t,r){var i=r(1409),a=r(8491),n=r(5224),s=r(9600),o=r(3923),c=r(2143),l=r(2525),h=r(8677),d=r(8256),u=r(6020),f=r(6658),p=r(4331),m=r(7398),g=r(1106),v=r(6183),b=r(2096),y=r(3197),x=r(2652),k=r(5058),w=r(5008),T=function(e){var t=0;return e.duration&&(t=e.duration),t},C=!1,S={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"}},N=function(e,t,r){this.decoration=new h,this.getTextSize=e,this.tuneNumber=t,this.isBagpipes=r.bagpipes,this.flatBeams=r.flatbeams,this.graceSlurs=r.graceSlurs,this.percmap=r.percmap,this.initialClef=r.initialClef,this.jazzchords=!!r.jazzchords,this.accentAbove=!!r.accentAbove,this.germanAlphabet=!!r.germanAlphabet,this.reset()};function E(e,t){var r=e[t];if("note"!==r.el_type||!r.startBeam||r.endBeam)return{count:1,elem:r};for(var i=[];t<e.length&&"note"===e[t].el_type&&(i.push(e[t]),!e[t].endBeam);)t++;return{count:i.length,elem:i}}function _(e){if(e.pitches){M(e);for(var t=0,r=0;r<e.pitches.length;r++)t+=e.pitches[r].verticalPos;e.averagepitch=t/e.pitches.length,e.minpitch=e.pitches[0].verticalPos,e.maxpitch=e.pitches[e.pitches.length-1].verticalPos}}N.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},N.prototype.setStemHeight=function(e){this.stemHeight=Math.round(10*e/p.STEP)/10},N.prototype.getCurrentVoiceId=function(e,t){return"s"+e+"v"+t},N.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)},N.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)],void 0===this.voiceScale&&(this.voiceScale=1),this.voiceColor=this.colorByVoice[this.getCurrentVoiceId(e,t)]},N.prototype.containsLyrics=function(e){for(var t=0;t<e.length;t++)for(var r=0;r<e[t].voices.length;r++)for(var i=0;i<e[t].voices[r].length;i++){var a=e[t].voices[r][i];if(a.lyric)return void(a.positioning&&"below"!==a.positioning.vocalPosition||(this.hasVocals=!0))}},N.prototype.createABCLine=function(e,t,r){this.minY=2,this.containsLyrics(e);var i=new m(this.getTextSize);this.tempoSet=!1;for(var a=0;a<e.length;a++)C&&this.restoreState(),C=!1,this.createABCStaff(i,e[a],t,a,r);return i},N.prototype.createABCStaff=function(e,t,r,i,a){e.getTextSize.updateFonts(t);for(var c=0;c<t.voices.length;c++){var h=new y(c,t.voices.length);0===c?(h.barfrom="start"===t.connectBarLines||"continue"===t.connectBarLines,h.barto="continue"===t.connectBarLines||"end"===t.connectBarLines):h.duplicate=!0,t.title&&t.title[c]&&(h.header=t.title[c].replace(/\\n/g,"\n"),h.headerPosition=6+e.getTextSize.baselineToCenter(h.header,"voicefont","staff-extra voice-name",c,t.voices.length)/p.STEP),t.clef&&"perc"===t.clef.type&&(h.isPercussion=!0);var d=(!this.initialClef||0===a)&&s(t.clef,this.tuneNumber);d&&(0===c&&t.barNumber&&this.addMeasureNumber(t.barNumber,d),h.addChild(d),this.startlimitelem=d);var u=o(t.key,this.tuneNumber);if(u&&(h.addChild(u),this.startlimitelem=u),t.meter){"specified"===t.meter.type?this.measureLength=t.meter.value[0].num/t.meter.value[0].den:this.measureLength=1;var f=l(t.meter,this.tuneNumber);h.addChild(f),this.startlimitelem=f}h.duplicate&&(h.children=[]);var m=t.clef.stafflines||0===t.clef.stafflines?t.clef.stafflines:5;e.addVoice(h,i,m);var g=1===m;this.createABCVoice(t.voices[c],r,i,c,g,h),e.setStaffLimits(h),0===c&&("start"===t.brace||!e.brace&&t.brace?(e.brace||(e.brace=[]),e.brace.push(new n(h,"brace"))):"end"===t.brace&&e.brace?e.brace[e.brace.length-1].setBottomStaff(h):"continue"===t.brace&&e.brace&&e.brace[e.brace.length-1].continuing(h),"start"===t.bracket||!e.bracket&&t.bracket?(e.bracket||(e.bracket=[]),e.bracket.push(new n(h,"bracket"))):"end"===t.bracket&&e.bracket?e.bracket[e.bracket.length-1].setBottomStaff(h):"continue"===t.bracket&&e.bracket&&e.bracket[e.bracket.length-1].continuing(h))}},N.prototype.createABCVoice=function(e,t,r,a,n,s){this.popCrossLineElems(r,a),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new d("",null,null),s.addOther(this.partstartelem));var o=s.voicetotal<2?-1:s.voicenumber;for(var l in this.slurs)this.slurs.hasOwnProperty(l)&&(this.slurs[l]=new v({force:this.slurs[l].force,voiceNumber:o,stemDir:this.slurs[l].stemDir,style:this.slurs[l].dotted}),C&&this.slurs[l].setHint(),s.addOther(this.slurs[l]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v({force:this.ties[h].force,stemDir:this.ties[h].stemDir,voiceNumber:o,style:this.ties[h].dotted}),C&&this.ties[h].setHint(),s.addOther(this.ties[h]);for(var u=0;u<this.abcline.length;u++)_(this.abcline[u]),this.minY=Math.min(this.abcline[u].minpitch,this.minY);for(var f=0===r,p=0;p<this.abcline.length;){var m=E(this.abcline,p),b=this.createABCElement(f,n,s,m.elem);if(b)for(h=0;h<b.length;h++){if(!this.tempoSet&&t&&!t.suppress){this.tempoSet=!0;var y=new i(t,0,0,"tempo",this.tuneNumber,{});y.addFixedX(new g(t,this.tuneNumber,c)),s.addChild(y)}s.addChild(b[h])}p+=m.count}this.pushCrossLineElems(r,a)},N.prototype.saveState=function(){this.tiesSave=w.cloneArray(this.ties),this.slursSave=w.cloneHashOfHash(this.slurs),this.slursbyvoiceSave=w.cloneHashOfHash(this.slursbyvoice),this.tiesbyvoiceSave=w.cloneHashOfArrayOfHash(this.tiesbyvoice)},N.prototype.restoreState=function(){this.ties=w.cloneArray(this.tiesSave),this.slurs=w.cloneHashOfHash(this.slursSave),this.slursbyvoice=w.cloneHashOfHash(this.slursbyvoiceSave),this.tiesbyvoice=w.cloneHashOfArrayOfHash(this.tiesbyvoiceSave)},N.prototype.createABCElement=function(e,t,r,a){var n=[];switch(a.el_type){case void 0:n=this.createBeam(t,r,a);break;case"note":n[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":n[0]=this.createBarLine(r,a,e),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"meter":n[0]=l(a,this.tuneNumber),this.startlimitelem=n[0],r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"clef":if(n[0]=s(a,this.tuneNumber),!n[0])return null;r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"key":var h=o(a,this.tuneNumber);h&&(n[0]=h,this.startlimitelem=n[0]),r.duplicate&&n.length>0&&(n[0].invisible=!0);break;case"stem":this.stemdir="auto"===a.direction?void 0:a.direction;break;case"part":var d=new i(a,0,0,"part",this.tuneNumber),u=this.getTextSize.calc(a.title,"partsfont","part");d.addFixedX(new f(a.title,0,0,void 0,{type:"part",height:u.height/p.STEP})),n[0]=d;break;case"tempo":var m=new i(a,0,0,"tempo",this.tuneNumber);m.addFixedX(new g(a,this.tuneNumber,c)),n[0]=m;break;case"style":"normal"===a.head?delete this.style:this.style=a.head;break;case"hint":C=!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 v=new i(a,0,0,"unsupported",this.tuneNumber);v.addFixed(new f("element type "+a.el_type,0,0,void 0,{type:"debug"})),n[0]=v}return n},N.prototype.createBeam=function(e,t,r){var i=[],n=new a(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams,r[0]);C&&n.setHint();for(var s=0;s<r.length;s++)n.runningDirection(r[s]);n.setStemDirection();var o=this.stemdir;for(this.stemdir=n.stemsUp?"up":"down",s=0;s<r.length;s++){var c=r[s],l=this.createNote(c,!0,e,t);i.push(l),n.add(l),this.triplet&&this.triplet.isClosed()&&(t.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return n.calcDir(),t.addBeam(n),this.stemdir=o,i};var M=function(e){var t;do{t=!0;for(var r=0;r<e.pitches.length-1;r++)if(e.pitches[r].pitch>e.pitches[r+1].pitch){t=!1;var i=e.pitches[r];e.pitches[r]=e.pitches[r+1],e.pitches[r+1]=i}}while(!t)},A=function(e,t,r,i,a,n,s,o,c){for(var l=r;l>11;l--)l%2!=0||i||e.addFixed(new f(null,o,(a+4)*c,l,{type:"ledger"}));for(l=t;l<1;l++)l%2!=0||i||e.addFixed(new f(null,o,(a+4)*c,l,{type:"ledger"}));for(l=0;l<n.length;l++){var h=a;"down"===s&&(h=-h),e.addFixed(new f(null,h+o,(a+4)*c,n[l],{type:"ledger"}))}};function B(e,t){for(var r=0;r<e.length;r++)if(JSON.stringify(e[r])===JSON.stringify(t))return;e.push(t)}N.prototype.addGraceNotes=function(e,t,r,i,n,s,o){var l=.6;n=Math.round(.7*n);var h,d,p=null;e.gracenotes.length>1&&(p=new a(n,"grace",s),C&&p.setHint(),p.mainNote=r);var m=[];for(d=e.gracenotes.length-1;d>=0;d--)o+=10,m[d]=o,e.gracenotes[d].accidental&&(o+=7);for(d=0;d<e.gracenotes.length;d++){var g=e.gracenotes[d].verticalPos;h=p?null:S.uflags[s?5:3];var b=c(r,"noteheads.quarter",e.gracenotes[d],{dir:"up",headx:-m[d],extrax:-m[d],flag:h,scale:l*this.voiceScale,accidentalSlot:[]});b.notehead.highestVert=b.notehead.pitch+n;var y=b.notehead;if(this.addSlursAndTies(r,e.gracenotes[d],y,t,"up",!0),r.addExtra(y),e.gracenotes[d].acciaccatura){var x=e.gracenotes[d].verticalPos+4.2,k=p?5:6;r.addRight(new f("flags.ugrace",-m[d]+k,0,x,{scalex:l,scaley:l}))}if(p){var w=e.gracenotes[d].duration/2;s&&(w/=2);var T={heads:[y],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:w}};p.add(T)}else{var N=g+1/3*l,E=g+4.2,_=y.dx+y.w;r.addExtra(new f(null,_,0,N,{type:"stem",pitch2:E,linewidth:-.6}))}A(r,g,g,!1,u.getSymbolWidth("noteheads.quarter"),[],!0,y.dx-1,.6);var M=e.rest&&("spacer"===e.rest.type||"invisible"===e.rest.type);0!==d||s||!this.graceSlurs||M||t.addOther(new v({anchor1:y,anchor2:i,isGrace:!0}))}return p&&(p.calcDir(),t.addBeam(p)),o},N.prototype.addNoteToAbcElement=function(e,t,r,i,a,n,s,o,l){var h,d,p,m,g,v=0,b=0,y=0,x=[],w=[],C=0,N=t.averagepitch>=6?"down":"up";for(i&&(N=i),(a=t.style?t.style:a)&&"normal"!==a||(a="note"),(m=n?S[a].nostem:S[a][-s])||console.log("noteSymbol:",a,s,n),g="down"===N?t.pitches.length-2:1;"down"===N?g>=0:g<t.pitches.length;g="down"===N?g-1:g+1){var E=t.pitches["down"===N?g+1:g-1],_=t.pitches[g],M="down"===N?E.pitch-_.pitch:_.pitch-E.pitch;M<=1&&!E.printer_shift&&(_.printer_shift=M?"different":"same",(_.verticalPos>11||_.verticalPos<1)&&x.push(_.verticalPos-_.verticalPos%2),"down"===N?b=u.getSymbolWidth(m)+2:v=u.getSymbolWidth(m)+2)}var A=t.pitches.length;for(g=0;g<t.pitches.length;g++){var L,P;if(o||(L="down"===N&&0!==g||"up"===N&&g!==A-1?null:S["down"===N?"dflags":"uflags"][-s]),t.pitches[g].style)P=S[t.pitches[g].style][-s];else if(l.isPercussion&&this.percmap){P=m;var z=this.percmap[k(t.pitches[g])];z&&z.noteHead&&S[z.noteHead]&&(P=S[z.noteHead][-s])}else P=m;if(t.pitches[g].highestVert=t.pitches[g].verticalPos,("up"===i||"up"===N)&&0===g||("down"===i||"down"===N)&&g===A-1){if((t.startSlur||1===A)&&(t.pitches[g].highestVert=t.pitches[A-1].verticalPos,T(t)<1&&("up"===i||"up"===N)&&(t.pitches[g].highestVert+=6)),t.startSlur)for(t.pitches[g].startSlur||(t.pitches[g].startSlur=[]),p=0;p<t.startSlur.length;p++)B(t.pitches[g].startSlur,t.startSlur[p]);if(t.endSlur)for(t.pitches[g].highestVert=t.pitches[A-1].verticalPos,T(t)<1&&("up"===i||"up"===N)&&(t.pitches[g].highestVert+=6),t.pitches[g].endSlur||(t.pitches[g].endSlur=[]),p=0;p<t.endSlur.length;p++)B(t.pitches[g].endSlur,t.endSlur[p])}var H=!o&&s<=-1,O=c(e,P,t.pitches[g],{dir:N,extrax:-b,flag:L,dot:r,dotshiftx:v,scale:this.voiceScale,accidentalSlot:w,shouldExtendStem:!i,printAccidentals:!l.isPercussion});C=Math.max(u.getSymbolWidth(P),C),e.extraw-=O.extraLeft,(h=O.notehead)&&(this.addSlursAndTies(e,t.pitches[g],h,l,H?N:null,!1),t.gracenotes&&t.gracenotes.length>0&&(h.bottom=h.bottom-1),e.addHead(h)),b+=O.accidentalshiftx,y=Math.max(y,O.dotshiftx)}if(H){var D=Math.round(70*this.voiceScale)/10,F="down"===N?t.minpitch-D:t.minpitch+1/3;F>6&&!i&&(F=6);var I="down"===N?t.maxpitch-1/3:t.maxpitch+D;I<6&&!i&&(I=6);var V="down"===N||0===e.heads.length?0:e.heads[0].w,Y="down"===N?1:-1;h&&"noteheads.slash.quarter"===h.c&&("down"===N?I-=1:F+=1),h&&"noteheads.triangle.quarter"===h.c&&("down"===N?I-=.7:F-=1.2),e.addRight(new f(null,V,0,F,{type:"stem",pitch2:I,linewidth:Y,bottom:F-1})),d=Math.min(F,I)}return{noteHead:h,roomTaken:b,roomTakenRight:y,min:d,additionalLedgers:x,dir:N,symbolWidth:C}},N.prototype.addLyric=function(e,t){var r="";t.lyric.forEach((function(e){var t=" "===e.divider?"":e.divider;r+=e.syllable+t+"\n"}));var i=this.getTextSize.calc(r,"vocalfont","lyric"),a=t.positioning?t.positioning.vocalPosition:"below";e.addCentered(new f(r,0,i.width,void 0,{type:"lyric",position:a,height:i.height/p.STEP,dim:this.getTextSize.attr("vocalfont","lyric")}))},N.prototype.createNote=function(e,t,r,a){var n,s=null,o=0,l=0,h=0,d=[],p=T(e),m=!1;0===p&&(m=!0,p=.25,t=!0);for(var g=Math.floor(Math.log(p)/Math.log(2)),v=0,y=Math.pow(2,g),k=y/2;y<p;v++,y+=k,k/=2);e.startTriplet&&(this.tripletmultiplier=e.tripletMultiplier);var w=p*this.tripletmultiplier;e.rest&&"multimeasure"===e.rest.type&&(w=1),e.rest&&"invisible-multimeasure"===e.rest.type&&(w=this.measureLength*e.rest.text);var N=e.rest?"rest":"note",E=new i(e,w,1,N,this.tuneNumber,{durationClassOveride:e.duration*this.tripletmultiplier});if(C&&E.setHint(),e.rest){this.measureLength===p&&"invisible"!==e.rest.type&&"spacer"!==e.rest.type&&e.rest.type.indexOf("multimeasure")<0&&(e.rest.type="whole");var _=function(e,t,r,i,a,n,s,o,l){var h,d,p,m,g=7;switch(a&&("down"===n&&(g=3),"up"===n&&(g=11)),s&&(g=r<.5||r<1?7:5),t.rest.type){case"whole":h=S.rest[0],t.averagepitch=g,t.minpitch=g,t.maxpitch=g,i=0;break;case"rest":h="rhythm"===t.style?S.rhythm[-o]:S.rest[-o],t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"invisible":case"invisible-multimeasure":case"spacer":h="",t.averagepitch=g,t.minpitch=g,t.maxpitch=g;break;case"multimeasure":h=S.rest.multi,t.averagepitch=g,t.minpitch=g,t.maxpitch=g,i=0;var v=u.getSymbolWidth(h);e.addHead(new f(h,v,2*v,7));var b=new f(""+t.rest.text,v,v,16,{type:"multimeasure-text"});e.addExtra(b)}if(t.rest.type.indexOf("multimeasure")<0&&"invisible"!==t.rest.type){var y=c(e,h,{verticalPos:g},{dot:i,scale:l});(d=y.notehead)&&(e.addHead(d),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:d,roomTaken:p,roomTakenRight:m}}(E,e,p,v,a.voicetotal>1,this.stemdir,r,g,this.voiceScale);s=_.noteHead,o=_.roomTaken,l=_.roomTakenRight}else{var M=this.addNoteToAbcElement(E,e,v,this.stemdir,this.style,m,g,t,a);void 0!==M.min&&(this.minY=Math.min(M.min,this.minY)),s=M.noteHead,o=M.roomTaken,l=M.roomTakenRight,d=M.additionalLedgers,n=M.dir,h=M.symbolWidth}if(void 0!==e.lyric&&this.addLyric(E,e),void 0!==e.gracenotes&&(o+=this.addGraceNotes(e,a,E,s,this.stemHeight*this.voiceScale,this.isBagpipes,o)),e.decoration){var B=t?Math.min(-3,E.bottom-6):E.bottom;this.decoration.createDecoration(a,e.decoration,E.top,s?s.w:0,E,o,n,B,e.positioning,this.hasVocals,this.accentAbove)}if(e.barNumber&&E.addFixed(new f(e.barNumber,-10,0,0,{type:"barNumber"})),A(E,e.minpitch,e.maxpitch,e.rest,h,d,n,-2,1),void 0!==e.chord){var L=x(this.getTextSize,E,e,o,l,h,this.jazzchords,this.germanAlphabet);o=L.roomTaken,l=L.roomTakenRight}return e.startTriplet&&(this.triplet=new b(e.startTriplet,s,{flatBeams:this.flatBeams})),e.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(s),!this.triplet||e.startTriplet||e.endTriplet||e.rest&&"spacer"===e.rest.type||this.triplet.middleNote(s),E},N.prototype.addSlursAndTies=function(e,t,r,i,a,n){if(t.endTie&&this.ties.length>0){for(var s=!1,o=0;o<this.ties.length;o++)if(this.ties[o].anchor1&&this.ties[o].anchor1.pitch===r.pitch){this.ties[o].setEndAnchor(r),i.setRange(this.ties[o]),this.ties.splice(o,1),s=!0;break}s||(this.ties[0].setEndAnchor(r),i.setRange(this.ties[0]),this.ties.splice(0,1))}var c,l,h=i.voicetotal<2?-1:i.voicenumber;if(t.startTie){var d=new v({anchor1:r,force:"down"===this.stemdir||"up"===this.stemdir,stemDir:this.stemdir,isGrace:n,voiceNumber:h,style:t.startTie.style});C&&d.setHint(),this.ties[this.ties.length]=d,i.addOther(d),e.startTie=!0}if(t.endSlur)for(var u=0;u<t.endSlur.length;u++)l=t.endSlur[u],this.slurs[l]?((c=this.slurs[l]).setEndAnchor(r),i.setRange(c),delete this.slurs[l]):(c=new v({anchor2:r,stemDir:this.stemdir,voiceNumber:h}),C&&c.setHint(),i.addOther(c)),this.startlimitelem&&c.setStartX(this.startlimitelem);else if(!n)for(var f in this.slurs)this.slurs.hasOwnProperty(f)&&this.slurs[f].addInternalNote(r);if(t.startSlur)for(u=0;u<t.startSlur.length;u++)l=t.startSlur[u].label,c=new v({anchor1:r,stemDir:this.stemdir,voiceNumber:h,style:t.startSlur[u].style}),C&&c.setHint(),this.slurs[l]=c,i.addOther(c)},N.prototype.addMeasureNumber=function(e,t){var r=this.getTextSize.calc(e,"measurefont","bar-number"),i=0;t.isClef&&(i+=r.width/2);var a=r.width>10&&"treble"===t.abcelem.type?13:11;t.addFixed(new f(e,i,r.width,a+r.height/p.STEP,{type:"barNumber",dim:this.getTextSize.attr("measurefont","bar-number")}))},N.prototype.createBarLine=function(e,t,r){var a=new i(t,0,10,"bar",this.tuneNumber),n=null,s=0;t.barNumber&&this.addMeasureNumber(t.barNumber,a);var o="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type,c="bar_left_repeat"!==t.type&&"bar_thick_thin"!==t.type&&"bar_invisible"!==t.type,l="bar_right_repeat"===t.type||"bar_dbl_repeat"===t.type||"bar_left_repeat"===t.type||"bar_thin_thick"===t.type||"bar_thick_thin"===t.type,h="bar_left_repeat"===t.type||"bar_thick_thin"===t.type||"bar_thin_thin"===t.type||"bar_dbl_repeat"===t.type,u="bar_left_repeat"===t.type||"bar_dbl_repeat"===t.type;if(o||u){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(a);this.startlimitelem=a}if(o&&(a.addRight(new f("dots.dot",s,1,7)),a.addRight(new f("dots.dot",s,1,5)),s+=6),c&&(n=new f(null,s,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),"bar_invisible"===t.type&&(n=new f(null,s,1,2,{type:"none",pitch2:10,linewidth:.6}),a.addRight(n)),t.decoration&&this.decoration.createDecoration(e,t.decoration,12,l?3:1,a,0,"down",2,t.positioning,this.hasVocals,this.accentAbove),l&&(n=new f(null,s+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),a.addRight(n),s+=5),this.partstartelem&&t.endEnding&&(this.partstartelem.anchor2=n,this.partstartelem=null),h&&(n=new f(null,s+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),a.addRight(n)),u&&(s+=3,a.addRight(new f("dots.dot",s,1,7)),a.addRight(new f("dots.dot",s,1,5))),t.startEnding&&r){var m=this.getTextSize.calc(t.startEnding,"repeatfont","").width;a.minspacing+=m+10,this.partstartelem=new d(t.startEnding,n,null),e.addOther(this.partstartelem)}return a.extraw-=5,void 0!==t.chord&&x(this.getTextSize,a,t,0,0,0,!1,this.germanAlphabet),a},e.exports=N},2652:function(e,t,r){var i=r(6658),a=r(4331),n=r(5810);function s(e,t,r,s,o,c,l,h,d,u,f,p,m,g,v){for(var b=e.split("\n"),y=b.length-1;y>=0;y--){var x,k=b[y],w=0;s||(k=n(k,g,v));var T=h.calc(k,o,c),C=T.width,S=T.height/a.STEP;switch(t){case"left":w=-(f+=C+7),x=u.averagepitch,d.addExtra(new i(k,w,C+4,x,{type:"text",height:S,dim:l,position:"left"}));break;case"right":w=p+=4,x=u.averagepitch,d.addRight(new i(k,w,C+4,x,{type:"text",height:S,dim:l,position:"right"}));break;case"below":d.addRight(new i(k,0,0,void 0,{type:"text",position:"below",height:S,dim:l,realWidth:C}));break;case"above":d.addRight(new i(k,0,0,void 0,{type:"text",position:"above",height:S,dim:l,realWidth:C}));break;default:if(r){var N=r.y+3*a.STEP;d.addRight(new i(k,w+r.x,0,u.minpitch+N/a.STEP,{position:"relative",type:"text",height:S,dim:l}))}else{var E="above";u.positioning&&u.positioning.chordPosition&&(E=u.positioning.chordPosition),"hidden"!==E&&d.addCentered(new i(k,m/2,C,void 0,{type:"chord",position:E,height:S,dim:l,realWidth:C}))}}}return{roomTaken:f,roomTakenRight:p}}e.exports=function(e,t,r,i,a,n,o,c){for(var l=0;l<r.chord.length;l++){var h,d,u=r.chord[l].position,f=r.chord[l].rel_position,p="left"===u||"right"===u||"below"===u||"above"===u||!!f;p?(h="annotationfont",d="abcjs-annotation"):(h="gchordfont",d="abcjs-chord");var m,g=e.attr(h,d),v=r.chord[l].name;if("string"==typeof v)i=(m=s(v,u,f,p,h,d,g,e,t,r,i,a,n,o,c)).roomTaken,a=m.roomTakenRight;else for(var b=0;b<v.length;b++)i=(m=s(v[b].text,u,f,p,h,d,g,e,t,r,i,a,n,o,c)).roomTaken,a=m.roomTakenRight}return{roomTaken:i,roomTakenRight:a}}},1716:function(e){e.exports=function(e,t,r){if(t.text){t.marginLeft||(t.marginLeft=0),t.klass||(t.klass=""),t.anchor||(t.anchor="start"),t.info||(t.info={startChar:-2,endChar:-2}),t.marginTop&&e.push({move:t.marginTop});var i={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&&(i.absElemType=t.absElemType),!t.inGroup&&t.klass&&(i.klass=t.klass),t.name&&(i.name=t.name),e.push(i);var a=r.calc("A",t.font,t.klass),n=t.text.split("\n").length;if("\n"===t.text[t.text.length-1]&&n--,!t.noMove){var s=1.1*a.height*n;e.push({move:Math.round(s)}),t.marginBottom&&e.push({move:t.marginBottom})}}}},3661:function(e){e.exports=function(e){for(var t=0,r=0;r<e.voices.length;r++){var i=e.voices[r].staff;e.voices[r].duplicate||(t+=i.top,t+=-i.bottom)}return t}},9600:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){var r,s=0;e.el_type="clef";var o=new i(e,0,10,"staff-extra clef",t);switch(o.isClef=!0,e.type){case"treble":r="clefs.G";break;case"tenor":case"alto":r="clefs.C";break;case"bass":r="clefs.F";break;case"treble+8":r="clefs.G",s=1;break;case"tenor+8":case"alto+8":r="clefs.C",s=1;break;case"bass+8":r="clefs.F",s=1;break;case"treble-8":r="clefs.G",s=-1;break;case"tenor-8":case"alto-8":r="clefs.C",s=-1;break;case"bass-8":r="clefs.F",s=-1;break;case"none":return null;case"perc":r="clefs.perc";break;default:o.addFixed(new n("clef="+e.type,0,0,void 0,{type:"debug"}))}if(r){var c=a.symbolHeightInPitches(r),l=function(e){switch(e){case"clefs.G":return-5;case"clefs.C":case"clefs.F":return-4;case"clefs.perc":return-2;default:return 0}}(r);if(o.addRight(new n(r,5,a.getSymbolWidth(r),e.clefPos,{top:c+e.clefPos+l,bottom:e.clefPos+l})),0!==s){var h=2/3,d=(a.getSymbolWidth(r)-a.getSymbolWidth("8")*h)/2,u=s>0?o.top+3:o.bottom-1,f=s>0?o.top+3:o.bottom-3,p=f-2;"bass-8"===e.type&&(u=3,d=0),o.addRight(new n("8",5+d,a.getSymbolWidth("8")*h,u,{scalex:h,scaley:h,top:f,bottom:p}))}}return o}},3923:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){if(e.el_type="keySignature",!e.accidentals||0===e.accidentals.length)return null;var r=new i(e,0,10,"staff-extra key-signature",t);r.isKeySig=!0;var s=0;return e.accidentals.forEach((function(e){var t,i=0;switch(e.acc){case"sharp":t="accidentals.sharp",i=-3;break;case"natural":t="accidentals.nat";break;case"flat":t="accidentals.flat",i=-1.2;break;case"quartersharp":t="accidentals.halfsharp",i=-2.5;break;case"quarterflat":t="accidentals.halfflat",i=-1.2;break;default:t="accidentals.flat"}r.addRight(new n(t,s,a.getSymbolWidth(t),e.verticalPos,{thickness:a.symbolHeightInPitches(t),top:e.verticalPos+a.symbolHeightInPitches(t)+i,bottom:e.verticalPos+i})),s+=a.getSymbolWidth(t)+2}),this),r}},2143:function(e,t,r){var i=r(6020),a=r(6658);e.exports=function(e,t,r,n){n||(n={});var s,o=void 0!==n.dir?n.dir:null,c=void 0!==n.headx?n.headx:0,l=void 0!==n.extrax?n.extrax:0,h=void 0!==n.flag?n.flag:null,d=void 0!==n.dot?n.dot:0,u=void 0!==n.dotshiftx?n.dotshiftx:0,f=void 0!==n.scale?n.scale:1,p=void 0!==n.accidentalSlot?n.accidentalSlot:[],m=void 0!==n.shouldExtendStem&&n.shouldExtendStem,g=void 0===n.printAccidentals||n.printAccidentals,v=r.verticalPos,b=0,y=0,x=0;if(void 0===t)e.addFixed(new a("pitch is undefined",0,0,0,{type:"debug"}));else if(""===t)s=new a(null,0,0,v);else{var k=c;if(r.printer_shift){var w="same"===r.printer_shift?1:0;k="down"===o?-i.getSymbolWidth(t)*f+w:i.getSymbolWidth(t)*f-w}var T={scalex:f,scaley:f,thickness:i.symbolHeightInPitches(t)*f,name:r.name};if((s=new a(t,k,i.getSymbolWidth(t)*f,v,T)).stemDir=o,h){var C=v+("down"===o?-7:7)*f;m&&("down"===o&&C>6&&(C=6),"up"===o&&C<6&&(C=6));var S="down"===o?c:c+s.w-.6;e.addRight(new a(h,S,i.getSymbolWidth(h)*f,C,{scalex:f,scaley:f}))}for(y=s.w+u-2+5*d;d>0;d--){var N=1-Math.abs(v)%2;e.addRight(new a("dots.dot",s.w+u-2+5*d,i.getSymbolWidth("dots.dot"),v+N))}}if(s&&(s.highestVert=r.highestVert),g&&r.accidental){var E;switch(r.accidental){case"quartersharp":E="accidentals.halfsharp";break;case"dblsharp":E="accidentals.dblsharp";break;case"sharp":E="accidentals.sharp";break;case"quarterflat":E="accidentals.halfflat";break;case"flat":E="accidentals.flat";break;case"dblflat":E="accidentals.dblflat";break;case"natural":E="accidentals.nat"}for(var _=!1,M=l,A=0;A<p.length;A++)if(v-p[A][0]>=6){p[A][0]=v,M=p[A][1],_=!0;break}!1===_&&(M-=i.getSymbolWidth(E)*f+2,p.push([v,M]),b=i.getSymbolWidth(E)*f+2);var B=i.symbolHeightInPitches(E);e.addExtra(new a(E,M,i.getSymbolWidth(E),v,{scalex:f,scaley:f,top:v+B/2,bottom:v-B/2})),x=i.getSymbolWidth(E)/2}return{notehead:s,accidentalshiftx:b,dotshiftx:y,extraLeft:x}}},2525:function(e,t,r){var i=r(1409),a=r(6020),n=r(6658);e.exports=function(e,t){e.el_type="timeSignature";var r=new i(e,0,10,"staff-extra time-signature",t);if("specified"===e.type)for(var s=0,o=0;o<e.value.length;o++)if(0!==o&&(r.addRight(new n("+",s+1,a.getSymbolWidth("+"),6,{thickness:a.symbolHeightInPitches("+")})),s+=a.getSymbolWidth("+")+2),e.value[o].den){for(var c=0,l=0;l<e.value[o].num.length;l++)c+=a.getSymbolWidth(e.value[o].num[l]);var h=0;for(l=0;l<e.value[o].num.length;l++)h+=a.getSymbolWidth(e.value[o].den[l]);var d=Math.max(c,h);r.addRight(new n(e.value[o].num,s+(d-c)/2,c,8,{thickness:a.symbolHeightInPitches(e.value[o].num[0])})),r.addRight(new n(e.value[o].den,s+(d-h)/2,h,4,{thickness:a.symbolHeightInPitches(e.value[o].den[0])})),s+=d}else{for(var u=0,f=0;f<e.value[o].num.length;f++)u+=a.getSymbolWidth(e.value[o].num[f]);r.addRight(new n(e.value[o].num,s,u,6,{thickness:a.symbolHeightInPitches(e.value[o].num[0])})),s+=u}else"common_time"===e.type?r.addRight(new n("timesig.common",0,a.getSymbolWidth("timesig.common"),6,{thickness:a.symbolHeightInPitches("timesig.common")})):"cut_time"===e.type?r.addRight(new n("timesig.cut",0,a.getSymbolWidth("timesig.cut"),6,{thickness:a.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===e.type?r.addRight(new n("timesig.imperfectum",0,a.getSymbolWidth("timesig.imperfectum"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===e.type?r.addRight(new n("timesig.imperfectum2",0,a.getSymbolWidth("timesig.imperfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===e.type?r.addRight(new n("timesig.perfectum",0,a.getSymbolWidth("timesig.perfectum"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===e.type?r.addRight(new n("timesig.perfectum2",0,a.getSymbolWidth("timesig.perfectum2"),6,{thickness:a.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",e);return r}},8677:function(e,t,r){var i=r(3185),a=r(6891),n=r(8844),s=r(6020),o=r(6658),c=r(6183),l=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0},h=function(e,t,r,i,a){function n(e,t){var n="down"===a?function(){if(0===i.heads.length)return 2;for(var e=i.heads[0].pitch,t=1;t<i.heads.length;t++)e=Math.min(e,i.heads[t].pitch);return e}()+1:function(){if(0===i.heads.length)return 10;for(var e=i.heads[0].pitch,t=1;t<i.heads.length;t++)e=Math.max(e,i.heads[t].pitch);return e}()+9;"down"!==a&&1===t&&n--;var c=r/2;c+="down"===a?-5:3;for(var l=0;l<t;l++)n-=1,i.addFixedX(new o(e,c,s.getSymbolWidth(e),n))}for(var c=0;c<e.length;c++)switch(e[c]){case"/":n("flags.ugrace",1);break;case"//":n("flags.ugrace",2);break;case"///":n("flags.ugrace",3);break;case"////":n("flags.ugrace",4)}};l.prototype.dynamicDecoration=function(e,t,r,i){for(var s,o,c,l=0;l<t.length;l++)switch(t[l]){case"diminuendo(":this.startDiminuendoX=r,s=void 0;break;case"diminuendo)":s={start:this.startDiminuendoX,stop:r},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=r,o=void 0;break;case"crescendo)":o={start:this.startCrescendoX,stop:r},this.startCrescendoX=void 0;break;case"~(":case"glissando(":this.startGlissandoX=r,c=void 0;break;case"~)":case"glissando)":c={start:this.startGlissandoX,stop:r},this.startGlissandoX=void 0}s&&e.addOther(new a(s.start,s.stop,">",i)),o&&e.addOther(new a(o.start,o.stop,"<",i)),c&&e.addOther(new n(c.start,c.stop))},l.prototype.createDecoration=function(e,t,r,a,n,l,d,u,f,p,m){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(e,t,r,a){for(var n=0;n<t.length;n++)switch(t[n]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var s=new i(r,t[n],a);e.addOther(s)}}(e,t,n,f.volumePosition),this.dynamicDecoration(e,t,n,f.dynamicPosition),h(t,0,a,n,d);var g=function(e,t,r,i,a,n,l,h,d){for(var u,f=0;f<t.length;f++){if("staccato"===t[f]||"tenuto"===t[f]||"accent"===t[f]&&!d){var p="scripts."+t[f];if("accent"===t[f]&&(p="scripts.sforzato"),u=void 0===u?"down"===l?r+2:h-2:"down"===l?u+2:u-2,"accent"===t[f])"up"===l?u--:u++;else switch(u){case 2:case 4:case 6:case 8:case 10:"up"===l?u--:u++}r>9&&u++;var m=i/2;"center"!==s.getSymbolAlign(p)&&(m-=s.getSymbolWidth(p)/2),a.addFixedX(new o(p,m,s.getSymbolWidth(p),u))}if("slide"===t[f]&&a.heads[0]){var g=a.heads[0].pitch,v=new o("",-n-15,0,(g-=2)-1),b=new o("",-n-5,0,g+1);a.addFixedX(v),a.addFixedX(b),e.addOther(new c({anchor1:v,anchor2:b,fixedY:!0}))}}return void 0===u&&(u=r),{above:u,below:a.bottom}}(e,t,r,a,n,l,d,u,m);g.above=Math.max(g.above,this.minTop),g.below=Math.min(g.below,u),function(e,t,r,i,a,n,c,l){function h(e,t){"above"===e?i.above+=t:i.below-=t}function d(e){var t;return"above"===e?(t=i.above)<n&&(t=n):(t=i.below)>c&&(t=c),t}function u(e,i,a){var n=d(i);r.addFixedX(new o(e,t/2,0,n+2,{type:"decoration",klass:"ornament",thickness:3,anchor:a})),h(i,5)}function f(e,i){var a=t/2;"center"!==s.getSymbolAlign(e)&&(a-=s.getSymbolWidth(e)/2);var n=s.symbolHeightInPitches(e)+1,c=d(i);c="above"===i?c+n/2:c-n/2,r.addFixedX(new o(e,a,s.getSymbolWidth(e),c,{klass:"ornament",thickness:s.symbolHeightInPitches(e),position:i})),h(i,n)}for(var p={"+":"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"},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.":u(e[m],a,"middle"),!0;break;case"D.C.alcoda":u("D.C. al coda",a,"end"),!0;break;case"D.C.alfine":u("D.C. al fine",a,"end"),!0;break;case"D.S.alcoda":u("D.S. al coda",a,"end"),!0;break;case"D.S.alfine":u("D.S. al fine",a,"end"),!0;break;case"fine":u("FINE",a,"middle"),!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":f(p[e[m]],a),!0;break;case"invertedfermata":f(p[e[m]],"below"),!0;break;case"mark":r.klass="mark";break;case"accent":l&&(f("scripts.sforzato",a),!0)}}(t,a,n,g,f.ornamentPosition,this.minTop,u,m),function(e,t,r){for(var i=0;i<e.length;i++)if("arpeggio"===e[i])for(var a=t.abcelem.minpitch-1;a<=t.abcelem.maxpitch;a+=2)t.addExtra(new o("scripts.arpeggio",2*-s.getSymbolWidth("scripts.arpeggio")-r,0,a+2,{klass:"ornament",thickness:s.symbolHeightInPitches("scripts.arpeggio")}))}(t,n,l)},e.exports=l},1409:function(e,t,r){var i=r(5741),a=r(5829),n=function(e,t,r,i,a,n){n||(n={}),this.tuneNumber=a,this.abcelem=e,this.duration=t,this.durationClass=n.durationClassOveride?n.durationClassOveride:this.duration,this.minspacing=r||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=i,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}};n.prototype.getFixedCoords=function(){return{x:this.x,w:this.fixed.w,t:this.fixed.t,b:this.fixed.b}},n.prototype.addExtra=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top),void 0===this.fixed.b?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)},n.prototype.addHead=function(e){e.dx<this.extraw&&(this.extraw=e.dx),this.heads[this.heads.length]=e,this.addRight(e)},n.prototype.addRight=function(e){this.fixed.w=Math.max(this.fixed.w,e.dx+e.w),void 0!==e.top&&(void 0===this.fixed.t?this.fixed.t=e.top:this.fixed.t=Math.max(this.fixed.t,e.top)),void 0!==e.bottom&&(void 0===this.fixed.b?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)},n.prototype.addFixed=function(e){this._addChild(e)},n.prototype.addFixedX=function(e){this._addChild(e)},n.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)},n.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])},n.prototype._addChild=function(e){e.parent=this,this.children[this.children.length]=e,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)},n.prototype.pushTop=function(e){void 0!==e&&(void 0===this.top?this.top=e:this.top=Math.max(e,this.top))},n.prototype.pushBottom=function(e){void 0!==e&&(void 0===this.bottom?this.bottom=e:this.bottom=Math.min(e,this.bottom))},n.prototype.setX=function(e){this.x=e;for(var t=0;t<this.children.length;t++)this.children[t].setX(e)},n.prototype.center=function(e,t){var r=(t.x-e.x)/2+e.x;this.x=r-this.w/2;for(var i=0;i<this.children.length;i++)this.children[i].setX(this.x)},n.prototype.setHint=function(){this.hint=!0},n.prototype.highlight=function(e,t){i.bind(this)(e,t)},n.prototype.unhighlight=function(e,t){a.bind(this)(e,t)},e.exports=n},8491:function(e){var t=function(e,t,r,i){this.type="BeamElem",this.isflat=!!r,this.isgrace=!(!t||"grace"!==t),this.forceup=!!(this.isgrace||t&&"up"===t),this.forcedown=!(!t||"down"!==t),this.elems=[],this.total=0,this.average=6,this.allrests=!0,this.stemHeight=e,this.beams=[],i&&i.duration?(this.duration=i.duration,i.startTriplet&&(this.duration*=i.tripletMultiplier),this.duration=Math.round(1e3*this.duration)/1e3):this.duration=0};function r(e,t){return t?e/t:0}t.prototype.setHint=function(){this.hint=!0},t.prototype.runningDirection=function(e){var t=e.averagepitch;void 0!==t&&(this.total=Math.round(this.total+t),this.count||(this.count=0),this.count++)},t.prototype.add=function(e){var t=e.abcelem.averagepitch;void 0!==t&&(e.abcelem.rest||(this.allrests=!1),e.beam=this,this.elems.push(e),this.total=Math.round(this.total+t),(void 0===this.min||e.abcelem.minpitch<this.min)&&(this.min=e.abcelem.minpitch),(void 0===this.max||e.abcelem.maxpitch>this.max)&&(this.max=e.abcelem.maxpitch))},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setStemDirection=function(){this.average=r(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},t.prototype.calcDir=function(){this.average=r(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 i=0;i<this.elems[t].heads.length;i++)this.elems[t].heads[i].stemDir=e},e.exports=t},9316:function(e,t,r){var i=r(1716),a=r(6994);function n(e,t,r,i,a,n,s){this.rows=[],e.unalignedWords&&e.unalignedWords.length>0&&this.unalignedWords(e.unalignedWords,i,a,n,s),this.extraText(e,i,a,n,s),e.footer&&r&&this.footer(e.footer,t,i,s)}function s(e,t,r,i,n,s,o){r&&(t&&(r="string"==typeof r?t+r:[{text:t}].concat(r)),a(e,r,"historyfont",n=s?"abcjs-extra-text "+n:"","description",i,{absElemType:"extraText",anchor:"start"},o))}function o(e,t,r,n,s,o,c,l,h,d,u,f){if(r){l=u?"abcjs-extra-text "+l:"";var p=f.calc("A",s,l);if("string"==typeof r)t&&(r=t+"\n"+r),i(e,{marginLeft:n,text:r,font:s,absElemType:"extraText",name:h,"dominant-baseline":"middle",klass:l},f);else{e.push({startGroup:c,klass:l,name:h}),e.push({move:d.info}),t&&(i(e,{marginLeft:n,text:t,font:s,absElemType:"extraText",name:h,"dominant-baseline":"middle"},f),e.push({move:3*p.height/4}));for(var m=0;m<r.length;m++)a(e,r[m],s,"",h,n,{anchor:"start"},f),m<r.length-1&&"string"==typeof r[m]&&"string"!=typeof r[m+1]&&e.push({move:3*p.height/4});e.push({endGroup:c,absElemType:o,startChar:-1,endChar:-1,name:h}),e.push({move:p.height})}}}n.prototype.unalignedWords=function(e,t,r,i,a){var n=i?"abcjs-unaligned-words":"",s="wordsfont",c=a.calc("i",s,n);this.rows.push({move:r.words}),o(this.rows,"",e,t,s,"unalignedWords","unalignedWords",n,"unalignedWords",r,i,a),this.rows.push({move:c.height})},n.prototype.extraText=function(e,t,r,i,a){s(this.rows,"Book: ",e.book,t,"abcjs-book",i,a),s(this.rows,"Source: ",e.source,t,"abcjs-source",i,a),s(this.rows,"Discography: ",e.discography,t,"abcjs-discography",i,a),o(this.rows,"Notes:",e.notes,t,"historyfont","extraText","notes","abcjs-notes","description",r,i,a),s(this.rows,"Transcription: ",e.transcription,t,"abcjs-transcription",i,a),o(this.rows,"History:",e.history,t,"historyfont","extraText","history","abcjs-history","description",r,i,a),s(this.rows,"Copyright: ",e["abc-copyright"],t,"abcjs-copyright",i,a),s(this.rows,"Creator: ",e["abc-creator"],t,"abcjs-creator",i,a),s(this.rows,"Edited By: ",e["abc-edited-by"],t,"abcjs-edited-by",i,a)},n.prototype.footer=function(e,t,r,a){var n="header meta-bottom",s="footerfont";this.rows.push({startGroup:"footer",klass:n}),i(this.rows,{marginLeft:r,text:e.left,font:s,klass:n,name:"footer"},a),i(this.rows,{marginLeft:r+t/2,text:e.center,font:s,klass:n,anchor:"middle",name:"footer"},a),i(this.rows,{marginLeft:r+t,text:e.right,font:s,klass:n,anchor:"end",name:"footer"},a)},e.exports=n},5224:function(e){var t=function(e,t){this.startVoice=e,this.type=t};t.prototype.setBottomStaff=function(e){this.endVoice=e,this.startVoice.header&&!this.endVoice.header&&(this.header=this.startVoice.header,delete this.startVoice.header)},t.prototype.continuing=function(e){this.lastContinuedVoice=e},t.prototype.getWidth=function(){return 10},t.prototype.isStartVoice=function(e){return!!(this.startVoice&&this.startVoice.staff&&this.startVoice.staff.voices.length>0&&this.startVoice.staff.voices[0]===e)},e.exports=t},6891:function(e){e.exports=function(e,t,r,i){this.type="CrescendoElem",this.anchor1=e,this.anchor2=t,this.dir=r,"above"===i?this.dynamicHeightAbove=6:this.dynamicHeightBelow=6,this.pitch=void 0}},3185:function(e){e.exports=function(e,t,r){this.type="DynamicDecoration",this.anchor=e,this.dec=t,"below"===r?this.volumeHeightBelow=6:this.volumeHeightAbove=6,this.pitch=void 0}},8256:function(e){e.exports=function(e,t,r){this.type="EndingElem",this.text=e,this.anchor1=t,this.anchor2=r,this.endingHeightAbove=5,this.pitch=void 0}},3736:function(e){e.exports=function(e,t,r,i,a,n){var s,o=e.text;this.rows=[],t&&this.rows.push({move:t});var c=r.calc("textfont","defined-text");if(""===o)this.rows.push({move:2*c.attr["font-size"]});else if("string"==typeof o)this.rows.push({move:c.attr["font-size"]/2}),this.rows.push({left:i,text:o,font:"textfont",klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=n.calc(o,"textfont","defined-text"),this.rows.push({move:s.height});else if(o){for(var l=0,h=i,d="textfont",u=0;u<o.length;u++)d=o[u].font?o[u].font:"textfont",this.rows.push({left:h,text:o[u].text,font:d,klass:"defined-text",anchor:"start",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),h+=(s=n.calc(o[u].text,r.calc(d,"defined-text").font,"defined-text")).width+s.height/2,l=Math.max(l,s.height);this.rows.push({move:l})}else if(1===e.length){var f=a/2;this.rows.push({left:f,text:e[0].text,font:"textfont",klass:"defined-text",anchor:"middle",startChar:e.startChar,endChar:e.endChar,absElemType:"freeText",name:"free-text"}),s=n.calc(e[0].text,"textfont","defined-text"),this.rows.push({move:s.height})}}},8844:function(e){e.exports=function(e,t){this.type="GlissandoElem",this.anchor1=e,this.anchor2=t}},6658:function(e){var t=function(e,t,r,i,a){switch(a=a||{},this.x=0,this.c=e,this.dx=t,this.w=r,this.pitch=i,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=i,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=i,void 0!==this.pitch2&&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&&"below"===a.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?a.position&&"below"===a.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};t.prototype.getChordDim=function(){if("debug"===this.type)return null;if(!this.chordHeightAbove&&!this.chordHeightBelow)return null;var e="chord"===this.type?this.realWidth/2:0,t=this.x-e-0;return{left:t,right:t+this.realWidth+0}},t.prototype.invertLane=function(e){void 0===this.lane&&(this.lane=0),this.lane=e-this.lane-1},t.prototype.putChordInLane=function(e){this.lane=e,this.chordHeightAbove?this.chordHeightAbove=1.25*this.height*this.lane:this.chordHeightBelow=1.25*this.height*this.lane},t.prototype.getLane=function(){return void 0===this.lane?0:this.lane},t.prototype.setX=function(e){this.x=e+this.dx},e.exports=t},6994:function(e,t,r){var i=r(1716);e.exports=function(e,t,r,a,n,s,o,c){var l=c.calc("i",r,a);if(""===t)e.push({move:l.height});else{if("string"==typeof t)return void i(e,{marginLeft:s,text:t,font:r,klass:a,marginTop:o.marginTop,anchor:o.anchor,absElemType:o.absElemType,info:o.info,name:n},c);o.marginTop&&e.push({move:o.marginTop});var h=0,d={left:s,anchor:o.anchor,phrases:[]};a&&(d.klass=a),e.push(d);for(var u=0;u<t.length;u++){var f=t[u],p=f.font?f.font:c.attr(r,a).font,m={content:f.text};p&&(m.attrs={"font-family":c.getFamily(p.face),"font-size":p.size,"font-weight":p.weight,"font-style":p.style,"font-decoration":p.decoration}),d.phrases.push(m);var g=c.calc(f.text,p,a);h=Math.max(h,g.height)," "===f.text[f.text.length-1]&&l.width}e.push({move:h})}}},5588:function(e){e.exports=function(e,t,r){this.rows=[],e&&this.rows.push({move:e}),this.rows.push({separator:t,absElemType:"separator"}),r&&this.rows.push({move:r})}},7398:function(e,t,r){var i=r(3661),a=function(e){this.getTextSize=e,this.voices=[],this.staffs=[],this.brace=void 0,this.bracket=void 0};a.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])},a.prototype.addVoice=function(e,t,r){var i=this.voices.length;this.voices[i]=e,this.staffs[t]?this.staffs[t].voices.push(i):this.staffs[this.staffs.length]={top:10,bottom:2,lines:r,voices:[i],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]},a.prototype.setHeight=function(){this.height=i(this)},a.prototype.setWidth=function(e){this.w=e;for(var t=0;t<this.voices.length;t++)this.voices[t].setWidth(e)},a.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)},e.exports=a},4726:function(e){e.exports=function(e,t,r,i,a,n){this.rows=[],e&&this.rows.push({move:e});var s=t.titleleft?"start":"middle",o=t.titleleft?a:i;this.rows.push({left:o,text:r.text,font:"subtitlefont",klass:"text subtitle",anchor:s,startChar:r.startChar,endChar:r.endChar,absElemType:"subtitle",name:"subtitle"});var c=n.calc(r.text,"subtitlefont","text subtitle");this.rows.push({move:c.height})}},1106:function(e,t,r){var i=r(1409),a=r(6658),n=function(e,t,r){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(r,e,t))};n.prototype.setX=function(e){this.x=e},n.prototype.createNote=function(e,t,r){var n,s,o,c=.75,l=t.duration[0],h=new i(t,l,1,"tempo",r);l<=1/32?(o="noteheads.quarter",s="flags.u32nd",n=0):l<=1/16?(o="noteheads.quarter",s="flags.u16th",n=0):l<=3/32?(o="noteheads.quarter",s="flags.u16nd",n=1):l<=1/8?(o="noteheads.quarter",s="flags.u8th",n=0):l<=3/16?(o="noteheads.quarter",s="flags.u8th",n=1):l<=1/4?(o="noteheads.quarter",n=0):l<=3/8?(o="noteheads.quarter",n=1):l<=.5?(o="noteheads.half",n=0):l<=3/4?(o="noteheads.half",n=1):l<=1?(o="noteheads.whole",n=0):l<=1.5?(o="noteheads.whole",n=1):l<=2?(o="noteheads.dbl",n=0):(o="noteheads.dbl",n=1);var d,u=e(h,o,{verticalPos:0},{dir:"up",flag:s,dot:n,scale:c}).notehead;if(h.addHead(u),"noteheads.whole"!==o&&"noteheads.dbl"!==o){var f=u.dx+u.w;d=new a(null,f,0,.25,{type:"stem",pitch2:3.75,linewidth:-.6}),h.addRight(d)}return h},e.exports=n},6183:function(e){var t=function(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),void 0!==e.voiceNumber&&(this.voiceNumber=e.voiceNumber),void 0!==e.style&&(this.dotted=!0),this.internalNotes=[]};t.prototype.addInternalNote=function(e){this.internalNotes.push(e)},t.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)},t.prototype.setStartX=function(e){this.startLimitX=e},t.prototype.setEndX=function(e){this.endLimitX=e},t.prototype.setHint=function(){this.hint=!0},t.prototype.calcTieDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e;e=this.anchor1?this.anchor1.pitch:this.anchor2?this.anchor2.pitch:14,this.anchor1&&"down"===this.anchor1.stemDir&&this.anchor2&&"down"===this.anchor2.stemDir?this.above=!0:this.anchor1&&"up"===this.anchor1.stemDir&&this.anchor2&&"up"===this.anchor2.stemDir?this.above=!1:this.anchor1&&this.anchor2?this.above=e>=6:this.anchor1?this.above="down"===this.anchor1.stemDir:this.anchor2?this.above="down"===this.anchor2.stemDir:this.above=e>=6}},t.prototype.calcSlurDirection=function(){if(this.isGrace)this.above=!1;else if(0===this.voiceNumber)this.above=!0;else if(this.voiceNumber>0)this.above=!1;else{var e=!1;this.anchor1&&"down"===this.anchor1.stemDir&&(e=!0),this.anchor2&&"down"===this.anchor2.stemDir&&(e=!0);for(var t=0;t<this.internalNotes.length;t++)"down"===this.internalNotes[t].stemDir&&(e=!0);this.above=e}},t.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},t.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},t.prototype.calcSlurY=function(){if(this.anchor1&&this.anchor2){this.above&&"up"===this.anchor1.stemDir&&!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&&"up"===this.anchor2.stemDir&&!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,1===this.anchor1.scalex){var r=!!this.anchor1.parent.beam,i=!!this.anchor2.parent.beam;r&&(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)),i&&(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)},t.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)}},e.exports=t},1134:function(e,t,r){var i=r(1716),a=r(6994);e.exports=function(e,t,r,n,s,o,c,l,h,d){if(this.rows=[],e.header&&o){var u=d.calc("X","headerfont","abcjs-header abcjs-meta-top").height;i(this.rows,{marginLeft:c,text:e.header.left,font:"headerfont",klass:"header meta-top",marginTop:-u,info:t.header,name:"header"},d),i(this.rows,{marginLeft:c+s/2,text:e.header.center,font:"headerfont",klass:"header meta-top",marginTop:-u,anchor:"middle",info:t.header,name:"header"},d),i(this.rows,{marginLeft:c+s,text:e.header.right,font:"headerfont",klass:"header meta-top",marginTop:-u,anchor:"end",info:t.header,name:"header"},d)}o&&this.rows.push({move:l.top});var f=r.titleleft?"start":"middle",p=r.titleleft?c:c+s/2;if(e.title){var m=h?"abcjs-title":"";a(this.rows,e.title,"titlefont",m,"title",p,{marginTop:l.title,anchor:f,absElemType:"title",info:t.title},d)}if(n.length)for(var g=0;g<n.length&&n[g].subtitle;)m=h?"abcjs-text abcjs-subtitle":"",a(this.rows,n[g].subtitle.text,"subtitlefont",m,"subtitle",p,{marginTop:l.subtitle,anchor:f,absElemType:"subtitle",info:n[g].subtitle},d),g++;if(e.rhythm||e.origin||e.composer){if(this.rows.push({move:l.composer}),e.rhythm&&e.rhythm.length>0){var v=!(!e.composer&&!e.origin);m=h?"abcjs-rhythm":"",i(this.rows,{marginLeft:c,text:e.rhythm,font:"infofont",klass:m,absElemType:"rhythm",noMove:v,info:t.rhythm,name:"rhythm"},d)}e.composer&&e.composer,e.origin&&e.origin;var b=e.composer?e.composer:"";e.origin&&("string"==typeof b&&"string"==typeof e.origin?b+=" ("+e.origin+")":"string"==typeof b&&"string"!=typeof e.origin?((b=[{text:b}]).push({text:" ("}),(b=b.concat(e.origin)).push({text:")"})):(b.push({text:" ("}),(b=b.concat(e.origin)).push({text:")"}))),b&&(m=h?"abcjs-composer":"",a(this.rows,b,"composerfont",m,"composer",c+s,{anchor:"end",absElemType:"composer",info:t.composer,ingroup:!0},d))}e.author&&e.author.length>0&&(m=h?"abcjs-author":"",a(this.rows,e.author,"composerfont",m,"author",c+s,{anchor:"end",absElemType:"author",info:t.author},d)),e.partOrder&&e.partOrder.length>0&&(m=h?"abcjs-part-order":"",a(this.rows,e.partOrder,"partsfont",m,"part-order",c,{absElemType:"partOrder",info:t.partOrder,anchor:"start"},d))}},2096:function(e){var t=function(e,t,r){this.type="TripletElem",this.anchor1=t,this.number=e,this.durationClass=("d"+Math.round(1e3*t.parent.durationClass)/1e3).replace(/\./,"-"),this.middleElems=[],this.flatBeams=r.flatBeams};t.prototype.isClosed=function(){return!!this.anchor2},t.prototype.middleNote=function(e){this.middleElems.push(e)},t.prototype.setCloseAnchor=function(e){this.anchor2=e,this.anchor1.parent.beam&&"up"!==this.anchor1.stemDir||(this.endingHeightAbove=4)},e.exports=t},3197:function(e){var t=function(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}};t.prototype.addChild=function(e){if("bar"===e.type){for(var t=!0,r=0;t&&r<this.children.length;r++)this.children[r].type.indexOf("staff-extra")<0&&"tempo"!==this.children[r].type&&(t=!1);t||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=e,this.setRange(e)},t.prototype.setLimit=function(e,t){var r=t.specialY;r||(r=t),r[e]&&(this.specialY[e]?this.specialY[e]=Math.max(this.specialY[e],r[e]):this.specialY[e]=r[e])},t.prototype.adjustRange=function(e){void 0!==e.bottom&&(this.bottom=Math.min(this.bottom,e.bottom)),void 0!==e.top&&(this.top=Math.max(this.top,e.top))},t.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)},t.prototype.addOther=function(e){this.otherchildren.push(e),this.setRange(e)},t.prototype.addBeam=function(e){this.beams.push(e)},t.prototype.setWidth=function(e){this.w=e},e.exports=t},6020:function(e,t,r){var i=r(4331),a={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},"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},"noteheads.slash.quarter":{d:[["M",9,-6],["l",0,4],["l",-9,9],["l",0,-4],["z"]],w:9,h:9},"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},"noteheads.triangle.quarter":{d:[["M",0,4],["l",9,0],["l",-4.5,-9],["z"]],w:9,h:9}},n=function(e){for(var t=[],r=0,i=e.length;r<i;r++){t[r]=[];for(var a=0,n=e[r].length;a<n;a++)t[r][a]=e[r][a]}return t},s={printSymbol:function(e,t,r,i,s){if(!a[r])return null;var o=n(a[r].d);o[0][1]+=e,o[0][2]+=t;for(var c="",l=0;l<o.length;l++)c+=o[l].join(" ");return s.path=c,i.path(s)},getPathForSymbol:function(e,t,r,i,s){if(i=i||1,s=s||1,!a[r])return null;var o=n(a[r].d);return 1===i&&1===s||function(e,t,r){for(var i=0,a=e.length;i<a;i++){var n,s,o=e[i];for(n=1,s=o.length;n<s;n++)o[n]*=n%2?t:r}}(o,i,s),o[0][1]+=e,o[0][2]+=t,o},getSymbolWidth:function(e){return a[e]?a[e].w:0},symbolHeightInPitches:function(e){return(a[e]?a[e].h:0)/i.STEP},getSymbolAlign:function(e){return"scripts"===e.substring(0,7)&&"scripts.roll"!==e?"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"+":case"flags.d64th":case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"timesig.common":case"timesig.cut":default:return 0;case"flags.d32nd":case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"flags.u32nd":case"rests.whole":case"scripts.dfermata":return 1;case"flags.u64th":return 3;case"f":case"m":case"p":case"s":case"z":return-4}},setSymbol:function(e,t){a[e]=t}};e.exports=s},5810:function(e){function t(e){switch(e){case"B#":return"H#";case"B♯":return"H♯";case"B":return"H";case"Bb":case"B♭":return"B"}return e}e.exports=function(e,r,i){for(var a=e.split("\n"),n=0;n<a.length;n++){var s=a[n].match(/^([ABCDEFG][♯♭]?)?([^\/]+)?(\/([ABCDEFG][#b♯♭]?))?/);if(s){var o=s[1]||"",c=s[2]||"",l=s[4]||"";i&&(o=t(o),l=t(l));var h=r?"":"",d=l?"/"+l:"";a[n]=[o,c,d].join(h)}}return a.join("\n")}},4750:function(e,t,r){var i=r(3987),a=r(2435),n=r(4331),s=r(2187),o=r(8832);e.exports=function(e,t,r,c,l){if(!t.invisible){var h=t.children.length>0&&"TempoElement"===t.children[0].type;t.elemset=[],o.beginGroup(e.paper,e.controller);for(var d=0;d<t.children.length;d++){var u=t.children[d];if("TempoElement"===u.type)i(e,u);else{var f=a(e,u,r);"symbol"===u.type&&u.c&&u.c.indexOf("notehead")>=0&&f.setAttribute("class","abcjs-notehead")}}var p=t.type;if(("note"===t.type||"rest"===t.type)&&(t.counters=e.controller.classes.getCurrent(),p=(p+=" d"+Math.round(1e3*t.durationClass)/1e3).replace(/\./g,"-"),t.abcelem.pitches))for(var m=0;m<t.abcelem.pitches.length;m++)p+=" p"+t.abcelem.pitches[m].pitch;var g=o.endGroup(p,t.type);if(g){if(t.cloned&&(t.cloned.overrideClasses=g.className.baseVal),t.overrideClasses){var v=g.classList&&g.classList.length>0?g.classList[0]+" ":"";g.setAttribute("class",v+t.overrideClasses)}if(h)t.startChar=t.abcelem.startChar,t.endChar=t.abcelem.endChar,c.add(t,g,!1,l);else{t.elemset.push(g);var b=!1;"note"!==t.type&&"tabNumber"!==t.type||(b=!0),c.add(t,g,b,l)}}else t.elemset.length>0&&c.add(t,t.elemset[0],"note"===t.type,l);if(t.klass&&s(t.elemset,"mark","","#00ff00"),t.hint&&s(t.elemset,"abcjs-hint","",null),t.abcelem.abselem=t,t.heads&&t.heads.length>0){t.notePositions=[];for(var y=0;y<t.heads.length;y++)t.notePositions.push({x:t.heads[y].x+t.heads[y].w/2,y:l.zero-t.heads[y].pitch*n.STEP})}}}},7489:function(e,t,r){var i=r(6454),a=r(7199);function n(e,t,r,i,n,s){r=a(e.calcY(r)),n=a(e.calcY(n)),t=a(t),i=a(i);var o=a(r+s);return"M"+t+" "+r+" L"+i+" "+n+"L"+i+" "+a(n+s)+" L"+t+" "+o+"z"}function s(e,t,r,i){return t+(i-e)*r}e.exports=function(e,t){if(0!==t.beams.length){for(var r="",a=0;a<t.beams.length;a++){var o=t.beams[a];if(o.split){for(var c=(m=o.startX,g=o.startY,v=o.endX,(o.endY-g)/(v-m)),l=[],h=0;h<o.split.length;h+=2)l.push([o.split[h],o.split[h+1]]);for(h=0;h<l.length;h++){var d=s(o.startX,o.startY,c,l[h][0]),u=s(o.startX,o.startY,c,l[h][1]);r+=n(e,l[h][0],d,l[h][1],u,o.dy)}}else r+=n(e,o.startX,o.startY,o.endX,o.endY,o.dy)}var f=("abcjs-d"+t.duration).replace(/\./g,"-"),p=e.controller.classes.generate("beam-elem "+f);return[i(e,{path:r,stroke:"none",fill:e.foregroundColor,class:p})]}var m,g,v}},129:function(e,t,r){var i=r(6764),a=r(4331),n=r(5759);function s(e,t,r,a){return i("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 o=function(e,t,r,o,c,l,h){var d;if(l){e.paper.openGroup({klass:e.controller.classes.generate("staff-extra voice-name"),"data-name":c});var u=r+(o-r)/2;u-=e.controller.getTextSize.baselineToCenter(l,"voicefont","staff-extra voice-name",0,1),n(e,{x:e.padding.left,y:u,text:l,type:"voicefont",klass:"staff-extra voice-name",anchor:"start",centerVertically:!0})}return"brace"===c?d=function(e,t,r,i,a){var n=i-r,o=s(t,r,[7.5,-8,21,0,18.5,-10.5,7.5],[0,n/5.5,n/3.14,n/2,n/2.93,n/4.88,0]);return o+=s(t,r,[0,17.5,-7.5,6.6,-5,20,0],[n/2,n/1.46,n/1.22,n,n/1.19,n/1.42,n/2]),e.paper.path({path:o,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(a),"data-name":a})}(e,t,r,o,c):"bracket"===c&&(d=function(e,t,r,n,s){t+=a.STEP;var o=.75*a.STEP,c=.75*a.STEP,l=n-r,h=i("M %f %f l %f %f l %f %f l %f %f z",t,r-c,0,l+2*c,o,0,0,-(l+2*c)),d=2*a.STEP,u=a.STEP;return h+=i("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r-c,.6*d,.2*u,d,-u,.1*-d,.3*u,-d,u+a.STEP),h+=i("M %f %f q %f %f %f %f q %f %f %f %f z",t+o,r+c+l,.6*d,.2*-u,d,u,.1*-d,.3*-u,-d,-u-a.STEP),e.paper.path({path:h,stroke:e.foregroundColor,fill:e.foregroundColor,class:e.controller.classes.generate(s),"data-name":s})}(e,t,r,o,c)),l&&(d=e.paper.closeGroup()),h.wrapSvgEl({el_type:c,startChar:-1,endChar:-1},d),d};e.exports=function(e,t,r){var i=t.startVoice.staff.absoluteY-10*a.STEP;return t.endVoice&&t.endVoice.staff?t.endY=t.endVoice.staff.absoluteY-2*a.STEP:t.lastContinuedVoice&&t.lastContinuedVoice.staff?t.endY=t.lastContinuedVoice.staff.absoluteY-2*a.STEP:t.endY=t.startVoice.staff.absoluteY-2*a.STEP,o(e,t.x,i,t.endY,t.type,t.header,r)}},3245:function(e,t,r){var i=r(6764),a=r(6454),n=r(7199),s=function(e,t,r,s,o,c,l){t=n(t),r=n(r),s=n(s),o=n(o),c=n(c),l=n(l);var h=i("M %f %f L %f %f M %f %f L %f %f",c,t,l,r,c,s,l,o);return a(e,{path:h,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("dynamics decoration"),"data-name":"dynamics"})};e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var i,a=e.calcY(t.pitch)+4,n=t.anchor1?t.anchor1.x:0,o=t.anchor2?t.anchor2.x:800;return i="<"===t.dir?s(e,a+4,a,a+4,a+8,n,o):s(e,a,a+4,a+8,a+4,n,o),r.wrapSvgEl({el_type:"dynamicDecoration",startChar:-1,endChar:-1},i),[i]}},1547:function(e){e.exports=function(e,t,r){var i=e.paper.rectBeneath(t);return r&&e.paper.text(r,{x:0,y:t.y+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),i}},5012:function(e,t,r){var i=r(5537),a=r(7611),n=r(5668),s=r(4331),o=r(3524);function c(e,t,r,a){i(e,t,r,a);var n=t.height*s.STEP;return e.y+=n,t}function l(e,t,r,i){var a=-(r.staffs[r.staffs.length-1].bottom-2),n=(i.staffs[0].top-10+a)*s.STEP;n<t&&e.moveY(t-n)}e.exports=function(e,t,r,i,s,h,d,u,f,p){var m=new o(e.paper,u,f),g={};t.shouldAddClasses&&(g.klass="abcjs-meta-top"),e.paper.openGroup(g),e.moveY(e.padding.top),n(e,r.topText,m),e.paper.closeGroup(),e.moveY(e.spacing.music);for(var v=[],b=0;b<r.lines.length;b++){t.incrLine();var y=r.lines[b];if(y.staff){t.shouldAddClasses&&(g.klass="abcjs-staff-wrapper abcjs-l"+t.lineNumber),e.paper.openGroup(g),y.vskip&&e.moveY(y.vskip),v.length>=1&&l(e,e.spacing.staffSeparation,v[v.length-1],y.staffGroup);var x=c(e,y.staffGroup,m,b);x.line=p+b,v.push(x),e.paper.closeGroup()}else y.nonMusic&&(t.shouldAddClasses&&(g.klass="abcjs-non-music"),e.paper.openGroup(g),n(e,y.nonMusic,m),e.paper.closeGroup())}return t.reset(),r.bottomText&&r.bottomText.rows&&r.bottomText.rows.length>0&&(t.shouldAddClasses&&(g.klass="abcjs-meta-bottom"),e.paper.openGroup(g),e.moveY(24),n(e,r.bottomText,m),e.paper.closeGroup()),a(e,s,d,h),{staffgroups:v,selectables:m.getElements()}}},9879:function(e,t,r){var i=r(4777);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error("Dynamic Element y-coordinate not set.");var a=i(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]}},5947:function(e,t,r){var i=r(6764),a=r(5759),n=r(6454),s=r(7199);e.exports=function(e,t,r,o,c){void 0===t.pitch&&window.console.error("Ending Element y-coordinate not set.");var l=s(e.calcY(t.pitch)),h="";t.anchor1&&(r=s(t.anchor1.x+t.anchor1.w),h+=i("M %f %f L %f %f ",r,l,r,s(l+20))),t.anchor2&&(o=s(t.anchor2.x),h+=i("M %f %f L %f %f ",o,l,o,s(l+20))),h+=i("M %f %f L %f %f ",r,l,o,l),e.paper.openGroup({klass:e.controller.classes.generate("ending"),"data-name":"ending"}),n(e,{path:h,stroke:e.foregroundColor,fill:e.foregroundColor,"data-name":"line"}),t.anchor1&&a(e,{x:s(r+5),y:s(e.calcY(t.pitch-.5)),text:t.text,type:"repeatfont",klass:"ending",anchor:"start",noClass:!0,name:t.text});var d=e.paper.closeGroup();return c.wrapSvgEl({el_type:"ending",startChar:-1,endChar:-1},d),[d]}},9045:function(e,t,r){var i=r(6764),a=r(6454),n=r(7199);function s(e,t,r){return n(e+r*t)}var o=[[3.5,-4.8]],c=[[1.5,-1],[.3,-.3],[-3.5,3.8]],l=[[-1.5,2]],h=[[3,4],[3,-4]],d=[[-3,4],[-3,-4]];function u(e,t){for(var r="",i=0;i<e.length;i++)r+="l"+e[i][0]+" "+s(e[i][1],t,e[i][0]);return r}var f=function(e,t,r,n,s){var f,p=i("M %f %f",t,r);for(p+=u(o,s),f=0;f<n;f++)p+=u(h,s);for(p+=u(c,s),f=0;f<n;f++)p+=u(d,s);return p+=u(l,s)+"z",a(e,{path:p,highlight:"stroke",stroke:e.foregroundColor,class:e.controller.classes.generate("decoration"),"data-name":"glissando"})};e.exports=function(e,t,r){t.anchor1&&t.anchor2&&t.anchor1.heads&&t.anchor2.heads&&0!==t.anchor1.heads.length&&0!==t.anchor2.heads.length||window.console.error("Glissando Element not set.");var i,a,n=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,h=function(e,t,r,i){var a=r-e,n=i-t;return Math.sqrt(a*a+n*n)}(c,n,l,o),d=t.anchor1.w/2+4,u=t.anchor2.w/2+4,p=function(e,t,r,i){return(i-t)/(r-e)}(c,n,l,o),m=s(n,p,d),g=(s(o,p,-u),i=h-d-u,a=5,Math.max(2,Math.floor((i-2*a)/6))),v=f(e,c+d,m,g,p);return r.wrapSvgEl({el_type:"glissando",startChar:-1,endChar:-1},v),[v]}},8832:function(e,t,r){var i=r(7199);function a(){this.ingroup=!1}a.prototype.beginGroup=function(e,t){this.paper=e,this.controller=t,this.path=[],this.lastM=[0,0],this.ingroup=!0,this.paper.openGroup()},a.prototype.isInGroup=function(){return this.ingroup},a.prototype.addPath=function(e){if(0!==(e=e||[]).length){e[0][0]="m",e[0][1]=i(e[0][1]-this.lastM[0]),e[0][2]=i(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++)"m"===e[t][0]&&(this.lastM[0]+=e[t][1],this.lastM[1]+=e[t][2]),this.path.push(e[t])}},a.prototype.endGroup=function(e,t){this.ingroup=!1;for(var r=0;r<this.path.length;r++)this.path[r].join(" ");this.path=[];var i=this.paper.closeGroup();return i&&(i.setAttribute("class",this.controller.classes.generate(e)),i.setAttribute("fill",this.controller.renderer.foregroundColor),i.setAttribute("stroke","none"),i.setAttribute("data-name",t)),i};var n=new a;e.exports=n},5668:function(e,t,r){var i=r(4169),a=r(5759);e.exports=function(e,t,r){for(var n=0;n<t.rows.length;n++){var s=t.rows[n];if(s.absmove)e.absolutemoveY(s.absmove);else if(s.move)e.moveY(s.move);else if(s.text||s.phrases){var o=s.left?s.left:0,c=a(e,{x:o,y:e.y,text:s.text,phrases:s.phrases,"dominant-baseline":s["dominant-baseline"],type:s.font,klass:s.klass,name:s.name,anchor:s.anchor});s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:s.text},c)}else if(s.separator)i(e,s.separator);else if(s.startGroup)e.paper.openGroup({klass:s.klass,"data-name":s.name});else if(s.endGroup){var l=e.paper.closeGroup();s.absElemType&&r.wrapSvgEl({el_type:s.absElemType,name:s.name,startChar:s.startChar,endChar:s.endChar,text:""},l)}}}},6637:function(e,t,r){var i=r(6764),a=r(7199);e.exports=function(e,t,r,n,s,o,c){var l=e.foregroundColor;t=a(t),r=a(r);var h=a(n-c),d=a(n+c);if(e.firefox112){var u={x1:t,x2:r,y1:n+=c/2,y2:n,stroke:e.foregroundColor,"stroke-width":Math.abs(2*c)};return s&&(u.class=s),o&&(u["data-name"]=o),e.paper.lineToBack(u)}var f={path:i("M %f %f L %f %f L %f %f L %f %f z",t,h,r,h,r,d,t,d),stroke:"none",fill:l};return o&&(f["data-name"]=o),s&&(f.class=s),e.paper.pathToBack(f)}},6454:function(e){e.exports=function(e,t,r){return e.paper.path(t)}},3624:function(e,t,r){var i=r(8832),a=r(7199);e.exports=function(e,t,r,n,s,o,c){if(r<0||n<s){var l=a(s);s=a(n),n=l}else n=a(n),s=a(s);t=a(t);var h=a(t+r);if(e.firefox112){var d={x1:t+=r/2,x2:t,y1:n,y2:s,stroke:e.foregroundColor,"stroke-width":Math.abs(r)};return o&&(d.class=o),c&&(d["data-name"]=c),e.paper.lineToBack(d)}for(var u=[["M",t,n],["L",t,s],["L",h,s],["L",h,n],["z"]],f=(d={path:""},0);f<u.length;f++)d.path+=u[f].join(" ");return o&&(d.class=o),c&&(d["data-name"]=c),i.isInGroup()||(d.stroke="none",d.fill=e.foregroundColor),e.paper.pathToBack(d)}},4777:function(e,t,r){var i=r(5759),a=r(6020),n=r(8832);e.exports=function(e,t,r,s,o){var c,l,h,d,u,f;if(!s)return null;if(s.length>1&&s.indexOf(".")<0){var p=n.isInGroup()?"":o.klass;e.paper.openGroup({"data-name":o.name,klass:p});for(var m=0,g=0;g<s.length;g++){var v=s[g];l=a.getYCorr(v),(c=a.printSymbol(t+m,e.calcY(r+l),v,e.paper,{stroke:o.stroke,fill:o.fill}))?g<s.length-1&&(m+=(h=v,d=s[g+1],u=a.getSymbolWidth(v),f=void 0,f=u,"f"===h&&"f"===d&&(f=2*f/3),"p"===h&&"p"===d&&(f=5*f/6),"f"===h&&"z"===d&&(f=5*f/8),f)):i(e,{x:t,y:e.y,text:"no symbol:"+s,type:"debugfont",klass:"debug-msg",anchor:"start"},!1)}return e.paper.closeGroup()}return l=a.getYCorr(s),(c=n.isInGroup()?a.printSymbol(t,e.calcY(r+l),s,e.paper,{"data-name":o.name}):a.printSymbol(t,e.calcY(r+l),s,e.paper,{klass:o.klass,stroke:o.stroke,fill:o.fill,"data-name":o.name}))?c:(i(e,{x:t,y:e.y,text:"no symbol:"+s,type:"debugfont",klass:"debug-msg",anchor:"start"},!1),null)}},2435:function(e,t,r){var i=r(5759),a=r(3624),n=r(7865),s=r(4777);e.exports=function(e,t,r){void 0===t.pitch&&window.console.error(t.type+" Relative Element y-coordinate not set.");var o=e.calcY(t.pitch);switch(t.type){case"symbol":if(null===t.c)return null;var c="symbol";t.klass&&(c+=" "+t.klass),t.graphelem=s(e,t.x,t.pitch,t.c,{scalex:t.scalex,scaley:t.scaley,klass:e.controller.classes.generate(c),name:t.name});break;case"debug":t.graphelem=i(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 l="tabnumberfont",h="abcjs-tab-number";t.isGrace&&(l="tabgracefont",o+=2.5,h="tab-grace"),t.graphelem=i(e,{x:t.x,y:o,text:""+t.c,type:l,klass:e.controller.classes.generate(h),anchor:"middle",centerVertically:!1,dim:t.dim,cursor:"default"},!1);break;case"barNumber":t.graphelem=i(e,{x:t.x,y:o,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=i(e,{x:t.x,y:o,text:t.c,type:"vocalfont",klass:e.controller.classes.generate("lyric"),anchor:"middle",dim:t.dim,name:"lyric"},!1);break;case"chord":t.graphelem=i(e,{x:t.x,y:o,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=i(e,{x:t.x,y:o+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=i(e,{x:t.x,y:o,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=i(e,{x:t.x+t.w/2,y:o,text:t.c,type:"tempofont",klass:e.controller.classes.generate("rest"),anchor:"middle",centerVertically:!1,dim:t.dim},!1);break;case"part":t.graphelem=i(e,{x:t.x,y:o,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=a(e,t.x,t.linewidth+e.lineThickness,o,r||e.calcY(t.pitch2),null,"bar");break;case"stem":var d=t.linewidth>0?t.linewidth+e.lineThickness:t.linewidth-e.lineThickness;t.graphelem=a(e,t.x,d,o,e.calcY(t.pitch2),"abcjs-stem","stem");break;case"ledger":t.graphelem=n(e,t.x,t.x+t.w,t.pitch,"abcjs-ledger","ledger",.35+e.lineThickness)}return 1!==t.scalex&&t.graphelem&&function(e,t,r,i,a,n){e.setAttributeOnElement(t,{style:"transform:scale("+r+","+i+");transform-origin:"+a+"px "+n+"px;"})}(e.paper,t.graphelem,t.scalex,t.scaley,t.x,o),t.graphelem}},7199:function(e){e.exports=function(e){return parseFloat(e.toFixed(2))}},3524:function(e,t,r){var i=r(5741),a=r(5829);function n(e,t,r){this.elements=[],this.paper=e,this.tuneNumber=r,this.selectTypes=t}n.prototype.getElements=function(){return this.elements},n.prototype.add=function(e,t,r,i){if(this.canSelect(e)){var a;a=void 0===this.selectTypes?{selectable:!1,"data-index":this.elements.length}:{selectable:!0,tabindex:0,"data-index":this.elements.length},this.paper.setAttributeOnElement(t,a);var n={absEl:e,svgEl:t,isDraggable:r};void 0!==i&&(n.staffPos=i),this.elements.push(n)}},n.prototype.canSelect=function(e){return!(!1===this.selectTypes||!e||!e.abcelem||!0!==this.selectTypes&&!(void 0===this.selectTypes?"note"===e.abcelem.el_type||"tabNumber"===e.abcelem.el_type:this.selectTypes.indexOf(e.abcelem.el_type)>=0))},n.prototype.wrapSvgEl=function(e,t){var r={tuneNumber:this.tuneNumber,abcelem:e,elemset:[t],highlight:i,unhighlight:a};this.add(r,t,!1)},e.exports=n},4169:function(e){e.exports=function(e,t){var r=Math.round(e.y),i=(e.controller.width-t)/2,a=i+t,n="M "+i+" "+r+" L "+a+" "+r+" L "+a+" "+(r+1)+" L "+i+" "+(r+1)+" L "+i+" "+r+" z";e.paper.pathToBack({path:n,stroke:"rgba(0,0,0,0)",fill:"rgba(0,0,0,255)",class:e.controller.classes.generate("defined-text")})}},7611:function(e){e.exports=function(e,t,r,i){var a=(t+e.padding.left+e.padding.right)*r,n=(e.y+e.padding.bottom)*r;if(e.isPrint&&(n=Math.max(n,1056)),""!==e.ariaLabel){var s="Sheet Music";e.abctune&&e.abctune.metaText&&e.abctune.metaText.title&&(s+=' for "'+e.abctune.metaText.title+'"'),e.paper.setTitle(s);var o=e.ariaLabel?e.ariaLabel:s;e.paper.setAttribute("aria-label",o)}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 c={overflow:"hidden"};"resize"===i?e.paper.setResponsiveWidth(a,n):(c.width="",c.height=n+"px",r<1?(c.width=a+"px",e.paper.setSize(a/r,n/r)):e.paper.setSize(a,n)),e.paper.setScale(r),e.paper.setParentStyles(c)}},6764:function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(){for(var e,r,i,a,n,s=0,o=arguments[s++],c=[];o;){if(r=/^[^\x25]+/.exec(o))c.push(r[0]);else if(r=/^\x25{2}/.exec(o))c.push("%");else{if(!(r=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(o)))throw"Huh ?!";if(null==(e=arguments[r[1]||s++])||null==e)throw"Too few arguments.";if(/[^s]/.test(r[7])&&"number"!=typeof e)throw"Expecting number but found "+t(e);switch(r[7]){case"b":e=e.toString(2);break;case"c":e=String.fromCharCode(e);break;case"d":e=parseInt(e);break;case"e":e=r[6]?e.toExponential(r[6]):e.toExponential();break;case"f":e=r[6]?parseFloat(e).toFixed(r[6]):parseFloat(e);break;case"o":e=e.toString(8);break;case"s":e=(e=String(e))&&r[6]?e.substring(0,r[6]):e;break;case"u":e=Math.abs(e);break;case"x":e=e.toString(16);break;case"X":e=e.toString(16).toUpperCase()}e=/[def]/.test(r[7])&&r[2]&&e>0?"+"+e:e,a=r[3]?"0"==r[3]?"0":r[3][1]:" ",n=r[5]-String(e).length,i=r[5]?str_repeat(a,n):"",c.push(r[4]?e+i:i+e)}o=o.substring(r[0].length)}return c.join("")}},5537:function(e,t,r){var i=r(4331),a=r(129),n=r(3145),s=r(7641),o=r(1547),c=r(3624),l=r(5668);function h(e,t,r,n,s){if(r)for(var o=0;o<r.length;o++)r[o].isStartVoice(n)&&(r[o].startY=t-10*i.STEP,r[o].elemset=a(e,r[o],s))}function d(e,t,r){for(var a=0;a<r.length;a++)for(var n=t[r[a]].children,s=0;s<n.length;s++){var c=n[s],l=c.getFixedCoords();if(!c.invisible&&void 0!==l.t&&void 0!==l.b){var h=(l.t-l.b)*i.STEP;o(e,{x:l.x,y:e.calcY(l.t),width:l.w,height:h,fill:"#88e888","fill-opacity":.4,stroke:"#4aa93d","stroke-opacity":.8});for(var d=0;d<c.children.length;d++){var u=c.children[d],f=u.getChordDim();if(f){var p=e.calcY(u.pitch);p+=u.dim.font.size*u.getLane(),o(e,{x:f.left,y:p,width:f.right-f.left,height:u.dim.font.size,fill:"none",stroke:"#4aa93d","stroke-opacity":.8})}}}}}e.exports=function(e,t,r,a){for(var u,f,p,m=e.y,g=0;g<t.staffs.length;g++){var v=t.staffs[g];e.moveY(i.STEP,v.top),v.absoluteY=e.y,e.showDebug&&(e.showDebug.indexOf("box")>=0&&v.voices&&d(e,t.voices,v.voices),e.showDebug.indexOf("grid")>=0&&(e.paper.dottedLine({x1:e.padding.left,x2:e.padding.left+e.controller.width,y1:m,y2:m,stroke:"#0000ff"}),o(e,{x:e.padding.left,y:e.calcY(v.originalTop),width:e.controller.width,height:e.calcY(v.originalBottom)-e.calcY(v.originalTop),fill:e.foregroundColor,stroke:e.foregroundColor,"fill-opacity":.1,"stroke-opacity":.1}),u=0,E(v,"chordHeightAbove"),E(v,"chordHeightBelow"),E(v,"dynamicHeightAbove"),E(v,"dynamicHeightBelow"),E(v,"endingHeightAbove"),E(v,"lyricHeightAbove"),E(v,"lyricHeightBelow"),E(v,"partHeightAbove"),E(v,"tempoHeightAbove"),E(v,"volumeHeightAbove"),E(v,"volumeHeightBelow"))),e.moveY(i.STEP,-v.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 b=2,y=0,x=0;x<t.voices.length;x++){var k=t.voices[x].staff,w=t.voices[x].tabNameInfos;if(e.y=k.absoluteY,e.controller.classes.incrVoice(),!t.voices[x].duplicate){if(f||(f=e.calcY(10)),p=e.calcY(b),0!==k.lines){k.linePitch&&(b=k.linePitch),e.controller.classes.newMeasure();var T=s(e,t.startx,t.w,k.lines,k.linePitch,.35);p=T[1],k.bottomLine=p,k.topLine=T[0],k.hasTab&&(y=k.topLine),k.hasStaff&&(y=k.hasStaff.topLine,t.voices[x].barto=!0,t.voices[x].topLine=f)}h(e,k.absoluteY,t.brace,x,r),h(e,k.absoluteY,t.bracket,x,r)}n(e,t.voices[x],y,r,{top:m,zero:e.y,height:t.height*i.STEP});var C=0;if(w){var S={rows:[]};S.rows.push({absmove:p+2}),S.rows.push({left:t.startx+8,text:w.name,font:"tablabelfont",klass:"text instrument-name",anchor:"start"}),S.rows.push({move:w.textSize.height}),l(e,S),C=w.textSize.height}e.controller.classes.newMeasure(),t.voices[x].duplicate||(y=e.calcY(2+C))}e.controller.classes.newMeasure();var N=t.staffs.length;function E(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 n=t.specialY[r]*i.STEP;"chordHeightAbove"===r&&t.specialY.chordLines&&t.specialY.chordLines.above&&(n*=t.specialY.chordLines.above),"chordHeightBelow"===r&&t.specialY.chordLines&&t.specialY.chordLines.below&&(n*=t.specialY.chordLines.below),o(e,{x:e.padding.left,y:e.calcY(t.positionY[r]),width:e.controller.width,height:n,fill:a[u],stroke:a[u],"fill-opacity":.4,"stroke-opacity":.4},r.substr(0,4)),(u+=1)>6&&(u=0)}}N>1&&(f=t.staffs[0].topLine,p=t.staffs[N-1].bottomLine,c(e,t.startx,.6,f,p,null)),e.y=m}},7865:function(e,t,r){var i=r(6637);e.exports=function(e,t,r,a,n,s,o){var c=e.calcY(a);return i(e,t,r,c,n,s,o)}},7641:function(e,t,r){var i=r(7865);e.exports=function(e,t,r,a,n,s){var o="abcjs-top-line",c=2;n&&(c=n),e.paper.openGroup({prepend:!0,klass:e.controller.classes.generate("abcjs-staff")});var l=0,h=0;if(1===a)i(e,t,r,6,o,null,s+e.lineThickness),l=e.calcY(10),h=e.calcY(2);else for(var d=a-1;d>=0;d--){var u=(d+1)*c;h=e.calcY(u),0===l&&(l=h),i(e,t,r,u,o,null,s+e.lineThickness),o=void 0}return e.paper.closeGroup(),[l,h]}},3987:function(e,t,r){var i=r(2435),a=r(5759);e.exports=function(e,t){var r=t.x;void 0===t.pitch&&window.console.error("Tempo Element y-coordinate not set."),t.tempo.el_type="tempo";var n,s=e.calcY(t.pitch)+2;if(t.tempo.preString){n=a(e,{x:r,y:s,text:t.tempo.preString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"pre"},!0);var o=e.controller.getTextSize.calc(t.tempo.preString,"tempofont","tempo",n).width;r+=o+o/t.tempo.preString.length}if(t.note){t.note.setX(r);for(var c=0;c<t.note.children.length;c++)i(e,t.note.children[c],r);r+=t.note.w+5;var l="= "+t.tempo.bpm;n=a(e,{x:r,y:s,text:l,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"beats"});var h=e.controller.getTextSize.calc(l,"tempofont","tempo",n).width;r+=h+h/l.length}t.tempo.postString&&a(e,{x:r,y:s,text:t.tempo.postString,type:"tempofont",klass:"abcjs-tempo",anchor:"start",noClass:!0,name:"post"},!0)}},5759:function(e,t,r){var i=r(7199);e.exports=function(e,t,r){var a,n=t.y;if(t.phrases)return c=e.paper.richTextLine(t.phrases,t.x,t.y,t.klass,t.anchor);if(t.lane){var s=.25*t.dim.font.size;n+=(t.dim.font.size+s)*t.lane}t.dim?(a=t.dim).attr.class=t.klass:a=e.controller.getFontAndAttr.calc(t.type,t.klass),t.anchor&&(a.attr["text-anchor"]=t.anchor),t["dominant-baseline"]&&(a.attr["dominant-baseline"]=t["dominant-baseline"]),a.attr.x=t.x,a.attr.y=n,t.centerVertically||(a.attr.y+=a.font.size),"debugfont"===t.type&&(console.log("Debug msg: "+t.text),a.attr.stroke="#ff0000"),t.cursor&&(a.attr.cursor=t.cursor);var o=t.text.replace(/\n\n/g,"\n \n");o=o.replace(/^\n/," \n"),a.font.box&&(r||e.paper.openGroup({klass:a.attr.class,fill:e.foregroundColor,"data-name":t.name}),"end"===a.attr["text-anchor"]?a.attr.x-=a.font.padding:"start"===a.attr["text-anchor"]&&(a.attr.x+=a.font.padding),a.attr.y+=a.font.padding,delete a.attr.class),t.noClass&&delete a.attr.class,a.attr.x=i(a.attr.x),a.attr.y=i(a.attr.y),t.name&&(a.attr["data-name"]=t.name);var c=e.paper.text(o,a.attr);if(a.font.box){var l=c.getBBox(),h=0;"middle"===a.attr["text-anchor"]?h=l.width/2+a.font.padding:"end"===a.attr["text-anchor"]&&(h=l.width+2*a.font.padding);var d=0;t.centerVertically&&(d=l.height-a.font.padding),e.paper.rect({"data-name":"box",x:Math.round(t.x-h),y:Math.round(n-d),width:Math.round(l.width+2*a.font.padding),height:Math.round(l.height+2*a.font.padding)}),r||(c=e.paper.closeGroup())}return c}},3272:function(e,t,r){var i=r(6764),a=r(7199),n=function(e,t,r){e.anchor1&&e.anchor2?e.anchor1.pitch===e.anchor2.pitch&&0===e.internalNotes.length?e.isTie=!0:e.isTie=!1:e.isTie=!0,e.isTie?(e.calcTieDirection(),e.calcX(t,r),e.calcTieY()):(e.calcSlurDirection(),e.calcX(t,r),e.calcSlurY()),e.avoidCollisionAbove()},s=function(e,t,r,n,s,o,c,l,h){var d=l?1.2:1.5;t=a(t+6),r=a(r+4),n+=o?d:-d,s+=o?d:-d;var u,f=a(e.calcY(n)),p=a(e.calcY(s)),m=r-t,g=p-f,v=Math.sqrt(m*m+g*g),b=m/v,y=g/v,x=v/3.5,k=l?10:25,w=(o?-1:1)*Math.min(k,Math.max(4,x)),T=a(t+x*b-w*y),C=a(f+x*y+w*b),S=a(r-x*b-w*y),N=a(p-x*y+w*b);if(c?c+=" slur":c="slur",c+=l?" tie":" legato",h){c+=" dotted";var E=i("M %f %f C %f %f %f %f %f %f",t,f,T,C,S,N,r,p);u=e.paper.path({path:E,stroke:e.foregroundColor,fill:"none","stroke-dasharray":"5 5",class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}else{var _=i("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,f,T,C,S,N,r,p,a(S-2*y),a(N+2*b),a(T-2*y),a(C+2*b),t,f);u=e.paper.path({path:_,stroke:"none",fill:e.foregroundColor,class:e.controller.classes.generate(c),"data-name":l?"tie":"slur"})}return u};e.exports=function(e,t,r,i,a){n(t,r,i);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=s(e,t.startX,t.endX,t.startY+c,t.endY+c,t.above,o,t.isTie,t.dotted),h=-1;t.anchor1&&!t.isTie&&(h=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:h,endChar:d},l),[l]}},4322:function(e,t,r){var i=r(6764),a=r(5759),n=r(6454),s=r(7199);function o(e,t,r,a){return i("M %f %f L %f %f",s(e),s(t),s(r),s(a))}e.exports=function(e,t,r){e.paper.openGroup({klass:e.controller.classes.generate("triplet "+t.durationClass),"data-name":"triplet"}),t.hasBeam||function(e,t,r,i,a){r=e.calcY(r),a=e.calcY(a);var s=5,c="";c+=o(t,r,t,r+s),c+=o(i,a,i,a+s);var l=t+(i-t)/2,h=8,d=(a-r)/(i-t),u=l-h;c+=o(t,r,u,r+(u-t)*d);var f=l+h;c+=o(f,r+(f-t)*d,i,a),n(e,{path:c,stroke:e.foregroundColor,"data-name":"triplet-bracket"})}(e,t.anchor1.x,t.startNote,t.anchor2.x+t.anchor2.w,t.endNote),a(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 i=e.paper.closeGroup();return r.wrapSvgEl({el_type:"triplet",startChar:-1,endChar:-1},i),i}},3145:function(e,t,r){var i=r(9045),a=r(3245),n=r(9879),s=r(4322),o=r(5947),c=r(3272),l=r(7489),h=r(5759),d=r(4750);e.exports=function(e,t,r,u,f){var p=t.w-1;e.staffbottom=t.staff.bottom;var m,g,v=e.foregroundColor;if(t.color&&(e.foregroundColor=t.color),t.header){var b=h(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);u.wrapSvgEl({el_type:"voiceName",startChar:-1,endChar:-1,text:t.header},b)}var y,x=!1;for(m=0;m<t.children.length;m++){"note"!==(g=t.children[m]).type&&"rest"!==g.type||(x=!0);var k=!1;"staff-extra"===g.type||e.controller.classes.isInMeasure()||(e.controller.classes.startMeasure(),k=!0),t.staff.isTabStaff&&(g.invisible=!1,"bar"==g.type&&g.abcelem.lastBar&&(r=t.topLine)),d(e,g,t.barto||m===t.children.length-1?r:0,u,f),("note"===g.type||"rest"===(y=g).type&&!(!y.abcelem||!y.abcelem.rest||"spacer"===y.abcelem.rest.type))&&e.controller.classes.incrNote(),"bar"===g.type&&!k&&x&&e.controller.classes.incrMeasure()}for(e.controller.classes.startMeasure(),m=0;m<t.beams.length;m++){var w=t.beams[m];"bar"===w?e.controller.classes.incrMeasure():l(e,w,u)}for(e.controller.classes.startMeasure(),m=0;m<t.otherchildren.length;m++)if("bar"===(g=t.otherchildren[m]))e.controller.classes.incrMeasure();else switch(g.type){case"GlissandoElem":g.elemset=i(e,g,u);break;case"CrescendoElem":g.elemset=a(e,g,u);break;case"DynamicDecoration":g.elemset=n(e,g,u);break;case"TripletElem":s(e,g,u);break;case"EndingElem":g.elemset=o(e,g,t.startx+10,p,u);break;case"TieElem":g.elemset=c(e,g,t.startx+10,p,u);break;default:console.log(g),d(e,g,t.startx+10,p,u,f)}e.foregroundColor=v}},5253:function(e,t,r){var i=r(4331),a=r(1897),n=r(8510),s=r(3736),o=r(5588),c=r(4726),l=r(1134),h=r(9316),d=r(8068),u=r(1564),f=r(1954),p=r(1328),m=r(9799),g=r(5012),v=r(4321),b=r(3051),y=function(e,t){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*i.SPACE,this.initialClef=t.initialClef,this.timeBasedLayout=t.timeBasedLayout,this.expandToWidest=!!t.expandToWidest,this.scale=t.scale?parseFloat(t.scale):0,this.classes=new f({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 n(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",void 0!==t.ariaLabel&&(this.renderer.ariaLabel=t.ariaLabel),this.renderer.minPadding=t.minPadding?t.minPadding:0,this.reset()};function x(e){for(var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=0;r<e.attributes.length;r++){var i=e.attributes[r];"height"!==i.name&&"aria-label"!=i.name&&t.setAttribute(i.name,i.value)}return t}y.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)},y.prototype.engraveABC=function(e,t,r){void 0===e[0]&&(e=[e]),this.reset();for(var i=0;i<e.length;i++)void 0===t&&(t=i),this.getFontAndAttr=new p(e[i].formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper),this.engraveTune(e[i],t,r)},y.prototype.adjustNonScaledItems=function(e){this.width/=e,this.renderer.adjustNonScaledItems(e)},y.prototype.getMeasureWidths=function(e){this.reset(),this.getFontAndAttr=new p(e.formatting,this.classes),this.getTextSize=new m(this.getFontAndAttr,this.renderer.paper);var t=this.jazzchords;this.setupTune(e,0),this.constructTuneElements(e),u(this.renderer,e,0,this.space,this.timeBasedLayout);for(var r,i=[],a=!0,n=0;n<e.lines.length;n++){var s=e.lines[n];if(s.staff){if(a&&(r={left:0,measureWidths:[],total:0},i.push(r),a=!1),s.staffGroup.voices.length>0)for(var o=s.staffGroup.voices[0],c=!1,l=0,h=0;h<o.children.length;h++){var d=o.children[h];c||d.isClef||d.isKeySig||(c=!0,r.left=d.x,l=d.x),"bar"===d.type&&(r.measureWidths.push(d.x-l),r.total+=d.x-l,l=d.x)}}else a=!0}return this.jazzchords=t,i},y.prototype.setupTune=function(e,t){this.classes.reset(),void 0!==e.formatting.jazzchords&&(this.jazzchords=e.formatting.jazzchords),void 0!==e.formatting.accentAbove&&(this.accentAbove=e.formatting.accentAbove),this.renderer.newTune(e),this.engraver=new a(this.getTextSize,t,{bagpipes:e.formatting.bagpipes,flatbeams:e.formatting.flatbeams,graceSlurs:!1!==e.formatting.graceSlurs,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=1.33*e.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var r=e.formatting.scale?e.formatting.scale:this.scale;return"resize"===this.responsive&&(r=void 0),void 0===r&&(r=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(r),r},y.prototype.constructTuneElements=function(e){var t,r;e.topText=new l(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 i=!1,a=!1;for(t=0;t<e.lines.length;t++)if((r=e.lines[t]).staff)a=!0,r.staffGroup=this.engraver.createABCLine(r.staff,i?null:e.metaText.tempo,t),i=!0;else if(r.subtitle){if(a){var n=this.width/2+this.renderer.padding.left;r.nonMusic=new c(this.renderer.spacing.subtitle,e.formatting,r.subtitle,n,this.renderer.padding.left,this.getTextSize)}}else void 0!==r.text?(a=!0,r.nonMusic=new s(r.text,r.vskip,this.getFontAndAttr,this.renderer.padding.left,this.width,this.getTextSize)):void 0!==r.separator&&r.separator.lineLength&&(a=!0,r.nonMusic=new o(r.separator.spaceAbove,r.separator.lineLength,r.separator.spaceBelow));e.bottomText=new h(e.metaText,this.width,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize)},y.prototype.engraveTune=function(e,t,r){var i=this.jazzchords,a=this.setupTune(e,t);this.constructTuneElements(e);var n=u(this.renderer,e,this.width,this.space,this.expandToWidest,this.timeBasedLayout);if(this.expandToWidest&&n>this.width+1&&(e.topText=new l(e.metaText,e.metaTextInfo,e.formatting,e.lines,n,this.renderer.isPrint,this.renderer.padding.left,this.renderer.spacing,this.classes.shouldAddClasses,this.getTextSize),e.lines&&e.lines.length>0))for(var s=e.lines.length,o=0;o<s;++o){var c=e.lines[o];if(c.nonMusic&&c.nonMusic.rows&&c.nonMusic.rows.length>0)for(var h=c.nonMusic.rows.length,f=0;f<h;++f){var p=c.nonMusic.rows[f];p.left&&(c.subtitle||c.text&&c.text.length>0&&c.text[0].center)&&(p.left=n/2+this.renderer.padding.left)}}e.tablatures&&v.layoutTablatures(this.renderer,e);var m=g(this.renderer,this.classes,e,this.width,n,this.responsive,a,this.selectTypes,t,r);if(this.staffgroups=m.staffgroups,this.selectables=m.selectables,this.oneSvgPerLine){var b=this.renderer.paper.svg.parentNode;this.svgs=function(e,t,r,i,a){r||(r="Untitled");var n=t.querySelector("svg");"resize"===i&&(t.style.paddingBottom="");for(var s=n.querySelector("style"),o="resize"===i?n.viewBox.baseVal.width:n.getAttribute("width"),c=t.querySelectorAll("svg > g"),l=0,h=[],d=0;d<c.length;d++){var u=c[d],f=u.getBBox(),p=f.y-l,m=f.height+p,g=document.createElement("div"),v="overflow: hidden;";"resize"!==i&&(v+="height:"+m*a+"px;"),g.setAttribute("style",v);var b=x(n),y='Sheet Music for "'+r+'" section '+(d+1);b.setAttribute("aria-label",y),"resize"!==i&&b.setAttribute("height",m),"resize"===i&&(b.style.position="");var k=e.firefox112?m+1:m;b.setAttribute("viewBox","0 "+l+" "+o+" "+k),b.appendChild(s.cloneNode(!0));var w=document.createElement("title");w.innerText=y,b.appendChild(w),b.appendChild(u),g.appendChild(b),h.push(b),t.appendChild(g),l=f.y+f.height}return t.removeChild(n),h}(this.renderer,b,e.metaText.title,this.responsive,a)}else this.svgs=[this.renderer.paper.svg];d(this,this.svgs),this.jazzchords=i},y.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},y.prototype.addSelectListener=function(e){this.listeners[this.listeners.length]=e},e.exports=y},1954:function(e){var t=function(e){this.shouldAddClasses=e.shouldAddClasses,this.reset()};t.prototype.reset=function(){this.lineNumber=null,this.voiceNumber=null,this.measureNumber=null,this.measureTotalPerLine=[],this.noteNumber=null},t.prototype.incrLine=function(){null===this.lineNumber?this.lineNumber=0:this.lineNumber++,this.voiceNumber=null,this.measureNumber=null,this.noteNumber=null},t.prototype.incrVoice=function(){null===this.voiceNumber?this.voiceNumber=0:this.voiceNumber++,this.measureNumber=null,this.noteNumber=null},t.prototype.isInMeasure=function(){return null!==this.measureNumber},t.prototype.newMeasure=function(){this.measureNumber&&(this.measureTotalPerLine[this.lineNumber]=this.measureNumber),this.measureNumber=null,this.noteNumber=null},t.prototype.startMeasure=function(){this.measureNumber=0,this.noteNumber=0},t.prototype.incrMeasure=function(){this.measureNumber++,this.noteNumber=0},t.prototype.incrNote=function(){this.noteNumber++},t.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},t.prototype.getCurrent=function(e){return{line:this.lineNumber,measure:this.measureNumber,measureTotal:this.measureTotal(),voice:this.voiceNumber,note:this.noteNumber}},t.prototype.generate=function(e){if(!this.shouldAddClasses)return"";var t=[];if(e&&e.length>0&&t.push(e),"abcjs-tab-number"===e)return t.join(" ");if("text instrument-name"===e)return"abcjs-text abcjs-instrument-name";if(null!==this.lineNumber&&t.push("l"+this.lineNumber),null!==this.measureNumber&&t.push("m"+this.measureNumber),null!==this.measureNumber&&t.push("mm"+this.measureTotal()),null!==this.voiceNumber&&t.push("v"+this.voiceNumber),e&&(e.indexOf("note")>=0||e.indexOf("rest")>=0||e.indexOf("lyric")>=0)&&null!==this.noteNumber&&t.push("n"+this.noteNumber),t.length>0){t=(t=t.join(" ")).split(" ");for(var r=0;r<t.length;r++)0!==t[r].indexOf("abcjs-")&&t[r].length>0&&(t[r]="abcjs-"+t[r])}return t.join(" ")},e.exports=t},1328:function(e){var t=function(e,t){this.formatting=e,this.classes=t};t.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)},t.prototype.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t){var r;r="string"==typeof e?(r=this.formatting[e])?{face:r.face,size:Math.round(4*r.size/3),decoration:r.decoration,style:r.style,weight:r.weight,box:r.box}:{face:"Arial",size:Math.round(16),decoration:"underline",style:"normal",weight:"normal"}:{face:e.face,size:Math.round(4*e.size/3),decoration:e.decoration,style:e.style,weight:e.weight,box:e.box};var i=this.formatting.fontboxpadding?this.formatting.fontboxpadding:.1;return r.padding=r.size*i,{font:r,attr:{"font-size":r.size,"font-style":r.style,"font-family":this.getFamily(r.face),"font-weight":r.weight,"text-decoration":r.decoration,class:this.classes.generate(t)}}},e.exports=t},9799:function(e){var t=function(e,t){this.getFontAndAttr=e,this.svg=t};t.prototype.updateFonts=function(e){this.getFontAndAttr.updateFonts(e)},t.prototype.attr=function(e,t){return this.getFontAndAttr.calc(e,t)},t.prototype.getFamily=function(e){return'"'===e[0]&&'"'===e[e.length-1]?e.substring(1,e.length-1):e},t.prototype.calc=function(e,t,r,i){var a;a="string"==typeof t?this.attr(t,r):{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(r)}};var n=this.svg.getTextSize(e,a.attr,i);return a.font.box?{height:n.height+4*a.font.padding,width:n.width+4*a.font.padding}:n},t.prototype.baselineToCenter=function(e,t,r,i,a){return.5*this.calc(e,t,r).height+(a-i-2)*this.attr(t,r).font.size},e.exports=t},2187:function(e){e.exports=function(e,t,r,i){if(e)for(var a=0;a<e.length;a++){var n=e[a],s=n.getAttribute("highlight");s||(s="fill"),n.setAttribute(s,i);var o=n.getAttribute("class");o||(o=""),o=(o=o.replace(r,"")).replace(t,""),t.length>0&&(o.length>0&&" "!==o[o.length-1]&&(o+=" "),o+=t),n.setAttribute("class",o)}}},4331:function(e){var t={FONTEM:360,FONTSIZE:30};t.STEP=93*t.FONTSIZE/720,t.SPACE=10,t.TOPNOTE=15,t.STAVEHEIGHT=100,t.INDENT=50,e.exports=t},8123:function(e){function t(e,t,r,i){if(0===e.indexOf(t)){var a=e.replace(t,""),n=parseInt(a,10);""+n===a&&(r[i]=n)}}e.exports=function(e,r){var i=[];if(e.absEl.elemset){for(var a={},n=0;n<e.absEl.elemset.length;n++){var s=e.absEl.elemset[n];if(s)for(var o=s.getAttribute("class").split(" "),c=0;c<o.length;c++)a[o[c]]=!0}for(var l=0;l<Object.keys(a).length;l++)i.push(Object.keys(a)[l])}for(var h={},d=0;d<i.length;d++)t(i[d],"abcjs-v",h,"voice"),t(i[d],"abcjs-l",h,"line"),t(i[d],"abcjs-m",h,"measure");e.staffPos&&(h.staffPos=e.staffPos);for(var u=r.target;u&&u.dataset&&!u.dataset.name&&"svg"!==u.tagName.toLowerCase();)u=u.parentNode;for(var f=r.target;f&&f.dataset&&!f.dataset.index&&"svg"!==f.tagName.toLowerCase();)f=f.parentNode;return f&&f.dataset&&(h.name=f.dataset.name,h.clickedName=u.dataset.name,h.parentClasses=f.classList),u&&u.classList&&(h.clickedClasses=u.classList),h.selectableElement=e.svgEl,{classes:i,analysis:h}}},3051:function(e,t,r){var i=r(8123);e.exports=function(e){for(var t=e;t&&t.attributes&&"svg"!==t.tagName.toLowerCase()&&!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))>=0&&r<this.selectables.length){var a=this.selectables[r],n=i(a,e);return n.index=r,n.element=a,n}}return null}},5741:function(e,t,r){var i=r(2187);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#ff0000"),i(this.elemset,e,"",t)}},8068:function(e,t,r){var i=r(4331),a=r(8123);function n(e){"keyboard"===this.dragMechanism&&0!==this.dragYStep&&this.dragTarget&&p.bind(this)(this.dragTarget,this.dragYStep,this.selectables.length,this.dragIndex,e),this.dragYStep=0}function s(e){switch(e.keyCode){case 38:case 40:e.preventDefault()}}function o(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",u.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*i.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*i.STEP+")"));break;case 9:0!==this.dragYStep&&u.bind(this)(e)}t&&e.preventDefault()}function c(e,t){var r,i,a,n=function(e,t){if(!t)return-1;for(var r=0;r<e.length;r++)if(t.dataset.index===e[r].svgEl.dataset.index)return r;return-1}(e.selectables,function(e){if(!e)return null;if("svg"===e.tagName)return e;if(!e.getAttribute)return null;for(var t=e.getAttribute("selectable");!t;)t=!e.parentElement||"svg"===(e=e.parentElement).tagName||e.getAttribute("selectable");return e}(t.target));return n>=0?(a=function(e,t,r){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/r-t.offsetY)<3?[t.offsetX,t.offsetY]:[t.layerX,t.layerY]}(e.selectables[n].svgEl.getBBox(),t,e.scale),r=a[0],i=a[1]):(a=function(e){var t,r,i=1,a=1,n=e.target.closest("svg"),s=0;return n&&n.viewBox&&n.viewBox.baseVal&&(0!==n.viewBox.baseVal.width&&(i=n.viewBox.baseVal.width/n.clientWidth),0!==n.viewBox.baseVal.height&&(a=n.viewBox.baseVal.height/n.clientHeight),s=n.viewBox.baseVal.y),e.target&&"svg"===e.target.tagName?(t=e.offsetX,r=e.offsetY):(t=e.layerX,r=e.layerY),[t*=i,(r*=a)+s]}(t),n=function(e,t,r){for(var i=9999999,a=-1,n=0;n<e.selectables.length&&i>0;n++){var s=e.selectables[n];if(e.getDim(s),s.dim.left<t&&s.dim.right>t&&s.dim.top<r&&s.dim.bottom>r)a=n,i=0;else if(s.dim.top<r&&s.dim.bottom>r){var o=Math.min(Math.abs(s.dim.left-t),Math.abs(s.dim.right-t));o<i&&(i=o,a=n)}else if(s.dim.left<t&&s.dim.right>t){var c=Math.min(Math.abs(s.dim.top-r),Math.abs(s.dim.bottom-r));c<i&&(i=c,a=n)}else{var l=Math.abs(t-s.dim.left)>Math.abs(t-s.dim.right)?Math.abs(t-s.dim.right):Math.abs(t-s.dim.left),h=Math.abs(r-s.dim.top)>Math.abs(r-s.dim.bottom)?Math.abs(r-s.dim.bottom):Math.abs(r-s.dim.top),d=Math.sqrt(l*l+h*h);d<i&&(i=d,a=n)}}return a>=0&&i<=12?a:-1}(e,r=a[0],i=a[1])),{x:r,y:i,clickedOn:n}}function l(e){if(e&&e.target&&e.touches&&!(e.touches.length<1)){var t=e.target.getBoundingClientRect(),r=e.touches[0].pageX-t.left,i=e.touches[0].pageY-t.top;e.touches[0].offsetX=r,e.touches[0].offsetY=i,e.touches[0].layerX=e.touches[0].pageX,e.touches[0].layerY=e.touches[0].pageY}}function h(e){var t=e;"touchstart"===e.type&&(l(e),e.touches.length>0&&(t=e.touches[0]));var r=c(this,t);r.clickedOn>=0&&("touchstart"===e.type||0===e.button)&&this.selectables[r.clickedOn]&&(this.dragTarget=this.selectables[r.clickedOn],this.dragIndex=r.clickedOn,this.dragMechanism="mouse",this.dragMouseStart={x:r.x,y:r.y},this.dragging&&this.dragTarget.isDraggable&&(function(e,t){if(e){var r=v(e.svg);r[t]=!0,b(e.svg,r)}}(this.renderer.paper,"abcjs-dragging-in-progress"),this.dragTarget.absEl.highlight(void 0,this.dragColor)))}function d(e){var t=e;if("touchmove"===e.type&&(l(e),e.touches.length>0&&(t=e.touches[0])),this.lastTouchMove=e,this.dragTarget&&this.dragging&&this.dragTarget.isDraggable&&"mouse"===this.dragMechanism&&this.dragMouseStart){var r=c(this,t),a=Math.round((r.y-this.dragMouseStart.y)/i.STEP);a!==this.dragYStep&&(this.dragYStep=a,this.dragTarget.svgEl.setAttribute("transform","translate(0,"+a*i.STEP+")"))}}function u(e){var t=e;"touchend"===e.type&&this.lastTouchMove&&(l(this.lastTouchMove),this.lastTouchMove&&this.lastTouchMove.touches&&this.lastTouchMove.touches.length>0&&(t=this.lastTouchMove.touches[0])),this.dragTarget&&(m.bind(this)(),this.dragTarget.absEl&&this.dragTarget.absEl.highlight&&(this.selected=[this.dragTarget.absEl],this.dragTarget.absEl.highlight(void 0,this.selectionColor)),p.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),function(e,t){if(e){var r=v(e.svg);delete r[t],b(e.svg,r)}}(this.renderer.svg,"abcjs-dragging-in-progress"))}function f(e){e>=0&&e<this.selectables.length&&(this.dragTarget=this.selectables[e],this.dragIndex=e,this.dragMechanism="keyboard",u.bind(this)({target:this.dragTarget.svgEl}))}function p(e,t,r,i,n){for(var s=a(e,n),o=s.classes,c=s.analysis,l=0;l<this.listeners.length;l++)this.listeners[l](e.absEl.abcelem,e.absEl.tuneNumber,o.join(" "),c,{step:t,max:r,index:i,setSelection:f.bind(this)},n)}function m(){for(var e=0;e<this.selected.length;e++)this.selected[e].unhighlight(void 0,this.renderer.foregroundColor);this.selected=[]}function g(e,t){m.bind(this)();for(var r=0;r<this.staffgroups.length;r++)for(var i=this.staffgroups[r].voices,a=0;a<i.length;a++)for(var n=i[a].children,s=0;s<n.length;s++){var o=n[s].abcelem.startChar,c=n[s].abcelem.endChar;(t>o&&e<c||t===e&&t===c)&&(this.selected[this.selected.length]=n[s],n[s].highlight(void 0,this.selectionColor))}}function v(e){var t=e.getAttribute("class");t||(t="");for(var r=t.split(" "),i={},a=0;a<r.length;a++)i[r[a]]=!0;return i}function b(e,t){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(i);e.setAttribute("class",r.join(" "))}e.exports=function(e,t){if(e.rangeHighlight=g,e.dragging)for(var r=0;r<e.selectables.length;r++){var i=e.selectables[r];"true"===i.svgEl.getAttribute("selectable")&&(i.svgEl.setAttribute("tabindex",0),i.svgEl.setAttribute("data-index",r),i.svgEl.addEventListener("keydown",s.bind(e)),i.svgEl.addEventListener("keyup",o.bind(e)),i.svgEl.addEventListener("focus",n.bind(e)))}for(var a=0;a<t.length;a++)t[a].addEventListener("touchstart",h.bind(e),{passive:!0}),t[a].addEventListener("touchmove",d.bind(e),{passive:!0}),t[a].addEventListener("touchend",u.bind(e),{passive:!0}),t[a].addEventListener("mousedown",h.bind(e)),t[a].addEventListener("mousemove",d.bind(e)),t[a].addEventListener("mouseup",u.bind(e))}},5829:function(e,t,r){var i=r(2187);e.exports=function(e,t){void 0===e&&(e="abcjs-note_selected"),void 0===t&&(t="#000000"),i(this.elemset,"",e,t)}},6251:function(e,t,r){var i=r(6658),a=r(4331),n=r(3721),s=function(e){return void 0===e?0:Math.floor(Math.log(e)/Math.log(2))};function o(e,t,r,i){if(!e.children)return i;for(var a=0;a<e.children.length;a++){var n=e.children[a];t&&void 0!==n.top&&"flags.ugrace"===n.c?i=Math.max(i,n.top-r):t||void 0===n.bottom||"flags.ugrace"!==n.c||(i=Math.max(i,r-n.bottom+7))}return i}function c(e,t,r){var i=t.heads[e?0:t.heads.length-1],a=r.heads[e?0:r.heads.length-1],n=i.x;e&&(n+=i.w-.6);var s=a.x;return[n,s+=e?a.w:.6]}e.exports=function(e){if(0!==e.elems.length&&!e.allrests){var t=function(e,t){var r=e?a.STEP:-a.STEP;return t&&(r*=.4),r}(e.stemsUp,e.isgrace),r=e.elems[0],l=e.elems[e.elems.length-1],h=0,d=e.stemsUp?r.abcelem.maxpitch:r.abcelem.minpitch;h=o(r,e.stemsUp,d,h),h=o(l,e.stemsUp,d,h),h=Math.max(e.stemHeight,h+3);var u=(g=e.average,v=e.elems.length,b=h,y=e.stemsUp,x=r.abcelem.averagepitch,k=l.abcelem.averagepitch,w=e.isflat,T=e.min,C=e.max,S=e.isgrace,N=b-2,E=b-2,_=Math.round(y?Math.max(g+N,C+E):Math.min(g-N,T-E)),M=function(e,t,r,i){if(i)return 0;var a=e-t,n=r/2;return a>n&&(a=n),a<-n&&(a=-n),a}(x,k,v,w),A=_+Math.floor(M/2),B=_+Math.floor(-M/2),S||(y&&_<6||!y&&_>6)&&(A=6,B=6),[A,B]),f=c(e.stemsUp,r,l);e.addBeam({startX:f[0],endX:f[1],startY:u[0],endY:u[1],dy:t});for(var p=function(e,t,r,i,a){for(var o=[],l=[],h=0;h<e.length;h++){var d=e[h];if(!d.abcelem.rest){var u=d.heads[t?0:d.heads.length-1],f=u.x+(t?u.w:0),p=n(r.startX,r.startY,r.endX,r.endY,f),m=t?-1.5:1.5;i&&(m=2*m/3);var g=d.abcelem.duration;0===g&&(g=.25);for(var v=s(g);v<-3;v++){var b=-4-v;if(l[b]?l[b].single=!1:l[b]={x:f+(t?-.6:0),y:p+m*(b+1),durlog:v,single:!0},h>0&&d.abcelem.beambr&&d.abcelem.beambr<=b+1){l[b].split||(l[b].split=[l[b].x]);var y=c(t,e[h-1],d);l[b].split[l[b].split.length-1]>=y[0]&&(y[0]+=d.w),l[b].split.push(y[0]),l[b].split.push(y[1])}}for(var x=l.length-1;x>=0;x--)if(h===e.length-1||s(e[h+1].abcelem.duration)>-x-4){var k=f,w=p+m*(x+1);l[x].single&&(k=0===h?f+5:f-5,w=n(r.startX,r.startY,r.endX,r.endY,k)+m*(x+1));var T={startX:l[x].x,endX:k,startY:l[x].y,endY:w,dy:a};if(void 0!==l[x].split){var C=l[x].split;T.endX<=C[C.length-1]&&(C[C.length-1]-=d.w),C.push(T.endX),T.split=l[x].split}o.push(T),l=l.slice(0,x)}}}return o}(e.elems,e.stemsUp,e.beams[0],e.isgrace,t),m=0;m<p.length;m++)e.addBeam(p[m]);!function(e,t,r,s,o){for(var c=0;c<e.length;c++){var l=e[c];if(!l.abcelem.rest){var h=!l.addExtra,d=h?o:l,u=l.heads[t?0:l.heads.length-1],f=.2,p=u.pitch+(t?f:-f),m=t?u.w:0;h||(m+=u.dx);var g=u.x+m,v=n(r.startX,r.startY,r.endX,r.endY,g),b=t?-.6:.6;t||(v-=s/2/a.STEP),h&&(m+=l.heads[0].dx),"noteheads.slash.quarter"===u.c&&(t?p+=1:p-=1);var y=new i(null,m,0,p,{type:"stem",pitch2:v,linewidth:b});y.setX(d.x),d.addRight(y)}}}(e.elems,e.stemsUp,e.beams[0],t,e.mainNote)}var g,v,b,y,x,k,w,T,C,S,N,E,_,M,A,B}},3721:function(e){e.exports=function(e,t,r,i,a){return t+(i-t)/(r-e)*(a-e)}},4760:function(e){function t(e,t,r){if(t)for(var i=0;i<t.length;i++)if(t[i].header){var a=r.calc(t[i].header,"voicefont","");e=Math.max(e,a.width)}return e}function r(e,t,r){if(e)for(var a=0;a<e.length;a++)i(t,e[a]),r=Math.max(r,e[a].getWidth());return r}function i(e,t){t.x=e}e.exports=function(e,i,a,n,s){var o,c,l=e.padding.left,h=0;for(o=0;o<a.length;o++)a[o].header&&(c=i.calc(a[o].header,"voicefont",""),h=Math.max(h,c.width));h=t(h,n,i),(h=t(h,s,i))&&(h+=i.calc("A","voicefont","").width);var d=0;return d=r(n,l+=h,d),l+(d=r(s,l,d))}},5687:function(e,t,r){var i=r(4760);e.exports=function(e,t,r){var a=i(e,t.getTextSize,t.voices,t.brace,t.bracket),n=function(e,t){for(var r=0,i=0,a=0;a<e.voices.length;a++){for(var n=0,s=e.voices[a],o=0;o<s.children.length;o++){var c=s.children[o];if(n+=c.duration,c.duration){var l=(c.w+t)/c.duration;r=Math.max(r,l)}}i=Math.max(i,n)}return{totalDuration:i,minSpacing:r}}(t,r.minPadding),s=n.totalDuration,o=n.minSpacing*s;r.minWidth&&(o=Math.max(o,r.minWidth));var c=r.minPadding?r.minPadding/2:2;t.startx=a,t.w=o+a;for(var l=0;l<t.voices.length;l++){var h=t.voices[l];h.startx=a,h.w=o+a;for(var d=a,u=!1,f=0,p=0;p<h.children.length;p++){var m=h.children[p];u||(0!==m.duration?(u=!0,f=(o+a-d)/s,t.gridStart=d):(m.x=d,d+=m.w+m.minspacing)),u&&("center"===r.align?m.x=d+m.duration*f/2-m.w/2:0===m.duration?m.x=d+1-m.w:m.x=d+c-m.extraw,d+=m.duration*f);for(var g=0;g<m.children.length;g++){var v=m.children[g],b=v.dx?v.dx:0;v.x=m.x+b}}t.gridEnd=d}return o}},1564:function(e,t,r){var i=r(6759),a=r(6934),n=r(735),s=r(4760),o=r(5687),c=function(e,t,r,i,a,o,c){for(var h=s(e,i.getTextSize,i.voices,i.brace,i.bracket),d=r,u=0;u<8;u++){var f=n(d,e.minPadding,c,i,h);if(d=l(o,a.stretchlast,t+e.padding.left,i.w,d,f.spacingUnits,f.minSpace,e.padding.left+e.padding.right),c&&console.log("setXSpace",u,i.w,d,i.minspace),null===d)break}return function(e){for(var t=0;t<e.length;t++)for(var r=e[t],i=1;i<r.children.length-1;i++){var a=r.children[i];if(a.abcelem.rest&&("whole"===a.abcelem.rest.type||"multimeasure"===a.abcelem.rest.type)){var n=r.children[i-1],s=r.children[i+1];a.center(n,s)}}}(i.voices),i.w-h};function l(e,t,r,i,a,n,s,o){if(e)if(void 0===t){if(i/r<.66)return null}else if(!(1-(i+o)/r<t))return null;return Math.abs(r-i)<2?null:n>0?((a=(r-(i-n*a))/n)*s>50&&(a=50/s),a):null}e.exports=function(e,t,r,n,s,l){var h,d,u=r;for(h=0;h<t.lines.length;h++){var f;(d=t.lines[h]).staff&&(f=void 0!==l?o(e,d.staffGroup,l):c(e,u,n,d.staffGroup,t.formatting,h===t.lines.length-1,!1),Math.round(f)>Math.round(u)&&(u=f,s&&(h=-1)))}for(h=0;h<t.lines.length;h++)if((d=t.lines[h]).staffGroup&&d.staffGroup.voices){for(var p=0;p<d.staffGroup.voices.length;p++)i(d.staffGroup.voices[p]);a(e,d.staffGroup)}for(h=0;h<t.lines.length;h++)(d=t.lines[h]).staffGroup&&d.staffGroup.setHeight();return u}},6934:function(e,t,r){var i=r(4331),a=1;function n(e,t,r,i){if(e.specialY[r]){var n=e.specialY[r];i&&(n*=i),e.top+=n+a,t[r]=e.top}}function s(e,t,r){var i,a;for(i=0;i<t.children.length;i++)o(e,a=t.children[i],r);for(i=0;i<t.otherchildren.length;i++)switch((a=t.otherchildren[i]).type){case"CrescendoElem":c(e,a);break;case"DynamicDecoration":l(e,a);break;case"EndingElem":h(e,a)}}function o(e,t,r){for(var i=0;i<t.children.length;i++){var a=t.children[i];for(var n in t.specialY)t.specialY.hasOwnProperty(n)&&a[n]&&(a.pitch=e[n],void 0===a.top&&("TempoElement"===a.type?d(e,a):u(e,a,r),t.pushTop(a.top),t.pushBottom(a.bottom)))}}function c(e,t){t.dynamicHeightAbove?t.pitch=e.dynamicHeightAbove:t.pitch=e.dynamicHeightBelow}function l(e,t){t.volumeHeightAbove?t.pitch=e.volumeHeightAbove:t.pitch=e.volumeHeightBelow}function h(e,t){t.pitch=e.endingHeightAbove-2}function d(e,t){if(t.pitch=e.tempoHeightAbove,t.top=e.tempoHeightAbove,t.bottom=e.tempoHeightAbove,t.note){var r=t.pitch-t.totalHeightInPitches+1;t.note.top=r,t.note.bottom=r;for(var i=0;i<t.note.children.length;i++){var a=t.note.children[i];a.top+=r,a.bottom+=r,a.pitch+=r,void 0!==a.pitch2&&(a.pitch2+=r)}}}function u(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/i.STEP,t.bottom=e.lyricHeightBelow+r.vocal/i.STEP,t.pitch-=r.vocal/i.STEP);break;case"debug":t.top=e.chordHeightAbove,t.bottom=e.chordHeightAbove}void 0!==t.pitch&&void 0!==t.top||console.error("RelativeElement position not set.",t.type,t.pitch,t.top,e)}e.exports=function(e,t){for(var r,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),n(c,l,"lyricHeightAbove"),n(c,l,"chordHeightAbove",c.specialY.chordLines.above),c.specialY.endingHeightAbove&&(c.specialY.chordHeightAbove?c.top+=2:c.top+=c.specialY.endingHeightAbove+a,l.endingHeightAbove=c.top),c.specialY.dynamicHeightAbove&&c.specialY.volumeHeightAbove?(c.top+=Math.max(c.specialY.dynamicHeightAbove,c.specialY.volumeHeightAbove)+a,l.dynamicHeightAbove=c.top,l.volumeHeightAbove=c.top):(n(c,l,"dynamicHeightAbove"),n(c,l,"volumeHeightAbove")),n(c,l,"partHeightAbove"),n(c,l,"tempoHeightAbove"),c.specialY.lyricHeightBelow&&(c.specialY.lyricHeightBelow+=e.spacing.vocal/i.STEP,l.lyricHeightBelow=c.bottom,c.bottom-=c.specialY.lyricHeightBelow+a),c.specialY.chordHeightBelow){l.chordHeightBelow=c.bottom;var h=c.specialY.chordHeightBelow;c.specialY.chordLines.below&&(h*=c.specialY.chordLines.below),c.bottom-=h+a}c.specialY.volumeHeightBelow&&c.specialY.dynamicHeightBelow?(l.volumeHeightBelow=c.bottom,l.dynamicHeightBelow=c.bottom,c.bottom-=Math.max(c.specialY.volumeHeightBelow,c.specialY.dynamicHeightBelow)+a):c.specialY.volumeHeightBelow?(l.volumeHeightBelow=c.bottom,c.bottom-=c.specialY.volumeHeightBelow+a):c.specialY.dynamicHeightBelow&&(l.dynamicHeightBelow=c.bottom,c.bottom-=c.specialY.dynamicHeightBelow+a),e.showDebug&&e.showDebug.indexOf("box")>=0&&(c.positionY=l);for(var d=0;d<c.voices.length;d++)s(l,t.voices[c.voices[d]],e.spacing);if(void 0!==r){var u=r+(c.top-10),f=e.spacing.systemStaffSeparation/i.STEP-u;f>0&&(c.top+=f)}c.top+=e.spacing.staffTopMargin/i.STEP,r=2-c.bottom}}},735:function(e,t,r){var i=r(937);function a(e){for(var t=0;t<e.length;t++)if(!i.layoutEnded(e[t]))return!1;return!0}function n(e){return e.durationindex-(e.children[e.i]&&e.children[e.i].duration>0?0:5e-7)}e.exports=function(e,t,r,s,o){var c,l=0,h=1e3,d=o;s.startx=d;var u,f,p=0;for(r&&console.log("init layout",e),c=0;c<s.voices.length;c++)i.beginLayout(d,s.voices[c]);for(var m=0;!a(s.voices);){for(p=null,c=0;c<s.voices.length;c++)i.layoutEnded(s.voices[c])||p&&!(n(s.voices[c])<p)||(p=n(s.voices[c]));var g=[],v=[];for(c=0;c<s.voices.length;c++)n(s.voices[c])-p>1e-7?v.push(s.voices[c]):g.push(s.voices[c]);m=0;var b=0;for(c=0;c<g.length;c++)i.getNextX(g[c])>d&&(d=i.getNextX(g[c]),m=i.getSpacingUnits(g[c]),b=g[c].spacingduration);l+=m,h=Math.min(h,m),r&&console.log("currentduration: ",p,l,h);var y=void 0;for(c=0;c<g.length;c++){var x=g[c];0===x.voicenumber&&(y=c);var k=void 0!==y&&g[y].voicenumber!==x.voicenumber?g[y]:void 0;f=k,(u=x)&&u.staff&&u.staff.voices&&0!==u.staff.voices.length&&f&&f.staff&&f.staff.voices&&0!==f.staff.voices.length&&u.staff.voices[0]===f.staff.voices[0]||(k=void 0);var w=i.layoutOneItem(d,e,x,t,k),T=w-d;if(T>0){d=w;for(var C=0;C<c;C++)i.shiftRight(T,g[C])}}for(c=0;c<v.length;c++)v[c].spacingduration-=b,i.updateNextX(d,e,v[c]);for(c=0;c<g.length;c++){var S=g[c];i.updateIndices(S)}}for(c=0;c<s.voices.length;c++)i.getNextX(s.voices[c])>d&&(d=i.getNextX(s.voices[c]),m=i.getSpacingUnits(s.voices[c]));return function(e){for(var t=0,r=0;r<e.length;r++){var i=e[r];if(i.children.length>0){var a=i.children.length-1,n=i.children[a];if("bar"===n.abcelem.el_type){var s=n.children[0].x;s>t?t=s:n.children[0].x=t}}}}(s.voices),l+=m,s.setWidth(d),{spacingUnits:l,minSpace:h}}},3294:function(e,t,r){var i=r(3721);function a(e){return e.stemsUp}e.exports=function(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 r=a(t)?e.anchor1.x+e.anchor1.w:e.anchor1.x;e.yTextPos=function(e,t,r){if(0===r.beams.length)return 0;r=r.beams[0];var a=e+(t-e)/2;return i(r.startX,r.startY,r.endX,r.endY,a)}(r,e.anchor2.x,t),e.yTextPos+=a(t)?3:-2,e.xTextPos=(o=r,c=e.anchor2.x,o+(c-o)/2),e.top=e.yTextPos+1,e.bottom=e.yTextPos-2,a(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,"rest"===e.anchor1.parent.type&&"rest"!==e.anchor2.parent.type?e.startNote=e.endNote:"rest"===e.anchor2.parent.type&&"rest"!==e.anchor1.parent.type&&(e.endNote=e.startNote);for(var n=0,s=0;s<e.middleElems.length;s++)n=Math.max(n,e.middleElems[s].top);((n+=4)>e.startNote||n>e.endNote)&&(e.startNote=n,e.endNote=n),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}}var o,c;delete e.middleElems,delete e.flatBeams}},937:function(e){var t=function(){};t.beginLayout=function(e,t){t.i=0,t.durationindex=0,t.startx=e,t.minx=e,t.nextx=e,t.spacingduration=0},t.layoutEnded=function(e){return e.i>=e.children.length},t.getNextX=function(e){return Math.max(e.minx,e.nextx)},t.getSpacingUnits=function(e){return Math.sqrt(8*e.spacingduration)},t.layoutOneItem=function(e,t,r,i,a){var n=r.children[r.i];if(!n)return 0;var s=e-r.minx,o=r.durationindex+n.duration>0?i:0;if("note"===n.abcelem.el_type&&!n.abcelem.rest&&0!==r.voicenumber&&a){var c=a.children[a.i],l=c&&(n.abcelem.maxpitch<=c.abcelem.maxpitch+1&&n.abcelem.maxpitch>=c.abcelem.minpitch-1||n.abcelem.minpitch<=c.abcelem.maxpitch+1&&n.abcelem.minpitch>=c.abcelem.minpitch-1);if(l&&n.abcelem.minpitch===c.abcelem.minpitch&&n.abcelem.maxpitch===c.abcelem.maxpitch&&c.heads&&c.heads.length>0&&n.heads&&n.heads.length>0&&c.heads[0].c===n.heads[0].c&&(l=!1),l){var h=c.heads&&c.heads.length>0?c.heads[0].realWidth:c.fixed.w;n.adjustedWidth||(n.adjustedWidth=h+n.w),n.w=n.adjustedWidth;for(var d=0;d<n.children.length;d++){var u=n.children[d];u.name.indexOf("accidental")<0&&(u.adjustedWidth||(u.adjustedWidth=u.dx+h),u.dx=u.adjustedWidth)}}}var f=function(e,t){var r=0;return"note"!==e.type&&"bar"!==e.type||(r=t),-e.extraw+r}(n,o);return s<f&&(0===r.i||"bar"!==n.type||"part"!==r.children[r.i-1].type&&"tempo"!==r.children[r.i-1].type)&&(e+=f-s),n.setX(e),r.spacingduration=n.duration,r.minx=e+function(e){return e.w}(n),r.i!==r.children.length-1&&(r.minx+=n.minspacing),this.updateNextX(e,t,r),e},t.shiftRight=function(e,t){var r=t.children[t.i];r&&(r.setX(r.x+e),t.minx+=e,t.nextx+=e)},t.updateNextX=function(e,t,r){r.nextx=e+t*this.getSpacingUnits(r)},t.updateIndices=function(e){this.layoutEnded(e)||(e.durationindex+=e.children[e.i].duration,"bar"===e.children[e.i].type&&(e.durationindex=Math.round(64*e.durationindex)/64),e.i++)},e.exports=t},6759:function(e,t,r){var i=r(6251),a=r(3721),n=r(3294);function s(e){for(var t=0;t<e.elems.length;t++){var r=e.elems[t];if(r.top)for(var i=l(r,e),a=0;a<r.children.length;a++){var n=r.children[a];if("ornament"===n.klass&&"below"!==n.position&&n.bottom-1.5<i){var s=i-n.bottom+1.5;n.bottom+=s,n.top+=s,n.pitch+=s,i=r.top=n.top}}}}function o(e,t){var r=t.getChordDim();if(r){for(var i=0;i<e.length;i++)if(e[i]<r.left)return i>0&&t.putChordInLane(i),void(e[i]=r.right);e.push(r.right),t.putChordInLane(e.length-1)}}function c(e){for(var t=0,r=0;r<e.children.length;r++)e.children[r].chordHeightBelow&&t++;return t}function l(e,t){return t=t.beams[0],a(t.startX,t.startY,t.endX,t.endY,e.x)}e.exports=function(e){for(var t=0;t<e.beams.length;t++)if("BeamElem"===e.beams[t].type){i(e.beams[t]),s(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=function(e){var t,r,i,a=[0],n=[0];for(t=0;t<e.length;t++){for(r=0;r<e[t].children.length;r++)(i=e[t].children[r]).chordHeightAbove&&o(a,i);for(r=e[t].children.length-1;r>=0;r--)(i=e[t].children[r]).chordHeightBelow&&o(n,i)}return(a.length>1||n.length>1)&&function(e,t,r){for(var i=0;i<e.length;i++){c(e[i]);for(var a=0;a<e[i].children.length;a++){var n=e[i].children[a];n.chordHeightAbove&&n.invertLane(t)}}}(e,a.length,n.length),{above:a.length,below:n.length}}(e.children),t=0;t<e.otherchildren.length;t++){var a=e.otherchildren[t];"TripletElem"===a.type&&(n(a),e.adjustRange(a))}e.staff.top=Math.max(e.staff.top,e.top),e.staff.bottom=Math.min(e.staff.bottom,e.bottom)}},8510:function(e,t,r){var i=r(4331),a=r(4101),n=function(e){this.paper=new a(e),this.controller=null,this.space=3*i.SPACE,this.padding={},this.reset(),this.firefox112=navigator.userAgent.indexOf("Firefox/112.0")>=0};n.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.path=null,this.isPrint=!1,this.lineThickness=0,this.initVerticalSpace()},n.prototype.newTune=function(e){this.abctune=e,this.setVerticalSpace(e.formatting),this.isPrint="print"===e.media,this.setPadding(e)},n.prototype.setLineThickness=function(e){this.lineThickness=e},n.prototype.setPaddingOverride=function(e){this.paddingOverride={top:e.paddingtop,bottom:e.paddingbottom,right:e.paddingright,left:e.paddingleft}},n.prototype.setPadding=function(e){function t(t,r,i,a,n){void 0!==e.formatting[i]?t.padding[r]=e.formatting[i]:void 0!==t.paddingOverride[r]?t.padding[r]=t.paddingOverride[r]:t.isPrint?t.padding[r]=a:t.padding[r]=n}t(this,"top","topmargin",38,15),t(this,"bottom","botmargin",38,15),t(this,"left","leftmargin",68,15),t(this,"right","rightmargin",68,15)},n.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},n.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}},n.prototype.setVerticalSpace=function(e){void 0!==e.staffsep&&(this.spacing.staffSeparation=4*e.staffsep/3),void 0!==e.composerspace&&(this.spacing.composer=4*e.composerspace/3),void 0!==e.partsspace&&(this.spacing.parts=4*e.partsspace/3),void 0!==e.textspace&&(this.spacing.text=4*e.textspace/3),void 0!==e.musicspace&&(this.spacing.music=4*e.musicspace/3),void 0!==e.titlespace&&(this.spacing.title=4*e.titlespace/3),void 0!==e.sysstaffsep&&(this.spacing.systemStaffSeparation=4*e.sysstaffsep/3),void 0!==e.stafftopmargin&&(this.spacing.staffTopMargin=4*e.stafftopmargin/3),void 0!==e.subtitlespace&&(this.spacing.subtitle=4*e.subtitlespace/3),void 0!==e.topspace&&(this.spacing.top=4*e.topspace/3),void 0!==e.vocalspace&&(this.spacing.vocal=4*e.vocalspace/3),void 0!==e.wordsspace&&(this.spacing.words=4*e.wordsspace/3)},n.prototype.calcY=function(e){return this.y-e*i.STEP},n.prototype.moveY=function(e,t){void 0===t&&(t=1),this.y+=e*t},n.prototype.absolutemoveY=function(e){this.y=e},e.exports=n},4101:function(e){var t="http://www.w3.org/2000/svg";function r(e){this.svg=s(),this.currentGroup=[],e.appendChild(this.svg)}function i(e,t,r){var i=r-e;return"M "+e+" "+t+" l "+i+" 0 l 0 1 l "+-i+" 0 z "}function a(e,t,r){var i=r-t;return"M "+e+" "+t+" l 0 "+i+" l 1 0 l 0 "+-i+" z "}r.prototype.clear=function(){if(this.svg){var e=this.svg.parentNode;this.svg=s(),this.currentGroup=[],e&&(e.innerHTML="",e.appendChild(this.svg))}},r.prototype.setTitle=function(e){var t=document.createElement("title"),r=document.createTextNode(e);t.appendChild(r),this.svg.insertBefore(t,this.svg.firstChild)},r.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 r=this.svg.parentNode.getAttribute("class");r?r.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",r+" 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 i=t/e*100;this.svg.parentNode.style["padding-bottom"]=i+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},r.prototype.setSize=function(e,t){this.svg.setAttribute("width",e),this.svg.setAttribute("height",t)},r.prototype.setAttribute=function(e,t){this.svg.setAttribute(e,t)},r.prototype.setScale=function(e){1!==e?(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"):(this.svg.style.transform="",this.svg.style["-ms-transform"]="",this.svg.style["-webkit-transform"]="")},r.prototype.insertStyles=function(e){var r=document.createElementNS(t,"style");r.textContent=e,this.svg.insertBefore(r,this.svg.firstChild)},r.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),this.dummySvg=null)},r.prototype.rect=function(e){var t=[],r=e.x,n=e.y,s=e.x+e.width,o=e.y+e.height;return t.push(i(r,n,s)),t.push(i(r,o,s)),t.push(a(s,n,o)),t.push(a(r,o,n)),this.path({path:t.join(" "),stroke:"none","data-name":e["data-name"]})},r.prototype.dottedLine=function(e){var r=document.createElementNS(t,"line");r.setAttribute("x1",e.x1),r.setAttribute("x2",e.x2),r.setAttribute("y1",e.y1),r.setAttribute("y2",e.y2),r.setAttribute("stroke",e.stroke),r.setAttribute("stroke-dasharray","5,5"),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.rectBeneath=function(e){var r=document.createElementNS(t,"rect");r.setAttribute("x",e.x),r.setAttribute("width",e.width),r.setAttribute("y",e.y),r.setAttribute("height",e.height),e.stroke&&r.setAttribute("stroke",e.stroke),e["stroke-opacity"]&&r.setAttribute("stroke-opacity",e["stroke-opacity"]),e.fill&&r.setAttribute("fill",e.fill),e["fill-opacity"]&&r.setAttribute("fill-opacity",e["fill-opacity"]),this.svg.insertBefore(r,this.svg.firstChild)},r.prototype.text=function(e,r,i){var a=document.createElementNS(t,"text");for(var n in a.setAttribute("stroke","none"),r)r.hasOwnProperty(n)&&a.setAttribute(n,r[n]);for(var s=(""+e).split("\n"),o=0;o<s.length;o++){var c=document.createElementNS(t,"tspan");if(c.setAttribute("x",r.x?r.x:0),0!==o&&c.setAttribute("dy","1.2em"),-1!==s[o].indexOf("")){var l=s[o].split("");if(c.textContent=l[0],l[1]){var h=document.createElementNS(t,"tspan");h.setAttribute("dy","-0.3em"),h.setAttribute("style","font-size:0.7em"),h.textContent=l[1],c.appendChild(h)}if(l[2]){var d=l[1]?"0.4em":"0.1em",u=document.createElementNS(t,"tspan");u.setAttribute("dy",d),u.setAttribute("style","font-size:0.7em"),u.textContent=l[2],c.appendChild(u)}}else c.textContent=s[o];a.appendChild(c)}return i?i.appendChild(a):this.append(a),a},r.prototype.richTextLine=function(e,r,i,a,n,s){var o=document.createElementNS(t,"text");o.setAttribute("stroke","none"),o.setAttribute("class",a),o.setAttribute("x",r),o.setAttribute("y",i),o.setAttribute("text-anchor",n),o.setAttribute("dominant-baseline","middle");for(var c=0;c<e.length;c++){for(var l=e[c],h=document.createElementNS(t,"tspan"),d=Object.keys(l.attrs),u=0;u<d.length;u++){var f=l.attrs[d[u]];""!==f&&h.setAttribute(d[u],f)}h.textContent=l.content,o.appendChild(h)}return s?s.appendChild(o):this.append(o),o},r.prototype.guessWidth=function(e,t){var r,i=this.createDummySvg(),a=this.text(e,t,i);try{r=a.getBBox(),r=isNaN(r.height)||!r.height?{width:t["font-size"]/2,height:t["font-size"]+2}:{width:r.width,height:r.height}}catch(e){r={width:t["font-size"]/2,height:t["font-size"]+2}}return i.removeChild(a),r},r.prototype.createDummySvg=function(){return this.dummySvg||(this.dummySvg=s(),this.dummySvg.setAttribute("style",["display: block !important;","height: 1px;","width: 1px;","position: absolute;"].join("")),document.querySelector("body").appendChild(this.dummySvg)),this.dummySvg};var n={};function s(){var e=document.createElementNS(t,"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}r.prototype.getTextSize=function(e,t,r){if("number"==typeof e&&(e=""+e),!e||e.match(/^\s+$/))return{width:0,height:0};var i;if(e.length<20&&(i=e+JSON.stringify(t),n[i]))return n[i];var a,s=!r;r||(r=this.text(e,t));try{a=r.getBBox(),a=isNaN(a.height)||!a.height?this.guessWidth(e,t):{width:a.width,height:a.height}}catch(r){a=this.guessWidth(e,t)}return s&&(this.currentGroup.length>0?this.currentGroup[0].removeChild(r):this.svg.removeChild(r)),i&&(n[i]=a),a},r.prototype.openGroup=function(e){e=e||{};var r=document.createElementNS(t,"g");return e.klass&&r.setAttribute("class",e.klass),e.fill&&r.setAttribute("fill",e.fill),e.stroke&&r.setAttribute("stroke",e.stroke),e["data-name"]&&r.setAttribute("data-name",e["data-name"]),e.prepend?this.prepend(r):this.append(r),this.currentGroup.unshift(r),r},r.prototype.closeGroup=function(){var e=this.currentGroup.shift();return e&&0===e.children.length?(e.parentElement.removeChild(e),null):e},r.prototype.path=function(e){var r=document.createElementNS(t,"path");for(var i in e)e.hasOwnProperty(i)&&("path"===i?r.setAttributeNS(null,"d",e.path):"klass"===i?r.setAttributeNS(null,"class",e[i]):void 0!==e[i]&&r.setAttributeNS(null,i,e[i]));return this.append(r),r},r.prototype.pathToBack=function(e){var r=document.createElementNS(t,"path");for(var i in e)e.hasOwnProperty(i)&&("path"===i?r.setAttributeNS(null,"d",e.path):"klass"===i?r.setAttributeNS(null,"class",e[i]):r.setAttributeNS(null,i,e[i]));return this.prepend(r),r},r.prototype.lineToBack=function(e){for(var r=document.createElementNS(t,"line"),i=Object.keys(e),a=0;a<i.length;a++)r.setAttribute(i[a],e[i[a]]);return this.prepend(r),r},r.prototype.append=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.appendChild(e)},r.prototype.prepend=function(e){this.currentGroup.length>0?this.currentGroup[0].appendChild(e):this.svg.insertBefore(e,this.svg.firstChild)},r.prototype.setAttributeOnElement=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttributeNS(null,r,t[r])},r.prototype.moveElementToChild=function(e,t){e.appendChild(t)},e.exports=r}},t={},r=function r(i){var a=t[i];if(void 0!==a)return a.exports;var n=t[i]={exports:{}};return e[i](n,n.exports,r),n.exports}(7001),r;var e,t,r}));
|