Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xaprb/story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaron Schwartz <xaprb@users.noreply.github.com>2019-01-28 17:09:56 +0300
committerBaron Schwartz <xaprb@users.noreply.github.com>2019-01-28 17:09:56 +0300
commitae581648d2b136787d3fae6451b57442daffce6f (patch)
treeecc8fc2f082d15bc9e03a952218c64cea116c07c
parentf3a57457d8f508857f24766af36adb8ee9edb7aa (diff)
update abcjs
-rw-r--r--layouts/_default/baseof.html2
-rwxr-xr-xstatic/js/abcjs_basic_5.6.2-min.js3
-rwxr-xr-xstatic/js/abcjs_basic_5.6.3-min.js3
3 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0e833cd..8f10df9 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -44,7 +44,7 @@
{{- end -}}
{{ if or (in .Site.Params.classes "feature-music") (in .Params.classes "feature-music") -}}
{{- if not (or (in .Site.Params.classes "feature-nomusic") (in .Params.classes "feature-nomusic") ) -}}
- <script src="{{ "js/abcjs_basic_5.6.2-min.js" | absURL }}"></script>
+ <script src="{{ "js/abcjs_basic_5.6.3-min.js" | absURL }}"></script>
{{- end -}}
{{- end -}}
{{ with .Site.Params.head }}{{ range . }}
diff --git a/static/js/abcjs_basic_5.6.2-min.js b/static/js/abcjs_basic_5.6.2-min.js
deleted file mode 100755
index 458c7d1..0000000
--- a/static/js/abcjs_basic_5.6.2-min.js
+++ /dev/null
@@ -1,3 +0,0 @@
-/*! abcjs_basic v5.6.2 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */
-/*! For license information please see abcjs_basic_5.6.2-min.js.LICENSE */
-!function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=15)}([function(t,e,i){"use strict";var r={clone:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},cloneArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(r.clone(t[i]));return e},cloneHashOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.clone(t[i]));return e},cloneHashOfArrayOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.cloneArray(t[i]));return e},gsub:function(t,e,i){return t.split(e).join(i)},strip:function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(t,e){return 0===t.indexOf(e)},endsWith:function(t,e){var i=t.length-e.length;return i>=0&&t.lastIndexOf(e)===i},each:function(t,e,i){for(var r=0,n=t.length;r<n;r++)e.apply(i,[t[r],r])},last:function(t){return 0===t.length?null:t[t.length-1]},compact:function(t){for(var e=[],i=0;i<t.length;i++)t[i]&&e.push(t[i]);return e},detect:function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),t.exports=r},function(t,e,i){"use strict";var r={FONTEM:360,FONTSIZE:30};r.STEP=93*r.FONTSIZE/720,r.SPACE=10,r.TOPNOTE=15,r.STAVEHEIGHT=100,r.INDENT=50,t.exports=r},function(t,e,i){"use strict";i(3);var r=function(t,e,i,r,n){switch(n=n||{},this.x=0,this.c=t,this.dx=e,this.w=i,this.pitch=r,this.scalex=n.scalex||1,this.scaley=n.scaley||1,this.type=n.type||"symbol",this.pitch2=n.pitch2,this.linewidth=n.linewidth,this.klass=n.klass,this.top=r,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),n.thickness&&(this.top+=n.thickness/2,this.bottom-=n.thickness/2),n.stemHeight&&(n.stemHeight>0?this.top+=n.stemHeight:this.bottom+=n.stemHeight),this.height=n.height?n.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":n.position&&"below"===n.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":n.position&&"below"===n.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?n.position&&"below"===n.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};r.prototype.setX=function(t){this.x=t+this.dx},r.prototype.setUpperAndLowerElements=function(t){switch(this.type){case"part":this.top=t.partHeightAbove+this.height,this.bottom=t.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove):(this.top=t.chordHeightBelow,this.bottom=t.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=t.lyricHeightAbove,this.bottom=t.lyricHeightAbove):(this.top=t.lyricHeightBelow,this.bottom=t.lyricHeightBelow);break;case"debug":this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,t)},r.prototype.draw=function(t,e){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=t.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var r="symbol";this.klass&&(r+=" "+this.klass),this.graphelem=t.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,t.addClasses(r));break;case"debug":this.graphelem=t.renderText(this.x,t.calcY(15),""+this.c,"debugfont","debug-msg","start");break;case"barNumber":this.graphelem=t.renderText(this.x,i,""+this.c,"measurefont","bar-number","middle");break;case"lyric":this.graphelem=t.renderText(this.x,i,this.c,"vocalfont","lyric","middle");break;case"chord":this.graphelem=t.renderText(this.x,i,this.c,"gchordfont","chord","middle");break;case"decoration":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","middle",!0);break;case"text":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","start",this.centerVertically);break;case"multimeasure-text":this.graphelem=t.renderText(this.x+this.w/2,i,this.c,"tempofont","rest","middle",!1);break;case"part":this.graphelem=t.renderText(this.x,i,this.c,"partsfont","part","start");break;case"bar":this.graphelem=t.printStem(this.x,this.linewidth,i,e||t.calcY(this.pitch2));break;case"stem":this.graphelem=t.printStem(this.x,this.linewidth,i,t.calcY(this.pitch2));break;case"ledger":this.graphelem=t.printStaveLine(this.x,this.x+this.w,this.pitch)}return 1!==this.scalex&&this.graphelem&&t.scaleExistingElem(this.graphelem,this.scalex,this.scaley,this.x,i),this.graphelem},t.exports=r},function(t,e,i){"use strict";var r=i(1);t.exports=new function(){var t={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,.33,-.03,4.89],["c",-.06,2.67,-.09,5.01,-.09,5.22],["l",0,.36],["l",.15,-.15],["c",.36,-.3,.75,-.51,1.2,-.63],["c",.33,-.09,.96,-.09,1.26,-.03],["c",.27,.09,.63,.27,.87,.45],["l",.21,.15],["l",0,-.27],["c",0,-.15,-.03,-2.43,-.09,-5.1],["c",-.09,-4.56,-.09,-4.86,-.03,-4.89],["c",.15,-.12,.39,-.15,.72,-.15],["c",.3,0,.54,.03,.69,.15],["c",.06,.03,.06,.33,-.03,4.95],["c",-.06,2.7,-.09,5.04,-.09,5.22],["l",.03,.3],["l",.21,-.15],["c",.69,-.48,1.44,-.69,2.28,-.69],["c",.51,0,.78,.03,1.2,.21],["c",1.32,.63,2.01,2.28,1.53,3.69],["c",-.21,.57,-.51,1.02,-1.05,1.56],["c",-.42,.42,-.81,.72,-1.92,1.5],["c",-1.26,.87,-1.5,1.08,-1.86,1.5],["c",-.39,.45,-.54,.54,-.81,.51],["c",-.18,0,-.21,0,-.33,-.06],["l",-.21,-.21],["l",-.06,-.12],["l",-.03,-.99],["c",-.03,-.54,-.03,-1.29,-.06,-1.68],["l",0,-.69],["l",-.21,.24],["c",-.36,.42,-.75,.75,-1.8,1.62],["c",-1.02,.84,-1.2,.99,-1.44,1.38],["c",-.36,.51,-.54,.6,-.9,.51],["c",-.15,-.03,-.39,-.27,-.42,-.42],["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",2.52,10.98],["c",-.18,-.09,-.48,-.12,-.66,-.06],["c",-.39,.15,-.69,.54,-.84,1.14],["c",-.06,.24,-.06,.39,-.09,1.74],["c",-.03,1.44,0,2.73,.06,3.18],["l",.03,.15],["l",.27,-.27],["c",.93,-.96,1.5,-1.95,1.74,-3.06],["c",.06,-.27,.06,-.39,.06,-.96],["c",0,-.54,0,-.69,-.06,-.93],["c",-.09,-.51,-.27,-.81,-.51,-.93],["z"],["m",5.43,0],["c",-.18,-.09,-.51,-.12,-.72,-.06],["c",-.54,.12,-.96,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.9],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.36,-.3],["c",.42,-.36,1.02,-.96,1.29,-1.29],["c",.36,-.45,.66,-.99,.81,-1.41],["c",.42,-1.23,.15,-2.76,-.6,-3.12],["z"]],w:11.613,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.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:9.99,h:14.97},"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.32,-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}};this.printSymbol=function(e,i,r,n,s){if(!t[r])return null;var a=this.pathClone(t[r].d);a[0][1]+=e,a[0][2]+=i;for(var c="",o=0;o<a.length;o++)c+=a[o].join(" ");return n.path({path:c,stroke:"none",fill:"#000000",class:s})},this.getPathForSymbol=function(e,i,r,n,s){if(n=n||1,s=s||1,!t[r])return null;var a=this.pathClone(t[r].d);return 1===n&&1===s||this.pathScale(a,n,s),a[0][1]+=e,a[0][2]+=i,a},this.getSymbolWidth=function(e){return t[e]?t[e].w:0},this.getSymbolHeight=function(e){return t[e]?t[e].h:0},this.symbolHeightInPitches=function(t){return this.getSymbolHeight(t)/r.STEP},this.getSymbolAlign=function(t){return"scripts"===t.substring(0,7)&&"scripts.roll"!==t?"center":"left"},this.pathClone=function(t){for(var e=[],i=0,r=t.length;i<r;i++){e[i]=[];for(var n=0,s=t[i].length;n<s;n++)e[i][n]=t[i][n]}return e},this.pathScale=function(t,e,i){for(var r=0,n=t.length;r<n;r++){var s,a,c=t[r];for(s=1,a=c.length;s<a;s++)c[s]*=s%2?e:i}},this.getYCorr=function(t){switch(t){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}}}},function(t,e,i){"use strict";var r=i(1),n=function(t,e,i,r,n,s){s||(s={}),this.tuneNumber=n,this.abcelem=t,this.duration=e,this.durationClass=s.durationClassOveride?s.durationClassOveride:this.duration,this.minspacing=i||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=r,this.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.setUpperAndLowerElements=function(t){for(var e=0;e<this.children.length;e++){var i=this.children[e];for(var r in this.specialY)this.specialY.hasOwnProperty(r)&&i[r]&&(i.pitch=t[r],void 0===i.top&&(i.setUpperAndLowerElements(t),this.pushTop(i.top),this.pushBottom(i.bottom)))}},n.prototype.getMinWidth=function(){return this.w},n.prototype.getExtraWidth=function(){return-this.extraw},n.prototype.addExtra=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.extra[this.extra.length]=t,this.addChild(t)},n.prototype.addHead=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.heads[this.heads.length]=t,this.addRight(t)},n.prototype.addRight=function(t){t.dx+t.w>this.w&&(this.w=t.dx+t.w),this.right[this.right.length]=t,this.addChild(t)},n.prototype.addCentered=function(t){var e=t.w/2;-e<this.extraw&&(this.extraw=-e),this.extra[this.extra.length]=t,t.dx+e>this.w&&(this.w=t.dx+e),this.right[this.right.length]=t,this.addChild(t)},n.prototype.setLimit=function(t,e){e[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],e[t]):this.specialY[t]=e[t])},n.prototype.addChild=function(t){t.parent=this,this.children[this.children.length]=t,this.pushTop(t.top),this.pushBottom(t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},n.prototype.pushTop=function(t){void 0!==t&&(void 0===this.top?this.top=t:this.top=Math.max(t,this.top))},n.prototype.pushBottom=function(t){void 0!==t&&(void 0===this.bottom?this.bottom=t:this.bottom=Math.min(t,this.bottom))},n.prototype.setX=function(t){this.x=t;for(var e=0;e<this.children.length;e++)this.children[e].setX(t)},n.prototype.setHint=function(){this.hint=!0},n.prototype.draw=function(t,e){if(!this.invisible){this.elemset=[],t.beginGroup();for(var i=0;i<this.children.length;i++){0;var n=this.children[i].draw(t,e);n&&this.elemset.push(n)}var s=this.type;if(("note"===this.type||"rest"===this.type)&&(s=(s+=" d"+this.durationClass).replace(/\./g,"-"),this.abcelem.pitches))for(var a=0;a<this.abcelem.pitches.length;a++)s+=" p"+this.abcelem.pitches[a].pitch;var c=t.endGroup(s);c&&this.elemset.push(c),this.klass&&this.setClass("mark","","#00ff00"),this.hint&&this.setClass("abcjs-hint","",null);var o=t.printShadedBox(this.x,t.calcY(this.top),this.w,t.calcY(this.bottom)-t.calcY(this.top),"#000000",0),h=this,l=t.controller;o.addEventListener("mouseup",function(){var t=[];if(h.elemset)for(var e=0;e<h.elemset.length;e++){var i=h.elemset[e];i&&t.push(i.getAttribute("class"))}l.notifySelect(h,h.tuneNumber,t)}),this.abcelem.abselem=this;r.STEP}},n.prototype.isIE=!1,n.prototype.setClass=function(t,e,i){for(var r=0;r<this.elemset.length;r++){var n=this.elemset[r];n.setAttribute("fill",i);var s=n.getAttribute("class");s||(s=""),s=(s=s.replace(e,"")).replace(t,""),t.length>0&&(s.length>0&&" "!==s.charAt(s.length-1)&&(s+=" "),s+=t),n.setAttribute("class",s)}},n.prototype.highlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#ff0000"),this.setClass(t,"",e)},n.prototype.unhighlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#000000"),this.setClass("",t,e)},t.exports=n},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){for(var t,e,i,n,s,a=0,c=arguments[a++],o=[];c;){if(e=/^[^\x25]+/.exec(c))o.push(e[0]);else if(e=/^\x25{2}/.exec(c))o.push("%");else{if(!(e=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(c)))throw"Huh ?!";if(null==(t=arguments[e[1]||a++])||void 0==t)throw"Too few arguments.";if(/[^s]/.test(e[7])&&"number"!=typeof t)throw"Expecting number but found "+(void 0===t?"undefined":r(t));switch(e[7]){case"b":t=t.toString(2);break;case"c":t=String.fromCharCode(t);break;case"d":t=parseInt(t);break;case"e":t=e[6]?t.toExponential(e[6]):t.toExponential();break;case"f":t=e[6]?parseFloat(t).toFixed(e[6]):parseFloat(t);break;case"o":t=t.toString(8);break;case"s":t=(t=String(t))&&e[6]?t.substring(0,e[6]):t;break;case"u":t=Math.abs(t);break;case"x":t=t.toString(16);break;case"X":t=t.toString(16).toUpperCase()}t=/[def]/.test(e[7])&&e[2]&&t>0?"+"+t:t,n=e[3]?"0"==e[3]?"0":e[3].charAt(1):" ",s=e[5]-String(t).length,i=e[5]?str_repeat(n,s):"",o.push(e[4]?t+i:i+t)}c=c.substring(e[0].length)}return o.join("")}},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=i(0),s=i(7),a={};!function(){a.numberOfTunes=function(t){var e=t.split("\nX:").length;return 0===e&&(e=1),e};var t=a.TuneBook=function(t){for(var e=this,i="",r=(t=n.strip(t)).split("\nX:"),s=1;s<r.length;s++)r[s]="X:"+r[s];var a=0;if(e.tunes=[],n.each(r,function(t){e.tunes.push({abc:t,startPos:a}),a+=t.length+1}),e.tunes.length>1&&!n.startsWith(e.tunes[0].abc,"X:")){var c=e.tunes.shift().abc.split("\n");n.each(c,function(t){n.startsWith(t,"%%")&&(i+=t+"\n")})}e.header=i,n.each(e.tunes,function(t){var e=t.abc.indexOf("\n\n");e>0&&(t.abc=t.abc.substring(0,e)),t.pure=t.abc,t.abc=i+t.abc;var r=t.pure.split("T:");r.length>1?(r=r[1].split("\n"),t.title=r[0].replace(/^\s+|\s+$/g,"")):t.title="";var n=t.pure.substring(2,t.pure.indexOf("\n"));t.id=n.replace(/^\s+|\s+$/g,"")})};t.prototype.getTuneById=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].id===t)return this.tunes[e];return null},t.prototype.getTuneByTitle=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].title===t)return this.tunes[e];return null},a.parseOnly=function(t,e){for(var i=a.numberOfTunes(t),r=[],n=0;n<i;n++)r.push(1);return a.renderEngine(function(){},r,t,e)},a.renderEngine=function(e,i,n,a){var c=[];if(void 0!==i&&void 0!==n){(function(t){return t&&!t.propertyIsEnumerable("length")&&"object"===(void 0===t?"undefined":r(t))&&"number"==typeof t.length})(i)||(i=[i]),void 0===a&&(a={});for(var o=a.startingTune?parseInt(a.startingTune,10):0,h=new t(n),l=new s,d=0;d<i.length;d++){var u=i[d];if("string"==typeof u&&(u=document.getElementById(u)),u)if(o>=0&&o<h.tunes.length){l.parse(h.tunes[o].abc,a);var f=l.getTune(),p=e(u,f,d,h.tunes[o].abc);c.push(p||f)}else u.hasOwnProperty("innerHTML")&&(u.innerHTML="");o++}return c}}}(),t.exports=a},function(t,e,i){"use strict";var r=i(0),n=i(8),s=i(19),a=i(9),c=i(20),o=i(11),h=i(12),l=i(21);t.exports=function(){var t=new l,e=new c;function i(t,e,i){t.positioning||(t.positioning={}),t.positioning[e]=i}function d(t,e,i){t.fonts||(t.fonts={}),t.fonts[e]=i}this.getTune=function(){return t};var u={reset:function(){for(var t in this)this.hasOwnProperty(t)&&"function"!=typeof this[t]&&delete this[t];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.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.is_in_history=!1,this.partForNextLine="",this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.inTextBlock=!1,this.inPsBlock=!1,this.ignoredDecorations=[],this.textBlock="",this.score_is_present=!1,this.inEnding=!1,this.inTie=[!1],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[]},differentFont:function(t,e){return this[t].decoration!==e[t].decoration||this[t].face!==e[t].face||this[t].size!==e[t].size||this[t].style!==e[t].style||this[t].weight!==e[t].weight},addFormattingOptions:function(t,e,r){"note"===r?("auto"!==this.vocalPosition&&i(t,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("annotationfont",e)&&d(t,"annotationfont",this.annotationfont),this.differentFont("gchordfont",e)&&d(t,"gchordfont",this.gchordfont),this.differentFont("vocalfont",e)&&d(t,"vocalfont",this.vocalfont),this.differentFont("tripletfont",e)&&d(t,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("measurefont",e)&&d(t,"measurefont",this.measurefont),this.differentFont("repeatfont",e)&&d(t,"repeatfont",this.repeatfont))}},f=function(t){var e=r.gsub(t,""," ");return e=r.gsub(e,"&","&amp;"),e=r.gsub(e,"<","&lt;"),r.gsub(e,">","&gt;")},p=function(e,i,r){i||(i=" ");var n=i.charAt(r);" "===n&&(n="SPACE");var s=f(i.substring(0,r))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+n+"</span>"+f(i.substring(r+1));!function(t){u.warnings||(u.warnings=[]),u.warnings.push(t)}("Music Line:"+t.getNumLines()+":"+(r+1)+": "+e+": "+s),function(t){u.warningObjects||(u.warningObjects=[]),u.warningObjects.push(t)}({message:e,line:i,startChar:u.iChar+r,column:r})},m=new s(e,p,u,t);this.getWarnings=function(){return u.warnings},this.getWarningObjects=function(){return u.warningObjects};var g=function(t,i){if('"'===t.charAt(i)){var r=e.getBrackettedSubstring(t,i,5);if(r[2]||p("Missing the closing quote while parsing the chord symbol",t,i),r[0]>0&&r[1].length>0&&"^"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1].charAt(0)){r[1]=r[1].substring(1);var n=e.getFloat(r[1]);0===n.digits&&p("Missing first position in absolutely positioned annotation.",t,i),r[1]=r[1].substring(n.digits),","!==r[1][0]&&p("Missing comma absolutely positioned annotation.",t,i),r[1]=r[1].substring(1);var s=e.getFloat(r[1]);0===s.digits&&p("Missing second position in absolutely positioned annotation.",t,i),r[1]=r[1].substring(s.digits);var a=e.skipWhiteSpace(r[1]);r[1]=r[1].substring(a),r[2]=null,r[3]={x:n.value,y:s.value}}else r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[2]="default",r[1]=o.chordName(u,r[1]);return r}return[0,""]},v=["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","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"],b=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],y=["crescendo(","crescendo)","diminuendo(","diminuendo)"],w=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],x=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],k=function(t,i){var n=u.macros[t.charAt(i)];if(void 0!==n)return"!"!==n.charAt(0)&&"+"!==n.charAt(0)||(n=n.substring(1)),"!"!==n.charAt(n.length-1)&&"+"!==n.charAt(n.length-1)||(n=n.substring(0,n.length-1)),r.detect(v,function(t){return n===t})?[1,n]:r.detect(b,function(t){return n===t})?("hidden"===u.volumePosition&&(n=""),[1,n]):r.detect(y,function(t){return"hidden"===u.dynamicPosition&&(n=""),n===t})?[1,n]:(r.detect(u.ignoredDecorations,function(t){return n===t})||p("Unknown macro: "+n,t,i),[1,""]);switch(t.charAt(i)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var s=e.getBrackettedSubstring(t,i,5);return s[1].length>0&&("^"===s[1].charAt(0)||"_"===s[1].charAt(0))&&(s[1]=s[1].substring(1)),r.detect(v,function(t){return s[1]===t})?s:r.detect(b,function(t){return s[1]===t})?("hidden"===u.volumePosition&&(s[1]=""),s):r.detect(y,function(t){return s[1]===t})?("hidden"===u.dynamicPosition&&(s[1]=""),s):r.detect(w,function(t){return s[1]===t[0]&&(s[1]=t[1],!0)})?s:r.detect(x,function(t){return s[1]===t[0]&&(s[1]=t[1],!0)})?("hidden"===u.dynamicPosition&&(s[1]=""),s):"!"!==t.charAt(i)||1!==s[0]&&"!"===t.charAt(i+s[0]-1)?(p("Unknown decoration: "+s[1],t,i),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]},A=function(t,i){for(var r=i;e.isWhiteSpace(t.charAt(i));)i++;return[i-r]},T=function(t,i){var r=e.getBarLine(t,i);if(0===r.len)return[0,""];if(r.warn)return p(r.warn,t,i),[r.len,""];for(var n=0;n<t.length&&" "===t.charAt(i+r.len+n);n++);var s=r.len;if("["===t.charAt(i+r.len+n)&&(r.len+=n+1),'"'===t.charAt(i+r.len)&&"["===t.charAt(i+r.len-1)){var a=e.getBrackettedSubstring(t,i+r.len,5);return[r.len+a[0],r.token,a[1]]}var c=e.getTokenOf(t.substring(i+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[s,r.token]:[r.len+c.len,r.token,c.token]},S={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},N=function(t,i){for(var r={},n=i;"("===t.charAt(i)||e.isWhiteSpace(t.charAt(i));)"("===t.charAt(i)&&(i+1<t.length&&t.charAt(i+1)>="2"&&t.charAt(i+1)<="9"?(void 0!==r.triplet?p("Can't nest triplets",t,i):(r.triplet=t.charAt(i+1)-"0",r.tripletQ=S[r.triplet],r.num_notes=r.triplet,i+2<t.length&&":"===t.charAt(i+2)&&(i+3<t.length&&":"===t.charAt(i+3)?i+4<t.length&&t.charAt(i+4)>="1"&&t.charAt(i+4)<="9"?(r.num_notes=t.charAt(i+4)-"0",i+=3):p("expected number after the two colons after the triplet to mark the duration",t,i):i+3<t.length&&t.charAt(i+3)>="1"&&t.charAt(i+3)<="9"?(r.tripletQ=t.charAt(i+3)-"0",i+4<t.length&&":"===t.charAt(i+4)?i+5<t.length&&t.charAt(i+5)>="1"&&t.charAt(i+5)<="9"&&(r.num_notes=t.charAt(i+5)-"0",i+=4):i+=2):p("expected number after the triplet to mark the duration",t,i))),i++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),i++;return r.consumed=i-n,r},_=function(t,e){switch(t.charAt(e)){case">":return e<t.length-1&&">"===t.charAt(e+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return e<t.length-1&&"<"===t.charAt(e+1)?[2,.25,1.75]:[1,.5,1.5]}return null},C=function(t){return void 0!==t.duration&&t.duration<.25&&(t.end_beam=!0),t},E={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},M={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"},B=function(i,r,n,s){for(var a=function(t){return"octave"===t||"duration"===t||"Zduration"===t||"broken_rhythm"===t||"end_slur"===t},c="startSlur",h=!1;;){switch(i.charAt(r)){case"(":if("startSlur"!==c)return a(c)?(n.endChar=r,n):null;void 0===n.startSlur?n.startSlur=1:n.startSlur++;break;case")":if(!a(c))return null;void 0===n.endSlur?n.endSlur=1:n.endSlur++;break;case"^":if("startSlur"===c)n.accidental="sharp",c="sharp2";else{if("sharp2"!==c)return a(c)?(n.endChar=r,n):null;n.accidental="dblsharp",c="pitch"}break;case"_":if("startSlur"===c)n.accidental="flat",c="flat2";else{if("flat2"!==c)return a(c)?(n.endChar=r,n):null;n.accidental="dblflat",c="pitch"}break;case"=":if("startSlur"!==c)return a(c)?(n.endChar=r,n):null;n.accidental="natural",c="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"!==c&&"sharp2"!==c&&"flat2"!==c&&"pitch"!==c)return a(c)?(n.endChar=r,n):null;if(n.pitch=E[i.charAt(r)],o.note(u,n),c="octave",s&&0!==u.next_note_duration?(n.duration=u.default_length*u.next_note_duration,u.next_note_duration=0,h=!0):n.duration=u.default_length,u.clef&&"perc"===u.clef.type||u.currentVoice&&"perc"===u.currentVoice.clef){var l=i.charAt(r);n.accidental&&(l={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^"}[n.accidental]+l),t.formatting&&t.formatting.midi&&t.formatting.midi.drummap&&(n.midipitch=t.formatting.midi.drummap[l])}break;case",":if("octave"!==c)return a(c)?(n.endChar=r,n):null;n.pitch-=7;break;case"'":if("octave"!==c)return a(c)?(n.endChar=r,n):null;n.pitch+=7;break;case"x":case"y":case"z":case"Z":if("startSlur"!==c)return a(c)?(n.endChar=r,n):null;n.rest={type:M[i.charAt(r)]},delete n.accidental,delete n.startSlur,delete n.startTie,delete n.endSlur,delete n.endTie,delete n.end_beam,delete n.grace_notes,"multimeasure"===n.rest.type?(n.duration=1,c="Zduration"):(s&&0!==u.next_note_duration?(n.duration=u.default_length*u.next_note_duration,u.next_note_duration=0,h=!0):n.duration=u.default_length,c="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"===c||"duration"===c){var d=e.getFraction(i,r);for(n.duration=n.duration*d.value,n.endChar=d.index;d.index<i.length&&(e.isWhiteSpace(i.charAt(d.index))||"-"===i.charAt(d.index));)"-"===i.charAt(d.index)?n.startTie={}:n=C(n),d.index++;r=d.index-1,c="broken_rhythm"}else if("sharp2"===c)n.accidental="quartersharp",c="pitch";else{if("flat2"!==c){if("Zduration"===c){var f=e.getNumber(i,r);return n.duration=f.num,n.endChar=f.index,n}return null}n.accidental="quarterflat",c="pitch"}break;case"-":if("startSlur"===c)t.addTieToLastNote(),n.endTie=!0;else{if("octave"!==c&&"duration"!==c&&"end_slur"!==c)return"broken_rhythm"===c?(n.endChar=r,n):null;if(n.startTie={},h||!s)return e.isWhiteSpace(i.charAt(r+1))&&C(n),n.endChar=r+1,n;c="broken_rhythm"}break;case" ":case"\t":if(!a(c))return null;n.end_beam=!0;do{"-"===i.charAt(r)&&(n.startTie={}),r++}while(r<i.length&&(e.isWhiteSpace(i.charAt(r))||"-"===i.charAt(r)));if(n.endChar=r,h||!s||"<"!==i.charAt(r)&&">"!==i.charAt(r))return n;r--,c="broken_rhythm";break;case">":case"<":if(!a(c))return null;if(!s)return n.endChar=r,n;var p=_(i,r);r+=p[0]-1,u.next_note_duration=p[2],n.duration=p[1]*n.duration,c="end_slur";break;default:return a(c)?(n.endChar=r,n):null}if(++r===i.length)return a(c)?(n.endChar=r,n):null}return null};function P(){var e={startChar:-1,endChar:-1};u.partForNextLine.length&&(e.part=u.partForNextLine),e.clef=u.currentVoice&&void 0!==u.staves[u.currentVoice.staffNum].clef?r.clone(u.staves[u.currentVoice.staffNum].clef):r.clone(u.clef);var i=u.currentVoice?u.currentVoice.scoreTranspose:0;if(e.key=a.standardKey(u.key.root+u.key.acc+u.key.mode,u.key.root,u.key.acc,i),e.key.mode=u.key.mode,u.key.impliedNaturals&&(e.key.impliedNaturals=u.key.impliedNaturals),u.key.explicitAccidentals)for(var n=0;n<u.key.explicitAccidentals.length;n++){for(var s=!1,c=0;c<e.key.accidentals.length;c++)e.key.accidentals[c].note===u.key.explicitAccidentals[n].note&&(e.key.accidentals[c].acc=u.key.explicitAccidentals[n].acc,s=!0);s||e.key.accidentals.push(u.key.explicitAccidentals[n])}if(u.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,a.addPosToKey(e.clef,e.key),null!==u.meter?(u.currentVoice?(r.each(u.staves,function(t){t.meter=u.meter}),e.meter=u.staves[u.currentVoice.staffNum].meter,u.staves[u.currentVoice.staffNum].meter=null):e.meter=u.meter,u.meter=null):u.currentVoice&&u.staves[u.currentVoice.staffNum].meter&&(e.meter=u.staves[u.currentVoice.staffNum].meter,u.staves[u.currentVoice.staffNum].meter=null),u.currentVoice&&u.currentVoice.name&&(e.name=u.currentVoice.name),u.vocalfont&&(e.vocalfont=u.vocalfont),u.tripletfont&&(e.tripletfont=u.tripletfont),u.style&&(e.style=u.style),u.currentVoice){var o=u.staves[u.currentVoice.staffNum];o.brace&&(e.brace=o.brace),o.bracket&&(e.bracket=o.bracket),o.connectBarLines&&(e.connectBarLines=o.connectBarLines),o.name&&(e.name=o.name[u.currentVoice.index]),o.subname&&(e.subname=o.subname[u.currentVoice.index]),u.currentVoice.stem&&(e.stem=u.currentVoice.stem),u.currentVoice.stafflines&&(e.stafflines=u.currentVoice.stafflines),u.currentVoice.staffscale&&(e.staffscale=u.currentVoice.staffscale),u.currentVoice.scale&&(e.scale=u.currentVoice.scale),u.currentVoice.style&&(e.style=u.currentVoice.style),u.currentVoice.transpose&&(e.clef.transpose=u.currentVoice.transpose)}var h=void 0===u.currentVoice||0===u.currentVoice.staffNum&&0===u.currentVoice.index;0===u.barNumbers&&h&&1!==u.currBarNumber&&(e.barNumber=u.currBarNumber),t.startNewLine(e),u.key.impliedNaturals&&delete u.key.impliedNaturals,u.partForNextLine=""}var L=function(t,i){if("{"===t.charAt(i)){var r=e.getBrackettedSubstring(t,i,1,"}");r[2]||p("Missing the closing '}' while parsing grace note",t,i),")"===t[i+r[0]]&&(r[0]++,r[1]+=")");for(var n=[],s=0,a=!1;s<r[1].length;){var c=!1;"/"===r[1].charAt(s)&&(c=!0,s++);var o=B(r[1],s,{},!1);null!==o?(o.duration=o.duration/(8*u.default_length),c&&(o.acciaccatura=!0),n.push(o),a&&(o.endTie=!0,a=!1),o.startTie&&(a=!0),s=o.endChar,delete o.endChar):(" "===r[1].charAt(s)?n.length>0&&(n[n.length-1].end_beam=!0):p("Unknown character '"+r[1].charAt(s)+"' while parsing grace note",t,i),s++)}if(n.length)return[r[0],n]}return[0]};function H(t,e){if("&"===t.charAt(e)){for(var i=e;t.charAt(e)&&":"!==t.charAt(e)&&"|"!==t.charAt(e);)e++;return[e-i,t.substring(i+1,e)]}return[0]}function z(t){var e=t.origMeter;return e&&"specified"===e.type&&e.value&&0!==e.value.length?parseInt(e.value[0].num,10)/parseInt(e.value[0].den,10):1}var I=function i(n){var s=m.parseHeader(n);s.regular&&function(i){m.resolveTempo(),u.is_in_header=!1;for(var n=0,s=u.iChar;e.isWhiteSpace(i.charAt(n))&&n<i.length;)n++;if(n!==i.length&&"%"!==i.charAt(n)){var a=u.start_new_line;void 0===u.continueall?u.start_new_line=!0:u.start_new_line=!1;var c=0,o=m.letter_to_body_header(i,n);o[0]>0&&(n+=o[0],"V"===o[1]&&(a=!0));for(var h={},l=0;n<i.length;){var d=n;if("%"===i.charAt(n))break;var f=m.letter_to_inline_header(i,n);if(f[0]>0)n+=f[0],"V"===f[1]&&(a=!0);else{var v;for(a&&(P(),a=!1);;)if((v=e.eatWhiteSpace(i,n))>0&&(n+=v),n>0&&""===i.charAt(n-1)&&(v=m.letter_to_body_header(i,n))[0]>0&&("V"===v[1]&&P(),n=v[0],u.start_new_line=!1),(v=A(i,n))[0]>0&&(n+=v[0]),(v=H(i,n))[0]>0&&(t.appendElement("overlay",s,s+1,{}),n+=1,l++),(v=g(i,n))[0]>0){h.chord||(h.chord=[]);var b=e.translateString(v[1]);b=b.replace(/;/g,"\n");for(var y=!1,w=0;w<h.chord.length;w++)h.chord[w].position===v[2]&&(y=!0,h.chord[w].name+="\n"+b);!1===y&&(null===v[2]&&v[3]?h.chord.push({name:b,rel_position:v[3]}):h.chord.push({name:b,position:v[2]})),n+=v[0];var x=e.skipWhiteSpace(i.substring(n));x>0&&(h.force_end_beam_last=!0),n+=x}else if((v=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(i.charAt(n))?k(i,n):[0])[0]>0)null===v[1]?n+1<i.length&&P():v[1].length>0&&(0===v[1].indexOf("style=")?h.style=v[1].substr(6):(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(v[1]))),n+=v[0];else{if(!((v=L(i,n))[0]>0))break;h.gracenotes=v[1],n+=v[0]}if((v=T(i,n))[0]>0){l=0,void 0!==h.gracenotes&&(h.rest={type:"spacer"},h.duration=.125,u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",s+n,s+n+v[0],h),u.measureNotEmpty=!0,h={});var S={type:v[1]};0===S.type.length?p("Unknown bar type",i,n):(u.inEnding&&"bar_thin"!==S.type&&(S.endEnding=!0,u.inEnding=!1),v[2]&&(S.startEnding=v[2],u.inEnding&&(S.endEnding=!0),u.inEnding=!0),void 0!==h.decoration&&(S.decoration=h.decoration),void 0!==h.chord&&(S.chord=h.chord),S.startEnding&&void 0===u.barFirstEndingNum?u.barFirstEndingNum=u.currBarNumber:S.startEnding&&S.endEnding&&u.barFirstEndingNum?u.currBarNumber=u.barFirstEndingNum:S.endEnding&&(u.barFirstEndingNum=void 0),"bar_invisible"!==S.type&&u.measureNotEmpty&&(void 0===u.currentVoice||0===u.currentVoice.staffNum&&0===u.currentVoice.index)&&(u.currBarNumber++,u.barNumbers&&u.currBarNumber%u.barNumbers==0&&(S.barNumber=u.currBarNumber)),u.addFormattingOptions(h,t.formatting,"bar"),t.appendElement("bar",s+n,s+n+v[0],S),u.measureNotEmpty=!1,h={}),n+=v[0],u.currentVoice&&(u.currentVoice.staffNum,u.currentVoice.index)}else if("&"===i[n])p("Overlay not yet supported",i,n),n++;else{if((v=N(i,n)).consumed>0&&(void 0!==v.startSlur&&(h.startSlur=v.startSlur),void 0!==v.triplet&&(c>0?p("Can't nest triplets",i,n):(h.startTriplet=v.triplet,h.tripletMultiplier=v.tripletQ/v.triplet,c=void 0===v.num_notes?v.triplet:v.num_notes)),n+=v.consumed),"["===i.charAt(n)){var E=n;n++;for(var M=null,I=!1,O=!1;!O;){var D=k(i,n);D[0]>0&&(n+=D[0]);var Y=B(i,n,{},!1);if(null!==Y)D[0]>0&&0!==D[1].indexOf("style=")&&(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(D[1])),Y.end_beam&&(h.end_beam=!0,delete Y.end_beam),void 0===h.pitches?(h.duration=Y.duration,h.pitches=[Y]):h.pitches.push(Y),delete Y.duration,D[0]>0&&0===D[1].indexOf("style=")&&(h.pitches[h.pitches.length-1].style=D[1].substr(6)),u.inTieChord[h.pitches.length]&&(Y.endTie=!0,u.inTieChord[h.pitches.length]=void 0),Y.startTie&&(u.inTieChord[h.pitches.length]=!0),n=Y.endChar,delete Y.endChar;else if(" "===i.charAt(n))p("Spaces are not allowed in chords",i,n),n++;else{if(n<i.length&&"]"===i.charAt(n)){n++,0!==u.next_note_duration&&(h.duration=h.duration*u.next_note_duration,u.next_note_duration=0),u.inTie[l]&&(r.each(h.pitches,function(t){t.endTie=!0}),u.inTie[l]=!1),c>0&&0==--c&&(h.endTriplet=!0);for(var F=!1;n<i.length&&!F;){switch(i.charAt(n)){case" ":case"\t":C(h);break;case")":void 0===h.endSlur?h.endSlur=1:h.endSlur++;break;case"-":r.each(h.pitches,function(t){t.startTie={}}),u.inTie[l]=!0;break;case">":case"<":var W=_(i,n);n+=W[0]-1,u.next_note_duration=W[2],M?M*=W[1]:M=W[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var V=e.getFraction(i,n);M=V.value,n=V.index," "===i.charAt(n)&&(I=!0),"-"===i.charAt(n)||")"===i.charAt(n)||" "===i.charAt(n)||"<"===i.charAt(n)||">"===i.charAt(n)?n--:F=!0;break;default:F=!0}F||n++}}else p("Expected ']' to end the chords",i,n);void 0!==h.pitches&&(null!==M&&(h.duration=h.duration*M,I&&C(h)),u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",s+E,s+n,h),u.measureNotEmpty=!0,h={}),O=!0}}}else{var R={},G=B(i,n,R,!0);void 0!==R.endTie&&(u.inTie[l]=!0),null!==G&&(void 0!==G.pitch?(h.pitches=[{}],void 0!==G.accidental&&(h.pitches[0].accidental=G.accidental),h.pitches[0].pitch=G.pitch,G.midipitch&&(h.pitches[0].midipitch=G.midipitch),void 0!==G.endSlur&&(h.pitches[0].endSlur=G.endSlur),void 0!==G.endTie&&(h.pitches[0].endTie=G.endTie),void 0!==G.startSlur&&(h.pitches[0].startSlur=G.startSlur),void 0!==h.startSlur&&(h.pitches[0].startSlur=h.startSlur),void 0!==G.startTie&&(h.pitches[0].startTie=G.startTie),void 0!==h.startTie&&(h.pitches[0].startTie=h.startTie)):(h.rest=G.rest,void 0!==G.endSlur&&(h.endSlur=G.endSlur),void 0!==G.endTie&&(h.rest.endTie=G.endTie),void 0!==G.startSlur&&(h.startSlur=G.startSlur),void 0!==G.startTie&&(h.rest.startTie=G.startTie),void 0!==h.startTie&&(h.rest.startTie=h.startTie)),void 0!==G.chord&&(h.chord=G.chord),void 0!==G.duration&&(h.duration=G.duration),void 0!==G.decoration&&(h.decoration=G.decoration),void 0!==G.graceNotes&&(h.graceNotes=G.graceNotes),delete h.startSlur,u.inTie[l]&&(void 0!==h.pitches?(h.pitches[0].endTie=!0,u.inTie[l]=!1):"spacer"!==h.rest.type&&(h.rest.endTie=!0,u.inTie[l]=!1)),(G.startTie||h.startTie)&&(u.inTie[l]=!0),n=G.endChar,c>0&&0==--c&&(h.endTriplet=!0),G.end_beam&&C(h),h.rest&&"rest"===h.rest.type&&1===h.duration&&z(u)<=1&&(h.rest.type="whole",h.duration=z(u)),u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",s+d,s+n,h),u.measureNotEmpty=!0,h={})}n===d&&(" "!==i.charAt(n)&&"`"!==i.charAt(n)&&p("Unknown character ignored",i,n),n++)}}}}}(s.str),s.newline&&P(),s.words&&function(t,i){if(t){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var n=[],s=0,a=!1,c=function(t){var c=r.strip(i.substring(s,t));if(s=t+1,c.length>0){a&&(c=r.gsub(c,"~"," "));var o=i.charAt(t);return"_"!==o&&"-"!==o&&(o=" "),n.push({syllable:e.translateString(c),divider:o}),a=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&n.length>0&&(r.last(n).divider="-",n.push({skip:!0,to:"next"}));break;case"_":c(o),n.push({skip:!0,to:"slur"});break;case"*":c(o),n.push({skip:!0,to:"next"});break;case"|":c(o),n.push({skip:!0,to:"bar"});break;case"~":a=!0}r.each(t,function(t){if(0!==n.length)if(n[0].skip){switch(n[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&n.shift();break;case"bar":"bar"===t.el_type&&n.shift()}"bar"!==t.el_type&&(void 0===t.lyric?t.lyric=[{syllable:"",divider:" "}]:t.lyric.push({syllable:"",divider:" "}))}else if("note"===t.el_type&&void 0===t.rest){var e=n.shift();e.syllable&&(e.syllable=e.syllable.replace(/ +/g," ")),void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add words before the first line of music",t,0)}(t.getCurrentVoice(),n.substring(2)),s.symbols&&function(t,i){if(t){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var n=[],s=0,a=!1,c=function(t){var c=r.strip(i.substring(s,t));if(s=t+1,c.length>0){a&&(c=r.gsub(c,"~"," "));var o=i.charAt(t);return"_"!==o&&"-"!==o&&(o=" "),n.push({syllable:e.translateString(c),divider:o}),a=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&n.length>0&&(r.last(n).divider="-",n.push({skip:!0,to:"next"}));break;case"_":c(o),n.push({skip:!0,to:"slur"});break;case"*":c(o),n.push({skip:!0,to:"next"});break;case"|":c(o),n.push({skip:!0,to:"bar"});break;case"~":a=!0}r.each(t,function(t){if(0!==n.length)if(n[0].skip)switch(n[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&n.shift();break;case"bar":"bar"===t.el_type&&n.shift()}else if("note"===t.el_type&&void 0===t.rest){var e=n.shift();void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add symbols before the first line of music",t,0)}(t.getCurrentVoice(),n.substring(2)),s.recurse&&i(s.str)};function O(t,e){t.push({el_type:"hint"});for(var i=0;i<e.length;i++){var n=e[i],s=r.clone(n);if(t.push(s),"bar"===n.el_type)return}}function D(t,e){for(var i=0;i<t.length;i++){var r=t[i],n=e[i];if(n)for(var s=0;s<n.voices.length;s++){var a=n.voices[s],c=r.voices[s];c&&O(c,a)}}}this.parse=function(i,s){if(s||(s={}),t.reset(),s.print&&(t.media="print"),u.reset(),s.visualTranspose?(u.globalTranspose=parseInt(s.visualTranspose),0===u.globalTranspose&&(u.globalTranspose=void 0)):u.globalTranspose=void 0,s.lineBreaks){u.lineBreaks={};for(var a=0;a<s.lineBreaks.length;a++)u.lineBreaks[""+(s.lineBreaks[a]+1)]=!0}m.reset(e,p,u,t),i=r.gsub(i,"\r\n","\n"),i=r.gsub(i,"\r","\n");var c=(i=(i=(i+="\n").replace(/\n\\.*\n/g,"\n")).replace(/\\([ \t]*)(%.*)*\n/g,function(t,e,i){return e+" "+(i?" ".substring(0,i.length):"")})).split("\n");0===r.last(c).length&&c.pop();try{s.format&&n.globalFormatting(s.format),r.each(c,function(i){if(s.header_only&&!1===u.is_in_header)throw"normal_abort";if(s.stop_on_warning&&u.warnings)throw"normal_abort";u.is_in_history?":"===i.charAt(1)?(u.is_in_history=!1,I(i)):t.addMetaText("history",e.translateString(e.stripComment(i))):u.inTextBlock?r.startsWith(i,"%%endtext")?(t.addText(u.textBlock),u.inTextBlock=!1):r.startsWith(i,"%%")?u.textBlock+=" "+i.substring(2):u.textBlock+=" "+i:u.inPsBlock?r.startsWith(i,"%%endps")?u.inPsBlock=!1:u.textBlock+=" "+i:I(i),u.iChar+=i.length+1});var o=792,l=612;switch(u.papersize){case"legal":o=1008,l=612;break;case"A4":o=842.4,l=597.6}if(u.landscape){var d=o;o=l,l=d}u.openSlurs=t.cleanUp(l,o,u.barsperstaff,u.staffnonote,u.openSlurs)}catch(t){if("normal_abort"!==t)throw t}s.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var i=t.lines[e].staff;if(i){for(var r=e+1;r<t.lines.length&&void 0===t.lines[r].staff;)r++;r<t.lines.length&&D(i,t.lines[r].staff)}}}(),h.wrapLines(t,u.lineBreaks)}}},function(t,e,i){"use strict";var r=i(0),n={};!function(){var t,e,i,s;n.initialize=function(r,n,a,c){t=r,e=n,s=c,(i=a).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},i.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},i.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},i.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.wordsfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},s.formatting.composerfont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},s.formatting.subtitlefont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},s.formatting.tempofont={face:'"Times New Roman"',size:15,weight:"bold",style:"normal",decoration:"none"},s.formatting.titlefont={face:'"Times New Roman"',size:20,weight:"normal",style:"normal",decoration:"none"},s.formatting.footerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},s.formatting.headerfont={face:'"Times New Roman"',size:12,weight:"normal",style:"normal",decoration:"none"},s.formatting.voicefont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},s.formatting.annotationfont=i.annotationfont,s.formatting.gchordfont=i.gchordfont,s.formatting.historyfont=i.historyfont,s.formatting.infofont=i.infofont,s.formatting.measurefont=i.measurefont,s.formatting.partsfont=i.partsfont,s.formatting.repeatfont=i.repeatfont,s.formatting.textfont=i.textfont,s.formatting.tripletfont=i.tripletfont,s.formatting.vocalfont=i.vocalfont,s.formatting.wordsfont=i.wordsfont};var a={gchordfont:!0,measurefont:!0,partsfont:!0},c=function(t,i,r,n,s){function c(){var c=parseInt(t[0].token);return t.shift(),i?0===t.length?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}:1===t.length&&"box"===t[0].token&&a[s]?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c,box:!0}:(e("Extra parameters in font definition.",r,n),{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}):(e("Can't set just the size of the font since there is no default value.",r,n),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:c})}if("*"===t[0].token){if(t.shift(),"number"===t[0].type)return c();e("Expected font size number after *.",r,n)}if("number"===t[0].type)return c();for(var o,h=[],l="normal",d="normal",u="none",f=!1,p="face",m=!1;t.length;){var g=t.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?h.length>0&&"-"===g.token?(m=!0,h[h.length-1]=h[h.length-1]+g.token):m?(m=!1,h[h.length-1]=h[h.length-1]+g.token):h.push(g.token):"number"===g.type?(o?e("Font size specified twice in font definition.",r,n):o=g.token,p="modifier"):"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(a[s]?f=!0:e('This font style doesn\'t support "box"',r,n),p="finished"):"utf"===v?(g=t.shift(),p="size"):e("Unknown parameter "+g.token+" in font definition.",r,n);break;case"size":"number"===g.type?o?e("Font size specified twice in font definition.",r,n):o=g.token:e("Expected font size in font definition.",r,n),p="modifier";break;case"modifier":"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(a[s]?f=!0:e('This font style doesn\'t support "box"',r,n),p="finished"):e("Unknown parameter "+g.token+" in font definition.",r,n);break;case"finished":e('Extra characters found after "box" in font definition.',r,n)}}void 0===o?i?o=i.size:(e("Must specify the size of the font since there is no default value.",r,n),o=12):o=parseFloat(o);var b=function(t){switch(t){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}}(h=h.join(" ")),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=o,f&&(y.box=!0),y):(y.face=h,y.weight=l,y.style=d,y.decoration=u,y.size=o,f&&(y.box=!0),y)},o=function(t,e,r){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(i[t]=c(e,i[t],r,0,t),i.is_in_header&&(s.formatting[t]=i[t]),null)},h=function(t,e){var i="";r.each(e,function(t){i+=t.token});var n=parseFloat(i);if(isNaN(n)||0===n)return'Directive "'+t+'" requires a number as a parameter.';s.formatting.scale=n},l=function(t,e,r,n,s){if(1!==r.length||"number"!==r[0].type)return'Directive "'+e+'" requires a number as a parameter.';var a=r[0].intt;return void 0!==n&&a<n?'Directive "'+e+'" requires a number greater than or equal to '+n+" as a parameter.":void 0!==s&&a>s?'Directive "'+e+'" requires a number less than or equal to '+s+" as a parameter.":(i[t]=a,null)},d=function(t,e,r){var n=l(t,e,r,0,1);return null!==n?n:(i[t]=1===i[t],null)},u=function(t,e,r,n){if(1!==r.length)return'Directive "'+e+'" requires one of [ '+n.join(", ")+" ] as a parameter.";for(var s=r[0].token,a=!1,c=0;!a&&c<n.length;c++)n[c]===s&&(a=!0);return a?(i[t]=s,null):'Directive "'+e+'" requires one of [ '+n.join(", ")+" ] as a parameter."},f=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],p=["gchord","ptstress","beatstring"],m=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","volinc"],g=["program"],v=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],b=["beat"],y=["drone"],w=["portamento"],x=["expand","grace","trim"],k=["drum","chordname"];n.parseFontChangeLine=function(t){var e=t.split("$");if(e.length>1&&i.setfont){for(var r=[{text:e[0]}],n=1;n<e.length;n++)"0"===e[n].charAt(0)?r.push({text:e[n].substring(1)}):"1"===e[n].charAt(0)&&i.setfont[1]?r.push({font:i.setfont[1],text:e[n].substring(1)}):"2"===e[n].charAt(0)&&i.setfont[2]?r.push({font:i.setfont[2],text:e[n].substring(1)}):"3"===e[n].charAt(0)&&i.setfont[3]?r.push({font:i.setfont[3],text:e[n].substring(1)}):"4"===e[n].charAt(0)&&i.setfont[4]?r.push({font:i.setfont[4],text:e[n].substring(1)}):r[r.length-1].text+="$"+e[n];if(r.length>1)return r}return t};var A=["auto","above","below","hidden"];n.addDirective=function(a){var T=t.tokenize(a,0,a.length);if(0===T.length||"alpha"!==T[0].type)return null;var S=a.substring(a.indexOf(T[0].token)+T[0].token.length);S=t.stripComment(S);var N=T.shift().token.toLowerCase(),_="";switch(N){case"bagpipes":s.formatting.bagpipes=!0;break;case"landscape":i.landscape=!0;break;case"papersize":i.papersize=S;break;case"slurgraces":s.formatting.slurgraces=!0;break;case"stretchlast":s.formatting.stretchlast=!0;break;case"titlecaps":i.titlecaps=!0;break;case"titleleft":s.formatting.titleleft=!0;break;case"measurebox":s.formatting.measurebox=!0;break;case"vocal":return u("vocalPosition",N,T,A);case"dynamic":return u("dynamicPosition",N,T,A);case"gchord":return u("chordPosition",N,T,A);case"ornament":return u("ornamentPosition",N,T,A);case"volume":return u("volumePosition",N,T,A);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(e,i){var r=t.getMeasurement(i);return 0===r.used||0!==i.length?'Directive "'+e+'" requires a measurement as a parameter.':(s.formatting[e]=r.value,null)}(N,T);case"vskip":var C=function(e,i){var r=t.getMeasurement(i);return 0===r.used||0!==i.length?{error:'Directive "'+e+'" requires a measurement as a parameter.'}:r.value}(N,T);return C.error?C.error:(s.addSpacing(C),null);case"scale":h(N,T);break;case"sep":if(0===T.length)s.addSeparator();else{var E=t.getMeasurement(T);if(0===E.used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var M=E.value;if(0===(E=t.getMeasurement(T)).used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var B=E.value;if(0===(E=t.getMeasurement(T)).used||0!==T.length)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var P=E.value;s.addSeparator(M,B,P)}break;case"barsperstaff":if(null!==(_=l("barsperstaff",N,T)))return _;break;case"staffnonote":if(1!==T.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===T[0].token)i.staffnonote=!0;else{if("1"!==T[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+T[0].token+")";i.staffnonote=!1}break;case"printtempo":if(null!==(_=d("printTempo",N,T)))return _;break;case"partsbox":if(null!==(_=d("partsBox",N,T)))return _;i.partsfont.box=i.partsBox;break;case"measurenb":case"barnumbers":if(null!==(_=l("barNumbers",N,T)))return _;break;case"begintext":i.inTextBlock=!0;break;case"continueall":i.continueall=!0;break;case"beginps":i.inPsBlock=!0,e("Postscript ignored",a,0);break;case"deco":S.length>0&&i.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),e("Decoration redefinition ignored",a,0);break;case"text":var L=t.translateString(S);s.addText(n.parseFontChangeLine(L));break;case"center":var H=t.translateString(S);s.addCentered(n.parseFontChangeLine(H));break;case"font":break;case"setfont":var z=t.tokenize(S,0,S.length);if(z.length>=4&&"-"===z[0].token&&"number"===z[1].type){var I=parseInt(z[1].token);I>=1&&I<=4&&(i.setfont||(i.setfont=[]),z.shift(),z.shift(),i.setfont[I]=c(z,i.setfont[I],a,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 o(N,T,a);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(t,e,i){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(s.formatting[t]=c(e,s.formatting[t],i,0,t),null)}(N,T,a);case"barlabelfont":case"barnumberfont":case"barnumfont":return o("measurefont",T,a);case"staves":case"score":i.score_is_present=!0;for(var O,D=function(t,e,n,s,a){(e||0===i.staves.length)&&i.staves.push({index:i.staves.length,numVoices:0});var c=r.last(i.staves);void 0!==n&&(c.bracket=n),void 0!==s&&(c.brace=s),a&&(c.connectBarLines="end"),void 0===i.voices[t]&&(i.voices[t]={staffNum:c.index,index:c.numVoices},c.numVoices++)},Y=!1,F=!1,W=!1,V=!1,R=!1,G=!1,q=!1,j=function(){if(q=!0,O){var t="start";O.staffNum>0&&("start"!==i.staves[O.staffNum-1].connectBarLines&&"continue"!==i.staves[O.staffNum-1].connectBarLines||(t="continue")),i.staves[O.staffNum].connectBarLines=t}};T.length;){var X=T.shift();switch(X.token){case"(":Y?e("Can't nest parenthesis in %%score",a,X.start):(Y=!0,V=!0);break;case")":!Y||V?e("Unexpected close parenthesis in %%score",a,X.start):Y=!1;break;case"[":F?e("Can't nest brackets in %%score",a,X.start):(F=!0,R=!0);break;case"]":!F||R?e("Unexpected close bracket in %%score",a,X.start):(F=!1,i.staves[O.staffNum].bracket="end");break;case"{":W?e("Can't nest braces in %%score",a,X.start):(W=!0,G=!0);break;case"}":!W||G?e("Unexpected close brace in %%score",a,X.start):(W=!1,i.staves[O.staffNum].brace="end");break;case"|":j();break;default:for(var U="";("alpha"===X.type||"number"===X.type)&&(U+=X.token,X.continueId);)X=T.shift();D(U,!Y||V,R?"start":F?"continue":void 0,G?"start":W?"continue":void 0,q),V=!1,R=!1,G=!1,q=!1,O=i.voices[U],"staves"===N&&j()}}break;case"newpage":var K=t.getInt(S);s.addNewPage(0===K.digits?-1:K.value);break;case"abc":var Q=S.split(" ");switch(Q[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var Z=Q.shift();s.addMetaText(N+Z,Q.join(" "));break;default:return"Unknown directive: "+N+Q[0]}break;case"header":case"footer":var $=t.getMeat(S,0,S.length);'"'===($=S.substring($.start,$.end)).charAt(0)&&'"'===$.charAt($.length-1)&&($=$.substring(1,$.length-1));var J=$.split("\t"),tt={};tt=1===J.length?{left:"",center:J[0],right:""}:2===J.length?{left:J[0],center:J[1],right:""}:{left:J[0],center:J[1],right:J[2]},J.length>3&&e("Too many tabs in "+N+": "+J.length+" found.",S,0),s.addMetaTextObj(N,tt);break;case"midi":var et=t.tokenize(S,0,S.length,!0);et.length>0&&"="===et[0].token&&et.shift(),0===et.length?e("Expected midi command",S,0):function(t,i,r){var n=t.shift().token,s=[];if(f.indexOf(n)>=0)0!==t.length&&e("Unexpected parameter in MIDI "+n,r,0);else if(p.indexOf(n)>=0)1!==t.length?e("Expected one parameter in MIDI "+n,r,0):s.push(t[0].token);else if(m.indexOf(n)>=0)1!==t.length?e("Expected one parameter in MIDI "+n,r,0):"number"!==t[0].type?e("Expected one integer parameter in MIDI "+n,r,0):s.push(t[0].intt);else if(g.indexOf(n)>=0)1!==t.length&&2!==t.length?e("Expected one or two parameters in MIDI "+n,r,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+n,r,0):2===t.length&&"number"!==t[1].type?e("Expected integer parameter in MIDI "+n,r,0):(s.push(t[0].intt),2===t.length&&s.push(t[1].intt));else if(v.indexOf(n)>=0)2!==t.length?e("Expected two parameters in MIDI "+n,r,0):"number"!==t[0].type||"number"!==t[1].type?e("Expected two integer parameters in MIDI "+n,r,0):(s.push(t[0].intt),s.push(t[1].intt));else if(w.indexOf(n)>=0)2!==t.length?e("Expected two parameters in MIDI "+n,r,0):"alpha"!==t[0].type||"number"!==t[1].type?e("Expected one string and one integer parameters in MIDI "+n,r,0):(s.push(t[0].token),s.push(t[1].intt));else if("drummap"===n)2===t.length&&"alpha"===t[0].type&&"number"===t[1].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token]=t[1].intt,s=i.formatting.midi.drummap):3===t.length&&"punct"===t[0].type&&"alpha"===t[1].type&&"number"===t[2].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token+t[1].token]=t[2].intt,s=i.formatting.midi.drummap):e("Expected one note name and one integer parameter in MIDI "+n,r,0);else if(x.indexOf(n)>=0)3!==t.length?e("Expected fraction parameter in MIDI "+n,r,0):"number"!==t[0].type||"/"!==t[1].token||"number"!==t[2].type?e("Expected fraction parameter in MIDI "+n,r,0):(s.push(t[0].intt),s.push(t[2].intt));else if(b.indexOf(n)>=0)4!==t.length?e("Expected four parameters in MIDI "+n,r,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type?e("Expected four integer parameters in MIDI "+n,r,0):(s.push(t[0].intt),s.push(t[1].intt),s.push(t[2].intt),s.push(t[3].intt));else if(y.indexOf(n)>=0)5!==t.length?e("Expected five parameters in MIDI "+n,r,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type||"number"!==t[4].type?e("Expected five integer parameters in MIDI "+n,r,0):(s.push(t[0].intt),s.push(t[1].intt),s.push(t[2].intt),s.push(t[3].intt),s.push(t[4].intt));else if(g.indexOf(n)>=0)1!==t.length||4!==t.length?e("Expected one or two parameters in MIDI "+n,r,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+n,r,0):4===t.length?("octave"!==t[1].token&&e("Expected octave parameter in MIDI "+n,r,0),"="!==t[2].token&&e("Expected octave parameter in MIDI "+n,r,0),"number"!==t[3].type&&e("Expected integer parameter for octave in MIDI "+n,r,0)):(s.push(t[0].intt),4===t.length&&s.push(t[3].intt));else if(k.indexOf(n)>=0)if(t.length<2)e("Expected string parameter and at least one integer parameter in MIDI "+n,r,0);else if("alpha"!==t[0].type)e("Expected string parameter and at least one integer parameter in MIDI "+n,r,0);else{var a=t.shift();for(s.push(a.token);t.length>0;)"number"!==(a=t.shift()).type&&e("Expected integer parameter in MIDI "+n,r,0),s.push(a.intt)}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:n,params:s}):(void 0===i.formatting.midi&&(i.formatting.midi={}),i.formatting.midi[n]=s)}(et,s,S);break;case"map":case"percmap":case"playtempo":case"auquality":case"continuous":case"nobarcheck":s.formatting[N]=S;break;default:return"Unknown directive: "+N}return null},n.globalFormatting=function(r){for(var n in r)if(r.hasOwnProperty(n)){var s,a=""+r[n],c=t.tokenize(a,0,a.length);switch(n){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":o(n,c,a);break;case"scale":h(n,c);break;case"partsbox":null!==(s=d("partsBox",n,c))&&e(s),i.partsfont.box=i.partsBox;break;default:e("Formatting directive unrecognized: ",n,0)}}}}(),t.exports=n},function(t,e,i){"use strict";var r=i(0),n=i(8),s=i(11),a={};!function(){var t,e,i,c;a.initialize=function(r,n,s,a){t=r,e=n,i=s,c=a},a.standardKey=function(t,e,r,n){var a={acc:"sharp",note:"f"},c={acc:"sharp",note:"c"},o={acc:"sharp",note:"g"},h={acc:"sharp",note:"d"},l={acc:"sharp",note:"A"},d={acc:"sharp",note:"e"},u={acc:"sharp",note:"B"},f={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[a,c,o,h,l,d,u],"A#m":[a,c,o,h,l,d,u],"G#Mix":[a,c,o,h,l,d,u],"D#Dor":[a,c,o,h,l,d,u],"E#Phr":[a,c,o,h,l,d,u],"F#Lyd":[a,c,o,h,l,d,u],"B#Loc":[a,c,o,h,l,d,u],"F#":[a,c,o,h,l,d],"D#m":[a,c,o,h,l,d],"C#Mix":[a,c,o,h,l,d],"G#Dor":[a,c,o,h,l,d],"A#Phr":[a,c,o,h,l,d],BLyd:[a,c,o,h,l,d],"E#Loc":[a,c,o,h,l,d],B:[a,c,o,h,l],"G#m":[a,c,o,h,l],"F#Mix":[a,c,o,h,l],"C#Dor":[a,c,o,h,l],"D#Phr":[a,c,o,h,l],ELyd:[a,c,o,h,l],"A#Loc":[a,c,o,h,l],E:[a,c,o,h],"C#m":[a,c,o,h],BMix:[a,c,o,h],"F#Dor":[a,c,o,h],"G#Phr":[a,c,o,h],ALyd:[a,c,o,h],"D#Loc":[a,c,o,h],A:[a,c,o],"F#m":[a,c,o],EMix:[a,c,o],BDor:[a,c,o],"C#Phr":[a,c,o],DLyd:[a,c,o],"G#Loc":[a,c,o],D:[a,c],Bm:[a,c],AMix:[a,c],EDor:[a,c],"F#Phr":[a,c],GLyd:[a,c],"C#Loc":[a,c],G:[a],Em:[a],DMix:[a],ADor:[a],BPhr:[a],CLyd:[a],"F#Loc":[a],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[f],Dm:[f],CMix:[f],GDor:[f],APhr:[f],BbLyd:[f],ELoc:[f],Bb:[f,p],Gm:[f,p],FMix:[f,p],CDor:[f,p],DPhr:[f,p],EbLyd:[f,p],ALoc:[f,p],Eb:[f,p,m],Cm:[f,p,m],BbMix:[f,p,m],FDor:[f,p,m],GPhr:[f,p,m],AbLyd:[f,p,m],DLoc:[f,p,m],Ab:[f,p,m,g],Fm:[f,p,m,g],EbMix:[f,p,m,g],BbDor:[f,p,m,g],CPhr:[f,p,m,g],DbLyd:[f,p,m,g],GLoc:[f,p,m,g],Db:[f,p,m,g,v],Bbm:[f,p,m,g,v],AbMix:[f,p,m,g,v],EbDor:[f,p,m,g,v],FPhr:[f,p,m,g,v],GbLyd:[f,p,m,g,v],CLoc:[f,p,m,g,v],Gb:[f,p,m,g,v,b],Ebm:[f,p,m,g,v,b],DbMix:[f,p,m,g,v,b],AbDor:[f,p,m,g,v,b],BbPhr:[f,p,m,g,v,b],CbLyd:[f,p,m,g,v,b],FLoc:[f,p,m,g,v,b],Cb:[f,p,m,g,v,b,y],Abm:[f,p,m,g,v,b,y],GbMix:[f,p,m,g,v,b,y],DbDor:[f,p,m,g,v,b,y],EbPhr:[f,p,m,g,v,b,y],FbLyd:[f,p,m,g,v,b,y],BbLoc:[f,p,m,g,v,b,y],"A#":[f,p],"B#":[],"D#":[f,p,m],"E#":[f],"G#":[f,p,m,g],Gbm:[a,c,o,h,l,d,u]};return s.keySignature(i,w,t,e,r,n)};var o={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}},h=function(t,e){var i=o[t];return(i?i.mid:0)+e};a.fixClef=function(t){var e=o[t.type];e&&(t.clefPos=e.pitch,t.type=e.clef)},a.deepCopyKey=function(t){var e={accidentals:[],root:t.root,acc:t.acc,mode:t.mode};return r.each(t.accidentals,function(t){e.accidentals.push(r.clone(t))}),e};var l={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};a.addPosToKey=function(t,e){var i=t.verticalPos;r.each(e.accidentals,function(t){var e=l[t.note];e-=i,t.verticalPos=e}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){var e=l[t.note];e-=i,t.verticalPos=e}),i<-10?(r.each(e.accidentals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)})):i<-4?(r.each(e.accidentals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)})):i>=7&&(r.each(e.accidentals,function(t){t.verticalPos+=7}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos+=7}))},a.fixKey=function(t,e){var i=r.clone(e);return a.addPosToKey(t,i),i};var d=function(t){var e=0,i=t.charAt(e++);"^"!==i&&"_"!==i||(i=t.charAt(e++));var r=l[i];for(void 0===r&&(r=6);e<t.length;e++)if(","===t.charAt(e))r-=7;else{if("'"!==t.charAt(e))break;r+=7}return{mid:r-6,str:t.substring(e)}};a.parseKey=function(r){0===r.length&&(r="none");var s=t.tokenize(r,0,r.length),c={};switch(s[0].token){case"HP":n.addDirective("bagpipes"),i.key={root:"HP",accidentals:[],acc:"",mode:""},c.foundKey=!0,s.shift();break;case"Hp":n.addDirective("bagpipes"),i.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},c.foundKey=!0,s.shift();break;case"none":i.key={root:"none",accidentals:[],acc:"",mode:""},c.foundKey=!0,s.shift();break;default:var o=t.getKeyPitch(s[0].token);if(o.len>0){c.foundKey=!0;var l="",d="";s[0].token.length>1?s[0].token=s[0].token.substring(1):s.shift();var u=o.token;if(s.length>0){var f=t.getSharpFlat(s[0].token);if(f.len>0&&(s[0].token.length>1?s[0].token=s[0].token.substring(1):s.shift(),u+=f.token,l=f.token),s.length>0){var p=t.getMode(s[0].token);p.len>0&&(s.shift(),u+=p.token,d=p.token)}if(void 0===a.standardKey(u,o.token,l,0))return e("Unsupported key signature: "+u,r,0),c}var m=a.deepCopyKey(i.key),g=i.globalTranspose?-i.globalTranspose:0;if(i.key=a.deepCopyKey(a.standardKey(u,o.token,l,g)),i.key.mode=d,m){for(var v,b=0;b<i.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&i.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(i.key.impliedNaturals||(i.key.impliedNaturals=[]),i.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===s.length)return c;if("exp"===s[0].token&&s.shift(),0===s.length)return c;if("oct"===s[0].token&&s.shift(),0===s.length)return c;var y,w=t.getKeyAccidentals2(s);if(w.warn&&e(w.warn,r,0),w.accs){c.foundKey||(c.foundKey=!0,i.key={root:"none",acc:"",mode:"",accidentals:[]}),function(t){for(var e=0;e<t.length;e++)"b"===t[e].note?t[e].note="B":"a"===t[e].note?t[e].note="A":"F"===t[e].note?t[e].note="f":"E"===t[e].note?t[e].note="e":"D"===t[e].note?t[e].note="d":"C"===t[e].note?t[e].note="c":"G"===t[e].note&&"sharp"===t[e].acc?t[e].note="g":"g"===t[e].note&&"flat"===t[e].acc&&(t[e].note="G")}(w.accs);for(var x=0;x<w.accs.length;x++){for(var k=!1,A=0;A<i.key.accidentals.length&&!k;A++)i.key.accidentals[A].note===w.accs[x].note&&(k=!0,i.key.accidentals[A].acc!==w.accs[x].acc&&(i.key.accidentals[A].acc=w.accs[x].acc,i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x])));if(!k&&(i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x]),i.key.accidentals.push(w.accs[x]),i.key.impliedNaturals))for(var T=0;T<i.key.impliedNaturals.length;T++)i.key.impliedNaturals[T].note===w.accs[x].note&&i.key.impliedNaturals.splice(T,1)}}for(;s.length>0;)switch(s[0].token){case"m":case"middle":if(s.shift(),0===s.length)return e("Expected = after middle",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after middle",r,y.start);break}if(0===s.length)return e("Expected parameter after middle=",r,0),c;var S=t.getPitchFromTokens(s);S.warn&&e(S.warn,r,0),S.position&&(i.clef.verticalPos=S.position-6);break;case"transpose":if(s.shift(),0===s.length)return e("Expected = after transpose",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after transpose",r,y.start);break}if(0===s.length)return e("Expected parameter after transpose=",r,0),c;if("number"!==s[0].type){e("Expected number after transpose",r,s[0].start);break}i.clef.transpose=s[0].intt,s.shift();break;case"stafflines":if(s.shift(),0===s.length)return e("Expected = after stafflines",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after stafflines",r,y.start);break}if(0===s.length)return e("Expected parameter after stafflines=",r,0),c;if("number"!==s[0].type){e("Expected number after stafflines",r,s[0].start);break}i.clef.stafflines=s[0].intt,s.shift();break;case"staffscale":if(s.shift(),0===s.length)return e("Expected = after staffscale",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after staffscale",r,y.start);break}if(0===s.length)return e("Expected parameter after staffscale=",r,0),c;if("number"!==s[0].type){e("Expected number after staffscale",r,s[0].start);break}i.clef.staffscale=s[0].floatt,s.shift();break;case"style":if(s.shift(),0===s.length)return e("Expected = after style",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after style",r,y.start);break}if(0===s.length)return e("Expected parameter after style=",r,0),c;switch(s[0].token){case"normal":case"harmonic":case"rhythm":case"x":i.style=s[0].token,s.shift();break;default:e("error parsing style element: "+s[0].token,r,s[0].start)}break;case"clef":if(s.shift(),0===s.length)return e("Expected = after clef",r,0),c;if("="!==(y=s.shift()).token){e("Expected = after clef",r,y.start);break}if(0===s.length)return e("Expected parameter after clef=",r,0),c;case"treble":case"bass":case"alto":case"tenor":case"perc":var N=s.shift();switch(N.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":N.token="alto";break;case"F":N.token="bass";break;case"G":N.token="treble";break;case"c":N.token="alto";break;case"f":N.token="bass";break;case"g":N.token="treble";break;default:e("Expected clef name. Found "+N.token,r,N.start)}s.length>0&&"number"===s[0].type&&(N.token+=s[0].token,s.shift()),s.length>1&&("-"===s[0].token||"+"===s[0].token||"^"===s[0].token||"_"===s[0].token)&&"8"===s[1].token&&(N.token+=s[0].token+s[1].token,s.shift(),s.shift()),i.clef={type:N.token,verticalPos:h(N.token,0)},i.currentVoice&&void 0!==i.currentVoice.transpose&&(i.clef.transpose=i.currentVoice.transpose),c.foundClef=!0;break;default:e("Unknown parameter: "+s[0].token,r,s[0].start),s.shift()}return c};a.parseVoice=function(r,n,s){var a=t.getMeat(r,n,s),o=a.start,l=a.end,u=t.getToken(r,o,l);if(0!==u.length){var f=!1;void 0===i.voices[u]&&(i.voices[u]={},f=!0,i.score_is_present&&e("Can't have an unknown V: id when the %score directive is present",r,o)),o+=u.length,o+=t.eatWhiteSpace(r,o);for(var p={startStaff:f},m=function(i){var n=t.getVoiceToken(r,o,l);void 0!==n.warn?e("Expected value for "+i+" in voice: "+n.warn,r,o):0===n.token.length&&'"'!==r.charAt(o)?e("Expected value for "+i+" in voice",r,o):p[i]=n.token,o+=n.len},g=function(n,s,a){var c=t.getVoiceToken(r,o,l);void 0!==c.warn?e("Expected value for "+s+" in voice: "+c.warn,r,o):0===c.token.length&&'"'!==r.charAt(o)?e("Expected value for "+s+" in voice",r,o):("number"===a&&(c.token=parseFloat(c.token)),i.voices[n][s]=c.token),o+=c.len},v=function(n,s){var a=t.getVoiceToken(r,o,l);if(void 0!==a.warn)e("Expected one of (_B, _E, _b, _e) for "+s+" in voice: "+a.warn,r,o);else if(0===a.token.length&&'"'!==r.charAt(o))e("Expected one of (_B, _E, _b, _e) for "+s+" in voice",r,o);else{var c={_B:2,_E:9,_b:-10,_e:-3}[a.token];c?i.voices[n][s]=c:e("Expected one of (_B, _E, _b, _e) for "+s+" in voice",r,o)}o+=a.len};o<l;){var b=t.getVoiceToken(r,o,l);if(o+=b.len,b.warn)e("Error parsing voice: "+b.warn,r,o);else{var y=null;switch(b.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=h(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=b.token.replace(/[',]/g,""),p.verticalPos=h(p.clef,0),i.voices[u].clef=b.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!==(y=t.getVoiceToken(r,o,l)).warn?e("Expected value for stems in voice: "+y.warn,r,o):"up"===y.token||"down"===y.token?i.voices[u].stem=y.token:e("Expected up or down for voice stem",r,o),o+=y.len;break;case"up":case"down":i.voices[u].stem=b.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=d(p.verticalPos).mid;break;case"gchords":case"gch":i.voices[u].suppressChords=!0,"0"===(y=t.getVoiceToken(r,o,l)).token&&(o+=y.len);break;case"space":case"spc":m("spacing");break;case"scale":g(u,"scale","number");break;case"score":v(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"style":void 0!==(y=t.getVoiceToken(r,o,l)).warn?e("Expected value for style in voice: "+y.warn,r,o):"normal"===y.token||"harmonic"===y.token||"rhythm"===y.token||"x"===y.token?i.voices[u].style=y.token:e("Expected one of [normal, harmonic, rhythm, x] for voice style",r,o),o+=y.len}}o+=t.eatWhiteSpace(r,o)}if((p.startStaff||0===i.staves.length)&&(i.staves.push({index:i.staves.length,meter:i.origMeter}),i.score_is_present||(i.staves[i.staves.length-1].numVoices=0)),void 0===i.voices[u].staffNum){i.voices[u].staffNum=i.staves.length-1;var x=0;for(var k in i.voices)i.voices.hasOwnProperty(k)&&i.voices[k].staffNum===i.voices[u].staffNum&&x++;i.voices[u].index=x-1}var A=i.staves[i.voices[u].staffNum];i.score_is_present||A.numVoices++,p.clef&&(A.clef={type:p.clef,verticalPos:p.verticalPos}),p.spacing&&(A.spacing_below_offset=p.spacing),p.verticalPos&&(A.verticalPos=p.verticalPos),p.name&&(A.name?A.name.push(p.name):A.name=[p.name]),p.subname&&(A.subname?A.subname.push(p.subname):A.subname=[p.subname]),function(t){i.currentVoice=i.voices[t],c.setCurrentVoice(i.currentVoice.staffNum,i.currentVoice.index)}(u)}else e("Expected a voice id",r,o)}}(),t.exports=a},function(t,e,i){"use strict";function r(t,e){for(var i=[],r=null,n=0;n<t.length;n++){var s=t[n];s.top!==r&&(i.push({milliseconds:s.milliseconds-e,top:s.top,bottom:s.top+s.height}),r=s.top)}return i}t.exports=function(t,e){var i=this;if(e||(e={}),i.qpm=e.qpm,!i.qpm){var n=t.metaText?t.metaText.tempo:null;i.qpm=t.getBpm(n)}i.extraMeasuresAtBeginning=e.extraMeasuresAtBeginning?e.extraMeasuresAtBeginning:0,i.beatCallback=e.beatCallback,i.eventCallback=e.eventCallback,i.lineEndCallback=e.lineEndCallback,i.lineEndAnticipation=e.lineEndAnticipation?e.lineEndAnticipation:0,i.replaceTarget=function(t){t.setTiming(i.qpm,i.extraMeasuresAtBeginning),0!==t.noteTimings.length&&(i.lineEndCallback&&(i.lineEndTimings=r(t.noteTimings,i.lineEndAnticipation)),i.noteTimings=t.noteTimings)},i.replaceTarget(t),0!==i.noteTimings.length&&(i.noteTimings=t.noteTimings,i.millisecondsPerBeat=1e3/(i.qpm/60),i.lastMoment=i.noteTimings[i.noteTimings.length-1].milliseconds,i.startTime=null,i.currentBeat=0,i.currentEvent=0,i.isPaused=!1,i.pausedTime=null,i.justUnpaused=!1,i.doTiming=function(t){if(i.startTime){if(i.justUnpaused){var e=t-i.pausedTime;i.startTime+=e}}else i.startTime=t;if(i.justUnpaused=!1,i.isPaused)i.pausedTime=t;else{var r=t-i.startTime;for((r+=50)<i.lastMoment&&requestAnimationFrame(i.doTiming),i.currentBeat*i.millisecondsPerBeat<r&&(i.beatCallback&&i.beatCallback(i.currentBeat),i.currentBeat++);i.noteTimings.length>i.currentEvent&&i.noteTimings[i.currentEvent].milliseconds<r;)i.eventCallback&&"event"===i.noteTimings[i.currentEvent].type&&i.eventCallback(i.noteTimings[i.currentEvent]),i.currentEvent++;i.lineEndCallback&&i.lineEndTimings.length&&i.lineEndTimings[0].milliseconds<=r&&(i.lineEndCallback(i.lineEndTimings[0]),i.lineEndTimings.shift()),r>=i.lastMoment&&i.eventCallback&&i.eventCallback(null)}},i.start=function(){i.isPaused&&(i.isPaused=!1,i.justUnpaused=!0),requestAnimationFrame(i.doTiming)},i.pause=function(){i.isPaused=!0},i.reset=function(){i.currentBeat=0,i.currentEvent=0,i.startTime=null,i.pausedTime=null,i.lineEndCallback&&(i.lineEndTimings=r(i.noteTimings,i.lineEndAnticipation))},i.stop=function(){i.pause(),i.reset()})}},function(t,e,i){"use strict";var r={},n={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},s=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],a=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];r.keySignature=function(t,e,i,r,c,o){o||(o=0),t.localTransposeVerticalMovement=0,t.localTransposePreferFlats=!1;var h=e[i];if(!h)return t.key;if(t.localTranspose=(t.globalTranspose?t.globalTranspose:0)+o,!t.localTranspose)return{accidentals:h,root:r,acc:c};if(t.globalTransposeOrigKeySig=h,t.localTranspose%12==0)return t.localTransposeVerticalMovement=t.localTranspose/12*7,{accidentals:h,root:r,acc:c};var l=i[0];"b"===i[1]||"#"===i[1]?(l+=i[1],i=i.substr(2)):i=i.substr(1);for(var d=n[l]+t.localTranspose;d<0;)d+=12;d>11&&(d%=12);var u="m"===i[0]?a[d]:s[d],f=u+i,p=e[f];p.length>0&&"flat"===p[0].acc&&(t.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-l.charCodeAt(0);return t.localTranspose>0?m<0?m+=7:0===m&&("#"!==l[1]&&"b"!==f[1]||(m+=7)):t.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==l[1]&&"#"!==f[1]||(m-=7))),t.localTranspose>0?t.localTransposeVerticalMovement=m+7*Math.floor(t.localTranspose/12):t.localTransposeVerticalMovement=m+7*Math.ceil(t.localTranspose/12),{accidentals:p,root:u[0],acc:u.length>1?u[1]:""}};var c=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],o=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"];r.chordName=function(t,e){if(t.localTranspose&&t.localTranspose%12!=0){for(var i=t.localTranspose;i<0;)i+=12;i>11&&(i%=12);for(var r=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),n=0;n<r.length;n++)if("~"===r[n][0]){var s=parseInt(r[n].substr(1),10);(s+=i)>11&&(s-=12),r[n]=t.localTransposePreferFlats?o[s]:c[s]}e=r.join("")}return e};var h=["c","d","e","f","g","a","b"];var l={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},d={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};r.note=function(t,e){if(t.localTranspose){var i=e.pitch;if(e.pitch=e.pitch+t.localTransposeVerticalMovement,e.accidental){var r=function(t,e,i,r,n){for(var s=h[(t+49)%7],a=0,c=0;c<r.length;c++)r[c].note.toLowerCase()===s&&(a=l[r[c].acc]);for(var o=l[i]-a,d=h[(e+49)%7],u=0,f=0;f<n.accidentals.length;f++)n.accidentals[f].note.toLowerCase()===d&&(u=l[n.accidentals[f].acc]);var p=o+u;return p<-2&&(e--,p+="c"===d||"f"===d?1:2),p>2&&(e++,p-="b"===d||"e"===d?1:2),[e,p]}(i,e.pitch,e.accidental,t.globalTransposeOrigKeySig,t.targetKey);e.pitch=r[0],e.accidental=d[r[1]]}}},t.exports=r},function(t,e,i){"use strict";function r(t,e){for(var i=e.length+1,r=t.total/i,s=0,a=0,c=0;c<=e.length;c++){var o=c===e.length?t.measureWidths.length-1:e[c],h=n(t.measureWidths,a,o,r);a=o+1,s=Math.max(s,h)}return s}function n(t,e,i,r){var n=function(t,e,i){for(var r=0,n=e;n<=i;n++)r+=t[n];return r}(t,e,i);return Math.abs(r-n)}function s(t,e,i,s){var a=t.total/(i.length+1),c=r(t,i);if(0===i.length)return{failed:!0,reason:"Only one line."};var o=i[i.length-1]+1;if(c>n(t.measureWidths,o,t.measureWidths.length,a))return{failed:!0,reason:"Last line is not too short."};for(var h=function(t,e,i,r){for(var n=0,s=[],a=t.length-1;a>=0&&!((n+=t[a])>r);a--)n>i&&a<e&&s.push(a-1);return s}(t.measureWidths,o,a-c,a+c),l=function t(e,i,r,n,s,a){for(var c=0,o=[],h=i;h<e.length&&c<s&&!((c+=e[h])>s);h++)if(c>n){if(r>0&&o.length<1200)for(var l=t(e,h+1,r-1,n,s,a),d=0;d<l.length;d++)o.push([h].concat(l[d]));1===r&&a.indexOf(h)>=0&&o.push([h])}return o}(t.measureWidths,0,i.length,a-c,a+c,h),d=!0,u=0;u<l.length;u++){var f=r(t,l[u]);f<c&&(s.attempts.push({type:"Optimize try",lineBreaks:l[u],variance:Math.round(c),newVariance:Math.round(f),totalAttempts:l.length}),c=f,i=l[u],d=!1)}if(d&&(s.attempts.push({type:"Optimize try",lineBreaks:i,variance:c,reason:"None of the "+l.length+" attempts were better."}),i.length>0)){var p=[].concat(i);p[p.length-1]--,f=r(t,p),s.attempts.push({type:"Optimize last try",lineBreaks:l[u],variance:Math.round(c),newVariance:Math.round(f),totalAttempts:l.length}),f<c&&(c=f,i=p,d=!1)}return{failed:d,lineBreaks:i,variance:c}}function a(t,e,i,r,n){var s=new n,a={lineBreaks:t,staffwidth:e};for(var c in r)r.hasOwnProperty(c)&&"wrap"!==c&&"staffwidth"!==c&&(a[c]=r[c]);return s.parse(i,a),{tune:s.getTune(),revisedParams:a}}t.exports={wrapLines:function(t,e){if(e&&0!==t.lines.length){for(var i=[],r=[],n=[],s=[],a=[],c="",o=0;o<t.lines.length;o++){var h=t.lines[o];if(h.staff)for(var l=h.staff,d=0;d<l.length;d++){void 0===r[d]&&(r[d]=[],n[d]=[],s[d]=[],a[d]=[]);for(var u=l[d],f=u.voices,p=0;p<f.length;p++){void 0===r[d][p]&&(r[d][p]=!0,n[d][p]=0,s[d][p]=0,a[d][p]=0);for(var m=f[p],g=0;g<m.length;g++){if(r[d][p]){if(i[n[d][p]]||(i[n[d][p]]={staff:[]}),!i[n[d][p]].staff[d])for(var v in i[n[d][p]].staff[d]={voices:[]},u)u.hasOwnProperty(v)&&("meter"===v?1!==i.length&&c===JSON.stringify(u[v])||(c=JSON.stringify(u[v]),i[n[d][p]].staff[d][v]=u[v]):"voices"!==v&&(i[n[d][p]].staff[d][v]=u[v]));a[d][p]&&(i[n[d][p]].staff[d].barNumber=a[d][p]),r[d][p]=!1}var b=m[g];i[n[d][p]].staff[d].voices[p]||(i[n[d][p]].staff[d].voices[p]=[]),i[n[d][p]].staff[d].voices[p].push(b),"bar"===b.el_type&&(s[d][p]++,e[s[d][p]]&&(r[d][p]=!0,n[d][p]++,a[d][p]=b.barNumber,delete b.barNumber))}}}else i.push(h),n++}t.lines=i}},calcLineWraps:function(t,e,i,r,n,c){var o=r.scale?Math.max(r.scale,.1):1,h=r.wrap.minSpacing?Math.max(parseFloat(r.wrap.minSpacing),1):1,l=r.wrap.minSpacingLimit?Math.max(parseFloat(r.wrap.minSpacingLimit),1):h-.1,d=r.wrap.maxSpacing?Math.max(parseFloat(r.wrap.maxSpacing),1):void 0;r.wrap.lastLineLimit&&!d&&(d=Math.max(parseFloat(r.wrap.lastLineLimit),1)),r.wrap.targetHeight&&Math.max(parseInt(r.wrap.targetHeight,10),100);var u=r.wrap.preferredMeasuresPerLine?Math.max(parseInt(r.wrap.preferredMeasuresPerLine,10),1):void 0,f=(r.staffwidth-e.left)/h/o,p=(r.staffwidth-e.left)/d/o,m=(r.staffwidth-e.left)/l/o,g={widths:e,lineBreakPoint:f,minLineSize:p,attempts:[],staffWidth:r.staffwidth,minWidth:Math.round(m)},v=null;if(u){var b=function(t,e,i){for(var r=[],n=[],s=0,a=!1,c=0;c<t.length;c++)s+=t[c],c%i==i-1&&(s>e&&(a=!0),c!==t.length-1&&r.push(c),n.push(Math.round(s)),s=0);return{failed:a,totals:n,lineBreaks:r}}(e.measureWidths,f,u);g.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:u,lineBreaks:b.lineBreaks,failed:b.failed,totals:b.totals}),b.failed||(v=b.lineBreaks)}if(!v){var y=function(t,e){for(var i=[],r=[],n=0,s=0;s<t.length;s++){var a=t[s],c=n+a;c<e?n=c:e-n<c-e&&n>0?(i.push(s-1),r.push(Math.round(n-a)),n=a):s<t.length-1&&(i.push(s),r.push(Math.round(n)),n=0)}return r.push(Math.round(n)),{lineBreaks:i,totals:r}}(e.measureWidths,f);g.attempts.push({type:"Free Form",lineBreaks:y.lineBreaks,totals:y.totals}),y=s(e,0,v=y.lineBreaks,g),g.attempts.push({type:"Optimize",failed:y.failed,reason:y.reason,lineBreaks:y.lineBreaks,totals:y.totals}),y.failed||(v=y.lineBreaks)}var w=r.staffwidth,x=a(v,w,i,r,n),k=c.getMeasureWidths(x.tune),A=!0;return g.attempts.push({type:"heightCheck",height:k.height}),0===v.length&&p>e.total&&(w=e.total*d*o+e.left,g.attempts.push({type:"too sparse",newWidth:Math.round(w)}),A=!1),A||(x=a(v,w,i,r,n)),x.explanation=g,x}}},function(t,e,i){"use strict";var r=i(1),n=i(23),s=i(37),a=function(t,e){e=e||{},this.responsive=e.responsive,this.space=3*r.SPACE,this.scale=e.scale?parseFloat(e.scale):0,this.scale>.1||(this.scale=void 0),e.staffwidth?(this.staffwidthScreen=e.staffwidth,this.staffwidthPrint=e.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.editable=e.editable||!1,this.listeners=[],e.clickListener&&this.addSelectListener(e.clickListener),this.renderer=new s(t,e.regression,e.add_classes),this.renderer.setPaddingOverride(e),this.renderer.controller=this,this.reset()};function c(t,e,i,r,n,s,a){return t&&r/i<.66&&!e?null:Math.abs(i-r)<2?null:s>0?((n=(i-(r-s*n))/s)*a>50&&(n=50/a),n):null}a.prototype.reset=function(){this.selected=[],this.ingroup=!1,this.staffgroups=[],this.lastStaffGroupIndex=-1,this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset()},a.prototype.engraveABC=function(t,e){void 0===t[0]&&(t=[t]),this.reset();for(var i=0;i<t.length;i++)void 0===e&&(e=i),this.engraveTune(t[i],e);if(this.renderer.doRegression)return this.renderer.regressionLines.join("\n")},a.prototype.adjustNonScaledItems=function(t){this.width/=t,this.renderer.adjustNonScaledItems(t)},a.prototype.getMeasureWidths=function(t){this.reset(),this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new n(t.formatting.bagpipes,this.renderer,0),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var e=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(e=void 0),void 0===e&&(e=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(e);var i={left:0,measureWidths:[],height:0,total:0};i.height=this.renderer.padding.top+this.renderer.spacing.music+this.renderer.padding.bottom+24;for(var s=!1,a=0;a<t.lines.length;a++){var c=t.lines[a];if(c.staff){if(c.staffGroup=this.engraver.createABCLine(c.staff,s?null:t.metaText.tempo),c.staffGroup.layout(0,this.renderer,!1),c.staffGroup.voices.length>0)for(var o=c.staffGroup.voices[0],h=!1,l=0,d=0;d<o.children.length;d++){var u=o.children[d];h||u.isClef||u.isKeySig||(h=!0,i.left=u.x,l=u.x),"bar"===u.type&&(i.measureWidths.push(u.x-l),i.total+=u.x-l,l=u.x)}s=!0,i.height+=c.staffGroup.calcHeight()*r.STEP}}return i},a.prototype.engraveTune=function(t,e){this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new n(t.formatting.bagpipes,this.renderer,e),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var i,r,s=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(s=void 0),void 0===s&&(s=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(s);var a=!1;for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staff&&(r.staffGroup=this.engraver.createABCLine(r.staff,a?null:t.metaText.tempo),a=!0);var c=this.width;for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staff&&(this.setXSpacing(r.staffGroup,t.formatting,i===t.lines.length-1,!1),r.staffGroup.w>c&&(c=r.staffGroup.w));for(i=0;i<t.lines.length;i++)if((r=t.lines[i]).staffGroup&&r.staffGroup.voices){for(var o=0;o<r.staffGroup.voices.length;o++)r.staffGroup.voices[o].layoutBeams();r.staffGroup.setUpperAndLowerElements(this.renderer)}for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staffGroup&&(r.staffGroup.height=r.staffGroup.calcHeight());this.renderer.topMargin(t),this.renderer.engraveTopText(this.width,t),this.renderer.addMusicPadding(),this.staffgroups=[],this.lastStaffGroupIndex=-1;for(var h=0;h<t.lines.length;h++)this.renderer.lineNumber=h,(r=t.lines[h]).staff?this.engraveStaffLine(r.staffGroup):r.subtitle&&0!==h?this.renderer.outputSubtitle(this.width,r.subtitle):void 0!==r.text&&this.renderer.outputFreeText(r.text);this.renderer.moveY(24),this.renderer.engraveExtraText(this.width,t),this.renderer.setPaperSize(c,s,this.responsive)},a.prototype.setXSpacing=function(t,e,i,r){for(var n=this.space,s=0;s<8;s++){var a=t.layout(n,this.renderer,r);if(n=c(i,!!e.stretchlast&&e.stretchlast,this.width+this.renderer.padding.left,t.w,n,a.spacingUnits,a.minSpace),r&&console.log("setXSpace",s,t.w,n,t.minspace),null===n)break}!function(t){for(var e=0;e<t.length;e++)for(var i=t[e],r=1;r<i.children.length-1;r++){var n=i.children[r];if(n.abcelem.rest&&("whole"===n.abcelem.rest.type||"multimeasure"===n.abcelem.rest.type)){var s=i.children[r-1],a=i.children[r+1],c=(a.x-s.x)/2+s.x;n.x=c-n.w/2;for(var o=0;o<n.children.length;o++)n.children[o].x=n.x}}}(t.voices)},a.prototype.engraveStaffLine=function(t){this.lastStaffGroupIndex>-1&&this.renderer.addStaffPadding(this.staffgroups[this.lastStaffGroupIndex],t),this.renderer.voiceNumber=null,t.draw(this.renderer);var e=t.height*r.STEP;this.staffgroups[this.staffgroups.length]=t,this.lastStaffGroupIndex=this.staffgroups.length-1,this.renderer.y+=e},a.prototype.notifySelect=function(t,e,i){this.clearSelection(),t.highlight&&(this.selected=[t],t.highlight());for(var r=t.abcelem||{},n=0;n<this.listeners.length;n++)this.listeners[n](r,e,i)},a.prototype.clearSelection=function(){for(var t=0;t<this.selected.length;t++)this.selected[t].unhighlight();this.selected=[]},a.prototype.addSelectListener=function(t){this.listeners[this.listeners.length]=t},a.prototype.rangeHighlight=function(t,e){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++)for(var r=this.staffgroups[i].voices,n=0;n<r.length;n++)for(var s=r[n].children,a=0;a<s.length;a++){var c=s[a].abcelem.startChar,o=s[a].abcelem.endChar;(e>c&&t<o||e===t&&e===o)&&(this.selected[this.selected.length]=s[a],s[a].highlight())}},t.exports=a},function(t,e,i){"use strict";var r=function(t,e,i,r,n){this.anchor1=t,this.anchor2=e,this.above=i,this.force=r,this.isTie=n};r.prototype.setEndAnchor=function(t){this.anchor2=t,this.isTie&&(this.anchor1&&(this.anchor1.isTie=!0),this.anchor2&&(this.anchor2.isTie=!0))},r.prototype.setStartX=function(t){this.startLimitX=t},r.prototype.setEndX=function(t){this.endLimitX=t},r.prototype.setHint=function(){this.hint=!0},r.prototype.setUpperAndLowerElements=function(t){},r.prototype.layout=function(t,e){function i(t,e,i){return i?t.pitch:e&&void 0!==t.highestVert?t.highestVert:t.pitch}!this.force&&this.anchor2&&this.anchor2.pitch===this.anchor2.highestVert&&(this.above=!0),this.isTie?(this.anchor1&&(this.anchor1.tieAbove=this.above),this.anchor2&&(this.anchor2.tieAbove=this.above)):this.anchor2&&this.anchor2.isTie?this.above=this.anchor2.tieAbove:this.anchor1&&this.anchor1.isTie&&(this.above=this.anchor1.tieAbove),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.startX=t,this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=e,this.anchor1&&this.anchor2?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):this.anchor1?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor1,this.above,this.isTie)):this.anchor2?(this.startY=i(this.anchor2,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):(this.startY=this.above?14:0,this.endY=this.above?14:0)},r.prototype.draw=function(t,e,i){var r;this.layout(e,i),this.hint&&(r="abcjs-hint"),t.drawArc(this.startX,this.endX,this.startY,this.endY,this.above,r,this.isTie)},t.exports=r},function(t,e,i){"use strict";i(16);var r=i(17);window.ABCJS=r},function(t,e,i){"use strict"},function(t,e,i){"use strict";var r=i(18),n=i(6),s={signature:"abcjs-basic v5.6.2"};Object.keys(r).forEach(function(t){s[t]=r[t]}),Object.keys(n).forEach(function(t){s[t]=n[t]}),s.renderAbc=i(22),s.TimingCallbacks=i(10);var a=i(39);s.Editor=a,t.exports=s},function(t,e,i){"use strict";i(1),i(0);var r=i(10),n={};!function(){var t,e;n.startAnimation=function(i,n,s){function a(t){for(var e=0;e<t.length;e++){var i=t[e];i.classList.contains("abcjs-bar")||(i.style.display="none")}}var c;function o(t){s.hideCurrentMeasure?function(t){a(i.querySelectorAll(t))}(t):s.hideFinishedMeasures&&function(t){c&&a(i.querySelectorAll(c)),c=t}(t)}t&&(t.stop(),t=void 0),s.showCursor&&!i.querySelector(".abcjs-cursor")&&((e=document.createElement("DIV")).className="abcjs-cursor cursor",e.style.position="absolute",i.appendChild(e),i.style.position="relative"),(t=new r(n,{qpm:s.bpm,eventCallback:function(i){if(i){if(i.measureStart){var r=function(t){return".abcjs-l"+t.line+".abcjs-m"+t.measureNumber}(i);r&&o(r)}e.style.left=i.left+"px",e.style.top=i.top+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else t.stop(),t=void 0}})).start()},n.pauseAnimation=function(e){e?t.pause():t.start()},n.stopAnimation=function(){t.stop(),t=void 0}}(),t.exports=n},function(t,e,i){"use strict";var r=i(0),n=i(8),s=i(9);t.exports=function(t,e,i,a){this.reset=function(t,e,i,r){s.initialize(t,e,i,r),n.initialize(t,e,i,r)},this.reset(t,e,i,a),this.setTitle=function(e){if(i.hasMainTitle)a.addSubtitle(t.translateString(t.stripComment(e)));else{var r=t.translateString(t.theReverser(t.stripComment(e)));i.titlecaps&&(r=r.toUpperCase()),a.addMetaText("title",r),i.hasMainTitle=!0}},this.setMeter=function(r){if("C"===(r=t.stripComment(r)))return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if("C|"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if("o"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===r.length||"none"===r.toLowerCase())return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),null;var n=t.tokenize(r,0,r.length);try{var s=function(){var t=function(){var t={value:0,num:""},e=n.shift();for("("===e.token&&(e=n.shift());;){if("number"!==e.type)throw"Expected top number of meter";if(t.value+=parseInt(e.token),t.num+=e.token,0===n.length||"/"===n[0].token)return t;if(")"===(e=n.shift()).token){if(0===n.length||"/"===n[0].token)return t;throw"Unexpected paren in meter"}if("."!==e.token&&"+"!==e.token)throw"Expected top number of meter";if(t.num+=e.token,0===n.length)throw"Expected top number of meter";e=n.shift()}return t}();if(0===n.length)return t;var e=n.shift();if("/"!==e.token)throw"Expected slash in meter";if("number"!==(e=n.shift()).type)throw"Expected bottom number of meter";return t.den=e.token,t.value=t.value/parseInt(t.den),t};if(0===n.length)throw"Expected meter definition in M: line";for(var a={type:"specified",value:[]},c=0;;){var o=s();c+=o.value;var h={num:o.num};if(void 0!==o.den&&(h.den=o.den),a.value.push(h),0===n.length)break}return!0===i.havent_set_length&&(i.default_length=c<.75?.0625:.125,i.havent_set_length=!1),a}catch(t){e(t,r,0)}return null},this.calcTempo=function(t){var e=.25;i.meter&&"specified"===i.meter.type?e=1/parseInt(i.meter.value[0].den):i.origMeter&&"specified"===i.origMeter.type&&(e=1/parseInt(i.origMeter.value[0].den));for(var r=0;r<t.duration;r++)t.duration[r]=e*t.duration[r];return t},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),a.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(t,n,s){var a=t.indexOf("=",n);if(-1!==a){var c=r.strip(t.substring(n,a)),o=r.strip(t.substring(a+1));1===c.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(c)?0!==o.length?(void 0===i.macros&&(i.macros={}),i.macros[c]=o):e("Missing macro definition",t,n):e("Macro definitions must be H-Y, h-w, or tilde",t,n):e("Macro definitions can only be one character",t,n)}else e("Need an = in a macro definition",t,n)},this.setDefaultLength=function(t,e,n){var s=r.gsub(t.substring(e,n)," ","").split("/");if(2===s.length){var a=parseInt(s[0]),c=parseInt(s[1]);c>0&&(i.default_length=a/c,i.havent_set_length=!1)}else 1===s.length&&"1"===s[0]&&(i.default_length=1,i.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(r,n,s){try{var a=t.tokenize(r,n,s);if(0===a.length)throw"Missing parameter in Q: field";var o={},h=!0,l=a.shift();if("quote"===l.type&&(o.preString=l.token,l=a.shift(),0===a.length))return c[o.preString.toLowerCase()]&&(o.bpm=c[o.preString.toLowerCase()],o.suppressBpm=!0),{type:"immediate",tempo:o};if("alpha"===l.type&&"C"===l.token){if(0===a.length)throw"Missing tempo after C in Q: field";if("punct"===(l=a.shift()).type&&"="===l.token){if(0===a.length)throw"Missing tempo after = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected number after = in Q: field";o.duration=[1],o.bpm=parseInt(l.token)}else{if("number"!==l.type)throw"Expected number or equal after C in Q: field";if(o.duration=[parseInt(l.token)],0===a.length)throw"Missing = after duration in Q: field";if("punct"!==(l=a.shift()).type||"="!==l.token)throw"Expected = after duration in Q: field";if(0===a.length)throw"Missing tempo after = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected number after = in Q: field";o.bpm=parseInt(l.token)}}else{if("number"!==l.type)throw"Unknown value in Q: field";var d=parseInt(l.token);if(0===a.length||"quote"===a[0].type)o.duration=[1],o.bpm=d;else{if(h=!1,"punct"!==(l=a.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";var u=parseInt(l.token);for(o.duration=[d/u];a.length>0&&"="!==a[0].token&&"quote"!==a[0].type;){if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";if(d=parseInt(l.token),"punct"!==(l=a.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";u=parseInt(l.token),o.duration.push(d/u)}if("punct"!==(l=a.shift()).type&&"="!==l.token)throw"Expected = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected tempo in Q: field";o.bpm=parseInt(l.token)}}if(0!==a.length&&("quote"===(l=a.shift()).type&&(o.postString=l.token,l=a.shift()),0!==a.length))throw"Unexpected string at end of Q: field";return!1===i.printTempo&&(o.suppress=!0),{type:h?"delaySet":"immediate",tempo:o}}catch(t){return e(t,r,n),{type:"none"}}},this.letter_to_inline_header=function(r,c){var o=t.eatWhiteSpace(r,c);if(c+=o,r.length>=c+5&&"["===r.charAt(c)&&":"===r.charAt(c+2)){var h=r.indexOf("]",c);switch(r.substring(c,c+3)){case"[I:":var l=n.addDirective(r.substring(c+3,h));return l&&e(l,r,c),[h-c+1+o];case"[M:":var d=this.setMeter(r.substring(c+3,h));return a.hasBeginMusic()&&d?a.appendStartingElement("meter",-1,-1,d):i.meter=d,[h-c+1+o];case"[K:":var u=s.parseKey(r.substring(c+3,h));return u.foundClef&&a.hasBeginMusic()&&a.appendStartingElement("clef",-1,-1,i.clef),u.foundKey&&a.hasBeginMusic()&&a.appendStartingElement("key",-1,-1,s.fixKey(i.clef,i.key)),[h-c+1+o];case"[P:":return a.lines.length<=a.lineNum?i.partForNextLine=r.substring(c+3,h):a.appendElement("part",-1,-1,{title:r.substring(c+3,h)}),[h-c+1+o];case"[L:":return this.setDefaultLength(r,c+3,h),[h-c+1+o];case"[Q:":if(h>0){var f=this.setTempo(r,c+3,h);return"delaySet"===f.type?a.appendElement("tempo",-1,-1,this.calcTempo(f.tempo)):"immediate"===f.type&&a.appendElement("tempo",-1,-1,f.tempo),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}break;case"[V:":if(h>0)return s.parseVoice(r,c+3,h),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}}return[0]},this.letter_to_body_header=function(t,c){if(t.length>=c+3)switch(t.substring(c,c+2)){case"I:":var o=n.addDirective(t.substring(c+2));return o&&e(o,t,c),[t.length];case"M:":var h=this.setMeter(t.substring(c+2));return a.hasBeginMusic()&&h&&a.appendStartingElement("meter",-1,-1,h),[t.length];case"K:":var l=s.parseKey(t.substring(c+2));return l.foundClef&&a.hasBeginMusic()&&a.appendStartingElement("clef",-1,-1,i.clef),l.foundKey&&a.hasBeginMusic()&&a.appendStartingElement("key",-1,-1,s.fixKey(i.clef,i.key)),[t.length];case"P:":return a.hasBeginMusic()&&a.appendElement("part",-1,-1,{title:t.substring(c+2)}),[t.length];case"L:":return this.setDefaultLength(t,c+2,t.length),[t.length];case"Q:":var d=t.indexOf("",c+2);-1===d&&(d=t.length);var u=this.setTempo(t,c+2,d);return"delaySet"===u.type?a.appendElement("tempo",-1,-1,this.calcTempo(u.tempo)):"immediate"===u.type&&a.appendElement("tempo",-1,-1,u.tempo),[d,t.charAt(c),r.strip(t.substring(c+2))];case"V:":return s.parseVoice(t,c+2,t.length),[t.length,t.charAt(c),r.strip(t.substring(c+2))]}return[0]};var o={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(c){if(r.startsWith(c,"%%")){var h=n.addDirective(c.substring(2));return h&&e(h,c,2),{}}var l=c.indexOf("%");if(l>=0&&(c=c.substring(0,l)),0===(c=c.replace(/\s+$/,"")).length)return{};if(c.length>=2&&":"===c.charAt(1)){var d="";c.indexOf("")>=0&&"w"!==c.charAt(0)&&(d=c.substring(c.indexOf("")+1),c=c.substring(0,c.indexOf("")));var u=o[c.charAt(0)];if(void 0!==u)return"unalignedWords"===u?a.addMetaTextArray(u,n.parseFontChangeLine(t.translateString(t.stripComment(c.substring(2))))):a.addMetaText(u,t.translateString(t.stripComment(c.substring(2)))),{};switch(c.charAt(0)){case"H":a.addMetaText("history",t.translateString(t.stripComment(c.substring(2)))),i.is_in_history=!0;break;case"K":this.resolveTempo();var f=s.parseKey(c.substring(2));!i.is_in_header&&a.hasBeginMusic()&&(f.foundClef&&a.appendStartingElement("clef",-1,-1,i.clef),f.foundKey&&a.appendStartingElement("key",-1,-1,s.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(c,2,c.length);break;case"M":i.origMeter=i.meter=this.setMeter(c.substring(2));break;case"P":i.is_in_header?a.addMetaText("partOrder",t.translateString(t.stripComment(c.substring(2)))):i.partForNextLine=t.translateString(t.stripComment(c.substring(2)));break;case"Q":var p=this.setTempo(c,2,c.length);"delaySet"===p.type?i.tempo=p.tempo:"immediate"===p.type&&(a.metaText.tempo=p.tempo);break;case"T":this.setTitle(c.substring(2));break;case"U":this.addUserDefinition(c,2,c.length);break;case"V":if(s.parseVoice(c,2,c.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":e("Ignored header",c,0);break;default:return d.length&&(d=""+d),{regular:!0,str:c+d}}return d.length>0?{recurse:!0,str:d}:{}}return{regular:!0,str:c}}}},function(t,e,i){"use strict";var r=i(0);t.exports=function(){this.skipWhiteSpace=function(t){for(var e=0;e<t.length;e++)if(!this.isWhiteSpace(t.charAt(e)))return e;return t.length};var t=function(t,e){return e>=t.length};this.eatWhiteSpace=function(t,e){for(var i=e;i<t.length;i++)if(!this.isWhiteSpace(t.charAt(i)))return i-e;return i-e},this.getKeyPitch=function(e){var i=this.skipWhiteSpace(e);if(t(e,i))return{len:0};switch(e.charAt(i)){case"A":return{len:i+1,token:"A"};case"B":return{len:i+1,token:"B"};case"C":return{len:i+1,token:"C"};case"D":return{len:i+1,token:"D"};case"E":return{len:i+1,token:"E"};case"F":return{len:i+1,token:"F"};case"G":return{len:i+1,token:"G"}}return{len:0}},this.getSharpFlat=function(t){if("bass"===t)return{len:0};switch(t.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(e){var i=function(t,e){for(;e<t.length&&(t.charAt(e)>="a"&&t.charAt(e)<="z"||t.charAt(e)>="A"&&t.charAt(e)<="Z");)e++;return e},r=this.skipWhiteSpace(e);if(t(e,r))return{len:0};var n=e.substring(r,r+3).toLowerCase();switch((n.length>1&&" "===n.charAt(1)||"^"===n.charAt(1)||"_"===n.charAt(1)||"="===n.charAt(1))&&(n=n.charAt(0)),n){case"mix":return{len:i(e,r),token:"Mix"};case"dor":return{len:i(e,r),token:"Dor"};case"phr":return{len:i(e,r),token:"Phr"};case"lyd":return{len:i(e,r),token:"Lyd"};case"loc":return{len:i(e,r),token:"Loc"};case"aeo":return{len:i(e,r),token:"m"};case"maj":case"ion":return{len:i(e,r),token:""};case"min":case"m":return{len:i(e,r),token:"m"}}return{len:0}},this.getClef=function(e,i){var n=e,s=this.skipWhiteSpace(e);if(t(e,s))return{len:0};var a=!1,c=e.substring(s);if(r.startsWith(c,"clef=")&&(a=!0,c=c.substring(5),s+=5),0===c.length&&a)return{len:s+5,warn:"No clef specified: "+n};var o=this.skipWhiteSpace(c);if(t(c,o))return{len:0};o>0&&(s+=o,c=c.substring(o));var h=null;if(r.startsWith(c,"treble"))h="treble";else if(r.startsWith(c,"bass3"))h="bass3";else if(r.startsWith(c,"bass"))h="bass";else if(r.startsWith(c,"tenor"))h="tenor";else if(r.startsWith(c,"alto2"))h="alto2";else if(r.startsWith(c,"alto1"))h="alto1";else if(r.startsWith(c,"alto"))h="alto";else if(!i&&a&&r.startsWith(c,"none"))h="none";else if(r.startsWith(c,"perc"))h="perc";else if(!i&&a&&r.startsWith(c,"C"))h="tenor";else if(!i&&a&&r.startsWith(c,"F"))h="bass";else{if(i||!a||!r.startsWith(c,"G"))return{len:s+5,warn:"Unknown clef specified: "+n};h="treble"}return c=c.substring(h.length),(o=this.isMatch(c,"+8"))>0?h+="+8":(o=this.isMatch(c,"-8"))>0&&(h+="-8"),{len:s+h.length,token:h,explicit:a}},this.getBarLine=function(t,e){switch(t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++e,t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++e,t.charAt(e)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++e,t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return++e,":"===t.charAt(e)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++e,":"===t.charAt(e)?{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.charAt(e))return t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:1,token:"bar_invisible"}:{len:0};switch(++e,t.charAt(e)){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.charAt(e)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++e,":"===t.charAt(e)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var i=0;":"===t.charAt(e+i);)i++;return{len:1+i,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(t,e){for(var i=0;i<t.length;i++)if(e.indexOf(t.charAt(i))<0)return{len:i,token:t.substring(0,i)};return{len:i,token:t}},this.getToken=function(t,e,i){for(var r=e;r<i&&!this.isWhiteSpace(t.charAt(r));)r++;return t.substring(e,r)},this.isMatch=function(e,i){var n=this.skipWhiteSpace(e);return t(e,n)?0:r.startsWith(e.substring(n),i)?n+i.length:0},this.getPitchFromTokens=function(t){var e={};if(e.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}[t[0].token],void 0===e.position)return{warn:"Pitch expected. Found: "+t[0].token};for(t.shift();t.length;)switch(t[0].token){case",":e.position-=7,t.shift();break;case"'":e.position+=7,t.shift();break;default:return e}return e},this.getKeyAccidentals2=function(t){for(var e;t.length>0;){var i;if("^"===t[0].token){if(i="sharp",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"^":i="dblsharp",t.shift();break;case"/":i="quartersharp",t.shift()}}else if("="===t[0].token)i="natural",t.shift();else{if("_"!==t[0].token)return{accs:e};if(i="flat",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"_":i="dblflat",t.shift();break;case"/":i="quarterflat",t.shift()}}if(0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token.charAt(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===e&&(e=[]),e.push({acc:i,note:t[0].token.charAt(0)}),1===t[0].token.length?t.shift():t[0].token=t[0].token.substring(1);break;default:return{accs:e,warn:"Expected note name after "+i+" Found: "+t[0].token}}}return{accs:e}},this.getKeyAccidental=function(e){var i={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},r=this.skipWhiteSpace(e);if(t(e,r))return{len:0};var n=null;switch(e.charAt(r)){case"^":case"_":case"=":n=e.charAt(r);break;default:return{len:0}}if(t(e,++r))return{len:1,warn:"Expected note name after accidental"};switch(e.charAt(r)){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:r+1,token:{acc:i[n],note:e.charAt(r)}};case"^":case"_":case"/":if(n+=e.charAt(r),t(e,++r))return{len:2,warn:"Expected note name after accidental"};switch(e.charAt(r)){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:r+1,token:{acc:i[n],note:e.charAt(r)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(t){return" "===t||"\t"===t||""===t},this.getMeat=function(t,e,i){var r=t.indexOf("%",e);for(r>=0&&r<i&&(i=r);e<i&&(" "===t.charAt(e)||"\t"===t.charAt(e)||""===t.charAt(e));)e++;for(;e<i&&(" "===t.charAt(i-1)||"\t"===t.charAt(i-1)||""===t.charAt(i-1));)i--;return{start:e,end:i}};var e=function(t){return t>="A"&&t<="Z"||t>="a"&&t<="z"},i=function(t){return t>="0"&&t<="9"};this.tokenize=function(t,r,n,s){var a=this.getMeat(t,r,n);r=a.start,n=a.end;for(var c,o=[];r<n;){if('"'===t.charAt(r)){for(c=r+1;c<n&&'"'!==t.charAt(c);)c++;o.push({type:"quote",token:t.substring(r+1,c),start:r+1,end:c}),c++}else if(e(t.charAt(r))){if(c=r+1,s)for(;c<n&&!this.isWhiteSpace(t.charAt(c));)c++;else for(;c<n&&e(t.charAt(c));)c++;o.push({type:"alpha",token:t.substring(r,c),continueId:i(t.charAt(c)),start:r,end:c}),r=c+1}else if("."===t.charAt(r)&&i(t.charAt(c+1))){c=r+1;for(var h;c<n&&i(t.charAt(c));)c++;h=parseFloat(t.substring(r,c)),o.push({type:"number",token:t.substring(r,c),intt:null,floatt:h,continueId:e(t.charAt(c)),start:r,end:c}),r=c+1}else if(i(t.charAt(r))||"-"===t.charAt(r)&&i(t.charAt(c+1))){c=r+1;for(var l,d=null;c<n&&i(t.charAt(c));)c++;if("."===t.charAt(c)&&i(t.charAt(c+1)))for(c++;c<n&&i(t.charAt(c));)c++;else d=parseInt(t.substring(r,c));l=parseFloat(t.substring(r,c)),o.push({type:"number",token:t.substring(r,c),intt:d,floatt:l,continueId:e(t.charAt(c)),start:r,end:c}),r=c+1}else" "===t.charAt(r)||"\t"===t.charAt(r)?c=r+1:(o.push({type:"punct",token:t.charAt(r),start:r,end:r+1}),c=r+1);r=c}return o},this.getVoiceToken=function(t,e,i){for(var r=e;r<i&&this.isWhiteSpace(t.charAt(r))||"="===t.charAt(r);)r++;if('"'===t.charAt(r)){var n=t.indexOf('"',r+1);return-1===n||n>=i?{len:1,err:"Missing close quote"}:{len:n-e+1,token:this.translateString(t.substring(r+1,n))}}for(var s=r;s<i&&!this.isWhiteSpace(t.charAt(s))&&"="!==t.charAt(s);)s++;return{len:s-e+1,token:t.substring(r,s)}};var n={"`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:"ž"},s={"#":"♯",b:"♭","=":"♮"},a={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(t){var e=t.split("\\");if(1===e.length)return t;var i=null;return r.each(e,function(t){if(null===i)i=t;else{var e=n[t.substring(0,2)];void 0!==e?i+=e+t.substring(2):void 0!==(e=a[t.substring(0,3)])?i+=e+t.substring(3):(e=s[t.substring(0,1)],i+=void 0!==e?e+t.substring(1):"\\"+t)}}),i},this.getNumber=function(t,e){for(var i=0;e<t.length;)switch(t.charAt(e)){case"0":i*=10,e++;break;case"1":i=10*i+1,e++;break;case"2":i=10*i+2,e++;break;case"3":i=10*i+3,e++;break;case"4":i=10*i+4,e++;break;case"5":i=10*i+5,e++;break;case"6":i=10*i+6,e++;break;case"7":i=10*i+7,e++;break;case"8":i=10*i+8,e++;break;case"9":i=10*i+9,e++;break;default:return{num:i,index:e}}return{num:i,index:e}},this.getFraction=function(t,e){var i=1,r=1;if("/"!==t.charAt(e)){var n=this.getNumber(t,e);i=n.num,e=n.index}if("/"===t.charAt(e)){if(e++,"/"===t.charAt(e)){for(var s=.5;"/"===t.charAt(e++);)s/=2;return{value:i*s,index:e-1}}var a=e,c=this.getNumber(t,e);0===c.num&&a===e&&(c.num=2),0!==c.num&&(r=c.num),e=c.index}return{value:i/r,index:e}},this.theReverser=function(t){return r.endsWith(t,", The")?"The "+t.substring(0,t.length-5):r.endsWith(t,", A")?"A "+t.substring(0,t.length-3):t},this.stripComment=function(t){var e=t.indexOf("%");return e>=0?r.strip(t.substring(0,e)):r.strip(t)},this.getInt=function(t){var e=parseInt(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getFloat=function(t){var e=parseFloat(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getMeasurement=function(t){if(0===t.length)return{used:0};var e=1,i="";if("-"===t[0].token)t.shift(),i="-",e++;else if("number"!==t[0].type)return{used:0};if(i+=t.shift().token,0===t.length)return{used:1,value:parseInt(i)};var r=t.shift();if("."===r.token){if(e++,0===t.length)return{used:e,value:parseInt(i)};if("number"===t[0].type&&(i=i+"."+(r=t.shift()).token,e++,0===t.length))return{used:e,value:parseFloat(i)};r=t.shift()}switch(r.token){case"pt":return{used:e+1,value:parseFloat(i)};case"cm":return{used:e+1,value:parseFloat(i)/2.54*72};case"in":return{used:e+1,value:72*parseFloat(i)};default:return t.unshift(r),{used:e,value:parseFloat(i)}}return{used:0}};var c=function(t){for(;-1!==t.indexOf("\\n");)t=t.replace("\\n","\n");return t};this.getBrackettedSubstring=function(t,e,i,r){for(var n=r||t.charAt(e),s=e+1;s<t.length&&t.charAt(s)!==n;)++s;return t.charAt(s)===n?[s-e+1,c(t.substring(e+1,s)),!0]:((s=e+i)>t.length-1&&(s=t.length-1),[s-e+1,c(t.substring(e+1,s)),!1])}}},function(t,e,i){"use strict";var r=i(0),n=i(9),s=i(1);t.exports=function(){this.getBeatLength=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)for(var e=0;e<this.lines[t].staff.length;e++)if(this.lines[t].staff[e].meter){var i=this.lines[t].staff[e].meter;if("specified"===i.type){if(i.value.length>0){var r=parseInt(i.value[0].num,10),n=parseInt(i.value[0].den,10);return 3===r&&8===n?3/8:6===r&&8===n?3/8:9===r&&8===n?3/8:12===r&&8===n?3/8:1/n}return.25}return"cut_time"===i.type?.5:.25}return.25},this.getPickupLength=function(){for(var t=0,e=0;e<this.lines.length;e++)if(this.lines[e].staff)for(var i=0;i<this.lines[e].staff.length;i++)for(var r=0;r<this.lines[e].staff[i].voices.length;r++)for(var n=this.lines[e].staff[i].voices[r],s=0;s<n.length;s++)if(n[s].duration&&(t+=n[s].duration),t>=this.getBarLength()&&(t-=this.getBarLength()),"bar"===n[s].el_type)return t;return t},this.getBarLength=function(){var t=this.getMeterFraction();return t.num/t.den},this.millisecondsPerMeasure=function(t){var e,i;if(t)e=t;else{var r=this.metaText?this.metaText.tempo:null;e=this.getBpm(r)}e<=0&&(e=1);var n=this.getMeterFraction();return(i=8===n.den?n.num/3:n.num)<=0&&(i=1),i/e*6e4},this.reset=function(){this.version="1.0.1",this.media="screen",this.metaText={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0},this.resolveOverlays=function(){for(var t=!1,e=0;e<this.lines.length;e++){var i=this.lines[e];if(i.staff)for(var r=0;r<i.staff.length;r++){for(var n=i.staff[r],s=[],a=0;a<n.voices.length;a++){var c=n.voices[a];s.push({hasOverlay:!1,voice:[],snip:[]});for(var o=0,h=!1,l=-1,d=0;d<c.length;d++){var u=c[d];"overlay"!==u.el_type||h?"bar"===u.el_type?(h?(h=!1,s[a].snip.push({start:l,len:d-l}),s[a].voice.push(u)):(s[a].voice.push({el_type:"note",duration:o,rest:{type:"invisible"},startChar:u.startChar,endChar:u.endChar}),s[a].voice.push(u)),o=0):"note"===u.el_type?h?s[a].voice.push(u):o+=u.duration:"scale"!==u.el_type&&"stem"!==u.el_type&&"overlay"!==u.el_type&&"style"!==u.el_type&&"transpose"!==u.el_type||s[a].voice.push(u):(t=!0,h=!0,l=d,s[a].hasOverlay=!0)}s[a].hasOverlay&&0===s[a].snip.length&&s[a].snip.push({start:l,len:c.length-l})}for(a=0;a<s.length;a++){var f=s[a];if(f.hasOverlay){n.voices.push(f.voice);for(var p=f.snip.length-1;p>=0;p--){var m=f.snip[p];n.voices[a].splice(m.start,m.len)}}}}}return t},this.cleanUp=function(t,e,i,s,a){this.closeLine(),this.metaText.tempo&&this.metaText.tempo.bpm&&!this.metaText.tempo.duration&&(this.metaText.tempo.duration=[this.getBeatLength()]);var c,o,h,l=!1;for(c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff){var d=!1;for(o=0;o<this.lines[c].staff.length;o++)if(void 0===this.lines[c].staff[o])l=!0,this.lines[c].staff[o]=null;else for(h=0;h<this.lines[c].staff[o].voices.length;h++)void 0===this.lines[c].staff[o].voices[h]?this.lines[c].staff[o].voices[h]=[]:this.containsNotes(this.lines[c].staff[o].voices[h])&&(d=!0);d||(this.lines[c]=null,l=!0)}if(l&&(this.lines=r.compact(this.lines),r.each(this.lines,function(t){t.staff&&(t.staff=r.compact(t.staff))})),i)for(;m(this.lines,i););if(s){for(l=!1,c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++){var u=!1;for(h=0;h<this.lines[c].staff[o].voices.length;h++)this.containsNotesStrict(this.lines[c].staff[o].voices[h])&&(u=!0);u||(l=!0,this.lines[c].staff[o]=null)}l&&r.each(this.lines,function(t){t.staff&&(t.staff=r.compact(t.staff))})}for(function(t){for(var e=!0,i=0;i<t.length;i++){var r=t[i];if(r.staff){for(var n=0;n<r.staff.length;n++){var s=r.staff[n];if(s.title){for(var a=!1,c=0;c<s.title.length;c++)s.title[c]?(s.title[c]=e?s.title[c].name:s.title[c].subname,s.title[c]?a=!0:s.title[c]=""):s.title[c]="";a||delete s.title}}e=!1}}}(this.lines),c=0;c<this.lines.length;c++)if(this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++)delete this.lines[c].staff[o].workingClef;for(;this.resolveOverlays(););function f(t){for(var e,i=function(t,i,n){if(void 0===a[n]){for(e=0;e<a.length;e++)if(void 0!==a[e]){n=e;break}if(void 0===a[n]){var s=100*n+1;r.each(t.endSlur,function(t){s===t&&--s}),a[n]=[s]}}for(var c,o=0;o<i;o++)c=a[n].pop(),t.endSlur.push(c);return 0===a[n].length&&delete a[n],c},n=function(t,e,i,n){t.startSlur=[],void 0===a[i]&&(a[i]=[]);for(var s=100*i+1,c=0;c<e;c++)n&&(r.each(n,function(t){s===t&&++s}),r.each(n,function(t){s===t&&++s}),r.each(n,function(t){s===t&&++s})),r.each(a[i],function(t){s===t&&++s}),r.each(a[i],function(t){s===t&&++s}),a[i].push(s),t.startSlur.push({label:s}),s++},s=0;s<t.length;s++){var c=t[s];if("note"===c.el_type){if(c.gracenotes)for(var o=0;o<c.gracenotes.length;o++){if(c.gracenotes[o].endSlur){var h=c.gracenotes[o].endSlur;c.gracenotes[o].endSlur=[];for(var l=0;l<h;l++)i(c.gracenotes[o],1,20)}c.gracenotes[o].startSlur&&(e=c.gracenotes[o].startSlur,n(c.gracenotes[o],e,20))}if(c.endSlur&&(e=c.endSlur,c.endSlur=[],i(c,e,0)),c.startSlur&&n(c,e=c.startSlur,0),c.pitches){for(var d=[],u=0;u<c.pitches.length;u++)if(c.pitches[u].endSlur){var f=c.pitches[u].endSlur;c.pitches[u].endSlur=[];for(var p=0;p<f;p++){var m=i(c.pitches[u],1,u+1);d.push(m)}}for(u=0;u<c.pitches.length;u++)c.pitches[u].startSlur&&(e=c.pitches[u].startSlur,n(c.pitches[u],e,u+1,d));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===a[1].length?delete a[1]:a[1].pop())}}}}function p(t){n.fixClef(t)}function m(t,e){for(c=0;c<t.length;c++)if(void 0!==t[c].staff)for(o=0;o<t[c].staff.length;o++){var i=[];for(h=0;h<t[c].staff[o].voices.length;h++)for(var n=t[c].staff[o].voices[h],s=0,a=0;a<n.length;a++)if("bar"===n[a].el_type){if(++s>=e&&a<n.length-1){var l=g(t,c);if(!l){var d=JSON.parse(JSON.stringify(t[c]));t.push(r.clone(d)),l=t[t.length-1];for(var u=0;u<l.staff.length;u++)for(var f=0;f<l.staff[u].voices.length;f++)l.staff[u].voices[f]=[]}var p=a+1,m=t[c].staff[o].voices[h].slice(p);return t[c].staff[o].voices[h]=t[c].staff[o].voices[h].slice(0,p),l.staff[o].voices[h]=i.concat(m.concat(l.staff[o].voices[h])),!0}}else n[a].duration||i.push(n[a])}return!1}function g(t,e){for(e++;t.length>e;){if(t[e].staff)return t[e];e++}return null}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){var v=this.lines[this.lineNum].staff;if(v)for(this.staffNum=0;this.staffNum<v.length;this.staffNum++)for(v[this.staffNum].clef&&p(v[this.staffNum].clef),this.voiceNum=0;this.voiceNum<v[this.staffNum].voices.length;this.voiceNum++){var b=v[this.staffNum].voices[this.voiceNum];f(b);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 w=g(this.lines,this.lineNum);w&&(w.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return this.formatting.pagewidth||(this.formatting.pagewidth=t),this.formatting.pageheight||(this.formatting.pageheight=e),delete this.staffNum,delete this.voiceNum,delete this.lineNum,delete this.potentialStartBeam,delete this.potentialEndBeam,delete this.vskipPending,a},this.reset(),this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])for(var t=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;t>=0;t--){var e=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][t];if("note"===e.el_type)return e}return null},this.addTieToLastNote=function(){var t=this.getLastNote();return!!(t&&t.pitches&&t.pitches.length>0)&&(t.pitches[0].startTie={},!0)},this.getDuration=function(t){return t.duration?t.duration:0},this.closeLine=function(){this.potentialStartBeam&&this.potentialEndBeam&&(this.potentialStartBeam.startBeam=!0,this.potentialEndBeam.endBeam=!0),delete this.potentialStartBeam,delete this.potentialEndBeam},this.appendElement=function(t,e,i,n){var s=this;n.el_type=t,null!==e&&(n.startChar=e),null!==i&&(n.endChar=i);var a=function(){void 0!==s.potentialStartBeam&&void 0!==s.potentialEndBeam&&(s.potentialStartBeam.startBeam=!0,s.potentialEndBeam.endBeam=!0),delete s.potentialStartBeam,delete s.potentialEndBeam};"note"===t?s.getDuration(n)>=.25?a():n.force_end_beam_last&&void 0!==s.potentialStartBeam?a():n.end_beam&&void 0!==s.potentialStartBeam?void 0===n.rest?(s.potentialStartBeam.startBeam=!0,n.endBeam=!0,delete s.potentialStartBeam,delete s.potentialEndBeam):a():void 0===n.rest&&(void 0===s.potentialStartBeam?n.end_beam||(s.potentialStartBeam=n,delete s.potentialEndBeam):s.potentialEndBeam=n):a(),delete n.end_beam,delete n.force_end_beam_last,function(t){if(void 0!==t.pitches){var e=s.lines[s.lineNum].staff[s.staffNum].workingClef.verticalPos;r.each(t.pitches,function(t){t.verticalPos=t.pitch-e})}if(void 0!==t.gracenotes){var i=s.lines[s.lineNum].staff[s.staffNum].workingClef.verticalPos;r.each(t.gracenotes,function(t){t.verticalPos=t.pitch-i})}s.lines[s.lineNum].staff[s.staffNum].voices[s.voiceNum].push(t)}(n)},this.appendStartingElement=function(t,e,i,n){var s;this.closeLine(),"key"===t&&(s=n.impliedNaturals,delete n.impliedNaturals,delete n.explicitAccidentals);var a=r.clone(n);if(this.lines[this.lineNum].staff){this.lines[this.lineNum].staff.length<=this.staffNum&&(this.lines[this.lineNum].staff[this.staffNum]={},this.lines[this.lineNum].staff[this.staffNum].clef=r.clone(this.lines[this.lineNum].staff[0].clef),this.lines[this.lineNum].staff[this.staffNum].key=r.clone(this.lines[this.lineNum].staff[0].key),this.lines[this.lineNum].staff[0].meter&&(this.lines[this.lineNum].staff[this.staffNum].meter=r.clone(this.lines[this.lineNum].staff[0].meter)),this.lines[this.lineNum].staff[this.staffNum].workingClef=r.clone(this.lines[this.lineNum].staff[0].workingClef),this.lines[this.lineNum].staff[this.staffNum].voices=[[]]),"clef"===t&&(this.lines[this.lineNum].staff[this.staffNum].workingClef=a);for(var c=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum],o=0;o<c.length;o++){if("note"===c[o].el_type||"bar"===c[o].el_type)return a.el_type=t,a.startChar=e,a.endChar=i,s&&(a.accidentals=s.concat(a.accidentals)),void c.push(a);if(c[o].el_type===t)return a.el_type=t,a.startChar=e,a.endChar=i,s&&(a.accidentals=s.concat(a.accidentals)),void(c[o]=a)}this.lines[this.lineNum].staff[this.staffNum][t]=n}},this.getNumLines=function(){return this.lines.length},this.pushLine=function(t){this.vskipPending&&(t.vskip=this.vskipPending,delete this.vskipPending),this.lines.push(t)},this.addSubtitle=function(t){this.pushLine({subtitle:t})},this.addSpacing=function(t){this.vskipPending=t},this.addNewPage=function(t){this.pushLine({newpage:t})},this.addSeparator=function(t,e,i){this.pushLine({separator:{spaceAbove:t,spaceBelow:e,lineLength:i}})},this.addText=function(t){this.pushLine({text:t})},this.addCentered=function(t){this.pushLine({text:[{text:t,center:!0}]})},this.containsNotes=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type||"bar"===t[e].el_type)return!0;return!1},this.containsNotesStrict=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type&&void 0===t[e].rest)return!0;return!1},this.startNewLine=function(t){var e=this;this.closeLine();var i=function(t){var i=e.lines[e.lineNum].staff[e.staffNum];if(i.voices[e.voiceNum]=[],i.title||(i.title=[]),i.title[e.voiceNum]={name:t.name,subname:t.subname},t.style&&e.appendElement("style",null,null,{head:t.style}),t.stem)e.appendElement("stem",null,null,{direction:t.stem});else if(e.voiceNum>0){if(void 0!==i.voices[0]){for(var r=!1,n=0;n<i.voices[0].length;n++)"stem"===i.voices[0].el_type&&(r=!0);r||i.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}e.appendElement("stem",null,null,{direction:"down"})}t.scale&&e.appendElement("scale",null,null,{size:t.scale})},r=function(t){t.key&&t.key.impliedNaturals&&(t.key.accidentals=t.key.accidentals.concat(t.key.impliedNaturals),delete t.key.impliedNaturals),e.lines[e.lineNum].staff[e.staffNum]={voices:[],clef:t.clef,key:t.key,workingClef:t.clef},void 0!==t.stafflines&&(e.lines[e.lineNum].staff[e.staffNum].clef.stafflines=t.stafflines,e.lines[e.lineNum].staff[e.staffNum].workingClef.stafflines=t.stafflines),t.staffscale&&(e.lines[e.lineNum].staff[e.staffNum].staffscale=t.staffscale),t.tripletfont&&(e.lines[e.lineNum].staff[e.staffNum].tripletfont=t.tripletfont),t.vocalfont&&(e.lines[e.lineNum].staff[e.staffNum].vocalfont=t.vocalfont),t.bracket&&(e.lines[e.lineNum].staff[e.staffNum].bracket=t.bracket),t.brace&&(e.lines[e.lineNum].staff[e.staffNum].brace=t.brace),t.connectBarLines&&(e.lines[e.lineNum].staff[e.staffNum].connectBarLines=t.connectBarLines),t.barNumber&&(e.lines[e.lineNum].staff[e.staffNum].barNumber=t.barNumber),i(t),t.part&&e.appendElement("part",t.startChar,t.endChar,{title:t.part}),void 0!==t.meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=t.meter)};if(void 0===this.lines[this.lineNum])!function(t){e.lines[e.lineNum]={staff:[]},r(t)}(t);else if(void 0===this.lines[this.lineNum].staff)this.lineNum++,this.startNewLine(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum])r(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])i(t);else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]))return;this.lineNum++,this.startNewLine(t)}},this.hasBeginMusic=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)return!0;return!1},this.isFirstLine=function(t){for(var e=t-1;e>=0;e--)if(void 0!==this.lines[e].staff)return!1;return!0},this.getMeter=function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t];if(e.staff)for(var i=0;i<e.staff.length;i++){var r=e.staff[i].meter;if(r)return r}}return{type:"common_time"}},this.getMeterFraction=function(){var t=this.getMeter(),e=4,i=4;return t&&("specified"===t.type?(e=parseInt(t.value[0].num,10),i=parseInt(t.value[0].den,10)):"cut_time"===t.type?(e=2,i=2):"common_time"===t.type&&(e=4,i=4)),this.meter={num:e,den:i},this.meter},this.getCurrentVoice=function(){return void 0!==this.lines[this.lineNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]?this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]:null},this.setCurrentVoice=function(t,e){this.staffNum=t,this.voiceNum=e;for(var i=0;i<this.lines.length;i++)if(this.lines[i].staff&&(void 0===this.lines[i].staff[t]||void 0===this.lines[i].staff[t].voices[e]||!this.containsNotes(this.lines[i].staff[t].voices[e])))return void(this.lineNum=i);this.lineNum=i},this.addMetaText=function(t,e){void 0===this.metaText[t]?this.metaText[t]=e:this.metaText[t]+="\n"+e},this.addMetaTextArray=function(t,e){void 0===this.metaText[t]?this.metaText[t]=[e]:this.metaText[t].push(e)},this.addMetaTextObj=function(t,e){this.metaText[t]=e},this.addElementToEvents=function(t,e,i,r,n,s,a,c,o,h){if(e.hint)return{isTiedState:void 0,duration:0};var l=e.durationClass?e.durationClass:e.duration;if(e.abcelem.rest&&"spacer"===e.abcelem.rest.type&&(l=0),l>0){for(var d=[],u=0;u<e.elemset.length;u++)null!==e.elemset[u]&&d.push(e.elemset[u]);var f=e.startTie;void 0!==o?(t["event"+o].elements.push(d),h&&(t["event"+i]||(t["event"+i]={type:"event",milliseconds:i,line:s,measureNumber:a,top:r,height:n,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),t["event"+i].measureStart=!0,h=!1),f||(o=void 0)):(t["event"+i]?(t["event"+i].left?t["event"+i].left=Math.min(t["event"+i].left,e.x):t["event"+i].left=e.x,t["event"+i].elements.push(d),t["event"+i].startCharArray.push(e.abcelem.startChar),t["event"+i].endCharArray.push(e.abcelem.endChar),null===t["event"+i].startChar&&(t["event"+i].startChar=e.abcelem.startChar),null===t["event"+i].endChar&&(t["event"+i].endChar=e.abcelem.endChar)):t["event"+i]={type:"event",milliseconds:i,line:s,measureNumber:a,top:r,height:n,left:e.x,width:e.w,elements:[d],startChar:e.abcelem.startChar,endChar:e.abcelem.endChar,startCharArray:[e.abcelem.startChar],endCharArray:[e.abcelem.endChar]},h&&(t["event"+i].measureStart=!0,h=!1),f&&(o=i))}return{isTiedState:o,duration:l/c,nextIsBar:h||"bar"===e.type}},this.makeVoicesArray=function(){for(var t=[],e=0;e<this.engraver.staffgroups.length;e++)for(var i=this.engraver.staffgroups[e],r=i.staffs[0],n=r.absoluteY,a=n-r.top*s.STEP,c=i.staffs[i.staffs.length-1],o=(n=c.absoluteY)-c.bottom*s.STEP-a,h=i.voices,l=0;l<h.length;l++){var d=0,u=!1;t[l]||(t[l]=[]);for(var f=h[l].children,p=0;p<f.length;p++)t[l].push({top:a,height:o,line:e,measureNumber:d,elem:f[p]}),"bar"===f[p].type&&u&&d++,"note"===f[p].type&&(u=!0)}return t},this.setupEvents=function(t,e){for(var i,r=[],n={},s=t,a=!0,c=this.makeVoicesArray(),o=0;o<c.length;o++)for(var h=s,l=Math.round(1e3*h),d=0,u=-1,f=c[o],p=0;p<f.length;p++){var m=f[p].elem;if("tempo"===m.abcelem.el_type){var g=this.getBpm(m.abcelem);e=this.getBeatLength()*(g/60)}var v=this.addElementToEvents(n,m,l,f[p].top,f[p].height,f[p].line,f[p].measureNumber,e,i,a);if(i=v.isTiedState,a=v.nextIsBar,h+=v.duration,l=Math.round(1e3*h),"bar"===m.type){var b=m.abcelem.type,y="bar_right_repeat"===b||"bar_dbl_repeat"===b,w="1"===m.abcelem.startEnding,x="bar_left_repeat"===b||"bar_dbl_repeat"===b||"bar_right_repeat"===b;if(y){-1===u&&(u=p);for(var k=d;k<u;k++){var A=f[k].elem;i=(v=this.addElementToEvents(n,A,l,f[k].top,f[k].height,f[k].line,f[k].measureNumber,e,i,a)).isTiedState,a=v.nextIsBar,h+=v.duration,l=Math.round(1e3*h)}a=!0,u=-1}w&&(u=p),x&&(d=p)}}return function(t){for(var e,i,r,n,s=t.length-1;s>=0;s--){var a=t[s];"bar"===a.type?(a.top=r,a.nextTop=e,e=r,a.bottom=n,a.nextBottom=i,i=n):"event"===a.type&&(r=a.top,n=a.top+a.height)}}(r=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e=e.sort(function(t,e){var i=t.milliseconds-e.milliseconds;return 0!==i?i:"bar"===t.type?-1:1})}(n)),r.push({type:"end",milliseconds:l}),r},this.getBpm=function(t){var e;if(t){e=t.bpm;var i=this.getBeatLength();e=e*(t.duration&&t.duration.length>0?t.duration[0]:i)/i}if(!e){e=180;var r=this.getMeterFraction();r&&8===r.den&&(e=120)}return e},this.setTiming=function(t,e){if(!t){var i=this.metaText?this.metaText.tempo:null;t=this.getBpm(i)}var r=this.getBeatLength(),n=t/60,s=this.getBarLength()/r*e/n;s&&(s-=this.getPickupLength()/r/n);var a=r*n;this.noteTimings=this.setupEvents(s,a)}}},function(t,e,i){"use strict";var r=i(6),n=i(13),s=i(7),a=i(12),c={};function o(){var t=window.innerWidth;for(var e in c)if(c.hasOwnProperty(e)){var i=c[e];t-=2*i.offsetLeft,i.style.width=t+"px"}}function h(t,e,i,r){i.viewportHorizontal?(t.innerHTML='<div class="abcjs-inner"></div>',i.scrollHorizontal?(t.style.overflowX="auto",t.style.overflowY="hidden"):t.style.overflow="hidden",c[t.id]=t,t=t.children[0]):i.viewportVertical?(t.innerHTML='<div class="abcjs-inner scroll-amount"></div>',t.style.overflowX="hidden",t.style.overflowY="auto",t=t.children[0]):t.innerHTML="";var s=new n(t,i);(s.engraveABC(e,r),e.engraver=s,i.viewportVertical||i.viewportHorizontal)&&(t.parentNode.style.width=t.style.width)}function l(t,e,i,r){function n(t){return{formatting:t.formatting,media:t.media,version:t.version,metaText:{},lines:[]}}for(var s,a=[],c=0;c<e.lines.length;c++){var o=e.lines[c];s||(s=n(e)),0===c&&(s.metaText.tempo=e.metaText.tempo,s.metaText.title=e.metaText.title,s.metaText.header=e.metaText.header,s.metaText.rhythm=e.metaText.rhythm,s.metaText.origin=e.metaText.origin,s.metaText.composer=e.metaText.composer,s.metaText.author=e.metaText.author,s.metaText.partOrder=e.metaText.partOrder),s.lines.push(o),o.staff&&(a.push(s),s=void 0)}if(s)for(var l=a[a.length-1],d=0;d<s.lines.length;d++)l.lines.push(s.lines[d]);(s=a[a.length-1]).metaText.unalignedWords=e.metaText.unalignedWords,s.metaText.book=e.metaText.book,s.metaText.source=e.metaText.source,s.metaText.discography=e.metaText.discography,s.metaText.notes=e.metaText.notes,s.metaText.transcription=e.metaText.transcription,s.metaText.history=e.metaText.history,s.metaText["abc-copyright"]=e.metaText["abc-copyright"],s.metaText["abc-creator"]=e.metaText["abc-creator"],s.metaText["abc-edited-by"]=e.metaText["abc-edited-by"],s.metaText.footer=e.metaText.footer;var u={};for(var f in i)i.hasOwnProperty(f)&&(u[f]=i[f]);var p=u.paddingtop,m=u.paddingbottom;t.innerHTML="";for(var g=0;g<a.length;g++){var v=document.createElement("div");t.appendChild(v),0===g?(u.paddingtop=p,u.paddingbottom=-20):g===a.length-1?(u.paddingtop=10,u.paddingbottom=m):(u.paddingtop=10,u.paddingbottom=-20),h(v,a[g],u,r)}}window.addEventListener("resize",o),window.addEventListener("orientationChange",o);t.exports=function(t,e,i,c,o){var d,u={};if(i)for(d in i)i.hasOwnProperty(d)&&(u[d]=i[d]);if(c)for(d in c)c.hasOwnProperty(d)&&("listener"===d?c[d].highlight&&(u.clickListener=c[d].highlight):u[d]=c[d]);if(o)for(d in o)o.hasOwnProperty(d)&&(u[d]=o[d]);return r.renderEngine(function(t,e,i,r){return u.wrap&&u.staffwidth?e=function(t,e,i,r,c){var o=new n(t,c),d=o.getMeasureWidths(e),u=a.calcLineWraps(e,d,r,c,s,o);return!c.oneSvgPerLine||u.tune.lines.length<2?h(t,u.tune,u.revisedParams,i):l(t,u.tune,u.revisedParams,i),u.tune.explanation=u.explanation,u.tune}(t,e,i,r,u):(!u.oneSvgPerLine||e.lines.length<2?h(t,e,u,i):l(t,e,u,i),null)},t,e,u)}},function(t,e,i){"use strict";var r,n=i(4),s=i(24),a=i(25),c=i(26),o=i(27),h=i(28),l=i(29),d=i(32),u=i(3),f=i(2),p=i(1),m=i(33),g=i(34),v=i(14),b=i(35),y=i(36),w=i(0);!function(){var t=!1,e={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"},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"}};function i(t,e){var i=t[e];if("note"!==i.el_type||!i.startBeam||i.endBeam)return{count:1,elem:i};for(var r=[];e<t.length&&"note"===t[e].el_type&&(r.push(t[e]),!t[e].endBeam);)e++;return{count:r.length,elem:r}}function x(t){if(t.pitches){k(t);for(var e=0,i=0;i<t.pitches.length;i++)e+=t.pitches[i].verticalPos;t.averagepitch=e/t.pitches.length,t.minpitch=t.pitches[0].verticalPos,t.maxpitch=t.pitches[t.pitches.length-1].verticalPos}}(r=function(t,e,i){this.decoration=new l,this.renderer=e,this.tuneNumber=i,this.isBagpipes=t,this.reset()}).prototype.reset=function(){this.slurs={},this.ties=[],this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},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},r.prototype.setStemHeight=function(t){this.stemHeight=t/p.STEP},r.prototype.getCurrentVoiceId=function(t,e){return"s"+t+"v"+e},r.prototype.pushCrossLineElems=function(t,e){this.slursbyvoice[this.getCurrentVoiceId(t,e)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(t,e)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(t,e)]=this.partstartelem},r.prototype.popCrossLineElems=function(t,e){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(t,e)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(t,e)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(t,e)]},r.prototype.containsLyrics=function(t){for(var e=0;e<t.length;e++)for(var i=0;i<t[e].voices.length;i++)for(var r=0;r<t[e].voices[i].length;r++){var n=t[e].voices[i][r];if(n.lyric)return void(n.positioning&&"below"!==n.positioning.vocalPosition||(this.hasVocals=!0))}},r.prototype.createABCLine=function(e,i){this.minY=2,this.containsLyrics(e);var r=new m;this.tempoSet=!1;for(var n=0;n<e.length;n++)t&&this.restoreState(),t=!1,this.createABCStaff(r,e[n],i,n);return r},r.prototype.createABCStaff=function(t,e,i,r){for(var n=0;n<e.voices.length;n++){var s=new y(n,e.voices.length);0===n?(s.barfrom="start"===e.connectBarLines||"continue"===e.connectBarLines,s.barto="continue"===e.connectBarLines||"end"===e.connectBarLines):s.duplicate=!0,e.title&&e.title[n]&&(s.header=e.title[n]);var l=c(e.clef,this.tuneNumber);l&&(0===n&&e.barNumber&&this.addMeasureNumber(e.barNumber,l),s.addChild(l));var d=o(e.key,this.tuneNumber);if(d&&(s.addChild(d),this.startlimitelem=d),e.meter){var u=h(e.meter,this.tuneNumber);s.addChild(u),this.startlimitelem=u}s.duplicate&&(s.children=[]);var f=e.clef.stafflines||0===e.clef.stafflines?e.clef.stafflines:5;t.addVoice(s,r,f);var p=1===f;this.createABCVoice(e.voices[n],i,r,n,p,s),t.setStaffLimits(s),"start"===e.brace?t.brace=new a(1,!0):"end"===e.brace&&t.brace?t.brace.increaseStavesIncluded():"continue"===e.brace&&t.brace&&t.brace.increaseStavesIncluded()}},r.prototype.createABCVoice=function(e,r,n,s,a,c){for(var o in this.popCrossLineElems(n,s),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new d("",null,null),c.addOther(this.partstartelem)),this.slurs)this.slurs.hasOwnProperty(o)&&(this.slurs[o]=new v(null,null,this.slurs[o].above,this.slurs[o].force,!1),t&&this.slurs[o].setHint(),c.addOther(this.slurs[o]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v(null,null,this.ties[h].above,this.ties[h].force,!0),t&&this.ties[h].setHint(),c.addOther(this.ties[h]);for(var l=0;l<this.abcline.length;l++)x(this.abcline[l]),this.minY=Math.min(this.abcline[l].minpitch,this.minY);for(var u=0===n,f=0;f<this.abcline.length;){var p=i(this.abcline,f),m=this.createABCElement(u,a,c,p.elem);if(m)for(h=0;h<m.length;h++)this.tempoSet||!r||r.suppress||(this.tempoSet=!0,m[h].addChild(new g(r,this.tuneNumber,S))),c.addChild(m[h]);f+=p.count}this.pushCrossLineElems(n,s)},r.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)},r.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)},r.prototype.createABCElement=function(e,i,r,s){var a=[];switch(s.el_type){case void 0:a=this.createBeam(i,r,s);break;case"note":a[0]=this.createNote(s,!1,i,r),this.triplet&&this.triplet.isClosed()&&(r.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":a[0]=this.createBarLine(r,s,e),r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"meter":a[0]=h(s,this.tuneNumber),this.startlimitelem=a[0],r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"clef":if(a[0]=c(s,this.tuneNumber),!a[0])return null;r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"key":var l=o(s,this.tuneNumber);l&&(a[0]=l,this.startlimitelem=a[0]),r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"stem":this.stemdir=s.direction;break;case"part":var d=new n(s,0,0,"part",this.tuneNumber),u=this.renderer.getTextSize(s.title,"partsfont","part");d.addChild(new f(s.title,0,0,void 0,{type:"part",height:u.height/p.STEP})),a[0]=d;break;case"tempo":var m=new n(s,0,0,"tempo",this.tuneNumber);m.addChild(new g(s,this.tuneNumber,S)),a[0]=m;break;case"style":"normal"===s.head?delete this.style:this.style=s.head;break;case"hint":t=!0,this.saveState();break;case"midi":break;default:var v=new n(s,0,0,"unsupported",this.tuneNumber);v.addChild(new f("element type "+s.el_type,0,0,void 0,{type:"debug"})),a[0]=v}return a},r.prototype.calcBeamDir=function(t,e,i){if(this.stemdir)return this.stemdir;for(var r=new s(this.stemHeight,this.stemdir),n=0;n<i.length;n++)r.add({abcelem:i[n]});return r.calcDir()?"up":"down"},r.prototype.createBeam=function(e,i,r){var n=[],a=this.calcBeamDir(e,i,r),c=new s(this.stemHeight,a);t&&c.setHint();var o=this.stemdir;this.stemdir=a;for(var h=0;h<r.length;h++){var l=r[h],d=this.createNote(l,!0,e,i);n.push(d),c.add(d),this.triplet&&this.triplet.isClosed()&&(i.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return this.stemdir=o,i.addBeam(c),n};var k=function(t){var e;do{e=!0;for(var i=0;i<t.pitches.length-1;i++)if(t.pitches[i].pitch>t.pitches[i+1].pitch){e=!1;var r=t.pitches[i];t.pitches[i]=t.pitches[i+1],t.pitches[i+1]=r}}while(!e)},A=function(t,e,i,r,n,s,a,c,o){for(var h=i;h>11;h--)h%2!=0||r||t.addChild(new f(null,c,(n+4)*o,h,{type:"ledger"}));for(h=e;h<1;h++)h%2!=0||r||t.addChild(new f(null,c,(n+4)*o,h,{type:"ledger"}));for(h=0;h<s.length;h++){var l=n;"down"===a&&(l=-l),t.addChild(new f(null,l+c,(n+4)*o,s[h],{type:"ledger"}))}};function T(t,e){for(var i=0;i<t.length;i++)if(JSON.stringify(t[i])===JSON.stringify(e))return;t.push(e)}r.prototype.addGraceNotes=function(i,r,n,a,c,o,h){var l,d=null;i.gracenotes.length>1&&(d=new s(.7*c,"grace",o),t&&d.setHint(),d.mainNote=n);var p,m=[];for(p=i.gracenotes.length-1;p>=0;p--)h+=10,m[p]=h,i.gracenotes[p].accidental&&(h+=7);for(p=0;p<i.gracenotes.length;p++){var g=i.gracenotes[p].verticalPos;l=d?null:e.uflags[o?5:3];var b=S(n,"noteheads.quarter",i.gracenotes[p],"up",-m[p],-m[p],l,0,0,.6,[]).notehead;if(this.addSlursAndTies(n,i.gracenotes[p],b,r,"up"),n.addExtra(b),i.gracenotes[p].acciaccatura){var y=i.gracenotes[p].verticalPos+4.2,w=d?5:6;n.addRight(new f("flags.ugrace",-m[p]+w,0,y,{scalex:.6,scaley:.6}))}if(d){var x=i.gracenotes[p].duration/2;o&&(x/=2);var k={heads:[b],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:x}};d.add(k)}else{var T=g+1/3*.6,N=g+4.2,_=b.dx+b.w;n.addExtra(new f(null,_,0,T,{type:"stem",pitch2:N,linewidth:-.6}))}if(A(n,g,g,!1,u.getSymbolWidth("noteheads.quarter"),[],!0,b.dx-1,.6),0===p&&!o&&(!i.rest||"spacer"!==i.rest.type&&"invisible"!==i.rest.type)){var C=1===i.gracenotes.length&&b.pitch===a.pitch;r.addOther(new v(b,a,!1,!0,C))}}return d&&r.addBeam(d),h},r.prototype.addNoteToAbcElement=function(t,i,r,n,s,a,c,o,h){var l,d,p,m,g,v=0,b=0,y=0,w=[],x=[],k=0,A=i.averagepitch>=6?"down":"up";for(n&&(A=n),(s=i.style?i.style:s)&&"normal"!==s||(s="note"),(m=a?e[s].nostem:e[s][-c])||console.log("noteSymbol:",s,c,a),g="down"===A?i.pitches.length-2:1;"down"===A?g>=0:g<i.pitches.length;g="down"===A?g-1:g+1){var N=i.pitches["down"===A?g+1:g-1],_=i.pitches[g],C="down"===A?N.pitch-_.pitch:_.pitch-N.pitch;C<=1&&!N.printer_shift&&(_.printer_shift=C?"different":"same",(_.verticalPos>11||_.verticalPos<1)&&w.push(_.verticalPos-_.verticalPos%2),"down"===A?b=u.getSymbolWidth(m)+2:v=u.getSymbolWidth(m)+2)}var E=i.pitches.length;for(g=0;g<i.pitches.length;g++){var M,B;if(!o)M="down"===A&&0!==g||"up"===A&&g!==E-1?null:e["down"===A?"dflags":"uflags"][-c];if(B=i.pitches[g].style?e[i.pitches[g].style][-c]:m,i.pitches[g].highestVert=i.pitches[g].verticalPos,("up"===n||"up"===A)&&0===g||("down"===n||"down"===A)&&g===E-1){if((i.startSlur||1===E)&&(i.pitches[g].highestVert=i.pitches[E-1].verticalPos,"up"!==n&&"up"!==A||(i.pitches[g].highestVert+=6)),i.startSlur)for(i.pitches[g].startSlur||(i.pitches[g].startSlur=[]),p=0;p<i.startSlur.length;p++)T(i.pitches[g].startSlur,i.startSlur[p]);if(i.endSlur)for(i.pitches[g].highestVert=i.pitches[E-1].verticalPos,"up"!==n&&"up"!==A||(i.pitches[g].highestVert+=6),i.pitches[g].endSlur||(i.pitches[g].endSlur=[]),p=0;p<i.endSlur.length;p++)T(i.pitches[g].endSlur,i.endSlur[p])}var P=!o&&c<=-1,L=S(t,B,i.pitches[g],P?A:null,0,-b,M,r,v,1,x);k=Math.max(u.getSymbolWidth(B),k),t.extraw-=L.extraLeft,(l=L.notehead)&&(this.addSlursAndTies(t,i.pitches[g],l,h,P?A:null),i.gracenotes&&i.gracenotes.length>0&&(l.bottom=l.bottom-1),t.addHead(l)),b+=L.accidentalshiftx,y=Math.max(y,L.dotshiftx)}if(P){var H="down"===A?i.minpitch-7:i.minpitch+1/3;H>6&&!n&&(H=6);var z="down"===A?i.maxpitch-1/3:i.maxpitch+7;z<6&&!n&&(z=6);var I="down"===A||0===t.heads.length?0:t.heads[0].w,O="down"===A?1:-1;"noteheads.slash.quarter"===l.c&&("down"===A?z-=1:H+=1),t.addExtra(new f(null,I,0,H,{type:"stem",pitch2:z,linewidth:O})),d=Math.min(H,z)}return{noteHead:l,roomTaken:b,roomTakenRight:y,min:d,additionalLedgers:w,dir:A,symbolWidth:k}},r.prototype.addLyric=function(t,e){var i="";w.each(e.lyric,function(t){var e=" "===t.divider?"":t.divider;i+=t.syllable+e+"\n"});var r=this.renderer.getTextSize(i,"vocalfont","lyric"),n=e.positioning?e.positioning.vocalPosition:"below";t.addCentered(new f(i,0,r.width,void 0,{type:"lyric",position:n,height:r.height/p.STEP}))},r.prototype.addChord=function(t,e,i,r){for(var n=0;n<e.chord.length;n++){var s,a=0,c=this.renderer.getTextSize(e.chord[n].name,"annotationfont","annotation"),o=c.width,h=c.height/p.STEP;switch(e.chord[n].position){case"left":a=-(i+=o+7),s=e.averagepitch,t.addExtra(new f(e.chord[n].name,a,o+4,s,{type:"text",height:h}));break;case"right":a=r+=4,s=e.averagepitch,t.addRight(new f(e.chord[n].name,a,o+4,s,{type:"text",height:h}));break;case"below":t.addRight(new f(e.chord[n].name,0,o+8,void 0,{type:"text",position:"below",height:h}));break;case"above":t.addRight(new f(e.chord[n].name,0,o+8,void 0,{type:"text",height:h}));break;default:if(e.chord[n].rel_position){var l=e.chord[n].rel_position.y+3*p.STEP;t.addChild(new f(e.chord[n].name,a+e.chord[n].rel_position.x,0,e.minpitch+l/p.STEP,{type:"text",height:h}))}else{var d="above";e.positioning&&e.positioning.chordPosition&&(d=e.positioning.chordPosition),h=(c=this.renderer.getTextSize(e.chord[n].name,"gchordfont","chord")).height/p.STEP,o=c.width,t.addCentered(new f(e.chord[n].name,a,o,void 0,{type:"chord",position:d,height:h}))}}}return{roomTaken:i,roomTakenRight:r}},r.prototype.createNote=function(i,r,s,a){var c,o=null,h=0,l=0,d=0,p=[],m=function(t){var e=0;return t.duration&&(e=t.duration),e}(i),g=!1;0===m&&(g=!0,m=.25,r=!0);for(var v=Math.floor(Math.log(m)/Math.log(2)),y=0,w=Math.pow(2,v),x=w/2;w<m;y++,w+=x,x/=2);i.startTriplet&&(this.tripletmultiplier=i.tripletMultiplier);var k=m*this.tripletmultiplier;i.rest&&"multimeasure"===i.rest.type&&(k=1);var T=i.rest?"rest":"note",N=new n(i,k,1,T,this.tuneNumber,{durationClassOveride:i.duration*this.tripletmultiplier});if(t&&N.setHint(),i.rest){var _=function(t,i,r,n,s,a,c,o){var h,l,d,p,m=7;switch(s&&("down"===a&&(m=3),"up"===a&&(m=11)),c&&(m=r<.5?7:r<1?7:5),i.rest.type){case"whole":h=e.rest[0],i.averagepitch=m,i.minpitch=m,i.maxpitch=m,n=0;break;case"rest":h="rhythm"===i.style?e.rhythm[-o]:e.rest[-o],i.averagepitch=m,i.minpitch=m,i.maxpitch=m;break;case"invisible":case"spacer":h="",i.averagepitch=m,i.minpitch=m,i.maxpitch=m;break;case"multimeasure":h=e.rest.multi,i.averagepitch=m,i.minpitch=m,i.maxpitch=m,n=0;var g=u.getSymbolWidth(h);t.addHead(new f(h,-g,2*g,7));var v=new f(""+i.duration,0,g,16,{type:"multimeasure-text"});t.addExtra(v)}if("multimeasure"!==i.rest.type){var b=S(t,h,{verticalPos:m},null,0,0,null,n,0,1,[]);(l=b.notehead)&&(t.addHead(l),d=b.accidentalshiftx,p=b.dotshiftx)}return{noteHead:l,roomTaken:d,roomTakenRight:p}}(N,i,m,y,a.voicetotal>1,this.stemdir,s,v);o=_.noteHead,h=_.roomTaken,l=_.roomTakenRight}else{var C=this.addNoteToAbcElement(N,i,y,this.stemdir,this.style,g,v,r,a);void 0!==C.min&&(this.minY=Math.min(C.min,this.minY)),o=C.noteHead,h=C.roomTaken,l=C.roomTakenRight,p=C.additionalLedgers,c=C.dir,d=C.symbolWidth}if(void 0!==i.lyric&&this.addLyric(N,i),void 0!==i.gracenotes&&(h+=this.addGraceNotes(i,a,N,o,this.stemHeight,this.isBagpipes,h)),i.decoration&&this.decoration.createDecoration(a,i.decoration,N.top,o?o.w:0,N,h,c,N.bottom,i.positioning,this.hasVocals),i.barNumber&&N.addChild(new f(i.barNumber,-10,0,0,{type:"barNumber"})),A(N,i.minpitch,i.maxpitch,i.rest,d,p,c,-2,1),void 0!==i.chord){var E=this.addChord(N,i,h,l);h=E.roomTaken,l=E.roomTakenRight}return i.startTriplet&&(this.triplet=new b(i.startTriplet,o)),i.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(o),N};var S=function(t,e,i,r,n,s,a,c,o,h,l){var d,p=i.verticalPos,m=0,g=0,v=0;if(void 0===e)t.addChild(new f("pitch is undefined",0,0,0,{type:"debug"}));else if(""===e)d=new f(null,0,0,p);else{var b=n;if(i.printer_shift){var y="same"===i.printer_shift?1:0;b="down"===r?-u.getSymbolWidth(e)*h+y:u.getSymbolWidth(e)*h-y}var w={scalex:h,scaley:h,thickness:u.symbolHeightInPitches(e)*h};if(d=new f(e,b,u.getSymbolWidth(e)*h,p,w),a){var x=p+("down"===r?-7:7)*h;(1===h&&"down"===r?x>6:x<6)&&(x=6);var k="down"===r?n:n+d.w-.6;t.addRight(new f(a,k,u.getSymbolWidth(a)*h,x,{scalex:h,scaley:h}))}for(g=d.w+o-2+5*c;c>0;c--){var A=1-Math.abs(p)%2;t.addRight(new f("dots.dot",d.w+o-2+5*c,u.getSymbolWidth("dots.dot"),p+A))}}if(d&&(d.highestVert=i.highestVert),i.accidental){var T;switch(i.accidental){case"quartersharp":T="accidentals.halfsharp";break;case"dblsharp":T="accidentals.dblsharp";break;case"sharp":T="accidentals.sharp";break;case"quarterflat":T="accidentals.halfflat";break;case"flat":T="accidentals.flat";break;case"dblflat":T="accidentals.dblflat";break;case"natural":T="accidentals.nat"}for(var S=!1,N=s,_=0;_<l.length;_++)if(p-l[_][0]>=6){l[_][0]=p,N=l[_][1],S=!0;break}!1===S&&(N-=u.getSymbolWidth(T)*h+2,l.push([p,N]),m=u.getSymbolWidth(T)*h+2),t.addExtra(new f(T,N,u.getSymbolWidth(T),p,{scalex:h,scaley:h})),v=u.getSymbolWidth(T)/2}return{notehead:d,accidentalshiftx:m,dotshiftx:g,extraLeft:v}};r.prototype.addSlursAndTies=function(e,i,r,n,s){if(i.endTie&&this.ties[0]&&(this.ties[0].setEndAnchor(r),this.ties=this.ties.slice(1,this.ties.length)),i.startTie){var a=new v(r,null,("down"===this.stemdir||"down"===s)&&"up"!==this.stemdir,"down"===this.stemdir||"up"===this.stemdir,!0);t&&a.setHint(),this.ties[this.ties.length]=a,n.addOther(a),e.startTie=!0}if(i.endSlur)for(var c=0;c<i.endSlur.length;c++){var o=i.endSlur[c];this.slurs[o]?((h=this.slurs[o]).setEndAnchor(r),delete this.slurs[o]):(h=new v(null,r,"down"===s,("up"===this.stemdir||"down"===s)&&"down"!==this.stemdir,!1),t&&h.setHint(),n.addOther(h)),this.startlimitelem&&h.setStartX(this.startlimitelem)}if(i.startSlur)for(c=0;c<i.startSlur.length;c++){o=i.startSlur[c].label;var h=new v(r,null,("down"===this.stemdir||"down"===s)&&"up"!==this.stemdir,!1,!1);t&&h.setHint(),this.slurs[o]=h,n.addOther(h)}},r.prototype.addMeasureNumber=function(t,e){var i=this.renderer.getTextSize(t,"measurefont","bar-number");e.addChild(new f(t,0,0,11+i.height/p.STEP,{type:"barNumber"}))},r.prototype.createBarLine=function(t,e,i){var r=new n(e,0,10,"bar",this.tuneNumber),s=null,a=0;e.barNumber&&this.addMeasureNumber(e.barNumber,r);var c="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type,o="bar_left_repeat"!==e.type&&"bar_thick_thin"!==e.type&&"bar_invisible"!==e.type,h="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type||"bar_left_repeat"===e.type||"bar_thin_thick"===e.type||"bar_thick_thin"===e.type,l="bar_left_repeat"===e.type||"bar_thick_thin"===e.type||"bar_thin_thin"===e.type||"bar_dbl_repeat"===e.type,u="bar_left_repeat"===e.type||"bar_dbl_repeat"===e.type;if(c||u){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(r);this.startlimitelem=r}if(c&&(r.addRight(new f("dots.dot",a,1,7)),r.addRight(new f("dots.dot",a,1,5)),a+=6),o&&(s=new f(null,a,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(s)),"bar_invisible"===e.type&&(s=new f(null,a,1,2,{type:"none",pitch2:10,linewidth:.6}),r.addRight(s)),e.decoration&&this.decoration.createDecoration(t,e.decoration,12,h?3:1,r,0,"down",2,e.positioning,this.hasVocals),h&&(s=new f(null,a+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),r.addRight(s),a+=5),this.partstartelem&&e.endEnding&&(this.partstartelem.anchor2=s,this.partstartelem=null),l&&(s=new f(null,a+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(s)),u&&(a+=3,r.addRight(new f("dots.dot",a,1,7)),r.addRight(new f("dots.dot",a,1,5))),e.startEnding&&i){var m=this.renderer.getTextSize(e.startEnding,"repeatfont","").width;r.minspacing+=m+10,this.partstartelem=new d(e.startEnding,s,null),t.addOther(this.partstartelem)}return r.extraw-=5,r}}(),t.exports=r},function(t,e,i){"use strict";i(4);var r,n=i(2),s=i(1),a=function(t){return void 0===t?0:Math.floor(Math.log(t)/Math.log(2))};!function(){(r=function(t,e,i){this.isflat=i,this.isgrace=e&&"grace"===e,this.forceup=this.isgrace||e&&"up"===e,this.forcedown=e&&"down"===e,this.elems=[],this.total=0,this.allrests=!0,this.stemHeight=t,this.beams=[]}).prototype.setHint=function(){this.hint=!0},r.prototype.add=function(t){var e=t.abcelem.averagepitch;void 0!==e&&(this.allrests=this.allrests&&t.abcelem.rest,t.beam=this,this.elems.push(t),this.total+=e,(void 0===this.min||t.abcelem.minpitch<this.min)&&(this.min=t.abcelem.minpitch),(void 0===this.max||t.abcelem.maxpitch>this.max)&&(this.max=t.abcelem.maxpitch))};function t(t,e,i,r){if(!t.children)return r;for(var n=0;n<t.children.length;n++){var s=t.children[n];e&&void 0!==s.top&&"flags.ugrace"===s.c?r=Math.max(r,s.top-i):e||void 0===s.bottom||"flags.ugrace"!==s.c||(r=Math.max(r,i-s.bottom+7))}return r}function e(t,e){return e?t/e:0}function i(t,e,i,r,n){return e+(r-e)/(i-t)*(n-t)}function c(t,e,i,r,n,s,a){var c="beam-elem";a&&(c+=" abcjs-hint");var o="M"+e+" "+(i=t.calcY(i))+" L"+r+" "+(n=t.calcY(n))+"L"+r+" "+(n+s)+" L"+e+" "+(i+s)+"z";t.printPath({path:o,stroke:"none",fill:"#000000",class:t.addClasses(c)})}r.prototype.calcDir=function(){return!!this.forceup||!this.forcedown&&e(this.total,this.elems.length)<6},r.prototype.layout=function(){if(0!==this.elems.length&&!this.allrests){this.stemsUp=this.calcDir();var r=function(t,e){var i=t?s.STEP:-s.STEP;e&&(i*=.4);return i}(this.stemsUp,this.isgrace),c=this.elems[0],o=this.elems[this.elems.length-1],h=0,l=this.stemsUp?c.abcelem.maxpitch:c.abcelem.minpitch;h=t(c,this.stemsUp,l,h),h=t(o,this.stemsUp,l,h),h=Math.max(this.stemHeight,h+3);var d=function(t,i,r,n,s,a,c,o,h,l){var d=e(t,i),u=r-2,f=r-2,p=Math.round(n?Math.max(d+u,h+f):Math.min(d-u,o-f)),m=function(t,e,i,r){if(r)return 0;var n=t-e,s=i/2;n>s&&(n=s);n<-s&&(n=-s);return n}(s,a,i,c),g=p+Math.floor(m/2),v=p+Math.floor(-m/2);l||(n&&p<6?(g=6,v=6):!n&&p>6&&(g=6,v=6));return[g,v]}(this.total,this.elems.length,h,this.stemsUp,c.abcelem.averagepitch,o.abcelem.averagepitch,this.isflat,this.min,this.max,this.isgrace),u=function(t,e,i){var r=e.heads[t?0:e.heads.length-1],n=i.heads[t?0:i.heads.length-1],s=r.x;t&&(s+=r.w-.6);var a=n.x;t&&(a+=n.w);return[s,a]}(this.stemsUp,c,o);this.beams.push({startX:u[0],endX:u[1],startY:d[0],endY:d[1],dy:r});for(var f=function(t,e,r,n,s){for(var c=[],o=[],h=0;h<t.length;h++){var l=t[h];if(!l.abcelem.rest){var d=l.heads[e?0:l.heads.length-1],u=d.x+(e?d.w:0),f=i(r.startX,r.startY,r.endX,r.endY,u),p=e?-1.5:1.5;n&&(p=2*p/3);var m=l.abcelem.duration;0===m&&(m=.25);for(var g=a(m);g<-3;g++)o[-4-g]?o[-4-g].single=!1:o[-4-g]={x:u+(e?-.6:0),y:f+p*(-4-g+1),durlog:g,single:!0};for(var v=o.length-1;v>=0;v--)if(h===t.length-1||a(t[h+1].abcelem.duration)>-v-4){var b=u,y=f+p*(v+1);o[v].single&&(b=0===h?u+5:u-5,y=i(r.startX,r.startY,r.endX,r.endY,b)+p*(v+1)),c.push({startX:o[v].x,endX:b,startY:o[v].y,endY:y,dy:s}),o=o.slice(0,v)}}}return c}(this.elems,this.stemsUp,this.beams[0],this.isgrace,r),p=0;p<f.length;p++)this.beams.push(f[p]);!function(t,e,r,a,c){for(var o=0;o<t.length;o++){var h=t[o];if(!h.abcelem.rest){var l=!h.addExtra,d=l?c:h,u=h.heads[e?0:h.heads.length-1],f=u.pitch+(e?.2:-.2),p=e?u.w:0,m=u.x+p,g=i(r.startX,r.startY,r.endX,r.endY,m),v=e?-.6:.6;e||(g-=a/2/s.STEP),l&&(p+=h.heads[0].dx),"noteheads.slash.quarter"===u.c&&(e?f+=1:f-=1);var b=new n(null,p,0,f,{type:"stem",pitch2:g,linewidth:v});b.setX(d.x),d.addExtra(b)}}}(this.elems,this.stemsUp,this.beams[0],r,this.mainNote)}},r.prototype.isAbove=function(){return this.stemsUp},r.prototype.heightAtMidpoint=function(t,e){if(0===this.beams.length)return 0;var r=this.beams[0],n=t+(e-t)/2;return i(r.startX,r.startY,r.endX,r.endY,n)},r.prototype.yAtNote=function(t){var e=this.beams[0];return i(e.startX,e.startY,e.endX,e.endY,t.x)},r.prototype.xAtMidpoint=function(t,e){return t+(e-t)/2},r.prototype.draw=function(t){if(0!==this.beams.length){t.beginGroup();for(var e=0;e<this.beams.length;e++){var i=this.beams[e];c(t,i.startX,i.startY,i.endX,i.endY,i.dy,this.hint)}t.endGroup("beam-elem")}}}(),t.exports=r},function(t,e,i){"use strict";var r=function(){this.length=1};r.prototype.increaseStavesIncluded=function(){this.length++},r.prototype.setLocation=function(t){this.x=t},r.prototype.getWidth=function(){return 10},r.prototype.layout=function(t,e,i){this.startY=e,this.endY=i},r.prototype.draw=function(t,e,i){this.layout(t,e,i),t.drawBrace(this.x,this.startY,this.endY)},t.exports=r},function(t,e,i){"use strict";var r,n=i(4),s=i(3),a=i(2);r=function(t,e){var i,r=0,c=new n(t,0,10,"staff-extra",e);switch(c.isClef=!0,t.type){case"treble":i="clefs.G";break;case"tenor":case"alto":i="clefs.C";break;case"bass":i="clefs.F";break;case"treble+8":i="clefs.G",r=1;break;case"tenor+8":i="clefs.C",r=1;break;case"bass+8":i="clefs.F",r=1;break;case"alto+8":i="clefs.C",r=1;break;case"treble-8":i="clefs.G",r=-1;break;case"tenor-8":i="clefs.C",r=-1;break;case"bass-8":i="clefs.F",r=-1;break;case"alto-8":i="clefs.C",r=-1;break;case"none":return null;case"perc":i="clefs.perc";break;default:c.addChild(new a("clef="+t.type,0,0,void 0,{type:"debug"}))}if(i&&(c.addRight(new a(i,5,s.getSymbolWidth(i),t.clefPos)),"clefs.G"===i?(c.top=13,c.bottom=-1):(c.top=10,c.bottom=2),0!==r)){var o=(s.getSymbolWidth(i)-s.getSymbolWidth("8")*(2/3))/2;c.addRight(new a("8",5+o,s.getSymbolWidth("8")*(2/3),r>0?c.top+3:c.bottom-1,{scalex:2/3,scaley:2/3})),c.top+=2}return c},t.exports=r},function(t,e,i){"use strict";var r,n=i(4),s=i(3),a=i(2),c=i(0);r=function(t,e){if(!t.accidentals||0===t.accidentals.length)return null;var i=new n(t,0,10,"staff-extra",e);i.isKeySig=!0;var r=0;return c.each(t.accidentals,function(t){var e="sharp"===t.acc?"accidentals.sharp":"natural"===t.acc?"accidentals.nat":"accidentals.flat";i.addRight(new a(e,r,s.getSymbolWidth(e),t.verticalPos,{thickness:s.symbolHeightInPitches(e)})),r+=s.getSymbolWidth(e)+2},this),i},t.exports=r},function(t,e,i){"use strict";var r,n=i(4),s=i(3),a=i(2);r=function(t,e){var i=new n(t,0,10,"staff-extra",e);if("specified"===t.type)for(var r=0,c=0;c<t.value.length;c++)if(0!==c&&(i.addRight(new a("+",r+1,s.getSymbolWidth("+"),6,{thickness:s.symbolHeightInPitches("+")})),r+=s.getSymbolWidth("+")+2),t.value[c].den){for(var o=0,h=0;h<t.value[c].num.length;h++)o+=s.getSymbolWidth(t.value[c].num.charAt(h));var l=0;for(h=0;h<t.value[c].num.length;h++)l+=s.getSymbolWidth(t.value[c].den.charAt(h));var d=Math.max(o,l);i.addRight(new a(t.value[c].num,r+(d-o)/2,o,8,{thickness:s.symbolHeightInPitches(t.value[c].num.charAt(0))})),i.addRight(new a(t.value[c].den,r+(d-l)/2,l,4,{thickness:s.symbolHeightInPitches(t.value[c].den.charAt(0))})),r+=d}else{for(var u=0,f=0;f<t.value[c].num.length;f++)u+=s.getSymbolWidth(t.value[c].num.charAt(f));i.addRight(new a(t.value[c].num,r,u,6,{thickness:s.symbolHeightInPitches(t.value[c].num.charAt(0))})),r+=u}else"common_time"===t.type?i.addRight(new a("timesig.common",0,s.getSymbolWidth("timesig.common"),6,{thickness:s.symbolHeightInPitches("timesig.common")})):"cut_time"===t.type?i.addRight(new a("timesig.cut",0,s.getSymbolWidth("timesig.cut"),6,{thickness:s.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===t.type?i.addRight(new a("timesig.imperfectum",0,s.getSymbolWidth("timesig.imperfectum"),6,{thickness:s.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===t.type?i.addRight(new a("timesig.imperfectum2",0,s.getSymbolWidth("timesig.imperfectum2"),6,{thickness:s.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===t.type?i.addRight(new a("timesig.perfectum",0,s.getSymbolWidth("timesig.perfectum"),6,{thickness:s.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===t.type?i.addRight(new a("timesig.perfectum2",0,s.getSymbolWidth("timesig.perfectum2"),6,{thickness:s.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",t);return i},t.exports=r},function(t,e,i){"use strict";var r,n=i(30),s=i(31),a=i(3),c=i(2),o=i(14);!function(){var t=function(t,e,i,r,n){function s(t,e){var s="down"===n?function(){if(0===r.heads.length)return 2;for(var t=r.heads[0].pitch,e=1;e<r.heads.length;e++)t=Math.min(t,r.heads[e].pitch);return t}()+1:function(){if(0===r.heads.length)return 10;for(var t=r.heads[0].pitch,e=1;e<r.heads.length;e++)t=Math.max(t,r.heads[e].pitch);return t}()+9;"down"!==n&&1===e&&s--;var o=i/2;o+="down"===n?-5:3;for(var h=0;h<e;h++)s-=1,r.addChild(new c(t,o,a.getSymbolWidth(t),s))}for(var o=0;o<t.length;o++)switch(t[o]){case"/":s("flags.ugrace",1);break;case"//":s("flags.ugrace",2);break;case"///":s("flags.ugrace",3);break;case"////":s("flags.ugrace",4)}};(r=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}).prototype.dynamicDecoration=function(t,e,i,r){for(var n,a,c=0;c<e.length;c++)switch(e[c]){case"diminuendo(":this.startDiminuendoX=i,n=void 0;break;case"diminuendo)":n={start:this.startDiminuendoX,stop:i},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=i,a=void 0;break;case"crescendo)":a={start:this.startCrescendoX,stop:i},this.startCrescendoX=void 0}n&&t.addOther(new s(n.start,n.stop,">",r)),a&&t.addOther(new s(a.start,a.stop,"<",r))},r.prototype.createDecoration=function(e,i,r,s,h,l,d,u,f,p){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(t,e,i,r){for(var s=0;s<e.length;s++)switch(e[s]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var a=new n(i,e[s],r);t.addOther(a)}}(e,i,h,f.volumePosition),this.dynamicDecoration(e,i,h,f.dynamicPosition),t(i,0,s,h,d);var m=function(t,e,i,r,n,s,h,l){for(var d,u=0;u<e.length;u++){if("staccato"===e[u]||"tenuto"===e[u]||"accent"===e[u]){var f="scripts."+e[u];if("accent"===e[u]&&(f="scripts.sforzato"),d=void 0===d?"down"===h?i+2:l-2:"down"===h?d+2:d-2,"accent"===e[u])"up"===h?d--:d++;else switch(d){case 2:case 4:case 6:case 8:case 10:"up"===h?d--:d++}i>9&&d++;var p=r/2;"center"!==a.getSymbolAlign(f)&&(p-=a.getSymbolWidth(f)/2),n.addChild(new c(f,p,a.getSymbolWidth(f),d))}if("slide"===e[u]&&n.heads[0]){var m=n.heads[0].pitch,g=new c("",-s-15,0,(m-=2)-1),v=new c("",-s-5,0,m+1);n.addChild(g),n.addChild(v),t.addOther(new o(g,v,!1,!1,!1))}}return void 0===d&&(d=i),{above:d,below:n.bottom}}(e,i,r,s,h,l,d,u);m.above=Math.max(m.above,this.minTop);!function(t,e,i,r,n,s,o){function h(t,e){"above"===t?r.above+=e:r.below-=e}function l(t){var e;return"above"===t?(e=r.above)<s&&(e=s):(e=r.below)>o&&(e=o),e}function d(t,r){var n=l(r);i.addChild(new c(t,e/2,0,n+2,{type:"decoration",klass:"ornament",thickness:3})),h(r,5)}function u(t,r){var n=e/2;"center"!==a.getSymbolAlign(t)&&(n-=a.getSymbolWidth(t)/2);var s=a.symbolHeightInPitches(t)+1,o=l(r);o="above"===r?o+s/2:o-s/2,i.addChild(new c(t,n,a.getSymbolWidth(t),o,{klass:"ornament",thickness:a.symbolHeightInPitches(t)})),h(r,s)}for(var f={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<t.length;m++)switch(t[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":d(t[m],n),p=!0;break;case"fine":d("FINE",n),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":u(f[t[m]],n),p=!0;break;case"invertedfermata":u(f[t[m]],"below"),p=!0;break;case"mark":i.klass="mark"}}(i,s,h,m,f.ornamentPosition,this.minTop,this.minBottom)}}(),t.exports=r},function(t,e,i){"use strict";i(1);var r=function(t,e,i){this.anchor=t,this.dec=e,"below"===i?this.volumeHeightBelow=5:this.volumeHeightAbove=5,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(t){this.volumeHeightAbove?this.pitch=t.volumeHeightAbove:this.pitch=t.volumeHeightBelow},r.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Dynamic Element y-coordinate not set.");t.printSymbol(this.anchor.x,this.pitch,this.dec,1,1,t.addClasses("decoration"))},t.exports=r},function(t,e,i){"use strict";var r=i(5),n=function(t,e,i,r){this.anchor1=t,this.anchor2=e,this.dir=i,"above"===r?this.dynamicHeightAbove=4:this.dynamicHeightBelow=4,this.pitch=void 0};n.prototype.setUpperAndLowerElements=function(t){this.dynamicHeightAbove?this.pitch=t.dynamicHeightAbove:this.pitch=t.dynamicHeightBelow},n.prototype.draw=function(t){void 0===this.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var e=t.calcY(this.pitch)+4;"<"===this.dir?(this.drawLine(t,e+4,e),this.drawLine(t,e+4,e+8)):(this.drawLine(t,e,e+4),this.drawLine(t,e+8,e+4))},n.prototype.drawLine=function(t,e,i){var n=this.anchor1?this.anchor1.x:0,s=this.anchor2?this.anchor2.x:800,a=r("M %f %f L %f %f",n,e,s,i);t.printPath({path:a,stroke:"#000000",class:t.addClasses("decoration")})},t.exports=n},function(t,e,i){"use strict";var r=i(5),n=function(t,e,i){this.text=t,this.anchor1=e,this.anchor2=i,this.endingHeightAbove=5,this.pitch=void 0};n.prototype.setUpperAndLowerElements=function(t){this.pitch=t.endingHeightAbove-2},n.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Ending Element y-coordinate not set.");var n,s=t.calcY(this.pitch);this.anchor1&&(e=this.anchor1.x+this.anchor1.w,n=r("M %f %f L %f %f",e,s,e,s+20),t.printPath({path:n,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")}),t.renderText(e+5,t.calcY(this.pitch-.5),this.text,"repeatfont","ending","start")),this.anchor2&&(i=this.anchor2.x,n=r("M %f %f L %f %f",i,s,i,s+20),t.printPath({path:n,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})),n=r("M %f %f L %f %f",e,s,i,s),t.printPath({path:n,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})},t.exports=n},function(t,e,i){"use strict";var r=i(1),n=function(){this.voices=[],this.staffs=[],this.brace=void 0};n.prototype.setLimit=function(t,e){e.specialY[t]&&(e.staff.specialY[t]?e.staff.specialY[t]=Math.max(e.staff.specialY[t],e.specialY[t]):e.staff.specialY[t]=e.specialY[t])},n.prototype.addVoice=function(t,e,i){var r=this.voices.length;this.voices[r]=t,this.staffs[e]?this.staffs[e].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:i,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},t.staff=this.staffs[e]},n.prototype.setStaffLimits=function(t){t.staff.top=Math.max(t.staff.top,t.top),t.staff.bottom=Math.min(t.staff.bottom,t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},n.prototype.setUpperAndLowerElements=function(t){for(var e,i=0;i<this.staffs.length;i++){var n=this.staffs[i],s={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};0,n.specialY.lyricHeightAbove&&(n.top+=n.specialY.lyricHeightAbove,s.lyricHeightAbove=n.top),n.specialY.chordHeightAbove&&(n.top+=n.specialY.chordHeightAbove,s.chordHeightAbove=n.top),n.specialY.endingHeightAbove&&(n.specialY.chordHeightAbove?n.top+=2:n.top+=n.specialY.endingHeightAbove,s.endingHeightAbove=n.top),n.specialY.dynamicHeightAbove&&n.specialY.volumeHeightAbove?(n.top+=Math.max(n.specialY.dynamicHeightAbove,n.specialY.volumeHeightAbove),s.dynamicHeightAbove=n.top,s.volumeHeightAbove=n.top):n.specialY.dynamicHeightAbove?(n.top+=n.specialY.dynamicHeightAbove,s.dynamicHeightAbove=n.top):n.specialY.volumeHeightAbove&&(n.top+=n.specialY.volumeHeightAbove,s.volumeHeightAbove=n.top),n.specialY.partHeightAbove&&(n.top+=n.specialY.partHeightAbove,s.partHeightAbove=n.top),n.specialY.tempoHeightAbove&&(n.top+=n.specialY.tempoHeightAbove,s.tempoHeightAbove=n.top),n.specialY.lyricHeightBelow&&(s.lyricHeightBelow=n.bottom,n.bottom-=n.specialY.lyricHeightBelow),n.specialY.chordHeightBelow&&(s.chordHeightBelow=n.bottom,n.bottom-=n.specialY.chordHeightBelow),n.specialY.volumeHeightBelow&&n.specialY.dynamicHeightBelow?(s.volumeHeightBelow=n.bottom,s.dynamicHeightBelow=n.bottom,n.bottom-=Math.max(n.specialY.volumeHeightBelow,n.specialY.dynamicHeightBelow)):n.specialY.volumeHeightBelow?(s.volumeHeightBelow=n.bottom,n.bottom-=n.specialY.volumeHeightBelow):n.specialY.dynamicHeightBelow&&(s.dynamicHeightBelow=n.bottom,n.bottom-=n.specialY.dynamicHeightBelow);for(var a=0;a<n.voices.length;a++){this.voices[n.voices[a]].setUpperAndLowerElements(s)}if(void 0!==e){var c=e+(n.top-10),o=t.spacing.systemStaffSeparation/r.STEP-c;o>0&&(n.top+=o)}e=2-n.bottom}},n.prototype.finished=function(){for(var t=0;t<this.voices.length;t++)if(!this.voices[t].layoutEnded())return!1;return!0},n.prototype.layout=function(t,e,i){var r,n=0,s=1e3,a=function(t,e,i){for(var r=t.padding.left,n=0,s=0;s<e.length;s++)if(e[s].header){var a=t.getTextSize(e[s].header,"voicefont","");n=Math.max(n,a.width)}return n&&(n+=t.getTextSize("A","voicefont","").width),r+=n,i&&(i.setLocation(r),r+=i.getWidth()),r}(e,this.voices,this.brace);this.startx=a;var c=0;for(i&&console.log("init layout",t),r=0;r<this.voices.length;r++)this.voices[r].beginLayout(a);for(var o=0;!this.finished();){for(c=null,r=0;r<this.voices.length;r++)this.voices[r].layoutEnded()||c&&!(this.voices[r].getDurationIndex()<c)||(c=this.voices[r].getDurationIndex());var h=[],l=[];for(r=0;r<this.voices.length;r++){this.voices[r].getDurationIndex()-c>1e-7?l.push(this.voices[r]):h.push(this.voices[r])}o=0;var d=0;for(r=0;r<h.length;r++)h[r].getNextX()>a&&(a=h[r].getNextX(),o=h[r].getSpacingUnits(),d=h[r].spacingduration);for(n+=o,s=Math.min(s,o),i&&console.log("currentduration: ",c,n,s),r=0;r<h.length;r++){var u=h[r].layoutOneItem(a,t),f=u-a;if(f>0){a=u;for(var p=0;p<r;p++)h[p].shiftRight(f)}}for(r=0;r<l.length;r++)l[r].spacingduration-=d,l[r].updateNextX(a,t);for(r=0;r<h.length;r++){h[r].updateIndices()}}for(r=0;r<this.voices.length;r++)this.voices[r].getNextX()>a&&(a=this.voices[r].getNextX(),o=this.voices[r].getSpacingUnits());for(n+=o,this.w=a,r=0;r<this.voices.length;r++)this.voices[r].w=this.w;return{spacingUnits:n,minSpace:s}},n.prototype.calcHeight=function(){for(var t=0,e=0;e<this.voices.length;e++){var i=this.voices[e].staff;this.voices[e].duplicate||(t+=i.top,i.bottom<0&&(t+=-i.bottom))}return t},n.prototype.draw=function(t){t.addInvisibleMarker("abcjs-top-of-system");for(var e,i,n=t.y,s=0;s<this.staffs.length;s++){var a=this.staffs[s];t.moveY(r.STEP,a.top),a.absoluteY=t.y,a.bottom<0&&t.moveY(r.STEP,-a.bottom)}var c=0;t.measureNumber=null,t.noteNumber=null;for(var o=0;o<this.voices.length;o++){var h=this.voices[o].staff;t.y=h.absoluteY,t.voiceNumber=o,this.voices[o].duplicate||(e||(e=t.calcY(10)),i=t.calcY(2),0!==h.lines&&(t.measureNumber=null,t.noteNumber=null,t.printStave(this.startx,this.w,h.lines))),this.voices[o].draw(t,c),t.measureNumber=null,t.noteNumber=null,this.voices[o].duplicate||(c=t.calcY(2)),this.brace&&o===this.brace.length-1&&this.brace&&this.brace.draw(t,e,i)}t.measureNumber=null,t.noteNumber=null,this.staffs.length>1&&t.printStem(this.startx,.6,e,i),t.y=n},t.exports=n},function(t,e,i){"use strict";var r,n=i(4),s=i(2);(r=function(t,e,i){this.tempo=t,this.tuneNumber=e,this.tempoHeightAbove=5,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,t,e))}).prototype.setUpperAndLowerElements=function(t){if(this.pitch=t.tempoHeightAbove,this.top=t.tempoHeightAbove,this.bottom=t.tempoHeightAbove,this.note){var e=this.pitch-5+1;this.note.top=e,this.note.bottom=e;for(var i=0;i<this.note.children.length;i++){var r=this.note.children[i];r.top+=e,r.bottom+=e,r.pitch+=e,void 0!==r.pitch2&&(r.pitch2+=e)}}},r.prototype.setX=function(t){this.x=t},r.prototype.createNote=function(t,e,i){var r,a,c,o=e.duration[0],h=new n(e,o,1,"tempo",i);o<=1/32?(c="noteheads.quarter",a="flags.u32nd",r=0):o<=1/16?(c="noteheads.quarter",a="flags.u16th",r=0):o<=3/32?(c="noteheads.quarter",a="flags.u16nd",r=1):o<=1/8?(c="noteheads.quarter",a="flags.u8th",r=0):o<=3/16?(c="noteheads.quarter",a="flags.u8th",r=1):o<=.25?(c="noteheads.quarter",r=0):o<=3/8?(c="noteheads.quarter",r=1):o<=.5?(c="noteheads.half",r=0):o<=.75?(c="noteheads.half",r=1):o<=1?(c="noteheads.whole",r=0):o<=1.5?(c="noteheads.whole",r=1):o<=2?(c="noteheads.dbl",r=0):(c="noteheads.dbl",r=1);var l,d=t(h,c,{verticalPos:0},"up",0,0,a,r,0,.75).notehead;if(h.addHead(d),"noteheads.whole"!==c&&"noteheads.dbl"!==c){var u=d.dx+d.w;l=new s(null,u,0,.25,{type:"stem",pitch2:5.25,linewidth:-.6}),h.addExtra(l)}return h},r.prototype.draw=function(t){var e=this.x;void 0===this.pitch&&window.console.error("Tempo Element y-coordinate not set.");var i=t.calcY(this.pitch);if(this.tempo.preString){var r=t.renderText(e,i,this.tempo.preString,"tempofont","tempo","start").getBBox().width;e+=r+r/this.tempo.preString.length}if(this.note){this.note&&this.note.setX(e);for(var n=0;n<this.note.children.length;n++)this.note.children[n].draw(t,e);e+=this.note.w+5;var s="= "+this.tempo.bpm,a=t.renderText(e,i,s,"tempofont","tempo","start").getBBox().width;e+=a+a/s.length}this.tempo.postString&&t.renderText(e,i,this.tempo.postString,"tempofont","tempo","start")},t.exports=r},function(t,e,i){"use strict";var r,n=i(5);!function(){function t(t,e,i,r,s,a){var c=n("M %f %f L %f %f",e,i,r,s);t.printPath({path:c,stroke:"#000000",class:t.addClasses("triplet d"+a)})}(r=function(t,e){this.anchor1=e,this.number=t,this.duration=(""+e.parent.durationClass).replace(/\./,"-")}).prototype.isClosed=function(){return this.anchor2},r.prototype.setCloseAnchor=function(t){this.anchor2=t,this.anchor1.parent.beam&&(this.endingHeightAbove=4)},r.prototype.setUpperAndLowerElements=function(){},r.prototype.layout=function(){if(this.anchor1&&this.anchor2)if(this.hasBeam=this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam,this.hasBeam){var t=this.anchor1.parent.beam,e=t.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;this.yTextPos=t.heightAtMidpoint(e,this.anchor2.x),this.yTextPos+=t.isAbove()?4:-4,t.isAbove()&&(this.endingHeightAbove=4)}else this.startNote=Math.max(this.anchor1.parent.top,9)+4,this.endNote=Math.max(this.anchor2.parent.top,9)+4,this.yTextPos=this.startNote+(this.endNote-this.startNote)/2},r.prototype.draw=function(e){var i;if(this.hasBeam){var r=this.anchor1.parent.beam.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;i=this.anchor1.parent.beam.xAtMidpoint(r,this.anchor2.x)}else i=this.anchor1.x+(this.anchor2.x+this.anchor2.w-this.anchor1.x)/2,function(e,i,r,n,s,a){r=e.calcY(r),s=e.calcY(s);t(e,i,r,i,r+5,a),t(e,n,s,n,s+5,a);var c=i+(n-i)/2,o=(s-r)/(n-i),h=c-8;t(e,i,r,h,r+(h-i)*o,a);var l=c+8;t(e,l,r+(l-i)*o,n,s,a)}(e,this.anchor1.x,this.startNote,this.anchor2.x+this.anchor2.w,this.endNote,this.duration);e.renderText(i,e.calcY(this.yTextPos),""+this.number,"tripletfont",e.addClasses("triplet d"+this.duration),"middle",!0)}}(),t.exports=r},function(t,e,i){"use strict";var r=i(0),n=function(t,e){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=e,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}};function s(t){return"rest"===t.type&&!(!t.abcelem||!t.abcelem.rest||"spacer"===t.abcelem.rest.type)}n.prototype.addChild=function(t){if("bar"===t.type){for(var e=!0,i=0;e&&i<this.children.length;i++)"staff-extra"!==this.children[i].type&&(e=!1);e||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=t,this.setRange(t)},n.prototype.setLimit=function(t,e){var i=e.specialY;i||(i=e),i[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],i[t]):this.specialY[t]=i[t])},n.prototype.moveDecorations=function(t){for(var e=0;e<t.elems.length;e++){var i=t.elems[e];if(i.top)for(var r=t.yAtNote(i),n=0;n<i.children.length;n++){var s=i.children[n];if("ornament"===s.klass&&s.bottom-1.5<r){var a=r-s.bottom+1.5;s.bottom+=a,s.top+=a,s.pitch+=a,r=i.top=s.top}}}},n.prototype.adjustRange=function(t){void 0!==t.bottom&&(this.bottom=Math.min(this.bottom,t.bottom)),void 0!==t.top&&(this.top=Math.max(this.top,t.top))},n.prototype.setRange=function(t){this.adjustRange(t),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},n.prototype.setUpperAndLowerElements=function(t){var e;for(e=0;e<this.children.length;e++){(i=this.children[e]).setUpperAndLowerElements(t)}for(e=0;e<this.otherchildren.length;e++){var i;"string"!=typeof(i=this.otherchildren[e])&&i.setUpperAndLowerElements(t)}},n.prototype.addOther=function(t){this.otherchildren.push(t),this.setRange(t)},n.prototype.addBeam=function(t){this.beams.push(t)},n.prototype.updateIndices=function(){this.layoutEnded()||(this.durationindex+=this.children[this.i].duration,0===this.children[this.i].duration&&(this.durationindex=Math.round(64*this.durationindex)/64),this.i++)},n.prototype.layoutEnded=function(){return this.i>=this.children.length},n.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&this.children[this.i].duration>0?0:5e-7)},n.prototype.getSpacingUnits=function(){return Math.sqrt(8*this.spacingduration)},n.prototype.getNextX=function(){return Math.max(this.minx,this.nextx)},n.prototype.beginLayout=function(t){this.i=0,this.durationindex=0,this.startx=t,this.minx=t,this.nextx=t,this.spacingduration=0},n.prototype.layoutOneItem=function(t,e){var i=this.children[this.i];if(!i)return 0;var r=t-this.minx;return r<i.getExtraWidth()&&(t+=i.getExtraWidth()-r),i.setX(t),this.spacingduration=i.duration,this.minx=t+i.getMinWidth(),this.i!==this.children.length-1&&(this.minx+=i.minspacing),this.updateNextX(t,e),t},n.prototype.updateNextX=function(t,e){this.nextx=t+e*Math.sqrt(8*this.spacingduration)},n.prototype.shiftRight=function(t){var e=this.children[this.i];e&&(e.setX(e.x+t),this.minx+=t,this.nextx+=t)},n.prototype.draw=function(t,e){var i=this.w-1;if(t.staffbottom=this.staff.bottom,t.measureNumber=null,t.noteNumber=null,this.header){var n=14-(this.voicenumber+1)*(12/(this.voicetotal+1));t.renderText(t.padding.left,t.calcY(n),this.header,"voicefont","staff-extra voice-name","start")}for(var a=0,c=this.children.length;a<c;a++){var o=this.children[a],h=!1;"staff-extra"!==o.type&&null===t.measureNumber&&(t.measureNumber=0,t.noteNumber=0,h=!0),o.draw(t,this.barto||a===c-1?e:0),("note"===o.type||s(o))&&t.noteNumber++,"bar"!==o.type||h||(t.measureNumber++,t.noteNumber=0)}t.measureNumber=0,t.noteNumber=0,r.each(this.beams,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t)}),t.measureNumber=0,t.noteNumber=0;var l=this;r.each(this.otherchildren,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t,l.startx+10,i)})},n.prototype.layoutBeams=function(){for(var t=0;t<this.beams.length;t++)if(this.beams[t].layout){this.beams[t].layout(),this.moveDecorations(this.beams[t]);for(var e=0;e<this.beams[t].elems.length;e++)this.adjustRange(this.beams[t].elems[e])}for(t=0;t<this.otherchildren.length;t++){var i=this.otherchildren[t];i.layout&&i.layout()}this.staff.top=Math.max(this.staff.top,this.top),this.staff.bottom=Math.min(this.staff.bottom,this.bottom)},t.exports=n},function(t,e,i){"use strict";var r=i(3),n=i(1),s=i(5),a=i(38),c=function(t,e,i){this.paper=new a(t),this.controller=null,this.space=3*n.SPACE,this.padding={},this.doRegression=e,this.shouldAddClasses=i,this.doRegression&&(this.regressionLines=[]),this.reset()};function o(t,e,i){var r=i;return"f"===t&&"f"===e&&(r=2*r/3),"p"===t&&"p"===e&&(r=5*r/6),"f"===t&&"z"===e&&(r=5*r/8),r}c.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.lastM=null,this.ingroup=!1,this.path=null,this.isPrint=!1,this.initVerticalSpace(),this.doRegression&&(this.regressionLines=[])},c.prototype.newTune=function(t){this.abctune=t,this.setVerticalSpace(t.formatting),this.measureNumber=null,this.noteNumber=null,this.setPrintMode("print"===t.media),this.setPadding(t)},c.prototype.createElemSet=function(){return this.paper.openGroup()},c.prototype.closeElemSet=function(){return this.paper.closeGroup()},c.prototype.setPrintMode=function(t){this.isPrint=t},c.prototype.setPaperSize=function(t,e,i){var r=(t+this.padding.right)*e,n=(this.y+this.padding.bottom)*e;this.isPrint&&(n=Math.max(n,1056)),this.doRegression&&this.regressionLines.push("PAPER SIZE: ("+r+","+n+")");var s="Sheet Music";this.abctune&&this.abctune.metaText&&this.abctune.metaText.title&&(s+=' for "'+this.abctune.metaText.title+'"'),this.paper.setTitle(s);var a={overflow:"hidden"};"resize"===i?this.paper.setResponsiveWidth(r,n):(a.width="",a.height=n+"px",e<1?(a.width=r+"px",this.paper.setSize(r/e,n/e)):this.paper.setSize(r,n)),this.paper.setScale(e),this.paper.setParentStyles(a)},c.prototype.setPaddingOverride=function(t){this.paddingOverride={top:t.paddingtop,bottom:t.paddingbottom,right:t.paddingright,left:t.paddingleft}},c.prototype.setPadding=function(t){function e(e,i,r,n,s){void 0!==t.formatting[r]?e.padding[i]=t.formatting[r]:void 0!==e.paddingOverride[i]?e.padding[i]=e.paddingOverride[i]:e.isPrint?e.padding[i]=n:e.padding[i]=s}e(this,"top","topmargin",38,15),e(this,"bottom","botmargin",38,15),e(this,"left","leftmargin",68,15),e(this,"right","rightmargin",68,15)},c.prototype.adjustNonScaledItems=function(t){this.padding.top/=t,this.padding.bottom/=t,this.padding.left/=t,this.padding.right/=t,this.abctune.formatting.headerfont.size/=t,this.abctune.formatting.footerfont.size/=t},c.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:30.67,words:0}},c.prototype.setVerticalSpace=function(t){void 0!==t.staffsep&&(this.spacing.staffSeparation=4*t.staffsep/3),void 0!==t.composerspace&&(this.spacing.composer=4*t.composerspace/3),void 0!==t.partsspace&&(this.spacing.parts=4*t.partsspace/3),void 0!==t.textspace&&(this.spacing.text=4*t.textspace/3),void 0!==t.musicspace&&(this.spacing.music=4*t.musicspace/3),void 0!==t.titlespace&&(this.spacing.title=4*t.titlespace/3),void 0!==t.sysstaffsep&&(this.spacing.systemStaffSeparation=4*t.sysstaffsep/3),void 0!==t.subtitlespace&&(this.spacing.subtitle=4*t.subtitlespace/3),void 0!==t.topspace&&(this.spacing.top=4*t.topspace/3),void 0!==t.vocalspace&&(this.spacing.vocal=4*t.vocalspace/3),void 0!==t.wordsspace&&(this.spacing.words=4*t.wordsspace/3)},c.prototype.topMargin=function(t){this.moveY(this.padding.top)},c.prototype.addMusicPadding=function(){this.moveY(this.spacing.music)},c.prototype.addStaffPadding=function(t,e){var i=-(t.staffs[t.staffs.length-1].bottom-2),r=(e.staffs[0].top-10+i)*n.STEP;r<this.spacing.staffSeparation&&this.moveY(this.spacing.staffSeparation-r)},c.prototype.engraveTopText=function(t,e){if(e.metaText.header&&this.isPrint){var i=this.getTextSize("XXXX","headerfont","abcjs-header abcjs-meta-top").height;this.y-=i,this.outputTextIf(this.padding.left,e.metaText.header.left,"headerfont","header meta-top",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.header.center,"headerfont","header meta-top",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.header.right,"headerfont","header meta-top",0,null,"end"),this.y+=i}if(this.isPrint&&this.moveY(this.spacing.top),this.outputTextIf(this.padding.left+t/2,e.metaText.title,"titlefont","title meta-top",this.spacing.title,0,"middle"),e.lines[0]&&this.outputTextIf(this.padding.left+t/2,e.lines[0].subtitle,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle"),e.metaText.rhythm||e.metaText.origin||e.metaText.composer){this.moveY(this.spacing.composer);var r=this.outputTextIf(this.padding.left,e.metaText.rhythm,"infofont","meta-top",0,null,"start"),n="";if(e.metaText.composer&&(n+=e.metaText.composer),e.metaText.origin&&(n+=" ("+e.metaText.origin+")"),n.length>0){var s=this.outputTextIf(this.padding.left+t,n,"composerfont","meta-top",0,null,"end");this.moveY(s[1])}else this.moveY(r[1]);this.moveY(-6)}this.outputTextIf(this.padding.left+t,e.metaText.author,"composerfont","meta-top",0,0,"end"),this.outputTextIf(this.padding.left,e.metaText.partOrder,"partsfont","meta-bottom",0,0,"start")},c.prototype.engraveExtraText=function(t,e){if(this.lineNumber=null,this.measureNumber=null,this.noteNumber=null,this.voiceNumber=null,e.metaText.unalignedWords){var i=this.getFontAndAttr("wordsfont","meta-bottom"),r=this.getTextSize("i","wordsfont","meta-bottom");e.metaText.unalignedWords.length>0&&this.moveY(this.spacing.words,1);for(var s=0;s<e.metaText.unalignedWords.length;s++)if("string"==typeof e.metaText.unalignedWords[s])this.outputTextIf(this.padding.left+n.INDENT,e.metaText.unalignedWords[s],"wordsfont","meta-bottom",0,0,"start");else{for(var a=0,c=0,o=0;o<e.metaText.unalignedWords[s].length;o++){var h=e.metaText.unalignedWords[s][o].font?e.metaText.unalignedWords[s][o].font:"wordsfont",l=this.renderText(this.padding.left+n.INDENT+c,this.y,e.metaText.unalignedWords[s][o].text,h,"meta-bottom",!1).getBBox();a=Math.max(a,l.height),c+=l.width," "===e.metaText.unalignedWords[s][o].text[e.metaText.unalignedWords[s][o].text.length-1]&&(c+=r.width)}this.moveY(a,1)}e.metaText.unalignedWords.length>0&&this.moveY(i.font.size,2)}var d="";e.metaText.book&&(d+="Book: "+e.metaText.book+"\n"),e.metaText.source&&(d+="Source: "+e.metaText.source+"\n"),e.metaText.discography&&(d+="Discography: "+e.metaText.discography+"\n"),e.metaText.notes&&(d+="Notes: "+e.metaText.notes+"\n"),e.metaText.transcription&&(d+="Transcription: "+e.metaText.transcription+"\n"),e.metaText.history&&(d+="History: "+e.metaText.history+"\n"),e.metaText["abc-copyright"]&&(d+="Copyright: "+e.metaText["abc-copyright"]+"\n"),e.metaText["abc-creator"]&&(d+="Creator: "+e.metaText["abc-creator"]+"\n"),e.metaText["abc-edited-by"]&&(d+="Edited By: "+e.metaText["abc-edited-by"]+"\n"),this.outputTextIf(this.padding.left,d,"historyfont","meta-bottom",this.spacing.info,0,"start"),e.metaText.footer&&this.isPrint&&(this.outputTextIf(this.padding.left,e.metaText.footer.left,"footerfont","header meta-bottom",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.footer.center,"footerfont","header meta-bottom",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.footer.right,"footerfont","header meta-bottom",0,null,"end"))},c.prototype.outputFreeText=function(t){if(""===t){var e=this.getFontAndAttr("textfont","defined-text");this.moveY(2*e.attr["font-size"])}else if("string"==typeof t)this.outputTextIf(this.padding.left,t,"textfont","defined-text",0,1,"start");else{for(var i="",r=!1,n=0;n<t.length;n++)t[n].font&&(i+="FONT("+t[n].font+")"),i+=t[n].text,t[n].center&&(r=!0);var s=r?"middle":"start",a=r?this.controller.width/2:this.padding.left;this.outputTextIf(a,i,"textfont","defined-text",0,1,s)}},c.prototype.outputSubtitle=function(t,e){this.outputTextIf(this.padding.left+t/2,e,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle")},c.prototype.beginGroup=function(){this.path=[],this.lastM=[0,0],this.ingroup=!0},c.prototype.addPath=function(t){if(0!==(t=t||[]).length){t[0][0]="m",t[0][1]-=this.lastM[0],t[0][2]-=this.lastM[1],this.lastM[0]+=t[0][1],this.lastM[1]+=t[0][2],this.path.push(t[0]);for(var e=1,i=t.length;e<i;e++)"m"===t[e][0]&&(this.lastM[0]+=t[e][1],this.lastM[1]+=t[e][2]),this.path.push(t[e])}},c.prototype.endGroup=function(t){if(this.ingroup=!1,0===this.path.length)return null;for(var e="",i=0;i<this.path.length;i++)e+=this.path[i].join(" ");var r=this.paper.path({path:e,stroke:"none",fill:"#000000",class:this.addClasses(t)});return this.path=[],this.doRegression&&this.addToRegression(r),r},c.prototype.printStaveLine=function(t,e,i,r){var n="staff";void 0!==r&&(n+=" "+r);var a=.35,c="#000000";var o=this.calcY(i),h=s("M %f %f L %f %f L %f %f L %f %f z",t,o-a,e,o-a,e,o+a,t,o+a),l=this.paper.pathToBack({path:h,stroke:"none",fill:c,class:this.addClasses(n)});return this.doRegression&&this.addToRegression(l),l},c.prototype.printStem=function(t,e,i,r){if(e<0){var n=r;r=i,i=n}var s="#000000";~~t===t&&(t+=.05);var a=[["M",t,i],["L",t,r],["L",t+e,r],["L",t+e,i],["z"]];if(!this.ingroup){for(var c="",o=0;o<a.length;o++)c+=a[o].join(" ");var h=this.paper.pathToBack({path:c,stroke:"none",fill:s,class:this.addClasses("stem")});return this.doRegression&&this.addToRegression(h),h}this.addPath(a)},c.prototype.printSymbol=function(t,e,i,n,s,a){var c,h;if(!i)return null;if(i.length>1&&i.indexOf(".")<0){this.paper.openGroup();for(var l=0,d=0;d<i.length;d++){var u=i.charAt(d);h=r.getYCorr(u),(c=r.printSymbol(t+l,this.calcY(e+h),u,this.paper,a))?(this.doRegression&&this.addToRegression(c),d<i.length-1&&(l+=o(u,i.charAt(d+1),r.getSymbolWidth(u)))):this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return this.paper.closeGroup()}if(h=r.getYCorr(i),this.ingroup)this.addPath(r.getPathForSymbol(t,this.calcY(e+h),i,n,s));else{if(c=r.printSymbol(t,this.calcY(e+h),i,this.paper,a))return this.doRegression&&this.addToRegression(c),c;this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return null},c.prototype.scaleExistingElem=function(t,e,i,r,n){this.paper.setAttributeOnElement(t,{style:"transform:scale("+e+","+i+");transform-origin:"+r+"px "+n+"px;"})},c.prototype.printPath=function(t){var e=this.paper.path(t);return this.doRegression&&this.addToRegression(e),e},c.prototype.drawBrace=function(t,e,i){var r=i-e,n=[7.5,-8,21,0,18.5,-10.5,7.5],a=[0,r/5.5,r/3.14,r/2,r/2.93,r/4.88,0],c=s("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+n[0],e+a[0],t+n[1],e+a[1],t+n[2],e+a[2],t+n[3],e+a[3],t+n[4],e+a[4],t+n[5],e+a[5],t+n[6],e+a[6]),o=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});c=s("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+(n=[0,17.5,-7.5,6.6,-5,20,0])[0],e+(a=[r/2,r/1.46,r/1.22,r,r/1.19,r/1.42,r/2])[0],t+n[1],e+a[1],t+n[2],e+a[2],t+n[3],e+a[3],t+n[4],e+a[4],t+n[5],e+a[5],t+n[6],e+a[6]);var h=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});return this.doRegression&&(this.addToRegression(o),this.addToRegression(h)),o+h},c.prototype.drawArc=function(t,e,i,r,n,a,c){var o=c?1.2:1.5;t+=6,e+=4,i+=n?o:-o,r+=n?o:-o;var h=this.calcY(i),l=this.calcY(r),d=e-t,u=l-h,f=Math.sqrt(d*d+u*u),p=d/f,m=u/f,g=f/3.5,v=c?10:25,b=(n?-1:1)*Math.min(v,Math.max(4,g)),y=t+g*p-b*m,w=h+g*m+b*p,x=e-g*p-b*m,k=l-g*m+b*p,A=s("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,h,y,w,x,k,e,l,x-2*m,k+2*p,y-2*m,w+2*p,t,h);a?a+=" slur":a="slur";var T=this.paper.path({path:A,stroke:"none",fill:"#000000",class:this.addClasses(a)});return this.doRegression&&this.addToRegression(T),T},c.prototype.calcY=function(t){return this.y-t*n.STEP},c.prototype.printStave=function(t,e,i){var r="top-line";if(this.paper.openGroup({prepend:!0}),1!==i){for(var n=i-1;n>=0;n--)this.printStaveLine(t,e,2*(n+1),r),r=void 0;this.paper.closeGroup()}else this.printStaveLine(t,e,6,r)},c.prototype.addClasses=function(t,e){if(!this.shouldAddClasses)return"";var i=[];if(t.length>0&&i.push(t),null!==this.lineNumber&&void 0!==this.lineNumber&&i.push("l"+this.lineNumber),null!==this.measureNumber&&void 0!==this.measureNumber&&i.push("m"+this.measureNumber),null!==this.voiceNumber&&void 0!==this.voiceNumber&&i.push("v"+this.voiceNumber),(t.indexOf("note")>=0||t.indexOf("rest")>=0)&&null!==this.noteNumber&&void 0!==this.noteNumber&&i.push("n"+this.noteNumber),i.length>0){i=(i=i.join(" ")).split(" ");for(var r=0;r<i.length;r++)0!==i[r].indexOf("abcjs-")&&i[r].length>0&&(i[r]="abcjs-"+i[r])}return i.join(" ")},c.prototype.getFontAndAttr=function(t,e){var i,r={"font-size":(i="string"==typeof t?(i=this.abctune.formatting[t])?{face:i.face,size:4*i.size/3,decoration:i.decoration,style:i.style,weight:i.weight,box:i.box}:{face:"Arial",size:16,decoration:"underline",style:"normal",weight:"normal"}:{face:t.face,size:4*t.size/3,decoration:t.decoration,style:t.style,weight:t.weight,box:t.box}).size,"font-style":i.style,"font-family":i.face,"font-weight":i.weight,"text-decoration":i.decoration,class:this.addClasses(e),font:""};return{font:i,attr:r}},c.prototype.getTextSize=function(t,e,i){var r=this.getFontAndAttr(e,i),n=this.paper.getTextSize(t,r.attr);return r.font.box&&(n.height+=8,n.width+=8),n},c.prototype.renderText=function(t,e,i,r,n,s,a){var c=this.getFontAndAttr(r,n);s&&(c.attr["text-anchor"]=s),c.attr.x=t,c.attr.y=e+7,a||(c.attr.dy="0.5em"),"debugfont"===r&&(console.log("Debug msg: "+i),c.attr.stroke="#ff0000"),i=(i=i.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),c.font.box&&(c.attr.x+=2,c.attr.y+=4);var o=this.paper.text(i,c.attr);if(c.font.box){var h=o.getBBox();this.paper.rect({x:h.x-2,y:h.y,width:h.width+4,height:h.height+4-2,stroke:"#888888",fill:"transparent"})}return this.doRegression&&this.addToRegression(o),o},c.prototype.moveY=function(t,e){void 0===e&&(e=1),this.y+=t*e},c.prototype.skipSpaceY=function(){this.y+=this.space},c.prototype.outputTextIf=function(t,e,i,r,n,s,a){if(e){n&&this.moveY(n);var c=this.renderText(t,this.y,e,i,r,a).getBBox(),o=isNaN(c.width)?0:c.width,h=isNaN(c.height)?0:c.height;if(this.getFontAndAttr(i,r).font.box&&(o+=8,h+=8),null!==s){var l=e.split("\n").length;isNaN(c.height)||this.moveY(h/l,l+s)}return[o,h]}return[0,0]},c.prototype.addInvisibleMarker=function(t){var e=this.y;e=Math.round(e);var i=s("M %f %f L %f %f L %f %f L %f %f z",0,e-.35,100,e-.35,100,e+.35,0,e+.35);this.paper.pathToBack({path:i,stroke:"none",fill:"rgba(0,0,0,0)","fill-opacity":0,class:this.addClasses(t),"data-vertical":e})},c.prototype.printHorizontalLine=function(t,e,i){var r=.35,n="rgba(0,0,255,.4)",a=this.y;e&&(a=e),a=Math.round(a),this.paper.text(""+Math.round(a),{x:10,y:a,"text-anchor":"start","font-size":"18px",fill:n,stroke:n});var c=s("M %f %f L %f %f L %f %f L %f %f z",50,a-r,50+t,a-r,t,a+r,50,a+r);this.paper.pathToBack({path:c,stroke:"none",fill:n,class:this.addClasses("staff")});for(var o=1;o<t/100;o++)c=s("M %f %f L %f %f L %f %f L %f %f z",100*o-r,a-5,100*o-r,a+5,100*o+r,a-5,100*o+r,a+5),this.paper.pathToBack({path:c,stroke:"none",fill:n,class:this.addClasses("staff")});i&&this.paper.text(i,{x:t+70,y:a,"text-anchor":"start","font-size":"18px",fill:n,stroke:n})},c.prototype.printShadedBox=function(t,e,i,r,n,s,a){var c=this.paper.rect({x:t,y:e,width:i,height:r,fill:n,stroke:n,"fill-opacity":s,"stroke-opacity":s});return a&&this.paper.text(a,{x:0,y:e+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),c},c.prototype.printVerticalLine=function(t,e,i){var r=s("M %f %f L %f %f L %f %f L %f %f z",t-.35,e,t-.35,i,t+.35,e,t+.35,i);this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=s("M %f %f L %f %f L %f %f L %f %f z",t-20,e,t-20,e+3,t,e,t,e+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=s("M %f %f L %f %f L %f %f L %f %f z",t+20,i,t+20,i+3,t,i,t,i+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")})},c.prototype.addToRegression=function(t){var e=t.getBBox(),i=t.type+" "+e.toString()+" ",r=[];for(var n in t.attrs)t.attrs.hasOwnProperty(n)&&("class"===n?i=t.attrs[n]+" "+i:r.push(n+": "+t.attrs[n]));r.sort(),i+="{ "+r.join(" ")+" }",this.regressionLines.push(i)},t.exports=c},function(t,e,i){"use strict";var r="http://www.w3.org/2000/svg";function n(t){this.svg=s(),t.appendChild(this.svg)}function s(){var t=document.createElementNS(r,"svg");return t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),t.setAttribute("role","img"),t}n.prototype.clear=function(){if(this.svg){var t=this.svg.parentNode;this.svg=s(),t&&(t.innerHTML="",t.appendChild(this.svg))}},n.prototype.setTitle=function(t){var e=document.createElement("title"),i=document.createTextNode(t);e.appendChild(i),this.svg.insertBefore(e,this.svg.firstChild)},n.prototype.setResponsiveWidth=function(t,e){if(this.svg.setAttribute("viewBox","0 0 "+t+" "+e),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 i=this.svg.parentNode.getAttribute("class");i?i.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",i+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var r=e/t*100;this.svg.parentNode.style["padding-bottom"]=r+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},n.prototype.setSize=function(t,e){this.svg.setAttribute("width",t),this.svg.setAttribute("height",e)},n.prototype.setScale=function(t){1!==t?(this.svg.style.transform="scale("+t+","+t+")",this.svg.style["-ms-transform"]="scale("+t+","+t+")",this.svg.style["-webkit-transform"]="scale("+t+","+t+")",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"]="")},n.prototype.setParentStyles=function(t){for(var e in t)t.hasOwnProperty(e)&&this.svg.parentNode&&(this.svg.parentNode.style[e]=t[e])},n.prototype.rect=function(t){var e=document.createElementNS(r,"rect");for(var i in t){if(t.hasOwnProperty(i))(""+t[i]).indexOf("NaN"),e.setAttributeNS(null,i,t[i])}return this.append(e),e},n.prototype.text=function(t,e){var i=document.createElementNS(r,"text");for(var n in e)e.hasOwnProperty(n)&&i.setAttribute(n,e[n]);for(var s=(""+t).split("\n"),a=0;a<s.length;a++){var c=document.createElementNS(r,"tspan");c.textContent=s[a],c.setAttribute("x",e.x?e.x:0),0!==a&&c.setAttribute("dy","1.2em"),i.appendChild(c)}return this.append(i),i},n.prototype.getTextSize=function(t,e){var i=this.text(t,e),r=i.getBBox();return r=isNaN(r.height)?{width:0,height:0}:{width:r.width,height:r.height},this.currentGroup?this.currentGroup.removeChild(i):this.svg.removeChild(i),r},n.prototype.openGroup=function(t){t=t||{};var e=document.createElementNS(r,"g");return t.prepend?this.svg.insertBefore(e,this.svg.firstChild):this.svg.appendChild(e),this.currentGroup=e,e},n.prototype.closeGroup=function(){var t=this.currentGroup;return this.currentGroup=null,t},n.prototype.path=function(t){var e=document.createElementNS(r,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.append(e),e},n.prototype.pathToBack=function(t){var e=document.createElementNS(r,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.prepend(e),e},n.prototype.append=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.appendChild(t)},n.prototype.prepend=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.insertBefore(t,this.svg.firstChild)},n.prototype.setAttributeOnElement=function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttributeNS(null,i,e[i])},t.exports=n},function(t,e,i){"use strict";var r=i(6).TuneBook,n=i(0),s=i(7),a=i(40),c=i(13);if("function"!=typeof window.CustomEvent){var o=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};o.prototype=window.Event.prototype,window.CustomEvent=o}var h=function(t){this.textarea=document.getElementById(t),this.initialText=this.textarea.value,this.isDragging=!1};h.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}},h.prototype.addChangeListener=function(t){this.changelistener=t,this.textarea.onkeyup=function(){t.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,t.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,t.fireChanged()},this.textarea.onchange=function(){t.fireChanged()}},h.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},h.prototype.setSelection=function(t,e){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(t,e);else if(this.textarea.createTextRange){var i=this.textarea.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}this.textarea.focus()},h.prototype.getString=function(){return this.textarea.value},h.prototype.setString=function(t){this.textarea.value=t,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},h.prototype.getElem=function(){return this.textarea};var l=function(t,e){var i;if(this.abcjsParams={},e.abcjsParams)for(i in e.abcjsParams)e.abcjsParams.hasOwnProperty(i)&&(this.abcjsParams[i]=e.abcjsParams[i]);if(e.midi_options)for(i in e.midi_options)e.midi_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.midi_options[i]);if(e.parser_options)for(i in e.parser_options)e.parser_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.parser_options[i]);if(e.render_options)for(i in e.render_options)e.render_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.render_options[i]);e.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof t?new h(t):t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),e.canvas_id?this.div=document.getElementById(e.canvas_id):e.paper_id?this.div=document.getElementById(e.paper_id):(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),e.generate_midi&&(this.generate_midi=e.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof e.midi_download_id?this.downloadMidi=document.getElementById(e.midi_download_id):e.midi_download_id&&(this.downloadMidi=e.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof e.midi_id?this.inlineMidi=document.getElementById(e.midi_id):e.midi_id&&(this.inlineMidi=e.midi_id))),(e.generate_warnings||e.warnings_id)&&(e.warnings_id?this.warningsdiv=document.getElementById(e.warnings_id):this.warningsdiv=this.div),this.onchangeCallback=e.onchange,e.gui&&(this.target=document.getElementById(t),this.abcjsParams.editable=!0),this.oldt="",this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(t,e){return function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))}(t,e)||(t.className+=(t.className?" ":"")+e),t},this.removeClassName=function(t,e){return t.className=n.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ")),t},this.setReadOnly=function(t){var e=this.editarea.getElem();t?(e.setAttribute("readonly","yes"),this.addClassName(e,"abc_textarea_readonly")):(e.removeAttribute("readonly"),this.removeClassName(e,"abc_textarea_readonly"))}};l.prototype.renderTune=function(t,e,i){var n=new r(t),a=s();a.parse(n.tunes[0].abc,e);var o=a.getTune();new c(i,this.abcjsParams).engraveABC(o)},l.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var t=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(t)}},l.prototype.modelChanged=function(){if(void 0===this.tunes)return void 0!==this.downloadMidi&&(this.downloadMidi.innerHTML=""),void 0!==this.inlineMidi&&(this.inlineMidi.innerHTML=""),void(this.div.innerHTML="");if(!this.bReentry){if(this.bReentry=!0,this.timerId=null,this.div.innerHTML="",this.engraver_controller=new c(this.div,this.abcjsParams),this.engraver_controller.engraveABC(this.tunes),this.tunes[0].engraver=this.engraver_controller,this.redrawMidi(),this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.target)new a(this.target,!0).printABC(this.tunes[0]);this.engraver_controller.addSelectListener(this.highlight.bind(this)),this.updateSelection(),this.bReentry=!1}},l.prototype.paramChanged=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.abcjsParams[e]=t[e]);this.oldt="",this.fireChanged()},l.prototype.parseABC=function(){var t=this.editarea.getString();if(t===this.oldt)return this.updateSelection(),!1;if(this.oldt=t,""===t)return this.tunes=void 0,this.warnings="",!0;var e=new r(t);this.tunes=[],this.startPos=[],this.warnings=[];for(var i=0;i<e.tunes.length;i++){var n=new s;n.parse(e.tunes[i].abc,this.abcjsParams),this.tunes[i]=n.getTune(),this.startPos[i]=e.tunes[i].startPos;for(var a=n.getWarnings()||[],c=0;c<a.length;c++)this.warnings.push(a[c])}return!0},l.prototype.updateSelection=function(){var t=this.editarea.getSelection();try{this.engraver_controller.rangeHighlight(t.start,t.end)}catch(t){}},l.prototype.fireSelectionChanged=function(){this.updateSelection()},l.prototype.setDirtyStyle=function(t){if(void 0!==this.indicate_changed){var e=this.editarea.getElem();t?function(t,e){(function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))})(t,e)||(t.className+=(t.className?" ":"")+e)}(e,"abc_textarea_dirty"):function(t,e){t.className=n.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," "))}(e,"abc_textarea_dirty")}},l.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var t=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.modelChanged()},300);var e=this.isDirty();this.wasDirty!==e&&(this.wasDirty=e,this.setDirtyStyle(e)),this.onchangeCallback&&this.onchangeCallback(this)}},l.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},l.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},l.prototype.highlight=function(t,e,i){var r=void 0!==e?this.startPos[e]+e:0;this.editarea.setSelection(r+t.startChar,r+t.endChar)},l.prototype.pause=function(t){this.bIsPaused=t,t||this.fireChanged()},l.prototype.pauseMidi=function(t){this.midiPause=t,t||this.redrawMidi()},t.exports=l},function(t,e,i){"use strict";var r=function(t,e){this.elem=t,this.text="",this.l=1/8,this.reposition=e||!1};r.prototype.printString=function(t,e){this.reposition&&e&&(e.startChar=this.text.length),this.text+=t,this.reposition&&e&&(e.endChar=this.text.length)},r.prototype.printNewLine=function(){this.text+="\n"},r.prototype.printSpace=function(){this.text[this.text.length-1].match(/\s/)||(this.text+=" ")},r.prototype.printABC=function(t){this.text="",this.abctune=t,this.printHeader(),this.printBody(),this.elem.value=this.text},r.prototype.printHeader=function(){this.printHeaderLine("x","X","1"),this.printHeaderLine("title","T"),this.printHeaderLine("composer","C"),this.printHeaderLine("history","H"),this.printHeaderLine("author","A"),this.printHeaderLine("book","B"),this.printHeaderLine("discography","D"),this.printHeaderLine("url","F"),this.printHeaderLine("group","G"),this.printHeaderLine("instruction","I"),this.printHeaderLine("notes","N"),this.printHeaderLine("origin","O"),this.printHeaderLine("rhythm","R"),this.printHeaderLine("source","S"),this.printHeaderLine("unalignedwords","W"),this.printHeaderLine("transcription","Z"),this.printHeaderLine("NULL","L","1/8"),this.printHeaderLine("NULL","M",this.getMeterString(this.abctune.lines[0].staff[0].meter)),this.printHeaderLine("NULL","K",this.getKeyString(this.abctune.lines[0].staff[0].key))},r.prototype.getKeyString=function(t){return t.root+t.acc+t.mode},r.prototype.getMeterString=function(t){switch(t.type){case"cut_time":return"C|";case"common_time":return"C";case"specified":return t.value[0].den?t.value[0].num+"/"+t.value[0].den:t.value[0].num}return""},r.prototype.printHeaderLine=function(t,e,i){var r=this.abctune.metaText[t]||i;if(void 0!==r)for(var n=r.split("\n"),s=0;s<n.length;s++)this.printString(e+": "+n[s]),this.printNewLine()},r.prototype.getElem=function(){return this.abcline.length<=this.pos?null:this.abcline[this.pos]},r.prototype.getNextElem=function(){return this.abcline.length<=this.pos+1?null:this.abcline[this.pos+1]},r.prototype.printBody=function(){for(var t=0;t<this.abctune.lines.length;t++){var e=this.abctune.lines[t];e.staff?this.printABCLine(e.staff):e.subtitle&&0!==t||e.text}},r.prototype.printABCLine=function(t){for(this.s=0;this.s<t.length;this.s++)this.printABCStaff(t[this.s])},r.prototype.printABCStaff=function(t){for(this.v=0;this.v<t.voices.length;this.v++)this.printABCVoice(t.voices[this.v])},r.prototype.printABCVoice=function(t){for(this.abcline=t,this.pos=0;this.pos<this.abcline.length;this.pos++)this.printABCElement();this.printNewLine()},r.prototype.printABCElement=function(){var t=this.getElem();switch(t.el_type){case"note":this.printBeam();break;case"bar":this.printBarLine(t)}},r.prototype.printBeam=function(){if(this.printSpace(),this.getElem().startBeam&&!this.getElem().endBeam)for(;this.getElem()&&(this.printNote(this.getElem()),!this.getElem().endBeam);)this.pos++;else this.printNote(this.getElem());this.printSpace()},r.prototype.printNote=function(t){var e,i="";if(void 0!==t.chord)for(e=0;e<t.chord.length;e++)i+='"'+t.chord[e].name+'"';var r={staccato:".",upbow:"u",downbow:"v",roll:"~",fermata:"H",slide:"J",accent:"L",mordent:"M",pralltriller:"P",trill:"T",lower:"."};if(void 0!==t.decoration)for(e=0;e<t.decoration.length;e++){var n=t.decoration[e];r[n]?i+=r[n]:(i+="!",i+=n,i+="!")}if(void 0!==t.gracenotes){for(i+="{",e=0;e<t.gracenotes.length;e++)i+=this.getNoteString(t.gracenotes[e]);i+="}"}var s=!1;if(1===t.pitches.length&&t.pitches[0].startSlur&&(s=!0,i+=this.multiplyString("(",t.pitches[0].startSlur.length)),t.startSlur&&(i+=this.multiplyString("(",t.startSlur.length)),(1===t.pitches.length&&t.pitches[0].endSlur||t.endSlur)&&(s=!0),t.startTriplet&&(i+="(3"),t.pitches){for(t.pitches.length>1&&(i+="["),e=0;e<t.pitches.length;e++)t.pitches[e].duration=t.duration,i+=this.getNoteString(t.pitches[e],s);t.pitches.length>1&&(i+="]")}1===t.pitches.length&&t.pitches[0].endSlur&&(i+=this.multiplyString(")",t.pitches[0].endSlur.length)),t.endSlur&&(i+=this.multiplyString(")",t.endSlur.length)),this.printString(i,t)},r.prototype.getNoteString=function(t,e){var i="";!e&&t.startSlur&&(i+="(");var r="";switch(t.accidental){case"quartersharp":r="^/";break;case"dblsharp":r="^^";break;case"sharp":r="^";break;case"quarterflat":r="_/";break;case"flat":r="_";break;case"dblflat":r="__";break;case"natural":r="="}i+=r;var n=["C","D","E","F","G","A","B"][this.extractNote(t.pitch)],s=this.extractOctave(t.pitch);if(s>0)for(n=n.toLowerCase(),s--;s>0;)n+="'",s--;else for(;s<0;)n+=",",s++;return i+=n,t.duration&&(i+=this.getDurationString(t.duration)),!e&&t.endSlur&&(i+=")"),t.startTie&&(i+="-"),i},r.prototype.getDurationString=function(t){if(t/this.l>1)return t/this.l;var e="";return this.l/t>1&&(e+="/",this.l/t>2&&(e+=this.l/t)),e},r.prototype.extractNote=function(t){var e=t%7;return e<0&&(e+=7),e},r.prototype.extractOctave=function(t){return Math.floor(t/7)},r.prototype.printBarLine=function(t){var e="";switch(t.type){case"bar_thin":e+="|";break;case"bar_thin_thick":e+="|]";break;case"bar_thin_thin":e+="||";break;case"bar_thick_thin":e+="[|";break;case"bar_dbl_repeat":e+=":||:";break;case"bar_left_repeat":e+="|:";break;case"bar_right_repeat":e+=":|";break;case"bar_invisible":e+=""}this.printString(e,t)},r.prototype.multiplyString=function(t,e){for(var i="";e>0;e--)i+=t;return i},t.exports=r}]); \ No newline at end of file
diff --git a/static/js/abcjs_basic_5.6.3-min.js b/static/js/abcjs_basic_5.6.3-min.js
new file mode 100755
index 0000000..fba865e
--- /dev/null
+++ b/static/js/abcjs_basic_5.6.3-min.js
@@ -0,0 +1,3 @@
+/*! abcjs_basic v5.6.3 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */
+/*! For license information please see abcjs_basic_5.6.3-min.js.LICENSE */
+!function(t){var e={};function i(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=15)}([function(t,e,i){"use strict";var r={clone:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},cloneArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(r.clone(t[i]));return e},cloneHashOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.clone(t[i]));return e},cloneHashOfArrayOfHash:function(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[i]=r.cloneArray(t[i]));return e},gsub:function(t,e,i){return t.split(e).join(i)},strip:function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")},startsWith:function(t,e){return 0===t.indexOf(e)},endsWith:function(t,e){var i=t.length-e.length;return i>=0&&t.lastIndexOf(e)===i},each:function(t,e,i){for(var r=0,s=t.length;r<s;r++)e.apply(i,[t[r],r])},last:function(t){return 0===t.length?null:t[t.length-1]},compact:function(t){for(var e=[],i=0;i<t.length;i++)t[i]&&e.push(t[i]);return e},detect:function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return!0;return!1}};[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}),t.exports=r},function(t,e,i){"use strict";var r={FONTEM:360,FONTSIZE:30};r.STEP=93*r.FONTSIZE/720,r.SPACE=10,r.TOPNOTE=15,r.STAVEHEIGHT=100,r.INDENT=50,t.exports=r},function(t,e,i){"use strict";i(3);var r=function(t,e,i,r,s){switch(s=s||{},this.x=0,this.c=t,this.dx=e,this.w=i,this.pitch=r,this.scalex=s.scalex||1,this.scaley=s.scaley||1,this.type=s.type||"symbol",this.pitch2=s.pitch2,this.linewidth=s.linewidth,this.klass=s.klass,this.top=r,void 0!==this.pitch2&&this.pitch2>this.top&&(this.top=this.pitch2),this.bottom=r,void 0!==this.pitch2&&this.pitch2<this.bottom&&(this.bottom=this.pitch2),s.thickness&&(this.top+=s.thickness/2,this.bottom-=s.thickness/2),s.stemHeight&&(s.stemHeight>0?this.top+=s.stemHeight:this.bottom+=s.stemHeight),this.height=s.height?s.height:4,this.centerVertically=!1,this.type){case"debug":this.chordHeightAbove=this.height;break;case"lyric":s.position&&"below"===s.position?this.lyricHeightBelow=this.height:this.lyricHeightAbove=this.height;break;case"chord":s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height;break;case"text":void 0===this.pitch?s.position&&"below"===s.position?this.chordHeightBelow=this.height:this.chordHeightAbove=this.height:this.centerVertically=!0;break;case"part":this.partHeightAbove=this.height}};r.prototype.setX=function(t){this.x=t+this.dx},r.prototype.setUpperAndLowerElements=function(t){switch(this.type){case"part":this.top=t.partHeightAbove+this.height,this.bottom=t.partHeightAbove;break;case"text":case"chord":this.chordHeightAbove?(this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove):(this.top=t.chordHeightBelow,this.bottom=t.chordHeightBelow);break;case"lyric":this.lyricHeightAbove?(this.top=t.lyricHeightAbove,this.bottom=t.lyricHeightAbove):(this.top=t.lyricHeightBelow,this.bottom=t.lyricHeightBelow);break;case"debug":this.top=t.chordHeightAbove,this.bottom=t.chordHeightAbove}void 0!==this.pitch&&void 0!==this.top||window.console.error("RelativeElement position not set.",this.type,this.pitch,this.top,t)},r.prototype.draw=function(t,e){void 0===this.pitch&&window.console.error(this.type+" Relative Element y-coordinate not set.");var i=t.calcY(this.pitch);switch(this.type){case"symbol":if(null===this.c)return null;var r="symbol";this.klass&&(r+=" "+this.klass),this.graphelem=t.printSymbol(this.x,this.pitch,this.c,this.scalex,this.scaley,t.addClasses(r));break;case"debug":this.graphelem=t.renderText(this.x,t.calcY(15),""+this.c,"debugfont","debug-msg","start");break;case"barNumber":this.graphelem=t.renderText(this.x,i,""+this.c,"measurefont","bar-number","middle");break;case"lyric":this.graphelem=t.renderText(this.x,i,this.c,"vocalfont","lyric","middle");break;case"chord":this.graphelem=t.renderText(this.x,i,this.c,"gchordfont","chord","middle");break;case"decoration":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","middle",!0);break;case"text":this.graphelem=t.renderText(this.x,i,this.c,"annotationfont","annotation","start",this.centerVertically);break;case"multimeasure-text":this.graphelem=t.renderText(this.x+this.w/2,i,this.c,"tempofont","rest","middle",!1);break;case"part":this.graphelem=t.renderText(this.x,i,this.c,"partsfont","part","start");break;case"bar":this.graphelem=t.printStem(this.x,this.linewidth,i,e||t.calcY(this.pitch2));break;case"stem":this.graphelem=t.printStem(this.x,this.linewidth,i,t.calcY(this.pitch2));break;case"ledger":this.graphelem=t.printStaveLine(this.x,this.x+this.w,this.pitch)}return 1!==this.scalex&&this.graphelem&&t.scaleExistingElem(this.graphelem,this.scalex,this.scaley,this.x,i),this.graphelem},t.exports=r},function(t,e,i){"use strict";var r=i(1);t.exports=new function(){var t={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,.33,-.03,4.89],["c",-.06,2.67,-.09,5.01,-.09,5.22],["l",0,.36],["l",.15,-.15],["c",.36,-.3,.75,-.51,1.2,-.63],["c",.33,-.09,.96,-.09,1.26,-.03],["c",.27,.09,.63,.27,.87,.45],["l",.21,.15],["l",0,-.27],["c",0,-.15,-.03,-2.43,-.09,-5.1],["c",-.09,-4.56,-.09,-4.86,-.03,-4.89],["c",.15,-.12,.39,-.15,.72,-.15],["c",.3,0,.54,.03,.69,.15],["c",.06,.03,.06,.33,-.03,4.95],["c",-.06,2.7,-.09,5.04,-.09,5.22],["l",.03,.3],["l",.21,-.15],["c",.69,-.48,1.44,-.69,2.28,-.69],["c",.51,0,.78,.03,1.2,.21],["c",1.32,.63,2.01,2.28,1.53,3.69],["c",-.21,.57,-.51,1.02,-1.05,1.56],["c",-.42,.42,-.81,.72,-1.92,1.5],["c",-1.26,.87,-1.5,1.08,-1.86,1.5],["c",-.39,.45,-.54,.54,-.81,.51],["c",-.18,0,-.21,0,-.33,-.06],["l",-.21,-.21],["l",-.06,-.12],["l",-.03,-.99],["c",-.03,-.54,-.03,-1.29,-.06,-1.68],["l",0,-.69],["l",-.21,.24],["c",-.36,.42,-.75,.75,-1.8,1.62],["c",-1.02,.84,-1.2,.99,-1.44,1.38],["c",-.36,.51,-.54,.6,-.9,.51],["c",-.15,-.03,-.39,-.27,-.42,-.42],["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",2.52,10.98],["c",-.18,-.09,-.48,-.12,-.66,-.06],["c",-.39,.15,-.69,.54,-.84,1.14],["c",-.06,.24,-.06,.39,-.09,1.74],["c",-.03,1.44,0,2.73,.06,3.18],["l",.03,.15],["l",.27,-.27],["c",.93,-.96,1.5,-1.95,1.74,-3.06],["c",.06,-.27,.06,-.39,.06,-.96],["c",0,-.54,0,-.69,-.06,-.93],["c",-.09,-.51,-.27,-.81,-.51,-.93],["z"],["m",5.43,0],["c",-.18,-.09,-.51,-.12,-.72,-.06],["c",-.54,.12,-.96,.63,-1.17,1.26],["c",-.06,.3,-.12,2.88,-.06,3.9],["c",.03,.42,.03,.81,.06,.9],["l",.03,.12],["l",.36,-.3],["c",.42,-.36,1.02,-.96,1.29,-1.29],["c",.36,-.45,.66,-.99,.81,-1.41],["c",.42,-1.23,.15,-2.76,-.6,-3.12],["z"]],w:11.613,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:9.99,h:14.97},"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.32,-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}};this.printSymbol=function(e,i,r,s,n){if(!t[r])return null;var a=this.pathClone(t[r].d);a[0][1]+=e,a[0][2]+=i;for(var c="",o=0;o<a.length;o++)c+=a[o].join(" ");return s.path({path:c,stroke:"none",fill:"#000000",class:n})},this.getPathForSymbol=function(e,i,r,s,n){if(s=s||1,n=n||1,!t[r])return null;var a=this.pathClone(t[r].d);return 1===s&&1===n||this.pathScale(a,s,n),a[0][1]+=e,a[0][2]+=i,a},this.getSymbolWidth=function(e){return t[e]?t[e].w:0},this.getSymbolHeight=function(e){return t[e]?t[e].h:0},this.symbolHeightInPitches=function(t){return this.getSymbolHeight(t)/r.STEP},this.getSymbolAlign=function(t){return"scripts"===t.substring(0,7)&&"scripts.roll"!==t?"center":"left"},this.pathClone=function(t){for(var e=[],i=0,r=t.length;i<r;i++){e[i]=[];for(var s=0,n=t[i].length;s<n;s++)e[i][s]=t[i][s]}return e},this.pathScale=function(t,e,i){for(var r=0,s=t.length;r<s;r++){var n,a,c=t[r];for(n=1,a=c.length;n<a;n++)c[n]*=n%2?e:i}},this.getYCorr=function(t){switch(t){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":return-2;case"timesig.common":case"timesig.cut":return 0;case"flags.d32nd":return-1;case"flags.d64th":return-2;case"flags.u32nd":return 1;case"flags.u64th":return 3;case"rests.whole":return 1;case"rests.half":case"rests.8th":case"rests.quarter":case"rests.16th":case"rests.32nd":case"rests.64th":return-1;case"f":case"m":case"p":case"s":case"z":return-4;case"scripts.trill":case"scripts.upbow":case"scripts.downbow":return-2;case"scripts.ufermata":case"scripts.wedge":case"scripts.roll":case"scripts.shortphrase":case"scripts.longphrase":return-1;case"scripts.dfermata":return 1;default:return 0}}}},function(t,e,i){"use strict";var r=i(1),s=function(t,e,i,r,s,n){n||(n={}),this.tuneNumber=s,this.abcelem=t,this.duration=e,this.durationClass=n.durationClassOveride?n.durationClassOveride:this.duration,this.minspacing=i||0,this.x=0,this.children=[],this.heads=[],this.extra=[],this.extraw=0,this.w=0,this.right=[],this.invisible=!1,this.bottom=void 0,this.top=void 0,this.type=r,this.specialY={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}};s.prototype.setUpperAndLowerElements=function(t){for(var e=0;e<this.children.length;e++){var i=this.children[e];for(var r in this.specialY)this.specialY.hasOwnProperty(r)&&i[r]&&(i.pitch=t[r],void 0===i.top&&(i.setUpperAndLowerElements(t),this.pushTop(i.top),this.pushBottom(i.bottom)))}},s.prototype.getMinWidth=function(){return this.w},s.prototype.getExtraWidth=function(){return-this.extraw},s.prototype.addExtra=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.extra[this.extra.length]=t,this.addChild(t)},s.prototype.addHead=function(t){t.dx<this.extraw&&(this.extraw=t.dx),this.heads[this.heads.length]=t,this.addRight(t)},s.prototype.addRight=function(t){t.dx+t.w>this.w&&(this.w=t.dx+t.w),this.right[this.right.length]=t,this.addChild(t)},s.prototype.addCentered=function(t){var e=t.w/2;-e<this.extraw&&(this.extraw=-e),this.extra[this.extra.length]=t,t.dx+e>this.w&&(this.w=t.dx+e),this.right[this.right.length]=t,this.addChild(t)},s.prototype.setLimit=function(t,e){e[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],e[t]):this.specialY[t]=e[t])},s.prototype.addChild=function(t){t.parent=this,this.children[this.children.length]=t,this.pushTop(t.top),this.pushBottom(t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},s.prototype.pushTop=function(t){void 0!==t&&(void 0===this.top?this.top=t:this.top=Math.max(t,this.top))},s.prototype.pushBottom=function(t){void 0!==t&&(void 0===this.bottom?this.bottom=t:this.bottom=Math.min(t,this.bottom))},s.prototype.setX=function(t){this.x=t;for(var e=0;e<this.children.length;e++)this.children[e].setX(t)},s.prototype.setHint=function(){this.hint=!0},s.prototype.draw=function(t,e){if(!this.invisible){this.elemset=[],t.beginGroup();for(var i=0;i<this.children.length;i++){0;var s=this.children[i].draw(t,e);s&&this.elemset.push(s)}var n=this.type;if(("note"===this.type||"rest"===this.type)&&(n=(n+=" d"+this.durationClass).replace(/\./g,"-"),this.abcelem.pitches))for(var a=0;a<this.abcelem.pitches.length;a++)n+=" p"+this.abcelem.pitches[a].pitch;var c=t.endGroup(n);c&&this.elemset.push(c),this.klass&&this.setClass("mark","","#00ff00"),this.hint&&this.setClass("abcjs-hint","",null);var o=t.printShadedBox(this.x,t.calcY(this.top),this.w,t.calcY(this.bottom)-t.calcY(this.top),"#000000",0),h=this,l=t.controller;o.addEventListener("mouseup",function(){var t=[];if(h.elemset)for(var e=0;e<h.elemset.length;e++){var i=h.elemset[e];i&&t.push(i.getAttribute("class"))}l.notifySelect(h,h.tuneNumber,t)}),this.abcelem.abselem=this;r.STEP}},s.prototype.isIE=!1,s.prototype.setClass=function(t,e,i){for(var r=0;r<this.elemset.length;r++){var s=this.elemset[r];s.setAttribute("fill",i);var n=s.getAttribute("class");n||(n=""),n=(n=n.replace(e,"")).replace(t,""),t.length>0&&(n.length>0&&" "!==n.charAt(n.length-1)&&(n+=" "),n+=t),s.setAttribute("class",n)}},s.prototype.highlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#ff0000"),this.setClass(t,"",e)},s.prototype.unhighlight=function(t,e){void 0===t&&(t="abcjs-note_selected"),void 0===e&&(e="#000000"),this.setClass("",t,e)},t.exports=s},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){for(var t,e,i,s,n,a=0,c=arguments[a++],o=[];c;){if(e=/^[^\x25]+/.exec(c))o.push(e[0]);else if(e=/^\x25{2}/.exec(c))o.push("%");else{if(!(e=/^\x25(?:(\d+)\$)?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(c)))throw"Huh ?!";if(null==(t=arguments[e[1]||a++])||void 0==t)throw"Too few arguments.";if(/[^s]/.test(e[7])&&"number"!=typeof t)throw"Expecting number but found "+(void 0===t?"undefined":r(t));switch(e[7]){case"b":t=t.toString(2);break;case"c":t=String.fromCharCode(t);break;case"d":t=parseInt(t);break;case"e":t=e[6]?t.toExponential(e[6]):t.toExponential();break;case"f":t=e[6]?parseFloat(t).toFixed(e[6]):parseFloat(t);break;case"o":t=t.toString(8);break;case"s":t=(t=String(t))&&e[6]?t.substring(0,e[6]):t;break;case"u":t=Math.abs(t);break;case"x":t=t.toString(16);break;case"X":t=t.toString(16).toUpperCase()}t=/[def]/.test(e[7])&&e[2]&&t>0?"+"+t:t,s=e[3]?"0"==e[3]?"0":e[3].charAt(1):" ",n=e[5]-String(t).length,i=e[5]?str_repeat(s,n):"",o.push(e[4]?t+i:i+t)}c=c.substring(e[0].length)}return o.join("")}},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=i(0),n=i(7),a={};!function(){a.numberOfTunes=function(t){var e=t.split("\nX:").length;return 0===e&&(e=1),e};var t=a.TuneBook=function(t){for(var e=this,i="",r=(t=s.strip(t)).split("\nX:"),n=1;n<r.length;n++)r[n]="X:"+r[n];var a=0;if(e.tunes=[],s.each(r,function(t){e.tunes.push({abc:t,startPos:a}),a+=t.length+1}),e.tunes.length>1&&!s.startsWith(e.tunes[0].abc,"X:")){var c=e.tunes.shift().abc.split("\n");s.each(c,function(t){s.startsWith(t,"%%")&&(i+=t+"\n")})}e.header=i,s.each(e.tunes,function(t){var e=t.abc.indexOf("\n\n");e>0&&(t.abc=t.abc.substring(0,e)),t.pure=t.abc,t.abc=i+t.abc;var r=t.pure.split("T:");r.length>1?(r=r[1].split("\n"),t.title=r[0].replace(/^\s+|\s+$/g,"")):t.title="";var s=t.pure.substring(2,t.pure.indexOf("\n"));t.id=s.replace(/^\s+|\s+$/g,"")})};t.prototype.getTuneById=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].id===t)return this.tunes[e];return null},t.prototype.getTuneByTitle=function(t){for(var e=0;e<this.tunes.length;e++)if(this.tunes[e].title===t)return this.tunes[e];return null},a.parseOnly=function(t,e){for(var i=a.numberOfTunes(t),r=[],s=0;s<i;s++)r.push(1);return a.renderEngine(function(){},r,t,e)},a.renderEngine=function(e,i,s,a){var c=[];if(void 0!==i&&void 0!==s){(function(t){return t&&!t.propertyIsEnumerable("length")&&"object"===(void 0===t?"undefined":r(t))&&"number"==typeof t.length})(i)||(i=[i]),void 0===a&&(a={});for(var o=a.startingTune?parseInt(a.startingTune,10):0,h=new t(s),l=new n,d=0;d<i.length;d++){var u=i[d];if("string"==typeof u&&(u=document.getElementById(u)),u)if(o>=0&&o<h.tunes.length){l.parse(h.tunes[o].abc,a);var f=l.getTune(),p=e(u,f,d,h.tunes[o].abc);c.push(p||f)}else u.hasOwnProperty("innerHTML")&&(u.innerHTML="");o++}return c}},a.extractMeasures=function(e){for(var i=[],r=new t(e),s=0;s<r.tunes.length;s++){for(var n=r.tunes[s],c=n.abc.split("K:"),o=c[1].split("\n"),h=c[0]+"K:"+o[0]+"\n",l=null,d=null,u=null,f=[],p=!1,m=a.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 w=b.staff[y],x=0;x<1;x++)for(var k=w.voices[x],A=0;A<k.length;A++){var T=k[A];if(null===u&&T.startChar>=0&&(u=T.startChar,d=void 0===T.chord?l:null),T.chord&&(l=T),"bar"===T.el_type){if(p){var S={abc:n.abc.substring(u,T.endChar)};(l=d&&d.chord&&d.chord.length>0?d.chord[0].name:null)&&(S.lastChord=l),T.startEnding&&(S.startEnding=T.startEnding),T.endEnding&&(S.endEnding=T.endEnding),f.push(S),u=null,p=!1}}else"note"===T.el_type&&(p=!0)}}i.push({header:h,measures:f,hasPickup:g})}return i}}(),t.exports=a},function(t,e,i){"use strict";var r=i(0),s=i(8),n=i(19),a=i(9),c=i(20),o=i(11),h=i(12),l=i(21);t.exports=function(){var t=new l,e=new c;function i(t,e,i){t.positioning||(t.positioning={}),t.positioning[e]=i}function d(t,e,i){t.fonts||(t.fonts={}),t.fonts[e]=i}this.getTune=function(){return t};var u={reset:function(){for(var t in this)this.hasOwnProperty(t)&&"function"!=typeof this[t]&&delete this[t];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.next_note_duration=0,this.start_new_line=!0,this.is_in_header=!0,this.is_in_history=!1,this.partForNextLine={},this.havent_set_length=!0,this.voices={},this.staves=[],this.macros={},this.currBarNumber=1,this.barCounter={},this.inTextBlock=!1,this.inPsBlock=!1,this.ignoredDecorations=[],this.textBlock="",this.score_is_present=!1,this.inEnding=!1,this.inTie=[!1],this.inTieChord={},this.vocalPosition="auto",this.dynamicPosition="auto",this.chordPosition="auto",this.ornamentPosition="auto",this.volumePosition="auto",this.openSlurs=[]},differentFont:function(t,e){return this[t].decoration!==e[t].decoration||this[t].face!==e[t].face||this[t].size!==e[t].size||this[t].style!==e[t].style||this[t].weight!==e[t].weight},addFormattingOptions:function(t,e,r){"note"===r?("auto"!==this.vocalPosition&&i(t,"vocalPosition",this.vocalPosition),"auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("annotationfont",e)&&d(t,"annotationfont",this.annotationfont),this.differentFont("gchordfont",e)&&d(t,"gchordfont",this.gchordfont),this.differentFont("vocalfont",e)&&d(t,"vocalfont",this.vocalfont),this.differentFont("tripletfont",e)&&d(t,"tripletfont",this.tripletfont)):"bar"===r&&("auto"!==this.dynamicPosition&&i(t,"dynamicPosition",this.dynamicPosition),"auto"!==this.chordPosition&&i(t,"chordPosition",this.chordPosition),"auto"!==this.ornamentPosition&&i(t,"ornamentPosition",this.ornamentPosition),"auto"!==this.volumePosition&&i(t,"volumePosition",this.volumePosition),this.differentFont("measurefont",e)&&d(t,"measurefont",this.measurefont),this.differentFont("repeatfont",e)&&d(t,"repeatfont",this.repeatfont))}},f=function(t){var e=r.gsub(t,""," ");return e=r.gsub(e,"&","&amp;"),e=r.gsub(e,"<","&lt;"),r.gsub(e,">","&gt;")},p=function(e,i,r){i||(i=" ");var s=i.charAt(r);" "===s&&(s="SPACE");var n=f(i.substring(0,r))+'<span style="text-decoration:underline;font-size:1.3em;font-weight:bold;">'+s+"</span>"+f(i.substring(r+1));!function(t){u.warnings||(u.warnings=[]),u.warnings.push(t)}("Music Line:"+t.getNumLines()+":"+(r+1)+": "+e+": "+n),function(t){u.warningObjects||(u.warningObjects=[]),u.warningObjects.push(t)}({message:e,line:i,startChar:u.iChar+r,column:r})},m=new n(e,p,u,t);this.getWarnings=function(){return u.warnings},this.getWarningObjects=function(){return u.warningObjects};var g=function(t,i){if('"'===t.charAt(i)){var r=e.getBrackettedSubstring(t,i,5);if(r[2]||p("Missing the closing quote while parsing the chord symbol",t,i),r[0]>0&&r[1].length>0&&"^"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="above";else if(r[0]>0&&r[1].length>0&&"_"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="below";else if(r[0]>0&&r[1].length>0&&"<"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="left";else if(r[0]>0&&r[1].length>0&&">"===r[1].charAt(0))r[1]=r[1].substring(1),r[2]="right";else if(r[0]>0&&r[1].length>0&&"@"===r[1].charAt(0)){r[1]=r[1].substring(1);var s=e.getFloat(r[1]);0===s.digits&&p("Missing first position in absolutely positioned annotation.",t,i),r[1]=r[1].substring(s.digits),","!==r[1][0]&&p("Missing comma absolutely positioned annotation.",t,i),r[1]=r[1].substring(1);var n=e.getFloat(r[1]);0===n.digits&&p("Missing second position in absolutely positioned annotation.",t,i),r[1]=r[1].substring(n.digits);var a=e.skipWhiteSpace(r[1]);r[1]=r[1].substring(a),r[2]=null,r[3]={x:s.value,y:n.value}}else r[1]=r[1].replace(/([ABCDEFG0-9])b/g,"$1♭"),r[1]=r[1].replace(/([ABCDEFG0-9])#/g,"$1♯"),r[2]="default",r[1]=o.chordName(u,r[1]);return r}return[0,""]},v=["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","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"],b=["p","pp","f","ff","mf","mp","ppp","pppp","fff","ffff","sfz"],y=["crescendo(","crescendo)","diminuendo(","diminuendo)"],w=[["<","accent"],[">","accent"],["tr","trill"],["plus","+"],["emphasis","accent"],["^","umarcato"],["marcato","umarcato"]],x=[["<(","crescendo("],["<)","crescendo)"],[">(","diminuendo("],[">)","diminuendo)"]],k=function(t,i){var s=u.macros[t.charAt(i)];if(void 0!==s)return"!"!==s.charAt(0)&&"+"!==s.charAt(0)||(s=s.substring(1)),"!"!==s.charAt(s.length-1)&&"+"!==s.charAt(s.length-1)||(s=s.substring(0,s.length-1)),r.detect(v,function(t){return s===t})?[1,s]:r.detect(b,function(t){return s===t})?("hidden"===u.volumePosition&&(s=""),[1,s]):r.detect(y,function(t){return"hidden"===u.dynamicPosition&&(s=""),s===t})?[1,s]:(r.detect(u.ignoredDecorations,function(t){return s===t})||p("Unknown macro: "+s,t,i),[1,""]);switch(t.charAt(i)){case".":return[1,"staccato"];case"u":return[1,"upbow"];case"v":return[1,"downbow"];case"~":return[1,"irishroll"];case"!":case"+":var n=e.getBrackettedSubstring(t,i,5);return n[1].length>0&&("^"===n[1].charAt(0)||"_"===n[1].charAt(0))&&(n[1]=n[1].substring(1)),r.detect(v,function(t){return n[1]===t})?n:r.detect(b,function(t){return n[1]===t})?("hidden"===u.volumePosition&&(n[1]=""),n):r.detect(y,function(t){return n[1]===t})?("hidden"===u.dynamicPosition&&(n[1]=""),n):r.detect(w,function(t){return n[1]===t[0]&&(n[1]=t[1],!0)})?n:r.detect(x,function(t){return n[1]===t[0]&&(n[1]=t[1],!0)})?("hidden"===u.dynamicPosition&&(n[1]=""),n):"!"!==t.charAt(i)||1!==n[0]&&"!"===t.charAt(i+n[0]-1)?(p("Unknown decoration: "+n[1],t,i),n[1]="",n):[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]},A=function(t,i){for(var r=i;e.isWhiteSpace(t.charAt(i));)i++;return[i-r]},T=function(t,i){var r=e.getBarLine(t,i);if(0===r.len)return[0,""];if(r.warn)return p(r.warn,t,i),[r.len,""];for(var s=0;s<t.length&&" "===t.charAt(i+r.len+s);s++);var n=r.len;if("["===t.charAt(i+r.len+s)&&(r.len+=s+1),'"'===t.charAt(i+r.len)&&"["===t.charAt(i+r.len-1)){var a=e.getBrackettedSubstring(t,i+r.len,5);return[r.len+a[0],r.token,a[1]]}var c=e.getTokenOf(t.substring(i+r.len),"1234567890-,");return 0===c.len||"-"===c.token[0]?[n,r.token]:[r.len+c.len,r.token,c.token]},S={2:3,3:2,4:3,5:2,6:2,7:2,8:3,9:2},N=function(t,i){for(var r={},s=i;"("===t.charAt(i)||e.isWhiteSpace(t.charAt(i));)"("===t.charAt(i)&&(i+1<t.length&&t.charAt(i+1)>="2"&&t.charAt(i+1)<="9"?(void 0!==r.triplet?p("Can't nest triplets",t,i):(r.triplet=t.charAt(i+1)-"0",r.tripletQ=S[r.triplet],r.num_notes=r.triplet,i+2<t.length&&":"===t.charAt(i+2)&&(i+3<t.length&&":"===t.charAt(i+3)?i+4<t.length&&t.charAt(i+4)>="1"&&t.charAt(i+4)<="9"?(r.num_notes=t.charAt(i+4)-"0",i+=3):p("expected number after the two colons after the triplet to mark the duration",t,i):i+3<t.length&&t.charAt(i+3)>="1"&&t.charAt(i+3)<="9"?(r.tripletQ=t.charAt(i+3)-"0",i+4<t.length&&":"===t.charAt(i+4)?i+5<t.length&&t.charAt(i+5)>="1"&&t.charAt(i+5)<="9"&&(r.num_notes=t.charAt(i+5)-"0",i+=4):i+=2):p("expected number after the triplet to mark the duration",t,i))),i++):void 0===r.startSlur?r.startSlur=1:r.startSlur++),i++;return r.consumed=i-s,r},C=function(t,e){switch(t.charAt(e)){case">":return e<t.length-1&&">"===t.charAt(e+1)?[2,1.75,.25]:[1,1.5,.5];case"<":return e<t.length-1&&"<"===t.charAt(e+1)?[2,.25,1.75]:[1,.5,1.5]}return null},_=function(t){return void 0!==t.duration&&t.duration<.25&&(t.end_beam=!0),t},E={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},M={x:"invisible",y:"spacer",z:"rest",Z:"multimeasure"},B=function(i,r,s,n){for(var a=function(t){return"octave"===t||"duration"===t||"Zduration"===t||"broken_rhythm"===t||"end_slur"===t},c="startSlur",h=!1;;){switch(i.charAt(r)){case"(":if("startSlur"!==c)return a(c)?(s.endChar=r,s):null;void 0===s.startSlur?s.startSlur=1:s.startSlur++;break;case")":if(!a(c))return null;void 0===s.endSlur?s.endSlur=1:s.endSlur++;break;case"^":if("startSlur"===c)s.accidental="sharp",c="sharp2";else{if("sharp2"!==c)return a(c)?(s.endChar=r,s):null;s.accidental="dblsharp",c="pitch"}break;case"_":if("startSlur"===c)s.accidental="flat",c="flat2";else{if("flat2"!==c)return a(c)?(s.endChar=r,s):null;s.accidental="dblflat",c="pitch"}break;case"=":if("startSlur"!==c)return a(c)?(s.endChar=r,s):null;s.accidental="natural",c="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"!==c&&"sharp2"!==c&&"flat2"!==c&&"pitch"!==c)return a(c)?(s.endChar=r,s):null;if(s.pitch=E[i.charAt(r)],o.note(u,s),c="octave",n&&0!==u.next_note_duration?(s.duration=u.default_length*u.next_note_duration,u.next_note_duration=0,h=!0):s.duration=u.default_length,u.clef&&"perc"===u.clef.type||u.currentVoice&&"perc"===u.currentVoice.clef){var l=i.charAt(r);s.accidental&&(l={dblflat:"__",flat:"_",natural:"=",sharp:"^",dblsharp:"^^"}[s.accidental]+l),t.formatting&&t.formatting.midi&&t.formatting.midi.drummap&&(s.midipitch=t.formatting.midi.drummap[l])}break;case",":if("octave"!==c)return a(c)?(s.endChar=r,s):null;s.pitch-=7;break;case"'":if("octave"!==c)return a(c)?(s.endChar=r,s):null;s.pitch+=7;break;case"x":case"y":case"z":case"Z":if("startSlur"!==c)return a(c)?(s.endChar=r,s):null;s.rest={type:M[i.charAt(r)]},delete s.accidental,delete s.startSlur,delete s.startTie,delete s.endSlur,delete s.endTie,delete s.end_beam,delete s.grace_notes,"multimeasure"===s.rest.type?(s.duration=1,c="Zduration"):(n&&0!==u.next_note_duration?(s.duration=u.default_length*u.next_note_duration,u.next_note_duration=0,h=!0):s.duration=u.default_length,c="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"===c||"duration"===c){var d=e.getFraction(i,r);for(s.duration=s.duration*d.value,s.endChar=d.index;d.index<i.length&&(e.isWhiteSpace(i.charAt(d.index))||"-"===i.charAt(d.index));)"-"===i.charAt(d.index)?s.startTie={}:s=_(s),d.index++;r=d.index-1,c="broken_rhythm"}else if("sharp2"===c)s.accidental="quartersharp",c="pitch";else{if("flat2"!==c){if("Zduration"===c){var f=e.getNumber(i,r);return s.duration=f.num,s.endChar=f.index,s}return null}s.accidental="quarterflat",c="pitch"}break;case"-":if("startSlur"===c)t.addTieToLastNote(),s.endTie=!0;else{if("octave"!==c&&"duration"!==c&&"end_slur"!==c)return"broken_rhythm"===c?(s.endChar=r,s):null;if(s.startTie={},h||!n)return e.isWhiteSpace(i.charAt(r+1))&&_(s),s.endChar=r+1,s;c="broken_rhythm"}break;case" ":case"\t":if(!a(c))return null;s.end_beam=!0;do{"-"===i.charAt(r)&&(s.startTie={}),r++}while(r<i.length&&(e.isWhiteSpace(i.charAt(r))||"-"===i.charAt(r)));if(s.endChar=r,h||!n||"<"!==i.charAt(r)&&">"!==i.charAt(r))return s;r--,c="broken_rhythm";break;case">":case"<":if(!a(c))return null;if(!n)return s.endChar=r,s;var p=C(i,r);r+=p[0]-1,u.next_note_duration=p[2],s.duration=p[1]*s.duration,c="end_slur";break;default:return a(c)?(s.endChar=r,s):null}if(++r===i.length)return a(c)?(s.endChar=r,s):null}return null};function P(){var e={startChar:-1,endChar:-1};u.partForNextLine.title&&(e.part=u.partForNextLine),e.clef=u.currentVoice&&void 0!==u.staves[u.currentVoice.staffNum].clef?r.clone(u.staves[u.currentVoice.staffNum].clef):r.clone(u.clef);var i=u.currentVoice?u.currentVoice.scoreTranspose:0;if(e.key=a.standardKey(u.key.root+u.key.acc+u.key.mode,u.key.root,u.key.acc,i),e.key.mode=u.key.mode,u.key.impliedNaturals&&(e.key.impliedNaturals=u.key.impliedNaturals),u.key.explicitAccidentals)for(var s=0;s<u.key.explicitAccidentals.length;s++){for(var n=!1,c=0;c<e.key.accidentals.length;c++)e.key.accidentals[c].note===u.key.explicitAccidentals[s].note&&(e.key.accidentals[c].acc=u.key.explicitAccidentals[s].acc,n=!0);n||e.key.accidentals.push(u.key.explicitAccidentals[s])}if(u.targetKey=e.key,e.key.explicitAccidentals&&delete e.key.explicitAccidentals,a.addPosToKey(e.clef,e.key),null!==u.meter?(u.currentVoice?(r.each(u.staves,function(t){t.meter=u.meter}),e.meter=u.staves[u.currentVoice.staffNum].meter,u.staves[u.currentVoice.staffNum].meter=null):e.meter=u.meter,u.meter=null):u.currentVoice&&u.staves[u.currentVoice.staffNum].meter&&(e.meter=u.staves[u.currentVoice.staffNum].meter,u.staves[u.currentVoice.staffNum].meter=null),u.currentVoice&&u.currentVoice.name&&(e.name=u.currentVoice.name),u.vocalfont&&(e.vocalfont=u.vocalfont),u.tripletfont&&(e.tripletfont=u.tripletfont),u.style&&(e.style=u.style),u.currentVoice){var o=u.staves[u.currentVoice.staffNum];o.brace&&(e.brace=o.brace),o.bracket&&(e.bracket=o.bracket),o.connectBarLines&&(e.connectBarLines=o.connectBarLines),o.name&&(e.name=o.name[u.currentVoice.index]),o.subname&&(e.subname=o.subname[u.currentVoice.index]),u.currentVoice.stem&&(e.stem=u.currentVoice.stem),u.currentVoice.stafflines&&(e.stafflines=u.currentVoice.stafflines),u.currentVoice.staffscale&&(e.staffscale=u.currentVoice.staffscale),u.currentVoice.scale&&(e.scale=u.currentVoice.scale),u.currentVoice.style&&(e.style=u.currentVoice.style),u.currentVoice.transpose&&(e.clef.transpose=u.currentVoice.transpose)}var h=void 0===u.currentVoice||0===u.currentVoice.staffNum&&0===u.currentVoice.index;0===u.barNumbers&&h&&1!==u.currBarNumber&&(e.barNumber=u.currBarNumber),t.startNewLine(e),u.key.impliedNaturals&&delete u.key.impliedNaturals,u.partForNextLine={}}var L=function(t,i){if("{"===t.charAt(i)){var r=e.getBrackettedSubstring(t,i,1,"}");r[2]||p("Missing the closing '}' while parsing grace note",t,i),")"===t[i+r[0]]&&(r[0]++,r[1]+=")");for(var s=[],n=0,a=!1;n<r[1].length;){var c=!1;"/"===r[1].charAt(n)&&(c=!0,n++);var o=B(r[1],n,{},!1);null!==o?(o.duration=o.duration/(8*u.default_length),c&&(o.acciaccatura=!0),s.push(o),a&&(o.endTie=!0,a=!1),o.startTie&&(a=!0),n=o.endChar,delete o.endChar):(" "===r[1].charAt(n)?s.length>0&&(s[s.length-1].end_beam=!0):p("Unknown character '"+r[1].charAt(n)+"' while parsing grace note",t,i),n++)}if(s.length)return[r[0],s]}return[0]};function H(t,e){if("&"===t.charAt(e)){for(var i=e;t.charAt(e)&&":"!==t.charAt(e)&&"|"!==t.charAt(e);)e++;return[e-i,t.substring(i+1,e)]}return[0]}function z(t){var e=t.origMeter;return e&&"specified"===e.type&&e.value&&0!==e.value.length?parseInt(e.value[0].num,10)/parseInt(e.value[0].den,10):1}var I=function i(s){var n=m.parseHeader(s);n.regular&&function(i){m.resolveTempo(),u.is_in_header=!1;for(var s=0,n=u.iChar;e.isWhiteSpace(i.charAt(s))&&s<i.length;)s++;if(s!==i.length&&"%"!==i.charAt(s)){var a=u.start_new_line;void 0===u.continueall?u.start_new_line=!0:u.start_new_line=!1;var c=0,o=m.letter_to_body_header(i,s);o[0]>0&&(s+=o[0],"V"===o[1]&&(a=!0));for(var h={},l=0;s<i.length;){var d=s;if("%"===i.charAt(s))break;var f=m.letter_to_inline_header(i,s);if(f[0]>0)s+=f[0],"V"===f[1]&&(a=!0);else{var v;for(a&&(P(),a=!1);;)if((v=e.eatWhiteSpace(i,s))>0&&(s+=v),s>0&&""===i.charAt(s-1)&&(v=m.letter_to_body_header(i,s))[0]>0&&("V"===v[1]&&P(),s=v[0],u.start_new_line=!1),(v=A(i,s))[0]>0&&(s+=v[0]),(v=g(i,s))[0]>0){h.chord||(h.chord=[]);var b=e.translateString(v[1]);b=b.replace(/;/g,"\n");for(var y=!1,w=0;w<h.chord.length;w++)h.chord[w].position===v[2]&&(y=!0,h.chord[w].name+="\n"+b);!1===y&&(null===v[2]&&v[3]?h.chord.push({name:b,rel_position:v[3]}):h.chord.push({name:b,position:v[2]})),s+=v[0];var x=e.skipWhiteSpace(i.substring(s));x>0&&(h.force_end_beam_last=!0),s+=x}else if((v=-1==="ABCDEFGabcdefgxyzZ[]|^_{".indexOf(i.charAt(s))?k(i,s):[0])[0]>0)null===v[1]?s+1<i.length&&P():v[1].length>0&&(0===v[1].indexOf("style=")?h.style=v[1].substr(6):(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(v[1]))),s+=v[0];else{if(!((v=L(i,s))[0]>0))break;h.gracenotes=v[1],s+=v[0]}if((v=T(i,s))[0]>0){l=0,void 0!==h.gracenotes&&(h.rest={type:"spacer"},h.duration=.125,u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",n+s,n+s+v[0],h),u.measureNotEmpty=!0,h={});var S={type:v[1]};0===S.type.length?p("Unknown bar type",i,s):(u.inEnding&&"bar_thin"!==S.type&&(S.endEnding=!0,u.inEnding=!1),v[2]&&(S.startEnding=v[2],u.inEnding&&(S.endEnding=!0),u.inEnding=!0),void 0!==h.decoration&&(S.decoration=h.decoration),void 0!==h.chord&&(S.chord=h.chord),S.startEnding&&void 0===u.barFirstEndingNum?u.barFirstEndingNum=u.currBarNumber:S.startEnding&&S.endEnding&&u.barFirstEndingNum?u.currBarNumber=u.barFirstEndingNum:S.endEnding&&(u.barFirstEndingNum=void 0),"bar_invisible"!==S.type&&u.measureNotEmpty&&(void 0===u.currentVoice||0===u.currentVoice.staffNum&&0===u.currentVoice.index)&&(u.currBarNumber++,u.barNumbers&&u.currBarNumber%u.barNumbers==0&&(S.barNumber=u.currBarNumber)),u.addFormattingOptions(h,t.formatting,"bar"),t.appendElement("bar",n+s,n+s+v[0],S),u.measureNotEmpty=!1,h={}),s+=v[0],u.currentVoice&&(u.currentVoice.staffNum,u.currentVoice.index)}else if("&"===i[s])(v=H(i,s))[0]>0&&(t.appendElement("overlay",n,n+1,{}),s+=1,l++);else{if((v=N(i,s)).consumed>0&&(void 0!==v.startSlur&&(h.startSlur=v.startSlur),void 0!==v.triplet&&(c>0?p("Can't nest triplets",i,s):(h.startTriplet=v.triplet,h.tripletMultiplier=v.tripletQ/v.triplet,c=void 0===v.num_notes?v.triplet:v.num_notes)),s+=v.consumed),"["===i.charAt(s)){var E=s;s++;for(var M=null,I=!1,O=!1;!O;){var D=k(i,s);D[0]>0&&(s+=D[0]);var Y=B(i,s,{},!1);if(null!==Y)D[0]>0&&0!==D[1].indexOf("style=")&&(void 0===h.decoration&&(h.decoration=[]),h.decoration.push(D[1])),Y.end_beam&&(h.end_beam=!0,delete Y.end_beam),void 0===h.pitches?(h.duration=Y.duration,h.pitches=[Y]):h.pitches.push(Y),delete Y.duration,D[0]>0&&0===D[1].indexOf("style=")&&(h.pitches[h.pitches.length-1].style=D[1].substr(6)),u.inTieChord[h.pitches.length]&&(Y.endTie=!0,u.inTieChord[h.pitches.length]=void 0),Y.startTie&&(u.inTieChord[h.pitches.length]=!0),s=Y.endChar,delete Y.endChar;else if(" "===i.charAt(s))p("Spaces are not allowed in chords",i,s),s++;else{if(s<i.length&&"]"===i.charAt(s)){s++,0!==u.next_note_duration&&(h.duration=h.duration*u.next_note_duration,u.next_note_duration=0),u.inTie[l]&&(r.each(h.pitches,function(t){t.endTie=!0}),u.inTie[l]=!1),c>0&&0==--c&&(h.endTriplet=!0);for(var F=!1;s<i.length&&!F;){switch(i.charAt(s)){case" ":case"\t":_(h);break;case")":void 0===h.endSlur?h.endSlur=1:h.endSlur++;break;case"-":r.each(h.pitches,function(t){t.startTie={}}),u.inTie[l]=!0;break;case">":case"<":var W=C(i,s);s+=W[0]-1,u.next_note_duration=W[2],M?M*=W[1]:M=W[1];break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"/":var V=e.getFraction(i,s);M=V.value,s=V.index," "===i.charAt(s)&&(I=!0),"-"===i.charAt(s)||")"===i.charAt(s)||" "===i.charAt(s)||"<"===i.charAt(s)||">"===i.charAt(s)?s--:F=!0;break;default:F=!0}F||s++}}else p("Expected ']' to end the chords",i,s);void 0!==h.pitches&&(null!==M&&(h.duration=h.duration*M,I&&_(h)),u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",n+E,n+s,h),u.measureNotEmpty=!0,h={}),O=!0}}}else{var R={},G=B(i,s,R,!0);void 0!==R.endTie&&(u.inTie[l]=!0),null!==G&&(void 0!==G.pitch?(h.pitches=[{}],void 0!==G.accidental&&(h.pitches[0].accidental=G.accidental),h.pitches[0].pitch=G.pitch,G.midipitch&&(h.pitches[0].midipitch=G.midipitch),void 0!==G.endSlur&&(h.pitches[0].endSlur=G.endSlur),void 0!==G.endTie&&(h.pitches[0].endTie=G.endTie),void 0!==G.startSlur&&(h.pitches[0].startSlur=G.startSlur),void 0!==h.startSlur&&(h.pitches[0].startSlur=h.startSlur),void 0!==G.startTie&&(h.pitches[0].startTie=G.startTie),void 0!==h.startTie&&(h.pitches[0].startTie=h.startTie)):(h.rest=G.rest,void 0!==G.endSlur&&(h.endSlur=G.endSlur),void 0!==G.endTie&&(h.rest.endTie=G.endTie),void 0!==G.startSlur&&(h.startSlur=G.startSlur),void 0!==G.startTie&&(h.rest.startTie=G.startTie),void 0!==h.startTie&&(h.rest.startTie=h.startTie)),void 0!==G.chord&&(h.chord=G.chord),void 0!==G.duration&&(h.duration=G.duration),void 0!==G.decoration&&(h.decoration=G.decoration),void 0!==G.graceNotes&&(h.graceNotes=G.graceNotes),delete h.startSlur,u.inTie[l]&&(void 0!==h.pitches?(h.pitches[0].endTie=!0,u.inTie[l]=!1):"spacer"!==h.rest.type&&(h.rest.endTie=!0,u.inTie[l]=!1)),(G.startTie||h.startTie)&&(u.inTie[l]=!0),s=G.endChar,c>0&&0==--c&&(h.endTriplet=!0),G.end_beam&&_(h),h.rest&&"rest"===h.rest.type&&1===h.duration&&z(u)<=1&&(h.rest.type="whole",h.duration=z(u)),u.addFormattingOptions(h,t.formatting,"note"),t.appendElement("note",n+d,n+s,h),u.measureNotEmpty=!0,h={})}s===d&&(" "!==i.charAt(s)&&"`"!==i.charAt(s)&&p("Unknown character ignored",i,s),s++)}}}}}(n.str),n.newline&&P(),n.words&&function(t,i){if(t){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var s=[],n=0,a=!1,c=function(t){var c=r.strip(i.substring(n,t));if(n=t+1,c.length>0){a&&(c=r.gsub(c,"~"," "));var o=i.charAt(t);return"_"!==o&&"-"!==o&&(o=" "),s.push({syllable:e.translateString(c),divider:o}),a=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&s.length>0&&(r.last(s).divider="-",s.push({skip:!0,to:"next"}));break;case"_":c(o),s.push({skip:!0,to:"slur"});break;case"*":c(o),s.push({skip:!0,to:"next"});break;case"|":c(o),s.push({skip:!0,to:"bar"});break;case"~":a=!0}r.each(t,function(t){if(0!==s.length)if(s[0].skip){switch(s[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&s.shift();break;case"bar":"bar"===t.el_type&&s.shift()}"bar"!==t.el_type&&(void 0===t.lyric?t.lyric=[{syllable:"",divider:" "}]:t.lyric.push({syllable:"",divider:" "}))}else if("note"===t.el_type&&void 0===t.rest){var e=s.shift();e.syllable&&(e.syllable=e.syllable.replace(/ +/g," ")),void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add words before the first line of music",t,0)}(t.getCurrentVoice(),s.substring(2)),n.symbols&&function(t,i){if(t){"-"!==(i=r.strip(i)).charAt(i.length-1)&&(i+=" ");for(var s=[],n=0,a=!1,c=function(t){var c=r.strip(i.substring(n,t));if(n=t+1,c.length>0){a&&(c=r.gsub(c,"~"," "));var o=i.charAt(t);return"_"!==o&&"-"!==o&&(o=" "),s.push({syllable:e.translateString(c),divider:o}),a=!1,!0}return!1},o=0;o<i.length;o++)switch(i.charAt(o)){case" ":case"":c(o);break;case"-":!c(o)&&s.length>0&&(r.last(s).divider="-",s.push({skip:!0,to:"next"}));break;case"_":c(o),s.push({skip:!0,to:"slur"});break;case"*":c(o),s.push({skip:!0,to:"next"});break;case"|":c(o),s.push({skip:!0,to:"bar"});break;case"~":a=!0}r.each(t,function(t){if(0!==s.length)if(s[0].skip)switch(s[0].to){case"next":case"slur":"note"===t.el_type&&null!==t.pitches&&s.shift();break;case"bar":"bar"===t.el_type&&s.shift()}else if("note"===t.el_type&&void 0===t.rest){var e=s.shift();void 0===t.lyric?t.lyric=[e]:t.lyric.push(e)}})}else p("Can't add symbols before the first line of music",t,0)}(t.getCurrentVoice(),s.substring(2)),n.recurse&&i(n.str)};function O(t,e){t.push({el_type:"hint"});for(var i=0;i<e.length;i++){var s=e[i],n=r.clone(s);if(t.push(n),"bar"===s.el_type)return}}function D(t,e){for(var i=0;i<t.length;i++){var r=t[i],s=e[i];if(s)for(var n=0;n<s.voices.length;n++){var a=s.voices[n],c=r.voices[n];c&&O(c,a)}}}this.parse=function(i,n){if(n||(n={}),t.reset(),n.print&&(t.media="print"),u.reset(),n.visualTranspose?(u.globalTranspose=parseInt(n.visualTranspose),0===u.globalTranspose&&(u.globalTranspose=void 0)):u.globalTranspose=void 0,n.lineBreaks){u.lineBreaks={};for(var a=0;a<n.lineBreaks.length;a++)u.lineBreaks[""+(n.lineBreaks[a]+1)]=!0}m.reset(e,p,u,t),i=r.gsub(i,"\r\n","\n"),i=r.gsub(i,"\r","\n");var c=(i=(i=(i+="\n").replace(/\n\\.*\n/g,"\n")).replace(/\\([ \t]*)(%.*)*\n/g,function(t,e,i){return e+" "+(i?" ".substring(0,i.length):"")})).split("\n");0===r.last(c).length&&c.pop();try{n.format&&s.globalFormatting(n.format),r.each(c,function(i){if(n.header_only&&!1===u.is_in_header)throw"normal_abort";if(n.stop_on_warning&&u.warnings)throw"normal_abort";u.is_in_history?":"===i.charAt(1)?(u.is_in_history=!1,I(i)):t.addMetaText("history",e.translateString(e.stripComment(i))):u.inTextBlock?r.startsWith(i,"%%endtext")?(t.addText(u.textBlock),u.inTextBlock=!1):r.startsWith(i,"%%")?u.textBlock+=" "+i.substring(2):u.textBlock+=" "+i:u.inPsBlock?r.startsWith(i,"%%endps")?u.inPsBlock=!1:u.textBlock+=" "+i:I(i),u.iChar+=i.length+1});var o=792,l=612;switch(u.papersize){case"legal":o=1008,l=612;break;case"A4":o=842.4,l=597.6}if(u.landscape){var d=o;o=l,l=d}u.openSlurs=t.cleanUp(l,o,u.barsperstaff,u.staffnonote,u.openSlurs)}catch(t){if("normal_abort"!==t)throw t}n.hint_measures&&function(){for(var e=0;e<t.lines.length;e++){var i=t.lines[e].staff;if(i){for(var r=e+1;r<t.lines.length&&void 0===t.lines[r].staff;)r++;r<t.lines.length&&D(i,t.lines[r].staff)}}}(),h.wrapLines(t,u.lineBreaks)}}},function(t,e,i){"use strict";var r=i(0),s={};!function(){var t,e,i,n;s.initialize=function(r,s,a,c){t=r,e=s,n=c,(i=a).annotationfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.gchordfont={face:"Helvetica",size:12,weight:"normal",style:"normal",decoration:"none"},i.historyfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.infofont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.measurefont={face:'"Times New Roman"',size:14,weight:"normal",style:"italic",decoration:"none"},i.partsfont={face:'"Times New Roman"',size:15,weight:"normal",style:"normal",decoration:"none"},i.repeatfont={face:'"Times New Roman"',size:13,weight:"normal",style:"normal",decoration:"none"},i.textfont={face:'"Times New Roman"',size:16,weight:"normal",style:"normal",decoration:"none"},i.tripletfont={face:"Times",size:11,weight:"normal",style:"italic",decoration:"none"},i.vocalfont={face:'"Times New Roman"',size:13,weight:"bold",style:"normal",decoration:"none"},i.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.annotationfont=i.annotationfont,n.formatting.gchordfont=i.gchordfont,n.formatting.historyfont=i.historyfont,n.formatting.infofont=i.infofont,n.formatting.measurefont=i.measurefont,n.formatting.partsfont=i.partsfont,n.formatting.repeatfont=i.repeatfont,n.formatting.textfont=i.textfont,n.formatting.tripletfont=i.tripletfont,n.formatting.vocalfont=i.vocalfont,n.formatting.wordsfont=i.wordsfont};var a={gchordfont:!0,measurefont:!0,partsfont:!0},c=function(t,i,r,s,n){function c(){var c=parseInt(t[0].token);return t.shift(),i?0===t.length?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}:1===t.length&&"box"===t[0].token&&a[n]?{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c,box:!0}:(e("Extra parameters in font definition.",r,s),{face:i.face,weight:i.weight,style:i.style,decoration:i.decoration,size:c}):(e("Can't set just the size of the font since there is no default value.",r,s),{face:'"Times New Roman"',weight:"normal",style:"normal",decoration:"none",size:c})}if("*"===t[0].token){if(t.shift(),"number"===t[0].type)return c();e("Expected font size number after *.",r,s)}if("number"===t[0].type)return c();for(var o,h=[],l="normal",d="normal",u="none",f=!1,p="face",m=!1;t.length;){var g=t.shift(),v=g.token.toLowerCase();switch(p){case"face":m||"utf"!==v&&"number"!==g.type&&"bold"!==v&&"italic"!==v&&"underline"!==v&&"box"!==v?h.length>0&&"-"===g.token?(m=!0,h[h.length-1]=h[h.length-1]+g.token):m?(m=!1,h[h.length-1]=h[h.length-1]+g.token):h.push(g.token):"number"===g.type?(o?e("Font size specified twice in font definition.",r,s):o=g.token,p="modifier"):"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(a[n]?f=!0:e('This font style doesn\'t support "box"',r,s),p="finished"):"utf"===v?(g=t.shift(),p="size"):e("Unknown parameter "+g.token+" in font definition.",r,s);break;case"size":"number"===g.type?o?e("Font size specified twice in font definition.",r,s):o=g.token:e("Expected font size in font definition.",r,s),p="modifier";break;case"modifier":"bold"===v?l="bold":"italic"===v?d="italic":"underline"===v?u="underline":"box"===v?(a[n]?f=!0:e('This font style doesn\'t support "box"',r,s),p="finished"):e("Unknown parameter "+g.token+" in font definition.",r,s);break;case"finished":e('Extra characters found after "box" in font definition.',r,s)}}void 0===o?i?o=i.size:(e("Must specify the size of the font since there is no default value.",r,s),o=12):o=parseFloat(o);var b=function(t){switch(t){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}}(h=h.join(" ")),y={};return b?(y.face=b.face,y.weight=b.weight,y.style=b.style,y.decoration=b.decoration,y.size=o,f&&(y.box=!0),y):(y.face=h,y.weight=l,y.style=d,y.decoration=u,y.size=o,f&&(y.box=!0),y)},o=function(t,e,r){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(i[t]=c(e,i[t],r,0,t),i.is_in_header&&(n.formatting[t]=i[t]),null)},h=function(t,e){var i="";r.each(e,function(t){i+=t.token});var s=parseFloat(i);if(isNaN(s)||0===s)return'Directive "'+t+'" requires a number as a parameter.';n.formatting.scale=s},l=function(t,e,r,s,n){if(1!==r.length||"number"!==r[0].type)return'Directive "'+e+'" requires a number as a parameter.';var a=r[0].intt;return void 0!==s&&a<s?'Directive "'+e+'" requires a number greater than or equal to '+s+" as a parameter.":void 0!==n&&a>n?'Directive "'+e+'" requires a number less than or equal to '+n+" as a parameter.":(i[t]=a,null)},d=function(t,e,r){var s=l(t,e,r,0,1);return null!==s?s:(i[t]=1===i[t],null)},u=function(t,e,r,s){if(1!==r.length)return'Directive "'+e+'" requires one of [ '+s.join(", ")+" ] as a parameter.";for(var n=r[0].token,a=!1,c=0;!a&&c<s.length;c++)s[c]===n&&(a=!0);return a?(i[t]=n,null):'Directive "'+e+'" requires one of [ '+s.join(", ")+" ] as a parameter."},f=["nobarlines","barlines","beataccents","nobeataccents","droneon","droneoff","drumon","drumoff","fermatafixed","fermataproportional","gchordon","gchordoff","controlcombo","temperamentnormal","noportamento"],p=["gchord","ptstress","beatstring"],m=["bassvol","chordvol","c","channel","beatmod","deltaloudness","drumbars","gracedivider","makechordchannels","randomchordattack","chordattack","stressmodel","transpose","rtranspose","volinc"],g=["program"],v=["ratio","snt","bendvelocity","pitchbend","control","temperamentlinear"],b=["beat"],y=["drone"],w=["portamento"],x=["expand","grace","trim"],k=["drum","chordname"];s.parseFontChangeLine=function(t){var e=t.split("$");if(e.length>1&&i.setfont){for(var r=[{text:e[0]}],s=1;s<e.length;s++)"0"===e[s].charAt(0)?r.push({text:e[s].substring(1)}):"1"===e[s].charAt(0)&&i.setfont[1]?r.push({font:i.setfont[1],text:e[s].substring(1)}):"2"===e[s].charAt(0)&&i.setfont[2]?r.push({font:i.setfont[2],text:e[s].substring(1)}):"3"===e[s].charAt(0)&&i.setfont[3]?r.push({font:i.setfont[3],text:e[s].substring(1)}):"4"===e[s].charAt(0)&&i.setfont[4]?r.push({font:i.setfont[4],text:e[s].substring(1)}):r[r.length-1].text+="$"+e[s];if(r.length>1)return r}return t};var A=["auto","above","below","hidden"];s.addDirective=function(a){var T=t.tokenize(a,0,a.length);if(0===T.length||"alpha"!==T[0].type)return null;var S=a.substring(a.indexOf(T[0].token)+T[0].token.length);S=t.stripComment(S);var N=T.shift().token.toLowerCase(),C="";switch(N){case"bagpipes":n.formatting.bagpipes=!0;break;case"flatbeams":n.formatting.flatbeams=!0;break;case"landscape":i.landscape=!0;break;case"papersize":i.papersize=S;break;case"slurgraces":n.formatting.slurgraces=!0;break;case"stretchlast":n.formatting.stretchlast=!0;break;case"titlecaps":i.titlecaps=!0;break;case"titleleft":n.formatting.titleleft=!0;break;case"measurebox":n.formatting.measurebox=!0;break;case"vocal":return u("vocalPosition",N,T,A);case"dynamic":return u("dynamicPosition",N,T,A);case"gchord":return u("chordPosition",N,T,A);case"ornament":return u("ornamentPosition",N,T,A);case"volume":return u("volumePosition",N,T,A);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(e,i){var r=t.getMeasurement(i);return 0===r.used||0!==i.length?'Directive "'+e+'" requires a measurement as a parameter.':(n.formatting[e]=r.value,null)}(N,T);case"voicescale":if(1!==T.length||"number"!==T[0].type)return"voicescale requires one float as a parameter";var _=T.shift();return i.currentVoice&&(i.currentVoice.scale=_.floatt,n.changeVoiceScale(i.currentVoice.scale)),null;case"vskip":var E=function(e,i){var r=t.getMeasurement(i);return 0===r.used||0!==i.length?{error:'Directive "'+e+'" requires a measurement as a parameter.'}:r.value}(N,T);return E.error?E.error:(n.addSpacing(E),null);case"scale":h(N,T);break;case"sep":if(0===T.length)n.addSeparator();else{var M=t.getMeasurement(T);if(0===M.used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var B=M.value;if(0===(M=t.getMeasurement(T)).used)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var P=M.value;if(0===(M=t.getMeasurement(T)).used||0!==T.length)return'Directive "'+N+'" requires 3 numbers: space above, space below, length of line';var L=M.value;n.addSeparator(B,P,L)}break;case"barsperstaff":if(null!==(C=l("barsperstaff",N,T)))return C;break;case"staffnonote":if(1!==T.length)return"Directive staffnonote requires one parameter: 0 or 1";if("0"===T[0].token)i.staffnonote=!0;else{if("1"!==T[0].token)return"Directive staffnonote requires one parameter: 0 or 1 (received "+T[0].token+")";i.staffnonote=!1}break;case"printtempo":if(null!==(C=d("printTempo",N,T)))return C;break;case"partsbox":if(null!==(C=d("partsBox",N,T)))return C;i.partsfont.box=i.partsBox;break;case"measurenb":case"barnumbers":if(null!==(C=l("barNumbers",N,T)))return C;break;case"begintext":i.inTextBlock=!0;break;case"continueall":i.continueall=!0;break;case"beginps":i.inPsBlock=!0,e("Postscript ignored",a,0);break;case"deco":S.length>0&&i.ignoredDecorations.push(S.substring(0,S.indexOf(" "))),e("Decoration redefinition ignored",a,0);break;case"text":var H=t.translateString(S);n.addText(s.parseFontChangeLine(H));break;case"center":var z=t.translateString(S);n.addCentered(s.parseFontChangeLine(z));break;case"font":break;case"setfont":var I=t.tokenize(S,0,S.length);if(I.length>=4&&"-"===I[0].token&&"number"===I[1].type){var O=parseInt(I[1].token);O>=1&&O<=4&&(i.setfont||(i.setfont=[]),I.shift(),I.shift(),i.setfont[O]=c(I,i.setfont[O],a,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 o(N,T,a);case"composerfont":case"subtitlefont":case"tempofont":case"titlefont":case"voicefont":case"footerfont":case"headerfont":return function(t,e,i){return 0===e.length?'Directive "'+t+'" requires a font as a parameter.':(n.formatting[t]=c(e,n.formatting[t],i,0,t),null)}(N,T,a);case"barlabelfont":case"barnumberfont":case"barnumfont":return o("measurefont",T,a);case"staves":case"score":i.score_is_present=!0;for(var D,Y=function(t,e,s,n,a){(e||0===i.staves.length)&&i.staves.push({index:i.staves.length,numVoices:0});var c=r.last(i.staves);void 0!==s&&(c.bracket=s),void 0!==n&&(c.brace=n),a&&(c.connectBarLines="end"),void 0===i.voices[t]&&(i.voices[t]={staffNum:c.index,index:c.numVoices},c.numVoices++)},F=!1,W=!1,V=!1,R=!1,G=!1,q=!1,j=!1,X=function(){if(j=!0,D){var t="start";D.staffNum>0&&("start"!==i.staves[D.staffNum-1].connectBarLines&&"continue"!==i.staves[D.staffNum-1].connectBarLines||(t="continue")),i.staves[D.staffNum].connectBarLines=t}};T.length;){var U=T.shift();switch(U.token){case"(":F?e("Can't nest parenthesis in %%score",a,U.start):(F=!0,R=!0);break;case")":!F||R?e("Unexpected close parenthesis in %%score",a,U.start):F=!1;break;case"[":W?e("Can't nest brackets in %%score",a,U.start):(W=!0,G=!0);break;case"]":!W||G?e("Unexpected close bracket in %%score",a,U.start):(W=!1,i.staves[D.staffNum].bracket="end");break;case"{":V?e("Can't nest braces in %%score",a,U.start):(V=!0,q=!0);break;case"}":!V||q?e("Unexpected close brace in %%score",a,U.start):(V=!1,i.staves[D.staffNum].brace="end");break;case"|":X();break;default:for(var K="";("alpha"===U.type||"number"===U.type)&&(K+=U.token,U.continueId);)U=T.shift();Y(K,!F||R,G?"start":W?"continue":void 0,q?"start":V?"continue":void 0,j),R=!1,G=!1,q=!1,j=!1,D=i.voices[K],"staves"===N&&X()}}break;case"newpage":var Q=t.getInt(S);n.addNewPage(0===Q.digits?-1:Q.value);break;case"abc":var Z=S.split(" ");switch(Z[0]){case"-copyright":case"-creator":case"-edited-by":case"-version":case"-charset":var $=Z.shift();n.addMetaText(N+$,Z.join(" "));break;default:return"Unknown directive: "+N+Z[0]}break;case"header":case"footer":var J=t.getMeat(S,0,S.length);'"'===(J=S.substring(J.start,J.end)).charAt(0)&&'"'===J.charAt(J.length-1)&&(J=J.substring(1,J.length-1));var tt=J.split("\t"),et={};et=1===tt.length?{left:"",center:tt[0],right:""}:2===tt.length?{left:tt[0],center:tt[1],right:""}:{left:tt[0],center:tt[1],right:tt[2]},tt.length>3&&e("Too many tabs in "+N+": "+tt.length+" found.",S,0),n.addMetaTextObj(N,et);break;case"midi":var it=t.tokenize(S,0,S.length,!0);it.length>0&&"="===it[0].token&&it.shift(),0===it.length?e("Expected midi command",S,0):function(t,i,r){var s=t.shift().token,n=[];if(f.indexOf(s)>=0)0!==t.length&&e("Unexpected parameter in MIDI "+s,r,0);else if(p.indexOf(s)>=0)1!==t.length?e("Expected one parameter in MIDI "+s,r,0):n.push(t[0].token);else if(m.indexOf(s)>=0)1!==t.length?e("Expected one parameter in MIDI "+s,r,0):"number"!==t[0].type?e("Expected one integer parameter in MIDI "+s,r,0):n.push(t[0].intt);else if(g.indexOf(s)>=0)1!==t.length&&2!==t.length?e("Expected one or two parameters in MIDI "+s,r,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+s,r,0):2===t.length&&"number"!==t[1].type?e("Expected integer parameter in MIDI "+s,r,0):(n.push(t[0].intt),2===t.length&&n.push(t[1].intt));else if(v.indexOf(s)>=0)2!==t.length?e("Expected two parameters in MIDI "+s,r,0):"number"!==t[0].type||"number"!==t[1].type?e("Expected two integer parameters in MIDI "+s,r,0):(n.push(t[0].intt),n.push(t[1].intt));else if(w.indexOf(s)>=0)2!==t.length?e("Expected two parameters in MIDI "+s,r,0):"alpha"!==t[0].type||"number"!==t[1].type?e("Expected one string and one integer parameters in MIDI "+s,r,0):(n.push(t[0].token),n.push(t[1].intt));else if("drummap"===s)2===t.length&&"alpha"===t[0].type&&"number"===t[1].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token]=t[1].intt,n=i.formatting.midi.drummap):3===t.length&&"punct"===t[0].type&&"alpha"===t[1].type&&"number"===t[2].type?(i.formatting||(i.formatting={}),i.formatting.midi||(i.formatting.midi={}),i.formatting.midi.drummap||(i.formatting.midi.drummap={}),i.formatting.midi.drummap[t[0].token+t[1].token]=t[2].intt,n=i.formatting.midi.drummap):e("Expected one note name and one integer parameter in MIDI "+s,r,0);else if(x.indexOf(s)>=0)3!==t.length?e("Expected fraction parameter in MIDI "+s,r,0):"number"!==t[0].type||"/"!==t[1].token||"number"!==t[2].type?e("Expected fraction parameter in MIDI "+s,r,0):(n.push(t[0].intt),n.push(t[2].intt));else if(b.indexOf(s)>=0)4!==t.length?e("Expected four parameters in MIDI "+s,r,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type?e("Expected four integer parameters in MIDI "+s,r,0):(n.push(t[0].intt),n.push(t[1].intt),n.push(t[2].intt),n.push(t[3].intt));else if(y.indexOf(s)>=0)5!==t.length?e("Expected five parameters in MIDI "+s,r,0):"number"!==t[0].type||"number"!==t[1].type||"number"!==t[2].type||"number"!==t[3].type||"number"!==t[4].type?e("Expected five integer parameters in MIDI "+s,r,0):(n.push(t[0].intt),n.push(t[1].intt),n.push(t[2].intt),n.push(t[3].intt),n.push(t[4].intt));else if(g.indexOf(s)>=0)1!==t.length||4!==t.length?e("Expected one or two parameters in MIDI "+s,r,0):"number"!==t[0].type?e("Expected integer parameter in MIDI "+s,r,0):4===t.length?("octave"!==t[1].token&&e("Expected octave parameter in MIDI "+s,r,0),"="!==t[2].token&&e("Expected octave parameter in MIDI "+s,r,0),"number"!==t[3].type&&e("Expected integer parameter for octave in MIDI "+s,r,0)):(n.push(t[0].intt),4===t.length&&n.push(t[3].intt));else if(k.indexOf(s)>=0)if(t.length<2)e("Expected string parameter and at least one integer parameter in MIDI "+s,r,0);else if("alpha"!==t[0].type)e("Expected string parameter and at least one integer parameter in MIDI "+s,r,0);else{var a=t.shift();for(n.push(a.token);t.length>0;)"number"!==(a=t.shift()).type&&e("Expected integer parameter in MIDI "+s,r,0),n.push(a.intt)}i.hasBeginMusic()?i.appendElement("midi",-1,-1,{cmd:s,params:n}):(void 0===i.formatting.midi&&(i.formatting.midi={}),i.formatting.midi[s]=n)}(it,n,S);break;case"map":case"percmap":case"playtempo":case"auquality":case"continuous":case"nobarcheck":n.formatting[N]=S;break;default:return"Unknown directive: "+N}return null},s.globalFormatting=function(r){for(var s in r)if(r.hasOwnProperty(s)){var n,a=""+r[s],c=t.tokenize(a,0,a.length);switch(s){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":o(s,c,a);break;case"scale":h(s,c);break;case"partsbox":null!==(n=d("partsBox",s,c))&&e(n),i.partsfont.box=i.partsBox;break;default:e("Formatting directive unrecognized: ",s,0)}}}}(),t.exports=s},function(t,e,i){"use strict";var r=i(0),s=i(8),n=i(11),a={};!function(){var t,e,i,c;a.initialize=function(r,s,n,a){t=r,e=s,i=n,c=a},a.standardKey=function(t,e,r,s){var a={acc:"sharp",note:"f"},c={acc:"sharp",note:"c"},o={acc:"sharp",note:"g"},h={acc:"sharp",note:"d"},l={acc:"sharp",note:"A"},d={acc:"sharp",note:"e"},u={acc:"sharp",note:"B"},f={acc:"flat",note:"B"},p={acc:"flat",note:"e"},m={acc:"flat",note:"A"},g={acc:"flat",note:"d"},v={acc:"flat",note:"G"},b={acc:"flat",note:"c"},y={acc:"flat",note:"F"},w={"C#":[a,c,o,h,l,d,u],"A#m":[a,c,o,h,l,d,u],"G#Mix":[a,c,o,h,l,d,u],"D#Dor":[a,c,o,h,l,d,u],"E#Phr":[a,c,o,h,l,d,u],"F#Lyd":[a,c,o,h,l,d,u],"B#Loc":[a,c,o,h,l,d,u],"F#":[a,c,o,h,l,d],"D#m":[a,c,o,h,l,d],"C#Mix":[a,c,o,h,l,d],"G#Dor":[a,c,o,h,l,d],"A#Phr":[a,c,o,h,l,d],BLyd:[a,c,o,h,l,d],"E#Loc":[a,c,o,h,l,d],B:[a,c,o,h,l],"G#m":[a,c,o,h,l],"F#Mix":[a,c,o,h,l],"C#Dor":[a,c,o,h,l],"D#Phr":[a,c,o,h,l],ELyd:[a,c,o,h,l],"A#Loc":[a,c,o,h,l],E:[a,c,o,h],"C#m":[a,c,o,h],BMix:[a,c,o,h],"F#Dor":[a,c,o,h],"G#Phr":[a,c,o,h],ALyd:[a,c,o,h],"D#Loc":[a,c,o,h],A:[a,c,o],"F#m":[a,c,o],EMix:[a,c,o],BDor:[a,c,o],"C#Phr":[a,c,o],DLyd:[a,c,o],"G#Loc":[a,c,o],D:[a,c],Bm:[a,c],AMix:[a,c],EDor:[a,c],"F#Phr":[a,c],GLyd:[a,c],"C#Loc":[a,c],G:[a],Em:[a],DMix:[a],ADor:[a],BPhr:[a],CLyd:[a],"F#Loc":[a],C:[],Am:[],GMix:[],DDor:[],EPhr:[],FLyd:[],BLoc:[],F:[f],Dm:[f],CMix:[f],GDor:[f],APhr:[f],BbLyd:[f],ELoc:[f],Bb:[f,p],Gm:[f,p],FMix:[f,p],CDor:[f,p],DPhr:[f,p],EbLyd:[f,p],ALoc:[f,p],Eb:[f,p,m],Cm:[f,p,m],BbMix:[f,p,m],FDor:[f,p,m],GPhr:[f,p,m],AbLyd:[f,p,m],DLoc:[f,p,m],Ab:[f,p,m,g],Fm:[f,p,m,g],EbMix:[f,p,m,g],BbDor:[f,p,m,g],CPhr:[f,p,m,g],DbLyd:[f,p,m,g],GLoc:[f,p,m,g],Db:[f,p,m,g,v],Bbm:[f,p,m,g,v],AbMix:[f,p,m,g,v],EbDor:[f,p,m,g,v],FPhr:[f,p,m,g,v],GbLyd:[f,p,m,g,v],CLoc:[f,p,m,g,v],Gb:[f,p,m,g,v,b],Ebm:[f,p,m,g,v,b],DbMix:[f,p,m,g,v,b],AbDor:[f,p,m,g,v,b],BbPhr:[f,p,m,g,v,b],CbLyd:[f,p,m,g,v,b],FLoc:[f,p,m,g,v,b],Cb:[f,p,m,g,v,b,y],Abm:[f,p,m,g,v,b,y],GbMix:[f,p,m,g,v,b,y],DbDor:[f,p,m,g,v,b,y],EbPhr:[f,p,m,g,v,b,y],FbLyd:[f,p,m,g,v,b,y],BbLoc:[f,p,m,g,v,b,y],"A#":[f,p],"B#":[],"D#":[f,p,m],"E#":[f],"G#":[f,p,m,g],Gbm:[a,c,o,h,l,d,u]};return n.keySignature(i,w,t,e,r,s)};var o={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}},h=function(t,e){var i=o[t];return(i?i.mid:0)+e};a.fixClef=function(t){var e=o[t.type];e&&(t.clefPos=e.pitch,t.type=e.clef)},a.deepCopyKey=function(t){var e={accidentals:[],root:t.root,acc:t.acc,mode:t.mode};return r.each(t.accidentals,function(t){e.accidentals.push(r.clone(t))}),e};var l={A:5,B:6,C:0,D:1,E:2,F:3,G:4,a:12,b:13,c:7,d:8,e:9,f:10,g:11};a.addPosToKey=function(t,e){var i=t.verticalPos;r.each(e.accidentals,function(t){var e=l[t.note];e-=i,t.verticalPos=e}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){var e=l[t.note];e-=i,t.verticalPos=e}),i<-10?(r.each(e.accidentals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos-=7,(t.verticalPos>=11||10===t.verticalPos&&"flat"===t.acc)&&(t.verticalPos-=7),"A"===t.note&&"sharp"===t.acc&&(t.verticalPos-=7),"G"!==t.note&&"F"!==t.note||"flat"!==t.acc||(t.verticalPos-=7)})):i<-4?(r.each(e.accidentals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos-=7,-8!==i||"f"!==t.note&&"g"!==t.note||"sharp"!==t.acc||(t.verticalPos-=7)})):i>=7&&(r.each(e.accidentals,function(t){t.verticalPos+=7}),e.impliedNaturals&&r.each(e.impliedNaturals,function(t){t.verticalPos+=7}))},a.fixKey=function(t,e){var i=r.clone(e);return a.addPosToKey(t,i),i};var d=function(t){var e=0,i=t.charAt(e++);"^"!==i&&"_"!==i||(i=t.charAt(e++));var r=l[i];for(void 0===r&&(r=6);e<t.length;e++)if(","===t.charAt(e))r-=7;else{if("'"!==t.charAt(e))break;r+=7}return{mid:r-6,str:t.substring(e)}};a.parseKey=function(r){0===r.length&&(r="none");var n=t.tokenize(r,0,r.length),c={};switch(n[0].token){case"HP":s.addDirective("bagpipes"),i.key={root:"HP",accidentals:[],acc:"",mode:""},c.foundKey=!0,n.shift();break;case"Hp":s.addDirective("bagpipes"),i.key={root:"Hp",accidentals:[{acc:"natural",note:"g"},{acc:"sharp",note:"f"},{acc:"sharp",note:"c"}],acc:"",mode:""},c.foundKey=!0,n.shift();break;case"none":i.key={root:"none",accidentals:[],acc:"",mode:""},c.foundKey=!0,n.shift();break;default:var o=t.getKeyPitch(n[0].token);if(o.len>0){c.foundKey=!0;var l="",d="";n[0].token.length>1?n[0].token=n[0].token.substring(1):n.shift();var u=o.token;if(n.length>0){var f=t.getSharpFlat(n[0].token);if(f.len>0&&(n[0].token.length>1?n[0].token=n[0].token.substring(1):n.shift(),u+=f.token,l=f.token),n.length>0){var p=t.getMode(n[0].token);p.len>0&&(n.shift(),u+=p.token,d=p.token)}if(void 0===a.standardKey(u,o.token,l,0))return e("Unsupported key signature: "+u,r,0),c}var m=a.deepCopyKey(i.key),g=i.globalTranspose?-i.globalTranspose:0;if(i.key=a.deepCopyKey(a.standardKey(u,o.token,l,g)),i.key.mode=d,m){for(var v,b=0;b<i.key.accidentals.length;b++)for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&i.key.accidentals[b].note.toLowerCase()===m.accidentals[v].note.toLowerCase()&&(m.accidentals[v].note=null);for(v=0;v<m.accidentals.length;v++)m.accidentals[v].note&&(i.key.impliedNaturals||(i.key.impliedNaturals=[]),i.key.impliedNaturals.push({acc:"natural",note:m.accidentals[v].note}))}}}if(0===n.length)return c;if("exp"===n[0].token&&n.shift(),0===n.length)return c;if("oct"===n[0].token&&n.shift(),0===n.length)return c;var y,w=t.getKeyAccidentals2(n);if(w.warn&&e(w.warn,r,0),w.accs){c.foundKey||(c.foundKey=!0,i.key={root:"none",acc:"",mode:"",accidentals:[]}),function(t){for(var e=0;e<t.length;e++)"b"===t[e].note?t[e].note="B":"a"===t[e].note?t[e].note="A":"F"===t[e].note?t[e].note="f":"E"===t[e].note?t[e].note="e":"D"===t[e].note?t[e].note="d":"C"===t[e].note?t[e].note="c":"G"===t[e].note&&"sharp"===t[e].acc?t[e].note="g":"g"===t[e].note&&"flat"===t[e].acc&&(t[e].note="G")}(w.accs);for(var x=0;x<w.accs.length;x++){for(var k=!1,A=0;A<i.key.accidentals.length&&!k;A++)i.key.accidentals[A].note===w.accs[x].note&&(k=!0,i.key.accidentals[A].acc!==w.accs[x].acc&&(i.key.accidentals[A].acc=w.accs[x].acc,i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x])));if(!k&&(i.key.explicitAccidentals||(i.key.explicitAccidentals=[]),i.key.explicitAccidentals.push(w.accs[x]),i.key.accidentals.push(w.accs[x]),i.key.impliedNaturals))for(var T=0;T<i.key.impliedNaturals.length;T++)i.key.impliedNaturals[T].note===w.accs[x].note&&i.key.impliedNaturals.splice(T,1)}}for(;n.length>0;)switch(n[0].token){case"m":case"middle":if(n.shift(),0===n.length)return e("Expected = after middle",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after middle",r,y.start);break}if(0===n.length)return e("Expected parameter after middle=",r,0),c;var S=t.getPitchFromTokens(n);S.warn&&e(S.warn,r,0),S.position&&(i.clef.verticalPos=S.position-6);break;case"transpose":if(n.shift(),0===n.length)return e("Expected = after transpose",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after transpose",r,y.start);break}if(0===n.length)return e("Expected parameter after transpose=",r,0),c;if("number"!==n[0].type){e("Expected number after transpose",r,n[0].start);break}i.clef.transpose=n[0].intt,n.shift();break;case"stafflines":if(n.shift(),0===n.length)return e("Expected = after stafflines",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after stafflines",r,y.start);break}if(0===n.length)return e("Expected parameter after stafflines=",r,0),c;if("number"!==n[0].type){e("Expected number after stafflines",r,n[0].start);break}i.clef.stafflines=n[0].intt,n.shift();break;case"staffscale":if(n.shift(),0===n.length)return e("Expected = after staffscale",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after staffscale",r,y.start);break}if(0===n.length)return e("Expected parameter after staffscale=",r,0),c;if("number"!==n[0].type){e("Expected number after staffscale",r,n[0].start);break}i.clef.staffscale=n[0].floatt,n.shift();break;case"style":if(n.shift(),0===n.length)return e("Expected = after style",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after style",r,y.start);break}if(0===n.length)return e("Expected parameter after style=",r,0),c;switch(n[0].token){case"normal":case"harmonic":case"rhythm":case"x":i.style=n[0].token,n.shift();break;default:e("error parsing style element: "+n[0].token,r,n[0].start)}break;case"clef":if(n.shift(),0===n.length)return e("Expected = after clef",r,0),c;if("="!==(y=n.shift()).token){e("Expected = after clef",r,y.start);break}if(0===n.length)return e("Expected parameter after clef=",r,0),c;case"treble":case"bass":case"alto":case"tenor":case"perc":var N=n.shift();switch(N.token){case"treble":case"tenor":case"alto":case"bass":case"perc":case"none":break;case"C":N.token="alto";break;case"F":N.token="bass";break;case"G":N.token="treble";break;case"c":N.token="alto";break;case"f":N.token="bass";break;case"g":N.token="treble";break;default:e("Expected clef name. Found "+N.token,r,N.start)}n.length>0&&"number"===n[0].type&&(N.token+=n[0].token,n.shift()),n.length>1&&("-"===n[0].token||"+"===n[0].token||"^"===n[0].token||"_"===n[0].token)&&"8"===n[1].token&&(N.token+=n[0].token+n[1].token,n.shift(),n.shift()),i.clef={type:N.token,verticalPos:h(N.token,0)},i.currentVoice&&void 0!==i.currentVoice.transpose&&(i.clef.transpose=i.currentVoice.transpose),c.foundClef=!0;break;default:e("Unknown parameter: "+n[0].token,r,n[0].start),n.shift()}return c};a.parseVoice=function(r,s,n){var a=t.getMeat(r,s,n),o=a.start,l=a.end,u=t.getToken(r,o,l);if(0!==u.length){var f=!1;void 0===i.voices[u]&&(i.voices[u]={},f=!0,i.score_is_present&&e("Can't have an unknown V: id when the %score directive is present",r,o)),o+=u.length,o+=t.eatWhiteSpace(r,o);for(var p={startStaff:f},m=function(i){var s=t.getVoiceToken(r,o,l);void 0!==s.warn?e("Expected value for "+i+" in voice: "+s.warn,r,o):0===s.token.length&&'"'!==r.charAt(o)?e("Expected value for "+i+" in voice",r,o):p[i]=s.token,o+=s.len},g=function(s,n,a){var c=t.getVoiceToken(r,o,l);void 0!==c.warn?e("Expected value for "+n+" in voice: "+c.warn,r,o):0===c.token.length&&'"'!==r.charAt(o)?e("Expected value for "+n+" in voice",r,o):("number"===a&&(c.token=parseFloat(c.token)),i.voices[s][n]=c.token),o+=c.len},v=function(i,s){var n=t.getVoiceToken(r,o,l);if(void 0!==n.warn)e("Expected value for "+i+" in voice: "+n.warn,r,o);else{if(0!==n.token.length||'"'===r.charAt(o))return"number"===s&&(n.token=parseFloat(n.token)),n.token;e("Expected value for "+i+" in voice",r,o)}o+=n.len},b=function(s,n){var a=t.getVoiceToken(r,o,l);if(void 0!==a.warn)e("Expected one of (_B, _E, _b, _e) for "+n+" in voice: "+a.warn,r,o);else if(0===a.token.length&&'"'!==r.charAt(o))e("Expected one of (_B, _E, _b, _e) for "+n+" in voice",r,o);else{var c={_B:2,_E:9,_b:-10,_e:-3}[a.token];c?i.voices[s][n]=c:e("Expected one of (_B, _E, _b, _e) for "+n+" in voice",r,o)}o+=a.len};o<l;){var y=t.getVoiceToken(r,o,l);if(o+=y.len,y.warn)e("Error parsing voice: "+y.warn,r,o);else{var w=null;switch(y.token){case"clef":case"cl":m("clef");var x=0;void 0!==p.clef&&(p.clef=p.clef.replace(/[',]/g,""),-1!==p.clef.indexOf("+16")&&(x+=14,p.clef=p.clef.replace("+16","")),p.verticalPos=h(p.clef,x));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=h(p.clef,0),i.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!==(w=t.getVoiceToken(r,o,l)).warn?e("Expected value for stems in voice: "+w.warn,r,o):"up"===w.token||"down"===w.token?i.voices[u].stem=w.token:e("Expected up or down for voice stem",r,o),o+=w.len;break;case"up":case"down":i.voices[u].stem=y.token;break;case"middle":case"m":m("verticalPos"),p.verticalPos=d(p.verticalPos).mid;break;case"gchords":case"gch":i.voices[u].suppressChords=!0,"0"===(w=t.getVoiceToken(r,o,l)).token&&(o+=w.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");i.voices[u].scale="on"===k?.6:1;break;case"style":void 0!==(w=t.getVoiceToken(r,o,l)).warn?e("Expected value for style in voice: "+w.warn,r,o):"normal"===w.token||"harmonic"===w.token||"rhythm"===w.token||"x"===w.token?i.voices[u].style=w.token:e("Expected one of [normal, harmonic, rhythm, x] for voice style",r,o),o+=w.len}}o+=t.eatWhiteSpace(r,o)}if((p.startStaff||0===i.staves.length)&&(i.staves.push({index:i.staves.length,meter:i.origMeter}),i.score_is_present||(i.staves[i.staves.length-1].numVoices=0)),void 0===i.voices[u].staffNum){i.voices[u].staffNum=i.staves.length-1;var A=0;for(var T in i.voices)i.voices.hasOwnProperty(T)&&i.voices[T].staffNum===i.voices[u].staffNum&&A++;i.voices[u].index=A-1}var S=i.staves[i.voices[u].staffNum];i.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(t){i.currentVoice=i.voices[t],c.setCurrentVoice(i.currentVoice.staffNum,i.currentVoice.index)}(u)}else e("Expected a voice id",r,o)}}(),t.exports=a},function(t,e,i){"use strict";function r(t,e){for(var i=[],r=null,s=0;s<t.length;s++){var n=t[s];n.top!==r&&(i.push({milliseconds:n.milliseconds-e,top:n.top,bottom:n.top+n.height}),r=n.top)}return i}t.exports=function(t,e){var i=this;if(e||(e={}),i.qpm=e.qpm,!i.qpm){var s=t.metaText?t.metaText.tempo:null;i.qpm=t.getBpm(s)}i.extraMeasuresAtBeginning=e.extraMeasuresAtBeginning?e.extraMeasuresAtBeginning:0,i.beatCallback=e.beatCallback,i.eventCallback=e.eventCallback,i.lineEndCallback=e.lineEndCallback,i.lineEndAnticipation=e.lineEndAnticipation?e.lineEndAnticipation:0,i.replaceTarget=function(t){t.setTiming(i.qpm,i.extraMeasuresAtBeginning),0!==t.noteTimings.length&&(i.lineEndCallback&&(i.lineEndTimings=r(t.noteTimings,i.lineEndAnticipation)),i.noteTimings=t.noteTimings)},i.replaceTarget(t),0!==i.noteTimings.length&&(i.noteTimings=t.noteTimings,i.millisecondsPerBeat=1e3/(i.qpm/60),i.lastMoment=i.noteTimings[i.noteTimings.length-1].milliseconds,i.startTime=null,i.currentBeat=0,i.currentEvent=0,i.isPaused=!1,i.pausedTime=null,i.justUnpaused=!1,i.doTiming=function(t){if(i.startTime){if(i.justUnpaused){var e=t-i.pausedTime;i.startTime+=e}}else i.startTime=t;if(i.justUnpaused=!1,i.isPaused)i.pausedTime=t;else{var r=t-i.startTime;for((r+=50)<i.lastMoment&&requestAnimationFrame(i.doTiming),i.currentBeat*i.millisecondsPerBeat<r&&(i.beatCallback&&i.beatCallback(i.currentBeat),i.currentBeat++);i.noteTimings.length>i.currentEvent&&i.noteTimings[i.currentEvent].milliseconds<r;)i.eventCallback&&"event"===i.noteTimings[i.currentEvent].type&&i.eventCallback(i.noteTimings[i.currentEvent]),i.currentEvent++;i.lineEndCallback&&i.lineEndTimings.length&&i.lineEndTimings[0].milliseconds<=r&&(i.lineEndCallback(i.lineEndTimings[0]),i.lineEndTimings.shift()),r>=i.lastMoment&&i.eventCallback&&i.eventCallback(null)}},i.start=function(){i.isPaused&&(i.isPaused=!1,i.justUnpaused=!0),requestAnimationFrame(i.doTiming)},i.pause=function(){i.isPaused=!0},i.reset=function(){i.currentBeat=0,i.currentEvent=0,i.startTime=null,i.pausedTime=null,i.lineEndCallback&&(i.lineEndTimings=r(i.noteTimings,i.lineEndAnticipation))},i.stop=function(){i.pause(),i.reset()})}},function(t,e,i){"use strict";var r={},s={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},n=["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"],a=["C","C#","D","D#","E","F","F#","G","G#","A","Bb","B"];r.keySignature=function(t,e,i,r,c,o){o||(o=0),t.localTransposeVerticalMovement=0,t.localTransposePreferFlats=!1;var h=e[i];if(!h)return t.key;if(t.localTranspose=(t.globalTranspose?t.globalTranspose:0)+o,!t.localTranspose)return{accidentals:h,root:r,acc:c};if(t.globalTransposeOrigKeySig=h,t.localTranspose%12==0)return t.localTransposeVerticalMovement=t.localTranspose/12*7,{accidentals:h,root:r,acc:c};var l=i[0];"b"===i[1]||"#"===i[1]?(l+=i[1],i=i.substr(2)):i=i.substr(1);for(var d=s[l]+t.localTranspose;d<0;)d+=12;d>11&&(d%=12);var u="m"===i[0]?a[d]:n[d],f=u+i,p=e[f];p.length>0&&"flat"===p[0].acc&&(t.localTransposePreferFlats=!0);var m=f.charCodeAt(0)-l.charCodeAt(0);return t.localTranspose>0?m<0?m+=7:0===m&&("#"!==l[1]&&"b"!==f[1]||(m+=7)):t.localTranspose<0&&(m>0?m-=7:0===m&&("b"!==l[1]&&"#"!==f[1]||(m-=7))),t.localTranspose>0?t.localTransposeVerticalMovement=m+7*Math.floor(t.localTranspose/12):t.localTransposeVerticalMovement=m+7*Math.ceil(t.localTranspose/12),{accidentals:p,root:u[0],acc:u.length>1?u[1]:""}};var c=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],o=["C","D♭","D","E♭","E","F","G♭","G","A♭","A","B♭","B"];r.chordName=function(t,e){if(t.localTranspose&&t.localTranspose%12!=0){for(var i=t.localTranspose;i<0;)i+=12;i>11&&(i%=12);for(var r=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/C♭/g,"`~11`")).replace(/D♭/g,"`~1`")).replace(/E♭/g,"`~3`")).replace(/F♭/g,"`~4`")).replace(/G♭/g,"`~6`")).replace(/A♭/g,"`~8`")).replace(/B♭/g,"`~10`")).replace(/C♯/g,"`~1`")).replace(/D♯/g,"`~3`")).replace(/E♯/g,"`~5`")).replace(/F♯/g,"`~6`")).replace(/G♯/g,"`~8`")).replace(/A♯/g,"`~10`")).replace(/B♯/g,"`~0`")).replace(/C/g,"`~0`")).replace(/D/g,"`~2`")).replace(/E/g,"`~4`")).replace(/F/g,"`~5`")).replace(/G/g,"`~7`")).replace(/A/g,"`~9`")).replace(/B/g,"`~11`")).split("`"),s=0;s<r.length;s++)if("~"===r[s][0]){var n=parseInt(r[s].substr(1),10);(n+=i)>11&&(n-=12),r[s]=t.localTransposePreferFlats?o[n]:c[n]}e=r.join("")}return e};var h=["c","d","e","f","g","a","b"];var l={dblflat:-2,flat:-1,natural:0,sharp:1,dblsharp:2},d={"-2":"dblflat","-1":"flat",0:"natural",1:"sharp",2:"dblsharp"};r.note=function(t,e){if(t.localTranspose){var i=e.pitch;if(e.pitch=e.pitch+t.localTransposeVerticalMovement,e.accidental){var r=function(t,e,i,r,s){for(var n=h[(t+49)%7],a=0,c=0;c<r.length;c++)r[c].note.toLowerCase()===n&&(a=l[r[c].acc]);for(var o=l[i]-a,d=h[(e+49)%7],u=0,f=0;f<s.accidentals.length;f++)s.accidentals[f].note.toLowerCase()===d&&(u=l[s.accidentals[f].acc]);var p=o+u;return p<-2&&(e--,p+="c"===d||"f"===d?1:2),p>2&&(e++,p-="b"===d||"e"===d?1:2),[e,p]}(i,e.pitch,e.accidental,t.globalTransposeOrigKeySig,t.targetKey);e.pitch=r[0],e.accidental=d[r[1]]}}},t.exports=r},function(t,e,i){"use strict";function r(t,e){for(var i=e.length+1,r=t.total/i,n=0,a=0,c=0;c<=e.length;c++){var o=c===e.length?t.measureWidths.length-1:e[c],h=s(t.measureWidths,a,o,r);a=o+1,n=Math.max(n,h)}return n}function s(t,e,i,r){var s=function(t,e,i){for(var r=0,s=e;s<=i;s++)r+=t[s];return r}(t,e,i);return Math.abs(r-s)}function n(t,e,i,n){var a=t.total/(i.length+1),c=r(t,i);if(0===i.length)return{failed:!0,reason:"Only one line."};var o=i[i.length-1]+1;if(c>s(t.measureWidths,o,t.measureWidths.length,a))return{failed:!0,reason:"Last line is not too short."};for(var h=function(t,e,i,r){for(var s=0,n=[],a=t.length-1;a>=0&&!((s+=t[a])>r);a--)s>i&&a<e&&n.push(a-1);return n}(t.measureWidths,o,a-c,a+c),l=function t(e,i,r,s,n,a){for(var c=0,o=[],h=i;h<e.length&&c<n&&!((c+=e[h])>n);h++)if(c>s){if(r>0&&o.length<1200)for(var l=t(e,h+1,r-1,s,n,a),d=0;d<l.length;d++)o.push([h].concat(l[d]));1===r&&a.indexOf(h)>=0&&o.push([h])}return o}(t.measureWidths,0,i.length,a-c,a+c,h),d=!0,u=0;u<l.length;u++){var f=r(t,l[u]);f<c&&(n.attempts.push({type:"Optimize try",lineBreaks:l[u],variance:Math.round(c),newVariance:Math.round(f),totalAttempts:l.length}),c=f,i=l[u],d=!1)}if(d&&(n.attempts.push({type:"Optimize try",lineBreaks:i,variance:c,reason:"None of the "+l.length+" attempts were better."}),i.length>0)){var p=[].concat(i);p[p.length-1]--,f=r(t,p),n.attempts.push({type:"Optimize last try",lineBreaks:l[u],variance:Math.round(c),newVariance:Math.round(f),totalAttempts:l.length}),f<c&&(c=f,i=p,d=!1)}return{failed:d,lineBreaks:i,variance:c}}function a(t,e,i,r,s){var n=new s,a={lineBreaks:t,staffwidth:e};for(var c in r)r.hasOwnProperty(c)&&"wrap"!==c&&"staffwidth"!==c&&(a[c]=r[c]);return n.parse(i,a),{tune:n.getTune(),revisedParams:a}}t.exports={wrapLines:function(t,e){if(e&&0!==t.lines.length){for(var i=[],r=[],s=[],n=[],a=[],c="",o=0;o<t.lines.length;o++){var h=t.lines[o];if(h.staff)for(var l=h.staff,d=0;d<l.length;d++){void 0===r[d]&&(r[d]=[],s[d]=[],n[d]=[],a[d]=[]);for(var u=l[d],f=u.voices,p=0;p<f.length;p++){void 0===r[d][p]&&(r[d][p]=!0,s[d][p]=0,n[d][p]=0,a[d][p]=0);for(var m=f[p],g=0;g<m.length;g++){if(r[d][p]){if(i[s[d][p]]||(i[s[d][p]]={staff:[]}),!i[s[d][p]].staff[d])for(var v in i[s[d][p]].staff[d]={voices:[]},u)u.hasOwnProperty(v)&&("meter"===v?1!==i.length&&c===JSON.stringify(u[v])||(c=JSON.stringify(u[v]),i[s[d][p]].staff[d][v]=u[v]):"voices"!==v&&(i[s[d][p]].staff[d][v]=u[v]));a[d][p]&&(i[s[d][p]].staff[d].barNumber=a[d][p]),r[d][p]=!1}var b=m[g];i[s[d][p]].staff[d].voices[p]||(i[s[d][p]].staff[d].voices[p]=[]),i[s[d][p]].staff[d].voices[p].push(b),"bar"===b.el_type&&(n[d][p]++,e[n[d][p]]&&(r[d][p]=!0,s[d][p]++,a[d][p]=b.barNumber,delete b.barNumber))}}}else i.push(h),s++}t.lines=i}},calcLineWraps:function(t,e,i,r,s,c){var o=r.scale?Math.max(r.scale,.1):1,h=r.wrap.minSpacing?Math.max(parseFloat(r.wrap.minSpacing),1):1,l=r.wrap.minSpacingLimit?Math.max(parseFloat(r.wrap.minSpacingLimit),1):h-.1,d=r.wrap.maxSpacing?Math.max(parseFloat(r.wrap.maxSpacing),1):void 0;r.wrap.lastLineLimit&&!d&&(d=Math.max(parseFloat(r.wrap.lastLineLimit),1)),r.wrap.targetHeight&&Math.max(parseInt(r.wrap.targetHeight,10),100);var u=r.wrap.preferredMeasuresPerLine?Math.max(parseInt(r.wrap.preferredMeasuresPerLine,10),1):void 0,f=(r.staffwidth-e.left)/h/o,p=(r.staffwidth-e.left)/d/o,m=(r.staffwidth-e.left)/l/o,g={widths:e,lineBreakPoint:f,minLineSize:p,attempts:[],staffWidth:r.staffwidth,minWidth:Math.round(m)},v=null;if(u){var b=function(t,e,i){for(var r=[],s=[],n=0,a=!1,c=0;c<t.length;c++)n+=t[c],c%i==i-1&&(n>e&&(a=!0),c!==t.length-1&&r.push(c),s.push(Math.round(n)),n=0);return{failed:a,totals:s,lineBreaks:r}}(e.measureWidths,f,u);g.attempts.push({type:"Fixed Measures Per Line",preferredMeasuresPerLine:u,lineBreaks:b.lineBreaks,failed:b.failed,totals:b.totals}),b.failed||(v=b.lineBreaks)}if(!v){var y=function(t,e){for(var i=[],r=[],s=0,n=0;n<t.length;n++){var a=t[n],c=s+a;c<e?s=c:e-s<c-e&&s>0?(i.push(n-1),r.push(Math.round(s-a)),s=a):n<t.length-1&&(i.push(n),r.push(Math.round(s)),s=0)}return r.push(Math.round(s)),{lineBreaks:i,totals:r}}(e.measureWidths,f);g.attempts.push({type:"Free Form",lineBreaks:y.lineBreaks,totals:y.totals}),y=n(e,0,v=y.lineBreaks,g),g.attempts.push({type:"Optimize",failed:y.failed,reason:y.reason,lineBreaks:y.lineBreaks,totals:y.totals}),y.failed||(v=y.lineBreaks)}var w=r.staffwidth,x=a(v,w,i,r,s),k=c.getMeasureWidths(x.tune),A=!0;return g.attempts.push({type:"heightCheck",height:k.height}),0===v.length&&p>e.total&&(w=e.total*d*o+e.left,g.attempts.push({type:"too sparse",newWidth:Math.round(w)}),A=!1),A||(x=a(v,w,i,r,s)),x.explanation=g,x}}},function(t,e,i){"use strict";var r=i(1),s=i(23),n=i(37),a=function(t,e){e=e||{},this.responsive=e.responsive,this.space=3*r.SPACE,this.scale=e.scale?parseFloat(e.scale):0,this.scale>.1||(this.scale=void 0),e.staffwidth?(this.staffwidthScreen=e.staffwidth,this.staffwidthPrint=e.staffwidth):(this.staffwidthScreen=740,this.staffwidthPrint=680),this.editable=e.editable||!1,this.listeners=[],e.clickListener&&this.addSelectListener(e.clickListener),this.renderer=new n(t,e.regression,e.add_classes),this.renderer.setPaddingOverride(e),this.renderer.controller=this,this.reset()};function c(t,e,i,r,s,n,a){return t&&r/i<.66&&!e?null:Math.abs(i-r)<2?null:n>0?((s=(i-(r-n*s))/n)*a>50&&(s=50/a),s):null}a.prototype.reset=function(){this.selected=[],this.ingroup=!1,this.staffgroups=[],this.lastStaffGroupIndex=-1,this.engraver&&this.engraver.reset(),this.engraver=null,this.renderer.reset()},a.prototype.engraveABC=function(t,e){void 0===t[0]&&(t=[t]),this.reset();for(var i=0;i<t.length;i++)void 0===e&&(e=i),this.engraveTune(t[i],e);if(this.renderer.doRegression)return this.renderer.regressionLines.join("\n")},a.prototype.adjustNonScaledItems=function(t){this.width/=t,this.renderer.adjustNonScaledItems(t)},a.prototype.getMeasureWidths=function(t){this.reset(),this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new s(this.renderer,0,{bagpipes:t.formatting.bagpipes,flatbeams:t.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var e=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(e=void 0),void 0===e&&(e=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(e);var i={left:0,measureWidths:[],height:0,total:0};i.height=this.renderer.padding.top+this.renderer.spacing.music+this.renderer.padding.bottom+24;for(var n=!1,a=0;a<t.lines.length;a++){var c=t.lines[a];if(c.staff){if(c.staffGroup=this.engraver.createABCLine(c.staff,n?null:t.metaText.tempo),c.staffGroup.layout(0,this.renderer,!1),c.staffGroup.voices.length>0)for(var o=c.staffGroup.voices[0],h=!1,l=0,d=0;d<o.children.length;d++){var u=o.children[d];h||u.isClef||u.isKeySig||(h=!0,i.left=u.x,l=u.x),"bar"===u.type&&(i.measureWidths.push(u.x-l),i.total+=u.x-l,l=u.x)}n=!0,i.height+=c.staffGroup.calcHeight()*r.STEP}}return i},a.prototype.engraveTune=function(t,e){this.renderer.lineNumber=null,this.renderer.newTune(t),this.engraver=new s(this.renderer,e,{bagpipes:t.formatting.bagpipes,flatbeams:t.formatting.flatbeams}),this.engraver.setStemHeight(this.renderer.spacing.stemHeight),t.formatting.staffwidth?this.width=1.33*t.formatting.staffwidth:this.width=this.renderer.isPrint?this.staffwidthPrint:this.staffwidthScreen;var i,r,n=t.formatting.scale?t.formatting.scale:this.scale;"resize"===this.responsive&&(n=void 0),void 0===n&&(n=this.renderer.isPrint?.75:1),this.adjustNonScaledItems(n);var a=!1;for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staff&&(r.staffGroup=this.engraver.createABCLine(r.staff,a?null:t.metaText.tempo),a=!0);var c=this.width;for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staff&&(this.setXSpacing(r.staffGroup,t.formatting,i===t.lines.length-1,!1),r.staffGroup.w>c&&(c=r.staffGroup.w));for(i=0;i<t.lines.length;i++)if((r=t.lines[i]).staffGroup&&r.staffGroup.voices){for(var o=0;o<r.staffGroup.voices.length;o++)r.staffGroup.voices[o].layoutBeams();r.staffGroup.setUpperAndLowerElements(this.renderer)}for(i=0;i<t.lines.length;i++)(r=t.lines[i]).staffGroup&&(r.staffGroup.height=r.staffGroup.calcHeight());this.renderer.topMargin(t),this.renderer.engraveTopText(this.width,t),this.renderer.addMusicPadding(),this.staffgroups=[],this.lastStaffGroupIndex=-1;for(var h=0;h<t.lines.length;h++)this.renderer.lineNumber=h,(r=t.lines[h]).staff?this.engraveStaffLine(r.staffGroup):r.subtitle&&0!==h?this.renderer.outputSubtitle(this.width,r.subtitle):void 0!==r.text&&this.renderer.outputFreeText(r.text);this.renderer.moveY(24),this.renderer.engraveExtraText(this.width,t),this.renderer.setPaperSize(c,n,this.responsive)},a.prototype.setXSpacing=function(t,e,i,r){for(var s=this.space,n=0;n<8;n++){var a=t.layout(s,this.renderer,r);if(s=c(i,!!e.stretchlast&&e.stretchlast,this.width+this.renderer.padding.left,t.w,s,a.spacingUnits,a.minSpace),r&&console.log("setXSpace",n,t.w,s,t.minspace),null===s)break}!function(t){for(var e=0;e<t.length;e++)for(var i=t[e],r=1;r<i.children.length-1;r++){var s=i.children[r];if(s.abcelem.rest&&("whole"===s.abcelem.rest.type||"multimeasure"===s.abcelem.rest.type)){var n=i.children[r-1],a=i.children[r+1],c=(a.x-n.x)/2+n.x;s.x=c-s.w/2;for(var o=0;o<s.children.length;o++)s.children[o].x=s.x}}}(t.voices)},a.prototype.engraveStaffLine=function(t){this.lastStaffGroupIndex>-1&&this.renderer.addStaffPadding(this.staffgroups[this.lastStaffGroupIndex],t),this.renderer.voiceNumber=null,t.draw(this.renderer);var e=t.height*r.STEP;this.staffgroups[this.staffgroups.length]=t,this.lastStaffGroupIndex=this.staffgroups.length-1,this.renderer.y+=e},a.prototype.notifySelect=function(t,e,i){this.clearSelection(),t.highlight&&(this.selected=[t],t.highlight());for(var r=t.abcelem||{},s=0;s<this.listeners.length;s++)this.listeners[s](r,e,i)},a.prototype.clearSelection=function(){for(var t=0;t<this.selected.length;t++)this.selected[t].unhighlight();this.selected=[]},a.prototype.addSelectListener=function(t){this.listeners[this.listeners.length]=t},a.prototype.rangeHighlight=function(t,e){this.clearSelection();for(var i=0;i<this.staffgroups.length;i++)for(var r=this.staffgroups[i].voices,s=0;s<r.length;s++)for(var n=r[s].children,a=0;a<n.length;a++){var c=n[a].abcelem.startChar,o=n[a].abcelem.endChar;(e>c&&t<o||e===t&&e===o)&&(this.selected[this.selected.length]=n[a],n[a].highlight())}},t.exports=a},function(t,e,i){"use strict";var r=function(t,e,i,r,s){this.anchor1=t,this.anchor2=e,this.above=i,this.force=r,this.isTie=s};r.prototype.setEndAnchor=function(t){this.anchor2=t,this.isTie&&(this.anchor1&&(this.anchor1.isTie=!0),this.anchor2&&(this.anchor2.isTie=!0))},r.prototype.setStartX=function(t){this.startLimitX=t},r.prototype.setEndX=function(t){this.endLimitX=t},r.prototype.setHint=function(){this.hint=!0},r.prototype.setUpperAndLowerElements=function(t){},r.prototype.layout=function(t,e){function i(t,e,i){return i?t.pitch:e&&void 0!==t.highestVert?t.highestVert:t.pitch}!this.force&&this.anchor2&&this.anchor2.pitch===this.anchor2.highestVert&&(this.above=!0),this.isTie?(this.anchor1&&(this.anchor1.tieAbove=this.above),this.anchor2&&(this.anchor2.tieAbove=this.above)):this.anchor2&&this.anchor2.isTie?this.above=this.anchor2.tieAbove:this.anchor1&&this.anchor1.isTie&&(this.above=this.anchor1.tieAbove),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.startX=t,this.anchor2?this.endX=this.anchor2.x:this.endLimitX?this.endX=this.endLimitX.x:this.endX=e,this.anchor1&&this.anchor2?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):this.anchor1?(this.startY=i(this.anchor1,this.above,this.isTie),this.endY=i(this.anchor1,this.above,this.isTie)):this.anchor2?(this.startY=i(this.anchor2,this.above,this.isTie),this.endY=i(this.anchor2,this.above,this.isTie)):(this.startY=this.above?14:0,this.endY=this.above?14:0)},r.prototype.draw=function(t,e,i){var r;this.layout(e,i),this.hint&&(r="abcjs-hint"),t.drawArc(this.startX,this.endX,this.startY,this.endY,this.above,r,this.isTie)},t.exports=r},function(t,e,i){"use strict";i(16);var r=i(17);window.ABCJS=r},function(t,e,i){"use strict"},function(t,e,i){"use strict";var r=i(18),s=i(6),n={signature:"abcjs-basic v5.6.3"};Object.keys(r).forEach(function(t){n[t]=r[t]}),Object.keys(s).forEach(function(t){n[t]=s[t]}),n.renderAbc=i(22),n.TimingCallbacks=i(10);var a=i(39);n.Editor=a,t.exports=n},function(t,e,i){"use strict";i(1),i(0);var r=i(10),s={};!function(){var t,e;s.startAnimation=function(i,s,n){function a(t){for(var e=0;e<t.length;e++){var i=t[e];i.classList.contains("abcjs-bar")||(i.style.display="none")}}var c;function o(t){n.hideCurrentMeasure?function(t){a(i.querySelectorAll(t))}(t):n.hideFinishedMeasures&&function(t){c&&a(i.querySelectorAll(c)),c=t}(t)}t&&(t.stop(),t=void 0),n.showCursor&&!i.querySelector(".abcjs-cursor")&&((e=document.createElement("DIV")).className="abcjs-cursor cursor",e.style.position="absolute",i.appendChild(e),i.style.position="relative"),(t=new r(s,{qpm:n.bpm,eventCallback:function(i){if(i){if(i.measureStart){var r=function(t){return".abcjs-l"+t.line+".abcjs-m"+t.measureNumber}(i);r&&o(r)}e.style.left=i.left+"px",e.style.top=i.top+"px",e.style.width=i.width+"px",e.style.height=i.height+"px"}else t.stop(),t=void 0}})).start()},s.pauseAnimation=function(e){e?t.pause():t.start()},s.stopAnimation=function(){t.stop(),t=void 0}}(),t.exports=s},function(t,e,i){"use strict";var r=i(0),s=i(8),n=i(9);t.exports=function(t,e,i,a){this.reset=function(t,e,i,r){n.initialize(t,e,i,r),s.initialize(t,e,i,r)},this.reset(t,e,i,a),this.setTitle=function(e){if(i.hasMainTitle)a.addSubtitle(t.translateString(t.stripComment(e)));else{var r=t.translateString(t.theReverser(t.stripComment(e)));i.titlecaps&&(r=r.toUpperCase()),a.addMetaText("title",r),i.hasMainTitle=!0}},this.setMeter=function(r){if("C"===(r=t.stripComment(r)))return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"common_time"};if("C|"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"cut_time"};if("o"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum"};if("c"===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum"};if("o."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_perfectum_prolatio"};if("c."===r)return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),{type:"tempus_imperfectum_prolatio"};if(0===r.length||"none"===r.toLowerCase())return!0===i.havent_set_length&&(i.default_length=.125,i.havent_set_length=!1),null;var s=t.tokenize(r,0,r.length);try{var n=function(){var t=function(){var t={value:0,num:""},e=s.shift();for("("===e.token&&(e=s.shift());;){if("number"!==e.type)throw"Expected top number of meter";if(t.value+=parseInt(e.token),t.num+=e.token,0===s.length||"/"===s[0].token)return t;if(")"===(e=s.shift()).token){if(0===s.length||"/"===s[0].token)return t;throw"Unexpected paren in meter"}if("."!==e.token&&"+"!==e.token)throw"Expected top number of meter";if(t.num+=e.token,0===s.length)throw"Expected top number of meter";e=s.shift()}return t}();if(0===s.length)return t;var e=s.shift();if("/"!==e.token)throw"Expected slash in meter";if("number"!==(e=s.shift()).type)throw"Expected bottom number of meter";return t.den=e.token,t.value=t.value/parseInt(t.den),t};if(0===s.length)throw"Expected meter definition in M: line";for(var a={type:"specified",value:[]},c=0;;){var o=n();c+=o.value;var h={num:o.num};if(void 0!==o.den&&(h.den=o.den),a.value.push(h),0===s.length)break}return!0===i.havent_set_length&&(i.default_length=c<.75?.0625:.125,i.havent_set_length=!1),a}catch(t){e(t,r,0)}return null},this.calcTempo=function(t){var e=.25;i.meter&&"specified"===i.meter.type?e=1/parseInt(i.meter.value[0].den):i.origMeter&&"specified"===i.origMeter.type&&(e=1/parseInt(i.origMeter.value[0].den));for(var r=0;r<t.duration;r++)t.duration[r]=e*t.duration[r];return t},this.resolveTempo=function(){i.tempo&&(this.calcTempo(i.tempo),a.metaText.tempo=i.tempo,delete i.tempo)},this.addUserDefinition=function(t,s,n){var a=t.indexOf("=",s);if(-1!==a){var c=r.strip(t.substring(s,a)),o=r.strip(t.substring(a+1));1===c.length?-1!=="HIJKLMNOPQRSTUVWXYhijklmnopqrstuvw~".indexOf(c)?0!==o.length?(void 0===i.macros&&(i.macros={}),i.macros[c]=o):e("Missing macro definition",t,s):e("Macro definitions must be H-Y, h-w, or tilde",t,s):e("Macro definitions can only be one character",t,s)}else e("Need an = in a macro definition",t,s)},this.setDefaultLength=function(t,e,s){var n=r.gsub(t.substring(e,s)," ","").split("/");if(2===n.length){var a=parseInt(n[0]),c=parseInt(n[1]);c>0&&(i.default_length=a/c,i.havent_set_length=!1)}else 1===n.length&&"1"===n[0]&&(i.default_length=1,i.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(r,s,n){try{var a=t.tokenize(r,s,n);if(0===a.length)throw"Missing parameter in Q: field";var o={},h=!0,l=a.shift();if("quote"===l.type&&(o.preString=l.token,l=a.shift(),0===a.length))return c[o.preString.toLowerCase()]&&(o.bpm=c[o.preString.toLowerCase()],o.suppressBpm=!0),{type:"immediate",tempo:o};if("alpha"===l.type&&"C"===l.token){if(0===a.length)throw"Missing tempo after C in Q: field";if("punct"===(l=a.shift()).type&&"="===l.token){if(0===a.length)throw"Missing tempo after = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected number after = in Q: field";o.duration=[1],o.bpm=parseInt(l.token)}else{if("number"!==l.type)throw"Expected number or equal after C in Q: field";if(o.duration=[parseInt(l.token)],0===a.length)throw"Missing = after duration in Q: field";if("punct"!==(l=a.shift()).type||"="!==l.token)throw"Expected = after duration in Q: field";if(0===a.length)throw"Missing tempo after = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected number after = in Q: field";o.bpm=parseInt(l.token)}}else{if("number"!==l.type)throw"Unknown value in Q: field";var d=parseInt(l.token);if(0===a.length||"quote"===a[0].type)o.duration=[1],o.bpm=d;else{if(h=!1,"punct"!==(l=a.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";var u=parseInt(l.token);for(o.duration=[d/u];a.length>0&&"="!==a[0].token&&"quote"!==a[0].type;){if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";if(d=parseInt(l.token),"punct"!==(l=a.shift()).type&&"/"!==l.token)throw"Expected fraction in Q: field";if("number"!==(l=a.shift()).type)throw"Expected fraction in Q: field";u=parseInt(l.token),o.duration.push(d/u)}if("punct"!==(l=a.shift()).type&&"="!==l.token)throw"Expected = in Q: field";if("number"!==(l=a.shift()).type)throw"Expected tempo in Q: field";o.bpm=parseInt(l.token)}}if(0!==a.length&&("quote"===(l=a.shift()).type&&(o.postString=l.token,l=a.shift()),0!==a.length))throw"Unexpected string at end of Q: field";return!1===i.printTempo&&(o.suppress=!0),{type:h?"delaySet":"immediate",tempo:o}}catch(t){return e(t,r,s),{type:"none"}}},this.letter_to_inline_header=function(r,c){var o=t.eatWhiteSpace(r,c);if(c+=o,r.length>=c+5&&"["===r.charAt(c)&&":"===r.charAt(c+2)){var h=r.indexOf("]",c),l=i.iChar+c,d=i.iChar+h+1;switch(r.substring(c,c+3)){case"[I:":var u=s.addDirective(r.substring(c+3,h));return u&&e(u,r,c),[h-c+1+o];case"[M:":var f=this.setMeter(r.substring(c+3,h));return a.hasBeginMusic()&&f?a.appendStartingElement("meter",l,d,f):i.meter=f,[h-c+1+o];case"[K:":var p=n.parseKey(r.substring(c+3,h));return p.foundClef&&a.hasBeginMusic()&&a.appendStartingElement("clef",l,d,i.clef),p.foundKey&&a.hasBeginMusic()&&a.appendStartingElement("key",l,d,n.fixKey(i.clef,i.key)),[h-c+1+o];case"[P:":return a.lines.length<=a.lineNum?i.partForNextLine={title:r.substring(c+3,h),startChar:l,endChar:d}:a.appendElement("part",l,d,{title:r.substring(c+3,h)}),[h-c+1+o];case"[L:":return this.setDefaultLength(r,c+3,h),[h-c+1+o];case"[Q:":if(h>0){var m=this.setTempo(r,c+3,h);return"delaySet"===m.type?a.appendElement("tempo",l,d,this.calcTempo(m.tempo)):"immediate"===m.type&&a.appendElement("tempo",l,d,m.tempo),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}break;case"[V:":if(h>0)return n.parseVoice(r,c+3,h),[h-c+1+o,r.charAt(c+1),r.substring(c+3,h)]}}return[0]},this.letter_to_body_header=function(t,c){if(t.length>=c+3)switch(t.substring(c,c+2)){case"I:":var o=s.addDirective(t.substring(c+2));return o&&e(o,t,c),[t.length];case"M:":var h=this.setMeter(t.substring(c+2));return a.hasBeginMusic()&&h&&a.appendStartingElement("meter",i.iChar+c,i.iChar+t.length,h),[t.length];case"K:":var l=n.parseKey(t.substring(c+2));return l.foundClef&&a.hasBeginMusic()&&a.appendStartingElement("clef",i.iChar+c,i.iChar+t.length,i.clef),l.foundKey&&a.hasBeginMusic()&&a.appendStartingElement("key",i.iChar+c,i.iChar+t.length,n.fixKey(i.clef,i.key)),[t.length];case"P:":return a.hasBeginMusic()&&a.appendElement("part",i.iChar+c,i.iChar+t.length,{title:t.substring(c+2)}),[t.length];case"L:":return this.setDefaultLength(t,c+2,t.length),[t.length];case"Q:":var d=t.indexOf("",c+2);-1===d&&(d=t.length);var u=this.setTempo(t,c+2,d);return"delaySet"===u.type?a.appendElement("tempo",i.iChar+c,i.iChar+t.length,this.calcTempo(u.tempo)):"immediate"===u.type&&a.appendElement("tempo",i.iChar+c,i.iChar+t.length,u.tempo),[d,t.charAt(c),r.strip(t.substring(c+2))];case"V:":return n.parseVoice(t,c+2,t.length),[t.length,t.charAt(c),r.strip(t.substring(c+2))]}return[0]};var o={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(c){if(r.startsWith(c,"%%")){var h=s.addDirective(c.substring(2));return h&&e(h,c,2),{}}var l=c.indexOf("%");if(l>=0&&(c=c.substring(0,l)),0===(c=c.replace(/\s+$/,"")).length)return{};if(c.length>=2&&":"===c.charAt(1)){var d="";c.indexOf("")>=0&&"w"!==c.charAt(0)&&(d=c.substring(c.indexOf("")+1),c=c.substring(0,c.indexOf("")));var u=o[c.charAt(0)];if(void 0!==u)return"unalignedWords"===u?a.addMetaTextArray(u,s.parseFontChangeLine(t.translateString(t.stripComment(c.substring(2))))):a.addMetaText(u,t.translateString(t.stripComment(c.substring(2)))),{};var f=i.iChar,p=f+c.length;switch(c.charAt(0)){case"H":a.addMetaText("history",t.translateString(t.stripComment(c.substring(2)))),i.is_in_history=!0;break;case"K":this.resolveTempo();var m=n.parseKey(c.substring(2));!i.is_in_header&&a.hasBeginMusic()&&(m.foundClef&&a.appendStartingElement("clef",f,p,i.clef),m.foundKey&&a.appendStartingElement("key",f,p,n.fixKey(i.clef,i.key))),i.is_in_header=!1;break;case"L":this.setDefaultLength(c,2,c.length);break;case"M":i.origMeter=i.meter=this.setMeter(c.substring(2));break;case"P":i.is_in_header?a.addMetaText("partOrder",t.translateString(t.stripComment(c.substring(2)))):i.partForNextLine={title:t.translateString(t.stripComment(c.substring(2))),startChar:f,endChar:p};break;case"Q":var g=this.setTempo(c,2,c.length);"delaySet"===g.type?i.tempo=g.tempo:"immediate"===g.type&&(a.metaText.tempo=g.tempo);break;case"T":this.setTitle(c.substring(2));break;case"U":this.addUserDefinition(c,2,c.length);break;case"V":if(n.parseVoice(c,2,c.length),!i.is_in_header)return{newline:!0};break;case"s":return{symbols:!0};case"w":return{words:!0};case"X":break;case"E":case"m":e("Ignored header",c,0);break;default:return d.length&&(d=""+d),{regular:!0,str:c+d}}return d.length>0?{recurse:!0,str:d}:{}}return{regular:!0,str:c}}}},function(t,e,i){"use strict";var r=i(0);t.exports=function(){this.skipWhiteSpace=function(t){for(var e=0;e<t.length;e++)if(!this.isWhiteSpace(t.charAt(e)))return e;return t.length};var t=function(t,e){return e>=t.length};this.eatWhiteSpace=function(t,e){for(var i=e;i<t.length;i++)if(!this.isWhiteSpace(t.charAt(i)))return i-e;return i-e},this.getKeyPitch=function(e){var i=this.skipWhiteSpace(e);if(t(e,i))return{len:0};switch(e.charAt(i)){case"A":return{len:i+1,token:"A"};case"B":return{len:i+1,token:"B"};case"C":return{len:i+1,token:"C"};case"D":return{len:i+1,token:"D"};case"E":return{len:i+1,token:"E"};case"F":return{len:i+1,token:"F"};case"G":return{len:i+1,token:"G"}}return{len:0}},this.getSharpFlat=function(t){if("bass"===t)return{len:0};switch(t.charAt(0)){case"#":return{len:1,token:"#"};case"b":return{len:1,token:"b"}}return{len:0}},this.getMode=function(e){var i=function(t,e){for(;e<t.length&&(t.charAt(e)>="a"&&t.charAt(e)<="z"||t.charAt(e)>="A"&&t.charAt(e)<="Z");)e++;return e},r=this.skipWhiteSpace(e);if(t(e,r))return{len:0};var s=e.substring(r,r+3).toLowerCase();switch((s.length>1&&" "===s.charAt(1)||"^"===s.charAt(1)||"_"===s.charAt(1)||"="===s.charAt(1))&&(s=s.charAt(0)),s){case"mix":return{len:i(e,r),token:"Mix"};case"dor":return{len:i(e,r),token:"Dor"};case"phr":return{len:i(e,r),token:"Phr"};case"lyd":return{len:i(e,r),token:"Lyd"};case"loc":return{len:i(e,r),token:"Loc"};case"aeo":return{len:i(e,r),token:"m"};case"maj":case"ion":return{len:i(e,r),token:""};case"min":case"m":return{len:i(e,r),token:"m"}}return{len:0}},this.getClef=function(e,i){var s=e,n=this.skipWhiteSpace(e);if(t(e,n))return{len:0};var a=!1,c=e.substring(n);if(r.startsWith(c,"clef=")&&(a=!0,c=c.substring(5),n+=5),0===c.length&&a)return{len:n+5,warn:"No clef specified: "+s};var o=this.skipWhiteSpace(c);if(t(c,o))return{len:0};o>0&&(n+=o,c=c.substring(o));var h=null;if(r.startsWith(c,"treble"))h="treble";else if(r.startsWith(c,"bass3"))h="bass3";else if(r.startsWith(c,"bass"))h="bass";else if(r.startsWith(c,"tenor"))h="tenor";else if(r.startsWith(c,"alto2"))h="alto2";else if(r.startsWith(c,"alto1"))h="alto1";else if(r.startsWith(c,"alto"))h="alto";else if(!i&&a&&r.startsWith(c,"none"))h="none";else if(r.startsWith(c,"perc"))h="perc";else if(!i&&a&&r.startsWith(c,"C"))h="tenor";else if(!i&&a&&r.startsWith(c,"F"))h="bass";else{if(i||!a||!r.startsWith(c,"G"))return{len:n+5,warn:"Unknown clef specified: "+s};h="treble"}return c=c.substring(h.length),(o=this.isMatch(c,"+8"))>0?h+="+8":(o=this.isMatch(c,"-8"))>0&&(h+="-8"),{len:n+h.length,token:h,explicit:a}},this.getBarLine=function(t,e){switch(t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return{len:2,token:"bar_thick_thin"};case"[":return++e,t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:2,token:"bar_invisible"}:{len:1,warn:"Unknown bar symbol"};default:return{len:1,token:"bar_invisible"}}break;case":":switch(++e,t.charAt(e)){case":":return{len:2,token:"bar_dbl_repeat"};case"|":switch(++e,t.charAt(e)){case"]":switch(++e,t.charAt(e)){case"|":return++e,":"===t.charAt(e)?{len:5,token:"bar_dbl_repeat"}:{len:3,token:"bar_right_repeat"};default:return{len:3,token:"bar_right_repeat"}}break;case"|":return++e,":"===t.charAt(e)?{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.charAt(e))return t.charAt(e)>="1"&&t.charAt(e)<="9"||'"'===t.charAt(e)?{len:1,token:"bar_invisible"}:{len:0};switch(++e,t.charAt(e)){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.charAt(e)){case"]":return{len:2,token:"bar_thin_thick"};case"|":return++e,":"===t.charAt(e)?{len:3,token:"bar_left_repeat"}:{len:2,token:"bar_thin_thin"};case":":for(var i=0;":"===t.charAt(e+i);)i++;return{len:1+i,token:"bar_left_repeat"};default:return{len:1,token:"bar_thin"}}}return{len:0}},this.getTokenOf=function(t,e){for(var i=0;i<t.length;i++)if(e.indexOf(t.charAt(i))<0)return{len:i,token:t.substring(0,i)};return{len:i,token:t}},this.getToken=function(t,e,i){for(var r=e;r<i&&!this.isWhiteSpace(t.charAt(r));)r++;return t.substring(e,r)},this.isMatch=function(e,i){var s=this.skipWhiteSpace(e);return t(e,s)?0:r.startsWith(e.substring(s),i)?s+i.length:0},this.getPitchFromTokens=function(t){var e={};if(e.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}[t[0].token],void 0===e.position)return{warn:"Pitch expected. Found: "+t[0].token};for(t.shift();t.length;)switch(t[0].token){case",":e.position-=7,t.shift();break;case"'":e.position+=7,t.shift();break;default:return e}return e},this.getKeyAccidentals2=function(t){for(var e;t.length>0;){var i;if("^"===t[0].token){if(i="sharp",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"^":i="dblsharp",t.shift();break;case"/":i="quartersharp",t.shift()}}else if("="===t[0].token)i="natural",t.shift();else{if("_"!==t[0].token)return{accs:e};if(i="flat",t.shift(),0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token){case"_":i="dblflat",t.shift();break;case"/":i="quarterflat",t.shift()}}if(0===t.length)return{accs:e,warn:"Expected note name after "+i};switch(t[0].token.charAt(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===e&&(e=[]),e.push({acc:i,note:t[0].token.charAt(0)}),1===t[0].token.length?t.shift():t[0].token=t[0].token.substring(1);break;default:return{accs:e,warn:"Expected note name after "+i+" Found: "+t[0].token}}}return{accs:e}},this.getKeyAccidental=function(e){var i={"^":"sharp","^^":"dblsharp","=":"natural",_:"flat",__:"dblflat","_/":"quarterflat","^/":"quartersharp"},r=this.skipWhiteSpace(e);if(t(e,r))return{len:0};var s=null;switch(e.charAt(r)){case"^":case"_":case"=":s=e.charAt(r);break;default:return{len:0}}if(t(e,++r))return{len:1,warn:"Expected note name after accidental"};switch(e.charAt(r)){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:r+1,token:{acc:i[s],note:e.charAt(r)}};case"^":case"_":case"/":if(s+=e.charAt(r),t(e,++r))return{len:2,warn:"Expected note name after accidental"};switch(e.charAt(r)){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:r+1,token:{acc:i[s],note:e.charAt(r)}};default:return{len:2,warn:"Expected note name after accidental"}}break;default:return{len:1,warn:"Expected note name after accidental"}}},this.isWhiteSpace=function(t){return" "===t||"\t"===t||""===t},this.getMeat=function(t,e,i){var r=t.indexOf("%",e);for(r>=0&&r<i&&(i=r);e<i&&(" "===t.charAt(e)||"\t"===t.charAt(e)||""===t.charAt(e));)e++;for(;e<i&&(" "===t.charAt(i-1)||"\t"===t.charAt(i-1)||""===t.charAt(i-1));)i--;return{start:e,end:i}};var e=function(t){return t>="A"&&t<="Z"||t>="a"&&t<="z"},i=function(t){return t>="0"&&t<="9"};this.tokenize=function(t,r,s,n){var a=this.getMeat(t,r,s);r=a.start,s=a.end;for(var c,o=[];r<s;){if('"'===t.charAt(r)){for(c=r+1;c<s&&'"'!==t.charAt(c);)c++;o.push({type:"quote",token:t.substring(r+1,c),start:r+1,end:c}),c++}else if(e(t.charAt(r))){if(c=r+1,n)for(;c<s&&!this.isWhiteSpace(t.charAt(c));)c++;else for(;c<s&&e(t.charAt(c));)c++;o.push({type:"alpha",token:t.substring(r,c),continueId:i(t.charAt(c)),start:r,end:c}),r=c+1}else if("."===t.charAt(r)&&i(t.charAt(c+1))){c=r+1;for(var h;c<s&&i(t.charAt(c));)c++;h=parseFloat(t.substring(r,c)),o.push({type:"number",token:t.substring(r,c),intt:null,floatt:h,continueId:e(t.charAt(c)),start:r,end:c}),r=c+1}else if(i(t.charAt(r))||"-"===t.charAt(r)&&i(t.charAt(c+1))){c=r+1;for(var l,d=null;c<s&&i(t.charAt(c));)c++;if("."===t.charAt(c)&&i(t.charAt(c+1)))for(c++;c<s&&i(t.charAt(c));)c++;else d=parseInt(t.substring(r,c));l=parseFloat(t.substring(r,c)),o.push({type:"number",token:t.substring(r,c),intt:d,floatt:l,continueId:e(t.charAt(c)),start:r,end:c}),r=c+1}else" "===t.charAt(r)||"\t"===t.charAt(r)?c=r+1:(o.push({type:"punct",token:t.charAt(r),start:r,end:r+1}),c=r+1);r=c}return o},this.getVoiceToken=function(t,e,i){for(var r=e;r<i&&this.isWhiteSpace(t.charAt(r))||"="===t.charAt(r);)r++;if('"'===t.charAt(r)){var s=t.indexOf('"',r+1);return-1===s||s>=i?{len:1,err:"Missing close quote"}:{len:s-e+1,token:this.translateString(t.substring(r+1,s))}}for(var n=r;n<i&&!this.isWhiteSpace(t.charAt(n))&&"="!==t.charAt(n);)n++;return{len:n-e+1,token:t.substring(r,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:"ž"},n={"#":"♯",b:"♭","=":"♮"},a={201:"♯",202:"♭",203:"♮",241:"¡",242:"¢",252:"a",262:"2",272:"o",302:"Â",312:"Ê",322:"Ò",332:"Ú",342:"â",352:"ê",362:"ò",372:"ú",243:"£",253:"«",263:"3",273:"»",303:"Ã",313:"Ë",323:"Ó",333:"Û",343:"ã",353:"ë",363:"ó",373:"û",244:"¤",254:"¬",264:" ́",274:"1⁄4",304:"Ä",314:"Ì",324:"Ô",334:"Ü",344:"ä",354:"ì",364:"ô",374:"ü",245:"¥",255:"-",265:"μ",275:"1⁄2",305:"Å",315:"Í",325:"Õ",335:"Ý",345:"å",355:"í",365:"õ",375:"ý",246:"¦",256:"®",266:"¶",276:"3⁄4",306:"Æ",316:"Î",326:"Ö",336:"Þ",346:"æ",356:"î",366:"ö",376:"þ",247:"§",257:" ̄",267:"·",277:"¿",307:"Ç",317:"Ï",327:"×",337:"ß",347:"ç",357:"ï",367:"÷",377:"ÿ",250:" ̈",260:"°",270:" ̧",300:"À",310:"È",320:"Ð",330:"Ø",340:"à",350:"è",360:"ð",370:"ø",251:"©",261:"±",271:"1",301:"Á",311:"É",321:"Ñ",331:"Ù",341:"á",351:"é",361:"ñ",371:"ù"};this.translateString=function(t){var e=t.split("\\");if(1===e.length)return t;var i=null;return r.each(e,function(t){if(null===i)i=t;else{var e=s[t.substring(0,2)];void 0!==e?i+=e+t.substring(2):void 0!==(e=a[t.substring(0,3)])?i+=e+t.substring(3):(e=n[t.substring(0,1)],i+=void 0!==e?e+t.substring(1):"\\"+t)}}),i},this.getNumber=function(t,e){for(var i=0;e<t.length;)switch(t.charAt(e)){case"0":i*=10,e++;break;case"1":i=10*i+1,e++;break;case"2":i=10*i+2,e++;break;case"3":i=10*i+3,e++;break;case"4":i=10*i+4,e++;break;case"5":i=10*i+5,e++;break;case"6":i=10*i+6,e++;break;case"7":i=10*i+7,e++;break;case"8":i=10*i+8,e++;break;case"9":i=10*i+9,e++;break;default:return{num:i,index:e}}return{num:i,index:e}},this.getFraction=function(t,e){var i=1,r=1;if("/"!==t.charAt(e)){var s=this.getNumber(t,e);i=s.num,e=s.index}if("/"===t.charAt(e)){if(e++,"/"===t.charAt(e)){for(var n=.5;"/"===t.charAt(e++);)n/=2;return{value:i*n,index:e-1}}var a=e,c=this.getNumber(t,e);0===c.num&&a===e&&(c.num=2),0!==c.num&&(r=c.num),e=c.index}return{value:i/r,index:e}},this.theReverser=function(t){return r.endsWith(t,", The")?"The "+t.substring(0,t.length-5):r.endsWith(t,", A")?"A "+t.substring(0,t.length-3):t},this.stripComment=function(t){var e=t.indexOf("%");return e>=0?r.strip(t.substring(0,e)):r.strip(t)},this.getInt=function(t){var e=parseInt(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getFloat=function(t){var e=parseFloat(t);if(isNaN(e))return{digits:0};var i=""+e;return{value:e,digits:t.indexOf(i)+i.length}},this.getMeasurement=function(t){if(0===t.length)return{used:0};var e=1,i="";if("-"===t[0].token)t.shift(),i="-",e++;else if("number"!==t[0].type)return{used:0};if(i+=t.shift().token,0===t.length)return{used:1,value:parseInt(i)};var r=t.shift();if("."===r.token){if(e++,0===t.length)return{used:e,value:parseInt(i)};if("number"===t[0].type&&(i=i+"."+(r=t.shift()).token,e++,0===t.length))return{used:e,value:parseFloat(i)};r=t.shift()}switch(r.token){case"pt":return{used:e+1,value:parseFloat(i)};case"cm":return{used:e+1,value:parseFloat(i)/2.54*72};case"in":return{used:e+1,value:72*parseFloat(i)};default:return t.unshift(r),{used:e,value:parseFloat(i)}}return{used:0}};var c=function(t){for(;-1!==t.indexOf("\\n");)t=t.replace("\\n","\n");return t};this.getBrackettedSubstring=function(t,e,i,r){for(var s=r||t.charAt(e),n=e+1;n<t.length&&t.charAt(n)!==s;)++n;return t.charAt(n)===s?[n-e+1,c(t.substring(e+1,n)),!0]:((n=e+i)>t.length-1&&(n=t.length-1),[n-e+1,c(t.substring(e+1,n)),!1])}}},function(t,e,i){"use strict";var r=i(0),s=i(9),n=i(1);t.exports=function(){this.getBeatLength=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)for(var e=0;e<this.lines[t].staff.length;e++)if(this.lines[t].staff[e].meter){var i=this.lines[t].staff[e].meter;if("specified"===i.type){if(i.value.length>0){var r=parseInt(i.value[0].num,10),s=parseInt(i.value[0].den,10);return 3===r&&8===s?3/8:6===r&&8===s?3/8:9===r&&8===s?3/8:12===r&&8===s?3/8:1/s}return.25}return"cut_time"===i.type?.5:.25}return.25},this.getPickupLength=function(){for(var t=0,e=this.getBarLength(),i=0;i<this.lines.length;i++)if(this.lines[i].staff)for(var r=0;r<this.lines[i].staff.length;r++)for(var s=0;s<this.lines[i].staff[r].voices.length;s++)for(var n=this.lines[i].staff[r].voices[s],a=1,c=0;c<n.length;c++){var o=n[c].rest&&"spacer"===n[c].rest.type;if(n[c].startTriplet&&(a=n[c].tripletMultiplier),n[c].duration&&!o&&(t+=n[c].duration*a),n[c].endTriplet&&(a=1),t>=e&&(t-=e),"bar"===n[c].el_type)return t}return t},this.getBarLength=function(){var t=this.getMeterFraction();return t.num/t.den},this.millisecondsPerMeasure=function(t){var e,i;if(t)e=t;else{var r=this.metaText?this.metaText.tempo:null;e=this.getBpm(r)}e<=0&&(e=1);var s=this.getMeterFraction();return(i=8===s.den?s.num/3:s.num)<=0&&(i=1),i/e*6e4},this.reset=function(){this.version="1.0.1",this.media="screen",this.metaText={},this.formatting={},this.lines=[],this.staffNum=0,this.voiceNum=0,this.lineNum=0},this.resolveOverlays=function(){for(var t=!1,e=0;e<this.lines.length;e++){var i=this.lines[e];if(i.staff)for(var r=0;r<i.staff.length;r++){for(var s=i.staff[r],n=[],a=0;a<s.voices.length;a++){var c=s.voices[a];n.push({hasOverlay:!1,voice:[],snip:[]});for(var o=0,h=!1,l=-1,d=0;d<c.length;d++){var u=c[d];"overlay"!==u.el_type||h?"bar"===u.el_type?(h?(h=!1,n[a].snip.push({start:l,len:d-l}),n[a].voice.push(u)):(n[a].voice.push({el_type:"note",duration:o,rest:{type:"invisible"},startChar:u.startChar,endChar:u.endChar}),n[a].voice.push(u)),o=0):"note"===u.el_type?h?n[a].voice.push(u):o+=u.duration:"scale"!==u.el_type&&"stem"!==u.el_type&&"overlay"!==u.el_type&&"style"!==u.el_type&&"transpose"!==u.el_type||n[a].voice.push(u):(t=!0,h=!0,l=d,n[a].hasOverlay=!0)}n[a].hasOverlay&&0===n[a].snip.length&&n[a].snip.push({start:l,len:c.length-l})}for(a=0;a<n.length;a++){var f=n[a];if(f.hasOverlay){s.voices.push(f.voice);for(var p=f.snip.length-1;p>=0;p--){var m=f.snip[p];s.voices[a].splice(m.start,m.len)}}}}}return t},this.cleanUp=function(t,e,i,n,a){this.closeLine(),this.metaText.tempo&&this.metaText.tempo.bpm&&!this.metaText.tempo.duration&&(this.metaText.tempo.duration=[this.getBeatLength()]);var c,o,h,l=!1;for(c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff){var d=!1;for(o=0;o<this.lines[c].staff.length;o++)if(void 0===this.lines[c].staff[o])l=!0,this.lines[c].staff[o]=null;else for(h=0;h<this.lines[c].staff[o].voices.length;h++)void 0===this.lines[c].staff[o].voices[h]?this.lines[c].staff[o].voices[h]=[]:this.containsNotes(this.lines[c].staff[o].voices[h])&&(d=!0);d||(this.lines[c]=null,l=!0)}if(l&&(this.lines=r.compact(this.lines),r.each(this.lines,function(t){t.staff&&(t.staff=r.compact(t.staff))})),i)for(;m(this.lines,i););if(n){for(l=!1,c=0;c<this.lines.length;c++)if(void 0!==this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++){var u=!1;for(h=0;h<this.lines[c].staff[o].voices.length;h++)this.containsNotesStrict(this.lines[c].staff[o].voices[h])&&(u=!0);u||(l=!0,this.lines[c].staff[o]=null)}l&&r.each(this.lines,function(t){t.staff&&(t.staff=r.compact(t.staff))})}for(function(t){for(var e=!0,i=0;i<t.length;i++){var r=t[i];if(r.staff){for(var s=0;s<r.staff.length;s++){var n=r.staff[s];if(n.title){for(var a=!1,c=0;c<n.title.length;c++)n.title[c]?(n.title[c]=e?n.title[c].name:n.title[c].subname,n.title[c]?a=!0:n.title[c]=""):n.title[c]="";a||delete n.title}}e=!1}}}(this.lines),c=0;c<this.lines.length;c++)if(this.lines[c].staff)for(o=0;o<this.lines[c].staff.length;o++)delete this.lines[c].staff[o].workingClef;for(;this.resolveOverlays(););function f(t){for(var e,i=function(t,i,s){if(void 0===a[s]){for(e=0;e<a.length;e++)if(void 0!==a[e]){s=e;break}if(void 0===a[s]){var n=100*s+1;r.each(t.endSlur,function(t){n===t&&--n}),a[s]=[n]}}for(var c,o=0;o<i;o++)c=a[s].pop(),t.endSlur.push(c);return 0===a[s].length&&delete a[s],c},s=function(t,e,i,s){t.startSlur=[],void 0===a[i]&&(a[i]=[]);for(var n=100*i+1,c=0;c<e;c++)s&&(r.each(s,function(t){n===t&&++n}),r.each(s,function(t){n===t&&++n}),r.each(s,function(t){n===t&&++n})),r.each(a[i],function(t){n===t&&++n}),r.each(a[i],function(t){n===t&&++n}),a[i].push(n),t.startSlur.push({label:n}),n++},n=0;n<t.length;n++){var c=t[n];if("note"===c.el_type){if(c.gracenotes)for(var o=0;o<c.gracenotes.length;o++){if(c.gracenotes[o].endSlur){var h=c.gracenotes[o].endSlur;c.gracenotes[o].endSlur=[];for(var l=0;l<h;l++)i(c.gracenotes[o],1,20)}c.gracenotes[o].startSlur&&(e=c.gracenotes[o].startSlur,s(c.gracenotes[o],e,20))}if(c.endSlur&&(e=c.endSlur,c.endSlur=[],i(c,e,0)),c.startSlur&&s(c,e=c.startSlur,0),c.pitches){for(var d=[],u=0;u<c.pitches.length;u++)if(c.pitches[u].endSlur){var f=c.pitches[u].endSlur;c.pitches[u].endSlur=[];for(var p=0;p<f;p++){var m=i(c.pitches[u],1,u+1);d.push(m)}}for(u=0;u<c.pitches.length;u++)c.pitches[u].startSlur&&(e=c.pitches[u].startSlur,s(c.pitches[u],e,u+1,d));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===a[1].length?delete a[1]:a[1].pop())}}}}function p(t){s.fixClef(t)}function m(t,e){for(c=0;c<t.length;c++)if(void 0!==t[c].staff)for(o=0;o<t[c].staff.length;o++){var i=[];for(h=0;h<t[c].staff[o].voices.length;h++)for(var s=t[c].staff[o].voices[h],n=0,a=0;a<s.length;a++)if("bar"===s[a].el_type){if(++n>=e&&a<s.length-1){var l=g(t,c);if(!l){var d=JSON.parse(JSON.stringify(t[c]));t.push(r.clone(d)),l=t[t.length-1];for(var u=0;u<l.staff.length;u++)for(var f=0;f<l.staff[u].voices.length;f++)l.staff[u].voices[f]=[]}var p=a+1,m=t[c].staff[o].voices[h].slice(p);return t[c].staff[o].voices[h]=t[c].staff[o].voices[h].slice(0,p),l.staff[o].voices[h]=i.concat(m.concat(l.staff[o].voices[h])),!0}}else s[a].duration||i.push(s[a])}return!1}function g(t,e){for(e++;t.length>e;){if(t[e].staff)return t[e];e++}return null}for(this.lineNum=0;this.lineNum<this.lines.length;this.lineNum++){var v=this.lines[this.lineNum].staff;if(v)for(this.staffNum=0;this.staffNum<v.length;this.staffNum++)for(v[this.staffNum].clef&&p(v[this.staffNum].clef),this.voiceNum=0;this.voiceNum<v[this.staffNum].voices.length;this.voiceNum++){var b=v[this.staffNum].voices[this.voiceNum];f(b);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 w=g(this.lines,this.lineNum);w&&(w.staff[0].barNumber=b[b.length-1].barNumber),delete b[b.length-1].barNumber}}}return this.formatting.pagewidth||(this.formatting.pagewidth=t),this.formatting.pageheight||(this.formatting.pageheight=e),delete this.staffNum,delete this.voiceNum,delete this.lineNum,delete this.potentialStartBeam,delete this.potentialEndBeam,delete this.vskipPending,a},this.reset(),this.getLastNote=function(){if(this.lines[this.lineNum]&&this.lines[this.lineNum].staff&&this.lines[this.lineNum].staff[this.staffNum]&&this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])for(var t=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum].length-1;t>=0;t--){var e=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum][t];if("note"===e.el_type)return e}return null},this.addTieToLastNote=function(){var t=this.getLastNote();return!!(t&&t.pitches&&t.pitches.length>0)&&(t.pitches[0].startTie={},!0)},this.getDuration=function(t){return t.duration?t.duration:0},this.closeLine=function(){this.potentialStartBeam&&this.potentialEndBeam&&(this.potentialStartBeam.startBeam=!0,this.potentialEndBeam.endBeam=!0),delete this.potentialStartBeam,delete this.potentialEndBeam},this.appendElement=function(t,e,i,s){var n=this;s.el_type=t,null!==e&&(s.startChar=e),null!==i&&(s.endChar=i);var a=function(){void 0!==n.potentialStartBeam&&void 0!==n.potentialEndBeam&&(n.potentialStartBeam.startBeam=!0,n.potentialEndBeam.endBeam=!0),delete n.potentialStartBeam,delete n.potentialEndBeam};"note"===t?n.getDuration(s)>=.25?a():s.force_end_beam_last&&void 0!==n.potentialStartBeam?a():s.end_beam&&void 0!==n.potentialStartBeam?void 0===s.rest?(n.potentialStartBeam.startBeam=!0,s.endBeam=!0,delete n.potentialStartBeam,delete n.potentialEndBeam):a():void 0===s.rest&&(void 0===n.potentialStartBeam?s.end_beam||(n.potentialStartBeam=s,delete n.potentialEndBeam):n.potentialEndBeam=s):a(),delete s.end_beam,delete s.force_end_beam_last,function(t){if(void 0!==t.pitches){var e=n.lines[n.lineNum].staff[n.staffNum].workingClef.verticalPos;r.each(t.pitches,function(t){t.verticalPos=t.pitch-e})}if(void 0!==t.gracenotes){var i=n.lines[n.lineNum].staff[n.staffNum].workingClef.verticalPos;r.each(t.gracenotes,function(t){t.verticalPos=t.pitch-i})}n.lines[n.lineNum].staff[n.staffNum].voices[n.voiceNum].push(t)}(s)},this.appendStartingElement=function(t,e,i,s){var n;this.closeLine(),"key"===t&&(n=s.impliedNaturals,delete s.impliedNaturals,delete s.explicitAccidentals);var a=r.clone(s);if(this.lines[this.lineNum].staff){this.lines[this.lineNum].staff.length<=this.staffNum&&(this.lines[this.lineNum].staff[this.staffNum]={},this.lines[this.lineNum].staff[this.staffNum].clef=r.clone(this.lines[this.lineNum].staff[0].clef),this.lines[this.lineNum].staff[this.staffNum].key=r.clone(this.lines[this.lineNum].staff[0].key),this.lines[this.lineNum].staff[0].meter&&(this.lines[this.lineNum].staff[this.staffNum].meter=r.clone(this.lines[this.lineNum].staff[0].meter)),this.lines[this.lineNum].staff[this.staffNum].workingClef=r.clone(this.lines[this.lineNum].staff[0].workingClef),this.lines[this.lineNum].staff[this.staffNum].voices=[[]]),"clef"===t&&(this.lines[this.lineNum].staff[this.staffNum].workingClef=a);for(var c=this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum],o=0;o<c.length;o++){if("note"===c[o].el_type||"bar"===c[o].el_type)return a.el_type=t,a.startChar=e,a.endChar=i,n&&(a.accidentals=n.concat(a.accidentals)),void c.push(a);if(c[o].el_type===t)return a.el_type=t,a.startChar=e,a.endChar=i,n&&(a.accidentals=n.concat(a.accidentals)),void(c[o]=a)}this.lines[this.lineNum].staff[this.staffNum][t]=s}},this.getNumLines=function(){return this.lines.length},this.pushLine=function(t){this.vskipPending&&(t.vskip=this.vskipPending,delete this.vskipPending),this.lines.push(t)},this.addSubtitle=function(t){this.pushLine({subtitle:t})},this.addSpacing=function(t){this.vskipPending=t},this.addNewPage=function(t){this.pushLine({newpage:t})},this.addSeparator=function(t,e,i){this.pushLine({separator:{spaceAbove:t,spaceBelow:e,lineLength:i}})},this.addText=function(t){this.pushLine({text:t})},this.addCentered=function(t){this.pushLine({text:[{text:t,center:!0}]})},this.containsNotes=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type||"bar"===t[e].el_type)return!0;return!1},this.containsNotesStrict=function(t){for(var e=0;e<t.length;e++)if("note"===t[e].el_type&&void 0===t[e].rest)return!0;return!1},this.changeVoiceScale=function(t){this.appendElement("scale",null,null,{size:t})},this.startNewLine=function(t){var e=this;this.closeLine();var i=function(t){var i=e.lines[e.lineNum].staff[e.staffNum];if(i.voices[e.voiceNum]=[],i.title||(i.title=[]),i.title[e.voiceNum]={name:t.name,subname:t.subname},t.style&&e.appendElement("style",null,null,{head:t.style}),t.stem)e.appendElement("stem",null,null,{direction:t.stem});else if(e.voiceNum>0){if(void 0!==i.voices[0]){for(var r=!1,s=0;s<i.voices[0].length;s++)"stem"===i.voices[0].el_type&&(r=!0);r||i.voices[0].splice(0,0,{el_type:"stem",direction:"up"})}e.appendElement("stem",null,null,{direction:"down"})}t.scale&&e.appendElement("scale",null,null,{size:t.scale})},r=function(t){t.key&&t.key.impliedNaturals&&(t.key.accidentals=t.key.accidentals.concat(t.key.impliedNaturals),delete t.key.impliedNaturals),e.lines[e.lineNum].staff[e.staffNum]={voices:[],clef:t.clef,key:t.key,workingClef:t.clef},void 0!==t.stafflines&&(e.lines[e.lineNum].staff[e.staffNum].clef.stafflines=t.stafflines,e.lines[e.lineNum].staff[e.staffNum].workingClef.stafflines=t.stafflines),t.staffscale&&(e.lines[e.lineNum].staff[e.staffNum].staffscale=t.staffscale),t.tripletfont&&(e.lines[e.lineNum].staff[e.staffNum].tripletfont=t.tripletfont),t.vocalfont&&(e.lines[e.lineNum].staff[e.staffNum].vocalfont=t.vocalfont),t.bracket&&(e.lines[e.lineNum].staff[e.staffNum].bracket=t.bracket),t.brace&&(e.lines[e.lineNum].staff[e.staffNum].brace=t.brace),t.connectBarLines&&(e.lines[e.lineNum].staff[e.staffNum].connectBarLines=t.connectBarLines),t.barNumber&&(e.lines[e.lineNum].staff[e.staffNum].barNumber=t.barNumber),i(t),t.part&&e.appendElement("part",t.part.startChar,t.part.endChar,{title:t.part.title}),void 0!==t.meter&&(e.lines[e.lineNum].staff[e.staffNum].meter=t.meter)};if(void 0===this.lines[this.lineNum])!function(t){e.lines[e.lineNum]={staff:[]},r(t)}(t);else if(void 0===this.lines[this.lineNum].staff)this.lineNum++,this.startNewLine(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum])r(t);else if(void 0===this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum])i(t);else{if(!this.containsNotes(this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]))return;this.lineNum++,this.startNewLine(t)}},this.hasBeginMusic=function(){for(var t=0;t<this.lines.length;t++)if(this.lines[t].staff)return!0;return!1},this.isFirstLine=function(t){for(var e=t-1;e>=0;e--)if(void 0!==this.lines[e].staff)return!1;return!0},this.getMeter=function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t];if(e.staff)for(var i=0;i<e.staff.length;i++){var r=e.staff[i].meter;if(r)return r}}return{type:"common_time"}},this.getMeterFraction=function(){var t=this.getMeter(),e=4,i=4;return t&&("specified"===t.type?(e=parseInt(t.value[0].num,10),i=parseInt(t.value[0].den,10)):"cut_time"===t.type?(e=2,i=2):"common_time"===t.type&&(e=4,i=4)),this.meter={num:e,den:i},this.meter},this.getCurrentVoice=function(){return void 0!==this.lines[this.lineNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum]&&void 0!==this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]?this.lines[this.lineNum].staff[this.staffNum].voices[this.voiceNum]:null},this.setCurrentVoice=function(t,e){this.staffNum=t,this.voiceNum=e;for(var i=0;i<this.lines.length;i++)if(this.lines[i].staff&&(void 0===this.lines[i].staff[t]||void 0===this.lines[i].staff[t].voices[e]||!this.containsNotes(this.lines[i].staff[t].voices[e])))return void(this.lineNum=i);this.lineNum=i},this.addMetaText=function(t,e){void 0===this.metaText[t]?this.metaText[t]=e:this.metaText[t]+="\n"+e},this.addMetaTextArray=function(t,e){void 0===this.metaText[t]?this.metaText[t]=[e]:this.metaText[t].push(e)},this.addMetaTextObj=function(t,e){this.metaText[t]=e},this.addElementToEvents=function(t,e,i,r,s,n,a,c,o,h){if(e.hint)return{isTiedState:void 0,duration:0};var l=e.durationClass?e.durationClass:e.duration;if(e.abcelem.rest&&"spacer"===e.abcelem.rest.type&&(l=0),l>0){for(var d=[],u=0;u<e.elemset.length;u++)null!==e.elemset[u]&&d.push(e.elemset[u]);var f=e.startTie;void 0!==o?(t["event"+o].elements.push(d),h&&(t["event"+i]||(t["event"+i]={type:"event",milliseconds:i,line:n,measureNumber:a,top:r,height:s,left:null,width:0,elements:[],startChar:null,endChar:null,startCharArray:[],endCharArray:[]}),t["event"+i].measureStart=!0,h=!1),f||(o=void 0)):(t["event"+i]?(t["event"+i].left?t["event"+i].left=Math.min(t["event"+i].left,e.x):t["event"+i].left=e.x,t["event"+i].elements.push(d),t["event"+i].startCharArray.push(e.abcelem.startChar),t["event"+i].endCharArray.push(e.abcelem.endChar),null===t["event"+i].startChar&&(t["event"+i].startChar=e.abcelem.startChar),null===t["event"+i].endChar&&(t["event"+i].endChar=e.abcelem.endChar)):t["event"+i]={type:"event",milliseconds:i,line:n,measureNumber:a,top:r,height:s,left:e.x,width:e.w,elements:[d],startChar:e.abcelem.startChar,endChar:e.abcelem.endChar,startCharArray:[e.abcelem.startChar],endCharArray:[e.abcelem.endChar]},h&&(t["event"+i].measureStart=!0,h=!1),f&&(o=i))}return{isTiedState:o,duration:l/c,nextIsBar:h||"bar"===e.type}},this.makeVoicesArray=function(){for(var t=[],e=0;e<this.engraver.staffgroups.length;e++)for(var i=this.engraver.staffgroups[e],r=i.staffs[0],s=r.absoluteY,a=s-r.top*n.STEP,c=i.staffs[i.staffs.length-1],o=(s=c.absoluteY)-c.bottom*n.STEP-a,h=i.voices,l=0;l<h.length;l++){var d=0,u=!1;t[l]||(t[l]=[]);for(var f=h[l].children,p=0;p<f.length;p++)t[l].push({top:a,height:o,line:e,measureNumber:d,elem:f[p]}),"bar"===f[p].type&&u&&d++,"note"===f[p].type&&(u=!0)}return t},this.setupEvents=function(t,e){for(var i,r=[],s={},n=t,a=!0,c=this.makeVoicesArray(),o=0;o<c.length;o++)for(var h=n,l=Math.round(1e3*h),d=0,u=-1,f=c[o],p=0;p<f.length;p++){var m=f[p].elem;if("tempo"===m.abcelem.el_type){var g=this.getBpm(m.abcelem);e=this.getBeatLength()*(g/60)}var v=this.addElementToEvents(s,m,l,f[p].top,f[p].height,f[p].line,f[p].measureNumber,e,i,a);if(i=v.isTiedState,a=v.nextIsBar,h+=v.duration,l=Math.round(1e3*h),"bar"===m.type){var b=m.abcelem.type,y="bar_right_repeat"===b||"bar_dbl_repeat"===b,w="1"===m.abcelem.startEnding,x="bar_left_repeat"===b||"bar_dbl_repeat"===b||"bar_right_repeat"===b;if(y){-1===u&&(u=p);for(var k=d;k<u;k++){var A=f[k].elem;i=(v=this.addElementToEvents(s,A,l,f[k].top,f[k].height,f[k].line,f[k].measureNumber,e,i,a)).isTiedState,a=v.nextIsBar,h+=v.duration,l=Math.round(1e3*h)}a=!0,u=-1}w&&(u=p),x&&(d=p)}}return function(t){for(var e,i,r,s,n=t.length-1;n>=0;n--){var a=t[n];"bar"===a.type?(a.top=r,a.nextTop=e,e=r,a.bottom=s,a.nextBottom=i,i=s):"event"===a.type&&(r=a.top,s=a.top+a.height)}}(r=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(t[i]);return e=e.sort(function(t,e){var i=t.milliseconds-e.milliseconds;return 0!==i?i:"bar"===t.type?-1:1})}(s)),r.push({type:"end",milliseconds:l}),r},this.getBpm=function(t){var e;if(t){e=t.bpm;var i=this.getBeatLength();e=e*(t.duration&&t.duration.length>0?t.duration[0]:i)/i}if(!e){e=180;var r=this.getMeterFraction();r&&8===r.den&&(e=120)}return e},this.setTiming=function(t,e){if(!t){var i=this.metaText?this.metaText.tempo:null;t=this.getBpm(i)}var r=this.getBeatLength(),s=t/60,n=this.getBarLength()/r*e/s;n&&(n-=this.getPickupLength()/r/s);var a=r*s;this.noteTimings=this.setupEvents(n,a)}}},function(t,e,i){"use strict";var r=i(6),s=i(13),n=i(7),a=i(12),c={};function o(){var t=window.innerWidth;for(var e in c)if(c.hasOwnProperty(e)){var i=c[e];t-=2*i.offsetLeft,i.style.width=t+"px"}}function h(t,e,i,r){i.viewportHorizontal?(t.innerHTML='<div class="abcjs-inner"></div>',i.scrollHorizontal?(t.style.overflowX="auto",t.style.overflowY="hidden"):t.style.overflow="hidden",c[t.id]=t,t=t.children[0]):i.viewportVertical?(t.innerHTML='<div class="abcjs-inner scroll-amount"></div>',t.style.overflowX="hidden",t.style.overflowY="auto",t=t.children[0]):t.innerHTML="";var n=new s(t,i);(n.engraveABC(e,r),e.engraver=n,i.viewportVertical||i.viewportHorizontal)&&(t.parentNode.style.width=t.style.width)}function l(t,e,i,r){function s(t){return{formatting:t.formatting,media:t.media,version:t.version,metaText:{},lines:[]}}for(var n,a=[],c=0;c<e.lines.length;c++){var o=e.lines[c];n||(n=s(e)),0===c&&(n.metaText.tempo=e.metaText.tempo,n.metaText.title=e.metaText.title,n.metaText.header=e.metaText.header,n.metaText.rhythm=e.metaText.rhythm,n.metaText.origin=e.metaText.origin,n.metaText.composer=e.metaText.composer,n.metaText.author=e.metaText.author,n.metaText.partOrder=e.metaText.partOrder),n.lines.push(o),o.staff&&(a.push(n),n=void 0)}if(n)for(var l=a[a.length-1],d=0;d<n.lines.length;d++)l.lines.push(n.lines[d]);(n=a[a.length-1]).metaText.unalignedWords=e.metaText.unalignedWords,n.metaText.book=e.metaText.book,n.metaText.source=e.metaText.source,n.metaText.discography=e.metaText.discography,n.metaText.notes=e.metaText.notes,n.metaText.transcription=e.metaText.transcription,n.metaText.history=e.metaText.history,n.metaText["abc-copyright"]=e.metaText["abc-copyright"],n.metaText["abc-creator"]=e.metaText["abc-creator"],n.metaText["abc-edited-by"]=e.metaText["abc-edited-by"],n.metaText.footer=e.metaText.footer;var u={};for(var f in i)i.hasOwnProperty(f)&&(u[f]=i[f]);var p=u.paddingtop,m=u.paddingbottom;t.innerHTML="";for(var g=0;g<a.length;g++){var v=document.createElement("div");t.appendChild(v),0===g?(u.paddingtop=p,u.paddingbottom=-20):g===a.length-1?(u.paddingtop=10,u.paddingbottom=m):(u.paddingtop=10,u.paddingbottom=-20),h(v,a[g],u,r)}}window.addEventListener("resize",o),window.addEventListener("orientationChange",o);t.exports=function(t,e,i,c,o){var d,u={};if(i)for(d in i)i.hasOwnProperty(d)&&(u[d]=i[d]);if(c)for(d in c)c.hasOwnProperty(d)&&("listener"===d?c[d].highlight&&(u.clickListener=c[d].highlight):u[d]=c[d]);if(o)for(d in o)o.hasOwnProperty(d)&&(u[d]=o[d]);return r.renderEngine(function(t,e,i,r){return u.wrap&&u.staffwidth?e=function(t,e,i,r,c){var o=new s(t,c),d=o.getMeasureWidths(e),u=a.calcLineWraps(e,d,r,c,n,o);return!c.oneSvgPerLine||u.tune.lines.length<2?h(t,u.tune,u.revisedParams,i):l(t,u.tune,u.revisedParams,i),u.tune.explanation=u.explanation,u.tune}(t,e,i,r,u):(!u.oneSvgPerLine||e.lines.length<2?h(t,e,u,i):l(t,e,u,i),null)},t,e,u)}},function(t,e,i){"use strict";var r,s=i(4),n=i(24),a=i(25),c=i(26),o=i(27),h=i(28),l=i(29),d=i(32),u=i(3),f=i(2),p=i(1),m=i(33),g=i(34),v=i(14),b=i(35),y=i(36),w=i(0);!function(){var t=!1,e={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"},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"}};function i(t,e){var i=t[e];if("note"!==i.el_type||!i.startBeam||i.endBeam)return{count:1,elem:i};for(var r=[];e<t.length&&"note"===t[e].el_type&&(r.push(t[e]),!t[e].endBeam);)e++;return{count:r.length,elem:r}}function x(t){if(t.pitches){k(t);for(var e=0,i=0;i<t.pitches.length;i++)e+=t.pitches[i].verticalPos;t.averagepitch=e/t.pitches.length,t.minpitch=t.pitches[0].verticalPos,t.maxpitch=t.pitches[t.pitches.length-1].verticalPos}}(r=function(t,e,i){this.decoration=new l,this.renderer=t,this.tuneNumber=e,this.isBagpipes=i.bagpipes,this.flatBeams=i.flatbeams,this.reset()}).prototype.reset=function(){this.slurs={},this.ties=[],this.voiceScale=1,this.slursbyvoice={},this.tiesbyvoice={},this.endingsbyvoice={},this.scaleByVoice={},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},r.prototype.setStemHeight=function(t){this.stemHeight=t/p.STEP},r.prototype.getCurrentVoiceId=function(t,e){return"s"+t+"v"+e},r.prototype.pushCrossLineElems=function(t,e){this.slursbyvoice[this.getCurrentVoiceId(t,e)]=this.slurs,this.tiesbyvoice[this.getCurrentVoiceId(t,e)]=this.ties,this.endingsbyvoice[this.getCurrentVoiceId(t,e)]=this.partstartelem,this.scaleByVoice[this.getCurrentVoiceId(t,e)]=this.voiceScale},r.prototype.popCrossLineElems=function(t,e){this.slurs=this.slursbyvoice[this.getCurrentVoiceId(t,e)]||{},this.ties=this.tiesbyvoice[this.getCurrentVoiceId(t,e)]||[],this.partstartelem=this.endingsbyvoice[this.getCurrentVoiceId(t,e)],this.voiceScale=this.scaleByVoice[this.getCurrentVoiceId(t,e)],void 0===this.voiceScale&&(this.voiceScale=1)},r.prototype.containsLyrics=function(t){for(var e=0;e<t.length;e++)for(var i=0;i<t[e].voices.length;i++)for(var r=0;r<t[e].voices[i].length;r++){var s=t[e].voices[i][r];if(s.lyric)return void(s.positioning&&"below"!==s.positioning.vocalPosition||(this.hasVocals=!0))}},r.prototype.createABCLine=function(e,i){this.minY=2,this.containsLyrics(e);var r=new m;this.tempoSet=!1;for(var s=0;s<e.length;s++)t&&this.restoreState(),t=!1,this.createABCStaff(r,e[s],i,s);return r},r.prototype.createABCStaff=function(t,e,i,r){for(var s=0;s<e.voices.length;s++){var n=new y(s,e.voices.length);0===s?(n.barfrom="start"===e.connectBarLines||"continue"===e.connectBarLines,n.barto="continue"===e.connectBarLines||"end"===e.connectBarLines):n.duplicate=!0,e.title&&e.title[s]&&(n.header=e.title[s]);var l=c(e.clef,this.tuneNumber);l&&(0===s&&e.barNumber&&this.addMeasureNumber(e.barNumber,l),n.addChild(l));var d=o(e.key,this.tuneNumber);if(d&&(n.addChild(d),this.startlimitelem=d),e.meter){var u=h(e.meter,this.tuneNumber);n.addChild(u),this.startlimitelem=u}n.duplicate&&(n.children=[]);var f=e.clef.stafflines||0===e.clef.stafflines?e.clef.stafflines:5;t.addVoice(n,r,f);var p=1===f;this.createABCVoice(e.voices[s],i,r,s,p,n),t.setStaffLimits(n),"start"===e.brace?t.brace=new a(1,!0):"end"===e.brace&&t.brace?t.brace.increaseStavesIncluded():"continue"===e.brace&&t.brace&&t.brace.increaseStavesIncluded()}},r.prototype.createABCVoice=function(e,r,s,n,a,c){for(var o in this.popCrossLineElems(s,n),this.stemdir=this.isBagpipes?"down":null,this.abcline=e,this.partstartelem&&(this.partstartelem=new d("",null,null),c.addOther(this.partstartelem)),this.slurs)this.slurs.hasOwnProperty(o)&&(this.slurs[o]=new v(null,null,this.slurs[o].above,this.slurs[o].force,!1),t&&this.slurs[o].setHint(),c.addOther(this.slurs[o]));for(var h=0;h<this.ties.length;h++)this.ties[h]=new v(null,null,this.ties[h].above,this.ties[h].force,!0),t&&this.ties[h].setHint(),c.addOther(this.ties[h]);for(var l=0;l<this.abcline.length;l++)x(this.abcline[l]),this.minY=Math.min(this.abcline[l].minpitch,this.minY);for(var u=0===s,f=0;f<this.abcline.length;){var p=i(this.abcline,f),m=this.createABCElement(u,a,c,p.elem);if(m)for(h=0;h<m.length;h++)this.tempoSet||!r||r.suppress||(this.tempoSet=!0,m[h].addChild(new g(r,this.tuneNumber,S))),c.addChild(m[h]);f+=p.count}this.pushCrossLineElems(s,n)},r.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)},r.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)},r.prototype.createABCElement=function(e,i,r,n){var a=[];switch(n.el_type){case void 0:a=this.createBeam(i,r,n);break;case"note":a[0]=this.createNote(n,!1,i,r),this.triplet&&this.triplet.isClosed()&&(r.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1);break;case"bar":a[0]=this.createBarLine(r,n,e),r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"meter":a[0]=h(n,this.tuneNumber),this.startlimitelem=a[0],r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"clef":if(a[0]=c(n,this.tuneNumber),!a[0])return null;r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"key":var l=o(n,this.tuneNumber);l&&(a[0]=l,this.startlimitelem=a[0]),r.duplicate&&a.length>0&&(a[0].invisible=!0);break;case"stem":this.stemdir=n.direction;break;case"part":var d=new s(n,0,0,"part",this.tuneNumber),u=this.renderer.getTextSize(n.title,"partsfont","part");d.addChild(new f(n.title,0,0,void 0,{type:"part",height:u.height/p.STEP})),a[0]=d;break;case"tempo":var m=new s(n,0,0,"tempo",this.tuneNumber);m.addChild(new g(n,this.tuneNumber,S)),a[0]=m;break;case"style":"normal"===n.head?delete this.style:this.style=n.head;break;case"hint":t=!0,this.saveState();break;case"midi":break;case"scale":this.voiceScale=n.size;break;default:var v=new s(n,0,0,"unsupported",this.tuneNumber);v.addChild(new f("element type "+n.el_type,0,0,void 0,{type:"debug"})),a[0]=v}return a},r.prototype.calcBeamDir=function(t,e,i){if(this.stemdir)return this.stemdir;for(var r=new n(this.stemHeight*this.voiceScale,this.stemdir,this.flatBeams),s=0;s<i.length;s++)r.add({abcelem:i[s]});return r.calcDir()?"up":"down"},r.prototype.createBeam=function(e,i,r){var s=[],a=this.calcBeamDir(e,i,r),c=new n(this.stemHeight*this.voiceScale,a,this.flatBeams);t&&c.setHint();var o=this.stemdir;this.stemdir=a;for(var h=0;h<r.length;h++){var l=r[h],d=this.createNote(l,!0,e,i);s.push(d),c.add(d),this.triplet&&this.triplet.isClosed()&&(i.addOther(this.triplet),this.triplet=null,this.tripletmultiplier=1)}return this.stemdir=o,i.addBeam(c),s};var k=function(t){var e;do{e=!0;for(var i=0;i<t.pitches.length-1;i++)if(t.pitches[i].pitch>t.pitches[i+1].pitch){e=!1;var r=t.pitches[i];t.pitches[i]=t.pitches[i+1],t.pitches[i+1]=r}}while(!e)},A=function(t,e,i,r,s,n,a,c,o){for(var h=i;h>11;h--)h%2!=0||r||t.addChild(new f(null,c,(s+4)*o,h,{type:"ledger"}));for(h=e;h<1;h++)h%2!=0||r||t.addChild(new f(null,c,(s+4)*o,h,{type:"ledger"}));for(h=0;h<n.length;h++){var l=s;"down"===a&&(l=-l),t.addChild(new f(null,l+c,(s+4)*o,n[h],{type:"ledger"}))}};function T(t,e){for(var i=0;i<t.length;i++)if(JSON.stringify(t[i])===JSON.stringify(e))return;t.push(e)}r.prototype.addGraceNotes=function(i,r,s,a,c,o,h){var l,d=null;i.gracenotes.length>1&&(d=new n(.7*c,"grace",o),t&&d.setHint(),d.mainNote=s);var p,m=[];for(p=i.gracenotes.length-1;p>=0;p--)h+=10,m[p]=h,i.gracenotes[p].accidental&&(h+=7);for(p=0;p<i.gracenotes.length;p++){var g=i.gracenotes[p].verticalPos;l=d?null:e.uflags[o?5:3];var b=S(s,"noteheads.quarter",i.gracenotes[p],"up",-m[p],-m[p],l,0,0,.6*this.voiceScale,[]).notehead;if(this.addSlursAndTies(s,i.gracenotes[p],b,r,"up"),s.addExtra(b),i.gracenotes[p].acciaccatura){var y=i.gracenotes[p].verticalPos+4.2,w=d?5:6;s.addRight(new f("flags.ugrace",-m[p]+w,0,y,{scalex:.6,scaley:.6}))}if(d){var x=i.gracenotes[p].duration/2;o&&(x/=2);var k={heads:[b],abcelem:{averagepitch:g,minpitch:g,maxpitch:g,duration:x}};d.add(k)}else{var T=g+1/3*.6,N=g+4.2,C=b.dx+b.w;s.addExtra(new f(null,C,0,T,{type:"stem",pitch2:N,linewidth:-.6}))}if(A(s,g,g,!1,u.getSymbolWidth("noteheads.quarter"),[],!0,b.dx-1,.6),0===p&&!o&&(!i.rest||"spacer"!==i.rest.type&&"invisible"!==i.rest.type)){var _=1===i.gracenotes.length&&b.pitch===a.pitch;r.addOther(new v(b,a,!1,!0,_))}}return d&&r.addBeam(d),h},r.prototype.addNoteToAbcElement=function(t,i,r,s,n,a,c,o,h){var l,d,p,m,g,v=0,b=0,y=0,w=[],x=[],k=0,A=i.averagepitch>=6?"down":"up";for(s&&(A=s),(n=i.style?i.style:n)&&"normal"!==n||(n="note"),(m=a?e[n].nostem:e[n][-c])||console.log("noteSymbol:",n,c,a),g="down"===A?i.pitches.length-2:1;"down"===A?g>=0:g<i.pitches.length;g="down"===A?g-1:g+1){var N=i.pitches["down"===A?g+1:g-1],C=i.pitches[g],_="down"===A?N.pitch-C.pitch:C.pitch-N.pitch;_<=1&&!N.printer_shift&&(C.printer_shift=_?"different":"same",(C.verticalPos>11||C.verticalPos<1)&&w.push(C.verticalPos-C.verticalPos%2),"down"===A?b=u.getSymbolWidth(m)+2:v=u.getSymbolWidth(m)+2)}var E=i.pitches.length;for(g=0;g<i.pitches.length;g++){var M,B;if(!o)M="down"===A&&0!==g||"up"===A&&g!==E-1?null:e["down"===A?"dflags":"uflags"][-c];if(B=i.pitches[g].style?e[i.pitches[g].style][-c]:m,i.pitches[g].highestVert=i.pitches[g].verticalPos,("up"===s||"up"===A)&&0===g||("down"===s||"down"===A)&&g===E-1){if((i.startSlur||1===E)&&(i.pitches[g].highestVert=i.pitches[E-1].verticalPos,"up"!==s&&"up"!==A||(i.pitches[g].highestVert+=6)),i.startSlur)for(i.pitches[g].startSlur||(i.pitches[g].startSlur=[]),p=0;p<i.startSlur.length;p++)T(i.pitches[g].startSlur,i.startSlur[p]);if(i.endSlur)for(i.pitches[g].highestVert=i.pitches[E-1].verticalPos,"up"!==s&&"up"!==A||(i.pitches[g].highestVert+=6),i.pitches[g].endSlur||(i.pitches[g].endSlur=[]),p=0;p<i.endSlur.length;p++)T(i.pitches[g].endSlur,i.endSlur[p])}var P=!o&&c<=-1,L=S(t,B,i.pitches[g],P?A:null,0,-b,M,r,v,this.voiceScale,x);k=Math.max(u.getSymbolWidth(B),k),t.extraw-=L.extraLeft,(l=L.notehead)&&(this.addSlursAndTies(t,i.pitches[g],l,h,P?A:null),i.gracenotes&&i.gracenotes.length>0&&(l.bottom=l.bottom-1),t.addHead(l)),b+=L.accidentalshiftx,y=Math.max(y,L.dotshiftx)}if(P){var H=7*this.voiceScale,z="down"===A?i.minpitch-H:i.minpitch+1/3;z>6&&!s&&(z=6);var I="down"===A?i.maxpitch-1/3:i.maxpitch+H;I<6&&!s&&(I=6);var O="down"===A||0===t.heads.length?0:t.heads[0].w,D="down"===A?1:-1;"noteheads.slash.quarter"===l.c&&("down"===A?I-=1:z+=1),t.addExtra(new f(null,O,0,z,{type:"stem",pitch2:I,linewidth:D})),d=Math.min(z,I)}return{noteHead:l,roomTaken:b,roomTakenRight:y,min:d,additionalLedgers:w,dir:A,symbolWidth:k}},r.prototype.addLyric=function(t,e){var i="";w.each(e.lyric,function(t){var e=" "===t.divider?"":t.divider;i+=t.syllable+e+"\n"});var r=this.renderer.getTextSize(i,"vocalfont","lyric"),s=e.positioning?e.positioning.vocalPosition:"below";t.addCentered(new f(i,0,r.width,void 0,{type:"lyric",position:s,height:r.height/p.STEP}))},r.prototype.addChord=function(t,e,i,r){for(var s=0;s<e.chord.length;s++){var n,a=0,c=this.renderer.getTextSize(e.chord[s].name,"annotationfont","annotation"),o=c.width,h=c.height/p.STEP;switch(e.chord[s].position){case"left":a=-(i+=o+7),n=e.averagepitch,t.addExtra(new f(e.chord[s].name,a,o+4,n,{type:"text",height:h}));break;case"right":a=r+=4,n=e.averagepitch,t.addRight(new f(e.chord[s].name,a,o+4,n,{type:"text",height:h}));break;case"below":t.addRight(new f(e.chord[s].name,0,o+8,void 0,{type:"text",position:"below",height:h}));break;case"above":t.addRight(new f(e.chord[s].name,0,o+8,void 0,{type:"text",height:h}));break;default:if(e.chord[s].rel_position){var l=e.chord[s].rel_position.y+3*p.STEP;t.addChild(new f(e.chord[s].name,a+e.chord[s].rel_position.x,0,e.minpitch+l/p.STEP,{type:"text",height:h}))}else{var d="above";e.positioning&&e.positioning.chordPosition&&(d=e.positioning.chordPosition),h=(c=this.renderer.getTextSize(e.chord[s].name,"gchordfont","chord")).height/p.STEP,o=c.width,t.addCentered(new f(e.chord[s].name,a,o,void 0,{type:"chord",position:d,height:h}))}}}return{roomTaken:i,roomTakenRight:r}},r.prototype.createNote=function(i,r,n,a){var c,o=null,h=0,l=0,d=0,p=[],m=function(t){var e=0;return t.duration&&(e=t.duration),e}(i),g=!1;0===m&&(g=!0,m=.25,r=!0);for(var v=Math.floor(Math.log(m)/Math.log(2)),y=0,w=Math.pow(2,v),x=w/2;w<m;y++,w+=x,x/=2);i.startTriplet&&(this.tripletmultiplier=i.tripletMultiplier);var k=m*this.tripletmultiplier;i.rest&&"multimeasure"===i.rest.type&&(k=1);var T=i.rest?"rest":"note",N=new s(i,k,1,T,this.tuneNumber,{durationClassOveride:i.duration*this.tripletmultiplier});if(t&&N.setHint(),i.rest){var C=function(t,i,r,s,n,a,c,o,h){var l,d,p,m,g=7;switch(n&&("down"===a&&(g=3),"up"===a&&(g=11)),c&&(g=r<.5?7:r<1?7:5),i.rest.type){case"whole":l=e.rest[0],i.averagepitch=g,i.minpitch=g,i.maxpitch=g,s=0;break;case"rest":l="rhythm"===i.style?e.rhythm[-o]:e.rest[-o],i.averagepitch=g,i.minpitch=g,i.maxpitch=g;break;case"invisible":case"spacer":l="",i.averagepitch=g,i.minpitch=g,i.maxpitch=g;break;case"multimeasure":l=e.rest.multi,i.averagepitch=g,i.minpitch=g,i.maxpitch=g,s=0;var v=u.getSymbolWidth(l);t.addHead(new f(l,-v,2*v,7));var b=new f(""+i.duration,0,v,16,{type:"multimeasure-text"});t.addExtra(b)}if("multimeasure"!==i.rest.type){var y=S(t,l,{verticalPos:g},null,0,0,null,s,0,h,[]);(d=y.notehead)&&(t.addHead(d),p=y.accidentalshiftx,m=y.dotshiftx)}return{noteHead:d,roomTaken:p,roomTakenRight:m}}(N,i,m,y,a.voicetotal>1,this.stemdir,n,v,this.voiceScale);o=C.noteHead,h=C.roomTaken,l=C.roomTakenRight}else{var _=this.addNoteToAbcElement(N,i,y,this.stemdir,this.style,g,v,r,a);void 0!==_.min&&(this.minY=Math.min(_.min,this.minY)),o=_.noteHead,h=_.roomTaken,l=_.roomTakenRight,p=_.additionalLedgers,c=_.dir,d=_.symbolWidth}if(void 0!==i.lyric&&this.addLyric(N,i),void 0!==i.gracenotes&&(h+=this.addGraceNotes(i,a,N,o,this.stemHeight*this.voiceScale,this.isBagpipes,h)),i.decoration&&this.decoration.createDecoration(a,i.decoration,N.top,o?o.w:0,N,h,c,N.bottom,i.positioning,this.hasVocals),i.barNumber&&N.addChild(new f(i.barNumber,-10,0,0,{type:"barNumber"})),A(N,i.minpitch,i.maxpitch,i.rest,d,p,c,-2,1),void 0!==i.chord){var E=this.addChord(N,i,h,l);h=E.roomTaken,l=E.roomTakenRight}return i.startTriplet&&(this.triplet=new b(i.startTriplet,o,{flatBeams:this.flatBeams})),i.endTriplet&&this.triplet&&this.triplet.setCloseAnchor(o),!this.triplet||i.startTriplet||i.endTriplet||this.triplet.middleNote(o),N};var S=function(t,e,i,r,s,n,a,c,o,h,l){var d,p=i.verticalPos,m=0,g=0,v=0;if(void 0===e)t.addChild(new f("pitch is undefined",0,0,0,{type:"debug"}));else if(""===e)d=new f(null,0,0,p);else{var b=s;if(i.printer_shift){var y="same"===i.printer_shift?1:0;b="down"===r?-u.getSymbolWidth(e)*h+y:u.getSymbolWidth(e)*h-y}var w={scalex:h,scaley:h,thickness:u.symbolHeightInPitches(e)*h};if(d=new f(e,b,u.getSymbolWidth(e)*h,p,w),a){var x=p+("down"===r?-7:7)*h,k="down"===r?s:s+d.w-.6;t.addRight(new f(a,k,u.getSymbolWidth(a)*h,x,{scalex:h,scaley:h}))}for(g=d.w+o-2+5*c;c>0;c--){var A=1-Math.abs(p)%2;t.addRight(new f("dots.dot",d.w+o-2+5*c,u.getSymbolWidth("dots.dot"),p+A))}}if(d&&(d.highestVert=i.highestVert),i.accidental){var T;switch(i.accidental){case"quartersharp":T="accidentals.halfsharp";break;case"dblsharp":T="accidentals.dblsharp";break;case"sharp":T="accidentals.sharp";break;case"quarterflat":T="accidentals.halfflat";break;case"flat":T="accidentals.flat";break;case"dblflat":T="accidentals.dblflat";break;case"natural":T="accidentals.nat"}for(var S=!1,N=n,C=0;C<l.length;C++)if(p-l[C][0]>=6){l[C][0]=p,N=l[C][1],S=!0;break}!1===S&&(N-=u.getSymbolWidth(T)*h+2,l.push([p,N]),m=u.getSymbolWidth(T)*h+2),t.addExtra(new f(T,N,u.getSymbolWidth(T),p,{scalex:h,scaley:h})),v=u.getSymbolWidth(T)/2}return{notehead:d,accidentalshiftx:m,dotshiftx:g,extraLeft:v}};r.prototype.addSlursAndTies=function(e,i,r,s,n){if(i.endTie&&this.ties[0]&&(this.ties[0].setEndAnchor(r),this.ties=this.ties.slice(1,this.ties.length)),i.startTie){var a=new v(r,null,("down"===this.stemdir||"down"===n)&&"up"!==this.stemdir,"down"===this.stemdir||"up"===this.stemdir,!0);t&&a.setHint(),this.ties[this.ties.length]=a,s.addOther(a),e.startTie=!0}if(i.endSlur)for(var c=0;c<i.endSlur.length;c++){var o=i.endSlur[c];this.slurs[o]?((h=this.slurs[o]).setEndAnchor(r),delete this.slurs[o]):(h=new v(null,r,"down"===n,("up"===this.stemdir||"down"===n)&&"down"!==this.stemdir,!1),t&&h.setHint(),s.addOther(h)),this.startlimitelem&&h.setStartX(this.startlimitelem)}if(i.startSlur)for(c=0;c<i.startSlur.length;c++){o=i.startSlur[c].label;var h=new v(r,null,("down"===this.stemdir||"down"===n)&&"up"!==this.stemdir,!1,!1);t&&h.setHint(),this.slurs[o]=h,s.addOther(h)}},r.prototype.addMeasureNumber=function(t,e){var i=this.renderer.getTextSize(t,"measurefont","bar-number");e.addChild(new f(t,0,0,11+i.height/p.STEP,{type:"barNumber"}))},r.prototype.createBarLine=function(t,e,i){var r=new s(e,0,10,"bar",this.tuneNumber),n=null,a=0;e.barNumber&&this.addMeasureNumber(e.barNumber,r);var c="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type,o="bar_left_repeat"!==e.type&&"bar_thick_thin"!==e.type&&"bar_invisible"!==e.type,h="bar_right_repeat"===e.type||"bar_dbl_repeat"===e.type||"bar_left_repeat"===e.type||"bar_thin_thick"===e.type||"bar_thick_thin"===e.type,l="bar_left_repeat"===e.type||"bar_thick_thin"===e.type||"bar_thin_thin"===e.type||"bar_dbl_repeat"===e.type,u="bar_left_repeat"===e.type||"bar_dbl_repeat"===e.type;if(c||u){for(var p in this.slurs)this.slurs.hasOwnProperty(p)&&this.slurs[p].setEndX(r);this.startlimitelem=r}if(c&&(r.addRight(new f("dots.dot",a,1,7)),r.addRight(new f("dots.dot",a,1,5)),a+=6),o&&(n=new f(null,a,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(n)),"bar_invisible"===e.type&&(n=new f(null,a,1,2,{type:"none",pitch2:10,linewidth:.6}),r.addRight(n)),e.decoration&&this.decoration.createDecoration(t,e.decoration,12,h?3:1,r,0,"down",2,e.positioning,this.hasVocals),h&&(n=new f(null,a+=4,4,2,{type:"bar",pitch2:10,linewidth:4}),r.addRight(n),a+=5),this.partstartelem&&e.endEnding&&(this.partstartelem.anchor2=n,this.partstartelem=null),l&&(n=new f(null,a+=3,1,2,{type:"bar",pitch2:10,linewidth:.6}),r.addRight(n)),u&&(a+=3,r.addRight(new f("dots.dot",a,1,7)),r.addRight(new f("dots.dot",a,1,5))),e.startEnding&&i){var m=this.renderer.getTextSize(e.startEnding,"repeatfont","").width;r.minspacing+=m+10,this.partstartelem=new d(e.startEnding,n,null),t.addOther(this.partstartelem)}return r.extraw-=5,r}}(),t.exports=r},function(t,e,i){"use strict";i(4);var r,s=i(2),n=i(1),a=function(t){return void 0===t?0:Math.floor(Math.log(t)/Math.log(2))};!function(){(r=function(t,e,i){this.isflat=i,this.isgrace=e&&"grace"===e,this.forceup=this.isgrace||e&&"up"===e,this.forcedown=e&&"down"===e,this.elems=[],this.total=0,this.allrests=!0,this.stemHeight=t,this.beams=[]}).prototype.setHint=function(){this.hint=!0},r.prototype.add=function(t){var e=t.abcelem.averagepitch;void 0!==e&&(this.allrests=this.allrests&&t.abcelem.rest,t.beam=this,this.elems.push(t),this.total+=e,(void 0===this.min||t.abcelem.minpitch<this.min)&&(this.min=t.abcelem.minpitch),(void 0===this.max||t.abcelem.maxpitch>this.max)&&(this.max=t.abcelem.maxpitch))};function t(t,e,i,r){if(!t.children)return r;for(var s=0;s<t.children.length;s++){var n=t.children[s];e&&void 0!==n.top&&"flags.ugrace"===n.c?r=Math.max(r,n.top-i):e||void 0===n.bottom||"flags.ugrace"!==n.c||(r=Math.max(r,i-n.bottom+7))}return r}function e(t,e){return e?t/e:0}function i(t,e,i,r,s){return e+(r-e)/(i-t)*(s-t)}function c(t,e,i,r,s,n,a){var c="beam-elem";a&&(c+=" abcjs-hint");var o="M"+e+" "+(i=t.calcY(i))+" L"+r+" "+(s=t.calcY(s))+"L"+r+" "+(s+n)+" L"+e+" "+(i+n)+"z";t.printPath({path:o,stroke:"none",fill:"#000000",class:t.addClasses(c)})}r.prototype.calcDir=function(){return!!this.forceup||!this.forcedown&&e(this.total,this.elems.length)<6},r.prototype.layout=function(){if(0!==this.elems.length&&!this.allrests){this.stemsUp=this.calcDir();var r=function(t,e){var i=t?n.STEP:-n.STEP;e&&(i*=.4);return i}(this.stemsUp,this.isgrace),c=this.elems[0],o=this.elems[this.elems.length-1],h=0,l=this.stemsUp?c.abcelem.maxpitch:c.abcelem.minpitch;h=t(c,this.stemsUp,l,h),h=t(o,this.stemsUp,l,h),h=Math.max(this.stemHeight,h+3);var d=function(t,i,r,s,n,a,c,o,h,l){var d=e(t,i),u=r-2,f=r-2,p=Math.round(s?Math.max(d+u,h+f):Math.min(d-u,o-f)),m=function(t,e,i,r){if(r)return 0;var s=t-e,n=i/2;s>n&&(s=n);s<-n&&(s=-n);return s}(n,a,i,c),g=p+Math.floor(m/2),v=p+Math.floor(-m/2);l||(s&&p<6?(g=6,v=6):!s&&p>6&&(g=6,v=6));return[g,v]}(this.total,this.elems.length,h,this.stemsUp,c.abcelem.averagepitch,o.abcelem.averagepitch,this.isflat,this.min,this.max,this.isgrace),u=function(t,e,i){var r=e.heads[t?0:e.heads.length-1],s=i.heads[t?0:i.heads.length-1],n=r.x;t&&(n+=r.w-.6);var a=s.x;t&&(a+=s.w);return[n,a]}(this.stemsUp,c,o);this.beams.push({startX:u[0],endX:u[1],startY:d[0],endY:d[1],dy:r});for(var f=function(t,e,r,s,n){for(var c=[],o=[],h=0;h<t.length;h++){var l=t[h];if(!l.abcelem.rest){var d=l.heads[e?0:l.heads.length-1],u=d.x+(e?d.w:0),f=i(r.startX,r.startY,r.endX,r.endY,u),p=e?-1.5:1.5;s&&(p=2*p/3);var m=l.abcelem.duration;0===m&&(m=.25);for(var g=a(m);g<-3;g++)o[-4-g]?o[-4-g].single=!1:o[-4-g]={x:u+(e?-.6:0),y:f+p*(-4-g+1),durlog:g,single:!0};for(var v=o.length-1;v>=0;v--)if(h===t.length-1||a(t[h+1].abcelem.duration)>-v-4){var b=u,y=f+p*(v+1);o[v].single&&(b=0===h?u+5:u-5,y=i(r.startX,r.startY,r.endX,r.endY,b)+p*(v+1)),c.push({startX:o[v].x,endX:b,startY:o[v].y,endY:y,dy:n}),o=o.slice(0,v)}}}return c}(this.elems,this.stemsUp,this.beams[0],this.isgrace,r),p=0;p<f.length;p++)this.beams.push(f[p]);!function(t,e,r,a,c){for(var o=0;o<t.length;o++){var h=t[o];if(!h.abcelem.rest){var l=!h.addExtra,d=l?c:h,u=h.heads[e?0:h.heads.length-1],f=u.pitch+(e?.2:-.2),p=e?u.w:0,m=u.x+p,g=i(r.startX,r.startY,r.endX,r.endY,m),v=e?-.6:.6;e||(g-=a/2/n.STEP),l&&(p+=h.heads[0].dx),"noteheads.slash.quarter"===u.c&&(e?f+=1:f-=1);var b=new s(null,p,0,f,{type:"stem",pitch2:g,linewidth:v});b.setX(d.x),d.addExtra(b)}}}(this.elems,this.stemsUp,this.beams[0],r,this.mainNote)}},r.prototype.isAbove=function(){return this.stemsUp},r.prototype.heightAtMidpoint=function(t,e){if(0===this.beams.length)return 0;var r=this.beams[0],s=t+(e-t)/2;return i(r.startX,r.startY,r.endX,r.endY,s)},r.prototype.yAtNote=function(t){var e=this.beams[0];return i(e.startX,e.startY,e.endX,e.endY,t.x)},r.prototype.xAtMidpoint=function(t,e){return t+(e-t)/2},r.prototype.draw=function(t){if(0!==this.beams.length){t.beginGroup();for(var e=0;e<this.beams.length;e++){var i=this.beams[e];c(t,i.startX,i.startY,i.endX,i.endY,i.dy,this.hint)}t.endGroup("beam-elem")}}}(),t.exports=r},function(t,e,i){"use strict";var r=function(){this.length=1};r.prototype.increaseStavesIncluded=function(){this.length++},r.prototype.setLocation=function(t){this.x=t},r.prototype.getWidth=function(){return 10},r.prototype.layout=function(t,e,i){this.startY=e,this.endY=i},r.prototype.draw=function(t,e,i){this.layout(t,e,i),t.drawBrace(this.x,this.startY,this.endY)},t.exports=r},function(t,e,i){"use strict";var r,s=i(4),n=i(3),a=i(2);r=function(t,e){var i,r=0,c=new s(t,0,10,"staff-extra",e);switch(c.isClef=!0,t.type){case"treble":i="clefs.G";break;case"tenor":case"alto":i="clefs.C";break;case"bass":i="clefs.F";break;case"treble+8":i="clefs.G",r=1;break;case"tenor+8":i="clefs.C",r=1;break;case"bass+8":i="clefs.F",r=1;break;case"alto+8":i="clefs.C",r=1;break;case"treble-8":i="clefs.G",r=-1;break;case"tenor-8":i="clefs.C",r=-1;break;case"bass-8":i="clefs.F",r=-1;break;case"alto-8":i="clefs.C",r=-1;break;case"none":return null;case"perc":i="clefs.perc";break;default:c.addChild(new a("clef="+t.type,0,0,void 0,{type:"debug"}))}if(i&&(c.addRight(new a(i,5,n.getSymbolWidth(i),t.clefPos)),"clefs.G"===i?(c.top=13,c.bottom=-1):(c.top=10,c.bottom=2),0!==r)){var o=(n.getSymbolWidth(i)-n.getSymbolWidth("8")*(2/3))/2;c.addRight(new a("8",5+o,n.getSymbolWidth("8")*(2/3),r>0?c.top+3:c.bottom-1,{scalex:2/3,scaley:2/3})),c.top+=2}return c},t.exports=r},function(t,e,i){"use strict";var r,s=i(4),n=i(3),a=i(2),c=i(0);r=function(t,e){if(!t.accidentals||0===t.accidentals.length)return null;var i=new s(t,0,10,"staff-extra",e);i.isKeySig=!0;var r=0;return c.each(t.accidentals,function(t){var e="sharp"===t.acc?"accidentals.sharp":"natural"===t.acc?"accidentals.nat":"accidentals.flat";i.addRight(new a(e,r,n.getSymbolWidth(e),t.verticalPos,{thickness:n.symbolHeightInPitches(e)})),r+=n.getSymbolWidth(e)+2},this),i},t.exports=r},function(t,e,i){"use strict";var r,s=i(4),n=i(3),a=i(2);r=function(t,e){var i=new s(t,0,10,"staff-extra",e);if("specified"===t.type)for(var r=0,c=0;c<t.value.length;c++)if(0!==c&&(i.addRight(new a("+",r+1,n.getSymbolWidth("+"),6,{thickness:n.symbolHeightInPitches("+")})),r+=n.getSymbolWidth("+")+2),t.value[c].den){for(var o=0,h=0;h<t.value[c].num.length;h++)o+=n.getSymbolWidth(t.value[c].num.charAt(h));var l=0;for(h=0;h<t.value[c].num.length;h++)l+=n.getSymbolWidth(t.value[c].den.charAt(h));var d=Math.max(o,l);i.addRight(new a(t.value[c].num,r+(d-o)/2,o,8,{thickness:n.symbolHeightInPitches(t.value[c].num.charAt(0))})),i.addRight(new a(t.value[c].den,r+(d-l)/2,l,4,{thickness:n.symbolHeightInPitches(t.value[c].den.charAt(0))})),r+=d}else{for(var u=0,f=0;f<t.value[c].num.length;f++)u+=n.getSymbolWidth(t.value[c].num.charAt(f));i.addRight(new a(t.value[c].num,r,u,6,{thickness:n.symbolHeightInPitches(t.value[c].num.charAt(0))})),r+=u}else"common_time"===t.type?i.addRight(new a("timesig.common",0,n.getSymbolWidth("timesig.common"),6,{thickness:n.symbolHeightInPitches("timesig.common")})):"cut_time"===t.type?i.addRight(new a("timesig.cut",0,n.getSymbolWidth("timesig.cut"),6,{thickness:n.symbolHeightInPitches("timesig.cut")})):"tempus_imperfectum"===t.type?i.addRight(new a("timesig.imperfectum",0,n.getSymbolWidth("timesig.imperfectum"),6,{thickness:n.symbolHeightInPitches("timesig.imperfectum")})):"tempus_imperfectum_prolatio"===t.type?i.addRight(new a("timesig.imperfectum2",0,n.getSymbolWidth("timesig.imperfectum2"),6,{thickness:n.symbolHeightInPitches("timesig.imperfectum2")})):"tempus_perfectum"===t.type?i.addRight(new a("timesig.perfectum",0,n.getSymbolWidth("timesig.perfectum"),6,{thickness:n.symbolHeightInPitches("timesig.perfectum")})):"tempus_perfectum_prolatio"===t.type?i.addRight(new a("timesig.perfectum2",0,n.getSymbolWidth("timesig.perfectum2"),6,{thickness:n.symbolHeightInPitches("timesig.perfectum2")})):console.log("time signature:",t);return i},t.exports=r},function(t,e,i){"use strict";var r,s=i(30),n=i(31),a=i(3),c=i(2),o=i(14);!function(){var t=function(t,e,i,r,s){function n(t,e){var n="down"===s?function(){if(0===r.heads.length)return 2;for(var t=r.heads[0].pitch,e=1;e<r.heads.length;e++)t=Math.min(t,r.heads[e].pitch);return t}()+1:function(){if(0===r.heads.length)return 10;for(var t=r.heads[0].pitch,e=1;e<r.heads.length;e++)t=Math.max(t,r.heads[e].pitch);return t}()+9;"down"!==s&&1===e&&n--;var o=i/2;o+="down"===s?-5:3;for(var h=0;h<e;h++)n-=1,r.addChild(new c(t,o,a.getSymbolWidth(t),n))}for(var o=0;o<t.length;o++)switch(t[o]){case"/":n("flags.ugrace",1);break;case"//":n("flags.ugrace",2);break;case"///":n("flags.ugrace",3);break;case"////":n("flags.ugrace",4)}};(r=function(){this.startDiminuendoX=void 0,this.startCrescendoX=void 0,this.minTop=12,this.minBottom=0}).prototype.dynamicDecoration=function(t,e,i,r){for(var s,a,c=0;c<e.length;c++)switch(e[c]){case"diminuendo(":this.startDiminuendoX=i,s=void 0;break;case"diminuendo)":s={start:this.startDiminuendoX,stop:i},this.startDiminuendoX=void 0;break;case"crescendo(":this.startCrescendoX=i,a=void 0;break;case"crescendo)":a={start:this.startCrescendoX,stop:i},this.startCrescendoX=void 0}s&&t.addOther(new n(s.start,s.stop,">",r)),a&&t.addOther(new n(a.start,a.stop,"<",r))},r.prototype.createDecoration=function(e,i,r,n,h,l,d,u,f,p){f||(f={ornamentPosition:"above",volumePosition:p?"above":"below",dynamicPosition:p?"above":"below"}),function(t,e,i,r){for(var n=0;n<e.length;n++)switch(e[n]){case"p":case"mp":case"pp":case"ppp":case"pppp":case"f":case"ff":case"fff":case"ffff":case"sfz":case"mf":var a=new s(i,e[n],r);t.addOther(a)}}(e,i,h,f.volumePosition),this.dynamicDecoration(e,i,h,f.dynamicPosition),t(i,0,n,h,d);var m=function(t,e,i,r,s,n,h,l){for(var d,u=0;u<e.length;u++){if("staccato"===e[u]||"tenuto"===e[u]||"accent"===e[u]){var f="scripts."+e[u];if("accent"===e[u]&&(f="scripts.sforzato"),d=void 0===d?"down"===h?i+2:l-2:"down"===h?d+2:d-2,"accent"===e[u])"up"===h?d--:d++;else switch(d){case 2:case 4:case 6:case 8:case 10:"up"===h?d--:d++}i>9&&d++;var p=r/2;"center"!==a.getSymbolAlign(f)&&(p-=a.getSymbolWidth(f)/2),s.addChild(new c(f,p,a.getSymbolWidth(f),d))}if("slide"===e[u]&&s.heads[0]){var m=s.heads[0].pitch,g=new c("",-n-15,0,(m-=2)-1),v=new c("",-n-5,0,m+1);s.addChild(g),s.addChild(v),t.addOther(new o(g,v,!1,!1,!1))}}return void 0===d&&(d=i),{above:d,below:s.bottom}}(e,i,r,n,h,l,d,u);m.above=Math.max(m.above,this.minTop);!function(t,e,i,r,s,n,o){function h(t,e){"above"===t?r.above+=e:r.below-=e}function l(t){var e;return"above"===t?(e=r.above)<n&&(e=n):(e=r.below)>o&&(e=o),e}function d(t,r){var s=l(r);i.addChild(new c(t,e/2,0,s+2,{type:"decoration",klass:"ornament",thickness:3})),h(r,5)}function u(t,r){var s=e/2;"center"!==a.getSymbolAlign(t)&&(s-=a.getSymbolWidth(t)/2);var n=a.symbolHeightInPitches(t)+1,o=l(r);o="above"===r?o+n/2:o-n/2,i.addChild(new c(t,s,a.getSymbolWidth(t),o,{klass:"ornament",thickness:a.symbolHeightInPitches(t)})),h(r,n)}for(var f={"+":"scripts.stopped",open:"scripts.open",snap:"scripts.snap",wedge:"scripts.wedge",thumb:"scripts.thumb",shortphrase:"scripts.shortphrase",mediumphrase:"scripts.mediumphrase",longphrase:"scripts.longphrase",trill:"scripts.trill",roll:"scripts.roll",irishroll:"scripts.roll",marcato:"scripts.umarcato",dmarcato:"scripts.dmarcato",umarcato:"scripts.umarcato",turn:"scripts.turn",uppermordent:"scripts.prall",pralltriller:"scripts.prall",mordent:"scripts.mordent",lowermordent:"scripts.mordent",downbow:"scripts.downbow",upbow:"scripts.upbow",fermata:"scripts.ufermata",invertedfermata:"scripts.dfermata",breath:",",coda:"scripts.coda",segno:"scripts.segno"},p=!1,m=0;m<t.length;m++)switch(t[m]){case"0":case"1":case"2":case"3":case"4":case"5":case"D.C.":case"D.S.":d(t[m],s),p=!0;break;case"fine":d("FINE",s),p=!0;break;case"+":case"open":case"snap":case"wedge":case"thumb":case"shortphrase":case"mediumphrase":case"longphrase":case"trill":case"roll":case"irishroll":case"marcato":case"dmarcato":case"turn":case"uppermordent":case"pralltriller":case"mordent":case"lowermordent":case"downbow":case"upbow":case"fermata":case"breath":case"umarcato":case"coda":case"segno":u(f[t[m]],s),p=!0;break;case"invertedfermata":u(f[t[m]],"below"),p=!0;break;case"mark":i.klass="mark"}}(i,n,h,m,f.ornamentPosition,this.minTop,this.minBottom);!function(t,e,i){for(var r=0;r<t.length;r++)switch(t[r]){case"arpeggio":for(var s=e.abcelem.minpitch-1;s<=e.abcelem.maxpitch;s+=2)e.addExtra(new c("scripts.arpeggio",2*-a.getSymbolWidth("scripts.arpeggio")-i,0,s+2,{klass:"ornament",thickness:a.symbolHeightInPitches("scripts.arpeggio")}))}}(i,h,l)}}(),t.exports=r},function(t,e,i){"use strict";i(1);var r=function(t,e,i){this.anchor=t,this.dec=e,"below"===i?this.volumeHeightBelow=5:this.volumeHeightAbove=5,this.pitch=void 0};r.prototype.setUpperAndLowerElements=function(t){this.volumeHeightAbove?this.pitch=t.volumeHeightAbove:this.pitch=t.volumeHeightBelow},r.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Dynamic Element y-coordinate not set.");t.printSymbol(this.anchor.x,this.pitch,this.dec,1,1,t.addClasses("decoration"))},t.exports=r},function(t,e,i){"use strict";var r=i(5),s=function(t,e,i,r){this.anchor1=t,this.anchor2=e,this.dir=i,"above"===r?this.dynamicHeightAbove=4:this.dynamicHeightBelow=4,this.pitch=void 0};s.prototype.setUpperAndLowerElements=function(t){this.dynamicHeightAbove?this.pitch=t.dynamicHeightAbove:this.pitch=t.dynamicHeightBelow},s.prototype.draw=function(t){void 0===this.pitch&&window.console.error("Crescendo Element y-coordinate not set.");var e=t.calcY(this.pitch)+4;"<"===this.dir?(this.drawLine(t,e+4,e),this.drawLine(t,e+4,e+8)):(this.drawLine(t,e,e+4),this.drawLine(t,e+8,e+4))},s.prototype.drawLine=function(t,e,i){var s=this.anchor1?this.anchor1.x:0,n=this.anchor2?this.anchor2.x:800,a=r("M %f %f L %f %f",s,e,n,i);t.printPath({path:a,stroke:"#000000",class:t.addClasses("decoration")})},t.exports=s},function(t,e,i){"use strict";var r=i(5),s=function(t,e,i){this.text=t,this.anchor1=e,this.anchor2=i,this.endingHeightAbove=5,this.pitch=void 0};s.prototype.setUpperAndLowerElements=function(t){this.pitch=t.endingHeightAbove-2},s.prototype.draw=function(t,e,i){void 0===this.pitch&&window.console.error("Ending Element y-coordinate not set.");var s,n=t.calcY(this.pitch);this.anchor1&&(e=this.anchor1.x+this.anchor1.w,s=r("M %f %f L %f %f",e,n,e,n+20),t.printPath({path:s,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")}),t.renderText(e+5,t.calcY(this.pitch-.5),this.text,"repeatfont","ending","start")),this.anchor2&&(i=this.anchor2.x,s=r("M %f %f L %f %f",i,n,i,n+20),t.printPath({path:s,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})),s=r("M %f %f L %f %f",e,n,i,n),t.printPath({path:s,stroke:"#000000",fill:"#000000",class:t.addClasses("ending")})},t.exports=s},function(t,e,i){"use strict";var r=i(1),s=function(){this.voices=[],this.staffs=[],this.brace=void 0};s.prototype.setLimit=function(t,e){e.specialY[t]&&(e.staff.specialY[t]?e.staff.specialY[t]=Math.max(e.staff.specialY[t],e.specialY[t]):e.staff.specialY[t]=e.specialY[t])},s.prototype.addVoice=function(t,e,i){var r=this.voices.length;this.voices[r]=t,this.staffs[e]?this.staffs[e].voices.push(r):this.staffs[this.staffs.length]={top:10,bottom:2,lines:i,voices:[r],specialY:{tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0}},t.staff=this.staffs[e]},s.prototype.setStaffLimits=function(t){t.staff.top=Math.max(t.staff.top,t.top),t.staff.bottom=Math.min(t.staff.bottom,t.bottom),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},s.prototype.setUpperAndLowerElements=function(t){for(var e,i=0;i<this.staffs.length;i++){var s=this.staffs[i],n={tempoHeightAbove:0,partHeightAbove:0,volumeHeightAbove:0,dynamicHeightAbove:0,endingHeightAbove:0,chordHeightAbove:0,lyricHeightAbove:0,lyricHeightBelow:0,chordHeightBelow:0,volumeHeightBelow:0,dynamicHeightBelow:0};0,s.specialY.lyricHeightAbove&&(s.top+=s.specialY.lyricHeightAbove,n.lyricHeightAbove=s.top),s.specialY.chordHeightAbove&&(s.top+=s.specialY.chordHeightAbove,n.chordHeightAbove=s.top),s.specialY.endingHeightAbove&&(s.specialY.chordHeightAbove?s.top+=2:s.top+=s.specialY.endingHeightAbove,n.endingHeightAbove=s.top),s.specialY.dynamicHeightAbove&&s.specialY.volumeHeightAbove?(s.top+=Math.max(s.specialY.dynamicHeightAbove,s.specialY.volumeHeightAbove),n.dynamicHeightAbove=s.top,n.volumeHeightAbove=s.top):s.specialY.dynamicHeightAbove?(s.top+=s.specialY.dynamicHeightAbove,n.dynamicHeightAbove=s.top):s.specialY.volumeHeightAbove&&(s.top+=s.specialY.volumeHeightAbove,n.volumeHeightAbove=s.top),s.specialY.partHeightAbove&&(s.top+=s.specialY.partHeightAbove,n.partHeightAbove=s.top),s.specialY.tempoHeightAbove&&(s.top+=s.specialY.tempoHeightAbove,n.tempoHeightAbove=s.top),s.specialY.lyricHeightBelow&&(n.lyricHeightBelow=s.bottom,s.bottom-=s.specialY.lyricHeightBelow),s.specialY.chordHeightBelow&&(n.chordHeightBelow=s.bottom,s.bottom-=s.specialY.chordHeightBelow),s.specialY.volumeHeightBelow&&s.specialY.dynamicHeightBelow?(n.volumeHeightBelow=s.bottom,n.dynamicHeightBelow=s.bottom,s.bottom-=Math.max(s.specialY.volumeHeightBelow,s.specialY.dynamicHeightBelow)):s.specialY.volumeHeightBelow?(n.volumeHeightBelow=s.bottom,s.bottom-=s.specialY.volumeHeightBelow):s.specialY.dynamicHeightBelow&&(n.dynamicHeightBelow=s.bottom,s.bottom-=s.specialY.dynamicHeightBelow);for(var a=0;a<s.voices.length;a++){this.voices[s.voices[a]].setUpperAndLowerElements(n)}if(void 0!==e){var c=e+(s.top-10),o=t.spacing.systemStaffSeparation/r.STEP-c;o>0&&(s.top+=o)}e=2-s.bottom}},s.prototype.finished=function(){for(var t=0;t<this.voices.length;t++)if(!this.voices[t].layoutEnded())return!1;return!0},s.prototype.layout=function(t,e,i){var r,s=0,n=1e3,a=function(t,e,i){for(var r=t.padding.left,s=0,n=0;n<e.length;n++)if(e[n].header){var a=t.getTextSize(e[n].header,"voicefont","");s=Math.max(s,a.width)}return s&&(s+=t.getTextSize("A","voicefont","").width),r+=s,i&&(i.setLocation(r),r+=i.getWidth()),r}(e,this.voices,this.brace);this.startx=a;var c=0;for(i&&console.log("init layout",t),r=0;r<this.voices.length;r++)this.voices[r].beginLayout(a);for(var o=0;!this.finished();){for(c=null,r=0;r<this.voices.length;r++)this.voices[r].layoutEnded()||c&&!(this.voices[r].getDurationIndex()<c)||(c=this.voices[r].getDurationIndex());var h=[],l=[];for(r=0;r<this.voices.length;r++){this.voices[r].getDurationIndex()-c>1e-7?l.push(this.voices[r]):h.push(this.voices[r])}o=0;var d=0;for(r=0;r<h.length;r++)h[r].getNextX()>a&&(a=h[r].getNextX(),o=h[r].getSpacingUnits(),d=h[r].spacingduration);for(s+=o,n=Math.min(n,o),i&&console.log("currentduration: ",c,s,n),r=0;r<h.length;r++){var u=h[r].layoutOneItem(a,t),f=u-a;if(f>0){a=u;for(var p=0;p<r;p++)h[p].shiftRight(f)}}for(r=0;r<l.length;r++)l[r].spacingduration-=d,l[r].updateNextX(a,t);for(r=0;r<h.length;r++){h[r].updateIndices()}}for(r=0;r<this.voices.length;r++)this.voices[r].getNextX()>a&&(a=this.voices[r].getNextX(),o=this.voices[r].getSpacingUnits());for(s+=o,this.w=a,r=0;r<this.voices.length;r++)this.voices[r].w=this.w;return{spacingUnits:s,minSpace:n}},s.prototype.calcHeight=function(){for(var t=0,e=0;e<this.voices.length;e++){var i=this.voices[e].staff;this.voices[e].duplicate||(t+=i.top,i.bottom<0&&(t+=-i.bottom))}return t},s.prototype.draw=function(t){t.addInvisibleMarker("abcjs-top-of-system");for(var e,i,s=t.y,n=0;n<this.staffs.length;n++){var a=this.staffs[n];t.moveY(r.STEP,a.top),a.absoluteY=t.y,a.bottom<0&&t.moveY(r.STEP,-a.bottom)}var c=0;t.measureNumber=null,t.noteNumber=null;for(var o=0;o<this.voices.length;o++){var h=this.voices[o].staff;t.y=h.absoluteY,t.voiceNumber=o,this.voices[o].duplicate||(e||(e=t.calcY(10)),i=t.calcY(2),0!==h.lines&&(t.measureNumber=null,t.noteNumber=null,t.printStave(this.startx,this.w,h.lines))),this.voices[o].draw(t,c),t.measureNumber=null,t.noteNumber=null,this.voices[o].duplicate||(c=t.calcY(2)),this.brace&&o===this.brace.length-1&&this.brace&&this.brace.draw(t,e,i)}t.measureNumber=null,t.noteNumber=null,this.staffs.length>1&&t.printStem(this.startx,.6,e,i),t.y=s},t.exports=s},function(t,e,i){"use strict";var r,s=i(4),n=i(2);(r=function(t,e,i){this.tempo=t,this.tuneNumber=e,this.tempoHeightAbove=5,this.pitch=void 0,this.tempo.duration&&!this.tempo.suppressBpm&&(this.note=this.createNote(i,t,e))}).prototype.setUpperAndLowerElements=function(t){if(this.pitch=t.tempoHeightAbove,this.top=t.tempoHeightAbove,this.bottom=t.tempoHeightAbove,this.note){var e=this.pitch-5+1;this.note.top=e,this.note.bottom=e;for(var i=0;i<this.note.children.length;i++){var r=this.note.children[i];r.top+=e,r.bottom+=e,r.pitch+=e,void 0!==r.pitch2&&(r.pitch2+=e)}}},r.prototype.setX=function(t){this.x=t},r.prototype.createNote=function(t,e,i){var r,a,c,o=e.duration[0],h=new s(e,o,1,"tempo",i);o<=1/32?(c="noteheads.quarter",a="flags.u32nd",r=0):o<=1/16?(c="noteheads.quarter",a="flags.u16th",r=0):o<=3/32?(c="noteheads.quarter",a="flags.u16nd",r=1):o<=1/8?(c="noteheads.quarter",a="flags.u8th",r=0):o<=3/16?(c="noteheads.quarter",a="flags.u8th",r=1):o<=.25?(c="noteheads.quarter",r=0):o<=3/8?(c="noteheads.quarter",r=1):o<=.5?(c="noteheads.half",r=0):o<=.75?(c="noteheads.half",r=1):o<=1?(c="noteheads.whole",r=0):o<=1.5?(c="noteheads.whole",r=1):o<=2?(c="noteheads.dbl",r=0):(c="noteheads.dbl",r=1);var l,d=t(h,c,{verticalPos:0},"up",0,0,a,r,0,.75).notehead;if(h.addHead(d),"noteheads.whole"!==c&&"noteheads.dbl"!==c){var u=d.dx+d.w;l=new n(null,u,0,.25,{type:"stem",pitch2:5.25,linewidth:-.6}),h.addExtra(l)}return h},r.prototype.draw=function(t){var e=this.x;void 0===this.pitch&&window.console.error("Tempo Element y-coordinate not set.");var i=t.calcY(this.pitch);if(this.tempo.preString){var r=t.renderText(e,i,this.tempo.preString,"tempofont","tempo","start").getBBox().width;e+=r+r/this.tempo.preString.length}if(this.note){this.note&&this.note.setX(e);for(var s=0;s<this.note.children.length;s++)this.note.children[s].draw(t,e);e+=this.note.w+5;var n="= "+this.tempo.bpm,a=t.renderText(e,i,n,"tempofont","tempo","start").getBBox().width;e+=a+a/n.length}this.tempo.postString&&t.renderText(e,i,this.tempo.postString,"tempofont","tempo","start")},t.exports=r},function(t,e,i){"use strict";var r,s=i(5);!function(){function t(t,e,i,r,n,a){var c=s("M %f %f L %f %f",e,i,r,n);t.printPath({path:c,stroke:"#000000",class:t.addClasses("triplet d"+a)})}(r=function(t,e,i){this.anchor1=e,this.number=t,this.duration=(""+e.parent.durationClass).replace(/\./,"-"),this.middleElems=[],this.flatBeams=i.flatBeams}).prototype.isClosed=function(){return this.anchor2},r.prototype.middleNote=function(t){this.middleElems.push(t)},r.prototype.setCloseAnchor=function(t){this.anchor2=t,this.anchor1.parent.beam&&(this.endingHeightAbove=4)},r.prototype.setUpperAndLowerElements=function(){},r.prototype.layout=function(){if(this.anchor1&&this.anchor2)if(this.hasBeam=this.anchor1.parent.beam&&this.anchor1.parent.beam===this.anchor2.parent.beam,this.hasBeam){var t=this.anchor1.parent.beam,e=t.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;this.yTextPos=t.heightAtMidpoint(e,this.anchor2.x),this.yTextPos+=t.isAbove()?4:-4,t.isAbove()&&(this.endingHeightAbove=4)}else{this.startNote=Math.max(this.anchor1.parent.top,9)+4,this.endNote=Math.max(this.anchor2.parent.top,9)+4,"rest"===this.anchor1.parent.type&&"rest"!==this.anchor2.parent.type?this.startNote=this.endNote:"rest"===this.anchor2.parent.type&&"rest"!==this.anchor1.parent.type&&(this.endNote=this.startNote);for(var i=0,r=0;r<this.middleElems.length;r++)i=Math.max(i,this.middleElems[r].top);((i+=4)>this.startNote||i>this.endNote)&&(this.startNote=i,this.endNote=i),this.flatBeams&&(this.startNote=Math.max(this.startNote,this.endNote),this.endNote=Math.max(this.startNote,this.endNote)),this.yTextPos=this.startNote+(this.endNote-this.startNote)/2}delete this.middleElems,delete this.flatBeams},r.prototype.draw=function(e){var i;if(this.hasBeam){var r=this.anchor1.parent.beam.isAbove()?this.anchor1.x+this.anchor1.w:this.anchor1.x;i=this.anchor1.parent.beam.xAtMidpoint(r,this.anchor2.x)}else i=this.anchor1.x+(this.anchor2.x+this.anchor2.w-this.anchor1.x)/2,function(e,i,r,s,n,a){r=e.calcY(r),n=e.calcY(n);t(e,i,r,i,r+5,a),t(e,s,n,s,n+5,a);var c=i+(s-i)/2,o=(n-r)/(s-i),h=c-8;t(e,i,r,h,r+(h-i)*o,a);var l=c+8;t(e,l,r+(l-i)*o,s,n,a)}(e,this.anchor1.x,this.startNote,this.anchor2.x+this.anchor2.w,this.endNote,this.duration);e.renderText(i,e.calcY(this.yTextPos),""+this.number,"tripletfont",e.addClasses("triplet d"+this.duration),"middle",!0)}}(),t.exports=r},function(t,e,i){"use strict";var r=i(0),s=function(t,e){this.children=[],this.beams=[],this.otherchildren=[],this.w=0,this.duplicate=!1,this.voicenumber=t,this.voicetotal=e,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}};function n(t){return"rest"===t.type&&!(!t.abcelem||!t.abcelem.rest||"spacer"===t.abcelem.rest.type)}s.prototype.addChild=function(t){if("bar"===t.type){for(var e=!0,i=0;e&&i<this.children.length;i++)"staff-extra"!==this.children[i].type&&(e=!1);e||(this.beams.push("bar"),this.otherchildren.push("bar"))}this.children[this.children.length]=t,this.setRange(t)},s.prototype.setLimit=function(t,e){var i=e.specialY;i||(i=e),i[t]&&(this.specialY[t]?this.specialY[t]=Math.max(this.specialY[t],i[t]):this.specialY[t]=i[t])},s.prototype.moveDecorations=function(t){for(var e=0;e<t.elems.length;e++){var i=t.elems[e];if(i.top)for(var r=t.yAtNote(i),s=0;s<i.children.length;s++){var n=i.children[s];if("ornament"===n.klass&&n.bottom-1.5<r){var a=r-n.bottom+1.5;n.bottom+=a,n.top+=a,n.pitch+=a,r=i.top=n.top}}}},s.prototype.adjustRange=function(t){void 0!==t.bottom&&(this.bottom=Math.min(this.bottom,t.bottom)),void 0!==t.top&&(this.top=Math.max(this.top,t.top))},s.prototype.setRange=function(t){this.adjustRange(t),this.setLimit("tempoHeightAbove",t),this.setLimit("partHeightAbove",t),this.setLimit("volumeHeightAbove",t),this.setLimit("dynamicHeightAbove",t),this.setLimit("endingHeightAbove",t),this.setLimit("chordHeightAbove",t),this.setLimit("lyricHeightAbove",t),this.setLimit("lyricHeightBelow",t),this.setLimit("chordHeightBelow",t),this.setLimit("volumeHeightBelow",t),this.setLimit("dynamicHeightBelow",t)},s.prototype.setUpperAndLowerElements=function(t){var e;for(e=0;e<this.children.length;e++){(i=this.children[e]).setUpperAndLowerElements(t)}for(e=0;e<this.otherchildren.length;e++){var i;"string"!=typeof(i=this.otherchildren[e])&&i.setUpperAndLowerElements(t)}},s.prototype.addOther=function(t){this.otherchildren.push(t),this.setRange(t)},s.prototype.addBeam=function(t){this.beams.push(t)},s.prototype.updateIndices=function(){this.layoutEnded()||(this.durationindex+=this.children[this.i].duration,0===this.children[this.i].duration&&(this.durationindex=Math.round(64*this.durationindex)/64),this.i++)},s.prototype.layoutEnded=function(){return this.i>=this.children.length},s.prototype.getDurationIndex=function(){return this.durationindex-(this.children[this.i]&&this.children[this.i].duration>0?0:5e-7)},s.prototype.getSpacingUnits=function(){return Math.sqrt(8*this.spacingduration)},s.prototype.getNextX=function(){return Math.max(this.minx,this.nextx)},s.prototype.beginLayout=function(t){this.i=0,this.durationindex=0,this.startx=t,this.minx=t,this.nextx=t,this.spacingduration=0},s.prototype.layoutOneItem=function(t,e){var i=this.children[this.i];if(!i)return 0;var r=t-this.minx;return r<i.getExtraWidth()&&(t+=i.getExtraWidth()-r),i.setX(t),this.spacingduration=i.duration,this.minx=t+i.getMinWidth(),this.i!==this.children.length-1&&(this.minx+=i.minspacing),this.updateNextX(t,e),t},s.prototype.updateNextX=function(t,e){this.nextx=t+e*Math.sqrt(8*this.spacingduration)},s.prototype.shiftRight=function(t){var e=this.children[this.i];e&&(e.setX(e.x+t),this.minx+=t,this.nextx+=t)},s.prototype.draw=function(t,e){var i=this.w-1;if(t.staffbottom=this.staff.bottom,t.measureNumber=null,t.noteNumber=null,this.header){var s=14-(this.voicenumber+1)*(12/(this.voicetotal+1));t.renderText(t.padding.left,t.calcY(s),this.header,"voicefont","staff-extra voice-name","start")}for(var a=0,c=this.children.length;a<c;a++){var o=this.children[a],h=!1;"staff-extra"!==o.type&&null===t.measureNumber&&(t.measureNumber=0,t.noteNumber=0,h=!0),o.draw(t,this.barto||a===c-1?e:0),("note"===o.type||n(o))&&t.noteNumber++,"bar"!==o.type||h||(t.measureNumber++,t.noteNumber=0)}t.measureNumber=0,t.noteNumber=0,r.each(this.beams,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t)}),t.measureNumber=0,t.noteNumber=0;var l=this;r.each(this.otherchildren,function(e){"bar"===e?(t.measureNumber++,t.noteNumber=0):e.draw(t,l.startx+10,i)})},s.prototype.layoutBeams=function(){for(var t=0;t<this.beams.length;t++)if(this.beams[t].layout){this.beams[t].layout(),this.moveDecorations(this.beams[t]);for(var e=0;e<this.beams[t].elems.length;e++)this.adjustRange(this.beams[t].elems[e])}for(t=0;t<this.otherchildren.length;t++){var i=this.otherchildren[t];i.layout&&i.layout()}this.staff.top=Math.max(this.staff.top,this.top),this.staff.bottom=Math.min(this.staff.bottom,this.bottom)},t.exports=s},function(t,e,i){"use strict";var r=i(3),s=i(1),n=i(5),a=i(38),c=function(t,e,i){this.paper=new a(t),this.controller=null,this.space=3*s.SPACE,this.padding={},this.doRegression=e,this.shouldAddClasses=i,this.doRegression&&(this.regressionLines=[]),this.reset()};function o(t,e,i){var r=i;return"f"===t&&"f"===e&&(r=2*r/3),"p"===t&&"p"===e&&(r=5*r/6),"f"===t&&"z"===e&&(r=5*r/8),r}c.prototype.reset=function(){this.paper.clear(),this.y=0,this.abctune=null,this.lastM=null,this.ingroup=!1,this.path=null,this.isPrint=!1,this.initVerticalSpace(),this.doRegression&&(this.regressionLines=[])},c.prototype.newTune=function(t){this.abctune=t,this.setVerticalSpace(t.formatting),this.measureNumber=null,this.noteNumber=null,this.setPrintMode("print"===t.media),this.setPadding(t)},c.prototype.createElemSet=function(){return this.paper.openGroup()},c.prototype.closeElemSet=function(){return this.paper.closeGroup()},c.prototype.setPrintMode=function(t){this.isPrint=t},c.prototype.setPaperSize=function(t,e,i){var r=(t+this.padding.right)*e,s=(this.y+this.padding.bottom)*e;this.isPrint&&(s=Math.max(s,1056)),this.doRegression&&this.regressionLines.push("PAPER SIZE: ("+r+","+s+")");var n="Sheet Music";this.abctune&&this.abctune.metaText&&this.abctune.metaText.title&&(n+=' for "'+this.abctune.metaText.title+'"'),this.paper.setTitle(n);var a={overflow:"hidden"};"resize"===i?this.paper.setResponsiveWidth(r,s):(a.width="",a.height=s+"px",e<1?(a.width=r+"px",this.paper.setSize(r/e,s/e)):this.paper.setSize(r,s)),this.paper.setScale(e),this.paper.setParentStyles(a)},c.prototype.setPaddingOverride=function(t){this.paddingOverride={top:t.paddingtop,bottom:t.paddingbottom,right:t.paddingright,left:t.paddingleft}},c.prototype.setPadding=function(t){function e(e,i,r,s,n){void 0!==t.formatting[r]?e.padding[i]=t.formatting[r]:void 0!==e.paddingOverride[i]?e.padding[i]=e.paddingOverride[i]:e.isPrint?e.padding[i]=s:e.padding[i]=n}e(this,"top","topmargin",38,15),e(this,"bottom","botmargin",38,15),e(this,"left","leftmargin",68,15),e(this,"right","rightmargin",68,15)},c.prototype.adjustNonScaledItems=function(t){this.padding.top/=t,this.padding.bottom/=t,this.padding.left/=t,this.padding.right/=t,this.abctune.formatting.headerfont.size/=t,this.abctune.formatting.footerfont.size/=t},c.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:30.67,words:0}},c.prototype.setVerticalSpace=function(t){void 0!==t.staffsep&&(this.spacing.staffSeparation=4*t.staffsep/3),void 0!==t.composerspace&&(this.spacing.composer=4*t.composerspace/3),void 0!==t.partsspace&&(this.spacing.parts=4*t.partsspace/3),void 0!==t.textspace&&(this.spacing.text=4*t.textspace/3),void 0!==t.musicspace&&(this.spacing.music=4*t.musicspace/3),void 0!==t.titlespace&&(this.spacing.title=4*t.titlespace/3),void 0!==t.sysstaffsep&&(this.spacing.systemStaffSeparation=4*t.sysstaffsep/3),void 0!==t.subtitlespace&&(this.spacing.subtitle=4*t.subtitlespace/3),void 0!==t.topspace&&(this.spacing.top=4*t.topspace/3),void 0!==t.vocalspace&&(this.spacing.vocal=4*t.vocalspace/3),void 0!==t.wordsspace&&(this.spacing.words=4*t.wordsspace/3)},c.prototype.topMargin=function(t){this.moveY(this.padding.top)},c.prototype.addMusicPadding=function(){this.moveY(this.spacing.music)},c.prototype.addStaffPadding=function(t,e){var i=-(t.staffs[t.staffs.length-1].bottom-2),r=(e.staffs[0].top-10+i)*s.STEP;r<this.spacing.staffSeparation&&this.moveY(this.spacing.staffSeparation-r)},c.prototype.engraveTopText=function(t,e){if(e.metaText.header&&this.isPrint){var i=this.getTextSize("XXXX","headerfont","abcjs-header abcjs-meta-top").height;this.y-=i,this.outputTextIf(this.padding.left,e.metaText.header.left,"headerfont","header meta-top",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.header.center,"headerfont","header meta-top",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.header.right,"headerfont","header meta-top",0,null,"end"),this.y+=i}if(this.isPrint&&this.moveY(this.spacing.top),this.outputTextIf(this.padding.left+t/2,e.metaText.title,"titlefont","title meta-top",this.spacing.title,0,"middle"),e.lines[0]&&this.outputTextIf(this.padding.left+t/2,e.lines[0].subtitle,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle"),e.metaText.rhythm||e.metaText.origin||e.metaText.composer){this.moveY(this.spacing.composer);var r=this.outputTextIf(this.padding.left,e.metaText.rhythm,"infofont","meta-top",0,null,"start"),s="";if(e.metaText.composer&&(s+=e.metaText.composer),e.metaText.origin&&(s+=" ("+e.metaText.origin+")"),s.length>0){var n=this.outputTextIf(this.padding.left+t,s,"composerfont","meta-top",0,null,"end");this.moveY(n[1])}else this.moveY(r[1]);this.moveY(-6)}this.outputTextIf(this.padding.left+t,e.metaText.author,"composerfont","meta-top",0,0,"end"),this.outputTextIf(this.padding.left,e.metaText.partOrder,"partsfont","meta-bottom",0,0,"start")},c.prototype.engraveExtraText=function(t,e){if(this.lineNumber=null,this.measureNumber=null,this.noteNumber=null,this.voiceNumber=null,e.metaText.unalignedWords){var i=this.getFontAndAttr("wordsfont","meta-bottom"),r=this.getTextSize("i","wordsfont","meta-bottom");e.metaText.unalignedWords.length>0&&this.moveY(this.spacing.words,1);for(var n=0;n<e.metaText.unalignedWords.length;n++)if("string"==typeof e.metaText.unalignedWords[n])this.outputTextIf(this.padding.left+s.INDENT,e.metaText.unalignedWords[n],"wordsfont","meta-bottom",0,0,"start");else{for(var a=0,c=0,o=0;o<e.metaText.unalignedWords[n].length;o++){var h=e.metaText.unalignedWords[n][o].font?e.metaText.unalignedWords[n][o].font:"wordsfont",l=this.renderText(this.padding.left+s.INDENT+c,this.y,e.metaText.unalignedWords[n][o].text,h,"meta-bottom",!1).getBBox();a=Math.max(a,l.height),c+=l.width," "===e.metaText.unalignedWords[n][o].text[e.metaText.unalignedWords[n][o].text.length-1]&&(c+=r.width)}this.moveY(a,1)}e.metaText.unalignedWords.length>0&&this.moveY(i.font.size,2)}var d="";e.metaText.book&&(d+="Book: "+e.metaText.book+"\n"),e.metaText.source&&(d+="Source: "+e.metaText.source+"\n"),e.metaText.discography&&(d+="Discography: "+e.metaText.discography+"\n"),e.metaText.notes&&(d+="Notes: "+e.metaText.notes+"\n"),e.metaText.transcription&&(d+="Transcription: "+e.metaText.transcription+"\n"),e.metaText.history&&(d+="History: "+e.metaText.history+"\n"),e.metaText["abc-copyright"]&&(d+="Copyright: "+e.metaText["abc-copyright"]+"\n"),e.metaText["abc-creator"]&&(d+="Creator: "+e.metaText["abc-creator"]+"\n"),e.metaText["abc-edited-by"]&&(d+="Edited By: "+e.metaText["abc-edited-by"]+"\n"),this.outputTextIf(this.padding.left,d,"historyfont","meta-bottom",this.spacing.info,0,"start"),e.metaText.footer&&this.isPrint&&(this.outputTextIf(this.padding.left,e.metaText.footer.left,"footerfont","header meta-bottom",0,null,"start"),this.outputTextIf(this.padding.left+t/2,e.metaText.footer.center,"footerfont","header meta-bottom",0,null,"middle"),this.outputTextIf(this.padding.left+t,e.metaText.footer.right,"footerfont","header meta-bottom",0,null,"end"))},c.prototype.outputFreeText=function(t){if(""===t){var e=this.getFontAndAttr("textfont","defined-text");this.moveY(2*e.attr["font-size"])}else if("string"==typeof t)this.outputTextIf(this.padding.left,t,"textfont","defined-text",0,1,"start");else{for(var i="",r=!1,s=0;s<t.length;s++)t[s].font&&(i+="FONT("+t[s].font+")"),i+=t[s].text,t[s].center&&(r=!0);var n=r?"middle":"start",a=r?this.controller.width/2:this.padding.left;this.outputTextIf(a,i,"textfont","defined-text",0,1,n)}},c.prototype.outputSubtitle=function(t,e){this.outputTextIf(this.padding.left+t/2,e,"subtitlefont","text meta-top",this.spacing.subtitle,0,"middle")},c.prototype.beginGroup=function(){this.path=[],this.lastM=[0,0],this.ingroup=!0},c.prototype.addPath=function(t){if(0!==(t=t||[]).length){t[0][0]="m",t[0][1]-=this.lastM[0],t[0][2]-=this.lastM[1],this.lastM[0]+=t[0][1],this.lastM[1]+=t[0][2],this.path.push(t[0]);for(var e=1,i=t.length;e<i;e++)"m"===t[e][0]&&(this.lastM[0]+=t[e][1],this.lastM[1]+=t[e][2]),this.path.push(t[e])}},c.prototype.endGroup=function(t){if(this.ingroup=!1,0===this.path.length)return null;for(var e="",i=0;i<this.path.length;i++)e+=this.path[i].join(" ");var r=this.paper.path({path:e,stroke:"none",fill:"#000000",class:this.addClasses(t)});return this.path=[],this.doRegression&&this.addToRegression(r),r},c.prototype.printStaveLine=function(t,e,i,r){var s="staff";void 0!==r&&(s+=" "+r);var a=.35,c="#000000";var o=this.calcY(i),h=n("M %f %f L %f %f L %f %f L %f %f z",t,o-a,e,o-a,e,o+a,t,o+a),l=this.paper.pathToBack({path:h,stroke:"none",fill:c,class:this.addClasses(s)});return this.doRegression&&this.addToRegression(l),l},c.prototype.printStem=function(t,e,i,r){if(e<0){var s=r;r=i,i=s}var n="#000000";~~t===t&&(t+=.05);var a=[["M",t,i],["L",t,r],["L",t+e,r],["L",t+e,i],["z"]];if(!this.ingroup){for(var c="",o=0;o<a.length;o++)c+=a[o].join(" ");var h=this.paper.pathToBack({path:c,stroke:"none",fill:n,class:this.addClasses("stem")});return this.doRegression&&this.addToRegression(h),h}this.addPath(a)},c.prototype.printSymbol=function(t,e,i,s,n,a){var c,h;if(!i)return null;if(i.length>1&&i.indexOf(".")<0){this.paper.openGroup();for(var l=0,d=0;d<i.length;d++){var u=i.charAt(d);h=r.getYCorr(u),(c=r.printSymbol(t+l,this.calcY(e+h),u,this.paper,a))?(this.doRegression&&this.addToRegression(c),d<i.length-1&&(l+=o(u,i.charAt(d+1),r.getSymbolWidth(u)))):this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return this.paper.closeGroup()}if(h=r.getYCorr(i),this.ingroup)this.addPath(r.getPathForSymbol(t,this.calcY(e+h),i,s,n));else{if(c=r.printSymbol(t,this.calcY(e+h),i,this.paper,a))return this.doRegression&&this.addToRegression(c),c;this.renderText(t,this.y,"no symbol:"+i,"debugfont","debug-msg","start")}return null},c.prototype.scaleExistingElem=function(t,e,i,r,s){this.paper.setAttributeOnElement(t,{style:"transform:scale("+e+","+i+");transform-origin:"+r+"px "+s+"px;"})},c.prototype.printPath=function(t){var e=this.paper.path(t);return this.doRegression&&this.addToRegression(e),e},c.prototype.drawBrace=function(t,e,i){var r=i-e,s=[7.5,-8,21,0,18.5,-10.5,7.5],a=[0,r/5.5,r/3.14,r/2,r/2.93,r/4.88,0],c=n("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+s[0],e+a[0],t+s[1],e+a[1],t+s[2],e+a[2],t+s[3],e+a[3],t+s[4],e+a[4],t+s[5],e+a[5],t+s[6],e+a[6]),o=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});c=n("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t+(s=[0,17.5,-7.5,6.6,-5,20,0])[0],e+(a=[r/2,r/1.46,r/1.22,r,r/1.19,r/1.42,r/2])[0],t+s[1],e+a[1],t+s[2],e+a[2],t+s[3],e+a[3],t+s[4],e+a[4],t+s[5],e+a[5],t+s[6],e+a[6]);var h=this.paper.path({path:c,stroke:"#000000",fill:"#000000",class:this.addClasses("brace")});return this.doRegression&&(this.addToRegression(o),this.addToRegression(h)),o+h},c.prototype.drawArc=function(t,e,i,r,s,a,c){var o=c?1.2:1.5;t+=6,e+=4,i+=s?o:-o,r+=s?o:-o;var h=this.calcY(i),l=this.calcY(r),d=e-t,u=l-h,f=Math.sqrt(d*d+u*u),p=d/f,m=u/f,g=f/3.5,v=c?10:25,b=(s?-1:1)*Math.min(v,Math.max(4,g)),y=t+g*p-b*m,w=h+g*m+b*p,x=e-g*p-b*m,k=l-g*m+b*p,A=n("M %f %f C %f %f %f %f %f %f C %f %f %f %f %f %f z",t,h,y,w,x,k,e,l,x-2*m,k+2*p,y-2*m,w+2*p,t,h);a?a+=" slur":a="slur";var T=this.paper.path({path:A,stroke:"none",fill:"#000000",class:this.addClasses(a)});return this.doRegression&&this.addToRegression(T),T},c.prototype.calcY=function(t){return this.y-t*s.STEP},c.prototype.printStave=function(t,e,i){var r="top-line";if(this.paper.openGroup({prepend:!0}),1!==i){for(var s=i-1;s>=0;s--)this.printStaveLine(t,e,2*(s+1),r),r=void 0;this.paper.closeGroup()}else this.printStaveLine(t,e,6,r)},c.prototype.addClasses=function(t,e){if(!this.shouldAddClasses)return"";var i=[];if(t.length>0&&i.push(t),null!==this.lineNumber&&void 0!==this.lineNumber&&i.push("l"+this.lineNumber),null!==this.measureNumber&&void 0!==this.measureNumber&&i.push("m"+this.measureNumber),null!==this.voiceNumber&&void 0!==this.voiceNumber&&i.push("v"+this.voiceNumber),(t.indexOf("note")>=0||t.indexOf("rest")>=0)&&null!==this.noteNumber&&void 0!==this.noteNumber&&i.push("n"+this.noteNumber),i.length>0){i=(i=i.join(" ")).split(" ");for(var r=0;r<i.length;r++)0!==i[r].indexOf("abcjs-")&&i[r].length>0&&(i[r]="abcjs-"+i[r])}return i.join(" ")},c.prototype.getFontAndAttr=function(t,e){var i,r={"font-size":(i="string"==typeof t?(i=this.abctune.formatting[t])?{face:i.face,size:4*i.size/3,decoration:i.decoration,style:i.style,weight:i.weight,box:i.box}:{face:"Arial",size:16,decoration:"underline",style:"normal",weight:"normal"}:{face:t.face,size:4*t.size/3,decoration:t.decoration,style:t.style,weight:t.weight,box:t.box}).size,"font-style":i.style,"font-family":i.face,"font-weight":i.weight,"text-decoration":i.decoration,class:this.addClasses(e),font:""};return{font:i,attr:r}},c.prototype.getTextSize=function(t,e,i){var r=this.getFontAndAttr(e,i),s=this.paper.getTextSize(t,r.attr);return r.font.box&&(s.height+=8,s.width+=8),s},c.prototype.renderText=function(t,e,i,r,s,n,a){var c=this.getFontAndAttr(r,s);n&&(c.attr["text-anchor"]=n),c.attr.x=t,c.attr.y=e+7,a||(c.attr.dy="0.5em"),"debugfont"===r&&(console.log("Debug msg: "+i),c.attr.stroke="#ff0000"),i=(i=i.replace(/\n\n/g,"\n \n")).replace(/^\n/," \n"),c.font.box&&(c.attr.x+=2,c.attr.y+=4);var o=this.paper.text(i,c.attr);if(c.font.box){var h=o.getBBox();this.paper.rect({x:h.x-2,y:h.y,width:h.width+4,height:h.height+4-2,stroke:"#888888",fill:"transparent"})}return this.doRegression&&this.addToRegression(o),o},c.prototype.moveY=function(t,e){void 0===e&&(e=1),this.y+=t*e},c.prototype.skipSpaceY=function(){this.y+=this.space},c.prototype.outputTextIf=function(t,e,i,r,s,n,a){if(e){s&&this.moveY(s);var c=this.renderText(t,this.y,e,i,r,a).getBBox(),o=isNaN(c.width)?0:c.width,h=isNaN(c.height)?0:c.height;if(this.getFontAndAttr(i,r).font.box&&(o+=8,h+=8),null!==n){var l=e.split("\n").length;isNaN(c.height)||this.moveY(h/l,l+n)}return[o,h]}return[0,0]},c.prototype.addInvisibleMarker=function(t){var e=this.y;e=Math.round(e);var i=n("M %f %f L %f %f L %f %f L %f %f z",0,e-.35,100,e-.35,100,e+.35,0,e+.35);this.paper.pathToBack({path:i,stroke:"none",fill:"rgba(0,0,0,0)","fill-opacity":0,class:this.addClasses(t),"data-vertical":e})},c.prototype.printHorizontalLine=function(t,e,i){var r=.35,s="rgba(0,0,255,.4)",a=this.y;e&&(a=e),a=Math.round(a),this.paper.text(""+Math.round(a),{x:10,y:a,"text-anchor":"start","font-size":"18px",fill:s,stroke:s});var c=n("M %f %f L %f %f L %f %f L %f %f z",50,a-r,50+t,a-r,t,a+r,50,a+r);this.paper.pathToBack({path:c,stroke:"none",fill:s,class:this.addClasses("staff")});for(var o=1;o<t/100;o++)c=n("M %f %f L %f %f L %f %f L %f %f z",100*o-r,a-5,100*o-r,a+5,100*o+r,a-5,100*o+r,a+5),this.paper.pathToBack({path:c,stroke:"none",fill:s,class:this.addClasses("staff")});i&&this.paper.text(i,{x:t+70,y:a,"text-anchor":"start","font-size":"18px",fill:s,stroke:s})},c.prototype.printShadedBox=function(t,e,i,r,s,n,a){var c=this.paper.rect({x:t,y:e,width:i,height:r,fill:s,stroke:s,"fill-opacity":n,"stroke-opacity":n});return a&&this.paper.text(a,{x:0,y:e+7,"text-anchor":"start","font-size":"14px",fill:"rgba(0,0,255,.4)",stroke:"rgba(0,0,255,.4)"}),c},c.prototype.printVerticalLine=function(t,e,i){var r=n("M %f %f L %f %f L %f %f L %f %f z",t-.35,e,t-.35,i,t+.35,e,t+.35,i);this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=n("M %f %f L %f %f L %f %f L %f %f z",t-20,e,t-20,e+3,t,e,t,e+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")}),r=n("M %f %f L %f %f L %f %f L %f %f z",t+20,i,t+20,i+3,t,i,t,i+3),this.paper.pathToBack({path:r,stroke:"none",fill:"#00aaaa",class:this.addClasses("staff")})},c.prototype.addToRegression=function(t){var e=t.getBBox(),i=t.type+" "+e.toString()+" ",r=[];for(var s in t.attrs)t.attrs.hasOwnProperty(s)&&("class"===s?i=t.attrs[s]+" "+i:r.push(s+": "+t.attrs[s]));r.sort(),i+="{ "+r.join(" ")+" }",this.regressionLines.push(i)},t.exports=c},function(t,e,i){"use strict";var r="http://www.w3.org/2000/svg";function s(t){this.svg=n(),t.appendChild(this.svg)}function n(){var t=document.createElementNS(r,"svg");return t.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),t.setAttribute("role","img"),t}s.prototype.clear=function(){if(this.svg){var t=this.svg.parentNode;this.svg=n(),t&&(t.innerHTML="",t.appendChild(this.svg))}},s.prototype.setTitle=function(t){var e=document.createElement("title"),i=document.createTextNode(t);e.appendChild(i),this.svg.insertBefore(e,this.svg.firstChild)},s.prototype.setResponsiveWidth=function(t,e){if(this.svg.setAttribute("viewBox","0 0 "+t+" "+e),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 i=this.svg.parentNode.getAttribute("class");i?i.indexOf("abcjs-container")<0&&this.svg.parentNode.setAttribute("class",i+" abcjs-container"):this.svg.parentNode.setAttribute("class","abcjs-container"),this.svg.parentNode.style.display="inline-block",this.svg.parentNode.style.position="relative",this.svg.parentNode.style.width="100%";var r=e/t*100;this.svg.parentNode.style["padding-bottom"]=r+"%",this.svg.parentNode.style["vertical-align"]="middle",this.svg.parentNode.style.overflow="hidden"}},s.prototype.setSize=function(t,e){this.svg.setAttribute("width",t),this.svg.setAttribute("height",e)},s.prototype.setScale=function(t){1!==t?(this.svg.style.transform="scale("+t+","+t+")",this.svg.style["-ms-transform"]="scale("+t+","+t+")",this.svg.style["-webkit-transform"]="scale("+t+","+t+")",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"]="")},s.prototype.setParentStyles=function(t){for(var e in t)t.hasOwnProperty(e)&&this.svg.parentNode&&(this.svg.parentNode.style[e]=t[e])},s.prototype.rect=function(t){var e=document.createElementNS(r,"rect");for(var i in t){if(t.hasOwnProperty(i))(""+t[i]).indexOf("NaN"),e.setAttributeNS(null,i,t[i])}return this.append(e),e},s.prototype.text=function(t,e){var i=document.createElementNS(r,"text");for(var s in e)e.hasOwnProperty(s)&&i.setAttribute(s,e[s]);for(var n=(""+t).split("\n"),a=0;a<n.length;a++){var c=document.createElementNS(r,"tspan");c.textContent=n[a],c.setAttribute("x",e.x?e.x:0),0!==a&&c.setAttribute("dy","1.2em"),i.appendChild(c)}return this.append(i),i},s.prototype.getTextSize=function(t,e){var i=this.text(t,e),r=i.getBBox();return r=isNaN(r.height)?{width:0,height:0}:{width:r.width,height:r.height},this.currentGroup?this.currentGroup.removeChild(i):this.svg.removeChild(i),r},s.prototype.openGroup=function(t){t=t||{};var e=document.createElementNS(r,"g");return t.prepend?this.svg.insertBefore(e,this.svg.firstChild):this.svg.appendChild(e),this.currentGroup=e,e},s.prototype.closeGroup=function(){var t=this.currentGroup;return this.currentGroup=null,t},s.prototype.path=function(t){var e=document.createElementNS(r,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.append(e),e},s.prototype.pathToBack=function(t){var e=document.createElementNS(r,"path");for(var i in t)t.hasOwnProperty(i)&&("path"===i?e.setAttributeNS(null,"d",t.path):e.setAttributeNS(null,i,t[i]));return this.prepend(e),e},s.prototype.append=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.appendChild(t)},s.prototype.prepend=function(t){this.currentGroup?this.currentGroup.appendChild(t):this.svg.insertBefore(t,this.svg.firstChild)},s.prototype.setAttributeOnElement=function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttributeNS(null,i,e[i])},t.exports=s},function(t,e,i){"use strict";var r=i(6).TuneBook,s=i(0),n=i(7),a=i(40),c=i(13);if("function"!=typeof window.CustomEvent){var o=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i};o.prototype=window.Event.prototype,window.CustomEvent=o}var h=function(t){this.textarea=document.getElementById(t),this.initialText=this.textarea.value,this.isDragging=!1};h.prototype.addSelectionListener=function(t){this.textarea.onmousemove=function(e){this.isDragging&&t.fireSelectionChanged()}},h.prototype.addChangeListener=function(t){this.changelistener=t,this.textarea.onkeyup=function(){t.fireChanged()},this.textarea.onmousedown=function(){this.isDragging=!0,t.fireSelectionChanged()},this.textarea.onmouseup=function(){this.isDragging=!1,t.fireChanged()},this.textarea.onchange=function(){t.fireChanged()}},h.prototype.getSelection=function(){return{start:this.textarea.selectionStart,end:this.textarea.selectionEnd}},h.prototype.setSelection=function(t,e){if(this.textarea.setSelectionRange)this.textarea.setSelectionRange(t,e);else if(this.textarea.createTextRange){var i=this.textarea.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}this.textarea.focus()},h.prototype.getString=function(){return this.textarea.value},h.prototype.setString=function(t){this.textarea.value=t,this.initialText=this.getString(),this.changelistener&&this.changelistener.fireChanged()},h.prototype.getElem=function(){return this.textarea};var l=function(t,e){var i;if(this.abcjsParams={},e.abcjsParams)for(i in e.abcjsParams)e.abcjsParams.hasOwnProperty(i)&&(this.abcjsParams[i]=e.abcjsParams[i]);if(e.midi_options)for(i in e.midi_options)e.midi_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.midi_options[i]);if(e.parser_options)for(i in e.parser_options)e.parser_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.parser_options[i]);if(e.render_options)for(i in e.render_options)e.render_options.hasOwnProperty(i)&&(this.abcjsParams[i]=e.render_options[i]);e.indicate_changed&&(this.indicate_changed=!0),this.editarea="string"==typeof t?new h(t):t,this.editarea.addSelectionListener(this),this.editarea.addChangeListener(this),e.canvas_id?this.div=document.getElementById(e.canvas_id):e.paper_id?this.div=document.getElementById(e.paper_id):(this.div=document.createElement("DIV"),this.editarea.getElem().parentNode.insertBefore(this.div,this.editarea.getElem())),e.generate_midi&&(this.generate_midi=e.generate_midi,this.abcjsParams.generateDownload&&("string"==typeof e.midi_download_id?this.downloadMidi=document.getElementById(e.midi_download_id):e.midi_download_id&&(this.downloadMidi=e.midi_download_id)),!1!==this.abcjsParams.generateInline&&("string"==typeof e.midi_id?this.inlineMidi=document.getElementById(e.midi_id):e.midi_id&&(this.inlineMidi=e.midi_id))),(e.generate_warnings||e.warnings_id)&&(e.warnings_id?this.warningsdiv=document.getElementById(e.warnings_id):this.warningsdiv=this.div),this.onchangeCallback=e.onchange,e.gui&&(this.target=document.getElementById(t),this.abcjsParams.editable=!0),this.oldt="",this.bReentry=!1,this.parseABC(),this.modelChanged(),this.addClassName=function(t,e){return function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))}(t,e)||(t.className+=(t.className?" ":"")+e),t},this.removeClassName=function(t,e){return t.className=s.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ")),t},this.setReadOnly=function(t){var e=this.editarea.getElem();t?(e.setAttribute("readonly","yes"),this.addClassName(e,"abc_textarea_readonly")):(e.removeAttribute("readonly"),this.removeClassName(e,"abc_textarea_readonly"))}};l.prototype.renderTune=function(t,e,i){var s=new r(t),a=n();a.parse(s.tunes[0].abc,e);var o=a.getTune();new c(i,this.abcjsParams).engraveABC(o)},l.prototype.redrawMidi=function(){if(this.generate_midi&&!this.midiPause){var t=new window.CustomEvent("generateMidi",{detail:{tunes:this.tunes,abcjsParams:this.abcjsParams,downloadMidiEl:this.downloadMidi,inlineMidiEl:this.inlineMidi,engravingEl:this.div}});window.dispatchEvent(t)}},l.prototype.modelChanged=function(){if(void 0===this.tunes)return void 0!==this.downloadMidi&&(this.downloadMidi.innerHTML=""),void 0!==this.inlineMidi&&(this.inlineMidi.innerHTML=""),void(this.div.innerHTML="");if(!this.bReentry){if(this.bReentry=!0,this.timerId=null,this.div.innerHTML="",this.engraver_controller=new c(this.div,this.abcjsParams),this.engraver_controller.engraveABC(this.tunes),this.tunes[0].engraver=this.engraver_controller,this.redrawMidi(),this.warningsdiv&&(this.warningsdiv.innerHTML=this.warnings?this.warnings.join("<br />"):"No errors"),this.target)new a(this.target,!0).printABC(this.tunes[0]);this.engraver_controller.addSelectListener(this.highlight.bind(this)),this.updateSelection(),this.bReentry=!1}},l.prototype.paramChanged=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.abcjsParams[e]=t[e]);this.oldt="",this.fireChanged()},l.prototype.parseABC=function(){var t=this.editarea.getString();if(t===this.oldt)return this.updateSelection(),!1;if(this.oldt=t,""===t)return this.tunes=void 0,this.warnings="",!0;var e=new r(t);this.tunes=[],this.startPos=[],this.warnings=[];for(var i=0;i<e.tunes.length;i++){var s=new n;s.parse(e.tunes[i].abc,this.abcjsParams),this.tunes[i]=s.getTune(),this.startPos[i]=e.tunes[i].startPos;for(var a=s.getWarnings()||[],c=0;c<a.length;c++)this.warnings.push(a[c])}return!0},l.prototype.updateSelection=function(){var t=this.editarea.getSelection();try{this.engraver_controller.rangeHighlight(t.start,t.end)}catch(t){}},l.prototype.fireSelectionChanged=function(){this.updateSelection()},l.prototype.setDirtyStyle=function(t){if(void 0!==this.indicate_changed){var e=this.editarea.getElem();t?function(t,e){(function(t,e){var i=t.className;return i.length>0&&(i===e||new RegExp("(^|\\s)"+e+"(\\s|$)").test(i))})(t,e)||(t.className+=(t.className?" ":"")+e)}(e,"abc_textarea_dirty"):function(t,e){t.className=s.strip(t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," "))}(e,"abc_textarea_dirty")}},l.prototype.fireChanged=function(){if(!this.bIsPaused&&this.parseABC()){var t=this;this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){t.modelChanged()},300);var e=this.isDirty();this.wasDirty!==e&&(this.wasDirty=e,this.setDirtyStyle(e)),this.onchangeCallback&&this.onchangeCallback(this)}},l.prototype.setNotDirty=function(){this.editarea.initialText=this.editarea.getString(),this.wasDirty=!1,this.setDirtyStyle(!1)},l.prototype.isDirty=function(){return void 0!==this.indicate_changed&&this.editarea.initialText!==this.editarea.getString()},l.prototype.highlight=function(t,e,i){var r=void 0!==e?this.startPos[e]+e:0;this.editarea.setSelection(r+t.startChar,r+t.endChar)},l.prototype.pause=function(t){this.bIsPaused=t,t||this.fireChanged()},l.prototype.pauseMidi=function(t){this.midiPause=t,t||this.redrawMidi()},t.exports=l},function(t,e,i){"use strict";var r=function(t,e){this.elem=t,this.text="",this.l=1/8,this.reposition=e||!1};r.prototype.printString=function(t,e){this.reposition&&e&&(e.startChar=this.text.length),this.text+=t,this.reposition&&e&&(e.endChar=this.text.length)},r.prototype.printNewLine=function(){this.text+="\n"},r.prototype.printSpace=function(){this.text[this.text.length-1].match(/\s/)||(this.text+=" ")},r.prototype.printABC=function(t){this.text="",this.abctune=t,this.printHeader(),this.printBody(),this.elem.value=this.text},r.prototype.printHeader=function(){this.printHeaderLine("x","X","1"),this.printHeaderLine("title","T"),this.printHeaderLine("composer","C"),this.printHeaderLine("history","H"),this.printHeaderLine("author","A"),this.printHeaderLine("book","B"),this.printHeaderLine("discography","D"),this.printHeaderLine("url","F"),this.printHeaderLine("group","G"),this.printHeaderLine("instruction","I"),this.printHeaderLine("notes","N"),this.printHeaderLine("origin","O"),this.printHeaderLine("rhythm","R"),this.printHeaderLine("source","S"),this.printHeaderLine("unalignedwords","W"),this.printHeaderLine("transcription","Z"),this.printHeaderLine("NULL","L","1/8"),this.printHeaderLine("NULL","M",this.getMeterString(this.abctune.lines[0].staff[0].meter)),this.printHeaderLine("NULL","K",this.getKeyString(this.abctune.lines[0].staff[0].key))},r.prototype.getKeyString=function(t){return t.root+t.acc+t.mode},r.prototype.getMeterString=function(t){switch(t.type){case"cut_time":return"C|";case"common_time":return"C";case"specified":return t.value[0].den?t.value[0].num+"/"+t.value[0].den:t.value[0].num}return""},r.prototype.printHeaderLine=function(t,e,i){var r=this.abctune.metaText[t]||i;if(void 0!==r)for(var s=r.split("\n"),n=0;n<s.length;n++)this.printString(e+": "+s[n]),this.printNewLine()},r.prototype.getElem=function(){return this.abcline.length<=this.pos?null:this.abcline[this.pos]},r.prototype.getNextElem=function(){return this.abcline.length<=this.pos+1?null:this.abcline[this.pos+1]},r.prototype.printBody=function(){for(var t=0;t<this.abctune.lines.length;t++){var e=this.abctune.lines[t];e.staff?this.printABCLine(e.staff):e.subtitle&&0!==t||e.text}},r.prototype.printABCLine=function(t){for(this.s=0;this.s<t.length;this.s++)this.printABCStaff(t[this.s])},r.prototype.printABCStaff=function(t){for(this.v=0;this.v<t.voices.length;this.v++)this.printABCVoice(t.voices[this.v])},r.prototype.printABCVoice=function(t){for(this.abcline=t,this.pos=0;this.pos<this.abcline.length;this.pos++)this.printABCElement();this.printNewLine()},r.prototype.printABCElement=function(){var t=this.getElem();switch(t.el_type){case"note":this.printBeam();break;case"bar":this.printBarLine(t)}},r.prototype.printBeam=function(){if(this.printSpace(),this.getElem().startBeam&&!this.getElem().endBeam)for(;this.getElem()&&(this.printNote(this.getElem()),!this.getElem().endBeam);)this.pos++;else this.printNote(this.getElem());this.printSpace()},r.prototype.printNote=function(t){var e,i="";if(void 0!==t.chord)for(e=0;e<t.chord.length;e++)i+='"'+t.chord[e].name+'"';var r={staccato:".",upbow:"u",downbow:"v",roll:"~",fermata:"H",slide:"J",accent:"L",mordent:"M",pralltriller:"P",trill:"T",lower:"."};if(void 0!==t.decoration)for(e=0;e<t.decoration.length;e++){var s=t.decoration[e];r[s]?i+=r[s]:(i+="!",i+=s,i+="!")}if(void 0!==t.gracenotes){for(i+="{",e=0;e<t.gracenotes.length;e++)i+=this.getNoteString(t.gracenotes[e]);i+="}"}var n=!1;if(1===t.pitches.length&&t.pitches[0].startSlur&&(n=!0,i+=this.multiplyString("(",t.pitches[0].startSlur.length)),t.startSlur&&(i+=this.multiplyString("(",t.startSlur.length)),(1===t.pitches.length&&t.pitches[0].endSlur||t.endSlur)&&(n=!0),t.startTriplet&&(i+="(3"),t.pitches){for(t.pitches.length>1&&(i+="["),e=0;e<t.pitches.length;e++)t.pitches[e].duration=t.duration,i+=this.getNoteString(t.pitches[e],n);t.pitches.length>1&&(i+="]")}1===t.pitches.length&&t.pitches[0].endSlur&&(i+=this.multiplyString(")",t.pitches[0].endSlur.length)),t.endSlur&&(i+=this.multiplyString(")",t.endSlur.length)),this.printString(i,t)},r.prototype.getNoteString=function(t,e){var i="";!e&&t.startSlur&&(i+="(");var r="";switch(t.accidental){case"quartersharp":r="^/";break;case"dblsharp":r="^^";break;case"sharp":r="^";break;case"quarterflat":r="_/";break;case"flat":r="_";break;case"dblflat":r="__";break;case"natural":r="="}i+=r;var s=["C","D","E","F","G","A","B"][this.extractNote(t.pitch)],n=this.extractOctave(t.pitch);if(n>0)for(s=s.toLowerCase(),n--;n>0;)s+="'",n--;else for(;n<0;)s+=",",n++;return i+=s,t.duration&&(i+=this.getDurationString(t.duration)),!e&&t.endSlur&&(i+=")"),t.startTie&&(i+="-"),i},r.prototype.getDurationString=function(t){if(t/this.l>1)return t/this.l;var e="";return this.l/t>1&&(e+="/",this.l/t>2&&(e+=this.l/t)),e},r.prototype.extractNote=function(t){var e=t%7;return e<0&&(e+=7),e},r.prototype.extractOctave=function(t){return Math.floor(t/7)},r.prototype.printBarLine=function(t){var e="";switch(t.type){case"bar_thin":e+="|";break;case"bar_thin_thick":e+="|]";break;case"bar_thin_thin":e+="||";break;case"bar_thick_thin":e+="[|";break;case"bar_dbl_repeat":e+=":||:";break;case"bar_left_repeat":e+="|:";break;case"bar_right_repeat":e+=":|";break;case"bar_invisible":e+=""}this.printString(e,t)},r.prototype.multiplyString=function(t,e){for(var i="";e>0;e--)i+=t;return i},t.exports=r}]); \ No newline at end of file