UNPKG

satie

Version:

A sheet music renderer for the web

237 lines 1.41 MB
var Satie=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";t.VERSION="0.0.13-alpha6";var i=n(75),r=n(28);t.Application=r["default"];var a=n(28);t.IHandler=a["default"];var o=n(5);t.Document=o.Document,t.Type=o.Type,t.Song=i["default"];var l,s=n(6),u=n(13),c=n(38),f=n(39),d=n(40),h=n(14),p=n(45),m=n(42),v=n(20);!function(e){e.getGlyphCode=s.getGlyphCode,e.pageSizes=u.pageSizes,e.Clef=c["default"],e.KeySignature=f["default"],e.TimeSignature=d["default"],e.Direction=p["default"],e.NotationView=m["default"],e.getAccidentalsFromKey=h.getNativeKeyAccidentals}(l=t.Addons||(t.Addons={}));var g;!function(e){e.createPatch=v["default"]}(g=t.Patch||(t.Patch={}))},function(e,t){e.exports=_},function(e,t,n){"use strict";var i=function(e,t,n,i,r,a,o,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,r,a,o,l],c=0;s=new Error(t.replace(/%s/g,function(){return u[c++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=i},function(e,t,n){(function(e){"use strict";function i(e){var t=ks(e);return sa(t.documentElement)}function r(e){return la(Cs(e).documentElement)}function a(e){return B(Cs(e).documentElement)}function o(e){return Nt(Cs(e).documentElement)}function l(e){return et(Cs(e).documentElement)}function s(e){return Je(Cs(e).documentElement)}function u(e){return Qe(Cs(e).documentElement)}function c(e){return $e(Cs(e).documentElement)}function f(e){return yi(Cs(e).documentElement)}function d(e){return pr(Cs(e).documentElement)}function h(e){return bi(Cs(e).documentElement)}function p(e){return Ar(Cs(e).documentElement)}function m(e){return hi(Cs(e).documentElement)}function v(e){return Li(Cs(e).documentElement)}function g(e){return ht(Cs(e).documentElement)}function y(e){return Mr(Cs(e).documentElement)}function b(e){return wi(Cs(e).documentElement)}function S(e){return Or(Cs(e).documentElement)}function w(e,t){void 0===t&&(t=!1);var n='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<!DOCTYPE score-timewise\n  PUBLIC "-//Recordare//DTD MusicXML 3.0 Timewise//EN" "http://www.musicxml.org/dtds/timewise.dtd">\n<score-timewise version="3.0">\n'+yo(e).join("\n").split("\n").map(function(e){return"  "+e}).join("\n")+"\n"+e.measures.map(function(e){return Eo(e)}).join("\n").split("\n").map(function(e){return"  "+e}).join("\n")+"\n</score-timewise>";return t?Bs(n):n}function N(e){return yo(e).join("\n")}function D(e){return e.slice(1)}function T(e,t){return(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim()}function F(e,t){var n=T(e,t);return 0===n.toLowerCase().indexOf("0x")?parseInt(n,16):parseFloat(n)}function x(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function k(e){var t=T(e,!0);return t.length<10?null:{year:parseFloat(t.slice(0,4)),month:parseFloat(t.slice(5,7)),day:parseFloat(t.slice(8,10))}}function B(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("part"===l.nodeName){var s=ua(l);t.parts=t.parts||{},t.parts[l.getAttribute("id")]=s}}for(var o=0;o<e.attributes.length;++o){var u=e.attributes[o];if("number"===u.name){var c=T(u,!0);t.number=c,r=!0}if("implicit"===u.name){var f=C(u,!0);t.implicit=f,n=!0}if("width"===u.name){var d=F(u,!0);t.width=d,a=!0}if("non-controlling"===u.name){var h=C(u,!0);t.nonControlling=h,i=!0}}return r||(t.number=""),n||(t.implicit=!1),i||(t.nonControlling=!1),a||(t.width=null),t}function C(e,t){var n=T(e,!0);return"no"!=n&&"yes"==n}function L(e){return null}function W(e){return null}function _(e){return null}function O(e){return null}function U(e){return null}function A(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=0;d<e.childNodes.length;++d){var h=e.childNodes[d];if("footnote"===h.nodeName){var p=re(h);t.footnote=p}if("level"===h.nodeName){var m=ae(h);t.level=m}}for(var d=0;d<e.attributes.length;++d){var v=e.attributes[d];if("number"===v.name){var g=F(v,!0);t.number=g,n=!0}if("justify"===v.name){var y=V(v,Hs.Left);t.justify=y,i=!0}if("default-x"===v.name){var b=F(v,!0);t.defaultX=b,r=!0}if("relative-y"===v.name){var S=F(v,!0);t.relativeY=S,a=!0}if("default-y"===v.name){var w=F(v,!0);t.defaultY=w,o=!0}if("relative-x"===v.name){var N=F(v,!0);t.relativeX=N,l=!0}if("placement"===v.name){var D=Y(v,Es.Unspecified);t.placement=D,s=!0}if("color"===v.name){var x=T(v,!0);t.color=x,u=!0}if("print-object"===v.name){var k=C(v);t.printObject=k,c=!0}if("name"===v.name){var B=T(v,!0);t.name=B,f=!0}}return t.lyricParts=li(e),n||(t.number=1),i||(t.justify=Hs.Left),r||(t.defaultX=NaN),a||(t.relativeY=0),o||(t.defaultY=NaN),l||(t.relativeX=0),s||(t.placement=Es.Unspecified),u||(t.color="#000000"),c||(t.printObject=!0),f||(t.name=""),t}function E(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"start"==n?_s.Start:"stop"==n?_s.Stop:t}function M(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"start"==n?Os.Start:"stop"==n?Os.Stop:"continue"==n?Os.Continue:t}function X(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"single"==n?Us.Single:"start"==n?Us.Start:"stop"==n?Us.Stop:t}function P(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"unspecified"==n?As.Unspecified:"full"==n?As.Full:"cue"==n?As.Cue:"large"==n?As.Large:t}function Y(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"above"==n?Es.Above:"below"==n?Es.Below:"unspecified"==n?Es.Unspecified:t}function R(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"down"==n?Xs.Down:"up"==n?Xs.Up:t}function z(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"over"==n?Ms.Over:"under"==n?Ms.Under:"unspecified"==n?Ms.Unspecified:t}function I(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"top"==n?Ps.Top:"bottom"==n?Ps.Bottom:t}function H(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"right"==n?Ys.Right:"left"==n?Ys.Left:t}function j(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"circle"==n?Rs.Circle:"bracket"==n?Rs.Bracket:"triangle"==n?Rs.Triangle:"diamond"==n?Rs.Diamond:"none"==n?Rs.None:"square"==n?Rs.Square:"oval"==n?Rs.Oval:"rectangle"==n?Rs.Rectangle:t}function q(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"italic"==n?zs.Italic:"normal"==n?zs.Normal:t}function G(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"bold"==n?Is.Bold:"normal"==n?Is.Normal:t}function V(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"right"==n?Hs.Right:"center"==n?Hs.Center:"left"==n?Hs.Left:t}function Q(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"top"==n?js.Top:"middle"==n?js.Middle:"baseline"==n?js.Baseline:"bottom"==n?js.Bottom:t}function J(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"lro"==n?qs.Lro:"rlo"==n?qs.Rlo:"ltr"==n?qs.Ltr:"rtl"==n?qs.Rtl:t}function K(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"curved"==n?Gs.Curved:"straight"==n?Gs.Straight:t}function Z(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"dashed"==n?Vs.Dashed:"wavy"==n?Vs.Wavy:"dotted"==n?Vs.Dotted:"solid"==n?Vs.Solid:t}function $(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"angled"==n?Qs.Angled:"square"==n?Qs.Square:"normal"==n?Qs.Normal:t}function ee(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"upright"==n?Js.Upright:"inverted"==n?Js.Inverted:t}function te(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"main"==n?Ks.Main:"below"==n?Ks.Below:"upper"==n?Ks.Upper:t}function ne(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"unison"==n?Zs.Unison:"whole"==n?Zs.Whole:"half"==n?Zs.Half:t}function ie(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?$s.None:"whole"==n?$s.Whole:"half"==n?$s.Half:t}function re(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=!1,m=!1,v=0;v<e.childNodes.length;++v){e.childNodes[v]}for(var v=0;v<e.attributes.length;++v){var g=e.attributes[v];if("justify"===g.name){var y=V(g,Hs.Left);t.justify=y,n=!0}if("default-x"===g.name){var b=F(g,!0);t.defaultX=b}if("relative-y"===g.name){var S=F(g,!0);t.relativeY=S}if("default-y"===g.name){var w=F(g,!0);t.defaultY=w}if("relative-x"===g.name){var N=F(g,!0);t.relativeX=N}if("font-family"===g.name){var D=T(g,!0);t.fontFamily=D}if("font-weight"===g.name){var x=G(g,Is.Normal);t.fontWeight=x,i=!0}if("font-style"===g.name){var k=q(g,zs.Normal);t.fontStyle=k,r=!0}if("font-size"===g.name){var B=T(g,!0);t.fontSize=B}if("color"===g.name){var C=T(g,!0);t.color=C,a=!0}if("halign"===g.name){var L=V(g,t.justify||Hs.Left);t.halign=L,o=!0}if("valign"===g.name){var W=Q(g,js.Bottom);t.valign=W,l=!0}if("underline"===g.name){var _=F(g,!0);t.underline=_,s=!0}if("overline"===g.name){var O=F(g,!0);t.overline=O,u=!0}if("line-through"===g.name){var U=F(g,!0);t.lineThrough=U,c=!0}if("rotation"===g.name){var A=F(g,!0);t.rotation=A,f=!0}if("letter-spacing"===g.name){var E=T(g,!0);t.letterSpacing=E,d=!0}if("line-height"===g.name){var M=T(g,!0);t.lineHeight=M,h=!0}if("dir"===g.name){var X=J(g,qs.Ltr);t.dir=X,p=!0}if("enclosure"===g.name){var P=j(g,Rs.None);t.enclosure=P,m=!0}}var Y=e,R=T(Y,!0);return t.text=R,n||(t.justify=Hs.Left),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),s||(t.underline=0),u||(t.overline=0),c||(t.lineThrough=0),f||(t.rotation=0),d||(t.letterSpacing="normal"),h||(t.lineHeight="normal"),p||(t.dir=qs.Ltr),m||(t.enclosure=Rs.None),t}function ae(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("bracket"===l.name){var s=C(l);t.bracket=s,n=!0}if("size"===l.name){var u=P(l,As.Unspecified);t.size=u,i=!0}if("parentheses"===l.name){var c=C(l);t.parentheses=c,r=!0}if("reference"===l.name){var f=C(l);t.reference=f,a=!0}}var d=e,h=T(d,!0);return t.text=h,n||(t.bracket=!1),i||(t.size=As.Unspecified),r||(t.parentheses=!1),a||(t.reference=!1),t}function oe(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,i=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,r=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,a=!0}if("type"===s.name){var y=ee(s,Js.Upright);t.type=y,o=!0}}var b=e,S=$(b,Qs.Normal);return t.shape=S,n||(t.shape=Qs.Normal),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.type=Js.Upright),t}function le(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=0;d<e.childNodes.length;++d){e.childNodes[d]}for(var d=0;d<e.attributes.length;++d){var h=e.attributes[d];if("number"===h.name){var p=F(h,!0);t.number=p,n=!0}if("default-x"===h.name){var m=F(h,!0);t.defaultX=m}if("relative-y"===h.name){var v=F(h,!0);t.relativeY=v}if("default-y"===h.name){var g=F(h,!0);t.defaultY=g}if("relative-x"===h.name){var y=F(h,!0);t.relativeX=y}if("placement"===h.name){var b=Y(h,Es.Unspecified);t.placement=b,i=!0}if("color"===h.name){var S=T(h,!0);t.color=S,r=!0}if("start-note"===h.name){var w=te(h,Ks.Upper);t.startNote=w,a=!0}if("accelerate"===h.name){var N=C(h);t.accelerate=N,o=!0}if("beats"===h.name){var D=F(h,!0);t.beats=D,l=!0}if("last-beat"===h.name){var x=F(h,!0);t.lastBeat=x,s=!0}if("trill-step"===h.name){var k=ne(h,Zs.Whole);t.trillStep=k,u=!0}if("two-note-turn"===h.name){var B=ie(h,$s.None);t.twoNoteTurn=B,c=!0}if("second-beat"===h.name){var L=F(h,!0);t.secondBeat=L,f=!0}if("type"===h.name){var W=M(h,null);t.type=W}}return n||(t.number=1),i||(t.placement=Es.Unspecified),r||(t.color="#000000"),a||(t.startNote=Ks.Upper),o||(t.accelerate=!1),l||(t.beats=4),s||(t.lastBeat=75),u||(t.trillStep=Zs.Whole),c||(t.twoNoteTurn=$s.None),f||(t.secondBeat=25),t}function se(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function ue(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function ce(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function fe(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=0;d<e.childNodes.length;++d){var h=e.childNodes[d];if("fp"===h.nodeName){var p=!0;t.fp=p}if("pp"===h.nodeName){var m=!0;t.pp=m}if("ppp"===h.nodeName){var v=!0;t.ppp=v}if("fff"===h.nodeName){var g=!0;t.fff=g}if("sf"===h.nodeName){var y=!0;t.sf=y}if("rf"===h.nodeName){var b=!0;t.rf=b}if("mp"===h.nodeName){var S=!0;t.mp=S}if("sfpp"===h.nodeName){var w=!0;t.sfpp=w}if("f"===h.nodeName){var N=!0;t.f=N}if("ffffff"===h.nodeName){var D=!0;t.ffffff=D}if("sfz"===h.nodeName){var x=!0;t.sfz=x}if("ff"===h.nodeName){var k=!0;t.ff=k}if("pppppp"===h.nodeName){var B=!0;t.pppppp=B}if("rfz"===h.nodeName){var C=!0;t.rfz=C}if("other-dynamics"===h.nodeName){var L=T(h,!0);t.otherDynamics=L}if("fz"===h.nodeName){var W=!0;t.fz=W}if("ppppp"===h.nodeName){var _=!0;t.ppppp=_}if("mf"===h.nodeName){var O=!0;t.mf=O}if("pppp"===h.nodeName){var U=!0;t.pppp=U}if("fffff"===h.nodeName){var A=!0;t.fffff=A}if("sffz"===h.nodeName){var E=!0;t.sffz=E}if("sfp"===h.nodeName){var M=!0;t.sfp=M}if("p"===h.nodeName){var X=!0;t.p=X}if("ffff"===h.nodeName){var P=!0;t.ffff=P}}for(var d=0;d<e.attributes.length;++d){var R=e.attributes[d];if("default-x"===R.name){var z=F(R,!0);t.defaultX=z}if("relative-y"===R.name){var I=F(R,!0);t.relativeY=I}if("default-y"===R.name){var H=F(R,!0);t.defaultY=H}if("relative-x"===R.name){var J=F(R,!0);t.relativeX=J}if("font-family"===R.name){var K=T(R,!0);t.fontFamily=K}if("font-weight"===R.name){var Z=G(R,Is.Normal);t.fontWeight=Z,n=!0}if("font-style"===R.name){var $=q(R,zs.Normal);t.fontStyle=$,i=!0}if("font-size"===R.name){var ee=T(R,!0);t.fontSize=ee}if("color"===R.name){var te=T(R,!0);t.color=te,r=!0}if("halign"===R.name){var ne=V(R,t.justify||Hs.Left);t.halign=ne,a=!0}if("valign"===R.name){var ie=Q(R,js.Bottom);t.valign=ie,o=!0}if("placement"===R.name){var re=Y(R,Es.Unspecified);t.placement=re,l=!0}if("underline"===R.name){var ae=F(R,!0);t.underline=ae,s=!0}if("overline"===R.name){var oe=F(R,!0);t.overline=oe,u=!0}if("line-through"===R.name){var le=F(R,!0);t.lineThrough=le,c=!0}if("enclosure"===R.name){var se=j(R,Rs.None);t.enclosure=se,f=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),l||(t.placement=Es.Unspecified),s||(t.underline=0),u||(t.overline=0),c||(t.lineThrough=0),f||(t.enclosure=Rs.None),t}function de(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=0;u<e.childNodes.length;++u){e.childNodes[u]}for(var u=0;u<e.attributes.length;++u){var c=e.attributes[u];if("substitution"===c.name){var f=C(c);t.substitution=f,i=!0}if("default-x"===c.name){var d=F(c,!0);t.defaultX=d}if("relative-y"===c.name){var h=F(c,!0);t.relativeY=h}if("default-y"===c.name){var p=F(c,!0);t.defaultY=p}if("relative-x"===c.name){var m=F(c,!0);t.relativeX=m}if("font-family"===c.name){var v=T(c,!0);t.fontFamily=v}if("font-weight"===c.name){var g=G(c,Is.Normal);t.fontWeight=g,r=!0}if("font-style"===c.name){var y=q(c,zs.Normal);t.fontStyle=y,a=!0}if("font-size"===c.name){var b=T(c,!0);t.fontSize=b}if("color"===c.name){var S=T(c,!0);t.color=S,o=!0}if("placement"===c.name){var w=Y(c,Es.Unspecified);t.placement=w,l=!0}if("alternate"===c.name){var N=C(c);t.alternate=N,s=!0}}var D=e,x=F(D,!1);return t.finger=x,n||(t.finger=-1),i||(t.substitution=!1),r||(t.fontWeight=Is.Normal),a||(t.fontStyle=zs.Normal),o||(t.color="#000000"),l||(t.placement=Es.Unspecified),s||(t.alternate=!1),t}function he(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}var d=e,h=F(d,!0);return t.fret=h,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function pe(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=F(y,!0);return t.stringNum=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function me(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("port"===o.name){var l=F(o,!0);t.port=l,i=!0}if("id"===o.name){var s=F(o,!0);t.id=s,r=!0}}var u=e,c=T(u,!0);return t.deviceName=c,n||(t.deviceName=""),i||(t.port=NaN),r||(t.id=NaN),t}function ve(e){for(var t={midiUnpitched:null,volume:null,pan:null,elevation:null,midiBank:null,midiProgram:null,id:"",midiChannel:null,midiName:""},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("midi-unpitched"===i.nodeName){var r=F(i,!0);t.midiUnpitched=r}if("volume"===i.nodeName){var a=F(i,!0);t.volume=a}if("pan"===i.nodeName){var o=F(i,!0);t.pan=o}if("elevation"===i.nodeName){var l=F(i,!0);t.elevation=l}if("midi-bank"===i.nodeName){var s=F(i,!0);t.midiBank=s}if("midi-program"===i.nodeName){var u=F(i,!0);t.midiProgram=u}if("midi-channel"===i.nodeName){var c=F(i,!0);t.midiChannel=c}if("midi-name"===i.nodeName){var f=T(i,!0);t.midiName=f}}for(var n=0;n<e.attributes.length;++n){var d=e.attributes[n];if("id"===d.name){var h=T(d,!0);t.id=h}}return t}function ge(e){for(var t={ipa:"",mute:"",otherPlay:null,semiPitched:"",id:""},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("ipa"===i.nodeName){var r=T(i,!0);t.ipa=r}if("mute"===i.nodeName){var a=T(i,!0);t.mute=a}if("other-play"===i.nodeName){var o=ye(i);t.otherPlay=o}if("semi-pitched"===i.nodeName){var l=T(i,!0);t.semiPitched=l}}for(var n=0;n<e.attributes.length;++n){var s=e.attributes[n];if("id"===s.name){var u=T(s,!0);t.id=u}}return t}function ye(e){for(var t={data:"",type:""},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.data=o,t}function be(e){for(var t={tenths:null,millimeters:null},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("tenths"===i.nodeName){var r=F(i,!0);t.tenths=r}if("millimeters"===i.nodeName){var a=F(i,!0);t.millimeters=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Se(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"both"==n?eu.Both:"even"==n?eu.Even:"odd"==n?eu.Odd:t}function we(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("top-margin"===r.nodeName){var a=F(r,!0);t.topMargin=a}if("left-margin"===r.nodeName){var o=F(r,!0);t.leftMargin=o}if("bottom-margin"===r.nodeName){var l=F(r,!0);t.bottomMargin=l}if("right-margin"===r.nodeName){var s=F(r,!0);t.rightMargin=s}}for(var i=0;i<e.attributes.length;++i){var u=e.attributes[i];if("type"===u.name){var c=Se(u,eu.Both);t.type=c,n=!0}}return n||(t.type=eu.Both),t}function Ne(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("page-height"===i.nodeName){var r=F(i,!0);t.pageHeight=r}if("page-width"===i.nodeName){var a=F(i,!0);t.pageWidth=a}if("page-margins"===i.nodeName){var o=we(i);t.pageMargins=(t.pageMargins||[]).concat(o)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function De(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("system-dividers"===i.nodeName){var r=Fe(i);t.systemDividers=r}if("system-margins"===i.nodeName){var a=Te(i);t.systemMargins=a}if("system-distance"===i.nodeName){var o=F(i,!0);t.systemDistance=o}if("top-system-distance"===i.nodeName){var l=F(i,!0);t.topSystemDistance=l}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Te(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("left-margin"===i.nodeName){var r=F(i,!0);t.leftMargin=r}if("right-margin"===i.nodeName){var a=F(i,!0);t.rightMargin=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Fe(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("right-divider"===i.nodeName){var r=ke(i);t.rightDivider=r}if("left-divider"===i.nodeName){var a=xe(i);t.leftDivider=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function xe(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("print-object"===u.name){var c=C(u);t.printObject=c,n=!0}if("default-x"===u.name){var f=F(u,!0);t.defaultX=f}if("relative-y"===u.name){var d=F(u,!0);t.relativeY=d}if("default-y"===u.name){var h=F(u,!0);t.defaultY=h}if("relative-x"===u.name){var p=F(u,!0);t.relativeX=p}if("font-family"===u.name){var m=T(u,!0);t.fontFamily=m}if("font-weight"===u.name){var v=G(u,Is.Normal);t.fontWeight=v,i=!0}if("font-style"===u.name){var g=q(u,zs.Normal);t.fontStyle=g,r=!0}if("font-size"===u.name){var y=T(u,!0);t.fontSize=y}if("color"===u.name){var b=T(u,!0);t.color=b,a=!0}if("halign"===u.name){var S=V(u,t.justify||Hs.Left);t.halign=S,o=!0}if("valign"===u.name){var w=Q(u,js.Bottom);t.valign=w,l=!0}}return n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),t}function ke(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("print-object"===u.name){var c=C(u);t.printObject=c,n=!0}if("default-x"===u.name){var f=F(u,!0);t.defaultX=f}if("relative-y"===u.name){var d=F(u,!0);t.relativeY=d}if("default-y"===u.name){var h=F(u,!0);t.defaultY=h}if("relative-x"===u.name){var p=F(u,!0);t.relativeX=p}if("font-family"===u.name){var m=T(u,!0);t.fontFamily=m}if("font-weight"===u.name){var v=G(u,Is.Normal);t.fontWeight=v,i=!0}if("font-style"===u.name){var g=q(u,zs.Normal);t.fontStyle=g,r=!0}if("font-size"===u.name){var y=T(u,!0);t.fontSize=y}if("color"===u.name){var b=T(u,!0);t.color=b,a=!0}if("halign"===u.name){var S=V(u,t.justify||Hs.Left);t.halign=S,o=!0}if("valign"===u.name){var w=Q(u,js.Bottom);t.valign=w,l=!0}}return n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),t}function Be(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("staff-distance"===r.nodeName){var a=F(r,!0);t.staffDistance=a}}for(var i=0;i<e.attributes.length;++i){var o=e.attributes[i];if("num"===o.name){var l=F(o,!0);t.num=l,n=!0}}return n||(t.num=1),t}function Ce(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("measure-distance"===i.nodeName){var r=F(i,!0);t.measureDistance=r}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Le(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=F(a,!0);return t.tenths=o,t}function We(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"grace"==n?tu.Grace:"cue"==n?tu.Cue:"large"==n?tu.Large:t}function _e(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=We(i,null);t.type=r}}var a=e,o=F(a,!0);return t.size=o,t}function Oe(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=F(a,!0);return t.tenths=o,t}function Ue(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("line-width"===i.nodeName){var r=Le(i);t.lineWidths=t.lineWidths||{},t.lineWidths[D(x((r.type.length?"_":"")+r.type))]=r}if("distance"===i.nodeName){var a=Oe(i);t.distances=t.distances||{},t.distances[D(x((a.type.length?"_":"")+a.type))]=a}if("other-appearance"===i.nodeName){var o=T(i,!0);t.otherAppearances=(t.otherAppearances||[]).concat(o)}if("note-size"===i.nodeName){var l=_e(i);t.noteSizes=t.noteSizes||{},t.noteSizes[l.type]=l}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Ae(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.creator=o,t}function Ee(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.rights=o,t}function Me(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.encoder=o,t}function Xe(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.data=o,t}function Pe(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("name"===i.name){var r=T(i,!0);t.name=r}}var a=e,o=T(a,!0);return t.data=o,t}function Ye(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("miscellaneous-field"===i.nodeName){var r=Pe(i);t.miscellaneousFields=(t.miscellaneousFields||[]).concat(r)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Re(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("miscellaneous"===i.nodeName){var r=Ye(i);t.miscellaneous=r}if("creator"===i.nodeName){var a=Ae(i);t.creators=(t.creators||[]).concat(a)}if("relation"===i.nodeName){var o=Xe(i);t.relations=(t.relations||[]).concat(o)}if("rights"===i.nodeName){var l=Ee(i);t.rights=(t.rights||[]).concat(l)}if("encoding"===i.nodeName){var s=Ie(i);t.encoding=s}if("source"===i.nodeName){var u=T(i,!0);t.source=u}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function ze(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("element"===i.name){var r=T(i,!0);t.element=r}if("attribute"===i.name){var a=T(i,!0);t.attribute=a}if("value"===i.name){var o=T(i,!0);t.value=o}if("type"===i.name){var l=C(i);t.type=l}}return t.element=t.element||"",t.attribute=t.attribute||"",t.value=t.value||"",t.type=!ha(t.type)||t.type,t}function Ie(e){for(var t={encodingDescriptions:[],encodingDate:null,supports:{},encoders:[],softwares:[]},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("encoding-description"===i.nodeName){var r=T(i,!0);t.encodingDescriptions=(t.encodingDescriptions||[]).concat(r)}if("encoding-date"===i.nodeName){var a=k(i);t.encodingDate=a}if("supports"===i.nodeName){var o=ze(i);t.supports=t.supports||{},t.supports[D(x((o.element.length?"_":"")+o.element)+(o.attribute.length?"_":"")+x(o.attribute))]=o}if("encoder"===i.nodeName){var l=Me(i);t.encoders=(t.encoders||[]).concat(l)}if("software"===i.nodeName){var s=T(i,!0);t.softwares=(t.softwares||[]).concat(s)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function He(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?nu.None:"horizontal"==n?nu.Horizontal:"diagonal"==n?nu.Diagonal:"vertical"==n?nu.Vertical:"adjacent"==n?nu.Adjacent:t}function je(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"dotted-note"==n?iu.DottedNote:"cut"==n?iu.Cut:"single-number"==n?iu.SingleNumber:"note"==n?iu.Note:"common"==n?iu.Common:"normal"==n?iu.Normal:t}function qe(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();
return""===n&&null!==t&&void 0!==t?t:"right"==n?ru.Right:"before-barline"==n?ru.BeforeBarline:"left"==n?ru.Left:t}function Ge(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("location"===r.name){var a=qe(r,ru.Left);t.location=a,n=!0}}var o=e,l=F(o,!0);return t.fifths=l,n||(t.location=ru.Left),t}function Ve(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("number"===r.name){var a=F(r,!0);t.number=a}if("cancel"===r.name){var o=C(r);t.cancel=o,n=!0}}var l=e,s=F(l,!0);return t.octave=s,n||(t.cancel=!1),t}function Qe(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("cancel"===l.nodeName){var s=Ge(l);t.cancel=s}if("key-step"===l.nodeName){var u=T(l,!0);t.keySteps=(t.keySteps||[]).concat(u)}if("key-octave"===l.nodeName){var c=Ve(l);t.keyOctaves=(t.keyOctaves||[]).concat(c)}if("fifths"===l.nodeName){var f=F(l,!0);t.fifths=f}if("key-alter"===l.nodeName){var d=T(l,!0);t.keyAlters=(t.keyAlters||[]).concat(d)}if("key-accidental"===l.nodeName){var h=T(l,!0);t.keyAccidentals=t.keyAccidentals||[],t.keyAccidentals.length=Math.max(t.keyAccidentals.length,t.keySteps.length),t.keyAccidentals[t.keySteps.length-1]=h}if("mode"===l.nodeName){var p=T(l,!0);t.mode=p}}for(var o=0;o<e.attributes.length;++o){var m=e.attributes[o];if("number"===m.name){var v=F(m,!0);t.number=v}if("default-x"===m.name){var g=F(m,!0);t.defaultX=g}if("relative-y"===m.name){var y=F(m,!0);t.relativeY=y}if("default-y"===m.name){var b=F(m,!0);t.defaultY=b}if("relative-x"===m.name){var S=F(m,!0);t.relativeX=S}if("font-family"===m.name){var w=T(m,!0);t.fontFamily=w}if("font-weight"===m.name){var N=G(m,Is.Normal);t.fontWeight=N,n=!0}if("font-style"===m.name){var D=q(m,zs.Normal);t.fontStyle=D,i=!0}if("font-size"===m.name){var x=T(m,!0);t.fontSize=x}if("color"===m.name){var k=T(m,!0);t.color=k,r=!0}if("print-object"===m.name){var B=C(m);t.printObject=B,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.printObject=!0),t.keyAccidentals||(t.keyAccidentals=[]),t._class="Key",t}function Je(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){var f=e.childNodes[c];if("interchangeable"===f.nodeName){var d=Ke(f);t.interchangeable=d}if("beats"===f.nodeName){var h=T(f,!0);t.beats=(t.beats||[]).concat(h)}if("beat-type"===f.nodeName){var p=F(f,!0);t.beatTypes=(t.beatTypes||[]).concat(p)}if("senza-misura"===f.nodeName){var m=T(f,!0);t.senzaMisura=m}}for(var c=0;c<e.attributes.length;++c){var v=e.attributes[c];if("symbol"===v.name){var g=je(v,iu.Normal);t.symbol=g,n=!0}if("separator"===v.name){var y=He(v,nu.None);t.separator=y,i=!0}if("default-x"===v.name){var b=F(v,!0);t.defaultX=b}if("relative-y"===v.name){var S=F(v,!0);t.relativeY=S}if("default-y"===v.name){var w=F(v,!0);t.defaultY=w}if("relative-x"===v.name){var N=F(v,!0);t.relativeX=N}if("font-family"===v.name){var D=T(v,!0);t.fontFamily=D}if("font-weight"===v.name){var x=G(v,Is.Normal);t.fontWeight=x,r=!0}if("font-style"===v.name){var k=q(v,zs.Normal);t.fontStyle=k,a=!0}if("font-size"===v.name){var B=T(v,!0);t.fontSize=B}if("color"===v.name){var L=T(v,!0);t.color=L,o=!0}if("halign"===v.name){var W=V(v,t.justify||Hs.Left);t.halign=W,l=!0}if("valign"===v.name){var _=Q(v,js.Bottom);t.valign=_,s=!0}if("print-object"===v.name){var O=C(v);t.printObject=O,u=!0}}return n||(t.symbol=iu.Normal),i||(t.separator=nu.None),r||(t.fontWeight=Is.Normal),a||(t.fontStyle=zs.Normal),o||(t.color="#000000"),l||(t.halign=t.justify||Hs.Left),s||(t.valign=js.Bottom),u||(t.printObject=!0),t._class="Time",t}function Ke(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){var a=e.childNodes[r];if("beats"===a.nodeName){var o=T(a,!0);t.beats=(t.beats||[]).concat(o)}if("beat-type"===a.nodeName){var l=F(a,!0);t.beatTypes=(t.beatTypes||[]).concat(l)}if("time-relation"===a.nodeName){var s=T(a,!0);t.timeRelation=s}}for(var r=0;r<e.attributes.length;++r){var u=e.attributes[r];if("symbol"===u.name){var c=je(u,iu.Normal);t.symbol=c,n=!0}if("separator"===u.name){var f=He(u,nu.None);t.separator=f,i=!0}}return n||(t.symbol=iu.Normal),i||(t.separator=nu.None),t}function Ze(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?au.None:"line"==n?au.Line:"bracket"==n?au.Bracket:"square"==n?au.Square:"brace"==n?au.Brace:t}function $e(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("top-staff"===o.name){var l=F(o,!0);t.topStaff=l,n=!0}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("color"===o.name){var d=T(o,!0);t.color=d,i=!0}if("bottom-staff"===o.name){var h=F(o,!0);t.bottomStaff=h,r=!0}}var p=e,m=Ze(p,null);return t.type=m,n||(t.topStaff=-1),i||(t.color="#000000"),r||(t.bottomStaff=-1),t._class="PartSymbol",t}function et(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){var f=e.childNodes[c];if("clef-octave-change"===f.nodeName){var d=T(f,!0);t.clefOctaveChange=d}if("sign"===f.nodeName){var h=T(f,!0);t.sign=h}if("line"===f.nodeName){var p=F(f,!0);t.line=p}}for(var c=0;c<e.attributes.length;++c){var m=e.attributes[c];if("number"===m.name){var v=F(m,!0);t.number=v,n=!0}if("size"===m.name){var g=P(m,As.Full);t.size=g,i=!0}if("default-x"===m.name){var y=F(m,!0);t.defaultX=y}if("relative-y"===m.name){var b=F(m,!0);t.relativeY=b}if("default-y"===m.name){var S=F(m,!0);t.defaultY=S}if("relative-x"===m.name){var w=F(m,!0);t.relativeX=w}if("font-family"===m.name){var N=T(m,!0);t.fontFamily=N}if("font-weight"===m.name){var D=G(m,Is.Normal);t.fontWeight=D,r=!0}if("font-style"===m.name){var x=q(m,zs.Normal);t.fontStyle=x,a=!0}if("font-size"===m.name){var k=T(m,!0);t.fontSize=k}if("color"===m.name){var B=T(m,!0);t.color=B,o=!0}if("print-object"===m.name){var L=C(m);t.printObject=L,l=!0}if("after-barline"===m.name){var W=C(m);t.afterBarline=W,s=!0}if("additional"===m.name){var _=C(m);t.additional=_,u=!0}}return n||(t.number=1),i||(t.size=As.Full),r||(t.fontWeight=Is.Normal),a||(t.fontStyle=zs.Normal),o||(t.color="#000000"),l||(t.printObject=!0),s||(t.afterBarline=!1),u||(t.additional=!1),t}function tt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("tuning-alter"===i.nodeName){var r=T(i,!0);t.tuningAlter=r}if("tuning-step"===i.nodeName){var a=T(i,!0);t.tuningStep=a}if("tuning-octave"===i.nodeName){var o=T(i,!0);t.tuningOctave=o}}for(var n=0;n<e.attributes.length;++n){var l=e.attributes[n];if("line"===l.name){var s=T(l,!0);t.line=s}}return t}function nt(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"letters"==n?ou.Letters:"numbers"==n?ou.Numbers:t}function it(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("staff-lines"===l.nodeName){var s=F(l,!0);t.staffLines=s}if("staff-tuning"===l.nodeName){var u=tt(l);t.staffTunings=(t.staffTunings||[]).concat(u)}if("staff-size"===l.nodeName){var c=F(l,!0);t.staffSize=c}if("capo"===l.nodeName){var f=T(l,!0);t.capo=f}if("staff-type"===l.nodeName){var d=T(l,!0);t.staffType=d}}for(var o=0;o<e.attributes.length;++o){var h=e.attributes[o];if("show-frets"===h.name){var p=nt(h,ou.Numbers);t.showFrets=p,n=!0}if("number"===h.name){var m=F(h,!0);t.number=m,i=!0}if("print-object"===h.name){var v=C(h);t.printObject=v,r=!0}if("print-spacing"===h.name){var g=C(h);t.printSpacing=g,a=!0}}return n||(t.showFrets=ou.Numbers),i||(t.number=1),r||(t.printObject=!0),a||(t.printSpacing=!0),t}function rt(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function at(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("diatonic"===r.nodeName){var a=T(r,!0);t.diatonic=a}if("octave-change"===r.nodeName){var o=T(r,!0);t.octaveChange=o}if("double"===r.nodeName){var l=rt(r);t["double"]=l}if("chromatic"===r.nodeName){var s=T(r,!0);t.chromatic=s}}for(var i=0;i<e.attributes.length;++i){var u=e.attributes[i];if("number"===u.name){var c=F(u,!0);t.number=c,n=!0}}return n||(t.number=NaN),t}function ot(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function lt(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function st(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("use-symbols"===r.name){var a=C(r);t.useSymbols=a,n=!0}}var o=e,l=F(o,!0);return t.count=l,n||(t.useSymbols=!1),t}function ut(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("type"===r.name){var a=E(r,null);t.type=a}if("slashes"===r.name){var o=F(r,!0);t.slashes=o,n=!0}}var l=e,s=T(l,!1);return t.data=s,n||(t.slashes=1),t}function ct(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){var a=e.childNodes[r];if("slash-type"===a.nodeName){var o=T(a,!0);t.slashType=o}if("slash-dot"===a.nodeName){var l=lt(a);t.slashDots=(t.slashDots||[]).concat(l)}}for(var r=0;r<e.attributes.length;++r){var s=e.attributes[r];if("use-dots"===s.name){var u=C(s);t.useDots=u,n=!0}if("slases"===s.name){var c=F(s,!0);t.slases=c,i=!0}if("type"===s.name){var f=E(s,null);t.type=f}}return n||(t.useDots=!1),i||(t.slases=1),t}function ft(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){var a=e.childNodes[r];if("slash-type"===a.nodeName){var o=T(a,!0);t.slashType=o}if("slash-dot"===a.nodeName){var l=lt(a);t.slashDots=(t.slashDots||[]).concat(l)}}for(var r=0;r<e.attributes.length;++r){var s=e.attributes[r];if("use-dots"===s.name){var u=C(s);t.useDots=u,n=!0}if("use-stems"===s.name){var c=C(s);t.useStems=c,i=!0}if("type"===s.name){var f=E(s,null);t.type=f}}return n||(t.useDots=!1),i||(t.useStems=!1),t}function dt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("measure-repeat"===l.nodeName){var s=ut(l);t.measureRepeat=s}if("beat-repeat"===l.nodeName){var u=ct(l);t.beatRepeat=u}if("multiple-rest"===l.nodeName){var c=st(l);t.multipleRest=c}if("slash"===l.nodeName){var f=ft(l);t.slash=f}}for(var o=0;o<e.attributes.length;++o){var d=e.attributes[o];if("number"===d.name){var h=F(d,!0);t.number=h,n=!0}if("font-family"===d.name){var p=T(d,!0);t.fontFamily=p}if("font-weight"===d.name){var m=G(d,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===d.name){var v=q(d,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===d.name){var g=T(d,!0);t.fontSize=g}if("color"===d.name){var y=T(d,!0);t.color=y,a=!0}}return n||(t.number=1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),t}function ht(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("divisions"===i.nodeName){var r=F(i,!0);t.divisions=r}if("part-symbol"===i.nodeName){var a=$e(i);t.partSymbol=a}if("clef"===i.nodeName){var o=et(i);t.clefs=(t.clefs||[]).concat(o)}if("measure-style"===i.nodeName){var l=dt(i);t.measureStyles=(t.measureStyles||[]).concat(l)}if("time"===i.nodeName){var s=Je(i);t.times=(t.times||[]).concat(s)}if("staff-details"===i.nodeName){var u=it(i);t.staffDetails=(t.staffDetails||[]).concat(u)}if("transpose"===i.nodeName){var c=at(i);t.transposes=(t.transposes||[]).concat(c)}if("footnote"===i.nodeName){var f=re(i);t.footnote=f}if("level"===i.nodeName){var d=ae(i);t.level=d}if("staves"===i.nodeName){var h=F(i,!0);t.staves=h}if("instruments"===i.nodeName){var p=T(i,!0);t.instruments=p}if("key"===i.nodeName){var m=Qe(i);t.keySignatures=(t.keySignatures||[]).concat(m)}if("directive"===i.nodeName){var v=ot(i);t.directives=(t.directives||[]).concat(v)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="Attributes",t}function pt(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function mt(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("make-time"===r.name){var a=T(r,!0);t.makeTime=a}if("steal-time-previous"===r.name){var o=T(r,!0);t.stealTimePrevious=o}if("slash"===r.name){var l=C(r);t.slash=l,n=!0}if("steal-time-following"===r.name){var s=T(r,!0);t.stealTimeFollowing=s}}return n||(t.slash=!1),t}function vt(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function gt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("display-step"===i.nodeName){var r=T(i,!0);t.displayStep=r}if("display-octave"===i.nodeName){var a=F(i,!0);t.displayOctave=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function yt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("alter"===i.nodeName){var r=F(i,!0);t.alter=r}if("step"===i.nodeName){var a=T(i,!0);t.step=a.toLowerCase()}if("octave"===i.nodeName){var o=F(i,!0);t.octave=o}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function bt(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("display-step"===r.nodeName){var a=T(r,!0);t.displayStep=a}if("display-octave"===r.nodeName){var o=F(r,!0);t.displayOctave=o}}for(var i=0;i<e.attributes.length;++i){var l=e.attributes[i];if("measure"===l.name){var s=C(l);t.measure=s,n=!0}}return n||(t.measure=!1),t}function St(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("time-only"===i.name){var r=T(i,!0);t.timeOnly=r}if("type"===i.name){var a=E(i,null);t.type=a}}return t}function wt(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("id"===i.name){var r=T(i,!0);t.id=r}}return t}function Nt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=0;d<e.childNodes.length;++d){var h=e.childNodes[d];if("notehead-text"===h.nodeName){var p=L(h);t.noteheadText=p}if("time-modification"===h.nodeName){var m=Bt(h);t.timeModification=m}if("accidental"===h.nodeName){var v=kt(h);t.accidental=v}if("instrument"===h.nodeName){var g=wt(h);t.instrument=g}if("lyric"===h.nodeName){var y=A(h);t.lyrics=(t.lyrics||[]).concat(y)}if("dot"===h.nodeName){var b=Ft(h);t.dots=(t.dots||[]).concat(b)}if("notations"===h.nodeName){var S=Et(h);t.notations=(t.notations||[]).concat(S)}if("stem"===h.nodeName){var w=Lt(h);t.stem=w}if("type"===h.nodeName){var N=Tt(h);t.noteType=N}if("cue"===h.nodeName){var D=pt(h);t.cue=D}if("duration"===h.nodeName){var x=F(h,!0);t.duration=x}if("tie"===h.nodeName){var k=St(h);t.ties=(t.ties||[]).concat(k)}if("play"===h.nodeName){var B=ge(h);t.play=B}if("staff"===h.nodeName){var W=F(h,!0);t.staff=W}if("grace"===h.nodeName){var _=mt(h);t.grace=_}if("notehead"===h.nodeName){var O=_t(h);t.notehead=O}if("voice"===h.nodeName){var U=F(h,!0);t.voice=U}if("footnote"===h.nodeName){var E=re(h);t.footnote=E}if("level"===h.nodeName){var M=ae(h);t.level=M}if("unpitched"===h.nodeName){var X=gt(h);t.unpitched=X}if("chord"===h.nodeName){var P=vt(h);t.chord=P}if("pitch"===h.nodeName){var Y=yt(h);t.pitch=Y}if("rest"===h.nodeName){var R=bt(h);t.rest=R}if("beam"===h.nodeName){var z=At(h);t.beams=(t.beams||[]).concat(z)}}for(var d=0;d<e.attributes.length;++d){var I=e.attributes[d];if("attack"===I.name){var H=F(I,!0);t.attack=H,n=!0}if("end-dynamics"===I.name){var j=F(I,!0);t.endDynamics=j,i=!0}if("pizzicato"===I.name){var V=C(I);t.pizzicato=V,r=!0}if("dynamics"===I.name){var Q=F(I,!0);t.dynamics=Q,a=!0}if("release"===I.name){var J=F(I,!0);t.release=J,o=!0}if("default-x"===I.name){var K=F(I,!0);t.defaultX=K}if("relative-y"===I.name){var Z=F(I,!0);t.relativeY=Z}if("default-y"===I.name){var $=F(I,!0);t.defaultY=$}if("relative-x"===I.name){var ee=F(I,!0);t.relativeX=ee}if("font-family"===I.name){var te=T(I,!0);t.fontFamily=te}if("font-weight"===I.name){var ne=G(I,Is.Normal);t.fontWeight=ne,l=!0}if("font-style"===I.name){var ie=q(I,zs.Normal);t.fontStyle=ie,s=!0}if("font-size"===I.name){var oe=T(I,!0);t.fontSize=oe}if("color"===I.name){var le=T(I,!0);t.color=le,u=!0}if("print-dot"===I.name){var se=C(I);t.printDot=se}if("print-object"===I.name){var ue=C(I);t.printObject=ue,c=!0}if("print-spacing"===I.name){var ce=C(I);t.printSpacing=ce,f=!0}if("print-lyric"===I.name){var fe=C(I);t.printLyric=fe}if("time-only"===I.name){var de=T(I,!0);t.timeOnly=de}}return n||(t.attack=NaN),i||(t.endDynamics=90),r||(t.pizzicato=!1),a||(t.dynamics=90),o||(t.release=NaN),l||(t.fontWeight=Is.Normal),s||(t.fontStyle=zs.Normal),u||(t.color="#000000"),c||(t.printObject=!0),f||(t.printSpacing=!0),t._class="Note",t}function Dt(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"quarter"==n?lu.Quarter:"breve"==n?lu.Breve:"long"==n?lu.Long:"1024th"==n?lu._1024th:"32nd"==n?lu._32nd:"16th"==n?lu._16th:"eighth"==n?lu.Eighth:"maxima"==n?lu.Maxima:"512th"==n?lu._512th:"64th"==n?lu._64th:"256th"==n?lu._256th:"128th"==n?lu._128th:"half"==n?lu.Half:"whole"==n?lu.Whole:t}function Tt(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("size"===r.name){var a=P(r,As.Unspecified);t.size=a,n=!0}}var o=e,l=Dt(o,null);return t.duration=l,n||(t.size=As.Unspecified),t}function Ft(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function xt(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"natural-flat"==n?su.NaturalFlat:"sharp-up"==n?su.SharpUp:"three-quarters-flat"==n?su.ThreeQuartersFlat:"three-quarters-sharp"==n?su.ThreeQuartersSharp:"quarter-flat"==n?su.QuarterFlat:"flat"==n?su.Flat:"triple-sharp"==n?su.TripleSharp:"flat-1"==n?su.Flat1:"flat-2"==n?su.Flat2:"flat-3"==n?su.Flat3:"flat-4"==n?su.Flat4:"triple-flat"==n?su.TripleFlat:"flat-5"==n?su.Flat5:"sharp"==n?su.Sharp:"quarter-sharp"==n?su.QuarterSharp:"slash-flat"==n?su.SlashFlat:"flat-down"==n?su.FlatDown:"natural-down"==n?su.NaturalDown:"slash-quarter-sharp"==n?su.SlashQuarterSharp:"sharp-sharp"==n?su.SharpSharp:"sharp-1"==n?su.Sharp1:"flat-up"==n?su.FlatUp:"sharp-2"==n?su.Sharp2:"sharp-3"==n?su.Sharp3:"double-sharp"==n?su.DoubleSharp:"sharp-4"==n?su.Sharp4:"sharp-5"==n?su.Sharp5:"sori"==n?su.Sori:"double-slash-flat"==n?su.DoubleSlashFlat:"sharp-down"==n?su.SharpDown:"koron"==n?su.Koron:"natural-up"==n?su.NaturalUp:"slash-sharp"==n?su.SlashSharp:"natural-sharp"==n?su.NaturalSharp:"flat-flat"==n?su.FlatFlat:"natural"==n?su.Natural:"double-flat"==n?su.DoubleFlat:t}function kt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("cautionary"===f.name){var d=C(f);t.cautionary=d,n=!0}if("bracket"===f.name){var h=C(f);t.bracket=h,i=!0}if("size"===f.name){var p=P(f,As.Unspecified);t.size=p,r=!0}if("parentheses"===f.name){var m=C(f);t.parentheses=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("editorial"===f.name){var k=C(f);t.editorial=k,u=!0}}var B=e,L=xt(B,null);return t.accidental=L,n||(t.cautionary=!1),i||(t.bracket=!1),r||(t.size=As.Unspecified),a||(t.parentheses=!1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.editorial=!1),t}function Bt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("actual-notes"===i.nodeName){var r=F(i,!0);t.actualNotes=r}if("normal-type"===i.nodeName){var a=T(i,!0);t.normalType=a}if("normal-notes"===i.nodeName){var o=F(i,!0);t.normalNotes=o}if("normal-dot"===i.nodeName){var l=ce(i);t.normalDots=(t.normalDots||[]).concat(l)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Ct(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?uu.None:"double"==n?uu.Double:"down"==n?uu.Down:"up"==n?uu.Up:t}function Lt(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("default-x"===r.name){var a=F(r,!0);t.defaultX=a}if("relative-y"===r.name){var o=F(r,!0);t.relativeY=o}if("default-y"===r.name){var l=F(r,!0);t.defaultY=l}if("relative-x"===r.name){var s=F(r,!0);t.relativeX=s}if("color"===r.name){var u=T(r,!0);t.color=u,n=!0}}var c=e,f=Ct(c,null);return t.type=f,n||(t.color="#000000"),t}function Wt(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"inverted triangle"==n?cu.InvertedTriangle:"circle dot"==n?cu.CircleDot:"arrow up"==n?cu.ArrowUp:"do"==n?cu.Do:"mi"==n?cu.Mi:"cross"==n?cu.Cross:"slash"==n?cu.Slash:"fa"==n?cu.Fa:"triangle"==n?cu.Triangle:"fa up"==n?cu.FaUp:"so"==n?cu.So:"left triangle"==n?cu.LeftTriangle:"back slashed"==n?cu.BackSlashed:"none"==n?cu.None:"la"==n?cu.La:"slashed"==n?cu.Slashed:"normal"==n?cu.Normal:"cluster"==n?cu.Cluster:"ti"==n?cu.Ti:"re"==n?cu.Re:"rectangle"==n?cu.Rectangle:"square"==n?cu.Square:"arrow down"==n?cu.ArrowDown:"x"==n?cu.X:"diamond"==n?cu.Diamond:"circle-x"==n?cu.CircleX:t}function _t(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}if("filled"===o.name){var d=C(o);t.filled=d}if("parentheses"===o.name){var h=C(o);t.parentheses=h}}var p=e,m=Wt(p,null);return t.type=m,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function Ot(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"backward hook"==n?fu.BackwardHook:"begin"==n?fu.Begin:"forward hook"==n?fu.ForwardHook:"continue"==n?fu.Continue:"end"==n?fu.End:t}function Ut(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"accel"==n?du.Accel:"none"==n?du.None:"rit"==n?du.Rit:t}function At(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("repeater"===o.name){var l=C(o);t.repeater=l,n=!0}if("number"===o.name){var s=F(o,!0);t.number=s,i=!0}if("fan"===o.name){var u=Ut(o,du.None);t.fan=u,r=!0}}var c=e,f=Ot(c,null);return t.type=f,n||(t.repeater=!1),i||(t.number=1),r||(t.fan=du.None),t}function Et(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("slur"===r.nodeName){var a=Xt(r);t.slurs=(t.slurs||[]).concat(a)}if("articulations"===r.nodeName){var o=Mn(r);t.articulations=(t.articulations||[]).concat(o)}if("slide"===r.nodeName){var l=Gt(r);t.slides=(t.slides||[]).concat(l)}if("technical"===r.nodeName){var s=fn(r);t.technicals=(t.technicals||[]).concat(s)}if("footnote"===r.nodeName){var u=re(r);t.footnote=u}if("level"===r.nodeName){var c=ae(r);t.level=c}if("tied"===r.nodeName){var f=Mt(r);t.tieds=(t.tieds||[]).concat(f)}if("tuplet"===r.nodeName){var d=Yt(r);t.tuplets=(t.tuplets||[]).concat(d)}if("glissando"===r.nodeName){var h=qt(r);t.glissandos=(t.glissandos||[]).concat(h)}if("dynamics"===r.nodeName){var p=fe(r);t.dynamics=(t.dynamics||[]).concat(p)}if("fermata"===r.nodeName){var m=oe(r);t.fermatas=(t.fermatas||[]).concat(m)}if("accidental-mark"===r.nodeName){var v=cn(r);t.accidentalMarks=(t.accidentalMarks||[]).concat(v)}if("ornaments"===r.nodeName){var g=Jt(r);t.ornaments=(t.ornaments||[]).concat(g)}if("arpeggiate"===r.nodeName){var y=ti(r);t.arpeggiates=(t.arpeggiates||[]).concat(y)}if("non-arpeggiate"===r.nodeName){var b=ni(r);t.nonArpeggiates=(t.nonArpeggiates||[]).concat(b)}if("other-notation"===r.nodeName){var S=Vt(r);t.otherNotations=(t.otherNotations||[]).concat(S)}}for(var i=0;i<e.attributes.length;++i){var w=e.attributes[i];if("print-object"===w.name){var N=C(w);t.printObject=N,n=!0}}return n||(t.printObject=!0),t}function Mt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("number"===u.name){var c=F(u,!0);t.number=c}if("line-type"===u.name){var f=Z(u,Vs.Solid);t.lineType=f,n=!0}if("dash-length"===u.name){var d=F(u,!0);t.dashLength=d,i=!0}if("space-length"===u.name){var h=F(u,!0);t.spaceLength=h,r=!0}if("default-x"===u.name){var p=F(u,!0);t.defaultX=p}if("relative-y"===u.name){var m=F(u,!0);t.relativeY=m}if("default-y"===u.name){var v=F(u,!0);t.defaultY=v}if("relative-x"===u.name){var g=F(u,!0);t.relativeX=g}if("placement"===u.name){var y=Y(u,Es.Unspecified);t.placement=y,a=!0}if("orientation"===u.name){var b=z(u,Ms.Unspecified);t.orientation=b,o=!0}if("bezier-x2"===u.name){var S=F(u,!0);t.bezierX2=S}if("bezier-offset"===u.name){var w=F(u,!0);t.bezierOffset=w}if("bezier-offset2"===u.name){var N=F(u,!0);t.bezierOffset2=N}if("bezier-x"===u.name){var D=F(u,!0);t.bezierX=D}if("bezier-y"===u.name){var x=F(u,!0);t.bezierY=x}if("bezier-y2"===u.name){var k=F(u,!0);t.bezierY2=k}if("color"===u.name){var B=T(u,!0);t.color=B,l=!0}if("type"===u.name){var C=M(u,null);t.type=C}}return n||(t.lineType=Vs.Solid),i||(t.dashLength=1),r||(t.spaceLength=1),a||(t.placement=Es.Unspecified),o||(t.orientation=Ms.Unspecified),l||(t.color="#000000"),t}function Xt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=0;u<e.childNodes.length;++u){e.childNodes[u]}for(var u=0;u<e.attributes.length;++u){var c=e.attributes[u];if("number"===c.name){var f=F(c,!0);t.number=f,n=!0}if("line-type"===c.name){var d=Z(c,Vs.Solid);t.lineType=d,i=!0}if("dash-length"===c.name){var h=F(c,!0);t.dashLength=h,r=!0}if("space-length"===c.name){var p=F(c,!0);t.spaceLength=p,a=!0}if("default-x"===c.name){var m=F(c,!0);t.defaultX=m}if("relative-y"===c.name){var v=F(c,!0);t.relativeY=v}if("default-y"===c.name){var g=F(c,!0);t.defaultY=g}if("relative-x"===c.name){var y=F(c,!0);t.relativeX=y}if("placement"===c.name){var b=Y(c,Es.Unspecified);t.placement=b,o=!0}if("orientation"===c.name){var S=z(c,Ms.Unspecified);t.orientation=S,l=!0}if("bezier-x2"===c.name){var w=F(c,!0);t.bezierX2=w}if("bezier-offset"===c.name){var N=F(c,!0);t.bezierOffset=N}if("bezier-offset2"===c.name){var D=F(c,!0);t.bezierOffset2=D}if("bezier-x"===c.name){var x=F(c,!0);t.bezierX=x}if("bezier-y"===c.name){var k=F(c,!0);t.bezierY=k}if("bezier-y2"===c.name){var B=F(c,!0);t.bezierY2=B}if("color"===c.name){var C=T(c,!0);t.color=C,s=!0}if("type"===c.name){var L=M(c,null);t.type=L}}return n||(t.number=1),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.placement=Es.Unspecified),l||(t.orientation=Ms.Unspecified),s||(t.color="#000000"),t}function Pt(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?hu.None:"both"==n?hu.Both:"actual"==n?hu.Actual:t}function Yt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){var s=e.childNodes[l];if("tuplet-normal"===s.nodeName){var u=zt(s);t.tupletNormal=u}if("tuplet-actual"===s.nodeName){var c=Rt(s);t.tupletActual=c}}for(var l=0;l<e.attributes.length;++l){var f=e.attributes[l];if("bracket"===f.name){var d=C(f);t.bracket=d,n=!0}if("number"===f.name){var h=F(f,!0);t.number=h}if("show-number"===f.name){var p=Pt(f,hu.Actual);t.showNumber=p,i=!0}if("line-shape"===f.name){var m=K(f,Gs.Straight);t.lineShape=m,r=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("placement"===f.name){var S=Y(f,Es.Unspecified);t.placement=S,a=!0}if("type"===f.name){var w=E(f,null);t.type=w}if("show-type"===f.name){var N=Pt(f,hu.None);t.showType=N,o=!0}}return n||(t.bracket=!1),i||(t.showNumber=hu.Actual),r||(t.lineShape=Gs.Straight),a||(t.placement=Es.Unspecified),o||(t.showType=hu.None),t}function Rt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("tuplet-number"===i.nodeName){var r=It(i);t.tupletNumber=r}if("tuplet-dot"===i.nodeName){var a=jt(i);t.tupletDots=(t.tupletDots||[]).concat(a)}if("tuplet-type"===i.nodeName){var o=Ht(i);t.tupletType=o}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function zt(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("tuplet-number"===i.nodeName){var r=It(i);t.tupletNumber=r}if("tuplet-dot"===i.nodeName){var a=jt(i);t.tupletDots=(t.tupletDots||[]).concat(a)}if("tuplet-type"===i.nodeName){var o=Ht(i);t.tupletType=o}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function It(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}var d=e,h=T(d,!0);return t.text=h,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function Ht(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}var d=e,h=T(d,!0);
return t.text=h,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function jt(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function qt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=0;u<e.childNodes.length;++u){e.childNodes[u]}for(var u=0;u<e.attributes.length;++u){var c=e.attributes[u];if("line-type"===c.name){var f=Z(c,Vs.Solid);t.lineType=f,n=!0}if("dash-length"===c.name){var d=F(c,!0);t.dashLength=d,i=!0}if("space-length"===c.name){var h=F(c,!0);t.spaceLength=h,r=!0}if("default-x"===c.name){var p=F(c,!0);t.defaultX=p}if("relative-y"===c.name){var m=F(c,!0);t.relativeY=m}if("default-y"===c.name){var v=F(c,!0);t.defaultY=v}if("relative-x"===c.name){var g=F(c,!0);t.relativeX=g}if("font-family"===c.name){var y=T(c,!0);t.fontFamily=y}if("font-weight"===c.name){var b=G(c,Is.Normal);t.fontWeight=b,a=!0}if("font-style"===c.name){var S=q(c,zs.Normal);t.fontStyle=S,o=!0}if("font-size"===c.name){var w=T(c,!0);t.fontSize=w}if("color"===c.name){var N=T(c,!0);t.color=N,l=!0}if("type"===c.name){var D=E(c,null);t.type=D}if("normal"===c.name){var x=F(c,!0);t.normal=x,s=!0}}var k=e,B=T(k,!1);return t.text=B,n||(t.lineType=Vs.Solid),i||(t.dashLength=1),r||(t.spaceLength=1),a||(t.fontWeight=Is.Normal),o||(t.fontStyle=zs.Normal),l||(t.color="#000000"),s||(t.normal=1),t}function Gt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("line-type"===p.name){var m=Z(p,Vs.Solid);t.lineType=m,n=!0}if("dash-length"===p.name){var v=F(p,!0);t.dashLength=v,i=!0}if("space-length"===p.name){var g=F(p,!0);t.spaceLength=g,r=!0}if("default-x"===p.name){var y=F(p,!0);t.defaultX=y}if("relative-y"===p.name){var b=F(p,!0);t.relativeY=b}if("default-y"===p.name){var S=F(p,!0);t.defaultY=S}if("relative-x"===p.name){var w=F(p,!0);t.relativeX=w}if("font-family"===p.name){var N=T(p,!0);t.fontFamily=N}if("font-weight"===p.name){var D=G(p,Is.Normal);t.fontWeight=D,a=!0}if("font-style"===p.name){var x=q(p,zs.Normal);t.fontStyle=x,o=!0}if("font-size"===p.name){var k=T(p,!0);t.fontSize=k}if("color"===p.name){var B=T(p,!0);t.color=B,l=!0}if("accelerate"===p.name){var L=C(p);t.accelerate=L,s=!0}if("beats"===p.name){var W=F(p,!0);t.beats=W,u=!0}if("last-beat"===p.name){var _=F(p,!0);t.lastBeat=_,c=!0}if("first-beat"===p.name){var O=F(p,!0);t.firstBeat=O,f=!0}if("type"===p.name){var U=E(p,null);t.type=U}if("normal"===p.name){var A=F(p,!0);t.normal=A,d=!0}}var M=e,X=T(M,!1);return t.text=X,n||(t.lineType=Vs.Solid),i||(t.dashLength=1),r||(t.spaceLength=1),a||(t.fontWeight=Is.Normal),o||(t.fontStyle=zs.Normal),l||(t.color="#000000"),s||(t.accelerate=!1),u||(t.beats=4),c||(t.lastBeat=75),f||(t.firstBeat=25),d||(t.normal=1),t}function Vt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("print-object"===s.name){var u=C(s);t.printObject=u,n=!0}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,a=!0}if("placement"===s.name){var b=Y(s,Es.Unspecified);t.placement=b,o=!0}if("type"===s.name){var S=X(s,null);t.type=S}}var w=e,N=T(w,!1);return t.data=N,n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function Qt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("print-object"===u.name){var c=C(u);t.printObject=c,n=!0}if("default-x"===u.name){var f=F(u,!0);t.defaultX=f}if("relative-y"===u.name){var d=F(u,!0);t.relativeY=d}if("default-y"===u.name){var h=F(u,!0);t.defaultY=h}if("relative-x"===u.name){var p=F(u,!0);t.relativeX=p}if("font-family"===u.name){var m=T(u,!0);t.fontFamily=m}if("font-weight"===u.name){var v=G(u,Is.Normal);t.fontWeight=v,i=!0}if("font-style"===u.name){var g=q(u,zs.Normal);t.fontStyle=g,r=!0}if("font-size"===u.name){var y=T(u,!0);t.fontSize=y}if("color"===u.name){var b=T(u,!0);t.color=b,a=!0}if("halign"===u.name){var S=V(u,t.justify||Hs.Left);t.halign=S,o=!0}if("valign"===u.name){var w=Q(u,js.Bottom);t.valign=w,l=!0}}var N=e,D=T(N,!0);return t.data=D,n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),t}function Jt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){var p=e.childNodes[h];if("delayed-inverted-turn"===p.nodeName){var m=tn(p);t.delayedInvertedTurn=m}if("shake"===p.nodeName){var v=rn(p);t.shake=v}if("turn"===p.nodeName){var g=Zt(p);t.turn=g}if("inverted-turn"===p.nodeName){var y=en(p);t.invertedTurn=y}if("other-ornament"===p.nodeName){var b=un(p);t.otherOrnament=b}if("delayed-turn"===p.nodeName){var S=$t(p);t.delayedTurn=S}if("vertical-turn"===p.nodeName){var w=nn(p);t.verticalTurn=w}if("wavy-line"===p.nodeName){var N=le(p);t.wavyLine=N}if("tremolo"===p.nodeName){var D=sn(p);t.tremolo=D}if("accidental-mark"===p.nodeName){var x=cn(p);t.accidentalMarks=(t.accidentalMarks||[]).concat(x)}if("trill-mark"===p.nodeName){var k=Kt(p);t.trillMark=k}if("mordent"===p.nodeName){var B=an(p);t.mordent=B}if("inverted-mordent"===p.nodeName){var L=on(p);t.invertedMordent=L}if("schleifer"===p.nodeName){var W=ln(p);t.schleifer=W}}for(var h=0;h<e.attributes.length;++h){var _=e.attributes[h];if("default-x"===_.name){var O=F(_,!0);t.defaultX=O}if("relative-y"===_.name){var U=F(_,!0);t.relativeY=U}if("default-y"===_.name){var A=F(_,!0);t.defaultY=A}if("relative-x"===_.name){var E=F(_,!0);t.relativeX=E}if("font-family"===_.name){var M=T(_,!0);t.fontFamily=M}if("font-weight"===_.name){var X=G(_,Is.Normal);t.fontWeight=X,n=!0}if("font-style"===_.name){var P=q(_,zs.Normal);t.fontStyle=P,i=!0}if("font-size"===_.name){var R=T(_,!0);t.fontSize=R}if("color"===_.name){var z=T(_,!0);t.color=z,r=!0}if("placement"===_.name){var I=Y(_,Es.Unspecified);t.placement=I,a=!0}if("start-note"===_.name){var H=te(_,Ks.Upper);t.startNote=H,o=!0}if("accelerate"===_.name){var j=C(_);t.accelerate=j,l=!0}if("beats"===_.name){var V=F(_,!0);t.beats=V,s=!0}if("last-beat"===_.name){var Q=F(_,!0);t.lastBeat=Q,u=!0}if("trill-step"===_.name){var J=ne(_,Zs.Whole);t.trillStep=J,c=!0}if("two-note-turn"===_.name){var K=ie(_,$s.None);t.twoNoteTurn=K,f=!0}if("second-beat"===_.name){var Z=F(_,!0);t.secondBeat=Z,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function Kt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("default-x"===p.name){var m=F(p,!0);t.defaultX=m}if("relative-y"===p.name){var v=F(p,!0);t.relativeY=v}if("default-y"===p.name){var g=F(p,!0);t.defaultY=g}if("relative-x"===p.name){var y=F(p,!0);t.relativeX=y}if("font-family"===p.name){var b=T(p,!0);t.fontFamily=b}if("font-weight"===p.name){var S=G(p,Is.Normal);t.fontWeight=S,n=!0}if("font-style"===p.name){var w=q(p,zs.Normal);t.fontStyle=w,i=!0}if("font-size"===p.name){var N=T(p,!0);t.fontSize=N}if("color"===p.name){var D=T(p,!0);t.color=D,r=!0}if("placement"===p.name){var x=Y(p,Es.Unspecified);t.placement=x,a=!0}if("start-note"===p.name){var k=te(p,Ks.Upper);t.startNote=k,o=!0}if("accelerate"===p.name){var B=C(p);t.accelerate=B,l=!0}if("beats"===p.name){var L=F(p,!0);t.beats=L,s=!0}if("last-beat"===p.name){var W=F(p,!0);t.lastBeat=W,u=!0}if("trill-step"===p.name){var _=ne(p,Zs.Whole);t.trillStep=_,c=!0}if("two-note-turn"===p.name){var O=ie(p,$s.None);t.twoNoteTurn=O,f=!0}if("second-beat"===p.name){var U=F(p,!0);t.secondBeat=U,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function Zt(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=0;p<e.childNodes.length;++p){e.childNodes[p]}for(var p=0;p<e.attributes.length;++p){var m=e.attributes[p];if("slash"===m.name){var v=C(m);t.slash=v,n=!0}if("default-x"===m.name){var g=F(m,!0);t.defaultX=g}if("relative-y"===m.name){var y=F(m,!0);t.relativeY=y}if("default-y"===m.name){var b=F(m,!0);t.defaultY=b}if("relative-x"===m.name){var S=F(m,!0);t.relativeX=S}if("font-family"===m.name){var w=T(m,!0);t.fontFamily=w}if("font-weight"===m.name){var N=G(m,Is.Normal);t.fontWeight=N,i=!0}if("font-style"===m.name){var D=q(m,zs.Normal);t.fontStyle=D,r=!0}if("font-size"===m.name){var x=T(m,!0);t.fontSize=x}if("color"===m.name){var k=T(m,!0);t.color=k,a=!0}if("placement"===m.name){var B=Y(m,Es.Unspecified);t.placement=B,o=!0}if("start-note"===m.name){var L=te(m,Ks.Upper);t.startNote=L,l=!0}if("accelerate"===m.name){var W=C(m);t.accelerate=W,s=!0}if("beats"===m.name){var _=F(m,!0);t.beats=_,u=!0}if("last-beat"===m.name){var O=F(m,!0);t.lastBeat=O,c=!0}if("trill-step"===m.name){var U=ne(m,Zs.Whole);t.trillStep=U,f=!0}if("two-note-turn"===m.name){var A=ie(m,$s.None);t.twoNoteTurn=A,d=!0}if("second-beat"===m.name){var E=F(m,!0);t.secondBeat=E,h=!0}}return n||(t.slash=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),l||(t.startNote=Ks.Upper),s||(t.accelerate=!1),u||(t.beats=4),c||(t.lastBeat=75),f||(t.trillStep=Zs.Whole),d||(t.twoNoteTurn=$s.None),h||(t.secondBeat=25),t}function $t(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=0;p<e.childNodes.length;++p){e.childNodes[p]}for(var p=0;p<e.attributes.length;++p){var m=e.attributes[p];if("slash"===m.name){var v=C(m);t.slash=v,n=!0}if("default-x"===m.name){var g=F(m,!0);t.defaultX=g}if("relative-y"===m.name){var y=F(m,!0);t.relativeY=y}if("default-y"===m.name){var b=F(m,!0);t.defaultY=b}if("relative-x"===m.name){var S=F(m,!0);t.relativeX=S}if("font-family"===m.name){var w=T(m,!0);t.fontFamily=w}if("font-weight"===m.name){var N=G(m,Is.Normal);t.fontWeight=N,i=!0}if("font-style"===m.name){var D=q(m,zs.Normal);t.fontStyle=D,r=!0}if("font-size"===m.name){var x=T(m,!0);t.fontSize=x}if("color"===m.name){var k=T(m,!0);t.color=k,a=!0}if("placement"===m.name){var B=Y(m,Es.Unspecified);t.placement=B,o=!0}if("start-note"===m.name){var L=te(m,Ks.Upper);t.startNote=L,l=!0}if("accelerate"===m.name){var W=C(m);t.accelerate=W,s=!0}if("beats"===m.name){var _=F(m,!0);t.beats=_,u=!0}if("last-beat"===m.name){var O=F(m,!0);t.lastBeat=O,c=!0}if("trill-step"===m.name){var U=ne(m,Zs.Whole);t.trillStep=U,f=!0}if("two-note-turn"===m.name){var A=ie(m,$s.None);t.twoNoteTurn=A,d=!0}if("second-beat"===m.name){var E=F(m,!0);t.secondBeat=E,h=!0}}return n||(t.slash=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),l||(t.startNote=Ks.Upper),s||(t.accelerate=!1),u||(t.beats=4),c||(t.lastBeat=75),f||(t.trillStep=Zs.Whole),d||(t.twoNoteTurn=$s.None),h||(t.secondBeat=25),t}function en(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=0;p<e.childNodes.length;++p){e.childNodes[p]}for(var p=0;p<e.attributes.length;++p){var m=e.attributes[p];if("slash"===m.name){var v=C(m);t.slash=v,n=!0}if("default-x"===m.name){var g=F(m,!0);t.defaultX=g}if("relative-y"===m.name){var y=F(m,!0);t.relativeY=y}if("default-y"===m.name){var b=F(m,!0);t.defaultY=b}if("relative-x"===m.name){var S=F(m,!0);t.relativeX=S}if("font-family"===m.name){var w=T(m,!0);t.fontFamily=w}if("font-weight"===m.name){var N=G(m,Is.Normal);t.fontWeight=N,i=!0}if("font-style"===m.name){var D=q(m,zs.Normal);t.fontStyle=D,r=!0}if("font-size"===m.name){var x=T(m,!0);t.fontSize=x}if("color"===m.name){var k=T(m,!0);t.color=k,a=!0}if("placement"===m.name){var B=Y(m,Es.Unspecified);t.placement=B,o=!0}if("start-note"===m.name){var L=te(m,Ks.Upper);t.startNote=L,l=!0}if("accelerate"===m.name){var W=C(m);t.accelerate=W,s=!0}if("beats"===m.name){var _=F(m,!0);t.beats=_,u=!0}if("last-beat"===m.name){var O=F(m,!0);t.lastBeat=O,c=!0}if("trill-step"===m.name){var U=ne(m,Zs.Whole);t.trillStep=U,f=!0}if("two-note-turn"===m.name){var A=ie(m,$s.None);t.twoNoteTurn=A,d=!0}if("second-beat"===m.name){var E=F(m,!0);t.secondBeat=E,h=!0}}return n||(t.slash=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),l||(t.startNote=Ks.Upper),s||(t.accelerate=!1),u||(t.beats=4),c||(t.lastBeat=75),f||(t.trillStep=Zs.Whole),d||(t.twoNoteTurn=$s.None),h||(t.secondBeat=25),t}function tn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=0;p<e.childNodes.length;++p){e.childNodes[p]}for(var p=0;p<e.attributes.length;++p){var m=e.attributes[p];if("slash"===m.name){var v=C(m);t.slash=v,n=!0}if("default-x"===m.name){var g=F(m,!0);t.defaultX=g}if("relative-y"===m.name){var y=F(m,!0);t.relativeY=y}if("default-y"===m.name){var b=F(m,!0);t.defaultY=b}if("relative-x"===m.name){var S=F(m,!0);t.relativeX=S}if("font-family"===m.name){var w=T(m,!0);t.fontFamily=w}if("font-weight"===m.name){var N=G(m,Is.Normal);t.fontWeight=N,i=!0}if("font-style"===m.name){var D=q(m,zs.Normal);t.fontStyle=D,r=!0}if("font-size"===m.name){var x=T(m,!0);t.fontSize=x}if("color"===m.name){var k=T(m,!0);t.color=k,a=!0}if("placement"===m.name){var B=Y(m,Es.Unspecified);t.placement=B,o=!0}if("start-note"===m.name){var L=te(m,Ks.Upper);t.startNote=L,l=!0}if("accelerate"===m.name){var W=C(m);t.accelerate=W,s=!0}if("beats"===m.name){var _=F(m,!0);t.beats=_,u=!0}if("last-beat"===m.name){var O=F(m,!0);t.lastBeat=O,c=!0}if("trill-step"===m.name){var U=ne(m,Zs.Whole);t.trillStep=U,f=!0}if("two-note-turn"===m.name){var A=ie(m,$s.None);t.twoNoteTurn=A,d=!0}if("second-beat"===m.name){var E=F(m,!0);t.secondBeat=E,h=!0}}return n||(t.slash=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),l||(t.startNote=Ks.Upper),s||(t.accelerate=!1),u||(t.beats=4),c||(t.lastBeat=75),f||(t.trillStep=Zs.Whole),d||(t.twoNoteTurn=$s.None),h||(t.secondBeat=25),t}function nn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("default-x"===p.name){var m=F(p,!0);t.defaultX=m}if("relative-y"===p.name){var v=F(p,!0);t.relativeY=v}if("default-y"===p.name){var g=F(p,!0);t.defaultY=g}if("relative-x"===p.name){var y=F(p,!0);t.relativeX=y}if("font-family"===p.name){var b=T(p,!0);t.fontFamily=b}if("font-weight"===p.name){var S=G(p,Is.Normal);t.fontWeight=S,n=!0}if("font-style"===p.name){var w=q(p,zs.Normal);t.fontStyle=w,i=!0}if("font-size"===p.name){var N=T(p,!0);t.fontSize=N}if("color"===p.name){var D=T(p,!0);t.color=D,r=!0}if("placement"===p.name){var x=Y(p,Es.Unspecified);t.placement=x,a=!0}if("start-note"===p.name){var k=te(p,Ks.Upper);t.startNote=k,o=!0}if("accelerate"===p.name){var B=C(p);t.accelerate=B,l=!0}if("beats"===p.name){var L=F(p,!0);t.beats=L,s=!0}if("last-beat"===p.name){var W=F(p,!0);t.lastBeat=W,u=!0}if("trill-step"===p.name){var _=ne(p,Zs.Whole);t.trillStep=_,c=!0}if("two-note-turn"===p.name){var O=ie(p,$s.None);t.twoNoteTurn=O,f=!0}if("second-beat"===p.name){var U=F(p,!0);t.secondBeat=U,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function rn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("default-x"===p.name){var m=F(p,!0);t.defaultX=m}if("relative-y"===p.name){var v=F(p,!0);t.relativeY=v}if("default-y"===p.name){var g=F(p,!0);t.defaultY=g}if("relative-x"===p.name){var y=F(p,!0);t.relativeX=y}if("font-family"===p.name){var b=T(p,!0);t.fontFamily=b}if("font-weight"===p.name){var S=G(p,Is.Normal);t.fontWeight=S,n=!0}if("font-style"===p.name){var w=q(p,zs.Normal);t.fontStyle=w,i=!0}if("font-size"===p.name){var N=T(p,!0);t.fontSize=N}if("color"===p.name){var D=T(p,!0);t.color=D,r=!0}if("placement"===p.name){var x=Y(p,Es.Unspecified);t.placement=x,a=!0}if("start-note"===p.name){var k=te(p,Ks.Upper);t.startNote=k,o=!0}if("accelerate"===p.name){var B=C(p);t.accelerate=B,l=!0}if("beats"===p.name){var L=F(p,!0);t.beats=L,s=!0}if("last-beat"===p.name){var W=F(p,!0);t.lastBeat=W,u=!0}if("trill-step"===p.name){var _=ne(p,Zs.Whole);t.trillStep=_,c=!0}if("two-note-turn"===p.name){var O=ie(p,$s.None);t.twoNoteTurn=O,f=!0}if("second-beat"===p.name){var U=F(p,!0);t.secondBeat=U,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function an(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("long"===p.name){var m=C(p);t["long"]=m}if("approach"===p.name){var v=Y(p,null);t.approach=v}if("departure"===p.name){var g=Y(p,null);t.departure=g}if("default-x"===p.name){var y=F(p,!0);t.defaultX=y}if("relative-y"===p.name){var b=F(p,!0);t.relativeY=b}if("default-y"===p.name){var S=F(p,!0);t.defaultY=S}if("relative-x"===p.name){var w=F(p,!0);t.relativeX=w}if("font-family"===p.name){var N=T(p,!0);t.fontFamily=N}if("font-weight"===p.name){var D=G(p,Is.Normal);t.fontWeight=D,n=!0}if("font-style"===p.name){var x=q(p,zs.Normal);t.fontStyle=x,i=!0}if("font-size"===p.name){var k=T(p,!0);t.fontSize=k}if("color"===p.name){var B=T(p,!0);t.color=B,r=!0}if("placement"===p.name){var L=Y(p,Es.Unspecified);t.placement=L,a=!0}if("start-note"===p.name){var W=te(p,Ks.Upper);t.startNote=W,o=!0}if("accelerate"===p.name){var _=C(p);t.accelerate=_,l=!0}if("beats"===p.name){var O=F(p,!0);t.beats=O,s=!0}if("last-beat"===p.name){var U=F(p,!0);t.lastBeat=U,u=!0}if("trill-step"===p.name){var A=ne(p,Zs.Whole);t.trillStep=A,c=!0}if("two-note-turn"===p.name){var E=ie(p,$s.None);t.twoNoteTurn=E,f=!0}if("second-beat"===p.name){var M=F(p,!0);t.secondBeat=M,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function on(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=0;h<e.childNodes.length;++h){e.childNodes[h]}for(var h=0;h<e.attributes.length;++h){var p=e.attributes[h];if("long"===p.name){var m=C(p);t["long"]=m}if("approach"===p.name){var v=Y(p,null);t.approach=v}if("departure"===p.name){var g=Y(p,null);t.departure=g}if("default-x"===p.name){var y=F(p,!0);t.defaultX=y}if("relative-y"===p.name){var b=F(p,!0);t.relativeY=b}if("default-y"===p.name){var S=F(p,!0);t.defaultY=S}if("relative-x"===p.name){var w=F(p,!0);t.relativeX=w}if("font-family"===p.name){var N=T(p,!0);t.fontFamily=N}if("font-weight"===p.name){var D=G(p,Is.Normal);t.fontWeight=D,n=!0}if("font-style"===p.name){var x=q(p,zs.Normal);t.fontStyle=x,i=!0}if("font-size"===p.name){var k=T(p,!0);t.fontSize=k}if("color"===p.name){var B=T(p,!0);t.color=B,r=!0}if("placement"===p.name){var L=Y(p,Es.Unspecified);t.placement=L,a=!0}if("start-note"===p.name){var W=te(p,Ks.Upper);t.startNote=W,o=!0}if("accelerate"===p.name){var _=C(p);t.accelerate=_,l=!0}if("beats"===p.name){var O=F(p,!0);t.beats=O,s=!0}if("last-beat"===p.name){var U=F(p,!0);t.lastBeat=U,u=!0}if("trill-step"===p.name){var A=ne(p,Zs.Whole);t.trillStep=A,c=!0}if("two-note-turn"===p.name){var E=ie(p,$s.None);t.twoNoteTurn=E,f=!0}if("second-beat"===p.name){var M=F(p,!0);t.secondBeat=M,d=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.startNote=Ks.Upper),l||(t.accelerate=!1),s||(t.beats=4),u||(t.lastBeat=75),c||(t.trillStep=Zs.Whole),f||(t.twoNoteTurn=$s.None),d||(t.secondBeat=25),t}function ln(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function sn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("placement"===s.name){var y=Y(s,Es.Unspecified);t.placement=y,a=!0}if("type"===s.name){var b=X(s,Us.Single);t.type=b,o=!0}}var S=e,w=T(S,!1);return t.data=w,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.type=Us.Single),t}function un(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}if("type"===l.name){var y=X(l,null);t.type=y}}var b=e,S=T(b,!1);return t.data=S,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function cn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.mark=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function fn(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("triple-tongue"===i.nodeName){var r=bn(i);t.tripleTongue=r}if("toe"===i.nodeName){var a=Bn(i);t.toe=a}if("hole"===i.nodeName){var o=Ln(i);t.hole=o}if("hammer-on"===i.nodeName){var l=Nn(i);t.hammerOn=l}if("up-bow"===i.nodeName){var s=dn(i);t.upBow=s}if("down-bow"===i.nodeName){var u=hn(i);t.downBow=u}if("fret"===i.nodeName){var c=he(i);t.fret=c}if("tap"===i.nodeName){var f=xn(i);t.tap=f}if("pull-off"===i.nodeName){var d=Dn(i);t.pullOff=d}if("handbell"===i.nodeName){var h=An(i);t.handbell=h}if("bend"===i.nodeName){var p=Tn(i);t.bend=p}if("thumb-position"===i.nodeName){var m=vn(i);t.thumbPosition=m}if("stopped"===i.nodeName){var v=Sn(i);t.stopped=v}if("pluck"===i.nodeName){var g=gn(i);t.pluck=g}if("double-tongue"===i.nodeName){var y=yn(i);t.doubleTongue=y}if("string"===i.nodeName){var b=pe(i);t.string=b}if("open-string"===i.nodeName){var S=mn(i);t.openString=S}if("fingernails"===i.nodeName){var w=Cn(i);t.fingernails=w}if("arrow"===i.nodeName){var N=Un(i);t.arrow=N}if("harmonic"===i.nodeName){var D=pn(i);t.harmonic=D}if("heel"===i.nodeName){var T=kn(i);t.heel=T}if("other-technical"===i.nodeName){var F=En(i);t.otherTechnical=F}if("snap-pizzicato"===i.nodeName){var x=wn(i);t.snapPizzicato=x}if("fingering"===i.nodeName){var k=de(i);t.fingering=k}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function dn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function hn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function pn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){var s=e.childNodes[l];if("artificial"===s.nodeName){var u=!0;t.artificial=u}if("touching-pitch"===s.nodeName){var c=!0;t.touchingPitch=c}if("sounding-pitch"===s.nodeName){var f=!0;t.soundingPitch=f}if("natural"===s.nodeName){var d=!0;t.natural=d}if("base-pitch"===s.nodeName){var h=!0;t.basePitch=h}}for(var l=0;l<e.attributes.length;++l){var p=e.attributes[l];if("print-object"===p.name){var m=C(p);t.printObject=m,n=!0}if("default-x"===p.name){var v=F(p,!0);t.defaultX=v}if("relative-y"===p.name){var g=F(p,!0);t.relativeY=g}if("default-y"===p.name){var y=F(p,!0);t.defaultY=y}if("relative-x"===p.name){var b=F(p,!0);t.relativeX=b}if("font-family"===p.name){var S=T(p,!0);t.fontFamily=S}if("font-weight"===p.name){var w=G(p,Is.Normal);t.fontWeight=w,i=!0}if("font-style"===p.name){var N=q(p,zs.Normal);t.fontStyle=N,r=!0}if("font-size"===p.name){var D=T(p,!0);t.fontSize=D}if("color"===p.name){var x=T(p,!0);t.color=x,a=!0}if("placement"===p.name){var k=Y(p,Es.Unspecified);t.placement=k,o=!0}}return n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function mn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function vn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function gn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function yn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){
e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function bn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Sn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function wn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Nn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("number"===s.name){var u=F(s,!0);t.number=u,n=!0}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,a=!0}if("placement"===s.name){var b=Y(s,Es.Unspecified);t.placement=b,o=!0}if("type"===s.name){var S=E(s,null);t.type=S}}var w=e,N=T(w,!1);return t.data=N,n||(t.number=1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function Dn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("number"===s.name){var u=F(s,!0);t.number=u,n=!0}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,a=!0}if("placement"===s.name){var b=Y(s,Es.Unspecified);t.placement=b,o=!0}if("type"===s.name){var S=E(s,null);t.type=S}}var w=e,N=T(w,!1);return t.data=N,n||(t.number=1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function Tn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=0;u<e.childNodes.length;++u){var c=e.childNodes[u];if("bend-alter"===c.nodeName){var f=T(c,!0);t.bendAlter=f}if("with-bar"===c.nodeName){var d=Fn(c);t.withBar=d}if("pre-bend"===c.nodeName){var h=!0;t.preBend=h}if("release"===c.nodeName){var p=!0;t.release=p}}for(var u=0;u<e.attributes.length;++u){var m=e.attributes[u];if("default-x"===m.name){var v=F(m,!0);t.defaultX=v}if("relative-y"===m.name){var g=F(m,!0);t.relativeY=g}if("default-y"===m.name){var y=F(m,!0);t.defaultY=y}if("relative-x"===m.name){var b=F(m,!0);t.relativeX=b}if("font-family"===m.name){var S=T(m,!0);t.fontFamily=S}if("font-weight"===m.name){var w=G(m,Is.Normal);t.fontWeight=w,n=!0}if("font-style"===m.name){var N=q(m,zs.Normal);t.fontStyle=N,i=!0}if("font-size"===m.name){var D=T(m,!0);t.fontSize=D}if("color"===m.name){var x=T(m,!0);t.color=x,r=!0}if("accelerate"===m.name){var k=C(m);t.accelerate=k,a=!0}if("beats"===m.name){var B=F(m,!0);t.beats=B,o=!0}if("last-beat"===m.name){var L=F(m,!0);t.lastBeat=L,l=!0}if("first-beat"===m.name){var W=F(m,!0);t.firstBeat=W,s=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.accelerate=!1),o||(t.beats=4),l||(t.lastBeat=75),s||(t.firstBeat=25),t}function Fn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function xn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function kn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("substitution"===s.name){var u=C(s);t.substitution=u,n=!0}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,a=!0}if("placement"===s.name){var b=Y(s,Es.Unspecified);t.placement=b,o=!0}}return n||(t.substitution=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function Bn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("substitution"===s.name){var u=C(s);t.substitution=u,n=!0}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,a=!0}if("placement"===s.name){var b=Y(s,Es.Unspecified);t.placement=b,o=!0}}return n||(t.substitution=!1),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t}function Cn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Ln(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("hole-closed"===l.nodeName){var s=On(l);t.holeClosed=s}if("hole-shape"===l.nodeName){var u=T(l,!0);t.holeShape=u}if("hole-type"===l.nodeName){var c=T(l,!0);t.holeType=c}}for(var o=0;o<e.attributes.length;++o){var f=e.attributes[o];if("default-x"===f.name){var d=F(f,!0);t.defaultX=d}if("relative-y"===f.name){var h=F(f,!0);t.relativeY=h}if("default-y"===f.name){var p=F(f,!0);t.defaultY=p}if("relative-x"===f.name){var m=F(f,!0);t.relativeX=m}if("font-family"===f.name){var v=T(f,!0);t.fontFamily=v}if("font-weight"===f.name){var g=G(f,Is.Normal);t.fontWeight=g,n=!0}if("font-style"===f.name){var y=q(f,zs.Normal);t.fontStyle=y,i=!0}if("font-size"===f.name){var b=T(f,!0);t.fontSize=b}if("color"===f.name){var S=T(f,!0);t.color=S,r=!0}if("placement"===f.name){var w=Y(f,Es.Unspecified);t.placement=w,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Wn(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"right"==n?pu.Right:"top"==n?pu.Top:"bottom"==n?pu.Bottom:"left"==n?pu.Left:t}function _n(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"no"==n?mu.No:"yes"==n?mu.Yes:"half"==n?mu.Half:t}function On(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("location"===i.name){var r=Wn(i,null);t.location=r}}var a=e,o=_n(a,null);return t.data=o,t}function Un(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){var l=e.childNodes[o];if("arrow-style"===l.nodeName){var s=T(l,!0);t.arrowStyle=s}if("arrow-direction"===l.nodeName){var u=T(l,!0);t.arrowDirection=u}if("circular-arrow"===l.nodeName){var c=T(l,!0);t.circularArrow=c}}for(var o=0;o<e.attributes.length;++o){var f=e.attributes[o];if("default-x"===f.name){var d=F(f,!0);t.defaultX=d}if("relative-y"===f.name){var h=F(f,!0);t.relativeY=h}if("default-y"===f.name){var p=F(f,!0);t.defaultY=p}if("relative-x"===f.name){var m=F(f,!0);t.relativeX=m}if("font-family"===f.name){var v=T(f,!0);t.fontFamily=v}if("font-weight"===f.name){var g=G(f,Is.Normal);t.fontWeight=g,n=!0}if("font-style"===f.name){var y=q(f,zs.Normal);t.fontStyle=y,i=!0}if("font-size"===f.name){var b=T(f,!0);t.fontSize=b}if("color"===f.name){var S=T(f,!0);t.color=S,r=!0}if("placement"===f.name){var w=Y(f,Es.Unspecified);t.placement=w,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function An(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function En(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Mn(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("accent"===i.nodeName){var r=Xn(i);t.accent=r}if("doit"===i.nodeName){var a=Gn(i);t.doit=a}if("breath-mark"===i.nodeName){var o=Jn(i);t.breathMark=o}if("other-articulation"===i.nodeName){var l=ei(i);t.otherArticulations=(t.otherArticulations||[]).concat(l)}if("detached-legato"===i.nodeName){var s=zn(i);t.detachedLegato=s}if("staccatissimo"===i.nodeName){var u=In(i);t.staccatissimo=u}if("plop"===i.nodeName){var c=qn(i);t.plop=c}if("unstress"===i.nodeName){var f=$n(i);t.unstress=f}if("strong-accent"===i.nodeName){var d=Pn(i);t.strongAccent=d}if("staccato"===i.nodeName){var h=Yn(i);t.staccato=h}if("spiccato"===i.nodeName){var p=Hn(i);t.spiccato=p}if("scoop"===i.nodeName){var m=jn(i);t.scoop=m}if("falloff"===i.nodeName){var v=Vn(i);t.falloff=v}if("caesura"===i.nodeName){var g=Kn(i);t.caesura=g}if("stress"===i.nodeName){var y=Zn(i);t.stress=y}if("tenuto"===i.nodeName){var b=Rn(i);t.tenuto=b}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Xn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Pn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("placement"===s.name){var y=Y(s,Es.Unspecified);t.placement=y,a=!0}if("type"===s.name){var b=R(s,Xs.Up);t.type=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),o||(t.type=Xs.Up),t}function Yn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Rn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function zn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function In(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Hn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function jn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("line-shape"===f.name){var d=K(f,Gs.Straight);t.lineShape=d,n=!0}if("line-type"===f.name){var h=Z(f,Vs.Solid);t.lineType=h,i=!0}if("dash-length"===f.name){var p=F(f,!0);t.dashLength=p,r=!0}if("space-length"===f.name){var m=F(f,!0);t.spaceLength=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("placement"===f.name){var k=Y(f,Es.Unspecified);t.placement=k,u=!0}}return n||(t.lineShape=Gs.Straight),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.placement=Es.Unspecified),t}function qn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("line-shape"===f.name){var d=K(f,Gs.Straight);t.lineShape=d,n=!0}if("line-type"===f.name){var h=Z(f,Vs.Solid);t.lineType=h,i=!0}if("dash-length"===f.name){var p=F(f,!0);t.dashLength=p,r=!0}if("space-length"===f.name){var m=F(f,!0);t.spaceLength=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("placement"===f.name){var k=Y(f,Es.Unspecified);t.placement=k,u=!0}}return n||(t.lineShape=Gs.Straight),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.placement=Es.Unspecified),t}function Gn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("line-shape"===f.name){var d=K(f,Gs.Straight);t.lineShape=d,n=!0}if("line-type"===f.name){var h=Z(f,Vs.Solid);t.lineType=h,i=!0}if("dash-length"===f.name){var p=F(f,!0);t.dashLength=p,r=!0}if("space-length"===f.name){var m=F(f,!0);t.spaceLength=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("placement"===f.name){var k=Y(f,Es.Unspecified);t.placement=k,u=!0}}return n||(t.lineShape=Gs.Straight),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.placement=Es.Unspecified),t}function Vn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("line-shape"===f.name){var d=K(f,Gs.Straight);t.lineShape=d,n=!0}if("line-type"===f.name){var h=Z(f,Vs.Solid);t.lineType=h,i=!0}if("dash-length"===f.name){var p=F(f,!0);t.dashLength=p,r=!0}if("space-length"===f.name){var m=F(f,!0);t.spaceLength=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("placement"===f.name){var k=Y(f,Es.Unspecified);t.placement=k,u=!0}}return n||(t.lineShape=Gs.Straight),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.placement=Es.Unspecified),t}function Qn(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:""==n?vu.Empty:"comma"==n?vu.Comma:"tick"==n?vu.Tick:t}function Jn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){e.childNodes[c]}for(var c=0;c<e.attributes.length;++c){var f=e.attributes[c];if("line-shape"===f.name){var d=K(f,Gs.Straight);t.lineShape=d,n=!0}if("line-type"===f.name){var h=Z(f,Vs.Solid);t.lineType=h,i=!0}if("dash-length"===f.name){var p=F(f,!0);t.dashLength=p,r=!0}if("space-length"===f.name){var m=F(f,!0);t.spaceLength=m,a=!0}if("default-x"===f.name){var v=F(f,!0);t.defaultX=v}if("relative-y"===f.name){var g=F(f,!0);t.relativeY=g}if("default-y"===f.name){var y=F(f,!0);t.defaultY=y}if("relative-x"===f.name){var b=F(f,!0);t.relativeX=b}if("font-family"===f.name){var S=T(f,!0);t.fontFamily=S}if("font-weight"===f.name){var w=G(f,Is.Normal);t.fontWeight=w,o=!0}if("font-style"===f.name){var N=q(f,zs.Normal);t.fontStyle=N,l=!0}if("font-size"===f.name){var D=T(f,!0);t.fontSize=D}if("color"===f.name){var x=T(f,!0);t.color=x,s=!0}if("placement"===f.name){var k=Y(f,Es.Unspecified);t.placement=k,u=!0}}var B=e,C=Qn(B,null);return t.type=C,n||(t.lineShape=Gs.Straight),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.fontWeight=Is.Normal),l||(t.fontStyle=zs.Normal),s||(t.color="#000000"),u||(t.placement=Es.Unspecified),t}function Kn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function Zn(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function $n(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function ei(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){
var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("placement"===l.name){var g=Y(l,Es.Unspecified);t.placement=g,a=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.placement=Es.Unspecified),t}function ti(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("number"===l.name){var s=F(l,!0);t.number=s,n=!0}if("default-x"===l.name){var u=F(l,!0);t.defaultX=u}if("relative-y"===l.name){var c=F(l,!0);t.relativeY=c}if("default-y"===l.name){var f=F(l,!0);t.defaultY=f}if("relative-x"===l.name){var d=F(l,!0);t.relativeX=d}if("placement"===l.name){var h=Y(l,Es.Unspecified);t.placement=h,i=!0}if("color"===l.name){var p=T(l,!0);t.color=p,r=!0}if("direction"===l.name){var m=R(l,Xs.Up);t.direction=m,a=!0}}return n||(t.number=1),i||(t.placement=Es.Unspecified),r||(t.color="#000000"),a||(t.direction=Xs.Up),t}function ni(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("number"===o.name){var l=F(o,!0);t.number=l,n=!0}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("placement"===o.name){var d=Y(o,Es.Unspecified);t.placement=d,i=!0}if("color"===o.name){var h=T(o,!0);t.color=h,r=!0}if("type"===o.name){var p=I(o,null);t.type=p}}return n||(t.number=1),i||(t.placement=Es.Unspecified),r||(t.color="#000000"),t}function ii(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="Laughing",t}function ri(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="Humming",t}function ai(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="EndLine",t}function oi(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="EndParagraph",t}function li(e){for(var t=[],n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("extend"===i.nodeName){var r=di(i);t=(t||[]).concat(r)}if("end-line"===i.nodeName){var r=ai(i);t=(t||[]).concat(r)}if("syllabic"===i.nodeName){var r=ci(i);t=(t||[]).concat(r)}if("text"===i.nodeName){var r=si(i);t=(t||[]).concat(r)}if("laughing"===i.nodeName){var r=ii(i);t=(t||[]).concat(r)}if("humming"===i.nodeName){var r=ri(i);t=(t||[]).concat(r)}if("end-paragraph"===i.nodeName){var r=oi(i);t=(t||[]).concat(r)}if("elision"===i.nodeName){var r=fi(i);t=(t||[]).concat(r)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function si(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=0;f<e.childNodes.length;++f){e.childNodes[f]}for(var f=0;f<e.attributes.length;++f){var d=e.attributes[f];if("font-family"===d.name){var h=T(d,!0);t.fontFamily=h}if("font-weight"===d.name){var p=G(d,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===d.name){var m=q(d,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===d.name){var v=T(d,!0);t.fontSize=v}if("color"===d.name){var g=T(d,!0);t.color=g,r=!0}if("underline"===d.name){var y=F(d,!0);t.underline=y,a=!0}if("overline"===d.name){var b=F(d,!0);t.overline=b,o=!0}if("line-through"===d.name){var S=F(d,!0);t.lineThrough=S,l=!0}if("rotation"===d.name){var w=F(d,!0);t.rotation=w,s=!0}if("letter-spacing"===d.name){var N=T(d,!0);t.letterSpacing=N,u=!0}if("dir"===d.name){var D=J(d,qs.Ltr);t.dir=D,c=!0}}var x=e,k=T(x,!0);return t.data=k,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.underline=0),o||(t.overline=0),l||(t.lineThrough=0),s||(t.rotation=0),u||(t.letterSpacing="normal"),c||(t.dir=qs.Ltr),t._class="Text",t}function ui(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"single"==n?gu.Single:"begin"==n?gu.Begin:"middle"==n?gu.Middle:"end"==n?gu.End:t}function ci(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}var d=e,h=ui(d,null);return t.data=h,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t._class="Syllabic",t}function fi(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("font-family"===o.name){var l=T(o,!0);t.fontFamily=l}if("font-weight"===o.name){var s=G(o,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===o.name){var u=q(o,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===o.name){var c=T(o,!0);t.fontSize=c}if("color"===o.name){var f=T(o,!0);t.color=f,r=!0}}var d=e,h=T(d,!0);return t.data=h,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t._class="Elision",t}function di(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("type"===l.name){var g=M(l,Os.Start);t.type=g,a=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.type=Os.Start),t._class="Extend",t}function hi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){var u=e.childNodes[s];if("footnote"===u.nodeName){var c=re(u);t.footnote=c}if("level"===u.nodeName){var f=ae(u);t.level=f}if("figure"===u.nodeName){var d=pi(u);t.figures=(t.figures||[]).concat(d)}if("duration"===u.nodeName){var h=F(u,!0);t.duration=h}}for(var s=0;s<e.attributes.length;++s){var p=e.attributes[s];if("default-x"===p.name){var m=F(p,!0);t.defaultX=m}if("relative-y"===p.name){var v=F(p,!0);t.relativeY=v}if("default-y"===p.name){var g=F(p,!0);t.defaultY=g}if("relative-x"===p.name){var y=F(p,!0);t.relativeX=y}if("font-family"===p.name){var b=T(p,!0);t.fontFamily=b}if("font-weight"===p.name){var S=G(p,Is.Normal);t.fontWeight=S,n=!0}if("font-style"===p.name){var w=q(p,zs.Normal);t.fontStyle=w,i=!0}if("font-size"===p.name){var N=T(p,!0);t.fontSize=N}if("color"===p.name){var D=T(p,!0);t.color=D,r=!0}if("print-dot"===p.name){var x=C(p);t.printDot=x}if("print-object"===p.name){var k=C(p);t.printObject=k,a=!0}if("print-spacing"===p.name){var B=C(p);t.printSpacing=B,o=!0}if("print-lyric"===p.name){var L=C(p);t.printLyric=L}if("parentheses"===p.name){var W=C(p);t.parentheses=W,l=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.printObject=!0),o||(t.printSpacing=!0),l||(t.parentheses=!1),t._class="FiguredBass",t}function pi(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){var o=e.childNodes[a];if("prefix"===o.nodeName){var l=mi(o);t.prefix=l}if("figure-number"===o.nodeName){var s=vi(o);t.figureNumber=s}if("extend"===o.nodeName){var u=di(o);t.extend=u}if("suffix"===o.nodeName){var c=gi(o);t.suffix=c}}for(var a=0;a<e.attributes.length;++a){var f=e.attributes[a];if("default-x"===f.name){var d=F(f,!0);t.defaultX=d}if("relative-y"===f.name){var h=F(f,!0);t.relativeY=h}if("default-y"===f.name){var p=F(f,!0);t.defaultY=p}if("relative-x"===f.name){var m=F(f,!0);t.relativeX=m}if("font-family"===f.name){var v=T(f,!0);t.fontFamily=v}if("font-weight"===f.name){var g=G(f,Is.Normal);t.fontWeight=g,n=!0}if("font-style"===f.name){var y=q(f,zs.Normal);t.fontStyle=y,i=!0}if("font-size"===f.name){var b=T(f,!0);t.fontSize=b}if("color"===f.name){var S=T(f,!0);t.color=S,r=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function mi(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function vi(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function gi(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function yi(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("footnote"===i.nodeName){var r=re(i);t.footnote=r}if("level"===i.nodeName){var a=ae(i);t.level=a}if("duration"===i.nodeName){var o=F(i,!0);t.duration=o}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="Backup",t}function bi(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("voice"===i.nodeName){var r=F(i,!0);t.voice=r}if("footnote"===i.nodeName){var a=re(i);t.footnote=a}if("level"===i.nodeName){var o=ae(i);t.level=o}if("duration"===i.nodeName){var l=F(i,!0);t.duration=l}if("staff"===i.nodeName){var s=F(i,!0);t.staff=s}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t._class="Forward",t}function Si(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"right"==n?yu.Right:"middle"==n?yu.Middle:"left"==n?yu.Left:t}function wi(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("segno"===i.nodeName){var r=se(i);t.segno=r}if("coda"===i.nodeName){var a=ue(i);t.coda=a}if("footnote"===i.nodeName){var o=re(i);t.footnote=o}if("level"===i.nodeName){var l=ae(i);t.level=l}if("wavy-line"===i.nodeName){var s=le(i);t.wavyLine=s}if("fermata"===i.nodeName){var u=oe(i);t.fermatas=(t.fermatas||[]).concat(u)}if("bar-style"===i.nodeName){var c=Di(i);t.barStyle=c}if("ending"===i.nodeName){var f=Fi(i);t.ending=f}if("repeat"===i.nodeName){var d=Bi(i);t.repeat=d}}for(var n=0;n<e.attributes.length;++n){var h=e.attributes[n];if("location"===h.name){var p=Si(h,null);t.location=p}if("coda"===h.name){var m=T(h,!0);t.codaAttrib=m}if("segno"===h.name){var v=T(h,!0);t.segnoAttrib=v}if("divisions"===h.name){var g=F(h,!0);t.divisions=g}}return t._class="Barline",t}function Ni(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"regular"==n?bu.Regular:"light-heavy"==n?bu.LightHeavy:"heavy-light"==n?bu.HeavyLight:"short"==n?bu.Short:"none"==n?bu.None:"dashed"==n?bu.Dashed:"heavy-heavy"==n?bu.HeavyHeavy:"tick"==n?bu.Tick:"dotted"==n?bu.Dotted:"heavy"==n?bu.Heavy:"light-light"==n?bu.LightLight:t}function Di(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("color"===r.name){var a=T(r,!0);t.color=a,n=!0}}var o=e,l=Ni(o,null);return t.data=l,n||(t.color="#000000"),t}function Ti(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"discontinue"==n?Su.Discontinue:"start"==n?Su.Start:"stop"==n?Su.Stop:t}function Fi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("end-length"===l.name){var s=F(l,!0);t.endLength=s}if("text-x"===l.name){var u=F(l,!0);t.textX=u}if("number"===l.name){var c=F(l,!0);t.number=c}if("text-y"===l.name){var f=F(l,!0);t.textY=f}if("print-object"===l.name){var d=C(l);t.printObject=d,n=!0}if("default-x"===l.name){var h=F(l,!0);t.defaultX=h}if("relative-y"===l.name){var p=F(l,!0);t.relativeY=p}if("default-y"===l.name){var m=F(l,!0);t.defaultY=m}if("relative-x"===l.name){var v=F(l,!0);t.relativeX=v}if("font-family"===l.name){var g=T(l,!0);t.fontFamily=g}if("font-weight"===l.name){var y=G(l,Is.Normal);t.fontWeight=y,i=!0}if("font-style"===l.name){var b=q(l,zs.Normal);t.fontStyle=b,r=!0}if("font-size"===l.name){var S=T(l,!0);t.fontSize=S}if("color"===l.name){var w=T(l,!0);t.color=w,a=!0}if("type"===l.name){var N=Ti(l,null);t.type=N}}var D=e,x=T(D,!1);return t.ending=x,n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),t}function xi(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?wu.None:"curved"==n?wu.Curved:"double-curved"==n?wu.DoubleCurved:"straight"==n?wu.Straight:"double-straight"==n?wu.DoubleStraight:t}function ki(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"forward"==n?Nu.Forward:"backward"==n?Nu.Backward:t}function Bi(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("times"===r.name){var a=T(r,!0);t.times=a}if("winged"===r.name){var o=xi(r,wu.None);t.winged=o,n=!0}if("direction"===r.name){var l=ki(r,null);t.direction=l}}return n||(t.winged=wu.None),t}function Ci(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"right"==n?Du.Right:"northwest"==n?Du.Northwest:"southwest"==n?Du.Southwest:"down"==n?Du.Down:"northeast"==n?Du.Northeast:"southeast"==n?Du.Southeast:"up"==n?Du.Up:"left"==n?Du.Left:t}function Li(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("voice"===r.nodeName){var a=F(r,!0);t.voice=a}if("footnote"===r.nodeName){var o=re(r);t.footnote=o}if("level"===r.nodeName){var l=ae(r);t.level=l}if("direction-type"===r.nodeName){var s=Wi(r);t.directionTypes=(t.directionTypes||[]).concat(s)}if("staff"===r.nodeName){var u=F(r,!0);t.staff=u}if("offset"===r.nodeName){var c=dr(r);t.offset=c}if("sound"===r.nodeName){var f=Mr(r);t.sound=f}}for(var i=0;i<e.attributes.length;++i){var d=e.attributes[i];if("placement"===d.name){var h=Y(d,Es.Unspecified);t.placement=h,n=!0}if("directive"===d.name){var p=C(d);t.directive=p}}return n||(t.placement=Es.Unspecified),t._class="Direction",t}function Wi(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("percussion"===i.nodeName){var r=sr(i);t.percussions=(t.percussions||[]).concat(r)}if("rehearsal"===i.nodeName){var a=_i(i);t.rehearsals=(t.rehearsals||[]).concat(a)}if("pedal"===i.nodeName){var o=Yi(i);t.pedal=o}if("principal-voice"===i.nodeName){var l=or(i);t.principalVoice=l}if("accordion-registration"===i.nodeName){var s=lr(i);t.accordionRegistration=s}if("eyeglasses"===i.nodeName){var u=er(i);t.eyeglasses=u}if("image"===i.nodeName){var c=rr(i);t.image=c}if("harp-pedals"===i.nodeName){var f=Ji(i);t.harpPedals=f}if("metronome"===i.nodeName){var d=Ri(i);t.metronome=d}if("other-direction"===i.nodeName){var h=Qt(i);t.otherDirection=h}if("segno"===i.nodeName){var p=se(i);t.segnos=(t.segnos||[]).concat(p)}if("scordatura"===i.nodeName){var m=nr(i);t.scordatura=m}if("string-mute"===i.nodeName){var v=tr(i);t.stringMute=v}if("wedge"===i.nodeName){var g=Ai(i);t.wedge=g}if("dashes"===i.nodeName){var y=Ei(i);t.dashes=y}if("damp"===i.nodeName){var b=Zi(i);t.damp=b}if("bracket"===i.nodeName){var S=Xi(i);t.bracket=S}if("dynamics"===i.nodeName){var w=fe(i);t.dynamics=w}if("octave-shift"===i.nodeName){var N=Qi(i);t.octaveShift=N}if("words"===i.nodeName){var D=Oi(i);t.words=(t.words||[]).concat(D)}if("damp-all"===i.nodeName){var T=$i(i);t.dampAll=T}if("coda"===i.nodeName){var F=ue(i);t.codas=(t.codas||[]).concat(F)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function _i(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=!1,m=!1,v=0;v<e.childNodes.length;++v){e.childNodes[v]}for(var v=0;v<e.attributes.length;++v){var g=e.attributes[v];if("justify"===g.name){var y=V(g,Hs.Left);t.justify=y,n=!0}if("default-x"===g.name){var b=F(g,!0);t.defaultX=b}if("relative-y"===g.name){var S=F(g,!0);t.relativeY=S}if("default-y"===g.name){var w=F(g,!0);t.defaultY=w}if("relative-x"===g.name){var N=F(g,!0);t.relativeX=N}if("font-family"===g.name){var D=T(g,!0);t.fontFamily=D}if("font-weight"===g.name){var x=G(g,Is.Normal);t.fontWeight=x,i=!0}if("font-style"===g.name){var k=q(g,zs.Normal);t.fontStyle=k,r=!0}if("font-size"===g.name){var B=T(g,!0);t.fontSize=B}if("color"===g.name){var C=T(g,!0);t.color=C,a=!0}if("halign"===g.name){var L=V(g,t.justify||Hs.Left);t.halign=L,o=!0}if("valign"===g.name){var W=Q(g,js.Bottom);t.valign=W,l=!0}if("underline"===g.name){var _=F(g,!0);t.underline=_,s=!0}if("overline"===g.name){var O=F(g,!0);t.overline=O,u=!0}if("line-through"===g.name){var U=F(g,!0);t.lineThrough=U,c=!0}if("rotation"===g.name){var A=F(g,!0);t.rotation=A,f=!0}if("letter-spacing"===g.name){var E=T(g,!0);t.letterSpacing=E,d=!0}if("line-height"===g.name){var M=T(g,!0);t.lineHeight=M,h=!0}if("dir"===g.name){var X=J(g,qs.Ltr);t.dir=X,p=!0}if("enclosure"===g.name){var P=j(g,Rs.None);t.enclosure=P,m=!0}}var Y=e,R=T(Y,!0);return t.data=R,n||(t.justify=Hs.Left),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),s||(t.underline=0),u||(t.overline=0),c||(t.lineThrough=0),f||(t.rotation=0),d||(t.letterSpacing="normal"),h||(t.lineHeight="normal"),p||(t.dir=qs.Ltr),m||(t.enclosure=Rs.None),t}function Oi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=!1,m=!1,v=0;v<e.childNodes.length;++v){e.childNodes[v]}for(var v=0;v<e.attributes.length;++v){var g=e.attributes[v];if("justify"===g.name){var y=V(g,Hs.Left);t.justify=y,n=!0}if("default-x"===g.name){var b=F(g,!0);t.defaultX=b}if("relative-y"===g.name){var S=F(g,!0);t.relativeY=S}if("default-y"===g.name){var w=F(g,!0);t.defaultY=w}if("relative-x"===g.name){var N=F(g,!0);t.relativeX=N}if("font-family"===g.name){var D=T(g,!0);t.fontFamily=D}if("font-weight"===g.name){var x=G(g,Is.Normal);t.fontWeight=x,i=!0}if("font-style"===g.name){var k=q(g,zs.Normal);t.fontStyle=k,r=!0}if("font-size"===g.name){var B=T(g,!0);t.fontSize=B}if("color"===g.name){var C=T(g,!0);t.color=C,a=!0}if("halign"===g.name){var L=V(g,t.justify||Hs.Left);t.halign=L,o=!0}if("valign"===g.name){var W=Q(g,js.Bottom);t.valign=W,l=!0}if("underline"===g.name){var _=F(g,!0);t.underline=_,s=!0}if("overline"===g.name){var O=F(g,!0);t.overline=O,u=!0}if("line-through"===g.name){var U=F(g,!0);t.lineThrough=U,c=!0}if("rotation"===g.name){var A=F(g,!0);t.rotation=A,f=!0}if("letter-spacing"===g.name){var E=T(g,!0);t.letterSpacing=E,d=!0}if("line-height"===g.name){var M=T(g,!0);t.lineHeight=M,h=!0}if("dir"===g.name){var X=J(g,qs.Ltr);t.dir=X,p=!0}if("enclosure"===g.name){var P=j(g,Rs.None);t.enclosure=P,m=!0}}var Y=e,R=T(Y,!0);return t.data=R,n||(t.justify=Hs.Left),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),s||(t.underline=0),u||(t.overline=0),c||(t.lineThrough=0),f||(t.rotation=0),d||(t.letterSpacing="normal"),h||(t.lineHeight="normal"),p||(t.dir=qs.Ltr),m||(t.enclosure=Rs.None),t}function Ui(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"diminuendo"==n?Tu.Diminuendo:"crescendo"==n?Tu.Crescendo:"stop"==n?Tu.Stop:"continue"==n?Tu.Continue:t}function Ai(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("number"===u.name){var c=F(u,!0);t.number=c,n=!0}if("niente"===u.name){var f=C(u);t.niente=f,i=!0}if("line-type"===u.name){var d=Z(u,Vs.Solid);t.lineType=d,r=!0}if("dash-length"===u.name){var h=F(u,!0);t.dashLength=h,a=!0}if("space-length"===u.name){var p=F(u,!0);t.spaceLength=p,o=!0}if("default-x"===u.name){var m=F(u,!0);t.defaultX=m}if("relative-y"===u.name){var v=F(u,!0);t.relativeY=v}if("default-y"===u.name){var g=F(u,!0);t.defaultY=g}if("relative-x"===u.name){var y=F(u,!0);t.relativeX=y}if("color"===u.name){var b=T(u,!0);t.color=b,l=!0}if("type"===u.name){var S=Ui(u,null);t.type=S}if("spread"===u.name){var w=F(u,!0);t.spread=w}}return n||(t.number=1),i||(t.niente=!1),r||(t.lineType=Vs.Solid),a||(t.dashLength=1),o||(t.spaceLength=1),l||(t.color="#000000"),t}function Ei(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("number"===l.name){var s=F(l,!0);t.number=s,n=!0}if("dash-length"===l.name){var u=F(l,!0);t.dashLength=u,i=!0}if("space-length"===l.name){var c=F(l,!0);t.spaceLength=c,r=!0}if("default-x"===l.name){var f=F(l,!0);t.defaultX=f}if("relative-y"===l.name){var d=F(l,!0);t.relativeY=d}if("default-y"===l.name){var h=F(l,!0);t.defaultY=h}if("relative-x"===l.name){var p=F(l,!0);t.relativeX=p}if("color"===l.name){var m=T(l,!0);t.color=m,a=!0}if("type"===l.name){var v=M(l,null);t.type=v}}return n||(t.number=1),i||(t.dashLength=1),r||(t.spaceLength=1),a||(t.color="#000000"),t}function Mi(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?Fu.None:"both"==n?Fu.Both:"arrow"==n?Fu.Arrow:"down"==n?Fu.Down:"up"==n?Fu.Up:t}function Xi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("end-length"===s.name){var u=F(s,!0);t.endLength=u}if("number"===s.name){var c=F(s,!0);t.number=c,n=!0}if("line-type"===s.name){var f=Z(s,Vs.Solid);t.lineType=f,i=!0}if("dash-length"===s.name){var d=F(s,!0);t.dashLength=d,r=!0}if("space-length"===s.name){var h=F(s,!0);t.spaceLength=h,a=!0}if("default-x"===s.name){var p=F(s,!0);t.defaultX=p}if("relative-y"===s.name){var m=F(s,!0);t.relativeY=m}if("default-y"===s.name){var v=F(s,!0);t.defaultY=v}if("relative-x"===s.name){var g=F(s,!0);t.relativeX=g}if("color"===s.name){var y=T(s,!0);t.color=y,o=!0}if("type"===s.name){var b=M(s,null);t.type=b}if("line-end"===s.name){var S=Mi(s,null);t.lineEnd=S}}return n||(t.number=1),i||(t.lineType=Vs.Solid),r||(t.dashLength=1),a||(t.spaceLength=1),o||(t.color="#000000"),t}function Pi(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"change"==n?xu.Change:"start"==n?xu.Start:"stop"==n?xu.Stop:"continue"==n?xu.Continue:t}function Yi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("line"===s.name){var u=C(s);t.line=u}if("sign"===s.name){var c=C(s);t.sign=c}if("default-x"===s.name){var f=F(s,!0);t.defaultX=f}if("relative-y"===s.name){var d=F(s,!0);t.relativeY=d}if("default-y"===s.name){var h=F(s,!0);t.defaultY=h}if("relative-x"===s.name){var p=F(s,!0);t.relativeX=p}if("font-family"===s.name){var m=T(s,!0);t.fontFamily=m}if("font-weight"===s.name){var v=G(s,Is.Normal);t.fontWeight=v,n=!0}if("font-style"===s.name){var g=q(s,zs.Normal);t.fontStyle=g,i=!0}if("font-size"===s.name){var y=T(s,!0);t.fontSize=y}if("color"===s.name){var b=T(s,!0);t.color=b,r=!0}if("halign"===s.name){var S=V(s,t.justify||Hs.Left);t.halign=S,a=!0}if("valign"===s.name){var w=Q(s,js.Bottom);t.valign=w,o=!0}if("type"===s.name){var N=Pi(s,null);t.type=N}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function Ri(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=0;c<e.childNodes.length;++c){var f=e.childNodes[c];if("metronome-note"===f.nodeName){var d=Hi(f);t.metronomeNotes=(t.metronomeNotes||[]).concat(d)}if("per-minute"===f.nodeName){var h=Ii(f);t.perMinute=h}if("beat-unit"===f.nodeName){var p=T(f,!0);if(s){if(u)throw"Too many beat-units in metronome";t.beatUnitChange=p,u=!0}else t.beatUnit=p,s=!0}if("beat-unit-dot"===f.nodeName){var m=zi(f);u?t.beatUnitDotsChange=(t.beatUnitDotsChange||[]).concat(m):t.beatUnitDots=(t.beatUnitDots||[]).concat(m)}if("metronome-relation"===f.nodeName){var v=T(f,!0);t.metronomeRelation=v}}for(var c=0;c<e.attributes.length;++c){var g=e.attributes[c];if("default-x"===g.name){var y=F(g,!0);t.defaultX=y}if("relative-y"===g.name){var b=F(g,!0);t.relativeY=b}if("default-y"===g.name){var S=F(g,!0);t.defaultY=S}if("relative-x"===g.name){var w=F(g,!0);t.relativeX=w}if("font-family"===g.name){var N=T(g,!0);t.fontFamily=N}if("font-weight"===g.name){var D=G(g,Is.Normal);t.fontWeight=D,n=!0}if("font-style"===g.name){var x=q(g,zs.Normal);t.fontStyle=x,i=!0}if("font-size"===g.name){var k=T(g,!0);t.fontSize=k}if("color"===g.name){var B=T(g,!0);t.color=B,r=!0}if("halign"===g.name){var L=V(g,t.justify||Hs.Left);t.halign=L,a=!0}if("valign"===g.name){var W=Q(g,js.Bottom);t.valign=W,o=!0}if("justify"===g.name){var _=V(g,Hs.Left);t.justify=_,l=!0}if("parentheses"===g.name){var O=C(g);t.parentheses=O}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),l||(t.justify=Hs.Left),t}function zi(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Ii(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("font-family"===a.name){var o=T(a,!0);t.fontFamily=o}if("font-weight"===a.name){var l=G(a,Is.Normal);t.fontWeight=l,n=!0}if("font-style"===a.name){var s=q(a,zs.Normal);t.fontStyle=s,i=!0}if("font-size"===a.name){var u=T(a,!0);t.fontSize=u}}var c=e,f=T(c,!0);return t.data=f,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),t}function Hi(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("metronome-dot"===i.nodeName){var r=ji(i);t.metronomeDots=(t.metronomeDots||[]).concat(r)}if("metronome-beam"===i.nodeName){var a=qi(i);t.metronomeBeams=(t.metronomeBeams||[]).concat(a)}if("metronome-type"===i.nodeName){var o=T(i,!0);t.metronomeType=o}if("metronome-tuplet"===i.nodeName){var l=Gi(i);t.metronomeTuplet=l}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function ji(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function qi(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("number"===r.name){var a=F(r,!0);t.number=a,n=!0}}var o=e,l=T(o,!0);return t.data=l,n||(t.number=1),t}function Gi(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){var a=e.childNodes[r];if("actual-notes"===a.nodeName){var o=F(a,!0);t.actualNotes=o}if("normal-type"===a.nodeName){var l=T(a,!0);t.normalType=l}if("normal-notes"===a.nodeName){var s=F(a,!0);t.normalNotes=s}if("normal-dot"===a.nodeName){var u=ce(a);t.normalDots=(t.normalDots||[]).concat(u)}}for(var r=0;r<e.attributes.length;++r){var c=e.attributes[r];if("bracket"===c.name){var f=C(c);t.bracket=f,n=!0}if("show-number"===c.name){var d=Pt(c,hu.Both);t.showNumber=d,i=!0}if("type"===c.name){var h=E(c,null);t.type=h}}return n||(t.bracket=!1),i||(t.showNumber=hu.Both),t}function Vi(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"down"==n?ku.Down:"stop"==n?ku.Stop:"up"==n?ku.Up:"continue"==n?ku.Continue:t}function Qi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){e.childNodes[s]}for(var s=0;s<e.attributes.length;++s){var u=e.attributes[s];if("number"===u.name){var c=F(u,!0);t.number=c}if("size"===u.name){var f=F(u,!0);t.size=f,n=!0}if("dash-length"===u.name){var d=F(u,!0);t.dashLength=d,i=!0}if("space-length"===u.name){var h=F(u,!0);t.spaceLength=h,r=!0}if("default-x"===u.name){var p=F(u,!0);t.defaultX=p}if("relative-y"===u.name){var m=F(u,!0);t.relativeY=m}if("default-y"===u.name){var v=F(u,!0);t.defaultY=v}if("relative-x"===u.name){var g=F(u,!0);t.relativeX=g}if("font-family"===u.name){var y=T(u,!0);t.fontFamily=y}if("font-weight"===u.name){var b=G(u,Is.Normal);t.fontWeight=b,a=!0}if("font-style"===u.name){var S=q(u,zs.Normal);t.fontStyle=S,o=!0}if("font-size"===u.name){var w=T(u,!0);t.fontSize=w}if("color"===u.name){var N=T(u,!0);t.color=N,l=!0}if("type"===u.name){var D=Vi(u,null);t.type=D}}return n||(t.size=8),i||(t.dashLength=1),r||(t.spaceLength=1),a||(t.fontWeight=Is.Normal),o||(t.fontStyle=zs.Normal),l||(t.color="#000000"),t}function Ji(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){var s=e.childNodes[l];if("pedal-tuning"===s.nodeName){var u=Ki(s);t.pedalTunings=(t.pedalTunings||[]).concat(u)}}for(var l=0;l<e.attributes.length;++l){var c=e.attributes[l];if("default-x"===c.name){var f=F(c,!0);t.defaultX=f}if("relative-y"===c.name){var d=F(c,!0);t.relativeY=d}if("default-y"===c.name){var h=F(c,!0);t.defaultY=h}if("relative-x"===c.name){var p=F(c,!0);t.relativeX=p}if("font-family"===c.name){var m=T(c,!0);t.fontFamily=m}if("font-weight"===c.name){var v=G(c,Is.Normal);t.fontWeight=v,n=!0}if("font-style"===c.name){var g=q(c,zs.Normal);t.fontStyle=g,i=!0}if("font-size"===c.name){var y=T(c,!0);t.fontSize=y}if("color"===c.name){var b=T(c,!0);t.color=b,r=!0}if("halign"===c.name){var S=V(c,t.justify||Hs.Left);t.halign=S,a=!0}if("valign"===c.name){var w=Q(c,js.Bottom);t.valign=w,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function Ki(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("pedal-step"===i.nodeName){var r=T(i,!0);t.pedalStep=r}if("pedal-alter"===i.nodeName){var a=T(i,!0);t.pedalAlter=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Zi(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){
var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function $i(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function er(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function tr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}if("type"===s.name){var S=T(s,!0);t.type=S}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function nr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("accord"===i.nodeName){var r=ir(i);t.accords=(t.accords||[]).concat(r)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function ir(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("tuning-alter"===i.nodeName){var r=T(i,!0);t.tuningAlter=r}if("tuning-step"===i.nodeName){var a=T(i,!0);t.tuningStep=a}if("tuning-octave"===i.nodeName){var o=T(i,!0);t.tuningOctave=o}}for(var n=0;n<e.attributes.length;++n){var l=e.attributes[n];if("string"===l.name){var s=T(l,!0);t.string=s}}return t}function rr(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("default-x"===a.name){var o=F(a,!0);t.defaultX=o}if("relative-y"===a.name){var l=F(a,!0);t.relativeY=l}if("default-y"===a.name){var s=F(a,!0);t.defaultY=s}if("relative-x"===a.name){var u=F(a,!0);t.relativeX=u}if("halign"===a.name){var c=V(a,t.justify||Hs.Left);t.halign=c,n=!0}if("valign"===a.name){var f=Q(a,js.Bottom);t.valignImage=f,i=!0}if("type"===a.name){var d=T(a,!0);t.type=d}if("source"===a.name){var h=T(a,!0);t.source=h}}return n||(t.halign=t.justify||Hs.Left),i||(t.valignImage=js.Bottom),t}function ar(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"none"==n?Bu.None:"Hauptstimme"==n?Bu.Hauptstimme:"Nebenstimme"==n?Bu.Nebenstimme:"plain"==n?Bu.Plain:t}function or(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("symbol"===s.name){var u=ar(s,null);t.symbol=u}if("default-x"===s.name){var c=F(s,!0);t.defaultX=c}if("relative-y"===s.name){var f=F(s,!0);t.relativeY=f}if("default-y"===s.name){var d=F(s,!0);t.defaultY=d}if("relative-x"===s.name){var h=F(s,!0);t.relativeX=h}if("font-family"===s.name){var p=T(s,!0);t.fontFamily=p}if("font-weight"===s.name){var m=G(s,Is.Normal);t.fontWeight=m,n=!0}if("font-style"===s.name){var v=q(s,zs.Normal);t.fontStyle=v,i=!0}if("font-size"===s.name){var g=T(s,!0);t.fontSize=g}if("color"===s.name){var y=T(s,!0);t.color=y,r=!0}if("halign"===s.name){var b=V(s,t.justify||Hs.Left);t.halign=b,a=!0}if("valign"===s.name){var S=Q(s,js.Bottom);t.valign=S,o=!0}if("type"===s.name){var w=E(s,null);t.type=w}}var N=e,D=T(N,!1);return t.data=D,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function lr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){var s=e.childNodes[l];if("accordion-middle"===s.nodeName){var u=T(s,!0);t.accordionMiddle=u}if("accordion-high"===s.nodeName){var c=!0;t.accordionHigh=c}if("accordion-low"===s.nodeName){var f=!0;t.accordionLow=f}}for(var l=0;l<e.attributes.length;++l){var d=e.attributes[l];if("default-x"===d.name){var h=F(d,!0);t.defaultX=h}if("relative-y"===d.name){var p=F(d,!0);t.relativeY=p}if("default-y"===d.name){var m=F(d,!0);t.defaultY=m}if("relative-x"===d.name){var v=F(d,!0);t.relativeX=v}if("font-family"===d.name){var g=T(d,!0);t.fontFamily=g}if("font-weight"===d.name){var y=G(d,Is.Normal);t.fontWeight=y,n=!0}if("font-style"===d.name){var b=q(d,zs.Normal);t.fontStyle=b,i=!0}if("font-size"===d.name){var S=T(d,!0);t.fontSize=S}if("color"===d.name){var w=T(d,!0);t.color=w,r=!0}if("halign"===d.name){var N=V(d,t.justify||Hs.Left);t.halign=N,a=!0}if("valign"===d.name){var D=Q(d,js.Bottom);t.valign=D,o=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function sr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=0;s<e.childNodes.length;++s){var u=e.childNodes[s];if("stick-location"===u.nodeName){var c=T(u,!0);t.stickLocation=c}if("other-percussion"===u.nodeName){var f=T(u,!0);t.otherPercussion=f}if("wood"===u.nodeName){var d=T(u,!0);t.wood=d}if("effect"===u.nodeName){var h=T(u,!0);t.effect=h}if("glass"===u.nodeName){var p=T(u,!0);t.glass=p}if("timpani"===u.nodeName){var m=ur(u);t.timpani=m}if("stick"===u.nodeName){var v=fr(u);t.stick=v}if("metal"===u.nodeName){var g=T(u,!0);t.metal=g}if("pitched"===u.nodeName){var y=T(u,!0);t.pitched=y}if("membrane"===u.nodeName){var b=T(u,!0);t.membrane=b}if("beater"===u.nodeName){var S=cr(u);t.beater=S}}for(var s=0;s<e.attributes.length;++s){var w=e.attributes[s];if("default-x"===w.name){var N=F(w,!0);t.defaultX=N}if("relative-y"===w.name){var D=F(w,!0);t.relativeY=D}if("default-y"===w.name){var x=F(w,!0);t.defaultY=x}if("relative-x"===w.name){var k=F(w,!0);t.relativeX=k}if("font-family"===w.name){var B=T(w,!0);t.fontFamily=B}if("font-weight"===w.name){var C=G(w,Is.Normal);t.fontWeight=C,n=!0}if("font-style"===w.name){var L=q(w,zs.Normal);t.fontStyle=L,i=!0}if("font-size"===w.name){var W=T(w,!0);t.fontSize=W}if("color"===w.name){var _=T(w,!0);t.color=_,r=!0}if("halign"===w.name){var O=V(w,t.justify||Hs.Left);t.halign=O,a=!0}if("valign"===w.name){var U=Q(w,js.Bottom);t.valign=U,o=!0}if("enclosure"===w.name){var A=j(w,Rs.None);t.enclosure=A,l=!0}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),l||(t.enclosure=Rs.None),t}function ur(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function cr(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("tip"===i.name){var r=Ci(i,null);t.tip=r}}var a=e,o=T(a,!0);return t.data=o,t}function fr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("stick-material"===i.nodeName){var r=T(i,!0);t.stickMaterial=r}if("stick-type"===i.nodeName){var a=T(i,!0);t.stickType=a}}for(var n=0;n<e.attributes.length;++n){var o=e.attributes[n];if("tip"===o.name){var l=Ci(o,null);t.tip=l}}return t}function dr(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("sound"===r.name){var a=C(r);t.sound=a,n=!0}}var o=e,l=T(o,!0);return t.data=l,n||(t.sound=!1),t}function hr(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"explicit"==n?Cu.Explicit:"implied"==n?Cu.Implied:"alternate"==n?Cu.Alternate:t}function pr(e){for(var t={frame:null,printFrame:null,staff:null,type:null,offset:null,root:null,"function":null,kind:null,degrees:[],inversion:null,bass:null},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){var s=e.childNodes[l];if("frame"===s.nodeName){var u=Cr(s);t.frame=u}if("root"===s.nodeName){var c=mr(s);t.root=c}if("function"===s.nodeName){var f=yr(s);t["function"]=f}if("kind"===s.nodeName){var d=br(s);t.kind=d}if("degree"===s.nodeName){var h=Tr(s);t.degrees.push(h)}if("inversion"===s.nodeName){var p=Sr(s);t.inversion=p}if("bass"===s.nodeName){var m=wr(s);t.bass=m}if("footnote"===s.nodeName){var v=re(s);t.footnote=v}if("level"===s.nodeName){var g=ae(s);t.level=g}if("staff"===s.nodeName){var y=F(s,!0);t.staff=y}if("offset"===s.nodeName){var b=dr(s);t.offset=b}}for(var l=0;l<e.attributes.length;++l){var S=e.attributes[l];if("print-frame"===S.name){var w=C(S);t.printFrame=w}if("print-object"===S.name){var N=C(S);t.printObject=N,n=!0}if("default-x"===S.name){var D=F(S,!0);t.defaultX=D}if("relative-y"===S.name){var x=F(S,!0);t.relativeY=x}if("default-y"===S.name){var k=F(S,!0);t.defaultY=k}if("relative-x"===S.name){var B=F(S,!0);t.relativeX=B}if("font-family"===S.name){var L=T(S,!0);t.fontFamily=L}if("font-weight"===S.name){var W=G(S,Is.Normal);t.fontWeight=W,i=!0}if("font-style"===S.name){var _=q(S,zs.Normal);t.fontStyle=_,r=!0}if("font-size"===S.name){var O=T(S,!0);t.fontSize=O}if("color"===S.name){var U=T(S,!0);t.color=U,a=!0}if("placement"===S.name){var A=Y(S,Es.Unspecified);t.placement=A,o=!0}if("type"===S.name){var E=hr(S,null);t.type=E}}return n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.placement=Es.Unspecified),t._class="Harmony",t}function mr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("root-step"===i.nodeName){var r=vr(i);t.rootStep=r}if("root-alter"===i.nodeName){var a=gr(i);t.rootAlter=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function vr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("text"===o.name){var l=T(o,!0);t.text=l}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("font-family"===o.name){var d=T(o,!0);t.fontFamily=d}if("font-weight"===o.name){var h=G(o,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===o.name){var p=q(o,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===o.name){var m=T(o,!0);t.fontSize=m}if("color"===o.name){var v=T(o,!0);t.color=v,r=!0}}var g=e,y=T(g,!0);return t.data=y,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function gr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("location"===l.name){var s=H(l,null);t.location=s}if("print-object"===l.name){var u=C(l);t.printObject=u,n=!0}if("default-x"===l.name){var c=F(l,!0);t.defaultX=c}if("relative-y"===l.name){var f=F(l,!0);t.relativeY=f}if("default-y"===l.name){var d=F(l,!0);t.defaultY=d}if("relative-x"===l.name){var h=F(l,!0);t.relativeX=h}if("font-family"===l.name){var p=T(l,!0);t.fontFamily=p}if("font-weight"===l.name){var m=G(l,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===l.name){var v=q(l,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===l.name){var g=T(l,!0);t.fontSize=g}if("color"===l.name){var y=T(l,!0);t.color=y,a=!0}}var b=e,S=T(b,!0);return t.data=S,n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),t}function yr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function br(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("parentheses-degrees"===s.name){var u=C(s);t.parenthesesDegrees=u}if("use-symbols"===s.name){var c=C(s);t.useSymbols=c}if("text"===s.name){var f=T(s,!0);t.text=f}if("default-x"===s.name){var d=F(s,!0);t.defaultX=d}if("relative-y"===s.name){var h=F(s,!0);t.relativeY=h}if("default-y"===s.name){var p=F(s,!0);t.defaultY=p}if("relative-x"===s.name){var m=F(s,!0);t.relativeX=m}if("font-family"===s.name){var v=T(s,!0);t.fontFamily=v}if("font-weight"===s.name){var g=G(s,Is.Normal);t.fontWeight=g,n=!0}if("font-style"===s.name){var y=q(s,zs.Normal);t.fontStyle=y,i=!0}if("font-size"===s.name){var b=T(s,!0);t.fontSize=b}if("color"===s.name){var S=T(s,!0);t.color=S,r=!0}if("halign"===s.name){var w=V(s,t.justify||Hs.Left);t.halign=w,a=!0}if("valign"===s.name){var N=Q(s,js.Bottom);t.valign=N,o=!0}if("stack-degrees"===s.name){var D=C(s);t.stackDegrees=D}if("bracket-degrees"===s.name){var x=C(s);t.bracketDegrees=x}}var k=e,B=T(k,!0);return t.data=B,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function Sr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("default-x"===o.name){var l=F(o,!0);t.defaultX=l}if("relative-y"===o.name){var s=F(o,!0);t.relativeY=s}if("default-y"===o.name){var u=F(o,!0);t.defaultY=u}if("relative-x"===o.name){var c=F(o,!0);t.relativeX=c}if("font-family"===o.name){var f=T(o,!0);t.fontFamily=f}if("font-weight"===o.name){var d=G(o,Is.Normal);t.fontWeight=d,n=!0}if("font-style"===o.name){var h=q(o,zs.Normal);t.fontStyle=h,i=!0}if("font-size"===o.name){var p=T(o,!0);t.fontSize=p}if("color"===o.name){var m=T(o,!0);t.color=m,r=!0}}var v=e,g=T(v,!0);return t.data=g,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function wr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("bass-step"===i.nodeName){var r=Nr(i);t.bassStep=r}if("bass-alter"===i.nodeName){var a=Dr(i);t.bassAlter=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Nr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("text"===o.name){var l=T(o,!0);t.text=l}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("font-family"===o.name){var d=T(o,!0);t.fontFamily=d}if("font-weight"===o.name){var h=G(o,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===o.name){var p=q(o,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===o.name){var m=T(o,!0);t.fontSize=m}if("color"===o.name){var v=T(o,!0);t.color=v,r=!0}}var g=e,y=T(g,!0);return t.data=y,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function Dr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("location"===l.name){var s=H(l,null);t.location=s}if("print-object"===l.name){var u=C(l);t.printObject=u,n=!0}if("default-x"===l.name){var c=F(l,!0);t.defaultX=c}if("relative-y"===l.name){var f=F(l,!0);t.relativeY=f}if("default-y"===l.name){var d=F(l,!0);t.defaultY=d}if("relative-x"===l.name){var h=F(l,!0);t.relativeX=h}if("font-family"===l.name){var p=T(l,!0);t.fontFamily=p}if("font-weight"===l.name){var m=G(l,Is.Normal);t.fontWeight=m,i=!0}if("font-style"===l.name){var v=q(l,zs.Normal);t.fontStyle=v,r=!0}if("font-size"===l.name){var g=T(l,!0);t.fontSize=g}if("color"===l.name){var y=T(l,!0);t.color=y,a=!0}}var b=e,S=T(b,!0);return t.data=S,n||(t.printObject=!0),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),t}function Tr(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("degree-alter"===r.nodeName){var a=kr(r);t.degreeAlter=a}if("degree-value"===r.nodeName){var o=xr(r);t.degreeValue=o}if("degree-type"===r.nodeName){var l=Br(r);t.degreeType=l}}for(var i=0;i<e.attributes.length;++i){var s=e.attributes[i];if("print-object"===s.name){var u=C(s);t.printObject=u,n=!0}}return n||(t.printObject=!0),t}function Fr(e,t){var n=(e.nodeType===e.ATTRIBUTE_NODE?e.value:e.textContent).trim();return""===n&&null!==t&&void 0!==t?t:"augmented"==n?Lu.Augmented:"diminished"==n?Lu.Diminished:"major"==n?Lu.Major:"minor"==n?Lu.Minor:"half-diminished"==n?Lu.HalfDiminished:t}function xr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("symbol"===o.name){var l=Fr(o,null);t.symbol=l}if("text"===o.name){var s=T(o,!0);t.text=s}if("default-x"===o.name){var u=F(o,!0);t.defaultX=u}if("relative-y"===o.name){var c=F(o,!0);t.relativeY=c}if("default-y"===o.name){var f=F(o,!0);t.defaultY=f}if("relative-x"===o.name){var d=F(o,!0);t.relativeX=d}if("font-family"===o.name){var h=T(o,!0);t.fontFamily=h}if("font-weight"===o.name){var p=G(o,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===o.name){var m=q(o,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===o.name){var v=T(o,!0);t.fontSize=v}if("color"===o.name){var g=T(o,!0);t.color=g,r=!0}}var y=e,b=T(y,!0);return t.data=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function kr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("plus-minus"===o.name){var l=C(o);t.plusMinus=l}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("font-family"===o.name){var d=T(o,!0);t.fontFamily=d}if("font-weight"===o.name){var h=G(o,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===o.name){var p=q(o,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===o.name){var m=T(o,!0);t.fontSize=m}if("color"===o.name){var v=T(o,!0);t.color=v,r=!0}}var g=e,y=T(g,!0);return t.data=y,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function Br(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){e.childNodes[a]}for(var a=0;a<e.attributes.length;++a){var o=e.attributes[a];if("text"===o.name){var l=T(o,!0);t.text=l}if("default-x"===o.name){var s=F(o,!0);t.defaultX=s}if("relative-y"===o.name){var u=F(o,!0);t.relativeY=u}if("default-y"===o.name){var c=F(o,!0);t.defaultY=c}if("relative-x"===o.name){var f=F(o,!0);t.relativeX=f}if("font-family"===o.name){var d=T(o,!0);t.fontFamily=d}if("font-weight"===o.name){var h=G(o,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===o.name){var p=q(o,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===o.name){var m=T(o,!0);t.fontSize=m}if("color"===o.name){var v=T(o,!0);t.color=v,r=!0}}var g=e,y=T(g,!0);return t.data=y,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),t}function Cr(e){for(var t={},n=!1,i=!1,r=!1,a=0;a<e.childNodes.length;++a){var o=e.childNodes[a];if("frame-strings"===o.nodeName){var l=T(o,!0);t.frameStrings=l}if("frame-note"===o.nodeName){var s=Wr(o);t.frameNotes=(t.frameNotes||[]).concat(s)}if("frame-frets"===o.nodeName){var u=T(o,!0);t.frameFrets=u}if("first-fret"===o.nodeName){var c=Lr(o);t.firstFret=c}}for(var a=0;a<e.attributes.length;++a){var f=e.attributes[a];if("unplayed"===f.name){var d=T(f,!0);t.unplayed=d}if("default-x"===f.name){var h=F(f,!0);t.defaultX=h}if("relative-y"===f.name){var p=F(f,!0);t.relativeY=p}if("default-y"===f.name){var m=F(f,!0);t.defaultY=m}if("relative-x"===f.name){var v=F(f,!0);t.relativeX=v}if("color"===f.name){var g=T(f,!0);t.color=g,n=!0}if("halign"===f.name){var y=V(f,t.justify||Hs.Left);t.halign=y,i=!0}if("valign"===f.name){var b=Q(f,js.Bottom);t.valignImage=b,r=!0}if("width"===f.name){var S=F(f,!0);t.width=S}if("height"===f.name){var w=F(f,!0);t.height=w}}return n||(t.color="#000000"),i||(t.halign=t.justify||Hs.Left),r||(t.valignImage=js.Bottom),t}function Lr(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("text"===i.name){var r=T(i,!0);t.text=r}if("location"===i.name){var a=H(i,null);t.location=a}}var o=e,l=T(o,!0);return t.data=l,t}function Wr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("barre"===i.nodeName){var r=_r(i);t.barre=r}if("string"===i.nodeName){var a=pe(i);t.string=a}if("fingering"===i.nodeName){var o=de(i);t.fingering=o}if("fret"===i.nodeName){var l=he(i);t.fret=l}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function _r(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("color"===r.name){var a=T(r,!0);t.color=a,n=!0}if("type"===r.name){var o=E(r,null);t.type=o}}return n||(t.color="#000000"),t}function Or(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("feature"===r.nodeName){var a=Ur(r);t.features=(t.features||[]).concat(a)}}for(var i=0;i<e.attributes.length;++i){var o=e.attributes[i];if("number"===o.name){var l=F(o,!0);t.number=l,n=!0}if("type"===o.name){var s=X(o,null);t.type=s}if("member-of"===o.name){var u=T(o,!0);t.memberOf=u}}return n||(t.number=1),t._class="Grouping",t}function Ur(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("type"===i.name){var r=T(i,!0);t.type=r}}var a=e,o=T(a,!0);return t.data=o,t}function Ar(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("measure-numbering"===i.nodeName){var r=Er(i);t.measureNumbering=r}if("part-name-display"===i.nodeName){var a=W(i);t.partNameDisplay=a}if("measure-layout"===i.nodeName){var o=Ce(i);t.measureLayout=o}if("part-abbreviation-display"===i.nodeName){var l=_(i);t.partAbbreviationDisplay=l}if("page-layout"===i.nodeName){var s=Ne(i);t.pageLayout=s}if("system-layout"===i.nodeName){var u=De(i);t.systemLayout=u}if("staff-layout"===i.nodeName){var c=Be(i);t.staffLayouts=(t.staffLayouts||[]).concat(c)}}for(var n=0;n<e.attributes.length;++n){var f=e.attributes[n];if("new-system"===f.name){var d=C(f);t.newSystem=d}if("new-page"===f.name){var h=C(f);t.newPage=h}if("blank-page"===f.name){var p=T(f,!0);t.blankPage=p}if("staff-spacing"===f.name){var m=F(f,!0);t.staffSpacing=m}if("page-number"===f.name){var v=T(f,!0);t.pageNumber=v}}return t._class="Print",t}function Er(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("halign"===s.name){var y=V(s,t.justify||Hs.Left);t.halign=y,a=!0}if("valign"===s.name){var b=Q(s,js.Bottom);t.valign=b,o=!0}}var S=e,w=T(S,!0);return t.data=w,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.halign=t.justify||Hs.Left),o||(t.valign=js.Bottom),t}function Mr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("midi-instrument"===i.nodeName){var r=ve(i);t.midiInstruments=(t.midiInstruments||[]).concat(r)}if("play"===i.nodeName){var a=ge(i);t.plays=(t.plays||[]).concat(a)}if("offset"===i.nodeName){var o=dr(i);t.offset=o}if("midi-device"===i.nodeName){var l=me(i);t.midiDevices=(t.midiDevices||[]).concat(l)}}for(var n=0;n<e.attributes.length;++n){var s=e.attributes[n];if("soft-pedal"===s.name){var u=T(s,!0);t.softPedal=u}if("pan"===s.name){var c=T(s,!0);t.pan=c}if("tocoda"===s.name){var f=T(s,!0);t.tocoda=f}if("decapo"===s.name){var d=C(s);t.decapo=d}if("divisions"===s.name){var h=F(s,!0);t.divisions=h}if("pizzicato"===s.name){var p=C(s);t.pizzicato=p}if("coda"===s.name){var m=T(s,!0);t.coda=m}if("segno"===s.name){var v=T(s,!0);t.segno=v}if("elevation"===s.name){var g=T(s,!0);t.elevation=g}if("fine"===s.name){var y=T(s,!0);t.fine=y}if("damper-pedal"===s.name){var b=T(s,!0);t.damperPedal=b}if("dynamics"===s.name){var S=T(s,!0);t.dynamics=S}if("time-only"===s.name){var w=T(s,!0);t.timeOnly=w}if("sostenuto-pedal"===s.name){var N=T(s,!0);t.sostenutoPedal=N}if("dalsegno"===s.name){var D=T(s,!0);t.dalsegno=D}if("tempo"===s.name){var x=T(s,!0);t.tempo=x}if("forward-repeat"===s.name){var k=C(s);t.forwardRepeat=k}}return t._class="Sound",t}function Xr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("work-number"===i.nodeName){var r=T(i,!0);t.workNumber=r}if("work-title"===i.nodeName){var a=T(i,!0);t.workTitle=a}if("opus"===i.nodeName){var o=Pr(i);t.opus=o}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Pr(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Yr(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("word-font"===i.nodeName){var r=zr(i);t.wordFont=r}if("lyric-language"===i.nodeName){var a=Hr(i);t.lyricLanguages=(t.lyricLanguages||[]).concat(a)}if("lyric-font"===i.nodeName){var o=Ir(i);t.lyricFonts=(t.lyricFonts||[]).concat(o)}if("page-layout"===i.nodeName){var l=Ne(i);t.pageLayout=l}if("system-layout"===i.nodeName){var s=De(i);t.systemLayout=s}if("appearance"===i.nodeName){var u=Ue(i);t.appearance=u}if("scaling"===i.nodeName){var c=be(i);t.scaling=c}if("staff-layout"===i.nodeName){var f=Be(i);t.staffLayouts=(t.staffLayouts||[]).concat(f)}if("music-font"===i.nodeName){var d=Rr(i);t.musicFont=d}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Rr(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("font-family"===a.name){var o=T(a,!0);t.fontFamily=o}if("font-weight"===a.name){var l=G(a,Is.Normal);t.fontWeight=l,n=!0}if("font-style"===a.name){var s=q(a,zs.Normal);t.fontStyle=s,i=!0}if("font-size"===a.name){var u=T(a,!0);t.fontSize=u}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),t}function zr(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("font-family"===a.name){var o=T(a,!0);t.fontFamily=o}if("font-weight"===a.name){var l=G(a,Is.Normal);t.fontWeight=l,n=!0}if("font-style"===a.name){var s=q(a,zs.Normal);t.fontStyle=s,i=!0}if("font-size"===a.name){var u=T(a,!0);t.fontSize=u}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),t}function Ir(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("number"===a.name){var o=F(a,!0);t.number=o}if("font-family"===a.name){var l=T(a,!0);t.fontFamily=l}if("font-weight"===a.name){var s=G(a,Is.Normal);t.fontWeight=s,n=!0}if("font-style"===a.name){var u=q(a,zs.Normal);t.fontStyle=u,i=!0}if("font-size"===a.name){var c=T(a,!0);t.fontSize=c}if("name"===a.name){var f=T(a,!0);t.name=f}}return n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),t}function Hr(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){var i=e.attributes[n];if("number"===i.name){var r=F(i,!0);t.number=r}if("name"===i.name){var a=T(i,!0);t.name=a}}return t}function jr(e){var t={};t.creditWords=[];for(var n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("credit-type"===r.nodeName){var a=T(r,!0);t.creditTypes=(t.creditTypes||[]).concat(a),n=!0}if("credit-words"===r.nodeName){var o=qr(r);t.creditWords.push(o)}if("credit-image"===r.nodeName){var l=Gr(r);t.creditImage=l}}for(var i=0;i<e.attributes.length;++i){var s=e.attributes[i];if("page"===s.name){var u=F(s,!0);t.page=u}}return n||(t.creditTypes=[]),t}function qr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=!1,s=!1,u=!1,c=!1,f=!1,d=!1,h=!1,p=!1,m=!1,v=!1,g=!1,y=!1,b=!1,S=!1,w=0;w<e.childNodes.length;++w){e.childNodes[w]}for(var w=0;w<e.attributes.length;++w){var N=e.attributes[w];if("justify"===N.name){var D=V(N,Hs.Left);t.justify=D,n=!0}if("default-x"===N.name){var x=F(N,!0);t.defaultX=x,b=!0}if("relative-y"===N.name){var k=F(N,!0);t.relativeY=k,y=!0}if("default-y"===N.name){var B=F(N,!0);t.defaultY=B,S=!0}if("relative-x"===N.name){var C=F(N,!0);t.relativeX=C,g=!0}if("font-family"===N.name){var L=T(N,!0);t.fontFamily=L,v=!0}if("font-weight"===N.name){var W=G(N,Is.Normal);t.fontWeight=W,i=!0}if("font-style"===N.name){var _=q(N,zs.Normal);t.fontStyle=_,r=!0}if("font-size"===N.name){var O=T(N,!0);t.fontSize=O}if("color"===N.name){var U=T(N,!0);t.color=U,a=!0}if("halign"===N.name){var A=V(N,t.justify||Hs.Left);t.halign=A,o=!0}if("valign"===N.name){var E=Q(N,js.Bottom);t.valign=E,l=!0}if("underline"===N.name){var M=F(N,!0);t.underline=M,s=!0}if("overline"===N.name){var X=F(N,!0);t.overline=X,u=!0}if("line-through"===N.name){var P=F(N,!0);t.lineThrough=P,c=!0}if("rotation"===N.name){
var Y=F(N,!0);t.rotation=Y,f=!0}if("letter-spacing"===N.name){var R=T(N,!0);t.letterSpacing=R,d=!0}if("line-height"===N.name){var z=T(N,!0);t.lineHeight=z,h=!0}if("dir"===N.name){var I=J(N,qs.Ltr);t.dir=I,p=!0}if("enclosure"===N.name){var H=j(N,Rs.None);t.enclosure=H,m=!0}}var K=e,Z=T(K,!0);return t.words=Z,n||(t.justify=Hs.Left),i||(t.fontWeight=Is.Normal),r||(t.fontStyle=zs.Normal),a||(t.color="#000000"),o||(t.halign=t.justify||Hs.Left),l||(t.valign=js.Bottom),s||(t.underline=0),u||(t.overline=0),c||(t.lineThrough=0),f||(t.rotation=0),d||(t.letterSpacing="normal"),h||(t.lineHeight="normal"),p||(t.dir=qs.Ltr),m||(t.enclosure=Rs.None),v||(t.fontFamily=""),g||(t.relativeX=null),y||(t.relativeY=null),b||(t.defaultX=null),S||(t.defaultY=null),t}function Gr(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("default-x"===a.name){var o=F(a,!0);t.defaultX=o}if("relative-y"===a.name){var l=F(a,!0);t.relativeY=l}if("default-y"===a.name){var s=F(a,!0);t.defaultY=s}if("relative-x"===a.name){var u=F(a,!0);t.relativeX=u}if("halign"===a.name){var c=V(a,t.justify||Hs.Left);t.halign=c,n=!0}if("valign"===a.name){var f=Q(a,js.Bottom);t.valignImage=f,i=!0}if("type"===a.name){var d=T(a,!0);t.type=d}if("source"===a.name){var h=T(a,!0);t.source=h}}return n||(t.halign=t.justify||Hs.Left),i||(t.valignImage=js.Bottom),t}function Vr(e){for(var t=[],n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("score-part"===i.nodeName){var r=Qr(i);t.push(r)}if("part-group"===i.nodeName){var a=Zr(i);t.push(a)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function Qr(e){for(var t={_class:"ScorePart",identification:null,partNameDisplay:null,scoreInstruments:[],midiDevices:[],partName:null,partAbbreviationDisplay:null,partAbbreviation:null,groups:[],midiInstruments:[],id:""},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("identification"===i.nodeName){var r=Re(i);t.identification=r}if("part-name-display"===i.nodeName){var a=W(i);t.partNameDisplay=a}if("score-instrument"===i.nodeName){var o=ra(i);t.scoreInstruments=(t.scoreInstruments||[]).concat(o)}if("midi-device"===i.nodeName){var l=me(i);t.midiDevices=(t.midiDevices||[]).concat(l)}if("part-name"===i.nodeName){var s=Jr(i);t.partName=s}if("part-abbreviation-display"===i.nodeName){var u=_(i);t.partAbbreviationDisplay=u}if("part-abbreviation"===i.nodeName){var c=Kr(i);t.partAbbreviation=c}if("group"===i.nodeName){var f=T(i,!0);t.groups=(t.groups||[]).concat(f)}if("midi-instrument"===i.nodeName){var d=ve(i);t.midiInstruments=(t.midiInstruments||[]).concat(d)}}for(var n=0;n<e.attributes.length;++n){var h=e.attributes[n];if("id"===h.name){var p=T(h,!0);t.id=p}}return t}function Jr(e){for(var t={partName:"",defaultX:null,defaultY:null,relativeX:null,relativeY:null,fontFamily:"",fontSize:""},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("print-object"===s.name){var y=C(s);t.printObject=y,a=!0}if("justify"===s.name){var b=V(s,Hs.Left);t.justify=b,o=!0}}var S=e,w=T(S,!0);return t.partName=w,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.printObject=!0),o||(t.justify=Hs.Left),t}function Kr(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=!1,l=0;l<e.childNodes.length;++l){e.childNodes[l]}for(var l=0;l<e.attributes.length;++l){var s=e.attributes[l];if("default-x"===s.name){var u=F(s,!0);t.defaultX=u}if("relative-y"===s.name){var c=F(s,!0);t.relativeY=c}if("default-y"===s.name){var f=F(s,!0);t.defaultY=f}if("relative-x"===s.name){var d=F(s,!0);t.relativeX=d}if("font-family"===s.name){var h=T(s,!0);t.fontFamily=h}if("font-weight"===s.name){var p=G(s,Is.Normal);t.fontWeight=p,n=!0}if("font-style"===s.name){var m=q(s,zs.Normal);t.fontStyle=m,i=!0}if("font-size"===s.name){var v=T(s,!0);t.fontSize=v}if("color"===s.name){var g=T(s,!0);t.color=g,r=!0}if("print-object"===s.name){var y=C(s);t.printObject=y,a=!0}if("justify"===s.name){var b=V(s,Hs.Left);t.justify=b,o=!0}}var S=e,w=T(S,!0);return t.abbreviation=w,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.printObject=!0),o||(t.justify=Hs.Left),t}function Zr(e){for(var t={_class:"PartGroup"},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("group-name-display"===r.nodeName){var a=O(r);t.groupNameDisplay=a}if("group-symbol"===r.nodeName){var o=ta(r);t.groupSymbol=o}if("group-name"===r.nodeName){var l=$r(r);t.groupName=l}if("group-abbreviation-display"===r.nodeName){var s=U(r);t.groupAbbreviationDisplay=s}if("group-barline"===r.nodeName){var u=na(r);t.groupBarline=u}if("footnote"===r.nodeName){var c=re(r);t.footnote=c}if("level"===r.nodeName){var f=ae(r);t.level=f}if("group-abbreviation"===r.nodeName){var d=ea(r);t.groupAbbreviation=d}if("group-time"===r.nodeName){var h=ia(r);t.groupTime=h}}for(var i=0;i<e.attributes.length;++i){var p=e.attributes[i];if("number"===p.name){var m=F(p,!0);t.number=m,n=!0}if("type"===p.name){var v=E(p,null);t.type=v}}return n||(t.number=1),t}function $r(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("justify"===l.name){var g=V(l,Hs.Left);t.justify=g,a=!0}}var y=e,b=T(y,!0);return t.name=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.justify=Hs.Left),t}function ea(e){for(var t={},n=!1,i=!1,r=!1,a=!1,o=0;o<e.childNodes.length;++o){e.childNodes[o]}for(var o=0;o<e.attributes.length;++o){var l=e.attributes[o];if("default-x"===l.name){var s=F(l,!0);t.defaultX=s}if("relative-y"===l.name){var u=F(l,!0);t.relativeY=u}if("default-y"===l.name){var c=F(l,!0);t.defaultY=c}if("relative-x"===l.name){var f=F(l,!0);t.relativeX=f}if("font-family"===l.name){var d=T(l,!0);t.fontFamily=d}if("font-weight"===l.name){var h=G(l,Is.Normal);t.fontWeight=h,n=!0}if("font-style"===l.name){var p=q(l,zs.Normal);t.fontStyle=p,i=!0}if("font-size"===l.name){var m=T(l,!0);t.fontSize=m}if("color"===l.name){var v=T(l,!0);t.color=v,r=!0}if("justify"===l.name){var g=V(l,Hs.Left);t.justify=g,a=!0}}var y=e,b=T(y,!0);return t.text=b,n||(t.fontWeight=Is.Normal),i||(t.fontStyle=zs.Normal),r||(t.color="#000000"),a||(t.justify=Hs.Left),t}function ta(e){for(var t={},n=!1,i=!1,r=0;r<e.childNodes.length;++r){e.childNodes[r]}for(var r=0;r<e.attributes.length;++r){var a=e.attributes[r];if("default-x"===a.name){var o=F(a,!0);t.defaultX=o}if("relative-y"===a.name){var l=F(a,!0);t.relativeY=l}if("default-y"===a.name){var s=F(a,!0);t.defaultY=s}if("relative-x"===a.name){var u=F(a,!0);t.relativeX=u}if("color"===a.name){var c=T(a,!0);t.color=c,i=!0}}var f=e,d=Ze(f,au.None);return t.data=d,n||(t.data=au.None),i||(t.color="#000000"),t}function na(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){e.childNodes[i]}for(var i=0;i<e.attributes.length;++i){var r=e.attributes[i];if("color"===r.name){var a=T(r,!0);t.color=a,n=!0}}var o=e,l=T(o,!0);return t.data=l,n||(t.color="#000000"),t}function ia(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function ra(e){for(var t={instrumentName:"",instrumentSound:"",ensemble:"",virtualInstrument:null,instrumentAbbreviation:"",solo:null,id:""},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("instrument-name"===i.nodeName){var r=T(i,!0);t.instrumentName=r}if("instrument-sound"===i.nodeName){var a=T(i,!0);t.instrumentSound=a}if("ensemble"===i.nodeName){var o=T(i,!0);t.ensemble=o}if("virtual-instrument"===i.nodeName){var l=oa(i);t.virtualInstrument=l}if("instrument-abbreviation"===i.nodeName){var s=T(i,!0);t.instrumentAbbreviation=s}if("solo"===i.nodeName){var u=aa(i);t.solo=u}}for(var n=0;n<e.attributes.length;++n){var c=e.attributes[n];if("id"===c.name){var f=T(c,!0);t.id=f}}return t}function aa(e){for(var t={},n=0;n<e.childNodes.length;++n){e.childNodes[n]}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function oa(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("virtual-library"===i.nodeName){var r=T(i,!0);t.virtualLibrary=r}if("virtual-name"===i.nodeName){var a=T(i,!0);t.virtualName=a}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function la(e){for(var t={},n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("movement-title"===i.nodeName){var r=T(i,!0);t.movementTitle=r}if("identification"===i.nodeName){var a=Re(i);t.identification=a}if("defaults"===i.nodeName){var o=Yr(i);t.defaults=o}if("work"===i.nodeName){var l=Xr(i);t.work=l}if("credit"===i.nodeName){var s=jr(i);t.credits=(t.credits||[]).concat(s)}if("part-list"===i.nodeName){var u=Vr(i);t.partList=u}if("movement-number"===i.nodeName){var c=T(i,!0);t.movementNumber=c}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function sa(e){for(var t={},n=!1,i=0;i<e.childNodes.length;++i){var r=e.childNodes[i];if("measure"===r.nodeName){var a=B(r);t.measures=(t.measures||[]).concat(a)}if("movement-title"===r.nodeName){var o=T(r,!0);t.movementTitle=o}if("identification"===r.nodeName){var l=Re(r);t.identification=l}if("defaults"===r.nodeName){var s=Yr(r);t.defaults=s}if("work"===r.nodeName){var u=Xr(r);t.work=u}if("credit"===r.nodeName){var c=jr(r);t.credits=(t.credits||[]).concat(c)}if("part-list"===r.nodeName){var f=Vr(r);t.partList=f}if("movement-number"===r.nodeName){var d=T(r,!0);t.movementNumber=d}}for(var i=0;i<e.attributes.length;++i){var h=e.attributes[i];if("version"===h.name){var p=T(h,!0);t.version=p,n=!0}}return n||(t.version="1.0"),t}function ua(e){for(var t=[],n=0;n<e.childNodes.length;++n){var i=e.childNodes[n];if("note"===i.nodeName){var r=Nt(i);t=(t||[]).concat(r)}if("backup"===i.nodeName){var r=yi(i);t=(t||[]).concat(r)}if("harmony"===i.nodeName){var r=pr(i);t=(t||[]).concat(r)}if("forward"===i.nodeName){var r=bi(i);t=(t||[]).concat(r)}if("print"===i.nodeName){var r=Ar(i);t=(t||[]).concat(r)}if("figured-bass"===i.nodeName){var r=hi(i);t=(t||[]).concat(r)}if("direction"===i.nodeName){var r=Li(i);t=(t||[]).concat(r)}if("attributes"===i.nodeName){var r=ht(i);t=(t||[]).concat(r)}if("sound"===i.nodeName){var r=Mr(i);t=(t||[]).concat(r)}if("barline"===i.nodeName){var r=wi(i);t=(t||[]).concat(r)}if("grouping"===i.nodeName){var r=Or(i);t=(t||[]).concat(r)}}for(var n=0;n<e.attributes.length;++n){e.attributes[n]}return t}function ca(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",r=0;r<e.length;++r)i+=e[r],r<t.length&&(i+=(""+t[r]).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/"/g,"&apos;"));return i}function fa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",r=0;r<e.length;++r)i+=e[r],r<t.length&&(i+=t[r]?"yes":"no");return i}function da(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i="",r=0;r<e.length;++r)i+=e[r],r<t.length&&(i+=t[r]);return i}function ha(e){return void 0!==e&&null!==e&&""!==e}function pa(e){var t=[];return ha(e.millimeters)&&t.push(ma(e.millimeters)),ha(e.tenths)&&t.push(va(e.tenths)),n=["<scaling>\n","\n</scaling>"],n.raw=["<scaling>\\n","\\n</scaling>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function ma(e){return t=["<millimeters>","</millimeters>"],t.raw=["<millimeters>","</millimeters>"],ca(t,e);var t}function va(e){return t=["<tenths>","</tenths>"],t.raw=["<tenths>","</tenths>"],ca(t,e);var t}function ga(e){var t=[];return ha(e.pageHeight)&&t.push((n=["<page-height>","</page-height>"],n.raw=["<page-height>","</page-height>"],ca(n,e.pageHeight))),ha(e.pageWidth)&&t.push((i=["<page-width>","</page-width>"],i.raw=["<page-width>","</page-width>"],ca(i,e.pageWidth))),(e.pageMargins||[]).forEach(function(e){t.push(ya(e))}),r=["<page-layout>\n","\n</page-layout>"],r.raw=["<page-layout>\\n","\\n</page-layout>"],da(r,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r}function ya(e){var t=[];t=t.concat(ba(e)),t=t.concat(Sa(e));var n="";return ha(e.type)&&(i=[' type="','"'],i.raw=[' type="','"'],n+=ca(i,Iu[e.type])),r=["<page-margins",">\n","\n</page-margins>"],r.raw=["<page-margins",">\\n","\\n</page-margins>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function ba(e){var t=[];return ha(e.leftMargin)&&t.push((n=["<left-margin>","</left-margin>"],n.raw=["<left-margin>","</left-margin>"],ca(n,e.leftMargin))),ha(e.rightMargin)&&t.push((i=["<right-margin>","</right-margin>"],i.raw=["<right-margin>","</right-margin>"],ca(i,e.rightMargin))),t;var n,i}function Sa(e){var t=[];return ha(e.topMargin)&&t.push((n=["<top-margin>","</top-margin>"],n.raw=["<top-margin>","</top-margin>"],ca(n,e.topMargin))),ha(e.bottomMargin)&&t.push((i=["<bottom-margin>","</bottom-margin>"],i.raw=["<bottom-margin>","</bottom-margin>"],ca(i,e.bottomMargin))),t;var n,i}function wa(e){var t=[];return ha(e.systemMargins)&&t.push(Na(e.systemMargins)),ha(e.systemDistance)&&t.push((n=["<system-distance>","</system-distance>"],n.raw=["<system-distance>","</system-distance>"],ca(n,e.systemDistance))),ha(e.topSystemDistance)&&t.push((i=["<top-system-distance>","</top-system-distance>"],i.raw=["<top-system-distance>","</top-system-distance>"],ca(i,e.topSystemDistance))),ha(e.systemDividers)&&t.push(Da(e.systemDividers)),r=["<system-layout>\n","\n</system-layout>"],r.raw=["<system-layout>\\n","\\n</system-layout>"],da(r,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r}function Na(e){var t=ba(e);return n=["<system-margins>\n","\n</system-margins>"],n.raw=["<system-margins>\\n","\\n</system-margins>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function Da(e){var t=[];return ha(e.leftDivider)&&t.push((n=["<left-divider"," />"],n.raw=["<left-divider"," />"],ca(n,as(e.leftDivider)+fs(e.leftDivider)))),ha(e.rightDivider)&&t.push((i=["<right-divider"," />"],i.raw=["<right-divider"," />"],ca(i,as(e.rightDivider)+fs(e.rightDivider)))),r=["<system-dividers>\n","\n</system-dividers>"],r.raw=["<system-dividers>\\n","\\n</system-dividers>"],da(r,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r}function Ta(e){var t=[];return Object.keys(e.lineWidths||{}).forEach(function(n){t.push(Fa(e.lineWidths[n]))}),Object.keys(e.noteSizes||{}).forEach(function(n){t.push(xa(e.noteSizes[n]))}),Object.keys(e.distances||{}).forEach(function(n){t.push(ka(e.distances[n]))}),n=["<appearance>\n","\n</appearance>"],n.raw=["<appearance>\\n","\\n</appearance>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function Fa(e){return t=['<line-width type="','">',"</line-width>"],t.raw=['<line-width type="','">',"</line-width>"],ca(t,e.type,e.tenths);var t}function xa(e){return t=['<note-size type="','">',"</note-size>"],t.raw=['<note-size type="','">',"</note-size>"],ca(t,Hu[e.type],e.size);var t}function ka(e){return t=['<distance type="','">',"</distance>"],t.raw=['<distance type="','">',"</distance>"],ca(t,e.type,e.tenths);var t}function Ba(e){if(!e||!e.workNumber&&!e.workTitle)return n=["<!-- no work metadata -->"],n.raw=["<!-- no work metadata -->"],ca(n);var t=[];return ha(e.workNumber)&&t.push((i=["<work-number>","</work-number>"],i.raw=["<work-number>","</work-number>"],ca(i,e.workNumber))),ha(e.workTitle)&&t.push((r=["<work-title>","</work-title>"],r.raw=["<work-title>","</work-title>"],ca(r,e.workTitle))),ha(e.opus)&&e.opus&&(console.warn("link-attributes in <opus /> aren't implemented."),t.push((a=["<opus />"],a.raw=["<opus />"],da(a)))),o=["<work>\n","\n</work>"],o.raw=["<work>\\n","\\n</work>"],da(o,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r,a,o}function Ca(e){return e?(n=["<movement-number>","</movement-number>"],n.raw=["<movement-number>","</movement-number>"],ca(n,e)):(t=["<!-- no movement-number metadata -->"],t.raw=["<!-- no movement-number metadata -->"],ca(t));var t,n}function La(e){return e?(n=["<movement-title>","</movement-title>"],n.raw=["<movement-title>","</movement-title>"],ca(n,e)):(t=["<!-- no movement-title metadata -->"],t.raw=["<!-- no movement-title metadata -->"],ca(t));var t,n}function Wa(e){var t=[];return(e.creators||[]).forEach(function(e){t.push(_a(e))}),(e.rights||[]).forEach(function(e){t.push(Oa(e))}),ha(e.encoding)&&t.push(Ua(e.encoding)),ha(e.source)&&e.source&&t.push(Ya(e.source)),(e.relations||[]).forEach(function(e){t.push(Ra(e))}),ha(e.miscellaneous)&&t.push(za(e.miscellaneous)),n=["<identification>\n","\n</identification>"],n.raw=["<identification>\\n","\\n</identification>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function _a(e){var t="";e.type&&(i=[' type="','"'],i.raw=[' type="','"'],t+=ca(i,e.type));var n=(r=["",""],r.raw=["",""],ca(r,e.creator));return a=["<creator",">","</creator>"],a.raw=["<creator",">","</creator>"],da(a,t,n);var i,r,a}function Oa(e){var t="";e.type&&(i=[' type="','"'],i.raw=[' type="','"'],t+=ca(i,e.type));var n=(r=["",""],r.raw=["",""],ca(r,e.rights));return a=["<rights",">","</rights>"],a.raw=["<rights",">","</rights>"],da(a,t,n);var i,r,a}function Ua(e){var t=[];return ha(e.encodingDate)&&t.push(Aa(e.encodingDate)),(e.encoders||[]).forEach(function(e){t.push(Ea(e))}),(e.softwares||[]).forEach(function(e){t.push(Ma(e))}),(e.encodingDescriptions||[]).forEach(function(e){t.push(Xa(e))}),Object.keys(e.supports||{}).forEach(function(n){t.push(Pa(e.supports[n]))}),n=["<encoding>\n","\n</encoding>"],n.raw=["<encoding>\\n","\\n</encoding>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function Aa(e){return t=["<encoding-date>","-","-","</encoding-date>"],t.raw=["<encoding-date>","-","-","</encoding-date>"],ca(t,("0000"+e.year).slice(-4),("00"+e.month).slice(-2),("00"+e.day).slice(-2));var t}function Ea(e){var t="";ha(e.type)&&(i=[' type="','"'],i.raw=[' type="','"'],t=ca(i,e.type));var n=(r=["",""],r.raw=["",""],ca(r,e.encoder));return a=["<encoder",">","</encoder>"],a.raw=["<encoder",">","</encoder>"],da(a,t,n);var i,r,a}function Ma(e){return t=["<software>","</software>"],t.raw=["<software>","</software>"],ca(t,e);var t}function Xa(e){return t=["<encoding-description>","</encoding-description>"],t.raw=["<encoding-description>","</encoding-description>"],ca(t,e);var t}function Pa(e){var t="";return ha(e.type)&&(n=[' type="','"'],n.raw=[' type="','"'],t+=fa(n,e.type)),ha(e.element)&&(i=[' element="','"'],i.raw=[' element="','"'],t+=ca(i,e.element)),ha(e.attribute)&&(r=[' attribute="','"'],r.raw=[' attribute="','"'],t+=ca(r,e.attribute)),ha(e.value)&&(a=[' value="','"'],a.raw=[' value="','"'],t+=ca(a,e.value)),o=["<supports"," />"],o.raw=["<supports"," />"],da(o,t);var n,i,r,a,o}function Ya(e){return t=["<source>","</source>"],t.raw=["<source>","</source>"],ca(t,e);var t}function Ra(e){var t="";e.type&&(i=[' type="','"'],i.raw=[' type="','"'],t+=ca(i,e.type));var n=(r=["",""],r.raw=["",""],ca(r,e.data));return a=["<relation",">","</relation>"],a.raw=["<relation",">","</relation>"],da(a,t,n);var i,r,a}function za(e){var t=e.miscellaneousFields.map(function(e){return Ia(e)});return n=["<miscellaneous>\n","\n</miscellaneous>"],n.raw=["<miscellaneous>\\n","\\n</miscellaneous>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function Ia(e){return t=['<miscellaneous-field name="','">',"</miscellaneous-field>"],t.raw=['<miscellaneous-field name="','">',"</miscellaneous-field>"],ca(t,e.name,e.data||"");var t}function Ha(e){var t=[];return ha(e.scaling)&&t.push(pa(e.scaling)),ha(e.pageLayout)&&t.push(ga(e.pageLayout)),ha(e.systemLayout)&&t.push(wa(e.systemLayout)),ha(e.appearance)&&t.push(Ta(e.appearance)),ha(e.musicFont)&&t.push(ja(e.musicFont)),ha(e.wordFont)&&t.push(qa(e.wordFont)),(e.lyricFonts||[]).forEach(function(e){t.push(Ga(e))}),(e.lyricLanguages||[]).forEach(function(e){t.push(Va(e))}),n=["<defaults>\n","\n</defaults>"],n.raw=["<defaults>\\n","\\n</defaults>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function ja(e){return t=["<music-font"," />"],t.raw=["<music-font"," />"],da(t,rs(e));var t}function qa(e){return t=["<word-font"," />"],t.raw=["<word-font"," />"],da(t,rs(e));var t}function Ga(e){return t=["<lyric-font"," />"],t.raw=["<lyric-font"," />"],da(t,Vl(e)+Jl(e)+rs(e));var t}function Va(e){return t=["<lyric-language"," />"],t.raw=["<lyric-language"," />"],da(t,Vl(e)+Jl(e));var t}function Qa(e){var t="",n=[];return(e.creditTypes||[]).forEach(function(e){n.push(Ja(e))}),ha(e.creditImage)&&n.push(Za(e.creditImage)),(e.creditWords||[]).forEach(function(e){n.push(Ka(e))}),ha(e.page)&&(i=[' page="','"'],i.raw=[' page="','"'],t+=ca(i,e.page)),r=["<credit",">\n","\n</credit>"],r.raw=["<credit",">\\n","\\n</credit>"],da(r,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function Ja(e){return t=["<credit-type>","</credit-type>"],t.raw=["<credit-type>","</credit-type>"],ca(t,e);var t}function Ka(e){var t=(n=["",""],n.raw=["",""],ca(n,e.words));return i=["<credit-words",">","</credit-words>"],i.raw=["<credit-words",">","</credit-words>"],da(i,ls(e),t);var n,i}function Za(e){var t="";return ha(e.source)&&(n=[' credit-image="','"'],n.raw=[' credit-image="','"'],t+=ca(n,e.source)),ha(e.type)&&(i=[' type="','"'],i.raw=[' type="','"'],t+=ca(i,e.type)),t+=es(e)+us(e)+$a(e),r=["<credit-image"," />"],r.raw=["<credit-image"," />"],da(r,t);var n,i,r}function $a(e){return ha(e.valignImage)?(t=[' valign="','"'],t.raw=[' valign="','"'],ca(t,ju[e.valignImage])):"";var t}function eo(e){var t=[];return e.forEach(function(e){"PartGroup"===e._class?t.push(co(e)):"ScorePart"===e._class?t.push(to(e)):console.warn("Unknwn type for",e)}),n=["<part-list>\n","\n</part-list>"],n.raw=["<part-list>\\n","\\n</part-list>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function to(e){var t=[],n="";return ha(e.identification)&&t.push(Wa(e.identification)),ha(e.partName)&&t.push(no(e.partName)),ha(e.partNameDisplay)&&t.push(io(e.partNameDisplay)),ha(e.partAbbreviation)&&t.push(ro(e.partAbbreviation)),ha(e.partAbbreviationDisplay)&&t.push(ao(e.partAbbreviationDisplay)),(e.groups||[]).forEach(function(e){t.push((n=["<group>","</group>"],n.raw=["<group>","</group>"],ca(n,e)));var n}),(e.scoreInstruments||[]).forEach(function(e){t.push(uo(e))}),(e.midiDevices||[]).forEach(function(n,i){t.push(lo(n)),e.midiInstruments[i]&&t.push(so(e.midiInstruments[i]))}),ha(e.id)&&(i=[' id="','"'],i.raw=[' id="','"'],n+=ca(i,e.id)),r=["<score-part",">\n","\n</score-part>"],r.raw=["<score-part",">\\n","\\n</score-part>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function no(e){var t=(n=["",""],n.raw=["",""],ca(n,e.partName));return i=["<part-name",">","</part-name>"],i.raw=["<part-name",">","</part-name>"],da(i,Yl(e)+as(e)+ss(e),t);var n,i}function io(e){return t=["<part-name-display",">\n","</part-name-display>"],t.raw=["<part-name-display",">\\n","</part-name-display>"],da(t,as(e),oo(e.name).join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var t}function ro(e){var t=(n=["",""],n.raw=["",""],ca(n,e.abbreviation));return i=["<part-abbreviation",">","</part-abbreviation>"],i.raw=["<part-abbreviation",">","</part-abbreviation>"],da(i,Yl(e)+as(e)+ss(e),t);var n,i}function ao(e){return t=["<part-abbreviation-display",">","</part-abbreviation-display>"],t.raw=["<part-abbreviation-display",">","</part-abbreviation-display>"],da(t,as(e),oo(e.name).join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var t}function oo(e){return e.map(function(e){if(e.acc)return t=["<accidental-text",""],t.raw=["<accidental-text",""],da(t,ls(e.acc))+(n=[">","</accidental-text>"],n.raw=[">","</accidental-text>"],ca(n,e.acc.text));if(e.text)return i=["<display-text",""],i.raw=["<display-text",""],da(i,ls(e.text))+(r=[">","</display-text>"],r.raw=[">","</display-text>"],ca(r,e.text.text));throw"Unknown type "+e;var t,n,i,r})}function lo(e){var t="";ha(e.port)&&(i=[' port="','"'],i.raw=[' port="','"'],t+=ca(i,e.port)),ha(e.id)&&(r=[' id="','"'],r.raw=[' id="','"'],t+=ca(r,e.id));var n=(a=["",""],a.raw=["",""],ca(a,e.deviceName||""));return o=["<midi-device",">","</midi-device>"],o.raw=["<midi-device",">","</midi-device>"],da(o,t,n);var i,r,a,o}function so(e){var t=[],n="";return ha(e.midiChannel)&&t.push((i=["<midi-channel>","</midi-channel>"],i.raw=["<midi-channel>","</midi-channel>"],ca(i,e.midiChannel))),ha(e.midiName)&&t.push((r=["<midi-name>","</midi-name>"],r.raw=["<midi-name>","</midi-name>"],ca(r,e.midiName))),ha(e.midiBank)&&t.push((a=["<midi-bank>","</midi-bank>"],a.raw=["<midi-bank>","</midi-bank>"],ca(a,e.midiBank))),ha(e.midiProgram)&&t.push((o=["<midi-program>","</midi-program>"],o.raw=["<midi-program>","</midi-program>"],ca(o,e.midiProgram))),ha(e.midiUnpitched)&&t.push((l=["<midi-unpitched>","</midi-unpitche>"],l.raw=["<midi-unpitched>","</midi-unpitche>"],ca(l,e.midiUnpitched))),ha(e.volume)&&t.push((s=["<volume>","</volume>"],s.raw=["<volume>","</volume>"],ca(s,e.volume))),ha(e.pan)&&t.push((u=["<pan>","</pan>"],u.raw=["<pan>","</pan>"],ca(u,e.pan))),ha(e.elevation)&&t.push((c=["<elevation>","</elevation>"],c.raw=["<elevation>","</elevation>"],ca(c,e.elevation))),ha(e.id)&&(f=[' id="','"'],f.raw=[' id="','"'],n+=ca(f,e.id)),d=["<midi-instrument",">\n","\n</midi-instrument>"],d.raw=["<midi-instrument",">\\n","\\n</midi-instrument>"],da(d,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l,s,u,c,f,d}function uo(e){var t=[],n=(a=[' id="','"'],a.raw=[' id="','"'],ca(a,e.id));if(ha(e.instrumentName)&&t.push((o=["<instrument-name>","</instrument-name>"],o.raw=["<instrument-name>","</instrument-name>"],ca(o,e.instrumentName))),ha(e.instrumentAbbreviation)&&t.push((l=["<instrument-abbreviation>","</instrument-abbreviation>"],l.raw=["<instrument-abbreviation>","</instrument-abbreviation>"],ca(l,e.instrumentAbbreviation))),ha(e.instrumentSound)&&t.push((s=["<instrument-sound>","</instrument-sound>"],s.raw=["<instrument-sound>","</instrument-sound>"],ca(s,e.instrumentSound))),e.solo&&t.push((u=["<solo />"],u.raw=["<solo />"],ca(u))),ha(e.ensemble)&&t.push((c=["<ensemble>","</ensemble>"],c.raw=["<ensemble>","</ensemble>"],ca(c,e.ensemble))),ha(e.virtualInstrument)){var i=[],r=e.virtualInstrument;ha(r.virtualLibrary)&&i.push((f=["<virtual-library>","</virtual-library>"],f.raw=["<virtual-library>","</virtual-library>"],ca(f,r.virtualLibrary))),ha(r.virtualName)&&i.push((d=["<virtual-name>","</virtual-name>"],d.raw=["<virtual-name>","</virtual-name>"],ca(d,r.virtualName))),t.push((h=["<virtual-instrument>\n","\n</virtual-instrument>"],h.raw=["<virtual-instrument>\\n","\\n</virtual-instrument>"],da(h,i.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}return p=["<score-instrument",">\n","\n</score-instrument>"],p.raw=["<score-instrument",">\\n","\\n</score-instrument>"],da(p,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var a,o,l,s,u,c,f,d,h,p}function co(e){var t=[],n=""+ql(e)+Vl(e);return ha(e.groupName)&&t.push(fo(e.groupName)),ha(e.groupNameDisplay)&&t.push(ho(e.groupNameDisplay)),ha(e.groupAbbreviation)&&t.push(po(e.groupAbbreviation)),ha(e.groupAbbreviationDisplay)&&t.push(mo(e.groupAbbreviationDisplay)),ha(e.groupSymbol)&&t.push(vo(e.groupSymbol)),ha(e.groupBarline)&&t.push(go(e.groupBarline)),e.groupTime&&t.push((i=["<group-time />"],i.raw=["<group-time />"],ca(i))),t=t.concat(Il(e)),r=["<part-group",">\n","\n</part-group>"],r.raw=["<part-group",">\\n","\\n</part-group>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function fo(e){var t=(n=["",""],n.raw=["",""],ca(n,e.name));return i=["<group-name",">","</group-name>"],i.raw=["<group-name",">","</group-name>"],da(i,Yl(e)+ss(e),t);var n,i}function ho(e){return""}function po(e){var t=(n=["",""],n.raw=["",""],ca(n,e.text));return i=["<group-abbreviation",">","</group-abbreviation>"],i.raw=["<group-abbreviation",">","</group-abbreviation>"],da(i,Yl(e)+ss(e),t);var n,i}function mo(e){return""}function vo(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));return i=["<group-symbol",">","</group-symbol>"],i.raw=["<group-symbol",">","</group-symbol>"],da(i,es(e)+Fs(e),t);var n,i}function go(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));return i=["<group-barline",">","</group-barline>"],i.raw=["<group-barline",">","</group-barline>"],da(i,Fs(e),t);var n,i}function yo(e){var t=[];return t=t.concat(Oo(e)),ha(e.work)&&t.push(Ba(e.work)),ha(e.movementNumber)&&t.push(Ca(e.movementNumber)),ha(e.movementTitle)&&t.push(La(e.movementTitle)),ha(e.identification)&&t.push(Wa(e.identification)),ha(e.defaults)&&t.push(Ha(e.defaults)),(e.credits||[]).forEach(function(e){t.push(Qa(e))}),ha(e.partList)&&t.push(eo(e.partList)),t}function bo(e){var t=[];return t.push((n=["<duration>","</duration>"],n.raw=["<duration>","</duration>"],ca(n,e.duration))),t=t.concat(Il(e)),i=["<backup>\n","\n</backup>"],i.raw=["<backup>\\n","\\n</backup>"],da(i,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i}function So(e){var t=[];return t.push((n=["<duration>","</duration>"],n.raw=["<duration>","</duration>"],ca(n,e.duration))),t=t.concat(Hl(e)),e.staff&&t.push((i=["<staff>","</staff>"],i.raw=["<staff>","</staff>"],ca(i,e.staff))),r=["<forward>\n","\n</forward>"],r.raw=["<forward>\\n","\\n</forward>"],da(r,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r}function wo(e){var t=[];t=t.concat(Oo(e)),(e.features||[]).forEach(function(e){var n=(r=["",""],r.raw=["",""],ca(r,e.data)),i="";ha(e.type)&&(a=[' type="','"'],a.raw=[' type="','"'],i+=ca(a,e.type)),t.push((o=["<grouping",">","</grouping>"],o.raw=["<grouping",">","</grouping>"],da(o,i,n)));var r,a,o});var n=""+Kl(e)+Vl(e);return ha(e.memberOf)&&(i=[' member-of="','"'],i.raw=[' member-of="','"'],n+=ca(i,e.memberOf)),r=["<grouping",">\n","\n</grouping>"],r.raw=["<grouping",">\\n","\\n</grouping>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function No(e){var t=""+Do(e)+as(e);ha(e.printFrame)&&(i=[' print-frame="','"'],i.raw=[' print-frame="','"'],t+=fa(i,e.printFrame)),t+=Yl(e)+ts(e);var n=[];return n=n.concat(Oo(e)),ha(e.root)?n.push(To(e.root)):ha(e["function"])&&n.push(Fo(e["function"])),n.push(xo(e.kind)),ha(e.inversion)&&n.push(ko(e.inversion)),ha(e.bass)&&n.push(Bo(e.bass)),(e.degrees||[]).forEach(function(e){n.push(Co(e))}),ha(e.frame)&&n.push(Lo(e.frame)),ha(e.offset)&&n.push(zo(e.offset)),n=n.concat(Il(e)),isNaN(e.staff)||n.push((r=["<staff>","</staff>"],r.raw=["<staff>","</staff>"],ca(r,e.staff))),a=["<harmony",">\n","\n</harmony>"],a.raw=["<harmony",">\\n","\\n</harmony>"],da(a,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a}function Do(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,qu[e.type])):"";var t}function To(e){
var t=[];if(ha(e.rootStep)){var n="";ha(e.rootStep.text)&&(r=[' text="','"'],r.raw=[' text="','"'],n+=ca(r,e.rootStep.text)),n+=Yl(e.rootStep);var i=(a=["",""],a.raw=["",""],ca(a,e.rootStep.data));t.push((o=["<root-step",">","</root-step>"],o.raw=["<root-step",">","</root-step>"],da(o,n,i)))}if(ha(e.rootAlter)){var n=as(e.rootAlter)+Yl(e.rootAlter);ha(e.rootAlter.location)&&(l=[' location="','"'],l.raw=[' location="','"'],n+=ca(l,e.rootAlter.location===Ys.Left?"left":"right"));var i=e.rootAlter.data;t.push((s=["<root-alter",">","</root-alter>"],s.raw=["<root-alter",">","</root-alter>"],da(s,n,i)))}return u=["<root>\n","\n</root>"],u.raw=["<root>\\n","\\n</root>"],da(u,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u}function Fo(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data)),n=Yl(e);return"<function"+n+">"+t+"</function>";var i}function xo(e){var t="";ha(e.useSymbols)&&(i=[' kind="','"'],i.raw=[' kind="','"'],t+=fa(i,e.useSymbols)),ha(e.text)&&(r=[' text="','"'],r.raw=[' text="','"'],t+=ca(r,e.text)),ha(e.stackDegrees)&&(a=[' stack-degrees="','"'],a.raw=[' stack-degrees="','"'],t+=fa(a,e.stackDegrees)),ha(e.parenthesesDegrees)&&(o=[' parentheses-degrees="','"'],o.raw=[' parentheses-degrees="','"'],t+=fa(o,e.parenthesesDegrees)),t+=Yl(e)+us(e)+cs(e);var n=(l=["",""],l.raw=["",""],ca(l,e.data));return s=["<kind",">\n","</kind>"],s.raw=["<kind",">\\n","</kind>"],da(s,t,n);var i,r,a,o,l,s}function ko(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data)),n=Yl(e);return"<inversion"+n+">"+t+"</inversion>";var i}function Bo(e){var t=[];if(ha(e.bassStep)){var n="";ha(e.bassStep.text)&&(r=[' text="','"'],r.raw=[' text="','"'],n+=ca(r,e.bassStep.text)),n+=Yl(e.bassStep);var i=(a=["",""],a.raw=["",""],ca(a,e.bassStep.data));t.push((o=["<bass-step",">","</bass-step>"],o.raw=["<bass-step",">","</bass-step>"],da(o,n,i)))}if(ha(e.bassAlter)){var n=as(e.bassAlter)+Yl(e.bassAlter);ha(e.bassAlter.location)&&(l=[' location="','"'],l.raw=[' location="','"'],n+=ca(l,e.bassAlter.location===Ys.Left?"left":"right"));var i=e.bassAlter.data;t.push((s=["<bass-alter",">","</bass-alter>"],s.raw=["<bass-alter",">","</bass-alter>"],da(s,n,i)))}return u=["<bass>\n","\n</bass>"],u.raw=["<bass>\\n","\\n</bass>"],da(u,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u}function Co(e){var t=[];if(ha(e.degreeValue)){var n="";ha(e.degreeValue.symbol)&&(a=[' symbol="','"'],a.raw=[' symbol="','"'],n+=ca(a,Gu[e.degreeValue.symbol])),ha(e.degreeValue.text)&&(o=[' text="','"'],o.raw=[' text="','"'],n+=ca(o,e.degreeValue.text)),n+=Yl(e.degreeValue);var i=(l=["",""],l.raw=["",""],ca(l,e.degreeValue.data));t.push((s=["<degree-value",">","</degree-value>"],s.raw=["<degree-value",">","</degree-value>"],da(s,n,i)))}if(ha(e.degreeAlter)){var n=Yl(e.degreeAlter);ha(e.degreeAlter.plusMinus)&&(u=[' plus-minus="','"'],u.raw=[' plus-minus="','"'],n+=fa(u,e.degreeAlter.plusMinus));var i=(c=["",""],c.raw=["",""],ca(c,e.degreeAlter.data));t.push((f=["<degree-alter",">","</degree-alter>"],f.raw=["<degree-alter",">","</degree-alter>"],da(f,n,i)))}if(ha(e.degreeType)){var n=Yl(e.degreeType);ha(e.degreeType.text)&&(d=[' text="','"'],d.raw=[' text="','"'],n+=ca(d,e.degreeType.text));var i=(h=["",""],h.raw=["",""],ca(h,e.degreeType.data));t.push((p=["<degree-type",">","</degree-type>"],p.raw=["<degree-type",">","</degree-type>"],da(p,n,i)))}var r=as(e);return m=["<degree",">\n","\n</degree>"],m.raw=["<degree",">\\n","\\n</degree>"],da(m,r,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var a,o,l,s,u,c,f,d,h,p,m}function Lo(e){var t=es(e)+Fs(e)+us(e)+$a(e);ha(e.height)&&(r=[' height="','"'],r.raw=[' height="','"'],t+=ca(r,e.height)),ha(e.width)&&(a=[' width="','"'],a.raw=[' width="','"'],t+=ca(a,e.width)),ha(e.unplayed)&&(o=[' unplayed="','"'],o.raw=[' unplayed="','"'],t+=ca(o,e.unplayed));var n=[];if(ha(e.frameStrings)&&n.push((l=["<frame-strings>","</frame-strings>"],l.raw=["<frame-strings>","</frame-strings>"],ca(l,e.frameStrings))),ha(e.frameFrets)&&n.push((s=["<frame-frets>","</frame-frets>"],s.raw=["<frame-frets>","</frame-frets>"],ca(s,e.frameFrets))),ha(e.firstFret)){var i=(u=["",""],u.raw=["",""],ca(u,e.firstFret.data),"");ha(e.firstFret.text)&&(c=[' text="','"'],c.raw=[' text="','"'],i+=ca(c,e.firstFret.text)),ha(e.firstFret.location)&&(f=[' location="','"'],f.raw=[' location="','"'],i+=ca(f,e.firstFret.location===Ys.Left?"left":"right"))}return(e.frameNotes||[]).forEach(function(e){var t=[];if(ha(e.string)){var i=(a=["",""],a.raw=["",""],ca(a,e.string.stringNum));t.push((o=["<string",">","</string>"],o.raw=["<string",">","</string>"],da(o,Yl(e.string)+ts(e.string),i)))}if(ha(e.fret)){var i=(l=["",""],l.raw=["",""],ca(l,e.fret.fret));t.push((s=["<fret",">","</fret>"],s.raw=["<fret",">","</fret>"],da(s,rs(e.fret)+Fs(e.fret),i)))}if(ha(e.fingering)){var i=(u=["",""],u.raw=["",""],ca(u,e.fingering.finger)),r="";ha(e.fingering.substitution)&&(c=[' substitution="','"'],c.raw=[' substitution="','"'],r+=fa(c,e.fingering.substitution)),ha(e.fingering.alternate)&&(f=[' alternate="','"'],f.raw=[' alternate="','"'],r+=fa(f,e.fingering.alternate)),t.push((d=["<fingering",">","</fingering>"],d.raw=["<fingering",">","</fingering>"],da(d,r+Yl(e.fingering)+ts(e.fingering),i)))}ha(e.barre)&&t.push((h=["<barre"," />"],h.raw=["<barre"," />"],da(h,ql(e.barre)+Fs(e.barre)))),n.push((p=["<frame-note>\n","\n</frame-note>"],p.raw=["<frame-note>\\n","\\n</frame-note>"],da(p,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var a,o,l,s,u,c,f,d,h,p}),d=["<frame",">\n","\n</frame>"],d.raw=["<frame",">\\n","\\n</frame>"],da(d,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u,c,f,d}function Wo(e){var t="",n=[];return n=n.concat(Oo(e)),ha(e.staffSpacing)&&(i=[' staff-spacing="','"'],i.raw=[' staff-spacing="','"'],t+=ca(i,e.staffSpacing)),ha(e.newSystem)&&(r=[' new-system="','"'],r.raw=[' new-system="','"'],t+=fa(r,e.newSystem)),ha(e.newPage)&&(a=[' new-page="','"'],a.raw=[' new-page="','"'],t+=fa(a,e.newPage)),ha(e.blankPage)&&(o=[' blank-page="','"'],o.raw=[' blank-page="','"'],t+=ca(o,e.blankPage)),ha(e.pageNumber)&&(l=[' page-number="','"'],l.raw=[' page-number="','"'],t+=ca(l,e.pageNumber)),ha(e.pageLayout)&&n.push(ga(e.pageLayout)),ha(e.systemLayout)&&n.push(wa(e.systemLayout)),(e.staffLayouts||[]).forEach(function(e){n.push(yl(e))}),ha(e.measureLayout)&&n.push(bl(e.measureLayout)),ha(e.measureNumbering)&&n.push(Sl(e.measureNumbering)),ha(e.partNameDisplay)&&n.push(io(e.partNameDisplay)),ha(e.partAbbreviationDisplay)&&n.push(ao(e.partAbbreviationDisplay)),s=["<print",">\n","\n</print>"],s.raw=["<print",">\\n","\\n</print>"],da(s,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l,s}function _o(e){var t=[],n="";return t=t.concat(Oo(e)),(e.midiDevices||[]).forEach(function(e){t.push(lo(e))}),(e.midiInstruments||[]).forEach(function(e){t.push(so(e))}),(e.plays||[]).forEach(function(e){t.push(gl(e))}),ha(e.tempo)&&(i=[' tempo="','"'],i.raw=[' tempo="','"'],n+=ca(i,e.tempo)),ha(e.dynamics)&&(r=[' dynamics="','"'],r.raw=[' dynamics="','"'],n+=ca(r,e.dynamics)),ha(e.decapo)&&(a=[' decapo="','"'],a.raw=[' decapo="','"'],n+=fa(a,e.decapo)),ha(e.segno)&&(o=[' segno="','"'],o.raw=[' segno="','"'],n+=ca(o,e.segno)),ha(e.dalsegno)&&(l=[' dalsegno="','"'],l.raw=[' dalsegno="','"'],n+=ca(l,e.dalsegno)),ha(e.coda)&&(s=[' coda="','"'],s.raw=[' coda="','"'],n+=ca(s,e.coda)),ha(e.tocoda)&&(u=[' tocoda="','"'],u.raw=[' tocoda="','"'],n+=ca(u,e.tocoda)),ha(e.divisions)&&(c=[' divisions="','"'],c.raw=[' divisions="','"'],n+=ca(c,e.divisions)),ha(e.forwardRepeat)&&(f=[' forward-repeat="','"'],f.raw=[' forward-repeat="','"'],n+=fa(f,e.forwardRepeat)),ha(e.fine)&&(d=[' fine="','"'],d.raw=[' fine="','"'],n+=ca(d,e.fine)),n+=zl(e),ha(e.pizzicato)&&(h=[' pizzicato="','"'],h.raw=[' pizzicato="','"'],n+=fa(h,e.pizzicato)),ha(e.pan)&&(p=[' pan="','"'],p.raw=[' pan="','"'],n+=ca(p,e.pan)),ha(e.elevation)&&(m=[' elevation="','"'],m.raw=[' elevation="','"'],n+=ca(m,e.elevation)),ha(e.damperPedal)&&(v=[' damper-pedal="','"'],v.raw=[' damper-pedal="','"'],n+=ca(v,e.damperPedal)),ha(e.softPedal)&&(g=[' soft-pedal="','"'],g.raw=[' soft-pedal="','"'],n+=ca(g,e.softPedal)),ha(e.sostenutoPedal)&&(y=[' sostenuto-pedal="','"'],y.raw=[' sostenuto-pedal="','"'],n+=ca(y,e.sostenutoPedal)),b=["<sound",">\n","\n</sound>"],b.raw=["<sound",">\\n","\\n</sound>"],da(b,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l,s,u,c,f,d,h,p,m,v,g,y,b}function Oo(e){var t=[];return ha(e.divCount)&&t.push((n=["<!--musicxml-interfaces:debug>\n","  <div-count>","</div-count>\n","</musicxml-interfaces:debug-->"],n.raw=["<!--musicxml-interfaces:debug>\\n","  <div-count>","</div-count>\\n","</musicxml-interfaces:debug-->"],ca(n,"",e.divCount,""))),t;var n}function Uo(e){var t=[];t=t.concat(Oo(e)),(e.directionTypes||[]).forEach(function(e){t.push(Ro(e))}),ha(e.offset)&&t.push(zo(e.offset)),t=t.concat(Hl(e)),ha(e.staff)&&t.push((i=["<staff>","</staff>"],i.raw=["<staff>","</staff>"],ca(i,e.staff))),ha(e.sound)&&t.push(_o(e.sound));var n=""+ts(e);return ha(e.directive)&&(r=[' directive="','"'],r.raw=[' directive="','"'],n+=fa(r,e.directive)),a=["<direction",">\n","\n</direction>"],a.raw=["<direction",">\\n","\\n</direction>"],da(a,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a}function Ao(e){var t=[];return t=t.concat(Oo(e)),t=t.concat(Il(e)),ha(e.divisions)&&t.push((n=["<divisions>","</divisions>"],n.raw=["<divisions>","</divisions>"],ca(n,e.divisions))),(e.keySignatures||[]).forEach(function(e){t.push(wl(e))}),(e.times||[]).forEach(function(e){t.push(Tl(e))}),ha(e.staves)&&t.push((i=["<staves>","</staves>"],i.raw=["<staves>","</staves>"],ca(i,e.staves))),ha(e.partSymbol)&&t.push(Bl(e.partSymbol)),ha(e.instruments)&&t.push((r=["<instruments>","</instruments>"],r.raw=["<instruments>","</instruments>"],ca(r,e.instruments))),(e.clefs||[]).forEach(function(e){t.push(Cl(e))}),(e.staffDetails||[]).forEach(function(e){t.push(Ll(e))}),(e.transposes||[]).forEach(function(e){t.push(Ol(e))}),(e.directives||[]).forEach(function(e){t.push(Ul(e))}),(e.measureStyles||[]).forEach(function(e){t.push(Al(e))}),a=["<attributes>\n","\n</attributes>"],a.raw=["<attributes>\\n","\\n</attributes>"],da(a,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i,r,a}function Eo(e){var t="";ha(e.number)&&(r=[' number="','"'],r.raw=[' number="','"'],t+=ca(r,e.number)),ha(e.implicit)&&(a=[' implicit="','"'],a.raw=[' implicit="','"'],t+=fa(a,e.implicit)),ha(e.nonControlling)&&(o=[' non-controlling="','"'],o.raw=[' non-controlling="','"'],t+=fa(o,e.nonControlling)),ha(e.width)&&(l=[' width="','"'],l.raw=[' width="','"'],t+=ca(l,e.width));var n=[];for(var i in e.parts)n.push(Mo(e.parts[i],i));return s=["<measure",">\n","\n</measure>"],s.raw=["<measure",">\\n","\\n</measure>"],da(s,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s}function Mo(e,t){var n=(r=[' id="','"'],r.raw=[' id="','"'],ca(r,t)),i=e.map(function(e){switch(e._class){case"Note":return Xo(e);case"Backup":return bo(e);case"Forward":return So(e);case"Direction":return Uo(e);case"Attributes":return Ao(e);case"Harmony":return No(e);case"FiguredBass":return Po(e);case"Print":return Wo(e);case"Sound":return _o(e);case"Barline":return Yo(e);case"Grouping":return wo(e);case"Link":return"<!-- link not implemented -->";case"Bookmark":return"<!-- bookmark not implemented -->";default:return t=["<!-- unknown type (class ",") -->"],t.raw=["<!-- unknown type (class ",") -->"],ca(t,e._class)}var t});return a=["<part",">\n","\n</part>"],a.raw=["<part",">\\n","\\n</part>"],da(a,n,i.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a}function Xo(e){var t="";t+=Yl(e),t+=Rl(e),ha(e.dynamics)&&(g=[' dynamics="','"'],g.raw=[' dynamics="','"'],t+=ca(g,e.dynamics)),ha(e.endDynamics)&&(y=[' end-dynamics="','"'],y.raw=[' end-dynamics="','"'],t+=ca(y,e.endDynamics)),ha(e.attack)&&(b=[' attack="','"'],b.raw=[' attack="','"'],t+=ca(b,e.attack)),ha(e.release)&&(S=[' release="','"'],S.raw=[' release="','"'],t+=ca(S,e.release)),t+=zl(e),ha(e.pizzicato)&&(w=[' pizzicato="','"'],w.raw=[' pizzicato="','"'],t+=fa(w,e.pizzicato));var n=[];if(e.grace){var i="";e.grace.stealTimePrevious&&(N=[' steal-time-previous="','"'],N.raw=[' steal-time-previous="','"'],i+=ca(N,e.grace.stealTimePrevious)),e.grace.stealTimeFollowing&&(D=[' steal-time-following="','"'],D.raw=[' steal-time-following="','"'],i+=ca(D,e.grace.stealTimeFollowing)),e.grace.makeTime&&(T=[' make-time="','"'],T.raw=[' make-time="','"'],i+=ca(T,e.grace.makeTime)),void 0!==e.grace.slash&&null!==e.grace.slash&&(F=[' slash="','"'],F.raw=[' slash="','"'],i+=fa(F,e.grace.slash)),n.push((x=["<grace"," />"],x.raw=["<grace"," />"],da(x,i)))}else e.cue&&n.push((k=["<cue />"],k.raw=["<cue />"],ca(k)));if(e.chord&&n.push((B=["<chord />"],B.raw=["<chord />"],ca(B))),e.pitch){var r=[];e.pitch.step&&r.push((C=["<step>","</step>"],C.raw=["<step>","</step>"],ca(C,e.pitch.step.toUpperCase()))),e.pitch.alter&&r.push((L=["<alter>","</alter>"],L.raw=["<alter>","</alter>"],ca(L,e.pitch.alter))),e.pitch.octave&&r.push((W=["<octave>","</octave>"],W.raw=["<octave>","</octave>"],ca(W,e.pitch.octave))),n.push((_=["<pitch>\n","\n</pitch>"],_.raw=["<pitch>\\n","\\n</pitch>"],da(_,r.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}else if(e.unpitched){var a=[];e.unpitched.displayStep&&a.push((O=["<display-step>","</display-step>"],O.raw=["<display-step>","</display-step>"],ca(O,e.unpitched.displayStep))),e.unpitched.displayOctave&&a.push((U=["<display-octave>","</display-octave>"],U.raw=["<display-octave>","</display-octave>"],ca(U,e.unpitched.displayOctave))),n.push((A=["<unpitched>\n","\n</unpitched>"],A.raw=["<unpitched>\\n","\\n</unpitched>"],da(A,a.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}else if(e.rest){var o="",l=[];e.rest.displayStep&&l.push("<display-step>"+e.rest.displayStep+"</display-step>"),e.rest.displayOctave&&l.push("<display-octave>"+e.rest.displayOctave+"</display-octave>"),void 0!==e.rest.measure&&null!==e.rest.measure&&(E=[' measure="','"'],E.raw=[' measure="','"'],o+=fa(E,e.rest.measure)),n.push((M=["<rest",">\n","\n</rest>"],M.raw=["<rest",">\\n","\\n</rest>"],da(M,o,l.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(!e.grace&&e.duration&&n.push((X=["<duration>","</duration>"],X.raw=["<duration>","</duration>"],ca(X,e.duration))),e.ties&&e.ties.length){var s=(P=[' type="','"'],P.raw=[' type="','"'],ca(P,e.ties[0].type===_s.Stop?"stop":"start"));n.push((Y=["<tie"," />"],Y.raw=["<tie"," />"],da(Y,s)))}if(e.instrument&&n.push((R=['<instrument id="','" />'],R.raw=['<instrument id="','" />'],ca(R,e.instrument.id))),n=n.concat(Hl(e)),e.noteType&&ha(e.noteType.duration)&&n.push((z=["<type>","</type>"],z.raw=["<type>","</type>"],ca(z,Vu[e.noteType.duration]))),(e.dots||[]).forEach(function(){n.push((e=["<dot />"],e.raw=["<dot />"],ca(e)));var e}),e.accidental){var u="";void 0!==e.accidental.editorial&&null!==e.accidental.editorial&&(I=[' editorial="','"'],I.raw=[' editorial="','"'],u+=fa(I,e.accidental.editorial)),void 0!==e.accidental.cautionary&&null!==e.accidental.cautionary&&(H=[' cautionary="','"'],H.raw=[' cautionary="','"'],u+=fa(H,e.accidental.cautionary)),n.push((j=["<accidental",">","</accidental>"],j.raw=["<accidental",">","</accidental>"],da(j,u,Qu[e.accidental.accidental])))}if(e.timeModification){var c=[];e.timeModification.actualNotes&&c.push((q=["<actual-notes>","</actual-notes>"],q.raw=["<actual-notes>","</actual-notes>"],ca(q,e.timeModification.actualNotes))),e.timeModification.normalNotes&&c.push((G=["<normal-notes>","</normal-notes>"],G.raw=["<normal-notes>","</normal-notes>"],ca(G,e.timeModification.normalNotes))),e.timeModification.normalType&&c.push((V=["<normal-type>","</normal-type>"],V.raw=["<normal-type>","</normal-type>"],ca(V,e.timeModification.normalType))),(e.timeModification.normalDots||[]).forEach(function(){c.push((e=["<normal-dot />"],e.raw=["<normal-dot />"],ca(e)));var e}),n.push((Q=["<time-modification>\n","\n</time-modification>"],Q.raw=["<time-modification>\\n","\\n</time-modification>"],da(Q,c.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(e.stem){var f=""+es(e.stem)+Fs(e.color);n.push((J=["<stem",">","</stem>"],J.raw=["<stem",">","</stem>"],da(J,f,rc[e.stem.type])))}if(e.notehead){var d=""+rs(e.notehead)+Fs(e.color);ha(e.notehead.filled)&&(K=[' filled="','"'],K.raw=[' filled="','"'],d+=fa(K,e.notehead.filled)),ha(e.notehead.parentheses)&&(Z=[' parentheses="','"'],Z.raw=[' parentheses="','"'],d+=fa(Z,e.notehead.parentheses)),n.push(($=["<notehead",">","</notehead>"],$.raw=["<notehead",">","</notehead>"],da($,d,ic[e.notehead.type])))}if(ha(e.noteheadText)&&(n=n.concat(oo(e.noteheadText.text))),isNaN(e.staff)||n.push((ee=["<staff>","</staff>"],ee.raw=["<staff>","</staff>"],ca(ee,e.staff))),(e.beams||[]).forEach(function(e){var t=(i=[' number="','"'],i.raw=[' number="','"'],ca(i,e.number));ha(e.repeater)&&(r=[' repeater="','"'],r.raw=[' repeater="','"'],t+=fa(r,e.repeater)),ha(e.fan)&&(a=[' fan="','"'],a.raw=[' fan="','"'],t+=ca(a,nc[e.fan])),n.push((o=["<beam",">","</beam>"],o.raw=["<beam",">","</beam>"],da(o,t,tc[e.type])));var i,r,a,o}),(e.notations||[]).forEach(function(e){var t="",i=[];ha(e.printObject)&&(r=[' print-object="','"'],r.raw=[' print-object="','"'],t+=fa(r,e.printObject)),i=i.concat(Il(e)),(e.tieds||[]).forEach(function(e){i.push((t=["<tied"," />"],t.raw=["<tied"," />"],da(t,Ql(e)+Vl(e)+jl(e)+Zl(e)+es(e)+ts(e)+ns(e)+is(e)+Fs(e))));var t}),(e.slurs||[]).forEach(function(e){i.push((t=["<slur"," />"],t.raw=["<slur"," />"],da(t,Ql(e)+Vl(e)+jl(e)+Zl(e)+es(e)+ts(e)+ns(e)+is(e)+Fs(e))));var t}),(e.tuplets||[]).forEach(function(e){var t=""+ql(e)+Vl(e);ha(e.bracket)&&(r=[' bracket="','"'],r.raw=[' bracket="','"'],t+=fa(r,e.bracket)),ha(e.showNumber)&&(a=[' show-number="','"'],a.raw=[' show-number="','"'],t+=ca(a,ec[e.showNumber])),ha(e.showType)&&(o=[' show-type="','"'],o.raw=[' show-type="','"'],t+=ca(o,ec[e.showType])),t+=$l(e),t+=es(e),t+=ts(e);var n=[];[["tuplet-actual","tupletActual"],["tuplet-normal","tupletNormal"]].forEach(function(t){var i=e[t[1]];if(i){var r=[];if(i.tupletNumber){var a=i.tupletNumber,o=(s=["",""],s.raw=["",""],ca(s,a.text));r.push((u=["<tuplet-number",">","</tuplet-number>"],u.raw=["<tuplet-number",">","</tuplet-number>"],da(u,rs(a)+Fs(a),o)))}if(i.tupletType){var l=i.tupletType,o=(c=["",""],c.raw=["",""],ca(c,l.text));r.push((f=["<tuplet-type",">","</tuplet-type>"],f.raw=["<tuplet-type",">","</tuplet-type>"],da(f,rs(l)+Fs(l),o)))}(i.tupletDots||[]).forEach(function(e){r.push((t=["<tuplet-dot"," />"],t.raw=["<tuplet-dot"," />"],da(t,rs(e)+Fs(e))));var t}),n.push((d=["<",">\n","\n</",">"],d.raw=["<",">\\n","\\n</",">"],da(d,t[0],r.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"),t[0])));var s,u,c,f,d}}),i.push((l=["<tuplet",">\n","\n</tuplet>"],l.raw=["<tuplet",">\\n","\\n</tuplet>"],da(l,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a,o,l}),(e.glissandos||[]).forEach(function(e){var t=(n=["",""],n.raw=["",""],ca(n,e.text));i.push((r=["<glissando",">","</glissando>"],r.raw=["<glissando",">","</glissando>"],da(r,ql(e)+Vl(e)+jl(e)+Zl(e)+Yl(e),t)));var n,r}),(e.slides||[]).forEach(function(e){var t=(n=["",""],n.raw=["",""],ca(n,e.text));i.push((r=["<slide",">","</slide>"],r.raw=["<slide",">","</slide>"],da(r,ql(e)+Vl(e)+jl(e)+Zl(e)+Yl(e)+bs(e),t)));var n,r}),(e.ornaments||[]).forEach(function(e){var t=[];if(e.trillMark&&t.push((r=["<trill-mark"," />"],r.raw=["<trill-mark"," />"],da(r,Yl(e.trillMark)+ts(e.trillMark)+Ss(e.trillMark)))),e.turn&&t.push((a=["<turn"," />"],a.raw=["<turn"," />"],da(a,Yl(e.turn)+ts(e.turn)+Ss(e.turn)+ws(e.turn)))),e.delayedTurn&&t.push((o=["<delayed-turn"," />"],o.raw=["<delayed-turn"," />"],da(o,Yl(e.delayedTurn)+ts(e.delayedTurn)+Ss(e.delayedTurn)+ws(e.delayedTurn)))),e.invertedTurn&&t.push((l=["<inverted-turn"," />"],l.raw=["<inverted-turn"," />"],da(l,Yl(e.invertedTurn)+ts(e.invertedTurn)+Ss(e.invertedTurn)+ws(e.invertedTurn)))),e.delayedInvertedTurn&&t.push((s=["<delayed-inverted-turn"," />"],s.raw=["<delayed-inverted-turn"," />"],da(s,Yl(e.delayedInvertedTurn)+ts(e.delayedInvertedTurn)+Ss(e.delayedInvertedTurn)+ws(e.delayedInvertedTurn)))),e.verticalTurn&&t.push((u=["<vertical-turn"," />"],u.raw=["<vertical-turn"," />"],da(u,Yl(e.verticalTurn)+ts(e.verticalTurn)+Ss(e.verticalTurn)))),e.shake&&t.push((c=["<shake"," />"],c.raw=["<shake"," />"],da(c,Yl(e.shake)+ts(e.shake)+Ss(e.shake)))),e.mordent&&t.push((f=["<mordent"," />"],f.raw=["<mordent"," />"],da(f,Ns(e.mordent)+Yl(e.mordent)+ts(e.mordent)+Ss(e.mordent)))),e.invertedMordent&&t.push((d=["<inverted-mordent"," />"],d.raw=["<inverted-mordent"," />"],da(d,Ns(e.invertedMordent)+Yl(e.invertedMordent)+ts(e.invertedMordent)+Ss(e.invertedMordent)))),e.schleifer&&t.push((h=["<schleifer"," />"],h.raw=["<schleifer"," />"],da(h,Yl(e.schleifer)+ts(e.schleifer)))),e.tremolo){var n=(p=["",""],p.raw=["",""],ca(p,e.tremolo.data||""));t.push((m=["<tremolo",">","</tremolo>"],m.raw=["<tremolo",">","</tremolo>"],da(m,Kl(e.tremolo)+Yl(e.tremolo)+ts(e.tremolo),n)))}if(e.otherOrnament){var n=(v=["",""],v.raw=["",""],ca(v,e.otherOrnament.data||""));t.push((g=["<other-ornament",">","</other-ornament>"],g.raw=["<other-ornament",">","</other-ornament>"],da(g,Yl(e.otherOrnament)+ts(e.otherOrnament),n)))}(e.accidentalMarks||[]).forEach(function(e){var n=(i=["",""],i.raw=["",""],ca(i,e.mark||""));t.push((r=["<accidental-mark",">","</accidental-mark>"],r.raw=["<accidental-mark",">","</accidental-mark>"],da(r,Yl(e)+ts(e),n)));var i,r}),i.push((y=["<ornaments>\n","\n</ornaments>"],y.raw=["<ornaments>\\n","\\n</ornaments>"],da(y,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a,o,l,s,u,c,f,d,h,p,m,v,g,y}),(e.technicals||[]).forEach(function(e){var t=[];if(e.upBow&&t.push((f=["<up-bow"," />"],f.raw=["<up-bow"," />"],da(f,Yl(e.upBow)+ts(e.upBow)))),e.downBow&&t.push((d=["<down-bow"," />"],d.raw=["<down-bow"," />"],da(d,Yl(e.downBow)+ts(e.downBow)))),e.harmonic){var n=[];e.harmonic.natural&&n.push((h=["<natural />"],h.raw=["<natural />"],ca(h))),e.harmonic.artificial&&n.push((p=["<artificial />"],p.raw=["<artificial />"],ca(p))),e.harmonic.basePitch&&n.push((m=["<base-pitch />"],m.raw=["<base-pitch />"],ca(m))),e.harmonic.touchingPitch&&n.push((v=["<touching-pitch />"],v.raw=["<touching-pitch />"],ca(v))),e.harmonic.soundingPitch&&n.push((g=["<sounding-pitch />"],g.raw=["<sounding-pitch />"],ca(g))),t.push((y=["<harmonic",">","\n</harmonic>"],y.raw=["<harmonic",">","\\n</harmonic>"],da(y,as(e.harmonic)+Yl(e.harmonic)+ts(e.harmonic),n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(e.openString&&t.push((b=["<open-string"," />"],b.raw=["<open-string"," />"],da(b,Yl(e.openString)+ts(e.openString)))),e.thumbPosition&&t.push((S=["<thumb-position"," />"],S.raw=["<thumb-position"," />"],da(S,Yl(e.thumbPosition)+ts(e.thumbPosition)))),e.fingering){var r="";ha(e.fingering.substitution)&&(w=[' substitution="','"'],w.raw=[' substitution="','"'],r+=fa(w,e.fingering.substitution));var a="";ha(e.fingering.alternate)&&(N=[' alternate="','"'],N.raw=[' alternate="','"'],a+=fa(N,e.fingering.alternate)),t.push((D=["<fingering",">","</fingering>"],D.raw=["<fingering",">","</fingering>"],da(D,r+a+Yl(e.fingering)+ts(e.fingering),String(parseInt(String(e.fingering.finger),10)))))}if(e.pluck&&t.push((T=["<pluck"," />"],T.raw=["<pluck"," />"],da(T,Yl(e.pluck)+ts(e.pluck)))),e.doubleTongue&&t.push((F=["<double-tongue"," />"],F.raw=["<double-tongue"," />"],da(F,Yl(e.doubleTongue)+ts(e.doubleTongue)))),e.tripleTongue&&t.push((x=["<triple-tongue"," />"],x.raw=["<triple-tongue"," />"],da(x,Yl(e.tripleTongue)+ts(e.tripleTongue)))),e.stopped&&t.push((k=["<stopped"," />"],k.raw=["<stopped"," />"],da(k,Yl(e.stopped)+ts(e.stopped)))),e.snapPizzicato&&t.push((B=["<snap-pizzicato"," />"],B.raw=["<snap-pizzicato"," />"],da(B,Yl(e.snapPizzicato)+ts(e.snapPizzicato)))),e.hammerOn){var o=(C=["",""],C.raw=["",""],ca(C,e.hammerOn.data));t.push((L=["<hammer-on",">","</hammer-on>"],L.raw=["<hammer-on",">","</hammer-on>"],da(L,ql(e.hammerOn)+Vl(e.hammerOn)+Yl(e.hammerOn)+ts(e.hammerOn),o)))}if(e.pullOff){var o=(W=["",""],W.raw=["",""],ca(W,e.pullOff.data));t.push((_=["<pull-off",">","</pull-off>"],_.raw=["<pull-off",">","</pull-off>"],da(_,ql(e.pullOff)+Vl(e.pullOff)+Yl(e.pullOff)+ts(e.pullOff),o)))}if(e.bend){var l=[];if(ha(e.bend.bendAlter)&&l.push((O=["<bend-alter>","</bend-alter>"],O.raw=["<bend-alter>","</bend-alter>"],ca(O,e.bend.bendAlter))),ha(e.bend.preBend)?l.push((U=["<pre-bend />"],U.raw=["<pre-bend />"],ca(U))):ha(e.bend.release)&&l.push((A=["<release />"],A.raw=["<release />"],ca(A))),ha(e.bend.withBar)){var o=(E=["",""],E.raw=["",""],ca(E,e.bend.withBar.data));l.push((M=["<with-bar",">","</with-bar>"],M.raw=["<with-bar",">","</with-bar>"],da(M,Yl(e.bend.withBar)+ts(e.bend.withBar),o)))}t.push((X=["<bend",">\n","\n</bend>"],X.raw=["<bend",">\\n","\\n</bend>"],da(X,Yl(e.bend)+bs(e.bend),l.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(e.tap){var o=(P=["",""],P.raw=["",""],ca(P,e.tap.data));t.push((Y=["<tap",">","</tap>"],Y.raw=["<tap",">","</tap>"],da(Y,Yl(e.tap)+ts(e.tap),o)))}if(e.heel){var r="";ha(e.heel.substitution)&&(R=[' substitution="','"'],R.raw=[' substitution="','"'],r+=fa(R,e.heel.substitution)),t.push((z=["<heel"," />"],z.raw=["<heel"," />"],da(z,r+Yl(e.heel)+ts(e.heel))))}if(e.toe){var r="";ha(e.toe.substitution)&&(I=[' substitution="','"'],I.raw=[' substitution="','"'],r+=fa(I,e.toe.substitution)),t.push((H=["<toe"," />"],H.raw=["<toe"," />"],da(H,r+Yl(e.toe)+ts(e.toe))))}if(e.fingernails&&t.push((j=["<fingernails"," />"],j.raw=["<fingernails"," />"],da(j,Yl(e.fingernails)+ts(e.fingernails)))),e.hole){var s=[];if(ha(e.hole.holeType)&&s.push((q=["<hole-type>","</hole-type>"],q.raw=["<hole-type>","</hole-type>"],ca(q,e.hole.holeType))),ha(e.hole.holeClosed)){var u="";ha(e.hole.holeClosed.location)&&(G=[' location="','"'],G.raw=[' location="','"'],u=ca(G,$u[e.hole.holeClosed.location])),s.push((V=["<hole-closed",">","</hole-closed>"],V.raw=["<hole-closed",">","</hole-closed>"],da(V,u,Zu[e.hole.holeClosed.data])))}ha(e.hole.holeShape)&&s.push((Q=["<hole-shape>","</hole-shape>"],Q.raw=["<hole-shape>","</hole-shape>"],ca(Q,e.hole.holeShape))),t.push((J=["<hole",">","\n</hole>"],J.raw=["<hole",">","\\n</hole>"],da(J,Yl(e.hole)+ts(e.hole),s.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(e.arrow){var c=[];ha(e.arrow.arrowDirection)&&c.push((K=["<arrow-direction>\n                        ","</arrow-direction>"],K.raw=["<arrow-direction>\n                        ","</arrow-direction>"],ca(K,e.arrow.arrowDirection))),ha(e.arrow.arrowStyle)&&c.push((Z=["<arrow-style>\n                        ","</arrow-style>"],Z.raw=["<arrow-style>\n                        ","</arrow-style>"],ca(Z,e.arrow.arrowStyle))),ha(e.arrow.circularArrow)&&c.push(($=["<circular-arrow>\n                        ","</circular-arrow>"],$.raw=["<circular-arrow>\n                        ","</circular-arrow>"],ca($,e.arrow.circularArrow))),t.push((ee=["<arrow",">","\n</arrow>"],ee.raw=["<arrow",">","\\n</arrow>"],da(ee,Yl(e.arrow)+ts(e.arrow),c.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}if(e.handbell){var o=(te=["",""],te.raw=["",""],ca(te,e.handbell.data));t.push((ne=["<handbell",">","</handbell>"],ne.raw=["<handbell",">","</handbell>"],da(ne,Yl(e.handbell)+ts(e.handbell),o)))}if(e.otherTechnical){var o=(ie=["",""],ie.raw=["",""],ca(ie,e.otherTechnical.data));t.push((re=["<other-technical",">","</other-technical>"],re.raw=["<other-technical",">","</other-technical>"],da(re,Yl(e.otherTechnical)+ts(e.otherTechnical),o)))}i.push((ae=["<technical>\n","\n</technical>"],ae.raw=["<technical>\\n","\\n</technical>"],da(ae,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var f,d,h,p,m,v,g,y,b,S,w,N,D,T,F,x,k,B,C,L,W,_,O,U,A,E,M,X,P,Y,R,z,I,H,j,q,G,V,Q,J,K,Z,$,ee,te,ne,ie,re,ae}),(e.articulations||[]).forEach(function(e){var t=[];if(e.accent&&t.push((r=["<accent"," />"],r.raw=["<accent"," />"],da(r,Yl(e.accent)+ts(e.accent)))),e.strongAccent&&t.push((a=["<strong-accent"," />"],a.raw=["<strong-accent"," />"],da(a,Yl(e.strongAccent)+ts(e.strongAccent)+Ds(e.strongAccent)))),e.staccato&&t.push((o=["<staccato"," />"],o.raw=["<staccato"," />"],da(o,Yl(e.staccato)+ts(e.staccato)))),e.tenuto&&t.push((l=["<tenuto"," />"],l.raw=["<tenuto"," />"],da(l,Yl(e.tenuto)+ts(e.tenuto)))),e.detachedLegato&&t.push((s=["<detached-legato"," />"],s.raw=["<detached-legato"," />"],da(s,Yl(e.detachedLegato)+ts(e.detachedLegato)))),e.staccatissimo&&t.push((u=["<staccatissimo"," />"],u.raw=["<staccatissimo"," />"],da(u,Yl(e.staccatissimo)+ts(e.staccatissimo)))),e.spiccato&&t.push((c=["<spiccato"," />"],c.raw=["<spiccato"," />"],da(c,Yl(e.spiccato)+ts(e.spiccato)))),e.scoop&&t.push((f=["<scoop"," />"],f.raw=["<scoop"," />"],da(f,$l(e.scoop)+jl(e.scoop)+Zl(e.scoop)+Yl(e.scoop)+ts(e.scoop)))),e.plop&&t.push((d=["<plop"," />"],d.raw=["<plop"," />"],da(d,$l(e.plop)+jl(e.plop)+Zl(e.plop)+Yl(e.plop)+ts(e.plop)))),e.doit&&t.push((h=["<doit"," />"],h.raw=["<doit"," />"],da(h,$l(e.doit)+jl(e.doit)+Zl(e.doit)+Yl(e.doit)+ts(e.doit)))),e.falloff&&t.push((p=["<falloff"," />"],p.raw=["<falloff"," />"],da(p,$l(e.falloff)+jl(e.falloff)+Zl(e.falloff)+Yl(e.falloff)+ts(e.falloff)))),e.breathMark){var n=(m=["",""],m.raw=["",""],ca(m,Ku[e.breathMark.type]));t.push((v=["<breath-mark",">","</breath-mark>"],v.raw=["<breath-mark",">","</breath-mark>"],da(v,Yl(e.breathMark)+ts(e.breathMark),n)))}e.caesura&&t.push((g=["<caesura"," />"],g.raw=["<caesura"," />"],da(g,Yl(e.caesura)+ts(e.caesura)))),e.stress&&t.push((y=["<stress"," />"],y.raw=["<stress"," />"],da(y,Yl(e.stress)+ts(e.stress)))),e.unstress&&t.push((b=["<unstress"," />"],b.raw=["<unstress"," />"],da(b,Yl(e.unstress)+ts(e.unstress)))),(e.otherArticulations||[]).forEach(function(e){var n=(i=["",""],i.raw=["",""],ca(i,e.data));t.push((r=["<other-articulation",">","</other-articulation>"],r.raw=["<other-articulation",">","</other-articulation>"],da(r,Yl(e)+ts(e),n)));var i,r}),i.push((S=["<articulations>\n","\n</articulations>"],S.raw=["<articulations>\\n","\\n</articulations>"],da(S,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a,o,l,s,u,c,f,d,h,p,m,v,g,y,b,S}),(e.dynamics||[]).forEach(function(e){i.push(qo(e))}),(e.fermatas||[]).forEach(function(e){i.push(vl(e))}),(e.arpeggiates||[]).forEach(function(e){i.push((t=["<arpeggiate"," />"],t.raw=["<arpeggiate"," />"],da(t,Vl(e)+Ds(e)+es(e)+ts(e)+Fs(e))));var t}),(e.nonArpeggiates||[]).forEach(function(e){i.push((t=["<non-arpeggiate"," />"],t.raw=["<non-arpeggiate"," />"],da(t,Ts(e)+Vl(e)+es(e)+ts(e)+Fs(e))));var t}),(e.accidentalMarks||[]).forEach(function(e){var t=(n=["",""],n.raw=["",""],ca(n,e.mark));i.push((r=["<accidental-mark",">","</accidental-mark>"],r.raw=["<accidental-mark",">","</accidental-mark>"],da(r,Yl(e)+ts(e),t)));var n,r}),(e.otherNotations||[]).forEach(function(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));i.push((r=["<other-notation",">","</other-notation>"],r.raw=["<other-notation",">","</other-notation>"],da(r,Kl(e)+Vl(e)+as(e)+Yl(e)+ts(e),t)));var n,r}),n.push((a=["<notations",">\n","\n</notations>"],a.raw=["<notations",">\\n","\\n</notations>"],da(a,t,i.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a}),(e.lyrics||[]).forEach(function(e){var t=""+Vl(e)+Jl(e)+ss(e)+es(e)+ts(e)+Fs(e)+as(e),i=[];(e.lyricParts||[]).forEach(function(e){switch(e._class){case"Syllabic":i.push((r=["<syllabic>","</syllabic>"],r.raw=["<syllabic>","</syllabic>"],da(r,Ju[e.data])));break;case"Text":var t=(a=["",""],a.raw=["",""],ca(a,e.data));i.push((o=["<text",">","</text>"],
o.raw=["<text",">","</text>"],da(o,rs(e)+Fs(e)+ds(e)+hs(e)+ps(e)+vs(e),t)));break;case"Elision":var n=(l=["",""],l.raw=["",""],ca(l,e.data));i.push((s=["<elision",">","</elision>"],s.raw=["<elision",">","</elision>"],da(s,Ql(e)+Yl(e),n)));break;case"Extend":i.push((u=["<extend"," />"],u.raw=["<extend"," />"],da(u,Ql(e)+Yl(e))));break;case"Laughing":i.push((c=["<laughing />"],c.raw=["<laughing />"],ca(c)));break;case"Humming":i.push((f=["<humming />"],f.raw=["<humming />"],ca(f)));break;case"EndLine":i.push((d=["<end-line />"],d.raw=["<end-line />"],ca(d)));break;case"EndParagraph":i.push((h=["<end-paragraph />"],h.raw=["<end-paragraph />"],ca(h)));break;case"Footnote":case"Level":case"Editorial":i=i.concat(Il(e))}var r,a,o,l,s,u,c,f,d,h}),n.push((r=["<lyric",">\n","\n</lyric>"],r.raw=["<lyric",">\\n","\\n</lyric>"],da(r,t,i.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r}),ha(e.play)){var h="",p=[];if(ha(e.play.ipa)&&p.push((te=["<ipa>","</ipa>"],te.raw=["<ipa>","</ipa>"],ca(te,e.play.ipa))),ha(e.play.mute)&&p.push((ne=["<mute>","</mute>"],ne.raw=["<mute>","</mute>"],ca(ne,e.play.mute))),ha(e.play.semiPitched)&&p.push((ie=["<semi-pitched>","</semi-pitched>"],ie.raw=["<semi-pitched>","</semi-pitched>"],ca(ie,e.play.semiPitched))),ha(e.play.otherPlay)){var m=(re=["",""],re.raw=["",""],ca(re,e.play.otherPlay.data)),v="";ha(e.play.otherPlay.type)&&(ae=[' type="','"'],ae.raw=[' type="','"'],v+=ca(ae,e.play.otherPlay.type)),p.push((oe=["<other-play",">","</other-play>"],oe.raw=["<other-play",">","</other-play>"],da(oe,v,m)))}n.push((le=["<play",">\n","\n</play>"],le.raw=["<play",">\\n","\\n</play>"],da(le,h,p.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))))}return se=["<note",">\n","\n</note>"],se.raw=["<note",">\\n","\\n</note>"],da(se,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var g,y,b,S,w,N,D,T,F,x,k,B,C,L,W,_,O,U,A,E,M,X,P,Y,R,z,I,H,j,q,G,V,Q,J,K,Z,$,ee,te,ne,ie,re,ae,oe,le,se}function Po(e){var t=""+Yl(e)+Rl(e);ha(e.parentheses)&&(i=[' parentheses="','"'],i.raw=[' parentheses="','"'],t+=fa(i,e.parentheses));var n=[];return n=n.concat(Oo(e)),(e.figures||[]).forEach(function(e){var t=[];if(ha(e.prefix)){var i=(r=["",""],r.raw=["",""],ca(r,e.prefix.data));t.push((a=["<prefix",">","</prefix>"],a.raw=["<prefix",">","</prefix>"],da(a,Yl(e.prefix),i)))}if(ha(e.figureNumber)){var i=(o=["",""],o.raw=["",""],ca(o,e.figureNumber.data));t.push((l=["<figure-number",">","</figure-number>"],l.raw=["<figure-number",">","</figure-number>"],da(l,Yl(e.figureNumber),i)))}if(ha(e.suffix)){var i=(s=["",""],s.raw=["",""],ca(s,e.suffix.data));t.push((u=["<suffix",">","</suffix>"],u.raw=["<suffix",">","</suffix>"],da(u,Yl(e.suffix),i)))}n.push((c=["<figure>\n","\n</figure>"],c.raw=["<figure>\\n","\\n</figure>"],da(c,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a,o,l,s,u,c}),ha(e.duration)&&n.push((r=["<duration>","</duration>"],r.raw=["<duration>","</duration>"],ca(r,e.duration))),n=n.concat(Il(e)),a=["<figured-bass",">\n","\n</figured-bass>"],a.raw=["<figured-bass",">\\n","\\n</figured-bass>"],da(a,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a}function Yo(e){var t=[],n="";return t=t.concat(Oo(e)),ha(e.barStyle)&&t.push(fl(e.barStyle)),t=t.concat(Il(e)),ha(e.wavyLine)&&t.push(cl(e.wavyLine)),ha(e.segno)&&t.push(pl(e.segno)),ha(e.coda)&&t.push(ml(e.coda)),(e.fermatas||[]).forEach(function(e){t.push(vl(e))}),ha(e.ending)&&t.push(dl(e.ending)),ha(e.repeat)&&t.push(hl(e.repeat)),ha(e.location)&&(i=[' location="','"'],i.raw=[' location="','"'],n+=ca(i,ac[e.location])),ha(e.segnoAttrib)&&(r=[' segno="','"'],r.raw=[' segno="','"'],n+=ca(r,e.segnoAttrib)),ha(e.codaAttrib)&&(a=[' coda="','"'],a.raw=[' coda="','"'],n+=ca(a,e.codaAttrib)),ha(e.divisions)&&(o=[' divisions="','"'],o.raw=[' divisions="','"'],n+=ca(o,e.divisions)),l=["<barline",">\n","\n</barline>"],l.raw=["<barline",">\\n","\\n</barline>"],da(l,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l}function Ro(e){var t=[];return(e.rehearsals||[]).forEach(function(e){t.push(Io(e))}),(e.segnos||[]).forEach(function(e){t.push(pl(e))}),(e.words||[]).forEach(function(e){t.push(Ho(e))}),(e.codas||[]).forEach(function(e){t.push(ml(e))}),ha(e.wedge)&&t.push(jo(e.wedge)),ha(e.dynamics)&&t.push(qo(e.dynamics)),ha(e.dashes)&&t.push(Go(e.dashes)),ha(e.bracket)&&t.push(Vo(e.bracket)),ha(e.pedal)&&t.push(Qo(e.pedal)),ha(e.metronome)&&t.push(Jo(e.metronome)),ha(e.octaveShift)&&t.push(Zo(e.octaveShift)),ha(e.harpPedals)&&t.push($o(e.harpPedals)),ha(e.damp)&&t.push(el(e.damp)),ha(e.dampAll)&&t.push(tl(e.dampAll)),ha(e.eyeglasses)&&t.push(nl(e.eyeglasses)),ha(e.stringMute)&&t.push(il(e.stringMute)),ha(e.scordatura)&&t.push(rl(e.scordatura)),ha(e.image)&&t.push(al(e.image)),ha(e.principalVoice)&&t.push(ol(e.principalVoice)),ha(e.accordionRegistration)&&t.push(ll(e.accordionRegistration)),(e.percussions||[]).forEach(function(e){t.push(sl(e))}),ha(e.otherDirection)&&t.push(ul(e.otherDirection)),n=["<direction-type>\n","\n</direction-type>"],n.raw=["<direction-type>\\n","\\n</direction-type>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function zo(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data||"")),n=(r=[' sound="','"'],r.raw=[' sound="','"'],fa(r,e.sound));return a=["<offset",">","</offset>"],a.raw=["<offset",">","</offset>"],da(a,n,t);var i,r,a}function Io(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));return i=["<rehearsal",">","</rehearsal>"],i.raw=["<rehearsal",">","</rehearsal>"],da(i,ls(e),t);var n,i}function Ho(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));return i=["<words",">","</words>"],i.raw=["<words",">","</words>"],da(i,ls(e),t);var n,i}function jo(e){var t=""+(n=[' type="','"'],n.raw=[' type="','"'],ca(n,oc[e.type]))+Vl(e);return ha(e.spread)&&(i=[' spread="','"'],i.raw=[' spread="','"'],t+=ca(i,e.spread)),ha(e.niente)&&(r=[' niente="','"'],r.raw=[' niente="','"'],t+=fa(r,e.niente)),t+=jl(e)+Zl(e)+es(e)+Fs(e),a=["<wedge"," />"],a.raw=["<wedge"," />"],da(a,t);var n,i,r,a}function qo(e){var t=[];return Object.keys(e||{}).forEach(function(n){var i=e[n];i&&["p","pp","ppp","pppp","ppppp","pppppp","f","ff","fff","ffff","fffff","ffffff","mp","mf","sf","sfp","sfpp","fp","rf","rfz","sfz","sffz","fz"].indexOf(n)!==-1&&t.push((r=["<"," />"],r.raw=["<"," />"],da(r,n)));var r}),e.otherDynamics&&t.push((n=["<other-dynamics>","</other-dynamics>"],n.raw=["<other-dynamics>","</other-dynamics>"],ca(n,e.otherDynamics))),i=["<dynamics",">\n","\n</dynamics>"],i.raw=["<dynamics",">\\n","\\n</dynamics>"],da(i,fs(e)+ts(e)+ds(e)+gs(e),t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i}function Go(e){var t=""+Ql(e)+Vl(e)+Zl(e)+es(e)+Fs(e);return n=["<dashes"," />"],n.raw=["<dashes"," />"],da(n,t);var n}function Vo(e){var t=""+Ql(e)+Vl(e);return n=[' line-end="','"'],n.raw=[' line-end="','"'],t+=ca(n,lc[e.lineEnd]),ha(e.endLength)&&(i=[' end-length="','"'],i.raw=[' end-length="','"'],t+=ca(i,e.endLength)),t+=jl(e)+Zl(e)+es(e)+Fs(e),r=["<bracket"," />"],r.raw=["<bracket"," />"],da(r,t);var n,i,r}function Qo(e){var t=""+(n=[' type="','"'],n.raw=[' type="','"'],ca(n,sc[e.type]));return ha(e.line)&&(i=[' line="','"'],i.raw=[' line="','"'],t+=fa(i,e.line)),ha(e.sign)&&(r=[' sign="','"'],r.raw=[' sign="','"'],t+=fa(r,e.sign)),t+=fs(e),a=["<pedal"," />"],a.raw=["<pedal"," />"],da(a,t);var n,i,r,a}function Jo(e){var t=[],n=""+fs(e)+ss(e);if(ha(e.parentheses)&&(r=[' parentheses="','"'],r.raw=[' parentheses="','"'],n+=fa(r,e.parentheses)),ha(e.beatUnit)&&t.push((a=["<beat-unit>","</beat-unit>"],a.raw=["<beat-unit>","</beat-unit>"],ca(a,e.beatUnit))),(e.beatUnitDots||[]).forEach(function(){t.push((e=["<beat-unit-dot />"],e.raw=["<beat-unit-dot />"],ca(e)));var e}),ha(e.perMinute)){var i=(o=["",""],o.raw=["",""],ca(o,e.perMinute.data));t.push((l=["<per-minute",">","</per-minute>"],l.raw=["<per-minute",">","</per-minute>"],da(l,rs(e.perMinute),i)))}else ha(e.beatUnitChange)&&t.push((s=["<beat-unit>","</beat-unit>"],s.raw=["<beat-unit>","</beat-unit>"],ca(s,e.beatUnitChange))),(e.beatUnitDotsChange||[]).forEach(function(){t.push((e=["<beat-unit-dot />"],e.raw=["<beat-unit-dot />"],ca(e)));var e});return(e.metronomeNotes||[]).forEach(function(e){var n=[];ha(e.metronomeType)&&n.push((i=["<metronome-type>","</metronome-type>"],i.raw=["<metronome-type>","</metronome-type>"],ca(i,e.metronomeType))),(e.metronomeDots||[]).forEach(function(){n.push((e=["<metronome-dot />"],e.raw=["<metronome-dot />"],ca(e)));var e}),(e.metronomeBeams||[]).forEach(function(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data));n.push((r=["<metronome-beam",">","</metronome-beam>"],r.raw=["<metronome-beam",">","</metronome-beam>"],da(r,Vl(e),t)));var i,r}),ha(e.metronomeTuplet)&&n.push(Ko(e.metronomeTuplet)),t.push((r=["<metronome-note>\n","\n</metronome-note>"],r.raw=["<metronome-note>\\n","\\n</metronome-note>"],da(r,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var i,r}),ha(e.metronomeRelation)&&t.push((u=["<metronome-relation>","</metronome-relation>"],u.raw=["<metronome-relation>","</metronome-relation>"],ca(u,e.metronomeRelation))),c=["<metronome",">\n","\n</metronome>"],c.raw=["<metronome",">\\n","\\n</metronome>"],da(c,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u,c}function Ko(e){var t=[],n=""+ql(e);return ha(e.bracket)&&(i=[' bracket="','"'],i.raw=[' bracket="','"'],n+=fa(i,e.bracket)),ha(e.showNumber)&&(r=[' show-number="','"'],r.raw=[' show-number="','"'],n+=ca(r,ec[e.showNumber])),e.actualNotes&&t.push((a=["<actual-notes>","</actual-notes>"],a.raw=["<actual-notes>","</actual-notes>"],ca(a,e.actualNotes))),e.normalNotes&&t.push((o=["<normal-notes>","</normal-notes>"],o.raw=["<normal-notes>","</normal-notes>"],ca(o,e.normalNotes))),e.normalType&&t.push((l=["<normal-type>","</normal-type>"],l.raw=["<normal-type>","</normal-type>"],ca(l,e.normalType))),(e.normalDots||[]).forEach(function(){t.push((e=["<normal-dot />"],e.raw=["<normal-dot />"],ca(e)));var e}),s=["<metronome-tuplet",">\n","\n</metronome-tuplet>"],s.raw=["<metronome-tuplet",">\\n","\\n</metronome-tuplet>"],da(s,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l,s}function Zo(e){var t=""+(n=[' type="','"'],n.raw=[' type="','"'],ca(n,uc[e.type]))+Vl(e);return ha(e.size)&&(i=[' size="','"'],i.raw=[' size="','"'],t+=ca(i,e.size)),t+=Zl(e)+Yl(e),r=["<octave-shift"," />"],r.raw=["<octave-shift"," />"],da(r,t);var n,i,r}function $o(e){var t=[];(e.pedalTunings||[]).forEach(function(e){var n=[];e.pedalStep&&n.push((i=["<pedal-step>","</pedal-step>"],i.raw=["<pedal-step>","</pedal-step>"],ca(i,e.pedalStep))),e.pedalAlter&&n.push((r=["<pedal-alter>","</pedal-alter>"],r.raw=["<pedal-alter>","</pedal-alter>"],ca(r,e.pedalAlter))),t.push((a=["<pedal-tuning>\n","\n</pedal-tuning>"],a.raw=["<pedal-tuning>\\n","\\n</pedal-tuning>"],da(a,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var i,r,a});var n=fs(e);return i=["<harp-pedals",">\n","\n</harp-pedals>"],i.raw=["<harp-pedals",">\\n","\\n</harp-pedals>"],da(i,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i}function el(e){return t=["<damp"," />"],t.raw=["<damp"," />"],da(t,fs(e));var t}function tl(e){return t=["<damp-all"," />"],t.raw=["<damp-all"," />"],da(t,fs(e));var t}function nl(e){return t=["<eyeglasses"," />"],t.raw=["<eyeglasses"," />"],da(t,fs(e));var t}function il(e){var t=(n=[' type="','"'],n.raw=[' type="','"'],ca(n,e.type)+fs(e));return i=["<string-mute"," />"],i.raw=["<string-mute"," />"],da(i,t);var n,i}function rl(e){var t=[];return(e.accords||[]).forEach(function(e){var n=_l(e),i=(r=[' string="','"'],r.raw=[' string="','"'],ca(r,e.string));t.push((a=["<accord",">\n","\n</accord>"],a.raw=["<accord",">\\n","\\n</accord>"],da(a,i,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"))));var r,a}),n=["<scordatura>\n","\n</scordatura>"],n.raw=["<scordatura>\\n","\\n</scordatura>"],da(n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n}function al(e){var t=""+(n=[' source="','"'],n.raw=[' source="','"'],ca(n,e.source))+(i=[' type="','"'],i.raw=[' type="','"'],ca(i,e.type))+es(e)+us(e)+$a(e);return r=["<image"," />"],r.raw=["<image"," />"],da(r,t);var n,i,r}function ol(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data)),n=ql(e)+(r=[' symbol="','"'],r.raw=[' symbol="','"'],ca(r,cc[e.symbol]))+fs(e);return a=["<principal-voice","","</principal-voice>"],a.raw=["<principal-voice","","</principal-voice>"],da(a,n,t);var i,r,a}function ll(e){var t=[],n=fs(e);return ha(e.accordionHigh)&&t.push((i=["<accordion-high />"],i.raw=["<accordion-high />"],ca(i))),ha(e.accordionMiddle)&&t.push((r=["<accordion-middle>","</accordion-middle>"],r.raw=["<accordion-middle>","</accordion-middle>"],ca(r,e.accordionMiddle||""))),ha(e.accordionLow)&&t.push((a=["<accordion-low />"],a.raw=["<accordion-low />"],ca(a))),o=["<accordion-registration",">\n","\n</accordion-registration>"],o.raw=["<accordion-registration",">\\n","\\n</accordion-registration>"],da(o,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o}function sl(e){var t=[];if(ha(e.glass)&&t.push((r=["<glass>","</glass>"],r.raw=["<glass>","</glass>"],ca(r,e.glass))),ha(e.metal)&&t.push((a=["<metal>","</metal>"],a.raw=["<metal>","</metal>"],ca(a,e.metal))),ha(e.wood)&&t.push((o=["<wood>","</wood>"],o.raw=["<wood>","</wood>"],ca(o,e.wood))),ha(e.pitched)&&t.push((l=["<pitched>","</pitched>"],l.raw=["<pitched>","</pitched>"],ca(l,e.pitched))),ha(e.membrane)&&t.push((s=["<membrane>","</membrane>"],s.raw=["<membrane>","</membrane>"],ca(s,e.membrane))),ha(e.effect)&&t.push((u=["<effect>","</effect>"],u.raw=["<effect>","</effect>"],ca(u,e.effect))),ha(e.timpani)&&t.push((c=["<timpani />"],c.raw=["<timpani />"],ca(c))),ha(e.beater)){var n=(f=["",""],f.raw=["",""],ca(f,e.beater.data||"")),i="";ha(e.beater.tip)&&(d=[' tip="','"'],d.raw=[' tip="','"'],i+=ca(d,fc[e.beater.tip])),t.push((h=["<beater",">","</beater>"],h.raw=["<beater",">","</beater>"],da(h,i,n)))}if(ha(e.stick)){var n="",i="";ha(e.stick.tip)&&(p=[' tip="','"'],p.raw=[' tip="','"'],i+=ca(p,fc[e.stick.tip])),ha(e.stick.stickType)&&(m=["  <stick-type>","</stick-type>\n"],m.raw=["  <stick-type>","</stick-type>\\n"],n+=ca(m,e.stick.stickType)),ha(e.stick.stickMaterial)&&(v=["  <stick-material>","</stick-material>\n"],v.raw=["  <stick-material>","</stick-material>\\n"],n+=ca(v,e.stick.stickMaterial)),t.push((g=["<stick",">","</stick>"],g.raw=["<stick",">","</stick>"],da(g,i,n)))}return ha(e.stickLocation)&&t.push((y=["<stick-location>","</stick-location>"],y.raw=["<stick-location>","</stick-location>"],ca(y,e.stickLocation))),ha(e.otherPercussion)&&t.push((b=["<other-percussion>","</other-percussion>"],b.raw=["<other-percussion>","</other-percussion>"],ca(b,e.otherPercussion))),S=["<percussion>\n","\n</percussion>"],S.raw=["<percussion>\\n","\\n</percussion>"],da(S,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u,c,f,d,h,p,m,v,g,y,b,S}function ul(e){var t=(n=["",""],n.raw=["",""],ca(n,e.data));return i=["<other-direction",">","</other-direction>"],i.raw=["<other-direction",">","</other-direction>"],da(i,as(e)+fs(e),t);var n,i}function cl(e){var t=""+Ql(e)+Vl(e)+es(e)+ts(e)+Fs(e)+Ss(e);return n=["<wavy-line"," />"],n.raw=["<wavy-line"," />"],da(n,t);var n}function fl(e){var t=""+Fs(e),n=(i=["",""],i.raw=["",""],ca(i,dc[e.data]||""));return r=["<bar-style",">","</bar-style>"],r.raw=["<bar-style",">","</bar-style>"],da(r,t,n);var i,r}function dl(e){var t=""+Vl(e)+Gl(e)+as(e)+Yl(e);ha(e.endLength)&&(i=[' end-length="','"'],i.raw=[' end-length="','"'],t+=ca(i,e.endLength)),ha(e.textX)&&(r=[' text-x="','"'],r.raw=[' text-x="','"'],t+=ca(r,e.textX)),ha(e.textY)&&(a=[' text-y="','"'],a.raw=[' text-y="','"'],t+=ca(a,e.textY));var n=(o=["",""],o.raw=["",""],ca(o,e.ending));return l=["<ending",">","</ending>"],l.raw=["<ending",">","</ending>"],da(l,t,n);var i,r,a,o,l}function hl(e){var t=""+(n=[' direction="','"'],n.raw=[' direction="','"'],ca(n,pc[e.direction]));return ha(e.times)&&(i=[' times="','"'],i.raw=[' times="','"'],t+=ca(i,e.times)),ha(e.winged)&&(r=[' winged="','"'],r.raw=[' winged="','"'],t+=ca(r,mc[e.winged])),a=["<repeat"," />"],a.raw=["<repeat"," />"],da(a,t);var n,i,r,a}function pl(e){var t=""+fs(e);return n=["<segno"," />"],n.raw=["<segno"," />"],da(n,t);var n}function ml(e){var t=""+fs(e);return n=["<coda"," />"],n.raw=["<coda"," />"],da(n,t);var n}function vl(e){var t=ha(e.shape)?gc[e.shape]:"",n=ha(e.type)?(i=[' type="','"'],i.raw=[' type="','"'],ca(i,vc[e.type])):"";return n+=Yl(e),r=["<fermata",">","</fermata>"],r.raw=["<fermata",">","</fermata>"],da(r,n,t);var i,r}function gl(e){var t=[];if(ha(e.ipa)&&t.push((r=["<ipa>","</ipa>"],r.raw=["<ipa>","</ipa>"],ca(r,e.ipa))),ha(e.mute)&&t.push((a=["<mute>","</mute>"],a.raw=["<mute>","</mute>"],ca(a,e.mute))),ha(e.semiPitched)&&t.push((o=["<semi-pitched>","</semi-pitched>"],o.raw=["<semi-pitched>","</semi-pitched>"],ca(o,e.semiPitched))),ha(e.otherPlay)){var n=(l=["",""],l.raw=["",""],ca(l,e.otherPlay.data)),i="";ha(e.otherPlay.type)&&(s=[' type="','"'],s.raw=[' type="','"'],i+=ca(s,e.otherPlay.type)),t.push((u=["<other-play",">","</other-play>"],u.raw=["<other-play",">","</other-play>"],da(u,i,n)))}return c=["<play>\n","\n</play>"],c.raw=["<play>\\n","\\n</play>"],da(c,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var r,a,o,l,s,u,c}function yl(e){var t=[];ha(e.staffDistance)&&t.push((i=["<staff-distance>","</staff-distance>"],i.raw=["<staff-distance>","</staff-distance>"],ca(i,e.staffDistance)));var n=Vl(e);return r=["<staff-layout",">\n","\n</staff-layout>"],r.raw=["<staff-layout",">\\n","\\n</staff-layout>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function bl(e){var t=[];return ha(e.measureDistance)&&t.push((n=["<measure-distance>","</measure-distance>"],n.raw=["<measure-distance>","</measure-distance>"],ca(n,e.measureDistance))),i=["<measure-layout>\n","\n</measure-layout>"],i.raw=["<measure-layout>\\n","\\n</measure-layout>"],da(i,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var n,i}function Sl(e){var t=fs(e),n=(i=["",""],i.raw=["",""],ca(i,e.data));return r=["<measure-numbering",">","</measure-numbering>"],r.raw=["<measure-numbering",">","</measure-numbering>"],da(r,t,n);var i,r}function wl(e){var t=[],n=""+Vl(e)+Yl(e)+as(e);return ha(e.cancel)&&t.push(Nl(e.cancel)),ha(e.fifths)&&t.push((i=["<fifths>","</fifths>"],i.raw=["<fifths>","</fifths>"],ca(i,e.fifths))),ha(e.mode)&&t.push((r=["<mode>","</mode>"],r.raw=["<mode>","</mode>"],ca(r,e.mode))),(e.keySteps||[]).forEach(function(n,i){t.push((r=["<key-step>","</key-step>"],r.raw=["<key-step>","</key-step>"],ca(r,n))),t.push((a=["<key-alter>","</key-alter>"],a.raw=["<key-alter>","</key-alter>"],ca(a,e.keyAlters[i]))),e.keyAccidentals&&e.keyAccidentals[i]&&t.push((o=["<key-accidental>","</key-accidental>"],o.raw=["<key-accidental>","</key-accidental>"],ca(o,e.keyAccidentals[i])));var r,a,o}),(e.keyOctaves||[]).forEach(function(e){t.push(Dl(e))}),a=["<key",">\n","\n</key>"],a.raw=["<key",">\\n","\\n</key>"],da(a,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a}function Nl(e){var t="",n=(i=["",""],i.raw=["",""],ca(i,e.fifths));return ha(e.location)&&(r=[' location="','"'],r.raw=[' location="','"'],t+=ca(r,yc[e.location])),a=["<cancel",">","</cancel>"],a.raw=["<cancel",">","</cancel>"],da(a,t,n);var i,r,a}function Dl(e){var t=Vl(e),n=(i=["",""],i.raw=["",""],ca(i,e.octave));return ha(e.cancel)&&(r=[' cancel="','"'],r.raw=[' cancel="','"'],t+=fa(r,e.cancel)),a=["<key-octave",">","</key-octave>"],a.raw=["<key-octave",">","</key-octave>"],da(a,t,n);var i,r,a}function Tl(e){var t=""+Vl(e)+Fl(e)+xl(e)+fs(e)+as(e),n=[];return null!=e.senzaMisura?n.push((i=["<senza-misura />"],i.raw=["<senza-misura />"],ca(i))):((e.beats||[]).forEach(function(t,i){n.push((r=["<beats>","</beats>"],r.raw=["<beats>","</beats>"],ca(r,t))),n.push((a=["<beat-type>","</beat-type>"],a.raw=["<beat-type>","</beat-type>"],ca(a,e.beatTypes[i])));var r,a}),ha(e.interchangeable)&&n.push(kl(e.interchangeable))),r=["<time",">\n","\n</time>"],r.raw=["<time",">\\n","\\n</time>"],da(r,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function Fl(e){return ha(e.symbol)?(t=[' symbol="','"'],t.raw=[' symbol="','"'],ca(t,bc[e.symbol])):"";var t}function xl(e){return ha(e.separator)?(t=[' separator="','"'],t.raw=[' separator="','"'],ca(t,Sc[e.separator])):"";var t}function kl(e){var t=""+Fl(e)+xl(e),n=[];return(e.beats||[]).forEach(function(t,i){n.push((r=["<beats>","</beats>"],r.raw=["<beats>","</beats>"],ca(r,t))),n.push((a=["<beat-type>","</beat-type>"],a.raw=["<beat-type>","</beat-type>"],ca(a,e.beatTypes[i])));var r,a}),ha(e.timeRelation)&&n.push((i=["<time-relation>","</time-relation>"],i.raw=["<time-relation>","</time-relation>"],ca(i,e.timeRelation))),r=["<interchangeable",">\n","\n</interchangeable>"],r.raw=["<interchangeable",">\\n","\\n</interchangeable>"],da(r,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function Bl(e){var t="";ha(e.type)&&(i=["",""],i.raw=["",""],t=ca(i,wc[e.type]));var n="";return ha(e.topStaff)&&(r=[' top-staff="','"'],r.raw=[' top-staff="','"'],n+=ca(r,e.topStaff)),ha(e.bottomStaff)&&(a=[' bottom-staff="','"'],a.raw=[' bottom-staff="','"'],n+=ca(a,e.bottomStaff)),n+=es(e)+Fs(e),o=["<part-symbol",">","</part-symbol>"],o.raw=["<part-symbol",">","</part-symbol>"],da(o,n,t);var i,r,a,o}function Cl(e){var t=""+Vl(e),n=[];return ha(e.additional)&&(i=[' additional="','"'],i.raw=[' additional="','"'],t+=fa(i,e.additional)),e.size>=As.Unspecified&&(r=[' size="','"'],r.raw=[' size="','"'],t+=ca(r,Nc[e.size])),ha(e.afterBarline)&&(a=[' after-barline="','"'],a.raw=[' after-barline="','"'],t+=fa(a,e.afterBarline)),t+=Yl(e)+as(e),ha(e.sign)&&n.push((o=["<sign>","</sign>"],o.raw=["<sign>","</sign>"],ca(o,e.sign))),ha(e.line)&&n.push((l=["<line>","</line>"],l.raw=["<line>","</line>"],ca(l,e.line))),ha(e.clefOctaveChange)&&n.push((s=["<clef-octave-change>","</clef-octave-change>"],s.raw=["<clef-octave-change>","</clef-octave-change>"],ca(s,e.clefOctaveChange))),u=["<clef",">\n","\n</clef>"],u.raw=["<clef",">\\n","\\n</clef>"],da(u,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l,s,u}function Ll(e){var t="",n=[];return t+=Vl(e),t+=as(e),t+=os(e),ha(e.staffType)&&n.push((i=["<staff-type>","</staff-type>"],i.raw=["<staff-type>","</staff-type>"],ca(i,e.staffType))),ha(e.staffLines)&&n.push((r=["<staff-lines>","</staff-lines>"],r.raw=["<staff-lines>","</staff-lines>"],ca(r,e.staffLines))),(e.staffTunings||[]).forEach(function(e){n.push(Wl(e))}),ha(e.capo)&&n.push((a=["<capo>","</capo>"],a.raw=["<capo>","</capo>"],ca(a,e.capo))),ha(e.staffSize)&&n.push((o=["<staff-size>","</staff-size>"],o.raw=["<staff-size>","</staff-size>"],ca(o,e.staffSize))),l=["<staff-details",">\n","\n</staff-details>"],l.raw=["<staff-details",">\\n","\\n</staff-details>"],da(l,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l}function Wl(e){var t=[],n="";return ha(e.line)&&(i=[' line="','"'],i.raw=[' line="','"'],n+=ca(i,e.line)),t=t.concat(_l(e)),r=["<staff-tuning",">\n","\n</staff-tuning>"],r.raw=["<staff-tuning",">\\n","\\n</staff-tuning>"],da(r,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r}function _l(e){var t=[];return ha(e.tuningStep)&&t.push((n=["<tuning-step>","</tuning-step>"],n.raw=["<tuning-step>","</tuning-step>"],ca(n,e.tuningStep))),ha(e.tuningAlter)&&t.push((i=["<tuning-alter>","</tuning-alter>"],i.raw=["<tuning-alter>","</tuning-alter>"],ca(i,e.tuningAlter))),ha(e.tuningOctave)&&t.push((r=["<tuning-octave>","</tuning-octave>"],r.raw=["<tuning-octave>","</tuning-octave>"],ca(r,e.tuningOctave))),t;var n,i,r}function Ol(e){var t=[],n=Vl(e);return ha(e.diatonic)&&t.push((i=["<diatonic>","</diatonic>"],i.raw=["<diatonic>","</diatonic>"],ca(i,e.diatonic))),ha(e.chromatic)&&t.push((r=["<chromatic>","</chromatic>"],r.raw=["<chromatic>","</chromatic>"],ca(r,e.chromatic))),ha(e.octaveChange)&&t.push((a=["<octave-change>","</octave-change>"],a.raw=["<octave-change>","</octave-change>"],ca(a,e.octaveChange))),ha(e["double"])&&t.push((o=["<double />"],o.raw=["<double />"],ca(o))),l=["<transpose",">\n","\n</transpose>"],l.raw=["<transpose",">\\n","\\n</transpose>"],da(l,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o,l}function Ul(e){var t=(i=["",""],i.raw=["",""],ca(i,e.data)),n=Yl(e);return r=["<directive",">","</directive>"],r.raw=["<directive",">","</directive>"],da(r,n,t);var i,r}function Al(e){var t=[],n=""+Vl(e)+rs(e)+Fs(e);return ha(e.multipleRest)&&t.push(El(e.multipleRest)),ha(e.measureRepeat)&&t.push(Ml(e.measureRepeat)),ha(e.beatRepeat)&&t.push(Xl(e.beatRepeat)),ha(e.slash)&&t.push(Pl(e.slash)),i=["<measure-style",">\n","\n</measure-style>"],i.raw=["<measure-style",">\\n","\\n</measure-style>"],da(i,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i}function El(e){var t="",n=(i=["",""],i.raw=["",""],ca(i,e.count));return ha(e.useSymbols)&&(r=[' use-symbols="','"'],r.raw=[' use-symbols="','"'],t+=fa(r,e.useSymbols)),a=["<multiple-rest",">","</multiple-rest>"],a.raw=["<multiple-rest",">","</multiple-rest>"],da(a,t,n);var i,r,a}function Ml(e){var t="",n=(i=["",""],i.raw=["",""],ca(i,e.data||""));return t+=ql(e),r=["<measure-repeat",">","</measure-repeat>"],r.raw=["<measure-repeat",">","</measure-repeat>"],da(r,t,n);var i,r}function Xl(e){var t=[],n=""+ql(e);return ha(e.useDots)&&(i=[' use-dots="','"'],i.raw=[' use-dots="','"'],n+=fa(i,e.useDots)),ha(e.slashType)&&t.push((r=["<slash-type>","</slash-type>"],r.raw=["<slash-type>","</slash-type>"],ca(r,e.slashType))),(e.slashDots||[]).forEach(function(e){t.push((n=["<slash-dot />"],n.raw=["<slash-dot />"],ca(n)));var n}),a=["<beat-repeat",">\n","\n</beat-repeat>"],a.raw=["<beat-repeat",">\\n","\\n</beat-repeat>"],da(a,n,t.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a}function Pl(e){var t=ql(e);ha(e.useDots)&&(i=[' use-dots="','"'],i.raw=[' use-dots="','"'],t+=fa(i,e.useDots)),ha(e.useStems)&&(r=[' use-stems="','"'],r.raw=[' use-stems="','"'],t+=fa(r,e.useStems));var n=[];return ha(e.slashType)&&n.push((a=["<slash-type>","</slash-type>"],a.raw=["<slash-type>","</slash-type>"],ca(a,e.slashType))),(e.slashDots||[]).forEach(function(e){n.push((t=["<slash-dot />"],t.raw=["<slash-dot />"],ca(t)));var t}),o=["<slash",">\n","\n</slash>"],o.raw=["<slash",">\\n","\\n</slash>"],da(o,t,n.join("\n").split("\n").map(function(e){return"  "+e}).join("\n"));var i,r,a,o}function Yl(e){return es(e)+rs(e)+Fs(e)}function Rl(e){var t=as(e);return ha(e.printDot)&&(n=[' print-dot="','"'],n.raw=[' print-dot="','"'],t+=fa(n,e.printDot)),t+=os(e),ha(e.printLyric)&&(i=[' print-lyric="','"'],i.raw=[' print-lyric="','"'],t+=fa(i,e.printLyric)),t;var n,i}function zl(e){return ha(e.timeOnly)?(t=[' time-only="','"'],t.raw=[' time-only="','"'],ca(t,e.timeOnly)):"";var t}function Il(e){var t=[];if(ha(e.footnote)&&e.footnote.text){var n=(a=["",""],a.raw=["",""],ca(a,e.footnote.text));t.push((o=["<footnote",">\n            ","</footnote>"],o.raw=["<footnote",">\n            ","</footnote>"],da(o,ls(e.footnote),n)))}if(ha(e.level)&&e.level.text){var i=(l=["",""],l.raw=["",""],ca(l,e.level.text)),r="";ha(e.level.reference)&&(s=[' reference="','"'],s.raw=[' reference="','"'],r+=fa(s,e.level.reference)),r+=ys(e.level),t.push((u=["<level",">","</level>"],u.raw=["<level",">","</level>"],da(u,r,i)))}return t;var a,o,l,s,u}function Hl(e){var t=Il(e);return ha(e.voice)&&t.push((n=["<voice>","</voice>"],n.raw=["<voice>","</voice>"],ca(n,e.voice))),t;var n}function jl(e){return ha(e.lineType)?(t=[' line-type="','"'],t.raw=[' line-type="','"'],ca(t,Dc[e.lineType])):"";var t}function ql(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,e.type===_s.Start?"start":"stop")):"";var t}function Gl(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,hc[e.type])):"";var t}function Vl(e){return ha(e.number)?(t=[' number="','"'],t.raw=[' number="','"'],ca(t,e.number)):"";var t}function Ql(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,Tc[e.type])):"";var t}function Jl(e){return ha(e.name)?(t=[' name="','"'],t.raw=[' name="','"'],ca(t,e.name)):"";var t}function Kl(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,Tc[e.type])):"";var t}function Zl(e){var t="";return ha(e.dashLength)&&(n=[' dash-length="','"'],n.raw=[' dash-length="','"'],t+=ca(n,e.dashLength)),ha(e.spaceLength)&&(i=[' space-length="','"'],i.raw=[' space-length="','"'],t+=ca(i,e.spaceLength)),t;var n,i}function $l(e){return ha(e.lineShape)?(t=[' line-shape="','"'],t.raw=[' line-shape="','"'],ca(t,Fc[e.lineShape])):"";var t}function es(e){var t="";return ha(e.defaultX)&&(n=[' default-x="','"'],n.raw=[' default-x="','"'],t+=ca(n,e.defaultX)),ha(e.defaultY)&&(i=[' default-y="','"'],i.raw=[' default-y="','"'],t+=ca(i,e.defaultY)),ha(e.relativeX)&&(r=[' relative-x="','"'],r.raw=[' relative-x="','"'],t+=ca(r,e.relativeX)),ha(e.relativeY)&&(a=[' relative-y="','"'],a.raw=[' relative-y="','"'],t+=ca(a,e.relativeY)),t;var n,i,r,a}function ts(e){return e.placement>Es.Unspecified?(t=[' placement="','"'],t.raw=[' placement="','"'],ca(t,e.placement===Es.Above?"above":"below")):"";var t}function ns(e){return e.orientation>Ms.Unspecified?(t=[' orientation="','"'],t.raw=[' orientation="','"'],ca(t,e.orientation===Ms.Over?"over":"under")):"";var t}function is(e){var t="";return ha(e.bezierOffset)&&(n=[' bezier-offset="','"'],n.raw=[' bezier-offset="','"'],t+=ca(n,e.bezierOffset)),ha(e.bezierOffset2)&&(i=[' bezier-offset2="','"'],i.raw=[' bezier-offset2="','"'],t+=ca(i,e.bezierOffset2)),ha(e.bezierX)&&(r=[' bezier-x="','"'],r.raw=[' bezier-x="','"'],t+=ca(r,e.bezierX)),ha(e.bezierY)&&(a=[' bezier-y="','"'],a.raw=[' bezier-y="','"'],t+=ca(a,e.bezierY)),ha(e.bezierX2)&&(o=[' bezier-x2="','"'],o.raw=[' bezier-x2="','"'],t+=ca(o,e.bezierX2)),ha(e.bezierY2)&&(l=[' bezier-y2="','"'],l.raw=[' bezier-y2="','"'],t+=ca(l,e.bezierY2)),t;var n,i,r,a,o,l}function rs(e){var t="";return ha(e.fontFamily)&&(n=[' font-family="','"'],n.raw=[' font-family="','"'],t+=ca(n,e.fontFamily)),ha(e.fontStyle)&&(i=[' font-style="','"'],i.raw=[' font-style="','"'],t+=ca(i,e.fontStyle===zs.Italic?"italic":"normal")),ha(e.fontSize)&&(r=[' font-size="','"'],r.raw=[' font-size="','"'],t+=ca(r,e.fontSize)),ha(e.fontWeight)&&(a=[' font-weight="','"'],a.raw=[' font-weight="','"'],t+=ca(a,e.fontWeight===Is.Bold?"bold":"normal")),t;var n,i,r,a}function as(e){return ha(e.printObject)?(t=[' print-object="','"'],t.raw=[' print-object="','"'],fa(t,e.printObject)):"";var t}function os(e){return ha(e.printSpacing)?(t=[' print-spacing="','"'],t.raw=[' print-spacing="','"'],fa(t,e.printSpacing)):"";var t}function ls(e){return""+ss(e)+fs(e)+ds(e)+hs(e)+ps(e)+ms(e)+vs(e)+gs(e)}function ss(e){return ha(e.justify)?(t=[' justify="','"'],t.raw=[' justify="','"'],ca(t,xc[e.justify])):"";var t}function us(e){return ha(e.halign)?(t=[' halign="','"'],t.raw=[' halign="','"'],ca(t,xc[e.halign])):"";var t}function cs(e){return ha(e.valign)?(t=[' valign="','"'],t.raw=[' valign="','"'],ca(t,ju[e.valign])):"";var t}function fs(e){return""+Yl(e)+us(e)+cs(e)}function ds(e){var t="";return ha(e.underline)&&(n=[' underline="','"'],n.raw=[' underline="','"'],t+=ca(n,e.underline)),ha(e.overline)&&(i=[' overline="','"'],i.raw=[' overline="','"'],t+=ca(i,e.overline)),ha(e.lineThrough)&&(r=[' line-through="','"'],r.raw=[' line-through="','"'],t+=ca(r,e.lineThrough)),t;var n,i,r}function hs(e){var t="";return ha(e.rotation)&&(n=[' rotation="','"'],n.raw=[' rotation="','"'],t+=ca(n,e.rotation)),t;var n}function ps(e){var t="";return ha(e.letterSpacing)&&(n=[' letter-spacing="','"'],
n.raw=[' letter-spacing="','"'],t+=ca(n,e.letterSpacing)),t;var n}function ms(e){var t="";return ha(e.lineHeight)&&(n=[' line-height="','"'],n.raw=[' line-height="','"'],t+=ca(n,e.lineHeight)),t;var n}function vs(e){var t="";return ha(e.dir)&&(n=[' dir="','"'],n.raw=[' dir="','"'],t+=ca(n,kc[e.dir])),t;var n}function gs(e){var t="";return ha(e.enclosure)&&(n=[' enclosure="','"'],n.raw=[' enclosure="','"'],t+=ca(n,Bc[e.enclosure])),t;var n}function ys(e){var t="";return ha(e.bracket)&&(n=[' bracket="','"'],n.raw=[' bracket="','"'],t+=fa(n,e.bracket)),e.size>=As.Unspecified&&(i=[' size="','"'],i.raw=[' size="','"'],t+=ca(i,Nc[e.size])),ha(e.parentheses)&&(r=[' parentheses="','"'],r.raw=[' parentheses="','"'],t+=fa(r,e.bracket)),t;var n,i,r}function bs(e){var t="";return ha(e.accelerate)&&(n=[' accelerate="','"'],n.raw=[' accelerate="','"'],t+=fa(n,e.accelerate)),ha(e.beats)&&(i=[' beats="','"'],i.raw=[' beats="','"'],t+=ca(i,e.beats)),ha(e.firstBeat)&&(r=[' first-beat="','"'],r.raw=[' first-beat="','"'],t+=ca(r,e.firstBeat)),ha(e.lastBeat)&&(a=[' last-beat="','"'],a.raw=[' last-beat="','"'],t+=ca(a,e.lastBeat)),t;var n,i,r,a}function Ss(e){var t="";return ha(e.startNote)&&(n=[' start-note="','"'],n.raw=[' start-note="','"'],t+=ca(n,Cc[e.startNote])),ha(e.trillStep)&&(i=[' trill-step="','"'],i.raw=[' trill-step="','"'],t+=ca(i,Lc[e.trillStep])),ha(e.twoNoteTurn)&&(r=[' two-note-turn="','"'],r.raw=[' two-note-turn="','"'],t+=ca(r,Wc[e.twoNoteTurn])),ha(e.accelerate)&&(a=[' accelerate="','"'],a.raw=[' accelerate="','"'],t+=fa(a,e.accelerate)),ha(e.beats)&&(o=[' beats="','"'],o.raw=[' beats="','"'],t+=ca(o,e.beats)),ha(e.secondBeat)&&(l=[' second-beat="','"'],l.raw=[' second-beat="','"'],t+=ca(l,e.secondBeat)),ha(e.lastBeat)&&(s=[' last-beat="','"'],s.raw=[' last-beat="','"'],t+=ca(s,e.lastBeat)),t;var n,i,r,a,o,l,s}function ws(e){return ha(e.slash)?(t=[' slash="','"'],t.raw=[' slash="','"'],fa(t,e.slash)):"";var t}function Ns(e){var t="";return ha(e["long"])&&(n=[' long="','"'],n.raw=[' long="','"'],t+=fa(n,e["long"])),ha(e.approach)&&(i=[' approach="','"'],i.raw=[' approach="','"'],t+=ca(i,e.approach===Es.Above?"above":"below")),ha(e.departure)&&(r=[' departure="','"'],r.raw=[' departure="','"'],t+=ca(r,e.departure===Es.Above?"above":"below")),t;var n,i,r}function Ds(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,e.type?"down":"up")):"";var t}function Ts(e){return ha(e.type)?(t=[' type="','"'],t.raw=[' type="','"'],ca(t,e.type?"bottom":"top")):"";var t}function Fs(e){return ha(e.color)?(t=[' color="','"'],t.raw=[' color="','"'],ca(t,e.color)):"";var t}t.parseScore=i,t.paseScoreHeader=r,t.parseMeasure=a,t.parseNote=o,t.parseClef=l,t.parseTime=s,t.parseKey=u,t.parsePartSymbol=c,t.parseBackup=f,t.parseHarmony=d,t.parseForward=h,t.parsePrint=p,t.parseFiguredBass=m,t.parseDirection=v,t.parseAttributes=g,t.parseSound=y,t.parseBarline=b,t.parseGrouping=S,t.serializeScore=w,t.serializeScoreHeader=N,t.serializeMeasure=Eo,t.serializeNote=Xo,t.serializeClef=Cl,t.serializeTime=Tl,t.serializeKey=wl,t.serializePartSymbol=Bl,t.serializeBackup=bo,t.serializeHarmony=No,t.serializeForward=So,t.serializePrint=Wo,t.serializeFiguredBass=Po,t.serializeDirection=Uo,t.serializeAttributes=Ao,t.serializeSound=_o,t.serializeBarline=Yo,t.serializeGrouping=wo;var xs,ks,Bs,Cs,Ls="undefined"!=typeof window&&"ActiveXObject"in window,Ws="undefined"==typeof window||"undefined"!=typeof xs&&!xs.browser;!function(){var t='<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="no" standalone="no" doctype-system="http://www.musicxml.org/dtds/timewise.dtd" doctype-public="-//Recordare//DTD MusicXML 3.0 Timewise//EN" /> <xsl:template match="/"> <xsl:apply-templates select="./score-partwise"/> <xsl:apply-templates select="./score-timewise"/> </xsl:template> <xsl:template match="score-timewise"> <xsl:copy-of select="." /> </xsl:template> <xsl:template match="text()"> <xsl:value-of select="." /> </xsl:template> <xsl:template match="*|@*|comment()|processing-instruction()"> <xsl:copy><xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" /></xsl:copy> </xsl:template> <xsl:template match="score-partwise"> <xsl:element name="score-timewise"> <xsl:apply-templates select="@version[.!=\'1.0\']"/> <xsl:apply-templates select="work"/> <xsl:apply-templates select="movement-number"/> <xsl:apply-templates select="movement-title"/> <xsl:apply-templates select="identification"/> <xsl:apply-templates select="defaults"/> <xsl:apply-templates select="credit"/> <xsl:apply-templates select="part-list"/> <xsl:for-each select="part[1]/measure"> <xsl:variable name="measure-number"> <xsl:value-of select="@number"/> </xsl:variable> <xsl:element name="measure"> <xsl:attribute name="number"> <xsl:value-of select="$measure-number"/> </xsl:attribute> <xsl:if test="@implicit[. = \'yes\']"> <xsl:attribute name="implicit"> <xsl:value-of select="@implicit"/> </xsl:attribute> </xsl:if> <xsl:if test="@non-controlling[. = \'yes\']"> <xsl:attribute name="non-controlling"> <xsl:value-of select="@non-controlling"/> </xsl:attribute> </xsl:if> <xsl:if test="@width"> <xsl:attribute name="width"> <xsl:value-of select="@width"/> </xsl:attribute> </xsl:if> <xsl:for-each select="../../part/measure"> <xsl:if test="@number=$measure-number"> <xsl:element name="part"> <xsl:attribute name="id"> <xsl:value-of select="parent::part/@id"/> </xsl:attribute> <xsl:apply-templates /> </xsl:element> </xsl:if> </xsl:for-each> </xsl:element> </xsl:for-each> </xsl:element> </xsl:template> </xsl:stylesheet>',i='<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="no" standalone="no" doctype-system="http://www.musicxml.org/dtds/partwise.dtd" doctype-public="-//Recordare//DTD MusicXML 3.0 Partwise//EN" /> <xsl:template match="/"> <xsl:apply-templates select="./score-partwise"/> <xsl:apply-templates select="./score-timewise"/> </xsl:template> <xsl:template match="score-partwise"> <xsl:copy-of select="." /> </xsl:template> <xsl:template match="text()"> <xsl:value-of select="." /> </xsl:template> <xsl:template match="*|@*|comment()|processing-instruction()"> <xsl:copy><xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()" /></xsl:copy> </xsl:template> <xsl:template match="score-timewise"> <xsl:element name="score-partwise"> <xsl:apply-templates select="@version[.!=\'1.0\']"/> <xsl:apply-templates select="work"/> <xsl:apply-templates select="movement-number"/> <xsl:apply-templates select="movement-title"/> <xsl:apply-templates select="identification"/> <xsl:apply-templates select="defaults"/> <xsl:apply-templates select="credit"/> <xsl:apply-templates select="part-list"/> <xsl:for-each select="measure[1]/part"> <xsl:variable name="part-id"> <xsl:value-of select="@id"/> </xsl:variable> <xsl:element name="part"> <xsl:copy-of select="@id" /> <xsl:for-each select="../../measure/part"> <xsl:if test="@id=$part-id"> <xsl:element name="measure"> <xsl:attribute name="number"> <xsl:value-of select="parent::measure/@number"/> </xsl:attribute> <xsl:if test="parent::measure/@implicit[. = \'yes\']"> <xsl:attribute name="implicit"> <xsl:value-of select="parent::measure/@implicit"/> </xsl:attribute> </xsl:if> <xsl:if test="parent::measure/@non-controlling[. = \'yes\']"> <xsl:attribute name="non-controlling"> <xsl:value-of select="parent::measure/@non-controlling"/> </xsl:attribute> </xsl:if> <xsl:if test="parent::measure/@width"> <xsl:attribute name="width"> <xsl:value-of select="parent::measure/@width"/> </xsl:attribute> </xsl:if> <xsl:apply-templates /> </xsl:element> </xsl:if> </xsl:for-each> </xsl:element> </xsl:for-each> </xsl:element> </xsl:template> </xsl:stylesheet>';if(Ls){var r=window.DOMParser;Cs=function(e){return(new r).parseFromString(e,"text/xml")},ks=function(e){var n=new ActiveXObject("Msxml2.XSLTemplate"),i=new ActiveXObject("Msxml2.DOMDocument"),r=new ActiveXObject("Msxml2.FreeThreadedDOMDocument");i.validateOnParse=!1,r.validateOnParse=!1,i.resolveExternals=!1,r.resolveExternals=!1,i.loadXML(e),r.loadXML(t),n.stylesheet=r;var a=n.createProcessor();return a.input=i,a.transform(),Cs(a.output)},Bs=function(e){var t=new ActiveXObject("Msxml2.XSLTemplate"),n=new ActiveXObject("Msxml2.DOMDocument"),r=new ActiveXObject("Msxml2.FreeThreadedDOMDocument");n.validateOnParse=!1,r.validateOnParse=!1,n.resolveExternals=!1,r.resolveExternals=!1,n.loadXML(e),r.loadXML(i),t.stylesheet=r;var a=t.createProcessor();return a.input=n,a.transform(),a.output}}else if(Ws){var r=n(147).DOMParser,a=n(146).spawnSync,o=n(142);Cs=function(e){return(new r).parseFromString(e,"text/xml")},ks=function(t){var n=a("xsltproc",["--nonet",o.join(e,"..","vendor","musicxml-dtd","parttime.xsl"),"-"],{input:t,env:{XML_CATALOG_FILES:o.join(e,"..","vendor","musicxml-dtd","catalog.xml")}});if(n.error)throw n.error;return Cs(n.stdout.toString())},Bs=function(t){var n=a("xsltproc",["--nonet",o.join(e,"..","vendor","musicxml-dtd","parttime.xsl"),"-"],{input:t,env:{XML_CATALOG_FILES:o.join(e,"..","vendor","musicxml-dtd","catalog.xml")}});if(n.error)throw n.error;return n.stdout.toString()}}else{var r=window.DOMParser,l=(new r).parseFromString(t,"text/xml"),s=(new r).parseFromString(i,"text/xml"),u=new XSLTProcessor;u.importStylesheet(l);var c=new XSLTProcessor;c.importStylesheet(s),Cs=function(e){return(new r).parseFromString(e,"text/xml")},ks=function(e){var t=(new r).parseFromString(e,"text/xml");return u.transformToDocument(t)},Bs=function(e){var t=(new r).parseFromString(e,"text/xml");return(new XMLSerializer).serializeToString(c.transformToDocument(t).documentElement)}}}();var _s;!function(e){e[e.Start=0]="Start",e[e.Stop=1]="Stop"}(_s=t.StartStop||(t.StartStop={}));var Os;!function(e){e[e.Start=0]="Start",e[e.Stop=1]="Stop",e[e.Continue=2]="Continue"}(Os=t.StartStopContinue||(t.StartStopContinue={}));var Us;!function(e){e[e.Single=3]="Single",e[e.Start=0]="Start",e[e.Stop=1]="Stop"}(Us=t.StartStopSingle||(t.StartStopSingle={}));var As;!function(e){e[e.Unspecified=0]="Unspecified",e[e.Full=1]="Full",e[e.Cue=2]="Cue",e[e.Large=3]="Large"}(As=t.SymbolSize||(t.SymbolSize={}));var Es;!function(e){e[e.Above=1]="Above",e[e.Below=2]="Below",e[e.Unspecified=0]="Unspecified"}(Es=t.AboveBelow||(t.AboveBelow={}));var Ms;!function(e){e[e.Over=1]="Over",e[e.Under=2]="Under",e[e.Unspecified=0]="Unspecified"}(Ms=t.OverUnder||(t.OverUnder={}));var Xs;!function(e){e[e.Down=1]="Down",e[e.Up=0]="Up"}(Xs=t.UpDown||(t.UpDown={}));var Ps;!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(Ps=t.TopBottom||(t.TopBottom={}));var Ys;!function(e){e[e.Right=1]="Right",e[e.Left=0]="Left"}(Ys=t.LeftRight||(t.LeftRight={}));var Rs;!function(e){e[e.Circle=3]="Circle",e[e.Bracket=4]="Bracket",e[e.Triangle=5]="Triangle",e[e.Diamond=6]="Diamond",e[e.None=7]="None",e[e.Square=1]="Square",e[e.Oval=2]="Oval",e[e.Rectangle=0]="Rectangle"}(Rs=t.EnclosureShape||(t.EnclosureShape={}));var zs;!function(e){e[e.Italic=1]="Italic",e[e.Normal=0]="Normal"}(zs=t.NormalItalic||(t.NormalItalic={}));var Is;!function(e){e[e.Bold=2]="Bold",e[e.Normal=0]="Normal"}(Is=t.NormalBold||(t.NormalBold={}));var Hs;!function(e){e[e.Right=1]="Right",e[e.Center=2]="Center",e[e.Left=0]="Left"}(Hs=t.LeftCenterRight||(t.LeftCenterRight={}));var js;!function(e){e[e.Top=0]="Top",e[e.Middle=1]="Middle",e[e.Baseline=3]="Baseline",e[e.Bottom=2]="Bottom"}(js=t.TopMiddleBottomBaseline||(t.TopMiddleBottomBaseline={}));var qs;!function(e){e[e.Lro=2]="Lro",e[e.Rlo=3]="Rlo",e[e.Ltr=0]="Ltr",e[e.Rtl=1]="Rtl"}(qs=t.DirectionMode||(t.DirectionMode={}));var Gs;!function(e){e[e.Curved=1]="Curved",e[e.Straight=0]="Straight"}(Gs=t.StraightCurved||(t.StraightCurved={}));var Vs;!function(e){e[e.Dashed=1]="Dashed",e[e.Wavy=3]="Wavy",e[e.Dotted=2]="Dotted",e[e.Solid=0]="Solid"}(Vs=t.SolidDashedDottedWavy||(t.SolidDashedDottedWavy={}));var Qs;!function(e){e[e.Angled=1]="Angled",e[e.Square=2]="Square",e[e.Normal=0]="Normal"}(Qs=t.NormalAngledSquare||(t.NormalAngledSquare={}));var Js;!function(e){e[e.Upright=0]="Upright",e[e.Inverted=1]="Inverted"}(Js=t.UprightInverted||(t.UprightInverted={}));var Ks;!function(e){e[e.Main=1]="Main",e[e.Below=2]="Below",e[e.Upper=0]="Upper"}(Ks=t.UpperMainBelow||(t.UpperMainBelow={}));var Zs;!function(e){e[e.Unison=2]="Unison",e[e.Whole=0]="Whole",e[e.Half=1]="Half"}(Zs=t.WholeHalfUnison||(t.WholeHalfUnison={}));var $s;!function(e){e[e.None=3]="None",e[e.Whole=0]="Whole",e[e.Half=1]="Half"}($s=t.WholeHalfNone||(t.WholeHalfNone={}));var eu;!function(e){e[e.Both=2]="Both",e[e.Even=1]="Even",e[e.Odd=0]="Odd"}(eu=t.OddEvenBoth||(t.OddEvenBoth={}));var tu;!function(e){e[e.Grace=1]="Grace",e[e.Cue=0]="Cue",e[e.Large=2]="Large"}(tu=t.CueGraceLarge||(t.CueGraceLarge={}));var nu;!function(e){e[e.None=0]="None",e[e.Horizontal=1]="Horizontal",e[e.Diagonal=2]="Diagonal",e[e.Vertical=3]="Vertical",e[e.Adjacent=4]="Adjacent"}(nu=t.SeparatorType||(t.SeparatorType={}));var iu;!function(e){e[e.DottedNote=4]="DottedNote",e[e.Cut=1]="Cut",e[e.SingleNumber=2]="SingleNumber",e[e.Note=3]="Note",e[e.Common=0]="Common",e[e.Normal=5]="Normal"}(iu=t.TimeSymbolType||(t.TimeSymbolType={}));var ru;!function(e){e[e.Right=1]="Right",e[e.BeforeBarline=2]="BeforeBarline",e[e.Left=0]="Left"}(ru=t.CancelLocation||(t.CancelLocation={}));var au;!function(e){e[e.None=0]="None",e[e.Line=2]="Line",e[e.Bracket=3]="Bracket",e[e.Square=4]="Square",e[e.Brace=1]="Brace"}(au=t.PartSymbolType||(t.PartSymbolType={}));var ou;!function(e){e[e.Letters=1]="Letters",e[e.Numbers=0]="Numbers"}(ou=t.ShowFretsType||(t.ShowFretsType={}));var lu;!function(e){e[e.Quarter=4]="Quarter",e[e.Breve=.5]="Breve",e[e.Long=.25]="Long",e[e._1024th=1024]="_1024th",e[e._32nd=32]="_32nd",e[e._16th=16]="_16th",e[e.Eighth=8]="Eighth",e[e.Maxima=.125]="Maxima",e[e._512th=512]="_512th",e[e._64th=64]="_64th",e[e._256th=256]="_256th",e[e._128th=128]="_128th",e[e.Half=2]="Half",e[e.Whole=1]="Whole"}(lu=t.Count||(t.Count={}));var su;!function(e){e[e.NaturalFlat=7]="NaturalFlat",e[e.SharpUp=13]="SharpUp",e[e.ThreeQuartersFlat=10]="ThreeQuartersFlat",e[e.ThreeQuartersSharp=11]="ThreeQuartersSharp",e[e.QuarterFlat=8]="QuarterFlat",e[e.Flat=2]="Flat",e[e.TripleSharp=18]="TripleSharp",e[e.Flat1=27]="Flat1",e[e.Flat2=28]="Flat2",e[e.Flat3=29]="Flat3",e[e.Flat4=291]="Flat4",e[e.TripleFlat=191]="TripleFlat",e[e.Flat5=30]="Flat5",e[e.Sharp=0]="Sharp",e[e.QuarterSharp=9]="QuarterSharp",e[e.SlashFlat=21]="SlashFlat",e[e.FlatDown=16]="FlatDown",e[e.NaturalDown=14]="NaturalDown",e[e.SlashQuarterSharp=19]="SlashQuarterSharp",e[e.SharpSharp=4]="SharpSharp",e[e.Sharp1=23]="Sharp1",e[e.FlatUp=17]="FlatUp",e[e.Sharp2=24]="Sharp2",e[e.Sharp3=25]="Sharp3",e[e.DoubleSharp=3]="DoubleSharp",e[e.Sharp4=251]="Sharp4",e[e.Sharp5=26]="Sharp5",e[e.Sori=31]="Sori",e[e.DoubleSlashFlat=22]="DoubleSlashFlat",e[e.SharpDown=12]="SharpDown",e[e.Koron=32]="Koron",e[e.NaturalUp=15]="NaturalUp",e[e.SlashSharp=20]="SlashSharp",e[e.NaturalSharp=6]="NaturalSharp",e[e.FlatFlat=5]="FlatFlat",e[e.Natural=1]="Natural",e[e.DoubleFlat=33]="DoubleFlat"}(su=t.MxmlAccidental||(t.MxmlAccidental={}));var uu;!function(e){e[e.None=2]="None",e[e.Double=3]="Double",e[e.Down=0]="Down",e[e.Up=1]="Up"}(uu=t.StemType||(t.StemType={}));var cu;!function(e){e[e.InvertedTriangle=7]="InvertedTriangle",e[e.CircleDot=14]="CircleDot",e[e.ArrowUp=9]="ArrowUp",e[e.Do=18]="Do",e[e.Mi=20]="Mi",e[e.Cross=4]="Cross",e[e.Slash=0]="Slash",e[e.Fa=21]="Fa",e[e.Triangle=1]="Triangle",e[e.FaUp=22]="FaUp",e[e.So=23]="So",e[e.LeftTriangle=15]="LeftTriangle",e[e.BackSlashed=11]="BackSlashed",e[e.None=17]="None",e[e.La=24]="La",e[e.Slashed=10]="Slashed",e[e.Normal=12]="Normal",e[e.Cluster=13]="Cluster",e[e.Ti=25]="Ti",e[e.Re=19]="Re",e[e.Rectangle=16]="Rectangle",e[e.Square=3]="Square",e[e.ArrowDown=8]="ArrowDown",e[e.X=5]="X",e[e.Diamond=2]="Diamond",e[e.CircleX=6]="CircleX"}(cu=t.NoteheadType||(t.NoteheadType={}));var fu;!function(e){e[e.BackwardHook=4]="BackwardHook",e[e.Begin=0]="Begin",e[e.ForwardHook=3]="ForwardHook",e[e.Continue=1]="Continue",e[e.End=2]="End"}(fu=t.BeamType||(t.BeamType={}));var du;!function(e){e[e.Accel=0]="Accel",e[e.None=2]="None",e[e.Rit=1]="Rit"}(du=t.AccelRitNone||(t.AccelRitNone={}));var hu;!function(e){e[e.None=2]="None",e[e.Both=1]="Both",e[e.Actual=0]="Actual"}(hu=t.ActualBothNone||(t.ActualBothNone={}));var pu;!function(e){e[e.Right=0]="Right",e[e.Top=3]="Top",e[e.Bottom=1]="Bottom",e[e.Left=2]="Left"}(pu=t.HoleLocation||(t.HoleLocation={}));var mu;!function(e){e[e.No=1]="No",e[e.Yes=0]="Yes",e[e.Half=2]="Half"}(mu=t.HoleClosedType||(t.HoleClosedType={}));var vu;!function(e){e[e.Empty=2]="Empty",e[e.Comma=0]="Comma",e[e.Tick=1]="Tick"}(vu=t.BreathMarkType||(t.BreathMarkType={}));var gu;!function(e){e[e.Single=0]="Single",e[e.Begin=1]="Begin",e[e.Middle=3]="Middle",e[e.End=2]="End"}(gu=t.SyllabicType||(t.SyllabicType={}));var yu;!function(e){e[e.Right=1]="Right",e[e.Middle=2]="Middle",e[e.Left=0]="Left"}(yu=t.BarlineLocation||(t.BarlineLocation={}));var bu;!function(e){e[e.Regular=0]="Regular",e[e.LightHeavy=5]="LightHeavy",e[e.HeavyLight=6]="HeavyLight",e[e.Short=9]="Short",e[e.None=10]="None",e[e.Dashed=2]="Dashed",e[e.HeavyHeavy=7]="HeavyHeavy",e[e.Tick=8]="Tick",e[e.Dotted=1]="Dotted",e[e.Heavy=3]="Heavy",e[e.LightLight=4]="LightLight"}(bu=t.BarStyleType||(t.BarStyleType={}));var Su;!function(e){e[e.Discontinue=2]="Discontinue",e[e.Start=0]="Start",e[e.Stop=1]="Stop"}(Su=t.StartStopDiscontinue||(t.StartStopDiscontinue={}));var wu;!function(e){e[e.None=0]="None",e[e.Curved=2]="Curved",e[e.DoubleCurved=4]="DoubleCurved",e[e.Straight=1]="Straight",e[e.DoubleStraight=3]="DoubleStraight"}(wu=t.WingedType||(t.WingedType={}));var Nu;!function(e){e[e.Forward=1]="Forward",e[e.Backward=0]="Backward"}(Nu=t.DirectionTypeBg||(t.DirectionTypeBg={}));var Du;!function(e){e[e.Right=3]="Right",e[e.Northwest=4]="Northwest",e[e.Southwest=7]="Southwest",e[e.Down=1]="Down",e[e.Northeast=5]="Northeast",e[e.Southeast=6]="Southeast",e[e.Up=0]="Up",e[e.Left=2]="Left"}(Du=t.TipDirection||(t.TipDirection={}));var Tu;!function(e){e[e.Diminuendo=1]="Diminuendo",e[e.Crescendo=0]="Crescendo",e[e.Stop=2]="Stop",e[e.Continue=3]="Continue"}(Tu=t.WedgeType||(t.WedgeType={}));var Fu;!function(e){e[e.None=4]="None",e[e.Both=2]="Both",e[e.Arrow=3]="Arrow",e[e.Down=1]="Down",e[e.Up=0]="Up"}(Fu=t.LineEndType||(t.LineEndType={}));var xu;!function(e){e[e.Change=3]="Change",e[e.Start=0]="Start",e[e.Stop=1]="Stop",e[e.Continue=2]="Continue"}(xu=t.PedalType||(t.PedalType={}));var ku;!function(e){e[e.Down=2]="Down",e[e.Stop=3]="Stop",e[e.Up=1]="Up",e[e.Continue=4]="Continue"}(ku=t.OctaveShiftType||(t.OctaveShiftType={}));var Bu;!function(e){e[e.None=4]="None",e[e.Hauptstimme=1]="Hauptstimme",e[e.Nebenstimme=2]="Nebenstimme",e[e.Plain=3]="Plain"}(Bu=t.VoiceSymbol||(t.VoiceSymbol={}));var Cu;!function(e){e[e.Explicit=1]="Explicit",e[e.Implied=2]="Implied",e[e.Alternate=3]="Alternate"}(Cu=t.ExplicitImpliedAlternate||(t.ExplicitImpliedAlternate={}));var Lu;!function(e){e[e.Augmented=3]="Augmented",e[e.Diminished=4]="Diminished",e[e.Major=1]="Major",e[e.Minor=2]="Minor",e[e.HalfDiminished=5]="HalfDiminished"}(Lu=t.ChordType||(t.ChordType={}));var Wu,_u,Ou,Uu,Au,Eu,Mu,Xu,Pu,Yu,Ru,zu,Iu={2:"both",1:"even",0:"odd"},Hu={1:"grace",0:"cue",2:"large"},ju={0:"top",1:"middle",3:"baseline",2:"bottom"},qu=(Wu={},Wu[Cu.Explicit]="explicit",Wu[Cu.Implied]="implied",Wu[Cu.Alternate]="alternate",Wu),Gu=(_u={},_u[Lu.Augmented]="augmented",_u[Lu.Diminished]="diminished",_u[Lu.Major]="major",_u[Lu.Minor]="minor",_u[Lu.HalfDiminished]="half-diminished",_u),Vu={4:"quarter",9990:"breve",9991:"long",1024:"1024th",32:"32nd",16:"16th",8:"eighth",9992:"maxima",512:"512th",64:"64th",256:"256th",128:"128th",2:"half",1:"whole"},Qu={7:"natural-flat",13:"sharp-up",10:"three-quarters-flat",11:"three-quarters-sharp",8:"quarter-flat",2:"flat",18:"triple-sharp",27:"flat-1",28:"flat-2",29:"flat-3",291:"flat-4",191:"triple-flat",30:"flat-5",0:"sharp",9:"quarter-sharp",21:"slash-flat",16:"flat-down",14:"natural-down",19:"slash-quarter-sharp",4:"sharp-sharp",23:"sharp-1",17:"flat-up",24:"sharp-2",25:"sharp-3",3:"double-sharp",251:"sharp-4",26:"sharp-5",31:"sori",22:"double-slash-flat",12:"sharp-down",32:"koron",15:"natural-up",20:"slash-sharp",6:"natural-sharp",5:"flat-flat",1:"natural",33:"double-flat"},Ju={0:"single",1:"begin",3:"middle",2:"end"},Ku={0:"comma",1:"tick",2:"empty"},Zu={1:"no",0:"yes",2:"half"},$u={0:"right",3:"top",1:"bottom",2:"left"},ec=(Ou={},Ou[hu.None]="none",Ou[hu.Both]="both",Ou[hu.Actual]="actual",Ou),tc={4:"backward hook",0:"begin",3:"forward hook",1:"continue",2:"end"},nc={0:"accel",2:"none",1:"rit"},ic={7:"inverted triangle",14:"circle dot",9:"arrow up",18:"do",20:"mi",4:"cross",0:"slash",21:"fa",1:"triangle",22:"fa up",23:"so",15:"left triangle",11:"back slashed",17:"none",24:"la",10:"slashed",12:"normal",13:"cluster",25:"ti",19:"re",16:"rectangle",3:"square",8:"arrow down",5:"x",2:"diamond",6:"circle x"},rc={2:"none",3:"double",0:"down",1:"up"},ac={1:"right",2:"middle",0:"left"},oc=(Uu={},Uu[Tu.Diminuendo]="diminuendo",Uu[Tu.Crescendo]="crescendo",Uu[Tu.Stop]="stop",Uu[Tu.Continue]="continue",Uu),lc=(Au={},Au[Fu.None]="none",Au[Fu.Both]="both",Au[Fu.Arrow]="arrow",Au[Fu.Down]="down",Au[Fu.Up]="up",Au),sc=(Eu={},Eu[xu.Change]="change",Eu[xu.Start]="start",Eu[xu.Stop]="stop",Eu[xu.Continue]="continue",Eu),uc=(Mu={},Mu[ku.Down]="down",Mu[ku.Stop]="stop",Mu[ku.Up]="up",Mu[ku.Continue]="continue",Mu),cc=(Xu={},Xu[Bu.None]="none",Xu[Bu.Hauptstimme]="hauptstimme",Xu[Bu.Nebenstimme]="nebenstimme",Xu[Bu.Plain]="plain",Xu),fc=(Pu={},Pu[Du.Right]="right",Pu[Du.Northwest]="northwest",Pu[Du.Southwest]="southwest",Pu[Du.Down]="down",Pu[Du.Northeast]="northeast",Pu[Du.Southeast]="southeast",Pu[Du.Up]="up",Pu[Du.Left]="left",Pu),dc={0:"regular",5:"light-heavy",6:"heavy-light",9:"short",10:"none",2:"dashed",7:"heavy-heavy",8:"tick",1:"dotted",3:"heavy",4:"light-light"},hc=(Yu={},Yu[Su.Start]="start",Yu[Su.Stop]="stop",Yu[Su.Discontinue]="discontinue",Yu),pc=(Ru={},Ru[Nu.Forward]="forward",Ru[Nu.Backward]="backward",Ru),mc=(zu={},zu[wu.None]="none",zu[wu.Curved]="curved",zu[wu.DoubleCurved]="double-curved",zu[wu.Straight]="straight",zu[wu.DoubleStraight]="double-straight",zu),vc={0:"upright",1:"inverted"},gc={1:"angled",2:"square",0:"normal"},yc={1:"right",2:"before-barline",0:"left"},bc={4:"dotted-note",1:"cut",2:"single-number",3:"note",0:"common",5:"normal"},Sc={0:"none",1:"horizontal",2:"diagonal",3:"vertical",4:"adjacent"},wc={0:"none",2:"line",3:"bracket",4:"square",1:"brace"},Nc={1:"full",2:"cue",3:"large"},Dc={1:"dashed",2:"dotted",3:"wavy",0:"solid"},Tc={0:"start",1:"stop",2:"continue",3:"single"},Fc={1:"curved",0:"straight"},xc={1:"right",2:"center",0:"left"},kc={0:"ltr",1:"rtl",2:"lro",3:"rlo"},Bc={3:"circle",4:"bracket",5:"triangle",6:"diamond",7:"none",1:"square",2:"oval",0:"rectangle"},Cc={1:"main",2:"below",0:"upper"},Lc={2:"unison",0:"whole",1:"half"},Wc={3:"none",0:"whole",1:"half"}}).call(t,"/")},function(e,t){e.exports=React},function(e,t,n){"use strict";var i=n(4),r=n(145),a=n(1),o=n(33),l=n(72),s=n(115),u=n(27),c=i.createFactory(s["default"]),f=n(66);t.getMeasureSegments=f.getMeasureSegments,t.reduceToShortestInSegments=f.reduceToShortestInSegments;var d=n(67);t.generateModelKey=d.generateModelKey,t.detach=d.detach;var h=n(68);t.specIsRaw=h.specIsRaw,t.specIsDocBuilder=h.specIsDocBuilder,t.specIsPartBuilder=h.specIsPartBuilder;var p=n(27);t.Type=p["default"];var m=function(){function e(e,t,n,i,r){return this.cleanlinessTracking={measures:{},lines:[],linePlacementHints:null},r?void(this.error=r):(this.header=e,this.measures=t,void(this._factory=i))}return e.prototype.modelHasType=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(i=this._factory).modelHasType.apply(i,[e].concat(t));var i},e.prototype.search=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(r=this._factory).search.apply(r,[e,t].concat(n));var r},e.prototype.getPrint=function(e){var t=this,n=this.measures[e];if(!n)throw new Error("No such measure "+e);var i=a.find(n.parts,function(e){return!!e.staves[1]&&t.search(e.staves[1],0,u["default"].Print).length});if(i)return this.search(i.staves[1],0,u["default"].Print)[0]._snapshot;throw new Error("Part does not contain a Print element at division 0. Is it validated?")},e.prototype.renderToStaticMarkup=function(e){var t=r.renderToStaticMarkup(this.__getPage(e,!1,"svg-export",null,!1));return'<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+t.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"').replace(/class="tn_"/g,"font-family='Alegreya'").replace(/class="mmn_"/g,"font-family='Alegreya' font-style='italic' stroke='#7a7a7a'").replace(/class="bn_"/g,"font-family='Alegreya' font-style='italic' text-anchor='end' stroke='#7a7a7a'").replace(/<noscript><\/noscript>/g,"")},e.prototype.__getPage=function(e,t,n,i,r,a,s,u,f){var d={document:this,attributes:{},debug:!0,header:this.header,lineCount:NaN,lineIndex:NaN,measures:this.measures,modelFactory:this._factory,postprocessors:this._factory.postprocessors,preprocessors:[],print:this.getPrint(e),preview:t,singleLineMode:r,fixedMeasureWidth:a,fixup:s?function(e,t){s(t)}:null};o["default"](d),d.print=this.getPrint(e);var h=l["default"](d);return c({className:i,lineLayouts:h,print:d.print,renderTarget:n,scoreHeader:this.header,singleLineMode:r,svgRef:u,onPageHeightChanged:f})},e}();t.Document=m},function(e,t,n){"use strict";function i(e,t){var n=p(e);switch(!0){case!n:return[0,0];case 1===t:return n.stemUpSE||n.stemUpNW;case t===-1:return n.stemDownNW||n.stemDownSW;default:c(!1,"Invalid direction")}}function r(e){return 10*t.bboxes[e][0]-10*t.bboxes[e][2]}function a(e){return 10*t.bboxes[e][0]}function o(e){return 10*t.bboxes[e][2]}function l(e){return 10*t.bboxes[e][1]}function s(e){return 10*t.bboxes[e][3]}var u=n(1),c=n(2),f=n(50),d=n(132),h=n(50);t.bravura=h["default"],t.bboxes=u.keyBy(f["default"].glyphBBoxes,4),t.bboxes.noteheadNull=t.bboxes.noteheadBlack,t.getGlyphCode=u.memoize(function(e){return e in d["default"]||console.warn(e," is not a valid glyph"),d["default"][e]});var p=u.memoize(function(e){return f["default"].glyphsWithAnchors[e]});t.getFontOffset=i,t.distances={beam:.88,hyphen:12},t.getWidth=r,t.getRight=a,t.getLeft=o,t.getTop=l,t.getBottom=s},function(e,t,n){"use strict";function i(e,t){for(var n;0!==t;)n=t,t=e%t,e=n;return Math.abs(e)}function r(e,t){return o(isFinite(e),"%s is not finite",e),o(isFinite(t),"%s is not finite",t),e=Math.abs(e),t=Math.abs(t),Math.max(e,t,e*t/i(e,t)||0)}function a(e){return void 0===e||null===e?e:JSON.parse(JSON.stringify(e))}var o=n(2);t.gcd=i,t.lcm=r,t.cloneObject=a,t.MAX_SAFE_INTEGER=9007199254740991},function(e,t,n){"use strict";function i(e,t){return O.some(e,function(e){if(!e.pitch)return!1;var n=t.staffAccidentals[e.pitch.alter]||0;return(e.pitch.alter||0)!==n&&(e.pitch.alter||0)!==(t.staffAccidentals[e.pitch.alter+e.pitch.octave]||0)||!!e.accidental})}function r(e){return!isNaN(e.count)}function a(e){return!isNaN(e.length)}function o(e){if(a(e)){var t=O.find(e,function(e){return e.noteType});return t?t.noteType.duration:NaN}return r(e)?e.count:void U(!1,"count() expected a chord or duration.")}function l(e){return a(e)?(O.find(e,function(e){return e.dots})||{dots:[]}).dots.length||0:r(e)?e.dots||0:void U(!1,"dots() expected a chord or duration")}function s(e){return a(e)?(O.find(e,function(e){return e.timeModification})||{timeModification:null}).timeModification||null:r(e)?e.timeModification||null:void U(!1,"timeModification() expected a chord or duration")}function u(e){var t=O.map(e,function(e){return e.ties&&e.ties.length?e.ties[0]:null});return O.filter(t,function(e){return!!e}).length?t:null}function c(e){var t=O.find(e,function(e){return!!e.beams});return t?t.beams:null}function f(e){return O.some(e,function(e){return e.noteType.duration<=_.Count.Eighth})}function d(e,t){return O.reduce(g(e,t),function(e,t){return e+t},0)/e.length}function h(e,t){return O.reduce(g(e,t),function(e,t){return Math.min(e,t)},1e4)}function p(e,t){return O.reduce(g(e,t),function(e,t){return Math.max(e,t)},-1e4)}function m(e,t,n){if(t!==-1&&1!==t)throw new Error("Direction was not a number");return 1===t?h(e,n):p(e,n)}function v(e,t,n){if(t!==-1&&1!==t)throw new Error("Direction was not a number");return 1===t?p(e,n):h(e,n)}function g(e,t){if(!t)throw new Error("Exepected a valid clef");return O.map(e,function(e){return y(e,t)})}function y(e,t){if(!t)throw new Error("Exepected a valid clef");if(e){if(e.rest)return e.rest.displayStep?S(e.rest.displayStep,e.rest.displayOctave,t):e.noteType.duration===_.Count.Whole?4:3;if(e.unpitched)return S(e.unpitched.displayStep,e.unpitched.displayOctave,t);if(e.pitch)return S(e.pitch.step,e.pitch.octave,t);throw new Error("Invalid note")}return 3}function b(e,n){var i=e/10+3,r=T(n),a=Math.round(2*(i-r)),o=Math.floor(a/7)+3,l=Math.round(a+7e3)%7/2;3.5===l&&(o+=1,l=0);var s=t.offsetToPitch[l];return{octave:o,step:s}}function S(e,n,i){var r=parseInt(n,10)||0;return T(i)+3.5*(r-3)+t.pitchOffsets[e]}function w(e,t){if(!e||e.rest||e.unpitched)return!1;var n=y(e,t);return n<.5||n>5.5}function N(e,t){for(var n=h(e,t),i=p(e,t),r=[],a=6;a<=i;++a)r.push(a);for(var a=0;a>=n;--a)r.push(a);return r}function D(e){return!e.length||e[0].rest}function T(e){return t.clefOffsets[e.sign]+e.line-t.defaultClefLines[e.sign.toUpperCase()]-3.5*parseInt(e.clefOctaveChange||"0",10)}function F(e,t){if(U(!!t,"Expected divisions to be set before calculating bar divisions."),null!=e.senzaMisura)return 1e6*t;var n=O.reduce(e.beats,function(t,n,i){return t+O.reduce(n.split("+"),function(t,n){return t+4*parseInt(n,10)/e.beatTypes[i]},0)},0);return n*t||NaN}function x(e){var t=e.time,n=e.divisions;return F(t,n)}function k(e,t){var n=e?e.type:_.NoteheadType.Normal;if(n===_.NoteheadType.Normal)return t;var i=M[n];if(i){if(i[0]&&"noteheadBlack"===t)return i[0];if(i[1]&&"noteheadHalf"===t)return i[1];if(i[2]&&"noteheadWhole"===t)return i[2];if(i[3]&&"noteheadDoubleWhole"===t)return i[3]}return console.warn("The custom notehead with ID "+n+" cannot replace "+(this.props.notehead+", probably because it's not implemented.")),this.props.notehead}function B(e){return U(!e.notations||1===e.notations.length,"Deprecated notations format"),e.notations?e.notations[0]:E}function C(e){return B(e).articulations?B(e).articulations[0]:Object.freeze({})}function L(e){return O.chain(e).map(function(e){return B(e).tieds}).map(function(e){return e&&e.length?e[0]:null}).value()}function W(e,t,n){if(a(e)&&O.some(e,function(e){return e.grace}))return 0;var i=o(e),r=l(e),u=s(e),c=void 0===t.time.senzaMisura?t.time:{beatTypes:[4],beats:["1000"]},f=t.divisions;if(U(!!c,"A time signature must be specified."),i===-1||i<=1)return f*O.reduce(c.beats,function(e,t){return e+O.reduce(t.split("+"),function(e,t){return e+parseInt(t,10)},0)},0);if(4*f%i>0&&!n){var d=A.lcm(4*f,i)/4;throw new X(d)}var h=4*f/i,p=u?u.normalNotes/u.actualNotes:1,m=O.times(r,function(e){return 1/Math.pow(2,e+1)}).reduce(function(e,t){return e+t},1),v=h*p*m;return U(!isNaN(v),"calcDivisions must return a number. %s is not a number.",v),v}var _=n(3),O=n(1),U=n(2),A=n(7),E=Object.freeze({});t.hasAccidental=i,t.count=o,t.dots=l,t.timeModification=s,t.ties=u,t.beams=c,t.hasFlagOrBeam=f,t.averageLine=d,t.lowestLine=h,t.highestLine=p,t.startingLine=m,t.heightDeterminingLine=v,t.linesForClef=g,t.lineForClef=y,t.offsetToPitch={0:"C",.5:"D",1:"E",1.5:"F",2:"G",2.5:"A",3:"B"},t.pitchOffsets={C:0,D:.5,E:1,F:1.5,G:2,A:2.5,B:3},t.pitchForClef=b,t.lineForClef_=S,t.onLedger=w,t.ledgerLines=N,t.rest=D,t.defaultClefLines={G:2,F:4,C:3,PERCUSSION:3,TAB:5,NONE:3},t.clefOffsets={G:-3.5,F:2.5,C:-.5,PERCUSSION:-.5,TAB:-.5,NONE:-.5},t.getClefOffset=T,t.barDivisionsDI=F,
t.barDivisions=x,t.IDEAL_STEM_HEIGHT=35,t.MIN_STEM_HEIGHT=25,t.chromaticScale={c:0,d:2,e:4,f:5,g:7,a:9,b:11},t.countToHasStem={.25:!0,.5:!1,1:!1,2:!0,4:!0,8:!0,16:!0,32:!0,64:!0,128:!0,256:!0,512:!0,1024:!0},t.countToIsBeamable={8:!0,16:!0,32:!0,64:!0,128:!0,256:!0,512:!0,1024:!0},t.countToFlag={8:"flag8th",16:"flag16th",32:"flag32nd",64:"flag64th",128:"flag128th",256:"flag256th",512:"flag512th",1024:"flag1024th"},t.accidentalGlyphs=(P={},P[_.MxmlAccidental.NaturalFlat]="accidentalNaturalSharp",P[_.MxmlAccidental.SharpUp]="accidentalThreeQuarterTonesSharpArrowUp",P[_.MxmlAccidental.ThreeQuartersFlat]="accidentalThreeQuarterTonesFlatZimmermann",P[_.MxmlAccidental.ThreeQuartersSharp]="accidentalThreeQuarterTonesSharpStein",P[_.MxmlAccidental.QuarterFlat]="accidentalQuarterToneFlatStein",P[_.MxmlAccidental.Flat]="accidentalFlat",P[_.MxmlAccidental.TripleSharp]="accidentalTripleSharp",P[_.MxmlAccidental.Flat1]=null,P[_.MxmlAccidental.Flat2]=null,P[_.MxmlAccidental.Flat3]=null,P[_.MxmlAccidental.Flat4]=null,P[_.MxmlAccidental.Flat5]=null,P[_.MxmlAccidental.Sharp1]=null,P[_.MxmlAccidental.Sharp2]=null,P[_.MxmlAccidental.Sharp3]=null,P[_.MxmlAccidental.Sharp4]=null,P[_.MxmlAccidental.Sharp5]=null,P[_.MxmlAccidental.SlashQuarterSharp]=null,P[_.MxmlAccidental.DoubleSlashFlat]=null,P[_.MxmlAccidental.TripleFlat]="accidentalTripleFlat",P[_.MxmlAccidental.Sharp]="accidentalSharp",P[_.MxmlAccidental.QuarterSharp]="accidentalQuarterToneSharpStein",P[_.MxmlAccidental.SlashFlat]="accidentalTavenerFlat",P[_.MxmlAccidental.FlatDown]="accidentalFlatJohnstonDown",P[_.MxmlAccidental.NaturalDown]="accidentalQuarterToneFlatNaturalArrowDown",P[_.MxmlAccidental.SharpSharp]="accidentalSharpSharp",P[_.MxmlAccidental.FlatUp]="accidentalFlatJohnstonUp",P[_.MxmlAccidental.DoubleSharp]="accidentalDoubleSharp",P[_.MxmlAccidental.Sori]="accidentalSori",P[_.MxmlAccidental.SharpDown]="accidentalQuarterToneSharpArrowDown",P[_.MxmlAccidental.Koron]="accidentalKoron",P[_.MxmlAccidental.NaturalUp]="accidentalQuarterToneSharpNaturalArrowUp",P[_.MxmlAccidental.SlashSharp]="accidentalTavenerSharp",P[_.MxmlAccidental.NaturalSharp]="accidentalNaturalSharp",P[_.MxmlAccidental.FlatFlat]="accidentalDoubleFlat",P[_.MxmlAccidental.Natural]="accidentalNatural",P[_.MxmlAccidental.DoubleFlat]="accidentalDoubleFlat",P),t.InvalidAccidental=-999;var M=(Y={},Y[_.NoteheadType.ArrowDown]=["noteheadLargeArrowDownBlack","noteheadLargeArrowDownHalf","noteheadLargeArrowDownWhole","noteheadLargeArrowDownDoubleWhole"],Y[_.NoteheadType.ArrowUp]=["noteheadLargeArrowUpBlack","noteheadLargeArrowUpHalf","noteheadLargeArrowUpWhole","noteheadLargeArrowUpDoubleWhole"],Y[_.NoteheadType.BackSlashed]=["noteheadSlashedBlack2","noteheadSlashedHalf2","noteheadSlashedWhole2","noteheadSlashedDoubleWhole2"],Y[_.NoteheadType.CircleDot]=["noteheadRoundWhiteWithDot","noteheadCircledHalf","noteheadCircledWhole","noteheadCircledDoubleWhole"],Y[_.NoteheadType.CircleX]=["noteheadCircledXLarge","noteheadCircledXLarge","noteheadCircledXLarge","noteheadCircledXLarge"],Y[_.NoteheadType.Cluster]=["noteheadNull","noteheadNull","noteheadNull","noteheadNull"],Y[_.NoteheadType.Cross]=["noteheadPlusBlack","noteheadPlusHalf","noteheadPlusWhole","noteheadPlusDoubleWhole"],Y[_.NoteheadType.InvertedTriangle]=["noteheadTriangleDownBlack","noteheadTriangleDownHalf","noteheadTriangleDownWhole","noteheadTriangleDownDoubleWhole"],Y[_.NoteheadType.LeftTriangle]=["noteheadTriangleRightBlack","noteheadTriangleRightHalf","noteheadTriangleRightWhole","noteheadTriangleRightDoubleWhole"],Y[_.NoteheadType.None]=["noteheadNull","noteheadNull","noteheadNull","noteheadNull"],Y[_.NoteheadType.Slash]=["noteheadSlashHorizontalEnds","noteheadSlashWhiteHalf","noteheadSlashWhiteWhole","noteheadDoubleWhole"],Y[_.NoteheadType.Slashed]=["noteheadSlashedBlack1","noteheadSlashedHalf1","noteheadSlashedWhole1","noteheadSlashedDoubleWhole1"],Y[_.NoteheadType.X]=["noteheadXBlack","noteheadXHalf","noteheadXWhole","noteheadXDoubleWhole"],Y[_.NoteheadType.Do]=["noteheadTriangleUpBlack","noteheadTriangleUpHalf","noteheadTriangleUpWhole","noteheadTriangleUpDoubleWhole"],Y[_.NoteheadType.Triangle]=["noteheadTriangleUpBlack","noteheadTriangleUpHalf","noteheadTriangleUpWhole","noteheadTriangleUpDoubleWhole"],Y[_.NoteheadType.Re]=["noteheadMoonBlack","noteheadMoonWhite","noteheadMoonWhite","noteheadMoonWhite"],Y[_.NoteheadType.Mi]=["noteheadDiamondBlack","noteheadDiamondHalf","noteheadDiamondWhole","noteheadDiamondDoubleWhole"],Y[_.NoteheadType.Diamond]=["noteheadDiamondBlack","noteheadDiamondHalf","noteheadDiamondWhole","noteheadDiamondDoubleWhole"],Y[_.NoteheadType.Fa]=["noteheadTriangleUpRightBlack","noteheadTriangleUpRightWhite","noteheadTriangleUpRightWhite","noteheadTriangleUpRightWhite"],Y[_.NoteheadType.FaUp]=["noteheadTriangleUpRightBlack","noteheadTriangleUpRightWhite","noteheadTriangleUpRightWhite","noteheadTriangleUpRightWhite"],Y[_.NoteheadType.So]=["noteheadBlack","noteheadHalf","noteheadWhole","noteheadDoubleWhole"],Y[_.NoteheadType.La]=["noteheadSquareBlack","noteheadSquareWhite","noteheadSquareWhite","noteheadSquareWhite"],Y[_.NoteheadType.Square]=["noteheadSquareBlack","noteheadSquareWhite","noteheadSquareWhite","noteheadSquareWhite"],Y[_.NoteheadType.Rectangle]=["noteheadSquareBlack","noteheadSquareWhite","noteheadSquareWhite","noteheadSquareWhite"],Y[_.NoteheadType.Ti]=["noteheadTriangleRoundDownBlack","noteheadTriangleRoundDownWhite","noteheadTriangleRoundDownWhite","noteheadTriangleRoundDownWhite"],Y);t.getNoteheadGlyph=k,t.notationObj=B,t.articulationObj=C,t.tieds=L;var X=function(){function e(e){this.requiredDivisions=e}return e}();t.FractionalDivisionsException=X,t.divisions=W;var P,Y},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(6),o=n(17),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.x,t=this.props.y;if("svg-export"===this.context.renderTarget){var n=o.toPathData("Bravura",a.getGlyphCode(this.props.glyphName),e,t,40*(this.props.scale||1));return r.DOM.path({d:n},null)}var i=r.DOM.text({className:"mn_",fill:this.props.fill,fillOpacity:this.props.opacity,fontSize:40*(this.props.scale||1),strokeOpacity:this.props.opacity,transform:this.props.transform,x:e,y:t},a.getGlyphCode(this.props.glyphName));return i},t}(r.Component);l.contextTypes={renderTarget:r.PropTypes.oneOf(["svg-web","svg-export"])},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=l},function(e,t){"use strict";function n(e,t){this.data=e,this.offset=t,this.relativeOffset=0}t.getByte=function(e,t){return e.getUint8(t)},t.getCard8=t.getByte,t.getUShort=function(e,t){return e.getUint16(t,!1)},t.getCard16=t.getUShort,t.getShort=function(e,t){return e.getInt16(t,!1)},t.getULong=function(e,t){return e.getUint32(t,!1)},t.getFixed=function(e,t){var n=e.getInt16(t,!1),i=e.getUint16(t+2,!1);return n+i/65535},t.getTag=function(e,t){for(var n="",i=t;i<t+4;i+=1)n+=String.fromCharCode(e.getInt8(i));return n},t.getOffset=function(e,t,n){for(var i=0,r=0;r<n;r+=1)i<<=8,i+=e.getUint8(t+r);return i},t.getBytes=function(e,t,n){for(var i=[],r=t;r<n;r+=1)i.push(e.getUint8(r));return i},t.bytesToString=function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t};var i={"byte":1,uShort:2,"short":2,uLong:4,fixed:4,longDateTime:8,tag:4};n.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},n.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},n.prototype.parseCard8=n.prototype.parseByte,n.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},n.prototype.parseCard16=n.prototype.parseUShort,n.prototype.parseSID=n.prototype.parseUShort,n.prototype.parseOffset16=n.prototype.parseUShort,n.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},n.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},n.prototype.parseULong=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},n.prototype.parseFixed=function(){var e=t.getFixed(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},n.prototype.parseOffset16List=n.prototype.parseUShortList=function(e){for(var n=new Array(e),i=this.data,r=this.offset+this.relativeOffset,a=0;a<e;a++)n[a]=t.getUShort(i,r),r+=2;return this.relativeOffset+=2*e,n},n.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,i="";this.relativeOffset+=e;for(var r=0;r<e;r++)i+=String.fromCharCode(t.getUint8(n+r));return i},n.prototype.parseTag=function(){return this.parseString(4)},n.prototype.parseLongDateTime=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset+4);return this.relativeOffset+=8,e},n.prototype.parseFixed=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e/65536},n.prototype.parseVersion=function(){var e=t.getUShort(this.data,this.offset+this.relativeOffset),n=t.getUShort(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e+n/4096/10},n.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=i[e]*t},t.Parser=n},function(e,t,n){"use strict";function i(e,t,n){var i;for(i=0;i<t.length;i+=1){var r=t[i];this[r.name]=r.value}if(this.tableName=e,this.fields=t,n){var a=Object.keys(n);for(i=0;i<a.length;i+=1){var o=a[i],l=n[o];void 0!==this[o]&&(this[o]=l)}}}var r=n(12),a=n(25).encode,o=n(25).sizeOf;i.prototype.sizeOf=function(){for(var e=0,t=0;t<this.fields.length;t+=1){var n=this.fields[t],i=this[n.name];if(void 0===i&&(i=n.value),"function"==typeof i.sizeOf)e+=i.sizeOf();else{var a=o[n.type];r.assert("function"==typeof a,"Could not find sizeOf function for field"+n.name),e+=a(i)}}return e},i.prototype.encode=function(){return a.TABLE(this)},t.Table=i},function(e,t){"use strict";t.argument=function(e,t){if(!e)throw new Error(t)},t.assert=t.argument},function(e,t){"use strict";function n(){return t.pageSizes[0]}function i(e,t){return t/e*40}function r(e,n){var r=NaN;switch(!0){case n.indexOf("px")!==-1:case!isNaN(parseFloat(n)):r=parseFloat(n.split("px")[0]);break;case"xx-small"===n:r=9;break;case"x-small"===n:r=10;break;case"medium"===n:r=16;break;case"large"===n:r=18;break;case"x-large"===n:r=24;break;case"xx-large"===n:r=32;break;case"small"===n:r=13;break;default:r=13}return i(e,r*t.mmPerIn/96)}function a(e,t){return e*t/40}t.ptPerMM=2.842,t.mmPerIn=25.4,t.V_PADDING=20,t.staveSeperation=3.24,t.rastalToHeight=[9.2,7.9,7.4,7,6.5,6,5.5,4.8,3.7],t.pageSizes=[{name:"U.S. Letter",lilypondName:"letter",width:215.9,height:279.4,unit:"mm"},{name:"U.S. Legal",lilypondName:"legal",width:215.9,height:355.6,unit:"mm"},{name:"ISO A4",lilypondName:"a4",width:210,height:297,unit:"mm"},{name:"ISO B4",lilypondName:"b4",width:250,height:353,unit:"mm"},{name:"ISO A3",lilypondName:"a3",width:297,height:420,unit:"mm"},{name:"Print",lilypondName:"arch a",width:229,height:305,unit:"mm"},{name:"Choral",lilypondName:"choral",width:178,height:254,unit:"mm"},{name:"Marching Band",lilypondName:"marching",width:133,height:170,unit:"mm"}],t.defaultPageSize=n,t.defaultIndent=15,t.defaultMargins={top:15.25,right:15.25,bottom:15.25,left:15.25},t.defaultStaveHeight=t.rastalToHeight[4],t.lilypondSizes={choral:{width:178,height:254,unit:"mm"},marching:{width:133,height:170,unit:"mm"},a10:{width:26,height:37,unit:"mm"},a9:{width:37,height:52,unit:"mm"},a8:{width:52,height:74,unit:"mm"},a7:{width:74,height:105,unit:"mm"},a6:{width:105,height:148,unit:"mm"},a5:{width:148,height:210,unit:"mm"},a4:{width:210,height:297,unit:"mm"},a3:{width:297,height:420,unit:"mm"},a2:{width:420,height:594,unit:"mm"},a1:{width:594,height:841,unit:"mm"},a0:{width:841,height:1189,unit:"mm"},b10:{width:31,height:44,unit:"mm"},b9:{width:44,height:62,unit:"mm"},b8:{width:62,height:88,unit:"mm"},b7:{width:88,height:125,unit:"mm"},b6:{width:125,height:176,unit:"mm"},b5:{width:176,height:250,unit:"mm"},b4:{width:250,height:353,unit:"mm"},b3:{width:353,height:500,unit:"mm"},b2:{width:500,height:707,unit:"mm"},b1:{width:707,height:1e3,unit:"mm"},b0:{width:1e3,height:1414,unit:"mm"},"4a0":{width:1682,height:2378,unit:"mm"},"2a0":{width:1189,height:1682,unit:"mm"},c10:{width:28,height:40,unit:"mm"},c9:{width:40,height:57,unit:"mm"},c8:{width:57,height:81,unit:"mm"},c7:{width:81,height:114,unit:"mm"},c6:{width:114,height:162,unit:"mm"},c5:{width:162,height:229,unit:"mm"},c4:{width:229,height:324,unit:"mm"},c3:{width:324,height:458,unit:"mm"},c2:{width:458,height:648,unit:"mm"},c1:{width:648,height:917,unit:"mm"},c0:{width:917,height:1297,unit:"mm"},"junior-legal":{width:8,height:5,unit:"in"},legal:{width:8.5,height:14,unit:"in"},ledger:{width:17,height:11,unit:"in"},letter:{width:8.5,height:11,unit:"in"},tabloid:{width:11,height:17,unit:"in"},"11x17":{width:11,height:17,unit:"in"},"17x11":{width:17,height:11,unit:"in"},"government-letter":{width:8,height:10.5,unit:"in"},"government-legal":{width:8.5,height:13,unit:"in"},"philippine-legal":{width:8.5,height:13,unit:"in"},"ansi a":{width:8.5,height:11,unit:"in"},"ansi b":{width:17,height:11,unit:"in"},"ansi c":{width:17,height:22,unit:"in"},"ansi d":{width:22,height:34,unit:"in"},"ansi e":{width:34,height:44,unit:"in"},"engineering f":{width:28,height:40,unit:"in"},"arch a":{width:9,height:12,unit:"in"},"arch b":{width:12,height:18,unit:"in"},"arch c":{width:18,height:24,unit:"in"},"arch d":{width:24,height:36,unit:"in"},"arch e":{width:36,height:48,unit:"in"},"arch e1":{width:30,height:42,unit:"in"},statement:{width:5.5,height:8.5,unit:"in"},"half letter":{width:5.5,height:8.5,unit:"in"},quarto:{width:8,height:10,unit:"in"},octavo:{width:6.75,height:10.5,unit:"in"},executive:{width:7.25,height:10.5,unit:"in"},monarch:{width:7.25,height:10.5,unit:"in"},foolscap:{width:8.27,height:13,unit:"in"},folio:{width:8.27,height:13,unit:"in"},"super-b":{width:13,height:19,unit:"in"},post:{width:15.5,height:19.5,unit:"in"},crown:{width:15,height:20,unit:"in"},"large post":{width:16.5,height:21,unit:"in"},demy:{width:17.5,height:22.5,unit:"in"},medium:{width:18,height:23,unit:"in"},broadsheet:{width:18,height:24,unit:"in"},royal:{width:20,height:25,unit:"in"},elephant:{width:23,height:28,unit:"in"},"double demy":{width:22.5,height:35,unit:"in"},"quad demy":{width:35,height:45,unit:"in"},atlas:{width:26,height:34,unit:"in"},imperial:{width:22,height:30,unit:"in"},antiquarian:{width:31,height:53,unit:"in"},pa0:{width:840,height:1120,unit:"mm"},pa1:{width:560,height:840,unit:"mm"},pa2:{width:420,height:560,unit:"mm"},pa3:{width:280,height:420,unit:"mm"},pa4:{width:210,height:280,unit:"mm"},pa5:{width:140,height:210,unit:"mm"},pa6:{width:105,height:140,unit:"mm"},pa7:{width:70,height:105,unit:"mm"},pa8:{width:52,height:70,unit:"mm"},pa9:{width:35,height:52,unit:"mm"},pa10:{width:26,height:35,unit:"mm"},f4:{width:210,height:330,unit:"mm"},a8landscape:{width:74,height:52,unit:"mm"}},t.mmToTenths=i,t.cssSizeToTenths=r,t.tenthsToMM=a},function(e,t,n){"use strict";function i(e,t,n){return p(!!e&&!!t,"A null end or start was passed to needsWarning. Check your types!!"),p(!("P1"in e||"P1"in t),"An object with 'P1' was passed to needsWarning. Check your types!!"),!l(e,t,n)||!s(e,t)||!u(e,t)}function r(e){return 24}function a(e){if(!e.times[0]||!e.times[0].beatTypes)return 0;var n=e.times[0].beats,i=h.reduce(n,function(e,t){return e+t.split("+").length},0);return t.NUMBER_SPACING*i+(e.times[0].beatTypes.length-1)*t.PLUS_SPACING}function o(e){if(!e.keySignatures[0])return 0;var t=e.keySignatures[0];return t.fifths||t.keyAlters?2+h.reduce(f(t),function(e,t){return e+t},0):-5}function l(e,t,n){var i=e&&e.clefs[n],r=t&&t.clefs[n];return!(!i||!r)&&(i.sign===r.sign&&i.line===r.line&&i.clefOctaveChange===r.clefOctaveChange)}function s(e,t){var n=e&&e.times[0],i=t&&t.times[0];return!(!n||!i)&&(JSON.stringify(n.beats)===JSON.stringify(i.beats)&&JSON.stringify(n.beatTypes)===JSON.stringify(i.beatTypes)&&!!n.senzaMisura==!!i.senzaMisura&&n.symbol===i.symbol)}function u(e,t){var n=e&&e.keySignatures[0],i=t&&t.keySignatures[0];return!(!n||!i)&&(n.fifths===i.fifths&&JSON.stringify(n.keySteps)===JSON.stringify(i.keySteps)&&JSON.stringify(n.keyAccidentals)===JSON.stringify(i.keyAccidentals)&&JSON.stringify(n.keyAlters)===JSON.stringify(i.keyAlters)&&n.mode===i.mode)}function c(e,t){return void 0===t&&(t=0),t?80:150}function f(e){function n(n,i){switch(!0){case i&&7+n<e.fifths:return t.DOUBLE_SHARP_WIDTH;case i&&7+n>=e.fifths:return t.SHARP_WIDTH;case!i&&7+n<-e.fifths:return t.DOUBLE_FLAT_WIDTH;case!i&&7+n>=-e.fifths:return t.FLAT_WIDTH;default:throw new Error("Impossible.")}}var i=[];if(e.keyAlters)return h.map(e.keyAlters,function(e){switch(e){case"-2":case"-1.5":return t.DOUBLE_FLAT_WIDTH;case"-1":case"-0.5":return t.FLAT_WIDTH;case"0":return t.NATURAL_WIDTH;case"0.5":case"1":return t.SHARP_WIDTH;case"1.5":case"2":return t.DOUBLE_SHARP_WIDTH;default:return console.warn("Unknown accidental ",e),t.SHARP_WIDTH}});var r=Math.min(7,Math.abs(e.fifths)),a=h.times(r,function(t){return(t+Math.max(0,Math.abs(e.fifths)-7))%7});return h.forEach(a,function(t){return i[t]=n(t,e.fifths>=0)}),i}function d(e){var t={},n="FCGDAEB",i="BEADGCF";if(e.fifths){var r=Math.min(7,Math.abs(e.fifths)),a=e.fifths>=0;(a?n:i).slice(0,r).split("").forEach(function(e){t[e]=a?1:-1})}else if(e.keySteps)for(var o=0;o<e.keySteps.length;++o)t[e.keySteps[o]]=parseInt(e.keyAlters[o],10);return t}var h=n(1),p=n(2);t.NUMBER_SPACING=28,t.PLUS_SPACING=12,t.CLEF_INDENTATION=7,t.FLAT_WIDTH=10,t.DOUBLE_FLAT_WIDTH=19,t.DOUBLE_SHARP_WIDTH=13,t.SHARP_WIDTH=11,t.NATURAL_WIDTH=11,t.needsWarning=i,t.clefWidth=r,t.timeWidth=a,t.keyWidth=o,t.clefsEqual=l,t.timesEqual=s,t.keysEqual=u,t.approximateWidth=c;var m;!function(e){e[e.No=0]="No",e[e.Yes=1]="Yes"}(m=t.AtEnd||(t.AtEnd={})),t.keyWidths=f,t.getNativeKeyAccidentals=d},function(e,t,n){"use strict";function i(e){return a.filter(e,function(e){return"ScorePart"===e._class})}function r(e,t){var n=[];return a.some(e,function(e){if("PartGroup"===e._class){var i=e;i.type===o.StartStop.Start?n.push(i):n=a.filter(n,function(e){return e.number!==i.number})}else{var r=e;if(r.id===t)return!0}}),n}var a=n(1),o=n(3);t.scoreParts=i,t.groupsForPart=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return r.DOM.line({className:this.props.className,stroke:this.props.stroke,strokeWidth:this.props.strokeWidth,x1:this.props.x1,x2:this.props.x2,y1:this.props.y1,y2:this.props.y2})},t}(r.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a},function(e,t,n){(function(e){"use strict";function i(e,t){return e=e.toLowerCase(),t=t&&t.toLowerCase(),""+e+(t?"_"+t:"")}function r(e,t,n,r){function a(e){--v.remaining,v.remaining||(y.forEach(v.cbs,function(e){return e(v.err)}),v.cbs=[])}++v.remaining;var c=i(e,n);if(t=s(t),!r&&b){var f=document.createElement("style");f.appendChild(document.createTextNode("@font-face{\n            font-family: "+e+";\n            src: url("+t+") format('truetype');\n            "+(n&&"bold"===n.toLowerCase()?"font-weight: bold;":"")+"\n        }")),document.head.appendChild(f),v.fonts[c]=v.fonts[c]||S,a()}else(b?l:o)(t,function(t,i){if(t)return a(t);var r=g.parse(i);if(v.fonts[c]=r,b){var o=document.styleSheets[0],l="@font-face{\n                    font-family: "+e+";\n                    src: url(data:font/truetype;charset=utf-8;base64,"+u(i)+") format('truetype');\n                    "+(n&&"bold"===n.toLowerCase()?"font-weight: bold;":"")+"\n                }";o.insertRule(l,0)}a()})}function a(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i+=1)n[i]=e[i];return t}function o(e,t){var i=n(148);i.readFile(e,function(e,n){return e?t(e):void t(null,a(n))})}function l(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return 200!==n.status?t(new Error("Font could not be loaded: "+n.statusText)):t(null,n.response)},n.send()}function s(e){return e.replace("root://",v.root)}function u(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i+=w[t[r]>>2],i+=w[(3&t[r])<<4|t[r+1]>>4],i+=w[(15&t[r+1])<<2|t[r+2]>>6],i+=w[63&t[r+2]];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i}function c(e,t,n,a){var o=i(e,n);a&&v.fonts[o]===S&&delete v.fonts[o],o in v.fonts||(v.fonts[o]=null,r(e,t,n,a))}function f(e){v.root=e}function d(e,t){v.fonts[i(e,t)]=S}function h(e){return v.remaining?void v.cbs.push(e):void e()}function p(e,t,n,r){var a=i(e,r),o=v.fonts[a];if(v.canvasContext&&o===S)return v.canvasContext.font=(r||"")+" "+n+"px "+e,{bottom:n,left:-n/18,right:v.canvasContext.measureText(t).width,top:-4*n/18};if(o===S)return console.warn(a+" was loaded without path data"),{bottom:1,left:0,right:1,top:0};if(!o)return console.warn(a+" is not loaded"),{bottom:1,left:0,right:1,top:0};var l=1e4,s=1e4,u=0,c=0;return o.forEachGlyph(t,0,0,n,{kerning:!0},function(e,t,n,i){var r=1/o.unitsPerEm*i;l=Math.min(t,l),u=Math.max(t,u),s=Math.min(n+e.yMin*r,s),c=Math.max(n+e.yMax*r,c)}),{bottom:c,left:l,right:u,top:s}}function m(e,t,n,i,r,a){return e+"_"+t+"_"+n+"_"+i+"_"+r+"_"+(a||"")}var v,g=n(136),y=n(1),b="browser"in e,S={};!function(e){e.fonts={},e.cbs=[],e.remaining=0,e.canvasContext=b?document.createElement("canvas").getContext("2d"):null,e.root=b?location.protocol+"//"+location.host+"/vendor/":"./vendor/"}(v||(v={}));var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.requireFont=c,t.setRoot=f,t.markPreloaded=d,t.whenReady=h,t.getTextBB=p,t.toPathData=y.memoize(function(e,t,n,r,a,o){var l=i(e,o),s=v.fonts[l];return s?s===S?(console.warn(l+" was loaded without path data"),""):s.getPath(t,n,r,a,{kerning:!0}).toPathData(3):(console.warn(l+" is not loaded"),"")},m)}).call(t,n(26))},function(e,t,n){"use strict";function i(e,t){e=m.cloneObject(e),t=m.cloneObject(t),p.isEqual(e,t)||console.warn("Invalid operation since "+JSON.stringify(e,null,2)+" != "+JSON.stringify(t,null,2)+". Doing it anyway.")}function r(e,t){for(var n=0;n<t.length-1;++n)if(e=e[t[n]],!e)return!1;return!0}function a(e,t){for(var n=0;n<t.length-1;++n)e=e[t[n]],h(e,"Invalid path: "+t.join(", "));return e}function o(e,t){var n=a(e,t.p),r=p.last(t.p);n[r]=t.oi,i(n[r],t.oi)}function l(e,t){var n=a(e,t.p),i=p.last(t.p);h(i>=0,"Invalid operation"),n.splice(i,0,t.li)}function s(e,t){var n=a(e,t.p),r=p.last(t.p);i(n[r],t.od),n[r]=t.oi}function u(e,t){var n=a(e,t.p),r=p.last(t.p);i(n[r],t.ld),n[r]=t.li}function c(e,t){var n=a(e,t.p),r=p.last(t.p);i(n[r],t.od),n[r]=void 0}function f(e,t){var n=a(e,t.p),r=p.last(t.p);h(r<n.length,"Invalid operation"),h(r>=0,"Invalid operation"),i(n[r],t.ld),n.splice(r,1)}function d(e,t){"od"in t&&"oi"in t?s(e,t):"od"in t?c(e,t):"oi"in t?o(e,t):"ld"in t&&"li"in t?u(e,t):"ld"in t?f(e,t):"li"in t?l(e,t):h(!1,"Unsupported operation")}var h=n(2),p=n(1),m=n(7);t.parentExists=r,t.findParent=a,t.set=o,t.insertToList=l,t.replace=s,t.replaceInList=u,t.remove=c,t.removeFromList=f,t.mutate=d},function(e,t){"use strict";function n(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}n.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},n.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},n.prototype.curveTo=n.prototype.bezierCurveTo=function(e,t,n,i,r,a){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:i,x:r,y:a})},n.prototype.quadTo=n.prototype.quadraticCurveTo=function(e,t,n,i){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:i})},n.prototype.close=n.prototype.closePath=function(){this.commands.push({type:"Z"})},n.prototype.extend=function(e){e.commands&&(e=e.commands),Array.prototype.push.apply(this.commands,e)},n.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},n.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function n(){for(var e="",n=0;n<arguments.length;n+=1){var i=arguments[n];i>=0&&n>0&&(e+=" "),e+=t(i)}return e}e=void 0!==e?e:2;for(var i="",r=0;r<this.commands.length;r+=1){var a=this.commands[r];"M"===a.type?i+="M"+n(a.x,a.y):"L"===a.type?i+="L"+n(a.x,a.y):"C"===a.type?i+="C"+n(a.x1,a.y1,a.x2,a.y2,a.x,a.y):"Q"===a.type?i+="Q"+n(a.x1,a.y1,a.x,a.y):"Z"===a.type&&(i+="Z")}return i},n.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&"black"!==this.fill&&(t+=null===this.fill?' fill="none"':' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},t.Path=n},function(e,t,n){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.p=e.concat(t.p),t}}function r(){var e=9007199254740991;return Math.floor(Math.random()*e)}function a(e,t,n){switch(e){case g.Type.Print:return!n.modelHasType(t,g.Type.VisualCursor);case g.Type.Grouping:return!n.modelHasType(t,g.Type.Print,g.Type.VisualCursor);case g.Type.FiguredBass:return!n.modelHasType(t,g.Type.Print,g.Type.Grouping,g.Type.VisualCursor);case g.Type.Attributes:return!n.modelHasType(t,g.Type.Print,g.Type.Grouping,g.Type.FiguredBass,g.Type.VisualCursor);case g.Type.Sound:return!n.modelHasType(t,g.Type.Print,g.Type.Grouping,g.Type.FiguredBass,g.Type.Attributes,g.Type.VisualCursor);case g.Type.Direction:return!n.modelHasType(t,g.Type.Print,g.Type.Grouping,g.Type.FiguredBass,g.Type.Attributes,g.Type.Sound,g.Type.VisualCursor);case g.Type.Harmony:return!1;case g.Type.Proxy:return!1;case g.Type.Spacer:return!1;case g.Type.Chord:case g.Type.VisualCursor:return!0}}function o(e,t){var n={},i={},r={},a={};return t.forEach(function(t){if("measures"!==t.p[0]){var o=parseInt(t.p[0],10),l=m.find(e.measures,function(e){return e.uuid===o});if(l&&"parts"===t.p[1]){var s=l.parts[t.p[2]];if(v(s,"part "+t.p[2]+" should exist in measure "+o),"staves"!==t.p[3]){v("voices"===t.p[3],"only voices are supported here");var u=s.voices[t.p[4]];v(u,"expected to find voice "+t.p[4]+" in part "+t.p[2]+" in measure "+o);var c=t.p.slice(0,5).join("++");if(!n[c]){n[c]=u;var f=0;i[c]=e.search(s.staves[1],0,g.Type.Attributes)[0]._snapshot;var d=i[c].time,h=i[c].divisions;r[c]=u.reduce(function(t,n,i){if(!e.modelHasType(n,g.Type.Chord))return t.concat(new k({idx:i,oldIdx:i,start:f,previousDivisions:0,newDivisions:0,newCount:0,newDots:0,newTimeModification:null,time:d,rest:!0,beam:null,touched:!1},n));var r=y.divisions(n,{time:d,divisions:h}),o=new k({idx:i,oldIdx:i,start:f,previousDivisions:r,newDivisions:r,newCount:y.count(n),newDots:y.dots(n),newTimeModification:y.timeModification(n),time:d,rest:!!y.rest(n),beam:y.beams(n),touched:!1},n);return a[n.key]=o,f+=r,t.concat(o)},[])}var p=i[c].divisions;if(6!==t.p.length){var b=u[t.p[5]];if(v(b,"expected to find element $"+t.p[5]+" in part "+t.p[2]+" in voice "+t.p[4]+" in measure "+o),e.modelHasType(b,g.Type.Chord)&&"notes"===t.p[6]&&0===t.p[7]){var S=a[b.key];9===t.p.length&&"pitch"===t.p[8]&&(S.touched=!0,void 0!==t.oi?S.rest=!t.oi:void 0!==t.od&&(S.rest=!0)),9===t.p.length&&"rest"===t.p[8]&&(S.touched=!0,void 0!==t.oi?S.rest=!!t.oi:void 0!==t.od&&(S.rest=!1)),"noteType"===t.p[8]&&"duration"===t.p[9]&&(t.oi?S.newCount=t.oi:v(!1,"noteType is required...")),9===t.p.length&&"dots"===t.p[8]&&(t.oi?S.newDots=t.oi.length:t.od&&(S.newDots=0)),S.newDivisions=y.divisions({count:S.newCount,dots:S.newDots,timeModification:S.newTimeModification},{time:S.time,divisions:p}),S.newDivisions!==S.previousDivisions&&(S.touched=!0)}}else{if(t.li){var w="Chord"===t.li._class,N=w?y.beams(t.li):null,D=w?y.count(t.li):0,T=w?y.dots(t.li):0,F=w?y.timeModification(t.li):null,x=w&&!!y.rest(t.li),B=w?y.divisions(t.li,{time:i[c].time,divisions:p}):0,C=void 0,L=parseInt(t.p[5],10);v(m.isInteger(L)&&!isNaN(L),"Expected an integer"),C=0===L?0:r[c][L-1].newDivisions+r[c][L-1].start;for(var W=new k({idx:L,oldIdx:void 0,newCount:D,newDivisions:B,newDots:T,previousDivisions:0,newTimeModification:F,start:C,time:i[c].time,rest:x,beam:N,touched:!0}),_=L;_<r[c].length;++_)r[c][_].start+=B,r[c][_].idx+=1;r[c].splice(L,0,W)}if(t.ld){var B="Chord"===t.ld._class?y.divisions(t.ld,{time:i[c].time,divisions:p}):0,L=parseInt(t.p[5],10);r[c].splice(L,1);for(var _=L;_<r[c].length;++_)r[c][_].start-=B,r[c][_].idx-=1}}}}}}),{segments:n,attributes:i,elementInfos:r,elementInfoByChord:a}}function l(e,t){t=t.slice();var n,i,r,a=o(e,t);return n=a.segments,i=a.attributes,r=a.elementInfos,m.forEach(r,function(n,r){var a=n.some(function(e){return e.touched});if(a){var o=S.simplifyRests(n,e,i[r]);t=t.concat(o.map(function(e,t){return m.extend({},e,{p:r.split("++").concat(e.p)})}))}}),t}function s(e,t){return t}function u(e,t){var n=o(e,t),i=(n.segments,n.attributes,n.elementInfos),r=t.filter(function(e){return e.li&&"VisualCursor"===e.li._class});return r.length?(v(1===r.length,"Limit 1 cursor operation per patch"),t=t.slice(),m.forEach(e.measures,function(n){m.forEach(n.parts,function(r,a){m.forEach(r.voices,function(r,o){if(r){var l=[n.uuid,"parts",a,"voices",o].join("++"),s=i[l];if(s){var u=0;m.forEach(s,function(i){isNaN(i.idx)||isNaN(i.oldIdx)||!e.modelHasType(r[i.oldIdx],g.Type.VisualCursor)||(t.push({p:[n.uuid,"parts",a,"voices",o,i.idx+u],ld:JSON.parse(JSON.stringify(r[i.oldIdx]))}),u-=1)})}else{var c=0;m.forEach(r,function(i,r){e.modelHasType(i,g.Type.VisualCursor)&&(t.push({p:[n.uuid,"parts",a,"voices",o,r+c],ld:JSON.parse(JSON.stringify(i))}),c-=1)})}}})})}),t):t}function c(e,t){t=t.slice();var n=o(e,t),i=n.segments,r=n.elementInfos;return m.forEach(r,function(e,n){function r(){var i=m.findIndex(c,function(t){return!e[t].rest}),r=m.findLastIndex(c,function(t){return!e[t].rest});f=f.slice(i,r+1),c=c.slice(i,r+1),c.length<2||(c.forEach(function(e){return d[e]=!0}),m.some(c,function(t){return e[t].touched})&&(t=t.concat(c.map(function(t,i){var r=null,a=m.times(f[i],function(e){return r=t===c[0]||f[i-1]<e+1?t===m.last(c)||f[i+1]<e+1?0===i?h.BeamType.ForwardHook:h.BeamType.BackwardHook:h.BeamType.Begin:t===m.last(c)||f[i+1]<e+1?h.BeamType.End:h.BeamType.Continue,p.buildBeam(function(t){return t.number(e+1).type(r)})}),o={p:n.split("++").concat([t,"notes",0,"beams"]),oi:a};return e[t].beam&&(o.od=e[t].beam),o}))))}function a(e){if(S-=e,S<=0){if(r(),o=null,c=[],f=[],++g,!v[g])return void(S=1/0);var t=y.divisions(v[g],{time:s,divisions:l.divisions});S+=t}}var o,l=i[n],s=e[0].time,u=b.getBeamingPattern(s),c=[],f=[],d=[],v=u,g=-1,S=0;a(0),e.forEach(function(e,t){if(e.newDivisions){var n=y.divisions({count:e.newCount,dots:e.newDots},{time:s,divisions:l.divisions},!0),i=y.countToIsBeamable[e.newCount]&&(!e.rest||e.beam)&&n<=S;i?(o=e,c.push(t),f.push(B[e.newCount])):(r(),o=null,c=[],f=[]),a(n)}}),r(),e.forEach(function(e,i){e.beam&&!d[i]&&(t=t.concat({p:n.split("++").concat([i,"notes",0,"beams"]),od:e.beam}))})}),t}function f(e,t){return t=l(e,t),t=c(e,t),t=s(e,t),t=u(e,t)}function d(e,t,n,i,r){var a;if(n instanceof Array)a=f(t,n);else if("function"==typeof n){v(void 0===i&&void 0===r,"createPatch: invalid usage");var o=n;
a=o(new x(t)).patches,e||(a=f(t,a))}else{var l=n,s=r;a=d(e,t,function(e){return e.measure(l,function(e){return e.part(i,s)})})}return a}var h=n(3),p=n(22),m=n(1),v=n(2),g=n(5),y=n(8),b=n(47),S=n(130),w=n(7),N=function(){function e(e,t,n){this._patches=[],this._segment=e,this._document=t,this._idx=n}return Object.defineProperty(e.prototype,"patches",{get:function(){return this._patches.slice()},enumerable:!0,configurable:!0}),e.prototype.at=function(e){return this._idx=e,this},e.prototype.next=function(){return++this._idx,this},e.prototype.atDiv=function(e,t){for(var n=0,i=0;i<this._segment.length;++i){if(e<n+this._segment[i].divCount||e===n+this._segment[i].divCount&&a(t,this._segment[i],this._document)){var r=n,o=n+this._segment[i].divCount;if(e===r&&a(t,this._segment[i],this._document))return this.at(i);if(e===o)return this.at(i+1);var l=e-r,s=o-e;return this.at(i).setDivCount(l).next().insertSpacer(s).at(i+1)}n+=this._segment[i].divCount}var u=e-n;return u?this.at(this._segment.length).insertSpacer(u).next():this.at(this._segment.length)},e.prototype.setDivCount=function(e){return this._patches=this._patches.concat({oi:e,od:this._segment[this._idx].divCount,p:[this._idx,"divCount"]}),this},e.prototype.barline=function(e){var t=this._segment[this._idx];return v(t,"no such model"),v(this._document.modelHasType(t,g.Type.Barline),"model is not barline"),this._patches=this._patches.concat(p.patchBarline(t,e).map(i(this._idx))),this},e.prototype.insertBarline=function(e){var t=p.buildBarline(e),n=[this._idx];return this._patches=this._patches.concat({li:t,p:n}),this},e.prototype.attributes=function(e){var t=this._segment[this._idx];return v(t,"no such model"),v(this._document.modelHasType(t,g.Type.Attributes),"model is not attributes"),this._patches=this._patches.concat(p.patchAttributes(t,e).map(i(this._idx))),this},e.prototype.insertAttributes=function(e){var t=p.buildAttributes(e),n=[this._idx];return this._patches=this._patches.concat({li:t,p:n}),this},e.prototype.direction=function(e){var t=this._segment[this._idx];return v(t,"no such model"),v(this._document.modelHasType(t,g.Type.Direction),"model is not direction"),this._patches=this._patches.concat(p.patchDirection(t,e).map(i(this._idx))),this},e.prototype.insertDirection=function(e){if("function"==typeof e){var t=p.buildDirection(e),n=[this._idx];return this._patches=this._patches.concat({li:t,p:n}),this}var i=[this._idx],r=w.cloneObject(e);return r._class="Direction",this._patches=this._patches.concat({li:r,p:i}),this},e.prototype.print=function(e){var t=this._segment[this._idx];return v(t,"no such model"),v(this._document.modelHasType(t,g.Type.Print),"model is not Print"),this._patches=this._patches.concat(p.patchPrint(t,e).map(i(this._idx))),this},e.prototype.insertPrint=function(e){var t=p.buildPrint(e),n=[this._idx];return this._patches=this._patches.concat({li:t,p:n}),this},e.prototype.insertSpacer=function(e){return this._patches=this._patches.concat({li:{_class:"Spacer",divCount:e},p:[this._idx]}),this},e.prototype.remove=function(){return this._patches=this._patches.concat({p:[this._idx],ld:this._segment[this._idx]}),this},e}();t.StaffBuilder=N;var D=function(){function e(e,t,n){this._patches=[],this._segment=e,this._document=t,this._idx=n}return Object.defineProperty(e.prototype,"patches",{get:function(){return this._patches.slice()},enumerable:!0,configurable:!0}),e.prototype.at=function(e){return this._idx=e,this},e.prototype.next=function(){return++this._idx,this},e.prototype.addVisualCursor=function(){return this._patches=this._patches.concat({li:{_class:"VisualCursor"},p:[this._idx]}),this},e.prototype.note=function(e,t){var n=this._segment[this._idx];v(n,"no such model"),v(this._document.modelHasType(n,g.Type.Chord),"model is not a chord");var r=n[e];return v(r,"invalid note"),this._patches=this._patches.concat(p.patchNote(r,t).map(i(this._idx,"notes",e))),this},e.prototype.insertChord=function(e){v(!isNaN(this._idx),"%s must be a number",this._idx);var t=e.map(function(e){return p.buildNote(e)});t._class="Chord",v(t[0].noteType.duration,"Invalid note type");var n=[this._idx];return this._patches=this._patches.concat({li:t,p:n}),this},e.prototype.insertNote=function(e,t){var n=this._segment[this._idx];v(n,"no such model"),v(this._document.modelHasType(n,g.Type.Chord),"model is not a chord");var i=p.buildNote(t),r=n;v(r[e-1]||r[e+1]||!r.length,"Invalid position for note"),v(i.noteType.duration,"Invalid note type");var a=[this._idx,"notes",e];return this._patches=this._patches.concat({p:a,li:i}),this},e.prototype.remove=function(){return this._patches=this._patches.concat({p:[this._idx],ld:this._segment[this._idx]}),this},e}();t.VoiceBuilder=D;var T=function(){function e(e,t){this._patches=[],this._part=e,this._document=t}return Object.defineProperty(e.prototype,"patches",{get:function(){return this._patches.slice()},enumerable:!0,configurable:!0}),e.prototype.voice=function(e,t,n){var r=this._part?this._part.voices[e]:null;return v(!this._part||Boolean(r),"invalid voice"),this._patches=this._patches.concat(t(new D(r,this._document,n)).patches.map(i("voices",e))),this},e.prototype.staff=function(e,t,n){var r=this._part?this._part.staves[e]:null;return v(!this._part||Boolean(r),"invalid staff"),this._patches=this._patches.concat(t(new N(r,this._document,n)).patches.map(i("staves",e))),this},e}();t.PartBuilder=T;var F=function(){function e(e,t){this._patches=[],this._measure=e,this._document=t}return Object.defineProperty(e.prototype,"patches",{get:function(){return this._patches.slice()},enumerable:!0,configurable:!0}),e.prototype.part=function(e,t){var n=this._measure?this._measure.parts[e]:null;return v(!this._measure||Boolean(n),"invalid part id"),this._patches=this._patches.concat(t(new T(n,this._document)).patches.map(i("parts",e))),this},e}();t.MeasureBuilder=F;var x=function(){function e(e){this._patches=[],this._doc=e}return Object.defineProperty(e.prototype,"patches",{get:function(){return this._patches.slice()},enumerable:!0,configurable:!0}),e.prototype.measure=function(e,t){var n=m.find(this._doc.measures,function(t){return t.uuid===e});return v(Boolean(n),"invalid measure uuid "+e),this._patches=this._patches.concat(t(new F(n,this._doc)).patches.map(i(e))),this},e.prototype.insertMeasure=function(e,t,n){return void 0===n&&(n=r()),this._patches=this._patches.concat({li:{uuid:n},p:["measures",e]}),this._patches=this._patches.concat(t(new F(null,this._doc)).patches.map(i(n))),this},e.prototype.removeMeasure=function(e){return this._patches=this._patches.concat({ld:JSON.parse(JSON.stringify(this._doc.measures[e])),p:["measures",e]}),this},e}();t.DocumentBuilder=x;var k=function(){function e(e,t){m.extend(this,e),this._originalModel=t}return e.prototype.toSpec=function(){var e=this;if(!this._originalModel)throw new Error("Only valid for mutations!");var t=w.cloneObject(this._originalModel);if("Chord"===t._class||t.length){var n=t;return m.forEach(n,function(t){t.noteType.duration=e.newCount,e.rest?(t.rest=t.rest||{},delete t.pitch):delete t.rest,e.newTimeModification?t.timeModification=e.newTimeModification:delete t.timeModification,isNaN(e.newDots)?delete t.dots:t.dots=m.times(e.newDots,function(){return{}})}),n}return t},e}();t.ModelMetreMutationSpec=k;var B=(C={},C[h.Count.Eighth]=1,C[h.Count._16th]=2,C[h.Count._32nd]=3,C[h.Count._64th]=4,C[h.Count._128th]=5,C[h.Count._256th]=6,C[h.Count._512th]=7,C);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d;var C},function(e,t){"use strict";function n(e){this.font=e}function i(e){this.cmap=e}function r(e,t){this.encoding=e,this.charset=t}function a(e){var n;switch(e.version){case 1:this.names=t.standardNames.slice();break;case 2:for(this.names=new Array(e.numberOfGlyphs),n=0;n<e.numberOfGlyphs;n++)e.glyphNameIndex[n]<t.standardNames.length?this.names[n]=t.standardNames[e.glyphNameIndex[n]]:this.names[n]=e.names[e.glyphNameIndex[n]-t.standardNames.length];break;case 2.5:for(this.names=new Array(e.numberOfGlyphs),n=0;n<e.numberOfGlyphs;n++)this.names[n]=t.standardNames[n+e.glyphNameIndex[n]];break;case 3:this.names=[]}}function o(e){for(var t,n=e.tables.cmap.glyphIndexMap,i=Object.keys(n),r=0;r<i.length;r+=1){var a=i[r],o=n[a];t=e.glyphs[o],t.addUnicode(parseInt(a))}for(r=0;r<e.glyphs.length;r+=1)t=e.glyphs[r],e.cffEncoding?t.name=e.cffEncoding.charset[r]:t.name=e.glyphNames.glyphIndexToName(r)}var l=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],u=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],c=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];n.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.font.glyphs;if(!n)return null;for(var i=0;i<n.length;i+=1)for(var r=n[i],a=0;a<r.unicodes.length;a+=1)if(r.unicodes[a]===t)return i},i.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0},r.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.encoding[t];return this.charset.indexOf(n)},a.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},a.prototype.glyphIndexToName=function(e){return this.names[e]},t.cffStandardStrings=l,t.cffStandardEncoding=s,t.cffExpertEncoding=u,t.standardNames=c,t.DefaultEncoding=n,t.CmapEncoding=i,t.CffEncoding=r,t.GlyphNames=a,t.addGlyphNames=o},function(e,t,n){e.exports=n(63)},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<e.length;++n)if(e[n].type===r.OddEvenBoth.Both||e[n].type===r.OddEvenBoth.Even&&t%2===0||e[n].type===r.OddEvenBoth.Odd&&t%2===1)return e[n];return a(!1,"Invalid page margins"),null}var r=n(3),a=n(2);t.getPageMargins=i},function(e,t,n){"use strict";function i(e){this.font=e.font||null,this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],this.xMin=e.xMin||0,this.yMin=e.yMin||0,this.xMax=e.xMax||0,this.yMax=e.yMax||0,this.advanceWidth=e.advanceWidth||0,this.path=e.path||null}var r=n(12),a=n(134),o=n(19);i.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},i.prototype.getPath=function(e,t,n){e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72;for(var i=1/this.font.unitsPerEm*n,r=new o.Path,a=this.path.commands,l=0;l<a.length;l+=1){var s=a[l];"M"===s.type?r.moveTo(e+s.x*i,t+-s.y*i):"L"===s.type?r.lineTo(e+s.x*i,t+-s.y*i):"Q"===s.type?r.quadraticCurveTo(e+s.x1*i,t+-s.y1*i,e+s.x*i,t+-s.y*i):"C"===s.type?r.curveTo(e+s.x1*i,t+-s.y1*i,e+s.x2*i,t+-s.y2*i,e+s.x*i,t+-s.y*i):"Z"===s.type&&r.closePath()}return r},i.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var i=this.points[n];t.push(i),i.lastPointOfContour&&(e.push(t),t=[])}return r.argument(0===t.length,"There are still points left in the current contour."),e},i.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],i=0;i<e.length;i+=1){var r=e[i];"Z"!==r.type&&(t.push(r.x),n.push(r.y)),"Q"!==r.type&&"C"!==r.type||(t.push(r.x1),n.push(r.y1)),"C"===r.type&&(t.push(r.x2),n.push(r.y2))}var a={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:0};return a.rightSideBearing=this.advanceWidth-a.leftSideBearing-(a.xMax-a.xMin),a},i.prototype.draw=function(e,t,n,i){this.getPath(t,n,i).draw(e)},i.prototype.drawPoints=function(e,t,n,i){function r(t,n,i,r){var a=2*Math.PI;e.beginPath();for(var o=0;o<t.length;o+=1)e.moveTo(n+t[o].x*r,i+t[o].y*r),e.arc(n+t[o].x*r,i+t[o].y*r,2,0,a,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,i=void 0!==i?i:24;for(var a=1/this.font.unitsPerEm*i,o=[],l=[],s=this.path,u=0;u<s.commands.length;u+=1){var c=s.commands[u];void 0!==c.x&&o.push({x:c.x,y:-c.y}),void 0!==c.x1&&l.push({x:c.x1,y:-c.y1}),void 0!==c.x2&&l.push({x:c.x2,y:-c.y2})}e.fillStyle="blue",r(o,t,n,a),e.fillStyle="red",r(l,t,n,a)},i.prototype.drawMetrics=function(e,t,n,i){var r;t=void 0!==t?t:0,n=void 0!==n?n:0,i=void 0!==i?i:24,r=1/this.font.unitsPerEm*i,e.lineWidth=1,e.strokeStyle="black",a.line(e,t,-1e4,t,1e4),a.line(e,-1e4,n,1e4,n),e.strokeStyle="blue",a.line(e,t+this.xMin*r,-1e4,t+this.xMin*r,1e4),a.line(e,t+this.xMax*r,-1e4,t+this.xMax*r,1e4),a.line(e,-1e4,n+-this.yMin*r,1e4,n+-this.yMin*r),a.line(e,-1e4,n+-this.yMax*r,1e4,n+-this.yMax*r),e.strokeStyle="green",a.line(e,t+this.advanceWidth*r,-1e4,t+this.advanceWidth*r,1e4)},t.Glyph=i},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=n(12),a=32768,o=2147483648,l={},s={},u={};s.BYTE=function(e){return r.argument(e>=0&&e<=255,"Byte value should be between 0 and 255."),[e]},u.BYTE=i(1),s.CHAR=function(e){return[e.charCodeAt(0)]},u.BYTE=i(1),s.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t.push(e.charCodeAt(n));return t},u.CHARARRAY=function(e){return e.length},s.USHORT=function(e){return[e>>8&255,255&e]},u.USHORT=i(2),s.SHORT=function(e){return e>=a&&(e=-(2*a-e)),[e>>8&255,255&e]},u.SHORT=i(2),s.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},u.UINT24=i(3),s.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},u.ULONG=i(4),s.LONG=function(e){return e>=o&&(e=-(2*o-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},u.LONG=i(4),s.FIXED=s.ULONG,u.FIXED=u.ULONG,s.FWORD=s.SHORT,u.FWORD=u.SHORT,s.UFWORD=s.USHORT,u.UFWORD=u.USHORT,s.LONGDATETIME=function(){return[0,0,0,0,0,0,0,0]},u.LONGDATETIME=i(8),s.TAG=function(e){return r.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},u.TAG=i(4),s.Card8=s.BYTE,u.Card8=u.BYTE,s.Card16=s.USHORT,u.Card16=u.USHORT,s.OffSize=s.BYTE,u.OffSize=u.BYTE,s.SID=s.USHORT,u.SID=u.USHORT,s.NUMBER=function(e){return e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?(e-=108,[(e>>8)+247,255&e]):e>=-1131&&e<=-108?(e=-e-108,[(e>>8)+251,255&e]):e>=-32768&&e<=32767?s.NUMBER16(e):s.NUMBER32(e)},u.NUMBER=function(e){return s.NUMBER(e).length},s.NUMBER16=function(e){return[28,e>>8&255,255&e]},u.NUMBER16=i(2),s.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},u.NUMBER32=i(4),s.NAME=s.CHARARRAY,u.NAME=u.CHARARRAY,s.STRING=s.CHARARRAY,u.STRING=u.CHARARRAY,s.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1)t.push(0),t.push(e.charCodeAt(n));return t},u.UTF16=function(e){return 2*e.length},s.INDEX=function(e){var t,n=1,i=[n],r=[],a=0;for(t=0;t<e.length;t+=1){var o=s.OBJECT(e[t]);Array.prototype.push.apply(r,o),a+=o.length,n+=o.length,i.push(n)}if(0===r.length)return[0,0];var l=[],u=1+Math.floor(Math.log(a)/Math.log(2))/8|0,c=[void 0,s.BYTE,s.USHORT,s.UINT24,s.ULONG][u];for(t=0;t<i.length;t+=1){var f=c(i[t]);Array.prototype.push.apply(l,f)}return Array.prototype.concat(s.Card16(e.length),s.OffSize(u),l,r)},u.INDEX=function(e){return s.INDEX(e).length},s.DICT=function(e){for(var t=[],n=Object.keys(e),i=n.length,r=0;r<i;r+=1){var a=parseInt(n[r],0),o=e[a];t=t.concat(s.OPERAND(o.value,o.type)),t=t.concat(s.OPERATOR(a))}return t},u.DICT=function(e){return s.DICT(e).length},s.OPERATOR=function(e){return e<1200?[e]:[12,e-1200]},s.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var i=0;i<t.length;i+=1)r.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(s.OPERAND(e[i],t[i]));else n="SID"===t?n.concat(s.NUMBER(e)):"offset"===t?n.concat(s.NUMBER32(e)):n.concat(s.NUMBER(e));return n},s.OP=s.BYTE,u.OP=u.BYTE;var c="function"==typeof WeakMap&&new WeakMap;s.CHARSTRING=function(e){if(c&&c.has(e))return c.get(e);for(var t=[],n=e.length,i=0;i<n;i+=1){var r=e[i];t=t.concat(s[r.type](r.value))}return c&&c.set(e,t),t},u.CHARSTRING=function(e){return s.CHARSTRING(e).length},s.OBJECT=function(e){var t=s[e.type];return r.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},s.TABLE=function(e){for(var t=[],n=e.fields.length,i=0;i<n;i+=1){var a=e.fields[i],o=s[a.type];r.argument(void 0!==o,"No encoding function for field type "+a.type);var l=e[a.name];void 0===l&&(l=a.value);var u=o(l);t=t.concat(u)}return t},s.LITERAL=function(e){return e},u.LITERAL=function(e){return e.length},t.decode=l,t.encode=s,t.sizeOf=u},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===i||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){m&&h&&(m=!1,h.length?p=h.concat(p):v=-1,p.length&&l())}function l(){if(!m){var e=r(o);m=!0;for(var t=p.length;t;){for(h=p,p=[];++v<t;)h&&h[v].run();v=-1,t=p.length}h=null,m=!1,a(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,f,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:i}catch(e){f=i}}();var h,p=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new s(e,t)),1!==p.length||m||r(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){"use strict";var n;!function(e){e[e.START_OF_LAYOUT_ELEMENTS=0]="START_OF_LAYOUT_ELEMENTS",e[e.Print=10]="Print",e[e.Grouping=30]="Grouping",e[e.FiguredBass=40]="FiguredBass",e[e.END_OF_LAYOUT_ELEMENTS=99]="END_OF_LAYOUT_ELEMENTS",e[e.START_OF_STAFF_ELEMENTS=100]="START_OF_STAFF_ELEMENTS",e[e.Attributes=110]="Attributes",e[e.Sound=120]="Sound",e[e.Direction=130]="Direction",e[e.Harmony=140]="Harmony",e[e.Proxy=150]="Proxy",e[e.Spacer=160]="Spacer",e[e.END_OF_STAFF_ELEMENTS=199]="END_OF_STAFF_ELEMENTS",e[e.START_OF_VOICE_ELEMENTS=200]="START_OF_VOICE_ELEMENTS",e[e.Chord=220]="Chord",e[e.END_OF_VOICE_ELEMENTS=299]="END_OF_VOICE_ELEMENTS",e[e.VisualCursor=398]="VisualCursor",e[e.Barline=399]="Barline"}(n||(n={})),n.Note=n.Chord,Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";var i=n(34),r=!1,a=function(){function e(e){if(r)throw new Error("There can only be one Satie Application.");r=!0,i.init(e)}return e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a},function(e,t,n){"use strict";function i(e){return!!(l.isUndefined(e)||l.isNull(e)||l.isBoolean(e)||l.isNumber(e)||l.isString(e))||(l.isArray(e)?e.every(i):!!l.isPlainObject(e)&&Object.keys(e).every(function(t){return i(e[t])}))}function r(e,t,n,r,c,v){o(i(r),"All operations must be serializable.");var g=r.p;if(2===g.length&&"measures"===g[0]){var y={p:r.p.slice(1),ld:r.ld,li:r.li};return void a(t,n,y,c)}if(1===g.length&&"divisions"===g[0]){var b=[];return void t.forEach(function(e){Object.keys(e.parts).forEach(function(t){var n=e.parts[t];n.staves.concat(n.voices).forEach(function(e){e&&b.push(e)})}),u.normalizeDivisionsInPlace(n,b,r.oi)})}var S=parseInt(String(g[0]),10),w=l.find(t,function(e){return e.uuid===S});o(Boolean(w),"Invalid operation path: no such measure "+g[0]),o("parts"===g[1],"Invalid operation path: only parts is supported, not "+g[1]);var N=w.parts[g[2]];o(Boolean(N),"Invalid operation path: no such part "+N),++w.version,o("voices"===g[3]||"staves"===g[3],"Invalid operation path: "+g[3]+' should have been "voices" or "staves');var D=c.cleanlinessTracking.measures[S];if(D&&(D.clean=null),"voices"===g[3]){var T=N.voices[parseInt(String(g[4]),10)];if(o(Boolean(T),"Invalid operation path: No such voice "+g.slice(0,4).join(", ")),6===g.length&&(r.li&&!r.ld||!r.li&&r.ld))return v(),void m["default"](n,T,r,c);var F=T[parseInt(String(g[5]),10)];o(Boolean(F),"Invalid operation path: No such element "+g.slice(0,5).join(", "));var y=l.cloneDeep(r);y.p=g.slice(6),n.modelHasType(F,s.Type.Chord)?h["default"](F,y):o(!1,"Invalid operation path: No reducer for",F)}else if("staves"===g[3]){var x=N.staves[parseInt(String(g[4]),10)];if(o(Boolean(x),"Invalid operation path: No such staff "+g.slice(0,4).join(", ")),6===g.length&&(r.li&&!r.ld||!r.li&&r.ld))return v(),void m["default"](n,x,r,c);var F=x[parseInt(String(g[5]),10)];o(Boolean(F),"Invalid operation path: No such element "+g.slice(0,5).join(", "));var y=l.cloneDeep(r);if(y.p=g.slice(6),n.modelHasType(F,s.Type.Barline))d["default"](F,y);else if(n.modelHasType(F,s.Type.Attributes)){if(!e){var k=c.cleanlinessTracking.measures;Object.keys(k).forEach(function(e){k[e]&&(k[e].clean=null)})}f["default"](e,F,y)}else n.modelHasType(F,s.Type.Print)?p["default"](e,F,y):o(!1,"Invalid operation path: No reducer for %s",F)}}function a(e,t,n,i){var r,a=!1;if(void 0!==n.ld&&1===n.p.length){a=!0;var u=n.p[0];o(!isNaN(u),"Measure index "+u+" must be"),o(Boolean(n.ld.uuid),"uuid must be specified"),o(n.ld.uuid===e[u].uuid,"invalid uuid "+n.ld.uuid+" != "+e[u].uuid),r=e[u],e.splice(u,1),e.slice(u).forEach(function(e){++e.version,--e.idx,isNaN(parseInt(e.number,10))?console.warn("Cannot change bar number for invalid measure number ",e.number):e.number=String(parseInt(e.number,10)-1)})}if(void 0!==n.li&&1===n.p.length){a=!0;var u=n.p[0];o(!isNaN(u),"Measure index "+u+" must be"),o(Boolean(n.li.uuid),"uuid must be specified"),
r=r||e[u-1]||e[u+1];var f=r.parts,d=c.cloneObject(n.li.parts)||{};l.forEach(f,function(e,n){d[n]=d[n]||{voices:[],staves:[]},l.forEach(e.staves,function(e,i){if(e){d[n].staves[i]?d[n].staves[i]=d[n].staves[i].map(function(e){return t.fromSpec(e)})||[]:d[n].staves[i]=[];var r=d[n].staves[i];r.divisions=e.divisions,r.part=e.part,r.owner=e.owner,r.ownerType=e.ownerType}else d[n].staves[i]=d[n].staves[i]||null}),l.forEach(e.voices,function(e,r){if(e){d[n].voices[r]?d[n].voices[r]=d[n].voices[r].map(function(e){var n=t.fromSpec(e);return i.modelHasType(n,s.Type.VisualCursor)&&(i._visualCursor=n),n})||[]:d[n].voices[r]=[];var a=d[n].voices[r];a.divisions=e.divisions,a.part=e.part,a.owner=e.owner,a.ownerType=e.ownerType}else d[n].voices[r]=d[n].voices[r]||null})});var h={idx:u,uuid:n.li.uuid,number:""+(u+1),implicit:!1,width:NaN,nonControlling:!1,parts:d,version:0};r.parts=f,e.splice(u,0,h),e.slice(u+1).forEach(function(e){++e.idx,++e.version,isNaN(parseInt(e.number,10))?console.warn("Cannot change bar number for invalid measure number ",e.number):e.number=String(parseInt(e.number,10)+1)}),e.forEach(function(e){return++e.version})}o(a,"Invalid operation type for applyMeasureOp's context: "+JSON.stringify(n))}var o=n(2),l=n(1),s=n(5),u=n(31),c=n(7),f=n(76),d=n(83),h=n(90),p=n(117),m=n(120);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r,t.applyMeasureOp=a},function(e,t,n){"use strict";function i(e,t,n){var i=0,r=0;do i+=e[r].divCount||0,(i<=t||!n)&&++r;while(i<=t&&e[r]);return r}var r=n(7),a=n(7),o=function(){function e(e,t,n){this.newParts={},this.measure=t,this.message="DivisionOverflowException: max division should be "+(e+" in measure "+this.measure.idx),this.stack=(new Error).stack,this.maxDiv=e,this.oldParts={P1:{voices:t.parts.P1.voices.map(function(t){if(!t)return null;var n=i(t,e,!0),r=t.slice(0,n);return r}),staves:t.parts.P1.staves.map(function(t){if(!t)return null;var n=i(t,e,!1),r=t.slice(0,n);return r.filter(function(e){return"Barline"!==e._class})})}},this.newParts={P1:{voices:t.parts.P1.voices.map(function(t){if(!t)return null;var n=i(t,e,!0),r=t.slice(n);return r}),staves:t.parts.P1.staves.map(function(t){if(!t)return null;var n=i(t,e,!1),r=t.slice(n);return r})}},this.attributes=n}return e.prototype.getOperations=function(){return a.cloneObject([{ld:this.measure,li:{uuid:this.measure.uuid,parts:this.oldParts},p:["measures",this.measure.idx]},{li:{uuid:Math.floor(Math.random()*r.MAX_SAFE_INTEGER),parts:this.newParts},p:["measures",this.measure.idx+1]}])},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o},function(e,t,n){"use strict";function i(e,t,n){void 0===n&&(n=0);var i=n||r.reduce(t,function(e,t){return e?a.lcm(e,t.divisions):1},0);return r.forEach(t,function(t){if(t){var n=i/t.divisions;t.divisions=i,r.forEach(t,function(t){if(t.divCount&&(t.divCount*=n),e.modelHasType(t,o.Type.Chord)&&r.forEach(t,function(e){e.duration&&(e.duration*=n)}),e.modelHasType(t,o.Type.Attributes)){t.divisions&&(n=i/t.divisions);try{t.divisions=i}catch(a){console.warn("Could not set divisions")}}})}}),i}var r=n(1),a=n(7),o=n(5);t.normalizeDivisionsInPlace=i},function(e,t,n){"use strict";function i(e){function t(t){var n=b.segmentInstance,i=l.some(t,function(t){return"divisions"===t.p[0]||(o(String(t.p[0])===String(e.measure.uuid),"Unexpected fixup for a measure "+t.p[0]+" other than the current "+e.measure.uuid),o("parts"===t.p[1],"Expected p[1] to be parts"),o(t.p[2]===n.part,"Expected part "+t.p[2]+" to be "+n.part),"voice"===n.ownerType?("string"==typeof t.p[4]&&(t.p[4]=parseInt(t.p[4],10)),o("voices"===t.p[3],"We are in a voice, so we can only patch the voice"),o(t.p[4]===n.owner,"Expected voice owner "+n.owner+", got "+t.p[4]),6===t.p.length&&t.p[5]<=b.segmentPosition||t.p[5]<b.segmentPosition):"staff"===n.ownerType?(o("staves"===t.p[3],"We are in a staff, so we can only patch the staff"),o(t.p[4]===n.owner,"Expected staff owner "+n.owner+", got "+t.p[4]),6===t.p.length&&t.p[5]<=b.segmentPosition||t.p[5]<b.segmentPosition):void o(!1,"Invalid segment owner type "+n.ownerType))});e.fixup(n,t,i)}var n=e.measure;o(!!e.attributes,"Attributes must be defined");var i=h.cloneObject(e.attributes),r=e.print,d=0;e.document.cleanlinessTracking.measures[e.measure.uuid]||(e.document.cleanlinessTracking.measures[e.measure.uuid]={clean:null,x:{},layout:null});var g=e.document.cleanlinessTracking.measures[e.measure.uuid],y=g.layout;o(e.segments.length>=1,"_processMeasure expects at least one segment."),Object.keys(e.measure.parts).forEach(function(t){g.x[t]=g.x[t]||{},e.measure.parts[t].voices.forEach(function(n){n&&(g.x[t][n.owner]=g.x[t][n.owner]||{voiceX:[],staffX:e.measure.parts[t].staves.reduce(function(e,t){return t&&(e[t.owner]=[]),e},{})})})});var b,S=l.keyBy(l.filter(e.segments,function(e){return"staff"===e.ownerType}),function(e){return e.part+"_"+e.owner}),w=l.keyBy(l.filter(e.segments,function(e){return"voice"===e.ownerType}),function(e){return e.part+"_"+e.owner}),N={},D=e.measureX,T=[],F=[],x=null,k=e.print,B=l.map(w,function(c){function h(t,n,i){if(!n)return void(B[t].division=b.segmentDivision+1);var r=b.segmentDivision,a=b.segmentInstance,l=b.segmentPosition;b.segmentDivision=B[t].division,b.staffAccidentals=B[t].accidentals,b.staffAttributes=B[t].attributes,i&&(W.segmentX=C[t]),b.segmentInstance=S[y+"_"+t],b.segmentPosition=w[t].length;var f;if(n.key="SATIE"+b.measureInstance.uuid+"_parts_"+b.segmentInstance.part+"_staves_"+b.segmentInstance.owner+"_"+b.segmentPosition,n.staffIdx=b.staffIdx,b.factory.modelHasType(n,s.Type.Barline)){var d=p.barDivisions(b.staffAttributes),h=d-b.segmentDivision;h>0&&b.advance(h)}if(e.mode===v.RefreshModel&&n.refresh(b["const"]()),b.factory.modelHasType(n,s.Type.Attributes)&&(b.staffAttributes=n._snapshot,b.staffAccidentals=u.getNativeKeyAccidentals(n._snapshot.keySignature)),b.factory.modelHasType(n,s.Type.Print)&&(b.print=n),e.mode===v.RefreshLayout&&(f=n.getLayout(W),f.part=y,f.key=n.key,e.preview&&(W.segmentX=g.x[y][c.owner].staffX[t][W.segmentPosition]),g.x[y][c.owner].staffX[t][W.segmentPosition]=W.segmentX),o(isFinite(n.divCount),"%s should be a constant division count",n.divCount),b.segmentDivision+=n.divCount,b.staffAttributes){var d=p.barDivisions(b.staffAttributes);b.segmentDivision>d&&x&&(x||(x=new m["default"](d,e.measure,b.staffAttributes)),o(d===x.maxDiv,"Divisions are not consistent. Found %s but expected %s",d,x.maxDiv))}else o(0===b.segmentDivision,"Expected attributes to be set on cursor");B[t].division=b.segmentDivision,B[t].accidentals=b.staffAccidentals,B[t].attributes=b.staffAttributes,C[t]=W.segmentX,b.segmentDivision=r,b.segmentInstance=a,b.segmentPosition=l,e.mode===v.RefreshLayout&&o(!!f,"%s must be a valid layout",f),w[t].push(f)}var y=c.part;i[y]=i[y]||[];var w={},B={},C=[],L=n.uuid===l.last(e.document.measures).uuid;b=new f.ValidationCursor(a({},e,{measureInstance:n,measureIsLast:L,page:1,print:k,segment:c,staffAccidentals:null,staffAttributes:null,staffIdx:NaN,fixup:t}));for(var W=new f.LayoutCursor(a({},e,{validationCursor:b,x:e.measureX})),_=[],O=0;O<c.length;++O){var U=c[O],A=O+1===c.length,E=U.staffIdx;for(o(isFinite(U.staffIdx),"%s must be finite",U.staffIdx),W.lineMaxPaddingTopByStaff[U.staffIdx]||(W.lineMaxPaddingTopByStaff[U.staffIdx]=0),W.lineMaxPaddingBottomByStaff[U.staffIdx]||(W.lineMaxPaddingBottomByStaff[U.staffIdx]=0),B[E]||(B[E]={accidentals:null,attributes:i[y][E],division:0}),w[E]||(w[E]=[],N[y+"_"+E]=N[y+"_"+E]||[],N[y+"_"+E].push(w[E]),C[E]=0),b.segmentPosition=O,b.staffAccidentals=B[E].accidentals,b.staffAttributes=B[E].attributes,b.staffIdx=E;B[E].division<=b.segmentDivision;){var M=S[y+"_"+E][w[E].length],X=e.factory.modelHasType(M,s.Type.Barline);if(X&&B[E].division===b.segmentDivision)break;var P=B[E].division<b.segmentDivision;h(E,M,P),o(isFinite(B[E].division),"divisionPerStaff is supposed to be a number, got %s",B[E].division)}var Y=void 0;U.key="SATIE"+b.measureInstance.uuid+"_parts_"+b.segmentInstance.part+"_voices_"+b.segmentInstance.owner+"_"+b.segmentPosition,U.staffIdx=b.staffIdx,b.staffAccidentals||(b.staffAccidentals=u.getNativeKeyAccidentals(b.staffAttributes.keySignature)),e.mode===v.RefreshModel&&U.refresh(b["const"]()),b.factory.modelHasType(U,s.Type.Chord)&&l.forEach(U,function(e){if(!e.rest){var t=e.pitch;(b.staffAccidentals[t.step+t.octave]||0)===(t.alter||0)&&(b.staffAccidentals[t.step]||0)===(t.alter||0)||(b.staffAccidentals[t.step+t.octave]=t.alter||0,(b.staffAccidentals[t.step]||0)!==(t.alter||0)&&(b.staffAccidentals[t.step]=p.InvalidAccidental))}}),e.mode===v.RefreshLayout&&(Y=U.getLayout(W),e.preview&&(W.segmentX=g.x[y][c.owner].voiceX[W.segmentPosition]),g.x[y][c.owner].voiceX[W.segmentPosition]=W.segmentX,Y.part=y,Y.key=U.key),b.segmentDivision+=U.divCount,d=Math.max(d,b.segmentDivision);var R=p.barDivisions(b.staffAttributes);b.segmentDivision>R&&!e.preview&&(x||(x=new m["default"](R,e.measure,b.staffAttributes)),o(R===x.maxDiv,"Divisions are not consistent. Found %s but expected %s",R,x.maxDiv),o(!!c.part,"Part must be defined -- is this spec from Engine.validate$?")),A&&l.forEach(S,function(e,t){var n=t.lastIndexOf("_"),i=t.substr(0,n);if(i===y){var r=parseInt(t.substr(n+1),10),a=w[r];if(e&&a)for(;a.length<e.length;)h(r,e[a.length],!1)}});var z=b.staffAttributes;i[c.part][U.staffIdx]=z,r=b.print,D=Math.max(W.segmentX,D),T[U.staffIdx]=Math.max(W.lineMaxPaddingTopByStaff[U.staffIdx],T[U.staffIdx]||0),F[U.staffIdx]=Math.max(W.lineMaxPaddingBottomByStaff[U.staffIdx],F[U.staffIdx]||0),_.push(Y)}return k=e.print,_});if(x)throw x;var C=l.values(N),L=l.flatten(C),W=L.concat(B),_=l.map(C,function(e){return e[0]});if(!e.noAlign){var O=l.reduce(W,c.mergeSegmentsInPlace,[]);l.reduce(O,function(e,t){var n=e.prevDivision,i=e.min,r=t.x;return i>=t.x&&t.division!==n&&t.renderClass!==s.Type.Spacer&&t.renderClass!==s.Type.Barline&&(t.x=i+20),{prevDivision:t.division,min:r}},{prevDivision:-1,min:-10}),l.reduce(B,c.mergeSegmentsInPlace,O),l.reduce(_,c.mergeSegmentsInPlace,O)}var U,A=D===e.measureX||e.lineBarOnLine+1===e.lineTotalBarsOnLine?0:15;return U=e.mode===v.RefreshLayout&&e.preview?{attributes:y.attributes,print:y.print,elements:y.elements,width:y.width,maxDivisions:y.maxDivisions,originX:e.measureX,originY:{},paddingTop:y.paddingTop,paddingBottom:y.paddingBottom,getVersion:function(){return n.version},uuid:n.uuid}:{attributes:i,print:r,elements:_.concat(B),width:D+A-e.measureX,maxDivisions:d,originX:e.measureX,originY:{},paddingTop:T,paddingBottom:F,getVersion:function(){return n.version},uuid:n.uuid},e.mode!==v.RefreshLayout||e.preview||(g.clean=U),U}function r(e){var t=e.document,n=e.header,r=e.print,a=e.measure,o=e.factory,s=e.x,u=e.singleLineMode,c=e.preview,f=e.fixup,h=e.lineShortest,p=e.lineBarOnLine,m=e.lineTotalBarsOnLine,g=e.lineIndex,y=e.lineCount,b=e.attributes,S=l.map(d.scoreParts(n.partList),function(e){return e.id}),w=l.flatten(l.map(S,function(e){return a.parts[e].staves})),N=l.flatten(l.map(S,function(e){return a.parts[e].voices})),D=l.filter(N.concat(w),function(e){return!!e}),T=i({document:t,factory:o,print:r,header:n,measure:a,measureX:s,segments:D,lineShortest:h,lineBarOnLine:p,lineTotalBarsOnLine:m,lineIndex:g,lineCount:y,mode:v.RefreshLayout,singleLineMode:u,preview:c,fixup:f,attributes:b});return T}var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=n(2),l=n(1),s=n(5),u=n(14),c=n(126),f=n(127),d=n(15),h=n(7),p=n(8),m=n(30);t.refreshMeasure=i;var v;!function(e){e[e.RefreshModel=0]="RefreshModel",e[e.RefreshLayout=1]="RefreshLayout"}(v=t.RefreshMode||(t.RefreshMode={})),t.layoutMeasure=r},function(e,t,n){"use strict";function i(e,t){return t(e)}function r(e){function t(t,n,i){if(r.push(n),e.fixup?e.fixup(t,n):o.forEach(n,function(t){f["default"](e.preview,e.measures,e.modelFactory,t,e.document,function(){return e.preview=!1})}),i)throw new m}e.measures=o.reduce(e.preprocessors,i,e.measures);var n,r=[],l={debugFixupOperations:r,rootFixup:t};do{n=!1;try{a(e,l)}catch(s){if(!(s instanceof h["default"]))throw s;var u=s.getOperations();t(null,c["default"](!1,e.document,u),!1),n=!0}}while(n)}function a(e,t){function n(e,t){return o.forEach(e,function(e){e&&(e.part=t)}),e}var i=e.modelFactory,r=i.search.bind(i),a={},f=e.print,h=[];o.forEach(e.measures,function(e){var t=o.flatten(o.map(o.toPairs(e.parts),function(e){return n(e[1].voices,e[0])})),i=o.flatten(o.map(o.toPairs(e.parts),function(e){return n(e[1].staves,e[0])}));h=h.concat(o.filter(t.concat(i),function(e){return!!e}))}),d.normalizeDivisionsInPlace(i,h,0);var v=0;o.forEach(e.measures,function(d){var h=e.document.cleanlinessTracking.measures[d.uuid];if(h&&h.clean)return a=h.clean.attributes,void(f=h.clean.print);t.debugFixupOperations=[];for(var g,y=function(h){if(++v>100)throw console.warn("-------------- too many fixups: aborting -------------- "),console.warn(t.debugFixupOperations),new Error("Internal Satie Error: fixup loop!");h=!1;try{var y=o.flatten(o.map(o.toPairs(d.parts),function(e){return n(e[1].voices,e[0])})),b=o.flatten(o.map(o.toPairs(d.parts),function(e){return n(e[1].staves,e[0])})),S=o.filter(y.concat(b),function(e){return!!e});o.forEach(b,function(n,f){function h(e){if(!r(n,0,e).length)if(1===n.owner)t.rootFixup(n,[{p:[String(d.uuid),"parts",n.part,"staves",n.owner,0],li:{_class:u.Type[e]}}],!1);else{var a=i.create(u.Type.Proxy),s=o.find(b,function(e){return e&&e.part===n.part&&1===e.owner}),c=r(s,0,e)[0];a.target=c,a.staffIdx=f;for(var h=-1,p=0;p<s.length;++p)if(s[p]===c){h=p;break}l(h!==-1,"Could not find required model."),n.splice(h,0,a)}}if(n&&(l("staff"===n.ownerType,"Expected staff segment"),a[n.part]=a[n.part]||[],h(u.Type.Print),h(u.Type.Attributes),!r(n,n.length-1,u.Type.Barline).length)){var p=c["default"](!1,e.document,d.uuid,n.part,function(t){return t.staff(n.owner,function(t){return t.insertBarline(function(t){return t.barStyle({data:d.uuid===o.last(e.document.measures).uuid?s.BarStyleType.LightHeavy:s.BarStyleType.Regular})})},n.length)});t.rootFixup(n,p,!1)}});var w=p.refreshMeasure({noAlign:!0,mode:p.RefreshMode.RefreshModel,document:e.document,factory:i,fixup:t.rootFixup,header:e.header,lineBarOnLine:NaN,lineCount:NaN,lineIndex:NaN,lineShortest:NaN,lineTotalBarsOnLine:NaN,measure:d,measureX:0,preview:e.preview,print:f,segments:S,attributes:a,singleLineMode:e.singleLineMode});a=w.attributes,f=w.print}catch(N){if(!(N instanceof m))throw N;h=!0}g=h},b=!0;b;)y(b),b=g})}var o=n(1),l=n(2),s=n(3),u=n(5),c=n(20),f=n(29),d=n(31),h=n(30),p=n(32),m=function(){function e(){this.stack=(new Error).stack}return e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){l(!a.cssInjected,"init must be called before any Satie component is mounted and must only be called once"),a.injectStyles(e)}function r(){return new C["default"]([u["default"],f["default"],d["default"],v["default"],g["default"],y["default"],b["default"],S["default"],w["default"],N["default"],D["default"],T["default"]],[h["default"]],[k["default"],x["default"],p["default"],F["default"],c["default"],m["default"],B["default"]])}var a,o=n(1),l=n(2),s=n(17),u=n(36),c=n(77),f=n(82),d=n(89),h=n(102),p=n(86),m=n(100),v=n(103),g=n(106),y=n(107),b=n(108),S=n(116),w=n(118),N=n(121),D=n(122),T=n(123),F=n(109),x=n(110),k=n(111),B=n(112),C=n(70);!function(e){e.cssInjected=!1,e.injectStyles=o.once(function(t){if(void 0===t&&(t={}),e.cssInjected=!0,"undefined"!=typeof window){var n=document.createElement("style");n.appendChild(document.createTextNode("")),document.head.appendChild(n),o.forEach(t.preloadedFonts,function(e){var t=(/[\w\s]*/.exec(e)||[""])[0].replace(/\s/g," ").trim();if(!t)throw new Error("Font "+e+" is not a valid font name.");var n=(/\((\w*)\)/.exec(e)||[])[1]||void 0;if(n&&"bold"!==n&&"bold italic"!==n&&"italic"!==n)throw new Error("Valid font variants are bold, bold italic, and italic");s.markPreloaded(t,n)}),t.satieRoot&&s.setRoot(t.satieRoot),n.innerHTML=".mn_ {-moz-user-select: none;-ms-user-select: none;-webkit-touch-callout: none;-webkit-user-select: none;cursor: default;font-family: 'bravura';user-select: none;text-rendering: optimizeSpeed;}.mmn_ {font-family: 'Alegreya';font-style: italic;text-anchor: middle;fill: #444;}.bn_ {font-family: 'Alegreya';font-style: italic;text-anchor: end;fill: #7a7a7a;}"}})}(a||(a={})),t.init=i,t.makeFactory=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(2),o=n(9),l=n(8),s=n(6),u=r.createFactory(o["default"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec,t=l.accidentalGlyphs[this.props.spec.accidental];a(t in s.bboxes,"Expected a glyph, got %s",t);var n=this.context.originY||0,i=e.parentheses?4:0,o=n-(e.defaultY+(e.relativeY||0));a(!isNaN(o),"Invalid accidental y-position");var c=u({fill:e.color,glyphName:t,x:(this.props.noteDefaultX||0)+e.defaultX+(e.relativeX||0)+i,y:o});if(e.parentheses||e.bracket){var f=10*s.bboxes[t][0];return r.DOM.g(null,u({fill:"#000000",glyphName:"accidentalParensLeft",x:(this.props.noteDefaultX||0)+e.defaultX+(e.relativeX||0)-7+i,y:n-(e.defaultY+(e.relativeY||0))}),c,u({fill:"#000000",glyphName:"accidentalParensRight",x:(this.props.noteDefaultX||0)+e.defaultX+(e.relativeX||0)+f+i,y:n-(e.defaultY+(e.relativeY||0))}))}return c},t}(r.Component);c.contextTypes={originY:r.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=c},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){e[l.Type.Attributes]=h}var r=n(3),a=n(1),o=n(2),l=n(5),s=n(8),u=n(15),c=n(125),f=n(79),d=n(14),h=function(){function e(e){var t=void 0===e?{divisions:0}:e,n=t.divisions,i=t.partSymbol,r=t.measureStyles,a=t.staffDetails,o=t.transposes,l=t.staves,s=t.instruments,u=t.directives,c=t.clefs,f=t.times,d=t.keySignatures,h=t.footnote,p=t.level;this._class="Attributes",this._divCount=0,this.divisions=n,this.partSymbol=i,this.measureStyles=r,this.staffDetails=a,this.transposes=o,this.staves=l,this.instruments=s,this.directives=u,this.clefs=c,this.times=f,this.keySignatures=d,this.footnote=h,this.level=p}return Object.defineProperty(e.prototype,"divCount",{get:function(){return this._divCount},set:function(e){o(isFinite(e),"Count must be finite."),this._divCount=e},enumerable:!0,configurable:!0}),e.prototype.refresh=function(e){this._parent=e.staffAttributes,this._parent&&this._parent.divisions||(this.divisions=this.divisions||1),this._validateClef(e),this._validateTime(e),this._validateKey(e),this._validateStaves(e),this._validateStaffDetails(e),this._validateMeasureStyles(e),this._snapshot=c.createAttributesSnapshot({before:e.staffAttributes||{},current:this,staff:e.staffIdx,measure:e.measureInstance.idx})},e.prototype.getLayout=function(t){this._layout||(this._layout=[]),this._layout[t.segmentInstance.owner]||(this._layout[t.segmentInstance.owner]=new e.Layout);var n=this._layout[t.segmentInstance.owner];return n._refresh(this,this._snapshot,this._parent,t),n},e.prototype.toXML=function(){var e=this.toJSON();return e.staffDetails=e.staffDetails.filter(function(e){return!!e}),e.clefs=e.clefs.filter(function(e){return!!e}),e.keySignatures=e.keySignatures.filter(function(e){return!!e}),r.serializeAttributes(e)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.toJSON=function(){var e=this,t=e._class,n=e.divisions,i=e.partSymbol,r=e.measureStyles,a=e.staffDetails,o=e.transposes,l=e.staves,s=e.instruments,u=e.directives,c=e.clefs,f=e.times,d=e.keySignatures,h=e.footnote,p=e.level;return{_class:t,divisions:n,partSymbol:i,measureStyles:r,staffDetails:a,transposes:o,staves:l,instruments:s,directives:u,clefs:c,times:f,keySignatures:d,footnote:h,level:p}},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(){return 0},e.prototype._validateClef=function(e){var t=e.staffIdx;this.clefs instanceof Array||e.patch(function(e){return e.attributes(function(e){return e.clefs([])})}),this.clefs.forEach(function(t,n){t&&t.number!==n&&e.patch(function(e){return e.attributes(function(e){return e.clefsAt(n,function(e){return e.number(n)})})})}),this._parent&&this._parent.clef||this.clefs[t]||e.patch(function(e){return e.attributes(function(e){return e.clefsAt(0,null).clefsAt(t,function(e){return e.number(t).sign("G").line(2)})})});var n=this.clefs[t];if(n&&(n.sign!==n.sign.toUpperCase()&&e.patch(function(e){return e.attributes(function(e){return e.clefsAt(t,function(e){return e.sign(n.sign.toUpperCase())})})}),n.line&&n.line!==parseInt(""+n.line,10)&&e.patch(function(e){return e.attributes(function(e){return e.clefsAt(t,function(e){return e.line(parseInt(""+n.line,10))})})}),!n.line)){var i=n.sign,r=a.find(f.standardClefs,{sign:i});e.patch(function(e){return e.attributes(function(e){return e.clefsAt(t,function(e){return e.line(r?r.line:2)})})})}},e.prototype._validateTime=function(e){this.times=this.times||[],this._parent&&this._parent.time||this.times[0]||e.patch(function(e){return e.attributes(function(e){return e.timesAt(0,function(e){return e.symbol(r.TimeSymbolType.Common).beats(["4"]).beatTypes([4])})})})},e.prototype._validateKey=function(e){this.keySignatures=this.keySignatures||[],this._parent&&this._parent.keySignature||this.keySignatures[0]||e.patch(function(e){return e.attributes(function(e){return e.keySignaturesAt(0,function(e){return e.fifths(0).mode("major")})})});var t=this.keySignatures[0];if(t&&(t.keySteps||t.keyAlters||t.keyOctaves)&&(t.keySteps.length!==t.keyAlters.length&&(console.warn("Expected the number of steps to equal the number of alterations. Ignoring key."),e.patch(function(e){return e.attributes(function(e){return e.keySignaturesAt(0,function(e){return e.fifths(0).keySteps(null).keyAccidentals(null).keyAlters(null)})})})),t.keyAccidentals&&t.keyAccidentals.length!==t.keySteps.length&&(t.keyAccidentals.length&&console.warn("Currently, if `key-accidentals` are specified, they must be specified for all steps in a key signature due to a limitation in musicxml-interfaces. Ignoring `key-accidentals`"),e.patch(function(e){return e.attributes(function(e){return e.keySignaturesAt(0,function(e){return e.keyAccidentals(null)})})})),t.keyOctaves)){var n=[];a.forEach(t.keyOctaves,function(e){n[e.number-1]=e}),a.isEqual(t.keyOctaves,n)||e.patch(function(e){return e.attributes(function(e){return e.keySignaturesAt(0,function(e){return e.keyOctaves(n)})})})}},e.prototype._validateStaffDetails=function(e){this.staffDetails=this.staffDetails||[];var t=0;this.staffDetails.forEach(function(n,i){n&&(++t,n.number||e.patch(function(e){return e.attributes(function(e){return e.staffDetailsAt(i,function(e){return e.number(t)})})}))});var n=this.staffDetails.reduce(function(e,t){return t&&(e[t.number]=t),e},[]),i=this.staffDetails.length!==n.length||this.staffDetails.some(function(e,t){return!(!e&&!n[t])&&!a.isEqual(e,n[t])});i&&e.patch(function(e){return e.attributes(function(e){return e.staffDetails(n)})}),this.staffDetails[e.staffIdx]||e.patch(function(t){return t.attributes(function(t){return t.staffDetailsAt(0,null).staffDetailsAt(e.staffIdx,{number:e.staffIdx})})}),this._parent&&this._parent.staffDetails&&this._parent.staffDetails[e.staffIdx]&&this._parent.staffDetails[e.staffIdx].staffLines||this.staffDetails[e.staffIdx]&&this.staffDetails[e.staffIdx].staffLines||e.patch(function(t){return t.attributes(function(t){return t.staffDetailsAt(e.staffIdx,function(e){return e.staffLines(5)})})})},e.prototype._validateStaves=function(e){var t=this;this.staves=this.staves||1;var n=e.segmentInstance.part,i=e.measureInstance.parts[n];a.times(this.staves,function(e){var t=e+1;if(!i.staves[t])throw new Error("A staff is missing. The code to add it is not implemented.")}),!(this.staves>1)||this._parent&&this._parent.partSymbol||this.partSymbol||e.patch(function(e){return e.attributes(function(e){return e.partSymbol({bottomStaff:1,topStaff:t.staves,type:r.PartSymbolType.Brace})})});var o=u.groupsForPart(e.header.partList,e.segmentInstance.part);!o.length||this._parent&&this._parent.partSymbol||this.partSymbol||e.patch(function(e){return e.attributes(function(e){return e.partSymbol({bottomStaff:1,topStaff:1,type:r.PartSymbolType.Bracket})})})},e.prototype._validateMeasureStyles=function(e){this.measureStyles||e.patch(function(e){return e.attributes(function(e){return e.measureStyles([])})})},e}();!function(e){var t=function(){function e(){}return e.prototype._refresh=function(e,t,n,i){var a=this;this.model=e,o(!!t,"Layout must be passed a model"),this.clef=null,this.snapshotClef=null,this.clefSpacing=null,this.time=null,this.tsSpacing=null,this.keySignature=null,this.ksSpacing=null,this.measureNumberVisible=null,this.partSymbol=null,this.staffDetails=null,this.x=i.segmentX,this.division=i.segmentDivision,this.staffIdx=i.staffIdx;var u=0===i.lineBarOnLine&&!this.division,c=i.segmentInstance[i.segmentPosition+1],f=!d.keysEqual(t,n)||u,h=!d.timesEqual(t,n),p=!d.clefsEqual(t,n,i.segmentInstance.owner)||u,m=u&&t.partSymbol&&t.partSymbol.bottomStaff===i.staffIdx;if(!i.measureInstance.implicit&&1!==parseInt(i.measureInstance.number,10)){var v=i.print?i.print.measureNumbering.data:"system",g=0===i.segmentDivision,y=u&&"system"===v,b=0===this.division&&"measure"===v&&g,S=y||b;S&&(this.measureNumberVisible=i.measureInstance.number)}var w=i.factory.modelHasType(c,l.Type.Chord)?c:null;if(this.snapshotClef=i.staffAttributes.clef,p){var N=t.clefs[i.staffIdx];this.x+=d.CLEF_INDENTATION,i.segmentX=this.x;var D=0;this.clef=Object.create(N,{defaultX:{get:function(){return u?a.overrideX:a.overrideX-10.5}}}),this.clef.defaultY=this.clef.defaultY||0,this.clef.size=u?r.SymbolSize.Full:r.SymbolSize.Cue,D=!w||f||h?12.5:s.hasAccidental(w,i)?15:25,u||(D-=19.8),this.clefSpacing=d.clefWidth(t)+D}else this.clefSpacing=0;if(f){var T=t.keySignatures[0],D=0;this.keySignature=Object.create(T,{defaultX:{get:function(){return a.overrideX+a.clefSpacing}}}),this.keySignature.defaultY=0,D=w&&!h?s.hasAccidental(w,i)?25:15:10,this.ksSpacing=D+d.keyWidth(t)}else this.ksSpacing=0;if(h){var F=t.times[0],D=0;this.time=Object.create(F,{defaultX:{get:function(){return a.overrideX+a.clefSpacing+a.ksSpacing}}}),this.time.defaultY=0,D=w?s.hasAccidental(w,i)?25:15:12.5,t.times[0].beatTypes||(D=0),this.tsSpacing=D+d.timeWidth(t)}else this.tsSpacing=0;if(m){var x=i.staffAttributes.partSymbol;this.partSymbol=Object.create(x,{defaultX:{get:function(){return 0}}})}this.staffDetails=i.staffAttributes.staffDetails[this.staffIdx],i.segmentX+=this.clefSpacing+this.tsSpacing+this.ksSpacing,this.renderedWidth=i.segmentX-this.x-8},e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=l.Type.Attributes,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(h||(h={})),function(e){function t(e,t,n){var i=new h.Layout;return console.log("Creating warning layout for ",n),i._refresh(null,n,t,e),i}e.createWarningLayout=t}(i||(i={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(78),o=n(38),l=n(80),s=n(39),u=n(40),c=n(81),f=r.createFactory(c["default"]),d=r.createFactory(o["default"]),h=r.createFactory(s["default"]),p=r.createFactory(u["default"]),m=r.createFactory(a["default"]),v=r.createFactory(l["default"]),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.layout,t=[],n=e.staffWidth,i=e.staffLinesOffsetX;return n&&t.push(f({key:"staffLines",width:n,defaultX:this.props.layout.overrideX-i,defaultY:0,staffDetails:e.staffDetails})),e.clef&&t.push(d({key:"clef",spec:e.clef})),e.keySignature&&t.push(h({clef:e.snapshotClef,key:"ks",spec:e.keySignature})),e.time&&t.push(p({key:"ts",spec:e.time})),e.measureNumberVisible&&t.push(m({barNumber:e.measureNumberVisible,key:"measure",spec:{defaultX:0,defaultY:30}})),e.partSymbol&&t.push(v({key:"partSymbol",spec:e.partSymbol})),r.DOM.g(null,t)},t}(r.Component);g.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=g},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(9),l=n(6),s=a.createFactory(o["default"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec;if(e.printObject===!1)return null;var t=e.defaultX+(e.relativeX||0),n=(this.context.originY||0)-(e.defaultY+(e.relativeY||0)+10*(this.renderedLine()-3)),i=this.sign();if(!i)return null;var r=s({fill:e.color,glyphName:i,x:t,y:n}),o=parseInt(e.clefOctaveChange,10),u=[],c=l.bboxes[i],f=c[0],d=c[1],h=c[2],p=c[3],m="F"===e.sign.toUpperCase()?.7:1,v="G"===e.sign.toUpperCase()?2*f:0;d=10*-d+n,p=10*-p*m+n,f=10*f+t,h=10*h+t;var g=(f+h)/2;return 2===o?u.push(s({fill:e.color,glyphName:"clef15",key:"15ma",x:g-(10*l.bboxes.clef15[0]+10*l.bboxes.clef15[2])/2+v,y:d})):1===o?u.push(s({fill:e.color,glyphName:"clef8",key:"8va",x:g-(10*l.bboxes.clef8[0]+10*l.bboxes.clef8[2])/2+v,y:d})):o===-1?u.push(s({fill:e.color,glyphName:"clef8",key:"8vb",x:g-(10*l.bboxes.clef8[0]+10*l.bboxes.clef8[2])/2,y:p+10*l.bboxes.clef8[1]})):o===-2&&u.push(s({fill:e.color,glyphName:"clef15",key:"15mb",x:g-(10*l.bboxes.clef15[0]+10*l.bboxes.clef15[2])/2,y:p+10*l.bboxes.clef15[1]})),u?a.DOM.g(null,r,u):r},t.prototype.sign=function(){var e=this.props.spec.sign.toLowerCase();return"percussion"===e?"unpitchedPercussionClef1":"tab"===e?"6stringTabClef":"none"===e?null:e+"Clef"+(this.props.spec.size===r.SymbolSize.Cue?"Change":"")},t.prototype.renderedLine=function(){return"tab"===this.props.spec.sign.toLowerCase()?this.props.spec.line-2:this.props.spec.line},t}(a.Component);u.contextTypes={originY:a.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){"use strict";function i(e){switch(!0){case"G"===e.sign:return"treble";case"F"===e.sign:return"bass";case"C"===e.sign&&3===e.line:return"alto";case"C"===e.sign&&4===e.line:return"tenor";default:return console.warn("Invalid clef?"),"treble"}}var r=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=n(3),o=n(4),l=n(1),s=n(35),u=n(14),c=n(8),f=o.createFactory(s["default"]),d={alto:[4.5,3,5,3.5,2,4,2.5],bass:[4,2.5,4.5,3,1.5,3.5,2],tenor:[2,4,2.5,4.5,3,5,3.5],treble:[5,3.5,5.5,4,2.5,4.5,3]},h={alto:[2.5,4,2,3.5,1.5,3,1],bass:[2,3.5,1.5,3,1,2.5,.5],tenor:[3.5,5,3,4.5,2.5,4,2],treble:[3,4.5,2.5,4,2,3.5,1.5]},p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){return o.DOM.g(null,l.map(this.getAccidentals(),function(e,t){return f({key:t,spec:e})}))},t.prototype.getAccidentals=function(){function e(e,t,o){var l;switch(!0){case o&&7+e[t]<n.fifths:l=a.MxmlAccidental.DoubleSharp;break;case o&&7+e[t]>=n.fifths:l=a.MxmlAccidental.Sharp;break;case!o&&7+e[t]<-n.fifths:l=a.MxmlAccidental.DoubleFlat;break;case!o&&7+e[t]>=-n.fifths:l=a.MxmlAccidental.Flat;break;default:throw new Error("Impossible!")}var u=(o?d:h)[i(r)][e[t]];return{accidental:l,color:n.color,defaultX:n.defaultX+s[t],defaultY:n.defaultY+10*(u-3),relativeX:n.relativeX,relativeY:n.relativeY||0}}var t=this,n=this.props.spec,r=this.props.clef,o=u.keyWidths(n),s=[],f=0;if(n.fifths){for(var p=Math.min(7,Math.abs(n.fifths)),m=l.times(p,function(e){return(e+Math.max(0,Math.abs(n.fifths)-7))%7}),v=0;v<m.length;++v)s.push(f),f+=o[m[v]];return l.map(m,function(t){return e(m,t,n.fifths>=0)})}for(var v=0;v<o.length;++v)s.push(f),f+=o[v];if(n.keySteps)return l.map(n.keySteps,function(e,i){var r=n.keyAlters[i],o=n.keyOctaves&&n.keyOctaves[i],l=o?n.keyOctaves[i].octave:null;if(null===l)for(;c.lineForClef_(e,l,t.props.clef)<2;)++l;var u=c.lineForClef_(e,l,t.props.clef),f=null;switch(r){case"-2":f=a.MxmlAccidental.DoubleFlat;break;case"-1.5":f=a.MxmlAccidental.ThreeQuartersFlat;break;case"-1":f=a.MxmlAccidental.Flat;break;case"-0.5":f=a.MxmlAccidental.QuarterFlat;break;case"0":f=a.MxmlAccidental.Natural;break;case"0.5":f=a.MxmlAccidental.QuarterSharp;break;case"1":f=a.MxmlAccidental.Sharp;break;case"1.5":f=a.MxmlAccidental.ThreeQuartersSharp;break;case"2":f=a.MxmlAccidental.DoubleSharp;break;default:console.warn("Unknown accidental ",r),f=a.MxmlAccidental.Natural}return{accidental:f,color:n.color,defaultX:n.defaultX+s[i],defaultY:n.defaultY+10*(u-3),relativeX:n.relativeX,relativeY:n.relativeY||0}})},t}(o.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=p},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(9),s=n(14),u=a.createFactory(l["default"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this;return a.DOM.g(null,o.map(String(this.props.children).split(""),function(t,n){return u({fill:e.props.stroke,glyphName:"timeSig"+t,key:"ts-"+n,x:e.props.x+12*n+("1"===t?!n&&parseInt(e.props.children,10)>=10?-1:1:0),y:e.props.y})}))},t}(a.Component),f=a.createFactory(c),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.spec;if(null!=t.senzaMisura)return null;var n=this._displayTimeSignature();if(n.singleNumber&&1===n.beats.length&&1===n.beats[0].length)return f({stroke:t.color,x:t.defaultX+(t.relativeX||0),y:(this.context.originY||0)-(t.defaultY+(t.relativeY||0))},n.beats[0]);if(n.commonRepresentation){var i=n.beats,r=n.beatType,l=1===i.length&&1===i[0].length,c=l&&4===i[0][0]&&4===r[0],d=l&&2===i[0][0]&&2===r[0];if(c)return u({fill:t.color,glyphName:"timeSigCommon",x:t.defaultX+(t.relativeX||0),y:(this.context.originY||0)-(t.defaultY+(t.relativeY||0))});if(d)return u({fill:t.color,glyphName:"timeSigCutCommon",x:t.defaultX+(t.relativeX||0),y:(this.context.originY||0)-(t.defaultY+(t.relativeY||0))})}var h=this.numOffsets(),p=this.denOffsets(),m=0;return a.DOM.g(null,o.map(n.beats,function(i,r){var a=[o.map(i,function(n,a){return[f({key:"num_"+r+"_"+a,stroke:t.color,x:t.defaultX+(t.relativeX||0)+h[r]+m+a*s.NUMBER_SPACING,y:(e.context.originY||0)-(t.defaultY+(t.relativeY||0)+10)},n),a+1!==i.length&&u({fill:"black",glyphName:"timeSigPlusSmall",key:"num_plus_numerator_"+r+"_"+a,x:t.defaultX+(t.relativeX||0)+h[r]+m+a*s.NUMBER_SPACING+17,y:(e.context.originY||0)-t.defaultY+(t.relativeY||0)-10})]}),f({key:"den",stroke:t.color,x:t.defaultX+(t.relativeX||0)+p[r]+m,y:(e.context.originY||0)-(t.defaultY+(t.relativeY||0)-10)},n.beatType[r]),r+1!==n.beats.length&&u({fill:"black",glyphName:"timeSigPlus",key:"num_plus_"+r,x:t.defaultX+(t.relativeX||0)+h[r]+m+i.length*s.NUMBER_SPACING-10,y:(e.context.originY||0)-t.defaultY+(t.relativeY||0)})];return m+=i.length*s.NUMBER_SPACING+s.PLUS_SPACING,a}))},t.prototype.numOffsets=function(){var e=this._displayTimeSignature();return o.map(e.beats,function(t,n){if(t.length>1)return 0;var i=0;return t[0]<10&&e.beatType[n]>=10&&(i+=5),i})},t.prototype.denOffsets=function(){var e=this._displayTimeSignature();return o.map(e.beatType,function(t,n){var i=0,r=(e.beats[n].length-1)*s.NUMBER_SPACING/2;return i+=r,e.beats[n][0]>=10&&t<10&&(i+=7),i})},t.prototype._displayTimeSignature=function(){var e=this.props.spec;return{beatType:e.beatTypes,beats:o.map(e.beats,function(e){return e.split("+").map(function(e){return parseInt(e,10)})}),commonRepresentation:e.symbol===r.TimeSymbolType.Common||e.symbol===r.TimeSymbolType.Cut,singleNumber:e.symbol===r.TimeSymbolType.SingleNumber}},t}(a.Component);d.contextTypes={originY:a.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d},function(e,t,n){"use strict";function i(e,t){return l.reduce(e,function(e,n){return Math.max(e,r(n,t))},0)}function r(e,t){return l.reduce(e.lyrics,function(e,n){return Math.max(e,a(n,t))},0)}function a(e,n){return l.reduce(e.lyricParts,function(e,i){if("Syllabic"===i._class)return e+t.SYLLABIC_SIZE;if("Text"===i._class){var r=i;return e+u.getTextBB(r.fontFamily||t.DEFAULT_FONT,r.data,s.cssSizeToTenths(n,r.fontSize||t.DEFAULT_LYRIC_SIZE),r.fontWeight===o.NormalBold.Bold?"bold":null).right}return 0},0)}var o=n(3),l=n(1),s=n(13),u=n(17);t.DEFAULT_LYRIC_SIZE="22",t.DEFAULT_FONT="Alegreya",t.SYLLABIC_SIZE=20,t.getChordLyricWidth=i,t.getNoteLyricWidth=r,t.getLyricWidth=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(2),s=n(133),u=n(9),c=n(6),f=n(85),d=a.createFactory(s["default"]),h=a.createFactory(u["default"]),p=a.createFactory(f["default"]),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.spec,n=this.props.layout,i=n?n.model.noteheadGlyph[0]:"noteheadBlack",s=c.bboxes[i],u=10*(s[0]-s[2])/2,f=n?n.model[0].defaultX+u:0,m=[];switch(o.forEach(t.accidentalMarks,function(e){}),o.forEach(t.arpeggiates,function(e){}),o.forEach(t.articulations,function(e,t){m.push(p({articulation:e,key:"art"+t,defaultX:n?n.model[0].defaultX:0}))}),o.forEach(t.dynamics,function(e){}),o.forEach(t.fermatas,function(t,n){var i,a=t.type===r.UprightInverted.Inverted?"Below":"Above";switch(t.shape){case r.NormalAngledSquare.Angled:i="fermataShort";break;case r.NormalAngledSquare.Square:i="fermataLong";break;case r.NormalAngledSquare.Normal:default:i="fermata"}m.push(h({fill:"black",glyphName:""+i+a,key:"fer"+n,x:f+t.defaultX+(t.relativeX||0),y:(e.context.originY||0)-t.defaultY-(t.relativeY||0)}))}),o.forEach(t.glissandos,function(e){}),o.forEach(t.nonArpeggiates,function(e){}),o.forEach(t.ornaments,function(e){}),o.forEach(t.slides,function(e){}),o.forEach(t.slurs,function(e){}),o.forEach(t.technicals,function(t){if(t.tripleTongue,t.toe,t.hole,t.hammerOn,t.upBow){var n=t.upBow;m.push(h({fill:n.color||"black",glyphName:"stringsUpBow"+(n.placement===r.AboveBelow.Below?"Reversed":""),key:"techUpBow",x:f+n.defaultX+(n.relativeX||0),y:(e.context.originY||0)-n.defaultY-(n.relativeY||0)}))}if(t.downBow){var n=t.downBow;m.push(h({fill:n.color||"black",glyphName:"stringsDownBow"+(n.placement===r.AboveBelow.Below?"Reversed":""),key:"techDownBow",x:f+n.defaultX+(n.relativeX||0),y:(e.context.originY||0)-n.defaultY-(n.relativeY||0)}))}if(t.fret,t.tap,t.pullOff,t.handbell,t.bend,t.thumbPosition,t.stopped){var n=t.stopped;m.push(h({fill:n.color||"black",glyphName:"pluckedLeftHandPizzicato",key:"techStopped",x:f+n.defaultX+(n.relativeX||0),y:(e.context.originY||0)-n.defaultY-(n.relativeY||0)}))}if(t.pluck,t.doubleTongue,t.string,t.openString){var n=t.openString;m.push(h({fill:n.color||"black",glyphName:"stringsHarmonic",key:"techOpenString",x:f+n.defaultX+(n.relativeX||0),y:(e.context.originY||0)-n.defaultY-(n.relativeY||0)}))}if(t.fingernails,t.arrow,t.harmonic,t.heel,t.otherTechnical,t.snapPizzicato){var n=t.snapPizzicato;m.push(h({fill:n.color||"black",glyphName:"pluckedSnapPizzicato"+(n.placement===r.AboveBelow.Below?"Below":"Above"),key:"techSnapPizzicato",x:f+n.defaultX+(n.relativeX||0),y:(e.context.originY||0)-n.defaultY-(n.relativeY||0)}))}t.fingering}),o.forEach(t.tieds,function(t){var n=t.satieTieTo;if(n){var r=c.bboxes[i],a=10*(r[0]-r[2])/2,o=a-u-4,s=(e.context.originY||0)-(e.props.defaultY||0),h=e.props.layout.satieStem,p=n.satieStem,v=-1;h&&p&&h.direction===p.direction?v=-h.direction:h?v=-h.direction:p&&(v=-p.direction);var g=f-e.props.layout.overrideX+n.x+o,y=f,b=s-(v===-1?-10:10),S=s-(v===-1?-10:10),w=g-y,N=-w,D=3.2,T=S-b,F=8.321228*-v/Math.max(1,Math.abs(T));(T>0?-1:1)*v===1&&(F=2*F),l(!isNaN(g),"Invalid x2 %s",g),l(!isNaN(y),"Invalid x1 %s",y),l(!isNaN(b),"Invalid y2 %s",b),l(!isNaN(S),"Invalid y1 %s",S),l(!isNaN(v),"Invalid dir %s",v),l(!isNaN(w),"Invalid x2mx1 %s",w),l(!isNaN(N),"Invalid x1mx2 %s",N),l(!isNaN(D),"Invalid relw %s",D),l(!isNaN(T),"Invalid y1my2 %s",T),l(!isNaN(F),"Invalid absw %s",F),m.push(d({fill:"#000000",stroke:"#000000",strokeWidth:1.2,x1:g,x2:.22823858624982798*N+g,x3:.7717615267467712*N+g,x4:y,x5:.22823858624982798*w+y,x6:.7717615913162564*w+y,y1:b,y2:(v===-1?T:0)+F+b,y3:(v===-1?T:0)+F+b,y4:S,y5:(v===-1?0:-T)+F+D+S,y6:(v===-1?0:-T)+F+D+S}))}}),o.forEach(t.tuplets,function(e){}),m.length){case 0:return null;case 1:return m[0];default:return a.DOM.g(null,m)}},t}(a.Component);m.contextTypes={originY:a.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=m},function(e,t,n){"use strict";var i=n(3),r=n(1),a=n(2),o=n(8),l=n(6),s=n(7),u=function(){function e(e,t,n,i){function a(e){n.hasOwnProperty(e)&&void 0!==n[e]&&(o[e]=n[e])}void 0===i&&(i=!0),this._class="Note";var o=this;Object.defineProperty(this,"_parent",{enumerable:!1,value:e}),this._idx=t;var l=["pitch","unpitched","noteheadText","accidental","instrument","attack","endDynamics","lyrics","notations","stem","cue","ties","dynamics","duration","play","staff","grace","notehead","release","pizzicato","beams","voice","footnote","level","relativeY","defaultY","relativeX","fontFamily","fontWeight","fontStyle","fontSize","color","printDot","printLyric","printObject","printSpacing","timeOnly","dots","noteType","timeModificiation","rest"];r.forEach(l,a)}return Object.defineProperty(e.prototype,"stem",{get:function(){return this._parent.stem},set:function(e){this._parent.stem=e},enumerable:!0,configurable:!0}),e.prototype.toXML=function(){return i.serializeNote(this)},e.prototype.toJSON=function(){var e=this,t=e.pitch,n=e.unpitched,i=e.noteheadText,r=e.accidental,a=e.instrument,o=e.attack,l=e.endDynamics,s=e.lyrics,u=e.notations,c=e.stem,f=e.cue,d=e.ties,h=e.dynamics,p=e.duration,m=e.play,v=e.staff,g=e.grace,y=e.notehead,b=e.release,S=e.pizzicato,w=e.beams,N=e.voice,D=e.footnote,T=e.level,F=e.relativeY,x=e.defaultY,k=e.relativeX,B=e.fontFamily,C=e.fontWeight,L=e.fontStyle,W=e.fontSize,_=e.color,O=e.printDot,U=e.printLyric,A=e.printObject,E=e.printSpacing,M=e.timeOnly,X=e.dots,P=e.noteType,Y=e.timeModification,R=e.rest;return{pitch:t,unpitched:n,noteheadText:i,accidental:r,instrument:a,attack:o,endDynamics:l,lyrics:s,notations:u,stem:c,cue:f,ties:d,dynamics:h,duration:p,play:m,staff:v,grace:g,notehead:y,release:b,pizzicato:S,beams:w,voice:N,footnote:D,level:T,relativeY:F,defaultY:x,relativeX:k,fontFamily:B,fontWeight:C,fontStyle:L,fontSize:W,color:_,printDot:O,printLyric:U,printObject:A,printSpacing:E,timeOnly:M,noteType:P,dots:X,timeModification:Y,rest:R,_class:"Note"}},e.prototype.inspect=function(){return this.toXML()},e.prototype.refresh=function(e){var t=this;this.cleanNotations(e),this.pitch&&this.pitch.step!==this.pitch.step.toUpperCase()&&e.patch(function(e){return e.note(t._idx,function(e){return e.pitch(function(e){return e.step(t.pitch.step.toUpperCase())})})}),this.grace&&this.cue&&e.patch(function(e){return e.note(t._idx,function(e){return e.cue(null)})}),this.unpitched&&(this.rest||this.pitch)&&e.patch(function(e){return e.note(t._idx,function(e){return e.unpitched(null)})}),this.pitch&&this.rest&&e.patch(function(e){return e.note(t._idx,function(e){return e.pitch(null)})}),a("voice"===e.segmentInstance.ownerType,"Expected to be in voice's context during validation"),this.voice!==e.segmentInstance.owner&&e.patch(function(n){return n.note(t._idx,function(t){return t.voice(e.segmentInstance.owner)})});var n=10*(o.lineForClef(this,e.staffAttributes.clef)-3);n!==this.defaultY&&e.patch(function(e){return e.note(t._idx,function(e){return e.defaultY(n)})});var i=this.defaultY%10===0?5:0;this.dots||e.patch(function(e){return e.note(t._idx,function(e){return e.dots([])})}),this.dots.some(function(e){return e.defaultY!==i})&&e.patch(function(e){return e.note(t._idx,function(e){return r.reduce(t.dots,function(e,t,n){return e.dotsAt(n,function(e){return e.defaultY(i)})},e)})}),this.staff||e.patch(function(e){return e.note(t._idx,function(e){return e.staff(1)})}),this.updateAccidental(e)},e.prototype.cleanNotations=function(e){function t(e){return r.reduce(o,function(t,n){return n[e]?(t||[]).concat(n[e]):t},null)}function n(e){var n=t(e);if(!n)return null;for(var i={},r=0;r<n.length;++r)for(var a in n[r])n[r].hasOwnProperty(a)&&(i[a]=n[r][a]);return[i]}function i(e){return r.reduce(o,function(t,n){return n[e]?n[e]:t},[])}var a=this,o=s.cloneObject(this.notations);if(o){var l={accidentalMarks:t("accidentalMarks"),arpeggiates:t("arpeggiates"),articulations:n("articulations"),dynamics:t("dynamics"),fermatas:t("fermatas"),footnote:i("footnote"),glissandos:t("glissandos"),level:i("level"),nonArpeggiates:t("nonArpeggiates"),ornaments:t("ornaments"),otherNotations:t("otherNotations"),printObject:i("printObject"),slides:t("slides"),slurs:t("slurs"),technicals:t("technicals"),tieds:t("tieds"),tuplets:t("tuplets")};r.forEach(l.tieds,function(e){e.number||(e.number=1)}),r.forEach(l.tuplets,function(e){e.tupletActual||(e.tupletActual={}),e.tupletNormal||(e.tupletNormal={}),e.tupletActual.tupletNumber||(e.tupletActual.tupletNumber={text:String(a.timeModification.actualNotes)}),e.tupletNormal.tupletNumber||(e.tupletNormal.tupletNumber={text:String(a.timeModification.normalNotes)}),e.tupletNormal.tupletDots||(e.tupletNormal.tupletDots=r.map(a.timeModification.normalDots,function(){return{}}))}),e.patch(function(e){return e.note(a._idx,function(e){return e.notations([l])})})}},e.prototype.updateAccidental=function(e){var t=this,n=this.pitch;if(n){var u=n.alter||0,c=e.staffAccidentals;a(!!c,"Accidentals must already have been setup. Is there an Attributes element?");var f=c[n.step]||null,d=c[n.step+n.octave];isNaN(d)&&f!==o.InvalidAccidental&&(d=f);var h=s.cloneObject(this.accidental);if(!h&&(u||0)!==(d||0)){var p=null;switch(u){case 2:p=i.MxmlAccidental.DoubleSharp;break;case 1.5:p=i.MxmlAccidental.ThreeQuartersSharp;break;case 1:p=i.MxmlAccidental.Sharp;break;case.5:p=i.MxmlAccidental.QuarterSharp;break;case 0:p=i.MxmlAccidental.Natural;break;case-.5:p=i.MxmlAccidental.QuarterFlat;break;case-1:p=i.MxmlAccidental.Flat;break;case-1.5:p=i.MxmlAccidental.ThreeQuartersFlat;break;case-2:p=i.MxmlAccidental.DoubleFlat;break;default:a(!1,"Not implemented: unknown accidental for offset %s",u)}h={accidental:p}}if(h){var m=o.accidentalGlyphs[h.accidental];a(m in l.bboxes,"Expected a known glyph, got %s",m);var v=10*l.bboxes[m][0],g=e.staffAttributes.clef;o.onLedger(this,g)?h.defaultX=-4.1:h.defaultX=-2.04,h.defaultX-=v,h.defaultY=0,(h.editorial&&!h.parentheses||h.bracket)&&(h.parentheses=!0),h.parentheses&&(h.defaultX-=10)}!r.isEqual(s.cloneObject(this.accidental),h)&&e.patch&&e.patch(function(e){return e.note(t._idx,function(e){return e.accidental(h)})})}},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(9),s=n(6),u=a.createFactory(l["default"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.x1,n=e.x2,i=e.y1,l=e.y2,c=e.tuplet,f=c.placement,d=c.tupletActual.tupletNumber.text,h=o.map(d,function(e){return"tuplet"+e}),p=o.map(h,function(e){return s.bboxes[e]}),m=o.map(p,function(e){return 10*(e[0]-e[2])}),v=o.reduce(m,function(e,t){return e+t},0),g=(t+n)/2,y=o.reduce(p,function(e,t){return e.push(10*t[0]+o.last(e)),e},[0]),b=(i+l)/2+(f===r.AboveBelow.Above?7.5:9.5);return a.DOM.g(null,a.DOM.polygon({fill:"white",key:"mask",points:g-v/2-6+","+(b-10*p[0][1])+" "+(g-v/2-6)+","+(b+10*p[0][3])+" "+(g+v/2+6)+","+(b+10*p[0][3])+" "+(g+v/2+6)+","+(b-10*p[0][1]),stroke:"white",strokeWidth:0}),o.map(h,function(e,t){return u({key:"glyph"+t,fill:"#000000",glyphName:e,x:y[t]+g-v/2,y:b})}))},t}(a.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=c},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(9),l=n(104),s=n(105),u=r.createFactory(o["default"]),c=r.createFactory(l["default"]),f=r.createFactory(s["default"]),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.layout.model,n=a.map(t.directionTypes,function(t,n){switch(!0){case!!t.accordionRegistration:return null;case!!t.bracket:return null;case!!t.codas:return null;case!!t.damp:return null;case!!t.dampAll:return null;case!!t.dashes:return null;case!!t.dynamics:return c({key:"d_"+n,layout:e.props.layout});case!!t.eyeglasses:return null;case!!t.harpPedals:return null;case!!t.image:return null;case!!t.metronome:return null;case!!t.octaveShift:return null;case!!t.otherDirection:return null;case!!t.otherDirection:return null;case!!t.pedal:return null;case!!t.percussions:return null;case!!t.principalVoice:return null;case!!t.rehearsals:return null;case!!t.scordatura:return null;case!!t.segnos:return r.DOM.g(null,a.map(t.segnos,function(t,n){return u({glyphName:"segno",key:n,x:e.props.layout.overrideX+t.defaultX+(t.relativeX||0),y:(e.context.originY||0)-t.defaultY-(t.relativeY||0),fill:t.color})}));case!!t.stringMute:return null;case!!t.wedge:return null;case!!t.words:return f({key:"d_"+n,layout:e.props.layout});default:throw new Error("Invalid direction in "+t)}}).filter(function(e){return!!e});switch(n.length){case 0:return null;case 1:return n[0];default:return r.DOM.g(null,n)}},t}(r.Component);d.contextTypes={originY:r.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d},function(e,t,n){"use strict";function i(e,t,n){var i=e.pageLayout,a=e.systemLayout,o=r.getPageMargins(i.pageMargins,t),l=a.systemMargins,s=l.leftMargin+o.leftMargin,u=l.rightMargin+i.pageWidth-o.rightMargin,c=n.millimeters/n.tenths*40,f=i.pageHeight-10*c/2-(a.topSystemDistance+o.topMargin);return{left:s,right:u,systemLayout:a,top:f}}var r=n(23);t.calculateLineBounds=i},function(e,t,n){"use strict";function i(e,t){var n=s[l["default"](e)+(t?"_"+t:"")],i={4:[4,3,2,1],8:[12,8,4,3,2,1],16:[4,3,2,1]};if(null!=e.senzaMisura)return[];if(!n){n=[];var o=r.reduce(e.beats,function(e,t){return e+r.reduce(t.split("+"),function(e,t){return e+parseInt(t,10)},0)},0),u=i[e.beatTypes[0]];r.forEach(u,function(t){for(;o>=t;)n=n.concat(s[t+"/"+e.beatTypes[0]]),o-=t})}return a(!!n,"Unknown beaming pattern"),n}var r=n(1),a=n(2),o=n(49),l=n(48),s={"1/16":[o._16],"2/16":[o._16,o._16],"1/8":[o._8],"3/16":[o._8D],"4/16":[o._8,o._8],"2/8":[o._8,o._8],"1/4":[o._4],"5/16":[o._8D,o._8],"5/16_alt":[o._8,o._8D],"6/16":[o._8D,o._8D],"3/8":[o._4D],"4/8":[o._4,o._4],"2/4":[o._2],"2/4_clean":[o._4,o._4],"1/2":[o._2],"9/16":[o._8D,o._8D,o._8D],"5/8":[o._4D,o._4],"5/8_alt":[o._4,o._4D],"12/16":[o._8D,o._8D,o._8D,o._8D],"6/8":[o._4D,o._4D],"3/4":[o._2D],"7/8":[o._4,o._8D],"7/8_alt":[o._8D,o._4],"8/8":[o._4D,o._4D,o._4],"8/8_alt":[o._4D,o._4,o._4D],"8/8_alt2":[o._4,o._4D,o._4D],"4/4":[o._2,o._2],"4/4_clean":[o._4,o._4,o._4,o._4],"2/2":[o._2,o._2],"1/1":[o._1],"9/8":[o._4D,o._4D,o._4D],"10/8":[o._2,o._4D,o._4D],"10/8_alt":[o._4D,o._2,o._4D],"10/8_alt2":[o._4D,o._4D,o._2],"5/4":[o._2D,o._2],"5/4_alt":[o._2,o._2D],"12/8":[o._4D,o._4D,o._4D,o._4D],"6/4":[o._2D,o._2D],"3/2":[o._2,o._2,o._2],"7/4":[o._1,o._2D],"7/4_alt":[o._2D,o._1],"15/8":[o._4D,o._4D,o._4D,o._4D,o._4D],"8/4":[o._1,o._1],"4/2":[o._1,o._1],"2/1":[o._1,o._1],"18/8":[o._4D,o._4D,o._4D,o._4D,o._4D,o._4D],"9/4":[o._2D,o._2D,o._2D]};t.getBeamingPattern=i},function(e,t,n){"use strict";function i(e){return a(!!e,"Expected time to be defined."),r.reduce(e.beats,function(t,n,i){return n+"/"+e.beatTypes[i]},"")}var r=n(1),a=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return o(!e.timeModification,"timeModification is not implemented in makeDuration"),[{dots:a.times(e.dots||0,function(){return{}}),noteType:{duration:e.count},_class:"Note"}]}function r(e,t,n){for(var r=1;r<=512;++r)for(var a=0;a<3;++a){var o={count:r,dots:a};if(l.divisions(o,{time:t,divisions:e},!0)===n)return i(o)}throw new Error("Unknown duration "+n+" at "+(e+" divs per quarter"))}var a=n(1),o=n(2),l=n(8);t.makeDuration=r,t._512=i({count:512}),t._256=i({count:256}),t._256D=i({count:256,dots:1}),t._128=i({count:128}),t._128D=i({count:128,dots:1}),t._64=i({count:64}),t._64D=i({count:64,dots:1}),t._32=i({count:32}),t._32D=i({count:32,dots:1}),t._16=i({count:16}),t._16D=i({count:16,dots:1}),t._16DD=i({count:16,dots:2}),t._8=i({count:8}),t._8D=i({count:8,dots:1}),t._8DD=i({count:8,dots:2}),t._4=i({count:4}),t._4D=i({count:4,dots:1}),t._4DD=i({count:4,dots:2}),t._2=i({count:2}),t._2D=i({count:2,dots:1}),t._2DD=i({count:2,dots:2}),t._1=i({count:1}),t._1D=i({count:1,dots:1}),t._1DD=i({count:1,dots:2}),t._05=i({count:.5})},function(e,t){"use strict";var n={fontName:"Bravura",fontVersion:1.12,engravingDefaults:{arrowShaftThickness:.16,barlineSeparation:.4,beamSpacing:.25,beamThickness:.5,bracketThickness:.5,dashedBarlineDashLength:.5,dashedBarlineGapLength:.25,dashedBarlineThickness:.16,hairpinThickness:.16,legerLineExtension:.4,legerLineThickness:.16,lyricLineThickness:.16,octaveLineThickness:.16,pedalLineThickness:.16,repeatBarlineDotSeparation:.16,repeatEndingLineThickness:.16,slurEndpointThickness:.1,slurMidpointThickness:.22,staffLineThickness:.13,stemThickness:.12,subBracketThickness:.16,textEnclosureThickness:.16,thickBarlineThickness:.5,thinBarlineThickness:.16,tieEndpointThickness:.1,tieMidpointThickness:.22,tupletBracketThickness:.16},glyphBBoxes:[[1.088,2.016,-.012,-2.032,"4stringTabClef"],[1.296,2.008,0,-2.008,"4stringTabClefSerif"],[1.272,2.344,0,-2.344,"4stringTabClefTall"],[1.632,3.056,-.012,-2.992,"6stringTabClef"],[1.948,3.02,0,-3.016,"6stringTabClefSerif"],[2.164,4.028,-.024,-4.02,"6stringTabClefTall"],[1.376,1.436,0,-.688,"accSagittal11LargeDiesisDown"],[1.376,.688,0,-1.436,"accSagittal11LargeDiesisUp"],[1.376,1.436,0,-.688,"accSagittal11MediumDiesisDown"],[1.376,.688,0,-1.436,"accSagittal11MediumDiesisUp"],[1.248,1.436,0,-.688,"accSagittal11v19LargeDiesisDown"],[1.248,.688,0,-1.436,"accSagittal11v19LargeDiesisUp"],[1.376,1.436,0,-.688,"accSagittal11v19MediumDiesisDown"],[1.376,.688,0,-1.436,"accSagittal11v19MediumDiesisUp"],[.748,1.436,-.004,-.688,"accSagittal11v49CommaDown"],[.748,.688,0,-1.436,"accSagittal11v49CommaUp"],[.624,1.436,0,-.688,"accSagittal143CommaDown"],[.624,.688,0,-1.436,"accSagittal143CommaUp"],[1.128,1.436,.004,-.688,"accSagittal17CommaDown"],[1.124,.688,0,-1.436,"accSagittal17CommaUp"],[.624,1.436,0,-.688,"accSagittal17KleismaDown"],[.624,.688,0,-1.436,"accSagittal17KleismaUp"],[1.128,1.44,0,-.684,"accSagittal19CommaDown"],[1.124,.688,0,-1.436,"accSagittal19CommaUp"],[.5,1.436,0,-.684,"accSagittal19SchismaDown"],[.5,.688,0,-1.436,"accSagittal19SchismaUp"],[.748,1.436,0,-.688,"accSagittal23CommaDown"],[.748,.688,0,-1.436,"accSagittal23CommaUp"],[1.376,1.436,0,-.688,"accSagittal23SmallDiesisDown"],[1.376,.688,0,-1.436,"accSagittal23SmallDiesisUp"],[1,1.436,0,-.688,"accSagittal25SmallDiesisDown"],[1,.688,0,-1.436,"accSagittal25SmallDiesisUp"],[1.5,1.436,0,-.688,"accSagittal35LargeDiesisDown"],[1.5,.688,0,-1.436,"accSagittal35LargeDiesisUp"],[1.124,1.436,0,-.688,"accSagittal35MediumDiesisDown"],[1.124,.688,0,-1.436,"accSagittal35MediumDiesisUp"],[1.124,1.436,0,-.688,"accSagittal49LargeDiesisDown"],[1.124,.688,0,-1.436,"accSagittal49LargeDiesisUp"],[1,1.436,0,-.688,"accSagittal49MediumDiesisDown"],[1,.688,0,-1.436,"accSagittal49MediumDiesisUp"],[1.124,1.436,0,-.688,"accSagittal49SmallDiesisDown"],[1.124,.688,0,-1.436,"accSagittal49SmallDiesisUp"],[.876,1.436,0,-.688,"accSagittal55CommaDown"],[.876,.688,0,-1.436,"accSagittal55CommaUp"],[.624,1.436,0,-.688,"accSagittal5CommaDown"],[.624,.688,0,-1.436,"accSagittal5CommaUp"],[1.252,1.436,0,-.688,"accSagittal5v11SmallDiesisDown"],[1.248,.688,0,-1.436,"accSagittal5v11SmallDiesisUp"],[1.752,1.44,0,-.684,"accSagittal5v13LargeDiesisDown"],[1.748,.688,0,-1.436,"accSagittal5v13LargeDiesisUp"],[1,1.436,0,-.688,"accSagittal5v13MediumDiesisDown"],[1,.688,0,-1.436,"accSagittal5v13MediumDiesisUp"],[.624,1.436,0,-.688,"accSagittal5v19CommaDown"],[.624,.688,0,-1.436,"accSagittal5v19CommaUp"],[1.248,1.436,0,-.688,"accSagittal5v23SmallDiesisDown"],[1.248,.688,0,-1.436,"accSagittal5v23SmallDiesisUp"],[1.376,1.44,0,-.684,"accSagittal5v49MediumDiesisDown"],[1.376,.688,0,-1.436,"accSagittal5v49MediumDiesisUp"],[.628,1.436,0,-.688,"accSagittal5v7KleismaDown"],[.624,.684,0,-1.44,"accSagittal5v7KleismaUp"],[.624,1.436,0,-.688,"accSagittal7CommaDown"],[.624,.688,0,-1.436,"accSagittal7CommaUp"],[.748,1.436,0,-.688,"accSagittal7v11CommaDown"],[.748,.688,0,-1.436,"accSagittal7v11CommaUp"],[.88,1.436,0,-.684,"accSagittal7v11KleismaDown"],[.876,.684,-.004,-1.436,"accSagittal7v11KleismaUp"],[1,1.44,0,-.684,"accSagittal7v19CommaDown"],[1,.688,0,-1.436,"accSagittal7v19CommaUp"],[.5,.5,0,-.248,"accSagittalAcute"],[1.876,1.436,0,-.688,"accSagittalDoubleFlat"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat11v49CUp"],[1.876,1.436,0,-.688,"accSagittalDoubleFlat143CUp"],[1.748,1.436,0,-.688,"accSagittalDoubleFlat17CUp"],[1.748,1.436,0,-.688,"accSagittalDoubleFlat17kUp"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat19CUp"],[1.748,1.436,0,-.688,"accSagittalDoubleFlat19sUp"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat23CUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat23SUp"],[1.62,1.436,0,-.684,"accSagittalDoubleFlat25SUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat49SUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat55CUp"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat5CUp"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat5v11SUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat5v19CUp"],[1.624,1.436,0,-.684,"accSagittalDoubleFlat5v23SUp"],[1.624,1.436,0,-.688,"accSagittalDoubleFlat5v7kUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat7CUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat7v11CUp"],[1.748,1.436,0,-.688,"accSagittalDoubleFlat7v11kUp"],[1.5,1.436,0,-.688,"accSagittalDoubleFlat7v19CUp"],[1.876,.688,0,-1.436,"accSagittalDoubleSharp"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp11v49CDown"],[1.876,.688,0,-1.436,"accSagittalDoubleSharp143CDown"],[1.748,.684,0,-1.436,"accSagittalDoubleSharp17CDown"],[1.748,.688,0,-1.436,"accSagittalDoubleSharp17kDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp19CDown"],[1.748,.688,0,-1.436,"accSagittalDoubleSharp19sDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp23CDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp23SDown"],[1.624,.684,.004,-1.436,"accSagittalDoubleSharp25SDown"],[1.5,.684,.004,-1.44,"accSagittalDoubleSharp49SDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp55CDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp5CDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp5v11SDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp5v19CDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp5v23SDown"],[1.624,.688,0,-1.436,"accSagittalDoubleSharp5v7kDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp7CDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp7v11CDown"],[1.748,.688,0,-1.436,"accSagittalDoubleSharp7v11kDown"],[1.5,.688,0,-1.436,"accSagittalDoubleSharp7v19CDown"],[1.624,1.436,0,-.688,"accSagittalFlat"],[1.876,1.436,0,-.688,"accSagittalFlat11LDown"],[1.876,1.436,0,-.688,"accSagittalFlat11MDown"],[1.748,1.436,0,-.688,"accSagittalFlat11v19LDown"],[1.748,1.436,0,-.688,"accSagittalFlat11v19MDown"],[1.248,1.436,0,-.688,"accSagittalFlat11v49CDown"],[1.376,1.436,0,-.688,"accSagittalFlat11v49CUp"],[1.248,1.436,0,-.684,"accSagittalFlat143CDown"],[1.624,1.436,0,-.688,"accSagittalFlat143CUp"],[1.624,1.436,0,-.688,"accSagittalFlat17CDown"],[1.5,1.436,0,-.688,"accSagittalFlat17CUp"],[1.248,1.436,0,-.688,"accSagittalFlat17kDown"],[1.248,1.436,0,-.688,"accSagittalFlat17kUp"],[1.5,1.436,0,-.688,"accSagittalFlat19CDown"],[1.124,1.436,0,-.688,"accSagittalFlat19CUp"],[1.128,1.436,0,-.684,"accSagittalFlat19sDown"],[1.624,1.436,0,-.688,"accSagittalFlat19sUp"],[1.376,1.436,0,-.688,"accSagittalFlat23CDown"],[1.5,1.436,0,-.688,"accSagittalFlat23CUp"],[1.876,1.436,0,-.688,"accSagittalFlat23SDown"],[1,1.436,0,-.688,"accSagittalFlat23SUp"],[1.5,1.436,0,-.688,"accSagittalFlat25SDown"],[1.38,1.436,0,-.684,"accSagittalFlat25SUp"],[2,1.436,0,-.688,"accSagittalFlat35LDown"],[1.624,1.436,0,-.688,"accSagittalFlat35MDown"],[1.624,1.436,0,-.688,"accSagittalFlat49LDown"],[1.5,1.436,0,-.688,"accSagittalFlat49MDown"],[1.624,1.436,0,-.688,"accSagittalFlat49SDown"],[1,1.436,0,-.688,"accSagittalFlat49SUp"],[1.376,1.436,0,-.688,"accSagittalFlat55CDown"],[1,1.436,0,-.688,"accSagittalFlat55CUp"],[1.248,1.436,0,-.688,"accSagittalFlat5CDown"],[1.124,1.436,0,-.688,"accSagittalFlat5CUp"],[1.748,1.436,0,-.688,"accSagittalFlat5v11SDown"],[1.376,1.436,0,-.688,"accSagittalFlat5v11SUp"],[2,1.44,0,-.684,"accSagittalFlat5v13LDown"],[1.5,1.436,0,-.688,"accSagittalFlat5v13MDown"],[1.248,1.436,0,-.688,"accSagittalFlat5v19CDown"],[1.252,1.436,0,-.684,"accSagittalFlat5v19CUp"],[1.624,1.436,0,-.688,"accSagittalFlat5v23SDown"],[1.124,1.436,0,-.688,"accSagittalFlat5v23SUp"],[1.876,1.436,0,-.688,"accSagittalFlat5v49MDown"],[1.248,1.436,-.004,-.688,"accSagittalFlat5v7kDown"],[1.376,1.436,0,-.688,"accSagittalFlat5v7kUp"],[1.248,1.44,0,-.684,"accSagittalFlat7CDown"],[1,1.436,0,-.688,"accSagittalFlat7CUp"],[1.376,1.436,0,-.688,"accSagittalFlat7v11CDown"],[1.376,1.436,0,-.688,"accSagittalFlat7v11CUp"],[1.62,1.436,0,-.684,"accSagittalFlat7v11kDown"],[1.248,1.436,0,-.688,"accSagittalFlat7v11kUp"],[1.5,1.436,0,-.688,"accSagittalFlat7v19CDown"],[1,1.436,0,-.688,"accSagittalFlat7v19CUp"],[.5,.248,0,-.5,"accSagittalGrave"],[.124,1.436,0,-.688,"accSagittalShaftDown"],[.124,.688,0,-1.436,"accSagittalShaftUp"],[1.624,.688,0,-1.436,"accSagittalSharp"],[1.876,.688,0,-1.436,"accSagittalSharp11LUp"],[1.876,.688,0,-1.436,"accSagittalSharp11MUp"],[1.748,.688,0,-1.436,"accSagittalSharp11v19LUp"],[1.748,.688,0,-1.436,"accSagittalSharp11v19MUp"],[1.376,.688,0,-1.436,"accSagittalSharp11v49CDown"],[1.248,.688,0,-1.436,"accSagittalSharp11v49CUp"],[1.624,.688,0,-1.436,"accSagittalSharp143CDown"],[1.248,.688,0,-1.436,"accSagittalSharp143CUp"],[1.5,.684,0,-1.436,"accSagittalSharp17CDown"],[1.624,.688,0,-1.436,"accSagittalSharp17CUp"],[1.248,.688,0,-1.436,"accSagittalSharp17kDown"],[1.248,.688,0,-1.436,"accSagittalSharp17kUp"],[1.128,.688,0,-1.436,"accSagittalSharp19CDown"],[1.5,.688,0,-1.436,"accSagittalSharp19CUp"],[1.624,.688,0,-1.436,"accSagittalSharp19sDown"],[1.124,.688,0,-1.436,"accSagittalSharp19sUp"],[1.5,.688,0,-1.436,"accSagittalSharp23CDown"],[1.376,.688,0,-1.436,"accSagittalSharp23CUp"],[1,.688,0,-1.44,"accSagittalSharp23SDown"],[1.876,.688,0,-1.436,"accSagittalSharp23SUp"],[1.376,.684,-.004,-1.436,"accSagittalSharp25SDown"],[1.5,.688,0,-1.436,"accSagittalSharp25SUp"],[2,.688,0,-1.436,"accSagittalSharp35LUp"],[1.624,.688,0,-1.436,"accSagittalSharp35MUp"],[1.624,.688,0,-1.436,"accSagittalSharp49LUp"],[1.5,.688,0,-1.436,"accSagittalSharp49MUp"],[1,.688,-.004,-1.436,"accSagittalSharp49SDown"],[1.624,.688,0,-1.436,"accSagittalSharp49SUp"],[1,.688,0,-1.436,"accSagittalSharp55CDown"],[1.376,.688,0,-1.436,"accSagittalSharp55CUp"],[1.124,.688,0,-1.436,"accSagittalSharp5CDown"],[1.248,.688,0,-1.436,"accSagittalSharp5CUp"],[1.376,.684,0,-1.44,"accSagittalSharp5v11SDown"],[1.748,.684,0,-1.436,"accSagittalSharp5v11SUp"],[2,.688,0,-1.436,"accSagittalSharp5v13LUp"],[1.5,.688,0,-1.44,"accSagittalSharp5v13MUp"],[1.248,.688,0,-1.436,"accSagittalSharp5v19CDown"],[1.248,.688,0,-1.436,"accSagittalSharp5v19CUp"],[1.124,.688,0,-1.436,"accSagittalSharp5v23SDown"],[1.624,.688,0,-1.436,"accSagittalSharp5v23SUp"],[1.876,.688,0,-1.436,"accSagittalSharp5v49MUp"],[1.376,.688,0,-1.436,"accSagittalSharp5v7kDown"],[1.248,.684,0,-1.444,"accSagittalSharp5v7kUp"],[1,.688,0,-1.436,"accSagittalSharp7CDown"],[1.248,.688,0,-1.436,"accSagittalSharp7CUp"],[1.376,.688,0,-1.436,"accSagittalSharp7v11CDown"],[1.376,.688,0,-1.436,"accSagittalSharp7v11CUp"],[1.248,.688,0,-1.436,"accSagittalSharp7v11kDown"],[1.624,.684,.004,-1.436,"accSagittalSharp7v11kUp"],[1,.688,0,-1.436,"accSagittalSharp7v19CDown"],[1.5,.688,0,-1.436,"accSagittalSharp7v19CUp"],[.496,.496,0,0,"accdnCombDot"],[3.128,3.128,0,0,"accdnCombLH2RanksEmpty"],[2.552,3.136,0,0,"accdnCombLH3RanksEmptySquare"],[3.128,3.128,0,0,"accdnCombRH3RanksEmpty"],[3.128,3.128,0,0,"accdnCombRH4RanksEmpty"],[1.136,1.864,0,-1.852,"accdnDiatonicClef"],[3.128,3.128,0,0,"accdnLH2Ranks16Round"],[3.128,3.128,0,0,"accdnLH2Ranks8Plus16Round"],[3.128,3.128,0,0,"accdnLH2Ranks8Round"],[3.128,3.128,0,0,"accdnLH2RanksFullMasterRound"],[3.128,3.128,0,0,"accdnLH2RanksMasterPlus16Round"],[3.128,3.128,0,0,"accdnLH2RanksMasterRound"],[2.552,3.136,0,0,"accdnLH3Ranks2Plus8Square"],[2.552,3.136,0,0,"accdnLH3Ranks2Square"],[2.552,3.136,0,0,"accdnLH3Ranks8Square"],[2.552,3.136,0,0,"accdnLH3RanksDouble8Square"],[2.552,3.136,0,0,"accdnLH3RanksTuttiSquare"],[.92,2.3,0,0,"accdnPull"],[.92,2.3,0,0,"accdnPush"],[.776,2.304,0,0,"accdnPushAlt"],[3.128,3.128,0,0,"accdnRH3RanksAccordion"],[3.128,3.128,0,0,"accdnRH3RanksAuthenticMusette"],[3.128,3.128,0,0,"accdnRH3RanksBandoneon"],[3.128,3.128,0,0,"accdnRH3RanksBassoon"],[3.128,3.128,0,0,"accdnRH3RanksClarinet"],[3.128,3.128,0,0,"accdnRH3RanksDoubleTremoloLower8ve"],[3.128,3.128,0,0,"accdnRH3RanksDoubleTremoloUpper8ve"],[3.128,3.128,0,0,"accdnRH3RanksFullFactory"],[3.128,3.128,0,0,"accdnRH3RanksHarmonium"],[3.128,3.128,0,0,"accdnRH3RanksImitationMusette"],[3.128,3.128,0,0,"accdnRH3RanksLowerTremolo8"],[3.128,3.128,0,0,"accdnRH3RanksMaster"],[3.128,3.128,0,0,"accdnRH3RanksOboe"],[3.128,3.128,0,0,"accdnRH3RanksOrgan"],[3.128,3.128,0,0,"accdnRH3RanksPiccolo"],[3.128,3.128,0,0,"accdnRH3RanksTremoloLower8ve"],[3.128,3.128,0,0,"accdnRH3RanksTremoloUpper8ve"],[3.128,3.128,0,0,"accdnRH3RanksTwoChoirs"],[3.128,3.128,0,0,"accdnRH3RanksUpperTremolo8"],[3.128,3.128,0,0,"accdnRH3RanksViolin"],[3.128,3.128,0,0,"accdnRH4RanksAlto"],[3.128,3.128,0,0,"accdnRH4RanksBassAlto"],[3.128,3.128,0,0,"accdnRH4RanksMaster"],[3.128,3.128,0,0,"accdnRH4RanksSoftBass"],[3.128,3.128,0,0,"accdnRH4RanksSoftTenor"],[3.128,3.128,0,0,"accdnRH4RanksSoprano"],[3.128,3.128,0,0,"accdnRH4RanksTenor"],[1.552,2.94,0,0,"accdnRicochet2"],[1.832,2.94,0,0,"accdnRicochet3"],[2.512,2.94,0,0,"accdnRicochet4"],[3.072,2.94,0,0,"accdnRicochet5"],[3.752,2.94,0,0,"accdnRicochet6"],[.752,.568,-.76,-.564,"accdnRicochetStem2"],[.78,.744,-.768,-.744,"accdnRicochetStem3"],[.776,.96,-.772,-.976,"accdnRicochetStem4"],[.776,1.188,-.772,-1.184,"accdnRicochetStem5"],[.772,1.424,-.776,-1.4,"accdnRicochetStem6"],[.996,1.976,0,-.7,"accidental1CommaFlat"],[1.5,2.076,0,-1.392,"accidental1CommaSharp"],[1.288,1.944,0,-.7,"accidental2CommaFlat"],[1.82,2.068,0,-1.392,"accidental2CommaSharp"],[1.196,1.912,0,-.7,"accidental3CommaFlat"],[1.748,2.044,0,-1.392,"accidental3CommaSharp"],[1.292,1.968,0,-.7,"accidental4CommaFlat"],[1.752,2.04,0,-1.392,"accidental5CommaSharp"],[.74,1.552,0,-.508,"accidentalArrowDown"],[.74,1.56,0,-.5,"accidentalArrowUp"],[1.144,1.756,-.004,-.7,"accidentalBakiyeFlat"],[.996,1.4,0,-1.392,"accidentalBakiyeSharp"],[1.148,1.752,.004,-.696,"accidentalBuyukMucennebFlat"],[1.364,1.392,0,-1.4,"accidentalBuyukMucennebSharp"],[.548,1.328,0,-.492,"accidentalCombiningCloseCurlyBrace"],[.792,.88,0,-.504,"accidentalCombiningLower17Schisma"],[.792,.26,0,-.496,"accidentalCombiningLower19Schisma"],[.988,1.18,0,-.5,"accidentalCombiningLower23Limit29LimitComma"],[1.188,.332,0,.152,"accidentalCombiningLower31Schisma"],[.548,1.328,0,-.492,"accidentalCombiningOpenCurlyBrace"],[.792,.88,0,-.504,"accidentalCombiningRaise17Schisma"],[.792,.26,0,-.496,"accidentalCombiningRaise19Schisma"],[.988,1.02,0,-.66,"accidentalCombiningRaise23Limit29LimitComma"],[1.188,.836,0,-.352,"accidentalCombiningRaise31Schisma"],[1.2,.512,0,-.508,"accidentalCommaSlashDown"],[1.2,.512,0,-.508,"accidentalCommaSlashUp"],[1.644,1.748,0,-.7,"accidentalDoubleFlat"],[1.668,1.808,-.396,-.728,"accidentalDoubleFlatEqualTempered"],[1.644,1.748,0,-.7,"accidentalDoubleFlatJoinedStems"],[1.668,1.748,0,-1.408,"accidentalDoubleFlatOneArrowDown"],[1.668,2.136,-.28,-.732,"accidentalDoubleFlatOneArrowUp"],[2.972,1.748,0,-1.004,"accidentalDoubleFlatParens"],[1.644,1.748,0,-.7,"accidentalDoubleFlatReversed"],[1.668,1.748,0,-2.292,"accidentalDoubleFlatThreeArrowsDown"],[1.668,3.016,-.284,-.732,"accidentalDoubleFlatThreeArrowsUp"],[1.644,.724,0,-1.724,"accidentalDoubleFlatTurned"],[1.668,1.748,0,-1.848,"accidentalDoubleFlatTwoArrowsDown"],[1.668,2.576,-.284,-.732,"accidentalDoubleFlatTwoArrowsUp"],[.988,.508,0,-.5,"accidentalDoubleSharp"],[.984,1.036,-.004,-.5,"accidentalDoubleSharpEqualTempered"],[.984,.508,-.004,-1.288,"accidentalDoubleSharpOneArrowDown"],[.984,1.324,-.004,-.496,"accidentalDoubleSharpOneArrowUp"],[1.992,1,0,-1.004,"accidentalDoubleSharpParens"],[.984,.512,-.004,-2.172,"accidentalDoubleSharpThreeArrowsDown"],[.984,2.208,-.004,-.5,"accidentalDoubleSharpThreeArrowsUp"],[.984,.508,-.004,-1.732,"accidentalDoubleSharpTwoArrowsDown"],[.984,1.764,-.004,-.496,"accidentalDoubleSharpTwoArrowsUp"],[1.46,1.748,0,-.7,"accidentalFilledReversedFlatAndFlat"],[1.46,1.748,0,-2.212,"accidentalFilledReversedFlatAndFlatArrowDown"],[1.46,2.188,0,-.7,"accidentalFilledReversedFlatAndFlatArrowUp"],[1.216,1.748,.004,-1.932,"accidentalFilledReversedFlatArrowDown"],[1.24,2.54,0,-.696,"accidentalFilledReversedFlatArrowUp"],[1.652,1.768,-.24,-1.672,"accidentalFiveQuarterTonesFlatArrowDown"],[1.184,1.448,0,-.5,"accidentalFiveQuarterTonesSharpArrowUp"],[.904,1.756,0,-.7,"accidentalFlat"],[.904,1.808,-.388,-.728,"accidentalFlatEqualTempered"],[1.196,1.756,0,-1.288,"accidentalFlatJohnstonDown"],[.904,1.76,0,-1.24,"accidentalFlatJohnstonEl"],[1.184,1.76,0,-1.72,"accidentalFlatJohnstonElDown"],[1.204,1.76,0,-.7,"accidentalFlatJohnstonUp"],[1.184,1.72,0,-1.24,"accidentalFlatJohnstonUpEl"],[.904,1.748,-.284,-1.408,"accidentalFlatOneArrowDown"],[.904,2.14,-.284,-.728,"accidentalFlatOneArrowUp"],[2.184,1.756,0,-1.004,"accidentalFlatParens"],[1.052,1.772,.004,-.708,"accidentalFlatSmall"],[.904,1.748,-.28,-2.292,"accidentalFlatThreeArrowsDown"],[.904,3.024,-.284,-.728,"accidentalFlatThreeArrowsUp"],[.908,.704,.004,-1.752,"accidentalFlatTurned"],[.904,1.748,-.28,-1.852,"accidentalFlatTwoArrowsDown"],[.904,2.576,-.284,-.728,"accidentalFlatTwoArrowsUp"],[.924,1.288,-.012,-2.168,"accidentalHalfSharpArrowDown"],[.928,2.188,-.008,-1.348,"accidentalHalfSharpArrowUp"],[.76,.376,.08,-.388,"accidentalJohnston13"],[.72,.388,.04,-.376,"accidentalJohnston31"],[.72,.5,0,-.72,"accidentalJohnstonDown"],[.94,1.02,0,-.72,"accidentalJohnstonDownEl"],[.64,.52,0,-.74,"accidentalJohnstonEl"],[.6,.06,0,-.06,"accidentalJohnstonMinus"],[.6,.3,0,-.3,"accidentalJohnstonPlus"],[.64,.74,0,-.52,"accidentalJohnstonSeven"],[.94,1.24,0,-.22,"accidentalJohnstonSevenDown"],[1.38,1.74,0,-.7,"accidentalJohnstonSevenFlat"],[1.376,1.74,0,-1.22,"accidentalJohnstonSevenFlatDown"],[1.396,1.72,0,-.7,"accidentalJohnstonSevenFlatUp"],[1.316,1.4,0,-1.392,"accidentalJohnstonSevenSharp"],[1.412,1.396,0,-1.72,"accidentalJohnstonSevenSharpDown"],[1.412,1.72,0,-1.396,"accidentalJohnstonSevenSharpUp"],[.94,.72,0,-1.02,"accidentalJohnstonSevenUp"],[.72,.72,0,-.5,"accidentalJohnstonUp"],[.94,1.22,0,-.24,"accidentalJohnstonUpEl"],[.908,1.756,.004,-.7,"accidentalKomaFlat"],[.916,1.288,0,-1.348,"accidentalKomaSharp"],[1.2,.628,0,-1.888,"accidentalKoron"],[.904,1.756,0,-.7,"accidentalKucukMucennebFlat"],[1.356,1.284,-.004,-1.352,"accidentalKucukMucennebSharp"],[1.376,.688,0,-.688,"accidentalLargeDoubleSharp"],[.684,1.616,0,-.5,"accidentalLowerOneSeptimalComma"],[.9,1.748,0,-.696,"accidentalLowerOneTridecimalQuartertone"],[.904,1.748,0,-.728,"accidentalLowerOneUndecimalQuartertone"],[.684,2.28,0,-.496,"accidentalLowerTwoSeptimalCommas"],[.656,1.684,0,-.776,"accidentalNarrowReversedFlat"],[1.656,1.684,0,-.776,"accidentalNarrowReversedFlatAndFlat"],[.672,1.364,0,-1.34,"accidentalNatural"],[.672,1.432,-.396,-1.332,"accidentalNaturalEqualTempered"],[1.836,1.756,0,-1.34,"accidentalNaturalFlat"],[.952,1.372,0,-1.68,"accidentalNaturalOneArrowDown"],[.676,1.704,-.28,-1.328,"accidentalNaturalOneArrowUp"],[2.16,1.364,0,-1.34,"accidentalNaturalParens"],[.672,1.364,0,-1.34,"accidentalNaturalReversed"],[1.924,1.4,0,-1.392,"accidentalNaturalSharp"],[.76,1.364,0,-1.336,"accidentalNaturalSmall"],[.956,1.372,0,-2.568,"accidentalNaturalThreeArrowsDown"],[.676,2.584,-.284,-1.328,"accidentalNaturalThreeArrowsUp"],[.956,1.372,0,-2.128,"accidentalNaturalTwoArrowsDown"],[.676,2.148,-.284,-1.328,"accidentalNaturalTwoArrowsUp"],[1.268,1.476,-.204,-2.364,"accidentalOneAndAHalfSharpsArrowDown"],[1.476,2.432,.012,-1.388,"accidentalOneAndAHalfSharpsArrowUp"],[.752,.508,0,-2.136,"accidentalOneThirdToneFlatFerneyhough"],[.764,2.16,0,-.5,"accidentalOneThirdToneSharpFerneyhough"],[.652,1,0,-1.004,"accidentalParensLeft"],[.652,1,0,-1.004,"accidentalParensRight"],[1.672,2.5,0,-.704,"accidentalQuarterToneFlat4"],[.992,2.316,-.168,-.708,"accidentalQuarterToneFlatArrowUp"],[.908,1.748,.008,-.696,"accidentalQuarterToneFlatFilledReversed"],[1,1.344,.012,-2.172,"accidentalQuarterToneFlatNaturalArrowDown"],[.908,1.748,.008,-.696,"accidentalQuarterToneFlatPenderecki"],[.908,1.756,.004,-.7,"accidentalQuarterToneFlatStein"],[.94,1.76,0,-.696,"accidentalQuarterToneFlatVanBlankenburg"],[1.576,2.416,0,-1.404,"accidentalQuarterToneSharp4"],[.996,1.396,-.112,-2.136,"accidentalQuarterToneSharpArrowDown"],[.668,1.22,0,-1.388,"accidentalQuarterToneSharpBusotti"],[.848,2.188,-.104,-1.36,"accidentalQuarterToneSharpNaturalArrowUp"],[.716,1.228,0,-1.412,"accidentalQuarterToneSharpStein"],[2.2,1.4,.004,-1.392,"accidentalQuarterToneSharpWiggle"],[.684,1.608,0,-.508,"accidentalRaiseOneSeptimalComma"],[1.076,1.524,-.004,-1.3,"accidentalRaiseOneTridecimalQuartertone"],[1.08,1.368,0,-1.308,"accidentalRaiseOneUndecimalQuartertone"],[.684,2.276,0,-.5,"accidentalRaiseTwoSeptimalCommas"],[1.54,1.748,0,-2.212,"accidentalReversedFlatAndFlatArrowDown"],[1.54,2.188,0,-.7,"accidentalReversedFlatAndFlatArrowUp"],[1.22,1.748,.008,-1.932,"accidentalReversedFlatArrowDown"],[1.248,2.54,.008,-.696,"accidentalReversedFlatArrowUp"],[.996,1.4,0,-1.392,"accidentalSharp"],[.996,1.776,-.192,-1.392,"accidentalSharpEqualTempered"],[1.096,1.4,0,-1.732,"accidentalSharpJohnstonDown"],[1.412,1.396,0,-1.72,"accidentalSharpJohnstonDownEl"],[1.324,1.396,0,-1.396,"accidentalSharpJohnstonEl"],[1.092,1.732,0,-1.392,"accidentalSharpJohnstonUp"],[1.312,1.72,0,-1.396,"accidentalSharpJohnstonUpEl"],[1.072,1.4,0,-2.056,"accidentalSharpOneArrowDown"],[.996,2.036,-.08,-1.392,"accidentalSharpOneArrowUp"],[.996,1.428,0,-1.388,"accidentalSharpOneHorizontalStroke"],[2.24,1.4,0,-1.392,"accidentalSharpParens"],[.996,1.4,0,-1.392,"accidentalSharpReversed"],[2.076,1.4,0,-1.392,"accidentalSharpSharp"],[1.044,1.404,0,-1.396,"accidentalSharpSmall"],[1.076,1.4,0,-2.944,"accidentalSharpThreeArrowsDown"],[.996,2.916,-.084,-1.392,"accidentalSharpThreeArrowsUp"],[1.076,1.4,0,-2.5,"accidentalSharpTwoArrowsDown"],[.996,2.476,-.084,-1.392,"accidentalSharpTwoArrowsUp"],[1.212,2.3,0,-.412,"accidentalSims12Down"],[1.212,.528,0,-2.184,"accidentalSims12Up"],[1.952,2.516,0,-.528,"accidentalSims4Down"],[1.088,.532,-.484,-2.756,"accidentalSims4Up"],[1.088,2.184,0,-.528,"accidentalSims6Down"],[1.088,.532,0,-2.18,"accidentalSims6Up"],[1.684,1.312,0,-1.272,"accidentalSori"],[2.452,1.752,0,-.704,"accidentalTavenerFlat"],[2.22,1.396,0,-1.392,"accidentalTavenerSharp"],[1.004,1.768,-.156,-1.672,"accidentalThreeQuarterTonesFlatArrowDown"],[1.644,2.492,0,-.7,"accidentalThreeQuarterTonesFlatArrowUp"],[1.64,1.764,0,-.712,"accidentalThreeQuarterTonesFlatCouper"],[.9,1.748,0,-.696,"accidentalThreeQuarterTonesFlatGrisey"],[1.376,1.756,0,-.7,"accidentalThreeQuarterTonesFlatTartini"],[1.864,1.756,.004,-.7,"accidentalThreeQuarterTonesFlatZimmermann"],[.992,.488,-.192,-1.46,"accidentalThreeQuarterTonesSharpArrowDown"],[1.1,2.12,0,-1.388,"accidentalThreeQuarterTonesSharpArrowUp"],[1.472,1.66,0,-1.396,"accidentalThreeQuarterTonesSharpBusotti"],[1.268,1.476,.012,-1.388,"accidentalThreeQuarterTonesSharpStein"],[2.384,1.756,0,-.7,"accidentalTripleFlat"],[2.384,1.756,0,-.7,"accidentalTripleFlatJoinedStems"],[2.076,1.4,0,-1.392,"accidentalTripleSharp"],[.796,.504,0,-2.148,"accidentalTwoThirdTonesFlatFerneyhough"],[.784,2.16,0,-.496,"accidentalTwoThirdTonesSharpFerneyhough"],[1.124,.744,0,-.744,"accidentalWilsonMinus"],[1.124,.812,0,-.812,"accidentalWilsonPlus"],[1.656,1.972,0,-.7,"accidentalWyschnegradsky10TwelfthsFlat"],[1.576,1.988,0,-1.388,"accidentalWyschnegradsky10TwelfthsSharp"],[1.656,1.972,0,-.7,"accidentalWyschnegradsky11TwelfthsFlat"],[1.576,2.572,0,-1.388,"accidentalWyschnegradsky11TwelfthsSharp"],[.852,1.832,0,-1.264,"accidentalWyschnegradsky1TwelfthsFlat"],[.652,1.404,0,-1.452,"accidentalWyschnegradsky1TwelfthsSharp"],[.852,1.832,0,-1.264,"accidentalWyschnegradsky2TwelfthsFlat"],[.652,1.404,0,-1.452,"accidentalWyschnegradsky2TwelfthsSharp"],[.852,1.592,0,-1.264,"accidentalWyschnegradsky3TwelfthsFlat"],[.652,1.228,0,-1.388,"accidentalWyschnegradsky3TwelfthsSharp"],[.904,1.972,0,-.7,"accidentalWyschnegradsky4TwelfthsFlat"],[.904,1.464,0,-1.388,"accidentalWyschnegradsky4TwelfthsSharp"],[.904,1.972,0,-.7,"accidentalWyschnegradsky5TwelfthsFlat"],[.9,2.044,0,-1.388,"accidentalWyschnegradsky5TwelfthsSharp"],[.904,1.756,0,-.7,"accidentalWyschnegradsky6TwelfthsFlat"],[.996,1.4,0,-1.392,"accidentalWyschnegradsky6TwelfthsSharp"],[1.664,1.908,0,-1.188,"accidentalWyschnegradsky7TwelfthsFlat"],[1.324,2.008,0,-1.392,"accidentalWyschnegradsky7TwelfthsSharp"],[1.664,1.908,0,-1.188,"accidentalWyschnegradsky8TwelfthsFlat"],[1.324,2.588,0,-1.392,"accidentalWyschnegradsky8TwelfthsSharp"],[1.664,1.756,0,-1.188,"accidentalWyschnegradsky9TwelfthsFlat"],[1.256,1.476,0,-1.388,"accidentalWyschnegradsky9TwelfthsSharp"],[.984,1.384,0,-1.336,"accidentalXenakisOneThirdToneSharp"],[1.224,1.384,0,-1.336,"accidentalXenakisTwoThirdTonesSharp"],[5.008,3,0,0,"analyticsChoralmelodie"],[1.192,3,0,2,"analyticsEndStimme"],[5.056,3,0,0,"analyticsHauptrhythmus"],[2.836,2.996,0,0,"analyticsHauptrhythmusR"],[2.828,3,0,0,"analyticsHauptstimme"],[1.7,2.008,0,0,"analyticsInversion1"],[2.828,3.004,0,-.004,"analyticsNebenstimme"],[1.192,3,0,2,"analyticsStartStimme"],[2.972,2.048,0,0,"analyticsTheme"],[1.7,2.008,0,0,"analyticsTheme1"],[2.972,2.048,0,0,"analyticsThemeInversion"],[2.972,2.048,0,0,"analyticsThemeRetrograde"],[2.972,2.048,0,0,"analyticsThemeRetrogradeInversion"],[.916,6,.004,-.016,"arpeggiatoDown"],[.916,6.044,.004,.028,"arpeggiatoUp"],[.912,2.108,0,0,"arrowBlackDown"],[1.536,1.796,0,.264,"arrowBlackDownLeft"],[1.536,1.796,0,.264,"arrowBlackDownRight"],[2.108,1.452,0,.54,"arrowBlackLeft"],[2.108,1.452,0,.54,"arrowBlackRight"],[.912,2.108,0,0,"arrowBlackUp"],[1.536,1.796,0,.264,"arrowBlackUpLeft"],[1.536,1.796,0,.264,"arrowBlackUpRight"],[.836,2.112,0,0,"arrowOpenDown"],[1.544,1.804,0,.264,"arrowOpenDownLeft"],[1.544,1.804,0,.264,"arrowOpenDownRight"],[2.112,1.412,0,.576,"arrowOpenLeft"],[2.112,1.412,0,.576,"arrowOpenRight"],[.836,2.112,0,0,"arrowOpenUp"],[1.544,1.804,0,.264,"arrowOpenUpLeft"],[1.544,1.804,0,.264,"arrowOpenUpRight"],[.912,2.108,0,0,"arrowWhiteDown"],[1.536,1.796,0,.264,"arrowWhiteDownLeft"],[1.536,1.796,0,.264,"arrowWhiteDownRight"],[2.108,1.508,0,.596,"arrowWhiteLeft"],[2.108,1.508,0,.596,"arrowWhiteRight"],[.912,2.108,0,0,"arrowWhiteUp"],[1.536,1.796,0,.264,"arrowWhiteUpLeft"],[1.536,1.796,0,.264,"arrowWhiteUpRight"],[.912,1.196,0,0,"arrowheadBlackDown"],[1.152,1.148,.004,.004,"arrowheadBlackDownLeft"],[1.152,1.148,.004,.004,"arrowheadBlackDownRight"],[1.196,.912,0,0,"arrowheadBlackLeft"],[1.196,.912,0,0,"arrowheadBlackRight"],[.912,1.196,0,0,"arrowheadBlackUp"],[1.152,1.148,.004,.004,"arrowheadBlackUpLeft"],[1.152,1.148,.004,.004,"arrowheadBlackUpRight"],[.836,1.116,0,0,"arrowheadOpenDown"],[1.044,1.048,0,0,"arrowheadOpenDownLeft"],[1.044,1.048,0,0,"arrowheadOpenDownRight"],[1.116,.836,0,0,"arrowheadOpenLeft"],[1.116,.836,0,0,"arrowheadOpenRight"],[.836,1.116,0,0,"arrowheadOpenUp"],[1.044,1.048,0,0,"arrowheadOpenUpLeft"],[1.044,1.048,0,0,"arrowheadOpenUpRight"],[.912,1.196,0,0,"arrowheadWhiteDown"],[1.152,1.148,.004,.004,"arrowheadWhiteDownLeft"],[1.152,1.148,.004,.004,"arrowheadWhiteDownRight"],[1.196,.912,0,0,"arrowheadWhiteLeft"],[1.196,.912,0,0,"arrowheadWhiteRight"],[.912,1.196,0,0,"arrowheadWhiteUp"],[1.152,1.148,.004,.004,"arrowheadWhiteUpLeft"],[1.152,1.148,.004,.004,"arrowheadWhiteUpRight"],[1.356,.98,0,.004,"articAccentAbove"],[1.716,1.22,0,.004,"articAccentAboveLarge"],[1.332,.976,0,0,"articAccentAboveSmall"],[1.356,0,0,-.976,"articAccentBelow"],[1.716,0,0,-1.216,"articAccentBelowLarge"],[1.332,0,0,-.976,"articAccentBelowSmall"],[1.356,1.68,0,0,"articAccentStaccatoAbove"],[1.332,1.856,0,0,"articAccentStaccatoAboveSmall"],[1.352,0,-.004,-1.644,"articAccentStaccatoBelow"],[1.332,0,0,-1.792,"articAccentStaccatoBelowSmall"],[1.468,.576,.004,.004,"articLaissezVibrerAbove"],[1.46,0,0,-.572,"articLaissezVibrerBelow"],[.94,1.012,-.004,-.004,"articMarcatoAbove"],[.944,1.012,0,-.004,"articMarcatoAboveSmall"],[.94,0,-.004,-1.016,"articMarcatoBelow"],[.944,0,0,-1.016,"articMarcatoBelowSmall"],[.94,1.772,-.004,0,"articMarcatoStaccatoAbove"],[.944,1.896,0,0,"articMarcatoStaccatoAboveSmall"],[.94,0,-.004,-1.812,"articMarcatoStaccatoBelow"],[.944,-.004,0,-2.036,"articMarcatoStaccatoBelowSmall"],[.4,1.172,.004,-.008,"articStaccatissimoAbove"],[.528,1.18,0,0,"articStaccatissimoAboveSmall"],[.4,0,.004,-1.18,"articStaccatissimoBelow"],[.528,0,0,-1.18,"articStaccatissimoBelowSmall"],[.192,1.16,0,0,"articStaccatissimoStrokeAbove"],[.256,1.16,0,0,"articStaccatissimoStrokeAboveSmall"],[.192,0,0,-1.16,"articStaccatissimoStrokeBelow"],[.256,0,0,-1.16,"articStaccatissimoStrokeBelowSmall"],[.356,1.16,.004,0,"articStaccatissimoWedgeAbove"],[.468,1.16,0,0,"articStaccatissimoWedgeAboveSmall"],[.356,0,.004,-1.16,"articStaccatissimoWedgeBelow"],[.468,0,0,-1.16,"articStaccatissimoWedgeBelowSmall"],[.336,.336,0,0,"articStaccatoAbove"],[.488,.488,0,0,"articStaccatoAboveSmall"],[.336,0,0,-.336,"articStaccatoBelow"],[.488,0,0,-.488,"articStaccatoBelowSmall"],[.932,.948,0,.02,"articStressAbove"],[.944,0,.016,-.936,"articStressBelow"],[1.352,.192,-.004,0,"articTenutoAbove"],[1.356,.256,0,0,"articTenutoAboveSmall"],[1.356,1.38,-.004,0,"articTenutoAccentAbove"],[1.356,1.536,0,0,"articTenutoAccentAboveSmall"],[1.356,0,-.004,-1.38,"articTenutoAccentBelow"],[1.356,0,0,-1.576,"articTenutoAccentBelowSmall"],[1.352,0,-.004,-.192,"articTenutoBelow"],[1.356,0,0,-.256,"articTenutoBelowSmall"],[1.352,.96,-.004,0,"articTenutoStaccatoAbove"],[1.356,1.128,0,0,"articTenutoStaccatoAboveSmall"],[1.352,0,-.004,-.968,"articTenutoStaccatoBelow"],[1.356,0,0,-1.144,"articTenutoStaccatoBelowSmall"],[1.528,.828,0,0,"articUnstressAbove"],[1.532,0,.004,-.828,"articUnstressBelow"],[.4,.2,0,-.2,"augmentationDot"],[.144,4,0,0,"barlineDashed"],[.196,3.988,0,0,"barlineDotted"],[.576,4,0,0,"barlineDouble"],[.912,4,0,0,"barlineFinal"],[.5,4,0,0,"barlineHeavy"],[1.372,4,0,0,"barlineHeavyHeavy"],[.912,4,0,0,"barlineReverseFinal"],[.148,4,.004,2,"barlineShort"],[.144,4,0,0,"barlineSingle"],[.144,4.48,0,3.472,"barlineTick"],[4.864,3.064,0,0,"beamAccelRit1"],[2.244,3.064,0,0,"beamAccelRit10"],[1.944,3.064,0,0,"beamAccelRit11"],[1.644,3.064,0,0,"beamAccelRit12"],[1.344,3.064,0,0,"beamAccelRit13"],[1.044,3.064,0,0,"beamAccelRit14"],[.744,3.064,0,0,"beamAccelRit15"],[4.564,3.064,0,0,"beamAccelRit2"],[4.264,3.064,0,0,"beamAccelRit3"],[4.044,3.064,0,0,"beamAccelRit4"],[3.744,3.064,0,0,"beamAccelRit5"],[3.444,3.064,0,0,"beamAccelRit6"],[3.144,3.064,0,0,"beamAccelRit7"],[2.844,3.064,0,0,"beamAccelRit8"],[2.544,3.064,0,0,"beamAccelRit9"],[.128,3.064,-.136,0,"beamAccelRitFinal"],[.328,3.988,.008,0,"brace"],[.36,4.084,0,.004,"braceFlat"],[.268,3.992,0,.004,"braceLarge"],[.24,3.988,0,0,"braceLarger"],[.412,3.988,0,0,"braceSmall"],[1.876,5.284,0,-1.272,"bracket"],[1.876,0,0,-1.18,"bracketBottom"],[1.876,1.18,0,0,"bracketTop"],[1.568,1.128,0,0,"brassBend"],[4.596,1.552,0,0,"brassDoitLong"],[1.956,1.544,0,0,"brassDoitMedium"],[1.28,1.532,.004,-.012,"brassDoitShort"],[4.596,1.552,0,0,"brassFallLipLong"],[1.956,1.544,0,0,"brassFallLipMedium"],[1.172,1.528,.004,-.02,"brassFallLipShort"],[4.78,4.944,0,0,"brassFallRoughLong"],[3.244,3.408,0,0,"brassFallRoughMedium"],[1.692,1.86,0,0,"brassFallRoughShort"],[5.456,5.448,.004,0,"brassFallSmoothLong"],[3.588,3.588,0,0,"brassFallSmoothMedium"],[1.628,1.624,.004,0,"brassFallSmoothShort"],[1.516,1.128,0,0,"brassFlip"],[1.468,1.408,-.296,-.28,"brassHarmonMuteClosed"],[1.428,1.436,-.216,-.256,"brassHarmonMuteStemHalfLeft"],[1.432,1.436,-.2,-.256,"brassHarmonMuteStemHalfRight"],[1.432,1.432,-.232,-.232,"brassHarmonMuteStemOpen"],[2.48,.98,0,0,"brassJazzTurn"],[4.78,4.944,0,0,"brassLiftLong"],[3.244,3.408,0,0,"brassLiftMedium"],[1.692,1.86,0,0,"brassLiftShort"],[5.456,5.448,.004,0,"brassLiftSmoothLong"],[3.588,3.588,0,0,"brassLiftSmoothMedium"],[1.628,1.624,.004,0,"brassLiftSmoothShort"],[1.088,1.088,0,0,"brassMuteClosed"],[1.22,1.216,.004,0,"brassMuteHalfClosed"],[1.216,1.216,0,0,"brassMuteOpen"],[1.172,1.528,.004,-.02,"brassPlop"],[1.28,1.532,.004,-.012,"brassScoop"],[1.224,.68,.004,0,"brassSmear"],[.608,1.004,.004,.008,"breathMarkComma"],[2.112,1.732,0,.008,"breathMarkSalzedo"],[2,2.008,0,0,"breathMarkTick"],[.996,1.98,.004,.004,"breathMarkUpbow"],[.956,1.408,0,-1.392,"bridgeClef"],[.624,.464,-.62,-.464,"buzzRoll"],[2.796,2.024,0,-2.024,"cClef"],[2.796,2.024,0,-2.964,"cClef8vb"],[2.796,2.024,-.132,-3.644,"cClefArrowDown"],[2.796,3.644,-.116,-2.024,"cClefArrowUp"],[2.024,1.328,0,-1.328,"cClefChange"],[.908,2.148,0,-2.148,"cClefCombining"],[3.452,2.564,0,-3.116,"cClefFrench"],[2.796,2.024,0,-2.024,"cClefReversed"],[3.064,2.012,0,-2.012,"cClefSmall"],[2.336,1.996,0,-1.996,"cClefSquare"],[1.856,1.5,0,-1.5,"cClefTriangular"],[2.416,2.46,-.016,-1.544,"cClefTriangularToFClef"],[1.536,2.128,0,-.004,"caesura"],[1.492,2.12,0,0,"caesuraCurved"],[.744,2.132,0,0,"caesuraShort"],[.896,2.128,0,-.004,"caesuraSingleStroke"],[2.652,2.128,0,0,"caesuraThick"],[.296,.812,0,.388,"chantAccentusAbove"],[.296,-.388,0,-.812,"chantAccentusBelow"],[.616,.468,0,-.468,"chantAuctumAsc"],[.616,.464,0,-.464,"chantAuctumDesc"],[.264,.456,0,.2,"chantAugmentum"],[.572,2,0,1.04,"chantCaesura"],[.536,.884,0,-.884,"chantCclef"],[1.144,.76,0,-.752,"chantCclefHufnagel"],[.376,.688,0,.312,"chantCirculusAbove"],[.376,-.308,0,-.684,"chantCirculusBelow"],[.056,.6,0,-.6,"chantConnectingLineAsc2nd"],[.056,1.2,0,-.6,"chantConnectingLineAsc3rd"],[.056,1.8,0,-.6,"chantConnectingLineAsc4th"],[.056,2.4,0,-.6,"chantConnectingLineAsc5th"],[.056,3,0,-.6,"chantConnectingLineAsc6th"],[.24,.404,0,-1.76,"chantCustosStemDownPosHigh"],[.24,.404,0,-2.26,"chantCustosStemDownPosHighest"],[.24,.404,0,-1.26,"chantCustosStemDownPosMiddle"],[.24,1.76,0,-.404,"chantCustosStemUpPosLow"],[.24,2.26,0,-.404,"chantCustosStemUpPosLowest"],[.24,1.26,0,-.404,"chantCustosStemUpPosMiddle"],[.056,.5,-.248,-.256,"chantDeminutumLower"],[.056,.268,-.248,-.484,"chantDeminutumUpper"],[.48,1.5,0,-1.5,"chantDivisioFinalis"],[.064,1,0,-1,"chantDivisioMaior"],[.064,1.5,0,-1.5,"chantDivisioMaxima"],[.064,2,0,1,"chantDivisioMinima"],[.056,.6,0,-.6,"chantEntryLineAsc2nd"],[.056,1.2,0,-.6,"chantEntryLineAsc3rd"],[.056,1.8,0,-.6,"chantEntryLineAsc4th"],[.056,2.4,0,-.6,"chantEntryLineAsc5th"],[.056,3,0,-.6,"chantEntryLineAsc6th"],[.68,.58,-.024,.5,"chantEpisema"],[1.056,.884,0,-.924,"chantFclef"],[1.156,.64,.004,-1.656,"chantFclefHufnagel"],[.128,.536,0,.112,"chantIctusAbove"],[.128,-.112,0,-.536,"chantIctusBelow"],[1.86,.416,0,-.912,"chantLigaturaDesc2nd"],[2.316,.416,0,-1.6,"chantLigaturaDesc3rd"],[2.316,.416,0,-2.212,"chantLigaturaDesc4th"],[2.316,.416,0,-2.812,"chantLigaturaDesc5th"],[.616,.456,0,-.46,"chantOriscusAscending"],[.616,.456,0,-.46,"chantOriscusDescending"],[.612,.456,0,-.984,"chantOriscusLiquescens"],[.616,.656,0,0,"chantPodatusLower"],[.056,.78,-.508,-.012,"chantPodatusUpper"],[.64,.408,0,-.404,"chantPunctum"],[.64,.388,0,-.392,"chantPunctumCavum"],[.364,.232,0,-.228,"chantPunctumDeminutum"],[.6,.452,0,-.452,"chantPunctumInclinatum"],[.648,.376,0,-.456,"chantPunctumInclinatumAuctum"],[.36,.272,0,-.272,"chantPunctumInclinatumDeminutum"],[1.064,.456,0,-.456,"chantPunctumLinea"],[1.064,.456,0,-.456,"chantPunctumLineaCavum"],[.64,.408,0,-1.604,"chantPunctumVirga"],[.64,.408,0,-1.604,"chantPunctumVirgaReversed"],[.616,.46,0,-.46,"chantQuilisma"],[.376,.48,0,.292,"chantSemicirculusAbove"],[.376,-.288,0,-.476,"chantSemicirculusBelow"],[2,1.532,0,-1.532,"chantStaff"],[1,1.532,0,-1.532,"chantStaffNarrow"],[3,1.532,0,-1.532,"chantStaffWide"],[.496,.372,0,-.368,"chantStrophicus"],[.608,.376,0,-.468,"chantStrophicusAuctus"],[.644,.84,0,-.148,"chantStrophicusLiquescens2nd"],[.652,1.332,0,-.156,"chantStrophicusLiquescens3rd"],[.676,1.772,0,-.148,"chantStrophicusLiquescens4th"],[.712,2.34,.004,-.16,"chantStrophicusLiquescens5th"],[.364,2,0,1.02,"chantVirgula"],[1.436,1.02,0,-.012,"clef15"],[.82,.988,0,0,"clef8"],[3.82,3.592,-.016,-.632,"coda"],[3.828,3.6,0,-.612,"codaJapanese"],[3.288,3.612,0,-.616,"codaSquare"],[2.876,2.012,0,0,"conductorBeat2Compound"],[2.868,2.012,-.004,0,"conductorBeat2Simple"],[2.44,2.008,0,0,"conductorBeat3Compound"],[2.44,2.008,0,0,"conductorBeat3Simple"],[2.02,2.02,0,0,"conductorBeat4Compound"],[2.024,2.02,0,0,"conductorBeat4Simple"],[.796,4.096,0,0,"conductorLeftBeat"],[.796,4.096,0,0,"conductorRightBeat"],[1.596,4.096,0,0,"conductorStrongBeat"],[1.6,4.1,0,0,"conductorWeakBeat"],[1.9,1.9,0,0,"csymAugmented"],[1.244,8,0,0,"csymBracketLeftTall"],[1.244,8,0,0,"csymBracketRightTall"],[1.892,1.892,0,0,"csymDiminished"],[1.948,1.94,-.076,-.06,"csymHalfDiminished"],[2.228,1.904,-.004,0,"csymMajorSeventh"],[1.9,1.076,0,.82,"csymMinor"],[1.484,7.976,.012,0,"csymParensLeftTall"],[1.484,7.976,.012,0,"csymParensRightTall"],[2.808,.792,0,0,"curlewSign"],[4.328,1.768,.044,-.036,"daCapo"],[4.328,1.768,.044,-.036,"dalSegno"],[2.616,3.02,0,0,"daseianExcellentes1"],[2.412,2.292,0,0,"daseianExcellentes2"],[2.272,1.432,0,0,"daseianExcellentes3"],[2.436,2.408,0,.004,"daseianExcellentes4"],[2.616,3.02,0,0,"daseianFinales1"],[2.412,2.292,0,0,"daseianFinales2"],[1.26,1.432,0,0,"daseianFinales3"],[2.436,2.408,0,.004,"daseianFinales4"],[2.616,3.02,0,0,"daseianGraves1"],[2.412,2.292,0,0,"daseianGraves2"],[2.66,1.432,0,0,"daseianGraves3"],[2.436,2.408,0,.004,"daseianGraves4"],[3.02,2.616,0,0,"daseianResidua1"],[2.292,2.412,0,0,"daseianResidua2"],[2.616,3.02,0,0,"daseianSuperiores1"],[2.412,2.292,0,0,"daseianSuperiores2"],[1.072,2.144,0,0,"daseianSuperiores3"],[2.436,2.408,0,.004,"daseianSuperiores4"],[1.78,.956,-.008,0,"doubleTongueAbove"],[1,.4,0,0,"doubleTongueAboveNoSlur"],[1.78,.956,-.008,0,"doubleTongueBelow"],[1,.4,0,0,"doubleTongueBelowNoSlur"],[2.944,1.424,.016,.372,"dynamicCrescendoHairpin"],[2.944,1.424,.016,.372,"dynamicDiminuendoHairpin"],[2.684,1.82,-.568,-.672,"dynamicFF"],[3.776,1.82,-.568,-.672,"dynamicFFF"],[4.868,1.82,-.568,-.672,"dynamicFFFF"],[5.952,1.82,-.568,-.672,"dynamicFFFFF"],[7.012,1.82,-.568,-.672,"dynamicFFFFFF"],[1.576,1.82,-.568,-.672,"dynamicForte"],[2.644,1.82,-.568,-.672,"dynamicFortePiano"],[1.78,1.828,-.56,-.664,"dynamicForteSmall"],[2.16,1.82,-.568,-.672,"dynamicForzando"],[3.192,1.768,-.152,-.724,"dynamicMF"],[3.18,1.108,-.14,-.548,"dynamicMP"],[6.22,1.424,.016,.372,"dynamicMessaDiVoce"],[1.724,1.092,-.152,-.044,"dynamicMezzo"],[2.168,1.092,0,-.044,"dynamicMezzoSmall"],[1.232,1.12,-.152,-.02,"dynamicNiente"],[.536,1.172,0,.636,"dynamicNienteForHairpin"],[1.336,1.116,-.148,-.024,"dynamicNienteSmall"],[3.088,1.82,-.356,-.672,"dynamicPF"],[2.94,1.116,-.356,-.54,"dynamicPP"],[4.328,1.14,-.356,-.516,"dynamicPPP"],[5.716,1.12,-.356,-.536,"dynamicPPPP"],[7.108,1.12,-.356,-.536,"dynamicPPPPP"],[8.496,1.116,-.356,-.54,"dynamicPPPPPP"],[1.552,1.12,-.356,-.536,"dynamicPiano"],[1.74,1.12,-.344,-.536,"dynamicPianoSmall"],[1.224,1.148,-.052,0,"dynamicRinforzando"],[2.82,1.82,-.052,-.672,"dynamicRinforzando1"],[3.42,1.82,-.052,-.672,"dynamicRinforzando2"],[1.436,1.148,0,0,"dynamicRinforzandoSmall"],[.888,1.14,0,0,"dynamicSforzando"],[2.456,1.82,0,-.672,"dynamicSforzando1"],[4.984,1.82,0,-.672,"dynamicSforzandoPianissimo"],[3.468,1.82,0,-.672,"dynamicSforzandoPiano"],[.9,1.144,.004,.004,"dynamicSforzandoSmall"],[3,1.82,0,-.672,"dynamicSforzato"],[4.12,1.82,0,-.672,"dynamicSforzatoFF"],[4.392,1.82,0,-.672,"dynamicSforzatoPiano"],[1,1.12,-.116,-.02,"dynamicZ"],[1.168,1.124,0,-.016,"dynamicZSmall"],[4.004,4.012,0,0,"elecAudioChannelsEight"],[4.004,4.012,0,0,"elecAudioChannelsFive"],[4.004,4.012,0,0,"elecAudioChannelsFour"],[3.712,4.012,.268,.304,"elecAudioChannelsOne"],[4.004,4,0,-.012,"elecAudioChannelsSeven"],[4.004,4,0,-.012,"elecAudioChannelsSix"],[4.004,4.012,0,.304,"elecAudioChannelsThreeFrontal"],[4.004,4.012,0,0,"elecAudioChannelsThreeSurround"],[4.004,4.012,0,.304,"elecAudioChannelsTwo"],[4.008,3.116,0,0,"elecAudioIn"],[2.692,2.692,0,0,"elecAudioMono"],[4.008,3.116,0,0,"elecAudioOut"],[3.996,2.692,0,0,"elecAudioStereo"],[4,3.636,0,0,"elecCamera"],[4.252,3.984,0,0,"elecDataIn"],[4.252,3.984,0,0,"elecDataOut"],[4,4,0,0,"elecDisc"],[2.172,3.46,0,0,"elecDownload"],[2.148,2.568,.004,0,"elecEject"],[3.6,2.144,0,0,"elecFastForward"],[3.528,3.244,0,0,"elecHeadphones"],[3.528,3.996,0,0,"elecHeadset"],[3.284,3.996,0,-1.016,"elecLineIn"],[3.284,3.996,0,-1.404,"elecLineOut"],[3,2.188,0,0,"elecLoop"],[2.64,4.144,0,0,"elecLoudspeaker"],[2.192,2.192,0,0,"elecMIDIController0"],[2.192,2.192,0,0,"elecMIDIController100"],[2.192,2.192,0,0,"elecMIDIController20"],[2.196,2.192,0,0,"elecMIDIController40"],[2.196,2.192,0,0,"elecMIDIController60"],[2.192,2.192,0,0,"elecMIDIController80"],[2.16,3.62,0,0,"elecMIDIIn"],[2.16,3.62,0,0,"elecMIDIOut"],[2.192,3.964,0,0,"elecMicrophone"],[2.192,5.4,0,0,"elecMicrophoneMute"],[2.288,4.98,0,0,"elecMicrophoneUnmute"],[3.448,4,0,0,"elecMixingConsole"],[4.012,3.036,0,0,"elecMonitor"],[4.388,4.144,0,0,"elecMute"],[1.98,2.144,0,0,"elecPause"],[1.872,2.144,0,0,"elecPlay"],[2.792,3,0,0,"elecPowerOnOff"],[3.996,1.984,0,0,"elecProjector"],[2.644,3.024,0,0,"elecReplay"],[3.6,2.144,0,0,"elecRewind"],[4.572,2.42,0,-.476,"elecShuffle"],[3.928,2.144,0,0,"elecSkipBackwards"],[3.928,2.144,0,0,"elecSkipForwards"],[2.136,2.144,0,0,"elecStop"],[4.004,1.792,0,0,"elecTape"],[1.776,4.004,0,0,"elecUSB"],[3.836,4.144,0,0,"elecUnmute"],[2.172,3.46,0,0,"elecUpload"],[3.788,2.144,.004,0,"elecVideoCamera"],[3.268,4.004,0,0,"elecVideoIn"],[3.268,4.004,0,0,"elecVideoOut"],[.948,4.08,0,0,"elecVolumeFader"],[.844,1.112,.1,-.032,"elecVolumeFaderThumb"],[.944,4.08,0,-.032,"elecVolumeLevel0"],[.944,4.144,0,.032,"elecVolumeLevel100"],[.944,4.08,0,0,"elecVolumeLevel20"],[.944,4.08,0,0,"elecVolumeLevel40"],[.944,4.112,0,.032,"elecVolumeLevel60"],[.944,4.112,0,.032,"elecVolumeLevel80"],[2.736,1.048,-.02,-2.54,"fClef"],[2.736,1.984,-.02,-2.54,"fClef15ma"],[2.736,1.048,-.02,-2.968,"fClef15mb"],[4.164,1.092,0,-2.328,"fClef19thCentury"],[2.736,1.048,-.02,-3.536,"fClef5Below"],[2.736,1.98,-.02,-2.54,"fClef8va"],[2.736,1.048,-.02,-2.976,"fClef8vb"],[2.736,1.048,-.02,-3.996,"fClefArrowDown"],[2.736,2.644,-.02,-2.54,"fClefArrowUp"],[1.852,.68,-.06,-1.656,"fClefChange"],[3.404,1.044,0,-2.34,"fClefFrench"],[2.756,1.048,0,-2.54,"fClefReversed"],[2.804,1.028,-.092,-2.508,"fClefSmall"],[1.264,1.004,0,-.996,"fClefTriangular"],[2.428,2.496,-.004,-1.508,"fClefTriangularToCClef"],[2.756,2.532,0,-1.056,"fClefTurned"],[2.42,1.316,.012,-.012,"fermataAbove"],[2.42,0,.012,-1.328,"fermataBelow"],[2.412,1.332,0,-.004,"fermataLongAbove"],[2.412,.004,0,-1.332,"fermataLongBelow"],[2.944,1.62,.004,0,"fermataLongHenzeAbove"],[2.944,0,.004,-1.62,"fermataLongHenzeBelow"],[2.416,1.364,0,0,"fermataShortAbove"],[2.416,0,0,-1.364,"fermataShortBelow"],[1.736,1.62,0,0,"fermataShortHenzeAbove"],[1.736,0,0,-1.62,"fermataShortHenzeBelow"],[2.86,1.632,0,0,"fermataVeryLongAbove"],[2.86,0,0,-1.632,"fermataVeryLongBelow"],[2.904,1.796,0,0,"fermataVeryShortAbove"],[2.904,0,0,-1.796,"fermataVeryShortBelow"],[.856,1.004,-.004,-.004,"figbass0"],[.468,1.016,0,0,"figbass1"],[.808,1.012,0,-.012,"figbass2"],[.816,1.024,.004,-.192,"figbass2Raised"],[.74,1.008,0,0,"figbass3"],[.788,1.012,.004,.004,"figbass4"],[.944,1.004,0,0,"figbass4Raised"],[.744,1.032,.004,0,"figbass5"],[.756,1.224,.004,.004,"figbass5Raised1"],[.756,1.22,.004,0,"figbass5Raised2"],[1,1.036,0,0,"figbass5Raised3"],[.788,1.004,.004,.004,"figbass6"],[.928,.996,-.144,0,"figbass6Raised"],[.788,.98,0,0,"figbass7"],[.788,1.16,0,-.004,"figbass7Raised1"],[.908,.976,0,-.004,"figbass7Raised2"],[.768,1.004,0,0,"figbass8"],[.784,1,0,0,"figbass9"],[.944,1,-.128,0,"figbass9Raised"],[.316,1.076,0,-.08,"figbassBracketLeft"],[.272,1.076,-.044,-.08,"figbassBracketRight"],[1.648,.78,0,.148,"figbassCombiningLowering"],[1.648,.78,0,.148,"figbassCombiningRaising"],[1.284,1.9,.004,-.008,"figbassDoubleFlat"],[1.012,1.016,0,-.02,"figbassDoubleSharp"],[.7,1.868,.004,-.012,"figbassFlat"],[.48,1.472,.004,-.44,"figbassNatural"],[.392,1.096,.004,-.084,"figbassParensLeft"],[.352,1.088,-.036,-.096,"figbassParensRight"],[.536,.776,0,.24,"figbassPlus"],[.768,1.568,0,-.584,"figbassSharp"],[1.204,2.972,0,-4.808,"flag1024thDown"],[1.272,3.244,0,-4.724,"flag1024thDownSmall"],[.96,2.22,0,-4.8,"flag1024thDownStraight"],[1.06,4.316,0,-3.248,"flag1024thUp"],[1.056,4.464,0,-2.456,"flag1024thUpShort"],[.96,4.8,0,-2.22,"flag1024thUpStraight"],[1.148,4.52,0,-3.244,"flag102thUpSmall"],[1.092,3.248,0,-2.32,"flag128thDown"],[1.268,3.236,0,-2.472,"flag128thDownSmall"],[.96,2.22,0,-2.4,"flag128thDownStraight"],[1.044,2.132,0,-3.248,"flag128thUp"],[1.056,2.364,0,-2.492,"flag128thUpShort"],[1.148,2.408,0,-3.24,"flag128thUpSmall"],[.96,2.4,0,-2.22,"flag128thUpStraight"],[1.164,3.252,0,-.036,"flag16thDown"],[1.268,3.288,0,-.076,"flag16thDownSmall"],[.96,2.22,0,0,"flag16thDownStraight"],[1.116,.008,0,-3.252,"flag16thUp"],[1.056,.048,0,-2.496,"flag16thUpShort"],[1.144,.072,0,-3.232,"flag16thUpSmall"],[.96,0,0,-2.22,"flag16thUpStraight"],[1.196,3.252,0,-3.004,"flag256thDown"],[1.268,3.216,0,-3.164,"flag256thDownSmall"],[.96,2.22,0,-3.2,"flag256thDownStraight"],[1.056,2.816,0,-3.248,"flag256thUp"],[1.056,3.152,0,-2.456,"flag256thUpShort"],[1.148,3.072,0,-3.244,"flag256thUpSmall"],[.96,3.2,0,-2.22,"flag256thUpStraight"],[1.092,3.248,0,-.688,"flag32ndDown"],[1.268,3.24,0,-.9,"flag32ndDownSmall"],[.96,2.22,0,-.8,"flag32ndDownStraight"],[1.044,.596,0,-3.248,"flag32ndUp"],[1.056,.884,0,-2.452,"flag32ndUpShort"],[1.144,.812,0,-3.236,"flag32ndUpSmall"],[.96,.812,0,-2.208,"flag32ndUpStraight"],[1.2,3.248,0,-3.756,"flag512thDown"],[1.268,3.236,0,-3.92,"flag512thDownSmall"],[.96,2.22,0,-4,"flag512thDownStraight"],[1.06,3.564,-.004,-3.248,"flag512thUp"],[1.056,3.796,0,-2.464,"flag512thUpShort"],[1.148,3.808,0,-3.244,"flag512thUpSmall"],[.96,4,0,-2.22,"flag512thUpStraight"],[1.092,3.248,0,-1.504,"flag64thDown"],[1.272,3.24,0,-1.632,"flag64thDownSmall"],[.96,2.22,0,-1.6,"flag64thDownStraight"],[1.044,1.388,0,-3.248,"flag64thUp"],[1.056,1.612,0,-2.496,"flag64thUpShort"],[1.148,1.584,0,-3.244,"flag64thUpSmall"],[.96,1.612,0,-2.208,"flag64thUpStraight"],[1.224,3.236,0,-.056,"flag8thDown"],[1.076,3.236,.004,-.032,"flag8thDownSmall"],[.96,1.42,0,0,"flag8thDownStraight"],[1.056,.036,0,-3.244,"flag8thUp"],[1.068,.032,0,-2.192,"flag8thUpShort"],[1.076,.044,.004,-3.228,"flag8thUpSmall"],[.96,0,0,-1.42,"flag8thUpStraight"],[1.2,2.284,0,-.084,"flagInternalDown"],[1.056,.044,0,-2.08,"flagInternalUp"],[1.44,4.096,0,0,"fretboard3String"],[1.44,4.096,0,0,"fretboard3StringNut"],[2.104,4.096,0,0,"fretboard4String"],[2.104,4.096,0,0,"fretboard4StringNut"],[2.776,4.096,0,0,"fretboard5String"],[2.78,4.096,.004,0,"fretboard5StringNut"],[3.444,4.096,0,0,"fretboard6String"],[3.444,4.096,0,0,"fretboard6StringNut"],[.564,.564,0,0,"fretboardFilledCircle"],[.564,.564,0,0,"fretboardO"],[.596,.596,0,0,"fretboardX"],[1.76,3.12,0,-1.084,"functionAngleLeft"],[1.76,3.12,0,-1.084,"functionAngleRight"],[.752,2.916,.008,-.848,"functionBracketLeft"],[.756,2.916,.012,-.848,"functionBracketRight"],[3.168,2.916,0,-1.024,"functionDD"],[1.888,2.916,.012,-.06,"functionDLower"],[2.312,2.916,0,0,"functionDUpper"],[1.908,2.836,.004,-.06,"functionEight"],[1.912,2.776,0,-.06,"functionFive"],[1.968,2.836,0,0,"functionFour"],[1.836,2.156,-.004,-.872,"functionGLower"],[2.668,2.988,.008,-.072,"functionGUpper"],[1.996,2.276,.004,-.276,"functionGreaterThan"],[1.992,2.276,.004,-.276,"functionLessThan"],[.952,1.248,0,.96,"functionMinus"],[1.668,2.156,0,0,"functionNLower"],[2.288,2.916,.008,0,"functionNUpper"],[1.88,2.836,-.004,-.06,"functionNine"],[.988,2.836,.008,0,"functionOne"],[1.876,2.156,.004,-.872,"functionPLower"],[2.108,2.916,.004,0,"functionPUpper"],[.876,2.916,.004,-.848,"functionParensLeft"],[.884,2.916,.012,-.848,"functionParensRight"],[1.38,3.004,0,1.628,"functionPlus"],[1.704,.464,0,0,"functionRepetition1"],[2,3.132,-.004,0,"functionRepetition2"],[1.376,3.012,0,1.636,"functionRing"],[1.708,2.156,.008,-.06,"functionSLower"],[2.312,2.216,0,-.892,"functionSSLower"],[3.088,3.06,0,-1.096,"functionSSUpper"],[2.288,2.988,-.004,-.072,"functionSUpper"],[1.9,2.776,.004,0,"functionSeven"],[1.892,2.836,.012,-.06,"functionSix"],[3.168,3.2,-.208,-1.024,"functionSlashedDD"],[.964,2.672,.004,-.028,"functionTLower"],[2.292,2.916,.004,0,"functionTUpper"],[1.9,2.836,.004,-.06,"functionThree"],[1.844,2.836,-.064,0,"functionTwo"],[1.904,2.096,0,0,"functionVLower"],[2.464,2.916,.004,0,"functionVUpper"],[1.868,2.836,.012,-.06,"functionZero"],[2.684,4.392,0,-2.632,"gClef"],[2.684,4.392,0,-2.668,"gClef0Below"],[3.016,4.392,0,-2.668,"gClef10Below"],[2.764,4.392,0,-2.624,"gClef11Below"],[2.864,4.392,0,-2.648,"gClef12Below"],[2.784,4.392,0,-2.664,"gClef13Below"],[2.92,4.392,0,-2.624,"gClef14Below"],[2.856,4.392,0,-2.664,"gClef15Below"],[2.684,5.276,0,-2.632,"gClef15ma"],[2.684,4.392,0,-3.524,"gClef15mb"],[2.956,4.392,0,-2.664,"gClef16Below"],[2.904,4.392,0,-2.648,"gClef17Below"],[3.08,4.912,0,-2.632,"gClef2Above"],[2.684,4.392,0,-2.648,"gClef2Below"],[3.032,4.912,0,-2.632,"gClef3Above"],[2.684,4.392,0,-2.664,"gClef3Below"],[3.132,4.9,0,-2.632,"gClef4Above"],[2.684,4.392,0,-2.624,"gClef4Below"],[3.148,4.904,0,-2.632,"gClef5Above"],[2.684,4.392,0,-2.664,"gClef5Below"],[3.168,4.912,0,-2.632,"gClef6Above"],[2.684,4.392,0,-2.664,"gClef6Below"],[3.036,4.9,0,-2.632,"gClef7Above"],[2.684,4.392,0,-2.648,"gClef7Below"],[3.192,4.912,0,-2.632,"gClef8Above"],[2.684,4.392,0,-2.664,"gClef8Below"],[2.684,5.28,0,-2.632,"gClef8va"],[2.684,4.392,0,-3.512,"gClef8vb"],[3.368,4.392,0,-2.632,"gClef8vbCClef"],[4.176,4.392,0,-2.632,"gClef8vbOld"],[2.664,4.404,.004,-3.6,"gClef8vbParens"],[3.132,4.908,0,-2.632,"gClef9Above"],[2.684,4.392,0,-2.668,"gClef9Below"],[2.684,4.38,0,-2.868,"gClefArrowDown"],[2.684,4.808,0,-2.632,"gClefArrowUp"],[1.76,2.828,0,-1.82,"gClefChange"],[3.144,4.392,0,-2.668,"gClefFlat10Below"],[2.92,4.392,0,-2.624,"gClefFlat11Below"],[2.944,4.392,0,-2.664,"gClefFlat13Below"],[3.08,4.392,0,-2.624,"gClefFlat14Below"],[3.008,4.392,0,-2.664,"gClefFlat15Below"],[3.096,4.392,0,-2.664,"gClefFlat16Below"],[2.684,4.392,0,-2.624,"gClefFlat1Below"],[3.84,5.112,0,-2.632,"gClefFlat2Above"],[2.688,4.392,0,-2.648,"gClefFlat2Below"],[3.764,5.112,0,-2.632,"gClefFlat3Above"],[2.684,4.392,0,-2.664,"gClefFlat3Below"],[2.86,4.392,0,-2.624,"gClefFlat4Below"],[3.836,5.112,0,-2.632,"gClefFlat5Above"],[3.864,5.112,0,-2.632,"gClefFlat6Above"],[2.844,4.392,0,-2.664,"gClefFlat6Below"],[3.74,5.112,0,-2.632,"gClefFlat7Above"],[2.684,4.392,0,-2.648,"gClefFlat7Below"],[3.884,5.112,0,-2.632,"gClefFlat8Above"],[3.856,5.112,0,-2.632,"gClefFlat9Above"],[2.796,4.392,0,-2.668,"gClefFlat9Below"],[2.684,4.4,0,-2.632,"gClefLigatedNumberAbove"],[2.728,4.432,.024,-2.644,"gClefLigatedNumberBelow"],[2.684,4.392,0,-2.812,"gClefNat2Below"],[3.028,4.392,0,-2.816,"gClefNatural10Below"],[2.828,4.392,0,-2.812,"gClefNatural13Below"],[2.94,4.392,0,-2.812,"gClefNatural17Below"],[3.7,5.076,0,-2.632,"gClefNatural2Above"],[3.656,5.076,0,-2.632,"gClefNatural3Above"],[2.684,4.392,0,-2.812,"gClefNatural3Below"],[3.748,5.076,0,-2.632,"gClefNatural6Above"],[2.732,4.392,0,-2.812,"gClefNatural6Below"],[3.62,5.076,0,-2.632,"gClefNatural7Above"],[3.744,5.076,0,-2.632,"gClefNatural9Above"],[2.696,4.392,0,-2.812,"gClefNatural9Below"],[2.708,4.392,.024,-2.632,"gClefReversed"],[3.056,4.392,0,-2.796,"gClefSharp12Below"],[3.556,5.12,0,-2.632,"gClefSharp1Above"],[3.908,5.12,0,-2.632,"gClefSharp4Above"],[2.8,4.392,0,-2.82,"gClefSharp5Below"],[2.664,4.284,0,-2.756,"gClefSmall"],[2.708,4.616,.024,-2.408,"gClefTurned"],[4.304,4.428,.056,.012,"glissandoDown"],[4.36,4.424,.112,.008,"glissandoUp"],[.78,.332,-.336,-2.1,"graceNoteAcciaccaturaStemDown"],[1.428,2.096,0,-.332,"graceNoteAcciaccaturaStemUp"],[.78,.32,0,-2.112,"graceNoteAppoggiaturaStemDown"],[1.292,2.104,0,-.324,"graceNoteAppoggiaturaStemUp"],[2.02,0,0,-1.604,"graceNoteSlashStemDown"],[2.02,1.604,0,0,"graceNoteSlashStemUp"],[1.144,1.14,0,-.004,"guitarClosePedal"],[1.448,1.46,0,0,"guitarFadeIn"],[1.448,1.46,0,0,"guitarFadeOut"],[1.08,1.128,.004,0,"guitarGolpe"],[1.552,1.512,0,0,"guitarGolpeFlamenco"],[1.144,1.144,0,0,"guitarHalfOpenPedal"],[1.588,1.364,0,-.224,"guitarLeftHandTapping"],[1.144,1.144,0,0,"guitarOpenPedal"],[.788,1.008,0,0,"guitarRightHandTapping"],[4.572,1.428,-.004,0,"guitarShake"],[2.164,2.156,.004,0,"guitarString0"],[2.16,2.156,0,0,"guitarString1"],[2.16,2.156,0,0,"guitarString2"],[2.16,2.156,0,0,"guitarString3"],[2.164,2.156,.004,0,"guitarString4"],[2.16,2.156,0,0,"guitarString5"],[2.16,2.156,0,0,"guitarString6"],[2.16,2.156,0,0,"guitarString7"],[2.16,2.156,0,0,"guitarString8"],[2.16,2.156,0,0,"guitarString9"],[.912,2.108,0,0,"guitarStrumDown"],[.912,2.108,0,0,"guitarStrumUp"],[2.128,2.1,0,0,"guitarVibratoBarDip"],[2.016,2.104,0,.004,"guitarVibratoBarScoop"],[.668,.476,-.056,0,"guitarVibratoStroke"],[2.896,1.46,0,0,"guitarVolumeSwell"],[.908,.896,-.096,0,"guitarWideVibratoStroke"],[2.128,3.668,0,-.004,"handbellsBelltree"],[2.568,2.568,0,0,"handbellsDamp3"],[1.316,2.508,0,0,"handbellsEcho1"],[.512,2.16,0,.176,"handbellsEcho2"],[3.132,3.128,.004,0,"handbellsGyro"],[1.064,2.004,-.064,.388,"handbellsHandMartellato"],[1.128,1.692,0,0,"handbellsMalletBellOnTable"],[1.128,1.692,0,.564,"handbellsMalletBellSuspended"],[1.736,2.224,0,0,"handbellsMalletLft"],[1.028,1.516,0,.388,"handbellsMartellato"],[1.656,2.048,0,0,"handbellsMartellatoLift"],[1.916,2.008,0,.092,"handbellsMutedMartellato"],[.924,2.224,0,.176,"handbellsPluckLift"],[1.228,2.284,-.004,.172,"handbellsSwing"],[.512,2.224,0,.176,"handbellsSwingDown"],[.512,2.224,0,.176,"handbellsSwingUp"],[3.12,4.256,0,0,"handbellsTablePairBells"],[2.928,4.096,0,0,"handbellsTableSingleBell"],[2.808,2.264,0,0,"harpMetalRod"],[4.488,1.484,0,-.004,"harpMetalRodAlt"],[1.004,2,.004,1,"harpPedalCentered"],[1,3,0,0,"harpPedalDivider"],[1,1.56,0,.368,"harpPedalLowered"],[1.004,2.624,.004,1.44,"harpPedalRaised"],[1.924,4.948,0,0,"harpSalzedoAeolianAscending"],[1.924,3.66,0,-1.288,"harpSalzedoAeolianDescending"],[.9,.984,0,0,"harpSalzedoFluidicSoundsLeft"],[1.384,1,-.004,0,"harpSalzedoFluidicSoundsRight"],[1.644,2.068,0,-.372,"harpSalzedoMetallicSounds"],[2.128,2.128,0,0,"harpSalzedoMuffleTotally"],[5.604,1,-.08,0,"harpSalzedoOboicFlux"],[3.508,2.14,-.056,.004,"harpSalzedoPlayUpperEnd"],[2.288,3.124,-.008,0,"harpSalzedoSlideWithSuppleness"],[2.256,2.256,0,0,"harpSalzedoTamTamSounds"],[3.2,3.14,0,-.004,"harpSalzedoThunderEffect"],[2.256,2.256,0,0,"harpSalzedoTimpanicSounds"],[2.136,3.128,0,-.004,"harpSalzedoWhistlingSounds"],[.724,2.848,-.728,0,"harpStringNoiseStem"],[3.004,2.984,.004,0,"harpTuningKey"],[3.924,2.648,0,0,"harpTuningKeyAlt"],[3.276,4.004,0,0,"harpTuningKeyGlissando"],[3.86,1.972,0,.148,"harpTuningKeyHandle"],[2.9,1.972,0,0,"harpTuningKeyShank"],[1.78,.956,-.008,0,"keyboardBebung2DotsAbove"],[1.78,.956,-.008,0,"keyboardBebung2DotsBelow"],[2.3,.956,-.004,0,"keyboardBebung3DotsAbove"],[2.3,.956,-.004,0,"keyboardBebung3DotsBelow"],[2.844,.956,0,0,"keyboardBebung4DotsAbove"],[2.844,.956,0,0,"keyboardBebung4DotsBelow"],[1.768,2.064,-.064,-.084,"keyboardLeftPedalPictogram"],[1.768,2.064,-.064,-.084,"keyboardMiddlePedalPictogram"],[.988,1.976,-.596,.032,"keyboardPedalD"],[.296,.296,0,0,"keyboardPedalDot"],[.972,1.264,0,0,"keyboardPedalE"],[3,2.128,0,0,"keyboardPedalHalf"],[1.896,1,.004,-.004,"keyboardPedalHalf2"],[1.896,1.972,.004,.968,"keyboardPedalHalf3"],[1.704,2.124,0,0,"keyboardPedalHeel1"],[1.704,2.124,0,0,"keyboardPedalHeel2"],[2,2,0,0,"keyboardPedalHeel3"],[1.704,3.252,0,0,"keyboardPedalHeelToe"],[1.184,1.228,0,.76,"keyboardPedalHyphen"],[2.14,2.224,.004,-.012,"keyboardPedalP"],[4.044,2.232,.004,-.008,"keyboardPedalPed"],[3.644,2.232,.004,-.008,"keyboardPedalPedNoDot"],[1.66,2.364,.004,-.02,"keyboardPedalS"],[4.396,2.364,.012,-.056,"keyboardPedalSost"],[3.976,2.364,.012,-.02,"keyboardPedalSostNoDot"],[1.752,2.128,0,0,"keyboardPedalToe1"],[1.752,2.128,0,0,"keyboardPedalToe2"],[1.764,1.804,0,.008,"keyboardPedalUp"],[1.16,2.128,0,0,"keyboardPedalUpNotch"],[1.692,1.828,.024,.116,"keyboardPedalUpSpecial"],[1.564,4.064,0,0,"keyboardPlayWithLH"],[1.564,4.064,0,0,"keyboardPlayWithLHEnd"],[1.564,4.064,0,0,"keyboardPlayWithRH"],[1.564,4.064,0,0,"keyboardPlayWithRHEnd"],[1.98,1.98,0,-1.136,"keyboardPluckInside"],[1.768,2.064,-.064,-.084,"keyboardRightPedalPictogram"],[.808,1.748,0,-.852,"kievanAccidentalFlat"],[1.504,1.56,0,-1.556,"kievanAccidentalSharp"],[.8,.416,0,-.388,"kievanAugmentationDot"],[1.348,.468,0,-2.108,"kievanCClef"],[1.412,4.492,.004,0,"kievanEndingSymbol"],[1.136,.38,0,-2.744,"kievanNote8thStemDown"],[.92,2.536,0,-.388,"kievanNote8thStemUp"],[2.1,.36,-.128,-.36,"kievanNoteBeam"],[.964,.848,0,-1.444,"kievanNoteHalfStaffLine"],[1.064,1.412,.004,-1.16,"kievanNoteHalfStaffSpace"],[.932,.328,0,-2.28,"kievanNoteQuarterStemDown"],[.932,2.28,0,-.328,"kievanNoteQuarterStemUp"],[4.644,.832,0,-.828,"kievanNoteReciting"],[.888,.912,0,-.888,"kievanNoteWhole"],[1.196,1.38,0,-1.384,"kievanNoteWholeFinal"],[3.944,2.452,0,0,"kodalyHandDo"],[4.144,2.828,.004,0,"kodalyHandFa"],[4.428,2.256,0,0,"kodalyHandLa"],[4.996,1.684,0,0,"kodalyHandMi"],[4.444,3.184,.004,0,"kodalyHandRe"],[4.648,2.108,.004,0,"kodalyHandSo"],[4.204,2.548,.004,0,"kodalyHandTi"],[1.464,3.48,0,.5,"leftRepeatSmall"],[1.648,.08,-.32,-.08,"legerLine"],[.848,.08,-.32,-.08,"legerLineNarrow"],[2.448,.08,-.32,-.08,"legerLineWide"],[1.5,7.5,0,0,"luteBarlineEndRepeat"],[.912,7.5,0,0,"luteBarlineFinal"],[1.5,7.5,0,0,"luteBarlineStartRepeat"],[.912,3.144,0,0,"luteDuration16th"],[.912,3.144,0,-.036,"luteDuration32nd"],[.912,3.144,0,0,"luteDuration8th"],[.592,3.144,0,0,"luteDurationDoubleWhole"],[.912,3.144,0,0,"luteDurationHalf"],[.912,3.144,0,0,"luteDurationQuarter"],[.144,3.16,0,0,"luteDurationWhole"],[.288,.708,0,.42,"luteFingeringRHFirst"],[.824,.708,0,.42,"luteFingeringRHSecond"],[1.364,.708,0,.42,"luteFingeringRHThird"],[1.204,.908,0,.22,"luteFingeringRHThirdAlt"],[.128,1.128,0,0,"luteFingeringRHThumb"],[2.716,1.24,0,-.136,"luteFrench10thCourse"],[3.012,1.24,0,-.136,"luteFrench10thCourseRight"],[3.68,1.26,-.004,-.116,"luteFrench10thCourseStrikethru"],[3.048,1.24,0,-.4,"luteFrench10thCourseUnderline"],[1.104,.968,0,0,"luteFrench7thCourse"],[1.104,.968,0,0,"luteFrench7thCourseRight"],[2.096,.968,0,0,"luteFrench7thCourseStrikethru"],[1.448,.968,-.352,-.4,"luteFrench7thCourseUnderline"],[1.836,1.24,0,-.136,"luteFrench8thCourse"],[2.12,1.24,0,-.136,"luteFrench8thCourseRight"],[2.804,1.26,0,-.116,"luteFrench8thCourseStrikethru"],[2.208,1.24,0,-.4,"luteFrench8thCourseUnderline"],[2.276,1.24,0,-.136,"luteFrench9thCourse"],[2.56,1.24,0,-.136,"luteFrench9thCourseRight"],[3.244,1.26,0,-.116,"luteFrench9thCourseStrikethru"],[2.648,1.24,0,-.4,"luteFrench9thCourseUnderline"],[.512,1.436,0,0,"luteFrenchAppoggiaturaAbove"],[.58,1.2,0,0,"luteFrenchAppoggiaturaBelow"],[1.104,.968,0,0,"luteFrenchFretA"],[.876,1.2,0,0,"luteFrenchFretB"],[1.168,1.064,.004,.004,"luteFrenchFretC"],[1.164,1.076,0,0,"luteFrenchFretCAlt"],[1.716,.98,0,0,"luteFrenchFretD"],[1.252,.952,0,0,"luteFrenchFretE"],[1.004,1.056,0,0,"luteFrenchFretF"],[1.616,1.132,0,0,"luteFrenchFretG"],[.936,1.16,0,0,"luteFrenchFretH"],[.496,1.224,0,.004,"luteFrenchFretI"],[.856,1.2,.004,.004,"luteFrenchFretK"],[.524,1.184,0,0,"luteFrenchFretL"],[1.644,1.1,0,0,"luteFrenchFretM"],[1.284,1.208,0,0,"luteFrenchFretN"],[.748,1.2,0,0,"luteFrenchMordentInverted"],[1.588,1.2,0,0,"luteFrenchMordentLower"],[1.088,1.2,0,0,"luteFrenchMordentUpper"],[1.112,1.388,0,-.048,"luteGermanALower"],[1.916,2.056,0,-.036,"luteGermanAUpper"],[1.192,2.036,0,-.044,"luteGermanBLower"],[2.244,2.068,0,-.036,"luteGermanBUpper"],[.804,1.372,0,-.048,"luteGermanCLower"],[1.652,2.048,0,-.052,"luteGermanCUpper"],[1.152,1.888,0,-.048,"luteGermanDLower"],[2.24,2.064,0,-.036,"luteGermanDUpper"],[.852,1.372,0,-.048,"luteGermanELower"],[2.012,2.056,0,-.044,"luteGermanEUpper"],[.984,1.956,0,-.496,"luteGermanFLower"],[1.608,2.076,0,-.492,"luteGermanFUpper"],[1.38,1.436,0,-.56,"luteGermanGLower"],[2.18,2.056,0,-.04,"luteGermanGUpper"],[1.216,2.064,0,-.524,"luteGermanHLower"],[1.892,2.072,0,-.436,"luteGermanHUpper"],[.536,1.924,0,-.452,"luteGermanILower"],[2.1,2.084,0,-.5,"luteGermanIUpper"],[.992,2.04,0,-.036,"luteGermanKLower"],[2.096,2.028,-.008,-.048,"luteGermanKUpper"],[.672,2.036,0,-.04,"luteGermanLLower"],[1.688,2.032,0,-.044,"luteGermanLUpper"],[1.932,1.396,0,-.036,"luteGermanMLower"],[2.884,2.04,0,-.04,"luteGermanMUpper"],[1.256,1.404,0,-.036,"luteGermanNLower"],[2.428,2.048,0,-.052,"luteGermanNUpper"],[1.256,1.432,0,-.048,"luteGermanOLower"],[1.316,1.368,0,-.52,"luteGermanPLower"],[1.26,1.368,0,-.52,"luteGermanQLower"],[.964,1.404,0,-.032,"luteGermanRLower"],[.984,1.956,0,-.496,"luteGermanSLower"],[.908,1.692,0,-.032,"luteGermanTLower"],[1.34,1.384,0,-.032,"luteGermanVLower"],[1.028,1.44,0,-.472,"luteGermanXLower"],[1.216,1.432,0,-.548,"luteGermanYLower"],[.852,1.412,0,-.528,"luteGermanZLower"],[1.904,1.792,0,-2.836,"luteItalianClefCSolFaUt"],[3.156,1.4,0,-1.404,"luteItalianClefFFaUt"],[1.024,1.2,-.004,-.004,"luteItalianFret0"],[.552,1.2,0,0,"luteItalianFret1"],[.956,1.2,0,-.012,"luteItalianFret2"],[.88,1.2,0,0,"luteItalianFret3"],[.936,1.204,.004,.004,"luteItalianFret4"],[.864,1.2,.004,0,"luteItalianFret5"],[.944,1.204,.004,.004,"luteItalianFret6"],[.968,1.204,0,0,"luteItalianFret7"],[.92,1.204,0,0,"luteItalianFret8"],[.94,1.2,0,0,"luteItalianFret9"],[2.692,1.08,0,0,"luteItalianHoldFinger"],[1.228,1.228,0,0,"luteItalianHoldNote"],[1.392,1.084,0,0,"luteItalianReleaseFinger"],[4.5,3,0,-3,"luteItalianTempoFast"],[3.908,2.248,0,-2.252,"luteItalianTempoNeitherFastNorSlow"],[3.916,3,.008,-3,"luteItalianTempoSlow"],[4.5,3,0,-3,"luteItalianTempoSomewhatFast"],[3.908,3,0,-3,"luteItalianTempoVerySlow"],[2.652,2.248,-.02,-2.252,"luteItalianTimeTriple"],[.824,.288,0,0,"luteItalianTremolo"],[1.588,1.2,0,0,"luteItalianVibrato"],[2,7.564,0,-.064,"luteStaff6Lines"],[1,7.564,0,-.064,"luteStaff6LinesNarrow"],[3,7.564,0,-.064,"luteStaff6LinesWide"],[2.18,0,-.32,-.572,"lyricsElision"],[1.62,0,-.16,-.572,"lyricsElisionNarrow"],[2.98,0,-.32,-.572,"lyricsElisionWide"],[1.168,.14,.16,-.136,"lyricsHyphenBaseline"],[1.168,.14,.16,-.136,"lyricsHyphenBaselineNonBreaking"],[.744,1.68,0,-.564,"medRenFlatHardB"],[.82,1.652,0,-.604,"medRenFlatSoftB"],[.672,1.856,0,-.404,"medRenFlatSoftBHufnagel"],[.58,1.864,0,-.352,"medRenFlatSoftBOld"],[.904,1.716,0,-.74,"medRenFlatWithDot"],[1.504,2.084,0,0,"medRenGClefCMN"],[1.32,.56,0,-.576,"medRenLiquescenceCMN"],[1.1,1.272,0,-.508,"medRenLiquescentAscCMN"],[1.1,.508,0,-1.272,"medRenLiquescentDescCMN"],[.408,1.012,0,-1.016,"medRenNatural"],[.672,1.352,0,-1.352,"medRenNaturalWithCross"],[1.276,.528,0,-.524,"medRenOriscusCMN"],[.6,.376,-.6,-.372,"medRenPlicaCMN"],[1.096,.508,0,-.504,"medRenPunctumCMN"],[1.612,.488,0,-.488,"medRenQuilismaCMN"],[1.72,.568,0,-.568,"medRenSharpCroix"],[.736,.544,0,-.544,"medRenStrophicusCMN"],[1.204,.992,0,.004,"mensuralAlterationSign"],[1.328,.564,0,-.564,"mensuralBlackBrevis"],[1.328,.564,0,-.564,"mensuralBlackBrevisVoid"],[1.128,2.592,0,-2.596,"mensuralBlackDragma"],[1.328,.564,0,-2.564,"mensuralBlackLonga"],[3.128,.564,0,-2.564,"mensuralBlackMaxima"],[1.128,2.596,0,-.564,"mensuralBlackMinima"],[1.128,2.648,0,-.564,"mensuralBlackMinimaVoid"],[1.128,.564,0,-.564,"mensuralBlackSemibrevis"],[1.128,.564,0,-2.596,"mensuralBlackSemibrevisCaudata"],[2.044,.564,0,-.98,"mensuralBlackSemibrevisOblique"],[1.132,.564,.004,-.564,"mensuralBlackSemibrevisVoid"],[1.38,2.596,0,-.564,"mensuralBlackSemiminima"],[2.6,2,0,-2,"mensuralCclef"],[1.136,2.2,0,-2.2,"mensuralCclefBlack"],[.976,2.4,0,-3.2,"mensuralCclefPetrucciPosHigh"],[.976,1.416,0,-3.18,"mensuralCclefPetrucciPosHighest"],[.976,3.2,0,-2.4,"mensuralCclefPetrucciPosLow"],[.976,3.2,0,-1.396,"mensuralCclefPetrucciPosLowest"],[.976,3.2,0,-3.2,"mensuralCclefPetrucciPosMiddle"],[1.136,2.2,0,-2.2,"mensuralCclefVoid"],[.728,.728,0,0,"mensuralColorationEndRound"],[.728,.728,0,0,"mensuralColorationEndSquare"],[.728,.728,0,0,"mensuralColorationStartRound"],[.728,.728,0,0,"mensuralColorationStartSquare"],[.768,.768,-.776,-.772,"mensuralCombStemDiagonal"],[.128,0,0,-3.128,"mensuralCombStemDown"],[.876,0,-.496,-3.128,"mensuralCombStemDownFlagExtended"],[.924,0,0,-3.128,"mensuralCombStemDownFlagFlared"],[.876,0,0,-3.128,"mensuralCombStemDownFlagFusa"],[.128,0,-.752,-3.128,"mensuralCombStemDownFlagLeft"],[.88,0,0,-3.128,"mensuralCombStemDownFlagRight"],[.876,0,0,-3.128,"mensuralCombStemDownFlagSemiminima"],[.128,3.128,0,0,"mensuralCombStemUp"],[.876,3.128,-.496,0,"mensuralCombStemUpFlagExtended"],[.924,3.128,0,0,"mensuralCombStemUpFlagFlared"],[.876,3.128,0,0,"mensuralCombStemUpFlagFusa"],[.128,3.128,-.752,0,"mensuralCombStemUpFlagLeft"],[.88,3.128,0,0,"mensuralCombStemUpFlagRight"],[.876,3.128,0,0,"mensuralCombStemUpFlagSemiminima"],[2.232,1.816,0,0,"mensuralCustosCheckmark"],[2.456,.988,.004,-.656,"mensuralCustosDown"],[1.868,.932,0,0,"mensuralCustosTurn"],[2.456,1.644,.004,0,"mensuralCustosUp"],[1.188,.688,0,-.688,"mensuralFclef"],[1.952,2.364,0,-4.276,"mensuralFclefPetrucci"],[1.376,.564,0,-2.596,"mensuralFusaBlackStemDown"],[1.376,2.596,0,-.564,"mensuralFusaBlackStemUp"],[1.368,.56,0,-2.632,"mensuralFusaBlackVoidStemDown"],[1.38,2.648,.004,-.564,"mensuralFusaBlackVoidStemUp"],[1.372,.564,0,-2.592,"mensuralFusaVoidStemDown"],[1.372,2.592,0,-.564,"mensuralFusaVoidStemUp"],[1.584,.924,0,-.928,"mensuralGclef"],[1.356,3.688,0,-.676,"mensuralGclefPetrucci"],[1.328,.564,0,-2.564,"mensuralLongaBlackStemDownLeft"],[1.328,.564,0,-2.564,"mensuralLongaBlackStemDownRight"],[1.328,2.564,0,-.564,"mensuralLongaBlackStemUpLeft"],[1.328,2.564,0,-.564,"mensuralLongaBlackStemUpRight"],[1.332,.564,0,-2.564,"mensuralLongaBlackVoidStemDownLeft"],[1.332,.564,0,-2.564,"mensuralLongaBlackVoidStemDownRight"],[1.332,2.564,0,-.564,"mensuralLongaBlackVoidStemUpLeft"],[1.332,2.564,0,-.564,"mensuralLongaBlackVoidStemUpRight"],[1.328,.564,0,-2.564,"mensuralLongaVoidStemDownLeft"],[1.328,.564,0,-2.564,"mensuralLongaVoidStemDownRight"],[1.328,2.564,0,-.564,"mensuralLongaVoidStemUpLeft"],[1.328,2.564,0,-.564,"mensuralLongaVoidStemUpRight"],[3.128,.564,0,-2.564,"mensuralMaximaBlackStemDownLeft"],[3.128,.564,0,-2.564,"mensuralMaximaBlackStemDownRight"],[3.128,2.564,0,-.564,"mensuralMaximaBlackStemUpLeft"],[3.128,2.564,0,-.564,"mensuralMaximaBlackStemUpRight"],[3.16,.564,0,-2.564,"mensuralMaximaBlackVoidStemDownLeft"],[3.132,.564,0,-2.564,"mensuralMaximaBlackVoidStemDownRight"],[3.132,2.564,0,-.564,"mensuralMaximaBlackVoidStemUpLeft"],[3.132,2.564,0,-.564,"mensuralMaximaBlackVoidStemUpRight"],[3.128,.564,0,-2.564,"mensuralMaximaVoidStemDownLeft"],[3.128,.564,0,-2.564,"mensuralMaximaVoidStemDownRight"],[3.128,2.564,0,-.564,"mensuralMaximaVoidStemUpLeft"],[3.128,2.564,0,-.564,"mensuralMaximaVoidStemUpRight"],[1.128,.564,0,-2.596,"mensuralMinimaBlackStemDown"],[1.38,.564,0,-2.596,"mensuralMinimaBlackStemDownExtendedFlag"],[1.128,.56,-.248,-2.6,"mensuralMinimaBlackStemDownFlagLeft"],[1.38,.564,0,-2.596,"mensuralMinimaBlackStemDownFlagRight"],[1.424,.56,0,-2.6,"mensuralMinimaBlackStemDownFlaredFlag"],[1.128,2.596,0,-.564,"mensuralMinimaBlackStemUp"],[1.38,2.596,0,-.564,"mensuralMinimaBlackStemUpExtendedFlag"],[1.128,2.596,-.248,-.564,"mensuralMinimaBlackStemUpFlagLeft"],[1.38,2.596,0,-.564,"mensuralMinimaBlackStemUpFlagRight"],[1.424,2.596,0,-.564,"mensuralMinimaBlackStemUpFlaredFlag"],[1.128,.56,0,-2.664,"mensuralMinimaBlackVoidStemDown"],[1.384,.564,0,-2.644,"mensuralMinimaBlackVoidStemDownExtendedFlag"],[1.128,.564,-.248,-2.636,"mensuralMinimaBlackVoidStemDownFlagLeft"],[1.38,.564,0,-2.636,"mensuralMinimaBlackVoidStemDownFlagRight"],[1.428,.564,0,-2.644,"mensuralMinimaBlackVoidStemDownFlaredFlag"],[1.128,2.648,0,-.564,"mensuralMinimaBlackVoidStemUp"],[1.376,2.624,0,-.564,"mensuralMinimaBlackVoidStemUpExtendedFlag"],[1.128,2.648,-.248,-.564,"mensuralMinimaBlackVoidStemUpFlagLeft"],[1.376,2.648,0,-.564,"mensuralMinimaBlackVoidStemUpFlagRight"],[1.428,2.624,0,-.564,"mensuralMinimaBlackVoidStemUpFlaredFlag"],[1.128,.564,0,-2.648,"mensuralMinimaVoidStemDown"],[1.372,.56,0,-2.596,"mensuralMinimaVoidStemDownExtendedFlag"],[1.128,.564,-.248,-2.592,"mensuralMinimaVoidStemDownFlagLeft"],[1.376,.564,0,-2.592,"mensuralMinimaVoidStemDownFlagRight"],[1.428,.564,0,-2.624,"mensuralMinimaVoidStemDownFlaredFlag"],[1.128,2.648,0,-.564,"mensuralMinimaVoidStemUp"],[1.372,2.592,0,-.564,"mensuralMinimaVoidStemUpExtendedFlag"],[1.128,2.592,-.248,-.564,"mensuralMinimaVoidStemUpFlagLeft"],[1.376,2.592,0,-.564,"mensuralMinimaVoidStemUpFlagRight"],[1.428,2.624,0,-.564,"mensuralMinimaVoidStemUpFlaredFlag"],[4.192,1.344,0,-1.344,"mensuralModusImperfectumVert"],[4.192,1.344,0,-1.344,"mensuralModusPerfectumVert"],[1.328,.564,0,-.564,"mensuralNoteheadLongaBlack"],[1.328,.564,0,-.564,"mensuralNoteheadLongaBlackVoid"],[1.328,.564,0,-.564,"mensuralNoteheadLongaVoid"],[1.3,.688,0,-.684,"mensuralNoteheadLongaWhite"],[3.128,.564,0,-.564,"mensuralNoteheadMaximaBlack"],[3.132,.564,0,-.564,"mensuralNoteheadMaximaBlackVoid"],[3.128,.564,0,-.564,"mensuralNoteheadMaximaVoid"],[2.5,.684,0,-.688,"mensuralNoteheadMaximaWhite"],[1.28,.74,0,-.736,"mensuralNoteheadMinimaWhite"],[1.128,.564,0,-.564,"mensuralNoteheadSemibrevisBlack"],[1.128,.564,0,-.564,"mensuralNoteheadSemibrevisBlackVoid"],[1.128,.564,0,-.564,"mensuralNoteheadSemibrevisBlackVoidTurned"],[1.132,.564,.004,-.564,"mensuralNoteheadSemibrevisVoid"],[1.28,.74,0,-.736,"mensuralNoteheadSemiminimaWhite"],[3.128,1.056,0,-.568,"mensuralObliqueAsc2ndBlack"],[3.132,1.056,0,-.568,"mensuralObliqueAsc2ndBlackVoid"],[3.128,1.064,0,-.568,"mensuralObliqueAsc2ndVoid"],[3.124,1.16,0,-.688,"mensuralObliqueAsc2ndWhite"],[3.128,1.524,0,-.568,"mensuralObliqueAsc3rdBlack"],[3.132,1.532,0,-.568,"mensuralObliqueAsc3rdBlackVoid"],[3.128,1.54,0,-.568,"mensuralObliqueAsc3rdVoid"],[3.124,1.712,0,-.688,"mensuralObliqueAsc3rdWhite"],[3.128,2.172,0,-.568,"mensuralObliqueAsc4thBlack"],[3.132,2.052,0,-.568,"mensuralObliqueAsc4thBlackVoid"],[3.128,2.1,0,-.568,"mensuralObliqueAsc4thVoid"],[3.124,2.28,0,-.688,"mensuralObliqueAsc4thWhite"],[3.128,2.552,0,-.568,"mensuralObliqueAsc5thBlack"],[3.132,2.56,0,-.568,"mensuralObliqueAsc5thBlackVoid"],[3.128,2.592,0,-.568,"mensuralObliqueAsc5thVoid"],[3.124,2.76,0,-.688,"mensuralObliqueAsc5thWhite"],[3.128,.528,0,-1.096,"mensuralObliqueDesc2ndBlack"],[3.132,.528,0,-1.096,"mensuralObliqueDesc2ndBlackVoid"],[3.128,.528,0,-1.104,"mensuralObliqueDesc2ndVoid"],[3.124,.688,0,-1.16,"mensuralObliqueDesc2ndWhite"],[3.128,.528,0,-1.564,"mensuralObliqueDesc3rdBlack"],[3.132,.528,0,-1.572,"mensuralObliqueDesc3rdBlackVoid"],[3.128,.528,0,-1.58,"mensuralObliqueDesc3rdVoid"],[3.124,.688,0,-1.712,"mensuralObliqueDesc3rdWhite"],[3.128,.528,0,-2.212,"mensuralObliqueDesc4thBlack"],[3.132,.528,0,-2.092,"mensuralObliqueDesc4thBlackVoid"],[3.128,.528,0,-2.14,"mensuralObliqueDesc4thVoid"],[3.124,.688,0,-2.28,"mensuralObliqueDesc4thWhite"],[3.128,.528,0,-2.592,"mensuralObliqueDesc5thBlack"],[3.132,.528,0,-2.6,"mensuralObliqueDesc5thBlackVoid"],[3.128,.528,0,-2.632,"mensuralObliqueDesc5thVoid"],[3.124,.688,0,-2.76,"mensuralObliqueDesc5thWhite"],[2.128,1.06,.004,-1.064,"mensuralProlation1"],[1.98,1.452,0,-1.52,"mensuralProlation10"],[1.98,1.056,0,-1.068,"mensuralProlation11"],[2.128,1.06,.004,-1.064,"mensuralProlation2"],[2.128,1.452,.004,-1.52,"mensuralProlation3"],[2.124,1.452,0,-1.52,"mensuralProlation4"],[1.976,1.06,0,-1.064,"mensuralProlation5"],[1.976,1.06,0,-1.064,"mensuralProlation6"],[1.968,1.124,-.012,-1,"mensuralProlation7"],[1.98,1.452,.004,-1.52,"mensuralProlation8"],[1.98,1.452,.004,-1.52,"mensuralProlation9"],[.5,.248,0,-.252,"mensuralProlationCombiningDot"],[1.296,.648,0,-.648,"mensuralProlationCombiningDotVoid"],[.192,1.488,0,-1.484,"mensuralProlationCombiningStroke"],[1.448,.196,0,-.196,"mensuralProlationCombiningThreeDots"],[1.064,.504,0,-.5,"mensuralProlationCombiningThreeDotsTri"],[1.064,.208,0,-.208,"mensuralProlationCombiningTwoDots"],[.996,1.012,0,-1,"mensuralProportion1"],[1.324,1.012,0,-1,"mensuralProportion2"],[1.176,1.012,0,-1,"mensuralProportion3"],[1.516,1,0,-1,"mensuralProportion4"],[1.82,1.012,0,-1.004,"mensuralProportion4Old"],[.888,1.484,0,-1.488,"mensuralProportionMajor"],[.888,1.484,0,-1.488,"mensuralProportionMinor"],[2.972,1.06,0,-1.064,"mensuralProportionProportioDupla1"],[2.16,1.08,0,-1.076,"mensuralProportionProportioDupla2"],[2.156,1.076,0,-1.08,"mensuralProportionProportioQuadrupla"],[2.16,1.08,0,-1.076,"mensuralProportionProportioTripla"],[2.188,1.1,0,-1.104,"mensuralProportionTempusPerfectum"],[.192,1,0,0,"mensuralRestBrevis"],[.556,.66,0,0,"mensuralRestFusa"],[.192,1,0,-1,"mensuralRestLongaImperfecta"],[.192,2,0,-2,"mensuralRestLongaPerfecta"],[.588,2,0,-2,"mensuralRestMaxima"],[.192,.5,0,0,"mensuralRestMinima"],[.192,1,0,.5,"mensuralRestSemibrevis"],[.552,.66,0,0,"mensuralRestSemifusa"],[.556,.66,0,0,"mensuralRestSemiminima"],[1.372,.56,0,-2.6,"mensuralSemiminimaBlackStemDown"],[1.372,2.596,0,-.564,"mensuralSemiminimaBlackStemUp"],[1.372,.564,0,-2.636,"mensuralSemiminimaBlackVoidStemDown"],[1.372,2.648,.004,-.564,"mensuralSemiminimaBlackVoidStemUp"],[1.368,.564,0,-2.592,"mensuralSemiminimaVoidStemDown"],[1.368,2.592,0,-.564,"mensuralSemiminimaVoidStemUp"],[1.14,1.884,0,0,"mensuralSignumDown"],[1.14,1.884,0,0,"mensuralSignumUp"],[4.192,1.344,0,-1.344,"mensuralTempusImperfectumHoriz"],[4.192,1.344,0,-1.344,"mensuralTempusPerfectumHoriz"],[1.3,.688,0,-.684,"mensuralWhiteBrevis"],[1.392,3.544,0,-.744,"mensuralWhiteFusa"],[1.3,.684,0,-3.548,"mensuralWhiteLonga"],[2.5,.684,0,-3.548,"mensuralWhiteMaxima"],[1.28,3.544,0,-.736,"mensuralWhiteMinima"],[1.28,3.544,0,-.736,"mensuralWhiteSemiminima"],[3.308,1.452,0,.54,"metricModulationArrowLeft"],[3.308,1.452,0,.54,"metricModulationArrowRight"],[4.508,4.512,-.004,0,"miscDoNotCopy"],[4.34,4.024,-.02,-.036,"miscDoNotPhotocopy"],[4.652,2,0,0,"miscEyeglasses"],[1.328,.564,0,-6.98,"note1024thDown"],[2.164,7.028,0,-.564,"note1024thUp"],[1.328,.564,0,-4.988,"note128thDown"],[2.148,5.072,0,-.564,"note128thUp"],[1.328,.564,0,-2.824,"note16thDown"],[2.084,2.8,0,-.564,"note16thUp"],[1.328,.564,0,-5.608,"note256thDown"],[2.16,5.696,0,-.564,"note256thUp"],[1.328,.564,0,-3.52,"note32ndDown"],[2.152,3.692,0,-.564,"note32ndUp"],[1.328,.564,0,-6.28,"note512thDown"],[2.168,6.356,0,-.564,"note512thUp"],[1.328,.564,0,-4.256,"note64thDown"],[2.148,4.392,0,-.564,"note64thUp"],[1.328,.564,0,-2.824,"note8thDown"],[2.132,2.784,0,-.564,"note8thUp"],[1.432,.564,0,-.564,"noteABlack"],[1.432,.56,0,-.568,"noteAFlatBlack"],[1.444,.584,0,-.576,"noteAFlatHalf"],[1.944,.576,0,-.584,"noteAFlatWhole"],[1.444,.584,0,-.576,"noteAHalf"],[1.432,.56,0,-.568,"noteASharpBlack"],[1.444,.584,0,-.576,"noteASharpHalf"],[1.944,.576,0,-.584,"noteASharpWhole"],[1.944,.58,0,-.58,"noteAWhole"],[1.428,.564,0,-.564,"noteBBlack"],[1.428,.564,0,-.564,"noteBFlatBlack"],[1.444,.584,0,-.576,"noteBFlatHalf"],[1.944,.576,0,-.584,"noteBFlatWhole"],[1.444,.584,0,-.576,"noteBHalf"],[1.428,.568,0,-.56,"noteBSharpBlack"],[1.444,.584,0,-.576,"noteBSharpHalf"],[1.944,.576,0,-.584,"noteBSharpWhole"],[1.944,.576,0,-.584,"noteBWhole"],[1.432,.568,0,-.56,"noteCBlack"],[1.428,.564,0,-.564,"noteCFlatBlack"],[1.444,.584,0,-.576,"noteCFlatHalf"],[1.944,.576,0,-.584,"noteCFlatWhole"],[1.444,.584,0,-.576,"noteCHalf"],[1.428,.568,0,-.56,"noteCSharpBlack"],[1.444,.584,0,-.576,"noteCSharpHalf"],[1.944,.576,0,-.584,"noteCSharpWhole"],[1.944,.576,0,-.584,"noteCWhole"],[1.428,.564,0,-.564,"noteDBlack"],[1.428,.564,0,-.564,"noteDFlatBlack"],[1.444,.584,0,-.576,"noteDFlatHalf"],[1.944,.572,0,-.588,"noteDFlatWhole"],[1.444,.584,0,-.576,"noteDHalf"],[1.428,.564,0,-.564,"noteDSharpBlack"],[1.444,.584,0,-.576,"noteDSharpHalf"],[1.944,.572,0,-.588,"noteDSharpWhole"],[1.944,.572,0,-.588,"noteDWhole"],[1.432,.568,0,-.56,"noteDoBlack"],[1.44,.58,0,-.58,"noteDoHalf"],[1.944,.576,0,-.584,"noteDoWhole"],[2.62,.68,0,-.672,"noteDoubleWhole"],[2.116,.676,0,-.676,"noteDoubleWholeAlt"],[2.132,1,0,-1,"noteDoubleWholeSquare"],[1.432,.564,0,-.564,"noteEBlack"],[1.428,.564,0,-.564,"noteEFlatBlack"],[1.444,.584,0,-.576,"noteEFlatHalf"],[1.944,.576,0,-.584,"noteEFlatWhole"],[1.444,.584,0,-.576,"noteEHalf"],[1.428,.564,0,-.564,"noteESharpBlack"],[1.444,.584,0,-.576,"noteESharpHalf"],[1.944,.576,0,-.584,"noteESharpWhole"],[1.944,.576,0,-.584,"noteEWhole"],[1.432,.564,0,-.564,"noteEmptyBlack"],[1.444,.584,0,-.576,"noteEmptyHalf"],[1.944,.576,0,-.584,"noteEmptyWhole"],[1.432,.564,0,-.564,"noteFBlack"],[1.428,.568,0,-.56,"noteFFlatBlack"],[1.444,.58,0,-.58,"noteFFlatHalf"],[1.944,.576,0,-.584,"noteFFlatWhole"],[1.444,.58,0,-.58,"noteFHalf"],[1.428,.564,0,-.564,"noteFSharpBlack"],[1.444,.58,0,-.58,"noteFSharpHalf"],[1.944,.572,0,-.588,"noteFSharpWhole"],[1.944,.576,0,-.584,"noteFWhole"],[1.432,.572,0,-.556,"noteFaBlack"],[1.44,.584,0,-.576,"noteFaHalf"],[1.944,.576,0,-.584,"noteFaWhole"],[1.432,.568,0,-.56,"noteGBlack"],[1.432,.568,0,-.56,"noteGFlatBlack"],[1.444,.58,0,-.58,"noteGFlatHalf"],[1.944,.576,0,-.584,"noteGFlatWhole"],[1.44,.584,-.004,-.576,"noteGHalf"],[1.428,.564,0,-.564,"noteGSharpBlack"],[1.444,.584,0,-.576,"noteGSharpHalf"],[1.944,.576,0,-.584,"noteGSharpWhole"],[1.944,.576,0,-.584,"noteGWhole"],[1.432,.568,0,-.56,"noteHBlack"],[1.444,.584,0,-.576,"noteHHalf"],[1.432,.568,0,-.56,"noteHSharpBlack"],[1.444,.584,0,-.576,"noteHSharpHalf"],[1.944,.576,0,-.584,"noteHSharpWhole"],[1.944,.576,0,-.584,"noteHWhole"],[1.364,.564,0,-2.752,"noteHalfDown"],[1.364,2.752,0,-.564,"noteHalfUp"],[1.432,.572,0,-.556,"noteLaBlack"],[1.44,.584,0,-.576,"noteLaHalf"],[1.944,.576,0,-.584,"noteLaWhole"],[1.432,.572,0,-.556,"noteMiBlack"],[1.44,.584,0,-.576,"noteMiHalf"],[1.944,.576,0,-.584,"noteMiWhole"],[1.328,.564,0,-2.752,"noteQuarterDown"],[1.328,2.752,0,-.564,"noteQuarterUp"],[1.432,.568,0,-.56,"noteReBlack"],[1.44,.584,0,-.576,"noteReHalf"],[1.944,.576,0,-.584,"noteReWhole"],[1.172,.52,0,-.52,"noteShapeArrowheadLeftBlack"],[1.172,.52,0,-.524,"noteShapeArrowheadLeftWhite"],[1.54,.588,0,-.588,"noteShapeDiamondBlack"],[1.544,.588,0,-.588,"noteShapeDiamondWhite"],[1.172,.52,0,-.52,"noteShapeIsoscelesTriangleBlack"],[1.172,.52,0,-.52,"noteShapeIsoscelesTriangleWhite"],[1.224,.52,0,-.52,"noteShapeKeystoneBlack"],[1.224,.52,.004,-.52,"noteShapeKeystoneWhite"],[1.596,.524,0,-.528,"noteShapeMoonBlack"],[1.04,.5,0,-.5,"noteShapeMoonLeftBlack"],[1.04,.5,0,-.5,"noteShapeMoonLeftWhite"],[1.596,.528,0,-.524,"noteShapeMoonWhite"],[1.04,.5,.004,-.5,"noteShapeQuarterMoonBlack"],[1.04,.5,.004,-.5,"noteShapeQuarterMoonWhite"],[1.328,.564,0,-.564,"noteShapeRoundBlack"],[1.364,.58,0,-.58,"noteShapeRoundWhite"],[1.616,.56,0,-.56,"noteShapeSquareBlack"],[1.616,.56,0,-.56,"noteShapeSquareWhite"],[1.62,.56,0,-.56,"noteShapeTriangleLeftBlack"],[1.62,.556,0,-.564,"noteShapeTriangleLeftWhite"],[1.62,.56,0,-.56,"noteShapeTriangleRightBlack"],[1.62,.556,0,-.564,"noteShapeTriangleRightWhite"],[1.584,.556,0,-.556,"noteShapeTriangleRoundBlack"],[1.292,.504,0,-.504,"noteShapeTriangleRoundLeftBlack"],[1.292,.5,0,-.504,"noteShapeTriangleRoundLeftWhite"],[1.588,.548,.004,-.564,"noteShapeTriangleRoundWhite"],[1.62,.564,0,-.568,"noteShapeTriangleUpBlack"],[1.62,.564,0,-.568,"noteShapeTriangleUpWhite"],[1.432,.572,0,-.556,"noteSiBlack"],[1.44,.584,0,-.576,"noteSiHalf"],[1.944,.576,0,-.584,"noteSiWhole"],[1.432,.572,0,-.556,"noteSoBlack"],[1.44,.584,0,-.576,"noteSoHalf"],[1.944,.576,0,-.584,"noteSoWhole"],[1.432,.572,0,-.556,"noteTiBlack"],[1.44,.584,0,-.576,"noteTiHalf"],[1.944,.576,0,-.584,"noteTiWhole"],[1.836,.592,0,-.5,"noteWhole"],[1.328,.564,0,-.564,"noteheadBlack"],[2.06,.724,0,-.724,"noteheadBlackParens"],[1.408,.552,0,-.576,"noteheadBlackSmall"],[1.128,.564,.004,-.564,"noteheadCircleSlash"],[1.128,.564,.004,-.564,"noteheadCircleX"],[1.92,.688,0,-.676,"noteheadCircleXDoubleWhole"],[1.14,.568,.004,-.568,"noteheadCircleXHalf"],[1.136,.568,.004,-.568,"noteheadCircleXWhole"],[1.532,.76,-.004,-.76,"noteheadCircledBlack"],[1.868,.928,.004,-.932,"noteheadCircledBlackLarge"],[2.62,.924,0,-.948,"noteheadCircledDoubleWhole"],[2.488,.952,0,-.948,"noteheadCircledDoubleWholeLarge"],[1.532,.768,0,-.764,"noteheadCircledHalf"],[1.864,.932,0,-.932,"noteheadCircledHalfLarge"],[2.032,1.016,0,-1.012,"noteheadCircledWhole"],[2.488,.952,0,-.948,"noteheadCircledWholeLarge"],[1.864,.932,0,-.932,"noteheadCircledXLarge"],[2.64,1.2,0,-.668,"noteheadClusterDoubleWhole2nd"],[2.644,1.688,.004,-.68,"noteheadClusterDoubleWhole3rd"],[2.644,.828,0,-.68,"noteheadClusterDoubleWholeBottom"],[2.64,.312,0,-.564,"noteheadClusterDoubleWholeMiddle"],[2.644,.684,0,-.732,"noteheadClusterDoubleWholeTop"],[1.376,1.112,0,-.56,"noteheadClusterHalf2nd"],[1.376,1.616,0,-.56,"noteheadClusterHalf3rd"],[1.376,.624,0,-.592,"noteheadClusterHalfBottom"],[1.076,.376,.3,-.5,"noteheadClusterHalfMiddle"],[1.376,.568,0,-.7,"noteheadClusterHalfTop"],[1.42,1.08,0,-.56,"noteheadClusterQuarter2nd"],[1.544,1.584,0,-.56,"noteheadClusterQuarter3rd"],[1.34,.904,0,-.576,"noteheadClusterQuarterBottom"],[1.016,.388,.32,-.5,"noteheadClusterQuarterMiddle"],[1.34,.56,0,-.812,"noteheadClusterQuarterTop"],[1.328,3.124,0,0,"noteheadClusterRoundBlack"],[1.496,3.124,0,0,"noteheadClusterRoundWhite"],[1.328,3.112,0,0,"noteheadClusterSquareBlack"],[1.328,3.112,0,0,"noteheadClusterSquareWhite"],[1.852,1.052,.004,-.552,"noteheadClusterWhole2nd"],[1.848,1.548,0,-.56,"noteheadClusterWhole3rd"],[1.852,.916,0,-.552,"noteheadClusterWholeBottom"],[1.396,.368,.46,-.5,"noteheadClusterWholeMiddle"],[1.852,.548,0,-.92,"noteheadClusterWholeTop"],[1.124,.568,0,-.56,"noteheadDiamondBlack"],[1.316,.564,0,-.576,"noteheadDiamondBlackOld"],[1.572,.568,0,-.56,"noteheadDiamondBlackWide"],[1.18,1.664,0,.004,"noteheadDiamondClusterBlack2nd"],[1.18,2.128,0,-.032,"noteheadDiamondClusterBlack3rd"],[1.364,.7,0,-.444,"noteheadDiamondClusterBlackBottom"],[1.02,.5,.388,-.5,"noteheadDiamondClusterBlackMiddle"],[1.372,.444,.008,-.7,"noteheadDiamondClusterBlackTop"],[1.18,1.664,0,.004,"noteheadDiamondClusterWhite2nd"],[1.18,2.132,0,-.028,"noteheadDiamondClusterWhite3rd"],[1.38,.704,.004,-.456,"noteheadDiamondClusterWhiteBottom"],[1.02,.504,.372,-.5,"noteheadDiamondClusterWhiteMiddle"],[1.38,.456,.004,-.704,"noteheadDiamondClusterWhiteTop"],[2.08,.604,0,-.604,"noteheadDiamondDoubleWhole"],[2.068,.62,0,-.58,"noteheadDiamondDoubleWholeOld"],[1.132,.572,.004,-.556,"noteheadDiamondHalf"],[1.308,.568,-.004,-.568,"noteheadDiamondHalfFilled"],[1.324,.564,0,-.572,"noteheadDiamondHalfOld"],[1.576,.572,0,-.556,"noteheadDiamondHalfWide"],[1.296,.564,0,-.564,"noteheadDiamondOpen"],[1.124,.568,0,-.56,"noteheadDiamondWhite"],[1.572,.568,0,-.56,"noteheadDiamondWhiteWide"],[1.3,.6,0,-.608,"noteheadDiamondWhole"],[1.348,.576,0,-.568,"noteheadDiamondWholeOld"],[2.62,.668,0,-.684,"noteheadDoubleWhole"],[2.116,.676,0,-.676,"noteheadDoubleWholeAlt"],[3.644,.724,0,-.724,"noteheadDoubleWholeParens"],[2.732,.676,0,-.676,"noteheadDoubleWholeSmall"],[2.132,1,0,-1,"noteheadDoubleWholeSquare"],[2.64,.68,0,-.68,"noteheadDoubleWholeWithX"],[1.364,.58,0,-.58,"noteheadHalf"],[1.364,.58,0,-.58,"noteheadHalfFilled"],[1.976,.724,0,-.724,"noteheadHalfParens"],[1.364,.58,0,-.58,"noteheadHalfSmall"],[1.376,.58,0,-.588,"noteheadHalfWithX"],[1.736,.564,.004,-.564,"noteheadHeavyX"],[2.06,1.168,-.324,-.564,"noteheadHeavyXHat"],[1.328,1,0,-.56,"noteheadLargeArrowDownBlack"],[2.164,1,.004,-.58,"noteheadLargeArrowDownDoubleWhole"],[1.256,.996,-.004,-.556,"noteheadLargeArrowDownHalf"],[1.408,1,.004,-.548,"noteheadLargeArrowDownWhole"],[1.328,1,0,-.56,"noteheadLargeArrowUpBlack"],[2.164,1,.004,-.58,"noteheadLargeArrowUpDoubleWhole"],[1.256,.996,-.004,-.556,"noteheadLargeArrowUpHalf"],[1.408,1,.004,-.548,"noteheadLargeArrowUpWhole"],[1.416,.564,0,-.564,"noteheadMoonBlack"],[1.416,.564,0,-.564,"noteheadMoonWhite"],[1.592,.728,-.292,-.72,"noteheadParenthesis"],[.436,.724,0,-.724,"noteheadParenthesisLeft"],[.292,.724,-.144,-.724,"noteheadParenthesisRight"],[1.124,.564,-.004,-.564,"noteheadPlusBlack"],[2.352,.62,0,-.62,"noteheadPlusDoubleWhole"],[1.188,.576,0,-.56,"noteheadPlusHalf"],[1.416,.62,0,-.62,"noteheadPlusWhole"],[1.376,.54,0,-.5,"noteheadRectangularClusterBlackBottom"],[1.376,.52,0,-.52,"noteheadRectangularClusterBlackMiddle"],[1.376,.5,0,-.54,"noteheadRectangularClusterBlackTop"],[1.376,.54,0,-.5,"noteheadRectangularClusterWhiteBottom"],[1.376,.52,0,-.52,"noteheadRectangularClusterWhiteMiddle"],[1.376,.5,0,-.54,"noteheadRectangularClusterWhiteTop"],[1.12,.56,0,-.56,"noteheadRoundBlack"],[2.12,1.124,0,-.996,"noteheadRoundBlackLarge"],[2.628,2.068,-1.508,-2.068,"noteheadRoundBlackSlashed"],[3.244,2.068,-.892,-2.068,"noteheadRoundBlackSlashedLarge"],[1.124,.56,.004,-.56,"noteheadRoundWhite"],[2.124,1.12,.004,-1,"noteheadRoundWhiteLarge"],[2.632,2.068,-1.504,-2.068,"noteheadRoundWhiteSlashed"],[3.116,2.068,-1.02,-2.068,"noteheadRoundWhiteSlashedLarge"],[1.12,.56,0,-.56,"noteheadRoundWhiteWithDot"],[2.12,1.12,0,-1,"noteheadRoundWhiteWithDotLarge"],[2,.988,0,-1,"noteheadSlashDiamondWhite"],[2.12,1,0,-1,"noteheadSlashHorizontalEnds"],[2.12,1.036,0,-1.036,"noteheadSlashHorizontalEndsMuted"],[1.46,.996,0,-1.004,"noteheadSlashVerticalEnds"],[1.512,1.032,-.052,-1.04,"noteheadSlashVerticalEndsMuted"],[.732,.496,0,-.504,"noteheadSlashVerticalEndsSmall"],[3.12,1,0,-1,"noteheadSlashWhiteHalf"],[3.12,1.036,0,-1.036,"noteheadSlashWhiteMuted"],[3.92,1,0,-1,"noteheadSlashWhiteWhole"],[2.12,1,0,-1,"noteheadSlashX"],[1.684,.74,-.36,-.752,"noteheadSlashedBlack1"],[1.688,.744,-.356,-.748,"noteheadSlashedBlack2"],[2.62,.744,0,-.784,"noteheadSlashedDoubleWhole1"],[2.62,.744,0,-.784,"noteheadSlashedDoubleWhole2"],[1.8,.7,-.308,-.708,"noteheadSlashedHalf1"],[1.772,.7,-.336,-.708,"noteheadSlashedHalf2"],[2.012,.684,-.1,-.736,"noteheadSlashedWhole1"],[2.028,.7,-.084,-.72,"noteheadSlashedWhole2"],[1.416,.564,0,-.564,"noteheadSquareBlack"],[2.144,1.048,0,-1.056,"noteheadSquareBlackLarge"],[2.144,1.056,0,-1.048,"noteheadSquareBlackWhite"],[1.416,.56,0,-.568,"noteheadSquareWhite"],[1.312,.568,0,-.564,"noteheadTriangleDownBlack"],[2.152,.608,.004,-.58,"noteheadTriangleDownDoubleWhole"],[1.256,.548,-.004,-.556,"noteheadTriangleDownHalf"],[1.316,.564,0,-.568,"noteheadTriangleDownWhite"],[1.416,.556,.004,-.548,"noteheadTriangleDownWhole"],[1.524,.572,0,-.56,"noteheadTriangleLeftBlack"],[1.524,.572,0,-.56,"noteheadTriangleLeftWhite"],[1.524,.572,0,-.56,"noteheadTriangleRightBlack"],[1.528,.572,.004,-.56,"noteheadTriangleRightWhite"],[1.272,.576,0,-.572,"noteheadTriangleRoundDownBlack"],[1.272,.572,0,-.576,"noteheadTriangleRoundDownWhite"],[1.312,.572,0,-.56,"noteheadTriangleUpBlack"],[2.152,.608,.004,-.58,"noteheadTriangleUpDoubleWhole"],[1.256,.548,-.004,-.556,"noteheadTriangleUpHalf"],[1.524,.568,0,-.564,"noteheadTriangleUpRightBlack"],[1.524,.568,0,-.564,"noteheadTriangleUpRightWhite"],[1.316,.568,0,-.564,"noteheadTriangleUpWhite"],[1.416,.556,.004,-.548,"noteheadTriangleUpWhole"],[1.484,.644,-.004,-.644,"noteheadVoidWithX"],[1.836,.548,0,-.544,"noteheadWhole"],[1.836,.548,0,-.544,"noteheadWholeFilled"],[2.416,.724,0,-.724,"noteheadWholeParens"],[1.836,.544,0,-.548,"noteheadWholeSmall"],[1.848,.544,0,-.556,"noteheadWholeWithX"],[1.32,.56,0,-.576,"noteheadXBlack"],[2.468,.604,0,-.596,"noteheadXDoubleWhole"],[1.516,.564,.004,-.564,"noteheadXHalf"],[.988,.504,0,-.504,"noteheadXOrnate"],[1.532,.676,0,-.676,"noteheadXOrnateEllipse"],[1.704,.564,0,-.564,"noteheadXWhole"],[4.252,1.352,0,-.04,"octaveBassa"],[3.012,1.348,-.004,-.04,"octaveLoco"],[.652,1.936,0,-.068,"octaveParensLeft"],[.548,1.936,-.104,-.068,"octaveParensRight"],[1.528,.98,.004,-1.468,"ornamentBottomLeftConcaveStroke"],[2.004,.956,.004,-1.468,"ornamentBottomLeftConcaveStrokeLarge"],[2.004,.72,-.14,-.784,"ornamentBottomLeftConvexStroke"],[1.108,.972,-.216,-.88,"ornamentBottomRightConcaveStroke"],[2.208,.98,-.212,-.736,"ornamentBottomRightConvexStroke"],[.568,.936,.004,.004,"ornamentComma"],[2.076,1.9,0,.004,"ornamentDoubleObliqueLinesAfterNote"],[2.072,1.9,-.004,-.004,"ornamentDoubleObliqueLinesBeforeNote"],[1.568,.5,0,0,"ornamentDownCurve"],[1.996,.852,0,-.16,"ornamentHaydn"],[1.724,1.156,0,.16,"ornamentHighLeftConcaveStroke"],[1.3,1.384,0,-.02,"ornamentHighLeftConvexStroke"],[2.12,1.232,-.288,.004,"ornamentHighRightConcaveStroke"],[1.604,1.016,-.204,0,"ornamentHighRightConvexStroke"],[1.996,1.34,.004,.024,"ornamentHookAfterNote"],[1.492,1.42,0,0,"ornamentHookBeforeNote"],[.632,1.892,-.004,.004,"ornamentLeftFacingHalfCircle"],[.88,1.9,.016,.012,"ornamentLeftFacingHook"],[2.836,1.9,-.004,-.228,"ornamentLeftPlus"],[1.188,1.936,0,-.024,"ornamentLeftShakeT"],[.68,1.92,0,-.004,"ornamentLeftVerticalStroke"],[1.252,2,-.12,-.004,"ornamentLeftVerticalStrokeWithCross"],[1.524,1.08,.004,-.064,"ornamentLowLeftConcaveStroke"],[1.596,.812,-.004,0,"ornamentLowLeftConvexStroke"],[1.288,.956,-.224,-.104,"ornamentLowRightConcaveStroke"],[1.904,.98,-.212,-.104,"ornamentLowRightConvexStroke"],[.064,1.324,-.056,-.244,"ornamentMiddleVerticalStroke"],[2.9,.98,0,0,"ornamentMordent"],[2.916,1.276,.004,-.292,"ornamentMordentInverted"],[1.252,1.904,0,-.004,"ornamentObliqueLineAfterNote"],[1.256,1.904,.004,-.004,"ornamentObliqueLineBeforeNote"],[1.944,.5,0,.004,"ornamentObliqueLineHorizAfterNote"],[1.944,.5,0,.004,"ornamentObliqueLineHorizBeforeNote"],[2,.744,.004,.016,"ornamentOriscus"],[2.344,1.884,0,0,"ornamentPinceCouperin"],[1.772,1.904,0,0,"ornamentPortDeVoixV"],[4.476,1.924,0,0,"ornamentPrecompAppoggTrill"],[3.504,2.476,0,0,"ornamentPrecompAppoggTrillSuffix"],[4.424,1.164,0,0,"ornamentPrecompCadence"],[4.052,.988,0,0,"ornamentPrecompCadenceUpperPrefix "],[4.052,1.332,0,-.248,"ornamentPrecompCadenceUpperPrefixTurn"],[4.424,1.332,0,-.248,"ornamentPrecompCadenceWithTurn "],[4.516,.976,0,-.74,"ornamentPrecompDescendingSlide"],[5.476,1.164,0,0,"ornamentPrecompDoubleCadenceLowerPrefix"],[5.112,.988,0,0,"ornamentPrecompDoubleCadenceUpperPrefix "],[5.108,1.332,0,-.248,"ornamentPrecompDoubleCadenceUpperPrefixTurn"],[4.888,1.56,0,-.248,"ornamentPrecompInvertedMordentUpperPrefix"],[2.772,1.536,0,0,"ornamentPrecompMordentRelease"],[4.892,1.564,0,0,"ornamentPrecompMordentUpperPrefix"],[5.22,1.32,0,-.248,"ornamentPrecompPortDeVoixMordent"],[4.432,1.232,0,0,"ornamentPrecompSlide"],[4.192,1.324,0,-1.468,"ornamentPrecompSlideTrillBach"],[4.6,.98,.008,-1.468,"ornamentPrecompSlideTrillDAnglebert"],[4.448,1.524,0,-1.468,"ornamentPrecompSlideTrillMarpurg"],[5.644,2.016,.016,-.788,"ornamentPrecompSlideTrillMuffat"],[4.328,1.524,0,-.784,"ornamentPrecompSlideTrillSuffixMuffat"],[3.436,.984,0,-.888,"ornamentPrecompTrillLowerSuffix"],[3.796,1.524,0,0,"ornamentPrecompTrillSuffixDandrieu"],[3.96,1.332,0,-.248,"ornamentPrecompTrillWithMordent"],[5.896,1.38,0,-.248,"ornamentPrecompTurnTrillBach"],[5.976,2.04,0,0,"ornamentPrecompTurnTrillDAnglebert"],[1.664,1.196,.008,0,"ornamentQuilisma"],[.64,1.892,.004,.004,"ornamentRightFacingHalfCircle"],[.868,1.896,.004,.008,"ornamentRightFacingHook"],[.656,2.472,-.1,.228,"ornamentRightVerticalStroke"],[4.572,2.64,0,0,"ornamentSchleifer"],[1.124,1.124,-.004,-.004,"ornamentShake3"],[.872,1.892,0,.256,"ornamentShakeMuffat1"],[.792,1.204,0,-.004,"ornamentShortObliqueLineAfterNote"],[.792,1.2,.004,-.004,"ornamentShortObliqueLineBeforeNote"],[1.388,1.864,.008,.16,"ornamentTopLeftConcaveStroke"],[1.18,1.552,0,.084,"ornamentTopLeftConvexStroke"],[1.744,2.02,-.276,.004,"ornamentTopRightConcaveStroke"],[.448,1.524,-.388,.236,"ornamentTopRightConvexStroke"],[3.94,.976,.004,0,"ornamentTremblement"],[2.44,.68,0,0,"ornamentTremblementCouperin"],[2.156,1.532,.008,-.008,"ornamentTrill"],[2.156,3.252,.008,-.008,"ornamentTrillFlatAbove"],[2.156,3.384,.008,-.008,"ornamentTrillNaturalAbove"],[2.156,3.524,.008,-.008,"ornamentTrillSharpAbove"],[1.828,.86,0,0,"ornamentTurn"],[1.828,2.692,0,0,"ornamentTurnFlatAbove"],[1.828,2.692,0,-1.98,"ornamentTurnFlatAboveSharpBelow"],[1.828,.86,0,-1.708,"ornamentTurnFlatBelow"],[1.828,.86,0,0,"ornamentTurnInverted"],[1.828,2.824,0,0,"ornamentTurnNaturalAbove"],[1.828,.86,0,-1.988,"ornamentTurnNaturalBelow"],[1.828,2.808,0,0,"ornamentTurnSharpAbove"],[1.828,2.808,0,-1.708,"ornamentTurnSharpAboveFlatBelow"],[1.828,.86,0,-1.98,"ornamentTurnSharpBelow"],[1.832,1.224,0,-.36,"ornamentTurnSlash"],[.86,1.828,0,0,"ornamentTurnUp"],[.86,1.828,0,0,"ornamentTurnUpS"],[1.568,.5,0,0,"ornamentUpCurve"],[.1,1.556,.004,.436,"ornamentVerticalLine"],[1.14,.98,-.208,0,"ornamentZigZagLineNoRightEnd"],[1.624,.98,-.216,0,"ornamentZigZagLineWithRightEnd"],[1.544,1.852,0,-.04,"ottava"],[3.54,1.852,0,-.04,"ottavaAlta"],[3.356,1.852,0,-.04,"ottavaBassa"],[3.5,1.852,0,-.04,"ottavaBassaBa"],[3.184,1.852,0,-.04,"ottavaBassaVb"],[.684,.64,-.684,-.636,"pendereckiTremolo"],[1.764,2.988,0,0,"pictAgogo"],[1.836,2.532,.004,0,"pictAlmglocken"],[3.904,2.392,0,0,"pictAnvil"],[4.08,3.492,0,0,"pictBambooChimes"],[3.576,1.228,0,0,"pictBambooScraper"],[1.528,3.104,.004,0,"pictBassDrum"],[3.104,1.52,0,0,"pictBassDrumOnSide"],[3.352,3.016,0,0,"pictBassDrumPeinkofer"],[.372,3.104,0,0,"pictBeaterBow"],[1.568,3.3,0,-.32,"pictBeaterBox"],[1.184,3.152,0,-.004,"pictBeaterBrassMalletsDown"],[1.184,3.152,0,-.004,"pictBeaterBrassMalletsUp"],[1.608,3.28,0,1.684,"pictBeaterCombiningDashedCircle"],[1.884,3.168,0,1.72,"pictBeaterCombiningParentheses"],[1.28,3.052,0,0,"pictBeaterDoubleBassDrumDown"],[1.28,3.052,0,0,"pictBeaterDoubleBassDrumUp"],[2.068,2.84,0,0,"pictBeaterFinger"],[1.216,.768,0,0,"pictBeaterFingernails"],[2.036,1.72,0,0,"pictBeaterFist"],[1.584,3.14,0,-.004,"pictBeaterGuiroScraper"],[2.228,2.704,0,0,"pictBeaterHammer"],[2.24,3.052,0,0,"pictBeaterHammerMetalDown"],[2.24,3.052,0,0,"pictBeaterHammerMetalUp"],[2.24,3.052,0,0,"pictBeaterHammerPlasticDown"],[2.24,3.052,0,0,"pictBeaterHammerPlasticUp"],[2.24,3.052,0,0,"pictBeaterHammerWoodDown"],[2.24,3.052,0,0,"pictBeaterHammerWoodUp"],[2.068,2.976,0,0,"pictBeaterHand"],[1.28,3.048,0,-.004,"pictBeaterHardBassDrumDown"],[1.28,3.048,0,-.004,"pictBeaterHardBassDrumUp"],[.432,2.912,0,0,"pictBeaterHardGlockenspielDown"],[1.596,2.556,.004,0,"pictBeaterHardGlockenspielLeft"],[1.596,2.556,.004,0,"pictBeaterHardGlockenspielRight"],[.432,2.912,0,0,"pictBeaterHardGlockenspielUp"],[.868,3.048,0,-.004,"pictBeaterHardTimpaniDown"],[1.892,2.824,0,-.004,"pictBeaterHardTimpaniLeft"],[1.892,2.824,0,-.004,"pictBeaterHardTimpaniRight"],[.868,3.048,0,-.004,"pictBeaterHardTimpaniUp"],[.92,2.968,0,-.004,"pictBeaterHardXylophoneDown"],[1.74,2.644,-.008,0,"pictBeaterHardXylophoneLeft"],[1.744,2.644,0,0,"pictBeaterHardXylophoneRight"],[.92,2.968,0,-.004,"pictBeaterHardXylophoneUp"],[1.1,3.028,.004,-.004,"pictBeaterHardYarnDown"],[1.828,2.704,.004,-.004,"pictBeaterHardYarnLeft"],[1.828,2.704,.004,-.004,"pictBeaterHardYarnRight"],[1.1,3.028,.004,-.004,"pictBeaterHardYarnUp"],[.56,3.236,0,0,"pictBeaterJazzSticksDown"],[.56,3.236,0,0,"pictBeaterJazzSticksUp"],[1.128,3.128,0,0,"pictBeaterKnittingNeedle"],[1.612,2.98,0,0,"pictBeaterMallet"],[1.28,3.048,0,-.004,"pictBeaterMediumBassDrumDown"],[1.28,3.048,0,-.004,"pictBeaterMediumBassDrumUp"],[.868,3.056,0,.004,"pictBeaterMediumTimpaniDown"],[1.896,2.828,0,0,"pictBeaterMediumTimpaniLeft"],[1.896,2.828,0,0,"pictBeaterMediumTimpaniRight"],[.868,3.056,0,.004,"pictBeaterMediumTimpaniUp"],[.924,2.968,.004,-.004,"pictBeaterMediumXylophoneDown"],[1.748,2.644,.004,0,"pictBeaterMediumXylophoneLeft"],[1.748,2.644,.004,0,"pictBeaterMediumXylophoneRight"],[.924,2.968,.004,-.004,"pictBeaterMediumXylophoneUp"],[1.096,3.032,0,0,"pictBeaterMediumYarnDown"],[1.824,2.712,0,0,"pictBeaterMediumYarnLeft"],[1.824,2.712,0,0,"pictBeaterMediumYarnRight"],[1.096,3.032,0,0,"pictBeaterMediumYarnUp"],[1.28,3.048,0,-.004,"pictBeaterMetalBassDrumDown"],[1.28,3.048,0,-.004,"pictBeaterMetalBassDrumUp"],[.92,2.972,0,0,"pictBeaterMetalDown"],[1.588,2.98,.004,0,"pictBeaterMetalHammer"],[1.744,2.644,0,0,"pictBeaterMetalLeft"],[1.744,2.644,0,0,"pictBeaterMetalRight"],[.92,2.972,0,0,"pictBeaterMetalUp"],[.564,2.928,.004,0,"pictBeaterSnareSticksDown"],[.564,2.928,.004,0,"pictBeaterSnareSticksUp"],[1.28,3.048,0,-.004,"pictBeaterSoftBassDrumDown"],[1.28,3.048,0,-.004,"pictBeaterSoftBassDrumUp"],[.552,2.972,0,0,"pictBeaterSoftGlockenspielDown"],[1.652,2.62,.004,0,"pictBeaterSoftGlockenspielLeft"],[1.652,2.62,.004,0,"pictBeaterSoftGlockenspielRight"],[.552,2.972,0,0,"pictBeaterSoftGlockenspielUp"],[.868,3.052,0,0,"pictBeaterSoftTimpaniDown"],[1.896,2.828,.004,0,"pictBeaterSoftTimpaniLeft"],[1.896,2.828,.004,0,"pictBeaterSoftTimpaniRight"],[.868,3.052,0,0,"pictBeaterSoftTimpaniUp"],[2.18,2.644,.004,0,"pictBeaterSoftXylophone"],[.92,2.956,0,-.016,"pictBeaterSoftXylophoneDown"],[1.744,2.64,0,-.004,"pictBeaterSoftXylophoneLeft"],[1.744,2.64,0,-.004,"pictBeaterSoftXylophoneRight"],[.92,2.956,0,-.016,"pictBeaterSoftXylophoneUp"],[1.092,3.028,-.004,-.004,"pictBeaterSoftYarnDown"],[1.816,2.708,-.004,-.004,"pictBeaterSoftYarnLeft"],[1.816,2.708,-.004,-.004,"pictBeaterSoftYarnRight"],[1.092,3.028,-.004,-.004,"pictBeaterSoftYarnUp"],[1.764,2.716,0,0,"pictBeaterSpoonWoodenMallet"],[.92,2.52,0,0,"pictBeaterSuperballDown"],[1.524,2.256,.004,0,"pictBeaterSuperballLeft"],[1.524,2.256,.004,0,"pictBeaterSuperballRight"],[.92,2.52,0,0,"pictBeaterSuperballUp"],[1.636,3.144,.004,0,"pictBeaterTriangleDown"],[1.636,3.144,.004,0,"pictBeaterTriangleUp"],[1.632,3.14,.004,-.004,"pictBeaterWireBrushesDown"],[1.632,3.14,.004,-.004,"pictBeaterWireBrushesUp"],[.868,3.052,0,0,"pictBeaterWoodTimpaniDown"],[1.9,2.824,.004,0,"pictBeaterWoodTimpaniLeft"],[1.9,2.824,.004,0,"pictBeaterWoodTimpaniRight"],[.868,3.052,0,0,"pictBeaterWoodTimpaniUp"],[.92,2.972,0,0,"pictBeaterWoodXylophoneDown"],[1.748,2.648,0,.004,"pictBeaterWoodXylophoneLeft"],[1.748,2.648,0,.004,"pictBeaterWoodXylophoneRight"],[.92,2.972,0,0,"pictBeaterWoodXylophoneUp"],[2.724,2.968,.004,-.004,"pictBell"],[3.488,2.324,0,0,"pictBellOfCymbal"],[2.144,2.432,0,0,"pictBellPlate"],[2.152,3.036,0,0,"pictBellTree"],[2.848,3.144,0,0,"pictBirdWhistle"],[3.64,3.032,-.004,-.004,"pictBoardClapper"],[4.92,3.14,0,-.004,"pictBongos"],[3.792,1.392,0,0,"pictBongosPeinkofer"],[3.148,3.144,.004,0,"pictBrakeDrum"],[1.62,3.112,.004,0,"pictCabasa"],[3.38,3.12,0,0,"pictCannon"],[3.876,1.676,.004,0,"pictCarHorn"],[2.132,2.144,0,0,"pictCastanets"],[1.264,4.108,0,0,"pictCastanetsSmithBrindle"],[1.188,2.992,0,0,"pictCastanetsWithHandle"],[4.784,3.12,0,0,"pictCelesta"],[1.004,2.988,0,0,"pictCencerro"],[2.136,2.136,0,0,"pictCenter1"],[2.136,2.136,0,0,"pictCenter2"],[2.14,2.136,.004,0,"pictCenter3"],[3.396,1.304,0,0,"pictChainRattle"],[4.188,3.448,0,0,"pictChimes"],[5.048,1.208,0,0,"pictChineseCymbal"],[.608,1.004,.004,.008,"pictChokeCymbal"],[2.48,2.988,.004,0,"pictClaves"],[5.468,3.3,0,0,"pictCoins"],[2.356,3.144,.004,0,"pictConga"],[1.592,3.144,0,0,"pictCongaPeinkofer"],[1.796,2.564,-.004,0,"pictCowBell"],[2.872,2.188,.008,0,"pictCowBellBerio"],[.848,3.128,.004,0,"pictCrashCymbals"],[4.704,1.412,0,0,"pictCrotales"],[1.012,.324,-1.032,-.324,"pictCrushStem"],[2.7,2.616,0,0,"pictCuica"],[3.184,1.14,-.004,0,"pictCymbalTongs"],[1.38,1.376,-.244,-.248,"pictDamp1"],[2.828,3.16,0,-.004,"pictDamp2"],[2.828,3.16,0,-.004,"pictDamp3"],[2.828,3.16,0,-.004,"pictDamp4"],[.644,.644,-.644,-.644,"pictDeadNoteStem"],[.216,2.644,.004,-.004,"pictDrumStick"],[4.448,1.612,0,0,"pictDuckCall"],[4.828,2.14,.004,0,"pictEdgeOfCymbal"],[4.784,3.12,0,0,"pictEmptyTrap"],[.984,2.128,.004,0,"pictFingerCymbals"],[1.448,3.112,0,-.008,"pictFlexatone"],[3.136,2.136,0,0,"pictFlexatonePeinkofer"],[4.8,2.736,0,0,"pictFootballRatchet"],[3.64,2.072,0,0,"pictGlassHarmonica"],[2.66,1.636,0,0,"pictGlassHarp"],[4.08,3.46,0,0,"pictGlassPlateChimes"],[4.08,3.464,0,0,"pictGlassTubeChimes"],[4.784,3.12,0,0,"pictGlsp"],[4.784,3.12,0,0,"pictGlspPeinkofer"],[5.008,2.24,0,0,"pictGlspSmithBrindle"],[2.92,3.144,.004,0,"pictGobletDrum"],[2.744,3.204,0,0,"pictGong"],[2.744,3.204,0,0,"pictGongWithButton"],[3.992,1.532,0,0,"pictGuiro"],[5.448,1.988,0,0,"pictGuiroPeinkofer"],[4.252,1.656,0,0,"pictGuiroSevsay"],[1.008,3.044,0,0,"pictGumHardDown"],[1.972,2.876,0,0,"pictGumHardLeft"],[1.972,2.876,0,0,"pictGumHardRight"],[1.008,3.044,0,0,"pictGumHardUp"],[1.008,3.044,0,0,"pictGumMediumDown"],[1.972,2.876,0,0,"pictGumMediumLeft"],[1.972,2.876,0,0,"pictGumMediumRight"],[1.008,3.044,0,0,"pictGumMediumUp"],[1.008,3.044,0,0,"pictGumSoftDown"],[1.972,2.876,0,0,"pictGumSoftLeft"],[1.972,2.876,0,0,"pictGumSoftRight"],[1.008,3.044,0,0,"pictGumSoftUp"],[1.144,1.144,0,0,"pictHalfOpen1"],[1.148,1.38,.004,-.244,"pictHalfOpen2"],[2.72,3.576,0,0,"pictHandbell"],[3.132,.844,.004,0,"pictHiHat"],[3.128,3.84,0,-.004,"pictHiHatOnStand"],[2,2,0,0,"pictJawHarp"],[3.56,2.776,0,0,"pictJingleBells"],[3.2,3.128,0,0,"pictKlaxonHorn"],[.5,.748,0,.248,"pictLeftHandCircle"],[2.852,2.58,-.004,0,"pictLionsRoar"],[4.536,2.988,0,0,"pictLithophone"],[4.536,2.988,0,0,"pictLithophonePeinkofer"],[4.668,2.144,.004,0,"pictLogDrum"],[3.512,1.108,0,0,"pictLotusFlute"],[4.46,.752,0,0,"pictLotusFlutePeinkofer"],[4.784,3.124,0,.004,"pictMar"],[4.784,3.12,0,0,"pictMarPeinkofer"],[6.284,2.24,0,0,"pictMarSmithBrindle"],[1.62,3.112,.004,0,"pictMaraca"],[1.364,3.256,0,0,"pictMaracaSmithBrindle"],[4.116,2.916,0,0,"pictMaracas"],[4.092,3.128,0,0,"pictMegaphone"],[4.08,3.444,0,0,"pictMetalPlateChimes"],[4.08,3.448,0,0,"pictMetalTubeChimes"],[3.448,1.36,0,-.808,"pictMusicalSaw"],[4.848,1.8,0,-.48,"pictMusicalSawPeinkofer"],[2.136,2.14,0,.004,"pictNormalPosition"],[2.016,2.016,0,0,"pictOnRim"],[1.144,1.144,0,0,"pictOpen"],[1.144,1.14,0,-.004,"pictOpenRimShot"],[5.08,2.348,0,0,"pictPistolShot"],[3.956,2.16,0,0,"pictPoliceWhistle"],[4.312,1.332,.004,0,"pictQuijada"],[1.028,3.112,0,0,"pictRainstick"],[2.78,3.144,.004,0,"pictRatchet"],[4.004,.592,0,0,"pictRecoReco"],[1.128,1.128,0,0,"pictRightHandSquare"],[2.508,2.136,0,0,"pictRim1"],[2.136,2.136,0,0,"pictRim2"],[2.136,2.136,0,0,"pictRim3"],[.492,.504,-.496,-.504,"pictRimShotOnStem"],[3.74,2.96,0,.004,"pictSandpaperBlocks"],[3.132,3.128,.004,0,"pictScrapeAroundRim"],[3.128,3.128,0,0,"pictScrapeCenterToEdge"],[3.128,3.128,0,0,"pictScrapeEdgeToCenter"],[2,2,0,0,"pictShellBells"],[4.08,3.496,0,0,"pictShellChimes"],[3.496,3.148,.004,0,"pictSiren"],[2.888,3.176,0,-.004,"pictSistrum"],[3.124,.552,-.004,-.004,"pictSizzleCymbal"],[5.356,1.948,0,0,"pictSleighBell"],[3.38,2.416,.004,0,"pictSleighBellSmithBrindle"],[3.384,1.14,0,-.004,"pictSlideBrushOnGong"],[3.896,3.44,0,-.008,"pictSlideWhistle"],[4.14,2.144,0,0,"pictSlitDrum"],[3.936,1.66,0,0,"pictSnareDrum"],[1.66,3.936,0,0,"pictSnareDrumMilitary"],[3.936,1.66,0,0,"pictSnareDrumSnaresOff"],[4.212,3,0,0,"pictSteelDrums"],[1.764,1.804,0,.008,"pictStickShot"],[.92,.92,0,0,"pictSuperball"],[3.128,.332,0,0,"pictSuspendedCymbal"],[.992,.988,-.992,-.992,"pictSwishStem"],[3.06,2.292,0,0,"pictTabla"],[4.092,2.988,.004,.004,"pictTamTam"],[3.936,2.972,.004,0,"pictTamTamWithBeater"],[3.64,3.644,0,0,"pictTambourine"],[7.26,1.672,0,0,"pictTambourineStockhausen"],[3.728,2.132,0,.004,"pictTempleBlocks"],[1.66,4.144,0,0,"pictTenorDrum"],[4.092,2.984,.004,0,"pictThundersheet"],[4.444,3.148,.004,.004,"pictTimbales"],[3.792,1.2,0,0,"pictTimbalesPeinkofer"],[3.764,3.352,0,-.036,"pictTimpani"],[2.472,1.976,0,0,"pictTimpaniPeinkofer"],[2.144,2.144,0,0,"pictTomTom"],[5.1,2.196,0,0,"pictTomTomChinese"],[2.996,1.996,.004,.004,"pictTomTomChinesePeinkofer"],[5.1,2.196,0,0,"pictTomTomIndoAmerican"],[5.1,2.196,0,0,"pictTomTomJapanese"],[5.748,1.656,0,0,"pictTomTomPeinkofer"],[4.148,3.144,0,0,"pictTriangle"],[4.784,3.12,0,0,"pictTubaphone"],[4.784,3.12,0,0,"pictTubaphonePeinkofer"],[3.74,3.104,-.004,0,"pictTubularBells"],[1.736,.528,-1.736,-.52,"pictTurnLeftStem"],[1.708,.5,-1.712,-.512,"pictTurnRightLeftStem"],[1.736,.528,-1.736,-.52,"pictTurnRightStem"],[4.784,3.12,0,0,"pictVib"],[4.784,3.12,0,0,"pictVibMotorOff"],[4.784,3.12,0,0,"pictVibMotorOffPeinkofer"],[4.784,3.12,0,0,"pictVibPeinkofer"],[5.864,2.24,0,0,"pictVibSmithBrindle"],[2.94,2.088,0,0,"pictVibraslap"],[3.864,2.564,0,0,"pictVietnameseHat"],[2.792,3.416,-.004,0,"pictWhip"],[3.468,3.116,0,0,"pictWindChimesGlass"],[5.568,3.144,0,0,"pictWindMachine"],[4.892,1.644,0,0,"pictWindWhistle"],[3.132,2.128,.004,0,"pictWoodBlock"],[.92,2.972,0,0,"pictWoundHardDown"],[1.748,2.644,.004,0,"pictWoundHardLeft"],[1.748,2.644,.004,0,"pictWoundHardRight"],[.92,2.972,0,0,"pictWoundHardUp"],[.92,2.972,0,0,"pictWoundSoftDown"],[1.748,2.644,.004,0,"pictWoundSoftLeft"],[1.748,2.644,.004,0,"pictWoundSoftRight"],[.92,2.972,0,0,"pictWoundSoftUp"],[4.784,3.12,0,0,"pictXyl"],[4.784,3.12,0,0,"pictXylBass"],[3.464,3.12,0,0,"pictXylBassPeinkofer"],[4.784,3.12,0,0,"pictXylPeinkofer"],[5.864,2.24,0,0,"pictXylSmithBrindle"],[4.784,3.12,0,0,"pictXylTenor"],[3.224,1.592,0,0,"pictXylTenorPeinkofer"],[4.784,3.12,0,0,"pictXylTenorTrough"],[4.784,3.12,0,0,"pictXylTrough"],[1.2,.8,0,0,"pluckedBuzzPizzicato"],[1.296,1.296,0,0,"pluckedDamp"],[1.384,1.38,0,0,"pluckedDampAll"],[1.464,1.216,-.256,0,"pluckedDampOnStem"],[1,1.596,-.004,0,"pluckedFingernailFlick"],[1.088,1.088,0,0,"pluckedLeftHandPizzicato"],[1.764,2,0,0,"pluckedPlectrum"],[.8,1.2,0,0,"pluckedSnapPizzicatoAbove"],[.8,1.2,0,0,"pluckedSnapPizzicatoAboveGerman"],[.8,1.2,0,0,"pluckedSnapPizzicatoBelow"],[.8,1.2,0,0,"pluckedSnapPizzicatoBelowGerman"],[1.592,1,.004,-.004,"pluckedWithFingernails"],[2.668,1.844,0,-.04,"quindicesima"],[5.26,1.844,0,-.04,"quindicesimaAlta"],[5.14,1.844,0,-.04,"quindicesimaBassa"],[4.928,1.844,0,-.04,"quindicesimaBassaMb"],[2.128,1.116,0,-1,"repeat1Bar"],[3.048,1.116,0,-1,"repeat2Bars"],[4.928,1.116,0,-1,"repeat4Bars"],[.4,.7,0,.3,"repeatDot"],[.4,2.68,0,1.272,"repeatDots"],[1.464,4,0,0,"repeatLeft"],[1.468,4,.004,0,"repeatRight"],[2.432,4,.004,0,"repeatRightLeft"],[2.432,4,.004,0,"repeatRightLeftThick"],[2.672,4.788,0,-3.972,"rest1024th"],[1.94,2.756,0,-3,"rest128th"],[1.28,.716,0,-2,"rest16th"],[2.164,2.784,0,-4,"rest256th"],[1.452,1.704,0,-2,"rest32nd"],[2.416,3.776,0,-4,"rest512th"],[1.692,1.72,0,-3.012,"rest64th"],[.988,.696,0,-1.004,"rest8th"],[.5,1,0,0,"restDoubleWhole"],[1.176,1.056,0,-.1,"restDoubleWholeLegerLine"],[3.128,1.044,0,-1.084,"restHBar"],[1.5,1.048,0,-1.08,"restHBarLeft"],[1.42,.384,-.108,-.416,"restHBarMiddle"],[1.5,1.048,0,-1.08,"restHBarRight"],[1.128,.568,0,-.008,"restHalf"],[1.596,.568,-.468,-.052,"restHalfLegerLine"],[.5,1,0,-.996,"restLonga"],[1.524,1,0,-.996,"restMaxima"],[1.08,1.492,.004,-1.5,"restQuarter"],[.988,.696,0,-1.004,"restQuarterOld"],[1.128,.036,0,-.54,"restWhole"],[1.596,.08,-.468,-.54,"restWholeLegerLine"],[.352,3.988,.032,0,"reversedBrace"],[1.876,0,0,-1.18,"reversedBracketBottom"],[1.876,1.18,0,0,"reversedBracketTop"],[1.464,3.48,0,.5,"rightRepeatSmall"],[2.2,3.036,.016,-.108,"segno"],[3.088,3.148,0,0,"segnoJapanese"],[1.612,4.124,.008,-.132,"segnoSerpent1"],[1.608,4.124,.004,-.132,"segnoSerpent2"],[.98,2.516,.004,-2.516,"semipitchedPercussionClef1"],[1.836,.824,.008,-.808,"semipitchedPercussionClef2"],[1.576,.548,0,-.548,"smnFlat"],[1.576,.548,0,-.548,"smnFlatWhite"],[2.168,.448,.004,-.448,"smnHistoryDoubleFlat"],[1.764,.448,0,-.448,"smnHistoryDoubleSharp"],[2.168,.448,.004,-.448,"smnHistoryFlat"],[1.28,.448,.004,-.448,"smnHistorySharp"],[.908,.44,0,-.44,"smnNatural"],[1.548,.548,0,-.548,"smnSharp"],[1.548,.548,0,-.548,"smnSharpDown"],[1.548,.548,0,-.548,"smnSharpWhite"],[1.548,.548,0,-.548,"smnSharpWhiteDown"],[.596,2.004,-.604,.508,"splitBarDivider"],[2,2.064,0,1.936,"staff1Line"],[1,2.064,0,1.936,"staff1LineNarrow"],[3,2.064,0,1.936,"staff1LineWide"],[2,2.564,0,1.436,"staff2Lines"],[1,2.564,0,1.436,"staff2LinesNarrow"],[3,2.564,0,1.436,"staff2LinesWide"],[2,3.064,0,.936,"staff3Lines"],[1,3.064,0,.936,"staff3LinesNarrow"],[3,3.064,0,.936,"staff3LinesWide"],[2,3.564,0,.436,"staff4Lines"],[1,3.564,0,.436,"staff4LinesNarrow"],[3,3.564,0,.436,"staff4LinesWide"],[2,4.064,0,-.064,"staff5Lines"],[1,4.064,0,-.064,"staff5LinesNarrow"],[3,4.064,0,-.064,"staff5LinesWide"],[2,4.564,0,-.564,"staff6Lines"],[1,4.564,0,-.564,"staff6LinesNarrow"],[3,4.564,0,-.564,"staff6LinesWide"],[2.104,2.104,0,0,"staffDivideArrowDown"],[2.104,4,0,1.896,"staffDivideArrowUp"],[2.104,4.072,0,0,"staffDivideArrowUpDown"],[.06,3.5,-.06,0,"stem"],[.792,3.5,-.792,0,"stemBowOnBridge"],[.788,3.5,-.792,0,"stemBowOnTailpiece"],[.624,3.5,-.624,0,"stemBuzzRoll"],[.86,3.5,-.86,0,"stemDamp"],[.724,3.5,-.728,0,"stemHarpStringNoise"],[1.116,3.5,-1.112,0,"stemMultiphonicsBlack"],[1.196,3.5,-1.196,0,"stemMultiphonicsBlackWhite"],[1.196,3.5,-1.196,0,"stemMultiphonicsWhite"],[.676,3.5,-.68,0,"stemPendereckiTremolo"],[.496,3.5,-.492,0,"stemRimShot"],[.644,3.5,-.64,0,"stemSprechgesang"],[1.06,3.5,-1.06,0,"stemSulPonticello"],[.516,3.5,-.516,0,"stemSussurando"],[.936,3.484,-.82,-.016,"stemSwished"],[1.064,3.5,-1.06,0,"stemVibratoPulse"],[.856,.856,-.856,0,"stringsBowBehindBridge"],[.788,.172,-.788,-.18,"stringsBowOnBridge"],[.792,.176,-.788,-.184,"stringsBowOnTailpiece"],[3.784,1.704,0,-.3,"stringsChangeBowDirection"],[1.488,1.976,0,0,"stringsChangeBowDirectionImposed"],[2.404,1.768,0,0,"stringsChangeBowDirectionLiga"],[1.248,1.272,0,0,"stringsDownBow"],[1.248,1.272,0,0,"stringsDownBowTurned"],[.64,1.648,0,0,"stringsFouette"],[.8,.8,0,0,"stringsHalfHarmonic"],[.8,.8,0,0,"stringsHarmonic"],[2.844,.956,0,0,"stringsJeteAbove"],[2.844,.956,0,0,"stringsJeteBelow"],[1.552,.784,0,0,"stringsMuteOff"],[1.552,.78,0,-.004,"stringsMuteOn"],[1.252,1.272,0,0,"stringsOverpressureDownBow"],[1.252,.908,0,0,"stringsOverpressureNoDirection"],[1.252,1.272,0,0,"stringsOverpressurePossibileDownBow"],[1.084,1.98,.004,0,"stringsOverpressurePossibileUpBow"],[.992,1.968,.008,.004,"stringsOverpressureUpBow"],[.688,1.184,0,0,"stringsThumbPosition"],[.688,1.184,0,0,"stringsThumbPositionTurned"],[.996,1.98,.004,.004,"stringsUpBow"],[.996,1.98,.004,.004,"stringsUpBowTurned"],[1.068,1.248,-1.068,-1.28,"stringsVibratoPulse"],[4.232,4.24,0,-.272,"systemDivider"],[9.276,4.244,0,-.28,"systemDividerExtraLong"],[6.252,4.2,0,-.24,"systemDividerLong"],[.4,.256,0,-.144,"textAugmentationDot"],[1.368,3.512,0,-.56,"textBlackNoteFrac16thLongStem"],[1.368,2.752,0,-.56,"textBlackNoteFrac16thShortStem"],[1.368,3.512,0,-.56,"textBlackNoteFrac32ndLongStem"],[1.368,3.512,0,-.56,"textBlackNoteFrac8thLongStem"],[1.368,2.752,0,-.564,"textBlackNoteFrac8thShortStem"],[1.328,3.512,0,-.564,"textBlackNoteLongStem"],[1.328,2.752,0,-.564,"textBlackNoteShortStem"],[1.368,3.512,0,2.264,"textCont16thBeamLongStem"],[1.368,2.752,0,1.504,"textCont16thBeamShortStem"],[1.368,3.512,0,1.504,"textCont32ndBeamLongStem"],[1.368,3.512,0,3.012,"textCont8thBeamLongStem"],[1.368,2.752,0,2.252,"textCont8thBeamShortStem"],[1.46,-.732,0,-1.304,"textTie"],[.94,5.3,0,4.2,"textTuplet3LongStem"],[.94,4.372,0,3.272,"textTuplet3ShortStem"],[1.272,4.764,0,3.94,"textTupletBracketEndLongStem"],[1.272,3.94,0,3.116,"textTupletBracketEndShortStem"],[1.272,4.764,0,3.94,"textTupletBracketStartLongStem"],[1.272,3.876,0,3.052,"textTupletBracketStartShortStem"],[1.72,1.004,0,-1,"timeSig0"],[1.72,2.004,0,0,"timeSig0Denominator"],[1.868,2.024,.012,-2.1,"timeSig0Large"],[1.72,4.004,0,2,"timeSig0Numerator"],[1.72,1.004,0,-1,"timeSig0Small"],[1.172,1.004,-.004,-1,"timeSig1"],[2.912,4.016,-.004,-.036,"timeSig12over8"],[1.172,2.004,-.004,0,"timeSig1Denominator"],[.988,2,0,-2,"timeSig1Large"],[1.172,4.004,-.004,2,"timeSig1Numerator"],[1.284,1,0,-1.004,"timeSig1Small"],[1.656,1.016,.032,-1.028,"timeSig2"],[1.656,2.016,.032,-.028,"timeSig2Denominator"],[1.908,2,-.004,-2,"timeSig2Large"],[1.656,4.016,.032,1.972,"timeSig2Numerator"],[1.624,1.024,0,-1.02,"timeSig2Small"],[1.656,4.016,.032,-.028,"timeSig2over2"],[1.728,4.016,.008,0,"timeSig2over4"],[1.54,.996,.016,-1.004,"timeSig3"],[1.54,1.996,.016,-.004,"timeSig3Denominator"],[1.9,1.976,0,-2.084,"timeSig3Large"],[1.54,3.996,.016,1.996,"timeSig3Numerator"],[1.524,1,0,-1,"timeSig3Small"],[1.656,3.996,.032,-.028,"timeSig3over2"],[1.728,3.996,.008,0,"timeSig3over4"],[1.56,3.996,-.024,-.036,"timeSig3over8"],[1.728,1.004,.008,-1,"timeSig4"],[1.728,2.004,.008,0,"timeSig4Denominator"],[1.968,2,0,-2,"timeSig4Large"],[1.728,4.004,.008,2,"timeSig4Numerator"],[1.772,1,0,-1.004,"timeSig4Small"],[1.728,4.004,.008,0,"timeSig4over4"],[1.452,.984,0,-1.004,"timeSig5"],[1.452,1.984,0,-.004,"timeSig5Denominator"],[1.912,1.976,0,-2.084,"timeSig5Large"],[1.452,3.984,0,1.996,"timeSig5Numerator"],[1.452,.996,0,-.992,"timeSig5Small"],[1.728,3.984,.008,0,"timeSig5over4"],[1.56,3.984,-.024,-.036,"timeSig5over8"],[1.572,1.004,-.004,-.996,"timeSig6"],[1.572,2.004,-.004,.004,"timeSig6Denominator"],[1.892,1.976,0,-2.084,"timeSig6Large"],[1.572,4.004,-.004,2.004,"timeSig6Numerator"],[1.576,1,0,-1,"timeSig6Small"],[1.728,4.004,.008,0,"timeSig6over4"],[1.572,4.004,-.024,-.036,"timeSig6over8"],[1.604,.996,0,-1,"timeSig7"],[1.604,1.996,0,0,"timeSig7Denominator"],[1.9,2,0,-2,"timeSig7Large"],[1.604,3.996,0,2,"timeSig7Numerator"],[1.604,.996,0,-1,"timeSig7Small"],[1.604,3.996,-.024,-.036,"timeSig7over8"],[1.56,1.036,-.024,-1.036,"timeSig8"],[1.56,2.036,-.024,-.036,"timeSig8Denominator"],[1.908,1.976,0,-2.084,"timeSig8Large"],[1.56,4.036,-.024,1.964,"timeSig8Numerator"],[1.584,1.036,0,-1.036,"timeSig8Small"],[1.576,1,0,-1,"timeSig9"],[1.576,2,0,0,"timeSig9Denominator"],[1.88,2.04,0,-2.084,"timeSig9Large"],[1.576,4,0,2,"timeSig9Numerator"],[1.576,1,0,-1,"timeSig9Small"],[1.576,4,-.024,-.036,"timeSig9over8"],[.472,2.456,0,-2.488,"timeSigBracketLeft"],[.472,1.456,0,-1.488,"timeSigBracketLeftSmall"],[.312,2.456,-.16,-2.488,"timeSigBracketRight"],[.312,1.456,-.16,-1.488,"timeSigBracketRightSmall"],[.736,.552,.036,-.6,"timeSigComma"],[1.696,1.004,.02,-.996,"timeSigCommon"],[2.044,2.068,0,-2.072,"timeSigCommonLarge"],[1.656,1.444,.032,-1.448,"timeSigCut2"],[1.672,1.444,0,-1.436,"timeSigCutCommon"],[2.04,2.504,-.004,-2.508,"timeSigCutCommonLarge"],[1.792,.496,0,-.5,"timeSigEquals"],[1.564,.992,0,-.992,"timeSigFractionHalf"],[1.616,1,0,-1,"timeSigFractionOneThird"],[1.54,1.004,0,-.992,"timeSigFractionQuarter"],[1.636,1,-.012,-1,"timeSigFractionThreeQuarters"],[1.656,1,0,-1,"timeSigFractionTwoThirds"],[1.512,.756,0,-.76,"timeSigFractionalSlash"],[1.792,.16,0,-.14,"timeSigMinus"],[1.58,.792,0,-.792,"timeSigMultiply"],[3.384,1,-.004,-.992,"timeSigOpenPenderecki"],[.736,1.964,0,-1.956,"timeSigParensLeft"],[.44,.996,0,-1.004,"timeSigParensLeftSmall"],[.736,1.964,0,-1.956,"timeSigParensRight"],[.44,.996,0,-1.004,"timeSigParensRightSmall"],[1.996,1,-.004,-1,"timeSigPlus"],[1.292,1.192,0,-1.192,"timeSigPlusLarge"],[1.016,.488,-.004,-.532,"timeSigPlusSmall"],[1.308,2.064,0,-2.068,"timeSigSlash"],[1.608,1.5,-.012,-1.508,"timeSigX"],[.6,.376,-.6,-.372,"tremolo1"],[.596,.748,-.604,-.748,"tremolo2"],[.6,1.112,-.6,-1.12,"tremolo3"],[.6,1.496,-.6,-1.48,"tremolo4"],[.6,1.88,-.604,-1.84,"tremolo5"],[1,.4,0,0,"tremoloDivisiDots2"],[1.6,.4,0,0,"tremoloDivisiDots3"],[2.2,.4,0,0,"tremoloDivisiDots4"],[1.6,1,0,0,"tremoloDivisiDots6"],[.6,.376,-.6,-.372,"tremoloFingered1"],[.596,.748,-.604,-.748,"tremoloFingered2"],[.6,1.112,-.6,-1.12,"tremoloFingered3"],[.6,1.508,-.6,-1.484,"tremoloFingered4"],[.6,1.868,-.604,-1.856,"tremoloFingered5"],[2.3,.956,-.004,0,"tripleTongueAbove"],[1.532,.4,0,0,"tripleTongueAboveNoSlur"],[2.3,.956,-.004,0,"tripleTongueBelow"],[1.532,.4,0,0,"tripleTongueBelowNoSlur"],[1.276,1.5,-.004,-.032,"tuplet0"],[.984,1.488,0,0,"tuplet1"],[1.276,1.5,0,-.024,"tuplet2"],[1.184,1.5,0,-.032,"tuplet3"],[1.212,1.488,0,0,"tuplet4"],[1.268,1.492,0,-.032,"tuplet5"],[1.216,1.5,0,-.032,"tuplet6"],[1.212,1.488,0,-.016,"tuplet7"],[1.252,1.5,0,-.032,"tuplet8"],[1.216,1.5,0,-.032,"tuplet9"],[.444,1.072,0,.232,"tupletColon"],[.64,1.312,-.636,-1.312,"unmeasuredTremolo"],[.768,1.164,-.764,-1.164,"unmeasuredTremoloSimple"],[1.528,1,0,-1,"unpitchedPercussionClef1"],[1.168,3,0,1,"unpitchedPercussionClef1Alt"],[1.248,1.844,0,-1.86,"unpitchedPercussionClef2"],[3,1.852,.016,-.028,"ventiduesima"],[5.712,1.852,.016,-.028,"ventiduesimaAlta"],[5.512,1.852,.016,-.028,"ventiduesimaBassa"],[5.34,1.852,.016,-.028,"ventiduesimaBassaMb"],[1.5,.404,0,0,"vocalMouthClosed"],[1.5,.924,0,0,"vocalMouthOpen"],[1,.924,0,0,"vocalMouthPursed"],[1.5,.724,0,0,"vocalMouthSlightlyOpen"],[1.5,1.324,0,0,"vocalMouthWideOpen"],[.644,1.284,-.644,-.004,"vocalSprechgesang"],[.516,1.584,-.516,0,"vocalsSussurando"],[1.168,.476,-.132,0,"wiggleArpeggiatoDown"],[2.064,.68,-.188,-.26,"wiggleArpeggiatoDownArrow"],[1.784,.48,-.172,-.1,"wiggleArpeggiatoDownSwash"],[1.168,.476,-.132,0,"wiggleArpeggiatoUp"],[2.064,.62,-.188,-.32,"wiggleArpeggiatoUpArrow"],[2.108,.56,-.2,0,"wiggleArpeggiatoUpSwash"],[1.792,1.688,-.212,.34,"wiggleCircular"],[1.088,.048,-.012,-1.18,"wiggleCircularConstant"],[1.088,1.18,-.012,-.048,"wiggleCircularConstantFlipped"],[2.196,2.312,-.012,-.048,"wiggleCircularConstantFlippedLarge"],[2.196,.048,-.012,-2.312,"wiggleCircularConstantLarge"],[.572,1.576,-.468,1.136,"wiggleCircularEnd"],[1.688,1.756,-.38,.296,"wiggleCircularLarge"],[2.3,1.764,-.412,.096,"wiggleCircularLarger"],[2.956,1.924,-.456,.068,"wiggleCircularLargerStill"],[4.464,2.192,0,0,"wiggleCircularLargest"],[1.2,1.704,-.396,.384,"wiggleCircularSmall"],[1.872,2.112,0,.516,"wiggleCircularStart"],[1.14,1.176,-.084,.732,"wiggleGlissando"],[1.3,2.444,-.064,0,"wiggleGlissandoGroup1"],[.572,3.22,-.076,0,"wiggleGlissandoGroup2"],[.576,4.232,-.076,0,"wiggleGlissandoGroup3"],[7.988,1.46,-.012,-.832,"wiggleRandom1"],[7.988,1.6,-.012,-.884,"wiggleRandom2"],[7.988,1.632,-.012,-1.128,"wiggleRandom3"],[7.988,2.432,-.012,-1.496,"wiggleRandom4"],[3.06,1.06,-.068,-1.068,"wiggleSawtooth"],[2.06,1.064,-.072,-1.064,"wiggleSawtoothNarrow"],[4.06,1.064,-.068,-1.064,"wiggleSawtoothWide"],[3.064,.564,-.064,-.564,"wiggleSquareWave"],[2.064,.564,-.064,-.564,"wiggleSquareWaveNarrow"],[4.064,.564,-.064,-.564,"wiggleSquareWaveWide"],[1.08,1.176,-.144,.732,"wiggleTrill"],[.924,1.176,-.14,.732,"wiggleTrillFast"],[.784,1.188,-.168,.72,"wiggleTrillFaster"],[.656,1.188,-.172,.724,"wiggleTrillFasterStill"],[.652,1.188,-.136,.724,"wiggleTrillFastest"],[1.24,1.176,-.172,.732,"wiggleTrillSlow"],[1.48,1.176,-.16,.712,"wiggleTrillSlower"],[1.692,1.176,-.228,.692,"wiggleTrillSlowerStill"],[2.104,1.176,-.144,.692,"wiggleTrillSlowest"],[3.944,2.096,-.116,-1.232,"wiggleVIbratoLargestSlower"],[1.784,.8,-.124,-.164,"wiggleVIbratoMediumSlower"],[.668,.476,-.056,0,"wiggleVibrato"],[1.872,1.272,-.14,-.508,"wiggleVibratoLargeFast"],[1.6,1.272,-.124,-.508,"wiggleVibratoLargeFaster"],[1.372,1.272,-.108,-.508,"wiggleVibratoLargeFasterStill"],[1.164,1.272,-.108,-.508,"wiggleVibratoLargeFastest"],[2.256,1.272,-.12,-.508,"wiggleVibratoLargeSlow"],[2.696,1.272,-.128,-.508,"wiggleVibratoLargeSlower"],[3.196,1.272,-.136,-.508,"wiggleVibratoLargeSlowest"],[2.748,2.096,-.128,-1.232,"wiggleVibratoLargestFast"],[2.348,2.096,-.096,-1.232,"wiggleVibratoLargestFaster"],[2.004,2.096,-.084,-1.232,"wiggleVibratoLargestFasterStill"],[1.668,2.096,-.12,-1.232,"wiggleVibratoLargestFastest"],[3.284,2.096,-.12,-1.232,"wiggleVibratoLargestSlow"],[4.672,2.096,-.148,-1.232,"wiggleVibratoLargestSlowest"],[1.292,.8,-.104,-.164,"wiggleVibratoMediumFast"],[1.088,.8,-.116,-.164,"wiggleVibratoMediumFaster"],[.932,.8,-.108,-.164,"wiggleVibratoMediumFasterStill"],[.828,.8,-.088,-.164,"wiggleVibratoMediumFastest"],[1.492,.8,-.124,-.164,"wiggleVibratoMediumSlow"],[2.104,.8,-.136,-.164,"wiggleVibratoMediumSlowest"],[.952,.556,-.104,-.056,"wiggleVibratoSmallFast"],[.812,.556,-.112,-.056,"wiggleVibratoSmallFaster"],[.716,.556,-.1,-.056,"wiggleVibratoSmallFasterStill"],[.624,.556,-.092,-.056,"wiggleVibratoSmallFastest"],[1.096,.556,-.128,-.056,"wiggleVibratoSmallSlow"],[1.288,.556,-.14,-.056,"wiggleVibratoSmallSlower"],[1.604,.556,-.064,-.056,"wiggleVibratoSmallSlowest"],[.792,.368,-.104,0,"wiggleVibratoSmallestFast"],[.664,.368,-.124,0,"wiggleVibratoSmallestFaster"],[.612,.368,-.084,0,"wiggleVibratoSmallestFasterStill"],[.556,.368,-.064,0,"wiggleVibratoSmallestFastest"],[.924,.368,-.1,0,"wiggleVibratoSmallestSlow"],[1.092,.368,-.1,0,"wiggleVibratoSmallestSlower"],[1.252,.368,-.12,0,"wiggleVibratoSmallestSlowest"],[1.96,1.268,0,.004,"wiggleVibratoStart"],[.908,.896,-.096,0,"wiggleVibratoWide"],[3.064,1.064,-.064,-1.064,"wiggleWavy"],[2.064,1.064,-.064,-1.064,"wiggleWavyNarrow"],[4.064,1.064,-.064,-1.064,"wiggleWavyWide"],[1.216,1.216,0,0,"windClosedHole"],[1.488,1.572,0,0,"windFlatEmbouchure"],[1.216,1.216,0,0,"windHalfClosedHole1"],[1.22,1.216,.004,0,"windHalfClosedHole2"],[1.22,1.22,0,0,"windHalfClosedHole3"],[1.888,1.892,0,0,"windLessRelaxedEmbouchure"],[1.888,1.892,0,0,"windLessTightEmbouchure"],[1.112,1.192,-1.116,-1.172,"windMultiphonicsBlackStem"],[1.196,1.372,-1.196,-1.352,"windMultiphonicsBlackWhiteStem"],[1.196,1.364,-1.196,-1.36,"windMultiphonicsWhiteStem"],[1.216,1.216,0,0,"windOpenHole"],[.792,1.688,0,0,"windReedPositionIn"],[.796,1.688,0,0,"windReedPositionNormal"],[.792,1.688,0,0,"windReedPositionOut"],[1.888,1.892,0,0,"windRelaxedEmbouchure"],[1.488,1.572,0,0,"windSharpEmbouchure"],[2.212,1.2,0,0,"windStrongAirPressure"],[1.22,1.22,0,0,"windThreeQuartersClosedHole"],[1.748,1.748,0,0,"windTightEmbouchure"],[2.824,1.54,0,0,"windTrillKey"],[1.888,1.884,0,-.008,"windVeryTightEmbouchure"],[2.348,1.34,0,0,"windWeakAirPressure"]],
glyphsWithAnchors:{accidental1CommaFlat:{cutOutSE:[.708,-.38]},accidental1CommaSharp:{cutOutNW:[.896,1.512],cutOutSE:[1.088,.888],cutOutSW:[.112,-.928]},accidental2CommaFlat:{cutOutSE:[1,.768]},accidental2CommaSharp:{cutOutNW:[.908,1.516],cutOutSE:[1.108,.848],cutOutSW:[.1,-.928]},accidental3CommaFlat:{cutOutSE:[.988,.744]},accidental3CommaSharp:{cutOutNW:[.888,1.516],cutOutSE:[1.108,.856],cutOutSW:[.108,-.956]},accidental4CommaFlat:{cutOutSE:[1.008,.8]},accidental5CommaSharp:{cutOutNW:[.9,1.496],cutOutSE:[1.132,.848],cutOutSW:[.112,-.94]},accidentalArrowDown:{cutOutNE:[.512,.384],cutOutNW:[.22,.384]},accidentalArrowUp:{cutOutSE:[.532,.656],cutOutSW:[.2,.656]},accidentalBakiyeFlat:{cutOutNE:[.536,1.392],cutOutNW:[.152,1.112],cutOutSE:[.816,-.444],cutOutSW:[.152,.5]},accidentalBakiyeSharp:{cutOutNE:[.86,.94],cutOutNW:[.12,.616],cutOutSE:[.86,-.616],cutOutSW:[.124,-.924]},accidentalBuyukMucennebFlat:{cutOutSE:[.812,-.42],cutOutSW:[.18,.536]},accidentalBuyukMucennebSharp:{cutOutNE:[1.052,.94],cutOutNW:[.26,.628],cutOutSE:[1.048,-.624],cutOutSW:[.264,-.956]},accidentalDoubleFlat:{cutOutNE:[.988,.644],cutOutSE:[1.336,-.396]},accidentalDoubleFlatEqualTempered:{cutOutNE:[.992,.728],cutOutSE:[1.288,-.448]},accidentalDoubleFlatOneArrowDown:{cutOutNE:[.988,.684],cutOutSE:[1.232,-.584],cutOutSW:[.392,-.8]},accidentalDoubleFlatOneArrowUp:{cutOutNE:[.968,.648],cutOutSE:[1.312,-.436]},accidentalDoubleFlatReversed:{cutOutNW:[.596,.708],cutOutSW:[.3,-.424]},accidentalDoubleFlatThreeArrowsDown:{cutOutNE:[.96,.664],cutOutSE:[1.26,-.584],cutOutSW:[.364,-.808]},accidentalDoubleFlatThreeArrowsUp:{cutOutNE:[.968,.668],cutOutSE:[1.288,-.444]},accidentalDoubleFlatTurned:{cutOutNW:[.456,.54],cutOutSW:[.584,-.704]},accidentalDoubleFlatTwoArrowsDown:{cutOutNE:[.96,.656],cutOutSE:[1.232,-.568],cutOutSW:[.372,-.808]},accidentalDoubleFlatTwoArrowsUp:{cutOutNE:[.98,.668],cutOutSE:[1.304,-.44]},accidentalFilledReversedFlatAndFlat:{cutOutNE:[.92,.676],cutOutNW:[.584,.676],cutOutSE:[1.144,-.444],cutOutSW:[.316,-.424]},accidentalFilledReversedFlatAndFlatArrowDown:{cutOutNE:[.928,.676],cutOutNW:[.576,.676],cutOutSE:[1.276,-.368],cutOutSW:[.18,-.368]},accidentalFilledReversedFlatAndFlatArrowUp:{cutOutNE:[1.272,.648],cutOutNW:[.24,.648],cutOutSE:[1.116,-.44],cutOutSW:[.372,-.436]},accidentalFilledReversedFlatArrowDown:{cutOutNE:[.968,-.82],cutOutNW:[.628,.676],cutOutSW:[.22,-.364]},accidentalFilledReversedFlatArrowUp:{cutOutNW:[.232,.676],cutOutSE:[.98,1.424],cutOutSW:[.28,-.42]},accidentalFiveQuarterTonesFlatArrowDown:{cutOutNE:[1.02,.668],cutOutSE:[.576,-.78]},accidentalFiveQuarterTonesSharpArrowUp:{cutOutNW:[.372,.636]},accidentalFlat:{cutOutNE:[.252,.656],cutOutSE:[.504,-.476]},accidentalFlatEqualTempered:{cutOutNE:[.604,.716],cutOutSE:[.572,-.444]},accidentalFlatOneArrowDown:{cutOutNE:[.212,.668],cutOutSE:[.452,-.544]},accidentalFlatOneArrowUp:{cutOutNE:[.452,.668],cutOutSE:[.54,-.448]},accidentalFlatThreeArrowsDown:{cutOutNE:[.22,.668],cutOutSE:[.484,-.564]},accidentalFlatThreeArrowsUp:{cutOutNE:[.456,.684],cutOutSE:[.52,-.46]},accidentalFlatTurned:{cutOutNW:[.34,.432],cutOutSW:[.588,-.728]},accidentalFlatTwoArrowsDown:{cutOutNE:[.192,.676],cutOutNW:[-.1,-.756],cutOutSE:[.472,-.552]},accidentalFlatTwoArrowsUp:{cutOutNE:[.464,.696],cutOutSE:[.568,-.432]},accidentalHalfSharpArrowDown:{cutOutNE:[.584,.856],cutOutNW:[.292,.676]},accidentalHalfSharpArrowUp:{cutOutSE:[.588,-.748],cutOutSW:[.304,-.908]},accidentalKomaFlat:{cutOutNW:[.608,.724],cutOutSW:[.36,-.448]},accidentalKomaSharp:{cutOutNE:[.596,.88],cutOutNW:[.28,.708],cutOutSE:[.596,-.776],cutOutSW:[.28,-.92]},accidentalKoron:{cutOutSE:[.264,-.668]},accidentalKucukMucennebFlat:{cutOutNE:[.284,.704],cutOutSE:[.576,-.424]},accidentalKucukMucennebSharp:{cutOutNE:[.82,.876],cutOutNW:[.492,.708],cutOutSE:[.836,-.768],cutOutSW:[.504,-.948]},accidentalLowerOneSeptimalComma:{cutOutNE:[.212,.32]},accidentalLowerOneTridecimalQuartertone:{cutOutNW:[.436,.708],cutOutSW:[.304,-.416]},accidentalLowerOneUndecimalQuartertone:{cutOutNW:[.688,.684],cutOutSW:[.296,-.42]},accidentalLowerTwoSeptimalCommas:{cutOutNE:[.212,1.06]},accidentalNarrowReversedFlat:{cutOutNW:[.452,.728],cutOutSW:[.208,-.448]},accidentalNarrowReversedFlatAndFlat:{cutOutNE:[.988,.744],cutOutNW:[.444,.744],cutOutSE:[1.352,-.456],cutOutSW:[.196,-.456]},accidentalNatural:{cutOutNE:[.192,.776],cutOutSW:[.476,-.828]},accidentalNaturalEqualTempered:{cutOutSW:[.452,-.856]},accidentalNaturalFlat:{cutOutNE:[1.18,.648],cutOutSE:[.748,-.828],cutOutSW:[.436,-.828]},accidentalNaturalOneArrowDown:{cutOutNE:[.748,-1.028],cutOutSW:[.184,-.848]},accidentalNaturalOneArrowUp:{cutOutNE:[.452,.828],cutOutSW:[.456,-.84]},accidentalNaturalReversed:{cutOutNW:[.432,.82],cutOutSE:[.264,-.876]},accidentalNaturalSharp:{cutOutNE:[1.784,.9],cutOutSE:[1.784,-.608],cutOutSW:[.452,-.836]},accidentalNaturalThreeArrowsDown:{cutOutNE:[.764,-1.012],cutOutSW:[.192,-.86]},accidentalNaturalThreeArrowsUp:{cutOutNE:[.472,.828],cutOutSW:[.452,-.84]},accidentalNaturalTwoArrowsDown:{cutOutNE:[.756,-1.012],cutOutSW:[.18,-.84]},accidentalNaturalTwoArrowsUp:{cutOutNE:[.476,.836],cutOutSW:[.456,-.84]},accidentalOneAndAHalfSharpsArrowDown:{cutOutNW:[.132,.624],cutOutSE:[.8,-1.22]},accidentalOneAndAHalfSharpsArrowUp:{cutOutNW:[.436,1.332],cutOutSE:[1.34,1.3]},accidentalQuarterToneFlat4:{cutOutNE:[1.22,.744],cutOutSE:[1.268,-.44],cutOutSW:[.648,1.1]},accidentalQuarterToneFlatArrowUp:{cutOutNE:[.604,.664],cutOutSE:[.62,-.452]},accidentalQuarterToneFlatFilledReversed:{cutOutNW:[.604,.708],cutOutSW:[.38,-.448]},accidentalQuarterToneFlatNaturalArrowDown:{cutOutNE:[.232,.788]},accidentalQuarterToneFlatPenderecki:{cutOutNE:[.312,.716],cutOutSE:[.528,-.436]},accidentalQuarterToneFlatStein:{cutOutNW:[.628,.676],cutOutSW:[.336,-.428]},accidentalQuarterToneFlatVanBlankenburg:{cutOutNE:[.32,.432]},accidentalQuarterToneSharp4:{cutOutNE:[1.028,1.524],cutOutSE:[1.456,-.656],cutOutSW:[.492,1.048]},accidentalQuarterToneSharpArrowDown:{cutOutNE:[.856,.908],cutOutNW:[.132,.608],cutOutSE:[.856,-.588]},accidentalQuarterToneSharpBusotti:{cutOutNE:[.476,.836],cutOutNW:[.184,.668],cutOutSE:[.472,.124],cutOutSW:[.184,0]},accidentalQuarterToneSharpNaturalArrowUp:{cutOutSW:[.616,-.868]},accidentalQuarterToneSharpStein:{cutOutNE:[.476,.748],cutOutNW:[.224,.604],cutOutSE:[.492,-.8],cutOutSW:[.224,-.92]},accidentalQuarterToneSharpWiggle:{cutOutNE:[2.08,.94],cutOutSE:[2.08,-.604],cutOutSW:[1.092,.716]},accidentalRaiseOneSeptimalComma:{cutOutSE:[.22,.78]},accidentalRaiseOneTridecimalQuartertone:{cutOutNE:[.888,.532],cutOutNW:[.192,.2],cutOutSE:[.888,-.184],cutOutSW:[.192,-.536]},accidentalRaiseOneUndecimalQuartertone:{cutOutNE:[.736,.556],cutOutNW:[.332,.304],cutOutSE:[.736,-.28],cutOutSW:[.332,-.5]},accidentalRaiseTwoSeptimalCommas:{cutOutSE:[.22,.756]},accidentalReversedFlatAndFlatArrowDown:{cutOutNE:[.94,.676],cutOutNW:[.588,.668],cutOutSE:[1.304,-.412],cutOutSW:[.224,-.412]},accidentalReversedFlatAndFlatArrowUp:{cutOutNE:[1.32,.704],cutOutNW:[.24,.704],cutOutSE:[1.312,-.456],cutOutSW:[.24,-.436]},accidentalReversedFlatArrowDown:{cutOutNE:[.948,-.84],cutOutNW:[.636,.684],cutOutSW:[.22,-.392]},accidentalReversedFlatArrowUp:{cutOutNW:[.26,.676],cutOutSE:[.992,1.412],cutOutSW:[.36,-.456]},accidentalSharp:{cutOutNE:[.84,.896],cutOutNW:[.144,.568],cutOutSE:[.84,-.596],cutOutSW:[.144,-.896]},accidentalSharpOneArrowDown:{cutOutNE:[.868,.916],cutOutNW:[.12,.604],cutOutSW:[.12,-.916]},accidentalSharpOneArrowUp:{cutOutNE:[.664,1.472],cutOutSE:[.876,-.596],cutOutSW:[.112,-.9]},accidentalSharpOneHorizontalStroke:{cutOutNE:[.888,.968],cutOutNW:[.132,.628],cutOutSE:[.888,.324],cutOutSW:[.132,-.032]},accidentalSharpReversed:{cutOutNE:[.896,.644],cutOutNW:[.112,.928],cutOutSE:[.896,-.948],cutOutSW:[.108,-.628]},accidentalSharpSharp:{cutOutNE:[1.928,.9],cutOutNW:[.144,.596],cutOutSE:[1.936,-.604],cutOutSW:[.144,-.896]},accidentalSharpThreeArrowsDown:{cutOutNE:[.868,.92],cutOutNW:[.124,.616],cutOutSW:[.3,-1.464]},accidentalSharpThreeArrowsUp:{cutOutNE:[.676,1.504],cutOutSE:[.876,-.596],cutOutSW:[.124,-.908]},accidentalSharpTwoArrowsDown:{cutOutNE:[.868,.92],cutOutSW:[.272,-1.472]},accidentalSharpTwoArrowsUp:{cutOutNE:[.684,1.476],cutOutSE:[.88,-.588],cutOutSW:[.124,-.908]},accidentalSims12Down:{cutOutNW:[.736,.5],cutOutSW:[.356,-.224]},accidentalSims12Up:{cutOutSE:[.836,-.364],cutOutSW:[.364,-.364]},accidentalSims4Down:{cutOutNW:[.708,.5],cutOutSE:[1.188,1.9]},accidentalSims6Down:{cutOutNW:[.736,.5],cutOutSW:[.356,-.232]},accidentalSims6Up:{cutOutSW:[.716,-.5]},accidentalSori:{cutOutNE:[1.188,.392],cutOutNW:[.264,.828],cutOutSE:[1.188,-.404],cutOutSW:[.264,-.816]},accidentalTavenerFlat:{cutOutNW:[.896,.5],cutOutSE:[1.996,.928]},accidentalTavenerSharp:{cutOutNE:[1.704,1.1],cutOutNW:[.536,-.3],cutOutSE:[1.708,.3],cutOutSW:[.708,-1.088]},accidentalThreeQuarterTonesFlatArrowDown:{cutOutNE:[.356,.648],cutOutNW:[.032,-.8],cutOutSE:[.648,-.5]},accidentalThreeQuarterTonesFlatArrowUp:{cutOutNE:[1.264,.688],cutOutSE:[1.296,-.456]},accidentalThreeQuarterTonesFlatCouper:{cutOutNE:[1.052,.736],cutOutNW:[.564,.728],cutOutSE:[1.268,-.444],cutOutSW:[.376,-.444]},accidentalThreeQuarterTonesFlatGrisey:{cutOutNE:[.476,.724],cutOutSE:[.564,-.432]},accidentalThreeQuarterTonesFlatTartini:{cutOutNE:[.312,.688]},accidentalThreeQuarterTonesFlatZimmermann:{cutOutNE:[1.22,.668],cutOutNW:[.636,.668]},accidentalThreeQuarterTonesSharpArrowDown:{cutOutSE:[.628,-.648]},accidentalThreeQuarterTonesSharpArrowUp:{cutOutNW:[.272,1.304],cutOutSE:[.86,-.584],cutOutSW:[.132,-.888]},accidentalThreeQuarterTonesSharpBusotti:{cutOutNE:[1.36,1.2],cutOutNW:[.18,.628],cutOutSE:[1.36,.5],cutOutSW:[.18,0]},accidentalThreeQuarterTonesSharpStein:{cutOutNE:[1.128,1],cutOutNW:[.144,.604],cutOutSE:[1.128,-.5],cutOutSW:[.144,-.896]},accidentalTripleFlat:{cutOutNE:[1.748,.656],cutOutSE:[2.048,-.436]},accidentalTripleSharp:{cutOutNE:[1.936,.916],cutOutNW:[1.208,.596],cutOutSE:[1.936,-.588],cutOutSW:[1.208,-.9]},accidentalWyschnegradsky10TwelfthsFlat:{cutOutNE:[1.496,.684]},accidentalWyschnegradsky10TwelfthsSharp:{cutOutNW:[.828,1.444],cutOutSE:[1.34,1.392],cutOutSW:[.112,-.916]},accidentalWyschnegradsky11TwelfthsFlat:{cutOutNE:[1.492,.688]},accidentalWyschnegradsky11TwelfthsSharp:{cutOutNW:[.828,1.464],cutOutSE:[1.34,1.42],cutOutSW:[.108,-.908]},accidentalWyschnegradsky1TwelfthsFlat:{cutOutNE:[.724,.668],cutOutSE:[.22,-.836]},accidentalWyschnegradsky1TwelfthsSharp:{cutOutSE:[.224,.736]},accidentalWyschnegradsky2TwelfthsFlat:{cutOutNE:[.708,.676],cutOutSE:[.22,-.828]},accidentalWyschnegradsky2TwelfthsSharp:{cutOutSE:[.224,.16]},accidentalWyschnegradsky3TwelfthsFlat:{cutOutNE:[.224,.728],cutOutSE:[.224,-.836]},accidentalWyschnegradsky3TwelfthsSharp:{cutOutNE:[.452,.78],cutOutNW:[.164,.616],cutOutSE:[.452,-.808],cutOutSW:[.164,-.92]},accidentalWyschnegradsky4TwelfthsFlat:{cutOutNE:[.744,.696],cutOutSE:[.544,-.448]},accidentalWyschnegradsky4TwelfthsSharp:{cutOutNW:[.172,.616],cutOutSE:[.736,.876],cutOutSW:[.172,-.928]},accidentalWyschnegradsky5TwelfthsFlat:{cutOutNE:[.724,.696],cutOutSE:[.628,-.428]},accidentalWyschnegradsky5TwelfthsSharp:{cutOutNW:[.164,.616],cutOutSE:[.728,.868],cutOutSW:[.164,-.928]},accidentalWyschnegradsky6TwelfthsFlat:{cutOutNE:[.304,.716],cutOutSE:[.564,-.44]},accidentalWyschnegradsky6TwelfthsSharp:{cutOutNE:[.86,.94],cutOutNW:[.12,.604],cutOutSE:[.868,-.608],cutOutSW:[.12,-.916]},accidentalWyschnegradsky7TwelfthsFlat:{cutOutNE:[1.544,.748],cutOutSE:[1.052,-.768],cutOutSW:[.696,-.828]},accidentalWyschnegradsky7TwelfthsSharp:{cutOutNW:[.568,1.292],cutOutSE:[1.068,1.42],cutOutSW:[.12,-.928]},accidentalWyschnegradsky8TwelfthsFlat:{cutOutNE:[1.524,.776],cutOutSE:[1.06,-.756],cutOutSW:[.684,-.796]},accidentalWyschnegradsky8TwelfthsSharp:{cutOutNW:[.556,1.392],cutOutSE:[1.052,1.392],cutOutSW:[.112,-.92]},accidentalWyschnegradsky9TwelfthsFlat:{cutOutNE:[1.04,.776],cutOutSE:[1.04,-.808],cutOutSW:[.704,-.816]},accidentalWyschnegradsky9TwelfthsSharp:{cutOutNE:[1.132,1],cutOutNW:[.112,.624],cutOutSE:[1.132,-.564],cutOutSW:[.112,-.92]},accidentalXenakisOneThirdToneSharp:{cutOutNE:[.748,.936],cutOutNW:[.364,.764],cutOutSE:[.756,-.724],cutOutSW:[.364,-.888]},accidentalXenakisTwoThirdTonesSharp:{cutOutNE:[1.06,.92],cutOutNW:[.344,.716],cutOutSE:[1.06,-.688],cutOutSW:[.344,-.896]},beamAccelRit1:{repeatOffset:[4.736,0]},beamAccelRit10:{repeatOffset:[2.116,0]},beamAccelRit11:{repeatOffset:[1.816,0]},beamAccelRit12:{repeatOffset:[1.516,0]},beamAccelRit13:{repeatOffset:[1.216,0]},beamAccelRit14:{repeatOffset:[.916,0]},beamAccelRit15:{repeatOffset:[.616,0]},beamAccelRit2:{repeatOffset:[4.436,0]},beamAccelRit3:{repeatOffset:[4.136,0]},beamAccelRit4:{repeatOffset:[3.916,0]},beamAccelRit5:{repeatOffset:[3.616,0]},beamAccelRit6:{repeatOffset:[3.316,0]},beamAccelRit7:{repeatOffset:[3.016,0]},beamAccelRit8:{repeatOffset:[2.716,0]},beamAccelRit9:{repeatOffset:[2.416,0]},dynamicFF:{opticalCenter:[1.852,0]},dynamicFFF:{opticalCenter:[2.472,0]},dynamicFFFF:{opticalCenter:[2.824,0]},dynamicFFFFF:{opticalCenter:[2.976,0]},dynamicFFFFFF:{opticalCenter:[3.504,0]},dynamicForte:{opticalCenter:[1.256,0]},dynamicFortePiano:{opticalCenter:[1.5,0]},dynamicForzando:{opticalCenter:[1.352,0]},dynamicMF:{opticalCenter:[1.796,0]},dynamicMP:{opticalCenter:[1.848,0]},dynamicMezzo:{opticalCenter:[.872,0]},dynamicNiente:{opticalCenter:[.616,0]},dynamicPF:{opticalCenter:[1.68,0]},dynamicPP:{opticalCenter:[1.708,0]},dynamicPPP:{opticalCenter:[2.368,0]},dynamicPPPP:{opticalCenter:[3.004,0]},dynamicPPPPP:{opticalCenter:[3.552,0]},dynamicPPPPPP:{opticalCenter:[4.248,0]},dynamicPiano:{opticalCenter:[1.22,0]},dynamicRinforzando:{opticalCenter:[.612,0]},dynamicRinforzando1:{opticalCenter:[1.564,0]},dynamicRinforzando2:{opticalCenter:[2.084,0]},dynamicSforzando:{opticalCenter:[.444,0]},dynamicSforzando1:{opticalCenter:[1.3,0]},dynamicSforzandoPianissimo:{opticalCenter:[1.972,0]},dynamicSforzandoPiano:{opticalCenter:[1.904,0]},dynamicSforzato:{opticalCenter:[1.76,0]},dynamicSforzatoFF:{opticalCenter:[2.276,0]},dynamicSforzatoPiano:{opticalCenter:[1.848,0]},dynamicZ:{opticalCenter:[.5,0]},flag1024thDown:{stemDownSW:[0,-4.684]},flag1024thDownSmall:{stemDownSW:[0,-4.472]},flag1024thDownStraight:{stemDownSW:[0,-4.66]},flag1024thUp:{stemUpNW:[0,4.064]},flag1024thUpShort:{stemUpNW:[0,4.256]},flag1024thUpStraight:{stemUpNW:[0,4.644]},flag102thUpSmall:{stemUpNW:[0,4.252]},flag128thDown:{stemDownSW:[0,-2.076]},flag128thDownSmall:{stemDownSW:[0,-2.28]},flag128thDownStraight:{stemDownSW:[0,-2.28]},flag128thUp:{stemUpNW:[0,1.9]},flag128thUpShort:{stemUpNW:[0,2.076]},flag128thUpSmall:{stemUpNW:[0,2.2]},flag128thUpStraight:{stemUpNW:[0,2.296]},flag16thDown:{stemDownSW:[0,.128]},flag16thDownSmall:{stemDownSW:[0,.068]},flag16thDownStraight:{stemDownSW:[0,.124]},flag16thUp:{stemUpNW:[0,-.088]},flag16thUpShort:{stemUpNW:[0,-.26]},flag16thUpSmall:{stemUpNW:[0,-.08]},flag16thUpStraight:{stemUpNW:[0,-.18]},flag256thDown:{stemDownSW:[0,-2.812]},flag256thDownSmall:{stemDownSW:[0,-3.04]},flag256thDownStraight:{stemDownSW:[0,-3.068]},flag256thUp:{stemUpNW:[0,2.592]},flag256thUpShort:{stemUpNW:[0,2.836]},flag256thUpSmall:{stemUpNW:[0,2.936]},flag256thUpStraight:{stemUpNW:[0,3.072]},flag32ndDown:{stemDownSW:[0,-.448]},flag32ndDownSmall:{stemDownSW:[0,-.716]},flag32ndDownStraight:{stemDownSW:[0,-.68]},flag32ndUp:{stemUpNW:[0,.376]},flag32ndUpShort:{stemUpNW:[0,.704]},flag32ndUpSmall:{stemUpNW:[0,.664]},flag32ndUpStraight:{stemUpNW:[0,.696]},flag512thDown:{stemDownSW:[0,-3.608]},flag512thDownSmall:{stemDownSW:[0,-3.744]},flag512thDownStraight:{stemDownSW:[0,-3.884]},flag512thUp:{stemUpNW:[0,3.324]},flag512thUpShort:{stemUpNW:[0,3.54]},flag512thUpSmall:{stemUpNW:[0,3.656]},flag512thUpStraight:{stemUpNW:[0,3.856]},flag64thDown:{stemDownSW:[0,-1.244]},flag64thDownSmall:{stemDownSW:[0,-1.472]},flag64thDownStraight:{stemDownSW:[0,-1.18]},flag64thUp:{stemUpNW:[0,1.172]},flag64thUpShort:{stemUpNW:[0,1.392]},flag64thUpSmall:{stemUpNW:[0,1.392]},flag64thUpStraight:{stemUpNW:[0,1.492]},flag8thDown:{graceNoteSlashNW:[-.596,2.168],graceNoteSlashSE:[1.328,.628],stemDownSW:[0,.132]},flag8thDownSmall:{stemDownSW:[0,0]},flag8thDownStraight:{stemDownSW:[0,.12]},flag8thUp:{graceNoteSlashNE:[1.284,-.796],graceNoteSlashSW:[-.644,-2.456],stemUpNW:[0,-.04]},flag8thUpShort:{stemUpNW:[0,-.2]},flag8thUpSmall:{stemUpNW:[0,0]},flag8thUpStraight:{stemUpNW:[0,-.22]},gClefLigatedNumberAbove:{numeralBottom:[2.224,3.468]},gClefLigatedNumberBelow:{numeralBottom:[1.052,-2.616]},guitarVibratoStroke:{repeatOffset:[.608,0]},guitarWideVibratoStroke:{repeatOffset:[.82,0]},noteABlack:{stemDownNW:[0,-.188],stemUpSE:[1.432,.188]},noteAFlatBlack:{stemDownNW:[0,-.192],stemUpSE:[1.432,.184]},noteAFlatHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.192]},noteAHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteASharpBlack:{stemDownNW:[0,-.192],stemUpSE:[1.432,.184]},noteASharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteBBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteBFlatBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteBFlatHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteBHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteBSharpBlack:{stemDownNW:[0,-.184],stemUpSE:[1.428,.192]},noteBSharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteCBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteCFlatBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteCFlatHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteCHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteCSharpBlack:{stemDownNW:[0,-.184],stemUpSE:[1.428,.192]},noteCSharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteDBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteDFlatBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteDFlatHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteDHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteDSharpBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteDSharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteDoBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteDoHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteEBlack:{stemDownNW:[0,-.188],stemUpSE:[1.432,.188]},noteEFlatBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteEFlatHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteEHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteESharpBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteESharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteEmptyBlack:{stemDownNW:[0,-.188],stemUpSE:[1.432,.188]},noteEmptyHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteFBlack:{stemDownNW:[0,-.188],stemUpSE:[1.432,.188]},noteFFlatBlack:{stemDownNW:[0,-.184],stemUpSE:[1.428,.192]},noteFFlatHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.192]},noteFHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.196]},noteFSharpBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteFSharpHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.192]},noteFaBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteFaHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteGBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteGFlatBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteGFlatHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.192]},noteGHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.196]},noteGSharpBlack:{stemDownNW:[0,-.188],stemUpSE:[1.428,.188]},noteGSharpHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteHBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteHHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteHSharpBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteHSharpHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.196]},noteLaBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteLaHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.196]},noteMiBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteMiHalf:{stemDownNW:[0,-.188],stemUpSE:[1.44,.192]},noteReBlack:{stemDownNW:[0,-.184],stemUpSE:[1.432,.192]},noteReHalf:{stemDownNW:[0,-.188],stemUpSE:[1.444,.196]},noteShapeDiamondBlack:{stemDownNW:[0,0],stemUpSE:[1.54,0]},noteShapeDiamondWhite:{stemDownNW:[0,0],stemUpSE:[1.544,0]},noteShapeMoonBlack:{stemDownNW:[0,.068],stemUpSE:[1.596,.068]},noteShapeMoonWhite:{stemDownNW:[0,.072],stemUpSE:[1.596,.072]},noteShapeRoundBlack:{stemDownNW:[0,-.188],stemUpSE:[1.328,.188]},noteShapeRoundWhite:{stemDownNW:[0,-.196],stemUpSE:[1.364,.192]},noteShapeSquareBlack:{stemDownNW:[0,-.56],stemUpSE:[1.616,.56]},noteShapeSquareWhite:{stemDownNW:[0,-.56],stemUpSE:[1.616,.56]},noteShapeTriangleLeftBlack:{stemDownNW:[0,.56],stemUpSE:[1.62,.56]},noteShapeTriangleLeftWhite:{stemDownNW:[0,.556],stemUpSE:[1.624,.552]},noteShapeTriangleRightBlack:{stemDownNW:[0,-.56],stemUpSE:[1.62,-.56]},noteShapeTriangleRightWhite:{stemDownNW:[0,-.564],stemUpSE:[1.62,-.564]},noteShapeTriangleRoundBlack:{stemDownNW:[0,.192],stemUpSE:[1.584,.192]},noteShapeTriangleRoundWhite:{stemDownNW:[.004,.184],stemUpSE:[1.588,.184]},noteShapeTriangleUpBlack:{stemDownNW:[0,-.568],stemUpSE:[1.62,-.568]},noteShapeTriangleUpWhite:{stemDownNW:[0,-.568],stemUpSE:[1.62,-.568]},noteSiBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteSiHalf:{stemDownNW:[0,-.192],stemUpSE:[1.44,.196]},noteSoBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteSoHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.196]},noteTiBlack:{stemDownNW:[0,-.18],stemUpSE:[1.432,.196]},noteTiHalf:{stemDownNW:[0,-.192],stemUpSE:[1.444,.196]},noteheadBlack:{splitStemDownNE:[1.056,-.312],splitStemDownNW:[.1,-.436],splitStemUpSE:[1.256,.412],splitStemUpSW:[.308,.372],stemDownNW:[0,-.184],stemUpSE:[1.328,.184]},noteheadBlackSmall:{stemDownNW:[0,-.168],stemUpSE:[1.408,.156]},noteheadCircleSlash:{stemDownNW:[.004,0],stemUpSE:[1.128,0]},noteheadCircleX:{stemDownNW:[0,0],stemUpSE:[1.128,0]},noteheadCircleXDoubleWhole:{noteheadOrigin:[.392,0]},noteheadCircleXHalf:{stemDownNW:[0,0],stemUpSE:[1.144,0]},noteheadCircledBlack:{stemDownNW:[.088,-.176],stemUpSE:[1.416,.2]},noteheadCircledBlackLarge:{stemDownNW:[.004,0],stemUpSE:[1.868,0]},noteheadCircledDoubleWhole:{noteheadOrigin:[.388,0]},noteheadCircledDoubleWholeLarge:{stemDownNW:[0,0],stemUpSE:[2.488,0]},noteheadCircledHalf:{stemDownNW:[.084,-.176],stemUpSE:[1.448,.172]},noteheadCircledHalfLarge:{stemDownNW:[0,0],stemUpSE:[1.864,0]},noteheadCircledWholeLarge:{stemDownNW:[0,-.004],stemUpSE:[2.488,0]},noteheadCircledXLarge:{stemDownNW:[0,0],stemUpSE:[1.864,0]},noteheadClusterDoubleWhole2nd:{noteheadOrigin:[.392,0]},noteheadClusterDoubleWhole3rd:{noteheadOrigin:[.4,0]},noteheadClusterHalf2nd:{stemDownNW:[0,-.18],stemUpSE:[1.38,.716]},noteheadClusterHalf3rd:{stemDownNW:[0,-.164],stemUpSE:[1.372,1.232]},noteheadClusterHalfBottom:{stemDownNW:[0,-.208]},noteheadClusterHalfTop:{stemUpSE:[1.376,.18]},noteheadClusterQuarter2nd:{stemDownNW:[0,.06],stemUpSE:[1.424,.464]},noteheadClusterQuarter3rd:{stemDownNW:[0,.26],stemUpSE:[1.552,.78]},noteheadClusterQuarterBottom:{stemDownNW:[0,-.2]},noteheadClusterQuarterTop:{stemUpSE:[1.34,.18]},noteheadClusterRoundBlack:{stemDownNW:[0,.344],stemUpSE:[1.328,2.748]},noteheadClusterRoundWhite:{stemDownNW:[.008,.304],stemUpSE:[1.496,2.676]},noteheadClusterSquareBlack:{stemDownNW:[0,0],stemUpSE:[1.328,3.112]},noteheadClusterSquareWhite:{stemDownNW:[0,0],stemUpSE:[1.328,3.112]},noteheadDiamondBlack:{stemDownNW:[0,.004],stemUpSE:[1.124,.004]},noteheadDiamondBlackOld:{stemDownNW:[0,-.008],stemUpSE:[1.316,-.02]},noteheadDiamondBlackWide:{stemDownNW:[0,0],stemUpSE:[1.572,.004]},noteheadDiamondClusterBlack2nd:{stemDownNW:[0,.576],stemUpSE:[1.18,1.092]},noteheadDiamondClusterBlack3rd:{stemDownNW:[0,.54],stemUpSE:[1.18,1.556]},noteheadDiamondClusterBlackBottom:{stemDownNW:[0,.216]},noteheadDiamondClusterBlackTop:{stemUpSE:[1.372,-.212]},noteheadDiamondClusterWhite2nd:{stemDownNW:[0,.576],stemUpSE:[1.18,1.092]},noteheadDiamondClusterWhite3rd:{stemDownNW:[0,.544],stemUpSE:[1.18,1.56]},noteheadDiamondClusterWhiteBottom:{stemDownNW:[0,.208]},noteheadDiamondClusterWhiteTop:{stemUpSE:[1.38,-.212]},noteheadDiamondDoubleWhole:{noteheadOrigin:[.392,0]},noteheadDiamondDoubleWholeOld:{noteheadOrigin:[.396,0]},noteheadDiamondHalf:{stemDownNW:[0,0],stemUpSE:[1.136,0]},noteheadDiamondHalfFilled:{stemDownNW:[-.004,-.004],stemUpSE:[1.308,-.016]},noteheadDiamondHalfOld:{stemDownNW:[0,-.008],stemUpSE:[1.324,-.016]},noteheadDiamondHalfWide:{stemDownNW:[0,0],stemUpSE:[1.576,0]},noteheadDiamondOpen:{stemDownNW:[0,.028],stemUpSE:[1.296,-.024]},noteheadDiamondWhite:{stemDownNW:[0,.004],stemUpSE:[1.124,.004]},noteheadDiamondWhiteWide:{stemDownNW:[0,.004],stemUpSE:[1.572,.004]},noteheadDoubleWhole:{noteheadOrigin:[.392,0]},noteheadDoubleWholeWithX:{noteheadOrigin:[.392,0]},noteheadHalf:{splitStemDownNE:[1.056,-.388],splitStemDownNW:[.1,-.452],splitStemUpSE:[1.256,.456],splitStemUpSW:[.316,.396],stemDownNW:[0,-.196],stemUpSE:[1.364,.192]},noteheadHalfSmall:{stemDownNW:[0,-.196],stemUpSE:[1.364,.192]},noteheadHalfWithX:{stemDownNW:[0,-.2],stemUpSE:[1.376,.188]},noteheadHeavyX:{stemDownNW:[0,-.5],stemUpSE:[1.736,.496]},noteheadHeavyXHat:{stemDownNW:[0,-.5],stemUpSE:[1.744,.52]},noteheadLargeArrowDownBlack:{stemDownNW:[0,1],stemUpSE:[1.328,1]},noteheadLargeArrowDownDoubleWhole:{noteheadOrigin:[.388,0]},noteheadLargeArrowDownHalf:{stemDownNW:[0,.948],stemUpSE:[1.256,.948]},noteheadLargeArrowUpBlack:{stemDownNW:[0,-.56],stemUpSE:[1.328,-.56]},noteheadLargeArrowUpDoubleWhole:{noteheadOrigin:[.388,0]},noteheadLargeArrowUpHalf:{stemDownNW:[-.004,-.496],stemUpSE:[1.256,-.496]},noteheadMoonBlack:{stemDownNW:[0,0],stemUpSE:[1.416,0]},noteheadMoonWhite:{stemDownNW:[0,0],stemUpSE:[1.416,0]},noteheadPlusBlack:{stemDownNW:[-.004,0],stemUpSE:[1.124,0]},noteheadPlusDoubleWhole:{noteheadOrigin:[.392,0]},noteheadPlusHalf:{stemDownNW:[0,-.112],stemUpSE:[1.188,.104]},noteheadRoundBlack:{stemDownNW:[0,0],stemUpSE:[1.12,0]},noteheadRoundBlackLarge:{stemDownNW:[0,0],stemUpSE:[2.12,.064]},noteheadRoundBlackSlashed:{stemDownNW:[0,0],stemUpSE:[1.12,0]},noteheadRoundBlackSlashedLarge:{stemDownNW:[0,0],stemUpSE:[2.12,0]},noteheadRoundWhite:{stemDownNW:[.004,0],stemup:[1.124,0]},noteheadRoundWhiteLarge:{stemDownNW:[.004,.06],stemUpSE:[2.124,.06]},noteheadRoundWhiteSlashed:{stemDownNW:[.004,0],stemUpSE:[1.124,0]},noteheadRoundWhiteSlashedLarge:{stemDownNW:[0,0],stemUpSE:[2.12,0]},noteheadRoundWhiteWithDot:{stemDownNW:[0,0],stemUpSE:[1.12,0]},noteheadRoundWhiteWithDotLarge:{stemDownNW:[0,.06],stemUpSE:[2.12,.06]},noteheadSlashDiamondWhite:{stemDownNW:[0,0],stemUpSE:[2,0]},noteheadSlashHorizontalEnds:{stemDownNW:[0,-1],stemUpSE:[2.12,1]},noteheadSlashHorizontalEndsMuted:{stemDownNW:[0,-1],stemUpSE:[2.12,1]},noteheadSlashVerticalEnds:{stemDownNW:[0,-.664],stemUpSE:[1.46,.656]},noteheadSlashVerticalEndsMuted:{stemDownNW:[0,-.664],stemUpSE:[1.46,.656]},noteheadSlashVerticalEndsSmall:{stemDownNW:[0,-.256],stemUpSE:[.732,.244]},noteheadSlashWhiteHalf:{stemDownNW:[0,-1],stemUpSE:[3.12,1]},noteheadSlashWhiteMuted:{stemDownNW:[0,-1],stemUpSE:[3.12,1]},noteheadSlashX:{stemDownNW:[0,-1],stemUpSE:[2.12,1]},noteheadSlashedBlack1:{stemDownNW:[0,-.2],stemUpSE:[1.328,.176]},noteheadSlashedBlack2:{stemDownNW:[0,-.2],stemUpSE:[1.328,.176]},noteheadSlashedDoubleWhole1:{noteheadOrigin:[.392,0]},noteheadSlashedDoubleWhole2:{noteheadOrigin:[.392,0]},noteheadSlashedHalf1:{stemDownNW:[.004,-.24],stemUpSE:[1.364,.144]},noteheadSlashedHalf2:{stemDownNW:[.004,-.276],stemUpSE:[1.368,.112]},noteheadSquareBlack:{stemDownNW:[0,-.564],stemUpSE:[1.416,.564]},noteheadSquareBlackLarge:{stemDownNW:[0,0],stemUpSE:[2.148,0]},noteheadSquareBlackWhite:{stemDownNW:[0,-1.048],stemUpSE:[2.144,1.056]},noteheadSquareWhite:{stemDownNW:[0,-.568],stemUpSE:[1.416,.56]},noteheadTriangleDownBlack:{stemDownNW:[0,.568],stemUpSE:[1.312,.568]},noteheadTriangleDownDoubleWhole:{noteheadOrigin:[.384,0]},noteheadTriangleDownHalf:{stemDownNW:[0,.5],stemUpSE:[1.26,.5]},noteheadTriangleDownWhite:{stemDownNW:[0,.564],stemUpSE:[1.316,.564]},noteheadTriangleLeftBlack:{stemDownNW:[0,-.56],stemUpSE:[1.524,-.56]},noteheadTriangleLeftWhite:{stemDownNW:[0,-.56],stemUpSE:[1.524,-.56]},noteheadTriangleRightBlack:{stemDownNW:[0,-.56],stemUpSE:[1.524,.572]},noteheadTriangleRightWhite:{stemDownNW:[.004,-.56],stemUpSE:[1.528,.572]},noteheadTriangleRoundDownBlack:{stemDownNW:[0,.36],stemUpSE:[1.272,.36]},noteheadTriangleRoundDownWhite:{stemDownNW:[0,.356],stemUpSE:[1.272,.356]},noteheadTriangleUpBlack:{stemDownNW:[0,-.56],stemUpSE:[1.312,-.56]},noteheadTriangleUpDoubleWhole:{noteheadOrigin:[.384,0]},noteheadTriangleUpHalf:{stemDownNW:[-.004,-.512],stemUpSE:[1.256,-.512]},noteheadTriangleUpRightBlack:{stemDownNW:[0,.568],stemUpSE:[1.524,.568]},noteheadTriangleUpRightWhite:{stemDownNW:[0,.568],stemUpSE:[1.524,.568]},noteheadTriangleUpWhite:{stemDownNW:[0,-.564],stemUpSE:[1.316,-.564]},noteheadVoidWithX:{stemDownNW:[-.004,-.192],stemUpSE:[1.484,.192]},noteheadXBlack:{stemDownNW:[0,-.516],stemUpSE:[1.32,.496]},noteheadXDoubleWhole:{noteheadOrigin:[.392,0]},noteheadXHalf:{stemDownNW:[.004,-.464],stemUpSE:[1.516,.464]},noteheadXOrnate:{stemDownNW:[0,-.312],stemUpSE:[.988,.316]},noteheadXOrnateEllipse:{stemDownNW:[0,0],stemUpSE:[1.532,0]},ornamentBottomLeftConcaveStroke:{repeatOffset:[.46,0]},ornamentBottomLeftConcaveStrokeLarge:{repeatOffset:[1.912,0]},ornamentBottomLeftConvexStroke:{repeatOffset:[1.624,0]},ornamentHighLeftConcaveStroke:{repeatOffset:[1.716,0]},ornamentHighLeftConvexStroke:{repeatOffset:[1.112,0]},ornamentLeftPlus:{repeatOffset:[2.784,0]},ornamentLeftShakeT:{repeatOffset:[.924,0]},ornamentLeftVerticalStroke:{repeatOffset:[.74,0]},ornamentLeftVerticalStrokeWithCross:{repeatOffset:[1.152,0]},ornamentLowLeftConcaveStroke:{repeatOffset:[1.532,0]},ornamentLowLeftConvexStroke:{repeatOffset:[1.344,0]},ornamentMiddleVerticalStroke:{repeatOffset:[.004,0]},ornamentTopLeftConcaveStroke:{repeatOffset:[1.396,0]},ornamentTopLeftConvexStroke:{repeatOffset:[1.132,0]},ornamentZigZagLineNoRightEnd:{repeatOffset:[1.048,0]},ornamentZigZagLineWithRightEnd:{repeatOffset:[1.428,0]},wiggleArpeggiatoDown:{repeatOffset:[1.02,0]},wiggleArpeggiatoDownArrow:{repeatOffset:[2.064,0]},wiggleArpeggiatoDownSwash:{repeatOffset:[1.784,0]},wiggleArpeggiatoUp:{repeatOffset:[1.02,0]},wiggleArpeggiatoUpArrow:{repeatOffset:[2.064,0]},wiggleArpeggiatoUpSwash:{repeatOffset:[2.116,0]},wiggleCircular:{repeatOffset:[1.836,0]},wiggleCircularConstant:{repeatOffset:[1.072,0]},wiggleCircularConstantFlipped:{repeatOffset:[1.072,0]},wiggleCircularConstantFlippedLarge:{repeatOffset:[2.184,0]},wiggleCircularConstantLarge:{repeatOffset:[2.184,0]},wiggleCircularEnd:{repeatOffset:[.648,0]},wiggleCircularLarge:{repeatOffset:[1.724,0]},wiggleCircularLarger:{repeatOffset:[2.332,0]},wiggleCircularLargerStill:{repeatOffset:[2.964,0]},wiggleCircularLargest:{repeatOffset:[4.592,0]},wiggleCircularSmall:{repeatOffset:[1.34,0]},wiggleCircularStart:{repeatOffset:[1.92,0]},wiggleGlissando:{repeatOffset:[1.032,0]},wiggleGlissandoGroup1:{repeatOffset:[1.224,0]},wiggleGlissandoGroup2:{repeatOffset:[.5,0]},wiggleGlissandoGroup3:{repeatOffset:[.5,0]},wiggleRandom1:{repeatOffset:[7.976,0]},wiggleRandom2:{repeatOffset:[7.976,0]},wiggleRandom3:{repeatOffset:[7.976,0]},wiggleRandom4:{repeatOffset:[7.976,0]},wiggleSawtooth:{repeatOffset:[2.992,0]},wiggleSawtoothNarrow:{repeatOffset:[1.996,0]},wiggleSawtoothWide:{repeatOffset:[4,0]},wiggleSquareWave:{repeatOffset:[3,0]},wiggleSquareWaveNarrow:{repeatOffset:[2,0]},wiggleSquareWaveWide:{repeatOffset:[4,0]},wiggleTrill:{repeatOffset:[.948,0]},wiggleTrillFast:{repeatOffset:[.804,0]},wiggleTrillFaster:{repeatOffset:[.612,0]},wiggleTrillFasterStill:{repeatOffset:[.512,0]},wiggleTrillFastest:{repeatOffset:[.52,0]},wiggleTrillSlow:{repeatOffset:[1.088,0]},wiggleTrillSlower:{repeatOffset:[1.3,0]},wiggleTrillSlowerStill:{repeatOffset:[1.46,0]},wiggleTrillSlowest:{repeatOffset:[2.016,0]},wiggleVIbratoLargestSlower:{repeatOffset:[3.828,0]},wiggleVIbratoMediumSlower:{repeatOffset:[1.688,0]},wiggleVibrato:{repeatOffset:[.608,0]},wiggleVibratoLargeFast:{repeatOffset:[1.76,0]},wiggleVibratoLargeFaster:{repeatOffset:[1.504,0]},wiggleVibratoLargeFasterStill:{repeatOffset:[1.264,0]},wiggleVibratoLargeFastest:{repeatOffset:[1.044,0]},wiggleVibratoLargeSlow:{repeatOffset:[2.156,0]
},wiggleVibratoLargeSlower:{repeatOffset:[2.592,0]},wiggleVibratoLargeSlowest:{repeatOffset:[3.052,0]},wiggleVibratoLargestFast:{repeatOffset:[2.656,0]},wiggleVibratoLargestFaster:{repeatOffset:[2.244,0]},wiggleVibratoLargestFasterStill:{repeatOffset:[1.884,0]},wiggleVibratoLargestFastest:{repeatOffset:[1.54,0]},wiggleVibratoLargestSlow:{repeatOffset:[3.164,0]},wiggleVibratoLargestSlowest:{repeatOffset:[4.536,0]},wiggleVibratoMediumFast:{repeatOffset:[1.18,0]},wiggleVibratoMediumFaster:{repeatOffset:[.968,0]},wiggleVibratoMediumFasterStill:{repeatOffset:[.828,0]},wiggleVibratoMediumFastest:{repeatOffset:[.74,0]},wiggleVibratoMediumSlow:{repeatOffset:[1.384,0]},wiggleVibratoMediumSlowest:{repeatOffset:[2,0]},wiggleVibratoSmallFast:{repeatOffset:[.86,0]},wiggleVibratoSmallFaster:{repeatOffset:[.716,0]},wiggleVibratoSmallFasterStill:{repeatOffset:[.62,0]},wiggleVibratoSmallFastest:{repeatOffset:[.544,0]},wiggleVibratoSmallSlow:{repeatOffset:[1.008,0]},wiggleVibratoSmallSlower:{repeatOffset:[1.164,0]},wiggleVibratoSmallSlowest:{repeatOffset:[1.5,0]},wiggleVibratoSmallestFast:{repeatOffset:[.7,0]},wiggleVibratoSmallestFaster:{repeatOffset:[.584,0]},wiggleVibratoSmallestFasterStill:{repeatOffset:[.536,0]},wiggleVibratoSmallestFastest:{repeatOffset:[.48,0]},wiggleVibratoSmallestSlow:{repeatOffset:[.832,0]},wiggleVibratoSmallestSlower:{repeatOffset:[.988,0]},wiggleVibratoSmallestSlowest:{repeatOffset:[1.148,0]},wiggleVibratoStart:{repeatOffset:[1.808,0]},wiggleVibratoWide:{repeatOffset:[.82,0]},wiggleWavy:{repeatOffset:[3,0]},wiggleWavyNarrow:{repeatOffset:[2,0]},wiggleWavyWide:{repeatOffset:[4,0]}},ligatures:{accidentalDoubleFlatParens:{codepoint:"U+F561",componentGlyphs:["accidentalParensLeft","accidentalDoubleFlat","accidentalParensRight"]},accidentalDoubleSharpParens:{codepoint:"U+F560",componentGlyphs:["accidentalParensLeft","accidentalDoubleSharp","accidentalParensRight"]},accidentalFlatJohnstonDown:{codepoint:"U+F567",componentGlyphs:["accidentalFlat","accidentalJohnstonDown"]},accidentalFlatJohnstonEl:{codepoint:"U+F565",componentGlyphs:["accidentalFlat","accidentalJohnstonEl"]},accidentalFlatJohnstonElDown:{codepoint:"U+F573",componentGlyphs:["accidentalFlat","accidentalJohnstonEl","accidentalJohnstonDown"]},accidentalFlatJohnstonUp:{codepoint:"U+F566",componentGlyphs:["accidentalFlat","accidentalJohnstonUp"]},accidentalFlatJohnstonUpEl:{codepoint:"U+F572",componentGlyphs:["accidentalFlat","accidentalJohnstonUp","accidentalJohnstonEl"]},accidentalFlatParens:{codepoint:"U+F55D",componentGlyphs:["accidentalParensLeft","accidentalFlat","accidentalParensRight"]},accidentalJohnstonDownEl:{codepoint:"U+F56D",componentGlyphs:["accidentalJohnstonDown","accidentalJohnstonEl"]},accidentalJohnstonSevenDown:{codepoint:"U+F56B",componentGlyphs:["accidentalJohnstonSeven","accidentalJohnstonDown"]},accidentalJohnstonSevenFlat:{codepoint:"U+F569",componentGlyphs:["accidentalJohnstonSeven","accidentalFlat"]},accidentalJohnstonSevenFlatDown:{codepoint:"U+F575",componentGlyphs:["accidentalJohnstonSeven","accidentalFlat","accidentalJohnstonDown"]},accidentalJohnstonSevenFlatUp:{codepoint:"U+F574",componentGlyphs:["accidentalJohnstonSeven","accidentalFlat","accidentalJohnstonUp"]},accidentalJohnstonSevenSharp:{codepoint:"U+F568",componentGlyphs:["accidentalJohnstonSeven","accidentalSharp"]},accidentalJohnstonSevenSharpDown:{codepoint:"U+F571",componentGlyphs:["accidentalJohnstonSeven","accidentalSharp","accidentalJohnstonDown"]},accidentalJohnstonSevenSharpUp:{codepoint:"U+F570",componentGlyphs:["accidentalJohnstonSeven","accidentalSharp","accidentalJohnstonUp"]},accidentalJohnstonSevenUp:{codepoint:"U+F56A",componentGlyphs:["accidentalJohnstonSeven","accidentalJohnstonUp"]},accidentalJohnstonUpEl:{codepoint:"U+F56C",componentGlyphs:["accidentalJohnstonUp","accidentalJohnstonEl"]},accidentalNaturalParens:{codepoint:"U+F55E",componentGlyphs:["accidentalParensLeft","accidentalNatural","accidentalParensRight"]},accidentalSharpJohnstonDown:{codepoint:"U+F564",componentGlyphs:["accidentalSharp","accidentalJohnstonDown"]},accidentalSharpJohnstonDownEl:{codepoint:"U+F56F",componentGlyphs:["accidentalSharp","accidentalJohnstonDown","accidentalJohnstonEl"]},accidentalSharpJohnstonEl:{codepoint:"U+F562",componentGlyphs:["accidentalSharp","accidentalJohnstonEl"]},accidentalSharpJohnstonUp:{codepoint:"U+F563",componentGlyphs:["accidentalSharp","accidentalJohnstonUp"]},accidentalSharpJohnstonUpEl:{codepoint:"U+F56E",componentGlyphs:["accidentalSharp","accidentalJohnstonUp","accidentalJohnstonEl"]},accidentalSharpParens:{codepoint:"U+F55F",componentGlyphs:["accidentalParensLeft","accidentalSharp","accidentalParensRight"]},fClef5Below:{codepoint:"U+F4BA",componentGlyphs:["fClef","tuplet5"]},gClef0Below:{codepoint:"U+F4BB",componentGlyphs:["gClefLigatedNumberBelow","tuplet0"]},gClef10Below:{codepoint:"U+F4BC",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet0"]},gClef11Below:{codepoint:"U+F4BD",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet1"]},gClef12Below:{codepoint:"U+F4BE",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet2"]},gClef13Below:{codepoint:"U+F4BF",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet3"]},gClef14Below:{codepoint:"U+F4C0",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet4"]},gClef15Below:{codepoint:"U+F4C1",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet5"]},gClef16Below:{codepoint:"U+F4C2",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet6"]},gClef17Below:{codepoint:"U+F4C3",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet7"]},gClef2Above:{codepoint:"U+F4C4",componentGlyphs:["gClefLigatedNumberAbove","tuplet2"]},gClef2Below:{codepoint:"U+F4C5",componentGlyphs:["gClefLigatedNumberBelow","tuplet2"]},gClef3Above:{codepoint:"U+F4C6",componentGlyphs:["gClefLigatedNumberAbove","tuplet3"]},gClef3Below:{codepoint:"U+F4C7",componentGlyphs:["gClefLigatedNumberBelow","tuplet3"]},gClef4Above:{codepoint:"U+F4C8",componentGlyphs:["gClefLigatedNumberAbove","tuplet4"]},gClef4Below:{codepoint:"U+F4C9",componentGlyphs:["gClefLigatedNumberBelow","tuplet4"]},gClef5Above:{codepoint:"U+F4CA",componentGlyphs:["gClefLigatedNumberAbove","tuplet5"]},gClef5Below:{codepoint:"U+F4CB",componentGlyphs:["gClefLigatedNumberBelow","tuplet5"]},gClef6Above:{codepoint:"U+F4CC",componentGlyphs:["gClefLigatedNumberAbove","tuplet6"]},gClef6Below:{codepoint:"U+F4CD",componentGlyphs:["gClefLigatedNumberBelow","tuplet6"]},gClef7Above:{codepoint:"U+F4CE",componentGlyphs:["gClefLigatedNumberAbove","tuplet7"]},gClef7Below:{codepoint:"U+F4CF",componentGlyphs:["gClefLigatedNumberBelow","tuplet7"]},gClef8Above:{codepoint:"U+F4D0",componentGlyphs:["gClefLigatedNumberAbove","tuplet8"]},gClef8Below:{codepoint:"U+F4D1",componentGlyphs:["gClefLigatedNumberBelow","tuplet8"]},gClef9Above:{codepoint:"U+F4D2",componentGlyphs:["gClefLigatedNumberAbove","tuplet9"]},gClef9Below:{codepoint:"U+F4D3",componentGlyphs:["gClefLigatedNumberBelow","tuplet9"]},gClefFlat10Below:{codepoint:"U+F4D4",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet0","accidentalFlat"]},gClefFlat11Below:{codepoint:"U+F4D5",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet1","accidentalFlat"]},gClefFlat13Below:{codepoint:"U+F4D6",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet3","accidentalFlat"]},gClefFlat14Below:{codepoint:"U+F4D7",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet4","accidentalFlat"]},gClefFlat15Below:{codepoint:"U+F4D8",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet5","accidentalFlat"]},gClefFlat16Below:{codepoint:"U+F4D9",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet6","accidentalFlat"]},gClefFlat1Below:{codepoint:"U+F4DA",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet1"]},gClefFlat2Above:{codepoint:"U+F4DB",componentGlyphs:["gClefLigatedNumberAbove","tuplet2","accidentalFlat"]},gClefFlat2Below:{codepoint:"U+F4DC",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet2"]},gClefFlat3Above:{codepoint:"U+F4DD",componentGlyphs:["gClefLigatedNumberAbove","tuplet3","accidentalFlat"]},gClefFlat3Below:{codepoint:"U+F4DE",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet3"]},gClefFlat4Below:{codepoint:"U+F4DF",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet4"]},gClefFlat5Above:{codepoint:"U+F4E0",componentGlyphs:["gClefLigatedNumberAbove","tuplet5","accidentalFlat"]},gClefFlat6Above:{codepoint:"U+F4E1",componentGlyphs:["gClefLigatedNumberAbove","tuplet6","accidentalFlat"]},gClefFlat6Below:{codepoint:"U+F4E2",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet6"]},gClefFlat7Above:{codepoint:"U+F4E3",componentGlyphs:["gClefLigatedNumberAbove","tuplet7","accidentalFlat"]},gClefFlat7Below:{codepoint:"U+F4E4",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet7"]},gClefFlat8Above:{codepoint:"U+F4E5",componentGlyphs:["gClefLigatedNumberAbove","tuplet8","accidentalFlat"]},gClefFlat9Above:{codepoint:"U+F4E6",componentGlyphs:["gClefLigatedNumberAbove","tuplet9","accidentalFlat"]},gClefFlat9Below:{codepoint:"U+F4E7",componentGlyphs:["gClefLigatedNumberBelow","accidentalFlat","tuplet9"]},gClefNat2Below:{codepoint:"U+F4E8",componentGlyphs:["gClefLigatedNumberBelow","accidentalNatural","tuplet2"]},gClefNatural10Below:{codepoint:"U+F4E9",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet0","accidentalNatural"]},gClefNatural13Below:{codepoint:"U+F4EA",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet3","accidentalNatural"]},gClefNatural17Below:{codepoint:"U+F4EB",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet7","accidentalNatural"]},gClefNatural2Above:{codepoint:"U+F4EC",componentGlyphs:["gClefLigatedNumberAbove","tuplet2","accidentalNatural"]},gClefNatural3Above:{codepoint:"U+F4ED",componentGlyphs:["gClefLigatedNumberAbove","tuplet3","accidentalNatural"]},gClefNatural3Below:{codepoint:"U+F4EE",componentGlyphs:["gClefLigatedNumberBelow","accidentalNatural","tuplet3"]},gClefNatural6Above:{codepoint:"U+F4EF",componentGlyphs:["gClefLigatedNumberAbove","tuplet6","accidentalNatural"]},gClefNatural6Below:{codepoint:"U+F4F0",componentGlyphs:["gClefLigatedNumberBelow","accidentalNatural","tuplet6"]},gClefNatural7Above:{codepoint:"U+F4F1",componentGlyphs:["gClefLigatedNumberAbove","tuplet7","accidentalNatural"]},gClefNatural9Above:{codepoint:"U+F4F2",componentGlyphs:["gClefLigatedNumberAbove","tuplet9","accidentalNatural"]},gClefNatural9Below:{codepoint:"U+F4F3",componentGlyphs:["gClefLigatedNumberBelow","accidentalNatural","tuplet9"]},gClefSharp12Below:{codepoint:"U+F4F4",componentGlyphs:["gClefLigatedNumberBelow","tuplet1","tuplet2","accidentalSharp"]},gClefSharp1Above:{codepoint:"U+F4F5",componentGlyphs:["gClefLigatedNumberAbove","tuplet1","accidentalSharp"]},gClefSharp4Above:{codepoint:"U+F4F6",componentGlyphs:["gClefLigatedNumberAbove","tuplet4","accidentalSharp"]},gClefSharp5Below:{codepoint:"U+F4F7",componentGlyphs:["gClefLigatedNumberBelow","accidentalSharp","tuplet5"]},mensuralFusaBlackStemDown:{codepoint:"U+F4F8",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagFusa"]},mensuralFusaBlackStemUp:{codepoint:"U+F4F9",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagFusa"]},mensuralFusaBlackVoidStemDown:{codepoint:"U+F4FA",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagFusa"]},mensuralFusaBlackVoidStemUp:{codepoint:"U+F4FB",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagFusa"]},mensuralFusaVoidStemDown:{codepoint:"U+F4FC",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagFusa"]},mensuralFusaVoidStemUp:{codepoint:"U+F4FD",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagFusa"]},mensuralLongaBlackStemDownLeft:{codepoint:"U+F4FE",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadLongaBlack"]},mensuralLongaBlackStemDownRight:{codepoint:"U+F4FF",componentGlyphs:["mensuralNoteheadLongaBlack","mensuralCombStemDown"]},mensuralLongaBlackStemUpLeft:{codepoint:"U+F500",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadLongaBlack"]},mensuralLongaBlackStemUpRight:{codepoint:"U+F501",componentGlyphs:["mensuralNoteheadLongaBlack","mensuralCombStemUp"]},mensuralLongaBlackVoidStemDownLeft:{codepoint:"U+F502",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadLongaBlackVoid"]},mensuralLongaBlackVoidStemDownRight:{codepoint:"U+F503",componentGlyphs:["mensuralNoteheadLongaBlackVoid","mensuralCombStemDown"]},mensuralLongaBlackVoidStemUpLeft:{codepoint:"U+F504",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadLongaBlackVoid"]},mensuralLongaBlackVoidStemUpRight:{codepoint:"U+F505",componentGlyphs:["mensuralNoteheadLongaBlackVoid","mensuralCombStemUp"]},mensuralLongaVoidStemDownLeft:{codepoint:"U+F506",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadLongaVoid"]},mensuralLongaVoidStemDownRight:{codepoint:"U+F507",componentGlyphs:["mensuralNoteheadLongaVoid","mensuralCombStemDown"]},mensuralLongaVoidStemUpLeft:{codepoint:"U+F508",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadLongaVoid"]},mensuralLongaVoidStemUpRight:{codepoint:"U+F509",componentGlyphs:["mensuralNoteheadLongaVoid","mensuralCombStemUp"]},mensuralMaximaBlackStemDownLeft:{codepoint:"U+F50A",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadMaximaBlack"]},mensuralMaximaBlackStemDownRight:{codepoint:"U+F50B",componentGlyphs:["mensuralNoteheadMaximaBlack","mensuralCombStemDown"]},mensuralMaximaBlackStemUpLeft:{codepoint:"U+F50C",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadMaximaBlack"]},mensuralMaximaBlackStemUpRight:{codepoint:"U+F50D",componentGlyphs:["mensuralNoteheadMaximaBlack","mensuralCombStemUp"]},mensuralMaximaBlackVoidStemDownLeft:{codepoint:"U+F50E",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadMaximaBlackVoid"]},mensuralMaximaBlackVoidStemDownRight:{codepoint:"U+F50F",componentGlyphs:["mensuralNoteheadMaximaBlackVoid","mensuralCombStemDown"]},mensuralMaximaBlackVoidStemUpLeft:{codepoint:"U+F510",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadMaximaBlackVoid"]},mensuralMaximaBlackVoidStemUpRight:{codepoint:"U+F511",componentGlyphs:["mensuralNoteheadMaximaBlackVoid","mensuralCombStemUp"]},mensuralMaximaVoidStemDownLeft:{codepoint:"U+F512",componentGlyphs:["mensuralCombStemDown","mensuralNoteheadMaximaVoid"]},mensuralMaximaVoidStemDownRight:{codepoint:"U+F513",componentGlyphs:["mensuralNoteheadMaximaVoid","mensuralCombStemDown"]},mensuralMaximaVoidStemUpLeft:{codepoint:"U+F514",componentGlyphs:["mensuralCombStemUp","mensuralNoteheadMaximaVoid"]},mensuralMaximaVoidStemUpRight:{codepoint:"U+F515",componentGlyphs:["mensuralNoteheadMaximaVoid","mensuralCombStemUp"]},mensuralMinimaBlackStemDown:{codepoint:"U+F516",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDown"]},mensuralMinimaBlackStemDownExtendedFlag:{codepoint:"U+F517",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagExtended"]},mensuralMinimaBlackStemDownFlagLeft:{codepoint:"U+F518",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagLeft"]},mensuralMinimaBlackStemDownFlagRight:{codepoint:"U+F519",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagRight"]},mensuralMinimaBlackStemDownFlaredFlag:{codepoint:"U+F51A",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagFlared"]},mensuralMinimaBlackStemUp:{codepoint:"U+F51B",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUp"]},mensuralMinimaBlackStemUpExtendedFlag:{codepoint:"U+F51C",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagExtended"]},mensuralMinimaBlackStemUpFlagLeft:{codepoint:"U+F51D",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagLeft"]},mensuralMinimaBlackStemUpFlagRight:{codepoint:"U+F51E",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagRight"]},mensuralMinimaBlackStemUpFlaredFlag:{codepoint:"U+F51F",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagFlared"]},mensuralMinimaBlackVoidStemDown:{codepoint:"U+F520",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDown"]},mensuralMinimaBlackVoidStemDownExtendedFlag:{codepoint:"U+F521",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagExtended"]},mensuralMinimaBlackVoidStemDownFlagLeft:{codepoint:"U+F522",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagLeft"]},mensuralMinimaBlackVoidStemDownFlagRight:{codepoint:"U+F523",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagRight"]},mensuralMinimaBlackVoidStemDownFlaredFlag:{codepoint:"U+F524",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagFlared"]},mensuralMinimaBlackVoidStemUp:{codepoint:"U+F525",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUp"]},mensuralMinimaBlackVoidStemUpExtendedFlag:{codepoint:"U+F526",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagExtended"]},mensuralMinimaBlackVoidStemUpFlagLeft:{codepoint:"U+F527",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagLeft"]},mensuralMinimaBlackVoidStemUpFlagRight:{codepoint:"U+F528",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagRight"]},mensuralMinimaBlackVoidStemUpFlaredFlag:{codepoint:"U+F529",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagFlared"]},mensuralMinimaVoidStemDown:{codepoint:"U+F52A",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDown"]},mensuralMinimaVoidStemDownExtendedFlag:{codepoint:"U+F52B",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagExtended"]},mensuralMinimaVoidStemDownFlagLeft:{codepoint:"U+F52C",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagLeft"]},mensuralMinimaVoidStemDownFlagRight:{codepoint:"U+F52D",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagRight"]},mensuralMinimaVoidStemDownFlaredFlag:{codepoint:"U+F52E",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagFlared"]},mensuralMinimaVoidStemUp:{codepoint:"U+F530",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUp"]},mensuralMinimaVoidStemUpExtendedFlag:{codepoint:"U+F52F",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagExtended"]},mensuralMinimaVoidStemUpFlagLeft:{codepoint:"U+F531",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagLeft"]},mensuralMinimaVoidStemUpFlagRight:{codepoint:"U+F532",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagRight"]},mensuralMinimaVoidStemUpFlaredFlag:{codepoint:"U+F533",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagFlared"]},mensuralSemiminimaBlackStemDown:{codepoint:"U+F534",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemDownFlagSemiminima"]},mensuralSemiminimaBlackStemUp:{codepoint:"U+F535",componentGlyphs:["mensuralNoteheadSemibrevisBlack","mensuralCombStemUpFlagSemiminima"]},mensuralSemiminimaBlackVoidStemDown:{codepoint:"U+F536",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemDownFlagSemiminima"]},mensuralSemiminimaBlackVoidStemUp:{codepoint:"U+F537",componentGlyphs:["mensuralNoteheadSemibrevisBlackVoid","mensuralCombStemUpFlagSemiminima"]},mensuralSemiminimaVoidStemDown:{codepoint:"U+F538",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemDownFlagSemiminima"]},mensuralSemiminimaVoidStemUp:{codepoint:"U+F539",componentGlyphs:["mensuralNoteheadSemibrevisVoid","mensuralCombStemUpFlagSemiminima"]},noteheadBlackParens:{codepoint:"U+F559",componentGlyphs:["noteheadParenthesisLeft","noteheadBlack","noteheadParenthesisRight"]},noteheadDoubleWholeParens:{codepoint:"U+F55C",componentGlyphs:["noteheadParenthesisLeft","noteheadDoubleWhole","noteheadParenthesisRight"]},noteheadHalfParens:{codepoint:"U+F55A",componentGlyphs:["noteheadParenthesisLeft","noteheadHalf","noteheadParenthesisRight"]},noteheadWholeParens:{codepoint:"U+F55B",componentGlyphs:["noteheadParenthesisLeft","noteheadWhole","noteheadParenthesisRight"]},ornamentTrillFlatAbove:{codepoint:"U+F53A",componentGlyphs:["accidentalFlat","ornamentTrill"]},ornamentTrillNaturalAbove:{codepoint:"U+F53B",componentGlyphs:["accidentalNatural","ornamentTrill"]},ornamentTrillSharpAbove:{codepoint:"U+F53C",componentGlyphs:["accidentalSharp","ornamentTrill"]},ornamentTurnFlatAbove:{codepoint:"U+F53D",componentGlyphs:["accidentalFlat","ornamentTurn"]},ornamentTurnFlatAboveSharpBelow:{codepoint:"U+F53E",componentGlyphs:["accidentalFlat","ornamentTurn","accidentalSharp"]},ornamentTurnFlatBelow:{codepoint:"U+F53F",componentGlyphs:["ornamentTurn","accidentalFlat"]},ornamentTurnNaturalAbove:{codepoint:"U+F540",componentGlyphs:["accidentalNatural","ornamentTurn"]},ornamentTurnNaturalBelow:{codepoint:"U+F541",componentGlyphs:["ornamentTurn","accidentalNatural"]},ornamentTurnSharpAbove:{codepoint:"U+F542",componentGlyphs:["accidentalSharp","ornamentTurn"]},ornamentTurnSharpAboveFlatBelow:{codepoint:"U+F543",componentGlyphs:["accidentalSharp","ornamentTurn","accidentalFlat"]},ornamentTurnSharpBelow:{codepoint:"U+F544",componentGlyphs:["ornamentTurn","accidentalSharp"]},timeSig0Denominator:{codepoint:"U+F545",componentGlyphs:["timeSigCombDenominator","timeSig0"]},timeSig0Numerator:{codepoint:"U+F546",componentGlyphs:["timeSigCombNumerator","timeSig0"]},timeSig12over8:{codepoint:"U+F582",componentGlyphs:["timeSigCombNumerator","timeSig1","timeSigCombNumerator","timeSig2","timeSigCombDenominator","timeSig8"]},timeSig1Denominator:{codepoint:"U+F547",componentGlyphs:["timeSigCombDenominator","timeSig1"]},timeSig1Numerator:{codepoint:"U+F548",componentGlyphs:["timeSigCombNumerator","timeSig1"]},timeSig2Denominator:{codepoint:"U+F549",componentGlyphs:["timeSigCombDenominator","timeSig2"]},timeSig2Numerator:{codepoint:"U+F54A",componentGlyphs:["timeSigCombNumerator","timeSig2"]},timeSig2over2:{codepoint:"U+F577",componentGlyphs:["timeSigCombNumerator","timeSig2","timeSigCombDenominator","timeSig2"]},timeSig2over4:{codepoint:"U+F576",componentGlyphs:["timeSigCombNumerator","timeSig2","timeSigCombDenominator","timeSig4"]},timeSig3Denominator:{codepoint:"U+F54B",componentGlyphs:["timeSigCombDenominator","timeSig3"]},timeSig3Numerator:{codepoint:"U+F54C",componentGlyphs:["timeSigCombNumerator","timeSig3"]},timeSig3over2:{codepoint:"U+F578",componentGlyphs:["timeSigCombNumerator","timeSig3","timeSigCombDenominator","timeSig2"]},timeSig3over4:{codepoint:"U+F579",componentGlyphs:["timeSigCombNumerator","timeSig3","timeSigCombDenominator","timeSig4"]},timeSig3over8:{codepoint:"U+F57A",componentGlyphs:["timeSigCombNumerator","timeSig3","timeSigCombDenominator","timeSig8"]},timeSig4Denominator:{codepoint:"U+F54D",componentGlyphs:["timeSigCombDenominator","timeSig4"]},timeSig4Numerator:{codepoint:"U+F54E",componentGlyphs:["timeSigCombNumerator","timeSig4"]},timeSig4over4:{codepoint:"U+F57B",componentGlyphs:["timeSigCombNumerator","timeSig4","timeSigCombDenominator","timeSig4"]},timeSig5Denominator:{codepoint:"U+F54F",componentGlyphs:["timeSigCombDenominator","timeSig5"]},timeSig5Numerator:{codepoint:"U+F550",componentGlyphs:["timeSigCombNumerator","timeSig5"]},timeSig5over4:{codepoint:"U+F57C",componentGlyphs:["timeSigCombNumerator","timeSig5","timeSigCombDenominator","timeSig4"]},timeSig5over8:{codepoint:"U+F57D",componentGlyphs:["timeSigCombNumerator","timeSig5","timeSigCombDenominator","timeSig8"]},timeSig6Denominator:{codepoint:"U+F551",componentGlyphs:["timeSigCombDenominator","timeSig6"]},timeSig6Numerator:{codepoint:"U+F552",componentGlyphs:["timeSigCombNumerator","timeSig6"]},timeSig6over4:{codepoint:"U+F57E",componentGlyphs:["timeSigCombNumerator","timeSig6","timeSigCombDenominator","timeSig4"]},timeSig6over8:{codepoint:"U+F57F",componentGlyphs:["timeSigCombNumerator","timeSig6","timeSigCombDenominator","timeSig8"]},timeSig7Denominator:{codepoint:"U+F553",componentGlyphs:["timeSigCombDenominator","timeSig7"]},timeSig7Numerator:{codepoint:"U+F554",componentGlyphs:["timeSigCombNumerator","timeSig7"]},timeSig7over8:{codepoint:"U+F580",componentGlyphs:["timeSigCombNumerator","timeSig7","timeSigCombDenominator","timeSig8"]},timeSig8Denominator:{codepoint:"U+F555",componentGlyphs:["timeSigCombDenominator","timeSig8"]},timeSig8Numerator:{codepoint:"U+F556",componentGlyphs:["timeSigCombNumerator","timeSig8"]},timeSig9Denominator:{codepoint:"U+F557",componentGlyphs:["timeSigCombDenominator","timeSig9"]},timeSig9Numerator:{codepoint:"U+F558",componentGlyphs:["timeSigCombNumerator","timeSig9"]},timeSig9over8:{codepoint:"U+F581",componentGlyphs:["timeSigCombNumerator","timeSig9","timeSigCombDenominator","timeSig8"]}}};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return r.DOM.g(null,r.DOM.circle({cx:this.props.x,cy:this.props.y,fill:this.props.fill,r:this.props.radius}))},t}(r.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a},function(e,t,n){"use strict";function i(){return function(e){function t(e,t){var i=t.layout,a=t.originX,o=e.context.originYByPartAndStaff[i.part][i.model.staffIdx||1]||0,l={key:t.layout.key,obj:e,x1:a+t.layout.x-2,x2:a+t.layout.x+t.layout.renderedWidth,y1:o-60,y2:o+60,originY:o};if(e._record){if(c.isEqual(l,e._record))return;n(e)}return isNaN(t.layout.renderedWidth)?void console.warn("Missing rendered width in",t.layout.key):(e._record={key:t.layout.key,obj:e,x1:a+t.layout.x-2,x2:a+t.layout.x+t.layout.renderedWidth,y1:o-60,y2:o+60,originY:o},void r(e._record))}function n(e){a(e._record),e._record=null}var i=e.prototype.componentWillMount;e.prototype.componentWillMount=function(){var e=this;t(e,e.props),i&&i.call(e)};var o=e.prototype.componentWillUnmount;e.prototype.componentWillUnmount=function(){var e=this;n(e),o&&o.call(e)};var l=e.prototype.componentWillReceiveProps;e.prototype.componentWillReceiveProps=function(e){var n=this;t(n,e),l&&l.call(n)}}}function r(e){var t=l(e),n=c.sortedIndex(d,t);f.splice(n,0,e),d.splice(n,0,t)}function a(e){var t=l(e),n=c.sortedIndex(d,t),i=c.indexOf(f,e,n);u(i>=0,e.key+" not currently in array."),f.splice(i,1),d.splice(i,1)}function o(e){for(var t=e.x,n=e.y,i=s(e),r=c.sortedIndex(d,i),a=r;a<f.length;++a){var o=f[a];if(f[a].x1<=t&&f[a].x2>=t&&f[a].y1<=n&&f[a].y2>=n)return o}return null}function l(e){return e.x2}function s(e){return e.x}var u=n(2),c=n(1);t.Targetable=i;var f=[],d=[];t.get=o},function(e,t,n){"use strict";var i=n(3),r=n(13),a=4,o=4;t.Prototype={getDX:function(e,t,n){if(!(n>0)){var i=e.defaultX;return isNaN(i)?a:i+(e.relativeX||0)-t}},getDY:function(e,t,n){return n>0?o+r.cssSizeToTenths(this.context.scale40,e.fontSize):e.defaultY||e.relativeY?this.context.originY-(e.defaultY+(e.relativeY||0))-t:0},getDirection:function(e){switch(e.dir){case i.DirectionMode.Lro:case i.DirectionMode.Ltr:return"ltr";case i.DirectionMode.Rlo:case i.DirectionMode.Rtl:return"rtl";default:return"inherit"}},getTextAnchor:function(e){switch(e.halign||e.justify){case i.LeftCenterRight.Right:return"end";case i.LeftCenterRight.Center:return"middle";case i.LeftCenterRight.Left:return"start";default:return"inherit"}},getTextDecoration:function(e){return e.underline?"underline":e.overline?"overline":e.lineThrough?"line-through":"none"},getTransform:function(e){if(e.rotation)return"rotate("+e.rotation+")"},getX:function(e){if(e>0)return 10}}},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!i(e[n],t[n]))return!1;return!0}return!1}function r(e,t,n){var i,r,a,o=[],l=[],s=A.getCard16(e,t);if(0!==s){var u=A.getByte(e,t+2);r=t+(s+1)*u+2;var c=t+3;for(i=0;i<s+1;i+=1)o.push(A.getOffset(e,c,u)),c+=u;a=r+o[s]}else a=t+2;for(i=0;i<o.length-1;i+=1){var f=A.getBytes(e,r+o[i],r+o[i+1]);n&&(f=n(f)),l.push(f)}return{objects:l,startOffset:t,endOffset:a}}function a(e){for(var t="",n=15,i=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var r=e.parseByte(),a=r>>4,o=15&r;if(a===n)break;if(t+=i[a],o===n)break;t+=i[o]}return parseFloat(t)}function o(e,t){var n,i,r,o;if(28===t)return n=e.parseByte(),i=e.parseByte(),n<<8|i;if(29===t)return n=e.parseByte(),i=e.parseByte(),r=e.parseByte(),o=e.parseByte(),n<<24|i<<16|r<<8|o;if(30===t)return a(e);if(t>=32&&t<=246)return t-139;if(t>=247&&t<=250)return n=e.parseByte(),256*(t-247)+n+108;if(t>=251&&t<=254)return n=e.parseByte(),256*-(t-251)-n-108;throw new Error("Invalid b0 "+t)}function l(e){for(var t={},n=0;n<e.length;n+=1){var i,r=e[n][0],a=e[n][1];if(i=1===a.length?a[0]:a,t.hasOwnProperty(r))throw new Error("Object "+t+" already has key "+r);t[r]=i}return t}function s(e,t,n){t=void 0!==t?t:0;var i=new A.Parser(e,t),r=[],a=[];for(n=void 0!==n?n:e.length;i.relativeOffset<n;){var s=i.parseByte();s<=21?(12===s&&(s=1200+i.parseByte()),r.push([s,a]),a=[]):a.push(o(i,s))}return l(r)}function u(e,t){return t=t<=390?O.cffStandardStrings[t]:e[t-391]}function c(e,t,n){for(var i={},r=0;r<t.length;r+=1){var a=t[r],o=e[a.op];void 0===o&&(o=void 0!==a.value?a.value:null),"SID"===a.type&&(o=u(n,o)),i[a.name]=o}return i}function f(e,t){var n={};return n.formatMajor=A.getCard8(e,t),n.formatMinor=A.getCard8(e,t+1),n.size=A.getCard8(e,t+2),n.offsetSize=A.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}function d(e,t){var n=s(e,0,e.byteLength);return c(n,X,t)}function h(e,t,n,i){var r=s(e,t,n);return c(r,P,i)}function p(e,t,n,i){var r,a,o,l=new A.Parser(e,t);n-=1;var s=[".notdef"],c=l.parseCard8();if(0===c)for(r=0;r<n;r+=1)a=l.parseSID(),s.push(u(i,a));else if(1===c)for(;s.length<=n;)for(a=l.parseSID(),o=l.parseCard8(),r=0;r<=o;r+=1)s.push(u(i,a)),a+=1;else{if(2!==c)throw new Error("Unknown charset format "+c);for(;s.length<=n;)for(a=l.parseSID(),o=l.parseCard16(),r=0;r<=o;r+=1)s.push(u(i,a)),a+=1}return s}function m(e,t,n){var i,r,a={},o=new A.Parser(e,t),l=o.parseCard8();if(0===l){var s=o.parseCard8();for(i=0;i<s;i+=1)r=o.parseCard8(),a[r]=i}else{if(1!==l)throw new Error("Unknown encoding format "+l);var u=o.parseCard8();for(r=1,i=0;i<u;i+=1)for(var c=o.parseCard8(),f=o.parseCard8(),d=c;d<=c+f;d+=1)a[d]=r,r+=1}return new O.CffEncoding(a,n)}function v(e,t,n){function i(e,t){m&&c.closePath(),c.moveTo(e,t),m=!0}function r(){var e;e=f.length%2!==0,e&&!h&&(p=f.shift()+t.nominalWidthX),d+=f.length>>1,f.length=0,h=!0}function a(e){for(var y,b,S,w,N,D,T,F,x,k,B,C,L=0;L<e.length;){var W=e[L];switch(L+=1,W){case 1:r();break;case 3:r();break;case 4:f.length>1&&!h&&(p=f.shift()+t.nominalWidthX,h=!0),g+=f.pop(),i(v,g);break;case 5:for(;f.length>0;)v+=f.shift(),g+=f.shift(),c.lineTo(v,g);break;case 6:for(;f.length>0&&(v+=f.shift(),c.lineTo(v,g),0!==f.length);)g+=f.shift(),c.lineTo(v,g);break;case 7:for(;f.length>0&&(g+=f.shift(),c.lineTo(v,g),0!==f.length);)v+=f.shift(),c.lineTo(v,g);break;case 8:for(;f.length>0;)o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u+f.shift(),c.curveTo(o,l,s,u,v,g);break;case 10:N=f.pop()+t.subrsBias,D=t.subrs[N],D&&a(D);break;case 11:return;case 12:switch(W=e[L],L+=1,W){case 35:o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),T=s+f.shift(),F=u+f.shift(),x=T+f.shift(),k=F+f.shift(),B=x+f.shift(),C=k+f.shift(),v=B+f.shift(),g=C+f.shift(),f.shift(),c.curveTo(o,l,s,u,T,F),c.curveTo(x,k,B,C,v,g);break;case 34:o=v+f.shift(),l=g,s=o+f.shift(),u=l+f.shift(),T=s+f.shift(),F=u,x=T+f.shift(),k=u,
B=x+f.shift(),C=g,v=B+f.shift(),c.curveTo(o,l,s,u,T,F),c.curveTo(x,k,B,C,v,g);break;case 36:o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),T=s+f.shift(),F=u,x=T+f.shift(),k=u,B=x+f.shift(),C=k+f.shift(),v=B+f.shift(),c.curveTo(o,l,s,u,T,F),c.curveTo(x,k,B,C,v,g);break;case 37:o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),T=s+f.shift(),F=u+f.shift(),x=T+f.shift(),k=F+f.shift(),B=x+f.shift(),C=k+f.shift(),Math.abs(B-v)>Math.abs(C-g)?v=B+f.shift():g=C+f.shift(),c.curveTo(o,l,s,u,T,F),c.curveTo(x,k,B,C,v,g);break;default:console.log("Glyph "+n+": unknown operator 1200"+W),f.length=0}break;case 14:f.length>0&&!h&&(p=f.shift()+t.nominalWidthX,h=!0),m&&(c.closePath(),m=!1);break;case 18:r();break;case 19:case 20:r(),L+=d+7>>3;break;case 21:f.length>2&&!h&&(p=f.shift()+t.nominalWidthX,h=!0),g+=f.pop(),v+=f.pop(),i(v,g);break;case 22:f.length>1&&!h&&(p=f.shift()+t.nominalWidthX,h=!0),v+=f.pop(),i(v,g);break;case 23:r();break;case 24:for(;f.length>2;)o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u+f.shift(),c.curveTo(o,l,s,u,v,g);v+=f.shift(),g+=f.shift(),c.lineTo(v,g);break;case 25:for(;f.length>6;)v+=f.shift(),g+=f.shift(),c.lineTo(v,g);o=v+f.shift(),l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u+f.shift(),c.curveTo(o,l,s,u,v,g);break;case 26:for(f.length%2&&(v+=f.shift());f.length>0;)o=v,l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s,g=u+f.shift(),c.curveTo(o,l,s,u,v,g);break;case 27:for(f.length%2&&(g+=f.shift());f.length>0;)o=v+f.shift(),l=g,s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u,c.curveTo(o,l,s,u,v,g);break;case 28:y=e[L],b=e[L+1],f.push((y<<24|b<<16)>>16),L+=2;break;case 29:N=f.pop()+t.gsubrsBias,D=t.gsubrs[N],D&&a(D);break;case 30:for(;f.length>0&&(o=v,l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u+(1===f.length?f.shift():0),c.curveTo(o,l,s,u,v,g),0!==f.length);)o=v+f.shift(),l=g,s=o+f.shift(),u=l+f.shift(),g=u+f.shift(),v=s+(1===f.length?f.shift():0),c.curveTo(o,l,s,u,v,g);break;case 31:for(;f.length>0&&(o=v+f.shift(),l=g,s=o+f.shift(),u=l+f.shift(),g=u+f.shift(),v=s+(1===f.length?f.shift():0),c.curveTo(o,l,s,u,v,g),0!==f.length);)o=v,l=g+f.shift(),s=o+f.shift(),u=l+f.shift(),v=s+f.shift(),g=u+(1===f.length?f.shift():0),c.curveTo(o,l,s,u,v,g);break;default:W<32?console.log("Glyph "+n+": unknown operator "+W):W<247?f.push(W-139):W<251?(y=e[L],L+=1,f.push(256*(W-247)+y+108)):W<255?(y=e[L],L+=1,f.push(256*-(W-251)-y-108)):(y=e[L],b=e[L+1],S=e[L+2],w=e[L+3],L+=4,f.push((y<<24|b<<16|S<<8|w)/65536))}}}var o,l,s,u,c=new E.Path,f=[],d=0,h=!1,p=t.defaultWidthX,m=!1,v=0,g=0;a(e);var y=new U.Glyph({font:t,index:n});return y.path=c,y.advanceWidth=p,y}function g(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768}function y(e,t,n){n.tables.cff={};var i=f(e,t),a=r(e,i.endOffset,A.bytesToString),o=r(e,a.endOffset),l=r(e,o.endOffset,A.bytesToString),s=r(e,l.endOffset);n.gsubrs=s.objects,n.gsubrsBias=g(n.gsubrs);var u=new DataView(new Uint8Array(o.objects[0]).buffer),c=d(u,l.objects);n.tables.cff.topDict=c;var y=t+c["private"][1],b=h(e,y,c["private"][0],l.objects);if(n.defaultWidthX=b.defaultWidthX,n.nominalWidthX=b.nominalWidthX,0!==b.subrs){var S=y+b.subrs,w=r(e,S);n.subrs=w.objects,n.subrsBias=g(n.subrs)}else n.subrs=[],n.subrsBias=0;var N=r(e,t+c.charStrings);n.nGlyphs=N.objects.length;var D=p(e,t+c.charset,n.nGlyphs,l.objects);0===c.encoding?n.cffEncoding=new O.CffEncoding(O.cffStandardEncoding,D):1===c.encoding?n.cffEncoding=new O.CffEncoding(O.cffExpertEncoding,D):n.cffEncoding=m(e,t+c.encoding,D),n.encoding=n.encoding||n.cffEncoding,n.glyphs=[];for(var T=0;T<n.nGlyphs;T+=1){var F=N.objects[T];n.glyphs.push(v(F,n,T))}}function b(e,t){var n,i=O.cffStandardStrings.indexOf(e);return i>=0&&(n=i),i=t.indexOf(e),i>=0?n=i+O.cffStandardStrings.length:(n=O.cffStandardStrings.length+t.length,t.push(e)),n}function S(){return new M.Table("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}function w(e){var t=new M.Table("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}function N(e,t,n){for(var r={},a=0;a<e.length;a+=1){var o=e[a],l=t[o.name];void 0===l||i(l,o.value)||("SID"===o.type&&(l=b(l,n)),r[o.op]={name:o.name,type:o.type,value:l})}return r}function D(e,t){var n=new M.Table("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=N(X,e,t),n}function T(e){var t=new M.Table("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function F(e){var t=new M.Table("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}function x(){return new M.Table("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}function k(e,t){for(var n=new M.Table("Charsets",[{name:"format",type:"Card8",value:0}]),i=0;i<e.length;i+=1){var r=e[i],a=b(r,t);n.fields.push({name:"glyph_"+i,type:"SID",value:a})}return n}function B(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var i=0,r=0,a=0;a<n.commands.length;a+=1){var o,l,s=n.commands[a];if("Q"===s.type){var u=1/3,c=2/3;s={type:"C",x:s.x,y:s.y,x1:u*i+c*s.x1,y1:u*r+c*s.y1,x2:u*s.x+c*s.x1,y2:u*s.y+c*s.y1}}if("M"===s.type)o=Math.round(s.x-i),l=Math.round(s.y-r),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:l}),t.push({name:"rmoveto",type:"OP",value:21}),i=Math.round(s.x),r=Math.round(s.y);else if("L"===s.type)o=Math.round(s.x-i),l=Math.round(s.y-r),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:l}),t.push({name:"rlineto",type:"OP",value:5}),i=Math.round(s.x),r=Math.round(s.y);else if("C"===s.type){var f=Math.round(s.x1-i),d=Math.round(s.y1-r),h=Math.round(s.x2-s.x1),p=Math.round(s.y2-s.y1);o=Math.round(s.x-s.x2),l=Math.round(s.y-s.y2),t.push({name:"dx1",type:"NUMBER",value:f}),t.push({name:"dy1",type:"NUMBER",value:d}),t.push({name:"dx2",type:"NUMBER",value:h}),t.push({name:"dy2",type:"NUMBER",value:p}),t.push({name:"dx",type:"NUMBER",value:o}),t.push({name:"dy",type:"NUMBER",value:l}),t.push({name:"rrcurveto",type:"OP",value:8}),i=Math.round(s.x),r=Math.round(s.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}function C(e){for(var t=new M.Table("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var i=e[n],r=B(i);t.charStrings.push({name:i.name,type:"CHARSTRING",value:r})}return t}function L(e,t){var n=new M.Table("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=N(P,e,t),n}function W(e){var t=new M.Table("Private DICT INDEX",[{name:"privateDicts",type:"INDEX",value:[]}]);return t.privateDicts=[{name:"privateDict_0",type:"TABLE",value:e}],t}function _(e,t){for(var n=new M.Table("CFF ",[{name:"header",type:"TABLE"},{name:"nameIndex",type:"TABLE"},{name:"topDictIndex",type:"TABLE"},{name:"stringIndex",type:"TABLE"},{name:"globalSubrIndex",type:"TABLE"},{name:"charsets",type:"TABLE"},{name:"charStringsIndex",type:"TABLE"},{name:"privateDictIndex",type:"TABLE"}]),i={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,charset:999,encoding:0,charStrings:999,"private":[0,999]},r={},a=[],o=1;o<e.length;o+=1)a.push(e[o].name);var l=[];n.header=S(),n.nameIndex=w([t.postScriptName]);var s=D(i,l);n.topDictIndex=T(s),n.globalSubrIndex=x(),n.charsets=k(a,l),n.charStringsIndex=C(e);var u=L(r,l);n.privateDictIndex=W(u),n.stringIndex=F(l);var c=n.header.sizeOf()+n.nameIndex.sizeOf()+n.topDictIndex.sizeOf()+n.stringIndex.sizeOf()+n.globalSubrIndex.sizeOf();return i.charset=c,i.encoding=0,i.charStrings=i.charset+n.charsets.sizeOf(),i["private"][1]=i.charStrings+n.charStringsIndex.sizeOf(),s=D(i,l),n.topDictIndex=T(s),n}var O=n(21),U=n(24),A=n(10),E=n(19),M=n(11),X=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]}],P=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];t.parse=y,t.make=_},function(e,t,n){"use strict";function i(e,t){var n,i={};i.version=s.getUShort(e,t),l.argument(0===i.version,"cmap table version should be 0."),i.numTables=s.getUShort(e,t+2);var r=-1;for(n=0;n<i.numTables;n+=1){var a=s.getUShort(e,t+4+8*n),o=s.getUShort(e,t+4+8*n+2);if(3===a&&(1===o||0===o)){r=s.getULong(e,t+4+8*n+4);break}}if(r===-1)return null;var u=new s.Parser(e,t+r);i.format=u.parseUShort(),l.argument(4===i.format,"Only format 4 cmap tables are supported."),i.length=u.parseUShort(),i.language=u.parseUShort();var c;i.segCount=c=u.parseUShort()>>1,u.skip("uShort",3),i.glyphIndexMap={};var f=new s.Parser(e,t+r+14),d=new s.Parser(e,t+r+16+2*c),h=new s.Parser(e,t+r+16+4*c),p=new s.Parser(e,t+r+16+6*c),m=t+r+16+8*c;for(n=0;n<c-1;n+=1)for(var v,g=f.parseUShort(),y=d.parseUShort(),b=h.parseShort(),S=p.parseUShort(),w=y;w<=g;w+=1)0!==S?(m=p.offset+p.relativeOffset-2,m+=S,m+=2*(w-y),v=s.getUShort(e,m),0!==v&&(v=v+b&65535)):v=w+b&65535,i.glyphIndexMap[w]=v;return i}function r(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0})}function a(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function o(e){var t,n=new u.Table("cmap",[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:1},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:12},{name:"format",type:"USHORT",value:4},{name:"length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);for(n.segments=[],t=0;t<e.length;t+=1){for(var i=e[t],o=0;o<i.unicodes.length;o+=1)r(n,i.unicodes[o],t);n.segments=n.segments.sort(function(e,t){return e.start-t.start})}a(n);var l;l=n.segments.length,n.segCountX2=2*l,n.searchRange=2*Math.pow(2,Math.floor(Math.log(l)/Math.log(2))),n.entrySelector=Math.log(n.searchRange/2)/Math.log(2),n.rangeShift=n.segCountX2-n.searchRange;var s=[],c=[],f=[],d=[],h=[];for(t=0;t<l;t+=1){var p=n.segments[t];s=s.concat({name:"end_"+t,type:"USHORT",value:p.end}),c=c.concat({name:"start_"+t,type:"USHORT",value:p.start}),f=f.concat({name:"idDelta_"+t,type:"SHORT",value:p.delta}),d=d.concat({name:"idRangeOffset_"+t,type:"USHORT",value:p.offset}),void 0!==p.glyphId&&(h=h.concat({name:"glyph_"+t,type:"USHORT",value:p.glyphId}))}return n.fields=n.fields.concat(s),n.fields.push({name:"reservedPad",type:"USHORT",value:0}),n.fields=n.fields.concat(c),n.fields=n.fields.concat(f),n.fields=n.fields.concat(d),n.fields=n.fields.concat(h),n.length=14+2*s.length+2+2*c.length+2*f.length+2*d.length+2*h.length,n}var l=n(12),s=n(10),u=n(11);t.parse=i,t.make=o},function(e,t,n){"use strict";function i(e,t){var n={},i=new o.Parser(e,t);return n.version=i.parseVersion(),n.fontRevision=Math.round(1e3*i.parseFixed())/1e3,n.checkSumAdjustment=i.parseULong(),n.magicNumber=i.parseULong(),a.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=i.parseUShort(),n.unitsPerEm=i.parseUShort(),n.created=i.parseLongDateTime(),n.modified=i.parseLongDateTime(),n.xMin=i.parseShort(),n.yMin=i.parseShort(),n.xMax=i.parseShort(),n.yMax=i.parseShort(),n.macStyle=i.parseUShort(),n.lowestRecPPEM=i.parseUShort(),n.fontDirectionHint=i.parseShort(),n.indexToLocFormat=i.parseShort(),n.glyphDataFormat=i.parseShort(),n}function r(e){return new l.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:0},{name:"modified",type:"LONGDATETIME",value:0},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}var a=n(12),o=n(10),l=n(11);t.parse=i,t.make=r},function(e,t,n){"use strict";function i(e,t){var n={},i=new a.Parser(e,t);return n.version=i.parseVersion(),n.ascender=i.parseShort(),n.descender=i.parseShort(),n.lineGap=i.parseShort(),n.advanceWidthMax=i.parseUShort(),n.minLeftSideBearing=i.parseShort(),n.minRightSideBearing=i.parseShort(),n.xMaxExtent=i.parseShort(),n.caretSlopeRise=i.parseShort(),n.caretSlopeRun=i.parseShort(),n.caretOffset=i.parseShort(),i.relativeOffset+=8,n.metricDataFormat=i.parseShort(),n.numberOfHMetrics=i.parseUShort(),n}function r(e){return new o.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}var a=n(10),o=n(11);t.parse=i,t.make=r},function(e,t,n){"use strict";function i(e,t,n,i,r){for(var o,l,s=new a.Parser(e,t),u=0;u<i;u+=1){u<n&&(o=s.parseUShort(),l=s.parseShort());var c=r[u];c.advanceWidth=o,c.leftSideBearing=l}}function r(e){for(var t=new o.Table("hmtx",[]),n=0;n<e.length;n+=1){var i=e[n],r=i.advanceWidth||0,a=i.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:r}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:a})}return t}var a=n(10),o=n(11);t.parse=i,t.make=r},function(e,t,n){"use strict";function i(e,t){var n={},i=new a.Parser(e,t);return n.version=i.parseVersion(),n.numGlyphs=i.parseUShort(),1===n.version&&(n.maxPoints=i.parseUShort(),n.maxContours=i.parseUShort(),n.maxCompositePoints=i.parseUShort(),n.maxCompositeContours=i.parseUShort(),n.maxZones=i.parseUShort(),n.maxTwilightPoints=i.parseUShort(),n.maxStorage=i.parseUShort(),n.maxFunctionDefs=i.parseUShort(),n.maxInstructionDefs=i.parseUShort(),n.maxStackElements=i.parseUShort(),n.maxSizeOfInstructions=i.parseUShort(),n.maxComponentElements=i.parseUShort(),n.maxComponentDepth=i.parseUShort()),n}function r(e){return new o.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}var a=n(10),o=n(11);t.parse=i,t.make=r},function(e,t,n){"use strict";function i(e,t){var n={},i=new u.Parser(e,t);n.format=i.parseUShort();for(var r=i.parseUShort(),a=i.offset+i.parseUShort(),o=0,l=0;l<r;l++){var s=i.parseUShort(),c=i.parseUShort(),d=i.parseUShort(),h=i.parseUShort(),p=f[h],m=i.parseUShort(),v=i.parseUShort();if(3===s&&1===c&&1033===d){for(var g=[],y=m/2,b=0;b<y;b++,v+=2)g[b]=u.getShort(e,a+v);var S=String.fromCharCode.apply(null,g);p?n[p]=S:(o++,n["unknown"+o]=S)}}return 1===n.format&&(n.langTagCount=i.parseUShort()),n}function r(e,t,n,i,r,a){return new c.Table("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:i},{name:"length",type:"USHORT",value:r},{name:"offset",type:"USHORT",value:a}])}function a(e,t,n,i){var a=s.STRING(n);return e.records.push(r(1,0,0,t,a.length,i)),e.strings.push(a),i+=a.length}function o(e,t,n,i){var a=s.UTF16(n);return e.records.push(r(3,1,1033,t,a.length,i)),e.strings.push(a),i+=a.length}function l(e){var t=new c.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:0},{name:"stringOffset",type:"USHORT",value:0}]);t.records=[],t.strings=[];var n,i,r=0;for(n=0;n<f.length;n+=1)void 0!==e[f[n]]&&(i=e[f[n]],r=a(t,n,i,r));for(n=0;n<f.length;n+=1)void 0!==e[f[n]]&&(i=e[f[n]],r=o(t,n,i,r));for(t.count=t.records.length,t.stringOffset=6+12*t.count,n=0;n<t.records.length;n+=1)t.fields.push({name:"record_"+n,type:"TABLE",value:t.records[n]});for(n=0;n<t.strings.length;n+=1)t.fields.push({name:"string_"+n,type:"LITERAL",value:t.strings[n]});return t}var s=n(25).encode,u=n(10),c=n(11),f=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","licence","licenceURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"];t.parse=i,t.make=l},function(e,t,n){"use strict";function i(e){for(var t=0;t<s.length;t+=1){var n=s[t];if(e>=n.begin&&e<n.end)return t}return-1}function r(e,t){var n={},i=new o.Parser(e,t);n.version=i.parseUShort(),n.xAvgCharWidth=i.parseShort(),n.usWeightClass=i.parseUShort(),n.usWidthClass=i.parseUShort(),n.fsType=i.parseUShort(),n.ySubscriptXSize=i.parseShort(),n.ySubscriptYSize=i.parseShort(),n.ySubscriptXOffset=i.parseShort(),n.ySubscriptYOffset=i.parseShort(),n.ySuperscriptXSize=i.parseShort(),n.ySuperscriptYSize=i.parseShort(),n.ySuperscriptXOffset=i.parseShort(),n.ySuperscriptYOffset=i.parseShort(),n.yStrikeoutSize=i.parseShort(),n.yStrikeoutPosition=i.parseShort(),n.sFamilyClass=i.parseShort(),n.panose=[];for(var r=0;r<10;r++)n.panose[r]=i.parseByte();return n.ulUnicodeRange1=i.parseULong(),n.ulUnicodeRange2=i.parseULong(),n.ulUnicodeRange3=i.parseULong(),n.ulUnicodeRange4=i.parseULong(),n.achVendID=String.fromCharCode(i.parseByte(),i.parseByte(),i.parseByte(),i.parseByte()),n.fsSelection=i.parseUShort(),n.usFirstCharIndex=i.parseUShort(),n.usLastCharIndex=i.parseUShort(),n.sTypoAscender=i.parseShort(),n.sTypoDescender=i.parseShort(),n.sTypoLineGap=i.parseShort(),n.usWinAscent=i.parseUShort(),n.usWinDescent=i.parseUShort(),n.version>=1&&(n.ulCodePageRange1=i.parseULong(),n.ulCodePageRange2=i.parseULong()),n.version>=2&&(n.sxHeight=i.parseShort(),n.sCapHeight=i.parseShort(),n.usDefaultChar=i.parseUShort(),n.usBreakChar=i.parseUShort(),n.usMaxContent=i.parseUShort()),n}function a(e){return new l.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)}var o=n(10),l=n(11),s=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];t.unicodeRanges=s,t.getUnicodeRange=i,t.parse=r,t.make=a},function(e,t,n){"use strict";function i(e,t){var n,i={},r=new o.Parser(e,t);switch(i.version=r.parseVersion(),i.italicAngle=r.parseFixed(),i.underlinePosition=r.parseShort(),i.underlineThickness=r.parseShort(),i.isFixedPitch=r.parseULong(),i.minMemType42=r.parseULong(),i.maxMemType42=r.parseULong(),i.minMemType1=r.parseULong(),i.maxMemType1=r.parseULong(),i.version){case 1:i.names=a.standardNames.slice();break;case 2:for(i.numberOfGlyphs=r.parseUShort(),i.glyphNameIndex=new Array(i.numberOfGlyphs),n=0;n<i.numberOfGlyphs;n++)i.glyphNameIndex[n]=r.parseUShort();for(i.names=[],n=0;n<i.numberOfGlyphs;n++)if(i.glyphNameIndex[n]>=a.standardNames.length){var l=r.parseChar();i.names.push(r.parseString(l))}break;case 2.5:for(i.numberOfGlyphs=r.parseUShort(),i.offset=new Array(i.numberOfGlyphs),n=0;n<i.numberOfGlyphs;n++)i.offset[n]=r.parseChar()}return i}function r(){return new l.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}var a=n(21),o=n(10),l=n(11);t.parse=i,t.make=r},function(e,t){"use strict";function n(e,t,n,i,r){if(!e)return[{p:[],oi:t}].concat(i);var a=Object.keys(r).map(function(i){if(void 0===n[i]&&t[i]!==e[i]&&(t[i]===t[i]||e[i]===e[i]))return void 0===t[i]?{p:[i],od:e[i]}:void 0===e[i]?{p:[i],oi:t[i]}:{p:[i],od:e[i],oi:t[i]}}).filter(function(e){return Boolean(e)});return Object.keys(n).map(function(t){if(void 0===e[t])a.push({p:[t],oi:n[t].build()});else{var i=n[t].patch().map(function(e){return e.p=[t].concat(e.p),e});a=a.concat(i)}}),a.concat(i)}function i(e,t){return t(new Gu(e)).patch()}function r(e){return e(new Gu).build()}function a(e,t){return t(new Vu(e)).patch()}function o(e){return e(new Vu).build()}function l(e,t){return t(new Qu(e)).patch()}function s(e){return e(new Qu).build()}function u(e,t){return t(new Ju(e)).patch()}function c(e){return e(new Ju).build()}function f(e,t){return t(new Ku(e)).patch()}function d(e){return e(new Ku).build()}function h(e,t){return t(new Zu(e)).patch()}function p(e){return e(new Zu).build()}function m(e,t){return t(new $u(e)).patch()}function v(e){return e(new $u).build()}function g(e,t){return t(new ec(e)).patch()}function y(e){return e(new ec).build()}function b(e,t){return t(new tc(e)).patch()}function S(e){return e(new tc).build()}function w(e,t){return t(new nc(e)).patch()}function N(e){return e(new nc).build()}function D(e,t){return t(new ic(e)).patch()}function T(e){return e(new ic).build()}function F(e,t){return t(new rc(e)).patch()}function x(e){return e(new rc).build()}function k(e,t){return t(new ac(e)).patch()}function B(e){return e(new ac).build()}function C(e,t){return t(new oc(e)).patch()}function L(e){return e(new oc).build()}function W(e,t){return t(new lc(e)).patch()}function _(e){return e(new lc).build()}function O(e,t){return t(new sc(e)).patch()}function U(e){return e(new sc).build()}function A(e,t){return t(new uc(e)).patch()}function E(e){return e(new uc).build()}function M(e,t){return t(new cc(e)).patch()}function X(e){return e(new cc).build()}function P(e,t){return t(new fc(e)).patch()}function Y(e){return e(new fc).build()}function R(e,t){return t(new dc(e)).patch()}function z(e){return e(new dc).build()}function I(e,t){return t(new hc(e)).patch()}function H(e){return e(new hc).build()}function j(e,t){return t(new pc(e)).patch()}function q(e){return e(new pc).build()}function G(e,t){return t(new mc(e)).patch()}function V(e){return e(new mc).build()}function Q(e,t){return t(new vc(e)).patch()}function J(e){return e(new vc).build()}function K(e,t){return t(new gc(e)).patch()}function Z(e){return e(new gc).build()}function $(e,t){return t(new yc(e)).patch()}function ee(e){return e(new yc).build()}function te(e,t){return t(new bc(e)).patch()}function ne(e){return e(new bc).build()}function ie(e,t){return t(new Sc(e)).patch()}function re(e){return e(new Sc).build()}function ae(e,t){return t(new wc(e)).patch()}function oe(e){return e(new wc).build()}function le(e,t){return t(new Nc(e)).patch()}function se(e){return e(new Nc).build()}function ue(e,t){return t(new Dc(e)).patch()}function ce(e){return e(new Dc).build()}function fe(e,t){return t(new Tc(e)).patch()}function de(e){return e(new Tc).build()}function he(e,t){return t(new Fc(e)).patch()}function pe(e){return e(new Fc).build()}function me(e,t){return t(new xc(e)).patch()}function ve(e){return e(new xc).build()}function ge(e,t){return t(new kc(e)).patch()}function ye(e){return e(new kc).build()}function be(e,t){return t(new Bc(e)).patch()}function Se(e){return e(new Bc).build()}function we(e,t){return t(new Cc(e)).patch()}function Ne(e){return e(new Cc).build()}function De(e,t){return t(new Lc(e)).patch()}function Te(e){return e(new Lc).build()}function Fe(e,t){return t(new Wc(e)).patch()}function xe(e){return e(new Wc).build()}function ke(e,t){return t(new _c(e)).patch()}function Be(e){return e(new _c).build()}function Ce(e,t){return t(new Oc(e)).patch()}function Le(e){return e(new Oc).build()}function We(e,t){return t(new Uc(e)).patch()}function _e(e){return e(new Uc).build()}function Oe(e,t){return t(new Ac(e)).patch()}function Ue(e){return e(new Ac).build()}function Ae(e,t){return t(new Ec(e)).patch()}function Ee(e){return e(new Ec).build()}function Me(e,t){return t(new Mc(e)).patch()}function Xe(e){return e(new Mc).build()}function Pe(e,t){return t(new Xc(e)).patch()}function Ye(e){return e(new Xc).build()}function Re(e,t){return t(new Pc(e)).patch()}function ze(e){return e(new Pc).build()}function Ie(e,t){return t(new Yc(e)).patch()}function He(e){return e(new Yc).build()}function je(e,t){return t(new Rc(e)).patch()}function qe(e){return e(new Rc).build()}function Ge(e,t){return t(new zc(e)).patch()}function Ve(e){return e(new zc).build()}function Qe(e,t){return t(new Ic(e)).patch()}function Je(e){return e(new Ic).build()}function Ke(e,t){return t(new Hc(e)).patch()}function Ze(e){return e(new Hc).build()}function $e(e,t){return t(new jc(e)).patch()}function et(e){return e(new jc).build()}function tt(e,t){return t(new qc(e)).patch()}function nt(e){return e(new qc).build()}function it(e,t){return t(new Gc(e)).patch()}function rt(e){return e(new Gc).build()}function at(e,t){return t(new Vc(e)).patch()}function ot(e){return e(new Vc).build()}function lt(e,t){return t(new Qc(e)).patch()}function st(e){return e(new Qc).build()}function ut(e,t){return t(new Jc(e)).patch()}function ct(e){return e(new Jc).build()}function ft(e,t){return t(new Kc(e)).patch()}function dt(e){return e(new Kc).build()}function ht(e,t){return t(new Zc(e)).patch()}function pt(e){return e(new Zc).build()}function mt(e,t){return t(new $c(e)).patch()}function vt(e){return e(new $c).build()}function gt(e,t){return t(new ef(e)).patch()}function yt(e){return e(new ef).build()}function bt(e,t){return t(new tf(e)).patch()}function St(e){return e(new tf).build()}function wt(e,t){return t(new nf(e)).patch()}function Nt(e){return e(new nf).build()}function Dt(e,t){return t(new rf(e)).patch()}function Tt(e){return e(new rf).build()}function Ft(e,t){return t(new af(e)).patch()}function xt(e){return e(new af).build()}function kt(e,t){return t(new of(e)).patch()}function Bt(e){return e(new of).build()}function Ct(e,t){return t(new lf(e)).patch()}function Lt(e){
return e(new lf).build()}function Wt(e,t){return t(new sf(e)).patch()}function _t(e){return e(new sf).build()}function Ot(e,t){return t(new uf(e)).patch()}function Ut(e){return e(new uf).build()}function At(e,t){return t(new cf(e)).patch()}function Et(e){return e(new cf).build()}function Mt(e,t){return t(new ff(e)).patch()}function Xt(e){return e(new ff).build()}function Pt(e,t){return t(new df(e)).patch()}function Yt(e){return e(new df).build()}function Rt(e,t){return t(new hf(e)).patch()}function zt(e){return e(new hf).build()}function It(e,t){return t(new pf(e)).patch()}function Ht(e){return e(new pf).build()}function jt(e,t){return t(new mf(e)).patch()}function qt(e){return e(new mf).build()}function Gt(e,t){return t(new vf(e)).patch()}function Vt(e){return e(new vf).build()}function Qt(e,t){return t(new gf(e)).patch()}function Jt(e){return e(new gf).build()}function Kt(e,t){return t(new yf(e)).patch()}function Zt(e){return e(new yf).build()}function $t(e,t){return t(new bf(e)).patch()}function en(e){return e(new bf).build()}function tn(e,t){return t(new Sf(e)).patch()}function nn(e){return e(new Sf).build()}function rn(e,t){return t(new wf(e)).patch()}function an(e){return e(new wf).build()}function on(e,t){return t(new Nf(e)).patch()}function ln(e){return e(new Nf).build()}function sn(e,t){return t(new Df(e)).patch()}function un(e){return e(new Df).build()}function cn(e,t){return t(new Tf(e)).patch()}function fn(e){return e(new Tf).build()}function dn(e,t){return t(new Ff(e)).patch()}function hn(e){return e(new Ff).build()}function pn(e,t){return t(new xf(e)).patch()}function mn(e){return e(new xf).build()}function vn(e,t){return t(new kf(e)).patch()}function gn(e){return e(new kf).build()}function yn(e,t){return t(new Bf(e)).patch()}function bn(e){return e(new Bf).build()}function Sn(e,t){return t(new Cf(e)).patch()}function wn(e){return e(new Cf).build()}function Nn(e,t){return t(new Lf(e)).patch()}function Dn(e){return e(new Lf).build()}function Tn(e,t){return t(new Wf(e)).patch()}function Fn(e){return e(new Wf).build()}function xn(e,t){return t(new _f(e)).patch()}function kn(e){return e(new _f).build()}function Bn(e,t){return t(new Of(e)).patch()}function Cn(e){return e(new Of).build()}function Ln(e,t){return t(new Uf(e)).patch()}function Wn(e){return e(new Uf).build()}function _n(e,t){return t(new Af(e)).patch()}function On(e){return e(new Af).build()}function Un(e,t){return t(new Ef(e)).patch()}function An(e){return e(new Ef).build()}function En(e,t){return t(new Mf(e)).patch()}function Mn(e){return e(new Mf).build()}function Xn(e,t){return t(new Xf(e)).patch()}function Pn(e){return e(new Xf).build()}function Yn(e,t){return t(new Pf(e)).patch()}function Rn(e){return e(new Pf).build()}function zn(e,t){return t(new Yf(e)).patch()}function In(e){return e(new Yf).build()}function Hn(e,t){return t(new Rf(e)).patch()}function jn(e){return e(new Rf).build()}function qn(e,t){return t(new zf(e)).patch()}function Gn(e){return e(new zf).build()}function Vn(e,t){return t(new If(e)).patch()}function Qn(e){return e(new If).build()}function Jn(e,t){return t(new Hf(e)).patch()}function Kn(e){return e(new Hf).build()}function Zn(e,t){return t(new jf(e)).patch()}function $n(e){return e(new jf).build()}function ei(e,t){return t(new qf(e)).patch()}function ti(e){return e(new qf).build()}function ni(e,t){return t(new Gf(e)).patch()}function ii(e){return e(new Gf).build()}function ri(e,t){return t(new Vf(e)).patch()}function ai(e){return e(new Vf).build()}function oi(e,t){return t(new Qf(e)).patch()}function li(e){return e(new Qf).build()}function si(e,t){return t(new Jf(e)).patch()}function ui(e){return e(new Jf).build()}function ci(e,t){return t(new Kf(e)).patch()}function fi(e){return e(new Kf).build()}function di(e,t){return t(new Zf(e)).patch()}function hi(e){return e(new Zf).build()}function pi(e,t){return t(new $f(e)).patch()}function mi(e){return e(new $f).build()}function vi(e,t){return t(new ed(e)).patch()}function gi(e){return e(new ed).build()}function yi(e,t){return t(new td(e)).patch()}function bi(e){return e(new td).build()}function Si(e,t){return t(new nd(e)).patch()}function wi(e){return e(new nd).build()}function Ni(e,t){return t(new id(e)).patch()}function Di(e){return e(new id).build()}function Ti(e,t){return t(new rd(e)).patch()}function Fi(e){return e(new rd).build()}function xi(e,t){return t(new ad(e)).patch()}function ki(e){return e(new ad).build()}function Bi(e,t){return t(new od(e)).patch()}function Ci(e){return e(new od).build()}function Li(e,t){return t(new ld(e)).patch()}function Wi(e){return e(new ld).build()}function _i(e,t){return t(new sd(e)).patch()}function Oi(e){return e(new sd).build()}function Ui(e,t){return t(new ud(e)).patch()}function Ai(e){return e(new ud).build()}function Ei(e,t){return t(new cd(e)).patch()}function Mi(e){return e(new cd).build()}function Xi(e,t){return t(new fd(e)).patch()}function Pi(e){return e(new fd).build()}function Yi(e,t){return t(new dd(e)).patch()}function Ri(e){return e(new dd).build()}function zi(e,t){return t(new hd(e)).patch()}function Ii(e){return e(new hd).build()}function Hi(e,t){return t(new pd(e)).patch()}function ji(e){return e(new pd).build()}function qi(e,t){return t(new md(e)).patch()}function Gi(e){return e(new md).build()}function Vi(e,t){return t(new vd(e)).patch()}function Qi(e){return e(new vd).build()}function Ji(e,t){return t(new gd(e)).patch()}function Ki(e){return e(new gd).build()}function Zi(e,t){return t(new yd(e)).patch()}function $i(e){return e(new yd).build()}function er(e,t){return t(new bd(e)).patch()}function tr(e){return e(new bd).build()}function nr(e,t){return t(new Sd(e)).patch()}function ir(e){return e(new Sd).build()}function rr(e,t){return t(new wd(e)).patch()}function ar(e){return e(new wd).build()}function or(e,t){return t(new Nd(e)).patch()}function lr(e){return e(new Nd).build()}function sr(e,t){return t(new Dd(e)).patch()}function ur(e){return e(new Dd).build()}function cr(e,t){return t(new Td(e)).patch()}function fr(e){return e(new Td).build()}function dr(e,t){return t(new Fd(e)).patch()}function hr(e){return e(new Fd).build()}function pr(e,t){return t(new xd(e)).patch()}function mr(e){return e(new xd).build()}function vr(e,t){return t(new kd(e)).patch()}function gr(e){return e(new kd).build()}function yr(e,t){return t(new Bd(e)).patch()}function br(e){return e(new Bd).build()}function Sr(e,t){return t(new Cd(e)).patch()}function wr(e){return e(new Cd).build()}function Nr(e,t){return t(new Ld(e)).patch()}function Dr(e){return e(new Ld).build()}function Tr(e,t){return t(new Wd(e)).patch()}function Fr(e){return e(new Wd).build()}function xr(e,t){return t(new _d(e)).patch()}function kr(e){return e(new _d).build()}function Br(e,t){return t(new Od(e)).patch()}function Cr(e){return e(new Od).build()}function Lr(e,t){return t(new Ud(e)).patch()}function Wr(e){return e(new Ud).build()}function _r(e,t){return t(new Ad(e)).patch()}function Or(e){return e(new Ad).build()}function Ur(e,t){return t(new Ed(e)).patch()}function Ar(e){return e(new Ed).build()}function Er(e,t){return t(new Md(e)).patch()}function Mr(e){return e(new Md).build()}function Xr(e,t){return t(new Xd(e)).patch()}function Pr(e){return e(new Xd).build()}function Yr(e,t){return t(new Pd(e)).patch()}function Rr(e){return e(new Pd).build()}function zr(e,t){return t(new Yd(e)).patch()}function Ir(e){return e(new Yd).build()}function Hr(e,t){return t(new Rd(e)).patch()}function jr(e){return e(new Rd).build()}function qr(e,t){return t(new zd(e)).patch()}function Gr(e){return e(new zd).build()}function Vr(e,t){return t(new Id(e)).patch()}function Qr(e){return e(new Id).build()}function Jr(e,t){return t(new Hd(e)).patch()}function Kr(e){return e(new Hd).build()}function Zr(e,t){return t(new jd(e)).patch()}function $r(e){return e(new jd).build()}function ea(e,t){return t(new qd(e)).patch()}function ta(e){return e(new qd).build()}function na(e,t){return t(new Gd(e)).patch()}function ia(e){return e(new Gd).build()}function ra(e,t){return t(new Vd(e)).patch()}function aa(e){return e(new Vd).build()}function oa(e,t){return t(new Qd(e)).patch()}function la(e){return e(new Qd).build()}function sa(e,t){return t(new Jd(e)).patch()}function ua(e){return e(new Jd).build()}function ca(e,t){return t(new Kd(e)).patch()}function fa(e){return e(new Kd).build()}function da(e,t){return t(new Zd(e)).patch()}function ha(e){return e(new Zd).build()}function pa(e,t){return t(new $d(e)).patch()}function ma(e){return e(new $d).build()}function va(e,t){return t(new eh(e)).patch()}function ga(e){return e(new eh).build()}function ya(e,t){return t(new th(e)).patch()}function ba(e){return e(new th).build()}function Sa(e,t){return t(new nh(e)).patch()}function wa(e){return e(new nh).build()}function Na(e,t){return t(new ih(e)).patch()}function Da(e){return e(new ih).build()}function Ta(e,t){return t(new rh(e)).patch()}function Fa(e){return e(new rh).build()}function xa(e,t){return t(new ah(e)).patch()}function ka(e){return e(new ah).build()}function Ba(e,t){return t(new oh(e)).patch()}function Ca(e){return e(new oh).build()}function La(e,t){return t(new lh(e)).patch()}function Wa(e){return e(new lh).build()}function _a(e,t){return t(new sh(e)).patch()}function Oa(e){return e(new sh).build()}function Ua(e,t){return t(new uh(e)).patch()}function Aa(e){return e(new uh).build()}function Ea(e,t){return t(new ch(e)).patch()}function Ma(e){return e(new ch).build()}function Xa(e,t){return t(new fh(e)).patch()}function Pa(e){return e(new fh).build()}function Ya(e,t){return t(new dh(e)).patch()}function Ra(e){return e(new dh).build()}function za(e,t){return t(new hh(e)).patch()}function Ia(e){return e(new hh).build()}function Ha(e,t){return t(new ph(e)).patch()}function ja(e){return e(new ph).build()}function qa(e,t){return t(new mh(e)).patch()}function Ga(e){return e(new mh).build()}function Va(e,t){return t(new vh(e)).patch()}function Qa(e){return e(new vh).build()}function Ja(e,t){return t(new gh(e)).patch()}function Ka(e){return e(new gh).build()}function Za(e,t){return t(new yh(e)).patch()}function $a(e){return e(new yh).build()}function eo(e,t){return t(new bh(e)).patch()}function to(e){return e(new bh).build()}function no(e,t){return t(new Sh(e)).patch()}function io(e){return e(new Sh).build()}function ro(e,t){return t(new wh(e)).patch()}function ao(e){return e(new wh).build()}function oo(e,t){return t(new Nh(e)).patch()}function lo(e){return e(new Nh).build()}function so(e,t){return t(new Dh(e)).patch()}function uo(e){return e(new Dh).build()}function co(e,t){return t(new Th(e)).patch()}function fo(e){return e(new Th).build()}function ho(e,t){return t(new Fh(e)).patch()}function po(e){return e(new Fh).build()}function mo(e,t){return t(new xh(e)).patch()}function vo(e){return e(new xh).build()}function go(e,t){return t(new kh(e)).patch()}function yo(e){return e(new kh).build()}function bo(e,t){return t(new Bh(e)).patch()}function So(e){return e(new Bh).build()}function wo(e,t){return t(new Ch(e)).patch()}function No(e){return e(new Ch).build()}function Do(e,t){return t(new Lh(e)).patch()}function To(e){return e(new Lh).build()}function Fo(e,t){return t(new Wh(e)).patch()}function xo(e){return e(new Wh).build()}function ko(e,t){return t(new _h(e)).patch()}function Bo(e){return e(new _h).build()}function Co(e,t){return t(new Oh(e)).patch()}function Lo(e){return e(new Oh).build()}function Wo(e,t){return t(new Uh(e)).patch()}function _o(e){return e(new Uh).build()}function Oo(e,t){return t(new Ah(e)).patch()}function Uo(e){return e(new Ah).build()}function Ao(e,t){return t(new Eh(e)).patch()}function Eo(e){return e(new Eh).build()}function Mo(e,t){return t(new Mh(e)).patch()}function Xo(e){return e(new Mh).build()}function Po(e,t){return t(new Xh(e)).patch()}function Yo(e){return e(new Xh).build()}function Ro(e,t){return t(new Ph(e)).patch()}function zo(e){return e(new Ph).build()}function Io(e,t){return t(new Yh(e)).patch()}function Ho(e){return e(new Yh).build()}function jo(e,t){return t(new Rh(e)).patch()}function qo(e){return e(new Rh).build()}function Go(e,t){return t(new zh(e)).patch()}function Vo(e){return e(new zh).build()}function Qo(e,t){return t(new Ih(e)).patch()}function Jo(e){return e(new Ih).build()}function Ko(e,t){return t(new Hh(e)).patch()}function Zo(e){return e(new Hh).build()}function $o(e,t){return t(new jh(e)).patch()}function el(e){return e(new jh).build()}function tl(e,t){return t(new qh(e)).patch()}function nl(e){return e(new qh).build()}function il(e,t){return t(new Gh(e)).patch()}function rl(e){return e(new Gh).build()}function al(e,t){return t(new Vh(e)).patch()}function ol(e){return e(new Vh).build()}function ll(e,t){return t(new Qh(e)).patch()}function sl(e){return e(new Qh).build()}function ul(e,t){return t(new Jh(e)).patch()}function cl(e){return e(new Jh).build()}function fl(e,t){return t(new Kh(e)).patch()}function dl(e){return e(new Kh).build()}function hl(e,t){return t(new Zh(e)).patch()}function pl(e){return e(new Zh).build()}function ml(e,t){return t(new $h(e)).patch()}function vl(e){return e(new $h).build()}function gl(e,t){return t(new ep(e)).patch()}function yl(e){return e(new ep).build()}function bl(e,t){return t(new tp(e)).patch()}function Sl(e){return e(new tp).build()}function wl(e,t){return t(new np(e)).patch()}function Nl(e){return e(new np).build()}function Dl(e,t){return t(new ip(e)).patch()}function Tl(e){return e(new ip).build()}function Fl(e,t){return t(new rp(e)).patch()}function xl(e){return e(new rp).build()}function kl(e,t){return t(new ap(e)).patch()}function Bl(e){return e(new ap).build()}function Cl(e,t){return t(new op(e)).patch()}function Ll(e){return e(new op).build()}function Wl(e,t){return t(new lp(e)).patch()}function _l(e){return e(new lp).build()}function Ol(e,t){return t(new sp(e)).patch()}function Ul(e){return e(new sp).build()}function Al(e,t){return t(new up(e)).patch()}function El(e){return e(new up).build()}function Ml(e,t){return t(new cp(e)).patch()}function Xl(e){return e(new cp).build()}function Pl(e,t){return t(new fp(e)).patch()}function Yl(e){return e(new fp).build()}function Rl(e,t){return t(new dp(e)).patch()}function zl(e){return e(new dp).build()}function Il(e,t){return t(new hp(e)).patch()}function Hl(e){return e(new hp).build()}function jl(e,t){return t(new pp(e)).patch()}function ql(e){return e(new pp).build()}function Gl(e,t){return t(new mp(e)).patch()}function Vl(e){return e(new mp).build()}function Ql(e,t){return t(new vp(e)).patch()}function Jl(e){return e(new vp).build()}function Kl(e,t){return t(new gp(e)).patch()}function Zl(e){return e(new gp).build()}function $l(e,t){return t(new yp(e)).patch()}function es(e){return e(new yp).build()}function ts(e,t){return t(new bp(e)).patch()}function ns(e){return e(new bp).build()}function is(e,t){return t(new Sp(e)).patch()}function rs(e){return e(new Sp).build()}function as(e,t){return t(new wp(e)).patch()}function os(e){return e(new wp).build()}function ls(e,t){return t(new Np(e)).patch()}function ss(e){return e(new Np).build()}function us(e,t){return t(new Dp(e)).patch()}function cs(e){return e(new Dp).build()}function fs(e,t){return t(new Tp(e)).patch()}function ds(e){return e(new Tp).build()}function hs(e,t){return t(new Fp(e)).patch()}function ps(e){return e(new Fp).build()}function ms(e,t){return t(new xp(e)).patch()}function vs(e){return e(new xp).build()}function gs(e,t){return t(new kp(e)).patch()}function ys(e){return e(new kp).build()}function bs(e,t){return t(new Bp(e)).patch()}function Ss(e){return e(new Bp).build()}function ws(e,t){return t(new Cp(e)).patch()}function Ns(e){return e(new Cp).build()}function Ds(e,t){return t(new Lp(e)).patch()}function Ts(e){return e(new Lp).build()}function Fs(e,t){return t(new Wp(e)).patch()}function xs(e){return e(new Wp).build()}function ks(e,t){return t(new _p(e)).patch()}function Bs(e){return e(new _p).build()}function Cs(e,t){return t(new Op(e)).patch()}function Ls(e){return e(new Op).build()}function Ws(e,t){return t(new Up(e)).patch()}function _s(e){return e(new Up).build()}function Os(e,t){return t(new Ap(e)).patch()}function Us(e){return e(new Ap).build()}function As(e,t){return t(new Ep(e)).patch()}function Es(e){return e(new Ep).build()}function Ms(e,t){return t(new Mp(e)).patch()}function Xs(e){return e(new Mp).build()}function Ps(e,t){return t(new Xp(e)).patch()}function Ys(e){return e(new Xp).build()}function Rs(e,t){return t(new Pp(e)).patch()}function zs(e){return e(new Pp).build()}function Is(e,t){return t(new Yp(e)).patch()}function Hs(e){return e(new Yp).build()}function js(e,t){return t(new Rp(e)).patch()}function qs(e){return e(new Rp).build()}function Gs(e,t){return t(new zp(e)).patch()}function Vs(e){return e(new zp).build()}function Qs(e,t){return t(new Ip(e)).patch()}function Js(e){return e(new Ip).build()}function Ks(e,t){return t(new Hp(e)).patch()}function Zs(e){return e(new Hp).build()}function $s(e,t){return t(new jp(e)).patch()}function eu(e){return e(new jp).build()}function tu(e,t){return t(new qp(e)).patch()}function nu(e){return e(new qp).build()}function iu(e,t){return t(new Gp(e)).patch()}function ru(e){return e(new Gp).build()}function au(e,t){return t(new Vp(e)).patch()}function ou(e){return e(new Vp).build()}function lu(e,t){return t(new Qp(e)).patch()}function su(e){return e(new Qp).build()}function uu(e,t){return t(new Jp(e)).patch()}function cu(e){return e(new Jp).build()}function fu(e,t){return t(new Kp(e)).patch()}function du(e){return e(new Kp).build()}function hu(e,t){return t(new Zp(e)).patch()}function pu(e){return e(new Zp).build()}function mu(e,t){return t(new $p(e)).patch()}function vu(e){return e(new $p).build()}function gu(e,t){return t(new em(e)).patch()}function yu(e){return e(new em).build()}function bu(e,t){return t(new tm(e)).patch()}function Su(e){return e(new tm).build()}function wu(e,t){return t(new nm(e)).patch()}function Nu(e){return e(new nm).build()}function Du(e,t){return t(new im(e)).patch()}function Tu(e){return e(new im).build()}function Fu(e,t){return t(new rm(e)).patch()}function xu(e){return e(new rm).build()}function ku(e,t){return t(new am(e)).patch()}function Bu(e){return e(new am).build()}function Cu(e,t){return t(new om(e)).patch()}function Lu(e){return e(new om).build()}function Wu(e,t){return t(new lm(e)).patch()}function _u(e){return e(new lm).build()}function Ou(e,t){return t(new sm(e)).patch()}function Uu(e){return e(new sm).build()}function Au(e,t){return t(new um(e)).patch()}function Eu(e){return e(new um).build()}function Mu(e,t){return t(new cm(e)).patch()}function Xu(e){return e(new cm).build()}function Pu(e,t){return t(new fm(e)).patch()}function Yu(e){return e(new fm).build()}function Ru(e,t){return t(new dm(e)).patch()}function zu(e){return e(new dm).build()}function Iu(e,t){return t(new hm(e)).patch()}function Hu(e){return e(new hm).build()}function ju(e,t){return t(new pm(e)).patch()}function qu(e){return e(new pm).build()}var Gu=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TextSegment",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.acc=function(t){if("function"==typeof t){delete r.acc;var n=t(new Rc(e&&e.acc));e?a.acc=n:r.acc=n.build()}else r.acc=t,delete a["acc;"];return o.acc=!0,i},this.text=function(t){if("function"==typeof t){delete r.text;var n=t(new Yc(e&&e.text));e?a.text=n:r.text=n.build()}else r.text=t,delete a["text;"];return o.text=!0,i}}return e}();t.patchTextSegment=i,t.buildTextSegment=r;var Vu=function(){function e(e){function t(){console.assert(e&&!o.month||void 0!==a.month||void 0!==r.month,"month is a required field"),console.assert(e&&!o.day||void 0!==a.day||void 0!==r.day,"day is a required field"),console.assert(e&&!o.year||void 0!==a.year||void 0!==r.year,"year is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="EncodingDate",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.month=function(e){return r.month=e,delete a["month;"],o.month=!0,i},this.day=function(e){return r.day=e,delete a["day;"],o.day=!0,i},this.year=function(e){return r.year=e,delete a["year;"],o.year=!0,i}}return e}();t.patchEncodingDate=a,t.buildEncodingDate=o;var Qu=function(){function e(e){function t(){console.assert(e&&!o.month||void 0!==a.month||void 0!==r.month,"month is a required field"),console.assert(e&&!o.day||void 0!==a.day||void 0!==r.day,"day is a required field"),console.assert(e&&!o.year||void 0!==a.year||void 0!==r.year,"year is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="CalendarDate",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.month=function(e){return r.month=e,delete a["month;"],o.month=!0,i},this.day=function(e){return r.day=e,delete a["day;"],o.day=!0,i},this.year=function(e){return r.year=e,delete a["year;"],o.year=!0,i}}return e}();t.patchCalendarDate=l,t.buildCalendarDate=s;var Ju=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Position",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i}}return e}();t.patchPosition=u,t.buildPosition=c;var Ku=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Placement",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchPlacement=f,t.buildPlacement=d;var Zu=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Orientation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.orientation=function(e){return r.orientation=e,delete a["orientation;"],o.orientation=!0,i}}return e}();t.patchOrientation=h,t.buildOrientation=p;var $u=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DirectiveEntity",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.directive=function(e){return r.directive=e,delete a["directive;"],o.directive=!0,i}}return e}();t.patchDirectiveEntity=m,t.buildDirectiveEntity=v;var ec=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Bezier",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.bezierX2=function(e){return r.bezierX2=e,delete a["bezierX2;"],o.bezierX2=!0,i},this.bezierOffset=function(e){return r.bezierOffset=e,delete a["bezierOffset;"],o.bezierOffset=!0,i},this.bezierOffset2=function(e){return r.bezierOffset2=e,delete a["bezierOffset2;"],o.bezierOffset2=!0,i},this.bezierX=function(e){return r.bezierX=e,delete a["bezierX;"],o.bezierX=!0,i},this.bezierY=function(e){return r.bezierY=e,delete a["bezierY;"],o.bezierY=!0,i},this.bezierY2=function(e){return r.bezierY2=e,delete a["bezierY2;"],o.bezierY2=!0,i}}return e}();t.patchBezier=g,t.buildBezier=y;var tc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Font",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i}}return e}();t.patchFont=b,t.buildFont=S;var nc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Color",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchColor=w,t.buildColor=N;var ic=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TextDecoration",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i}}return e}();t.patchTextDecoration=D,t.buildTextDecoration=T;var rc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Justify",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i}}return e}();t.patchJustify=F,t.buildJustify=x;var ac=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Halign",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i}}return e}();t.patchHalign=k,t.buildHalign=B;var oc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Valign",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchValign=C,t.buildValign=L;var lc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="ValignImage",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.valignImage=function(e){return r.valignImage=e,delete a["valignImage;"],o.valignImage=!0,i}}return e}();t.patchValignImage=W,t.buildValignImage=_;var sc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LetterSpacing",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i}}return e}();t.patchLetterSpacing=O,t.buildLetterSpacing=U;var uc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LineHeight",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i}}return e}();t.patchLineHeight=A,t.buildLineHeight=E;var cc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TextDirection",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i}}return e}();t.patchTextDirection=M,t.buildTextDirection=X;var fc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TextRotation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i}}return e}();t.patchTextRotation=P,t.buildTextRotation=Y;var dc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Enclosure",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchEnclosure=R,t.buildEnclosure=z;var hc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PrintStyle",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchPrintStyle=I,t.buildPrintStyle=H;var pc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PrintStyleAlign",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchPrintStyleAlign=j,t.buildPrintStyleAlign=q;var mc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LineShape",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchLineShape=G,t.buildLineShape=V;var vc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LineType",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i}}return e}();t.patchLineType=Q,t.buildLineType=J;var gc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DashedFormatting",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchDashedFormatting=K,t.buildDashedFormatting=Z;var yc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PrintObject",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchPrintObject=$,t.buildPrintObject=ee;var bc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PrintSpacing",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.printSpacing=function(e){return r.printSpacing=e,delete a["printSpacing;"],o.printSpacing=!0,i}}return e}();t.patchPrintSpacing=te,t.buildPrintSpacing=ne;var Sc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Printout",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.printDot=function(e){return r.printDot=e,delete a["printDot;"],o.printDot=!0,i},this.printLyric=function(e){return r.printLyric=e,delete a["printLyric;"],o.printLyric=!0,i},this.printObject=function(e){
return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.printSpacing=function(e){return r.printSpacing=e,delete a["printSpacing;"],o.printSpacing=!0,i}}return e}();t.patchPrintout=ie,t.buildPrintout=re;var wc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TextFormatting",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchTextFormatting=ae,t.buildTextFormatting=oe;var Nc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LevelDisplay",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.bracket=function(e){return r.bracket=e,delete a["bracket;"],o.bracket=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.parentheses=function(e){return r.parentheses=e,delete a["parentheses;"],o.parentheses=!0,i}}return e}();t.patchLevelDisplay=le,t.buildLevelDisplay=se;var Dc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TrillSound",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchTrillSound=ue,t.buildTrillSound=ce;var Tc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="BendSound",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.firstBeat=function(e){return r.firstBeat=e,delete a["firstBeat;"],o.firstBeat=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i}}return e}();t.patchBendSound=fe,t.buildBendSound=de;var Fc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TimeOnly",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.timeOnly=function(e){return r.timeOnly=e,delete a["timeOnly;"],o.timeOnly=!0,i}}return e}();t.patchTimeOnly=he,t.buildTimeOnly=pe;var xc=function(){function e(e){function t(){console.assert(e&&!o.version||void 0!==a.version||void 0!==r.version,"version is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DocumentAttributes",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.version=function(e){return r.version=e,delete a["version;"],o.version=!0,i}}return e}();t.patchDocumentAttributes=me,t.buildDocumentAttributes=ve;var kc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Editorial",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchEditorial=ge,t.buildEditorial=ye;var Bc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="EditorialVoice",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.voice=function(e){return r.voice=e,delete a["voice;"],o.voice=!0,i},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchEditorialVoice=be,t.buildEditorialVoice=Se;var Cc=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Footnote",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchFootnote=we,t.buildFootnote=Ne;var Lc=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Level",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.reference=function(e){return r.reference=e,delete a["reference;"],o.reference=!0,i},this.bracket=function(e){return r.bracket=e,delete a["bracket;"],o.bracket=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.parentheses=function(e){return r.parentheses=e,delete a["parentheses;"],o.parentheses=!0,i}}return e}();t.patchLevel=De,t.buildLevel=Te;var Wc=function(){function e(e){function t(){console.assert(e&&!o.shape||void 0!==a.shape||void 0!==r.shape,"shape is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Fermata",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.shape=function(e){return r.shape=e,delete a["shape;"],o.shape=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchFermata=Fe,t.buildFermata=xe;var _c=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="WavyLine",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchWavyLine=ke,t.buildWavyLine=Be;var Oc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Segno",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchSegno=Ce,t.buildSegno=Le;var Uc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Coda",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchCoda=We,t.buildCoda=_e;var Ac=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="NormalDot",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchNormalDot=Oe,t.buildNormalDot=Ue;var Ec=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Dynamics",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.f=function(e){return r.f=e,delete a["f;"],o.f=!0,i},this.ff=function(e){return r.ff=e,delete a["ff;"],o.ff=!0,i},this.fff=function(e){return r.fff=e,delete a["fff;"],o.fff=!0,i},this.ffff=function(e){return r.ffff=e,delete a["ffff;"],o.ffff=!0,i},this.fffff=function(e){return r.fffff=e,delete a["fffff;"],o.fffff=!0,i},this.ffffff=function(e){return r.ffffff=e,delete a["ffffff;"],o.ffffff=!0,i},this.fp=function(e){return r.fp=e,delete a["fp;"],o.fp=!0,i},this.fz=function(e){return r.fz=e,delete a["fz;"],o.fz=!0,i},this.mf=function(e){return r.mf=e,delete a["mf;"],o.mf=!0,i},this.mp=function(e){return r.mp=e,delete a["mp;"],o.mp=!0,i},this.otherDynamics=function(e){return r.otherDynamics=e,delete a["otherDynamics;"],o.otherDynamics=!0,i},this.p=function(e){return r.p=e,delete a["p;"],o.p=!0,i},this.pp=function(e){return r.pp=e,delete a["pp;"],o.pp=!0,i},this.ppp=function(e){return r.ppp=e,delete a["ppp;"],o.ppp=!0,i},this.pppp=function(e){return r.pppp=e,delete a["pppp;"],o.pppp=!0,i},this.ppppp=function(e){return r.ppppp=e,delete a["ppppp;"],o.ppppp=!0,i},this.pppppp=function(e){return r.pppppp=e,delete a["pppppp;"],o.pppppp=!0,i},this.rf=function(e){return r.rf=e,delete a["rf;"],o.rf=!0,i},this.rfz=function(e){return r.rfz=e,delete a["rfz;"],o.rfz=!0,i},this.sf=function(e){return r.sf=e,delete a["sf;"],o.sf=!0,i},this.sffz=function(e){return r.sffz=e,delete a["sffz;"],o.sffz=!0,i},this.sfp=function(e){return r.sfp=e,delete a["sfp;"],o.sfp=!0,i},this.sfpp=function(e){return r.sfpp=e,delete a["sfpp;"],o.sfpp=!0,i},this.sfz=function(e){return r.sfz=e,delete a["sfz;"],o.sfz=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchDynamics=Ae,t.buildDynamics=Ee;var Mc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Fingering",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.substitution=function(e){return r.substitution=e,delete a["substitution;"],o.substitution=!0,i},this.finger=function(e){return r.finger=e,delete a["finger;"],o.finger=!0,i},this.alternate=function(e){return r.alternate=e,delete a["alternate;"],o.alternate=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchFingering=Me,t.buildFingering=Xe;var Xc=function(){function e(e){function t(){console.assert(e&&!o.fret||void 0!==a.fret||void 0!==r.fret,"fret is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Fret",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fret=function(e){return r.fret=e,delete a["fret;"],o.fret=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchFret=Pe,t.buildFret=Ye;var Pc=function(){function e(e){function t(){console.assert(e&&!o.stringNum||void 0!==a.stringNum||void 0!==r.stringNum,"stringNum is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="String",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.stringNum=function(e){return r.stringNum=e,delete a["stringNum;"],o.stringNum=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchString=Re,t.buildString=ze;var Yc=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DisplayText",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchDisplayText=Ie,t.buildDisplayText=He;var Rc=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="AccidentalText",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchAccidentalText=je,t.buildAccidentalText=qe;var zc=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.name||void 0!==o.name||void 0!==a.name,"name is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="PartNameDisplay",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.name=function(e){return a.name=e,delete o["name;"],l.name=!0,r},this.nameAt=function(n,i){if(t("name"),u.name[n])throw new Error("Patching name."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.name&&e._snapshot.name[n]&&!e.name[n]&&c.push({p:["name",n],li:e._snapshot.name}),"function"==typeof i&&s.name[n]){var o=i(new Gu(s.name[n])).patch();return c=c.concat(o.map(function(e){return e.p=["name",n].concat(e.p),e})),u.name[n]=!0,r}var l="function"==typeof i?i(new Gu(s.name[n])).build():i;return e?c.push({p:["name",n],li:l}):a.name=s.name,s.name[n]=l,u.name[n]=!0,r},this.nameSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("name");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.name[f])throw new Error("Replacing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d,li:o[f-n]}),u.name[f]=!0}for(;f<n+i;++f){if(u.name[f])throw new Error("Removing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["name",f],li:o[f-n]}),u.name[f]=!0}return(h=s.name).splice.apply(h,[n,i].concat(o)),a.name=s.name,(p=u.name).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r}}return e}();t.patchPartNameDisplay=Ge,t.buildPartNameDisplay=Ve;var Ic=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.name||void 0!==o.name||void 0!==a.name,"name is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="PartAbbreviationDisplay",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.name=function(e){return a.name=e,delete o["name;"],l.name=!0,r},this.nameAt=function(n,i){if(t("name"),u.name[n])throw new Error("Patching name."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.name&&e._snapshot.name[n]&&!e.name[n]&&c.push({p:["name",n],li:e._snapshot.name}),"function"==typeof i&&s.name[n]){var o=i(new Gu(s.name[n])).patch();return c=c.concat(o.map(function(e){return e.p=["name",n].concat(e.p),e})),u.name[n]=!0,r}var l="function"==typeof i?i(new Gu(s.name[n])).build():i;return e?c.push({p:["name",n],li:l}):a.name=s.name,s.name[n]=l,u.name[n]=!0,r},this.nameSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("name");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.name[f])throw new Error("Replacing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d,li:o[f-n]}),u.name[f]=!0}for(;f<n+i;++f){if(u.name[f])throw new Error("Removing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["name",f],li:o[f-n]}),u.name[f]=!0}return(h=s.name).splice.apply(h,[n,i].concat(o)),a.name=s.name,(p=u.name).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r}}return e}();t.patchPartAbbreviationDisplay=Qe,t.buildPartAbbreviationDisplay=Je;var Hc=function(){function e(e){function t(){console.assert(e&&!o.deviceName||void 0!==a.deviceName||void 0!==r.deviceName,"deviceName is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MidiDevice",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.port=function(e){return r.port=e,delete a["port;"],o.port=!0,i},this.deviceName=function(e){return r.deviceName=e,delete a["deviceName;"],o.deviceName=!0,i},this.id=function(e){return r.id=e,delete a["id;"],o.id=!0,i}}return e}();t.patchMidiDevice=Ke,t.buildMidiDevice=Ze;var jc=function(){function e(e){function t(){console.assert(e&&!o.id||void 0!==a.id||void 0!==r.id,"id is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MidiInstrument",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.midiUnpitched=function(e){return r.midiUnpitched=e,delete a["midiUnpitched;"],o.midiUnpitched=!0,i},this.volume=function(e){return r.volume=e,delete a["volume;"],o.volume=!0,i},this.pan=function(e){return r.pan=e,delete a["pan;"],o.pan=!0,i},this.elevation=function(e){return r.elevation=e,delete a["elevation;"],o.elevation=!0,i},this.midiBank=function(e){return r.midiBank=e,delete a["midiBank;"],o.midiBank=!0,i},this.midiProgram=function(e){return r.midiProgram=e,delete a["midiProgram;"],o.midiProgram=!0,i},this.id=function(e){return r.id=e,delete a["id;"],o.id=!0,i},this.midiChannel=function(e){return r.midiChannel=e,delete a["midiChannel;"],o.midiChannel=!0,i},this.midiName=function(e){return r.midiName=e,delete a["midiName;"],o.midiName=!0,i}}return e}();t.patchMidiInstrument=$e,t.buildMidiInstrument=et;var qc=function(){function e(e){function t(){console.assert(e&&!o.id||void 0!==a.id||void 0!==r.id,"id is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Play",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.ipa=function(e){return r.ipa=e,delete a["ipa;"],o.ipa=!0,i},this.mute=function(e){return r.mute=e,delete a["mute;"],o.mute=!0,i},this.otherPlay=function(t){if("function"==typeof t){delete r.otherPlay;var n=t(new Gc(e&&e.otherPlay));e?a.otherPlay=n:r.otherPlay=n.build()}else r.otherPlay=t,delete a["otherPlay;"];return o.otherPlay=!0,i},this.semiPitched=function(e){return r.semiPitched=e,delete a["semiPitched;"],o.semiPitched=!0,i},this.id=function(e){return r.id=e,delete a["id;"],o.id=!0,i}}return e}();t.patchPlay=tt,t.buildPlay=nt;var Gc=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherPlay",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.type=function(e){
return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchOtherPlay=it,t.buildOtherPlay=rt;var Vc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Scaling",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tenths=function(e){return r.tenths=e,delete a["tenths;"],o.tenths=!0,i},this.millimeters=function(e){return r.millimeters=e,delete a["millimeters;"],o.millimeters=!0,i}}return e}();t.patchScaling=at,t.buildScaling=ot;var Qc=function(){function e(e){function t(){console.assert(e&&!o.topMargin||void 0!==a.topMargin||void 0!==r.topMargin,"topMargin is a required field"),console.assert(e&&!o.leftMargin||void 0!==a.leftMargin||void 0!==r.leftMargin,"leftMargin is a required field"),console.assert(e&&!o.bottomMargin||void 0!==a.bottomMargin||void 0!==r.bottomMargin,"bottomMargin is a required field"),console.assert(e&&!o.rightMargin||void 0!==a.rightMargin||void 0!==r.rightMargin,"rightMargin is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PageMargins",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.topMargin=function(e){return r.topMargin=e,delete a["topMargin;"],o.topMargin=!0,i},this.leftMargin=function(e){return r.leftMargin=e,delete a["leftMargin;"],o.leftMargin=!0,i},this.bottomMargin=function(e){return r.bottomMargin=e,delete a["bottomMargin;"],o.bottomMargin=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.rightMargin=function(e){return r.rightMargin=e,delete a["rightMargin;"],o.rightMargin=!0,i}}return e}();t.patchPageMargins=lt,t.buildPageMargins=st;var Jc=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="PageLayout",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.pageHeight=function(e){return a.pageHeight=e,delete o["pageHeight;"],l.pageHeight=!0,r},this.pageWidth=function(e){return a.pageWidth=e,delete o["pageWidth;"],l.pageWidth=!0,r},this.pageMargins=function(e){return a.pageMargins=e,delete o["pageMargins;"],l.pageMargins=!0,r},this.pageMarginsAt=function(n,i){if(t("pageMargins"),u.pageMargins[n])throw new Error("Patching pageMargins."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.pageMargins&&e._snapshot.pageMargins[n]&&!e.pageMargins[n]&&c.push({p:["pageMargins",n],li:e._snapshot.pageMargins}),"function"==typeof i&&s.pageMargins[n]){var o=i(new Qc(s.pageMargins[n])).patch();return c=c.concat(o.map(function(e){return e.p=["pageMargins",n].concat(e.p),e})),u.pageMargins[n]=!0,r}var l="function"==typeof i?i(new Qc(s.pageMargins[n])).build():i;return e?c.push({p:["pageMargins",n],li:l}):a.pageMargins=s.pageMargins,s.pageMargins[n]=l,u.pageMargins[n]=!0,r},this.pageMarginsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("pageMargins");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.pageMargins[f])throw new Error("Replacing pageMargins."+f+" after patching in a builder is unsupported.");var d=s.pageMargins[f];c.push({p:["pageMargins",f],ld:d,li:o[f-n]}),u.pageMargins[f]=!0}for(;f<n+i;++f){if(u.pageMargins[f])throw new Error("Removing pageMargins."+f+" after patching in a builder is unsupported.");var d=s.pageMargins[f];c.push({p:["pageMargins",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["pageMargins",f],li:o[f-n]}),u.pageMargins[f]=!0}return(h=s.pageMargins).splice.apply(h,[n,i].concat(o)),a.pageMargins=s.pageMargins,(p=u.pageMargins).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchPageLayout=ut,t.buildPageLayout=ct;var Kc=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="SystemLayout",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.systemDividers=function(t){if("function"==typeof t){delete r.systemDividers;var n=t(new $c(e&&e.systemDividers));e?a.systemDividers=n:r.systemDividers=n.build()}else r.systemDividers=t,delete a["systemDividers;"];return o.systemDividers=!0,i},this.systemMargins=function(t){if("function"==typeof t){delete r.systemMargins;var n=t(new Zc(e&&e.systemMargins));e?a.systemMargins=n:r.systemMargins=n.build()}else r.systemMargins=t,delete a["systemMargins;"];return o.systemMargins=!0,i},this.systemDistance=function(e){return r.systemDistance=e,delete a["systemDistance;"],o.systemDistance=!0,i},this.topSystemDistance=function(e){return r.topSystemDistance=e,delete a["topSystemDistance;"],o.topSystemDistance=!0,i}}return e}();t.patchSystemLayout=ft,t.buildSystemLayout=dt;var Zc=function(){function e(e){function t(){console.assert(e&&!o.leftMargin||void 0!==a.leftMargin||void 0!==r.leftMargin,"leftMargin is a required field"),console.assert(e&&!o.rightMargin||void 0!==a.rightMargin||void 0!==r.rightMargin,"rightMargin is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="SystemMargins",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.leftMargin=function(e){return r.leftMargin=e,delete a["leftMargin;"],o.leftMargin=!0,i},this.rightMargin=function(e){return r.rightMargin=e,delete a["rightMargin;"],o.rightMargin=!0,i}}return e}();t.patchSystemMargins=ht,t.buildSystemMargins=pt;var $c=function(){function e(e){function t(){console.assert(e&&!o.rightDivider||void 0!==a.rightDivider||void 0!==r.rightDivider,"rightDivider is a required field"),console.assert(e&&!o.leftDivider||void 0!==a.leftDivider||void 0!==r.leftDivider,"leftDivider is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="SystemDividers",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.rightDivider=function(t){if("function"==typeof t){delete r.rightDivider;var n=t(new tf(e&&e.rightDivider));e?a.rightDivider=n:r.rightDivider=n.build()}else r.rightDivider=t,delete a["rightDivider;"];return o.rightDivider=!0,i},this.leftDivider=function(t){if("function"==typeof t){delete r.leftDivider;var n=t(new ef(e&&e.leftDivider));e?a.leftDivider=n:r.leftDivider=n.build()}else r.leftDivider=t,delete a["leftDivider;"];return o.leftDivider=!0,i}}return e}();t.patchSystemDividers=mt,t.buildSystemDividers=vt;var ef=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LeftDivider",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchLeftDivider=gt,t.buildLeftDivider=yt;var tf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="RightDivider",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchRightDivider=bt,t.buildRightDivider=St;var nf=function(){function e(e){function t(){console.assert(e&&!o.num||void 0!==a.num||void 0!==r.num,"num is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="StaffLayout",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.staffDistance=function(e){return r.staffDistance=e,delete a["staffDistance;"],o.staffDistance=!0,i},this.num=function(e){return r.num=e,delete a["num;"],o.num=!0,i}}return e}();t.patchStaffLayout=wt,t.buildStaffLayout=Nt;var rf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MeasureLayout",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.measureDistance=function(e){return r.measureDistance=e,delete a["measureDistance;"],o.measureDistance=!0,i}}return e}();t.patchMeasureLayout=Dt,t.buildMeasureLayout=Tt;var af=function(){function e(e){function t(){console.assert(e&&!o.tenths||void 0!==a.tenths||void 0!==r.tenths,"tenths is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LineWidth",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tenths=function(e){return r.tenths=e,delete a["tenths;"],o.tenths=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchLineWidth=Ft,t.buildLineWidth=xt;var of=function(){function e(e){function t(){console.assert(e&&!o.size||void 0!==a.size||void 0!==r.size,"size is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="NoteSize",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchNoteSize=kt,t.buildNoteSize=Bt;var lf=function(){function e(e){function t(){console.assert(e&&!o.tenths||void 0!==a.tenths||void 0!==r.tenths,"tenths is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Distance",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tenths=function(e){return r.tenths=e,delete a["tenths;"],o.tenths=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchDistance=Ct,t.buildDistance=Lt;var sf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Appearance",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.set=function(e,t){return r[e]=t,o[e]=!0,i},this.otherAppearances=function(e){return r.otherAppearances=e,delete a["otherAppearances;"],o.otherAppearances=!0,i}}return e}();t.patchAppearance=Wt,t.buildAppearance=_t;var uf=function(){function e(e){function t(){console.assert(e&&!o.creator||void 0!==a.creator||void 0!==r.creator,"creator is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Creator",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.creator=function(e){return r.creator=e,delete a["creator;"],o.creator=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchCreator=Ot,t.buildCreator=Ut;var cf=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.rights||void 0!==a.rights||void 0!==r.rights,"rights is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Rights",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.rights=function(e){return r.rights=e,delete a["rights;"],o.rights=!0,i}}return e}();t.patchRights=At,t.buildRights=Et;var ff=function(){function e(e){function t(){console.assert(e&&!o.encoder||void 0!==a.encoder||void 0!==r.encoder,"encoder is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Encoder",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.encoder=function(e){return r.encoder=e,delete a["encoder;"],o.encoder=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchEncoder=Mt,t.buildEncoder=Xt;var df=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Relation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i}}return e}();t.patchRelation=Pt,t.buildRelation=Yt;var hf=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.name||void 0!==a.name||void 0!==r.name,"name is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MiscellaneousField",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.name=function(e){return r.name=e,delete a["name;"],o.name=!0,i}}return e}();t.patchMiscellaneousField=Rt,t.buildMiscellaneousField=zt;var pf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Miscellaneous",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.miscellaneousFields=function(e){return a.miscellaneousFields=e,delete o["miscellaneousFields;"],l.miscellaneousFields=!0,r},this.miscellaneousFieldsAt=function(n,i){if(t("miscellaneousFields"),u.miscellaneousFields[n])throw new Error("Patching miscellaneousFields."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.miscellaneousFields&&e._snapshot.miscellaneousFields[n]&&!e.miscellaneousFields[n]&&c.push({p:["miscellaneousFields",n],li:e._snapshot.miscellaneousFields}),"function"==typeof i&&s.miscellaneousFields[n]){var o=i(new hf(s.miscellaneousFields[n])).patch();return c=c.concat(o.map(function(e){return e.p=["miscellaneousFields",n].concat(e.p),e})),u.miscellaneousFields[n]=!0,r}var l="function"==typeof i?i(new hf(s.miscellaneousFields[n])).build():i;return e?c.push({p:["miscellaneousFields",n],li:l}):a.miscellaneousFields=s.miscellaneousFields,s.miscellaneousFields[n]=l,u.miscellaneousFields[n]=!0,r},this.miscellaneousFieldsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("miscellaneousFields");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.miscellaneousFields[f])throw new Error("Replacing miscellaneousFields."+f+" after patching in a builder is unsupported.");var d=s.miscellaneousFields[f];c.push({p:["miscellaneousFields",f],ld:d,li:o[f-n]}),u.miscellaneousFields[f]=!0}for(;f<n+i;++f){if(u.miscellaneousFields[f])throw new Error("Removing miscellaneousFields."+f+" after patching in a builder is unsupported.");var d=s.miscellaneousFields[f];c.push({p:["miscellaneousFields",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["miscellaneousFields",f],li:o[f-n]}),u.miscellaneousFields[f]=!0}return(h=s.miscellaneousFields).splice.apply(h,[n,i].concat(o)),a.miscellaneousFields=s.miscellaneousFields,(p=u.miscellaneousFields).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchMiscellaneous=It,t.buildMiscellaneous=Ht;var mf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Identification",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.miscellaneous=function(t){if("function"==typeof t){delete a.miscellaneous;var n=t(new pf(e&&e.miscellaneous));e?o.miscellaneous=n:a.miscellaneous=n.build()}else a.miscellaneous=t,delete o["miscellaneous;"];return l.miscellaneous=!0,r},this.creators=function(e){return a.creators=e,delete o["creators;"],l.creators=!0,r},this.creatorsAt=function(n,i){if(t("creators"),u.creators[n])throw new Error("Patching creators."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.creators&&e._snapshot.creators[n]&&!e.creators[n]&&c.push({p:["creators",n],li:e._snapshot.creators}),"function"==typeof i&&s.creators[n]){var o=i(new uf(s.creators[n])).patch();return c=c.concat(o.map(function(e){return e.p=["creators",n].concat(e.p),e})),u.creators[n]=!0,r}var l="function"==typeof i?i(new uf(s.creators[n])).build():i;return e?c.push({p:["creators",n],li:l}):a.creators=s.creators,s.creators[n]=l,u.creators[n]=!0,r},this.creatorsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("creators");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.creators[f])throw new Error("Replacing creators."+f+" after patching in a builder is unsupported.");var d=s.creators[f];c.push({p:["creators",f],ld:d,li:o[f-n]}),u.creators[f]=!0}for(;f<n+i;++f){if(u.creators[f])throw new Error("Removing creators."+f+" after patching in a builder is unsupported.");var d=s.creators[f];c.push({p:["creators",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["creators",f],li:o[f-n]}),u.creators[f]=!0}return(h=s.creators).splice.apply(h,[n,i].concat(o)),a.creators=s.creators,(p=u.creators).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.relations=function(e){return a.relations=e,delete o["relations;"],l.relations=!0,r},this.relationsAt=function(n,i){if(t("relations"),u.relations[n])throw new Error("Patching relations."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.relations&&e._snapshot.relations[n]&&!e.relations[n]&&c.push({p:["relations",n],li:e._snapshot.relations}),"function"==typeof i&&s.relations[n]){var o=i(new df(s.relations[n])).patch();return c=c.concat(o.map(function(e){return e.p=["relations",n].concat(e.p),e})),u.relations[n]=!0,r}var l="function"==typeof i?i(new df(s.relations[n])).build():i;return e?c.push({p:["relations",n],li:l}):a.relations=s.relations,s.relations[n]=l,u.relations[n]=!0,r},this.relationsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("relations");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.relations[f])throw new Error("Replacing relations."+f+" after patching in a builder is unsupported.");var d=s.relations[f];c.push({p:["relations",f],ld:d,li:o[f-n]}),u.relations[f]=!0}for(;f<n+i;++f){if(u.relations[f])throw new Error("Removing relations."+f+" after patching in a builder is unsupported.");var d=s.relations[f];c.push({p:["relations",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["relations",f],li:o[f-n]}),u.relations[f]=!0}return(h=s.relations).splice.apply(h,[n,i].concat(o)),a.relations=s.relations,(p=u.relations).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.rights=function(e){return a.rights=e,delete o["rights;"],l.rights=!0,r},this.rightsAt=function(n,i){if(t("rights"),u.rights[n])throw new Error("Patching rights."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.rights&&e._snapshot.rights[n]&&!e.rights[n]&&c.push({p:["rights",n],li:e._snapshot.rights}),"function"==typeof i&&s.rights[n]){var o=i(new cf(s.rights[n])).patch();return c=c.concat(o.map(function(e){return e.p=["rights",n].concat(e.p),e})),u.rights[n]=!0,r}var l="function"==typeof i?i(new cf(s.rights[n])).build():i;return e?c.push({p:["rights",n],li:l}):a.rights=s.rights,s.rights[n]=l,u.rights[n]=!0,r},this.rightsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("rights");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.rights[f])throw new Error("Replacing rights."+f+" after patching in a builder is unsupported.");var d=s.rights[f];c.push({p:["rights",f],ld:d,li:o[f-n]}),u.rights[f]=!0}for(;f<n+i;++f){if(u.rights[f])throw new Error("Removing rights."+f+" after patching in a builder is unsupported.");var d=s.rights[f];c.push({p:["rights",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["rights",f],li:o[f-n]}),u.rights[f]=!0}return(h=s.rights).splice.apply(h,[n,i].concat(o)),a.rights=s.rights,(p=u.rights).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.encoding=function(t){if("function"==typeof t){delete a.encoding;var n=t(new gf(e&&e.encoding));e?o.encoding=n:a.encoding=n.build()}else a.encoding=t,delete o["encoding;"];return l.encoding=!0,r},this.source=function(e){return a.source=e,delete o["source;"],l.source=!0,r}}return e}();t.patchIdentification=jt,t.buildIdentification=qt;var vf=function(){function e(e){function t(){console.assert(e&&!o.element||void 0!==a.element||void 0!==r.element,"element is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Supports",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.element=function(e){return r.element=e,delete a["element;"],o.element=!0,i},this.attribute=function(e){return r.attribute=e,delete a["attribute;"],o.attribute=!0,i},this.value=function(e){return r.value=e,delete a["value;"],o.value=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchSupports=Gt,t.buildSupports=Vt;var gf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Encoding",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.encodingDescriptions=function(e){return a.encodingDescriptions=e,delete o["encodingDescriptions;"],l.encodingDescriptions=!0,r},this.encodingDate=function(t){if("function"==typeof t){delete a.encodingDate;var n=t(new Vu(e&&e.encodingDate));e?o.encodingDate=n:a.encodingDate=n.build()}else a.encodingDate=t,delete o["encodingDate;"];return l.encodingDate=!0,r},this.set=function(e,t){return a[e]=t,l[e]=!0,r},this.encoders=function(e){return a.encoders=e,delete o["encoders;"],l.encoders=!0,r},this.encodersAt=function(n,i){if(t("encoders"),u.encoders[n])throw new Error("Patching encoders."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.encoders&&e._snapshot.encoders[n]&&!e.encoders[n]&&c.push({p:["encoders",n],li:e._snapshot.encoders}),"function"==typeof i&&s.encoders[n]){var o=i(new ff(s.encoders[n])).patch();return c=c.concat(o.map(function(e){return e.p=["encoders",n].concat(e.p),e})),u.encoders[n]=!0,r}var l="function"==typeof i?i(new ff(s.encoders[n])).build():i;return e?c.push({p:["encoders",n],li:l}):a.encoders=s.encoders,s.encoders[n]=l,u.encoders[n]=!0,r},this.encodersSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("encoders");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.encoders[f])throw new Error("Replacing encoders."+f+" after patching in a builder is unsupported.");var d=s.encoders[f];c.push({p:["encoders",f],ld:d,li:o[f-n]}),u.encoders[f]=!0}for(;f<n+i;++f){if(u.encoders[f])throw new Error("Removing encoders."+f+" after patching in a builder is unsupported.");var d=s.encoders[f];c.push({p:["encoders",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["encoders",f],li:o[f-n]}),u.encoders[f]=!0}return(h=s.encoders).splice.apply(h,[n,i].concat(o)),a.encoders=s.encoders,(p=u.encoders).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.softwares=function(e){return a.softwares=e,delete o["softwares;"],l.softwares=!0,r}}return e}();t.patchEncoding=Qt,t.buildEncoding=Jt;var yf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TimeSeparator",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.separator=function(e){return r.separator=e,delete a["separator;"],o.separator=!0,i}}return e}();t.patchTimeSeparator=Kt,t.buildTimeSeparator=Zt;var bf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TimeSymbol",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.symbol=function(e){return r.symbol=e,delete a["symbol;"],o.symbol=!0,i}}return e}();t.patchTimeSymbol=$t,t.buildTimeSymbol=en;var Sf=function(){function e(e){function t(){console.assert(e&&!o.fifths||void 0!==a.fifths||void 0!==r.fifths,"fifths is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Cancel",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fifths=function(e){return r.fifths=e,delete a["fifths;"],o.fifths=!0,i},this.location=function(e){return r.location=e,delete a["location;"],o.location=!0,i}}return e}();t.patchCancel=tn,t.buildCancel=nn;var wf=function(){function e(e){function t(){console.assert(e&&!o.octave||void 0!==a.octave||void 0!==r.octave,"octave is a required field"),console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="KeyOctave",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.octave=function(e){return r.octave=e,delete a["octave;"],o.octave=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.cancel=function(e){return r.cancel=e,delete a["cancel;"],o.cancel=!0,i}}return e}();t.patchKeyOctave=rn,t.buildKeyOctave=an;var Nf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Key",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.cancel=function(t){if("function"==typeof t){delete a.cancel;var n=t(new Sf(e&&e.cancel));e?o.cancel=n:a.cancel=n.build()}else a.cancel=t,delete o["cancel;"];return l.cancel=!0,r},this.keySteps=function(e){return a.keySteps=e,delete o["keySteps;"],l.keySteps=!0,r},this.keyOctaves=function(e){return a.keyOctaves=e,delete o["keyOctaves;"],l.keyOctaves=!0,r},this.keyOctavesAt=function(n,i){if(t("keyOctaves"),u.keyOctaves[n])throw new Error("Patching keyOctaves."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.keyOctaves&&e._snapshot.keyOctaves[n]&&!e.keyOctaves[n]&&c.push({p:["keyOctaves",n],li:e._snapshot.keyOctaves}),"function"==typeof i&&s.keyOctaves[n]){var o=i(new wf(s.keyOctaves[n])).patch();return c=c.concat(o.map(function(e){return e.p=["keyOctaves",n].concat(e.p),e})),u.keyOctaves[n]=!0,r}var l="function"==typeof i?i(new wf(s.keyOctaves[n])).build():i;return e?c.push({p:["keyOctaves",n],li:l}):a.keyOctaves=s.keyOctaves,s.keyOctaves[n]=l,u.keyOctaves[n]=!0,r},this.keyOctavesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("keyOctaves");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.keyOctaves[f])throw new Error("Replacing keyOctaves."+f+" after patching in a builder is unsupported.");var d=s.keyOctaves[f];c.push({p:["keyOctaves",f],ld:d,li:o[f-n]}),u.keyOctaves[f]=!0}for(;f<n+i;++f){if(u.keyOctaves[f])throw new Error("Removing keyOctaves."+f+" after patching in a builder is unsupported.");var d=s.keyOctaves[f];c.push({p:["keyOctaves",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["keyOctaves",f],li:o[f-n]}),u.keyOctaves[f]=!0}return(h=s.keyOctaves).splice.apply(h,[n,i].concat(o)),a.keyOctaves=s.keyOctaves,(p=u.keyOctaves).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.number=function(e){return a.number=e,delete o["number;"],l.number=!0,r},this.fifths=function(e){return a.fifths=e,delete o["fifths;"],l.fifths=!0,r},this.keyAlters=function(e){return a.keyAlters=e,delete o["keyAlters;"],l.keyAlters=!0,r},this.keyAccidentals=function(e){return a.keyAccidentals=e,delete o["keyAccidentals;"],l.keyAccidentals=!0,r},this.mode=function(e){return a.mode=e,delete o["mode;"],l.mode=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r}}return e}();t.patchKey=on,t.buildKey=ln;var Df=function(){function e(e){function t(){console.assert(e&&!o.beats||void 0!==a.beats||void 0!==r.beats,"beats is a required field"),console.assert(e&&!o.beatTypes||void 0!==a.beatTypes||void 0!==r.beatTypes,"beatTypes is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Time",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.interchangeable=function(t){if("function"==typeof t){delete r.interchangeable;var n=t(new Tf(e&&e.interchangeable));e?a.interchangeable=n:r.interchangeable=n.build()}else r.interchangeable=t,delete a["interchangeable;"];return o.interchangeable=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.beatTypes=function(e){return r.beatTypes=e,delete a["beatTypes;"],o.beatTypes=!0,i},this.senzaMisura=function(e){return r.senzaMisura=e,delete a["senzaMisura;"],o.senzaMisura=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){
return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.symbol=function(e){return r.symbol=e,delete a["symbol;"],o.symbol=!0,i},this.separator=function(e){return r.separator=e,delete a["separator;"],o.separator=!0,i}}return e}();t.patchTime=sn,t.buildTime=un;var Tf=function(){function e(e){function t(){console.assert(e&&!o.beats||void 0!==a.beats||void 0!==r.beats,"beats is a required field"),console.assert(e&&!o.beatTypes||void 0!==a.beatTypes||void 0!==r.beatTypes,"beatTypes is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Interchangeable",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.beatTypes=function(e){return r.beatTypes=e,delete a["beatTypes;"],o.beatTypes=!0,i},this.timeRelation=function(e){return r.timeRelation=e,delete a["timeRelation;"],o.timeRelation=!0,i},this.symbol=function(e){return r.symbol=e,delete a["symbol;"],o.symbol=!0,i},this.separator=function(e){return r.separator=e,delete a["separator;"],o.separator=!0,i}}return e}();t.patchInterchangeable=cn,t.buildInterchangeable=fn;var Ff=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PartSymbol",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.topStaff=function(e){return r.topStaff=e,delete a["topStaff;"],o.topStaff=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.bottomStaff=function(e){return r.bottomStaff=e,delete a["bottomStaff;"],o.bottomStaff=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchPartSymbol=dn,t.buildPartSymbol=hn;var xf=function(){function e(e){function t(){console.assert(e&&!o.sign||void 0!==a.sign||void 0!==r.sign,"sign is a required field"),console.assert(e&&!o.line||void 0!==a.line||void 0!==r.line,"line is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Clef",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.clefOctaveChange=function(e){return r.clefOctaveChange=e,delete a["clefOctaveChange;"],o.clefOctaveChange=!0,i},this.sign=function(e){return r.sign=e,delete a["sign;"],o.sign=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.line=function(e){return r.line=e,delete a["line;"],o.line=!0,i},this.afterBarline=function(e){return r.afterBarline=e,delete a["afterBarline;"],o.afterBarline=!0,i},this.additional=function(e){return r.additional=e,delete a["additional;"],o.additional=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchClef=pn,t.buildClef=mn;var kf=function(){function e(e){function t(){console.assert(e&&!o.line||void 0!==a.line||void 0!==r.line,"line is a required field"),console.assert(e&&!o.tuningStep||void 0!==a.tuningStep||void 0!==r.tuningStep,"tuningStep is a required field"),console.assert(e&&!o.tuningOctave||void 0!==a.tuningOctave||void 0!==r.tuningOctave,"tuningOctave is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="StaffTuning",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tuningAlter=function(e){return r.tuningAlter=e,delete a["tuningAlter;"],o.tuningAlter=!0,i},this.line=function(e){return r.line=e,delete a["line;"],o.line=!0,i},this.tuningStep=function(e){return r.tuningStep=e,delete a["tuningStep;"],o.tuningStep=!0,i},this.tuningOctave=function(e){return r.tuningOctave=e,delete a["tuningOctave;"],o.tuningOctave=!0,i}}return e}();t.patchStaffTuning=vn,t.buildStaffTuning=gn;var Bf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="StaffDetails",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.staffLines=function(e){return a.staffLines=e,delete o["staffLines;"],l.staffLines=!0,r},this.staffTunings=function(e){return a.staffTunings=e,delete o["staffTunings;"],l.staffTunings=!0,r},this.staffTuningsAt=function(n,i){if(t("staffTunings"),u.staffTunings[n])throw new Error("Patching staffTunings."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.staffTunings&&e._snapshot.staffTunings[n]&&!e.staffTunings[n]&&c.push({p:["staffTunings",n],li:e._snapshot.staffTunings}),"function"==typeof i&&s.staffTunings[n]){var o=i(new kf(s.staffTunings[n])).patch();return c=c.concat(o.map(function(e){return e.p=["staffTunings",n].concat(e.p),e})),u.staffTunings[n]=!0,r}var l="function"==typeof i?i(new kf(s.staffTunings[n])).build():i;return e?c.push({p:["staffTunings",n],li:l}):a.staffTunings=s.staffTunings,s.staffTunings[n]=l,u.staffTunings[n]=!0,r},this.staffTuningsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("staffTunings");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.staffTunings[f])throw new Error("Replacing staffTunings."+f+" after patching in a builder is unsupported.");var d=s.staffTunings[f];c.push({p:["staffTunings",f],ld:d,li:o[f-n]}),u.staffTunings[f]=!0}for(;f<n+i;++f){if(u.staffTunings[f])throw new Error("Removing staffTunings."+f+" after patching in a builder is unsupported.");var d=s.staffTunings[f];c.push({p:["staffTunings",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["staffTunings",f],li:o[f-n]}),u.staffTunings[f]=!0}return(h=s.staffTunings).splice.apply(h,[n,i].concat(o)),a.staffTunings=s.staffTunings,(p=u.staffTunings).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.staffSize=function(e){return a.staffSize=e,delete o["staffSize;"],l.staffSize=!0,r},this.showFrets=function(e){return a.showFrets=e,delete o["showFrets;"],l.showFrets=!0,r},this.capo=function(e){return a.capo=e,delete o["capo;"],l.capo=!0,r},this.number=function(e){return a.number=e,delete o["number;"],l.number=!0,r},this.staffType=function(e){return a.staffType=e,delete o["staffType;"],l.staffType=!0,r},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r},this.printSpacing=function(e){return a.printSpacing=e,delete o["printSpacing;"],l.printSpacing=!0,r}}return e}();t.patchStaffDetails=yn,t.buildStaffDetails=bn;var Cf=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Double",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchDouble=Sn,t.buildDouble=wn;var Lf=function(){function e(e){function t(){console.assert(e&&!o.chromatic||void 0!==a.chromatic||void 0!==r.chromatic,"chromatic is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Transpose",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.diatonic=function(e){return r.diatonic=e,delete a["diatonic;"],o.diatonic=!0,i},this.octaveChange=function(e){return r.octaveChange=e,delete a["octaveChange;"],o.octaveChange=!0,i},this["double"]=function(t){if("function"==typeof t){delete r["double"];var n=t(new Cf(e&&e["double"]));e?a["double"]=n:r["double"]=n.build()}else r["double"]=t,delete a["double;"];return o["double"]=!0,i},this.chromatic=function(e){return r.chromatic=e,delete a["chromatic;"],o.chromatic=!0,i}}return e}();t.patchTranspose=Nn,t.buildTranspose=Dn;var Wf=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Directive",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchDirective=Tn,t.buildDirective=Fn;var _f=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="SlashDot",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchSlashDot=xn,t.buildSlashDot=kn;var Of=function(){function e(e){function t(){console.assert(e&&!o.count||void 0!==a.count||void 0!==r.count,"count is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MultipleRest",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.useSymbols=function(e){return r.useSymbols=e,delete a["useSymbols;"],o.useSymbols=!0,i},this.count=function(e){return r.count=e,delete a["count;"],o.count=!0,i}}return e}();t.patchMultipleRest=Bn,t.buildMultipleRest=Cn;var Uf=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MeasureRepeat",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.slashes=function(e){return r.slashes=e,delete a["slashes;"],o.slashes=!0,i}}return e}();t.patchMeasureRepeat=Ln,t.buildMeasureRepeat=Wn;var Af=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.type||void 0!==o.type||void 0!==a.type,"type is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="BeatRepeat",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.slashType=function(e){return a.slashType=e,delete o["slashType;"],l.slashType=!0,r},this.useDots=function(e){return a.useDots=e,delete o["useDots;"],l.useDots=!0,r},this.slashDots=function(e){return a.slashDots=e,delete o["slashDots;"],l.slashDots=!0,r},this.slashDotsAt=function(n,i){if(t("slashDots"),u.slashDots[n])throw new Error("Patching slashDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.slashDots&&e._snapshot.slashDots[n]&&!e.slashDots[n]&&c.push({p:["slashDots",n],li:e._snapshot.slashDots}),"function"==typeof i&&s.slashDots[n]){var o=i(new _f(s.slashDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["slashDots",n].concat(e.p),e})),u.slashDots[n]=!0,r}var l="function"==typeof i?i(new _f(s.slashDots[n])).build():i;return e?c.push({p:["slashDots",n],li:l}):a.slashDots=s.slashDots,s.slashDots[n]=l,u.slashDots[n]=!0,r},this.slashDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("slashDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.slashDots[f])throw new Error("Replacing slashDots."+f+" after patching in a builder is unsupported.");var d=s.slashDots[f];c.push({p:["slashDots",f],ld:d,li:o[f-n]}),u.slashDots[f]=!0}for(;f<n+i;++f){if(u.slashDots[f])throw new Error("Removing slashDots."+f+" after patching in a builder is unsupported.");var d=s.slashDots[f];c.push({p:["slashDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["slashDots",f],li:o[f-n]}),u.slashDots[f]=!0}return(h=s.slashDots).splice.apply(h,[n,i].concat(o)),a.slashDots=s.slashDots,(p=u.slashDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.slases=function(e){return a.slases=e,delete o["slases;"],l.slases=!0,r},this.type=function(e){return a.type=e,delete o["type;"],l.type=!0,r}}return e}();t.patchBeatRepeat=_n,t.buildBeatRepeat=On;var Ef=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.type||void 0!==o.type||void 0!==a.type,"type is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Slash",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.slashType=function(e){return a.slashType=e,delete o["slashType;"],l.slashType=!0,r},this.useDots=function(e){return a.useDots=e,delete o["useDots;"],l.useDots=!0,r},this.useStems=function(e){return a.useStems=e,delete o["useStems;"],l.useStems=!0,r},this.slashDots=function(e){return a.slashDots=e,delete o["slashDots;"],l.slashDots=!0,r},this.slashDotsAt=function(n,i){if(t("slashDots"),u.slashDots[n])throw new Error("Patching slashDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.slashDots&&e._snapshot.slashDots[n]&&!e.slashDots[n]&&c.push({p:["slashDots",n],li:e._snapshot.slashDots}),"function"==typeof i&&s.slashDots[n]){var o=i(new _f(s.slashDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["slashDots",n].concat(e.p),e})),u.slashDots[n]=!0,r}var l="function"==typeof i?i(new _f(s.slashDots[n])).build():i;return e?c.push({p:["slashDots",n],li:l}):a.slashDots=s.slashDots,s.slashDots[n]=l,u.slashDots[n]=!0,r},this.slashDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("slashDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.slashDots[f])throw new Error("Replacing slashDots."+f+" after patching in a builder is unsupported.");var d=s.slashDots[f];c.push({p:["slashDots",f],ld:d,li:o[f-n]}),u.slashDots[f]=!0}for(;f<n+i;++f){if(u.slashDots[f])throw new Error("Removing slashDots."+f+" after patching in a builder is unsupported.");var d=s.slashDots[f];c.push({p:["slashDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["slashDots",f],li:o[f-n]}),u.slashDots[f]=!0}return(h=s.slashDots).splice.apply(h,[n,i].concat(o)),a.slashDots=s.slashDots,(p=u.slashDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.type=function(e){return a.type=e,delete o["type;"],l.type=!0,r}}return e}();t.patchSlash=Un,t.buildSlash=An;var Mf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MeasureStyle",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.measureRepeat=function(t){if("function"==typeof t){delete r.measureRepeat;var n=t(new Uf(e&&e.measureRepeat));e?a.measureRepeat=n:r.measureRepeat=n.build()}else r.measureRepeat=t,delete a["measureRepeat;"];return o.measureRepeat=!0,i},this.beatRepeat=function(t){if("function"==typeof t){delete r.beatRepeat;var n=t(new Af(e&&e.beatRepeat));e?a.beatRepeat=n:r.beatRepeat=n.build()}else r.beatRepeat=t,delete a["beatRepeat;"];return o.beatRepeat=!0,i},this.multipleRest=function(t){if("function"==typeof t){delete r.multipleRest;var n=t(new Of(e&&e.multipleRest));e?a.multipleRest=n:r.multipleRest=n.build()}else r.multipleRest=t,delete a["multipleRest;"];return o.multipleRest=!0,i},this.slash=function(t){if("function"==typeof t){delete r.slash;var n=t(new Ef(e&&e.slash));e?a.slash=n:r.slash=n.build()}else r.slash=t,delete a["slash;"];return o.slash=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchMeasureStyle=En,t.buildMeasureStyle=Mn;var Xf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Attributes",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.divisions=function(e){return a.divisions=e,delete o["divisions;"],l.divisions=!0,r},this.partSymbol=function(t){if("function"==typeof t){delete a.partSymbol;var n=t(new Ff(e&&e.partSymbol));e?o.partSymbol=n:a.partSymbol=n.build()}else a.partSymbol=t,delete o["partSymbol;"];return l.partSymbol=!0,r},this.clefs=function(e){return a.clefs=e,delete o["clefs;"],l.clefs=!0,r},this.clefsAt=function(n,i){if(t("clefs"),u.clefs[n])throw new Error("Patching clefs."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.clefs&&e._snapshot.clefs[n]&&!e.clefs[n]&&c.push({p:["clefs",n],li:e._snapshot.clefs}),"function"==typeof i&&s.clefs[n]){var o=i(new xf(s.clefs[n])).patch();return c=c.concat(o.map(function(e){return e.p=["clefs",n].concat(e.p),e})),u.clefs[n]=!0,r}var l="function"==typeof i?i(new xf(s.clefs[n])).build():i;return e?c.push({p:["clefs",n],li:l}):a.clefs=s.clefs,s.clefs[n]=l,u.clefs[n]=!0,r},this.clefsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("clefs");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.clefs[f])throw new Error("Replacing clefs."+f+" after patching in a builder is unsupported.");var d=s.clefs[f];c.push({p:["clefs",f],ld:d,li:o[f-n]}),u.clefs[f]=!0}for(;f<n+i;++f){if(u.clefs[f])throw new Error("Removing clefs."+f+" after patching in a builder is unsupported.");var d=s.clefs[f];c.push({p:["clefs",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["clefs",f],li:o[f-n]}),u.clefs[f]=!0}return(h=s.clefs).splice.apply(h,[n,i].concat(o)),a.clefs=s.clefs,(p=u.clefs).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.measureStyles=function(e){return a.measureStyles=e,delete o["measureStyles;"],l.measureStyles=!0,r},this.measureStylesAt=function(n,i){if(t("measureStyles"),u.measureStyles[n])throw new Error("Patching measureStyles."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.measureStyles&&e._snapshot.measureStyles[n]&&!e.measureStyles[n]&&c.push({p:["measureStyles",n],li:e._snapshot.measureStyles}),"function"==typeof i&&s.measureStyles[n]){var o=i(new Mf(s.measureStyles[n])).patch();return c=c.concat(o.map(function(e){return e.p=["measureStyles",n].concat(e.p),e})),u.measureStyles[n]=!0,r}var l="function"==typeof i?i(new Mf(s.measureStyles[n])).build():i;return e?c.push({p:["measureStyles",n],li:l}):a.measureStyles=s.measureStyles,s.measureStyles[n]=l,u.measureStyles[n]=!0,r},this.measureStylesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("measureStyles");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.measureStyles[f])throw new Error("Replacing measureStyles."+f+" after patching in a builder is unsupported.");var d=s.measureStyles[f];c.push({p:["measureStyles",f],ld:d,li:o[f-n]}),u.measureStyles[f]=!0}for(;f<n+i;++f){if(u.measureStyles[f])throw new Error("Removing measureStyles."+f+" after patching in a builder is unsupported.");var d=s.measureStyles[f];c.push({p:["measureStyles",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["measureStyles",f],li:o[f-n]}),u.measureStyles[f]=!0}return(h=s.measureStyles).splice.apply(h,[n,i].concat(o)),a.measureStyles=s.measureStyles,(p=u.measureStyles).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.times=function(e){return a.times=e,delete o["times;"],l.times=!0,r},this.timesAt=function(n,i){if(t("times"),u.times[n])throw new Error("Patching times."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.times&&e._snapshot.times[n]&&!e.times[n]&&c.push({p:["times",n],li:e._snapshot.times}),"function"==typeof i&&s.times[n]){var o=i(new Df(s.times[n])).patch();return c=c.concat(o.map(function(e){return e.p=["times",n].concat(e.p),e})),u.times[n]=!0,r}var l="function"==typeof i?i(new Df(s.times[n])).build():i;return e?c.push({p:["times",n],li:l}):a.times=s.times,s.times[n]=l,u.times[n]=!0,r},this.timesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("times");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.times[f])throw new Error("Replacing times."+f+" after patching in a builder is unsupported.");var d=s.times[f];c.push({p:["times",f],ld:d,li:o[f-n]}),u.times[f]=!0}for(;f<n+i;++f){if(u.times[f])throw new Error("Removing times."+f+" after patching in a builder is unsupported.");var d=s.times[f];c.push({p:["times",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["times",f],li:o[f-n]}),u.times[f]=!0}return(h=s.times).splice.apply(h,[n,i].concat(o)),a.times=s.times,(p=u.times).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.staffDetails=function(e){return a.staffDetails=e,delete o["staffDetails;"],l.staffDetails=!0,r},this.staffDetailsAt=function(n,i){if(t("staffDetails"),u.staffDetails[n])throw new Error("Patching staffDetails."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.staffDetails&&e._snapshot.staffDetails[n]&&!e.staffDetails[n]&&c.push({p:["staffDetails",n],li:e._snapshot.staffDetails}),"function"==typeof i&&s.staffDetails[n]){var o=i(new Bf(s.staffDetails[n])).patch();return c=c.concat(o.map(function(e){return e.p=["staffDetails",n].concat(e.p),e})),u.staffDetails[n]=!0,r}var l="function"==typeof i?i(new Bf(s.staffDetails[n])).build():i;return e?c.push({p:["staffDetails",n],li:l}):a.staffDetails=s.staffDetails,s.staffDetails[n]=l,u.staffDetails[n]=!0,r},this.staffDetailsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("staffDetails");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.staffDetails[f])throw new Error("Replacing staffDetails."+f+" after patching in a builder is unsupported.");var d=s.staffDetails[f];c.push({p:["staffDetails",f],ld:d,li:o[f-n]}),u.staffDetails[f]=!0}for(;f<n+i;++f){if(u.staffDetails[f])throw new Error("Removing staffDetails."+f+" after patching in a builder is unsupported.");var d=s.staffDetails[f];c.push({p:["staffDetails",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["staffDetails",f],li:o[f-n]}),u.staffDetails[f]=!0}return(h=s.staffDetails).splice.apply(h,[n,i].concat(o)),a.staffDetails=s.staffDetails,(p=u.staffDetails).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.transposes=function(e){return a.transposes=e,delete o["transposes;"],l.transposes=!0,r},this.transposesAt=function(n,i){if(t("transposes"),u.transposes[n])throw new Error("Patching transposes."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.transposes&&e._snapshot.transposes[n]&&!e.transposes[n]&&c.push({p:["transposes",n],li:e._snapshot.transposes}),"function"==typeof i&&s.transposes[n]){var o=i(new Lf(s.transposes[n])).patch();return c=c.concat(o.map(function(e){return e.p=["transposes",n].concat(e.p),e})),u.transposes[n]=!0,r}var l="function"==typeof i?i(new Lf(s.transposes[n])).build():i;return e?c.push({p:["transposes",n],li:l}):a.transposes=s.transposes,s.transposes[n]=l,u.transposes[n]=!0,r},this.transposesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("transposes");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.transposes[f])throw new Error("Replacing transposes."+f+" after patching in a builder is unsupported.");var d=s.transposes[f];c.push({p:["transposes",f],ld:d,li:o[f-n]}),u.transposes[f]=!0}for(;f<n+i;++f){if(u.transposes[f])throw new Error("Removing transposes."+f+" after patching in a builder is unsupported.");var d=s.transposes[f];c.push({p:["transposes",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["transposes",f],li:o[f-n]}),u.transposes[f]=!0}return(h=s.transposes).splice.apply(h,[n,i].concat(o)),a.transposes=s.transposes,(p=u.transposes).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.staves=function(e){return a.staves=e,delete o["staves;"],l.staves=!0,r},this.instruments=function(e){return a.instruments=e,delete o["instruments;"],l.instruments=!0,r},this.keySignatures=function(e){return a.keySignatures=e,delete o["keySignatures;"],l.keySignatures=!0,r},this.keySignaturesAt=function(n,i){if(t("keySignatures"),u.keySignatures[n])throw new Error("Patching keySignatures."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.keySignatures&&e._snapshot.keySignatures[n]&&!e.keySignatures[n]&&c.push({p:["keySignatures",n],li:e._snapshot.keySignatures}),"function"==typeof i&&s.keySignatures[n]){var o=i(new Nf(s.keySignatures[n])).patch();return c=c.concat(o.map(function(e){return e.p=["keySignatures",n].concat(e.p),e})),u.keySignatures[n]=!0,r}var l="function"==typeof i?i(new Nf(s.keySignatures[n])).build():i;return e?c.push({p:["keySignatures",n],li:l}):a.keySignatures=s.keySignatures,s.keySignatures[n]=l,u.keySignatures[n]=!0,r},this.keySignaturesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("keySignatures");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.keySignatures[f])throw new Error("Replacing keySignatures."+f+" after patching in a builder is unsupported.");var d=s.keySignatures[f];c.push({p:["keySignatures",f],ld:d,li:o[f-n]}),u.keySignatures[f]=!0}for(;f<n+i;++f){if(u.keySignatures[f])throw new Error("Removing keySignatures."+f+" after patching in a builder is unsupported.");var d=s.keySignatures[f];c.push({p:["keySignatures",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["keySignatures",f],li:o[f-n]}),u.keySignatures[f]=!0}return(h=s.keySignatures).splice.apply(h,[n,i].concat(o)),a.keySignatures=s.keySignatures,(p=u.keySignatures).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.directives=function(e){return a.directives=e,delete o["directives;"],l.directives=!0,r},this.directivesAt=function(n,i){if(t("directives"),u.directives[n])throw new Error("Patching directives."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.directives&&e._snapshot.directives[n]&&!e.directives[n]&&c.push({p:["directives",n],li:e._snapshot.directives}),"function"==typeof i&&s.directives[n]){var o=i(new Wf(s.directives[n])).patch();return c=c.concat(o.map(function(e){return e.p=["directives",n].concat(e.p),e})),u.directives[n]=!0,r}var l="function"==typeof i?i(new Wf(s.directives[n])).build():i;return e?c.push({p:["directives",n],li:l}):a.directives=s.directives,s.directives[n]=l,u.directives[n]=!0,r},this.directivesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("directives");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.directives[f])throw new Error("Replacing directives."+f+" after patching in a builder is unsupported.");var d=s.directives[f];c.push({p:["directives",f],ld:d,li:o[f-n]}),u.directives[f]=!0}for(;f<n+i;++f){if(u.directives[f])throw new Error("Removing directives."+f+" after patching in a builder is unsupported.");var d=s.directives[f];c.push({p:["directives",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["directives",f],li:o[f-n]}),u.directives[f]=!0}return(h=s.directives).splice.apply(h,[n,i].concat(o)),a.directives=s.directives,(p=u.directives).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r}}return e}();t.patchAttributes=Xn,t.buildAttributes=Pn;var Pf=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Cue",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchCue=Yn,t.buildCue=Rn;var Yf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Grace",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.makeTime=function(e){return r.makeTime=e,delete a["makeTime;"],o.makeTime=!0,i},this.stealTimePrevious=function(e){return r.stealTimePrevious=e,delete a["stealTimePrevious;"],o.stealTimePrevious=!0,i},this.slash=function(e){return r.slash=e,delete a["slash;"],o.slash=!0,i},this.stealTimeFollowing=function(e){return r.stealTimeFollowing=e,delete a["stealTimeFollowing;"],o.stealTimeFollowing=!0,i}}return e}();t.patchGrace=zn,t.buildGrace=In;var Rf=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Chord",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchChord=Hn,t.buildChord=jn;var zf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Unpitched",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.displayStep=function(e){return r.displayStep=e,delete a["displayStep;"],o.displayStep=!0,i},this.displayOctave=function(e){return r.displayOctave=e,delete a["displayOctave;"],o.displayOctave=!0,i}}return e}();t.patchUnpitched=qn,t.buildUnpitched=Gn;var If=function(){function e(e){function t(){console.assert(e&&!o.octave||void 0!==a.octave||void 0!==r.octave,"octave is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Pitch",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.alter=function(e){return r.alter=e,delete a["alter;"],o.alter=!0,i},this.step=function(e){return r.step=e,delete a["step;"],o.step=!0,i},this.octave=function(e){return r.octave=e,delete a["octave;"],o.octave=!0,i}}return e}();t.patchPitch=Vn,t.buildPitch=Qn;var Hf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="FullNote",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.unpitched=function(t){if("function"==typeof t){delete r.unpitched;var n=t(new zf(e&&e.unpitched));e?a.unpitched=n:r.unpitched=n.build()}else r.unpitched=t,delete a["unpitched;"];return o.unpitched=!0,i},this.chord=function(t){if("function"==typeof t){delete r.chord;var n=t(new Rf(e&&e.chord));e?a.chord=n:r.chord=n.build()}else r.chord=t,delete a["chord;"];return o.chord=!0,i},this.pitch=function(t){if("function"==typeof t){delete r.pitch;var n=t(new If(e&&e.pitch));e?a.pitch=n:r.pitch=n.build()}else r.pitch=t,delete a["pitch;"];return o.pitch=!0,i},this.rest=function(t){if("function"==typeof t){
delete r.rest;var n=t(new jf(e&&e.rest));e?a.rest=n:r.rest=n.build()}else r.rest=t,delete a["rest;"];return o.rest=!0,i}}return e}();t.patchFullNote=Jn,t.buildFullNote=Kn;var jf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Rest",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.measure=function(e){return r.measure=e,delete a["measure;"],o.measure=!0,i},this.displayStep=function(e){return r.displayStep=e,delete a["displayStep;"],o.displayStep=!0,i},this.displayOctave=function(e){return r.displayOctave=e,delete a["displayOctave;"],o.displayOctave=!0,i}}return e}();t.patchRest=Zn,t.buildRest=$n;var qf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tie",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.timeOnly=function(e){return r.timeOnly=e,delete a["timeOnly;"],o.timeOnly=!0,i}}return e}();t.patchTie=ei,t.buildTie=ti;var Gf=function(){function e(e){function t(){console.assert(e&&!o.id||void 0!==a.id||void 0!==r.id,"id is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Instrument",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.id=function(e){return r.id=e,delete a["id;"],o.id=!0,i}}return e}();t.patchInstrument=ni,t.buildInstrument=ii;var Vf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Note",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.noteheadText=function(t){if("function"==typeof t){delete a.noteheadText;var n=t(new td(e&&e.noteheadText));e?o.noteheadText=n:a.noteheadText=n.build()}else a.noteheadText=t,delete o["noteheadText;"];return l.noteheadText=!0,r},this.timeModification=function(t){if("function"==typeof t){delete a.timeModification;var n=t(new Zf(e&&e.timeModification));e?o.timeModification=n:a.timeModification=n.build()}else a.timeModification=t,delete o["timeModification;"];return l.timeModification=!0,r},this.accidental=function(t){if("function"==typeof t){delete a.accidental;var n=t(new Kf(e&&e.accidental));e?o.accidental=n:a.accidental=n.build()}else a.accidental=t,delete o["accidental;"];return l.accidental=!0,r},this.instrument=function(t){if("function"==typeof t){delete a.instrument;var n=t(new Gf(e&&e.instrument));e?o.instrument=n:a.instrument=n.build()}else a.instrument=t,delete o["instrument;"];return l.instrument=!0,r},this.attack=function(e){return a.attack=e,delete o["attack;"],l.attack=!0,r},this.endDynamics=function(e){return a.endDynamics=e,delete o["endDynamics;"],l.endDynamics=!0,r},this.lyrics=function(e){return a.lyrics=e,delete o["lyrics;"],l.lyrics=!0,r},this.lyricsAt=function(n,i){if(t("lyrics"),u.lyrics[n])throw new Error("Patching lyrics."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.lyrics&&e._snapshot.lyrics[n]&&!e.lyrics[n]&&c.push({p:["lyrics",n],li:e._snapshot.lyrics}),"function"==typeof i&&s.lyrics[n]){var o=i(new Th(s.lyrics[n])).patch();return c=c.concat(o.map(function(e){return e.p=["lyrics",n].concat(e.p),e})),u.lyrics[n]=!0,r}var l="function"==typeof i?i(new Th(s.lyrics[n])).build():i;return e?c.push({p:["lyrics",n],li:l}):a.lyrics=s.lyrics,s.lyrics[n]=l,u.lyrics[n]=!0,r},this.lyricsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("lyrics");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.lyrics[f])throw new Error("Replacing lyrics."+f+" after patching in a builder is unsupported.");var d=s.lyrics[f];c.push({p:["lyrics",f],ld:d,li:o[f-n]}),u.lyrics[f]=!0}for(;f<n+i;++f){if(u.lyrics[f])throw new Error("Removing lyrics."+f+" after patching in a builder is unsupported.");var d=s.lyrics[f];c.push({p:["lyrics",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["lyrics",f],li:o[f-n]}),u.lyrics[f]=!0}return(h=s.lyrics).splice.apply(h,[n,i].concat(o)),a.lyrics=s.lyrics,(p=u.lyrics).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.dots=function(e){return a.dots=e,delete o["dots;"],l.dots=!0,r},this.dotsAt=function(n,i){if(t("dots"),u.dots[n])throw new Error("Patching dots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.dots&&e._snapshot.dots[n]&&!e.dots[n]&&c.push({p:["dots",n],li:e._snapshot.dots}),"function"==typeof i&&s.dots[n]){var o=i(new Jf(s.dots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["dots",n].concat(e.p),e})),u.dots[n]=!0,r}var l="function"==typeof i?i(new Jf(s.dots[n])).build():i;return e?c.push({p:["dots",n],li:l}):a.dots=s.dots,s.dots[n]=l,u.dots[n]=!0,r},this.dotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("dots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.dots[f])throw new Error("Replacing dots."+f+" after patching in a builder is unsupported.");var d=s.dots[f];c.push({p:["dots",f],ld:d,li:o[f-n]}),u.dots[f]=!0}for(;f<n+i;++f){if(u.dots[f])throw new Error("Removing dots."+f+" after patching in a builder is unsupported.");var d=s.dots[f];c.push({p:["dots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["dots",f],li:o[f-n]}),u.dots[f]=!0}return(h=s.dots).splice.apply(h,[n,i].concat(o)),a.dots=s.dots,(p=u.dots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.notations=function(e){return a.notations=e,delete o["notations;"],l.notations=!0,r},this.notationsAt=function(n,i){if(t("notations"),u.notations[n])throw new Error("Patching notations."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.notations&&e._snapshot.notations[n]&&!e.notations[n]&&c.push({p:["notations",n],li:e._snapshot.notations}),"function"==typeof i&&s.notations[n]){var o=i(new id(s.notations[n])).patch();return c=c.concat(o.map(function(e){return e.p=["notations",n].concat(e.p),e})),u.notations[n]=!0,r}var l="function"==typeof i?i(new id(s.notations[n])).build():i;return e?c.push({p:["notations",n],li:l}):a.notations=s.notations,s.notations[n]=l,u.notations[n]=!0,r},this.notationsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("notations");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.notations[f])throw new Error("Replacing notations."+f+" after patching in a builder is unsupported.");var d=s.notations[f];c.push({p:["notations",f],ld:d,li:o[f-n]}),u.notations[f]=!0}for(;f<n+i;++f){if(u.notations[f])throw new Error("Removing notations."+f+" after patching in a builder is unsupported.");var d=s.notations[f];c.push({p:["notations",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["notations",f],li:o[f-n]}),u.notations[f]=!0}return(h=s.notations).splice.apply(h,[n,i].concat(o)),a.notations=s.notations,(p=u.notations).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.stem=function(t){if("function"==typeof t){delete a.stem;var n=t(new $f(e&&e.stem));e?o.stem=n:a.stem=n.build()}else a.stem=t,delete o["stem;"];return l.stem=!0,r},this.noteType=function(t){if("function"==typeof t){delete a.noteType;var n=t(new Qf(e&&e.noteType));e?o.noteType=n:a.noteType=n.build()}else a.noteType=t,delete o["noteType;"];return l.noteType=!0,r},this.pizzicato=function(e){return a.pizzicato=e,delete o["pizzicato;"],l.pizzicato=!0,r},this.cue=function(t){if("function"==typeof t){delete a.cue;var n=t(new Pf(e&&e.cue));e?o.cue=n:a.cue=n.build()}else a.cue=t,delete o["cue;"];return l.cue=!0,r},this.duration=function(e){return a.duration=e,delete o["duration;"],l.duration=!0,r},this.ties=function(e){return a.ties=e,delete o["ties;"],l.ties=!0,r},this.tiesAt=function(n,i){if(t("ties"),u.ties[n])throw new Error("Patching ties."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.ties&&e._snapshot.ties[n]&&!e.ties[n]&&c.push({p:["ties",n],li:e._snapshot.ties}),"function"==typeof i&&s.ties[n]){var o=i(new qf(s.ties[n])).patch();return c=c.concat(o.map(function(e){return e.p=["ties",n].concat(e.p),e})),u.ties[n]=!0,r}var l="function"==typeof i?i(new qf(s.ties[n])).build():i;return e?c.push({p:["ties",n],li:l}):a.ties=s.ties,s.ties[n]=l,u.ties[n]=!0,r},this.tiesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("ties");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.ties[f])throw new Error("Replacing ties."+f+" after patching in a builder is unsupported.");var d=s.ties[f];c.push({p:["ties",f],ld:d,li:o[f-n]}),u.ties[f]=!0}for(;f<n+i;++f){if(u.ties[f])throw new Error("Removing ties."+f+" after patching in a builder is unsupported.");var d=s.ties[f];c.push({p:["ties",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["ties",f],li:o[f-n]}),u.ties[f]=!0}return(h=s.ties).splice.apply(h,[n,i].concat(o)),a.ties=s.ties,(p=u.ties).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.dynamics=function(e){return a.dynamics=e,delete o["dynamics;"],l.dynamics=!0,r},this.play=function(t){if("function"==typeof t){delete a.play;var n=t(new qc(e&&e.play));e?o.play=n:a.play=n.build()}else a.play=t,delete o["play;"];return l.play=!0,r},this.staff=function(e){return a.staff=e,delete o["staff;"],l.staff=!0,r},this.grace=function(t){if("function"==typeof t){delete a.grace;var n=t(new Yf(e&&e.grace));e?o.grace=n:a.grace=n.build()}else a.grace=t,delete o["grace;"];return l.grace=!0,r},this.notehead=function(t){if("function"==typeof t){delete a.notehead;var n=t(new ed(e&&e.notehead));e?o.notehead=n:a.notehead=n.build()}else a.notehead=t,delete o["notehead;"];return l.notehead=!0,r},this.release=function(e){return a.release=e,delete o["release;"],l.release=!0,r},this.beams=function(e){return a.beams=e,delete o["beams;"],l.beams=!0,r},this.beamsAt=function(n,i){if(t("beams"),u.beams[n])throw new Error("Patching beams."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.beams&&e._snapshot.beams[n]&&!e.beams[n]&&c.push({p:["beams",n],li:e._snapshot.beams}),"function"==typeof i&&s.beams[n]){var o=i(new nd(s.beams[n])).patch();return c=c.concat(o.map(function(e){return e.p=["beams",n].concat(e.p),e})),u.beams[n]=!0,r}var l="function"==typeof i?i(new nd(s.beams[n])).build():i;return e?c.push({p:["beams",n],li:l}):a.beams=s.beams,s.beams[n]=l,u.beams[n]=!0,r},this.beamsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("beams");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.beams[f])throw new Error("Replacing beams."+f+" after patching in a builder is unsupported.");var d=s.beams[f];c.push({p:["beams",f],ld:d,li:o[f-n]}),u.beams[f]=!0}for(;f<n+i;++f){if(u.beams[f])throw new Error("Removing beams."+f+" after patching in a builder is unsupported.");var d=s.beams[f];c.push({p:["beams",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["beams",f],li:o[f-n]}),u.beams[f]=!0}return(h=s.beams).splice.apply(h,[n,i].concat(o)),a.beams=s.beams,(p=u.beams).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.timeOnly=function(e){return a.timeOnly=e,delete o["timeOnly;"],l.timeOnly=!0,r},this.voice=function(e){return a.voice=e,delete o["voice;"],l.voice=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r},this.printDot=function(e){return a.printDot=e,delete o["printDot;"],l.printDot=!0,r},this.printLyric=function(e){return a.printLyric=e,delete o["printLyric;"],l.printLyric=!0,r},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r},this.printSpacing=function(e){return a.printSpacing=e,delete o["printSpacing;"],l.printSpacing=!0,r},this.unpitched=function(t){if("function"==typeof t){delete a.unpitched;var n=t(new zf(e&&e.unpitched));e?o.unpitched=n:a.unpitched=n.build()}else a.unpitched=t,delete o["unpitched;"];return l.unpitched=!0,r},this.chord=function(t){if("function"==typeof t){delete a.chord;var n=t(new Rf(e&&e.chord));e?o.chord=n:a.chord=n.build()}else a.chord=t,delete o["chord;"];return l.chord=!0,r},this.pitch=function(t){if("function"==typeof t){delete a.pitch;var n=t(new If(e&&e.pitch));e?o.pitch=n:a.pitch=n.build()}else a.pitch=t,delete o["pitch;"];return l.pitch=!0,r},this.rest=function(t){if("function"==typeof t){delete a.rest;var n=t(new jf(e&&e.rest));e?o.rest=n:a.rest=n.build()}else a.rest=t,delete o["rest;"];return l.rest=!0,r}}return e}();t.patchNote=ri,t.buildNote=ai;var Qf=function(){function e(e){function t(){console.assert(e&&!o.duration||void 0!==a.duration||void 0!==r.duration,"duration is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Type",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.duration=function(e){return r.duration=e,delete a["duration;"],o.duration=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i}}return e}();t.patchType=oi,t.buildType=li;var Jf=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Dot",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchDot=si,t.buildDot=ui;var Kf=function(){function e(e){function t(){console.assert(e&&!o.accidental||void 0!==a.accidental||void 0!==r.accidental,"accidental is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Accidental",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.cautionary=function(e){return r.cautionary=e,delete a["cautionary;"],o.cautionary=!0,i},this.accidental=function(e){return r.accidental=e,delete a["accidental;"],o.accidental=!0,i},this.editorial=function(e){return r.editorial=e,delete a["editorial;"],o.editorial=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.bracket=function(e){return r.bracket=e,delete a["bracket;"],o.bracket=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.parentheses=function(e){return r.parentheses=e,delete a["parentheses;"],o.parentheses=!0,i}}return e}();t.patchAccidental=ci,t.buildAccidental=fi;var Zf=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.actualNotes||void 0!==o.actualNotes||void 0!==a.actualNotes,"actualNotes is a required field"),console.assert(e&&!l.normalNotes||void 0!==o.normalNotes||void 0!==a.normalNotes,"normalNotes is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="TimeModification",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.actualNotes=function(e){return a.actualNotes=e,delete o["actualNotes;"],l.actualNotes=!0,r},this.normalType=function(e){return a.normalType=e,delete o["normalType;"],l.normalType=!0,r},this.normalNotes=function(e){return a.normalNotes=e,delete o["normalNotes;"],l.normalNotes=!0,r},this.normalDots=function(e){return a.normalDots=e,delete o["normalDots;"],l.normalDots=!0,r},this.normalDotsAt=function(n,i){if(t("normalDots"),u.normalDots[n])throw new Error("Patching normalDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.normalDots&&e._snapshot.normalDots[n]&&!e.normalDots[n]&&c.push({p:["normalDots",n],li:e._snapshot.normalDots}),"function"==typeof i&&s.normalDots[n]){var o=i(new Ac(s.normalDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["normalDots",n].concat(e.p),e})),u.normalDots[n]=!0,r}var l="function"==typeof i?i(new Ac(s.normalDots[n])).build():i;return e?c.push({p:["normalDots",n],li:l}):a.normalDots=s.normalDots,s.normalDots[n]=l,u.normalDots[n]=!0,r},this.normalDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("normalDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.normalDots[f])throw new Error("Replacing normalDots."+f+" after patching in a builder is unsupported.");var d=s.normalDots[f];c.push({p:["normalDots",f],ld:d,li:o[f-n]}),u.normalDots[f]=!0}for(;f<n+i;++f){if(u.normalDots[f])throw new Error("Removing normalDots."+f+" after patching in a builder is unsupported.");var d=s.normalDots[f];c.push({p:["normalDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["normalDots",f],li:o[f-n]}),u.normalDots[f]=!0}return(h=s.normalDots).splice.apply(h,[n,i].concat(o)),a.normalDots=s.normalDots,(p=u.normalDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchTimeModification=di,t.buildTimeModification=hi;var $f=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Stem",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchStem=pi,t.buildStem=mi;var ed=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Notehead",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.filled=function(e){return r.filled=e,delete a["filled;"],o.filled=!0,i},this.parentheses=function(e){return r.parentheses=e,delete a["parentheses;"],o.parentheses=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchNotehead=vi,t.buildNotehead=gi;var td=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.text||void 0!==o.text||void 0!==a.text,"text is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="NoteheadText",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.text=function(e){return a.text=e,delete o["text;"],l.text=!0,r},this.textAt=function(n,i){if(t("text"),u.text[n])throw new Error("Patching text."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.text&&e._snapshot.text[n]&&!e.text[n]&&c.push({p:["text",n],li:e._snapshot.text}),"function"==typeof i&&s.text[n]){var o=i(new Gu(s.text[n])).patch();return c=c.concat(o.map(function(e){return e.p=["text",n].concat(e.p),e})),u.text[n]=!0,r}var l="function"==typeof i?i(new Gu(s.text[n])).build():i;return e?c.push({p:["text",n],li:l}):a.text=s.text,s.text[n]=l,u.text[n]=!0,r},this.textSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("text");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.text[f])throw new Error("Replacing text."+f+" after patching in a builder is unsupported.");var d=s.text[f];c.push({p:["text",f],ld:d,li:o[f-n]}),u.text[f]=!0}for(;f<n+i;++f){if(u.text[f])throw new Error("Removing text."+f+" after patching in a builder is unsupported.");var d=s.text[f];c.push({p:["text",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["text",f],li:o[f-n]}),u.text[f]=!0}return(h=s.text).splice.apply(h,[n,i].concat(o)),a.text=s.text,(p=u.text).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchNoteheadText=yi,t.buildNoteheadText=bi;var nd=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Beam",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.repeater=function(e){return r.repeater=e,delete a["repeater;"],o.repeater=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.fan=function(e){return r.fan=e,delete a["fan;"],o.fan=!0,i}}return e}();t.patchBeam=Si,t.buildBeam=wi;var id=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Notations",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.slurs=function(e){return a.slurs=e,delete o["slurs;"],l.slurs=!0,r},this.slursAt=function(n,i){if(t("slurs"),u.slurs[n])throw new Error("Patching slurs."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.slurs&&e._snapshot.slurs[n]&&!e.slurs[n]&&c.push({p:["slurs",n],li:e._snapshot.slurs}),"function"==typeof i&&s.slurs[n]){var o=i(new ad(s.slurs[n])).patch();return c=c.concat(o.map(function(e){return e.p=["slurs",n].concat(e.p),e})),u.slurs[n]=!0,r}var l="function"==typeof i?i(new ad(s.slurs[n])).build():i;return e?c.push({p:["slurs",n],li:l}):a.slurs=s.slurs,s.slurs[n]=l,u.slurs[n]=!0,r},this.slursSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("slurs");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.slurs[f])throw new Error("Replacing slurs."+f+" after patching in a builder is unsupported.");var d=s.slurs[f];c.push({p:["slurs",f],ld:d,li:o[f-n]}),u.slurs[f]=!0}for(;f<n+i;++f){if(u.slurs[f])throw new Error("Removing slurs."+f+" after patching in a builder is unsupported.");var d=s.slurs[f];c.push({p:["slurs",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["slurs",f],li:o[f-n]}),u.slurs[f]=!0}return(h=s.slurs).splice.apply(h,[n,i].concat(o)),a.slurs=s.slurs,(p=u.slurs).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.articulations=function(e){return a.articulations=e,delete o["articulations;"],l.articulations=!0,r},this.articulationsAt=function(n,i){if(t("articulations"),u.articulations[n])throw new Error("Patching articulations."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.articulations&&e._snapshot.articulations[n]&&!e.articulations[n]&&c.push({p:["articulations",n],li:e._snapshot.articulations}),"function"==typeof i&&s.articulations[n]){var o=i(new eh(s.articulations[n])).patch();return c=c.concat(o.map(function(e){return e.p=["articulations",n].concat(e.p),e})),u.articulations[n]=!0,r}var l="function"==typeof i?i(new eh(s.articulations[n])).build():i;return e?c.push({p:["articulations",n],li:l}):a.articulations=s.articulations,s.articulations[n]=l,u.articulations[n]=!0,r},this.articulationsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("articulations");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.articulations[f])throw new Error("Replacing articulations."+f+" after patching in a builder is unsupported.");var d=s.articulations[f];c.push({p:["articulations",f],ld:d,li:o[f-n]}),u.articulations[f]=!0}for(;f<n+i;++f){if(u.articulations[f])throw new Error("Removing articulations."+f+" after patching in a builder is unsupported.");var d=s.articulations[f];c.push({p:["articulations",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["articulations",f],li:o[f-n]}),u.articulations[f]=!0}return(h=s.articulations).splice.apply(h,[n,i].concat(o)),a.articulations=s.articulations,(p=u.articulations).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.slides=function(e){return a.slides=e,delete o["slides;"],l.slides=!0,r},this.slidesAt=function(n,i){if(t("slides"),u.slides[n])throw new Error("Patching slides."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.slides&&e._snapshot.slides[n]&&!e.slides[n]&&c.push({p:["slides",n],li:e._snapshot.slides}),"function"==typeof i&&s.slides[n]){var o=i(new hd(s.slides[n])).patch();return c=c.concat(o.map(function(e){return e.p=["slides",n].concat(e.p),e})),u.slides[n]=!0,r}var l="function"==typeof i?i(new hd(s.slides[n])).build():i;return e?c.push({p:["slides",n],li:l}):a.slides=s.slides,s.slides[n]=l,u.slides[n]=!0,r},this.slidesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("slides");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.slides[f])throw new Error("Replacing slides."+f+" after patching in a builder is unsupported.");var d=s.slides[f];c.push({p:["slides",f],ld:d,li:o[f-n]}),u.slides[f]=!0}for(;f<n+i;++f){if(u.slides[f])throw new Error("Removing slides."+f+" after patching in a builder is unsupported.");var d=s.slides[f];c.push({p:["slides",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["slides",f],li:o[f-n]}),u.slides[f]=!0}return(h=s.slides).splice.apply(h,[n,i].concat(o)),a.slides=s.slides,(p=u.slides).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.technicals=function(e){return a.technicals=e,delete o["technicals;"],l.technicals=!0,r},this.technicalsAt=function(n,i){if(t("technicals"),u.technicals[n])throw new Error("Patching technicals."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.technicals&&e._snapshot.technicals[n]&&!e.technicals[n]&&c.push({p:["technicals",n],li:e._snapshot.technicals}),"function"==typeof i&&s.technicals[n]){var o=i(new Ld(s.technicals[n])).patch();return c=c.concat(o.map(function(e){return e.p=["technicals",n].concat(e.p),e})),u.technicals[n]=!0,r}var l="function"==typeof i?i(new Ld(s.technicals[n])).build():i;return e?c.push({p:["technicals",n],li:l}):a.technicals=s.technicals,s.technicals[n]=l,u.technicals[n]=!0,r},this.technicalsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("technicals");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.technicals[f])throw new Error("Replacing technicals."+f+" after patching in a builder is unsupported.");var d=s.technicals[f];c.push({p:["technicals",f],ld:d,li:o[f-n]}),u.technicals[f]=!0}for(;f<n+i;++f){if(u.technicals[f])throw new Error("Removing technicals."+f+" after patching in a builder is unsupported.");var d=s.technicals[f];c.push({p:["technicals",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["technicals",f],li:o[f-n]}),u.technicals[f]=!0}return(h=s.technicals).splice.apply(h,[n,i].concat(o)),a.technicals=s.technicals,(p=u.technicals).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.tieds=function(e){return a.tieds=e,delete o["tieds;"],l.tieds=!0,r},this.tiedsAt=function(n,i){if(t("tieds"),u.tieds[n])throw new Error("Patching tieds."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.tieds&&e._snapshot.tieds[n]&&!e.tieds[n]&&c.push({p:["tieds",n],li:e._snapshot.tieds}),"function"==typeof i&&s.tieds[n]){var o=i(new rd(s.tieds[n])).patch();return c=c.concat(o.map(function(e){return e.p=["tieds",n].concat(e.p),e})),u.tieds[n]=!0,r}var l="function"==typeof i?i(new rd(s.tieds[n])).build():i;return e?c.push({p:["tieds",n],li:l}):a.tieds=s.tieds,s.tieds[n]=l,u.tieds[n]=!0,r},this.tiedsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("tieds");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.tieds[f])throw new Error("Replacing tieds."+f+" after patching in a builder is unsupported.");var d=s.tieds[f];c.push({p:["tieds",f],ld:d,li:o[f-n]}),u.tieds[f]=!0}for(;f<n+i;++f){if(u.tieds[f])throw new Error("Removing tieds."+f+" after patching in a builder is unsupported.");var d=s.tieds[f];c.push({p:["tieds",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["tieds",f],li:o[f-n]}),u.tieds[f]=!0}return(h=s.tieds).splice.apply(h,[n,i].concat(o)),a.tieds=s.tieds,(p=u.tieds).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.tuplets=function(e){return a.tuplets=e,delete o["tuplets;"],l.tuplets=!0,r},this.tupletsAt=function(n,i){if(t("tuplets"),u.tuplets[n])throw new Error("Patching tuplets."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.tuplets&&e._snapshot.tuplets[n]&&!e.tuplets[n]&&c.push({p:["tuplets",n],li:e._snapshot.tuplets}),"function"==typeof i&&s.tuplets[n]){var o=i(new od(s.tuplets[n])).patch();return c=c.concat(o.map(function(e){return e.p=["tuplets",n].concat(e.p),e})),u.tuplets[n]=!0,r}var l="function"==typeof i?i(new od(s.tuplets[n])).build():i;return e?c.push({p:["tuplets",n],li:l}):a.tuplets=s.tuplets,s.tuplets[n]=l,u.tuplets[n]=!0,r},this.tupletsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("tuplets");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.tuplets[f])throw new Error("Replacing tuplets."+f+" after patching in a builder is unsupported.");var d=s.tuplets[f];c.push({p:["tuplets",f],ld:d,li:o[f-n]}),u.tuplets[f]=!0}for(;f<n+i;++f){if(u.tuplets[f])throw new Error("Removing tuplets."+f+" after patching in a builder is unsupported.");var d=s.tuplets[f];c.push({p:["tuplets",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["tuplets",f],li:o[f-n]
}),u.tuplets[f]=!0}return(h=s.tuplets).splice.apply(h,[n,i].concat(o)),a.tuplets=s.tuplets,(p=u.tuplets).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.glissandos=function(e){return a.glissandos=e,delete o["glissandos;"],l.glissandos=!0,r},this.glissandosAt=function(n,i){if(t("glissandos"),u.glissandos[n])throw new Error("Patching glissandos."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.glissandos&&e._snapshot.glissandos[n]&&!e.glissandos[n]&&c.push({p:["glissandos",n],li:e._snapshot.glissandos}),"function"==typeof i&&s.glissandos[n]){var o=i(new dd(s.glissandos[n])).patch();return c=c.concat(o.map(function(e){return e.p=["glissandos",n].concat(e.p),e})),u.glissandos[n]=!0,r}var l="function"==typeof i?i(new dd(s.glissandos[n])).build():i;return e?c.push({p:["glissandos",n],li:l}):a.glissandos=s.glissandos,s.glissandos[n]=l,u.glissandos[n]=!0,r},this.glissandosSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("glissandos");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.glissandos[f])throw new Error("Replacing glissandos."+f+" after patching in a builder is unsupported.");var d=s.glissandos[f];c.push({p:["glissandos",f],ld:d,li:o[f-n]}),u.glissandos[f]=!0}for(;f<n+i;++f){if(u.glissandos[f])throw new Error("Removing glissandos."+f+" after patching in a builder is unsupported.");var d=s.glissandos[f];c.push({p:["glissandos",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["glissandos",f],li:o[f-n]}),u.glissandos[f]=!0}return(h=s.glissandos).splice.apply(h,[n,i].concat(o)),a.glissandos=s.glissandos,(p=u.glissandos).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.dynamics=function(e){return a.dynamics=e,delete o["dynamics;"],l.dynamics=!0,r},this.dynamicsAt=function(n,i){if(t("dynamics"),u.dynamics[n])throw new Error("Patching dynamics."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.dynamics&&e._snapshot.dynamics[n]&&!e.dynamics[n]&&c.push({p:["dynamics",n],li:e._snapshot.dynamics}),"function"==typeof i&&s.dynamics[n]){var o=i(new Ec(s.dynamics[n])).patch();return c=c.concat(o.map(function(e){return e.p=["dynamics",n].concat(e.p),e})),u.dynamics[n]=!0,r}var l="function"==typeof i?i(new Ec(s.dynamics[n])).build():i;return e?c.push({p:["dynamics",n],li:l}):a.dynamics=s.dynamics,s.dynamics[n]=l,u.dynamics[n]=!0,r},this.dynamicsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("dynamics");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.dynamics[f])throw new Error("Replacing dynamics."+f+" after patching in a builder is unsupported.");var d=s.dynamics[f];c.push({p:["dynamics",f],ld:d,li:o[f-n]}),u.dynamics[f]=!0}for(;f<n+i;++f){if(u.dynamics[f])throw new Error("Removing dynamics."+f+" after patching in a builder is unsupported.");var d=s.dynamics[f];c.push({p:["dynamics",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["dynamics",f],li:o[f-n]}),u.dynamics[f]=!0}return(h=s.dynamics).splice.apply(h,[n,i].concat(o)),a.dynamics=s.dynamics,(p=u.dynamics).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.fermatas=function(e){return a.fermatas=e,delete o["fermatas;"],l.fermatas=!0,r},this.fermatasAt=function(n,i){if(t("fermatas"),u.fermatas[n])throw new Error("Patching fermatas."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.fermatas&&e._snapshot.fermatas[n]&&!e.fermatas[n]&&c.push({p:["fermatas",n],li:e._snapshot.fermatas}),"function"==typeof i&&s.fermatas[n]){var o=i(new Wc(s.fermatas[n])).patch();return c=c.concat(o.map(function(e){return e.p=["fermatas",n].concat(e.p),e})),u.fermatas[n]=!0,r}var l="function"==typeof i?i(new Wc(s.fermatas[n])).build():i;return e?c.push({p:["fermatas",n],li:l}):a.fermatas=s.fermatas,s.fermatas[n]=l,u.fermatas[n]=!0,r},this.fermatasSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("fermatas");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.fermatas[f])throw new Error("Replacing fermatas."+f+" after patching in a builder is unsupported.");var d=s.fermatas[f];c.push({p:["fermatas",f],ld:d,li:o[f-n]}),u.fermatas[f]=!0}for(;f<n+i;++f){if(u.fermatas[f])throw new Error("Removing fermatas."+f+" after patching in a builder is unsupported.");var d=s.fermatas[f];c.push({p:["fermatas",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["fermatas",f],li:o[f-n]}),u.fermatas[f]=!0}return(h=s.fermatas).splice.apply(h,[n,i].concat(o)),a.fermatas=s.fermatas,(p=u.fermatas).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.accidentalMarks=function(e){return a.accidentalMarks=e,delete o["accidentalMarks;"],l.accidentalMarks=!0,r},this.accidentalMarksAt=function(n,i){if(t("accidentalMarks"),u.accidentalMarks[n])throw new Error("Patching accidentalMarks."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.accidentalMarks&&e._snapshot.accidentalMarks[n]&&!e.accidentalMarks[n]&&c.push({p:["accidentalMarks",n],li:e._snapshot.accidentalMarks}),"function"==typeof i&&s.accidentalMarks[n]){var o=i(new Cd(s.accidentalMarks[n])).patch();return c=c.concat(o.map(function(e){return e.p=["accidentalMarks",n].concat(e.p),e})),u.accidentalMarks[n]=!0,r}var l="function"==typeof i?i(new Cd(s.accidentalMarks[n])).build():i;return e?c.push({p:["accidentalMarks",n],li:l}):a.accidentalMarks=s.accidentalMarks,s.accidentalMarks[n]=l,u.accidentalMarks[n]=!0,r},this.accidentalMarksSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("accidentalMarks");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.accidentalMarks[f])throw new Error("Replacing accidentalMarks."+f+" after patching in a builder is unsupported.");var d=s.accidentalMarks[f];c.push({p:["accidentalMarks",f],ld:d,li:o[f-n]}),u.accidentalMarks[f]=!0}for(;f<n+i;++f){if(u.accidentalMarks[f])throw new Error("Removing accidentalMarks."+f+" after patching in a builder is unsupported.");var d=s.accidentalMarks[f];c.push({p:["accidentalMarks",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["accidentalMarks",f],li:o[f-n]}),u.accidentalMarks[f]=!0}return(h=s.accidentalMarks).splice.apply(h,[n,i].concat(o)),a.accidentalMarks=s.accidentalMarks,(p=u.accidentalMarks).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.ornaments=function(e){return a.ornaments=e,delete o["ornaments;"],l.ornaments=!0,r},this.ornamentsAt=function(n,i){if(t("ornaments"),u.ornaments[n])throw new Error("Patching ornaments."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.ornaments&&e._snapshot.ornaments[n]&&!e.ornaments[n]&&c.push({p:["ornaments",n],li:e._snapshot.ornaments}),"function"==typeof i&&s.ornaments[n]){var o=i(new vd(s.ornaments[n])).patch();return c=c.concat(o.map(function(e){return e.p=["ornaments",n].concat(e.p),e})),u.ornaments[n]=!0,r}var l="function"==typeof i?i(new vd(s.ornaments[n])).build():i;return e?c.push({p:["ornaments",n],li:l}):a.ornaments=s.ornaments,s.ornaments[n]=l,u.ornaments[n]=!0,r},this.ornamentsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("ornaments");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.ornaments[f])throw new Error("Replacing ornaments."+f+" after patching in a builder is unsupported.");var d=s.ornaments[f];c.push({p:["ornaments",f],ld:d,li:o[f-n]}),u.ornaments[f]=!0}for(;f<n+i;++f){if(u.ornaments[f])throw new Error("Removing ornaments."+f+" after patching in a builder is unsupported.");var d=s.ornaments[f];c.push({p:["ornaments",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["ornaments",f],li:o[f-n]}),u.ornaments[f]=!0}return(h=s.ornaments).splice.apply(h,[n,i].concat(o)),a.ornaments=s.ornaments,(p=u.ornaments).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.arpeggiates=function(e){return a.arpeggiates=e,delete o["arpeggiates;"],l.arpeggiates=!0,r},this.arpeggiatesAt=function(n,i){if(t("arpeggiates"),u.arpeggiates[n])throw new Error("Patching arpeggiates."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.arpeggiates&&e._snapshot.arpeggiates[n]&&!e.arpeggiates[n]&&c.push({p:["arpeggiates",n],li:e._snapshot.arpeggiates}),"function"==typeof i&&s.arpeggiates[n]){var o=i(new gh(s.arpeggiates[n])).patch();return c=c.concat(o.map(function(e){return e.p=["arpeggiates",n].concat(e.p),e})),u.arpeggiates[n]=!0,r}var l="function"==typeof i?i(new gh(s.arpeggiates[n])).build():i;return e?c.push({p:["arpeggiates",n],li:l}):a.arpeggiates=s.arpeggiates,s.arpeggiates[n]=l,u.arpeggiates[n]=!0,r},this.arpeggiatesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("arpeggiates");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.arpeggiates[f])throw new Error("Replacing arpeggiates."+f+" after patching in a builder is unsupported.");var d=s.arpeggiates[f];c.push({p:["arpeggiates",f],ld:d,li:o[f-n]}),u.arpeggiates[f]=!0}for(;f<n+i;++f){if(u.arpeggiates[f])throw new Error("Removing arpeggiates."+f+" after patching in a builder is unsupported.");var d=s.arpeggiates[f];c.push({p:["arpeggiates",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["arpeggiates",f],li:o[f-n]}),u.arpeggiates[f]=!0}return(h=s.arpeggiates).splice.apply(h,[n,i].concat(o)),a.arpeggiates=s.arpeggiates,(p=u.arpeggiates).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.nonArpeggiates=function(e){return a.nonArpeggiates=e,delete o["nonArpeggiates;"],l.nonArpeggiates=!0,r},this.nonArpeggiatesAt=function(n,i){if(t("nonArpeggiates"),u.nonArpeggiates[n])throw new Error("Patching nonArpeggiates."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.nonArpeggiates&&e._snapshot.nonArpeggiates[n]&&!e.nonArpeggiates[n]&&c.push({p:["nonArpeggiates",n],li:e._snapshot.nonArpeggiates}),"function"==typeof i&&s.nonArpeggiates[n]){var o=i(new yh(s.nonArpeggiates[n])).patch();return c=c.concat(o.map(function(e){return e.p=["nonArpeggiates",n].concat(e.p),e})),u.nonArpeggiates[n]=!0,r}var l="function"==typeof i?i(new yh(s.nonArpeggiates[n])).build():i;return e?c.push({p:["nonArpeggiates",n],li:l}):a.nonArpeggiates=s.nonArpeggiates,s.nonArpeggiates[n]=l,u.nonArpeggiates[n]=!0,r},this.nonArpeggiatesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("nonArpeggiates");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.nonArpeggiates[f])throw new Error("Replacing nonArpeggiates."+f+" after patching in a builder is unsupported.");var d=s.nonArpeggiates[f];c.push({p:["nonArpeggiates",f],ld:d,li:o[f-n]}),u.nonArpeggiates[f]=!0}for(;f<n+i;++f){if(u.nonArpeggiates[f])throw new Error("Removing nonArpeggiates."+f+" after patching in a builder is unsupported.");var d=s.nonArpeggiates[f];c.push({p:["nonArpeggiates",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["nonArpeggiates",f],li:o[f-n]}),u.nonArpeggiates[f]=!0}return(h=s.nonArpeggiates).splice.apply(h,[n,i].concat(o)),a.nonArpeggiates=s.nonArpeggiates,(p=u.nonArpeggiates).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.otherNotations=function(e){return a.otherNotations=e,delete o["otherNotations;"],l.otherNotations=!0,r},this.otherNotationsAt=function(n,i){if(t("otherNotations"),u.otherNotations[n])throw new Error("Patching otherNotations."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.otherNotations&&e._snapshot.otherNotations[n]&&!e.otherNotations[n]&&c.push({p:["otherNotations",n],li:e._snapshot.otherNotations}),"function"==typeof i&&s.otherNotations[n]){var o=i(new pd(s.otherNotations[n])).patch();return c=c.concat(o.map(function(e){return e.p=["otherNotations",n].concat(e.p),e})),u.otherNotations[n]=!0,r}var l="function"==typeof i?i(new pd(s.otherNotations[n])).build():i;return e?c.push({p:["otherNotations",n],li:l}):a.otherNotations=s.otherNotations,s.otherNotations[n]=l,u.otherNotations[n]=!0,r},this.otherNotationsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("otherNotations");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.otherNotations[f])throw new Error("Replacing otherNotations."+f+" after patching in a builder is unsupported.");var d=s.otherNotations[f];c.push({p:["otherNotations",f],ld:d,li:o[f-n]}),u.otherNotations[f]=!0}for(;f<n+i;++f){if(u.otherNotations[f])throw new Error("Removing otherNotations."+f+" after patching in a builder is unsupported.");var d=s.otherNotations[f];c.push({p:["otherNotations",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["otherNotations",f],li:o[f-n]}),u.otherNotations[f]=!0}return(h=s.otherNotations).splice.apply(h,[n,i].concat(o)),a.otherNotations=s.otherNotations,(p=u.otherNotations).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r}}return e}();t.patchNotations=Ni,t.buildNotations=Di;var rd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tied",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.orientation=function(e){return r.orientation=e,delete a["orientation;"],o.orientation=!0,i},this.bezierX2=function(e){return r.bezierX2=e,delete a["bezierX2;"],o.bezierX2=!0,i},this.bezierOffset=function(e){return r.bezierOffset=e,delete a["bezierOffset;"],o.bezierOffset=!0,i},this.bezierOffset2=function(e){return r.bezierOffset2=e,delete a["bezierOffset2;"],o.bezierOffset2=!0,i},this.bezierX=function(e){return r.bezierX=e,delete a["bezierX;"],o.bezierX=!0,i},this.bezierY=function(e){return r.bezierY=e,delete a["bezierY;"],o.bezierY=!0,i},this.bezierY2=function(e){return r.bezierY2=e,delete a["bezierY2;"],o.bezierY2=!0,i}}return e}();t.patchTied=Ti,t.buildTied=Fi;var ad=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Slur",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.orientation=function(e){return r.orientation=e,delete a["orientation;"],o.orientation=!0,i},this.bezierX2=function(e){return r.bezierX2=e,delete a["bezierX2;"],o.bezierX2=!0,i},this.bezierOffset=function(e){return r.bezierOffset=e,delete a["bezierOffset;"],o.bezierOffset=!0,i},this.bezierOffset2=function(e){return r.bezierOffset2=e,delete a["bezierOffset2;"],o.bezierOffset2=!0,i},this.bezierX=function(e){return r.bezierX=e,delete a["bezierX;"],o.bezierX=!0,i},this.bezierY=function(e){return r.bezierY=e,delete a["bezierY;"],o.bezierY=!0,i},this.bezierY2=function(e){return r.bezierY2=e,delete a["bezierY2;"],o.bezierY2=!0,i}}return e}();t.patchSlur=xi,t.buildSlur=ki;var od=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tuplet",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.bracket=function(e){return r.bracket=e,delete a["bracket;"],o.bracket=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.showNumber=function(e){return r.showNumber=e,delete a["showNumber;"],o.showNumber=!0,i},this.tupletNormal=function(t){if("function"==typeof t){delete r.tupletNormal;var n=t(new sd(e&&e.tupletNormal));e?a.tupletNormal=n:r.tupletNormal=n.build()}else r.tupletNormal=t,delete a["tupletNormal;"];return o.tupletNormal=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.showType=function(e){return r.showType=e,delete a["showType;"],o.showType=!0,i},this.tupletActual=function(t){if("function"==typeof t){delete r.tupletActual;var n=t(new ld(e&&e.tupletActual));e?a.tupletActual=n:r.tupletActual=n.build()}else r.tupletActual=t,delete a["tupletActual;"];return o.tupletActual=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchTuplet=Bi,t.buildTuplet=Ci;var ld=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="TupletActual",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.tupletNumber=function(t){if("function"==typeof t){delete a.tupletNumber;var n=t(new ud(e&&e.tupletNumber));e?o.tupletNumber=n:a.tupletNumber=n.build()}else a.tupletNumber=t,delete o["tupletNumber;"];return l.tupletNumber=!0,r},this.tupletDots=function(e){return a.tupletDots=e,delete o["tupletDots;"],l.tupletDots=!0,r},this.tupletDotsAt=function(n,i){if(t("tupletDots"),u.tupletDots[n])throw new Error("Patching tupletDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.tupletDots&&e._snapshot.tupletDots[n]&&!e.tupletDots[n]&&c.push({p:["tupletDots",n],li:e._snapshot.tupletDots}),"function"==typeof i&&s.tupletDots[n]){var o=i(new fd(s.tupletDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["tupletDots",n].concat(e.p),e})),u.tupletDots[n]=!0,r}var l="function"==typeof i?i(new fd(s.tupletDots[n])).build():i;return e?c.push({p:["tupletDots",n],li:l}):a.tupletDots=s.tupletDots,s.tupletDots[n]=l,u.tupletDots[n]=!0,r},this.tupletDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("tupletDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.tupletDots[f])throw new Error("Replacing tupletDots."+f+" after patching in a builder is unsupported.");var d=s.tupletDots[f];c.push({p:["tupletDots",f],ld:d,li:o[f-n]}),u.tupletDots[f]=!0}for(;f<n+i;++f){if(u.tupletDots[f])throw new Error("Removing tupletDots."+f+" after patching in a builder is unsupported.");var d=s.tupletDots[f];c.push({p:["tupletDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["tupletDots",f],li:o[f-n]}),u.tupletDots[f]=!0}return(h=s.tupletDots).splice.apply(h,[n,i].concat(o)),a.tupletDots=s.tupletDots,(p=u.tupletDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.tupletType=function(t){if("function"==typeof t){delete a.tupletType;var n=t(new cd(e&&e.tupletType));e?o.tupletType=n:a.tupletType=n.build()}else a.tupletType=t,delete o["tupletType;"];return l.tupletType=!0,r}}return e}();t.patchTupletActual=Li,t.buildTupletActual=Wi;var sd=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="TupletNormal",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.tupletNumber=function(t){if("function"==typeof t){delete a.tupletNumber;var n=t(new ud(e&&e.tupletNumber));e?o.tupletNumber=n:a.tupletNumber=n.build()}else a.tupletNumber=t,delete o["tupletNumber;"];return l.tupletNumber=!0,r},this.tupletDots=function(e){return a.tupletDots=e,delete o["tupletDots;"],l.tupletDots=!0,r},this.tupletDotsAt=function(n,i){if(t("tupletDots"),u.tupletDots[n])throw new Error("Patching tupletDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.tupletDots&&e._snapshot.tupletDots[n]&&!e.tupletDots[n]&&c.push({p:["tupletDots",n],li:e._snapshot.tupletDots}),"function"==typeof i&&s.tupletDots[n]){var o=i(new fd(s.tupletDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["tupletDots",n].concat(e.p),e})),u.tupletDots[n]=!0,r}var l="function"==typeof i?i(new fd(s.tupletDots[n])).build():i;return e?c.push({p:["tupletDots",n],li:l}):a.tupletDots=s.tupletDots,s.tupletDots[n]=l,u.tupletDots[n]=!0,r},this.tupletDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("tupletDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.tupletDots[f])throw new Error("Replacing tupletDots."+f+" after patching in a builder is unsupported.");var d=s.tupletDots[f];c.push({p:["tupletDots",f],ld:d,li:o[f-n]}),u.tupletDots[f]=!0}for(;f<n+i;++f){if(u.tupletDots[f])throw new Error("Removing tupletDots."+f+" after patching in a builder is unsupported.");var d=s.tupletDots[f];c.push({p:["tupletDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["tupletDots",f],li:o[f-n]}),u.tupletDots[f]=!0}return(h=s.tupletDots).splice.apply(h,[n,i].concat(o)),a.tupletDots=s.tupletDots,(p=u.tupletDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.tupletType=function(t){if("function"==typeof t){delete a.tupletType;var n=t(new cd(e&&e.tupletType));e?o.tupletType=n:a.tupletType=n.build()}else a.tupletType=t,delete o["tupletType;"];return l.tupletType=!0,r}}return e}();t.patchTupletNormal=_i,t.buildTupletNormal=Oi;var ud=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TupletNumber",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchTupletNumber=Ui,t.buildTupletNumber=Ai;var cd=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TupletType",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchTupletType=Ei,t.buildTupletType=Mi;var fd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TupletDot",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchTupletDot=Xi,t.buildTupletDot=Pi;var dd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Glissando",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.normal=function(e){return r.normal=e,delete a["normal;"],o.normal=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchGlissando=Yi,t.buildGlissando=Ri;var hd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Slide",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.normal=function(e){return r.normal=e,delete a["normal;"],o.normal=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.firstBeat=function(e){return r.firstBeat=e,delete a["firstBeat;"],o.firstBeat=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i}}return e}();t.patchSlide=zi,t.buildSlide=Ii;var pd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherNotation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchOtherNotation=Hi,t.buildOtherNotation=ji;var md=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherDirection",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,
i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchOtherDirection=qi,t.buildOtherDirection=Gi;var vd=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Ornaments",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.delayedInvertedTurn=function(t){if("function"==typeof t){delete a.delayedInvertedTurn;var n=t(new wd(e&&e.delayedInvertedTurn));e?o.delayedInvertedTurn=n:a.delayedInvertedTurn=n.build()}else a.delayedInvertedTurn=t,delete o["delayedInvertedTurn;"];return l.delayedInvertedTurn=!0,r},this.shake=function(t){if("function"==typeof t){delete a.shake;var n=t(new Dd(e&&e.shake));e?o.shake=n:a.shake=n.build()}else a.shake=t,delete o["shake;"];return l.shake=!0,r},this.turn=function(t){if("function"==typeof t){delete a.turn;var n=t(new yd(e&&e.turn));e?o.turn=n:a.turn=n.build()}else a.turn=t,delete o["turn;"];return l.turn=!0,r},this.invertedTurn=function(t){if("function"==typeof t){delete a.invertedTurn;var n=t(new Sd(e&&e.invertedTurn));e?o.invertedTurn=n:a.invertedTurn=n.build()}else a.invertedTurn=t,delete o["invertedTurn;"];return l.invertedTurn=!0,r},this.otherOrnament=function(t){if("function"==typeof t){delete a.otherOrnament;var n=t(new Bd(e&&e.otherOrnament));e?o.otherOrnament=n:a.otherOrnament=n.build()}else a.otherOrnament=t,delete o["otherOrnament;"];return l.otherOrnament=!0,r},this.delayedTurn=function(t){if("function"==typeof t){delete a.delayedTurn;var n=t(new bd(e&&e.delayedTurn));e?o.delayedTurn=n:a.delayedTurn=n.build()}else a.delayedTurn=t,delete o["delayedTurn;"];return l.delayedTurn=!0,r},this.verticalTurn=function(t){if("function"==typeof t){delete a.verticalTurn;var n=t(new Nd(e&&e.verticalTurn));e?o.verticalTurn=n:a.verticalTurn=n.build()}else a.verticalTurn=t,delete o["verticalTurn;"];return l.verticalTurn=!0,r},this.wavyLine=function(t){if("function"==typeof t){delete a.wavyLine;var n=t(new _c(e&&e.wavyLine));e?o.wavyLine=n:a.wavyLine=n.build()}else a.wavyLine=t,delete o["wavyLine;"];return l.wavyLine=!0,r},this.tremolo=function(t){if("function"==typeof t){delete a.tremolo;var n=t(new kd(e&&e.tremolo));e?o.tremolo=n:a.tremolo=n.build()}else a.tremolo=t,delete o["tremolo;"];return l.tremolo=!0,r},this.accidentalMarks=function(e){return a.accidentalMarks=e,delete o["accidentalMarks;"],l.accidentalMarks=!0,r},this.accidentalMarksAt=function(n,i){if(t("accidentalMarks"),u.accidentalMarks[n])throw new Error("Patching accidentalMarks."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.accidentalMarks&&e._snapshot.accidentalMarks[n]&&!e.accidentalMarks[n]&&c.push({p:["accidentalMarks",n],li:e._snapshot.accidentalMarks}),"function"==typeof i&&s.accidentalMarks[n]){var o=i(new Cd(s.accidentalMarks[n])).patch();return c=c.concat(o.map(function(e){return e.p=["accidentalMarks",n].concat(e.p),e})),u.accidentalMarks[n]=!0,r}var l="function"==typeof i?i(new Cd(s.accidentalMarks[n])).build():i;return e?c.push({p:["accidentalMarks",n],li:l}):a.accidentalMarks=s.accidentalMarks,s.accidentalMarks[n]=l,u.accidentalMarks[n]=!0,r},this.accidentalMarksSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("accidentalMarks");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.accidentalMarks[f])throw new Error("Replacing accidentalMarks."+f+" after patching in a builder is unsupported.");var d=s.accidentalMarks[f];c.push({p:["accidentalMarks",f],ld:d,li:o[f-n]}),u.accidentalMarks[f]=!0}for(;f<n+i;++f){if(u.accidentalMarks[f])throw new Error("Removing accidentalMarks."+f+" after patching in a builder is unsupported.");var d=s.accidentalMarks[f];c.push({p:["accidentalMarks",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["accidentalMarks",f],li:o[f-n]}),u.accidentalMarks[f]=!0}return(h=s.accidentalMarks).splice.apply(h,[n,i].concat(o)),a.accidentalMarks=s.accidentalMarks,(p=u.accidentalMarks).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.trillMark=function(t){if("function"==typeof t){delete a.trillMark;var n=t(new gd(e&&e.trillMark));e?o.trillMark=n:a.trillMark=n.build()}else a.trillMark=t,delete o["trillMark;"];return l.trillMark=!0,r},this.mordent=function(t){if("function"==typeof t){delete a.mordent;var n=t(new Td(e&&e.mordent));e?o.mordent=n:a.mordent=n.build()}else a.mordent=t,delete o["mordent;"];return l.mordent=!0,r},this.invertedMordent=function(t){if("function"==typeof t){delete a.invertedMordent;var n=t(new Fd(e&&e.invertedMordent));e?o.invertedMordent=n:a.invertedMordent=n.build()}else a.invertedMordent=t,delete o["invertedMordent;"];return l.invertedMordent=!0,r},this.schleifer=function(t){if("function"==typeof t){delete a.schleifer;var n=t(new xd(e&&e.schleifer));e?o.schleifer=n:a.schleifer=n.build()}else a.schleifer=t,delete o["schleifer;"];return l.schleifer=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.placement=function(e){return a.placement=e,delete o["placement;"],l.placement=!0,r},this.startNote=function(e){return a.startNote=e,delete o["startNote;"],l.startNote=!0,r},this.accelerate=function(e){return a.accelerate=e,delete o["accelerate;"],l.accelerate=!0,r},this.beats=function(e){return a.beats=e,delete o["beats;"],l.beats=!0,r},this.lastBeat=function(e){return a.lastBeat=e,delete o["lastBeat;"],l.lastBeat=!0,r},this.trillStep=function(e){return a.trillStep=e,delete o["trillStep;"],l.trillStep=!0,r},this.twoNoteTurn=function(e){return a.twoNoteTurn=e,delete o["twoNoteTurn;"],l.twoNoteTurn=!0,r},this.secondBeat=function(e){return a.secondBeat=e,delete o["secondBeat;"],l.secondBeat=!0,r}}return e}();t.patchOrnaments=Vi,t.buildOrnaments=Qi;var gd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TrillMark",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchTrillMark=Ji,t.buildTrillMark=Ki;var yd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Turn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.slash=function(e){return r.slash=e,delete a["slash;"],o.slash=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchTurn=Zi,t.buildTurn=$i;var bd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DelayedTurn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.slash=function(e){return r.slash=e,delete a["slash;"],o.slash=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchDelayedTurn=er,t.buildDelayedTurn=tr;var Sd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="InvertedTurn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.slash=function(e){return r.slash=e,delete a["slash;"],o.slash=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchInvertedTurn=nr,t.buildInvertedTurn=ir;var wd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DelayedInvertedTurn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.slash=function(e){return r.slash=e,delete a["slash;"],o.slash=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchDelayedInvertedTurn=rr,t.buildDelayedInvertedTurn=ar;var Nd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="VerticalTurn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchVerticalTurn=or,t.buildVerticalTurn=lr;var Dd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Shake",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchShake=sr,t.buildShake=ur;var Td=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Mordent",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this["long"]=function(e){return r["long"]=e,delete a["long;"],o["long"]=!0,i},this.approach=function(e){return r.approach=e,delete a["approach;"],o.approach=!0,i},this.departure=function(e){return r.departure=e,delete a["departure;"],o.departure=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchMordent=cr,t.buildMordent=fr;var Fd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="InvertedMordent",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this["long"]=function(e){return r["long"]=e,delete a["long;"],o["long"]=!0,i},this.approach=function(e){return r.approach=e,delete a["approach;"],o.approach=!0,i},this.departure=function(e){return r.departure=e,delete a["departure;"],o.departure=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.startNote=function(e){return r.startNote=e,delete a["startNote;"],o.startNote=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i},this.trillStep=function(e){return r.trillStep=e,delete a["trillStep;"],o.trillStep=!0,i},this.twoNoteTurn=function(e){return r.twoNoteTurn=e,delete a["twoNoteTurn;"],o.twoNoteTurn=!0,i},this.secondBeat=function(e){return r.secondBeat=e,delete a["secondBeat;"],o.secondBeat=!0,i}}return e}();t.patchInvertedMordent=dr,t.buildInvertedMordent=hr;var xd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Schleifer",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchSchleifer=pr,t.buildSchleifer=mr;var kd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tremolo",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchTremolo=vr,t.buildTremolo=gr;var Bd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherOrnament",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchOtherOrnament=yr,t.buildOtherOrnament=br;var Cd=function(){function e(e){function t(){console.assert(e&&!o.mark||void 0!==a.mark||void 0!==r.mark,"mark is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="AccidentalMark",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.mark=function(e){return r.mark=e,delete a["mark;"],o.mark=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchAccidentalMark=Sr,t.buildAccidentalMark=wr;var Ld=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Technical",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tripleTongue=function(t){if("function"==typeof t){delete r.tripleTongue;var n=t(new Xd(e&&e.tripleTongue));e?a.tripleTongue=n:r.tripleTongue=n.build()}else r.tripleTongue=t,delete a["tripleTongue;"];return o.tripleTongue=!0,i},this.toe=function(t){if("function"==typeof t){delete r.toe;var n=t(new Gd(e&&e.toe));e?a.toe=n:r.toe=n.build()}else r.toe=t,delete a["toe;"];return o.toe=!0,i},this.hole=function(t){if("function"==typeof t){delete r.hole;var n=t(new Qd(e&&e.hole));e?a.hole=n:r.hole=n.build()}else r.hole=t,delete a["hole;"];return o.hole=!0,i},this.hammerOn=function(t){if("function"==typeof t){delete r.hammerOn;var n=t(new Rd(e&&e.hammerOn));e?a.hammerOn=n:r.hammerOn=n.build()}else r.hammerOn=t,delete a["hammerOn;"];return o.hammerOn=!0,i},this.upBow=function(t){if("function"==typeof t){delete r.upBow;var n=t(new Wd(e&&e.upBow));e?a.upBow=n:r.upBow=n.build()}else r.upBow=t,delete a["upBow;"];return o.upBow=!0,i},this.downBow=function(t){if("function"==typeof t){delete r.downBow;var n=t(new _d(e&&e.downBow));e?a.downBow=n:r.downBow=n.build()}else r.downBow=t,delete a["downBow;"];return o.downBow=!0,i},this.fret=function(t){if("function"==typeof t){delete r.fret;var n=t(new Xc(e&&e.fret));e?a.fret=n:r.fret=n.build()}else r.fret=t,delete a["fret;"];return o.fret=!0,i},this.tap=function(t){if("function"==typeof t){delete r.tap;var n=t(new jd(e&&e.tap));e?a.tap=n:r.tap=n.build()}else r.tap=t,delete a["tap;"];return o.tap=!0,i},this.pullOff=function(t){if("function"==typeof t){delete r.pullOff;var n=t(new zd(e&&e.pullOff));e?a.pullOff=n:r.pullOff=n.build()}else r.pullOff=t,delete a["pullOff;"];return o.pullOff=!0,i},this.handbell=function(t){if("function"==typeof t){delete r.handbell;var n=t(new Zd(e&&e.handbell));e?a.handbell=n:r.handbell=n.build()}else r.handbell=t,delete a["handbell;"];return o.handbell=!0,i},this.bend=function(t){if("function"==typeof t){delete r.bend;var n=t(new Id(e&&e.bend));e?a.bend=n:r.bend=n.build()}else r.bend=t,delete a["bend;"];return o.bend=!0,i},this.thumbPosition=function(t){if("function"==typeof t){delete r.thumbPosition;var n=t(new Ad(e&&e.thumbPosition));e?a.thumbPosition=n:r.thumbPosition=n.build()}else r.thumbPosition=t,delete a["thumbPosition;"];return o.thumbPosition=!0,i},this.stopped=function(t){if("function"==typeof t){delete r.stopped;var n=t(new Pd(e&&e.stopped));e?a.stopped=n:r.stopped=n.build()}else r.stopped=t,delete a["stopped;"];return o.stopped=!0,i},this.pluck=function(t){if("function"==typeof t){delete r.pluck;var n=t(new Ed(e&&e.pluck));e?a.pluck=n:r.pluck=n.build()}else r.pluck=t,delete a["pluck;"];return o.pluck=!0,i},this.doubleTongue=function(t){if("function"==typeof t){delete r.doubleTongue;var n=t(new Md(e&&e.doubleTongue));e?a.doubleTongue=n:r.doubleTongue=n.build()}else r.doubleTongue=t,delete a["doubleTongue;"];return o.doubleTongue=!0,i},this.string=function(t){if("function"==typeof t){delete r.string;var n=t(new Pc(e&&e.string));e?a.string=n:r.string=n.build()}else r.string=t,delete a["string;"];return o.string=!0,i},this.openString=function(t){if("function"==typeof t){delete r.openString;var n=t(new Ud(e&&e.openString));e?a.openString=n:r.openString=n.build()}else r.openString=t,delete a["openString;"];return o.openString=!0,i},this.fingernails=function(t){if("function"==typeof t){delete r.fingernails;var n=t(new Vd(e&&e.fingernails));e?a.fingernails=n:r.fingernails=n.build()}else r.fingernails=t,delete a["fingernails;"];return o.fingernails=!0,i},this.arrow=function(t){if("function"==typeof t){delete r.arrow;var n=t(new Kd(e&&e.arrow));e?a.arrow=n:r.arrow=n.build()}else r.arrow=t,delete a["arrow;"];return o.arrow=!0,i},this.harmonic=function(t){if("function"==typeof t){delete r.harmonic;var n=t(new Od(e&&e.harmonic));e?a.harmonic=n:r.harmonic=n.build()}else r.harmonic=t,delete a["harmonic;"];return o.harmonic=!0,i},this.heel=function(t){
if("function"==typeof t){delete r.heel;var n=t(new qd(e&&e.heel));e?a.heel=n:r.heel=n.build()}else r.heel=t,delete a["heel;"];return o.heel=!0,i},this.otherTechnical=function(t){if("function"==typeof t){delete r.otherTechnical;var n=t(new $d(e&&e.otherTechnical));e?a.otherTechnical=n:r.otherTechnical=n.build()}else r.otherTechnical=t,delete a["otherTechnical;"];return o.otherTechnical=!0,i},this.snapPizzicato=function(t){if("function"==typeof t){delete r.snapPizzicato;var n=t(new Yd(e&&e.snapPizzicato));e?a.snapPizzicato=n:r.snapPizzicato=n.build()}else r.snapPizzicato=t,delete a["snapPizzicato;"];return o.snapPizzicato=!0,i},this.fingering=function(t){if("function"==typeof t){delete r.fingering;var n=t(new Mc(e&&e.fingering));e?a.fingering=n:r.fingering=n.build()}else r.fingering=t,delete a["fingering;"];return o.fingering=!0,i}}return e}();t.patchTechnical=Nr,t.buildTechnical=Dr;var Wd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="UpBow",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchUpBow=Tr,t.buildUpBow=Fr;var _d=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DownBow",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchDownBow=xr,t.buildDownBow=kr;var Od=function(){function e(e){function t(){console.assert(e&&!o.artificial||void 0!==a.artificial||void 0!==r.artificial,"artificial is a required field"),console.assert(e&&!o.touchingPitch||void 0!==a.touchingPitch||void 0!==r.touchingPitch,"touchingPitch is a required field"),console.assert(e&&!o.soundingPitch||void 0!==a.soundingPitch||void 0!==r.soundingPitch,"soundingPitch is a required field"),console.assert(e&&!o.natural||void 0!==a.natural||void 0!==r.natural,"natural is a required field"),console.assert(e&&!o.basePitch||void 0!==a.basePitch||void 0!==r.basePitch,"basePitch is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Harmonic",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.artificial=function(e){return r.artificial=e,delete a["artificial;"],o.artificial=!0,i},this.touchingPitch=function(e){return r.touchingPitch=e,delete a["touchingPitch;"],o.touchingPitch=!0,i},this.soundingPitch=function(e){return r.soundingPitch=e,delete a["soundingPitch;"],o.soundingPitch=!0,i},this.natural=function(e){return r.natural=e,delete a["natural;"],o.natural=!0,i},this.basePitch=function(e){return r.basePitch=e,delete a["basePitch;"],o.basePitch=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchHarmonic=Br,t.buildHarmonic=Cr;var Ud=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OpenString",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchOpenString=Lr,t.buildOpenString=Wr;var Ad=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="ThumbPosition",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchThumbPosition=_r,t.buildThumbPosition=Or;var Ed=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Pluck",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchPluck=Ur,t.buildPluck=Ar;var Md=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DoubleTongue",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchDoubleTongue=Er,t.buildDoubleTongue=Mr;var Xd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="TripleTongue",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchTripleTongue=Xr,t.buildTripleTongue=Pr;var Pd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Stopped",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchStopped=Yr,t.buildStopped=Rr;var Yd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="SnapPizzicato",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchSnapPizzicato=zr,t.buildSnapPizzicato=Ir;var Rd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="HammerOn",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchHammerOn=Hr,t.buildHammerOn=jr;var zd=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PullOff",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchPullOff=qr,t.buildPullOff=Gr;var Id=function(){function e(e){function t(){console.assert(e&&!o.bendAlter||void 0!==a.bendAlter||void 0!==r.bendAlter,"bendAlter is a required field"),console.assert(e&&!o.preBend||void 0!==a.preBend||void 0!==r.preBend,"preBend is a required field"),console.assert(e&&!o.release||void 0!==a.release||void 0!==r.release,"release is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Bend",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.bendAlter=function(e){return r.bendAlter=e,delete a["bendAlter;"],o.bendAlter=!0,i},this.withBar=function(t){if("function"==typeof t){delete r.withBar;var n=t(new Hd(e&&e.withBar));e?a.withBar=n:r.withBar=n.build()}else r.withBar=t,delete a["withBar;"];return o.withBar=!0,i},this.preBend=function(e){return r.preBend=e,delete a["preBend;"],o.preBend=!0,i},this.release=function(e){return r.release=e,delete a["release;"],o.release=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.accelerate=function(e){return r.accelerate=e,delete a["accelerate;"],o.accelerate=!0,i},this.beats=function(e){return r.beats=e,delete a["beats;"],o.beats=!0,i},this.firstBeat=function(e){return r.firstBeat=e,delete a["firstBeat;"],o.firstBeat=!0,i},this.lastBeat=function(e){return r.lastBeat=e,delete a["lastBeat;"],o.lastBeat=!0,i}}return e}();t.patchBend=Vr,t.buildBend=Qr;var Hd=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="WithBar",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchWithBar=Jr,t.buildWithBar=Kr;var jd=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tap",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchTap=Zr,t.buildTap=$r;var qd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Heel",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.substitution=function(e){return r.substitution=e,delete a["substitution;"],o.substitution=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchHeel=ea,t.buildHeel=ta;var Gd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Toe",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.substitution=function(e){return r.substitution=e,delete a["substitution;"],o.substitution=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchToe=na,t.buildToe=ia;var Vd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Fingernails",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchFingernails=ra,t.buildFingernails=aa;var Qd=function(){function e(e){function t(){console.assert(e&&!o.holeClosed||void 0!==a.holeClosed||void 0!==r.holeClosed,"holeClosed is a required field"),console.assert(e&&!o.holeShape||void 0!==a.holeShape||void 0!==r.holeShape,"holeShape is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Hole",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.holeClosed=function(t){if("function"==typeof t){delete r.holeClosed;var n=t(new Jd(e&&e.holeClosed));e?a.holeClosed=n:r.holeClosed=n.build()}else r.holeClosed=t,delete a["holeClosed;"];return o.holeClosed=!0,i},this.holeShape=function(e){return r.holeShape=e,delete a["holeShape;"],o.holeShape=!0,i},this.holeType=function(e){return r.holeType=e,delete a["holeType;"],o.holeType=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchHole=oa,t.buildHole=la;var Jd=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="HoleClosed",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.location=function(e){return r.location=e,delete a["location;"],o.location=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i}}return e}();t.patchHoleClosed=sa,t.buildHoleClosed=ua;var Kd=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Arrow",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.arrowStyle=function(e){return r.arrowStyle=e,delete a["arrowStyle;"],o.arrowStyle=!0,i},this.arrowDirection=function(e){return r.arrowDirection=e,delete a["arrowDirection;"],o.arrowDirection=!0,i},this.circularArrow=function(e){return r.circularArrow=e,delete a["circularArrow;"],o.circularArrow=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchArrow=ca,t.buildArrow=fa;var Zd=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Handbell",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchHandbell=da,t.buildHandbell=ha;var $d=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherTechnical",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchOtherTechnical=pa,t.buildOtherTechnical=ma;var eh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Articulations",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.accent=function(t){if("function"==typeof t){delete a.accent;var n=t(new th(e&&e.accent));e?o.accent=n:a.accent=n.build()}else a.accent=t,delete o["accent;"];return l.accent=!0,r},this.doit=function(t){if("function"==typeof t){delete a.doit;var n=t(new ch(e&&e.doit));e?o.doit=n:a.doit=n.build()}else a.doit=t,delete o["doit;"];return l.doit=!0,r},this.breathMark=function(t){if("function"==typeof t){delete a.breathMark;var n=t(new dh(e&&e.breathMark));e?o.breathMark=n:a.breathMark=n.build()}else a.breathMark=t,delete o["breathMark;"];return l.breathMark=!0,r},this.otherArticulations=function(e){return a.otherArticulations=e,delete o["otherArticulations;"],l.otherArticulations=!0,r},this.otherArticulationsAt=function(n,i){if(t("otherArticulations"),u.otherArticulations[n])throw new Error("Patching otherArticulations."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.otherArticulations&&e._snapshot.otherArticulations[n]&&!e.otherArticulations[n]&&c.push({p:["otherArticulations",n],li:e._snapshot.otherArticulations}),"function"==typeof i&&s.otherArticulations[n]){var o=i(new vh(s.otherArticulations[n])).patch();return c=c.concat(o.map(function(e){return e.p=["otherArticulations",n].concat(e.p),e})),u.otherArticulations[n]=!0,r}var l="function"==typeof i?i(new vh(s.otherArticulations[n])).build():i;return e?c.push({p:["otherArticulations",n],
li:l}):a.otherArticulations=s.otherArticulations,s.otherArticulations[n]=l,u.otherArticulations[n]=!0,r},this.otherArticulationsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("otherArticulations");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.otherArticulations[f])throw new Error("Replacing otherArticulations."+f+" after patching in a builder is unsupported.");var d=s.otherArticulations[f];c.push({p:["otherArticulations",f],ld:d,li:o[f-n]}),u.otherArticulations[f]=!0}for(;f<n+i;++f){if(u.otherArticulations[f])throw new Error("Removing otherArticulations."+f+" after patching in a builder is unsupported.");var d=s.otherArticulations[f];c.push({p:["otherArticulations",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["otherArticulations",f],li:o[f-n]}),u.otherArticulations[f]=!0}return(h=s.otherArticulations).splice.apply(h,[n,i].concat(o)),a.otherArticulations=s.otherArticulations,(p=u.otherArticulations).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.detachedLegato=function(t){if("function"==typeof t){delete a.detachedLegato;var n=t(new ah(e&&e.detachedLegato));e?o.detachedLegato=n:a.detachedLegato=n.build()}else a.detachedLegato=t,delete o["detachedLegato;"];return l.detachedLegato=!0,r},this.staccatissimo=function(t){if("function"==typeof t){delete a.staccatissimo;var n=t(new oh(e&&e.staccatissimo));e?o.staccatissimo=n:a.staccatissimo=n.build()}else a.staccatissimo=t,delete o["staccatissimo;"];return l.staccatissimo=!0,r},this.plop=function(t){if("function"==typeof t){delete a.plop;var n=t(new uh(e&&e.plop));e?o.plop=n:a.plop=n.build()}else a.plop=t,delete o["plop;"];return l.plop=!0,r},this.unstress=function(t){if("function"==typeof t){delete a.unstress;var n=t(new mh(e&&e.unstress));e?o.unstress=n:a.unstress=n.build()}else a.unstress=t,delete o["unstress;"];return l.unstress=!0,r},this.strongAccent=function(t){if("function"==typeof t){delete a.strongAccent;var n=t(new nh(e&&e.strongAccent));e?o.strongAccent=n:a.strongAccent=n.build()}else a.strongAccent=t,delete o["strongAccent;"];return l.strongAccent=!0,r},this.staccato=function(t){if("function"==typeof t){delete a.staccato;var n=t(new ih(e&&e.staccato));e?o.staccato=n:a.staccato=n.build()}else a.staccato=t,delete o["staccato;"];return l.staccato=!0,r},this.spiccato=function(t){if("function"==typeof t){delete a.spiccato;var n=t(new lh(e&&e.spiccato));e?o.spiccato=n:a.spiccato=n.build()}else a.spiccato=t,delete o["spiccato;"];return l.spiccato=!0,r},this.scoop=function(t){if("function"==typeof t){delete a.scoop;var n=t(new sh(e&&e.scoop));e?o.scoop=n:a.scoop=n.build()}else a.scoop=t,delete o["scoop;"];return l.scoop=!0,r},this.falloff=function(t){if("function"==typeof t){delete a.falloff;var n=t(new fh(e&&e.falloff));e?o.falloff=n:a.falloff=n.build()}else a.falloff=t,delete o["falloff;"];return l.falloff=!0,r},this.caesura=function(t){if("function"==typeof t){delete a.caesura;var n=t(new hh(e&&e.caesura));e?o.caesura=n:a.caesura=n.build()}else a.caesura=t,delete o["caesura;"];return l.caesura=!0,r},this.stress=function(t){if("function"==typeof t){delete a.stress;var n=t(new ph(e&&e.stress));e?o.stress=n:a.stress=n.build()}else a.stress=t,delete o["stress;"];return l.stress=!0,r},this.tenuto=function(t){if("function"==typeof t){delete a.tenuto;var n=t(new rh(e&&e.tenuto));e?o.tenuto=n:a.tenuto=n.build()}else a.tenuto=t,delete o["tenuto;"];return l.tenuto=!0,r}}return e}();t.patchArticulations=va,t.buildArticulations=ga;var th=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Accent",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchAccent=ya,t.buildAccent=ba;var nh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="StrongAccent",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchStrongAccent=Sa,t.buildStrongAccent=wa;var ih=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Staccato",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchStaccato=Na,t.buildStaccato=Da;var rh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Tenuto",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchTenuto=Ta,t.buildTenuto=Fa;var ah=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DetachedLegato",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchDetachedLegato=xa,t.buildDetachedLegato=ka;var oh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Staccatissimo",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchStaccatissimo=Ba,t.buildStaccatissimo=Ca;var lh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Spiccato",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchSpiccato=La,t.buildSpiccato=Wa;var sh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Scoop",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchScoop=_a,t.buildScoop=Oa;var uh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Plop",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchPlop=Ua,t.buildPlop=Aa;var ch=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Doit",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchDoit=Ea,t.buildDoit=Ma;var fh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Falloff",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchFalloff=Xa,t.buildFalloff=Pa;var dh=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="BreathMark",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i},this.lineShape=function(e){return r.lineShape=e,delete a["lineShape;"],o.lineShape=!0,i}}return e}();t.patchBreathMark=Ya,t.buildBreathMark=Ra;var hh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Caesura",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchCaesura=za,t.buildCaesura=Ia;var ph=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Stress",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchStress=Ha,t.buildStress=ja;var mh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Unstress",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchUnstress=qa,t.buildUnstress=Ga;var vh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OtherArticulation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchOtherArticulation=Va,t.buildOtherArticulation=Qa;var gh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Arpeggiate",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.direction=function(e){return r.direction=e,delete a["direction;"],o.direction=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchArpeggiate=Ja,t.buildArpeggiate=Ka;var yh=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="NonArpeggiate",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i}}return e}();t.patchNonArpeggiate=Za,t.buildNonArpeggiate=$a;var bh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Laughing",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchLaughing=eo,t.buildLaughing=to;var Sh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Humming",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchHumming=no,t.buildHumming=io;var wh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="EndLine",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchEndLine=ro,t.buildEndLine=ao;var Nh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="EndParagraph",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchEndParagraph=oo,t.buildEndParagraph=lo;var Dh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="LyricParts",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchLyricParts=so,t.buildLyricParts=uo;var Th=function(){function e(e){function t(){console.assert(e&&!o.lyricParts||void 0!==a.lyricParts||void 0!==r.lyricParts,"lyricParts is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Lyric",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.lyricParts=function(e){return r.lyricParts=e,delete a["lyricParts;"],o.lyricParts=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.name=function(e){return r.name=e,delete a["name;"],o.name=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.placement=function(e){return r.placement=e,delete a["placement;"],o.placement=!0,i},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchLyric=co,t.buildLyric=fo;var Fh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Text",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i}}return e}();t.patchText=ho,t.buildText=po;var xh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Syllabic",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchSyllabic=mo,t.buildSyllabic=vo;var kh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Elision",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchElision=go,t.buildElision=yo;var Bh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Extend",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,
delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchExtend=bo,t.buildExtend=So;var Ch=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.figures||void 0!==o.figures||void 0!==a.figures,"figures is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="FiguredBass",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.figures=function(e){return a.figures=e,delete o["figures;"],l.figures=!0,r},this.figuresAt=function(n,i){if(t("figures"),u.figures[n])throw new Error("Patching figures."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.figures&&e._snapshot.figures[n]&&!e.figures[n]&&c.push({p:["figures",n],li:e._snapshot.figures}),"function"==typeof i&&s.figures[n]){var o=i(new Lh(s.figures[n])).patch();return c=c.concat(o.map(function(e){return e.p=["figures",n].concat(e.p),e})),u.figures[n]=!0,r}var l="function"==typeof i?i(new Lh(s.figures[n])).build():i;return e?c.push({p:["figures",n],li:l}):a.figures=s.figures,s.figures[n]=l,u.figures[n]=!0,r},this.figuresSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("figures");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.figures[f])throw new Error("Replacing figures."+f+" after patching in a builder is unsupported.");var d=s.figures[f];c.push({p:["figures",f],ld:d,li:o[f-n]}),u.figures[f]=!0}for(;f<n+i;++f){if(u.figures[f])throw new Error("Removing figures."+f+" after patching in a builder is unsupported.");var d=s.figures[f];c.push({p:["figures",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["figures",f],li:o[f-n]}),u.figures[f]=!0}return(h=s.figures).splice.apply(h,[n,i].concat(o)),a.figures=s.figures,(p=u.figures).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.duration=function(e){return a.duration=e,delete o["duration;"],l.duration=!0,r},this.parentheses=function(e){return a.parentheses=e,delete o["parentheses;"],l.parentheses=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r},this.printDot=function(e){return a.printDot=e,delete o["printDot;"],l.printDot=!0,r},this.printLyric=function(e){return a.printLyric=e,delete o["printLyric;"],l.printLyric=!0,r},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r},this.printSpacing=function(e){return a.printSpacing=e,delete o["printSpacing;"],l.printSpacing=!0,r}}return e}();t.patchFiguredBass=wo,t.buildFiguredBass=No;var Lh=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Figure",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.prefix=function(t){if("function"==typeof t){delete r.prefix;var n=t(new Wh(e&&e.prefix));e?a.prefix=n:r.prefix=n.build()}else r.prefix=t,delete a["prefix;"];return o.prefix=!0,i},this.figureNumber=function(t){if("function"==typeof t){delete r.figureNumber;var n=t(new _h(e&&e.figureNumber));e?a.figureNumber=n:r.figureNumber=n.build()}else r.figureNumber=t,delete a["figureNumber;"];return o.figureNumber=!0,i},this.extend=function(t){if("function"==typeof t){delete r.extend;var n=t(new Bh(e&&e.extend));e?a.extend=n:r.extend=n.build()}else r.extend=t,delete a["extend;"];return o.extend=!0,i},this.suffix=function(t){if("function"==typeof t){delete r.suffix;var n=t(new Oh(e&&e.suffix));e?a.suffix=n:r.suffix=n.build()}else r.suffix=t,delete a["suffix;"];return o.suffix=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchFigure=Do,t.buildFigure=To;var Wh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Prefix",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchPrefix=Fo,t.buildPrefix=xo;var _h=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="FigureNumber",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchFigureNumber=ko,t.buildFigureNumber=Bo;var Oh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Suffix",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchSuffix=Co,t.buildSuffix=Lo;var Uh=function(){function e(e){function t(){console.assert(e&&!o.duration||void 0!==a.duration||void 0!==r.duration,"duration is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Backup",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.duration=function(e){return r.duration=e,delete a["duration;"],o.duration=!0,i},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchBackup=Wo,t.buildBackup=_o;var Ah=function(){function e(e){function t(){console.assert(e&&!o.duration||void 0!==a.duration||void 0!==r.duration,"duration is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Forward",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.duration=function(e){return r.duration=e,delete a["duration;"],o.duration=!0,i},this.staff=function(e){return r.staff=e,delete a["staff;"],o.staff=!0,i},this.voice=function(e){return r.voice=e,delete a["voice;"],o.voice=!0,i},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchForward=Oo,t.buildForward=Uo;var Eh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Barline",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.segno=function(t){if("function"==typeof t){delete a.segno;var n=t(new Oc(e&&e.segno));e?o.segno=n:a.segno=n.build()}else a.segno=t,delete o["segno;"];return l.segno=!0,r},this.coda=function(t){if("function"==typeof t){delete a.coda;var n=t(new Uc(e&&e.coda));e?o.coda=n:a.coda=n.build()}else a.coda=t,delete o["coda;"];return l.coda=!0,r},this.location=function(e){return a.location=e,delete o["location;"],l.location=!0,r},this.codaAttrib=function(e){return a.codaAttrib=e,delete o["codaAttrib;"],l.codaAttrib=!0,r},this.wavyLine=function(t){if("function"==typeof t){delete a.wavyLine;var n=t(new _c(e&&e.wavyLine));e?o.wavyLine=n:a.wavyLine=n.build()}else a.wavyLine=t,delete o["wavyLine;"];return l.wavyLine=!0,r},this.fermatas=function(e){return a.fermatas=e,delete o["fermatas;"],l.fermatas=!0,r},this.fermatasAt=function(n,i){if(t("fermatas"),u.fermatas[n])throw new Error("Patching fermatas."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.fermatas&&e._snapshot.fermatas[n]&&!e.fermatas[n]&&c.push({p:["fermatas",n],li:e._snapshot.fermatas}),"function"==typeof i&&s.fermatas[n]){var o=i(new Wc(s.fermatas[n])).patch();return c=c.concat(o.map(function(e){return e.p=["fermatas",n].concat(e.p),e})),u.fermatas[n]=!0,r}var l="function"==typeof i?i(new Wc(s.fermatas[n])).build():i;return e?c.push({p:["fermatas",n],li:l}):a.fermatas=s.fermatas,s.fermatas[n]=l,u.fermatas[n]=!0,r},this.fermatasSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("fermatas");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.fermatas[f])throw new Error("Replacing fermatas."+f+" after patching in a builder is unsupported.");var d=s.fermatas[f];c.push({p:["fermatas",f],ld:d,li:o[f-n]}),u.fermatas[f]=!0}for(;f<n+i;++f){if(u.fermatas[f])throw new Error("Removing fermatas."+f+" after patching in a builder is unsupported.");var d=s.fermatas[f];c.push({p:["fermatas",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["fermatas",f],li:o[f-n]}),u.fermatas[f]=!0}return(h=s.fermatas).splice.apply(h,[n,i].concat(o)),a.fermatas=s.fermatas,(p=u.fermatas).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.segnoAttrib=function(e){return a.segnoAttrib=e,delete o["segnoAttrib;"],l.segnoAttrib=!0,r},this.divisions=function(e){return a.divisions=e,delete o["divisions;"],l.divisions=!0,r},this.barStyle=function(t){if("function"==typeof t){delete a.barStyle;var n=t(new Mh(e&&e.barStyle));e?o.barStyle=n:a.barStyle=n.build()}else a.barStyle=t,delete o["barStyle;"];return l.barStyle=!0,r},this.ending=function(t){if("function"==typeof t){delete a.ending;var n=t(new Xh(e&&e.ending));e?o.ending=n:a.ending=n.build()}else a.ending=t,delete o["ending;"];return l.ending=!0,r},this.repeat=function(t){if("function"==typeof t){delete a.repeat;var n=t(new Ph(e&&e.repeat));e?o.repeat=n:a.repeat=n.build()}else a.repeat=t,delete o["repeat;"];return l.repeat=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r}}return e}();t.patchBarline=Ao,t.buildBarline=Eo;var Mh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="BarStyle",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchBarStyle=Mo,t.buildBarStyle=Xo;var Xh=function(){function e(e){function t(){console.assert(e&&!o.endLength||void 0!==a.endLength||void 0!==r.endLength,"endLength is a required field"),console.assert(e&&!o.textX||void 0!==a.textX||void 0!==r.textX,"textX is a required field"),console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.textY||void 0!==a.textY||void 0!==r.textY,"textY is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Ending",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.endLength=function(e){return r.endLength=e,delete a["endLength;"],o.endLength=!0,i},this.textX=function(e){return r.textX=e,delete a["textX;"],o.textX=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.textY=function(e){return r.textY=e,delete a["textY;"],o.textY=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.ending=function(e){return r.ending=e,delete a["ending;"],o.ending=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchEnding=Po,t.buildEnding=Yo;var Ph=function(){function e(e){function t(){console.assert(e&&!o.times||void 0!==a.times||void 0!==r.times,"times is a required field"),console.assert(e&&!o.winged||void 0!==a.winged||void 0!==r.winged,"winged is a required field"),console.assert(e&&!o.direction||void 0!==a.direction||void 0!==r.direction,"direction is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Repeat",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.times=function(e){return r.times=e,delete a["times;"],o.times=!0,i},this.winged=function(e){return r.winged=e,delete a["winged;"],o.winged=!0,i},this.direction=function(e){return r.direction=e,delete a["direction;"],o.direction=!0,i}}return e}();t.patchRepeat=Ro,t.buildRepeat=zo;var Yh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.directionTypes||void 0!==o.directionTypes||void 0!==a.directionTypes,"directionTypes is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Direction",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.directionTypes=function(e){return a.directionTypes=e,delete o["directionTypes;"],l.directionTypes=!0,r},this.directionTypesAt=function(n,i){if(t("directionTypes"),u.directionTypes[n])throw new Error("Patching directionTypes."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.directionTypes&&e._snapshot.directionTypes[n]&&!e.directionTypes[n]&&c.push({p:["directionTypes",n],li:e._snapshot.directionTypes}),"function"==typeof i&&s.directionTypes[n]){var o=i(new Rh(s.directionTypes[n])).patch();return c=c.concat(o.map(function(e){return e.p=["directionTypes",n].concat(e.p),e})),u.directionTypes[n]=!0,r}var l="function"==typeof i?i(new Rh(s.directionTypes[n])).build():i;return e?c.push({p:["directionTypes",n],li:l}):a.directionTypes=s.directionTypes,s.directionTypes[n]=l,u.directionTypes[n]=!0,r},this.directionTypesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("directionTypes");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.directionTypes[f])throw new Error("Replacing directionTypes."+f+" after patching in a builder is unsupported.");var d=s.directionTypes[f];c.push({p:["directionTypes",f],ld:d,li:o[f-n]}),u.directionTypes[f]=!0}for(;f<n+i;++f){if(u.directionTypes[f])throw new Error("Removing directionTypes."+f+" after patching in a builder is unsupported.");var d=s.directionTypes[f];c.push({p:["directionTypes",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["directionTypes",f],li:o[f-n]}),u.directionTypes[f]=!0}return(h=s.directionTypes).splice.apply(h,[n,i].concat(o)),a.directionTypes=s.directionTypes,(p=u.directionTypes).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.staff=function(e){return a.staff=e,delete o["staff;"],l.staff=!0,r},this.offset=function(t){if("function"==typeof t){delete a.offset;var n=t(new gp(e&&e.offset));e?o.offset=n:a.offset=n.build()}else a.offset=t,delete o["offset;"];return l.offset=!0,r},this.sound=function(t){if("function"==typeof t){delete a.sound;var n=t(new Rp(e&&e.sound));e?o.sound=n:a.sound=n.build()}else a.sound=t,delete o["sound;"];return l.sound=!0,r},this.placement=function(e){return a.placement=e,delete o["placement;"],l.placement=!0,r},this.voice=function(e){return a.voice=e,delete o["voice;"],l.voice=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r},this.directive=function(e){return a.directive=e,delete o["directive;"],l.directive=!0,r}}return e}();t.patchDirection=Io,t.buildDirection=Ho;var Rh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="DirectionType",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.percussions=function(e){return a.percussions=e,delete o["percussions;"],l.percussions=!0,r},this.percussionsAt=function(n,i){if(t("percussions"),u.percussions[n])throw new Error("Patching percussions."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.percussions&&e._snapshot.percussions[n]&&!e.percussions[n]&&c.push({p:["percussions",n],li:e._snapshot.percussions}),"function"==typeof i&&s.percussions[n]){var o=i(new hp(s.percussions[n])).patch();return c=c.concat(o.map(function(e){return e.p=["percussions",n].concat(e.p),e})),u.percussions[n]=!0,r}var l="function"==typeof i?i(new hp(s.percussions[n])).build():i;return e?c.push({p:["percussions",n],li:l}):a.percussions=s.percussions,s.percussions[n]=l,u.percussions[n]=!0,r},this.percussionsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("percussions");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.percussions[f])throw new Error("Replacing percussions."+f+" after patching in a builder is unsupported.");var d=s.percussions[f];c.push({p:["percussions",f],ld:d,li:o[f-n]}),u.percussions[f]=!0}for(;f<n+i;++f){if(u.percussions[f])throw new Error("Removing percussions."+f+" after patching in a builder is unsupported.");var d=s.percussions[f];c.push({p:["percussions",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["percussions",f],li:o[f-n]}),u.percussions[f]=!0}return(h=s.percussions).splice.apply(h,[n,i].concat(o)),a.percussions=s.percussions,(p=u.percussions).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.rehearsals=function(e){return a.rehearsals=e,delete o["rehearsals;"],l.rehearsals=!0,r},this.rehearsalsAt=function(n,i){if(t("rehearsals"),u.rehearsals[n])throw new Error("Patching rehearsals."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.rehearsals&&e._snapshot.rehearsals[n]&&!e.rehearsals[n]&&c.push({p:["rehearsals",n],li:e._snapshot.rehearsals}),"function"==typeof i&&s.rehearsals[n]){var o=i(new zh(s.rehearsals[n])).patch();return c=c.concat(o.map(function(e){return e.p=["rehearsals",n].concat(e.p),e})),u.rehearsals[n]=!0,r}var l="function"==typeof i?i(new zh(s.rehearsals[n])).build():i;return e?c.push({p:["rehearsals",n],li:l}):a.rehearsals=s.rehearsals,s.rehearsals[n]=l,u.rehearsals[n]=!0,r},this.rehearsalsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("rehearsals");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.rehearsals[f])throw new Error("Replacing rehearsals."+f+" after patching in a builder is unsupported.");var d=s.rehearsals[f];c.push({p:["rehearsals",f],ld:d,li:o[f-n]}),u.rehearsals[f]=!0}for(;f<n+i;++f){if(u.rehearsals[f])throw new Error("Removing rehearsals."+f+" after patching in a builder is unsupported.");var d=s.rehearsals[f];c.push({p:["rehearsals",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["rehearsals",f],li:o[f-n]}),u.rehearsals[f]=!0}return(h=s.rehearsals).splice.apply(h,[n,i].concat(o)),a.rehearsals=s.rehearsals,(p=u.rehearsals).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.pedal=function(t){if("function"==typeof t){delete a.pedal;var n=t(new Gh(e&&e.pedal));e?o.pedal=n:a.pedal=n.build()}else a.pedal=t,delete o["pedal;"];return l.pedal=!0,r},this.principalVoice=function(t){if("function"==typeof t){delete a.principalVoice;var n=t(new fp(e&&e.principalVoice));e?o.principalVoice=n:a.principalVoice=n.build()}else a.principalVoice=t,delete o["principalVoice;"];return l.principalVoice=!0,r},this.accordionRegistration=function(t){if("function"==typeof t){delete a.accordionRegistration;var n=t(new dp(e&&e.accordionRegistration));e?o.accordionRegistration=n:a.accordionRegistration=n.build()}else a.accordionRegistration=t,delete o["accordionRegistration;"];return l.accordionRegistration=!0,r},this.eyeglasses=function(t){if("function"==typeof t){delete a.eyeglasses;var n=t(new op(e&&e.eyeglasses));e?o.eyeglasses=n:a.eyeglasses=n.build()}else a.eyeglasses=t,delete o["eyeglasses;"];return l.eyeglasses=!0,r},this.image=function(t){if("function"==typeof t){delete a.image;var n=t(new cp(e&&e.image));e?o.image=n:a.image=n.build()}else a.image=t,delete o["image;"];return l.image=!0,r},this.harpPedals=function(t){if("function"==typeof t){delete a.harpPedals;var n=t(new np(e&&e.harpPedals));e?o.harpPedals=n:a.harpPedals=n.build()}else a.harpPedals=t,delete o["harpPedals;"];return l.harpPedals=!0,r},this.metronome=function(t){if("function"==typeof t){delete a.metronome;var n=t(new Vh(e&&e.metronome));e?o.metronome=n:a.metronome=n.build()}else a.metronome=t,delete o["metronome;"];return l.metronome=!0,r},this.otherDirection=function(t){if("function"==typeof t){delete a.otherDirection;var n=t(new md(e&&e.otherDirection));e?o.otherDirection=n:a.otherDirection=n.build()}else a.otherDirection=t,delete o["otherDirection;"];return l.otherDirection=!0,r},this.segnos=function(e){return a.segnos=e,delete o["segnos;"],l.segnos=!0,r},this.segnosAt=function(n,i){if(t("segnos"),u.segnos[n])throw new Error("Patching segnos."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.segnos&&e._snapshot.segnos[n]&&!e.segnos[n]&&c.push({p:["segnos",n],li:e._snapshot.segnos}),"function"==typeof i&&s.segnos[n]){var o=i(new Oc(s.segnos[n])).patch();return c=c.concat(o.map(function(e){return e.p=["segnos",n].concat(e.p),e})),u.segnos[n]=!0,r}var l="function"==typeof i?i(new Oc(s.segnos[n])).build():i;return e?c.push({p:["segnos",n],li:l}):a.segnos=s.segnos,s.segnos[n]=l,u.segnos[n]=!0,r},this.segnosSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("segnos");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.segnos[f])throw new Error("Replacing segnos."+f+" after patching in a builder is unsupported.");var d=s.segnos[f];c.push({p:["segnos",f],ld:d,li:o[f-n]}),u.segnos[f]=!0}for(;f<n+i;++f){if(u.segnos[f])throw new Error("Removing segnos."+f+" after patching in a builder is unsupported.");var d=s.segnos[f];c.push({p:["segnos",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["segnos",f],li:o[f-n]}),u.segnos[f]=!0}return(h=s.segnos).splice.apply(h,[n,i].concat(o)),a.segnos=s.segnos,(p=u.segnos).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.scordatura=function(t){if("function"==typeof t){delete a.scordatura;var n=t(new sp(e&&e.scordatura));e?o.scordatura=n:a.scordatura=n.build()}else a.scordatura=t,delete o["scordatura;"];return l.scordatura=!0,r},this.stringMute=function(t){if("function"==typeof t){delete a.stringMute;var n=t(new lp(e&&e.stringMute));e?o.stringMute=n:a.stringMute=n.build()}else a.stringMute=t,delete o["stringMute;"];return l.stringMute=!0,r},this.wedge=function(t){if("function"==typeof t){delete a.wedge;var n=t(new Hh(e&&e.wedge));e?o.wedge=n:a.wedge=n.build()}else a.wedge=t,delete o["wedge;"];return l.wedge=!0,r},this.dashes=function(t){if("function"==typeof t){delete a.dashes;var n=t(new jh(e&&e.dashes));e?o.dashes=n:a.dashes=n.build()}else a.dashes=t,delete o["dashes;"];return l.dashes=!0,r},this.damp=function(t){if("function"==typeof t){delete a.damp;var n=t(new rp(e&&e.damp));e?o.damp=n:a.damp=n.build()}else a.damp=t,delete o["damp;"];return l.damp=!0,r},this.bracket=function(t){if("function"==typeof t){delete a.bracket;var n=t(new qh(e&&e.bracket));e?o.bracket=n:a.bracket=n.build()}else a.bracket=t,delete o["bracket;"];return l.bracket=!0,r},this.dynamics=function(t){if("function"==typeof t){delete a.dynamics;var n=t(new Ec(e&&e.dynamics));e?o.dynamics=n:a.dynamics=n.build()}else a.dynamics=t,delete o["dynamics;"];return l.dynamics=!0,r},this.octaveShift=function(t){if("function"==typeof t){delete a.octaveShift;var n=t(new tp(e&&e.octaveShift));e?o.octaveShift=n:a.octaveShift=n.build()}else a.octaveShift=t,delete o["octaveShift;"];return l.octaveShift=!0,r},this.words=function(e){return a.words=e,delete o["words;"],l.words=!0,r},this.wordsAt=function(n,i){if(t("words"),u.words[n])throw new Error("Patching words."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.words&&e._snapshot.words[n]&&!e.words[n]&&c.push({p:["words",n],li:e._snapshot.words}),"function"==typeof i&&s.words[n]){var o=i(new Ih(s.words[n])).patch();return c=c.concat(o.map(function(e){return e.p=["words",n].concat(e.p),e})),u.words[n]=!0,r}var l="function"==typeof i?i(new Ih(s.words[n])).build():i;return e?c.push({p:["words",n],li:l}):a.words=s.words,s.words[n]=l,u.words[n]=!0,r},this.wordsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("words");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.words[f])throw new Error("Replacing words."+f+" after patching in a builder is unsupported.");var d=s.words[f];c.push({p:["words",f],ld:d,li:o[f-n]}),u.words[f]=!0}for(;f<n+i;++f){if(u.words[f])throw new Error("Removing words."+f+" after patching in a builder is unsupported.");var d=s.words[f];c.push({p:["words",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["words",f],li:o[f-n]}),u.words[f]=!0}return(h=s.words).splice.apply(h,[n,i].concat(o)),a.words=s.words,(p=u.words).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.dampAll=function(t){if("function"==typeof t){delete a.dampAll;var n=t(new ap(e&&e.dampAll));e?o.dampAll=n:a.dampAll=n.build()}else a.dampAll=t,delete o["dampAll;"];return l.dampAll=!0,r},this.codas=function(e){return a.codas=e,delete o["codas;"],l.codas=!0,r},this.codasAt=function(n,i){if(t("codas"),u.codas[n])throw new Error("Patching codas."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.codas&&e._snapshot.codas[n]&&!e.codas[n]&&c.push({p:["codas",n],li:e._snapshot.codas}),"function"==typeof i&&s.codas[n]){var o=i(new Uc(s.codas[n])).patch();return c=c.concat(o.map(function(e){return e.p=["codas",n].concat(e.p),e})),u.codas[n]=!0,r}var l="function"==typeof i?i(new Uc(s.codas[n])).build():i;return e?c.push({p:["codas",n],li:l}):a.codas=s.codas,s.codas[n]=l,u.codas[n]=!0,r},this.codasSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("codas");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.codas[f])throw new Error("Replacing codas."+f+" after patching in a builder is unsupported.");var d=s.codas[f];c.push({p:["codas",f],ld:d,li:o[f-n]}),u.codas[f]=!0}for(;f<n+i;++f){if(u.codas[f])throw new Error("Removing codas."+f+" after patching in a builder is unsupported.");var d=s.codas[f];c.push({p:["codas",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["codas",f],li:o[f-n]}),u.codas[f]=!0}return(h=s.codas).splice.apply(h,[n,i].concat(o)),a.codas=s.codas,(p=u.codas).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchDirectionType=jo,t.buildDirectionType=qo;var zh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field");
}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Rehearsal",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchRehearsal=Go,t.buildRehearsal=Vo;var Ih=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Words",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchWords=Qo,t.buildWords=Jo;var Hh=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Wedge",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.niente=function(e){return r.niente=e,delete a["niente;"],o.niente=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.spread=function(e){return r.spread=e,delete a["spread;"],o.spread=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchWedge=Ko,t.buildWedge=Zo;var jh=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Dashes",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchDashes=$o,t.buildDashes=el;var qh=function(){function e(e){function t(){console.assert(e&&!o.endLength||void 0!==a.endLength||void 0!==r.endLength,"endLength is a required field"),console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.lineEnd||void 0!==a.lineEnd||void 0!==r.lineEnd,"lineEnd is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Bracket",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.endLength=function(e){return r.endLength=e,delete a["endLength;"],o.endLength=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.lineEnd=function(e){return r.lineEnd=e,delete a["lineEnd;"],o.lineEnd=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.lineType=function(e){return r.lineType=e,delete a["lineType;"],o.lineType=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchBracket=tl,t.buildBracket=nl;var Gh=function(){function e(e){function t(){console.assert(e&&!o.line||void 0!==a.line||void 0!==r.line,"line is a required field"),console.assert(e&&!o.sign||void 0!==a.sign||void 0!==r.sign,"sign is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Pedal",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.line=function(e){return r.line=e,delete a["line;"],o.line=!0,i},this.sign=function(e){return r.sign=e,delete a["sign;"],o.sign=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchPedal=il,t.buildPedal=rl;var Vh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.metronomeNotes||void 0!==o.metronomeNotes||void 0!==a.metronomeNotes,"metronomeNotes is a required field"),console.assert(e&&!l.perMinute||void 0!==o.perMinute||void 0!==a.perMinute,"perMinute is a required field"),console.assert(e&&!l.parentheses||void 0!==o.parentheses||void 0!==a.parentheses,"parentheses is a required field"),console.assert(e&&!l.beatUnit||void 0!==o.beatUnit||void 0!==a.beatUnit,"beatUnit is a required field"),console.assert(e&&!l.beatUnitDots||void 0!==o.beatUnitDots||void 0!==a.beatUnitDots,"beatUnitDots is a required field"),console.assert(e&&!l.beatUnitChange||void 0!==o.beatUnitChange||void 0!==a.beatUnitChange,"beatUnitChange is a required field"),console.assert(e&&!l.beatUnitDotsChange||void 0!==o.beatUnitDotsChange||void 0!==a.beatUnitDotsChange,"beatUnitDotsChange is a required field"),console.assert(e&&!l.metronomeRelation||void 0!==o.metronomeRelation||void 0!==a.metronomeRelation,"metronomeRelation is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Metronome",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.metronomeNotes=function(e){return a.metronomeNotes=e,delete o["metronomeNotes;"],l.metronomeNotes=!0,r},this.metronomeNotesAt=function(n,i){if(t("metronomeNotes"),u.metronomeNotes[n])throw new Error("Patching metronomeNotes."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.metronomeNotes&&e._snapshot.metronomeNotes[n]&&!e.metronomeNotes[n]&&c.push({p:["metronomeNotes",n],li:e._snapshot.metronomeNotes}),"function"==typeof i&&s.metronomeNotes[n]){var o=i(new Kh(s.metronomeNotes[n])).patch();return c=c.concat(o.map(function(e){return e.p=["metronomeNotes",n].concat(e.p),e})),u.metronomeNotes[n]=!0,r}var l="function"==typeof i?i(new Kh(s.metronomeNotes[n])).build():i;return e?c.push({p:["metronomeNotes",n],li:l}):a.metronomeNotes=s.metronomeNotes,s.metronomeNotes[n]=l,u.metronomeNotes[n]=!0,r},this.metronomeNotesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("metronomeNotes");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.metronomeNotes[f])throw new Error("Replacing metronomeNotes."+f+" after patching in a builder is unsupported.");var d=s.metronomeNotes[f];c.push({p:["metronomeNotes",f],ld:d,li:o[f-n]}),u.metronomeNotes[f]=!0}for(;f<n+i;++f){if(u.metronomeNotes[f])throw new Error("Removing metronomeNotes."+f+" after patching in a builder is unsupported.");var d=s.metronomeNotes[f];c.push({p:["metronomeNotes",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["metronomeNotes",f],li:o[f-n]}),u.metronomeNotes[f]=!0}return(h=s.metronomeNotes).splice.apply(h,[n,i].concat(o)),a.metronomeNotes=s.metronomeNotes,(p=u.metronomeNotes).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.perMinute=function(t){if("function"==typeof t){delete a.perMinute;var n=t(new Jh(e&&e.perMinute));e?o.perMinute=n:a.perMinute=n.build()}else a.perMinute=t,delete o["perMinute;"];return l.perMinute=!0,r},this.parentheses=function(e){return a.parentheses=e,delete o["parentheses;"],l.parentheses=!0,r},this.beatUnit=function(e){return a.beatUnit=e,delete o["beatUnit;"],l.beatUnit=!0,r},this.beatUnitDots=function(e){return a.beatUnitDots=e,delete o["beatUnitDots;"],l.beatUnitDots=!0,r},this.beatUnitDotsAt=function(n,i){if(t("beatUnitDots"),u.beatUnitDots[n])throw new Error("Patching beatUnitDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.beatUnitDots&&e._snapshot.beatUnitDots[n]&&!e.beatUnitDots[n]&&c.push({p:["beatUnitDots",n],li:e._snapshot.beatUnitDots}),"function"==typeof i&&s.beatUnitDots[n]){var o=i(new Qh(s.beatUnitDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["beatUnitDots",n].concat(e.p),e})),u.beatUnitDots[n]=!0,r}var l="function"==typeof i?i(new Qh(s.beatUnitDots[n])).build():i;return e?c.push({p:["beatUnitDots",n],li:l}):a.beatUnitDots=s.beatUnitDots,s.beatUnitDots[n]=l,u.beatUnitDots[n]=!0,r},this.beatUnitDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("beatUnitDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.beatUnitDots[f])throw new Error("Replacing beatUnitDots."+f+" after patching in a builder is unsupported.");var d=s.beatUnitDots[f];c.push({p:["beatUnitDots",f],ld:d,li:o[f-n]}),u.beatUnitDots[f]=!0}for(;f<n+i;++f){if(u.beatUnitDots[f])throw new Error("Removing beatUnitDots."+f+" after patching in a builder is unsupported.");var d=s.beatUnitDots[f];c.push({p:["beatUnitDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["beatUnitDots",f],li:o[f-n]}),u.beatUnitDots[f]=!0}return(h=s.beatUnitDots).splice.apply(h,[n,i].concat(o)),a.beatUnitDots=s.beatUnitDots,(p=u.beatUnitDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.beatUnitChange=function(e){return a.beatUnitChange=e,delete o["beatUnitChange;"],l.beatUnitChange=!0,r},this.beatUnitDotsChange=function(e){return a.beatUnitDotsChange=e,delete o["beatUnitDotsChange;"],l.beatUnitDotsChange=!0,r},this.beatUnitDotsChangeAt=function(n,i){if(t("beatUnitDotsChange"),u.beatUnitDotsChange[n])throw new Error("Patching beatUnitDotsChange."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.beatUnitDotsChange&&e._snapshot.beatUnitDotsChange[n]&&!e.beatUnitDotsChange[n]&&c.push({p:["beatUnitDotsChange",n],li:e._snapshot.beatUnitDotsChange}),"function"==typeof i&&s.beatUnitDotsChange[n]){var o=i(new Qh(s.beatUnitDotsChange[n])).patch();return c=c.concat(o.map(function(e){return e.p=["beatUnitDotsChange",n].concat(e.p),e})),u.beatUnitDotsChange[n]=!0,r}var l="function"==typeof i?i(new Qh(s.beatUnitDotsChange[n])).build():i;return e?c.push({p:["beatUnitDotsChange",n],li:l}):a.beatUnitDotsChange=s.beatUnitDotsChange,s.beatUnitDotsChange[n]=l,u.beatUnitDotsChange[n]=!0,r},this.beatUnitDotsChangeSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("beatUnitDotsChange");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.beatUnitDotsChange[f])throw new Error("Replacing beatUnitDotsChange."+f+" after patching in a builder is unsupported.");var d=s.beatUnitDotsChange[f];c.push({p:["beatUnitDotsChange",f],ld:d,li:o[f-n]}),u.beatUnitDotsChange[f]=!0}for(;f<n+i;++f){if(u.beatUnitDotsChange[f])throw new Error("Removing beatUnitDotsChange."+f+" after patching in a builder is unsupported.");var d=s.beatUnitDotsChange[f];c.push({p:["beatUnitDotsChange",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["beatUnitDotsChange",f],li:o[f-n]}),u.beatUnitDotsChange[f]=!0}return(h=s.beatUnitDotsChange).splice.apply(h,[n,i].concat(o)),a.beatUnitDotsChange=s.beatUnitDotsChange,(p=u.beatUnitDotsChange).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.metronomeRelation=function(e){return a.metronomeRelation=e,delete o["metronomeRelation;"],l.metronomeRelation=!0,r},this.justify=function(e){return a.justify=e,delete o["justify;"],l.justify=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.halign=function(e){return a.halign=e,delete o["halign;"],l.halign=!0,r},this.valign=function(e){return a.valign=e,delete o["valign;"],l.valign=!0,r}}return e}();t.patchMetronome=al,t.buildMetronome=ol;var Qh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="BeatUnitDot",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchBeatUnitDot=ll,t.buildBeatUnitDot=sl;var Jh=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PerMinute",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i}}return e}();t.patchPerMinute=ul,t.buildPerMinute=cl;var Kh=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.metronomeDots||void 0!==o.metronomeDots||void 0!==a.metronomeDots,"metronomeDots is a required field"),console.assert(e&&!l.metronomeBeams||void 0!==o.metronomeBeams||void 0!==a.metronomeBeams,"metronomeBeams is a required field"),console.assert(e&&!l.metronomeType||void 0!==o.metronomeType||void 0!==a.metronomeType,"metronomeType is a required field"),console.assert(e&&!l.metronomeTuplet||void 0!==o.metronomeTuplet||void 0!==a.metronomeTuplet,"metronomeTuplet is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="MetronomeNote",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.metronomeDots=function(e){return a.metronomeDots=e,delete o["metronomeDots;"],l.metronomeDots=!0,r},this.metronomeDotsAt=function(n,i){if(t("metronomeDots"),u.metronomeDots[n])throw new Error("Patching metronomeDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.metronomeDots&&e._snapshot.metronomeDots[n]&&!e.metronomeDots[n]&&c.push({p:["metronomeDots",n],li:e._snapshot.metronomeDots}),"function"==typeof i&&s.metronomeDots[n]){var o=i(new Zh(s.metronomeDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["metronomeDots",n].concat(e.p),e})),u.metronomeDots[n]=!0,r}var l="function"==typeof i?i(new Zh(s.metronomeDots[n])).build():i;return e?c.push({p:["metronomeDots",n],li:l}):a.metronomeDots=s.metronomeDots,s.metronomeDots[n]=l,u.metronomeDots[n]=!0,r},this.metronomeDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("metronomeDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.metronomeDots[f])throw new Error("Replacing metronomeDots."+f+" after patching in a builder is unsupported.");var d=s.metronomeDots[f];c.push({p:["metronomeDots",f],ld:d,li:o[f-n]}),u.metronomeDots[f]=!0}for(;f<n+i;++f){if(u.metronomeDots[f])throw new Error("Removing metronomeDots."+f+" after patching in a builder is unsupported.");var d=s.metronomeDots[f];c.push({p:["metronomeDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["metronomeDots",f],li:o[f-n]}),u.metronomeDots[f]=!0}return(h=s.metronomeDots).splice.apply(h,[n,i].concat(o)),a.metronomeDots=s.metronomeDots,(p=u.metronomeDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.metronomeBeams=function(e){return a.metronomeBeams=e,delete o["metronomeBeams;"],l.metronomeBeams=!0,r},this.metronomeBeamsAt=function(n,i){if(t("metronomeBeams"),u.metronomeBeams[n])throw new Error("Patching metronomeBeams."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.metronomeBeams&&e._snapshot.metronomeBeams[n]&&!e.metronomeBeams[n]&&c.push({p:["metronomeBeams",n],li:e._snapshot.metronomeBeams}),"function"==typeof i&&s.metronomeBeams[n]){var o=i(new $h(s.metronomeBeams[n])).patch();return c=c.concat(o.map(function(e){return e.p=["metronomeBeams",n].concat(e.p),e})),u.metronomeBeams[n]=!0,r}var l="function"==typeof i?i(new $h(s.metronomeBeams[n])).build():i;return e?c.push({p:["metronomeBeams",n],li:l}):a.metronomeBeams=s.metronomeBeams,s.metronomeBeams[n]=l,u.metronomeBeams[n]=!0,r},this.metronomeBeamsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("metronomeBeams");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.metronomeBeams[f])throw new Error("Replacing metronomeBeams."+f+" after patching in a builder is unsupported.");var d=s.metronomeBeams[f];c.push({p:["metronomeBeams",f],ld:d,li:o[f-n]}),u.metronomeBeams[f]=!0}for(;f<n+i;++f){if(u.metronomeBeams[f])throw new Error("Removing metronomeBeams."+f+" after patching in a builder is unsupported.");var d=s.metronomeBeams[f];c.push({p:["metronomeBeams",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["metronomeBeams",f],li:o[f-n]}),u.metronomeBeams[f]=!0}return(h=s.metronomeBeams).splice.apply(h,[n,i].concat(o)),a.metronomeBeams=s.metronomeBeams,(p=u.metronomeBeams).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.metronomeType=function(e){return a.metronomeType=e,delete o["metronomeType;"],l.metronomeType=!0,r},this.metronomeTuplet=function(t){if("function"==typeof t){delete a.metronomeTuplet;var n=t(new ep(e&&e.metronomeTuplet));e?o.metronomeTuplet=n:a.metronomeTuplet=n.build()}else a.metronomeTuplet=t,delete o["metronomeTuplet;"];return l.metronomeTuplet=!0,r}}return e}();t.patchMetronomeNote=fl,t.buildMetronomeNote=dl;var Zh=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="MetronomeDot",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchMetronomeDot=hl,t.buildMetronomeDot=pl;var $h=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MetronomeBeam",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i}}return e}();t.patchMetronomeBeam=ml,t.buildMetronomeBeam=vl;var ep=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.actualNotes||void 0!==o.actualNotes||void 0!==a.actualNotes,"actualNotes is a required field"),console.assert(e&&!l.bracket||void 0!==o.bracket||void 0!==a.bracket,"bracket is a required field"),console.assert(e&&!l.showNumber||void 0!==o.showNumber||void 0!==a.showNumber,"showNumber is a required field"),console.assert(e&&!l.normalType||void 0!==o.normalType||void 0!==a.normalType,"normalType is a required field"),console.assert(e&&!l.type||void 0!==o.type||void 0!==a.type,"type is a required field"),console.assert(e&&!l.normalNotes||void 0!==o.normalNotes||void 0!==a.normalNotes,"normalNotes is a required field"),console.assert(e&&!l.normalDots||void 0!==o.normalDots||void 0!==a.normalDots,"normalDots is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="MetronomeTuplet",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.actualNotes=function(e){return a.actualNotes=e,delete o["actualNotes;"],l.actualNotes=!0,r},this.bracket=function(e){return a.bracket=e,delete o["bracket;"],l.bracket=!0,r},this.showNumber=function(e){return a.showNumber=e,delete o["showNumber;"],l.showNumber=!0,r},this.normalType=function(e){return a.normalType=e,delete o["normalType;"],l.normalType=!0,r},this.type=function(e){return a.type=e,delete o["type;"],l.type=!0,r},this.normalNotes=function(e){return a.normalNotes=e,delete o["normalNotes;"],l.normalNotes=!0,r},this.normalDots=function(e){return a.normalDots=e,delete o["normalDots;"],l.normalDots=!0,r},this.normalDotsAt=function(n,i){if(t("normalDots"),u.normalDots[n])throw new Error("Patching normalDots."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.normalDots&&e._snapshot.normalDots[n]&&!e.normalDots[n]&&c.push({p:["normalDots",n],li:e._snapshot.normalDots}),"function"==typeof i&&s.normalDots[n]){var o=i(new Ac(s.normalDots[n])).patch();return c=c.concat(o.map(function(e){return e.p=["normalDots",n].concat(e.p),e})),u.normalDots[n]=!0,r}var l="function"==typeof i?i(new Ac(s.normalDots[n])).build():i;return e?c.push({p:["normalDots",n],li:l}):a.normalDots=s.normalDots,s.normalDots[n]=l,u.normalDots[n]=!0,r},this.normalDotsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("normalDots");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.normalDots[f])throw new Error("Replacing normalDots."+f+" after patching in a builder is unsupported.");var d=s.normalDots[f];c.push({p:["normalDots",f],ld:d,li:o[f-n]}),u.normalDots[f]=!0}for(;f<n+i;++f){if(u.normalDots[f])throw new Error("Removing normalDots."+f+" after patching in a builder is unsupported.");var d=s.normalDots[f];c.push({p:["normalDots",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["normalDots",f],li:o[f-n]}),u.normalDots[f]=!0}return(h=s.normalDots).splice.apply(h,[n,i].concat(o)),a.normalDots=s.normalDots,(p=u.normalDots).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchMetronomeTuplet=gl,t.buildMetronomeTuplet=yl;var tp=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.size||void 0!==a.size||void 0!==r.size,"size is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="OctaveShift",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.size=function(e){return r.size=e,delete a["size;"],o.size=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.dashLength=function(e){return r.dashLength=e,delete a["dashLength;"],o.dashLength=!0,i},this.spaceLength=function(e){return r.spaceLength=e,delete a["spaceLength;"],o.spaceLength=!0,i}}return e}();t.patchOctaveShift=bl,t.buildOctaveShift=Sl;var np=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.pedalTunings||void 0!==o.pedalTunings||void 0!==a.pedalTunings,"pedalTunings is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="HarpPedals",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.pedalTunings=function(e){return a.pedalTunings=e,delete o["pedalTunings;"],l.pedalTunings=!0,r},this.pedalTuningsAt=function(n,i){if(t("pedalTunings"),u.pedalTunings[n])throw new Error("Patching pedalTunings."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.pedalTunings&&e._snapshot.pedalTunings[n]&&!e.pedalTunings[n]&&c.push({p:["pedalTunings",n],li:e._snapshot.pedalTunings}),"function"==typeof i&&s.pedalTunings[n]){var o=i(new ip(s.pedalTunings[n])).patch();return c=c.concat(o.map(function(e){return e.p=["pedalTunings",n].concat(e.p),e})),u.pedalTunings[n]=!0,r}var l="function"==typeof i?i(new ip(s.pedalTunings[n])).build():i;return e?c.push({p:["pedalTunings",n],li:l}):a.pedalTunings=s.pedalTunings,s.pedalTunings[n]=l,u.pedalTunings[n]=!0,r},this.pedalTuningsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("pedalTunings");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.pedalTunings[f])throw new Error("Replacing pedalTunings."+f+" after patching in a builder is unsupported.");var d=s.pedalTunings[f];c.push({p:["pedalTunings",f],ld:d,li:o[f-n]}),u.pedalTunings[f]=!0}for(;f<n+i;++f){if(u.pedalTunings[f])throw new Error("Removing pedalTunings."+f+" after patching in a builder is unsupported.");var d=s.pedalTunings[f];c.push({p:["pedalTunings",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["pedalTunings",f],li:o[f-n]}),u.pedalTunings[f]=!0}return(h=s.pedalTunings).splice.apply(h,[n,i].concat(o)),a.pedalTunings=s.pedalTunings,(p=u.pedalTunings).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.halign=function(e){return a.halign=e,delete o["halign;"],
l.halign=!0,r},this.valign=function(e){return a.valign=e,delete o["valign;"],l.valign=!0,r}}return e}();t.patchHarpPedals=wl,t.buildHarpPedals=Nl;var ip=function(){function e(e){function t(){console.assert(e&&!o.pedalStep||void 0!==a.pedalStep||void 0!==r.pedalStep,"pedalStep is a required field"),console.assert(e&&!o.pedalAlter||void 0!==a.pedalAlter||void 0!==r.pedalAlter,"pedalAlter is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PedalTuning",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.pedalStep=function(e){return r.pedalStep=e,delete a["pedalStep;"],o.pedalStep=!0,i},this.pedalAlter=function(e){return r.pedalAlter=e,delete a["pedalAlter;"],o.pedalAlter=!0,i}}return e}();t.patchPedalTuning=Dl,t.buildPedalTuning=Tl;var rp=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Damp",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchDamp=Fl,t.buildDamp=xl;var ap=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DampAll",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchDampAll=kl,t.buildDampAll=Bl;var op=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Eyeglasses",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchEyeglasses=Cl,t.buildEyeglasses=Ll;var lp=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="StringMute",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchStringMute=Wl,t.buildStringMute=_l;var sp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.accords||void 0!==o.accords||void 0!==a.accords,"accords is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Scordatura",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.accords=function(e){return a.accords=e,delete o["accords;"],l.accords=!0,r},this.accordsAt=function(n,i){if(t("accords"),u.accords[n])throw new Error("Patching accords."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.accords&&e._snapshot.accords[n]&&!e.accords[n]&&c.push({p:["accords",n],li:e._snapshot.accords}),"function"==typeof i&&s.accords[n]){var o=i(new up(s.accords[n])).patch();return c=c.concat(o.map(function(e){return e.p=["accords",n].concat(e.p),e})),u.accords[n]=!0,r}var l="function"==typeof i?i(new up(s.accords[n])).build():i;return e?c.push({p:["accords",n],li:l}):a.accords=s.accords,s.accords[n]=l,u.accords[n]=!0,r},this.accordsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("accords");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.accords[f])throw new Error("Replacing accords."+f+" after patching in a builder is unsupported.");var d=s.accords[f];c.push({p:["accords",f],ld:d,li:o[f-n]}),u.accords[f]=!0}for(;f<n+i;++f){if(u.accords[f])throw new Error("Removing accords."+f+" after patching in a builder is unsupported.");var d=s.accords[f];c.push({p:["accords",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["accords",f],li:o[f-n]}),u.accords[f]=!0}return(h=s.accords).splice.apply(h,[n,i].concat(o)),a.accords=s.accords,(p=u.accords).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p}}return e}();t.patchScordatura=Ol,t.buildScordatura=Ul;var up=function(){function e(e){function t(){console.assert(e&&!o.tuningAlter||void 0!==a.tuningAlter||void 0!==r.tuningAlter,"tuningAlter is a required field"),console.assert(e&&!o.string||void 0!==a.string||void 0!==r.string,"string is a required field"),console.assert(e&&!o.tuningStep||void 0!==a.tuningStep||void 0!==r.tuningStep,"tuningStep is a required field"),console.assert(e&&!o.tuningOctave||void 0!==a.tuningOctave||void 0!==r.tuningOctave,"tuningOctave is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Accord",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.tuningAlter=function(e){return r.tuningAlter=e,delete a["tuningAlter;"],o.tuningAlter=!0,i},this.string=function(e){return r.string=e,delete a["string;"],o.string=!0,i},this.tuningStep=function(e){return r.tuningStep=e,delete a["tuningStep;"],o.tuningStep=!0,i},this.tuningOctave=function(e){return r.tuningOctave=e,delete a["tuningOctave;"],o.tuningOctave=!0,i}}return e}();t.patchAccord=Al,t.buildAccord=El;var cp=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.source||void 0!==a.source||void 0!==r.source,"source is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Image",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.source=function(e){return r.source=e,delete a["source;"],o.source=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valignImage=function(e){return r.valignImage=e,delete a["valignImage;"],o.valignImage=!0,i}}return e}();t.patchImage=Ml,t.buildImage=Xl;var fp=function(){function e(e){function t(){console.assert(e&&!o.symbol||void 0!==a.symbol||void 0!==r.symbol,"symbol is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PrincipalVoice",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.symbol=function(e){return r.symbol=e,delete a["symbol;"],o.symbol=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchPrincipalVoice=Pl,t.buildPrincipalVoice=Yl;var dp=function(){function e(e){function t(){console.assert(e&&!o.accordionMiddle||void 0!==a.accordionMiddle||void 0!==r.accordionMiddle,"accordionMiddle is a required field"),console.assert(e&&!o.accordionHigh||void 0!==a.accordionHigh||void 0!==r.accordionHigh,"accordionHigh is a required field"),console.assert(e&&!o.accordionLow||void 0!==a.accordionLow||void 0!==r.accordionLow,"accordionLow is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="AccordionRegistration",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.accordionMiddle=function(e){return r.accordionMiddle=e,delete a["accordionMiddle;"],o.accordionMiddle=!0,i},this.accordionHigh=function(e){return r.accordionHigh=e,delete a["accordionHigh;"],o.accordionHigh=!0,i},this.accordionLow=function(e){return r.accordionLow=e,delete a["accordionLow;"],o.accordionLow=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchAccordionRegistration=Rl,t.buildAccordionRegistration=zl;var hp=function(){function e(e){function t(){console.assert(e&&!o.stickLocation||void 0!==a.stickLocation||void 0!==r.stickLocation,"stickLocation is a required field"),console.assert(e&&!o.otherPercussion||void 0!==a.otherPercussion||void 0!==r.otherPercussion,"otherPercussion is a required field"),console.assert(e&&!o.wood||void 0!==a.wood||void 0!==r.wood,"wood is a required field"),console.assert(e&&!o.effect||void 0!==a.effect||void 0!==r.effect,"effect is a required field"),console.assert(e&&!o.glass||void 0!==a.glass||void 0!==r.glass,"glass is a required field"),console.assert(e&&!o.timpani||void 0!==a.timpani||void 0!==r.timpani,"timpani is a required field"),console.assert(e&&!o.stick||void 0!==a.stick||void 0!==r.stick,"stick is a required field"),console.assert(e&&!o.metal||void 0!==a.metal||void 0!==r.metal,"metal is a required field"),console.assert(e&&!o.pitched||void 0!==a.pitched||void 0!==r.pitched,"pitched is a required field"),console.assert(e&&!o.membrane||void 0!==a.membrane||void 0!==r.membrane,"membrane is a required field"),console.assert(e&&!o.beater||void 0!==a.beater||void 0!==r.beater,"beater is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Percussion",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.stickLocation=function(e){return r.stickLocation=e,delete a["stickLocation;"],o.stickLocation=!0,i},this.otherPercussion=function(e){return r.otherPercussion=e,delete a["otherPercussion;"],o.otherPercussion=!0,i},this.wood=function(e){return r.wood=e,delete a["wood;"],o.wood=!0,i},this.effect=function(e){return r.effect=e,delete a["effect;"],o.effect=!0,i},this.glass=function(e){return r.glass=e,delete a["glass;"],o.glass=!0,i},this.timpani=function(t){if("function"==typeof t){delete r.timpani;var n=t(new pp(e&&e.timpani));e?a.timpani=n:r.timpani=n.build()}else r.timpani=t,delete a["timpani;"];return o.timpani=!0,i},this.stick=function(t){if("function"==typeof t){delete r.stick;var n=t(new vp(e&&e.stick));e?a.stick=n:r.stick=n.build()}else r.stick=t,delete a["stick;"];return o.stick=!0,i},this.metal=function(e){return r.metal=e,delete a["metal;"],o.metal=!0,i},this.pitched=function(e){return r.pitched=e,delete a["pitched;"],o.pitched=!0,i},this.membrane=function(e){return r.membrane=e,delete a["membrane;"],o.membrane=!0,i},this.beater=function(t){if("function"==typeof t){delete r.beater;var n=t(new mp(e&&e.beater));e?a.beater=n:r.beater=n.build()}else r.beater=t,delete a["beater;"];return o.beater=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchPercussion=Il,t.buildPercussion=Hl;var pp=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Timpani",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchTimpani=jl,t.buildTimpani=ql;var mp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.tip||void 0!==a.tip||void 0!==r.tip,"tip is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Beater",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.tip=function(e){return r.tip=e,delete a["tip;"],o.tip=!0,i}}return e}();t.patchBeater=Gl,t.buildBeater=Vl;var vp=function(){function e(e){function t(){console.assert(e&&!o.stickMaterial||void 0!==a.stickMaterial||void 0!==r.stickMaterial,"stickMaterial is a required field"),console.assert(e&&!o.stickType||void 0!==a.stickType||void 0!==r.stickType,"stickType is a required field"),console.assert(e&&!o.tip||void 0!==a.tip||void 0!==r.tip,"tip is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Stick",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.stickMaterial=function(e){return r.stickMaterial=e,delete a["stickMaterial;"],o.stickMaterial=!0,i},this.stickType=function(e){return r.stickType=e,delete a["stickType;"],o.stickType=!0,i},this.tip=function(e){return r.tip=e,delete a["tip;"],o.tip=!0,i}}return e}();t.patchStick=Ql,t.buildStick=Jl;var gp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.sound||void 0!==a.sound||void 0!==r.sound,"sound is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Offset",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.sound=function(e){return r.sound=e,delete a["sound;"],o.sound=!0,i}}return e}();t.patchOffset=Kl,t.buildOffset=Zl;var yp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.root||void 0!==o.root||void 0!==a.root,"root is a required field"),console.assert(e&&!l["function"]||void 0!==o["function"]||void 0!==a["function"],"function is a required field"),console.assert(e&&!l.kind||void 0!==o.kind||void 0!==a.kind,"kind is a required field"),console.assert(e&&!l.degrees||void 0!==o.degrees||void 0!==a.degrees,"degrees is a required field"),console.assert(e&&!l.inversion||void 0!==o.inversion||void 0!==a.inversion,"inversion is a required field"),console.assert(e&&!l.bass||void 0!==o.bass||void 0!==a.bass,"bass is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="HarmonyChord",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.root=function(t){if("function"==typeof t){delete a.root;var n=t(new Sp(e&&e.root));e?o.root=n:a.root=n.build()}else a.root=t,delete o["root;"];return l.root=!0,r},this["function"]=function(t){if("function"==typeof t){delete a["function"];var n=t(new Dp(e&&e["function"]));e?o["function"]=n:a["function"]=n.build()}else a["function"]=t,delete o["function;"];return l["function"]=!0,r},this.kind=function(t){if("function"==typeof t){delete a.kind;var n=t(new Tp(e&&e.kind));e?o.kind=n:a.kind=n.build()}else a.kind=t,delete o["kind;"];return l.kind=!0,r},this.degrees=function(e){return a.degrees=e,delete o["degrees;"],l.degrees=!0,r},this.degreesAt=function(n,i){if(t("degrees"),u.degrees[n])throw new Error("Patching degrees."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.degrees&&e._snapshot.degrees[n]&&!e.degrees[n]&&c.push({p:["degrees",n],li:e._snapshot.degrees}),"function"==typeof i&&s.degrees[n]){var o=i(new Cp(s.degrees[n])).patch();return c=c.concat(o.map(function(e){return e.p=["degrees",n].concat(e.p),e})),u.degrees[n]=!0,r}var l="function"==typeof i?i(new Cp(s.degrees[n])).build():i;return e?c.push({p:["degrees",n],li:l}):a.degrees=s.degrees,s.degrees[n]=l,u.degrees[n]=!0,r},this.degreesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("degrees");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.degrees[f])throw new Error("Replacing degrees."+f+" after patching in a builder is unsupported.");var d=s.degrees[f];c.push({p:["degrees",f],ld:d,li:o[f-n]}),u.degrees[f]=!0}for(;f<n+i;++f){if(u.degrees[f])throw new Error("Removing degrees."+f+" after patching in a builder is unsupported.");var d=s.degrees[f];c.push({p:["degrees",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["degrees",f],li:o[f-n]}),u.degrees[f]=!0}return(h=s.degrees).splice.apply(h,[n,i].concat(o)),a.degrees=s.degrees,(p=u.degrees).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.inversion=function(t){if("function"==typeof t){delete a.inversion;var n=t(new Fp(e&&e.inversion));e?o.inversion=n:a.inversion=n.build()}else a.inversion=t,delete o["inversion;"];return l.inversion=!0,r},this.bass=function(t){if("function"==typeof t){delete a.bass;var n=t(new xp(e&&e.bass));e?o.bass=n:a.bass=n.build()}else a.bass=t,delete o["bass;"];return l.bass=!0,r}}return e}();t.patchHarmonyChord=$l,t.buildHarmonyChord=es;var bp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.frame||void 0!==o.frame||void 0!==a.frame,"frame is a required field"),console.assert(e&&!l.printFrame||void 0!==o.printFrame||void 0!==a.printFrame,"printFrame is a required field"),console.assert(e&&!l.staff||void 0!==o.staff||void 0!==a.staff,"staff is a required field"),console.assert(e&&!l.type||void 0!==o.type||void 0!==a.type,"type is a required field"),console.assert(e&&!l.offset||void 0!==o.offset||void 0!==a.offset,"offset is a required field"),console.assert(e&&!l.root||void 0!==o.root||void 0!==a.root,"root is a required field"),console.assert(e&&!l["function"]||void 0!==o["function"]||void 0!==a["function"],"function is a required field"),console.assert(e&&!l.kind||void 0!==o.kind||void 0!==a.kind,"kind is a required field"),console.assert(e&&!l.degrees||void 0!==o.degrees||void 0!==a.degrees,"degrees is a required field"),console.assert(e&&!l.inversion||void 0!==o.inversion||void 0!==a.inversion,"inversion is a required field"),console.assert(e&&!l.bass||void 0!==o.bass||void 0!==a.bass,"bass is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Harmony",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.frame=function(t){if("function"==typeof t){delete a.frame;var n=t(new Op(e&&e.frame));e?o.frame=n:a.frame=n.build()}else a.frame=t,delete o["frame;"];return l.frame=!0,r},this.printFrame=function(e){return a.printFrame=e,delete o["printFrame;"],l.printFrame=!0,r},this.staff=function(e){return a.staff=e,delete o["staff;"],l.staff=!0,r},this.type=function(e){return a.type=e,delete o["type;"],l.type=!0,r},this.offset=function(t){if("function"==typeof t){delete a.offset;var n=t(new gp(e&&e.offset));e?o.offset=n:a.offset=n.build()}else a.offset=t,delete o["offset;"];return l.offset=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.fontFamily=function(e){return a.fontFamily=e,delete o["fontFamily;"],l.fontFamily=!0,r},this.fontWeight=function(e){return a.fontWeight=e,delete o["fontWeight;"],l.fontWeight=!0,r},this.fontStyle=function(e){return a.fontStyle=e,delete o["fontStyle;"],l.fontStyle=!0,r},this.fontSize=function(e){return a.fontSize=e,delete o["fontSize;"],l.fontSize=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r},this.placement=function(e){return a.placement=e,delete o["placement;"],l.placement=!0,r},this.footnote=function(t){if("function"==typeof t){delete a.footnote;var n=t(new Cc(e&&e.footnote));e?o.footnote=n:a.footnote=n.build()}else a.footnote=t,delete o["footnote;"];return l.footnote=!0,r},this.level=function(t){if("function"==typeof t){delete a.level;var n=t(new Lc(e&&e.level));e?o.level=n:a.level=n.build()}else a.level=t,delete o["level;"];return l.level=!0,r},this.root=function(t){if("function"==typeof t){delete a.root;var n=t(new Sp(e&&e.root));e?o.root=n:a.root=n.build()}else a.root=t,delete o["root;"];return l.root=!0,r},this["function"]=function(t){if("function"==typeof t){delete a["function"];var n=t(new Dp(e&&e["function"]));e?o["function"]=n:a["function"]=n.build()}else a["function"]=t,delete o["function;"];return l["function"]=!0,r},this.kind=function(t){if("function"==typeof t){delete a.kind;var n=t(new Tp(e&&e.kind));e?o.kind=n:a.kind=n.build()}else a.kind=t,delete o["kind;"];return l.kind=!0,r},this.degrees=function(e){return a.degrees=e,delete o["degrees;"],l.degrees=!0,r},this.degreesAt=function(n,i){if(t("degrees"),u.degrees[n])throw new Error("Patching degrees."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.degrees&&e._snapshot.degrees[n]&&!e.degrees[n]&&c.push({p:["degrees",n],li:e._snapshot.degrees}),"function"==typeof i&&s.degrees[n]){var o=i(new Cp(s.degrees[n])).patch();return c=c.concat(o.map(function(e){return e.p=["degrees",n].concat(e.p),e})),u.degrees[n]=!0,r}var l="function"==typeof i?i(new Cp(s.degrees[n])).build():i;return e?c.push({p:["degrees",n],li:l}):a.degrees=s.degrees,s.degrees[n]=l,u.degrees[n]=!0,r},this.degreesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("degrees");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.degrees[f])throw new Error("Replacing degrees."+f+" after patching in a builder is unsupported.");var d=s.degrees[f];c.push({p:["degrees",f],ld:d,li:o[f-n]}),u.degrees[f]=!0}for(;f<n+i;++f){if(u.degrees[f])throw new Error("Removing degrees."+f+" after patching in a builder is unsupported.");var d=s.degrees[f];c.push({p:["degrees",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["degrees",f],li:o[f-n]}),u.degrees[f]=!0}return(h=s.degrees).splice.apply(h,[n,i].concat(o)),a.degrees=s.degrees,(p=u.degrees).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.inversion=function(t){if("function"==typeof t){delete a.inversion;var n=t(new Fp(e&&e.inversion));e?o.inversion=n:a.inversion=n.build()}else a.inversion=t,delete o["inversion;"];return l.inversion=!0,r},this.bass=function(t){if("function"==typeof t){delete a.bass;var n=t(new xp(e&&e.bass));e?o.bass=n:a.bass=n.build()}else a.bass=t,delete o["bass;"];return l.bass=!0,r}}return e}();t.patchHarmony=ts,t.buildHarmony=ns;var Sp=function(){function e(e){function t(){console.assert(e&&!o.rootStep||void 0!==a.rootStep||void 0!==r.rootStep,"rootStep is a required field"),console.assert(e&&!o.rootAlter||void 0!==a.rootAlter||void 0!==r.rootAlter,"rootAlter is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Root",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.rootStep=function(t){if("function"==typeof t){delete r.rootStep;var n=t(new wp(e&&e.rootStep));e?a.rootStep=n:r.rootStep=n.build()}else r.rootStep=t,delete a["rootStep;"];return o.rootStep=!0,i},this.rootAlter=function(t){if("function"==typeof t){delete r.rootAlter;var n=t(new Np(e&&e.rootAlter));e?a.rootAlter=n:r.rootAlter=n.build()}else r.rootAlter=t,delete a["rootAlter;"];return o.rootAlter=!0,i}}return e}();t.patchRoot=is,t.buildRoot=rs;var wp=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="RootStep",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchRootStep=as,t.buildRootStep=os;var Np=function(){function e(e){function t(){console.assert(e&&!o.location||void 0!==a.location||void 0!==r.location,"location is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="RootAlter",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.location=function(e){return r.location=e,delete a["location;"],o.location=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchRootAlter=ls,t.buildRootAlter=ss;var Dp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Function",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){
return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchFunction=us,t.buildFunction=cs;var Tp=function(){function e(e){function t(){console.assert(e&&!o.parenthesesDegrees||void 0!==a.parenthesesDegrees||void 0!==r.parenthesesDegrees,"parenthesesDegrees is a required field"),console.assert(e&&!o.useSymbols||void 0!==a.useSymbols||void 0!==r.useSymbols,"useSymbols is a required field"),console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.stackDegrees||void 0!==a.stackDegrees||void 0!==r.stackDegrees,"stackDegrees is a required field"),console.assert(e&&!o.bracketDegrees||void 0!==a.bracketDegrees||void 0!==r.bracketDegrees,"bracketDegrees is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Kind",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.parenthesesDegrees=function(e){return r.parenthesesDegrees=e,delete a["parenthesesDegrees;"],o.parenthesesDegrees=!0,i},this.useSymbols=function(e){return r.useSymbols=e,delete a["useSymbols;"],o.useSymbols=!0,i},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.stackDegrees=function(e){return r.stackDegrees=e,delete a["stackDegrees;"],o.stackDegrees=!0,i},this.bracketDegrees=function(e){return r.bracketDegrees=e,delete a["bracketDegrees;"],o.bracketDegrees=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchKind=fs,t.buildKind=ds;var Fp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Inversion",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchInversion=hs,t.buildInversion=ps;var xp=function(){function e(e){function t(){console.assert(e&&!o.bassStep||void 0!==a.bassStep||void 0!==r.bassStep,"bassStep is a required field"),console.assert(e&&!o.bassAlter||void 0!==a.bassAlter||void 0!==r.bassAlter,"bassAlter is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Bass",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.bassStep=function(t){if("function"==typeof t){delete r.bassStep;var n=t(new kp(e&&e.bassStep));e?a.bassStep=n:r.bassStep=n.build()}else r.bassStep=t,delete a["bassStep;"];return o.bassStep=!0,i},this.bassAlter=function(t){if("function"==typeof t){delete r.bassAlter;var n=t(new Bp(e&&e.bassAlter));e?a.bassAlter=n:r.bassAlter=n.build()}else r.bassAlter=t,delete a["bassAlter;"];return o.bassAlter=!0,i}}return e}();t.patchBass=ms,t.buildBass=vs;var kp=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="BassStep",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchBassStep=gs,t.buildBassStep=ys;var Bp=function(){function e(e){function t(){console.assert(e&&!o.location||void 0!==a.location||void 0!==r.location,"location is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="BassAlter",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.location=function(e){return r.location=e,delete a["location;"],o.location=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchBassAlter=bs,t.buildBassAlter=Ss;var Cp=function(){function e(e){function t(){console.assert(e&&!o.degreeAlter||void 0!==a.degreeAlter||void 0!==r.degreeAlter,"degreeAlter is a required field"),console.assert(e&&!o.degreeValue||void 0!==a.degreeValue||void 0!==r.degreeValue,"degreeValue is a required field"),console.assert(e&&!o.degreeType||void 0!==a.degreeType||void 0!==r.degreeType,"degreeType is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Degree",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.degreeAlter=function(t){if("function"==typeof t){delete r.degreeAlter;var n=t(new Wp(e&&e.degreeAlter));e?a.degreeAlter=n:r.degreeAlter=n.build()}else r.degreeAlter=t,delete a["degreeAlter;"];return o.degreeAlter=!0,i},this.degreeValue=function(t){if("function"==typeof t){delete r.degreeValue;var n=t(new Lp(e&&e.degreeValue));e?a.degreeValue=n:r.degreeValue=n.build()}else r.degreeValue=t,delete a["degreeValue;"];return o.degreeValue=!0,i},this.degreeType=function(t){if("function"==typeof t){delete r.degreeType;var n=t(new _p(e&&e.degreeType));e?a.degreeType=n:r.degreeType=n.build()}else r.degreeType=t,delete a["degreeType;"];return o.degreeType=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i}}return e}();t.patchDegree=ws,t.buildDegree=Ns;var Lp=function(){function e(e){function t(){console.assert(e&&!o.symbol||void 0!==a.symbol||void 0!==r.symbol,"symbol is a required field"),console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DegreeValue",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.symbol=function(e){return r.symbol=e,delete a["symbol;"],o.symbol=!0,i},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchDegreeValue=Ds,t.buildDegreeValue=Ts;var Wp=function(){function e(e){function t(){console.assert(e&&!o.plusMinus||void 0!==a.plusMinus||void 0!==r.plusMinus,"plusMinus is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DegreeAlter",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.plusMinus=function(e){return r.plusMinus=e,delete a["plusMinus;"],o.plusMinus=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchDegreeAlter=Fs,t.buildDegreeAlter=xs;var _p=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="DegreeType",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchDegreeType=ks,t.buildDegreeType=Bs;var Op=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.frameStrings||void 0!==o.frameStrings||void 0!==a.frameStrings,"frameStrings is a required field"),console.assert(e&&!l.frameNotes||void 0!==o.frameNotes||void 0!==a.frameNotes,"frameNotes is a required field"),console.assert(e&&!l.unplayed||void 0!==o.unplayed||void 0!==a.unplayed,"unplayed is a required field"),console.assert(e&&!l.frameFrets||void 0!==o.frameFrets||void 0!==a.frameFrets,"frameFrets is a required field"),console.assert(e&&!l.firstFret||void 0!==o.firstFret||void 0!==a.firstFret,"firstFret is a required field"),console.assert(e&&!l.width||void 0!==o.width||void 0!==a.width,"width is a required field"),console.assert(e&&!l.height||void 0!==o.height||void 0!==a.height,"height is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Frame",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.frameStrings=function(e){return a.frameStrings=e,delete o["frameStrings;"],l.frameStrings=!0,r},this.frameNotes=function(e){return a.frameNotes=e,delete o["frameNotes;"],l.frameNotes=!0,r},this.frameNotesAt=function(n,i){if(t("frameNotes"),u.frameNotes[n])throw new Error("Patching frameNotes."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.frameNotes&&e._snapshot.frameNotes[n]&&!e.frameNotes[n]&&c.push({p:["frameNotes",n],li:e._snapshot.frameNotes}),"function"==typeof i&&s.frameNotes[n]){var o=i(new Ap(s.frameNotes[n])).patch();return c=c.concat(o.map(function(e){return e.p=["frameNotes",n].concat(e.p),e})),u.frameNotes[n]=!0,r}var l="function"==typeof i?i(new Ap(s.frameNotes[n])).build():i;return e?c.push({p:["frameNotes",n],li:l}):a.frameNotes=s.frameNotes,s.frameNotes[n]=l,u.frameNotes[n]=!0,r},this.frameNotesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("frameNotes");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.frameNotes[f])throw new Error("Replacing frameNotes."+f+" after patching in a builder is unsupported.");var d=s.frameNotes[f];c.push({p:["frameNotes",f],ld:d,li:o[f-n]}),u.frameNotes[f]=!0}for(;f<n+i;++f){if(u.frameNotes[f])throw new Error("Removing frameNotes."+f+" after patching in a builder is unsupported.");var d=s.frameNotes[f];c.push({p:["frameNotes",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["frameNotes",f],li:o[f-n]}),u.frameNotes[f]=!0}return(h=s.frameNotes).splice.apply(h,[n,i].concat(o)),a.frameNotes=s.frameNotes,(p=u.frameNotes).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.unplayed=function(e){return a.unplayed=e,delete o["unplayed;"],l.unplayed=!0,r},this.frameFrets=function(e){return a.frameFrets=e,delete o["frameFrets;"],l.frameFrets=!0,r},this.firstFret=function(t){if("function"==typeof t){delete a.firstFret;var n=t(new Up(e&&e.firstFret));e?o.firstFret=n:a.firstFret=n.build()}else a.firstFret=t,delete o["firstFret;"];return l.firstFret=!0,r},this.width=function(e){return a.width=e,delete o["width;"],l.width=!0,r},this.height=function(e){return a.height=e,delete o["height;"],l.height=!0,r},this.defaultX=function(e){return a.defaultX=e,delete o["defaultX;"],l.defaultX=!0,r},this.relativeY=function(e){return a.relativeY=e,delete o["relativeY;"],l.relativeY=!0,r},this.defaultY=function(e){return a.defaultY=e,delete o["defaultY;"],l.defaultY=!0,r},this.relativeX=function(e){return a.relativeX=e,delete o["relativeX;"],l.relativeX=!0,r},this.color=function(e){return a.color=e,delete o["color;"],l.color=!0,r},this.halign=function(e){return a.halign=e,delete o["halign;"],l.halign=!0,r},this.valignImage=function(e){return a.valignImage=e,delete o["valignImage;"],l.valignImage=!0,r}}return e}();t.patchFrame=Cs,t.buildFrame=Ls;var Up=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field"),console.assert(e&&!o.location||void 0!==a.location||void 0!==r.location,"location is a required field"),console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="FirstFret",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.location=function(e){return r.location=e,delete a["location;"],o.location=!0,i},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i}}return e}();t.patchFirstFret=Ws,t.buildFirstFret=_s;var Ap=function(){function e(e){function t(){console.assert(e&&!o.barre||void 0!==a.barre||void 0!==r.barre,"barre is a required field"),console.assert(e&&!o.string||void 0!==a.string||void 0!==r.string,"string is a required field"),console.assert(e&&!o.fingering||void 0!==a.fingering||void 0!==r.fingering,"fingering is a required field"),console.assert(e&&!o.fret||void 0!==a.fret||void 0!==r.fret,"fret is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="FrameNote",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.barre=function(t){if("function"==typeof t){delete r.barre;var n=t(new Ep(e&&e.barre));e?a.barre=n:r.barre=n.build()}else r.barre=t,delete a["barre;"];return o.barre=!0,i},this.string=function(t){if("function"==typeof t){delete r.string;var n=t(new Pc(e&&e.string));e?a.string=n:r.string=n.build()}else r.string=t,delete a["string;"];return o.string=!0,i},this.fingering=function(t){if("function"==typeof t){delete r.fingering;var n=t(new Mc(e&&e.fingering));e?a.fingering=n:r.fingering=n.build()}else r.fingering=t,delete a["fingering;"];return o.fingering=!0,i},this.fret=function(t){if("function"==typeof t){delete r.fret;var n=t(new Xc(e&&e.fret));e?a.fret=n:r.fret=n.build()}else r.fret=t,delete a["fret;"];return o.fret=!0,i}}return e}();t.patchFrameNote=Os,t.buildFrameNote=Us;var Ep=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Barre",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchBarre=As,t.buildBarre=Es;var Mp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.features||void 0!==o.features||void 0!==a.features,"features is a required field"),console.assert(e&&!l.number||void 0!==o.number||void 0!==a.number,"number is a required field"),console.assert(e&&!l.type||void 0!==o.type||void 0!==a.type,"type is a required field"),console.assert(e&&!l.memberOf||void 0!==o.memberOf||void 0!==a.memberOf,"memberOf is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Grouping",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.features=function(e){return a.features=e,delete o["features;"],l.features=!0,r},this.featuresAt=function(n,i){if(t("features"),u.features[n])throw new Error("Patching features."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.features&&e._snapshot.features[n]&&!e.features[n]&&c.push({p:["features",n],li:e._snapshot.features}),"function"==typeof i&&s.features[n]){var o=i(new Xp(s.features[n])).patch();return c=c.concat(o.map(function(e){return e.p=["features",n].concat(e.p),e})),u.features[n]=!0,r}var l="function"==typeof i?i(new Xp(s.features[n])).build():i;return e?c.push({p:["features",n],li:l}):a.features=s.features,s.features[n]=l,u.features[n]=!0,r},this.featuresSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("features");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.features[f])throw new Error("Replacing features."+f+" after patching in a builder is unsupported.");var d=s.features[f];c.push({p:["features",f],ld:d,li:o[f-n]}),u.features[f]=!0}for(;f<n+i;++f){if(u.features[f])throw new Error("Removing features."+f+" after patching in a builder is unsupported.");var d=s.features[f];c.push({p:["features",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["features",f],li:o[f-n]}),u.features[f]=!0}return(h=s.features).splice.apply(h,[n,i].concat(o)),a.features=s.features,(p=u.features).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.number=function(e){return a.number=e,delete o["number;"],l.number=!0,r},this.type=function(e){return a.type=e,delete o["type;"],l.type=!0,r},this.memberOf=function(e){return a.memberOf=e,delete o["memberOf;"],l.memberOf=!0,r}}return e}();t.patchGrouping=Ms,t.buildGrouping=Xs;var Xp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Feature",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i}}return e}();t.patchFeature=Ps,t.buildFeature=Ys;var Pp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.measureNumbering||void 0!==o.measureNumbering||void 0!==a.measureNumbering,"measureNumbering is a required field"),console.assert(e&&!l.partNameDisplay||void 0!==o.partNameDisplay||void 0!==a.partNameDisplay,"partNameDisplay is a required field"),console.assert(e&&!l.newSystem||void 0!==o.newSystem||void 0!==a.newSystem,"newSystem is a required field"),console.assert(e&&!l.newPage||void 0!==o.newPage||void 0!==a.newPage,"newPage is a required field"),console.assert(e&&!l.blankPage||void 0!==o.blankPage||void 0!==a.blankPage,"blankPage is a required field"),console.assert(e&&!l.measureLayout||void 0!==o.measureLayout||void 0!==a.measureLayout,"measureLayout is a required field"),console.assert(e&&!l.partAbbreviationDisplay||void 0!==o.partAbbreviationDisplay||void 0!==a.partAbbreviationDisplay,"partAbbreviationDisplay is a required field"),console.assert(e&&!l.pageLayout||void 0!==o.pageLayout||void 0!==a.pageLayout,"pageLayout is a required field"),console.assert(e&&!l.systemLayout||void 0!==o.systemLayout||void 0!==a.systemLayout,"systemLayout is a required field"),console.assert(e&&!l.staffSpacing||void 0!==o.staffSpacing||void 0!==a.staffSpacing,"staffSpacing is a required field"),console.assert(e&&!l.staffLayouts||void 0!==o.staffLayouts||void 0!==a.staffLayouts,"staffLayouts is a required field"),console.assert(e&&!l.pageNumber||void 0!==o.pageNumber||void 0!==a.pageNumber,"pageNumber is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Print",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.measureNumbering=function(t){if("function"==typeof t){delete a.measureNumbering;var n=t(new Yp(e&&e.measureNumbering));e?o.measureNumbering=n:a.measureNumbering=n.build()}else a.measureNumbering=t,delete o["measureNumbering;"];return l.measureNumbering=!0,r},this.partNameDisplay=function(t){if("function"==typeof t){delete a.partNameDisplay;var n=t(new zc(e&&e.partNameDisplay));e?o.partNameDisplay=n:a.partNameDisplay=n.build()}else a.partNameDisplay=t,delete o["partNameDisplay;"];return l.partNameDisplay=!0,r},this.newSystem=function(e){return a.newSystem=e,delete o["newSystem;"],l.newSystem=!0,r},this.newPage=function(e){return a.newPage=e,delete o["newPage;"],l.newPage=!0,r},this.blankPage=function(e){return a.blankPage=e,delete o["blankPage;"],l.blankPage=!0,r},this.measureLayout=function(t){if("function"==typeof t){delete a.measureLayout;var n=t(new rf(e&&e.measureLayout));e?o.measureLayout=n:a.measureLayout=n.build()}else a.measureLayout=t,delete o["measureLayout;"];return l.measureLayout=!0,r},this.partAbbreviationDisplay=function(t){if("function"==typeof t){delete a.partAbbreviationDisplay;var n=t(new Ic(e&&e.partAbbreviationDisplay));e?o.partAbbreviationDisplay=n:a.partAbbreviationDisplay=n.build()}else a.partAbbreviationDisplay=t,delete o["partAbbreviationDisplay;"];return l.partAbbreviationDisplay=!0,r},this.pageLayout=function(t){if("function"==typeof t){delete a.pageLayout;var n=t(new Jc(e&&e.pageLayout));e?o.pageLayout=n:a.pageLayout=n.build()}else a.pageLayout=t,delete o["pageLayout;"];return l.pageLayout=!0,r},this.systemLayout=function(t){if("function"==typeof t){delete a.systemLayout;var n=t(new Kc(e&&e.systemLayout));e?o.systemLayout=n:a.systemLayout=n.build()}else a.systemLayout=t,delete o["systemLayout;"];return l.systemLayout=!0,r},this.staffSpacing=function(e){return a.staffSpacing=e,delete o["staffSpacing;"],l.staffSpacing=!0,r},this.staffLayouts=function(e){return a.staffLayouts=e,delete o["staffLayouts;"],l.staffLayouts=!0,r},this.staffLayoutsAt=function(n,i){if(t("staffLayouts"),u.staffLayouts[n])throw new Error("Patching staffLayouts."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.staffLayouts&&e._snapshot.staffLayouts[n]&&!e.staffLayouts[n]&&c.push({p:["staffLayouts",n],li:e._snapshot.staffLayouts}),"function"==typeof i&&s.staffLayouts[n]){var o=i(new nf(s.staffLayouts[n])).patch();return c=c.concat(o.map(function(e){return e.p=["staffLayouts",n].concat(e.p),e})),u.staffLayouts[n]=!0,r}var l="function"==typeof i?i(new nf(s.staffLayouts[n])).build():i;return e?c.push({p:["staffLayouts",n],li:l}):a.staffLayouts=s.staffLayouts,s.staffLayouts[n]=l,u.staffLayouts[n]=!0,r},this.staffLayoutsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("staffLayouts");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.staffLayouts[f])throw new Error("Replacing staffLayouts."+f+" after patching in a builder is unsupported.");var d=s.staffLayouts[f];c.push({p:["staffLayouts",f],ld:d,li:o[f-n]}),u.staffLayouts[f]=!0}for(;f<n+i;++f){if(u.staffLayouts[f])throw new Error("Removing staffLayouts."+f+" after patching in a builder is unsupported.");var d=s.staffLayouts[f];c.push({p:["staffLayouts",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["staffLayouts",f],li:o[f-n]}),u.staffLayouts[f]=!0}return(h=s.staffLayouts).splice.apply(h,[n,i].concat(o)),a.staffLayouts=s.staffLayouts,(p=u.staffLayouts).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.pageNumber=function(e){return a.pageNumber=e,delete o["pageNumber;"],l.pageNumber=!0,r}}return e}();t.patchPrint=Rs,t.buildPrint=zs;var Yp=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MeasureNumbering",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i}}return e}();t.patchMeasureNumbering=Is,t.buildMeasureNumbering=Hs;var Rp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.softPedal||void 0!==o.softPedal||void 0!==a.softPedal,"softPedal is a required field"),console.assert(e&&!l.midiInstruments||void 0!==o.midiInstruments||void 0!==a.midiInstruments,"midiInstruments is a required field"),console.assert(e&&!l.pan||void 0!==o.pan||void 0!==a.pan,"pan is a required field"),console.assert(e&&!l.tocoda||void 0!==o.tocoda||void 0!==a.tocoda,"tocoda is a required field"),console.assert(e&&!l.decapo||void 0!==o.decapo||void 0!==a.decapo,"decapo is a required field"),console.assert(e&&!l.divisions||void 0!==o.divisions||void 0!==a.divisions,"divisions is a required field"),console.assert(e&&!l.pizzicato||void 0!==o.pizzicato||void 0!==a.pizzicato,"pizzicato is a required field"),console.assert(e&&!l.coda||void 0!==o.coda||void 0!==a.coda,"coda is a required field"),console.assert(e&&!l.segno||void 0!==o.segno||void 0!==a.segno,"segno is a required field"),console.assert(e&&!l.elevation||void 0!==o.elevation||void 0!==a.elevation,"elevation is a required field"),console.assert(e&&!l.fine||void 0!==o.fine||void 0!==a.fine,"fine is a required field"),console.assert(e&&!l.damperPedal||void 0!==o.damperPedal||void 0!==a.damperPedal,"damperPedal is a required field"),console.assert(e&&!l.dynamics||void 0!==o.dynamics||void 0!==a.dynamics,"dynamics is a required field"),console.assert(e&&!l.plays||void 0!==o.plays||void 0!==a.plays,"plays is a required field"),console.assert(e&&!l.offset||void 0!==o.offset||void 0!==a.offset,"offset is a required field"),console.assert(e&&!l.sostenutoPedal||void 0!==o.sostenutoPedal||void 0!==a.sostenutoPedal,"sostenutoPedal is a required field"),console.assert(e&&!l.dalsegno||void 0!==o.dalsegno||void 0!==a.dalsegno,"dalsegno is a required field"),console.assert(e&&!l.midiDevices||void 0!==o.midiDevices||void 0!==a.midiDevices,"midiDevices is a required field"),console.assert(e&&!l.tempo||void 0!==o.tempo||void 0!==a.tempo,"tempo is a required field"),console.assert(e&&!l.forwardRepeat||void 0!==o.forwardRepeat||void 0!==a.forwardRepeat,"forwardRepeat is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Sound",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.softPedal=function(e){return a.softPedal=e,delete o["softPedal;"],l.softPedal=!0,r},this.midiInstruments=function(e){return a.midiInstruments=e,delete o["midiInstruments;"],l.midiInstruments=!0,r},this.midiInstrumentsAt=function(n,i){if(t("midiInstruments"),
u.midiInstruments[n])throw new Error("Patching midiInstruments."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.midiInstruments&&e._snapshot.midiInstruments[n]&&!e.midiInstruments[n]&&c.push({p:["midiInstruments",n],li:e._snapshot.midiInstruments}),"function"==typeof i&&s.midiInstruments[n]){var o=i(new jc(s.midiInstruments[n])).patch();return c=c.concat(o.map(function(e){return e.p=["midiInstruments",n].concat(e.p),e})),u.midiInstruments[n]=!0,r}var l="function"==typeof i?i(new jc(s.midiInstruments[n])).build():i;return e?c.push({p:["midiInstruments",n],li:l}):a.midiInstruments=s.midiInstruments,s.midiInstruments[n]=l,u.midiInstruments[n]=!0,r},this.midiInstrumentsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("midiInstruments");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.midiInstruments[f])throw new Error("Replacing midiInstruments."+f+" after patching in a builder is unsupported.");var d=s.midiInstruments[f];c.push({p:["midiInstruments",f],ld:d,li:o[f-n]}),u.midiInstruments[f]=!0}for(;f<n+i;++f){if(u.midiInstruments[f])throw new Error("Removing midiInstruments."+f+" after patching in a builder is unsupported.");var d=s.midiInstruments[f];c.push({p:["midiInstruments",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["midiInstruments",f],li:o[f-n]}),u.midiInstruments[f]=!0}return(h=s.midiInstruments).splice.apply(h,[n,i].concat(o)),a.midiInstruments=s.midiInstruments,(p=u.midiInstruments).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.pan=function(e){return a.pan=e,delete o["pan;"],l.pan=!0,r},this.tocoda=function(e){return a.tocoda=e,delete o["tocoda;"],l.tocoda=!0,r},this.decapo=function(e){return a.decapo=e,delete o["decapo;"],l.decapo=!0,r},this.divisions=function(e){return a.divisions=e,delete o["divisions;"],l.divisions=!0,r},this.pizzicato=function(e){return a.pizzicato=e,delete o["pizzicato;"],l.pizzicato=!0,r},this.coda=function(e){return a.coda=e,delete o["coda;"],l.coda=!0,r},this.segno=function(e){return a.segno=e,delete o["segno;"],l.segno=!0,r},this.elevation=function(e){return a.elevation=e,delete o["elevation;"],l.elevation=!0,r},this.fine=function(e){return a.fine=e,delete o["fine;"],l.fine=!0,r},this.damperPedal=function(e){return a.damperPedal=e,delete o["damperPedal;"],l.damperPedal=!0,r},this.dynamics=function(e){return a.dynamics=e,delete o["dynamics;"],l.dynamics=!0,r},this.plays=function(e){return a.plays=e,delete o["plays;"],l.plays=!0,r},this.playsAt=function(n,i){if(t("plays"),u.plays[n])throw new Error("Patching plays."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.plays&&e._snapshot.plays[n]&&!e.plays[n]&&c.push({p:["plays",n],li:e._snapshot.plays}),"function"==typeof i&&s.plays[n]){var o=i(new qc(s.plays[n])).patch();return c=c.concat(o.map(function(e){return e.p=["plays",n].concat(e.p),e})),u.plays[n]=!0,r}var l="function"==typeof i?i(new qc(s.plays[n])).build():i;return e?c.push({p:["plays",n],li:l}):a.plays=s.plays,s.plays[n]=l,u.plays[n]=!0,r},this.playsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("plays");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.plays[f])throw new Error("Replacing plays."+f+" after patching in a builder is unsupported.");var d=s.plays[f];c.push({p:["plays",f],ld:d,li:o[f-n]}),u.plays[f]=!0}for(;f<n+i;++f){if(u.plays[f])throw new Error("Removing plays."+f+" after patching in a builder is unsupported.");var d=s.plays[f];c.push({p:["plays",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["plays",f],li:o[f-n]}),u.plays[f]=!0}return(h=s.plays).splice.apply(h,[n,i].concat(o)),a.plays=s.plays,(p=u.plays).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.offset=function(t){if("function"==typeof t){delete a.offset;var n=t(new gp(e&&e.offset));e?o.offset=n:a.offset=n.build()}else a.offset=t,delete o["offset;"];return l.offset=!0,r},this.sostenutoPedal=function(e){return a.sostenutoPedal=e,delete o["sostenutoPedal;"],l.sostenutoPedal=!0,r},this.dalsegno=function(e){return a.dalsegno=e,delete o["dalsegno;"],l.dalsegno=!0,r},this.midiDevices=function(e){return a.midiDevices=e,delete o["midiDevices;"],l.midiDevices=!0,r},this.midiDevicesAt=function(n,i){if(t("midiDevices"),u.midiDevices[n])throw new Error("Patching midiDevices."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.midiDevices&&e._snapshot.midiDevices[n]&&!e.midiDevices[n]&&c.push({p:["midiDevices",n],li:e._snapshot.midiDevices}),"function"==typeof i&&s.midiDevices[n]){var o=i(new Hc(s.midiDevices[n])).patch();return c=c.concat(o.map(function(e){return e.p=["midiDevices",n].concat(e.p),e})),u.midiDevices[n]=!0,r}var l="function"==typeof i?i(new Hc(s.midiDevices[n])).build():i;return e?c.push({p:["midiDevices",n],li:l}):a.midiDevices=s.midiDevices,s.midiDevices[n]=l,u.midiDevices[n]=!0,r},this.midiDevicesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("midiDevices");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.midiDevices[f])throw new Error("Replacing midiDevices."+f+" after patching in a builder is unsupported.");var d=s.midiDevices[f];c.push({p:["midiDevices",f],ld:d,li:o[f-n]}),u.midiDevices[f]=!0}for(;f<n+i;++f){if(u.midiDevices[f])throw new Error("Removing midiDevices."+f+" after patching in a builder is unsupported.");var d=s.midiDevices[f];c.push({p:["midiDevices",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["midiDevices",f],li:o[f-n]}),u.midiDevices[f]=!0}return(h=s.midiDevices).splice.apply(h,[n,i].concat(o)),a.midiDevices=s.midiDevices,(p=u.midiDevices).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.tempo=function(e){return a.tempo=e,delete o["tempo;"],l.tempo=!0,r},this.forwardRepeat=function(e){return a.forwardRepeat=e,delete o["forwardRepeat;"],l.forwardRepeat=!0,r},this.timeOnly=function(e){return a.timeOnly=e,delete o["timeOnly;"],l.timeOnly=!0,r}}return e}();t.patchSound=js,t.buildSound=qs;var zp=function(){function e(e){function t(){console.assert(e&&!o.workNumber||void 0!==a.workNumber||void 0!==r.workNumber,"workNumber is a required field"),console.assert(e&&!o.workTitle||void 0!==a.workTitle||void 0!==r.workTitle,"workTitle is a required field"),console.assert(e&&!o.opus||void 0!==a.opus||void 0!==r.opus,"opus is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Work",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.workNumber=function(e){return r.workNumber=e,delete a["workNumber;"],o.workNumber=!0,i},this.workTitle=function(e){return r.workTitle=e,delete a["workTitle;"],o.workTitle=!0,i},this.opus=function(t){if("function"==typeof t){delete r.opus;var n=t(new Ip(e&&e.opus));e?a.opus=n:r.opus=n.build()}else r.opus=t,delete a["opus;"];return o.opus=!0,i}}return e}();t.patchWork=Gs,t.buildWork=Vs;var Ip=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Opus",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchOpus=Qs,t.buildOpus=Js;var Hp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.wordFont||void 0!==o.wordFont||void 0!==a.wordFont,"wordFont is a required field"),console.assert(e&&!l.lyricLanguages||void 0!==o.lyricLanguages||void 0!==a.lyricLanguages,"lyricLanguages is a required field"),console.assert(e&&!l.lyricFonts||void 0!==o.lyricFonts||void 0!==a.lyricFonts,"lyricFonts is a required field"),console.assert(e&&!l.pageLayout||void 0!==o.pageLayout||void 0!==a.pageLayout,"pageLayout is a required field"),console.assert(e&&!l.systemLayout||void 0!==o.systemLayout||void 0!==a.systemLayout,"systemLayout is a required field"),console.assert(e&&!l.appearance||void 0!==o.appearance||void 0!==a.appearance,"appearance is a required field"),console.assert(e&&!l.scaling||void 0!==o.scaling||void 0!==a.scaling,"scaling is a required field"),console.assert(e&&!l.staffLayouts||void 0!==o.staffLayouts||void 0!==a.staffLayouts,"staffLayouts is a required field"),console.assert(e&&!l.musicFont||void 0!==o.musicFont||void 0!==a.musicFont,"musicFont is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Defaults",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.wordFont=function(t){if("function"==typeof t){delete a.wordFont;var n=t(new qp(e&&e.wordFont));e?o.wordFont=n:a.wordFont=n.build()}else a.wordFont=t,delete o["wordFont;"];return l.wordFont=!0,r},this.lyricLanguages=function(e){return a.lyricLanguages=e,delete o["lyricLanguages;"],l.lyricLanguages=!0,r},this.lyricLanguagesAt=function(n,i){if(t("lyricLanguages"),u.lyricLanguages[n])throw new Error("Patching lyricLanguages."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.lyricLanguages&&e._snapshot.lyricLanguages[n]&&!e.lyricLanguages[n]&&c.push({p:["lyricLanguages",n],li:e._snapshot.lyricLanguages}),"function"==typeof i&&s.lyricLanguages[n]){var o=i(new Vp(s.lyricLanguages[n])).patch();return c=c.concat(o.map(function(e){return e.p=["lyricLanguages",n].concat(e.p),e})),u.lyricLanguages[n]=!0,r}var l="function"==typeof i?i(new Vp(s.lyricLanguages[n])).build():i;return e?c.push({p:["lyricLanguages",n],li:l}):a.lyricLanguages=s.lyricLanguages,s.lyricLanguages[n]=l,u.lyricLanguages[n]=!0,r},this.lyricLanguagesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("lyricLanguages");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.lyricLanguages[f])throw new Error("Replacing lyricLanguages."+f+" after patching in a builder is unsupported.");var d=s.lyricLanguages[f];c.push({p:["lyricLanguages",f],ld:d,li:o[f-n]}),u.lyricLanguages[f]=!0}for(;f<n+i;++f){if(u.lyricLanguages[f])throw new Error("Removing lyricLanguages."+f+" after patching in a builder is unsupported.");var d=s.lyricLanguages[f];c.push({p:["lyricLanguages",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["lyricLanguages",f],li:o[f-n]}),u.lyricLanguages[f]=!0}return(h=s.lyricLanguages).splice.apply(h,[n,i].concat(o)),a.lyricLanguages=s.lyricLanguages,(p=u.lyricLanguages).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.lyricFonts=function(e){return a.lyricFonts=e,delete o["lyricFonts;"],l.lyricFonts=!0,r},this.lyricFontsAt=function(n,i){if(t("lyricFonts"),u.lyricFonts[n])throw new Error("Patching lyricFonts."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.lyricFonts&&e._snapshot.lyricFonts[n]&&!e.lyricFonts[n]&&c.push({p:["lyricFonts",n],li:e._snapshot.lyricFonts}),"function"==typeof i&&s.lyricFonts[n]){var o=i(new Gp(s.lyricFonts[n])).patch();return c=c.concat(o.map(function(e){return e.p=["lyricFonts",n].concat(e.p),e})),u.lyricFonts[n]=!0,r}var l="function"==typeof i?i(new Gp(s.lyricFonts[n])).build():i;return e?c.push({p:["lyricFonts",n],li:l}):a.lyricFonts=s.lyricFonts,s.lyricFonts[n]=l,u.lyricFonts[n]=!0,r},this.lyricFontsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("lyricFonts");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.lyricFonts[f])throw new Error("Replacing lyricFonts."+f+" after patching in a builder is unsupported.");var d=s.lyricFonts[f];c.push({p:["lyricFonts",f],ld:d,li:o[f-n]}),u.lyricFonts[f]=!0}for(;f<n+i;++f){if(u.lyricFonts[f])throw new Error("Removing lyricFonts."+f+" after patching in a builder is unsupported.");var d=s.lyricFonts[f];c.push({p:["lyricFonts",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["lyricFonts",f],li:o[f-n]}),u.lyricFonts[f]=!0}return(h=s.lyricFonts).splice.apply(h,[n,i].concat(o)),a.lyricFonts=s.lyricFonts,(p=u.lyricFonts).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.pageLayout=function(t){if("function"==typeof t){delete a.pageLayout;var n=t(new Jc(e&&e.pageLayout));e?o.pageLayout=n:a.pageLayout=n.build()}else a.pageLayout=t,delete o["pageLayout;"];return l.pageLayout=!0,r},this.systemLayout=function(t){if("function"==typeof t){delete a.systemLayout;var n=t(new Kc(e&&e.systemLayout));e?o.systemLayout=n:a.systemLayout=n.build()}else a.systemLayout=t,delete o["systemLayout;"];return l.systemLayout=!0,r},this.appearance=function(t){if("function"==typeof t){delete a.appearance;var n=t(new sf(e&&e.appearance));e?o.appearance=n:a.appearance=n.build()}else a.appearance=t,delete o["appearance;"];return l.appearance=!0,r},this.scaling=function(t){if("function"==typeof t){delete a.scaling;var n=t(new Vc(e&&e.scaling));e?o.scaling=n:a.scaling=n.build()}else a.scaling=t,delete o["scaling;"];return l.scaling=!0,r},this.staffLayouts=function(e){return a.staffLayouts=e,delete o["staffLayouts;"],l.staffLayouts=!0,r},this.staffLayoutsAt=function(n,i){if(t("staffLayouts"),u.staffLayouts[n])throw new Error("Patching staffLayouts."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.staffLayouts&&e._snapshot.staffLayouts[n]&&!e.staffLayouts[n]&&c.push({p:["staffLayouts",n],li:e._snapshot.staffLayouts}),"function"==typeof i&&s.staffLayouts[n]){var o=i(new nf(s.staffLayouts[n])).patch();return c=c.concat(o.map(function(e){return e.p=["staffLayouts",n].concat(e.p),e})),u.staffLayouts[n]=!0,r}var l="function"==typeof i?i(new nf(s.staffLayouts[n])).build():i;return e?c.push({p:["staffLayouts",n],li:l}):a.staffLayouts=s.staffLayouts,s.staffLayouts[n]=l,u.staffLayouts[n]=!0,r},this.staffLayoutsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("staffLayouts");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.staffLayouts[f])throw new Error("Replacing staffLayouts."+f+" after patching in a builder is unsupported.");var d=s.staffLayouts[f];c.push({p:["staffLayouts",f],ld:d,li:o[f-n]}),u.staffLayouts[f]=!0}for(;f<n+i;++f){if(u.staffLayouts[f])throw new Error("Removing staffLayouts."+f+" after patching in a builder is unsupported.");var d=s.staffLayouts[f];c.push({p:["staffLayouts",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["staffLayouts",f],li:o[f-n]}),u.staffLayouts[f]=!0}return(h=s.staffLayouts).splice.apply(h,[n,i].concat(o)),a.staffLayouts=s.staffLayouts,(p=u.staffLayouts).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.musicFont=function(t){if("function"==typeof t){delete a.musicFont;var n=t(new jp(e&&e.musicFont));e?o.musicFont=n:a.musicFont=n.build()}else a.musicFont=t,delete o["musicFont;"];return l.musicFont=!0,r}}return e}();t.patchDefaults=Ks,t.buildDefaults=Zs;var jp=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="MusicFont",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i}}return e}();t.patchMusicFont=$s,t.buildMusicFont=eu;var qp=function(){function e(e){function t(){}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="WordFont",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i}}return e}();t.patchWordFont=tu,t.buildWordFont=nu;var Gp=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.name||void 0!==a.name||void 0!==r.name,"name is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LyricFont",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.name=function(e){return r.name=e,delete a["name;"],o.name=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i}}return e}();t.patchLyricFont=iu,t.buildLyricFont=ru;var Vp=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.name||void 0!==a.name||void 0!==r.name,"name is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="LyricLanguage",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.name=function(e){return r.name=e,delete a["name;"],o.name=!0,i}}return e}();t.patchLyricLanguage=au,t.buildLyricLanguage=ou;var Qp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.creditTypes||void 0!==o.creditTypes||void 0!==a.creditTypes,"creditTypes is a required field"),console.assert(e&&!l.creditWords||void 0!==o.creditWords||void 0!==a.creditWords,"creditWords is a required field"),console.assert(e&&!l.creditImage||void 0!==o.creditImage||void 0!==a.creditImage,"creditImage is a required field"),console.assert(e&&!l.page||void 0!==o.page||void 0!==a.page,"page is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="Credit",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.creditTypes=function(e){return a.creditTypes=e,delete o["creditTypes;"],l.creditTypes=!0,r},this.creditWords=function(e){return a.creditWords=e,delete o["creditWords;"],l.creditWords=!0,r},this.creditWordsAt=function(n,i){if(t("creditWords"),u.creditWords[n])throw new Error("Patching creditWords."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.creditWords&&e._snapshot.creditWords[n]&&!e.creditWords[n]&&c.push({p:["creditWords",n],li:e._snapshot.creditWords}),"function"==typeof i&&s.creditWords[n]){var o=i(new Jp(s.creditWords[n])).patch();return c=c.concat(o.map(function(e){return e.p=["creditWords",n].concat(e.p),e})),u.creditWords[n]=!0,r}var l="function"==typeof i?i(new Jp(s.creditWords[n])).build():i;return e?c.push({p:["creditWords",n],li:l}):a.creditWords=s.creditWords,s.creditWords[n]=l,u.creditWords[n]=!0,r},this.creditWordsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("creditWords");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.creditWords[f])throw new Error("Replacing creditWords."+f+" after patching in a builder is unsupported.");var d=s.creditWords[f];c.push({p:["creditWords",f],ld:d,li:o[f-n]}),u.creditWords[f]=!0}for(;f<n+i;++f){if(u.creditWords[f])throw new Error("Removing creditWords."+f+" after patching in a builder is unsupported.");var d=s.creditWords[f];c.push({p:["creditWords",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["creditWords",f],li:o[f-n]}),u.creditWords[f]=!0}return(h=s.creditWords).splice.apply(h,[n,i].concat(o)),a.creditWords=s.creditWords,(p=u.creditWords).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.creditImage=function(t){if("function"==typeof t){delete a.creditImage;var n=t(new Kp(e&&e.creditImage));e?o.creditImage=n:a.creditImage=n.build()}else a.creditImage=t,delete o["creditImage;"];return l.creditImage=!0,r},this.page=function(e){return a.page=e,delete o["page;"],l.page=!0,r}}return e}();t.patchCredit=lu,t.buildCredit=su;var Jp=function(){function e(e){function t(){console.assert(e&&!o.words||void 0!==a.words||void 0!==r.words,"words is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="CreditWords",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.words=function(e){return r.words=e,delete a["words;"],o.words=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valign=function(e){return r.valign=e,delete a["valign;"],o.valign=!0,i},this.underline=function(e){return r.underline=e,delete a["underline;"],o.underline=!0,i},this.overline=function(e){return r.overline=e,delete a["overline;"],o.overline=!0,i},this.lineThrough=function(e){return r.lineThrough=e,delete a["lineThrough;"],o.lineThrough=!0,i},this.rotation=function(e){return r.rotation=e,delete a["rotation;"],o.rotation=!0,i},this.letterSpacing=function(e){return r.letterSpacing=e,delete a["letterSpacing;"],o.letterSpacing=!0,i},this.lineHeight=function(e){return r.lineHeight=e,delete a["lineHeight;"],o.lineHeight=!0,i},this.dir=function(e){return r.dir=e,delete a["dir;"],o.dir=!0,i},this.enclosure=function(e){return r.enclosure=e,delete a["enclosure;"],o.enclosure=!0,i}}return e}();t.patchCreditWords=uu,t.buildCreditWords=cu;var Kp=function(){function e(e){function t(){console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.source||void 0!==a.source||void 0!==r.source,"source is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="CreditImage",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.source=function(e){return r.source=e,delete a["source;"],o.source=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.halign=function(e){return r.halign=e,delete a["halign;"],o.halign=!0,i},this.valignImage=function(e){return r.valignImage=e,delete a["valignImage;"],o.valignImage=!0,i}}return e}();t.patchCreditImage=fu,t.buildCreditImage=du;var Zp=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.partName||void 0!==o.partName||void 0!==a.partName,"partName is a required field"),console.assert(e&&!l.id||void 0!==o.id||void 0!==a.id,"id is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="ScorePart",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.identification=function(t){if("function"==typeof t){delete a.identification;var n=t(new mf(e&&e.identification));e?o.identification=n:a.identification=n.build()}else a.identification=t,delete o["identification;"];return l.identification=!0,r},this.partNameDisplay=function(t){if("function"==typeof t){delete a.partNameDisplay;var n=t(new zc(e&&e.partNameDisplay));e?o.partNameDisplay=n:a.partNameDisplay=n.build()}else a.partNameDisplay=t,delete o["partNameDisplay;"];return l.partNameDisplay=!0,r},this.scoreInstruments=function(e){return a.scoreInstruments=e,delete o["scoreInstruments;"],l.scoreInstruments=!0,r},this.scoreInstrumentsAt=function(n,i){if(t("scoreInstruments"),u.scoreInstruments[n])throw new Error("Patching scoreInstruments."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.scoreInstruments&&e._snapshot.scoreInstruments[n]&&!e.scoreInstruments[n]&&c.push({p:["scoreInstruments",n],li:e._snapshot.scoreInstruments}),"function"==typeof i&&s.scoreInstruments[n]){var o=i(new um(s.scoreInstruments[n])).patch();return c=c.concat(o.map(function(e){return e.p=["scoreInstruments",n].concat(e.p),e})),u.scoreInstruments[n]=!0,r}var l="function"==typeof i?i(new um(s.scoreInstruments[n])).build():i;return e?c.push({p:["scoreInstruments",n],li:l}):a.scoreInstruments=s.scoreInstruments,s.scoreInstruments[n]=l,u.scoreInstruments[n]=!0,r},this.scoreInstrumentsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("scoreInstruments");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.scoreInstruments[f])throw new Error("Replacing scoreInstruments."+f+" after patching in a builder is unsupported.");var d=s.scoreInstruments[f];c.push({p:["scoreInstruments",f],ld:d,li:o[f-n]}),u.scoreInstruments[f]=!0}for(;f<n+i;++f){if(u.scoreInstruments[f])throw new Error("Removing scoreInstruments."+f+" after patching in a builder is unsupported.");var d=s.scoreInstruments[f];c.push({p:["scoreInstruments",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["scoreInstruments",f],li:o[f-n]}),u.scoreInstruments[f]=!0}return(h=s.scoreInstruments).splice.apply(h,[n,i].concat(o)),a.scoreInstruments=s.scoreInstruments,(p=u.scoreInstruments).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.midiDevices=function(e){return a.midiDevices=e,delete o["midiDevices;"],l.midiDevices=!0,r},this.midiDevicesAt=function(n,i){if(t("midiDevices"),u.midiDevices[n])throw new Error("Patching midiDevices."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.midiDevices&&e._snapshot.midiDevices[n]&&!e.midiDevices[n]&&c.push({p:["midiDevices",n],li:e._snapshot.midiDevices}),"function"==typeof i&&s.midiDevices[n]){var o=i(new Hc(s.midiDevices[n])).patch();return c=c.concat(o.map(function(e){return e.p=["midiDevices",n].concat(e.p),e})),u.midiDevices[n]=!0,r}var l="function"==typeof i?i(new Hc(s.midiDevices[n])).build():i;return e?c.push({p:["midiDevices",n],li:l}):a.midiDevices=s.midiDevices,s.midiDevices[n]=l,u.midiDevices[n]=!0,r},this.midiDevicesSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("midiDevices");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.midiDevices[f])throw new Error("Replacing midiDevices."+f+" after patching in a builder is unsupported.");var d=s.midiDevices[f];c.push({p:["midiDevices",f],ld:d,li:o[f-n]}),u.midiDevices[f]=!0}for(;f<n+i;++f){if(u.midiDevices[f])throw new Error("Removing midiDevices."+f+" after patching in a builder is unsupported.");var d=s.midiDevices[f];c.push({p:["midiDevices",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["midiDevices",f],li:o[f-n]}),u.midiDevices[f]=!0}return(h=s.midiDevices).splice.apply(h,[n,i].concat(o)),a.midiDevices=s.midiDevices,(p=u.midiDevices).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.partName=function(t){if("function"==typeof t){delete a.partName;var n=t(new $p(e&&e.partName));e?o.partName=n:a.partName=n.build()}else a.partName=t,delete o["partName;"];return l.partName=!0,r},this.partAbbreviationDisplay=function(t){if("function"==typeof t){delete a.partAbbreviationDisplay;var n=t(new Ic(e&&e.partAbbreviationDisplay));e?o.partAbbreviationDisplay=n:a.partAbbreviationDisplay=n.build()}else a.partAbbreviationDisplay=t,delete o["partAbbreviationDisplay;"];return l.partAbbreviationDisplay=!0,r},this.partAbbreviation=function(t){if("function"==typeof t){delete a.partAbbreviation;var n=t(new em(e&&e.partAbbreviation));e?o.partAbbreviation=n:a.partAbbreviation=n.build()}else a.partAbbreviation=t,delete o["partAbbreviation;"];return l.partAbbreviation=!0,r},this.groups=function(e){return a.groups=e,delete o["groups;"],l.groups=!0,r},this.midiInstruments=function(e){return a.midiInstruments=e,delete o["midiInstruments;"],l.midiInstruments=!0,r},this.midiInstrumentsAt=function(n,i){if(t("midiInstruments"),u.midiInstruments[n])throw new Error("Patching midiInstruments."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.midiInstruments&&e._snapshot.midiInstruments[n]&&!e.midiInstruments[n]&&c.push({p:["midiInstruments",n],li:e._snapshot.midiInstruments}),"function"==typeof i&&s.midiInstruments[n]){var o=i(new jc(s.midiInstruments[n])).patch();return c=c.concat(o.map(function(e){return e.p=["midiInstruments",n].concat(e.p),e})),u.midiInstruments[n]=!0,r}var l="function"==typeof i?i(new jc(s.midiInstruments[n])).build():i;return e?c.push({p:["midiInstruments",n],li:l}):a.midiInstruments=s.midiInstruments,s.midiInstruments[n]=l,u.midiInstruments[n]=!0,r},this.midiInstrumentsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("midiInstruments");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.midiInstruments[f])throw new Error("Replacing midiInstruments."+f+" after patching in a builder is unsupported.");var d=s.midiInstruments[f];c.push({p:["midiInstruments",f],ld:d,li:o[f-n]}),u.midiInstruments[f]=!0}for(;f<n+i;++f){if(u.midiInstruments[f])throw new Error("Removing midiInstruments."+f+" after patching in a builder is unsupported.");var d=s.midiInstruments[f];c.push({p:["midiInstruments",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["midiInstruments",f],li:o[f-n]}),u.midiInstruments[f]=!0}return(h=s.midiInstruments).splice.apply(h,[n,i].concat(o)),a.midiInstruments=s.midiInstruments,(p=u.midiInstruments).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.id=function(e){return a.id=e,delete o["id;"],l.id=!0,r}}return e}();t.patchScorePart=hu,t.buildScorePart=pu;var $p=function(){function e(e){function t(){console.assert(e&&!o.partName||void 0!==a.partName||void 0!==r.partName,"partName is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PartName",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.partName=function(e){return r.partName=e,delete a["partName;"],o.partName=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i}}return e}();t.patchPartName=mu,t.buildPartName=vu;var em=function(){function e(e){function t(){console.assert(e&&!o.abbreviation||void 0!==a.abbreviation||void 0!==r.abbreviation,"abbreviation is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PartAbbreviation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.abbreviation=function(e){return r.abbreviation=e,delete a["abbreviation;"],o.abbreviation=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],
o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.printObject=function(e){return r.printObject=e,delete a["printObject;"],o.printObject=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i}}return e}();t.patchPartAbbreviation=gu,t.buildPartAbbreviation=yu;var tm=function(){function e(e){function t(){console.assert(e&&!o.groupNameDisplay||void 0!==a.groupNameDisplay||void 0!==r.groupNameDisplay,"groupNameDisplay is a required field"),console.assert(e&&!o.groupSymbol||void 0!==a.groupSymbol||void 0!==r.groupSymbol,"groupSymbol is a required field"),console.assert(e&&!o.groupName||void 0!==a.groupName||void 0!==r.groupName,"groupName is a required field"),console.assert(e&&!o.groupAbbreviationDisplay||void 0!==a.groupAbbreviationDisplay||void 0!==r.groupAbbreviationDisplay,"groupAbbreviationDisplay is a required field"),console.assert(e&&!o.groupBarline||void 0!==a.groupBarline||void 0!==r.groupBarline,"groupBarline is a required field"),console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field"),console.assert(e&&!o.groupAbbreviation||void 0!==a.groupAbbreviation||void 0!==r.groupAbbreviation,"groupAbbreviation is a required field"),console.assert(e&&!o.type||void 0!==a.type||void 0!==r.type,"type is a required field"),console.assert(e&&!o.groupTime||void 0!==a.groupTime||void 0!==r.groupTime,"groupTime is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="PartGroup",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.groupNameDisplay=function(t){if("function"==typeof t){delete r.groupNameDisplay;var n=t(new im(e&&e.groupNameDisplay));e?a.groupNameDisplay=n:r.groupNameDisplay=n.build()}else r.groupNameDisplay=t,delete a["groupNameDisplay;"];return o.groupNameDisplay=!0,i},this.groupSymbol=function(t){if("function"==typeof t){delete r.groupSymbol;var n=t(new om(e&&e.groupSymbol));e?a.groupSymbol=n:r.groupSymbol=n.build()}else r.groupSymbol=t,delete a["groupSymbol;"];return o.groupSymbol=!0,i},this.groupName=function(t){if("function"==typeof t){delete r.groupName;var n=t(new nm(e&&e.groupName));e?a.groupName=n:r.groupName=n.build()}else r.groupName=t,delete a["groupName;"];return o.groupName=!0,i},this.groupAbbreviationDisplay=function(t){if("function"==typeof t){delete r.groupAbbreviationDisplay;var n=t(new am(e&&e.groupAbbreviationDisplay));e?a.groupAbbreviationDisplay=n:r.groupAbbreviationDisplay=n.build()}else r.groupAbbreviationDisplay=t,delete a["groupAbbreviationDisplay;"];return o.groupAbbreviationDisplay=!0,i},this.groupBarline=function(t){if("function"==typeof t){delete r.groupBarline;var n=t(new lm(e&&e.groupBarline));e?a.groupBarline=n:r.groupBarline=n.build()}else r.groupBarline=t,delete a["groupBarline;"];return o.groupBarline=!0,i},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.groupAbbreviation=function(t){if("function"==typeof t){delete r.groupAbbreviation;var n=t(new rm(e&&e.groupAbbreviation));e?a.groupAbbreviation=n:r.groupAbbreviation=n.build()}else r.groupAbbreviation=t,delete a["groupAbbreviation;"];return o.groupAbbreviation=!0,i},this.type=function(e){return r.type=e,delete a["type;"],o.type=!0,i},this.groupTime=function(t){if("function"==typeof t){delete r.groupTime;var n=t(new sm(e&&e.groupTime));e?a.groupTime=n:r.groupTime=n.build()}else r.groupTime=t,delete a["groupTime;"];return o.groupTime=!0,i},this.footnote=function(t){if("function"==typeof t){delete r.footnote;var n=t(new Cc(e&&e.footnote));e?a.footnote=n:r.footnote=n.build()}else r.footnote=t,delete a["footnote;"];return o.footnote=!0,i},this.level=function(t){if("function"==typeof t){delete r.level;var n=t(new Lc(e&&e.level));e?a.level=n:r.level=n.build()}else r.level=t,delete a["level;"];return o.level=!0,i}}return e}();t.patchPartGroup=bu,t.buildPartGroup=Su;var nm=function(){function e(e){function t(){console.assert(e&&!o.name||void 0!==a.name||void 0!==r.name,"name is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="GroupName",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.name=function(e){return r.name=e,delete a["name;"],o.name=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i}}return e}();t.patchGroupName=wu,t.buildGroupName=Nu;var im=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.name||void 0!==o.name||void 0!==a.name,"name is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="GroupNameDisplay",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.name=function(e){return a.name=e,delete o["name;"],l.name=!0,r},this.nameAt=function(n,i){if(t("name"),u.name[n])throw new Error("Patching name."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.name&&e._snapshot.name[n]&&!e.name[n]&&c.push({p:["name",n],li:e._snapshot.name}),"function"==typeof i&&s.name[n]){var o=i(new Gu(s.name[n])).patch();return c=c.concat(o.map(function(e){return e.p=["name",n].concat(e.p),e})),u.name[n]=!0,r}var l="function"==typeof i?i(new Gu(s.name[n])).build():i;return e?c.push({p:["name",n],li:l}):a.name=s.name,s.name[n]=l,u.name[n]=!0,r},this.nameSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("name");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.name[f])throw new Error("Replacing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d,li:o[f-n]}),u.name[f]=!0}for(;f<n+i;++f){if(u.name[f])throw new Error("Removing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["name",f],li:o[f-n]}),u.name[f]=!0}return(h=s.name).splice.apply(h,[n,i].concat(o)),a.name=s.name,(p=u.name).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r}}return e}();t.patchGroupNameDisplay=Du,t.buildGroupNameDisplay=Tu;var rm=function(){function e(e){function t(){console.assert(e&&!o.text||void 0!==a.text||void 0!==r.text,"text is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="GroupAbbreviation",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.text=function(e){return r.text=e,delete a["text;"],o.text=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.fontFamily=function(e){return r.fontFamily=e,delete a["fontFamily;"],o.fontFamily=!0,i},this.fontWeight=function(e){return r.fontWeight=e,delete a["fontWeight;"],o.fontWeight=!0,i},this.fontStyle=function(e){return r.fontStyle=e,delete a["fontStyle;"],o.fontStyle=!0,i},this.fontSize=function(e){return r.fontSize=e,delete a["fontSize;"],o.fontSize=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i},this.justify=function(e){return r.justify=e,delete a["justify;"],o.justify=!0,i}}return e}();t.patchGroupAbbreviation=Fu,t.buildGroupAbbreviation=xu;var am=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.name||void 0!==o.name||void 0!==a.name,"name is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="GroupAbbreviationDisplay",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.name=function(e){return a.name=e,delete o["name;"],l.name=!0,r},this.nameAt=function(n,i){if(t("name"),u.name[n])throw new Error("Patching name."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.name&&e._snapshot.name[n]&&!e.name[n]&&c.push({p:["name",n],li:e._snapshot.name}),"function"==typeof i&&s.name[n]){var o=i(new Gu(s.name[n])).patch();return c=c.concat(o.map(function(e){return e.p=["name",n].concat(e.p),e})),u.name[n]=!0,r}var l="function"==typeof i?i(new Gu(s.name[n])).build():i;return e?c.push({p:["name",n],li:l}):a.name=s.name,s.name[n]=l,u.name[n]=!0,r},this.nameSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("name");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.name[f])throw new Error("Replacing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d,li:o[f-n]}),u.name[f]=!0}for(;f<n+i;++f){if(u.name[f])throw new Error("Removing name."+f+" after patching in a builder is unsupported.");var d=s.name[f];c.push({p:["name",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["name",f],li:o[f-n]}),u.name[f]=!0}return(h=s.name).splice.apply(h,[n,i].concat(o)),a.name=s.name,(p=u.name).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.printObject=function(e){return a.printObject=e,delete o["printObject;"],l.printObject=!0,r}}return e}();t.patchGroupAbbreviationDisplay=ku,t.buildGroupAbbreviationDisplay=Bu;var om=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="GroupSymbol",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.defaultX=function(e){return r.defaultX=e,delete a["defaultX;"],o.defaultX=!0,i},this.relativeY=function(e){return r.relativeY=e,delete a["relativeY;"],o.relativeY=!0,i},this.defaultY=function(e){return r.defaultY=e,delete a["defaultY;"],o.defaultY=!0,i},this.relativeX=function(e){return r.relativeX=e,delete a["relativeX;"],o.relativeX=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchGroupSymbol=Cu,t.buildGroupSymbol=Lu;var lm=function(){function e(e){function t(){console.assert(e&&!o.data||void 0!==a.data||void 0!==r.data,"data is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="GroupBarline",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.data=function(e){return r.data=e,delete a["data;"],o.data=!0,i},this.color=function(e){return r.color=e,delete a["color;"],o.color=!0,i}}return e}();t.patchGroupBarline=Wu,t.buildGroupBarline=_u;var sm=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="GroupTime",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchGroupTime=Ou,t.buildGroupTime=Uu;var um=function(){function e(e){function t(){console.assert(e&&!o.instrumentName||void 0!==a.instrumentName||void 0!==r.instrumentName,"instrumentName is a required field"),console.assert(e&&!o.id||void 0!==a.id||void 0!==r.id,"id is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="ScoreInstrument",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.instrumentName=function(e){return r.instrumentName=e,delete a["instrumentName;"],o.instrumentName=!0,i},this.instrumentSound=function(e){return r.instrumentSound=e,delete a["instrumentSound;"],o.instrumentSound=!0,i},this.ensemble=function(e){return r.ensemble=e,delete a["ensemble;"],o.ensemble=!0,i},this.virtualInstrument=function(t){if("function"==typeof t){delete r.virtualInstrument;var n=t(new fm(e&&e.virtualInstrument));e?a.virtualInstrument=n:r.virtualInstrument=n.build()}else r.virtualInstrument=t,delete a["virtualInstrument;"];return o.virtualInstrument=!0,i},this.instrumentAbbreviation=function(e){return r.instrumentAbbreviation=e,delete a["instrumentAbbreviation;"],o.instrumentAbbreviation=!0,i},this.solo=function(t){if("function"==typeof t){delete r.solo;var n=t(new cm(e&&e.solo));e?a.solo=n:r.solo=n.build()}else r.solo=t,delete a["solo;"];return o.solo=!0,i},this.id=function(e){return r.id=e,delete a["id;"],o.id=!0,i}}return e}();t.patchScoreInstrument=Au,t.buildScoreInstrument=Eu;var cm=function(){function e(e){function t(){}var i={},r={},a={},o=[];e||(this.build=function(){return t(),i._class="Solo",i}),this.patch=function(){return t(),n(e,i,r,o,a)}}return e}();t.patchSolo=Mu,t.buildSolo=Xu;var fm=function(){function e(e){function t(){console.assert(e&&!o.virtualLibrary||void 0!==a.virtualLibrary||void 0!==r.virtualLibrary,"virtualLibrary is a required field"),console.assert(e&&!o.virtualName||void 0!==a.virtualName||void 0!==r.virtualName,"virtualName is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="VirtualInstrument",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.virtualLibrary=function(e){return r.virtualLibrary=e,delete a["virtualLibrary;"],o.virtualLibrary=!0,i},this.virtualName=function(e){return r.virtualName=e,delete a["virtualName;"],o.virtualName=!0,i}}return e}();t.patchVirtualInstrument=Pu,t.buildVirtualInstrument=Yu;var dm=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.movementTitle||void 0!==o.movementTitle||void 0!==a.movementTitle,"movementTitle is a required field"),console.assert(e&&!l.identification||void 0!==o.identification||void 0!==a.identification,"identification is a required field"),console.assert(e&&!l.defaults||void 0!==o.defaults||void 0!==a.defaults,"defaults is a required field"),console.assert(e&&!l.work||void 0!==o.work||void 0!==a.work,"work is a required field"),console.assert(e&&!l.credits||void 0!==o.credits||void 0!==a.credits,"credits is a required field"),console.assert(e&&!l.partList||void 0!==o.partList||void 0!==a.partList,"partList is a required field"),console.assert(e&&!l.movementNumber||void 0!==o.movementNumber||void 0!==a.movementNumber,"movementNumber is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="ScoreHeader",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.movementTitle=function(e){return a.movementTitle=e,delete o["movementTitle;"],l.movementTitle=!0,r},this.identification=function(t){if("function"==typeof t){delete a.identification;var n=t(new mf(e&&e.identification));e?o.identification=n:a.identification=n.build()}else a.identification=t,delete o["identification;"];return l.identification=!0,r},this.defaults=function(t){if("function"==typeof t){delete a.defaults;var n=t(new Hp(e&&e.defaults));e?o.defaults=n:a.defaults=n.build()}else a.defaults=t,delete o["defaults;"];return l.defaults=!0,r},this.work=function(t){if("function"==typeof t){delete a.work;var n=t(new zp(e&&e.work));e?o.work=n:a.work=n.build()}else a.work=t,delete o["work;"];return l.work=!0,r},this.credits=function(e){return a.credits=e,delete o["credits;"],l.credits=!0,r},this.creditsAt=function(n,i){if(t("credits"),u.credits[n])throw new Error("Patching credits."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.credits&&e._snapshot.credits[n]&&!e.credits[n]&&c.push({p:["credits",n],li:e._snapshot.credits}),"function"==typeof i&&s.credits[n]){var o=i(new Qp(s.credits[n])).patch();return c=c.concat(o.map(function(e){return e.p=["credits",n].concat(e.p),e})),u.credits[n]=!0,r}var l="function"==typeof i?i(new Qp(s.credits[n])).build():i;return e?c.push({p:["credits",n],li:l}):a.credits=s.credits,s.credits[n]=l,u.credits[n]=!0,r},this.creditsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("credits");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.credits[f])throw new Error("Replacing credits."+f+" after patching in a builder is unsupported.");var d=s.credits[f];c.push({p:["credits",f],ld:d,li:o[f-n]}),u.credits[f]=!0}for(;f<n+i;++f){if(u.credits[f])throw new Error("Removing credits."+f+" after patching in a builder is unsupported.");var d=s.credits[f];c.push({p:["credits",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["credits",f],li:o[f-n]}),u.credits[f]=!0}return(h=s.credits).splice.apply(h,[n,i].concat(o)),a.credits=s.credits,(p=u.credits).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.partList=function(e){return a.partList=e,delete o["partList;"],l.partList=!0,r},this.movementNumber=function(e){return a.movementNumber=e,delete o["movementNumber;"],l.movementNumber=!0,r}}return e}();t.patchScoreHeader=Ru,t.buildScoreHeader=zu;var hm=function(){function e(e){function t(t){s[t]||(e?s[t]=((e._snapshot||e)[t]||[]).slice():s[t]=[],u[t]=s[t].map(function(e){return!1}))}function i(){console.assert(e&&!l.measures||void 0!==o.measures||void 0!==a.measures,"measures is a required field"),console.assert(e&&!l.version||void 0!==o.version||void 0!==a.version,"version is a required field"),console.assert(e&&!l.movementTitle||void 0!==o.movementTitle||void 0!==a.movementTitle,"movementTitle is a required field"),console.assert(e&&!l.identification||void 0!==o.identification||void 0!==a.identification,"identification is a required field"),console.assert(e&&!l.defaults||void 0!==o.defaults||void 0!==a.defaults,"defaults is a required field"),console.assert(e&&!l.work||void 0!==o.work||void 0!==a.work,"work is a required field"),console.assert(e&&!l.credits||void 0!==o.credits||void 0!==a.credits,"credits is a required field"),console.assert(e&&!l.partList||void 0!==o.partList||void 0!==a.partList,"partList is a required field"),console.assert(e&&!l.movementNumber||void 0!==o.movementNumber||void 0!==a.movementNumber,"movementNumber is a required field")}var r=this,a={},o={},l={},s={},u={},c=[];e||(this.build=function(){return i(),a._class="ScoreTimewise",a}),this.patch=function(){return i(),n(e,a,o,c,l)},this.measures=function(e){return a.measures=e,delete o["measures;"],l.measures=!0,r},this.measuresAt=function(n,i){if(t("measures"),u.measures[n])throw new Error("Patching measures."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.measures&&e._snapshot.measures[n]&&!e.measures[n]&&c.push({p:["measures",n],li:e._snapshot.measures}),"function"==typeof i&&s.measures[n]){var o=i(new pm(s.measures[n])).patch();return c=c.concat(o.map(function(e){return e.p=["measures",n].concat(e.p),e})),u.measures[n]=!0,r}var l="function"==typeof i?i(new pm(s.measures[n])).build():i;return e?c.push({p:["measures",n],li:l}):a.measures=s.measures,s.measures[n]=l,u.measures[n]=!0,r},this.measuresSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("measures");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.measures[f])throw new Error("Replacing measures."+f+" after patching in a builder is unsupported.");var d=s.measures[f];c.push({p:["measures",f],ld:d,li:o[f-n]}),u.measures[f]=!0}for(;f<n+i;++f){if(u.measures[f])throw new Error("Removing measures."+f+" after patching in a builder is unsupported.");var d=s.measures[f];c.push({p:["measures",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["measures",f],li:o[f-n]}),u.measures[f]=!0}return(h=s.measures).splice.apply(h,[n,i].concat(o)),a.measures=s.measures,(p=u.measures).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.version=function(e){return a.version=e,delete o["version;"],l.version=!0,r},this.movementTitle=function(e){return a.movementTitle=e,delete o["movementTitle;"],l.movementTitle=!0,r},this.identification=function(t){if("function"==typeof t){delete a.identification;var n=t(new mf(e&&e.identification));e?o.identification=n:a.identification=n.build()}else a.identification=t,delete o["identification;"];return l.identification=!0,r},this.defaults=function(t){if("function"==typeof t){delete a.defaults;var n=t(new Hp(e&&e.defaults));e?o.defaults=n:a.defaults=n.build()}else a.defaults=t,delete o["defaults;"];return l.defaults=!0,r},this.work=function(t){if("function"==typeof t){delete a.work;var n=t(new zp(e&&e.work));e?o.work=n:a.work=n.build()}else a.work=t,delete o["work;"];return l.work=!0,r},this.credits=function(e){return a.credits=e,delete o["credits;"],l.credits=!0,r},this.creditsAt=function(n,i){if(t("credits"),u.credits[n])throw new Error("Patching credits."+n+" twice in a builder is unsupported.");if(e&&e._snapshot&&e._snapshot.credits&&e._snapshot.credits[n]&&!e.credits[n]&&c.push({p:["credits",n],li:e._snapshot.credits}),"function"==typeof i&&s.credits[n]){var o=i(new Qp(s.credits[n])).patch();return c=c.concat(o.map(function(e){return e.p=["credits",n].concat(e.p),e})),u.credits[n]=!0,r}var l="function"==typeof i?i(new Qp(s.credits[n])).build():i;return e?c.push({p:["credits",n],li:l}):a.credits=s.credits,s.credits[n]=l,u.credits[n]=!0,r},this.creditsSplice=function(n,i){for(var o=[],l=2;l<arguments.length;l++)o[l-2]=arguments[l];t("credits");var f=n;if(e){for(;f<n+i&&f<n+o.length;++f){if(u.credits[f])throw new Error("Replacing credits."+f+" after patching in a builder is unsupported.");var d=s.credits[f];c.push({p:["credits",f],ld:d,li:o[f-n]}),u.credits[f]=!0}for(;f<n+i;++f){if(u.credits[f])throw new Error("Removing credits."+f+" after patching in a builder is unsupported.");var d=s.credits[f];c.push({p:["credits",f],ld:d})}for(;f<n+o.length;++f)c.push({p:["credits",f],li:o[f-n]}),u.credits[f]=!0}return(h=s.credits).splice.apply(h,[n,i].concat(o)),a.credits=s.credits,(p=u.credits).splice.apply(p,[n,i].concat(o.map(function(e){return!0}))),r;var h,p},this.partList=function(e){return a.partList=e,delete o["partList;"],l.partList=!0,r},this.movementNumber=function(e){return a.movementNumber=e,delete o["movementNumber;"],l.movementNumber=!0,r}}return e}();t.patchScoreTimewise=Iu,t.buildScoreTimewise=Hu;var pm=function(){function e(e){function t(){console.assert(e&&!o.number||void 0!==a.number||void 0!==r.number,"number is a required field")}var i=this,r={},a={},o={},l=[];e||(this.build=function(){return t(),r._class="Measure",r}),this.patch=function(){return t(),n(e,r,a,l,o)},this.number=function(e){return r.number=e,delete a["number;"],o.number=!0,i},this.implicit=function(e){return r.implicit=e,delete a["implicit;"],o.implicit=!0,i},this.width=function(e){return r.width=e,delete a["width;"],o.width=!0,i},this.set=function(e,t){return r[e]=t,o[e]=!0,i},this.nonControlling=function(e){return r.nonControlling=e,delete a["nonControlling;"],o.nonControlling=!0,i}}return e}();t.patchMeasure=ju,t.buildMeasure=qu},function(e,t){"use strict";function n(e){var t=e,n={p:t.p};return t.t&&r[t.t]&&(n.t=t.t,n.o=r[t.t].invert(t.o)),void 0!==t.si&&(n.sd=t.si),void 0!==t.sd&&(n.si=t.sd),void 0!==t.oi&&(n.od=t.oi),void 0!==t.od&&(n.oi=t.od),void 0!==t.li&&(n.ld=t.li),void 0!==t.ld&&(n.li=t.ld),void 0!==t.na&&(n.na=-t.na),void 0!==t.lm&&(n.lm=t.p[t.p.length-1],n.p=t.p.slice(0,t.p.length-1).concat([t.lm])),n}function i(e){return e.slice().reverse().map(function(e){return n(e)})}var r=[];t.invert=i},function(e,t,n){e.exports=n(64)},function(e,t,n){"use strict";function i(e){var t=o.flatten(o.map(o.values(e.parts),function(e){return e.voices})),n=o.flatten(o.map(o.values(e.parts),function(e){return e.staves}));return o.filter(t.concat(n),function(e){return!!e})}function r(e,t){return t.reduce(a,e)}function a(e,t){t.divCount>=0||l(t.divCount>=0,"Counts must exceed 0 in",t);var n=t&&t.divCount?t.divCount:Number.MAX_VALUE;return Math.min(e,n)}var o=n(1),l=n(2);t.getMeasureSegments=i,t.reduceToShortestInSegments=r,t.reduceToShortestInSegment=a},function(e,t,n){"use strict";function i(e){e.key||(e.key=String(Math.floor(Math.random()*a.MAX_SAFE_INTEGER)))}function r(e){return e.overrideX=NaN,Object.create(e,{x:{get:function(){return e.overrideX||e.x},set:function(t){e.overrideX=t}}})}var a=n(7);t.generateModelKey=i,t.detach=r},function(e,t){"use strict";function n(e){return e&&"raw"in e}function i(e){return e&&e.documentBuilder}function r(e){return e&&e.partBuilder}t.specIsRaw=n,t.specIsDocBuilder=i,t.specIsPartBuilder=r},function(e,t,n){"use strict";function i(e){var t="";t+=r.serializeScoreHeader(e.header)+"\n";var n=!1;return a.forEach(e.measures,function(e){t+='<measure number="'+e.number+'">\n',a.forEach(e.parts,function(i,r){t+='  <part id="'+r+'">\n',t+="    <!-- measure metadata (Satie) -->\n",n||(t+='    <direction placement="below"><direction-type><words default-y="-70" relative-x="-5000">'+("SATIE_SONG_META = "+JSON.stringify({})+";")+"</words></direction-type></direction>\n",n=!0),t+='    <direction placement="below"><direction-type><words default-y="-70" relative-x="-5000">'+("SATIE_MEASURE_META = "+JSON.stringify({uuid:e.uuid})+";")+"</words></direction-type></direction>\n",t+="    <!-- end of measure metadata (Satie) -->\n",a.forEach(i.staves,function(e,n){if(e){t+="    <!-- staff "+n+" -->\n",t+=a.map(e,function(e){return e.toXML()}).join("\n").split("\n").map(function(e){return"    "+e}).join("\n")+"\n";var i=e.reduce(function(e,t){return e+t.divCount},0);t+="    <backup><duration>"+i+"</duration></backup>\n",t+="    <!-- end of staff "+n+" -->\n"}}),a.forEach(i.voices,function(e,n){if(e){t+="    <!-- voice "+n+" -->\n",t+=a.map(e,function(e){return e.toXML()}).join("\n").split("\n").map(function(e){return"    "+e}).join("\n")+"\n";var i=e.reduce(function(e,t){return e+t.divCount},0);t+="    <backup><duration>"+i+"</duration></backup>\n",t+="    <!-- end of voice "+n+" -->\n"}}),t+="  </part>\n"}),t+="</measure>\n"}),'<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE score-timewise PUBLIC "-//Recordare//DTD MusicXML 3.0 Timewise//EN"\n                                "http://www.musicxml.org/dtds/timewise.dtd">\n<score-timewise>\n'+t.split("\n").map(function(e){return"  "+e}).join("\n")+"</score-timewise>"}var r=n(3),a=n(1);t.exportXML=i},function(e,t,n){(function(e){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";var i=n(2),r=n(1),a=n(5),o=n(7);e.browser||n(149).install();var l=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]);var i=this;this._constructors={},r.forEach(e,function(e){e(i._constructors)}),this.preprocessors=t,this.postprocessors=n}return e.prototype.create=function(e,t){return i(e in this._constructors,"The type with id=%s does not have a factory.",e),new this._constructors[e](t)},e.prototype.modelHasType=function(e){for(var t=this,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return r.some(n,function(n){return i(n in t._constructors,"The type with id=%s does not have a factory.",n),e instanceof t._constructors[n]||t._constructors[a.Type.Proxy]&&e instanceof t._constructors[a.Type.Proxy]&&e._target instanceof t._constructors[n]})},e.prototype.search=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];for(var r=[];t>0&&!e[t-1].divCount;)--t;for(var a=t;a<e.length;++a)if(this.modelHasType.apply(this,[e[a]].concat(n)))r.push(e[a]);else if(e[a].divCount)break;return r},e.prototype.fromSpec=function(e){e="string"==typeof e||e instanceof String?JSON.parse(e):o.cloneObject(e),"_class"in e||(i(e[0]&&"Note"===e[0]._class,"Specs must have the _class property set"),e._class="Chord");var t=a.Type[e._class];return i(t in this._constructors,'"%s" must be a known type',e._class),this.create(t,e)},e.prototype.inspect=function(){return"[Factory]"},e.prototype.identity=function(e){return e._omTarget?e._omTarget:e},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=l}).call(t,n(26))},function(e,t,n){"use strict";function i(e,t){var n=c.parseScore(e);if(n.error)throw n.error;var i=r(n,t);if(i.error)throw i.error;var a={attributes:null,document:i,fixup:null,header:i.header,lineCount:NaN,lineIndex:NaN,measures:i.measures,modelFactory:t,postprocessors:[],preprocessors:t.preprocessors,preview:!1,print:null,singleLineMode:!1};return w["default"](a),N["default"].prototype.overwriteEncoding.call(i.header),i}function r(e,t){try{var n=a(e),i=o(e,t);return i.error?new p.Document(null,null,null,null,new Error(i.error)):new p.Document(n,i.measures,i.parts,t)}catch(r){return new p.Document(null,null,null,null,r)}}function a(e){var t=new N["default"]({credits:e.credits,defaults:e.defaults,identification:e.identification,movementNumber:e.movementNumber,movementTitle:e.movementTitle,partList:e.partList,work:e.work});return t.credits&&t.credits.length||!t.movementTitle||(t.title=t.movementTitle),t}function o(e,t){var n=d.map(y.scoreParts(e.partList),function(e){return e.id}),i=t.create.bind(t),r=768,a=0,o=null,u=null,c=0,p=d.map(e.measures,function(e,p){function y(e,t,n){var a=n/r||1,o=a*(T.division-(T.divisionPerStaff[e]||0)),l=T.output.staves[e];if(h(!!t&&!!l||!t,"Unknown staff %s"),o>0){if(l)if(l.length){var s=l[l.length-1];s.divCount=s.divCount||0,s.divCount+=o}else{var u=i(m.Type.Spacer,{divCount:o,staff:e});l.push(u)}T.divisionPerStaff[e]=T.division}if(t)if(o>=0||!o)l.push(t);else{for(var c=o,f=!1,d=l.length-1;d>=0;--d)if(c+=l[d].divCount,c>=0){t.divCount=l[d].divCount-c,h(isFinite(t.divCount),"Invalid loaded divCount"),l[d].divCount=c,l.splice(d+1,0,t),f=!0;break}h(f,"Could not insert %s",t)}}function S(){return d.every(N,function(e){return e.idx===e.input.length})}var w={idx:p,implicit:e.implicit,nonControlling:e.nonControlling,number:e.number,parts:{},uuid:Math.floor(Math.random()*v.MAX_SAFE_INTEGER),width:e.width,version:0};1===Object.keys(e.parts).length&&""in e.parts&&(e.parts[n[0]]=e.parts[""],delete e.parts[""]);var N=d.map(e.parts,function(e,t){if(!d.some(n,function(e){return e===t}))return null;var i={staves:[],voices:[]};return h(!(t in w.parts),"Duplicate part ID %s",t),w.parts[t]=i,h(!!t,"Part ID must be defined"),{division:0,divisionPerStaff:[],divisionPerVoice:[],id:t,idx:0,input:e,lastNote:null,output:i,times:[{beatTypes:[4],beats:["4"]}]}});N=d.filter(N,function(e){return!!e});var D=d.reduce(N,function(e,t){return d.reduce(t.input,function(e,t){return"Attributes"===t._class&&t.divisions?b.lcm(e,t.divisions):e},e)},r);d.forEach(N,function(e){var t=r;d.forEach(e.input,function(e){e.divisions&&(t=e.divisions,e.divisions=D),e.count&&(e.count*=D/t),e.duration&&(e.duration*=D/t)})});for(var T=N[0],F=(function(){T=d.minBy(N,function(e){return e.idx===e.input.length?v.MAX_SAFE_INTEGER:e.division}),h(!!T,"Target not specified");var e=T.input[T.idx],n=1;switch(e._class){case"Note":var i=e;if(i.chord)h(!!o,"Cannot add chord to a previous note without a chord"),o.push(i);else{var p=i.voice||1,m=i.staff||1;if(n=m,p in T.output.voices||(l(p,T.output),c=Math.max(p,c)),m in T.output.staves||s(m,T.output),T.divisionPerVoice[p]=T.divisionPerVoice[p]||0,h(T.division>=T.divisionPerVoice[p],"Ambiguous voice timing: all voices must be monotonic."),T.divisionPerVoice[p]<T.division){var b=T.divisionPerVoice[p],S=function(e){return t.fromSpec(f.buildNote(function(t){return t.printObject(!1).rest({}).duration(T.division-e)}))}(b),D=T.divisionPerVoice[p];S[0].duration=T.division-D,T.output.voices[p].push(S),T.divisionPerVoice[p]=T.division}var F=t.fromSpec(e);T.output.voices[p].push(F),o=F;var x=void 0;try{x=g.divisions([e],{time:T.times[0],divisions:r})}catch(k){console.warn("Guessing count from duration"),x=e.duration}T.divisionPerVoice[p]+=x,T.division+=x}break;case"Attributes":case"Barline":case"Direction":case"FiguredBass":case"Grouping":case"Harmony":case"Print":case"Sound":var B="Harmony"!==e._class||e.staff?e.staff||1:n;n=B,B in T.output.staves||(T.output.staves[B]=[],T.output.staves[B].owner=B,T.output.staves[B].ownerType="staff");var C=t.fromSpec(e);if("Direction"===e._class){var L=C,W=1===L.directionTypes.length&&L.directionTypes[0].words;if(W&&1===W.length){var _=W[0].data.trim();if(d.startsWith(_,"SATIE_SONG_META = ")&&d.endsWith(_,";"))break;if(d.startsWith(_,"SATIE_MEASURE_META = ")&&d.endsWith(_,";")){var O=JSON.parse(_.replace(/^SATIE_MEASURE_META = /,"").replace(/;$/,""));w.uuid=O.uuid;break}}}if(y(B,C,e.divisions||r),"Attributes"===e._class){u=e,r=u.divisions||r;var U=u.times;U&&U.length&&(T.times=U);var A=u.staves||1;a=A,d.times(A,function(e){var t=e+1;t in T.output.staves||s(t,T.output)})}break;case"Forward":var E=e;d.forEach(T.output.staves,function(t,n){y(n,null,e.divisions||r)}),T.division+=E.duration;break;case"Backup":var M=e;d.forEach(T.output.staves,function(t,n){y(n,null,e.divisions||r)}),T.division-=M.duration;break;default:h(!1,"Unknown type %s",e._class)}++T.idx});!S();)F();return d.times(a,function(e){var n=e+1;if(!(n in T.output.staves)){s(n,T.output),c++;var i=l(c,T.output),r=t.create(m.Type.Chord);r.push({duration:g.barDivisionsDI(u.times[0],u.divisions),rest:{},staff:n,voice:c}),i.push(r)}}),d.forEach(N,function(e){T=e,d.forEach(T.output.staves,function(e,t){y(t,null,r);var n=T.output.staves[t];n&&(n.divisions=r)}),d.forEach(T.output.voices,function(e,t){var n=T.output.voices[t];n&&(n.divisions=r)})}),w});return{measures:p,parts:n}}function l(e,t){return t.voices[e]=[],t.voices[e].owner=e,t.voices[e].ownerType="voice",t.voices[e]}function s(e,t){return t.staves[e]=[],t.staves[e].owner=e,t.staves[e].ownerType="staff",t.staves[e]}function u(e,t){S.requireFont("Bravura","root://bravura/otf/Bravura.otf"),S.requireFont("Alegreya","root://alegreya/Alegreya-Regular.ttf"),S.requireFont("Alegreya","root://alegreya/Alegreya-Bold.ttf","bold"),S.whenReady(function(n){if(n)t(n);else try{var r=D.makeFactory();t(null,i(e,r),r)}catch(n){t(n)}})}var c=n(3),f=n(22),d=n(1),h=n(2),p=n(5),m=n(5),v=n(7),g=n(8),y=n(15),b=n(7),S=n(17),w=n(33),N=n(74),D=n(34);t.stringToDocument=i,t.timewiseStructToDocument=r,t._extractMXMLHeader=a,t._extractMXMLPartsAndMeasures=o,t.importXML=u},function(e,t,n){"use strict";function i(e,t){var n=c.find(t.parts,function(t){return!!t.staves[1]&&e.modelFactory.search(t.staves[1],0,d.Type.Print).length});return n?e.modelFactory.search(n.staves[1],0,d.Type.Print)[0]._snapshot:null}function r(e,t,n,r){var o=e.options,l=o.measures;if(e.thisPrint=i(o,l[n])||e.thisPrint,c.last(e.opts).print||(c.last(e.opts).print=e.thisPrint),f(!!e.thisPrint,"No print found"),!e.options.singleLineMode){t.attributesWidthStart>e.widthAllocatedForStart&&(e.remainingWidth-=t.attributesWidthStart-e.widthAllocatedForStart,e.widthAllocatedForStart=t.attributesWidthStart),t.attributesWidthEnd>e.widthAllocatedForEnd&&(e.remainingWidth-=t.attributesWidthEnd-e.widthAllocatedForEnd,e.widthAllocatedForEnd=t.attributesWidthEnd);var s=0;if(e.shortest>t.shortestCount){var u=c.last(e.opts).measures.length,d=r.slice(n-u,n);s=d.reduce(function(n,i){return i.widthByShortest[t.shortestCount]-i.widthByShortest[e.shortest]},0),e.shortest=t.shortestCount}var h=t.widthByShortest[e.shortest],p=s+h;e.remainingWidth>p?e.remainingWidth-=p:(e.opts.push(a(o,e.thisPrint)),e.remainingWidth=e.startingWidth-h-t.attributesWidthStart-t.attributesWidthEnd,e.widthAllocatedForStart=t.attributesWidthStart,e.widthAllocatedForEnd=t.attributesWidthEnd)}return c.last(e.opts).measures.push(l[n]),e}function a(e,t){return u({},e,{attributes:null,measures:[],print:t})}function o(e,t){return Object.keys(e.parts).reduce(function(n,i){var r=e.parts[i].voices.reduce(function(e,n){return n?n.reduce(function(e,n){return e+n.calcWidth(t)},e):e},0);return Math.max(r,n)},0)}function l(e){var t=e.map(function(e){var t=d.getMeasureSegments(e);return c.reduce(t,d.reduceToShortestInSegments,Number.MAX_VALUE)}),n=t.reduce(function(e,t){return e[t]=!0,e},{}),i=Object.keys(n).map(function(e){return parseInt(e,10)});return c.map(e,function(e,n){var r=t[n],a=e.width,l=!isNaN(e.width)&&null!==e.width;l&&(e.width<=0||!isFinite(e.width))&&(console.warn("Bad measure width %s. Ignoring",e.width),a=void 0);var s=i.reduce(function(t,n){return n<=r&&(t[n]=o(e,n)),t},{});return{widthByShortest:s,shortestCount:r,attributesWidthStart:150,attributesWidthEnd:50}})}function s(e){f(!!e.print,"Print not defined"),f(!e.print._snapshot,"Pass a snapshot of Print to layoutSong, not the actual model!");var t=1,n=e.document.header.defaults.scaling,i=h.calculateLineBounds(e.print,t,n),o=(i.right-i.left)/m,s=e.preview?e.document.cleanlinessTracking.linePlacementHints:l(e.measures);e.document.cleanlinessTracking.linePlacementHints=s;var u=c.reduce(s,r,{options:e,opts:[a(e,e.print)],remainingWidth:o,shortest:Number.MAX_VALUE,startingWidth:o,thisPrint:e.print,widthAllocatedForEnd:0,widthAllocatedForStart:0}).opts;if(u.forEach(function(e,t){e.lineIndex=t,e.lineCount=u.length,e.attributes={}}),!e.preview){for(var d=e.document.cleanlinessTracking.lines||[],v=u.map(function(e){return e.measures.map(function(e){return e.uuid})})||[],g=function(t){var n=d[t]||[],i=v[t]||[],r=!n||!i||n.length!==i.length||n.some(function(e,t){return i[t]!==e});r&&n.concat(i).forEach(function(t){e.document.cleanlinessTracking.measures[t]=null})},y=0;y<d.length||y<v.length;++y)g(y);e.document.cleanlinessTracking.lines=v}var b={y:h.calculateLineBounds(u[0].print,t,n).top,attributes:{}};return u.map(function(e){return p.layoutLine(e,h.calculateLineBounds(e.print,t,n),b)})}var u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c=n(1),f=n(2),d=n(5),h=n(46),p=n(73),m=.8;t.getApproximateMeasureWidth=o,Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";function i(e){var t=e.modelFactory,n=e.header,i=e.preview,r=e.fixup,o=e.document,s=e.measures,u=e.attributes,f=e.print,d=s.map(function(e){return l.getMeasureSegments(e).reduce(l.reduceToShortestInSegments,Number.MAX_VALUE)}),h=d.reduce(function(e,t){return Math.min(t,e)},Number.MAX_VALUE),p=a.map(s,function(a,l){var p,m=e.singleLineMode?d[l]:h,v=o.cleanlinessTracking.measures[a.uuid];return p=v&&v.clean?e.preview?v.layout:v.clean:c.layoutMeasure({attributes:u,document:o,factory:t,fixup:r,header:n,lineBarOnLine:l,lineCount:e.lineCount,lineIndex:e.lineIndex,lineShortest:m,lineTotalBarsOnLine:s.length,measure:a,preview:i,print:f,x:0,singleLineMode:e.singleLineMode}),u=p.attributes,f=p.print,p});return{measureLayouts:p,attributes:u}}function r(e,t,n){var r=e.measures;if(!r.length)return[];e.attributes=n.attributes;var l=i(e),c=l.measureLayouts,f=c[0].attributes,d=a.map(u.scoreParts(e.header.partList),function(e){return e.id}),h=0,p=a.map(d,function(e){return o(f[e][1].staves>=1,"Expected at least 1 staff, but there are %s",f[e][1].staves),[null].concat(a.times(f[e].length-1,function(){++h,h>1&&(n.y-=100);var e=a.maxBy(c,function(e){return e.paddingTop[h]||0}).paddingTop[h]||0,t=a.maxBy(c,function(e){return e.paddingBottom[h]||0}).paddingBottom[h]||0,i=n.y-e;return n.y=i-t,i}))}),m=a.zipObject(d,p);n.y-=t.systemLayout.systemDistance,n.attributes=l.attributes;var v=t.left;if(a.forEach(c,function(e){e.originY=m,e.originX=v,v+=e.width}),e.preview)return c;var g=a.map(c,s.detach),y=a.reduce(e.postprocessors,function(n,i){return i(e,t,n)},g);return r.forEach(function(t,n){var i=e.document.cleanlinessTracking.measures[t.uuid];i.layout=y[n],++t.version}),y}var a=n(1),o=n(2),l=n(5),s=n(128),u=n(15),c=n(32);t.layoutLine=r},function(e,t,n){"use strict";var i=n(3),r=n(1),a=n(23),o=n(6),l=n(13),s=function(){function e(e){this.credits=[],this.identification={creators:[],encoding:{encodingDescriptions:[],encodingDate:null,supports:{},encoders:[],softwares:[]},miscellaneous:null,relations:[],rights:[],source:null},this.defaults={appearance:{distances:{hyphen:{tenths:10*o.distances.hyphen,type:"hyphen"},beam:{tenths:10*o.distances.beam,type:"beam"}},lineWidths:{staff:{tenths:10*o.bravura.engravingDefaults.staffLineThickness,type:"staff"},wedge:{tenths:10*o.bravura.engravingDefaults.hairpinThickness,type:"wedge"},ending:{tenths:10*o.bravura.engravingDefaults.repeatEndingLineThickness,type:"ending"},"heavy barline":{tenths:10*o.bravura.engravingDefaults.thickBarlineThickness,type:"heavy barline"},leger:{tenths:10*o.bravura.engravingDefaults.legerLineThickness,type:"leger"},stem:{tenths:10*o.bravura.engravingDefaults.stemThickness,type:"stem"},"tuplet bracket":{tenths:10*o.bravura.engravingDefaults.tupletBracketThickness,type:"tuplet bracket"},beam:{tenths:10*o.bravura.engravingDefaults.beamThickness,type:"beam"},"light barline":{tenths:10*o.bravura.engravingDefaults.thinBarlineThickness,type:"light barline"},enclosure:{tenths:10*o.bravura.engravingDefaults.textEnclosureThickness,type:"enclosure"}},noteSizes:{1:{type:1,size:60},0:{type:0,size:60}},otherAppearances:[]},lyricFonts:[],lyricLanguages:[],musicFont:{fontSize:"20.5",fontFamily:"Bravura, Maestro, engraved",fontStyle:i.NormalItalic.Normal,fontWeight:i.NormalBold.Normal},pageLayout:{pageHeight:l.mmToTenths(l.defaultStaveHeight,l.defaultPageSize().height),pageWidth:l.mmToTenths(l.defaultStaveHeight,l.defaultPageSize().width),pageMargins:[{bottomMargin:l.mmToTenths(l.defaultStaveHeight,l.defaultMargins.bottom),leftMargin:l.mmToTenths(l.defaultStaveHeight,l.defaultMargins.left),rightMargin:l.mmToTenths(l.defaultStaveHeight,l.defaultMargins.right),topMargin:l.mmToTenths(l.defaultStaveHeight,l.defaultMargins.top),type:i.OddEvenBoth.Both}]},scaling:{millimeters:l.defaultStaveHeight,tenths:40},staffLayouts:[],systemLayout:{systemDistance:131,systemDividers:null,systemMargins:{leftMargin:0,rightMargin:0},topSystemDistance:70},wordFont:{fontSize:"12",fontFamily:"Alegreya, Times New Roman, serif",fontStyle:i.NormalItalic.Normal,fontWeight:i.NormalBold.Normal}},this.work={opus:null,workNumber:"",workTitle:""},this.movementTitle="",this.movementNumber="",this.partList=[],e&&r.defaultsDeep(e,this);for(var t in e)e.hasOwnProperty(t)&&"string"==typeof t&&e[t]&&(this[t]=e[t])}return Object.defineProperty(e.prototype,"composer",{get:function(){return this._getIdentificationOrCredit("composer")},set:function(e){this._setIdentification("composer",e),this._setCredits("composer",e,i.LeftCenterRight.Right,"12px",20)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arranger",{get:function(){return this._getIdentificationOrCredit("arranger")},set:function(e){this._setIdentification("arranger",e),this._setCredits("arranger",e,i.LeftCenterRight.Right,"12px",35)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lyricist",{get:function(){return this._getIdentificationOrCredit("lyricist")},set:function(e){this._setIdentification("lyricist",e),this._setCredits("lyricist",e,i.LeftCenterRight.Right,"12px",50)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.movementTitle},set:function(e){this.movementTitle=e,this._setCredits("title",e,i.LeftCenterRight.Center,"18px",10)},enumerable:!0,configurable:!0}),e.prototype.toXML=function(){return i.serializeScoreHeader(this)},e.prototype.inspect=function(){return this.toXML()},e.prototype.overwriteEncoding=function(){var t=new Date;this.identification=this.identification||new e(null).identification,this.identification.encoding={encodingDescriptions:[],encodingDate:{month:t.getMonth()+1,day:t.getDate(),year:t.getFullYear()},supports:{"satie-collaboration":{element:"satie-collaboration",value:null,type:!0,attribute:null}},encoders:[],softwares:["Songhaus Satie"]}},e.prototype._getIdentificationOrCredit=function(e){if(this.identification&&(this.identification.creators||[]).length){var t=this.identification.creators.filter(function(t){return t.type===e}).map(function(e){return e.creator}).join(", ");if(t)return t}return this.credits.filter(function(t){return t.creditTypes.indexOf(e)!==-1}).map(function(e){return e.creditWords}).map(function(e){return e.map(function(e){return e.words}).join(", ")}).join(", ")},e.prototype._setIdentification=function(e,t){this.identification=this.identification||{miscellaneous:[],creators:[],encoding:[],relations:[],rights:[],source:null},this.identification.creators=this.identification.creators||[],r.forEach(this.identification.creators,function(n){n.type===e&&(n.creator=t)}),r.some(this.identification.creators,function(t){return t.type===e})||this.identification.creators.push({creator:t,type:e})},e.prototype._setCredits=function(e,t,n,o,s){var u=this,c=this.defaults.scaling.millimeters,f=this.defaults.pageLayout;if(this.credits=this.credits||[],r.forEach(this.credits,function(n,i){if(!n.creditWords)return!1;var r=n.creditTypes.indexOf(e)!==-1;r&&(n.creditWords.length?(n.creditWords.length=1,n.creditWords[0].words=t):delete u.credits[i])}),!r.some(this.credits,function(t){return Boolean(t.creditWords)&&t.creditTypes.indexOf(e)!==-1})){var d=NaN,h=a.getPageMargins(this.defaults.pageLayout.pageMargins,1);switch(n){case i.LeftCenterRight.Center:d=(h.leftMargin-h.rightMargin+f.pageWidth)/2;break;case i.LeftCenterRight.Right:d=f.pageWidth-h.rightMargin;break;case i.LeftCenterRight.Left:d=h.leftMargin;break;default:d=h.leftMargin}this.credits.push({creditImage:null,creditTypes:[e],creditWords:[{words:t,defaultX:d,justify:n,defaultY:f.pageHeight-l.mmToTenths(c,s),fontSize:o}],page:1})}},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(4),l=n(65),s=n(2),u=n(5),c=n(20),f=n(8),d=n(52),h=n(131),p=n(71),m=n(69),v=n(29),g="The document is not yet initialized.",y=/SATIE([0-9]*)_(\w*)_(\w*)_(\w*)_(\w*)_(\w*)/,b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={document:null,factory:null},t._docPatches=[],t._page1=null,t.getDocument=function(e){if(!t.state.document)throw new Error(g);if(e instanceof h["default"])return t._rectify$(e.content,e.isPreview,function(){return e.isPreview=!1}),t.state.document;if(!e)return t._rectify$([],!1,function(){}),t.state.document;throw new Error("Invalid operations element")},t.createCanonicalPatch=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t._createPatch(!1,e)},t.createPreviewPatch=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t._createPatch(!0,e)},t.toSVG=function(){var e=t.props.patches;return e instanceof h["default"]?(s(e.isPreview===!1,"Cannot render an SVG with a previewed patch"),t._rectify$(e.content,e.isPreview,function(){e.isPreview=!1})):e?s(!1,"Song.props.patches was not created through createPreviewPatch or createCanonicalPatch"):t._rectify$([],!1,function(){}),t.state.document.renderToStaticMarkup(0)},t.toMusicXML=function(){var e=t.props.patches;return e instanceof h["default"]?(s(e.isPreview===!1,"Cannot render MusicXML with a previewed patch"),t._rectify$(e.content,e.isPreview,function(){return e.preview=!1})):e?s(!1,"Song.props.patches was not created through createPreviewPatch or createCanonicalPatch"):t._rectify$([],!1,function(){}),m.exportXML(t.state.document)},t._rectifyAppendCanonical=function(e){t._rectify$(t._docPatches.concat(e),!1,function(){})},t._rectifyAppendPreview=function(e){t._rectify$(t._docPatches.concat(e),!0,function(){})},t._preRender=function(e){void 0===e&&(e=t.props);var n=t.props.patches;n instanceof h["default"]?t._update$(n.content,n.isPreview,e):n?s(!1,"Internal error: preRender called, but the state is invalid."):t._update$([],!1,e)},t._syncSVG=function(e){t._svg=e,t._pt=e?e.createSVGPoint():null},t._handleCursorPosition=a.throttle(function(e,n){var i=d.get(e),r=i&&i.key.match(y);if(!r)return void n({path:[],pitch:null,pos:e,matchedOriginY:null,_private:null});r=r.slice(1);var o=a.find(t.state.document.measures,function(e){return 1*e.uuid===parseInt(r[0],10)}),l=o[r[1]][r[2]][r[3]][r[4]][r[5]];if(l){var s=i.originY,u=l._clef,c=void 0;u&&s&&(c=f.pitchForClef(s-e.y,u)),n({path:r,pitch:c,pos:e,matchedOriginY:s,_private:i.obj})}},18),t._handleMouseMove=function(e){var n=t._getPos(e);n&&t._handleCursorPosition(n,t.props.onMouseMove)},t._handleClick=function(e){var n=t._getPos(e);n&&t._handleCursorPosition(n,t.props.onMouseClick)},t}return i(t,e),t.prototype.render=function(){return o.createElement("div",{onMouseMove:this.props.onMouseMove&&this._handleMouseMove,onClick:this.props.onMouseClick&&this._handleClick},this._page1)},t.prototype.shouldComponentUpdate=function(e){return e.baseSrc!==this.props.baseSrc||e.patches!==this.props.patches||e.pageClassName!==this.props.pageClassName||e.singleLineMode!==this.props.singleLineMode||e.fixedMeasureWidth!==this.props.fixedMeasureWidth},t.prototype.componentWillReceiveProps=function(e){if(e.baseSrc!==this.props.baseSrc)this._loadXML(e.baseSrc);else if(e.pageClassName!==this.props.pageClassName||e.fixedMeasureWidth!==this.props.fixedMeasureWidth||e.singleLineMode!==this.props.singleLineMode)this._preRender(e);else if(e.patches!==this.props.patches){var t=e.patches;if(t instanceof h["default"])this._update$(t.content,t.isPreview);else{if(t)throw new Error("Invalid patch.");this._update$([],!1)}}},t.prototype.componentWillMount=function(){this._loadXML(this.props.baseSrc)},Object.defineProperty(t.prototype,"header",{get:function(){return this.state&&this.state.document?this.state.document.header:null},set:function(e){if(this.state)throw new Error("Cannot set header. Use patches.")},enumerable:!0,configurable:!0}),t.prototype.run=function(){var e=this;this.setState=function(t,n){a.extend(e.state,t),n&&n()},this.forceUpdate=function(){},this._isRunningWithoutDOM||this.componentWillMount(),this._isRunningWithoutDOM=!0,this.componentWillReceiveProps(this.props)},t.prototype._createPatch=function(e,t){var n=this,i=t.reduce(function(t,i){if(u.specIsRaw(i))return t.concat(i.raw);if(u.specIsDocBuilder(i))return t.concat(c["default"](e,n.state.document,i.documentBuilder));if(u.specIsPartBuilder(i))return t.concat(c["default"](e,n.state.document,i.measure,i.part,i.partBuilder));if(i instanceof h["default"])return t.concat(i.content);if(!i)return t;throw new Error("Invalid patch spec.")},[]);return this._update$(i,e),new h["default"](this._docPatches.slice(),e)},t.prototype._rectify$=function(e,t,n){var i=this,r=this._docPatches,o=this.state.factory,u=function(){for(var t=Math.min(r.length,e.length),n=0;n<t;++n)if(!a.isEqual(r[n],e[n]))return n;return t},c=u();a.forEach(l.invert(r.slice(c)),function(e){v["default"](t,i.state.document.measures,o,e,i.state.document,n),r.pop()}),a.forEach(e.slice(this._docPatches.length),function(e){v["default"](t,i.state.document.measures,o,e,i.state.document,n),r.push(e)}),s(r.length===e.length,"Something went wrong in _rectify. The current state is now invalid.")},t.prototype._update$=function(e,t,n){void 0===n&&(n=this.props),this._rectify$(e,t,function(){return t=!1}),this._page1=this.state.document.__getPage(0,t,"svg-web",n.pageClassName||"",n.singleLineMode,n.fixedMeasureWidth,t?this._rectifyAppendPreview:this._rectifyAppendCanonical,this._syncSVG,n.onPageHeightChanged),this.forceUpdate()},t.prototype._getPos=function(e){return this._svg.contains(e.target)?(this._pt.x=e.clientX,this._pt.y=e.clientY,this._pt.matrixTransform(this._svg.getScreenCTM().inverse())):null},t.prototype._loadXML=function(e){var t=this;this.setState({document:null,factory:null}),p.importXML(e,function(e,n,i){e?t.props.onError(e):t.setState({document:n,factory:i},t._preRender),s(!t.props.patches,"Expected patches to be empty on document load."),t.props.onLoaded&&t.props.onLoaded()})},t}(r.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=b},function(e,t,n){"use strict";function i(e,t,n){return r.parentExists(t,n.p)?void r.mutate(t,n):void console.warn("Invalid patch -- it's likely to a model that only exists in a snapshot. You'll need to explicitly create it.")}var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e,t,n){var i={},o={},l=0,s={},u={};return r.forEach(n,function(e){r.forEach(e.elements,function(e){r.forEach(e,function(e,t){if(e.model&&(e.renderClass===a.Type.Barline||e.renderClass===a.Type.Chord)){var n=e.part+"_"+e.model.staffIdx;e.model.staffIdx||console.warn("Missing staffIdx",e.model),s[n]||(s[n]=[],u[n]=[]);var i=s[n],o=e.x+l,c=r.sortedIndex(i,o),f=e.renderClass===a.Type.Barline;i[c]===o?u[n][c]=u[n][c]||f:(i.splice(c,0,e.x+l),u[n].splice(c,0,f))}})}),l+=e.width}),l=0,r.forEach(n,function(e){r.forEach(e.elements,function(e){r.forEach(e,function(e,t){if(e.model){var n=e.part+"_"+e.model.staffIdx;if(e.renderClass===a.Type.Attributes&&e.model){var c=s[n]||[],f=r.sortedIndex(c,e.x+l)-1,d=u[n][f];if(d||f++,i[n]){var h=c[f];i[n].staffWidth=h-o[n]}var p=!1;if(i[n]){var m=i[n].model,v=e.model;p=r.some(m.staffDetails,function(e,t){if(!e)return!1;var n=v.staffDetails[t];return e.staffLines!==n.staffLines})}else p=!0;if(p){i[n]=e;var c=s[n]||[],f=r.sortedIndex(c,e.x+l)-1,g=c[f]||0,h=c[f]||0;o[n]=h,e.staffLinesOffsetX=e.x+l-h-(h-g)}}}})}),l+=e.width}),r.forEach(i,function(e,t){e.staffWidth=l-o[t]}),n}var r=n(1),a=n(5);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec;return r.DOM.text({className:"bn_",fontSize:24,x:e.defaultX+(e.relativeX||0),y:this.context.originY-e.defaultY-(e.relativeY||0)},this.props.barNumber)},t}(r.Component);a.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a},function(e,t){"use strict";t.standardClefs=[{line:2,sign:"G",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:16,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1},{line:4,sign:"F",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:4,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1},{line:3,sign:"C",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:0,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1},{line:4,sign:"C",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:8,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1},{line:3,sign:"PERCUSSION",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:8,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1},{line:5,sign:"TAB",additional:!1,afterBarline:!1,clefOctaveChange:null,color:"#000000",defaultX:-16,defaultY:8,fontFamily:"",fontSize:"small",fontStyle:0,fontWeight:0,number:1,printObject:!0,relativeX:0,relativeY:0,size:1}]},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(16),l=n(9),s=n(6),u=a.createFactory(o["default"]),c=a.createFactory(l["default"]),f=2.9,d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){if(this.props.spec.type===r.PartSymbolType.None)return null;var e=s.bravura.engravingDefaults,t=this.context.systemBottom-this.context.systemTop,n=this.context.systemBottom,i=this.getSymbol();return a.DOM.g(null,i,u({key:"line",stroke:"#000000",strokeWidth:10*e.thinBarlineThickness,x1:this.props.spec.defaultX,x2:this.props.spec.defaultX,y1:n-t,y2:n}))},t.prototype.getSymbol=function(){var e=this.props.spec,t=this.context.systemBottom-this.context.systemTop,n=this.context.systemBottom,i=s.bravura.engravingDefaults,a=this.props.spec.defaultX-14,o=t/40;switch(e.type){case r.PartSymbolType.Brace:return c({fill:"#000000",glyphName:"brace",key:"partSymbolMain",transform:"scale("+f+","+o+")translate("+-a*(1-1/f)+","+-1*(1-1/o)*n+")",x:a,y:n});case r.PartSymbolType.Bracket:case r.PartSymbolType.Square:return[u({key:"partSymbolMain",stroke:"#000000",strokeWidth:10*i.bracketThickness,x1:a+4+2.5,x2:a+4+2.5,y1:n-t-2-3,y2:n+2+3}),c({fill:"#000000",glyphName:"bracketTop",key:"bracketTop",x:a+4,y:this.context.systemTop-2}),c({fill:"#000000",glyphName:"bracketBottom",key:"bracketBottom",x:a+4,y:this.context.systemBottom+2})];case r.PartSymbolType.Line:return null;default:throw new Error("Invalid PartSymbolType "+e.type)}},t}(a.Component);d.contextTypes={originY:a.PropTypes.number.isRequired,systemBottom:a.PropTypes.number.isRequired,systemTop:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(16),l=n(6),s=r.createFactory(o["default"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.context.originY-this.props.defaultY,n=this.props.staffDetails,i=(n.staffLines-1)/2;return r.DOM.g(null,a.times(n.staffLines,function(n){return s({key:"staff-"+n,stroke:"#6A6A6A",strokeWidth:10*l.bravura.engravingDefaults.staffLineThickness,x1:e.props.defaultX,x2:e.props.defaultX+e.props.width,y1:t-10*(n-i),y2:t-10*(n-i)})}))},t}(r.Component);u.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){e[s.Type.Barline]=h}var r=n(3),a=n(22),o=n(1),l=n(2),s=n(5),u=n(15),c=n(6),f=n(36),d=n(14),h=function(){function e(e){var t=this;this._class="Barline",o.forEach(e,function(e,n){t[n]=e})}return e.prototype.toJSON=function(){var e=this,t=e._class,n=e.segno,i=e.coda,r=e.location,a=e.codaAttrib,o=e.wavyLine,l=e.fermatas,s=e.segnoAttrib,u=e.divisions,c=e.barStyle,f=e.ending,d=e.repeat,h=e.footnote;return{_class:t,segno:n,coda:i,location:r,codaAttrib:a,wavyLine:o,fermatas:l,segnoAttrib:s,divisions:u,barStyle:c,ending:f,repeat:d,footnote:h}},e.prototype.refresh=function(e){if(this.barStyle||e.patch(function(e){return e.barline(function(e){return e.barStyle(a.buildBarStyle(function(e){return e.data(r.BarStyleType.Regular).color("black")}))})}),!isFinite(this.barStyle.data)||null===this.barStyle.data){var t=!o.some(e.segmentInstance.slice(e.segmentPosition+1),function(t){return e.factory.modelHasType(t,s.Type.Barline)});e.patch(function(n){return n.barline(function(n){return n.barStyle({data:t&&e.measureIsLast?r.BarStyleType.LightHeavy:r.BarStyleType.Regular})})})}this.barStyle.color||e.patch(function(e){return e.barline(function(e){return e.barStyle(function(e){return e.color("black")})})})},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeBarline(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 8},e}();h.prototype.divCount=0,function(e){var t=function(){function e(e,t){var n=this;this.division=t.segmentDivision,this.x=t.segmentX;var i=t.staffAttributes,a=i.measureStyle,h=i.partSymbol;if(!(a.multipleRest&&a.multipleRest.count>1)){this.partGroups=u.groupsForPart(t.header.partList,t.segmentInstance.part),this.partSymbol=h,this.model=Object.create(e,{defaultX:{get:function(){return n.overrideX}}});var p=0;if(t.lineTotalBarsOnLine===t.lineBarOnLine+1){var m=t.document.measures[t.measureInstance.idx+1],v=m&&m.parts[t.segmentInstance.part],g=v&&v.staves[t.staffIdx],y=void 0;if(g){var b=t.factory.search(g,0,s.Type.Attributes)[0];b&&(y=b._snapshot)}var S=y&&d.needsWarning(i,y,t.staffIdx);if(S){var w=d.clefsEqual(i,y,t.staffIdx);p=w?0:d.CLEF_INDENTATION,this.model.satieAttributes=f["default"].createWarningLayout(t,i,y)}}this.model.defaultY=0,this.yOffset=0,this.height=20;var N=t.header.defaults.appearance.lineWidths,D=c.bravura.engravingDefaults.barlineSeparation,T=function(e){var i=0;n.lineStarts=[],n.lineWidths=[],o.forEach(e,function(e,t){t>0&&(i+=10*D),n.lineStarts.push(i);var r=N[e].tenths;n.lineWidths.push(r),i+=r}),n.model.satieAttribsOffset=i+8+p,t.segmentX+=i};switch(this.model.barStyle.data){case r.BarStyleType.LightHeavy:T(["light barline","heavy barline"]);break;case r.BarStyleType.LightLight:T(["light barline","light barline"]);break;case r.BarStyleType.HeavyHeavy:T(["heavy barline","heavy barline"]);break;case r.BarStyleType.HeavyLight:T(["heavy barline","light barline"]);break;case r.BarStyleType.Regular:case r.BarStyleType.Dashed:case r.BarStyleType.Dotted:case r.BarStyleType.Short:case r.BarStyleType.Tick:T(["light barline"]);break;case r.BarStyleType.Heavy:T(["heavy barline"]);break;case r.BarStyleType.None:T([]);break;default:l(!1,"Not implemented")}this.renderedWidth=t.segmentX-this.x+8}}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=s.Type.Barline,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(h||(h={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e,t){r.mutate(e,t)}var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(16),s=n(37),u=a.createFactory(s["default"]),c=a.createFactory(l["default"]),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e,t,n=this.context.originY,i=this.props.layout,l=i.model,s=l.defaultX,f=n-l.defaultY;return i.partSymbol&&i.partSymbol.type!==r.PartSymbolType.None||i.partGroups&&o.some(i.partGroups,function(e){return e.groupBarline})?(e=this.context.systemTop,t=this.context.systemBottom):(e=f-i.height-i.yOffset,t=f+i.height-i.yOffset),l.satieAttributes&&(l.satieAttributes.overrideX=i.overrideX+l.satieAttribsOffset),a.DOM.g(null,o.map(i.lineStarts,function(n,r){return c({key:r,stroke:l.barStyle.color,strokeWidth:i.lineWidths[r],x1:s+n+i.lineWidths[r]/2,x2:s+n+i.lineWidths[r]/2,y1:e,y2:t})}),l.satieAttributes&&u({layout:l.satieAttributes}))},t}(a.Component);f.contextTypes={originY:a.PropTypes.number.isRequired,systemBottom:a.PropTypes.number.isRequired,systemTop:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=f},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(9),l=a.createFactory(o["default"]),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.articulation,n=[],i=function(t,i,a){void 0===a&&(a=!0);var o=t,s=t,u=function(){if(!a)return"";switch(s.placement){case r.AboveBelow.Below:return"Below";case r.AboveBelow.Above:case r.AboveBelow.Unspecified:return"Above";default:return"Above"}}();n.push(l({fill:"black",glyphName:""+i+u,key:i,x:e.props.defaultX+o.defaultX+(o.relativeX||0),y:(e.context.originY||0)-o.defaultY-(o.relativeY||0)}))};switch(t.accent&&i(t.accent,"articAccent"),t.breathMark&&i(t.breathMark,"breathMarkComma",!1),t.caesura&&i(t.caesura,"caesura",!1),t.detachedLegato&&i(t.detachedLegato,"articTenutoStaccato"),t.doit,t.falloff,t.plop,t.scoop,t.spiccato&&i(t.spiccato,"articStaccatissimoWedge"),t.staccatissimo&&i(t.staccatissimo,"articStaccatissimo"),t.staccato&&i(t.staccato,"articStaccato"),t.stress&&i(t.stress,"articStress"),t.strongAccent&&i(t.strongAccent,"articMarcato"),t.tenuto&&i(t.tenuto,"articTenuto"),t.unstress&&i(t.unstress,"articUnstress"),n.length){case 0:return null;case 1:return n[0];default:return a.DOM.g(null,n)}},t}(a.Component);s.contextTypes={originY:a.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";function i(e,t,n){return l.forEach(n,function(e){var t={},n={},i=null;l.times(e.elements[0].length,function(a){l.forEach(e.elements,function(e){var c=e[a],f=c.model;if(f&&c.renderClass===u.Type.Attributes&&(i=f),f&&c.renderClass===u.Type.Chord){var d,h,p=f,m=l.find(p,function(e){return!!e.beams});if(l.forEach(p,function(e){l.forEach(e.notations,function(t){l.forEach(t.tuplets,function(t){m=m||e,t.type===o.StartStop.Start?d=t:h=t})})}),!m||!m.grace){if(!m)return void l.forEach(p,function(e){e&&!e.grace&&l.forEach(t[e.voice],function(t,n){t&&console.warn("Beam in voice %s, level %s was not explicitly closed before another note was added.",e.voice,n)})});var v=m.beams,g=m.voice;v||(v=[]);var y=[],b=l.some(l.sortBy(v),function(e,t){var n=t+1,i=e.number;return n!==i&&(console.warn("Invalid beam number"),!0)});b||(!v.length&&d?(n[g]=n[g]||[],n[g][d.number||1]={number:d.number||1,elements:[c],initial:null,attributes:i._snapshot,counts:[1],tuplet:d}):l.forEach(n[g],function(e){e&&e.elements.push(c)}),h&&n[g]&&n[g][h.number||1]&&y.push({voice:g,isUnbeamedTuplet:!0,idx:h.number||1,beamSet:n}),l.chain(v).sortBy("number").forEach(function(e){var a=e.number;switch(s(!!a,"A beam's number must be defined in MusicXML."),s(!!g,"A beam's voice must be defined in MusicXML."),t[g]=t[g]||[],e.type){case o.BeamType.Begin:case o.BeamType.BackwardHook:case o.BeamType.ForwardHook:t[g]=t[g]||[],t[g][a]&&(console.warn("Beam at level %s in voice %s should have been closed before being opened again.",a,g),r(g,a,t,!1)),t[g][a]={number:a,elements:[c],initial:e,attributes:i._snapshot,counts:[1],tuplet:d};var l=t[g][1].counts;if(1!==a&&l[l.length-1]++,e.type===o.BeamType.Begin)break;case o.BeamType.End:s(g in t,"Cannot end non-existant beam (no beam at all in current voice %s)",g),s(a in t[g],"Cannot end non-existant beam (no beam at level %s in voice %s)",a,g),t[g][a].elements.push(c),l=t[g][1].counts,e.type===o.BeamType.End&&(1===a?l.push(1):l[l.length-1]++),y.push({voice:g,idx:a,isUnbeamedTuplet:!1,beamSet:t});var u=t[g][a].tuplet;u&&!h&&(t[g][a].tuplet=null,n[g]=n[g]||[],n[g][u.number||1]={number:u.number||1,elements:t[g][a].elements.slice(),initial:null,attributes:t[g][a].attributes,counts:t[g][a].counts.slice(),tuplet:u});break;case o.BeamType.Continue:s(g in t,"Cannot continue non-existant beam (no beam at all in current voice %s)",g),s(a in t[g],"Cannot continue non-existant beam (no beam at level %s in voice %s)",a,g),t[g][a].elements.push(c),l=t[g][1].counts,1===a?l.push(1):l[l.length-1]++;break;default:throw new Error("Unknown type "+e.type)}}).value(),l.forEach(y,function(e){return r(e.voice,e.idx,e.beamSet,e.isUnbeamedTuplet)}))}}})}),l.forEach(t,function(e,n){l.forEach(e,function(e,i){e&&(console.warn("Beam in voice %s, level %s was not closed before the end of the measure.",n,i),r(parseInt(n,10),i,t,!1))})})}),n}function r(e,t,n,i){(i||1===t)&&a(e,t,n,i),delete n[e][t]}function a(e,t,n,i){function r(e,t,n){return T*e+(1===e?0:69)+N*(y[t]-l.first(y))*e-e*n*10}var a=n[e][t],u=l.map(a.elements,function(e){return e.model}),f=l.first(u),d=l.last(u),h=a.attributes.clef,p=c.averageLine(f,h),m=c.averageLine(d,h),v=(p+m)/2,g=v>=3?-1:1,y=[],b=[];l.forEach(a.elements,function(e,t){y.push(e.x),b.push(c.linesForClef(u[t],h))});var S=c.startingLine(f,g,h),w=c.startingLine(d,g,h),N=(w-S)/(l.last(y)-l.first(y))*10,D=35;N>.5&&(N=.5),N<-.5&&(N=-.5);var T=10*S+D,F=1e3,x=0;l.forEach(u,function(e,t){var n=c.heightDeterminingLine(e,g,h),i=r(g,t,n);i<F&&(F=i,x=g*(30-F)+N*(y[t]-l.first(y)))}),F<30&&(T+=x,N=0),0===N&&T>=0&&T<=50&&(T+=g*(10-T%10));var k=a.elements;if(i){var B=g>0?-13:-53;l.forEach(k,function(e,t){var n=c.startingLine(e.model,g,h),i=r(g,t,n);s(1===u.length||isFinite(i),"stemHeight must be defined for 2+ notes"),e.satieStem={direction:g,stemStart:n,stemHeight:i,tremolo:l.first(k).satieStem?l.first(k).satieStem.tremolo:null}});var C=Object.create(a.tuplet);C.placement=g>0?o.AboveBelow.Above:o.AboveBelow.Below;var L=l.first(k).satieStem,W=l.last(k).satieStem;f.satieUnbeamedTuplet={beamCount:null,direction:g,x:y,y1:10*L.stemStart+g*L.stemHeight+B,y2:10*W.stemStart+g*W.stemHeight+B,tuplet:C}}else{l.forEach(k,function(e,t){var n=c.startingLine(e.model,g,h),i=r(g,t,n);e.satieStem={direction:g,stemStart:n,stemHeight:i,tremolo:k[0].satieStem?k[0].satieStem.tremolo:null},e.satieFlag=null});var L=l.first(k).satieStem,W=l.last(k).satieStem,_=l.first(a.elements);_.satieBeam={beamCount:l.times(y.length,function(e){return a.counts[e]}),direction:g,x:y,y1:10*L.stemStart+g*L.stemHeight-30,y2:10*W.stemStart+g*W.stemHeight-30,tuplet:a.tuplet}}}var o=n(3),l=n(1),s=n(2),u=n(5),c=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(6),l=n(44),s=r.createFactory(l["default"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this._getX1(),n=this._getX2(),i=this.props.layout,o=i.tuplet,l=i.beamCount,u=i.x,c=i.direction;return r.DOM.g(null,a.map(l,function(i,o){return a.times(i,function(a){var s,c=e._withXOffset(u[o]);if(l[o-1]<=a){if(u[o+1]&&l[o+1]===i)return null;if(s=e._withXOffset((u[o-1]+3*u[o])/4),0===o)return null}else if(l[o+1]<=a&&(!u[o+1]||l[o-1]!==i))s=e._withXOffset(u[o]),c=e._withXOffset((u[o+1]+3*u[o])/4);else if(s=e._withXOffset(u[o-1]),0===o)return null;return r.DOM.polygon({fill:e.props.stroke,key:o+"_"+a,points:s+","+e._getYVar(0,a,(s-t)/(n-t))+" "+c+","+e._getYVar(0,a,(c-t)/(n-t))+" "+c+","+e._getYVar(1,a,(c-t)/(n-t))+" "+s+","+e._getYVar(1,a,(s-t)/(n-t)),stroke:e.props.stroke,strokeWidth:0})})}),o&&s({tuplet:o,x1:t,x2:n,y1:this._getYVar(0,-1,0)-(c>=1?8.5:-1.8),y2:this._getYVar(0,-1,1)-(c>=1?8.5:-1.8)}))},t.prototype.getLineXOffset=function(){return this.props.layout.direction*-this.props.stemWidth/2},t.prototype._withXOffset=function(e){return e+10*o.getFontOffset("noteheadBlack",this.props.layout.direction)[0]+this.getLineXOffset()},t.prototype._getX1=function(){return this._withXOffset(this.props.layout.x[0])},t.prototype._getX2=function(){return this._withXOffset(this.props.layout.x[this.props.layout.x.length-1])},t.prototype._getY1=function(e,t){return this.context.originY-this.props.layout.y1-this._getYOffset()+this.props.layout.direction*t*8.8-(e||0)*(10*o.bravura.engravingDefaults.beamThickness)},t.prototype._getY2=function(e,t){return this.context.originY-this.props.layout.y2-this._getYOffset()+this.props.layout.direction*t*8.8-(e||0)*(10*o.bravura.engravingDefaults.beamThickness)},t.prototype._getYVar=function(e,t,n){var i=this._getY1(e,t),r=this._getY2(e,t);return(1-n)*i+n*r},t.prototype._getYOffset=function(){return-3},t}(r.Component);u.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){"use strict";var i=n(3),r=n(1),a=n(2),o=n(5),l=n(47),s=n(8),u=n(6),c=n(43),f=n(41),d=n(94),h=35,p=30,m=11.4,v=30,g=.1,y=.73,b=28,S=(D={},D[i.Count.Maxima]="noteheadDoubleWhole",D[i.Count.Long]="noteheadDoubleWhole",D[i.Count.Breve]="noteheadDoubleWhole",D[i.Count.Whole]="noteheadWhole",D[-1]="noteheadWhole",D[i.Count.Half]="noteheadHalf",D[i.Count.Quarter]="noteheadBlack",D[i.Count.Eighth]="noteheadBlack",D[i.Count._16th]="noteheadBlack",D[i.Count._32nd]="noteheadBlack",D[i.Count._64th]="noteheadBlack",D[i.Count._128th]="noteheadBlack",D[i.Count._256th]="noteheadBlack",D[i.Count._512th]="noteheadBlack",D[i.Count._1024th]="noteheadBlack",D),w=(T={},T[i.Count.Maxima]="restLonga",T[i.Count.Long]="restLonga",T[i.Count.Breve]="restDoubleWhole",T[i.Count.Whole]="restWhole",T[-1]="restWhole",T[i.Count.Half]="restHalf",T[i.Count.Quarter]="restQuarter",T[i.Count.Eighth]="rest8th",T[i.Count._16th]="rest16th",T[i.Count._32nd]="rest32nd",T[i.Count._64th]="rest64th",T[i.Count._128th]="rest128th",T[i.Count._256th]="rest256th",T[i.Count._512th]="rest512th",T[i.Count._1024th]="rest1024th",T),N=function(){function e(e){var t=this;this.length=0,this._init=!1,e&&("Note"===e._class?(this[0]=new c["default"](this,0,e),this.length=1):e.length&&(r.forEach(e,function(e,n){t[n]=new c["default"](t,n,e)}),this.length=e.length))}return Object.defineProperty(e.prototype,"staffIdx",{get:function(){return this[0].staff||1},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"satieLedger",{get:function(){return s.ledgerLines(this,this._clef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rest",{get:function(){return r.some(this,function(e){return e.rest})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeModification",{get:function(){return this[0].timeModification},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notes",{get:function(){var e=this;return r.times(this.length,function(t){return e[t]})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){var e=this[0].noteType;return e?e.duration:null},enumerable:!0,configurable:!0}),e.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r.forEach(t,function(t){e[e.length]=new c["default"](e,e.length,t),++e.length}),this.length},e.prototype.splice=function(e,t){for(var n=this,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var l=this.notes;l.splice.apply(l,[e,t].concat(i)),r.times(this.length,function(e){return delete n[e]}),r.forEach(l,function(e,t){a(e instanceof c["default"],"Notes must be NoteImpls in Chords"),n[t]=e}),this.length=l.length},e.prototype.refresh=function(e){var t=this;if(!this[0].noteType||!this[0].noteType.duration){var n=this._implyCountFromPerformanceData(e);e.dangerouslyPatchWithoutValidation(function(e){return r.reduce(t,function(e,t,i){return e.note(i,function(e){return e.noteType({duration:n})})},e)})}try{var o=s.divisions(this,e.staffAttributes);o!==this.divCount&&e.fixup([{p:[e.measureInstance.uuid,"parts",e.segmentInstance.part,"voices",e.segmentInstance.owner,e.segmentPosition,"divCount"],oi:o,od:this.divCount}])}catch(l){l instanceof s.FractionalDivisionsException&&e.fixup([{p:["divisions"],oi:l.requiredDivisions,od:e.staffAttributes.divisions}])}a(isFinite(this.divCount),"The beat count must be numeric"),a(this.divCount>=0,"The beat count must be non-negative.");var u=this._pickDirection(e),c=e.staffAttributes.clef;this._clef=c,r.forEach(this,function(n,i){n.grace||n.duration===t.divCount||e.patch(function(e){return e.note(i,function(e){return e.duration(t.divCount)})}),i>0&&!n.chord?e.patch(function(e){return e.note(i,function(e){return e.chord({})})}):0===i&&n.chord&&e.patch(function(e){return e.note(i,function(e){return e.chord(null)})}),n.refresh(e),n.updateAccidental(e)});for(var f,d=this.notes.sort(function(e,t){return e.defaultY-t.defaultY}),h=function(t){t+1<d.length&&d[t+1].defaultY-d[t].defaultY===5?(u>0?0===d[t].relativeX&&13===d[t+1].relativeX||e.patch(function(e){return e.note(d[t]._idx,function(e){return e.relativeX(0)}).note(d[t+1]._idx,function(e){return e.relativeX(13)})}):d[t].relativeX===-13&&0===d[t+1].relativeX||e.patch(function(e){return e.note(d[t]._idx,function(e){return e.relativeX(-13)}).note(d[t+1]._idx,function(e){return e.relativeX(0)})}),++t):0!==d[t].relativeX&&e.patch(function(e){return e.note(d[t]._idx,function(e){return e.relativeX(0)})}),f=t},p=0;p<d.length;++p)h(p),p=f;this.wholebar=this.divCount===s.barDivisions(e.staffAttributes)||this.divCount===-1;var m=this.count;a(isFinite(m)&&null!==m,"%s is not a valid count",m);for(var p=0;p<this.length;++p)a(this[p].noteType.duration===m,"Inconsistent count (%s != %s)",this[p].noteType.duration,m);this._checkMulitpleRest(e),this._implyNoteheads(e),this._init||(s.countToIsBeamable[m]?this.satieFlag=s.countToFlag[m]:this.satieFlag=null,this._hasStem()?(this.satieStem={direction:u,stemHeight:this._getStemHeight(u,c),stemStart:s.startingLine(this,u,c)},this.satieDirection=1===u?i.StemType.Up:i.StemType.Down):(this.satieStem=null,this.satieDirection=NaN))},e.prototype.getLayout=function(t){return this._init=!0,this._layout||(this._layout=new e.Layout),this._layout.refresh(this,t),this._layout},e.prototype.toJSON=function(){var e=r.map(this,function(e){return e});return e},e.prototype.toXML=function(){for(var e="",t=0;t<this.length;++t)e+=i.serializeNote(this[t])+"\n";return e},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){var t=this.calcAccidentalWidth(),n=this.divCount?(Math.log(this.divCount)-Math.log(e))*b:0,i=this[0].grace;i&&(n*=g);var r=i?m:v;a(n>=0,"Invalid extraWidth %s. shortest is %s, got %s",n,e,this.divCount);var o=r+n+t+this.calcDotWidth();return o},e.prototype.calcAccidentalWidth=function(){return r.reduce(this,function(e,t){return Math.max(e,t.accidental?-t.accidental.defaultX:0)},0)*y},e.prototype.calcDotWidth=function(){return this.wholebar||this.satieMultipleRest?0:6*r.max(r.map(this,function(e){return(e.dots||[]).length}))},e.prototype._implyCountFromPerformanceData=function(e){function t(e){return!(Math.abs(Math.round(e)-e)>1e-5)&&(e=Math.round(e),!(!e||e&e-1))}var n,a=this,o=e.staffAttributes,l=o.time,s=o.divisions,u={beatType:l.beatTypes[0],beats:r.reduce(l.beats,function(e,t){return e+parseInt(t,10)},0)},c=u.beatType/4,f=c*(this[0].duration/s);n=4/(this[0].duration/s);for(var d=1,h=0;!t(1/(f/d/4));){if(5===h){h=0;break}++h,d+=Math.pow(.5,h)}if(h>0&&(n=1/(f/d/4/c),e.patch(function(e){return r.reduce(r.times(a.length),function(e,t){return e.note(t,function(e){return e.dots(r.times(h,function(e){return{}}))})},e)})),!t(n))if(f===u.beats&&this[0].rest)n=i.Count.Whole;else{var p=Math.pow(2,Math.ceil(Math.log(this.count)/Math.log(2)));n=p}return n},e.prototype._getStemHeight=function(e,t){var n,i=10*(s.highestLine(this,t)-s.lowestLine(this,t)),r=10*s.heightDeterminingLine(this,e,t),a=r+e*h;return n=a>=65?Math.max(p,h-(a-65)):a<=-15?Math.max(p,h-(-15-a)):35,r>30&&e===-1&&r-n>30?n=r-30:r<30&&1===e&&r+n<30&&(n=30-r),this[0].grace&&(n*=.75),n+=i},e.prototype._pickDirection=function(e){var t=e.staffAttributes.clef,n=s.averageLine(this,t);if(n>3)return-1;if(n<3)return 1;var i=e.segmentInstance.filter(function(t){return e.factory.modelHasType(t,o.Type.Chord)}),a=i.indexOf(this),u=a>0?s.averageLine(i[a-1],t):3;3===u&&a>0&&(u=1===i[a-1].satieDirection?2.99:3.01);var c=a+1<i.length?s.averageLine(i[a+1],t):3;if(u>3&&c>3)return-1;if(u<3&&c<3)return 1;for(var f=e.staffAttributes.time,d=l.getBeamingPattern(f),h=r.map(d,function(t){return s.divisions(t,e.staffAttributes)}),p=e.segmentDivision,m=0,v=0;v<h.length&&!(m+h[v]>=p);++v)m+=h[v];var g=m+h[v]||NaN,y=m<p,b=g>p+this.divCount,S=y?i[a-1]:null,w=b?i[a+1]:null;return S&&!w&&3!==u?u>3?-1:1:w&&!S&&3!==c?c>3?-1:1:-1},e.prototype._checkMulitpleRest=function(e){var t=e.staffAttributes.measureStyle,n=t&&t.multipleRest;n&&n.count>1&&(this.satieMultipleRest=t.multipleRest)},e.prototype._implyNoteheads=function(e){var t=this,n=e.staffAttributes.measureStyle;n&&r.forEach(this,function(e){n.slash&&(e.notehead=e.notehead||{type:null},e.notehead.type=i.NoteheadType.Slash,n.slash.useStems||(e.stem={type:i.StemType.None}))}),this.rest?this.satieMultipleRest?this.noteheadGlyph=["restHBar"]:this.noteheadGlyph=[w[this.count]]:this.noteheadGlyph=r.times(this.length,function(){return S[t.count]}),this.noteheadGlyph=this.noteheadGlyph.map(function(e,n){return s.getNoteheadGlyph(t[n].notehead,e)})},e.prototype._hasStem=function(){return(!this[0]||!this[0].stem||this[0].stem.type!==i.StemType.None)&&s.countToHasStem[this.count]},e}();!function(e){var t=function(){function e(){}return e.prototype.refresh=function(e,t){this.division=t.segmentDivision;var n=t.staffAttributes.measureStyle;if(n.multipleRest&&!n.multipleRestInitiatedHere)return this.x=0,void(this.expandPolicy="none");this.model=this._detachModelWithContext(t,e),this.satieStem=e.satieStem,this.satieFlag=e.satieFlag,this.boundingBoxes=this._captureBoundingBoxes();var o=e.wholebar||e.count===i.Count.Whole;this.expandPolicy=e.satieMultipleRest||e.rest&&o?"centered":"after",r.forEach(this.model,function(e){var n=e.staff||1;a(!!n,"Expected the staff to be a non-zero number, got %s",n);var i=t.lineMaxPaddingTopByStaff[n]||0,r=t.lineMaxPaddingBottomByStaff[n]||0;t.lineMaxPaddingTopByStaff[n]=Math.max(i,e.defaultY-50),t.lineMaxPaddingBottomByStaff[n]=Math.max(r,-e.defaultY-25)});var l=e.calcAccidentalWidth(),s=e.calcWidth(t.lineShortest);a(isFinite(s),"Invalid width %s",s);var c=e.noteheadGlyph,f=r.map(c,u.getWidth);this.renderedWidth=r.max(f),(e.satieMultipleRest||e.count===i.Count.Whole)&&r.forEach(this.model,function(e){return e.dots=[]}),this.x=t.segmentX+l,this.minSpaceAfter=this._getMinWidthAfter(t),this.minSpaceBefore=this._getMinWidthBefore(t),t.segmentX+=s},e.prototype._captureBoundingBoxes=function(){var e=this,t=[];return r.forEach(this.model,function(n){var i=s.notationObj(n),r=d.getBoundingRects(i,n,e);t=t.concat(r.bb),n.notations=[r.n]}),t},e.prototype._getMinWidthBefore=function(e){return this._getLyricWidth(e)/2},e.prototype._getMinWidthAfter=function(e){return this._getLyricWidth(e)/2},e.prototype._getLyricWidth=function(e){var t=1016/96;return f.getChordLyricWidth(this.model,t)},e.prototype._detachModelWithContext=function(e,t){var n=this,i=r.map(t,function(e,i){return Object.create(e,{defaultX:{get:function(){return(e.relativeX||0)+(n.overrideX||n.x)}},stem:{get:function(){return t.stem||{type:t.satieDirection}}}})});return i.stemX=function(){return n.overrideX||n.x},i.staffIdx=t.staffIdx,i.divCount=t.divCount,i.satieLedger=t.satieLedger,i.noteheadGlyph=t.noteheadGlyph,i.satieMultipleRest=t.satieMultipleRest,i.satieUnbeamedTuplet=t.satieUnbeamedTuplet,i},e}();e.Layout=t,t.prototype.expandPolicy="after",t.prototype.renderClass=o.Type.Chord,t.prototype.boundingBoxes=[]}(N||(N={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=N;var D,T},function(e,t,n){"use strict";function i(e){e.Note=r.Type.Chord,e[r.Type.Chord]=a["default"]}var r=n(5),a=n(88);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e,t){var n=t.p;if("notes"===t.p[0])if(2===n.length){var i=n[1];if(r(!isNaN(i),"Expected path index within chord to be a number"),"li"in t&&"ld"in t){var c=t;r(o.serializeNote(c.ld)===o.serializeNote(e[i]),"Cannot remove mismatching item from %s.",n.join(" ")),e.splice(i,1,new s["default"](e,i,c.li))}else if("li"in t){var f=t;e.splice(i,0,new s["default"](e,i,f.li))}else if("ld"in t){var d=t;r(o.serializeNote(d.ld)===o.serializeNote(e[i]),"Cannot remove mismatching item from %s.",n.join(" ")),e.splice(i,1)}else r(!1,"Unsupported operation");e._init=!1}else{var h=e[parseInt(String(t.p[1]),10)];r(Boolean(h),"Invalid operation path for chord. No such note "+t.p[1]);var p=a.cloneDeep(t);p.p=n.slice(2),u["default"](h,p),e._init=!1}else"count"===t.p[0]?"od"in t&&"oi"in t?l.replace(e,t):"od"in t?l.remove(e,t):r(!1,"Unsupported operation"):"divCount"===t.p[0]?e.divCount=t.oi:r(!1,"Invalid/unimplemented operation path for chord: "+t.p[0])}var r=n(2),a=n(1),o=n(3),l=n(18),s=n(43),u=n(95);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(6),s=n(87),u=n(92),c=n(93),f=n(41),d=n(96),h=n(42),p=n(98),m=n(99),v=n(101),g=10*l.bravura.engravingDefaults.stemThickness,y=a.createFactory(s["default"]),b=a.createFactory(u["default"]),S=a.createFactory(c["default"]),w=a.createFactory(d["default"]),N=a.createFactory(h["default"]),D=a.createFactory(p["default"]),T=a.createFactory(m["default"]),F=a.createFactory(v["default"]),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.layout,n=t.model,i=o.maxBy(n.noteheadGlyph,function(e){return l.getRight(e)}),s=o.some(n,function(e){return e.printObject!==!1});if(!s)return null;var u=0,c=o.chain(n).map(function(e){return e.lyrics}).filter(function(e){return!!e}).flatten(!0).filter(function(e){return!!e}).map(function(t){for(var n=[],o=r.SyllabicType.Single,s=0;s<t.lyricParts.length;++s)switch(t.lyricParts[s]._class){case"Syllabic":var c=t.lyricParts[s];o=c.data;break;case"Text":var d=t.lyricParts[s],h=10*l.bboxes[i][0];n.push(a.DOM.text({fontFamily:d.fontFamily||f.DEFAULT_FONT,fontSize:d.fontSize||f.DEFAULT_LYRIC_SIZE,key:++u,textAnchor:"middle",x:e.props.layout.x+h/2,y:e.context.originY+60},d.data));break;case"Extend":break;case"Elision":break;default:throw new Error("Unknown class "+t.lyricParts[s]._class)}return n}).flatten().value();if(n[0].rest)return D({multipleRest:n.satieMultipleRest,notehead:n.noteheadGlyph[0],spec:n[0]});var d=n.stemX();return a.DOM.g(null,o.map(n,function(e,t){return n[t]?w({key:"n"+t,noteheadGlyph:n.noteheadGlyph[t],spec:n[t],defaultX:n[t].defaultX}):null}),t.satieStem&&T({bestHeight:t.satieStem.stemHeight,tremolo:t.satieStem.tremolo,key:"s",notehead:i,spec:{color:n[0].stem.color||"#000000",defaultX:d,defaultY:10*(t.satieStem.stemStart-3),type:1===t.satieStem.direction?r.StemType.Up:r.StemType.Down},width:g}),o.map(n.satieLedger,function(e){return S({key:"l"+e,notehead:i,spec:{color:"#000000",defaultX:d,defaultY:10*(e-3)}})}),t.satieFlag&&t.satieStem&&b({key:"f",notehead:i,spec:{color:n[0].stem.color||"$000000",defaultX:d,defaultY:10*(t.satieStem.stemStart-3)+(t.satieStem.stemHeight-7)*t.satieStem.direction,direction:t.satieStem.direction,flag:t.satieFlag},stemHeight:t.satieStem.stemHeight,stemWidth:g}),this.props.layout.satieBeam&&y({key:"b",layout:this.props.layout.satieBeam,stemWidth:g,stroke:"black"}),n.satieUnbeamedTuplet&&F({key:"ut",layout:n.satieUnbeamedTuplet,stemWidth:g,stroke:"black"}),o.map(n,function(t,n){return o.map(t.notations,function(i,r){return N({key:"N"+n+"_"+r,layout:e.props.layout,defaultY:t.defaultY,spec:i})})}),c)},t}(a.Component);x.contextTypes={originY:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=x},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(2),o=n(9),l=n(6),s=r.createFactory(o["default"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec,t=this.context,n=this.props.isGrace?.6:1,i=e.direction,r=l.getFontOffset(this.glyphName(),i)[0]*n,a=l.getFontOffset(this.props.notehead,i)[0]*n,o=10*l.getFontOffset(this.props.notehead,i)[1];return s({fill:e.color,glyphName:this.glyphName(),scale:this.props.isGrace?.6:1,x:e.defaultX+10*r+(1===i?10*a-this.props.stemWidth:0),y:t.originY-e.defaultY-4*o})},t.prototype.directionString=function(){return 1===this.props.spec.direction?"Up":this.props.spec.direction===-1?"Down":void a(!1,"Invalid direction")},t.prototype.glyphName=function(){return this.props.spec.flag+this.directionString()},t}(r.Component);u.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(16),o=n(6),l=r.createFactory(a["default"]),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec,t=o.bboxes[this.props.notehead][3],n=o.bboxes[this.props.notehead][0],i=10*(n-t);return l({stroke:e.color,strokeWidth:2.2,x1:e.defaultX+(e.relativeX||0)-3.2,x2:e.defaultX+(e.relativeX||0)+i-.2,y1:this.context.originY-e.defaultY-(e.relativeX||0),y2:this.context.originY-e.defaultY-(e.relativeX||0)})},t}(r.Component);s.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=s},function(e,t,n){"use strict";function i(e){return!e.breathMark&&!e.caesura}function r(e,t){return e.accent?"articAccent"+t:e.breathMark?"breathMarkComma":e.caesura?"caesura":e.detachedLegato?"articTenutoStaccato"+t:e.doit?null:e.falloff?null:e.plop?null:e.scoop?null:e.spiccato?"articStaccatissimoWedge"+t:e.staccatissimo?"articStaccatissimo"+t:e.staccato?"articStaccato"+t:e.stress?"articStress"+t:e.strongAccent?"articMarcato"+t:e.tenuto?"articTenuto"+t:e.unstress?"articUnstress"+t:(console.warn("Unknown articulation..."),null)}function a(e,t,n){function i(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=NaN);var r=s.bboxes[e];if(!r)return void console.warn("Unknown glyph",e);isNaN(i)&&(t.placement===o.AboveBelow.Below?i=-30+10*r[3]*u:t.placement===o.AboveBelow.Above?i=60+10*r[3]*u:(console.warn("TODO: Set default above/below"),i=0));var l=Object.create(t),c=l;return c.top=10*r[3],c.bottom=10*r[1],c.left=10*r[2],c.right=10*r[0],c.defaultX=n,c.defaultY=i,a.push(l),l}var a=[],c=e;return e=Object.create(e),Object.keys(c).forEach(function(t){e[t]="object"==typeof e[t]?Object.create(e[t]):e}),l.forEach(e.accidentalMarks,function(e){}),
l.forEach(e.arpeggiates,function(e){}),l.forEach(e.articulations,function(a,u){a=e.articulations[u]=Object.create(a),l.forEach(["accent","breathMark","caesura","detachedLegato","doit","falloff","plop","scoop","spiccato","staccatissimo","staccato","stress","strongAccent","tenuto","unstress"],function(l){if(e.articulations[u][l]){var c=Object.create(e.articulations[u][l]),f=c.placement,d=f===o.AboveBelow.Below,h=r(a,d?"Below":"Above");if(!h)return void console.warn(Object.keys(a)[0],"not implented in chord/notation.ts");var p=void 0,m=n.model.noteheadGlyph[0],v=(s.getLeft(m)+s.getRight(m))/2-(s.getLeft(h)+s.getRight(h))/2-.5;n.satieStem&&t.stem.type===o.StemType.Up!==d?(p=t.defaultY+n.satieStem.stemHeight+(d?-12:12),-t.defaultY%10===0&&(p+=d?-5:5)):(p=t.defaultY+(d?-9:9),-t.defaultY%10===0&&(p+=d?-5:5)),e.articulations[u][l]=i(h,c,v,p)}})}),l.forEach(e.dynamics,function(e){}),l.forEach(e.fermatas,function(t,n){t=e.fermatas[n]=Object.create(t),t.type===o.UprightInverted.Inverted?t.placement=o.AboveBelow.Below:t.placement=o.AboveBelow.Above,e.fermatas[n]=i("fermataAbove",t)}),l.forEach(e.glissandos,function(e){}),l.forEach(e.nonArpeggiates,function(e){}),l.forEach(e.ornaments,function(t,i){t=e.ornaments[i]=Object.create(t),t.tremolo&&(n.satieStem.tremolo=t.tremolo)}),l.forEach(e.slides,function(e){}),l.forEach(e.slurs,function(e){}),l.forEach(e.technicals,function(e){}),l.forEach(e.tieds,function(e){}),l.forEach(e.tuplets,function(e){}),{bb:a,n:e}}var o=n(3),l=n(1),s=n(6),u=1.5;t.articulationDirectionMatters=i,t.articulationGlyph=r,t.getBoundingRects=a},function(e,t,n){"use strict";function i(e,t){return t.p.length>2?void a.mutate(e,t):void("od"in t&&"oi"in t?2===t.p.length&&"noteType"===t.p[0]&&"duration"===t.p[1]?e.noteType={duration:t.oi}:a.replace(e,t):"od"in t?a.remove(e,t):"oi"in t?(r(!e[t.p[0]],"Object already set"),a.set(e,t)):"ld"in t||"li"in t?a.mutate(e,t):r(!1,"Unknown operation"))}var r=n(2),a=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(51),s=n(9),u=n(6),c=n(35),f=n(97),d=a.createFactory(c["default"]),h=a.createFactory(l["default"]),p=a.createFactory(f["default"]),m=a.createFactory(s["default"]),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.spec;if(t.printObject===!1)return null;var n=this.props.defaultX||t.defaultX,i=this.props.noteheadGlyph,l=u.getRight(i),s=u.getLeft(i),c=t.notehead&&t.notehead.parentheses;return a.DOM.g(null,p({key:"h",notehead:i,spec:{color:t.color,defaultX:n,defaultY:0,type:t.notehead?t.notehead.type:r.NoteheadType.Normal}}),t.dots&&t.printDot!==!1?o.map(t.dots,function(t,i){return h({fill:t.color,key:"_1_"+i,radius:2.4,x:n+l+6+6*i,y:e.context.originY-e.props.spec.defaultY-(t.defaultY+(t.relativeY||0))})}):null,this.props.spec.accidental?d({key:"a",spec:this.props.spec.accidental,noteDefaultX:n}):null,c&&m({glyphName:"noteheadParenthesisRight",fill:"black",y:this.context.originY-this.props.spec.defaultY,x:n+l+2}),c&&m({glyphName:"noteheadParenthesisLeft",fill:"black",y:this.context.originY-this.props.spec.defaultY,x:n+s-5}))},t.prototype.getChildContext=function(){return{originY:this.context.originY-this.props.spec.defaultY}},t}(a.Component);v.childContextTypes={originY:a.PropTypes.number.isRequired},v.contextTypes={originY:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=v},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(9),o=r.createFactory(a["default"]),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec,t=e,n=e;return o({fill:n.color,glyphName:this.props.notehead,x:t.defaultX+(t.relativeX||0),y:this.context.originY-t.defaultY-(t.relativeY||0)})},t}(r.Component);l.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(2),l=n(51),s=n(9),u=n(6),c=r.createFactory(l["default"]),f=r.createFactory(s["default"]),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.spec;if(e.printObject===!1)return null;var t=e.rest;o(!!e.rest,"Attempting to render a non-rest with Rest");var n=this.props.notehead,i=e.defaultX+(e.relativeX||0),l=this.context.originY-(e.defaultY+(e.relativeY||0)),s=10*u.bboxes[n][0]+6;return r.DOM.g(null,f({fill:e.color,glyphName:n,key:"R",x:i,y:l}),t.measure&&this.props.multipleRest&&r.DOM.text({className:"mmn_",fontWeight:"bold",fontSize:48,textAnchor:"middle",x:i+10*u.bboxes[n][0]/2,y:l-30},this.props.multipleRest.count),e.dots&&e.printDot!==!1?a.map(e.dots,function(e,t){return c({fill:e.color,key:t+"d",radius:2.4,x:i+s+6*t,y:l-(e.defaultY+(e.relativeY||0))})}):null)},t}(r.Component);d.contextTypes={originY:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(2),l=n(16),s=n(9),u=n(6),c=a.createFactory(l["default"]),f=a.createFactory(s["default"]),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.spec,n=e.notehead,i=e.tremolo,l=e.width,s=t.defaultX,d=t.relativeX,h=t.defaultY,p=t.relativeY,m=t.color;if(t.type===r.StemType.Double)return null;var v=t.type===r.StemType.Up?1:-1,g=v*-l/2,y=u.getFontOffset(n,v)||[0],b=s+(d||10*y[0]+g);o(isFinite(b),"Invalid x offset %s",b);var S=this.props.bestHeight*v,w=[];return w.push(c({key:"s",stroke:m,strokeWidth:l,x1:b,x2:b,y1:this.context.originY-h-(p||0)-10*y[1],y2:this.context.originY-h-(p||0)-10*y[1]-S})),i&&w.push(f({key:"t",glyphName:"tremolo"+(i.data||"1"),x:b,fill:"black",y:this.context.originY-h-(p||0)-4*S/5})),1===w.length?w[0]:a.DOM.g(null,w)},t}(a.Component);d.contextTypes={originY:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=d},function(e,t,n){"use strict";function i(e,t,n){return o.forEach(n,function(e){var t={};o.times(e.elements[0].length,function(n){o.forEach(e.elements,function(e){var i=e[n],c=i.model;if(c&&i.renderClass===s.Type.Chord){var f=c,d=o.find(f,function(e){var t=u.notationObj(e);return t&&t.tieds&&t.tieds.length});if((!d||!d.grace)&&d){var h=u.notationObj(d),p=h.tieds;o.forEach(p,function(e){l(isFinite(e.number)&&null!==e.number,"Tieds must have an ID (tied.number)");var n=t[e.number];n&&(e.type===a.StartStopContinue.Start&&console.warn('Found "Start" Tied that continues an existing Tied:',n),n.elements.push(i),r(t,e)),e.type!==a.StartStopContinue.Stop&&(t[e.number]={number:e.number,elements:[i],initial:e})})}}})}),o.forEach(t,function(e,t){console.warn("Tied %s was not closed before the end of the measure (this will be implemented later!)",t)})}),n}function r(e,t){e[t.number].initial.satieTieTo=e[t.number].elements[1],delete e[t.number]}var a=n(3),o=n(1),l=n(2),s=n(5),u=n(8);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(6),s=n(44),u=a.createFactory(s["default"]),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.stroke,n=e.layout,i=n.tuplet,o=n.x,s=i.placement,c=s===r.AboveBelow.Above?8:-8,f=1===o.length,d=this._getX1(),h=this._getX2(),p=this._getY1(1),m=this._getY2(1),v=this._getY1(0),g=this._getY2(0),y=s===r.AboveBelow.Below?p:v,b=s===r.AboveBelow.Below?v:p,S=s===r.AboveBelow.Below?m:g,w=s===r.AboveBelow.Below?g:m;return a.DOM.g(null,!f&&a.DOM.polygon({fill:t,key:"p1",points:d+","+v+" "+h+","+g+" "+h+","+m+" "+d+","+p,stroke:t,strokeWidth:0}),!f&&a.DOM.line({fill:t,key:"p2",stroke:t,strokeWidth:10*l.bravura.engravingDefaults.tupletBracketThickness,x1:d+.5,x2:d+.5,y1:y,y2:b+c}),!f&&a.DOM.line({fill:this.props.stroke,key:"p3",stroke:t,strokeWidth:10*l.bravura.engravingDefaults.tupletBracketThickness,x1:h-.5,x2:h-.5,y1:S,y2:w+c}),u({tuplet:i,x1:d,x2:h,y1:p,y2:m}))},t.prototype.getLineXOffset=function(){return this.direction()*-this.props.stemWidth/2},t.prototype.direction=function(){return this.props.layout.tuplet.placement===r.AboveBelow.Above?1:-1},t.prototype._withXOffset=function(e){return e+10*l.getFontOffset("noteheadBlack",this.direction())[0]+this.getLineXOffset()},t.prototype._getX1=function(){var e=this.props.layout.x;return this._withXOffset(o.first(e))-4},t.prototype._getX2=function(){var e=this.props.layout.x;return this._withXOffset(o.last(e))+4},t.prototype._getY1=function(e){var t=this.context.originY,n=this.props.layout,i=n.y1;return t-i-this.direction()*l.getFontOffset("noteheadBlack",this.direction())[1]*10-(e||0)*(10*l.bravura.engravingDefaults.tupletBracketThickness)},t.prototype._getY2=function(e){var t=this.context.originY,n=this.props.layout,i=n.y2;return t-i-this.direction()*l.getFontOffset("noteheadBlack",this.direction())[1]*10-(e||0)*(10*l.bravura.engravingDefaults.tupletBracketThickness)},t}(a.Component);c.contextTypes={originY:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=c},function(e,t,n){"use strict";function i(e){return r.forEach(e,function(e){r.forEach(e.parts,function(e){var t={};r.forEach(e.voices,function(e){r.forEach(e,function(n){if(n.staffIdx){t[n.staffIdx]=t[n.staffIdx]||{};var i=t[n.staffIdx];i[e.owner]=t[n.staffIdx][e.owner]||[],i[e.owner].push(n)}})}),r.forEach(t,function(e){Object.keys(e).length>1&&(r.forEach(e[1],function(e){e.satieDirection=1}),r.forEach(e[2],function(e){e.satieDirection=-1}))})})}),e}var r=n(1);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){e[o.Type.Direction]=c}var r=n(3),a=n(1),o=n(5),l=n(13),s=n(17),u=n(6),c=function(){function e(e){var t=this;this._class="Direction",a.forEach(e,function(e,n){t[n]=e})}return e.prototype.refresh=function(e){var t=this;a.forEach(this.directionTypes,function(n){n.dynamics&&t.placement===r.AboveBelow.Unspecified&&e.patch(function(e){return e.direction(function(e){return e.placement(r.AboveBelow.Below)})})})},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeDirection(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.toJSON=function(){var e=this,t=e._class,n=e.directionTypes,i=e.staff,r=e.offset,a=e.sound,o=e.placement,l=e.voice,s=e.footnote,u=e.level,c=e.data;return{_class:t,directionTypes:n,staff:i,offset:r,sound:a,placement:o,voice:l,footnote:s,level:u,data:c}},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();c.prototype.divCount=0,c.prototype.divisions=0,function(e){var t=function(){function e(e,t){var n=this;e=Object.create(e),e.directionTypes&&(e.directionTypes=e.directionTypes.slice()),this.model=e,this.x=t.segmentX,this.division=t.segmentDivision;var i=0;switch(e.placement){case r.AboveBelow.Below:i=-60;break;case r.AboveBelow.Above:case r.AboveBelow.Unspecified:i=60;break;default:i=60}this.boundingBoxes=[],a.forEach(e.directionTypes,function(o,c){if(o=e.directionTypes[c]=Object.create(e.directionTypes[c]),a.forEach(o.words,function(e,a){var u=o.words[a],c=t.header.defaults;o.words[a]=Object.create(u),o.words[a].fontSize=o.words[a].fontSize||"18",o.words[a].defaultX=0,o.words[a].defaultY=i;var f=s.getTextBB(o.words[a].fontFamily||"Alegreya",o.words[a].data,parseInt(o.words[a].fontSize,10),o.words[a].fontWeight===r.NormalBold.Normal?null:"bold"),d=c.scaling.millimeters/c.scaling.tenths*40,h=o.words[a];h.top=1.1*-l.mmToTenths(d,f.bottom/l.ptPerMM),h.bottom=1.1*-l.mmToTenths(d,f.top/l.ptPerMM),h.left=1.1*l.mmToTenths(d,f.left/l.ptPerMM),h.right=1.1*l.mmToTenths(d,f.right/l.ptPerMM),n.boundingBoxes.push(h)}),o.dynamics){var f=o.dynamics;o.dynamics=Object.create(f),o.dynamics.defaultX=0,o.dynamics.defaultY=i;var d=o.dynamics;d.left=-10,d.right=30,d.top=-10,d.bottom=30,n.boundingBoxes.push(d)}a.forEach(o.segnos,function(e,t){var r=Object.create(e);o.segnos[t]=r,r.defaultX=r.defaultX||-30,r.defaultY=r.defaultY||i,r.color=r.color||"black";var a=r;a.right=10*u.bboxes.segno[0]+10,a.top=10*-u.bboxes.segno[1]-10,a.left=10*u.bboxes.segno[2]-10,a.bottom=10*-u.bboxes.segno[3]+10,n.boundingBoxes.push(a)})}),this.renderedWidth=0}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=o.Type.Direction,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(c||(c={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(2),l=n(9),s=r.createFactory(l["default"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.layout,t=e.model,n=a.filter(t.directionTypes,function(e){return e.dynamics})[0];o(!!n,"No dynamics found!");var i=n.dynamics,r=this.props.layout.overrideX+i.defaultX+(i.relativeX||0),l=(this.context.originY||0)-i.defaultY-(i.relativeY||0),u=this.getGlyphName(i);return u?s({fill:i.color||"black",glyphName:u,x:r,y:l}):null},t.prototype.getGlyphName=function(e){switch(!0){case e.f:return"dynamicForte";case e.ff:return"dynamicFF";case e.fff:return"dynamicFFF";case e.ffff:return"dynamicFFFF";case e.fffff:return"dynamicFFFFF";case e.ffffff:return"dynamicFFFFFF";case e.fp:return"dynamicFortePiano";case e.fz:return"dynamicForzando";case e.mf:return"dynamicMF";case e.mp:return"dynamicMP";case e.p:return"dynamicPiano";case e.pp:return"dynamicPP";case e.ppp:return"dynamicPPP";case e.pppp:return"dynamicPPPP";case e.ppppp:return"dynamicPPPPP";case e.pppppp:return"dynamicPPPPPP";case e.rf:return"dynamicRinforzando1";case e.rfz:return"dynamicRinforzando2";case e.sf:return"dynamicSforzando1";case e.sffz:return"dynamicSforzatoFF";case e.sfp:return"dynamicSforzandoPiano";case e.sfpp:return"dynamicSforzandoPianissimo";case e.sfz:return"dynamicSforzato";default:return console.warn("Found unknown dynamic!"),null}},t}(r.Component);u.contextTypes={originY:r.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(2),s=n(13),u=n(53),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.layout,n=t.model,i=o.filter(n.directionTypes,function(e){return e.words})[0];l(!!i,"No words found!");var u=i.words,c=this.props.layout.overrideX,f=this.context.originY-u[0].defaultY-(u[0].relativeY||0),d=this.context.scale40;return a.DOM.text({x:c,y:f},o.map(u,function(t,n){var i=t.fontWeight===r.NormalBold.Bold,l=t.fontStyle===r.NormalItalic.Italic,u=s.cssSizeToTenths(d,t.fontSize);return o.map(t.data.split("\n"),function(r,o){return a.DOM.tspan({alignmentBaseline:"hanging",fill:t.color||"black",direction:e.getDirection(t),dx:e.getDX(t,0,o),dy:e.getDY(t,f,o),fontStyle:l?"italic":"normal",fontWeight:i?"bold":"normal",fontFamily:t.fontFamily||"Alegreya",fontSize:u,key:n+"l"+o,letterSpacing:t.letterSpacing&&"normal"!==t.letterSpacing?""+s.cssSizeToTenths(e.context.scale40,t.letterSpacing):"normal",textDecoration:e.getTextDecoration(t),textAnchor:e.getTextAnchor(t),transform:e.getTransform(t),x:e.getX(o)},r)})}))},t}(a.Component);c.contextTypes={originY:a.PropTypes.number.isRequired,scale40:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=c,o.extend(c.prototype,u.Prototype)},function(e,t,n){"use strict";function i(e){e[o.Type.FiguredBass]=l}var r=n(3),a=n(1),o=n(5),l=function(){function e(e){var t=this;this._color=0,a.forEach(e,function(e,n){t[n]=e})}return Object.defineProperty(e.prototype,"color",{get:function(){var e=this._color.toString(16);return"#"+"000000".substr(0,6-e.length)+e},set:function(e){switch(!0){case!e:this._color=0;break;case"#"===e[0]:e=e.slice(1),this._color=parseInt(e,16);break;default:this._color=parseInt(e,16)}},enumerable:!0,configurable:!0}),e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeFiguredBass(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();l.prototype.divCount=0,l.prototype.divisions=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=o.Type.FiguredBass,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(l||(l={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){e[o.Type.Grouping]=l}var r=n(3),a=n(1),o=n(5),l=function(){function e(e){var t=this;a.forEach(e,function(e,n){t[n]=e})}return e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeGrouping(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();l.prototype.divCount=0,l.prototype.divisions=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=o.Type.Grouping,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(l||(l={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){e[o.Type.Harmony]=l}var r=n(3),a=n(1),o=n(5),l=function(){function e(e){var t=this;this._color=0,a.forEach(e,function(e,n){t[n]=e})}return Object.defineProperty(e.prototype,"color",{get:function(){var e=this._color.toString(16);return"#"+"000000".substr(0,6-e.length)+e},set:function(e){switch(!0){case!e:this._color=0;break;case"#"===e[0]:e=e.slice(1),this._color=parseInt(e,16);break;default:this._color=parseInt(e,16)}},enumerable:!0,configurable:!0}),e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeHarmony(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();l.prototype.divCount=0,l.prototype.divisions=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=o.Type.Harmony,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(l||(l={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e,t,n){return r.forEach(n,function(e,t){var i=r.max(r.map(e.elements,function(e){return e.length}));r.times(i,function(i){for(var l=0;l<e.elements.length;++l)if("centered"===e.elements[l][i].expandPolicy){var s=e.elements[l][i].renderedWidth;a(isFinite(s),"Intrinsic width must be set on centered items");var u=void 0,c=r.findIndex(e.elements[0],function(e){return e.renderClass===o.Type.Attributes&&e.renderedWidth>0}),f=0;c!==-1&&c<i?(f=e.elements[0][c].overrideX+e.elements[0][c].renderedWidth,u=r.last(e.elements[l]).overrideX-f):u=n[t-1]?r.last(e.elements[l]).overrideX-(n[t-1].width-r.last(n[t-1].elements[0]).overrideX):r.last(e.elements[l]).overrideX,n[t+1]&&0===n[t+1].width&&(u+=16.6),e.elements[l][i].x=f+u/2-s/2}})}),n}var r=n(1),a=n(2),o=n(5);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return 1/(1+Math.exp(-e))}function r(e,t,n){if(e.singleLineMode&&!e.fixedMeasureWidth)return n;var r=t.left+a.reduce(n,function(e,t){return e+t.width},0),c=a.map(n,function(t,i){var r=n[i].attributes,a=s.scoreParts(e.header.partList)[0].id,o=l.barDivisions(r[a][1]),u=t.maxDivisions;return u<o}),f=Number.POSITIVE_INFINITY;a.forEach(n,function(e,t){var n=a.max(a.map(e.elements,function(e){return e.length}));a.times(n,function(t){for(var n=0;n<e.elements.length;++n)"none"!==e.elements[n][t].expandPolicy&&e.elements[n][t].model&&e.elements[n][t].model.divCount&&(f=Math.min(e.elements[n][t].model.divCount,f))})});var d,h=r<t.right&&e.lineIndex+1===e.lineCount,p=0,m=a.reduce(n,function(e,t,n){return a.reduce(a.last(t.elements),function(e,t){if(c[n]&&"none"!==t.expandPolicy&&++p,!t.model||!t.model.divCount)return e;var i=0;return"none"!==t.expandPolicy&&(i=Math.log(t.model.divCount)-Math.log(f)+1),e+i*(c[n]?u:1)},e)},0);if(m)if(h){var v=t.right-3-r,g=v/(m+(1-u)*p),y=2*i((g-t.right/80)/20)/3;d=(1-y)*g}else{var b=t.right-r;d=b/m}else d=0;var S=!1,w=0,N=0;return a.forEach(n,function(t,n){t.originX+=N;var i=0,r=a.max(a.map(t.elements,function(e){return e.length}));if(e.fixedMeasureWidth){var l=a.times(r,function(e){for(var n=!1,i=0;i<t.elements.length;++i)"none"!==t.elements[i][e].expandPolicy&&(n=!0);return n}),s=l.filter(function(e){return e}).length,h=(e.fixedMeasureWidth-t.width)/s;a.times(r,function(e){for(var n=0;n<t.elements.length;++n)t.elements[n][e].x+=i;l[e]&&(i+=h)})}else a.times(r,function(e){for(var r=0;r<t.elements.length;++r)t.elements[r][e].x+=i;for(var a=!1,l=o.MAX_SAFE_INTEGER,r=0;r<t.elements.length;++r)if("none"!==t.elements[r][e].expandPolicy){if(S=!0,!t.elements[r][e].model||!t.elements[r][e].model.divCount)continue;var s=t.elements[r][e].model.divCount,h=(Math.log(s)-Math.log(f)+1)*(c[n]?u:1);l=Math.min(l,h),a=!0}a&&(i+=d*l,w+=l)});t.width+=i,N+=i}),n}var a=n(1),o=n(7),l=n(8),s=n(15),u=.1;Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";function i(e,t,n){var i=0;return r.forEach(n,function(e,t){e.originX+=i;var n=r.max(r.map(e.elements,function(e){return e.length})),a=-10,o=0;r.times(n,function(t){for(var n=0,i=0,r=0;r<e.elements.length;++r){var l=e.elements[r][t].minSpaceBefore||0,s=e.elements[r][t].minSpaceAfter||0;n=Math.max(n,l),i=Math.max(i,s),e.elements[r][t].x+=o}if(n||i){var u=e.elements[0][t].x-n,c=Math.max(0,a-u);if(c)for(var r=0;r<e.elements.length;++r)e.elements[r][t].x+=c;o+=c,a=e.elements[0][t].x+i}}),e.width+=o,i+=o}),n}var r=n(1);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){var t=e.map(function(e){return new a.vpsc.Variable(e.cy(),e.mxmlBox.fixed?Number.POSITIVE_INFINITY:1)}),n=a.vpsc.generateYConstraints(e,t),i=new a.vpsc.Solver(t,n);i.solve(),t.forEach(function(t,n){return e[n].setYCentre(t.position())}),t=e.map(function(e){return new a.vpsc.Variable(e.cx(),e.mxmlBox.fixed?Number.POSITIVE_INFINITY:1)}),n=a.vpsc.generateXConstraints(e,t),i=new a.vpsc.Solver(t,n),i.solve(),t.forEach(function(t,n){return e[n].setXCentre(t.position())})}function r(e,t,n){return o.forEach(n,function(e,t){var n=[];o.forEach(e.elements,function(e,t){o.forEach(e,function(e,t){o.forEach(e.boundingBoxes,function(t){if(t.left>=t.right&&(console.warn("Invalid left >= right (%s >= %s)",t.left,t.right),t.right=t.left+.01),t.top>=t.bottom&&(console.warn("Invalid top >= bottom (%s >= %s)",t.top,t.bottom),t.bottom=t.top+.01),isNaN(t.top)||isNaN(t.bottom)||isNaN(t.left)||isNaN(t.right))return void console.warn("Invalid box.{top, bottom, left, right} = {%s, %s, %s, %s}",t.top,t.bottom,t.left,t.right);var i=new a.vpsc.Rectangle(e.overrideX+t.defaultX+t.left,e.overrideX+t.defaultX+t.right,t.defaultY+t.top,t.defaultY+t.bottom);i.mxmlBox=t,i.parent=e,n.push(i)})})}),i(n),o.forEach(n,function(e){var t=e.parent.overrideX+e.mxmlBox.defaultX+e.mxmlBox.left,n=e.mxmlBox.defaultY+e.mxmlBox.top,i=e.x,r=e.y;e.mxmlBox.relativeX=i-t,e.mxmlBox.relativeY=r-n})}),n}var a=n(143),o=n(1);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(2),l=n(7),s=n(119),u=r.createFactory(s["default"]),c=r.PropTypes.arrayOf(r.PropTypes.number),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.layout;return r.DOM.g({transform:"translate("+t.originX+")"},a.chain(a.flatten(t.elements)).filter(function(e){return!!e.model}).map(function(t){return u({key:t.key,version:e.props.layout.getVersion(),layout:t,originX:e.props.layout.originX})}).value())},t.prototype.getChildContext=function(){var e=this,t=this.props.layout,n=a.mapValues(t.originY,function(t){return e.extractOrigins(t)}),i=l.MAX_SAFE_INTEGER,r=0;return a.forEach(t.originY,function(e){a.forEach(e,function(e,t){t&&(i=Math.min(e,i),r=Math.max(e,r))})}),{originYByPartAndStaff:n,systemBottom:this.context.originY-i+20.5,systemTop:this.context.originY-r-20.5}},t.prototype.extractOrigins=function(e){var t=this;return a.map(e,function(e){return t.invert(e)})},t.prototype.invert=function(e){return this.context.originY-e},t.prototype.shouldComponentUpdate=function(e){return o(!isNaN(this.props.version),"Invalid non-numeric version "+this.props.version),this.props.version!==e.version||this.props.layout.originX!==e.layout.originX||this.props.layout.width!==e.layout.width},t}(r.Component);f.childContextTypes={originYByPartAndStaff:r.PropTypes.objectOf(c).isRequired,systemBottom:r.PropTypes.number.isRequired,systemTop:r.PropTypes.number.isRequired},f.contextTypes={originY:r.PropTypes.number},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=f},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(3),a=n(4),o=n(1),l=n(2),s=n(13),u=n(53),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.creditImage,n=this.props.creditWords,i=this.context.scale40;if(l(!t,"Not implemented"),l(!!n,"Unknown component type"),n&&!n.length)return a.DOM.g({});var u=n[0].defaultX+(n[0].relativeX||0),c=this.context.originY-(n[0].defaultY+(n[0].relativeY||0));return a.DOM.text({x:u,y:c},o.map(n,function(t,n){var l=t.fontStyle===r.NormalItalic.Italic,f=t.fontWeight===r.NormalBold.Bold,d=s.cssSizeToTenths(i,t.fontSize);return o.map(t.words.split("\n"),function(i,r){return a.DOM.tspan({alignmentBaseline:"hanging",fill:t.color||"black",direction:e.getDirection(t),dx:e.getDX(t,u,r),dy:e.getDY(t,c,r),fontStyle:l?"italic":"normal",fontWeight:f?"bold":"normal",fontFamily:t.fontFamily||"Alegreya",fontSize:d,key:n+"l"+r,letterSpacing:t.letterSpacing&&"normal"!==t.letterSpacing?""+s.cssSizeToTenths(e.context.scale40,t.letterSpacing):"normal",textDecoration:e.getTextDecoration(t),textAnchor:e.getTextAnchor(t),transform:e.getTransform(t),x:e.getX(r)},i)})}))},t}(a.Component);c.contextTypes={originY:a.PropTypes.number.isRequired,scale40:a.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=c,o.extend(c.prototype,u.Prototype)},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(1),o=n(2),l=n(5),s=n(13),u=n(23),c=n(113),f=n(114),d=r.createFactory(c["default"]),h=r.createFactory(f["default"]),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._pageHeight=NaN,t._setSVG=function(e){t.props.svgRef&&t.props.svgRef(e)},t}return i(t,e),t.prototype.render=function(){var e=this,t=this.props.lineLayouts,n=this.props.print,i=parseInt(n.pageNumber,10);o(i>=1,"Page %s isn't a valid page number.",n.pageNumber);var c=this.props.scoreHeader.defaults,f=a.filter(this.props.scoreHeader.credits,function(e){return e.page===i}),p=c.scaling.millimeters/c.scaling.tenths*40,m=n.pageLayout,v="svg-export"===this.props.renderTarget?s.tenthsToMM(p,m.pageWidth)+"mm":"100%",g="svg-export"===this.props.renderTarget?s.tenthsToMM(p,m.pageHeight)+"mm":"100%",y=this.props.singleLineMode?a.last(t[0]).originX+a.last(t[0]).width+u.getPageMargins(m.pageMargins,0).rightMargin:m.pageWidth,b=m.pageHeight;return b!==this._pageHeight&&this.props.onPageHeightChanged&&(this._pageHeight=b,setTimeout(function(){e.props.onPageHeightChanged(b)})),a.forEach(f,l.generateModelKey),r.DOM.svg({className:this.props.className,style:"svg-export"===this.props.renderTarget?void 0:{width:"auto"},"data-page":"svg-export"===this.props.renderTarget?void 0:n.pageNumber,height:g,ref:this._setSVG,viewBox:"0 0 "+y+" "+b,width:v},!this.props.singleLineMode&&a.map(f,h),a.map(t,function(e,t){return a.map(e,function(e){return d({key:e.uuid,layout:e,version:e.getVersion()})})}))},t.prototype.getChildContext=function(){var e=this.props.scoreHeader.defaults,t=this.props.print,n=e.scaling.millimeters/e.scaling.tenths*40;return{originY:t.pageLayout.pageHeight,renderTarget:this.props.renderTarget,scale40:n}},t}(r.Component);p.childContextTypes={originY:r.PropTypes.number.isRequired,renderTarget:r.PropTypes.oneOf(["svg-web","svg-export"]).isRequired,scale40:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=p},function(e,t,n){"use strict";function i(e){return{blankPage:"",measureLayout:null,measureNumbering:{color:"#000000",data:"system",defaultX:null,defaultY:null,fontFamily:"Alegreya, serif",fontSize:"small",fontStyle:o.NormalItalic.Normal,fontWeight:o.NormalBold.Normal,relativeX:0,relativeY:0},newPage:!1,newSystem:!1,pageLayout:e.defaults.pageLayout,pageNumber:"",partAbbreviationDisplay:null,partNameDisplay:null,staffLayouts:e.defaults.staffLayouts,staffSpacing:null,systemLayout:e.defaults.systemLayout}}function r(e){e[u.Type.Print]=f}var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=n(3),l=n(1),s=n(2),u=n(5),c=n(46),f=function(){function e(e){var t=this;this._class="Print",l.forEach(e,function(e,n){t[n]=e})}return e.prototype.refresh=function(e){s(!!e.header,"Cursor must have a valid header"),this.measureNumbering||e.patch(function(e){return e.print(function(e){return e.measureNumbering({data:"system"})})}),"1"!==this.pageNumber&&e.patch(function(e){return e.print(function(e){return e.pageNumber("1")})}),this.systemLayout||e.patch(function(e){return e.print(function(e){return e.systemLayout({})})});var t="1"===this.pageNumber&&0===e.measureInstance.idx;(!this.systemLayout.systemMargins||t&&!this.systemLayout.systemMargins.leftMargin)&&e.patch(function(e){return e.print(function(e){return e.systemLayout(function(e){return e.systemMargins({leftMargin:t?70:0,rightMargin:0})})})});var n=i(e.header);this._snapshot=this.getSnapshot(n,e.singleLineMode,e.header)},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.getSnapshot=function(e,t,n){var i=l.defaultsDeep({measureNumbering:this.measureNumbering,partNameDisplay:this.partNameDisplay,newSystem:this.newSystem,newPage:this.newPage,blankPage:this.blankPage,measureLayout:this.measureLayout,partAbbreviationDisplay:this.partAbbreviationDisplay,pageLayout:this.pageLayout,systemLayout:this.systemLayout,staffSpacing:this.staffSpacing,staffLayouts:this.staffLayouts,pageNumber:this.pageNumber},e);if(t){var r=n.defaults,s=r.scaling.millimeters/r.scaling.tenths*40,u=c.calculateLineBounds(i,0,r.scaling),f=1;return a({},i,{systemLayout:{systemDistance:20,systemDividers:i.systemLayout.systemDividers,systemMargins:{leftMargin:0,rightMargin:0},topSystemDistance:0},pageLayout:a({},i.pageLayout,{pageHeight:10*s*f+u.systemLayout.systemDistance*(f-1)+80,pageMargins:[{bottomMargin:40,leftMargin:0,rightMargin:0,topMargin:40,type:o.OddEvenBoth.Both}]})})}return i},e.prototype.toXML=function(){return o.serializePrint(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.toJSON=function(){var e=this,t=e._class,n=e.measureNumbering,i=e.partNameDisplay,r=e.newSystem,a=e.newPage,o=e.blankPage,l=e.measureLayout,s=e.partAbbreviationDisplay,u=e.pageLayout,c=e.systemLayout,f=e.staffSpacing,d=e.staffLayouts,h=e.pageNumber;return{_class:t,measureNumbering:n,partNameDisplay:i,newSystem:r,newPage:a,blankPage:o,measureLayout:l,partAbbreviationDisplay:s,pageLayout:u,systemLayout:c,staffSpacing:f,staffLayouts:d,pageNumber:h}},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();f.prototype.divCount=0,f.prototype.divisions=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision,this.renderedWidth=0}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=u.Type.Print,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(f||(f={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";function i(e,t,n){r.mutate(t,n)}var r=n(18);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){e[a.Type.Proxy]=o}var r=n(2),a=n(5),o=function(){function e(e){this._class="Proxy",this._target=e}return Object.defineProperty(e.prototype,"divCount",{get:function(){return this._omTarget.divCount},set:function(e){this._omTarget.divCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"staffIdx",{get:function(){return this._omTarget.staffIdx},set:function(e){this._omTarget.staffIdx=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{set:function(e){this._target=e,this._omTarget=Object.create(this._target),this._omTarget.staffIdx=void 0},enumerable:!0,configurable:!0}),e.prototype.toXML=function(){return"<!-- proxy for "+this._target.toXML().replace(/--/g,"\\-\\-")+" -->\n"+("<forward><duration>"+this.divCount+"</duration></forward>\n")},e.prototype.inspect=function(){return this.toXML()},e.prototype.refresh=function(e){r(!!this._target,"A proxy must have a target."),this._omTarget.refresh(e)},e.prototype.getLayout=function(e){return this._omTarget.getLayout(e)},e.prototype.calcWidth=function(e){return this._target?this._target.calcWidth(e):0},e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},a=n(4),o=n(5),l=n(52),s=n(37),u=n(84),c=n(91),f=n(45),d=n(124),h=a.createFactory(s["default"]),p=a.createFactory(u["default"]),m=a.createFactory(c["default"]),v=a.createFactory(f["default"]),g=a.createFactory(d["default"]),y=a.PropTypes.arrayOf(a.PropTypes.number),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.layout;switch(e.renderClass){case o.Type.Attributes:return h({layout:e});case o.Type.Barline:return p({layout:e});case o.Type.Chord:return m({layout:e});case o.Type.Direction:return v({layout:e});case o.Type.VisualCursor:return g({layout:e});default:return null}},t.prototype.getChildContext=function(){var e=this.props.layout;return{originY:this.context.originYByPartAndStaff[e.part][e.model.staffIdx||1]||0}},t.prototype.shouldComponentUpdate=function(e,t){return e.version!==this.props.version||this.props.layout.renderClass===o.Type.Attributes&&this.props.layout.staffWidth!==e.layout.staffWidth},t}(a.Component);b.childContextTypes={originY:a.PropTypes.number},b.contextTypes={originYByPartAndStaff:a.PropTypes.objectOf(y).isRequired},b=r([l.Targetable()],b),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=b},function(e,t,n){"use strict";function i(e,t,n,i){var l=t.part,s=t.ownerType;if(r(6===n.p.length,"Invalid length for segment operation."),r("parts"===n.p[1],"Malformed path."),r(n.p[2]===l,"Invalid fixup part."),r("voices"===n.p[3]||"staves"===n.p[3],"Only voice and staff fixups are supported."),r("voices"===n.p[3]&&"voice"===s||"staves"===n.p[3]&&"staff"===s,"Type/path mismatch"),"li"in n&&!("ld"in n)){var u=n,c=e.fromSpec(u.li);"VisualCursor"===u.li._class&&(i._visualCursor=c),t.splice(n.p[5],0,c)}else if("ld"in n&&!("li"in n)){var f=o.cloneObject(t[n.p[5]]),d=o.cloneObject(n.ld);a.isEqual(f,d)||console.warn("The element to be removed should be accurately specified in the operation.\n\nOPERATION SPEC: "+JSON.stringify(d,null,2)+"\n\nACTUAL SPEC: "+JSON.stringify(f,null,2)+"\n\nYour patch is broken."),t.splice(n.p[5],1)}else r(!1,"Unsupported operation type")}var r=n(2),a=n(1),o=n(7);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){e[o.Type.Sound]=l}var r=n(3),a=n(1),o=n(5),l=function(){function e(e){var t=this;a.forEach(e,function(e,n){t[n]=e})}return e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return r.serializeSound(this)+"\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();l.prototype.divCount=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=o.Type.Sound,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(l||(l={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){/**
	 * @source: https://github.com/jnetterf/satie/
	 *
	 * @license
	 * (C) Josh Netterfield <joshua@nettek.ca> 2015.
	 * Part of the Satie music engraver <https://github.com/jnetterf/satie>.
	 *
	 * This program is free software: you can redistribute it and/or modify
	 * it under the terms of the GNU Affero General Public License as
	 * published by the Free Software Foundation, either version 3 of the
	 * License, or (at your option) any later version.
	 *
	 * This program is distributed in the hope that it will be useful,
	 * but WITHOUT ANY WARRANTY; without even the implied warranty of
	 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	 * GNU Affero General Public License for more details.
	 *
	 * You should have received a copy of the GNU Affero General Public License
	 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
	 */
"use strict";function i(e){e[r.Type.Spacer]=a}var r=n(5),a=function(){function e(e){this._class="Spacer",e&&(this._target=e,this.divCount=e.divCount)}return e.prototype.toJSON=function(){var e=this,t=e._class,n=e.divCount;return{_class:t,divCount:n}},e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return"<!-- spacer -->\n<forward><duration>"+this.divCount+"</duration></forward>\n"},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();!function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision,this.renderedWidth=0}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=r.Type.Spacer,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(a||(a={})),a.prototype.divCount=0,a.prototype.divisions=0,Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){e[r.Type.VisualCursor]=a}var r=n(5),a=function(){function e(t){this._class="VisualCursor",this.staffIdx=1,this._myIdx=++e._lastIdx}return e.prototype.refresh=function(e){},e.prototype.getLayout=function(t){return new e.Layout(this,t)},e.prototype.toXML=function(){return"<!-- visual cursor -->\n"},e.prototype.toJSON=function(){var e=this._class;return{_class:e}},e.prototype.inspect=function(){return this.toXML()},e.prototype.calcWidth=function(e){return 0},e}();a._lastIdx=1,a.prototype.divCount=0,a.prototype.divisions=0,function(e){var t=function(){function e(e,t){this.model=e,this.x=t.segmentX,this.division=t.segmentDivision,this.renderedWidth=0}return e}();e.Layout=t,t.prototype.expandPolicy="none",t.prototype.renderClass=r.Type.VisualCursor,t.prototype.boundingBoxes=[],Object.freeze(t.prototype.boundingBoxes)}(a||(a={})),Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=n(16),o=r.createFactory(a["default"]),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){var e=this.props.layout,t=e.x,n=this.context.systemTop,i=this.context.systemBottom,r=n-i;return o({stroke:"#428bca",strokeWidth:2,x1:t-4,x2:t-4,y1:n+.5*r,y2:i-.5*r})},t}(r.Component);l.contextTypes={originY:r.PropTypes.number.isRequired,systemBottom:r.PropTypes.number.isRequired,systemTop:r.PropTypes.number.isRequired},Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=l},function(e,t,n){"use strict";function i(e){for(var t=e.before,n=e.current,i=e.staff,o=e.measure,s=n.clefs||[],u=n.times||[],c=n.transposes||[],f=n.keySignatures||[],d=[],h=t.staffDetails||[],p=n.staffDetails||[],m=0;m<h.length||m<p.length;++m)d[m]=r(p[m]||{},l.clone(h[m]||{}));for(var v=[],g=t.clefs||[],m=0;m<g.length||m<s.length;++m)v[m]=s[m]||g[m];for(var y=[],b=t.times||[],m=0;m<b.length||m<u.length;++m)y[m]=u[m]||b[m];for(var S=[],w=t.transposes||[],m=0;m<w.length||m<c.length;++m)S[m]=c[m]||w[m];for(var N=[],D=t.keySignatures||[],m=0;m<D.length||m<f.length;++m)N[m]=f[m]||D[m];var T={measure:o,divisions:n.divisions||t.divisions,partSymbol:n.partSymbol||t.partSymbol,clef:s[i]||t.clef,time:u[0]||t.time,staffDetails:d,transpose:c[i]||t.transpose,instruments:n.instruments||t.instruments,keySignature:f[0]||t.keySignature,directives:n.directives,staves:n.staves||t.staves,measureStyle:a(n,JSON.parse(JSON.stringify(t.measureStyle||{}))),clefs:v,times:y,transposes:S,keySignatures:N};return T}function r(e,t){return e=s.cloneObject(e),e.capo=e.capo||t.capo,e.showFrets=e.showFrets||t.showFrets,e.staffLines=e.staffLines||t.staffLines,e.staffSize=e.staffSize||t.staffSize,e.staffTunings=e.staffTunings||t.staffTunings,e.staffType=e.staffType||t.staffType,e}function a(e,t){var n;if(l.forEach(e.measureStyles,function(e){e.slash&&(e.slash.type===o.StartStop.Stop?delete t.slash:t.slash=e.slash),e.beatRepeat&&(e.beatRepeat.type===o.StartStop.Stop?delete t.beatRepeat:t.beatRepeat=e.beatRepeat),e.measureRepeat&&(e.measureRepeat.type===o.StartStop.Stop?delete t.measureRepeat:t.measureRepeat=e.measureRepeat),e.multipleRest&&(n=!0,t.multipleRestInitiatedHere=!0,t.multipleRest=e.multipleRest)}),n||(t.multipleRestInitiatedHere=!1),t.multipleRest&&!n){var i=t.multipleRest,r=i.count,a=i.useSymbols;r-1?t.multipleRest={count:r-1,useSymbols:a}:t.multipleRest=null}return t}var o=n(3),l=n(1),s=n(7);t.createAttributesSnapshot=i},function(e,t,n){"use strict";function i(e){var t={x:e.x,division:e.division,renderClass:e.renderClass};return t.expandPolicy=e.expandPolicy,"centered"===e.expandPolicy&&o(!isNaN(e.renderedWidth),"renderedWidth must be a number for centered objects, but it's %s",e.renderedWidth),isNaN(e.renderedWidth)||(t.renderedWidth=e.renderedWidth),t}function r(e){var t={model:null,x:e.x,division:e.division,renderClass:e.renderClass};return t.expandPolicy=e.expandPolicy,"centered"===e.expandPolicy&&o(!isNaN(e.renderedWidth),"renderedWidth must be a number for centered objects, but it's %s",e.renderedWidth),isNaN(e.renderedWidth)||(t.renderedWidth=e.renderedWidth),t}function a(e,t){for(var n=0,a=0,l=0;n<e.length||a<t.length;){var s=e[n],u=t[a],c=s?s.division:Number.MAX_VALUE,f=s?s.renderClass:Number.MAX_VALUE,d=u?u.division:Number.MAX_VALUE,h=u?u.renderClass:Number.MAX_VALUE;c<d||c===d&&f<h?(l=s.x,o(!!t,"Segment2 must be defined"),t.splice(a,0,r(s))):d<c||d===c&&h<f?(l=u.x,e.splice(n,0,i(u))):(o(!!s,"div2 must be defined and have a valid division (is %s) & renderClass (is %s)",d,h),o(!!u,"div1 must be defined and have a valid division (is %s) & renderClass (is %s)",c,f),o(f===h,"invalid priority: %s must equal %s",f,h),o(c===d,"invalid division"),s.x=u.x=l=Math.max(s.x||0,u.x||0,l)),++n,++a}return e}var o=n(2);t.combineLayout=i,t.reattachLayout=r,t.mergeSegmentsInPlace=a},function(e,t,n){"use strict";var i=n(2),r=n(20),a=n(5),o=n(7),l=function(){function e(e){this.document=e.document,this.segmentDivision=0,this.factory=e.factory,this.header=e.header,this.segmentPosition=0,this.print=e.print,this.segmentInstance=e.segment,this.staffAttributes=e.staffAttributes,this.staffAccidentals=e.staffAccidentals,this.measureInstance=e.measureInstance,this.measureIsLast=e.measureIsLast,this.staffIdx=e.staffIdx,this.preview=!!e.preview,this.fixup=e.fixup,this.singleLineMode=e.singleLineMode}return e.prototype["const"]=function(){return this},e.prototype.dangerouslyPatchWithoutValidation=function(e){var t=this,n=r["default"](!0,this.document,this.measureInstance.uuid,this.segmentInstance.part,function(n){if("staff"===t.segmentInstance.ownerType)return n.staff(t.segmentInstance.owner,e,t.segmentPosition);if("voice"===t.segmentInstance.ownerType)return n.voice(t.segmentInstance.owner,e,t.segmentPosition);throw new Error("Not reached")});this.fixup(o.cloneObject(n))},e.prototype.patch=function(e,t){var n=this,i=r["default"](this.preview,this.document,this.measureInstance.uuid,this.segmentInstance.part,function(t){if("staff"===n.segmentInstance.ownerType)return t.staff(n.segmentInstance.owner,e,n.segmentPosition);if("voice"===n.segmentInstance.ownerType)return t.voice(n.segmentInstance.owner,e,n.segmentPosition);throw new Error("Not reached")});this.fixup(o.cloneObject(i))},e.prototype.advance=function(e){i("staff"===this.segmentInstance.ownerType,"Only valid in staff context"),this.segmentDivision+=e,this.fixup([{p:[String(this.measureInstance.uuid),"parts",this.segmentInstance.part,"staves",this.segmentInstance.owner,this.segmentPosition],li:{_class:a.Type[a.Type.Spacer],divCount:e}}])},e}();t.ValidationCursor=l;var s=function(){function e(e){this._validationCursor=e.validationCursor,this.segmentX=e.x,this.measureX=e.measureX,this.lineShortest=e.lineShortest,this.lineBarOnLine=e.lineBarOnLine,this.lineTotalBarsOnLine=e.lineTotalBarsOnLine,this.lineIndex=e.lineIndex,this.lineCount=e.lineCount,this.lineMaxPaddingBottomByStaff=[],this.lineMaxPaddingTopByStaff=[]}return Object.defineProperty(e.prototype,"document",{get:function(){return this._validationCursor.document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentInstance",{get:function(){return this._validationCursor.segmentInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentPosition",{get:function(){return this._validationCursor.segmentPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"segmentDivision",{get:function(){return this._validationCursor.segmentDivision},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"staffAttributes",{get:function(){return this._validationCursor.staffAttributes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"staffAccidentals",{get:function(){return this._validationCursor.staffAccidentals},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"staffIdx",{get:function(){return this._validationCursor.staffIdx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measureInstance",{get:function(){return this._validationCursor.measureInstance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"print",{get:function(){return this._validationCursor.print},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"header",{get:function(){return this._validationCursor.header},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"factory",{get:function(){return this._validationCursor.factory},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._validationCursor.preview},enumerable:!0,configurable:!0}),e}();t.LayoutCursor=s},function(e,t,n){"use strict";function i(e){var t={attributes:e.attributes,print:e.print,elements:r.map(e.elements,function(e){return r.map(e,a.detach)}),width:e.width,maxDivisions:e.maxDivisions,originX:e.originX,originY:r.mapValues(e.originY,function(e){return e.slice()}),paddingTop:e.paddingTop.slice(),paddingBottom:e.paddingBottom.slice(),getVersion:e.getVersion,uuid:e.uuid};return t}var r=n(1),a=n(5);t.detach=i},function(e,t){"use strict";function n(e,t){var n=e+String(t);if(!a[n]){for(var i=[],r=0;r<e.length;++r){i.push(e[r]);for(var o=1;o<t;++o)i.push("r"===e[r]?"_":e[r])}a[n]=i.join("")}return a[n]}function i(e,t,n){for(var i=[],r=5;r>0;--r){var a=Math.pow(2,r);e%a===0&&i.push(e/a);var o=e/a,l=e/a,s=0;if(n)for(;o%2===0&&s+1<=3;)o/=2,l+=o,++s,i.push(l)}return i.reverse(),i}function r(e,t,n,i){var r=p[e];if(!r)return"ERR: No such time signature "+e+".";var a=parseInt(e.split("/")[0],10);if(isNaN(a))return"ERR: No such time signature "+e;var o=parseInt(e.split("/")[1],10);if(isNaN(o))return"ERR: No such time signature "+e;var l=t/a/4*o;return l!==Math.round(l)?"ERR: Invalid bar length "+t+". Divisions per quarter note must be an integer.":r.checkRests(l,n,i)}var a={},o=function(){function e(e,t,n){this._ruleBeats=e,this._ruleBeatType=t,this._restRules=n}return e.prototype.isSimple=function(){return 1===this._ruleBeats||2===this._ruleBeats||3===this._ruleBeats||4===this._ruleBeats},e.prototype.checkRests=function(t,r,a){var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",l=4*t/this._ruleBeatType,s=this._restRules.filter(function(t){return a.dotsAllowed||t.search(e.dotRule)===-1}).map(function(e){return n(e,l)});r=n(r,1/l);var u=s[0].length,c=u/this._ruleBeats,f=i(c,this._ruleBeats,a.dotsAllowed),d=i(c,this._ruleBeats,!1);if(r.length>u)return"split "+u+" "+s[0].length;if(r.length<s[0].length)return"apply "+u+" "+(r.split("").map(function(){return"."}).join("")+Array(s[0].length-r.length+1).join("r"));if(r.length!==u)return"ERR: "+r.length+" !== "+this._ruleBeats;for(var h=0;h<r.length;++h)if("r"===r[h]&&h%c>0){for(var p=h;"_"===r[p+1];)++p;var m=(p-h+1)/c;if(m>=1){for(var v=h+1;v%c!==0;)++v;for(var g=v+=1;g%c!==0&&r[g]&&"."!==r[g];)++g;var y=Array(v).join(".")+"r"+Array(g-v+1).join("_")+Array(r.length-g+1).join(".");return"apply "+u+" "+y}}for(var b=new Array(r.length+1).join(" ").split(""),S=0;S<s.length;++S)for(var w=s[S],h=0;h<w.length;++h)if("r"===w[h]&&"r"===r[h]&&" "===b[h]){var N=!0,D=!0;e:for(var p=h+1;p<w.length;++p)if("_"!==w[p]||"_"!==r[p]){if("_"!==w[p]){if("_"===r[p]){for(var T=p;"_"===r[T+1];)++T;return"apply "+u+" "+(Array(p+1).join(".")+"r"+Array(T-p+1).join("_")+Array(r.length-T).join("."))}break e}if(" "!==b[p]){N=!1,D=!1;break e}if("r"===r[p])D=!1;else{if("."===r[p]){N=!1;break e}if("_"===r[p])throw new Error("Not reached")}}if(N&&!D)return"apply "+u+" "+w;if(N)for(var p=0;p<w.length;++p)if("."!==w[p]){if(" "!==b[p])throw new Error("Double match.");b[p]=o[S]}}else if("*"===w[h]&&"r"===r[h]&&" "===b[h])if(this.isSimple()){var F="";e:for(var p=0;p<f.length;++p){for(var x=f[p],T=h;"*"===w[T+1]&&" "===b[T+1]&&"."!==r[T+1];)++T;var k=T-h+1;if(k>=x){for(var B=d.indexOf(x)===-1,C="*"!==w[h+x],L=w.split("*").length-1,W=w.indexOf("*"),_=!1,O=2;O<=16;O*=2)for(var U=1;U<O;++U){var A=W+U*L/O;if(h<A&&h+x>A&&(_=!0),h<A&&h>A-L/O&&h+x>A&&h+x<A+L/O)continue e}for(var E=B&&(C||_),U=h+1;U<h+x;++U)if("r"===r[U]){var M=F||Array(h+1).join(".")+"r"+Array(h+x-h).join("_")+Array(r.length-(h+x)+1).join(".");if(E){F=M;continue e}return"apply "+u+" "+M}if("_"===r[h+x]){for(var U=h+x;"_"===r[U];)++U;return"apply "+u+" "+(Array(h+x+1).join(".")+"r"+Array(U-(h+x)).join("_")+Array(r.length-U+1).join("."))}for(var U=h;U<h+x;++U)b[U]=o[S];break e}}}else e:for(var p=0;p<f.length;++p){for(var x=f[p],T=h;"*"===w[T+1]&&" "===b[T+1]&&"."!==r[T+1];)++T;var k=T-h+1;if(k>=x){if("_"===r[h+x]){for(var U=h+x;"_"===r[U];)++U;return"apply "+u+" "+(Array(h+x+1).join(".")+"r"+Array(U-(h+x)).join("_")+Array(r.length-U+1).join("."))}for(var U=h;U<h+x;++U)b[U]=o[S];break e}}for(var h=0;h<r.length;++h)if(" "===b[h]&&"."!==r[h]){for(var p=h;"_"===r[p+1];)++p;return"apply "+u+" "+(Array(h+1).join(".")+"r"+Array(p-h+1).join("_")+Array(r.length-p).join("."))}return"GOOD"},e}();o.dotRule=/r__(\.|$)/;var l=Object.freeze(["r","*"]),s=Object.freeze(["r_","r.",".r","*.",".*"]),u=Object.freeze(["r__","r..",".r.","..r","*..",".*.","..*"]),c=Object.freeze(["r___","r_..","..r_","r...",".r..","..r.","...r","*...",".*..","..* ","...*"]),f=Object.freeze(["r_____","r__...","...r__","r_....","...r_.","r.....",".r....","..r...","...r..","....r.",".....r","*.....",".*....","..*...","...*..","....*.",".....*"]),d=Object.freeze(["r________","r__......","...r__...","......r__","r_.......","...r_....","......r_.","r........",".r.......","..r......","...r.....","....r....",".....r...","......r..",".......r.","........r","*........",".*.......","..*......","...*.....","....*....",".....*...","......*..",".......*.","........*"]),h=Object.freeze(["r___________","r_____......","......r_____","r__.........","...r__......","......r__...",".........r__","r_..........","...r_.......","......r_....",".........r_.","r...........",".r..........","..r.........","...r........","....r.......",".....r......","......r.....",".......r....","........r...",".........r..","..........r.","...........r","*...........",".*..........","..*.........","...*........","....*.......",".....*......","......*.....",".......*....","........*...",".........*..","..........*.",".......... *"]),p=Object.freeze({"4/8":new o(4,8,c),"2/4":new o(2,4,s),"1/2":new o(1,2,l),"4/4":new o(4,4,c),"2/2":new o(2,2,s),"1/1":new o(1,1,l),"6/16":new o(6,16,f),"6/8":new o(6,8,f),"6/4":new o(6,4,f),"12/8":new o(12,8,h),"3/4":new o(3,4,u),"3/8":new o(3,8,u),"9/8":new o(9,8,d)});Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r},function(e,t,n){"use strict";function i(e,t,n){var i,r={song:"",models:[],modelsToKill:[]},a=0,s=0,u=e.reduce(function(e,t){var n=t.newDivisions||0,r=t.previousDivisions||0,o=t.previousDivisions>n?"r"+l.times(t.previousDivisions-n-1,function(){return"_"}).join(""):"",u=e.modelsToKill;if(a>0){var c=n>a?"r"+l.times(n-a-1,function(){return"_"}).join(""):"";a=Math.max(0,a-n);var f=u.slice();return f[i]=f[i]||[],f[i].push(t),{song:e.song+c,models:e.models.concat(l.times(c.length,function(){return"killed"})),modelsToKill:f}}if(0===n){var f=u.slice();return f[s]=f[s]||[],f[s].push(t),{song:e.song,models:e.models,modelsToKill:f}}n&&(s=e.models.length+n);var d=e.models.concat(l.times(n,function(){return t})).concat(o.split("").map(function(){return null}));return n>r&&(i=d.length,a=n-r),t.rest&&n?{song:e.song+"r"+l.times(n-1,function(){return"_"}).join("")+o,models:d,modelsToKill:u}:{song:e.song+l.times(n,function(){return"."}).join("")+o,models:d,modelsToKill:u}},r);o(u.models.length===u.song.length,"Invalid spec");var c=f.barDivisions(t),d=(c-u.song.length%c)%c;return{song:d?u.song.concat("r"+l.times(d-1,function(){return"_"}).join("")):u.song,models:u.models,modelsToKill:u.modelsToKill}}function r(e,t){for(var n=u["default"](t),i=function(){return s["default"](n,e.length,e,{dotsAllowed:!0})},r=15,a=i();"GOOD"!==a;a=i()){if(!--r)throw new Error("Rest cleanup timeout");var l=a.split(" ");o("apply"===l[0],"Unexpected instruction '%s'",a),o(parseInt(l[1],10)===e.length,"Unexpected length change from %s to %s",l[1],e.length);for(var c=l[2],f="",d=0;d<e.length;++d)f+="."===c[d]?"."!==f[d]&&d&&"."!==c[d-1]?"r":e[d]:c[d];e=f}return e}function a(e,t,n){function a(t){t.newDivisions?(o(e.indexOf(t)>-1,"Model must be present in segment"),p.push({ld:t.toSpec(),p:[m+1]}),--m):++m}for(var s=i(e,n,t),u=f.barDivisions(n),d="",h=0;h<s.song.length;h+=u)d+=r(s.song.slice(h,h+u),n.time);for(var p=[],m=-1,h=0;h<d.length;++h){var v=s.models[h];if(l.forEach(s.modelsToKill[h],a),v&&v!==s.models[h-1]&&++m,"r"===d[h]){for(var g=h+1;"_"===d[g];)++g;var y=c.makeDuration(u/parseInt(n.time.beats[0],10)*(4/n.time.beatTypes[0]),n.time,g-h);if("r"!==s.song[h]&&"killed"!==v&&v)++m,y[0].rest=y[0].rest||{},y._class="Chord",p.push({li:y,p:[m]});else{for(var b=h+1;"_"===s.song[b];)++b;if(v&&"killed"!==v){if(g!==b){if(!v.rest)throw new Error("Expected rest");var S=l.times(v.newDots,function(){return{}});JSON.stringify(S)!==JSON.stringify(y[0].dots)&&p.push({od:S,oi:y[0].dots,p:[m,"notes",0,"dots"]}),v.newCount!==y[0].noteType.duration&&p.push({od:v.newCount,oi:y[0].noteType.duration,p:[m,"notes",0,"noteType","duration"]})}}else++m,y[0].rest=y[0].rest||{},y._class="Chord",p.push({li:y,p:[m]})}}else if(("_"===d[h]||"."===d[h])&&"r"===s.song[h]){var w=s.models[h];if("killed"===w)throw new Error("Not reached");o(!!w,"Cannot remove undefined model"),o(e.indexOf(w)>-1,"Model must be present in segment"),p.push({ld:w.toSpec(),p:[m]}),--m}}return l.forEach(s.modelsToKill[s.models.length],a),p}var o=n(2),l=n(1),s=n(129),u=n(48),c=n(49),f=n(8);t.voiceToRestSpec=i,t.simplifyRests=a},function(e,t){"use strict";var n=function(){function e(e,t){this.isPatches=!0,this.content=e.slice(),this.isPreview=t,Object.freeze(this.content),this.content.forEach(function(e){Object.freeze(e),Object.freeze(e.p),Object.freeze(e.ld),Object.freeze(e.li),Object.freeze(e.od),Object.freeze(e.oi),Object.seal(e)}),Object.seal(this)}return e}();Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t){"use strict";var n={"4stringTabClef":"","6stringTabClef":"",accSagittal11LargeDiesisDown:"",accSagittal11LargeDiesisUp:"",accSagittal11MediumDiesisDown:"",accSagittal11MediumDiesisUp:"",accSagittal11v19LargeDiesisDown:"",accSagittal11v19LargeDiesisUp:"",accSagittal11v19MediumDiesisDown:"",accSagittal11v19MediumDiesisUp:"",accSagittal11v49CommaDown:"",accSagittal11v49CommaUp:"",accSagittal143CommaDown:"",accSagittal143CommaUp:"",accSagittal17CommaDown:"",accSagittal17CommaUp:"",accSagittal17KleismaDown:"",accSagittal17KleismaUp:"",accSagittal19CommaDown:"",accSagittal19CommaUp:"",accSagittal19SchismaDown:"",accSagittal19SchismaUp:"",accSagittal23CommaDown:"",accSagittal23CommaUp:"",accSagittal23SmallDiesisDown:"",accSagittal23SmallDiesisUp:"",accSagittal25SmallDiesisDown:"",accSagittal25SmallDiesisUp:"",accSagittal35LargeDiesisDown:"",accSagittal35LargeDiesisUp:"",accSagittal35MediumDiesisDown:"",accSagittal35MediumDiesisUp:"",accSagittal49LargeDiesisDown:"",accSagittal49LargeDiesisUp:"",accSagittal49MediumDiesisDown:"",accSagittal49MediumDiesisUp:"",accSagittal49SmallDiesisDown:"",accSagittal49SmallDiesisUp:"",accSagittal55CommaDown:"",accSagittal55CommaUp:"",accSagittal5CommaDown:"",accSagittal5CommaUp:"",accSagittal5v11SmallDiesisDown:"",accSagittal5v11SmallDiesisUp:"",accSagittal5v13LargeDiesisDown:"",accSagittal5v13LargeDiesisUp:"",accSagittal5v13MediumDiesisDown:"",accSagittal5v13MediumDiesisUp:"",accSagittal5v19CommaDown:"",accSagittal5v19CommaUp:"",accSagittal5v23SmallDiesisDown:"",accSagittal5v23SmallDiesisUp:"",accSagittal5v49MediumDiesisDown:"",accSagittal5v49MediumDiesisUp:"",accSagittal5v7KleismaDown:"",accSagittal5v7KleismaUp:"",accSagittal7CommaDown:"",accSagittal7CommaUp:"",accSagittal7v11CommaDown:"",accSagittal7v11CommaUp:"",accSagittal7v11KleismaDown:"",accSagittal7v11KleismaUp:"",accSagittal7v19CommaDown:"",accSagittal7v19CommaUp:"",accSagittalAcute:"",accSagittalDoubleFlat:"",accSagittalDoubleFlat11v49CUp:"",accSagittalDoubleFlat143CUp:"",accSagittalDoubleFlat17CUp:"",accSagittalDoubleFlat17kUp:"",accSagittalDoubleFlat19CUp:"",accSagittalDoubleFlat19sUp:"",accSagittalDoubleFlat23CUp:"",accSagittalDoubleFlat23SUp:"",accSagittalDoubleFlat25SUp:"",accSagittalDoubleFlat49SUp:"",accSagittalDoubleFlat55CUp:"",accSagittalDoubleFlat5CUp:"",accSagittalDoubleFlat5v11SUp:"",accSagittalDoubleFlat5v19CUp:"",accSagittalDoubleFlat5v23SUp:"",accSagittalDoubleFlat5v7kUp:"",accSagittalDoubleFlat7CUp:"",accSagittalDoubleFlat7v11CUp:"",accSagittalDoubleFlat7v11kUp:"",accSagittalDoubleFlat7v19CUp:"",accSagittalDoubleSharp:"",accSagittalDoubleSharp11v49CDown:"",accSagittalDoubleSharp143CDown:"",accSagittalDoubleSharp17CDown:"",accSagittalDoubleSharp17kDown:"",accSagittalDoubleSharp19CDown:"",accSagittalDoubleSharp19sDown:"",accSagittalDoubleSharp23CDown:"",accSagittalDoubleSharp23SDown:"",accSagittalDoubleSharp25SDown:"",accSagittalDoubleSharp49SDown:"",accSagittalDoubleSharp55CDown:"",accSagittalDoubleSharp5CDown:"",accSagittalDoubleSharp5v11SDown:"",accSagittalDoubleSharp5v19CDown:"",accSagittalDoubleSharp5v23SDown:"",accSagittalDoubleSharp5v7kDown:"",accSagittalDoubleSharp7CDown:"",accSagittalDoubleSharp7v11CDown:"",accSagittalDoubleSharp7v11kDown:"",accSagittalDoubleSharp7v19CDown:"",accSagittalFlat:"",accSagittalFlat11LDown:"",accSagittalFlat11MDown:"",accSagittalFlat11v19LDown:"",accSagittalFlat11v19MDown:"",accSagittalFlat11v49CDown:"",accSagittalFlat11v49CUp:"",accSagittalFlat143CDown:"",accSagittalFlat143CUp:"",accSagittalFlat17CDown:"",accSagittalFlat17CUp:"",accSagittalFlat17kDown:"",accSagittalFlat17kUp:"",accSagittalFlat19CDown:"",accSagittalFlat19CUp:"",accSagittalFlat19sDown:"",accSagittalFlat19sUp:"",accSagittalFlat23CDown:"",accSagittalFlat23CUp:"",accSagittalFlat23SDown:"",accSagittalFlat23SUp:"",accSagittalFlat25SDown:"",accSagittalFlat25SUp:"",accSagittalFlat35LDown:"",accSagittalFlat35MDown:"",accSagittalFlat49LDown:"",accSagittalFlat49MDown:"",accSagittalFlat49SDown:"",accSagittalFlat49SUp:"",accSagittalFlat55CDown:"",accSagittalFlat55CUp:"",accSagittalFlat5CDown:"",accSagittalFlat5CUp:"",accSagittalFlat5v11SDown:"",accSagittalFlat5v11SUp:"",accSagittalFlat5v13LDown:"",accSagittalFlat5v13MDown:"",accSagittalFlat5v19CDown:"",accSagittalFlat5v19CUp:"",accSagittalFlat5v23SDown:"",accSagittalFlat5v23SUp:"",accSagittalFlat5v49MDown:"",accSagittalFlat5v7kDown:"",accSagittalFlat5v7kUp:"",accSagittalFlat7CDown:"",accSagittalFlat7CUp:"",accSagittalFlat7v11CDown:"",accSagittalFlat7v11CUp:"",accSagittalFlat7v11kDown:"",accSagittalFlat7v11kUp:"",accSagittalFlat7v19CDown:"",accSagittalFlat7v19CUp:"",accSagittalGrave:"",accSagittalShaftDown:"",accSagittalShaftUp:"",accSagittalSharp:"",accSagittalSharp11LUp:"",accSagittalSharp11MUp:"",accSagittalSharp11v19LUp:"",accSagittalSharp11v19MUp:"",accSagittalSharp11v49CDown:"",accSagittalSharp11v49CUp:"",accSagittalSharp143CDown:"",accSagittalSharp143CUp:"",accSagittalSharp17CDown:"",accSagittalSharp17CUp:"",accSagittalSharp17kDown:"",accSagittalSharp17kUp:"",accSagittalSharp19CDown:"",accSagittalSharp19CUp:"",accSagittalSharp19sDown:"",accSagittalSharp19sUp:"",accSagittalSharp23CDown:"",accSagittalSharp23CUp:"",accSagittalSharp23SDown:"",accSagittalSharp23SUp:"",accSagittalSharp25SDown:"",accSagittalSharp25SUp:"",accSagittalSharp35LUp:"",accSagittalSharp35MUp:"",accSagittalSharp49LUp:"",accSagittalSharp49MUp:"",accSagittalSharp49SDown:"",accSagittalSharp49SUp:"",accSagittalSharp55CDown:"",accSagittalSharp55CUp:"",accSagittalSharp5CDown:"",accSagittalSharp5CUp:"",accSagittalSharp5v11SDown:"",accSagittalSharp5v11SUp:"",accSagittalSharp5v13LUp:"",accSagittalSharp5v13MUp:"",accSagittalSharp5v19CDown:"",accSagittalSharp5v19CUp:"",accSagittalSharp5v23SDown:"",accSagittalSharp5v23SUp:"",accSagittalSharp5v49MUp:"",accSagittalSharp5v7kDown:"",accSagittalSharp5v7kUp:"",accSagittalSharp7CDown:"",accSagittalSharp7CUp:"",accSagittalSharp7v11CDown:"",accSagittalSharp7v11CUp:"",accSagittalSharp7v11kDown:"",accSagittalSharp7v11kUp:"",accSagittalSharp7v19CDown:"",accSagittalSharp7v19CUp:"",accSagittalUnused1:"",accSagittalUnused2:"",accSagittalUnused3:"",accSagittalUnused4:"",accdnCombDot:"",accdnCombLH2RanksEmpty:"",accdnCombLH3RanksEmptySquare:"",accdnCombRH3RanksEmpty:"",accdnCombRH4RanksEmpty:"",accdnDiatonicClef:"",accdnLH2Ranks16Round:"",accdnLH2Ranks8Plus16Round:"",accdnLH2Ranks8Round:"",accdnLH2RanksFullMasterRound:"",accdnLH2RanksMasterPlus16Round:"",accdnLH2RanksMasterRound:"",accdnLH3Ranks2Plus8Square:"",accdnLH3Ranks2Square:"",accdnLH3Ranks8Square:"",accdnLH3RanksDouble8Square:"",accdnLH3RanksTuttiSquare:"",accdnPull:"",accdnPush:"",accdnRH3RanksAccordion:"",accdnRH3RanksAuthenticMusette:"",accdnRH3RanksBandoneon:"",accdnRH3RanksBassoon:"",accdnRH3RanksClarinet:"",accdnRH3RanksDoubleTremoloLower8ve:"",accdnRH3RanksDoubleTremoloUpper8ve:"",accdnRH3RanksFullFactory:"",accdnRH3RanksHarmonium:"",accdnRH3RanksImitationMusette:"",accdnRH3RanksLowerTremolo8:"",accdnRH3RanksMaster:"",accdnRH3RanksOboe:"",accdnRH3RanksOrgan:"",accdnRH3RanksPiccolo:"",accdnRH3RanksTremoloLower8ve:"",accdnRH3RanksTremoloUpper8ve:"",accdnRH3RanksTwoChoirs:"",accdnRH3RanksUpperTremolo8:"",accdnRH3RanksViolin:"",accdnRH4RanksAlto:"",accdnRH4RanksBassAlto:"",accdnRH4RanksMaster:"",accdnRH4RanksSoftBass:"",accdnRH4RanksSoftTenor:"",accdnRH4RanksSoprano:"",accdnRH4RanksTenor:"",accdnRicochet2:"",accdnRicochet3:"",accdnRicochet4:"",accdnRicochet5:"",accdnRicochet6:"",accdnRicochetStem2:"",accdnRicochetStem3:"",accdnRicochetStem4:"",accdnRicochetStem5:"",accdnRicochetStem6:"",accidental1CommaFlat:"",accidental1CommaSharp:"",accidental2CommaFlat:"",accidental2CommaSharp:"",accidental3CommaFlat:"",accidental3CommaSharp:"",accidental4CommaFlat:"",accidental5CommaSharp:"",accidentalArrowDown:"",accidentalArrowUp:"",accidentalBakiyeFlat:"",accidentalBakiyeSharp:"",accidentalBuyukMucennebFlat:"",accidentalBuyukMucennebSharp:"",accidentalCombiningCloseCurlyBrace:"",accidentalCombiningLower17Schisma:"",accidentalCombiningLower19Schisma:"",accidentalCombiningLower23Limit29LimitComma:"",accidentalCombiningLower31Schisma:"",accidentalCombiningOpenCurlyBrace:"",accidentalCombiningRaise17Schisma:"",accidentalCombiningRaise19Schisma:"",accidentalCombiningRaise23Limit29LimitComma:"",accidentalCombiningRaise31Schisma:"",accidentalCommaSlashDown:"",accidentalCommaSlashUp:"",accidentalDoubleFlat:"",accidentalDoubleFlatEqualTempered:"",accidentalDoubleFlatOneArrowDown:"",accidentalDoubleFlatOneArrowUp:"",accidentalDoubleFlatReversed:"",accidentalDoubleFlatThreeArrowsDown:"",accidentalDoubleFlatThreeArrowsUp:"",accidentalDoubleFlatTurned:"",accidentalDoubleFlatTwoArrowsDown:"",accidentalDoubleFlatTwoArrowsUp:"",accidentalDoubleSharp:"",accidentalDoubleSharpEqualTempered:"",accidentalDoubleSharpOneArrowDown:"",accidentalDoubleSharpOneArrowUp:"",accidentalDoubleSharpThreeArrowsDown:"",accidentalDoubleSharpThreeArrowsUp:"",accidentalDoubleSharpTwoArrowsDown:"",accidentalDoubleSharpTwoArrowsUp:"",accidentalFilledReversedFlatAndFlat:"",accidentalFilledReversedFlatAndFlatArrowDown:"",accidentalFilledReversedFlatAndFlatArrowUp:"",accidentalFilledReversedFlatArrowDown:"",accidentalFilledReversedFlatArrowUp:"",accidentalFiveQuarterTonesFlatArrowDown:"",accidentalFiveQuarterTonesSharpArrowUp:"",accidentalFlat:"",accidentalFlatEqualTempered:"",accidentalFlatOneArrowDown:"",accidentalFlatOneArrowUp:"",accidentalFlatThreeArrowsDown:"",accidentalFlatThreeArrowsUp:"",accidentalFlatTurned:"",accidentalFlatTwoArrowsDown:"",accidentalFlatTwoArrowsUp:"",accidentalHalfSharpArrowDown:"",accidentalHalfSharpArrowUp:"",accidentalJohnston13:"",accidentalJohnston31:"",accidentalJohnstonDown:"",accidentalJohnstonEl:"",accidentalJohnstonMinus:"",accidentalJohnstonPlus:"",accidentalJohnstonSeven:"",accidentalJohnstonUp:"",accidentalKomaFlat:"",accidentalKomaSharp:"",accidentalKoron:"",accidentalKucukMucennebFlat:"",accidentalKucukMucennebSharp:"",accidentalLargeDoubleSharp:"",accidentalLowerOneSeptimalComma:"",accidentalLowerOneTridecimalQuartertone:"",accidentalLowerOneUndecimalQuartertone:"",accidentalLowerTwoSeptimalCommas:"",accidentalNarrowReversedFlat:"",accidentalNarrowReversedFlatAndFlat:"",accidentalNatural:"",accidentalNaturalEqualTempered:"",accidentalNaturalFlat:"",accidentalNaturalOneArrowDown:"",accidentalNaturalOneArrowUp:"",accidentalNaturalReversed:"",accidentalNaturalSharp:"",accidentalNaturalThreeArrowsDown:"",accidentalNaturalThreeArrowsUp:"",accidentalNaturalTwoArrowsDown:"",accidentalNaturalTwoArrowsUp:"",accidentalOneAndAHalfSharpsArrowDown:"",accidentalOneAndAHalfSharpsArrowUp:"",accidentalOneThirdToneFlatFerneyhough:"",accidentalOneThirdToneSharpFerneyhough:"",accidentalParensLeft:"",accidentalParensRight:"",accidentalQuarterToneFlat4:"",accidentalQuarterToneFlatArrowUp:"",accidentalQuarterToneFlatFilledReversed:"",accidentalQuarterToneFlatNaturalArrowDown:"",accidentalQuarterToneFlatPenderecki:"",accidentalQuarterToneFlatStein:"",accidentalQuarterToneFlatVanBlankenburg:"",accidentalQuarterToneSharp4:"",accidentalQuarterToneSharpArrowDown:"",accidentalQuarterToneSharpBusotti:"",accidentalQuarterToneSharpNaturalArrowUp:"",accidentalQuarterToneSharpStein:"",accidentalQuarterToneSharpWiggle:"",accidentalRaiseOneSeptimalComma:"",accidentalRaiseOneTridecimalQuartertone:"",accidentalRaiseOneUndecimalQuartertone:"",accidentalRaiseTwoSeptimalCommas:"",accidentalReversedFlatAndFlatArrowDown:"",accidentalReversedFlatAndFlatArrowUp:"",accidentalReversedFlatArrowDown:"",accidentalReversedFlatArrowUp:"",accidentalSharp:"",accidentalSharpEqualTempered:"",accidentalSharpOneArrowDown:"",accidentalSharpOneArrowUp:"",accidentalSharpOneHorizontalStroke:"",accidentalSharpReversed:"",accidentalSharpSharp:"",accidentalSharpThreeArrowsDown:"",accidentalSharpThreeArrowsUp:"",accidentalSharpTwoArrowsDown:"",accidentalSharpTwoArrowsUp:"",accidentalSims12Down:"",accidentalSims12Up:"",accidentalSims4Down:"",accidentalSims4Up:"",accidentalSims6Down:"",accidentalSims6Up:"",accidentalSori:"",accidentalTavenerFlat:"",accidentalTavenerSharp:"",accidentalThreeQuarterTonesFlatArrowDown:"",accidentalThreeQuarterTonesFlatArrowUp:"",accidentalThreeQuarterTonesFlatCouper:"",accidentalThreeQuarterTonesFlatGrisey:"",accidentalThreeQuarterTonesFlatTartini:"",accidentalThreeQuarterTonesFlatZimmermann:"",accidentalThreeQuarterTonesSharpArrowDown:"",accidentalThreeQuarterTonesSharpArrowUp:"",accidentalThreeQuarterTonesSharpBusotti:"",accidentalThreeQuarterTonesSharpStein:"",
accidentalTripleFlat:"",accidentalTripleSharp:"",accidentalTwoThirdTonesFlatFerneyhough:"",accidentalTwoThirdTonesSharpFerneyhough:"",accidentalWilsonMinus:"",accidentalWilsonPlus:"",accidentalWyschnegradsky10TwelfthsFlat:"",accidentalWyschnegradsky10TwelfthsSharp:"",accidentalWyschnegradsky11TwelfthsFlat:"",accidentalWyschnegradsky11TwelfthsSharp:"",accidentalWyschnegradsky1TwelfthsFlat:"",accidentalWyschnegradsky1TwelfthsSharp:"",accidentalWyschnegradsky2TwelfthsFlat:"",accidentalWyschnegradsky2TwelfthsSharp:"",accidentalWyschnegradsky3TwelfthsFlat:"",accidentalWyschnegradsky3TwelfthsSharp:"",accidentalWyschnegradsky4TwelfthsFlat:"",accidentalWyschnegradsky4TwelfthsSharp:"",accidentalWyschnegradsky5TwelfthsFlat:"",accidentalWyschnegradsky5TwelfthsSharp:"",accidentalWyschnegradsky6TwelfthsFlat:"",accidentalWyschnegradsky6TwelfthsSharp:"",accidentalWyschnegradsky7TwelfthsFlat:"",accidentalWyschnegradsky7TwelfthsSharp:"",accidentalWyschnegradsky8TwelfthsFlat:"",accidentalWyschnegradsky8TwelfthsSharp:"",accidentalWyschnegradsky9TwelfthsFlat:"",accidentalWyschnegradsky9TwelfthsSharp:"",accidentalXenakisOneThirdToneSharp:"",accidentalXenakisTwoThirdTonesSharp:"",analyticsChoralmelodie:"",analyticsEndStimme:"",analyticsHauptrhythmus:"",analyticsHauptstimme:"",analyticsInversion1:"",analyticsNebenstimme:"",analyticsStartStimme:"",analyticsTheme:"",analyticsTheme1:"",analyticsThemeInversion:"",analyticsThemeRetrograde:"",analyticsThemeRetrogradeInversion:"",arpeggiatoDown:"",arpeggiatoUp:"",arrowBlackDown:"",arrowBlackDownLeft:"",arrowBlackDownRight:"",arrowBlackLeft:"",arrowBlackRight:"",arrowBlackUp:"",arrowBlackUpLeft:"",arrowBlackUpRight:"",arrowOpenDown:"",arrowOpenDownLeft:"",arrowOpenDownRight:"",arrowOpenLeft:"",arrowOpenRight:"",arrowOpenUp:"",arrowOpenUpLeft:"",arrowOpenUpRight:"",arrowWhiteDown:"",arrowWhiteDownLeft:"",arrowWhiteDownRight:"",arrowWhiteLeft:"",arrowWhiteRight:"",arrowWhiteUp:"",arrowWhiteUpLeft:"",arrowWhiteUpRight:"",arrowheadBlackDown:"",arrowheadBlackDownLeft:"",arrowheadBlackDownRight:"",arrowheadBlackLeft:"",arrowheadBlackRight:"",arrowheadBlackUp:"",arrowheadBlackUpLeft:"",arrowheadBlackUpRight:"",arrowheadOpenDown:"",arrowheadOpenDownLeft:"",arrowheadOpenDownRight:"",arrowheadOpenLeft:"",arrowheadOpenRight:"",arrowheadOpenUp:"",arrowheadOpenUpLeft:"",arrowheadOpenUpRight:"",arrowheadWhiteDown:"",arrowheadWhiteDownLeft:"",arrowheadWhiteDownRight:"",arrowheadWhiteLeft:"",arrowheadWhiteRight:"",arrowheadWhiteUp:"",arrowheadWhiteUpLeft:"",arrowheadWhiteUpRight:"",articAccentAbove:"",articAccentBelow:"",articAccentStaccatoAbove:"",articAccentStaccatoBelow:"",articLaissezVibrerAbove:"",articLaissezVibrerBelow:"",articMarcatoAbove:"",articMarcatoBelow:"",articMarcatoStaccatoAbove:"",articMarcatoStaccatoBelow:"",articStaccatissimoAbove:"",articStaccatissimoBelow:"",articStaccatissimoStrokeAbove:"",articStaccatissimoStrokeBelow:"",articStaccatissimoWedgeAbove:"",articStaccatissimoWedgeBelow:"",articStaccatoAbove:"",articStaccatoBelow:"",articStressAbove:"",articStressBelow:"",articTenutoAbove:"",articTenutoAccentAbove:"",articTenutoAccentBelow:"",articTenutoBelow:"",articTenutoStaccatoAbove:"",articTenutoStaccatoBelow:"",articUnstressAbove:"",articUnstressBelow:"",augmentationDot:"",barlineDashed:"",barlineDotted:"",barlineDouble:"",barlineFinal:"",barlineHeavy:"",barlineHeavyHeavy:"",barlineReverseFinal:"",barlineShort:"",barlineSingle:"",barlineTick:"",beamAccelRit1:"",beamAccelRit10:"",beamAccelRit11:"",beamAccelRit12:"",beamAccelRit13:"",beamAccelRit14:"",beamAccelRit15:"",beamAccelRit2:"",beamAccelRit3:"",beamAccelRit4:"",beamAccelRit5:"",beamAccelRit6:"",beamAccelRit7:"",beamAccelRit8:"",beamAccelRit9:"",beamAccelRitFinal:"",brace:"",bracket:"",bracketBottom:"",bracketTop:"",brassBend:"",brassDoitLong:"",brassDoitMedium:"",brassDoitShort:"",brassFallLipLong:"",brassFallLipMedium:"",brassFallLipShort:"",brassFallRoughLong:"",brassFallRoughMedium:"",brassFallRoughShort:"",brassFallSmoothLong:"",brassFallSmoothMedium:"",brassFallSmoothShort:"",brassFlip:"",brassHarmonMuteClosed:"",brassHarmonMuteStemHalfLeft:"",brassHarmonMuteStemHalfRight:"",brassHarmonMuteStemOpen:"",brassJazzTurn:"",brassLiftLong:"",brassLiftMedium:"",brassLiftShort:"",brassLiftSmoothLong:"",brassLiftSmoothMedium:"",brassLiftSmoothShort:"",brassMuteClosed:"",brassMuteHalfClosed:"",brassMuteOpen:"",brassPlop:"",brassScoop:"",brassSmear:"",breathMarkComma:"",breathMarkSalzedo:"",breathMarkTick:"",breathMarkUpbow:"",bridgeClef:"",buzzRoll:"",cClef:"",cClef8vb:"",cClefArrowDown:"",cClefArrowUp:"",cClefChange:"",cClefCombining:"",cClefReversed:"",cClefSquare:"",cClefTriangular:"",cClefTriangularToFClef:"",caesura:"",caesuraCurved:"",caesuraShort:"",caesuraThick:"",chantAccentusAbove:"",chantAccentusBelow:"",chantAuctumAsc:"",chantAuctumDesc:"",chantAugmentum:"",chantCaesura:"",chantCclef:"",chantCirculusAbove:"",chantCirculusBelow:"",chantConnectingLineAsc2nd:"",chantConnectingLineAsc3rd:"",chantConnectingLineAsc4th:"",chantConnectingLineAsc5th:"",chantConnectingLineAsc6th:"",chantCustosStemDownPosHigh:"",chantCustosStemDownPosHighest:"",chantCustosStemDownPosMiddle:"",chantCustosStemUpPosLow:"",chantCustosStemUpPosLowest:"",chantCustosStemUpPosMiddle:"",chantDeminutumLower:"",chantDeminutumUpper:"",chantDivisioFinalis:"",chantDivisioMaior:"",chantDivisioMaxima:"",chantDivisioMinima:"",chantEntryLineAsc2nd:"",chantEntryLineAsc3rd:"",chantEntryLineAsc4th:"",chantEntryLineAsc5th:"",chantEntryLineAsc6th:"",chantEpisema:"",chantFclef:"",chantIctusAbove:"",chantIctusBelow:"",chantLigaturaDesc2nd:"",chantLigaturaDesc3rd:"",chantLigaturaDesc4th:"",chantLigaturaDesc5th:"",chantOriscusAscending:"",chantOriscusDescending:"",chantOriscusLiquescens:"",chantPodatusLower:"",chantPodatusUpper:"",chantPunctum:"",chantPunctumCavum:"",chantPunctumDeminutum:"",chantPunctumInclinatum:"",chantPunctumInclinatumAuctum:"",chantPunctumInclinatumDeminutum:"",chantPunctumLinea:"",chantPunctumLineaCavum:"",chantPunctumVirga:"",chantPunctumVirgaReversed:"",chantQuilisma:"",chantSemicirculusAbove:"",chantSemicirculusBelow:"",chantStaff:"",chantStaffNarrow:"",chantStaffWide:"",chantStrophicus:"",chantStrophicusAuctus:"",chantStrophicusLiquescens2nd:"",chantStrophicusLiquescens3rd:"",chantStrophicusLiquescens4th:"",chantStrophicusLiquescens5th:"",chantVirgula:"",clef15:"",clef8:"",clefChangeCombining:"",coda:"",codaSquare:"",conductorBeat2Compound:"",conductorBeat2Simple:"",conductorBeat3Compound:"",conductorBeat3Simple:"",conductorBeat4Compound:"",conductorBeat4Simple:"",conductorLeftBeat:"",conductorRightBeat:"",conductorStrongBeat:"",conductorWeakBeat:"",controlBeginBeam:"",controlBeginPhrase:"",controlBeginSlur:"",controlBeginTie:"",controlEndBeam:"",controlEndPhrase:"",controlEndSlur:"",controlEndTie:"",csymAugmented:"",csymBracketLeftTall:"",csymBracketRightTall:"",csymDiminished:"",csymHalfDiminished:"",csymMajorSeventh:"",csymMinor:"",csymParensLeftTall:"",csymParensRightTall:"",curlewSign:"",daCapo:"",dalSegno:"",daseianExcellentes1:"",daseianExcellentes2:"",daseianExcellentes3:"",daseianExcellentes4:"",daseianFinales1:"",daseianFinales2:"",daseianFinales3:"",daseianFinales4:"",daseianGraves1:"",daseianGraves2:"",daseianGraves3:"",daseianGraves4:"",daseianResidua1:"",daseianResidua2:"",daseianSuperiores1:"",daseianSuperiores2:"",daseianSuperiores3:"",daseianSuperiores4:"",doubleTongueAbove:"",doubleTongueBelow:"",dynamicCrescendoHairpin:"",dynamicDiminuendoHairpin:"",dynamicFF:"",dynamicFFF:"",dynamicFFFF:"",dynamicFFFFF:"",dynamicFFFFFF:"",dynamicForte:"",dynamicFortePiano:"",dynamicForzando:"",dynamicMF:"",dynamicMP:"",dynamicMessaDiVoce:"",dynamicMezzo:"",dynamicNiente:"",dynamicNienteForHairpin:"",dynamicPF:"",dynamicPP:"",dynamicPPP:"",dynamicPPPP:"",dynamicPPPPP:"",dynamicPPPPPP:"",dynamicPiano:"",dynamicRinforzando:"",dynamicRinforzando1:"",dynamicRinforzando2:"",dynamicSforzando:"",dynamicSforzando1:"",dynamicSforzandoPianissimo:"",dynamicSforzandoPiano:"",dynamicSforzato:"",dynamicSforzatoFF:"",dynamicSforzatoPiano:"",dynamicZ:"",elecAudioChannelsEight:"",elecAudioChannelsFive:"",elecAudioChannelsFour:"",elecAudioChannelsOne:"",elecAudioChannelsSeven:"",elecAudioChannelsSix:"",elecAudioChannelsThreeFrontal:"",elecAudioChannelsThreeSurround:"",elecAudioChannelsTwo:"",elecAudioIn:"",elecAudioMono:"",elecAudioOut:"",elecAudioStereo:"",elecCamera:"",elecDataIn:"",elecDataOut:"",elecDisc:"",elecDownload:"",elecEject:"",elecFastForward:"",elecHeadphones:"",elecHeadset:"",elecLineIn:"",elecLineOut:"",elecLoop:"",elecLoudspeaker:"",elecMIDIController0:"",elecMIDIController100:"",elecMIDIController20:"",elecMIDIController40:"",elecMIDIController60:"",elecMIDIController80:"",elecMIDIIn:"",elecMIDIOut:"",elecMicrophone:"",elecMicrophoneMute:"",elecMicrophoneUnmute:"",elecMixingConsole:"",elecMonitor:"",elecMute:"",elecPause:"",elecPlay:"",elecPowerOnOff:"",elecProjector:"",elecReplay:"",elecRewind:"",elecShuffle:"",elecSkipBackwards:"",elecSkipForwards:"",elecStop:"",elecTape:"",elecUSB:"",elecUnmute:"",elecUpload:"",elecVideoCamera:"",elecVideoIn:"",elecVideoOut:"",elecVolumeFader:"",elecVolumeFaderThumb:"",elecVolumeLevel0:"",elecVolumeLevel100:"",elecVolumeLevel20:"",elecVolumeLevel40:"",elecVolumeLevel60:"",elecVolumeLevel80:"",fClef:"",fClef15ma:"",fClef15mb:"",fClef8va:"",fClef8vb:"",fClefArrowDown:"",fClefArrowUp:"",fClefChange:"",fClefReversed:"",fClefTriangular:"",fClefTriangularToCClef:"",fClefTurned:"",fermataAbove:"",fermataBelow:"",fermataLongAbove:"",fermataLongBelow:"",fermataLongHenzeAbove:"",fermataLongHenzeBelow:"",fermataShortAbove:"",fermataShortBelow:"",fermataShortHenzeAbove:"",fermataShortHenzeBelow:"",fermataVeryLongAbove:"",fermataVeryLongBelow:"",fermataVeryShortAbove:"",fermataVeryShortBelow:"",figbass0:"",figbass1:"",figbass2:"",figbass2Raised:"",figbass3:"",figbass4:"",figbass4Raised:"",figbass5:"",figbass5Raised1:"",figbass5Raised2:"",figbass5Raised3:"",figbass6:"",figbass6Raised:"",figbass7:"",figbass7Raised1:"",figbass7Raised2:"",figbass8:"",figbass9:"",figbass9Raised:"",figbassBracketLeft:"",figbassBracketRight:"",figbassCombiningLowering:"",figbassCombiningRaising:"",figbassDoubleFlat:"",figbassDoubleSharp:"",figbassFlat:"",figbassNatural:"",figbassParensLeft:"",figbassParensRight:"",figbassPlus:"",figbassSharp:"",flag1024thDown:"",flag1024thUp:"",flag128thDown:"",flag128thUp:"",flag16thDown:"",flag16thUp:"",flag256thDown:"",flag256thUp:"",flag32ndDown:"",flag32ndUp:"",flag512thDown:"",flag512thUp:"",flag64thDown:"",flag64thUp:"",flag8thDown:"",flag8thUp:"",flagInternalDown:"",flagInternalUp:"",fretboard3String:"",fretboard3StringNut:"",fretboard4String:"",fretboard4StringNut:"",fretboard5String:"",fretboard5StringNut:"",fretboard6String:"",fretboard6StringNut:"",fretboardFilledCircle:"",fretboardO:"",fretboardX:"",functionAngleLeft:"",functionAngleRight:"",functionBracketLeft:"",functionBracketRight:"",functionDD:"",functionDLower:"",functionDUpper:"",functionEight:"",functionFive:"",functionFour:"",functionGLower:"",functionGUpper:"",functionGreaterThan:"",functionLessThan:"",functionMinus:"",functionNLower:"",functionNUpper:"",functionNine:"",functionOne:"",functionPLower:"",functionPUpper:"",functionParensLeft:"",functionParensRight:"",functionPlus:"",functionRepetition1:"",functionRepetition2:"",functionRing:"",functionSLower:"",functionSSLower:"",functionSSUpper:"",functionSUpper:"",functionSeven:"",functionSix:"",functionSlashedDD:"",functionTLower:"",functionTUpper:"",functionThree:"",functionTwo:"",functionVLower:"",functionVUpper:"",functionZero:"",gClef:"",gClef15ma:"",gClef15mb:"",gClef8va:"",gClef8vb:"",gClef8vbCClef:"",gClef8vbOld:"",gClef8vbParens:"",gClefArrowDown:"",gClefArrowUp:"",gClefChange:"",gClefLigatedNumberAbove:"",gClefLigatedNumberBelow:"",gClefReversed:"",gClefTurned:"",glissandoDown:"",glissandoUp:"",graceNoteAcciaccaturaStemDown:"",graceNoteAcciaccaturaStemUp:"",graceNoteAppoggiaturaStemDown:"",graceNoteAppoggiaturaStemUp:"",graceNoteSlashStemDown:"",graceNoteSlashStemUp:"",guitarClosePedal:"",guitarFadeIn:"",guitarFadeOut:"",guitarGolpe:"",guitarHalfOpenPedal:"",guitarLeftHandTapping:"",guitarOpenPedal:"",guitarRightHandTapping:"",guitarShake:"",guitarString0:"",guitarString1:"",guitarString2:"",guitarString3:"",guitarString4:"",guitarString5:"",guitarString6:"",guitarString7:"",guitarString8:"",guitarString9:"",guitarStrumDown:"",guitarStrumUp:"",guitarVibratoBarDip:"",guitarVibratoBarScoop:"",guitarVibratoStroke:"",guitarVolumeSwell:"",guitarWideVibratoStroke:"",handbellsBelltree:"",handbellsDamp3:"",handbellsEcho1:"",handbellsEcho2:"",handbellsGyro:"",handbellsHandMartellato:"",handbellsMalletBellOnTable:"",handbellsMalletBellSuspended:"",handbellsMalletLft:"",handbellsMartellato:"",handbellsMartellatoLift:"",handbellsMutedMartellato:"",handbellsPluckLift:"",handbellsSwing:"",handbellsSwingDown:"",handbellsSwingUp:"",handbellsTablePairBells:"",handbellsTableSingleBell:"",harpMetalRod:"",harpPedalCentered:"",harpPedalDivider:"",harpPedalLowered:"",harpPedalRaised:"",harpSalzedoAeolianAscending:"",harpSalzedoAeolianDescending:"",harpSalzedoFluidicSoundsLeft:"",harpSalzedoFluidicSoundsRight:"",harpSalzedoMetallicSounds:"",harpSalzedoMuffleTotally:"",harpSalzedoOboicFlux:"",harpSalzedoPlayUpperEnd:"",harpSalzedoSlideWithSuppleness:"",harpSalzedoTamTamSounds:"",harpSalzedoThunderEffect:"",harpSalzedoTimpanicSounds:"",harpSalzedoWhistlingSounds:"",harpStringNoiseStem:"",harpTuningKey:"",harpTuningKeyGlissando:"",harpTuningKeyHandle:"",harpTuningKeyShank:"",keyboardBebung2DotsAbove:"",keyboardBebung2DotsBelow:"",keyboardBebung3DotsAbove:"",keyboardBebung3DotsBelow:"",keyboardBebung4DotsAbove:"",keyboardBebung4DotsBelow:"",keyboardLeftPedalPictogram:"",keyboardMiddlePedalPictogram:"",keyboardPedalD:"",keyboardPedalDot:"",keyboardPedalE:"",keyboardPedalHalf:"",keyboardPedalHalf2:"",keyboardPedalHalf3:"",keyboardPedalHeel1:"",keyboardPedalHeel2:"",keyboardPedalHeel3:"",keyboardPedalHeelToe:"",keyboardPedalHyphen:"",keyboardPedalP:"",keyboardPedalPed:"",keyboardPedalS:"",keyboardPedalSost:"",keyboardPedalToe1:"",keyboardPedalToe2:"",keyboardPedalUp:"",keyboardPedalUpNotch:"",keyboardPedalUpSpecial:"",keyboardPlayWithLH:"",keyboardPlayWithLHEnd:"",keyboardPlayWithRH:"",keyboardPlayWithRHEnd:"",keyboardPluckInside:"",keyboardRightPedalPictogram:"",kievanAccidentalFlat:"",kievanAccidentalSharp:"",kievanAugmentationDot:"",kievanCClef:"",kievanEndingSymbol:"",kievanNote8thStemDown:"",kievanNote8thStemUp:"",kievanNoteBeam:"",kievanNoteHalfStaffLine:"",kievanNoteHalfStaffSpace:"",kievanNoteQuarterStemDown:"",kievanNoteQuarterStemUp:"",kievanNoteReciting:"",kievanNoteWhole:"",kievanNoteWholeFinal:"",kodalyHandDo:"",kodalyHandFa:"",kodalyHandLa:"",kodalyHandMi:"",kodalyHandRe:"",kodalyHandSo:"",kodalyHandTi:"",leftRepeatSmall:"",legerLine:"",legerLineNarrow:"",legerLineWide:"",luteBarlineEndRepeat:"",luteBarlineFinal:"",luteBarlineStartRepeat:"",luteDuration16th:"",luteDuration32nd:"",luteDuration8th:"",luteDurationDoubleWhole:"",luteDurationHalf:"",luteDurationQuarter:"",luteDurationWhole:"",luteFingeringRHFirst:"",luteFingeringRHSecond:"",luteFingeringRHThird:"",luteFingeringRHThumb:"",luteFrench10thCourse:"",luteFrench7thCourse:"",luteFrench8thCourse:"",luteFrench9thCourse:"",luteFrenchAppoggiaturaAbove:"",luteFrenchAppoggiaturaBelow:"",luteFrenchFretA:"",luteFrenchFretB:"",luteFrenchFretC:"",luteFrenchFretD:"",luteFrenchFretE:"",luteFrenchFretF:"",luteFrenchFretG:"",luteFrenchFretH:"",luteFrenchFretI:"",luteFrenchFretK:"",luteFrenchFretL:"",luteFrenchFretM:"",luteFrenchFretN:"",luteFrenchMordentInverted:"",luteFrenchMordentLower:"",luteFrenchMordentUpper:"",luteGermanALower:"",luteGermanAUpper:"",luteGermanBLower:"",luteGermanBUpper:"",luteGermanCLower:"",luteGermanCUpper:"",luteGermanDLower:"",luteGermanDUpper:"",luteGermanELower:"",luteGermanEUpper:"",luteGermanFLower:"",luteGermanFUpper:"",luteGermanGLower:"",luteGermanGUpper:"",luteGermanHLower:"",luteGermanHUpper:"",luteGermanILower:"",luteGermanIUpper:"",luteGermanKLower:"",luteGermanKUpper:"",luteGermanLLower:"",luteGermanLUpper:"",luteGermanMLower:"",luteGermanMUpper:"",luteGermanNLower:"",luteGermanNUpper:"",luteGermanOLower:"",luteGermanPLower:"",luteGermanQLower:"",luteGermanRLower:"",luteGermanSLower:"",luteGermanTLower:"",luteGermanVLower:"",luteGermanXLower:"",luteGermanYLower:"",luteGermanZLower:"",luteItalianClefCSolFaUt:"",luteItalianClefFFaUt:"",luteItalianFret0:"",luteItalianFret1:"",luteItalianFret2:"",luteItalianFret3:"",luteItalianFret4:"",luteItalianFret5:"",luteItalianFret6:"",luteItalianFret7:"",luteItalianFret8:"",luteItalianFret9:"",luteItalianHoldFinger:"",luteItalianHoldNote:"",luteItalianReleaseFinger:"",luteItalianTempoFast:"",luteItalianTempoNeitherFastNorSlow:"",luteItalianTempoSlow:"",luteItalianTempoSomewhatFast:"",luteItalianTempoVerySlow:"",luteItalianTimeTriple:"",luteItalianTremolo:"",luteItalianVibrato:"",luteStaff6Lines:"",luteStaff6LinesNarrow:"",luteStaff6LinesWide:"",lyricsElision:"",lyricsElisionNarrow:"",lyricsElisionWide:"",lyricsHyphenBaseline:"",lyricsHyphenBaselineNonBreaking:"",medRenFlatHardB:"",medRenFlatSoftB:"",medRenFlatWithDot:"",medRenGClefCMN:"",medRenLiquescenceCMN:"",medRenLiquescentAscCMN:"",medRenLiquescentDescCMN:"",medRenNatural:"",medRenNaturalWithCross:"",medRenOriscusCMN:"",medRenPlicaCMN:"",medRenPunctumCMN:"",medRenQuilismaCMN:"",medRenSharpCroix:"",medRenStrophicusCMN:"",mensuralAlterationSign:"",mensuralBlackBrevis:"",mensuralBlackBrevisVoid:"",mensuralBlackDragma:"",mensuralBlackLonga:"",mensuralBlackMaxima:"",mensuralBlackMinima:"",mensuralBlackMinimaVoid:"",mensuralBlackSemibrevis:"",mensuralBlackSemibrevisCaudata:"",mensuralBlackSemibrevisOblique:"",mensuralBlackSemibrevisVoid:"",mensuralBlackSemiminima:"",mensuralCclef:"",mensuralCclefPetrucciPosHigh:"",mensuralCclefPetrucciPosHighest:"",mensuralCclefPetrucciPosLow:"",mensuralCclefPetrucciPosLowest:"",mensuralCclefPetrucciPosMiddle:"",mensuralColorationEndRound:"",mensuralColorationEndSquare:"",mensuralColorationStartRound:"",mensuralColorationStartSquare:"",mensuralCombStemDiagonal:"",mensuralCombStemDown:"",mensuralCombStemDownFlagExtended:"",mensuralCombStemDownFlagFlared:"",mensuralCombStemDownFlagFusa:"",mensuralCombStemDownFlagLeft:"",mensuralCombStemDownFlagRight:"",mensuralCombStemDownFlagSemiminima:"",mensuralCombStemUp:"",mensuralCombStemUpFlagExtended:"",mensuralCombStemUpFlagFlared:"",mensuralCombStemUpFlagFusa:"",mensuralCombStemUpFlagLeft:"",mensuralCombStemUpFlagRight:"",mensuralCombStemUpFlagSemiminima:"",mensuralCustosCheckmark:"",mensuralCustosDown:"",mensuralCustosTurn:"",mensuralCustosUp:"",mensuralFclef:"",mensuralFclefPetrucci:"",mensuralGclef:"",mensuralGclefPetrucci:"",mensuralModusImperfectumVert:"",mensuralModusPerfectumVert:"",mensuralNoteheadLongaBlack:"",mensuralNoteheadLongaBlackVoid:"",mensuralNoteheadLongaVoid:"",mensuralNoteheadLongaWhite:"",mensuralNoteheadMaximaBlack:"",mensuralNoteheadMaximaBlackVoid:"",mensuralNoteheadMaximaVoid:"",mensuralNoteheadMaximaWhite:"",mensuralNoteheadMinimaWhite:"",mensuralNoteheadSemibrevisBlack:"",mensuralNoteheadSemibrevisBlackVoid:"",mensuralNoteheadSemibrevisBlackVoidTurned:"",mensuralNoteheadSemibrevisVoid:"",mensuralNoteheadSemiminimaWhite:"",mensuralObliqueAsc2ndBlack:"",mensuralObliqueAsc2ndBlackVoid:"",mensuralObliqueAsc2ndVoid:"",mensuralObliqueAsc2ndWhite:"",mensuralObliqueAsc3rdBlack:"",mensuralObliqueAsc3rdBlackVoid:"",mensuralObliqueAsc3rdVoid:"",mensuralObliqueAsc3rdWhite:"",mensuralObliqueAsc4thBlack:"",mensuralObliqueAsc4thBlackVoid:"",mensuralObliqueAsc4thVoid:"",mensuralObliqueAsc4thWhite:"",mensuralObliqueAsc5thBlack:"",mensuralObliqueAsc5thBlackVoid:"",mensuralObliqueAsc5thVoid:"",mensuralObliqueAsc5thWhite:"",mensuralObliqueDesc2ndBlack:"",mensuralObliqueDesc2ndBlackVoid:"",mensuralObliqueDesc2ndVoid:"",mensuralObliqueDesc2ndWhite:"",mensuralObliqueDesc3rdBlack:"",mensuralObliqueDesc3rdBlackVoid:"",mensuralObliqueDesc3rdVoid:"",mensuralObliqueDesc3rdWhite:"",mensuralObliqueDesc4thBlack:"",mensuralObliqueDesc4thBlackVoid:"",mensuralObliqueDesc4thVoid:"",mensuralObliqueDesc4thWhite:"",mensuralObliqueDesc5thBlack:"",mensuralObliqueDesc5thBlackVoid:"",mensuralObliqueDesc5thVoid:"",mensuralObliqueDesc5thWhite:"",mensuralProlation1:"",mensuralProlation10:"",mensuralProlation11:"",mensuralProlation2:"",mensuralProlation3:"",mensuralProlation4:"",mensuralProlation5:"",mensuralProlation6:"",mensuralProlation7:"",mensuralProlation8:"",mensuralProlation9:"",mensuralProlationCombiningDot:"",mensuralProlationCombiningDotVoid:"",mensuralProlationCombiningStroke:"",mensuralProlationCombiningThreeDots:"",mensuralProlationCombiningThreeDotsTri:"",mensuralProlationCombiningTwoDots:"",mensuralProportion1:"",mensuralProportion2:"",mensuralProportion3:"",mensuralProportion4:"",mensuralProportionMajor:"",mensuralProportionMinor:"",mensuralProportionProportioDupla1:"",mensuralProportionProportioDupla2:"",mensuralProportionProportioQuadrupla:"",mensuralProportionProportioTripla:"",mensuralProportionTempusPerfectum:"",mensuralRestBrevis:"",mensuralRestFusa:"",mensuralRestLongaImperfecta:"",mensuralRestLongaPerfecta:"",mensuralRestMaxima:"",mensuralRestMinima:"",mensuralRestSemibrevis:"",mensuralRestSemifusa:"",mensuralRestSemiminima:"",mensuralSignumDown:"",mensuralSignumUp:"",mensuralTempusImperfectumHoriz:"",mensuralTempusPerfectumHoriz:"",mensuralWhiteBrevis:"",mensuralWhiteFusa:"",mensuralWhiteLonga:"",mensuralWhiteMaxima:"",mensuralWhiteMinima:"",mensuralWhiteSemiminima:"",metricModulationArrowLeft:"",metricModulationArrowRight:"",miscDoNotCopy:"",miscDoNotPhotocopy:"",miscEyeglasses:"",note1024thDown:"",note1024thUp:"",note128thDown:"",note128thUp:"",note16thDown:"",note16thUp:"",note256thDown:"",note256thUp:"",note32ndDown:"",note32ndUp:"",note512thDown:"",note512thUp:"",note64thDown:"",note64thUp:"",note8thDown:"",note8thUp:"",noteABlack:"",noteAFlatBlack:"",noteAFlatHalf:"",noteAFlatWhole:"",noteAHalf:"",noteASharpBlack:"",noteASharpHalf:"",noteASharpWhole:"",noteAWhole:"",noteBBlack:"",noteBFlatBlack:"",noteBFlatHalf:"",noteBFlatWhole:"",noteBHalf:"",noteBSharpBlack:"",noteBSharpHalf:"",noteBSharpWhole:"",noteBWhole:"",noteCBlack:"",noteCFlatBlack:"",noteCFlatHalf:"",noteCFlatWhole:"",noteCHalf:"",noteCSharpBlack:"",noteCSharpHalf:"",noteCSharpWhole:"",noteCWhole:"",noteDBlack:"",noteDFlatBlack:"",noteDFlatHalf:"",noteDFlatWhole:"",noteDHalf:"",noteDSharpBlack:"",noteDSharpHalf:"",noteDSharpWhole:"",noteDWhole:"",noteDoBlack:"",noteDoHalf:"",noteDoWhole:"",noteDoubleWhole:"",noteDoubleWholeSquare:"",noteEBlack:"",noteEFlatBlack:"",noteEFlatHalf:"",noteEFlatWhole:"",noteEHalf:"",noteESharpBlack:"",noteESharpHalf:"",noteESharpWhole:"",noteEWhole:"",noteEmptyBlack:"",noteEmptyHalf:"",noteEmptyWhole:"",noteFBlack:"",noteFFlatBlack:"",noteFFlatHalf:"",noteFFlatWhole:"",noteFHalf:"",noteFSharpBlack:"",noteFSharpHalf:"",noteFSharpWhole:"",noteFWhole:"",noteFaBlack:"",noteFaHalf:"",noteFaWhole:"",noteGBlack:"",noteGFlatBlack:"",noteGFlatHalf:"",noteGFlatWhole:"",noteGHalf:"",noteGSharpBlack:"",noteGSharpHalf:"",noteGSharpWhole:"",noteGWhole:"",noteHBlack:"",noteHHalf:"",noteHSharpBlack:"",noteHSharpHalf:"",noteHSharpWhole:"",noteHWhole:"",noteHalfDown:"",noteHalfUp:"",noteLaBlack:"",noteLaHalf:"",noteLaWhole:"",noteMiBlack:"",noteMiHalf:"",noteMiWhole:"",noteQuarterDown:"",noteQuarterUp:"",noteReBlack:"",noteReHalf:"",noteReWhole:"",noteShapeArrowheadLeftBlack:"",noteShapeArrowheadLeftWhite:"",noteShapeDiamondBlack:"",noteShapeDiamondWhite:"",noteShapeIsoscelesTriangleBlack:"",noteShapeIsoscelesTriangleWhite:"",noteShapeKeystoneBlack:"",noteShapeKeystoneWhite:"",noteShapeMoonBlack:"",noteShapeMoonLeftBlack:"",noteShapeMoonLeftWhite:"",noteShapeMoonWhite:"",noteShapeQuarterMoonBlack:"",noteShapeQuarterMoonWhite:"",noteShapeRoundBlack:"",noteShapeRoundWhite:"",noteShapeSquareBlack:"",noteShapeSquareWhite:"",noteShapeTriangleLeftBlack:"",noteShapeTriangleLeftWhite:"",noteShapeTriangleRightBlack:"",noteShapeTriangleRightWhite:"",noteShapeTriangleRoundBlack:"",noteShapeTriangleRoundLeftBlack:"",noteShapeTriangleRoundLeftWhite:"",noteShapeTriangleRoundWhite:"",noteShapeTriangleUpBlack:"",noteShapeTriangleUpWhite:"",noteSiBlack:"",noteSiHalf:"",noteSiWhole:"",noteSoBlack:"",noteSoHalf:"",noteSoWhole:"",noteTiBlack:"",noteTiHalf:"",noteTiWhole:"",noteWhole:"",noteheadBlack:"",noteheadCircleSlash:"",noteheadCircleX:"",noteheadCircleXDoubleWhole:"",noteheadCircleXHalf:"",noteheadCircleXWhole:"",noteheadCircledBlack:"",noteheadCircledBlackLarge:"",noteheadCircledDoubleWhole:"",noteheadCircledDoubleWholeLarge:"",noteheadCircledHalf:"",noteheadCircledHalfLarge:"",noteheadCircledWhole:"",noteheadCircledWholeLarge:"",noteheadCircledXLarge:"",noteheadClusterDoubleWhole2nd:"",noteheadClusterDoubleWhole3rd:"",noteheadClusterDoubleWholeBottom:"",noteheadClusterDoubleWholeMiddle:"",noteheadClusterDoubleWholeTop:"",noteheadClusterHalf2nd:"",noteheadClusterHalf3rd:"",noteheadClusterHalfBottom:"",noteheadClusterHalfMiddle:"",noteheadClusterHalfTop:"",noteheadClusterQuarter2nd:"",noteheadClusterQuarter3rd:"",noteheadClusterQuarterBottom:"",noteheadClusterQuarterMiddle:"",noteheadClusterQuarterTop:"",noteheadClusterRoundBlack:"",noteheadClusterRoundWhite:"",noteheadClusterSquareBlack:"",noteheadClusterSquareWhite:"",noteheadClusterWhole2nd:"",noteheadClusterWhole3rd:"",noteheadClusterWholeBottom:"",noteheadClusterWholeMiddle:"",noteheadClusterWholeTop:"",noteheadDiamondBlack:"",noteheadDiamondBlackOld:"",noteheadDiamondBlackWide:"",noteheadDiamondClusterBlack2nd:"",noteheadDiamondClusterBlack3rd:"",noteheadDiamondClusterBlackBottom:"",noteheadDiamondClusterBlackMiddle:"",noteheadDiamondClusterBlackTop:"",noteheadDiamondClusterWhite2nd:"",noteheadDiamondClusterWhite3rd:"",noteheadDiamondClusterWhiteBottom:"",noteheadDiamondClusterWhiteMiddle:"",noteheadDiamondClusterWhiteTop:"",noteheadDiamondDoubleWhole:"",noteheadDiamondDoubleWholeOld:"",noteheadDiamondHalf:"",noteheadDiamondHalfFilled:"",noteheadDiamondHalfOld:"",noteheadDiamondHalfWide:"",noteheadDiamondOpen:"",noteheadDiamondWhite:"",noteheadDiamondWhiteWide:"",noteheadDiamondWhole:"",noteheadDiamondWholeOld:"",noteheadDoubleWhole:"",noteheadDoubleWholeSquare:"",noteheadDoubleWholeWithX:"",noteheadHalf:"",noteheadHalfFilled:"",noteheadHalfWithX:"",noteheadHeavyX:"",noteheadHeavyXHat:"",noteheadLargeArrowDownBlack:"",noteheadLargeArrowDownDoubleWhole:"",noteheadLargeArrowDownHalf:"",noteheadLargeArrowDownWhole:"",noteheadLargeArrowUpBlack:"",noteheadLargeArrowUpDoubleWhole:"",noteheadLargeArrowUpHalf:"",noteheadLargeArrowUpWhole:"",noteheadMoonBlack:"",noteheadMoonWhite:"",noteheadNull:"",noteheadParenthesis:"",noteheadParenthesisLeft:"",noteheadParenthesisRight:"",noteheadPlusBlack:"",noteheadPlusDoubleWhole:"",noteheadPlusHalf:"",noteheadPlusWhole:"",noteheadRectangularClusterBlackBottom:"",noteheadRectangularClusterBlackMiddle:"",noteheadRectangularClusterBlackTop:"",noteheadRectangularClusterWhiteBottom:"",noteheadRectangularClusterWhiteMiddle:"",noteheadRectangularClusterWhiteTop:"",noteheadRoundBlack:"",noteheadRoundBlackLarge:"",noteheadRoundBlackSlashed:"",noteheadRoundBlackSlashedLarge:"",noteheadRoundWhite:"",noteheadRoundWhiteLarge:"",noteheadRoundWhiteSlashed:"",noteheadRoundWhiteSlashedLarge:"",noteheadRoundWhiteWithDot:"",noteheadRoundWhiteWithDotLarge:"",noteheadSlashDiamondWhite:"",noteheadSlashHorizontalEnds:"",noteheadSlashHorizontalEndsMuted:"",noteheadSlashVerticalEnds:"",noteheadSlashVerticalEndsMuted:"",noteheadSlashVerticalEndsSmall:"",noteheadSlashWhiteHalf:"",noteheadSlashWhiteMuted:"",noteheadSlashWhiteWhole:"",noteheadSlashX:"",noteheadSlashedBlack1:"",noteheadSlashedBlack2:"",noteheadSlashedDoubleWhole1:"",noteheadSlashedDoubleWhole2:"",noteheadSlashedHalf1:"",noteheadSlashedHalf2:"",noteheadSlashedWhole1:"",noteheadSlashedWhole2:"",noteheadSquareBlack:"",noteheadSquareBlackLarge:"",noteheadSquareBlackWhite:"",noteheadSquareWhite:"",noteheadTriangleDownBlack:"",noteheadTriangleDownDoubleWhole:"",noteheadTriangleDownHalf:"",noteheadTriangleDownWhite:"",noteheadTriangleDownWhole:"",noteheadTriangleLeftBlack:"",noteheadTriangleLeftWhite:"",noteheadTriangleRightBlack:"",noteheadTriangleRightWhite:"",noteheadTriangleRoundDownBlack:"",noteheadTriangleRoundDownWhite:"",noteheadTriangleUpBlack:"",noteheadTriangleUpDoubleWhole:"",noteheadTriangleUpHalf:"",noteheadTriangleUpRightBlack:"",noteheadTriangleUpRightWhite:"",noteheadTriangleUpWhite:"",noteheadTriangleUpWhole:"",noteheadVoidWithX:"",noteheadWhole:"",noteheadWholeFilled:"",noteheadWholeWithX:"",noteheadXBlack:"",noteheadXDoubleWhole:"",noteheadXHalf:"",noteheadXOrnate:"",noteheadXOrnateEllipse:"",noteheadXWhole:"",octaveBassa:"",octaveLoco:"",octaveParensLeft:"",octaveParensRight:"",ornamentBottomLeftConcaveStroke:"",ornamentBottomLeftConcaveStrokeLarge:"",ornamentBottomLeftConvexStroke:"",ornamentBottomRightConcaveStroke:"",ornamentBottomRightConvexStroke:"",ornamentComma:"",ornamentDoubleObliqueLinesAfterNote:"",ornamentDoubleObliqueLinesBeforeNote:"",ornamentDownCurve:"",ornamentHaydn:"",ornamentHighLeftConcaveStroke:"",ornamentHighLeftConvexStroke:"",ornamentHighRightConcaveStroke:"",ornamentHighRightConvexStroke:"",ornamentHookAfterNote:"",ornamentHookBeforeNote:"",ornamentLeftFacingHalfCircle:"",ornamentLeftFacingHook:"",ornamentLeftPlus:"",ornamentLeftShakeT:"",ornamentLeftVerticalStroke:"",ornamentLeftVerticalStrokeWithCross:"",ornamentLowLeftConcaveStroke:"",ornamentLowLeftConvexStroke:"",ornamentLowRightConcaveStroke:"",ornamentLowRightConvexStroke:"",ornamentMiddleVerticalStroke:"",ornamentMordent:"",ornamentMordentInverted:"",ornamentObliqueLineAfterNote:"",ornamentObliqueLineBeforeNote:"",ornamentObliqueLineHorizAfterNote:"",ornamentObliqueLineHorizBeforeNote:"",ornamentOriscus:"",ornamentPinceCouperin:"",ornamentPortDeVoixV:"",ornamentPrecompAppoggTrill:"",ornamentPrecompAppoggTrillSuffix:"",ornamentPrecompCadence:"","ornamentPrecompCadenceUpperPrefix ":"",ornamentPrecompCadenceUpperPrefixTurn:"","ornamentPrecompCadenceWithTurn ":"",ornamentPrecompDescendingSlide:"",ornamentPrecompDoubleCadenceLowerPrefix:"","ornamentPrecompDoubleCadenceUpperPrefix ":"",ornamentPrecompDoubleCadenceUpperPrefixTurn:"",ornamentPrecompInvertedMordentUpperPrefix:"",ornamentPrecompMordentRelease:"",ornamentPrecompMordentUpperPrefix:"",ornamentPrecompPortDeVoixMordent:"",ornamentPrecompSlide:"",ornamentPrecompSlideTrillBach:"",ornamentPrecompSlideTrillDAnglebert:"",ornamentPrecompSlideTrillMarpurg:"",ornamentPrecompSlideTrillMuffat:"",ornamentPrecompSlideTrillSuffixMuffat:"",ornamentPrecompTrillLowerSuffix:"",ornamentPrecompTrillSuffixDandrieu:"",
ornamentPrecompTrillWithMordent:"",ornamentPrecompTurnTrillBach:"",ornamentPrecompTurnTrillDAnglebert:"",ornamentQuilisma:"",ornamentRightFacingHalfCircle:"",ornamentRightFacingHook:"",ornamentRightVerticalStroke:"",ornamentSchleifer:"",ornamentShake3:"",ornamentShakeMuffat1:"",ornamentShortObliqueLineAfterNote:"",ornamentShortObliqueLineBeforeNote:"",ornamentTopLeftConcaveStroke:"",ornamentTopLeftConvexStroke:"",ornamentTopRightConcaveStroke:"",ornamentTopRightConvexStroke:"",ornamentTremblement:"",ornamentTremblementCouperin:"",ornamentTrill:"",ornamentTurn:"",ornamentTurnInverted:"",ornamentTurnSlash:"",ornamentTurnUp:"",ornamentTurnUpS:"",ornamentUpCurve:"",ornamentVerticalLine:"",ornamentZigZagLineNoRightEnd:"",ornamentZigZagLineWithRightEnd:"",ottava:"",ottavaAlta:"",ottavaBassa:"",ottavaBassaBa:"",ottavaBassaVb:"",pendereckiTremolo:"",pictAgogo:"",pictAlmglocken:"",pictAnvil:"",pictBambooChimes:"",pictBambooScraper:"",pictBassDrum:"",pictBassDrumOnSide:"",pictBeaterBow:"",pictBeaterBox:"",pictBeaterBrassMalletsDown:"",pictBeaterBrassMalletsUp:"",pictBeaterCombiningDashedCircle:"",pictBeaterCombiningParentheses:"",pictBeaterDoubleBassDrumDown:"",pictBeaterDoubleBassDrumUp:"",pictBeaterFinger:"",pictBeaterFingernails:"",pictBeaterFist:"",pictBeaterGuiroScraper:"",pictBeaterHammer:"",pictBeaterHammerMetalDown:"",pictBeaterHammerMetalUp:"",pictBeaterHammerPlasticDown:"",pictBeaterHammerPlasticUp:"",pictBeaterHammerWoodDown:"",pictBeaterHammerWoodUp:"",pictBeaterHand:"",pictBeaterHardBassDrumDown:"",pictBeaterHardBassDrumUp:"",pictBeaterHardGlockenspielDown:"",pictBeaterHardGlockenspielLeft:"",pictBeaterHardGlockenspielRight:"",pictBeaterHardGlockenspielUp:"",pictBeaterHardTimpaniDown:"",pictBeaterHardTimpaniLeft:"",pictBeaterHardTimpaniRight:"",pictBeaterHardTimpaniUp:"",pictBeaterHardXylophoneDown:"",pictBeaterHardXylophoneLeft:"",pictBeaterHardXylophoneRight:"",pictBeaterHardXylophoneUp:"",pictBeaterHardYarnDown:"",pictBeaterHardYarnLeft:"",pictBeaterHardYarnRight:"",pictBeaterHardYarnUp:"",pictBeaterJazzSticksDown:"",pictBeaterJazzSticksUp:"",pictBeaterKnittingNeedle:"",pictBeaterMallet:"",pictBeaterMediumBassDrumDown:"",pictBeaterMediumBassDrumUp:"",pictBeaterMediumTimpaniDown:"",pictBeaterMediumTimpaniLeft:"",pictBeaterMediumTimpaniRight:"",pictBeaterMediumTimpaniUp:"",pictBeaterMediumXylophoneDown:"",pictBeaterMediumXylophoneLeft:"",pictBeaterMediumXylophoneRight:"",pictBeaterMediumXylophoneUp:"",pictBeaterMediumYarnDown:"",pictBeaterMediumYarnLeft:"",pictBeaterMediumYarnRight:"",pictBeaterMediumYarnUp:"",pictBeaterMetalBassDrumDown:"",pictBeaterMetalBassDrumUp:"",pictBeaterMetalDown:"",pictBeaterMetalHammer:"",pictBeaterMetalLeft:"",pictBeaterMetalRight:"",pictBeaterMetalUp:"",pictBeaterSnareSticksDown:"",pictBeaterSnareSticksUp:"",pictBeaterSoftBassDrumDown:"",pictBeaterSoftBassDrumUp:"",pictBeaterSoftGlockenspielDown:"",pictBeaterSoftGlockenspielLeft:"",pictBeaterSoftGlockenspielRight:"",pictBeaterSoftGlockenspielUp:"",pictBeaterSoftTimpaniDown:"",pictBeaterSoftTimpaniLeft:"",pictBeaterSoftTimpaniRight:"",pictBeaterSoftTimpaniUp:"",pictBeaterSoftXylophone:"",pictBeaterSoftXylophoneDown:"",pictBeaterSoftXylophoneLeft:"",pictBeaterSoftXylophoneRight:"",pictBeaterSoftXylophoneUp:"",pictBeaterSoftYarnDown:"",pictBeaterSoftYarnLeft:"",pictBeaterSoftYarnRight:"",pictBeaterSoftYarnUp:"",pictBeaterSpoonWoodenMallet:"",pictBeaterSuperballDown:"",pictBeaterSuperballLeft:"",pictBeaterSuperballRight:"",pictBeaterSuperballUp:"",pictBeaterTriangleDown:"",pictBeaterTriangleUp:"",pictBeaterWireBrushesDown:"",pictBeaterWireBrushesUp:"",pictBeaterWoodTimpaniDown:"",pictBeaterWoodTimpaniLeft:"",pictBeaterWoodTimpaniRight:"",pictBeaterWoodTimpaniUp:"",pictBeaterWoodXylophoneDown:"",pictBeaterWoodXylophoneLeft:"",pictBeaterWoodXylophoneRight:"",pictBeaterWoodXylophoneUp:"",pictBell:"",pictBellOfCymbal:"",pictBellPlate:"",pictBellTree:"",pictBirdWhistle:"",pictBoardClapper:"",pictBongos:"",pictBrakeDrum:"",pictCabasa:"",pictCannon:"",pictCarHorn:"",pictCastanets:"",pictCastanetsWithHandle:"",pictCelesta:"",pictCencerro:"",pictCenter1:"",pictCenter2:"",pictCenter3:"",pictChainRattle:"",pictChimes:"",pictChineseCymbal:"",pictChokeCymbal:"",pictClaves:"",pictCoins:"",pictConga:"",pictCowBell:"",pictCrashCymbals:"",pictCrotales:"",pictCrushStem:"",pictCuica:"",pictCymbalTongs:"",pictDamp1:"",pictDamp2:"",pictDamp3:"",pictDamp4:"",pictDeadNoteStem:"",pictDrumStick:"",pictDuckCall:"",pictEdgeOfCymbal:"",pictEmptyTrap:"",pictFingerCymbals:"",pictFlexatone:"",pictFootballRatchet:"",pictGlassHarmonica:"",pictGlassHarp:"",pictGlassPlateChimes:"",pictGlassTubeChimes:"",pictGlsp:"",pictGlspSmithBrindle:"",pictGobletDrum:"",pictGong:"",pictGongWithButton:"",pictGuiro:"",pictGumHardDown:"",pictGumHardLeft:"",pictGumHardRight:"",pictGumHardUp:"",pictGumMediumDown:"",pictGumMediumLeft:"",pictGumMediumRight:"",pictGumMediumUp:"",pictGumSoftDown:"",pictGumSoftLeft:"",pictGumSoftRight:"",pictGumSoftUp:"",pictHalfOpen1:"",pictHalfOpen2:"",pictHandbell:"",pictHiHat:"",pictHiHatOnStand:"",pictJawHarp:"",pictJingleBells:"",pictKlaxonHorn:"",pictLeftHandCircle:"",pictLionsRoar:"",pictLithophone:"",pictLogDrum:"",pictLotusFlute:"",pictMar:"",pictMarSmithBrindle:"",pictMaraca:"",pictMaracas:"",pictMegaphone:"",pictMetalPlateChimes:"",pictMetalTubeChimes:"",pictMusicalSaw:"",pictNormalPosition:"",pictOnRim:"",pictOpen:"",pictOpenRimShot:"",pictPistolShot:"",pictPoliceWhistle:"",pictQuijada:"",pictRainstick:"",pictRatchet:"",pictRecoReco:"",pictRightHandSquare:"",pictRim1:"",pictRim2:"",pictRim3:"",pictRimShotOnStem:"",pictSandpaperBlocks:"",pictScrapeAroundRim:"",pictScrapeCenterToEdge:"",pictScrapeEdgeToCenter:"",pictShellBells:"",pictShellChimes:"",pictSiren:"",pictSistrum:"",pictSizzleCymbal:"",pictSleighBell:"",pictSlideBrushOnGong:"",pictSlideWhistle:"",pictSlitDrum:"",pictSnareDrum:"",pictSnareDrumMilitary:"",pictSnareDrumSnaresOff:"",pictSteelDrums:"",pictStickShot:"",pictSuperball:"",pictSuspendedCymbal:"",pictSwishStem:"",pictTabla:"",pictTamTam:"",pictTamTamWithBeater:"",pictTambourine:"",pictTempleBlocks:"",pictTenorDrum:"",pictThundersheet:"",pictTimbales:"",pictTimpani:"",pictTomTom:"",pictTomTomChinese:"",pictTomTomIndoAmerican:"",pictTomTomJapanese:"",pictTriangle:"",pictTubaphone:"",pictTubularBells:"",pictTurnLeftStem:"",pictTurnRightLeftStem:"",pictTurnRightStem:"",pictVib:"",pictVibMotorOff:"",pictVibSmithBrindle:"",pictVibraslap:"",pictVietnameseHat:"",pictWhip:"",pictWindChimesGlass:"",pictWindMachine:"",pictWindWhistle:"",pictWoodBlock:"",pictWoundHardDown:"",pictWoundHardLeft:"",pictWoundHardRight:"",pictWoundHardUp:"",pictWoundSoftDown:"",pictWoundSoftLeft:"",pictWoundSoftRight:"",pictWoundSoftUp:"",pictXyl:"",pictXylBass:"",pictXylSmithBrindle:"",pictXylTenor:"",pictXylTenorTrough:"",pictXylTrough:"",pluckedBuzzPizzicato:"",pluckedDamp:"",pluckedDampAll:"",pluckedDampOnStem:"",pluckedFingernailFlick:"",pluckedLeftHandPizzicato:"",pluckedPlectrum:"",pluckedSnapPizzicatoAbove:"",pluckedSnapPizzicatoBelow:"",pluckedWithFingernails:"",quindicesima:"",quindicesimaAlta:"",quindicesimaBassa:"",quindicesimaBassaMb:"",repeat1Bar:"",repeat2Bars:"",repeat4Bars:"",repeatDot:"",repeatDots:"",repeatLeft:"",repeatRight:"",repeatRightLeft:"",rest1024th:"",rest128th:"",rest16th:"",rest256th:"",rest32nd:"",rest512th:"",rest64th:"",rest8th:"",restDoubleWhole:"",restDoubleWholeLegerLine:"",restHBar:"",restHBarLeft:"",restHBarMiddle:"",restHBarRight:"",restHalf:"",restHalfLegerLine:"",restLonga:"",restMaxima:"",restQuarter:"",restQuarterOld:"",restWhole:"",restWholeLegerLine:"",reversedBrace:"",reversedBracketBottom:"",reversedBracketTop:"",rightRepeatSmall:"",segno:"",segnoSerpent1:"",segnoSerpent2:"",semipitchedPercussionClef1:"",semipitchedPercussionClef2:"",smnFlat:"",smnFlatWhite:"",smnHistoryDoubleFlat:"",smnHistoryDoubleSharp:"",smnHistoryFlat:"",smnHistorySharp:"",smnNatural:"",smnSharp:"",smnSharpDown:"",smnSharpWhite:"",smnSharpWhiteDown:"",splitBarDivider:"",staff1Line:"",staff1LineNarrow:"",staff1LineWide:"",staff2Lines:"",staff2LinesNarrow:"",staff2LinesWide:"",staff3Lines:"",staff3LinesNarrow:"",staff3LinesWide:"",staff4Lines:"",staff4LinesNarrow:"",staff4LinesWide:"",staff5Lines:"",staff5LinesNarrow:"",staff5LinesWide:"",staff6Lines:"",staff6LinesNarrow:"",staff6LinesWide:"",staffDivideArrowDown:"",staffDivideArrowUp:"",staffDivideArrowUpDown:"",staffPosLower1:"",staffPosLower2:"",staffPosLower3:"",staffPosLower4:"",staffPosLower5:"",staffPosLower6:"",staffPosLower7:"",staffPosLower8:"",staffPosRaise1:"",staffPosRaise2:"",staffPosRaise3:"",staffPosRaise4:"",staffPosRaise5:"",staffPosRaise6:"",staffPosRaise7:"",staffPosRaise8:"",stem:"",stemBowOnBridge:"",stemBowOnTailpiece:"",stemBuzzRoll:"",stemDamp:"",stemHarpStringNoise:"",stemMultiphonicsBlack:"",stemMultiphonicsBlackWhite:"",stemMultiphonicsWhite:"",stemPendereckiTremolo:"",stemRimShot:"",stemSprechgesang:"",stemSulPonticello:"",stemSussurando:"",stemSwished:"",stemVibratoPulse:"",stringsBowBehindBridge:"",stringsBowOnBridge:"",stringsBowOnTailpiece:"",stringsChangeBowDirection:"",stringsDownBow:"",stringsDownBowTurned:"",stringsFouette:"",stringsHalfHarmonic:"",stringsHarmonic:"",stringsJeteAbove:"",stringsJeteBelow:"",stringsMuteOff:"",stringsMuteOn:"",stringsOverpressureDownBow:"",stringsOverpressureNoDirection:"",stringsOverpressurePossibileDownBow:"",stringsOverpressurePossibileUpBow:"",stringsOverpressureUpBow:"",stringsThumbPosition:"",stringsThumbPositionTurned:"",stringsUpBow:"",stringsUpBowTurned:"",stringsVibratoPulse:"",systemDivider:"",systemDividerExtraLong:"",systemDividerLong:"",textAugmentationDot:"",textBlackNoteFrac16thLongStem:"",textBlackNoteFrac16thShortStem:"",textBlackNoteFrac32ndLongStem:"",textBlackNoteFrac8thLongStem:"",textBlackNoteFrac8thShortStem:"",textBlackNoteLongStem:"",textBlackNoteShortStem:"",textCont16thBeamLongStem:"",textCont16thBeamShortStem:"",textCont32ndBeamLongStem:"",textCont8thBeamLongStem:"",textCont8thBeamShortStem:"",textTie:"",textTuplet3LongStem:"",textTuplet3ShortStem:"",textTupletBracketEndLongStem:"",textTupletBracketEndShortStem:"",textTupletBracketStartLongStem:"",textTupletBracketStartShortStem:"",timeSig0:"",timeSig1:"",timeSig2:"",timeSig3:"",timeSig4:"",timeSig5:"",timeSig6:"",timeSig7:"",timeSig8:"",timeSig9:"",timeSigBracketLeft:"",timeSigBracketLeftSmall:"",timeSigBracketRight:"",timeSigBracketRightSmall:"",timeSigCombDenominator:"",timeSigCombNumerator:"",timeSigComma:"",timeSigCommon:"",timeSigCut2:"",timeSigCutCommon:"",timeSigEquals:"",timeSigFractionHalf:"",timeSigFractionOneThird:"",timeSigFractionQuarter:"",timeSigFractionThreeQuarters:"",timeSigFractionTwoThirds:"",timeSigFractionalSlash:"",timeSigMinus:"",timeSigMultiply:"",timeSigOpenPenderecki:"",timeSigParensLeft:"",timeSigParensLeftSmall:"",timeSigParensRight:"",timeSigParensRightSmall:"",timeSigPlus:"",timeSigPlusSmall:"",timeSigSlash:"",timeSigX:"",tremolo1:"",tremolo2:"",tremolo3:"",tremolo4:"",tremolo5:"",tremoloDivisiDots2:"",tremoloDivisiDots3:"",tremoloDivisiDots4:"",tremoloDivisiDots6:"",tremoloFingered1:"",tremoloFingered2:"",tremoloFingered3:"",tremoloFingered4:"",tremoloFingered5:"",tripleTongueAbove:"",tripleTongueBelow:"",tuplet0:"",tuplet1:"",tuplet2:"",tuplet3:"",tuplet4:"",tuplet5:"",tuplet6:"",tuplet7:"",tuplet8:"",tuplet9:"",tupletColon:"",unmeasuredTremolo:"",unmeasuredTremoloSimple:"",unpitchedPercussionClef1:"",unpitchedPercussionClef2:"",ventiduesima:"",ventiduesimaAlta:"",ventiduesimaBassa:"",ventiduesimaBassaMb:"",vocalMouthClosed:"",vocalMouthOpen:"",vocalMouthPursed:"",vocalMouthSlightlyOpen:"",vocalMouthWideOpen:"",vocalSprechgesang:"",vocalsSussurando:"",wiggleArpeggiatoDown:"",wiggleArpeggiatoDownArrow:"",wiggleArpeggiatoDownSwash:"",wiggleArpeggiatoUp:"",wiggleArpeggiatoUpArrow:"",wiggleArpeggiatoUpSwash:"",wiggleCircular:"",wiggleCircularConstant:"",wiggleCircularConstantFlipped:"",wiggleCircularConstantFlippedLarge:"",wiggleCircularConstantLarge:"",wiggleCircularEnd:"",wiggleCircularLarge:"",wiggleCircularLarger:"",wiggleCircularLargerStill:"",wiggleCircularLargest:"",wiggleCircularSmall:"",wiggleCircularStart:"",wiggleGlissando:"",wiggleGlissandoGroup1:"",wiggleGlissandoGroup2:"",wiggleGlissandoGroup3:"",wiggleRandom1:"",wiggleRandom2:"",wiggleRandom3:"",wiggleRandom4:"",wiggleSawtooth:"",wiggleSawtoothNarrow:"",wiggleSawtoothWide:"",wiggleSquareWave:"",wiggleSquareWaveNarrow:"",wiggleSquareWaveWide:"",wiggleTrill:"",wiggleTrillFast:"",wiggleTrillFaster:"",wiggleTrillFasterStill:"",wiggleTrillFastest:"",wiggleTrillSlow:"",wiggleTrillSlower:"",wiggleTrillSlowerStill:"",wiggleTrillSlowest:"",wiggleVIbratoLargestSlower:"",wiggleVIbratoMediumSlower:"",wiggleVibrato:"",wiggleVibratoLargeFast:"",wiggleVibratoLargeFaster:"",wiggleVibratoLargeFasterStill:"",wiggleVibratoLargeFastest:"",wiggleVibratoLargeSlow:"",wiggleVibratoLargeSlower:"",wiggleVibratoLargeSlowest:"",wiggleVibratoLargestFast:"",wiggleVibratoLargestFaster:"",wiggleVibratoLargestFasterStill:"",wiggleVibratoLargestFastest:"",wiggleVibratoLargestSlow:"",wiggleVibratoLargestSlowest:"",wiggleVibratoMediumFast:"",wiggleVibratoMediumFaster:"",wiggleVibratoMediumFasterStill:"",wiggleVibratoMediumFastest:"",wiggleVibratoMediumSlow:"",wiggleVibratoMediumSlowest:"",wiggleVibratoSmallFast:"",wiggleVibratoSmallFaster:"",wiggleVibratoSmallFasterStill:"",wiggleVibratoSmallFastest:"",wiggleVibratoSmallSlow:"",wiggleVibratoSmallSlower:"",wiggleVibratoSmallSlowest:"",wiggleVibratoSmallestFast:"",wiggleVibratoSmallestFaster:"",wiggleVibratoSmallestFasterStill:"",wiggleVibratoSmallestFastest:"",wiggleVibratoSmallestSlow:"",wiggleVibratoSmallestSlower:"",wiggleVibratoSmallestSlowest:"",wiggleVibratoStart:"",wiggleVibratoWide:"",wiggleWavy:"",wiggleWavyNarrow:"",wiggleWavyWide:"",windClosedHole:"",windFlatEmbouchure:"",windHalfClosedHole1:"",windHalfClosedHole2:"",windHalfClosedHole3:"",windLessRelaxedEmbouchure:"",windLessTightEmbouchure:"",windMultiphonicsBlackStem:"",windMultiphonicsBlackWhiteStem:"",windMultiphonicsWhiteStem:"",windOpenHole:"",windReedPositionIn:"",windReedPositionNormal:"",windReedPositionOut:"",windRelaxedEmbouchure:"",windSharpEmbouchure:"",windStrongAirPressure:"",windThreeQuartersClosedHole:"",windTightEmbouchure:"",windTrillKey:"",windVeryTightEmbouchure:"",windWeakAirPressure:""};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},function(e,t,n){"use strict";var i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=n(4),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return r.DOM.path({d:"M"+this.props.x1+","+this.props.y1+"C"+this.props.x2+","+this.props.y2+" "+this.props.x3+","+this.props.y3+" "+this.props.x4+","+this.props.y4+" C"+this.props.x5+","+this.props.y5+" "+this.props.x6+","+this.props.y6+" "+this.props.x1+","+this.props.y1,fill:this.props.fill,stroke:this.props.stroke,strokeWidth:this.props.strokeWidth})},t}(r.Component);Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a},function(e,t){"use strict";function n(e,t,n,i,r){e.beginPath(),e.moveTo(t,n),e.lineTo(i,r),e.stroke()}t.line=n},function(e,t,n){"use strict";function i(e){e=e||{},this.familyName=e.familyName||" ",this.styleName=e.styleName||" ",this.designer=e.designer||" ",this.designerURL=e.designerURL||" ",this.manufacturer=e.manufacturer||" ",this.manufacturerURL=e.manufacturerURL||" ",this.license=e.license||" ",this.licenseURL=e.licenseURL||" ",this.version=e.version||"Version 0.1",this.description=e.description||" ",this.copyright=e.copyright||" ",this.trademark=e.trademark||" ",this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.supported=!0,this.glyphs=e.glyphs||[],this.encoding=new o.DefaultEncoding(this),this.tables={}}var r=n(19),a=n(141),o=n(21);i.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},i.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},i.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs[t];return n||(n=this.glyphs[0]),n},i.prototype.stringToGlyphs=function(e){for(var t=[],n=0;n<e.length;n+=1){var i=e[n];t.push(this.charToGlyph(i))}return t},i.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},i.prototype.nameToGlyph=function(e){var t=this.nametoGlyphIndex(e),n=this.glyphs[t];return n||(n=this.glyphs[0]),n},i.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},i.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.getGposKerningValue;return n?n(e,t):this.kerningPairs[e+","+t]||0},i.prototype.forEachGlyph=function(e,t,n,i,r,a){if(this.supported){t=void 0!==t?t:0,n=void 0!==n?n:0,i=void 0!==i?i:72,r=r||{};for(var o=void 0===r.kerning||r.kerning,l=1/this.unitsPerEm*i,s=this.stringToGlyphs(e),u=0;u<s.length;u+=1){var c=s[u];if(a(c,t,n,i,r),c.advanceWidth&&(t+=c.advanceWidth*l),o&&u<s.length-1){var f=this.getKerningValue(c,s[u+1]);t+=f*l}}}},i.prototype.getPath=function(e,t,n,i,a){var o=new r.Path;return this.forEachGlyph(e,t,n,i,a,function(e,t,n,i){var r=e.getPath(t,n,i);o.extend(r)}),o},i.prototype.draw=function(e,t,n,i,r,a){this.getPath(t,n,i,r,a).draw(e)},i.prototype.drawPoints=function(e,t,n,i,r,a){this.forEachGlyph(t,n,i,r,a,function(t,n,i,r){t.drawPoints(e,n,i,r)})},i.prototype.drawMetrics=function(e,t,n,i,r,a){this.forEachGlyph(t,n,i,r,a,function(t,n,i,r){t.drawMetrics(e,n,i,r)})},i.prototype.validate=function(){function e(e,t){e||n.push(t)}function t(t){e(i[t]&&i[t].trim().length>0,"No "+t+" specified.")}var n=[],i=this;t("familyName"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),e(this.unitsPerEm>0,"No unitsPerEm specified.")},i.prototype.toTables=function(){return a.fontToTable(this)},i.prototype.toBuffer=function(){for(var e=this.toTables(),t=e.encode(),n=new ArrayBuffer(t.length),i=new Uint8Array(n),r=0;r<t.length;r++)i[r]=t[r];return n},i.prototype.download=function(){var e=this.familyName.replace(/\s/g,"")+"-"+this.styleName+".otf",t=this.toBuffer();window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,t.byteLength,function(n){n.root.getFile(e,{create:!0},function(e){e.createWriter(function(n){var i=new DataView(t),r=new Blob([i],{type:"font/opentype"});n.write(r),n.addEventListener("writeend",function(){location.href=e.toURL()},!1)})})},function(e){throw e})},t.Font=i},function(e,t,n){"use strict";function i(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i+=1)n[i]=e[i];return t}function r(e,t){var r=n(150);r.readFile(e,function(e,n){return e?t(e.message):void t(null,i(n))})}function a(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return 200!==n.status?t("Font could not be loaded: "+n.statusText):t(null,n.response)},n.send()}function o(e){var t,n,i,r,a,o,l,c=new u.Font,d=new DataView(e,0),x=f.getFixed(d,0);if(1===x)c.outlinesFormat="truetype";else{if(x=f.getTag(d,0),"OTTO"!==x)throw new Error("Unsupported OpenType version "+x);c.outlinesFormat="cff"}for(var k=f.getUShort(d,4),B=12,C=0;C<k;C+=1){var L=f.getTag(d,B),W=f.getULong(d,B+8);switch(L){case"cmap":c.tables.cmap=h.parse(d,W),c.encoding=new s.CmapEncoding(c.tables.cmap),c.encoding||(c.supported=!1);break;case"head":c.tables.head=g.parse(d,W),c.unitsPerEm=c.tables.head.unitsPerEm,t=c.tables.head.indexToLocFormat;break;case"hhea":c.tables.hhea=y.parse(d,W),c.ascender=c.tables.hhea.ascender,c.descender=c.tables.hhea.descender,c.numberOfHMetrics=c.tables.hhea.numberOfHMetrics;break;case"hmtx":n=W;break;case"maxp":c.tables.maxp=N.parse(d,W),c.numGlyphs=c.tables.maxp.numGlyphs;break;case"name":c.tables.name=D.parse(d,W),c.familyName=c.tables.name.fontFamily,c.styleName=c.tables.name.fontSubfamily;break;case"OS/2":c.tables.os2=T.parse(d,W);break;case"post":c.tables.post=F.parse(d,W),c.glyphNames=new s.GlyphNames(c.tables.post);break;case"glyf":i=W;break;case"loca":r=W;break;case"CFF ":a=W;break;case"kern":o=W;break;case"GPOS":l=W}B+=16}if(i&&r){var _=0===t,O=w.parse(d,r,c.numGlyphs,_);c.glyphs=m.parse(d,i,O,c),b.parse(d,n,c.numberOfHMetrics,c.numGlyphs,c.glyphs),s.addGlyphNames(c)}else a?(p.parse(d,a,c),s.addGlyphNames(c)):c.supported=!1;return c.supported&&(o?c.kerningPairs=S.parse(d,o):c.kerningPairs={},l&&v.parse(d,l,c)),c}function l(e,t){var n="undefined"==typeof window,i=n?r:a;i(e,function(e,n){if(e)return t(e);var i=o(n);return i.supported?t(null,i):t("Font is not supported (is this a Postscript font?)")})}var s=n(21),u=n(135),c=n(24),f=n(10),d=n(19),h=n(55),p=n(54),m=n(137),v=n(138),g=n(56),y=n(57),b=n(58),S=n(139),w=n(140),N=n(59),D=n(60),T=n(61),F=n(62);t._parse=f,t.Font=u.Font,t.Glyph=c.Glyph,t.Path=d.Path,t.parse=o,t.load=l},function(e,t,n){"use strict";function i(e,t,n,i,r){var a;return(t&i)>0?(a=e.parseByte(),0===(t&r)&&(a=-a),a=n+a):a=(t&r)>0?n:n+e.parseShort(),a}function r(e,t,n,r){var a=new f.Parser(e,t),o=new c.Glyph({font:r,index:n});o.numberOfContours=a.parseShort(),o.xMin=a.parseShort(),o.yMin=a.parseShort(),o.xMax=a.parseShort(),o.yMax=a.parseShort();var l,s;if(o.numberOfContours>0){var d,h=o.endPointIndices=[];for(d=0;d<o.numberOfContours;d+=1)h.push(a.parseUShort());for(o.instructionLength=a.parseUShort(),o.instructions=[],d=0;d<o.instructionLength;d+=1)o.instructions.push(a.parseByte());var p=h[h.length-1]+1;for(l=[],d=0;d<p;d+=1)if(s=a.parseByte(),l.push(s),(8&s)>0)for(var m=a.parseByte(),v=0;v<m;v+=1)l.push(s),d+=1;if(u.argument(l.length===p,"Bad flags."),h.length>0){var g,y=[];if(p>0){for(d=0;d<p;d+=1)s=l[d],g={},g.onCurve=!!(1&s),g.lastPointOfContour=h.indexOf(d)>=0,y.push(g);var b=0;for(d=0;d<p;d+=1)s=l[d],g=y[d],g.x=i(a,s,b,2,16),b=g.x;var S=0;for(d=0;d<p;d+=1)s=l[d],g=y[d],g.y=i(a,s,S,4,32),S=g.y}o.points=y}else o.points=[]}else if(0===o.numberOfContours)o.points=[];else{o.isComposite=!0,o.points=[],o.components=[];for(var w=!0;w;){l=a.parseUShort();var N={glyphIndex:a.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&l)>0?(N.dx=a.parseShort(),N.dy=a.parseShort()):(N.dx=a.parseChar(),N.dy=a.parseChar()),(8&l)>0?N.xScale=N.yScale=a.parseF2Dot14():(64&l)>0?(N.xScale=a.parseF2Dot14(),N.yScale=a.parseF2Dot14()):(128&l)>0&&(N.xScale=a.parseF2Dot14(),N.scale01=a.parseF2Dot14(),N.scale10=a.parseF2Dot14(),N.yScale=a.parseF2Dot14()),o.components.push(N),w=!!(32&l)}}return o}function a(e,t){for(var n=[],i=0;i<e.length;i+=1){var r=e[i],a={x:t.xScale*r.x+t.scale01*r.y+t.dx,y:t.scale10*r.x+t.yScale*r.y+t.dy,onCurve:r.onCurve,lastPointOfContour:r.lastPointOfContour};n.push(a)}return n}function o(e){for(var t=[],n=[],i=0;i<e.length;i+=1){var r=e[i];n.push(r),r.lastPointOfContour&&(t.push(n),n=[])}return u.argument(0===n.length,"There are still points left in the current contour."),t}function l(e){var t=new d.Path;if(!e)return t;for(var n=o(e),i=0;i<n.length;i+=1){var r,a,l=n[i],s=l[0],u=l[l.length-1];s.onCurve?(r=null,a=!0):(s=u.onCurve?u:{x:(s.x+u.x)/2,y:(s.y+u.y)/2},r=s,a=!1),t.moveTo(s.x,s.y);for(var c=a?1:0;c<l.length;c+=1){var f=l[c],h=0===c?s:l[c-1];if(h.onCurve&&f.onCurve)t.lineTo(f.x,f.y);else if(h.onCurve&&!f.onCurve)r=f;else if(h.onCurve||f.onCurve){if(h.onCurve||!f.onCurve)throw new Error("Invalid state.");t.quadraticCurveTo(r.x,r.y,f.x,f.y),r=null}else{var p={x:(h.x+f.x)/2,y:(h.y+f.y)/2};t.quadraticCurveTo(h.x,h.y,p.x,p.y),r=f}}s!==u&&(r?t.quadraticCurveTo(r.x,r.y,s.x,s.y):t.lineTo(s.x,s.y))}return t.closePath(),t}function s(e,t,n,i){var o,s=[];for(o=0;o<n.length-1;o+=1){var u=n[o],f=n[o+1];u!==f?s.push(r(e,t+u,o,i)):s.push(new c.Glyph({font:i,index:o}))}for(o=0;o<s.length;o+=1){var d=s[o];if(d.isComposite)for(var h=0;h<d.components.length;h+=1){var p=d.components[h],m=s[p.glyphIndex];if(m.points){var v=a(m.points,p);d.points=d.points.concat(v)}}d.path=l(d.points)}return s}var u=n(12),c=n(24),f=n(10),d=n(19);t.parse=s},function(e,t,n){"use strict";function i(e,t){for(var n=new c.Parser(e,t),i=n.parseUShort(),r=[],a=0;a<i;a++)r[n.parseTag()]={offset:n.parseUShort()};return r}function r(e,t){var n=new c.Parser(e,t),i=n.parseUShort(),r=n.parseUShort();if(1===i)return n.parseUShortList(r);if(2===i){for(var a=[];r--;)for(var o=n.parseUShort(),l=n.parseUShort(),s=n.parseUShort(),u=o;u<=l;u++)a[s++]=u;return a}}function a(e,t){var n=new c.Parser(e,t),i=n.parseUShort();if(1===i){var r=n.parseUShort(),a=n.parseUShort(),o=n.parseUShortList(a);return function(e){return o[e-r]||0}}if(2===i){for(var l=n.parseUShort(),s=[],u=[],f=[],d=0;d<l;d++)s[d]=n.parseUShort(),u[d]=n.parseUShort(),f[d]=n.parseUShort();return function(e){for(var t=0,n=s.length-1;t<n;){var i=t+n+1>>1;e<s[i]?n=i-1:t=i}return s[t]<=e&&e<=u[t]?f[t]||0:0}}}function o(e,t){var n,i,o=new c.Parser(e,t),l=o.parseUShort(),s=o.parseUShort(),u=r(e,t+s),f=o.parseUShort(),d=o.parseUShort();if(4===f&&0===d){var h={};if(1===l){for(var p=o.parseUShort(),m=[],v=o.parseOffset16List(p),g=0;g<p;g++){var y=v[g],b=h[y];if(!b){b={},o.relativeOffset=y;for(var S=o.parseUShort();S--;){var w=o.parseUShort();f&&(n=o.parseShort()),d&&(i=o.parseShort()),b[w]=n}}m[u[g]]=b}return function(e,t){var n=m[e];if(n)return n[t]}}if(2===l){for(var N=o.parseUShort(),D=o.parseUShort(),T=o.parseUShort(),F=o.parseUShort(),x=a(e,t+N),k=a(e,t+D),B=[],C=0;C<T;C++)for(var L=B[C]=[],W=0;W<F;W++)f&&(n=o.parseShort()),d&&(i=o.parseShort()),L[W]=n;var _={};for(C=0;C<u.length;C++)_[u[C]]=1;return function(e,t){if(_[e]){var n=x(e),i=k(t),r=B[n];return r?r[i]:void 0}}}}}function l(e,t){var n=new c.Parser(e,t),i=n.parseUShort(),r=n.parseUShort(),a=16&r,l=n.parseUShort(),s=n.parseOffset16List(l),u={lookupType:i,lookupFlag:r,markFilteringSet:a?n.parseUShort():-1};if(2===i){for(var f=[],d=0;d<l;d++)f.push(o(e,t+s[d]));u.getKerningValue=function(e,t){for(var n=f.length;n--;){var i=f[n](e,t);if(void 0!==i)return i}return 0}}return u}function s(e,t,n){var r=new c.Parser(e,t),a=r.parseFixed();u.argument(1===a,"Unsupported GPOS table version."),i(e,t+r.parseUShort()),i(e,t+r.parseUShort());var o=r.parseUShort();r.relativeOffset=o;for(var s=r.parseUShort(),f=r.parseOffset16List(s),d=t+o,h=0;h<s;h++){var p=l(e,d+f[h]);2!==p.lookupType||n.getGposKerningValue||(n.getGposKerningValue=p.getKerningValue)}}var u=n(12),c=n(10);t.parse=s},function(e,t,n){"use strict";function i(e,t){var n={},i=new a.Parser(e,t),o=i.parseUShort();r.argument(0===o,"Unsupported kern table version."),i.skip("uShort",1);var l=i.parseUShort();r.argument(0===l,"Unsupported kern sub-table version."),i.skip("uShort",2);var s=i.parseUShort();i.skip("uShort",3);for(var u=0;u<s;u+=1){var c=i.parseUShort(),f=i.parseUShort(),d=i.parseShort();n[c+","+f]=d}return n}var r=n(12),a=n(10);t.parse=i},function(e,t,n){"use strict";function i(e,t,n,i){for(var a=new r.Parser(e,t),o=i?a.parseUShort:a.parseULong,l=[],s=0;s<n+1;s+=1){var u=o.call(a);i&&(u*=2),l.push(u)}return l}var r=n(10);t.parse=i},function(e,t,n){"use strict";function i(e){return Math.log(e)/Math.log(2)|0}function r(e){for(;e.length%4!==0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=Math.pow(2,32)}function a(e,t,n,i){return new f.Table("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==i?i:0}])}function o(e){var t=new f.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,i(t.numTables));t.searchRange=16*n,t.entrySelector=i(n),t.rangeShift=16*t.numTables-t.searchRange;for(var o=[],l=[],s=t.sizeOf()+a().sizeOf()*t.numTables;s%4!==0;)s+=1,l.push({name:"padding",type:"BYTE",value:0});for(var u=0;u<e.length;u+=1){var d=e[u];c.argument(4===d.tableName.length,"Table name"+d.tableName+" is invalid.");var h=d.sizeOf(),p=a(d.tableName,r(d.encode()),s,h);for(o.push({name:p.tag+" Table Record",type:"TABLE",value:p}),l.push({name:d.tableName+" table",type:"TABLE",value:d}),s+=h,c.argument(!isNaN(s),"Something went wrong calculating the offset.");s%4!==0;)s+=1,l.push({name:"padding",type:"BYTE",value:0})}return o.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(o),t.fields=t.fields.concat(l),t}function l(e,t,n){for(var i=0;i<t.length;i+=1){var r=e.charToGlyphIndex(t[i]);if(r>0){var a=e.glyphs[r];return a.getMetrics()}}return n}function s(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}function u(e){for(var t=[],n=[],i=[],a=[],u=[],c=[],f=[],w=null,N=0,D=0,T=0,F=0,x=0,k=0;k<e.glyphs.length;k+=1){var B=e.glyphs[k],C=0|B.unicode;(w>C||null===w)&&(w=C),N<C&&(N=C);var L=b.getUnicodeRange(C);if(L<32)D|=1<<L;else if(L<64)T|=1<<L-32;else if(L<96)F|=1<<L-64;else{if(!(L<123))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");x|=1<<L-96}if(".notdef"!==B.name){var W=B.getMetrics();t.push(W.xMin),n.push(W.yMin),i.push(W.xMax),a.push(W.yMax),c.push(W.leftSideBearing),f.push(W.rightSideBearing),u.push(B.advanceWidth)}}var _={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,i),yMax:Math.max.apply(null,a),advanceWidthMax:Math.max.apply(null,u),advanceWidthAvg:s(u),minLeftSideBearing:Math.min.apply(null,c),maxLeftSideBearing:Math.max.apply(null,c),minRightSideBearing:Math.min.apply(null,f)};_.ascender=void 0!==e.ascender?e.ascender:_.yMax,_.descender=void 0!==e.descender?e.descender:_.yMin;var O=p.make({unitsPerEm:e.unitsPerEm,xMin:_.xMin,yMin:_.yMin,xMax:_.xMax,yMax:_.yMax}),U=m.make({ascender:_.ascender,descender:_.descender,advanceWidthMax:_.advanceWidthMax,minLeftSideBearing:_.minLeftSideBearing,minRightSideBearing:_.minRightSideBearing,xMaxExtent:_.maxLeftSideBearing+(_.xMax-_.xMin),numberOfHMetrics:e.glyphs.length}),A=g.make(e.glyphs.length),E=b.make({xAvgCharWidth:Math.round(_.advanceWidthAvg),usWeightClass:500,usWidthClass:5,usFirstCharIndex:w,usLastCharIndex:N,ulUnicodeRange1:D,ulUnicodeRange2:T,ulUnicodeRange3:F,ulUnicodeRange4:x,sTypoAscender:_.ascender,sTypoDescender:_.descender,sTypoLineGap:0,usWinAscent:_.ascender,usWinDescent:-_.descender,sxHeight:l(e,"xyvw",{yMax:0}).yMax,sCapHeight:l(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",_).yMax,usBreakChar:e.hasChar(" ")?32:0}),M=v.make(e.glyphs),X=d.make(e.glyphs),P=e.familyName+" "+e.styleName,Y=e.familyName.replace(/\s/g,"")+"-"+e.styleName,R=y.make({copyright:e.copyright,fontFamily:e.familyName,fontSubfamily:e.styleName,uniqueID:e.manufacturer+":"+P,fullName:P,version:e.version,postScriptName:Y,trademark:e.trademark,manufacturer:e.manufacturer,designer:e.designer,description:e.description,manufacturerURL:e.manufacturerURL,designerURL:e.designerURL,license:e.license,licenseURL:e.licenseURL,preferredFamily:e.familyName,preferredSubfamily:e.styleName}),z=S.make(),I=h.make(e.glyphs,{version:e.version,fullName:P,familyName:e.familyName,weightName:e.styleName,postScriptName:Y}),H=[O,U,A,E,R,X,z,I,M],j=o(H),q=j.encode(),G=r(q),V=j.fields,Q=!1;for(k=0;k<V.length;k+=1)if("head table"===V[k].name){V[k].value.checkSumAdjustment=2981146554-G,
Q=!0;break}if(!Q)throw new Error("Could not find head table with checkSum to adjust.");return j}var c=n(12),f=n(11),d=n(55),h=n(54),p=n(56),m=n(57),v=n(58),g=n(59),y=n(60),b=n(61),S=n(62);t.computeCheckSum=r,t.make=o,t.fontToTable=u},function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return r.exec(e).slice(1)};t.resolve=function(){for(var t="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),l=o,s=0;s<o;s++)if(r[s]!==a[s]){l=s;break}for(var u=[],s=l;s<r.length;s++)u.push("..");return u=u.concat(a.slice(l)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=a(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},t.basename=function(e,t){var n=a(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return a(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(t,n(26))},function(e,t,n){var i;!function(e){function t(e,t,n,r,a){function o(e){function t(e){var t=Number.MAX_VALUE,n=Number.MAX_VALUE,i=0,a=0;e.array.forEach(function(e){var o="undefined"!=typeof e.width?e.width:r,l="undefined"!=typeof e.height?e.height:r;o/=2,l/=2,i=Math.max(e.x+o,i),t=Math.min(e.x-o,t),a=Math.max(e.y+l,a),n=Math.min(e.y-l,n)}),e.width=i-t,e.height=a-n}e.forEach(function(e){t(e)})}function l(e){e.forEach(function(e){var t={x:0,y:0};e.array.forEach(function(e){t.x+=e.x,t.y+=e.y}),t.x/=e.array.length,t.y/=e.array.length;var n={x:t.x-e.width/2,y:t.y-e.height/2},i={x:e.x-n.x,y:e.y-n.y};e.array.forEach(function(e){e.x=e.x+i.x+m/2-g/2,e.y=e.y+i.y+v/2-y/2})})}function s(e,t){var n=Number.POSITIVE_INFINITY,r=0;e.sort(function(e,t){return t.height-e.height}),b=e.reduce(function(e,t){return e.width<t.width?e.width:t.width});for(var a=m=b,o=v=f(e),l=0,s=Number.MAX_VALUE,c=Number.MAX_VALUE,d=-1,h=Number.MAX_VALUE,p=Number.MAX_VALUE;h>b||p>i.FLOAT_EPSILON;){if(1!=d)var m=o-(o-a)/i.GOLDEN_SECTION,s=u(e,m);if(0!=d)var v=a+(o-a)/i.GOLDEN_SECTION,c=u(e,v);if(h=Math.abs(m-v),p=Math.abs(s-c),s<n&&(n=s,r=m),c<n&&(n=c,r=v),s>c?(a=m,m=v,s=c,d=1):(o=v,v=m,c=s,d=0),l++>100)break}u(e,r)}function u(e,t){w=[],g=0,y=0,S=p;for(var n=0;n<e.length;n++){var i=e[n];c(i,t)}return Math.abs(d()-a)}function c(e,t){for(var n=void 0,r=0;r<w.length;r++)if(w[r].space_left>=e.height&&w[r].x+w[r].width+e.width+i.PADDING-t<=i.FLOAT_EPSILON){n=w[r];break}w.push(e),void 0!==n?(e.x=n.x+n.width+i.PADDING,e.y=n.bottom,e.space_left=e.height,e.bottom=e.y,n.space_left-=e.height+i.PADDING,n.bottom+=e.height+i.PADDING):(e.y=S,S+=e.height+i.PADDING,e.x=h,e.bottom=e.y,e.space_left=e.height),e.y+e.height-y>-i.FLOAT_EPSILON&&(y=e.y+e.height-p),e.x+e.width-g>-i.FLOAT_EPSILON&&(g=e.x+e.width-h)}function f(e){var t=0;return e.forEach(function(e){return t+=e.width+i.PADDING}),t}function d(){return g/y}void 0===a&&(a=1);var h=0,p=0,m=t,v=n,a="undefined"!=typeof a?a:1,r="undefined"!=typeof r?r:0,g=0,y=0,b=0,S=0,w=[];0!=e.length&&(o(e),s(e,a),l(e))}function n(e,t){function n(e,t){if(void 0===i[e.index]){t&&(o++,a.push({array:[]})),i[e.index]=o,a[o-1].array.push(e);var l=r[e.index];if(l)for(var s=0;s<l.length;s++)n(l[s],!1)}}for(var i={},r={},a=[],o=0,l=0;l<t.length;l++){var s=t[l],u=s.source,c=s.target;r[u.index]?r[u.index].push(c):r[u.index]=[c],r[c.index]?r[c.index].push(u):r[c.index]=[u]}for(var l=0;l<e.length;l++){var f=e[l];i[f.index]||n(f,!0)}return a}var i={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};e.applyPacking=t,e.separateGraphs=n}(i||(i={}));var i;!function(e){var t;!function(e){var t=function(){function e(e){this.scale=e,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(e){var t=this.scale/e.scale,n=e.offset/e.scale,i=e.weight;this.AB+=i*t*n,this.AD+=i*t*e.desiredPosition,this.A2+=i*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();e.PositionStats=t;var n=function(){function e(e,t,n,i){void 0===i&&(i=!1),this.left=e,this.right=t,this.gap=n,this.equality=i,this.active=!1,this.unsatisfiable=!1,this.left=e,this.right=t,this.gap=n,this.equality=i}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}();e.Constraint=n;var i=function(){function e(e,t,n){void 0===t&&(t=1),void 0===n&&(n=1),this.desiredPosition=e,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(e,t){var n=function(n,i){return n.active&&e!==i&&t(n,i)};this.cOut.forEach(function(e){return n(e,e.right)}),this.cIn.forEach(function(e){return n(e,e.left)})},e}();e.Variable=i;var r=function(){function e(e){this.vars=[],e.offset=0,this.ps=new t(e.scale),this.addVariable(e)}return e.prototype.addVariable=function(e){e.block=this,this.vars.push(e),this.ps.addVariable(e),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var e=0,t=this.vars.length;e<t;++e)this.ps.addVariable(this.vars[e]);this.posn=this.ps.getPosn()},e.prototype.compute_lm=function(e,t,n){var i=this,r=e.dfdv();return e.visitNeighbours(t,function(t,a){var o=i.compute_lm(a,e,n);a===t.right?(r+=o*t.left.scale,t.lm=o):(r+=o*t.right.scale,t.lm=-o),n(t)}),r/e.scale},e.prototype.populateSplitBlock=function(e,t){var n=this;e.visitNeighbours(t,function(t,i){i.offset=e.offset+(i===t.right?t.gap:-t.gap),n.addVariable(i),n.populateSplitBlock(i,e)})},e.prototype.traverse=function(e,t,n,i){var r=this;void 0===n&&(n=this.vars[0]),void 0===i&&(i=null),n.visitNeighbours(i,function(i,a){t.push(e(i)),r.traverse(e,t,a,n)})},e.prototype.findMinLM=function(){var e=null;return this.compute_lm(this.vars[0],null,function(t){!t.equality&&(null===e||t.lm<e.lm)&&(e=t)}),e},e.prototype.findMinLMBetween=function(e,t){this.compute_lm(e,null,function(){});var n=null;return this.findPath(e,null,t,function(e,t){!e.equality&&e.right===t&&(null===n||e.lm<n.lm)&&(n=e)}),n},e.prototype.findPath=function(e,t,n,i){var r=this,a=!1;return e.visitNeighbours(t,function(t,o){a||o!==n&&!r.findPath(o,e,n,i)||(a=!0,i(t,o))}),a},e.prototype.isActiveDirectedPathBetween=function(e,t){if(e===t)return!0;for(var n=e.cOut.length;n--;){var i=e.cOut[n];if(i.active&&this.isActiveDirectedPathBetween(i.right,t))return!0}return!1},e.split=function(t){return t.active=!1,[e.createSplitBlock(t.left),e.createSplitBlock(t.right)]},e.createSplitBlock=function(t){var n=new e(t);return n.populateSplitBlock(t,null),n},e.prototype.splitBetween=function(t,n){var i=this.findMinLMBetween(t,n);if(null!==i){var r=e.split(i);return{constraint:i,lb:r[0],rb:r[1]}}return null},e.prototype.mergeAcross=function(e,t,n){t.active=!0;for(var i=0,r=e.vars.length;i<r;++i){var a=e.vars[i];a.offset+=n,this.addVariable(a)}this.posn=this.ps.getPosn()},e.prototype.cost=function(){for(var e=0,t=this.vars.length;t--;){var n=this.vars[t],i=n.position()-n.desiredPosition;e+=i*i*n.weight}return e},e}();e.Block=r;var a=function(){function e(e){this.vs=e;var t=e.length;for(this.list=new Array(t);t--;){var n=new r(e[t]);this.list[t]=n,n.blockInd=t}}return e.prototype.cost=function(){for(var e=0,t=this.list.length;t--;)e+=this.list[t].cost();return e},e.prototype.insert=function(e){e.blockInd=this.list.length,this.list.push(e)},e.prototype.remove=function(e){var t=this.list.length-1,n=this.list[t];this.list.length=t,e!==n&&(this.list[e.blockInd]=n,n.blockInd=e.blockInd)},e.prototype.merge=function(e){var t=e.left.block,n=e.right.block,i=e.right.offset-e.left.offset-e.gap;t.vars.length<n.vars.length?(n.mergeAcross(t,e,i),this.remove(t)):(t.mergeAcross(n,e,-i),this.remove(n))},e.prototype.forEach=function(e){this.list.forEach(e)},e.prototype.updateBlockPositions=function(){this.list.forEach(function(e){return e.updateWeightedPosition()})},e.prototype.split=function(e){var t=this;this.updateBlockPositions(),this.list.forEach(function(n){var i=n.findMinLM();null!==i&&i.lm<o.LAGRANGIAN_TOLERANCE&&(n=i.left.block,r.split(i).forEach(function(e){return t.insert(e)}),t.remove(n),e.push(i))})},e}();e.Blocks=a;var o=function(){function e(e,t){this.vs=e,this.cs=t,this.vs=e,e.forEach(function(e){e.cIn=[],e.cOut=[]}),this.cs=t,t.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),this.inactive=t.map(function(e){return e.active=!1,e}),this.bs=null}return e.prototype.cost=function(){return this.bs.cost()},e.prototype.setStartingPositions=function(e){this.inactive=this.cs.map(function(e){return e.active=!1,e}),this.bs=new a(this.vs),this.bs.forEach(function(t,n){return t.posn=e[n]})},e.prototype.setDesiredPositions=function(e){this.vs.forEach(function(t,n){return t.desiredPosition=e[n]})},e.prototype.mostViolated=function(){for(var t=Number.MAX_VALUE,n=null,i=this.inactive,r=i.length,a=r,o=0;o<r;++o){var l=i[o];if(!l.unsatisfiable){var s=l.slack();if((l.equality||s<t)&&(t=s,n=l,a=o,l.equality))break}}return a!==r&&(t<e.ZERO_UPPERBOUND&&!n.active||n.equality)&&(i[a]=i[r-1],i.length=r-1),n},e.prototype.satisfy=function(){null==this.bs&&(this.bs=new a(this.vs)),this.bs.split(this.inactive);for(var t=null;(t=this.mostViolated())&&(t.equality||t.slack()<e.ZERO_UPPERBOUND&&!t.active);){var n=t.left.block,i=t.right.block;if(n!==i)this.bs.merge(t);else{if(n.isActiveDirectedPathBetween(t.right,t.left)){t.unsatisfiable=!0;continue}var r=n.splitBetween(t.left,t.right);if(null===r){t.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),t.slack()>=0?this.inactive.push(t):this.bs.merge(t)}}},e.prototype.solve=function(){this.satisfy();for(var e=Number.MAX_VALUE,t=this.bs.cost();Math.abs(e-t)>1e-4;)this.satisfy(),e=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();e.Solver=o}(t=e.vpsc||(e.vpsc={}))}(i||(i={}));var i,r=this.__extends||function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);n.prototype=t.prototype,e.prototype=new n};!function(e){var t;!function(e){function t(e){return e.bounds="undefined"!=typeof e.leaves?e.leaves.reduce(function(e,t){return t.bounds.union(e)},v.empty()):v.empty(),"undefined"!=typeof e.groups&&(e.bounds=e.groups.reduce(function(e,n){return t(n).union(e)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}function n(e,t,n,i){var r=t.rayIntersection(n.cx(),n.cy());r||(r={x:t.cx(),y:t.cy()});var a=n.rayIntersection(t.cx(),t.cy());a||(a={x:n.cx(),y:n.cy()});var o=a.x-r.x,l=a.y-r.y,s=Math.sqrt(o*o+l*l),u=s-i;e.sourceIntersection=r,e.targetIntersection=a,e.arrowStart={x:r.x+u*o/s,y:r.y+u*l/s}}function i(e,t,n){var i=t.rayIntersection(e.x,e.y);i||(i={x:t.cx(),y:t.cy()});var r=i.x-e.x,a=i.y-e.y,o=Math.sqrt(r*r+a*a);return{x:i.x-n*r/o,y:i.y-n*a/o}}function a(e,t){return e.pos>t.pos?1:e.pos<t.pos?-1:e.isOpen?-1:0}function o(){return new RBTree(function(e,t){return e.pos-t.pos})}function l(e,t,n,i){void 0===i&&(i=!1);var r=e.padding,a="undefined"!=typeof e.groups?e.groups.length:0,o="undefined"!=typeof e.leaves?e.leaves.length:0,u=a?e.groups.reduce(function(e,i){return e.concat(l(i,t,n,!0))},[]):[],c=(i?2:0)+o+a,f=new Array(c),d=new Array(c),h=0,p=function(e,t){d[h]=e,f[h++]=t};if(i){var m=e.bounds,v=t.getCentre(m),g=t.getSize(m)/2,y=t.getOpen(m),b=t.getClose(m),S=v-g+r/2,w=v+g-r/2;e.minVar.desiredPosition=S,p(t.makeRect(y,b,S,r),e.minVar),e.maxVar.desiredPosition=w,p(t.makeRect(y,b,w,r),e.maxVar)}o&&e.leaves.forEach(function(e){return p(e.bounds,e.variable)}),a&&e.groups.forEach(function(e){var n=e.bounds;p(t.makeRect(t.getOpen(n),t.getClose(n),t.getCentre(n),t.getSize(n)),e.minVar)});var N=s(d,f,t,n);return a&&(f.forEach(function(e){e.cOut=[],e.cIn=[]}),N.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),e.groups.forEach(function(e){var n=(e.padding-t.getSize(e.bounds))/2;e.minVar.cIn.forEach(function(e){return e.gap+=n}),e.minVar.cOut.forEach(function(t){t.left=e.maxVar,t.gap+=n})})),u.concat(N)}function s(t,n,i,r){var l,s=t.length,u=2*s;console.assert(n.length>=s);var c=new Array(u);for(l=0;l<s;++l){var f=t[l],d=new g(n[l],f,i.getCentre(f));c[l]=new y((!0),d,i.getOpen(f)),c[l+s]=new y((!1),d,i.getClose(f))}c.sort(a);var h=new Array,p=o();for(l=0;l<u;++l){var m=c[l],d=m.v;if(m.isOpen)p.insert(d),i.findNeighbours(d,p);else{p.remove(d);var v=function(t,n){var a=(i.getSize(t.r)+i.getSize(n.r))/2+r;h.push(new e.Constraint(t.v,n.v,a))},b=function(e,t,n){for(var i,r=d[e].iterator();null!==(i=r[e]());)n(i,d),i[t].remove(d)};b("prev","next",function(e,t){return v(e,t)}),b("next","prev",function(e,t){return v(t,e)})}}return console.assert(0===p.size),h}function u(e,t){var n=function(n,i){for(var r,a=t.findIter(e);null!==(r=a[n]());){var o=r.r.overlapX(e.r);if((o<=0||o<=r.r.overlapY(e.r))&&(e[n].insert(r),r[i].insert(e)),o<=0)break}};n("next","prev"),n("prev","next")}function c(e,t){var n=function(n,i){var r=t.findIter(e)[n]();null!==r&&r.r.overlapX(e.r)>0&&(e[n].insert(r),r[i].insert(e))};n("next","prev"),n("prev","next")}function f(e,t){return s(e,t,b,1e-6)}function d(e,t){return s(e,t,S,1e-6)}function h(e){return l(e,b,1e-6)}function p(e){return l(e,S,1e-6)}function m(t){var n=t.map(function(t){return new e.Variable(t.cx())}),i=e.generateXConstraints(t,n),r=new e.Solver(n,i);r.solve(),n.forEach(function(e,n){return t[n].setXCentre(e.position())}),n=t.map(function(t){return new e.Variable(t.cy())}),i=e.generateYConstraints(t,n),r=new e.Solver(n,i),r.solve(),n.forEach(function(e,n){return t[n].setYCentre(e.position())})}e.computeGroupBounds=t;var v=function(){function e(e,t,n,i){this.x=e,this.X=t,this.y=n,this.Y=i}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(e){var t=this.cx(),n=e.cx();return t<=n&&e.x<this.X?this.X-e.x:n<=t&&this.x<e.X?e.X-this.x:0},e.prototype.overlapY=function(e){var t=this.cy(),n=e.cy();return t<=n&&e.y<this.Y?this.Y-e.y:n<=t&&this.y<e.Y?e.Y-this.y:0},e.prototype.setXCentre=function(e){var t=e-this.cx();this.x+=t,this.X+=t},e.prototype.setYCentre=function(e){var t=e-this.cy();this.y+=t,this.Y+=t},e.prototype.width=function(){return this.X-this.x},e.prototype.height=function(){return this.Y-this.y},e.prototype.union=function(t){return new e(Math.min(this.x,t.x),Math.max(this.X,t.X),Math.min(this.y,t.y),Math.max(this.Y,t.Y))},e.prototype.lineIntersections=function(t,n,i,r){for(var a=[[this.x,this.y,this.X,this.y],[this.X,this.y,this.X,this.Y],[this.X,this.Y,this.x,this.Y],[this.x,this.Y,this.x,this.y]],o=[],l=0;l<4;++l){var s=e.lineIntersection(t,n,i,r,a[l][0],a[l][1],a[l][2],a[l][3]);null!==s&&o.push({x:s.x,y:s.y})}return o},e.prototype.rayIntersection=function(e,t){var n=this.lineIntersections(this.cx(),this.cy(),e,t);return n.length>0?n[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y},{x:this.x,y:this.y}]},e.lineIntersection=function(e,t,n,i,r,a,o,l){var s=n-e,u=o-r,c=i-t,f=l-a,d=f*s-u*c;if(0==d)return null;var h=e-r,p=t-a,m=u*p-f*h,v=m/d,g=s*p-c*h,y=g/d;return v>=0&&v<=1&&y>=0&&y<=1?{x:e+v*s,y:t+v*c}:null},e.prototype.inflate=function(t){return new e(this.x-t,this.X+t,this.y-t,this.Y+t)},e}();e.Rectangle=v,e.makeEdgeBetween=n,e.makeEdgeTo=i;var g=function(){function e(e,t,n){this.v=e,this.r=t,this.pos=n,this.prev=o(),this.next=o()}return e}(),y=function(){function e(e,t,n){this.isOpen=e,this.v=t,this.pos=n}return e}(),b={getCentre:function(e){return e.cx()},getOpen:function(e){return e.y},getClose:function(e){return e.Y},getSize:function(e){return e.width()},makeRect:function(e,t,n,i){return new v(n-i/2,n+i/2,e,t)},findNeighbours:u},S={getCentre:function(e){return e.cy()},getOpen:function(e){return e.x},getClose:function(e){return e.X},getSize:function(e){return e.height()},makeRect:function(e,t,n,i){return new v(e,t,n-i/2,n+i/2)},findNeighbours:c};e.generateXConstraints=f,e.generateYConstraints=d,e.generateXGroupConstraints=h,e.generateYGroupConstraints=p,e.removeOverlaps=m;var w=function(e){function t(t,n){e.call(this,0,n),this.index=t}return r(t,e),t}(e.Variable);e.IndexedVariable=w;var N=function(){function n(n,i,r,a,o){var l=this;if(void 0===r&&(r=null),void 0===a&&(a=null),void 0===o&&(o=!1),this.nodes=n,this.groups=i,this.rootGroup=r,this.avoidOverlaps=o,this.variables=n.map(function(e,t){return e.variable=new w(t,1)}),a&&this.createConstraints(a),o&&r&&"undefined"!=typeof r.groups){n.forEach(function(t){if(!t.width||!t.height)return void(t.bounds=new e.Rectangle(t.x,t.x,t.y,t.y));var n=t.width/2,i=t.height/2;t.bounds=new e.Rectangle(t.x-n,t.x+n,t.y-i,t.y+i)}),t(r);var s=n.length;i.forEach(function(e){l.variables[s]=e.minVar=new w((s++),"undefined"!=typeof e.stiffness?e.stiffness:.01),l.variables[s]=e.maxVar=new w((s++),"undefined"!=typeof e.stiffness?e.stiffness:.01)})}}return n.prototype.createSeparation=function(t){return new e.Constraint(this.nodes[t.left].variable,this.nodes[t.right].variable,t.gap,"undefined"!=typeof t.equality&&t.equality)},n.prototype.makeFeasible=function(e){var t=this;if(this.avoidOverlaps){var n="x",i="width";"x"===e.axis&&(n="y",i="height");var r=e.offsets.map(function(e){return t.nodes[e.node]}).sort(function(e,t){return e[n]-t[n]}),a=null;r.forEach(function(e){a&&(e[n]=a[n]+a[i]+1),a=e})}},n.prototype.createAlignment=function(t){var n=this,i=this.nodes[t.offsets[0].node].variable;this.makeFeasible(t);var r="x"===t.axis?this.xConstraints:this.yConstraints;t.offsets.slice(1).forEach(function(t){var a=n.nodes[t.node].variable;r.push(new e.Constraint(i,a,t.offset,(!0)))})},n.prototype.createConstraints=function(e){var t=this,n=function(e){return"undefined"==typeof e.type||"separation"===e.type};this.xConstraints=e.filter(function(e){return"x"===e.axis&&n(e)}).map(function(e){return t.createSeparation(e)}),this.yConstraints=e.filter(function(e){return"y"===e.axis&&n(e)}).map(function(e){return t.createSeparation(e)}),e.filter(function(e){return"alignment"===e.type}).forEach(function(e){return t.createAlignment(e)})},n.prototype.setupVariablesAndBounds=function(e,t,n,i){this.nodes.forEach(function(r,a){r.fixed?(r.variable.weight=1e3,n[a]=i(r)):r.variable.weight=1;var o=(r.width||0)/2,l=(r.height||0)/2,s=e[a],u=t[a];r.bounds=new v(s-o,s+o,u-l,u+l)})},n.prototype.xProject=function(e,t,n){(this.rootGroup||this.avoidOverlaps||this.xConstraints)&&this.project(e,t,e,n,function(e){return e.px},this.xConstraints,h,function(e){return e.bounds.setXCentre(n[e.variable.index]=e.variable.position())},function(e){var t=n[e.minVar.index]=e.minVar.position(),i=n[e.maxVar.index]=e.maxVar.position(),r=e.padding/2;e.bounds.x=t-r,e.bounds.X=i+r})},n.prototype.yProject=function(e,t,n){(this.rootGroup||this.yConstraints)&&this.project(e,t,t,n,function(e){return e.py},this.yConstraints,p,function(e){return e.bounds.setYCentre(n[e.variable.index]=e.variable.position())},function(e){var t=n[e.minVar.index]=e.minVar.position(),i=n[e.maxVar.index]=e.maxVar.position(),r=e.padding/2;e.bounds.y=t-r,e.bounds.Y=i+r})},n.prototype.projectFunctions=function(){var e=this;return[function(t,n,i){return e.xProject(t,n,i)},function(t,n,i){return e.yProject(t,n,i)}]},n.prototype.project=function(e,n,i,r,a,o,l,s,u){this.setupVariablesAndBounds(e,n,r,a),this.rootGroup&&this.avoidOverlaps&&(t(this.rootGroup),o=o.concat(l(this.rootGroup))),this.solve(this.variables,o,i,r),this.nodes.forEach(s),this.rootGroup&&this.avoidOverlaps&&this.groups.forEach(u)},n.prototype.solve=function(t,n,i,r){var a=new e.Solver(t,n);a.setStartingPositions(i),a.setDesiredPositions(r),a.solve()},n}();e.Projection=N}(t=e.vpsc||(e.vpsc={}))}(i||(i={}));var i;!function(e){var t;!function(t){function n(e,t,n){return(t.x-e.x)*(n.y-e.y)-(n.x-e.x)*(t.y-e.y)}function i(e,t,i){return n(e,t,i)>0}function a(e,t,i){return n(e,t,i)<0}function o(e){var t,i=e.slice(0).sort(function(e,t){return e.x!==t.x?t.x-e.x:t.y-e.y}),r=e.length,a=0,o=i[0].x;for(t=1;t<r&&i[t].x===o;++t);var l=t-1,s=[];if(s.push(i[a]),l===r-1)i[l].y!==i[a].y&&s.push(i[l]);else{var u,c=r-1,f=i[r-1].x;for(t=r-2;t>=0&&i[t].x===f;t--);for(u=t+1,t=l;++t<=u;)if(!(n(i[a],i[u],i[t])>=0&&t<u)){for(;s.length>1&&!(n(s[s.length-2],s[s.length-1],i[t])>0);)s.length-=1;t!=a&&s.push(i[t])}c!=u&&s.push(i[c]);var d=s.length;for(t=u;--t>=l;)if(!(n(i[c],i[l],i[t])>=0&&t>l)){for(;s.length>d&&!(n(s[s.length-2],s[s.length-1],i[t])>0);)s.length-=1;t!=a&&s.push(i[t])}}return s}function l(e,t,n){t.slice(0).sort(function(t,n){return Math.atan2(t.y-e.y,t.x-e.x)-Math.atan2(n.y-e.y,n.x-e.x)}).forEach(n)}function s(e,t){return{rtan:u(e,t),ltan:c(e,t)}}function u(e,t){var n,r,o,l,s,u=t.length-1;if(a(e,t[1],t[0])&&!i(e,t[u-1],t[0]))return 0;for(n=0,r=u;;){if(r-n===1)return i(e,t[n],t[r])?n:r;if(o=Math.floor((n+r)/2),s=a(e,t[o+1],t[o]),s&&!i(e,t[o-1],t[o]))return o;l=i(e,t[n+1],t[n]),l?s?r=o:i(e,t[n],t[o])?r=o:n=o:s&&a(e,t[n],t[o])?r=o:n=o}}function c(e,t){var n,r,o,l,s,u=t.length-1;if(i(e,t[u-1],t[0])&&!a(e,t[1],t[0]))return 0;for(n=0,r=u;;){if(r-n===1)return a(e,t[n],t[r])?n:r;if(o=Math.floor((n+r)/2),s=a(e,t[o+1],t[o]),i(e,t[o-1],t[o])&&!s)return o;l=a(e,t[n+1],t[n]),l?s?a(e,t[n],t[o])?r=o:n=o:r=o:s?n=o:i(e,t[n],t[o])?r=o:n=o}}function f(e,t,n,i,r,a){var o,l;o=n(t[0],e),l=i(e[o],t);for(var s=!1;!s;){for(s=!0;;){if(o===e.length-1&&(o=0),r(t[l],e[o],e[o+1]))break;++o}for(;;){if(0===l&&(l=t.length-1),a(e[o],t[l],t[l-1]))break;--l,s=!1}}return{t1:o,t2:l}}function d(e,t){var n=h(t,e);return{t1:n.t2,t2:n.t1}}function h(e,t){return f(e,t,u,c,i,a)}function p(e,t){return f(e,t,c,c,a,a)}function m(e,t){return f(e,t,u,u,i,i)}function v(t,n){for(var i=[],r=1,a=n.length;r<a;++r){var o=e.vpsc.Rectangle.lineIntersection(t.x1,t.y1,t.x2,t.y2,n[r-1].x,n[r-1].y,n[r].x,n[r].y);o&&i.push(o)}return i}function g(e,t){for(var i=e.length-1,r=t.length-1,a=new F,o=0;o<i;++o)for(var l=0;l<r;++l){var s=e[0==o?i-1:o-1],u=e[o],c=e[o+1],f=t[0==l?r-1:l-1],d=t[l],h=t[l+1],p=n(s,u,d),m=n(u,f,d),v=n(u,d,h),g=n(f,d,u),y=n(d,s,u),b=n(d,u,c);p>=0&&m>=0&&v<0&&g>=0&&y>=0&&b<0?a.ll=new T(o,l):p<=0&&m<=0&&v>0&&g<=0&&y<=0&&b>0?a.rr=new T(o,l):p<=0&&m>0&&v<=0&&g>=0&&y<0&&b>=0?a.rl=new T(o,l):p>=0&&m<0&&v>=0&&g<=0&&y>0&&b<=0&&(a.lr=new T(o,l))}return a}function y(e,t){for(var n=1,i=t.length;n<i;++n)if(a(t[n-1],t[n],e))return!1;return!0}function b(e,t){return!e.every(function(e){return!y(e,t)})}function S(e,t){if(b(e,t))return!0;if(b(t,e))return!0;for(var n=1,i=e.length;n<i;++n){var r=e[n],a=e[n-1];if(v(new N(a.x,a.y,r.x,r.y),t).length>0)return!0}return!1}var w=function(){function e(){}return e}();t.Point=w;var N=function(){function e(e,t,n,i){this.x1=e,this.y1=t,this.x2=n,this.y2=i}return e}();t.LineSegment=N;var D=function(e){function t(){e.apply(this,arguments)}return r(t,e),t}(w);t.PolyPoint=D,t.isLeft=n,t.ConvexHull=o,t.clockwiseRadialSweep=l,t.tangent_PolyPolyC=f,t.LRtangent_PolyPolyC=d,t.RLtangent_PolyPolyC=h,t.LLtangent_PolyPolyC=p,t.RRtangent_PolyPolyC=m;var T=function(){function e(e,t){this.t1=e,this.t2=t}return e}();t.BiTangent=T;var F=function(){function e(){}return e}();t.BiTangents=F;var x=function(e){function t(){e.apply(this,arguments)}return r(t,e),t}(w);t.TVGPoint=x;var k=function(){function e(e,t,n,i){this.id=e,this.polyid=t,this.polyvertid=n,this.p=i,i.vv=this}return e}();t.VisibilityVertex=k;var B=function(){function e(e,t){this.source=e,this.target=t}return e.prototype.length=function(){var e=this.source.p.x-this.target.p.x,t=this.source.p.y-this.target.p.y;return Math.sqrt(e*e+t*t)},e}();t.VisibilityEdge=B;var C=function(){function e(e,n){if(this.P=e,this.V=[],this.E=[],n)this.V=n.V.slice(0),this.E=n.E.slice(0);else{for(var i=e.length,r=0;r<i;r++)for(var a=e[r],o=0;o<a.length;++o){var l=a[o],s=new k(this.V.length,r,o,l);this.V.push(s),o>0&&this.E.push(new B(a[o-1].vv,s))}for(var r=0;r<i-1;r++)for(var u=e[r],o=r+1;o<i;o++){var c=e[o],f=t.tangents(u,c);for(var d in f){var h=f[d],p=u[h.t1],m=c[h.t2];this.addEdgeIfVisible(p,m,r,o)}}}}return e.prototype.addEdgeIfVisible=function(e,t,n,i){this.intersectsPolys(new N(e.x,e.y,t.x,t.y),n,i)||this.E.push(new B(e.vv,t.vv))},e.prototype.addPoint=function(e,t){var n=this.P.length;this.V.push(new k(this.V.length,n,0,e));for(var i=0;i<n;++i)if(i!==t){var r=this.P[i],a=s(e,r);this.addEdgeIfVisible(e,r[a.ltan],t,i),this.addEdgeIfVisible(e,r[a.rtan],t,i)}return e.vv},e.prototype.intersectsPolys=function(e,t,n){for(var i=0,r=this.P.length;i<r;++i)if(i!=t&&i!=n&&v(e,this.P[i]).length>0)return!0;return!1},e}();t.TangentVisibilityGraph=C,t.tangents=g,t.polysOverlap=S}(t=e.geom||(e.geom={}))}(i||(i={}));var i;!function(e){var t=function(){function e(){this.locks={}}return e.prototype.add=function(e,t){isNaN(t[0])||isNaN(t[1]),this.locks[e]=t},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var e in this.locks)return!1;return!0},e.prototype.apply=function(e){for(var t in this.locks)e(t,this.locks[t])},e}();e.Locks=t;var n=function(){function e(e,n,r){void 0===r&&(r=null),this.D=n,this.G=r,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new i,this.project=null,this.x=e,this.k=e.length;var a=this.n=e[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new t,this.minD=Number.MAX_VALUE;for(var o,l=a;l--;)for(o=a;--o>l;){var s=n[l][o];s>0&&s<this.minD&&(this.minD=s)}for(this.minD===Number.MAX_VALUE&&(this.minD=1),l=this.k;l--;){for(this.g[l]=new Array(a),this.H[l]=new Array(a),o=a;o--;)this.H[l][o]=new Array(a);this.Hd[l]=new Array(a),this.a[l]=new Array(a),this.b[l]=new Array(a),this.c[l]=new Array(a),this.d[l]=new Array(a),this.e[l]=new Array(a),this.ia[l]=new Array(a),this.ib[l]=new Array(a),this.xtmp[l]=new Array(a)}}return e.createSquareMatrix=function(e,t){for(var n=new Array(e),i=0;i<e;++i){n[i]=new Array(e);for(var r=0;r<e;++r)n[i][r]=t(i,r)}return n},e.prototype.offsetDir=function(){for(var e=this,t=new Array(this.k),n=0,i=0;i<this.k;++i){var r=t[i]=this.random.getNextBetween(.01,1)-.5;n+=r*r}return n=Math.sqrt(n),t.map(function(t){return t*=e.minD/n})},e.prototype.computeDerivatives=function(e){var t=this,n=this.n;if(!(n<1)){for(var i,r=new Array(this.k),a=new Array(this.k),o=new Array(this.k),l=0,s=0;s<n;++s){for(i=0;i<this.k;++i)o[i]=this.g[i][s]=0;for(var u=0;u<n;++u)if(s!==u){for(var c=n;c--;){var f=0;for(i=0;i<this.k;++i){var d=r[i]=e[i][s]-e[i][u];f+=a[i]=d*d}if(f>1e-9)break;var h=this.offsetDir();for(i=0;i<this.k;++i)e[i][u]+=h[i]}var p=Math.sqrt(f),m=this.D[s][u],v=null!=this.G?this.G[s][u]:1;if(v>1&&p>m||!isFinite(m))for(i=0;i<this.k;++i)this.H[i][s][u]=0;else{v>1&&(v=1);var g=m*m,y=2*v*(p-m)/(g*p),b=p*p*p,S=2*-v/(g*b);for(isFinite(y)||console.log(y),i=0;i<this.k;++i)this.g[i][s]+=r[i]*y,o[i]-=this.H[i][s][u]=S*(b+m*(a[i]-f)+p*f)}}for(i=0;i<this.k;++i)l=Math.max(l,this.H[i][s][s]=o[i])}for(var w=this.snapGridSize/2,N=this.snapGridSize,D=this.snapStrength,T=D/(w*w),F=this.numGridSnapNodes,s=0;s<F;++s)for(i=0;i<this.k;++i){var x=this.x[i][s],k=x/N,B=k%1,C=k-B,L=Math.abs(B),d=L<=.5?x-C*N:x>0?x-(C+1)*N:x-(C-1)*N;-w<d&&d<=w&&(this.scaleSnapByMaxH?(this.g[i][s]+=l*T*d,this.H[i][s][s]+=l*T):(this.g[i][s]+=T*d,this.H[i][s][s]+=T))}this.locks.isEmpty()||this.locks.apply(function(n,r){for(i=0;i<t.k;++i)t.H[i][n][n]+=l,t.g[i][n]-=l*(r[i]-e[i][n])})}},e.dotProd=function(e,t){for(var n=0,i=e.length;i--;)n+=e[i]*t[i];return n},e.rightMultiply=function(t,n,i){for(var r=t.length;r--;)i[r]=e.dotProd(t[r],n)},e.prototype.computeStepSize=function(t){for(var n=0,i=0,r=0;r<this.k;++r)n+=e.dotProd(this.g[r],t[r]),e.rightMultiply(this.H[r],t[r],this.Hd[r]),i+=e.dotProd(t[r],this.Hd[r]);return 0!==i&&isFinite(i)?n/i:0},e.prototype.reduceStress=function(){this.computeDerivatives(this.x);for(var e=this.computeStepSize(this.g),t=0;t<this.k;++t)this.takeDescentStep(this.x[t],this.g[t],e);return this.computeStress()},e.copy=function(e,t){for(var n=e.length,i=t[0].length,r=0;r<n;++r)for(var a=0;a<i;++a)t[r][a]=e[r][a]},e.prototype.stepAndProject=function(t,n,i,r){e.copy(t,n),this.takeDescentStep(n[0],i[0],r),this.project&&this.project[0](t[0],t[1],n[0]),this.takeDescentStep(n[1],i[1],r),this.project&&this.project[1](n[0],t[1],n[1]);for(var a=2;a<this.k;a++)this.takeDescentStep(n[a],i[a],r)},e.mApply=function(e,t,n){for(var i=e;i-- >0;)for(var r=t;r-- >0;)n(i,r)},e.prototype.matrixApply=function(t){e.mApply(this.k,this.n,t)},e.prototype.computeNextPosition=function(e,t){var n=this;this.computeDerivatives(e);var i=this.computeStepSize(this.g);this.stepAndProject(e,t,this.g,i);for(var r=0;r<this.n;++r)for(var a=0;a<this.k;++a)isNaN(t[a][r]);if(this.project){this.matrixApply(function(i,r){return n.e[i][r]=e[i][r]-t[i][r]});var o=this.computeStepSize(this.e);o=Math.max(.2,Math.min(o,1)),this.stepAndProject(e,t,this.e,o)}},e.prototype.run=function(e){for(var t=Number.MAX_VALUE,n=!1;!n&&e-- >0;){var i=this.rungeKutta();n=Math.abs(t/i-1)<this.threshold,t=i}return t},e.prototype.rungeKutta=function(){var t=this;this.computeNextPosition(this.x,this.a),e.mid(this.x,this.a,this.ia),this.computeNextPosition(this.ia,this.b),e.mid(this.x,this.b,this.ib),this.computeNextPosition(this.ib,this.c),this.computeNextPosition(this.c,this.d);var n=0;return this.matrixApply(function(e,i){var r=(t.a[e][i]+2*t.b[e][i]+2*t.c[e][i]+t.d[e][i])/6,a=t.x[e][i]-r;n+=a*a,t.x[e][i]=r}),n},e.mid=function(t,n,i){e.mApply(t.length,t[0].length,function(e,r){return i[e][r]=t[e][r]+(n[e][r]-t[e][r])/2})},e.prototype.takeDescentStep=function(e,t,n){for(var i=0;i<this.n;++i)e[i]=e[i]-n*t[i]},e.prototype.computeStress=function(){for(var e=0,t=0,n=this.n-1;t<n;++t)for(var i=t+1,r=this.n;i<r;++i){for(var a=0,o=0;o<this.k;++o){var l=this.x[o][t]-this.x[o][i];a+=l*l}a=Math.sqrt(a);var s=this.D[t][i];if(isFinite(s)){var u=s-a,c=s*s;e+=u*u/c}}return e},e.zeroDistance=1e-10,e}();e.Descent=n;var i=function(){function e(e){void 0===e&&(e=1),this.seed=e,this.a=214013,this.c=2531011,this.m=2147483648,this.range=32767}return e.prototype.getNext=function(){return this.seed=(this.seed*this.a+this.c)%this.m,(this.seed>>16)/this.range},e.prototype.getNextBetween=function(e,t){return e+this.getNext()*(t-e)},e}();e.PseudoRandom=i}(i||(i={}));var i;!function(e){var t;!function(e){function t(e,n,i){e.forAll(function(e){if(e.isLeaf())n.leaves||(n.leaves=[]),n.leaves.push(e.id);else{var r=n;if(e.gid=i.length,!e.isIsland()||e.isPredefined()){
if(r={id:e.gid},e.isPredefined())for(var a in e.definition)r[a]=e.definition[a];n.groups||(n.groups=[]),n.groups.push(e.gid),i.push(r)}t(e.children,r,i)}})}function n(e,t){var n={};for(var i in e)i in t&&(n[i]=e[i]);return n}function i(t,n,i,r){for(var a=t.length,o=new e.Configuration(a,n,i,r);o.greedyMerge(););var l=[],s=o.getGroupHierarchy(l);return l.forEach(function(e){var n=function(n){var i=e[n];"number"==typeof i&&(e[n]=t[i])};n("source"),n("target")}),{groups:s,powerEdges:l}}var r=function(){function e(e,t,n){this.source=e,this.target=t,this.type=n}return e}();e.PowerEdge=r;var a=function(){function e(e,t,n,i){var r=this;if(this.linkAccessor=n,this.modules=new Array(e),this.roots=[],i)this.initModulesFromGroup(i);else{this.roots.push(new l);for(var a=0;a<e;++a)this.roots[0].add(this.modules[a]=new o(a))}this.R=t.length,t.forEach(function(e){var t=r.modules[n.getSourceIndex(e)],i=r.modules[n.getTargetIndex(e)],a=n.getType(e);t.outgoing.add(a,i),i.incoming.add(a,t)})}return e.prototype.initModulesFromGroup=function(e){var t=new l;this.roots.push(t);for(var n=0;n<e.leaves.length;++n){var i=e.leaves[n],r=new o(i.id);this.modules[i.id]=r,t.add(r)}if(e.groups)for(var a=0;a<e.groups.length;++a){var u=e.groups[a],c={};for(var f in u)"leaves"!==f&&"groups"!==f&&u.hasOwnProperty(f)&&(c[f]=u[f]);t.add(new o(-1-a,new s,new s,this.initModulesFromGroup(u),c))}return t},e.prototype.merge=function(e,t,n){void 0===n&&(n=0);var i=e.incoming.intersection(t.incoming),r=e.outgoing.intersection(t.outgoing),a=new l;a.add(e),a.add(t);var s=new o(this.modules.length,r,i,a);this.modules.push(s);var u=function(n,i,r){n.forAll(function(n,a){n.forAll(function(n){var o=n[i];o.add(a,s),o.remove(a,e),o.remove(a,t),e[r].remove(a,n),t[r].remove(a,n)})})};return u(r,"incoming","outgoing"),u(i,"outgoing","incoming"),this.R-=i.count()+r.count(),this.roots[n].remove(e),this.roots[n].remove(t),this.roots[n].add(s),s},e.prototype.rootMerges=function(e){void 0===e&&(e=0);for(var t=this.roots[e].modules(),n=t.length,i=new Array(n*(n-1)),r=0,a=0,o=n-1;a<o;++a)for(var l=a+1;l<n;++l){var s=t[a],u=t[l];i[r]={id:r,nEdges:this.nEdges(s,u),a:s,b:u},r++}return i},e.prototype.greedyMerge=function(){for(var e=0;e<this.roots.length;++e)if(!(this.roots[e].modules().length<2)){var t=this.rootMerges(e).sort(function(e,t){return e.nEdges==t.nEdges?e.id-t.id:e.nEdges-t.nEdges}),n=t[0];if(!(n.nEdges>=this.R))return this.merge(n.a,n.b,e),!0}},e.prototype.nEdges=function(e,t){var n=e.incoming.intersection(t.incoming),i=e.outgoing.intersection(t.outgoing);return this.R-n.count()-i.count()},e.prototype.getGroupHierarchy=function(e){var n=this,i=[],a={};t(this.roots[0],a,i);var o=this.allEdges();return o.forEach(function(t){var a=n.modules[t.source],o=n.modules[t.target];e.push(new r("undefined"==typeof a.gid?t.source:i[a.gid],"undefined"==typeof o.gid?t.target:i[o.gid],t.type))}),i},e.prototype.allEdges=function(){var t=[];return e.getEdges(this.roots[0],t),t},e.getEdges=function(t,n){t.forAll(function(t){t.getEdges(n),e.getEdges(t.children,n)})},e}();e.Configuration=a;var o=function(){function e(e,t,n,i,r){void 0===t&&(t=new s),void 0===n&&(n=new s),void 0===i&&(i=new l),this.id=e,this.outgoing=t,this.incoming=n,this.children=i,this.definition=r}return e.prototype.getEdges=function(e){var t=this;this.outgoing.forAll(function(n,i){n.forAll(function(n){e.push(new r(t.id,n.id,i))})})},e.prototype.isLeaf=function(){return 0===this.children.count()},e.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},e.prototype.isPredefined=function(){return"undefined"!=typeof this.definition},e}();e.Module=o;var l=function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(t){var i=new e;return i.table=n(this.table,t.table),i},e.prototype.intersectionCount=function(e){return this.intersection(e).count()},e.prototype.contains=function(e){return e in this.table},e.prototype.add=function(e){this.table[e.id]=e},e.prototype.remove=function(e){delete this.table[e.id]},e.prototype.forAll=function(e){for(var t in this.table)e(this.table[t])},e.prototype.modules=function(){var e=[];return this.forAll(function(t){t.isPredefined()||e.push(t)}),e},e}();e.ModuleSet=l;var s=function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(e){var t=!1;return this.forAllModules(function(n){t||n.id!=e||(t=!0)}),t},e.prototype.add=function(e,t){var n=e in this.sets?this.sets[e]:this.sets[e]=new l;n.add(t),++this.n},e.prototype.remove=function(e,t){var n=this.sets[e];n.remove(t),0===n.count()&&delete this.sets[e],--this.n},e.prototype.forAll=function(e){for(var t in this.sets)e(this.sets[t],t)},e.prototype.forAllModules=function(e){this.forAll(function(t,n){return t.forAll(e)})},e.prototype.intersection=function(t){var n=new e;return this.forAll(function(e,i){if(i in t.sets){var r=e.intersection(t.sets[i]),a=r.count();a>0&&(n.sets[i]=r,n.n+=a)}}),n},e}();e.LinkSets=s,e.getGroups=i}(t=e.powergraph||(e.powergraph={}))}(i||(i={}));var i;!function(e){function t(e,t){var n={};for(var i in e)n[i]={};for(var i in t)n[i]={};return Object.keys(n).length}function n(e,t){var n=0;for(var i in e)"undefined"!=typeof t[i]&&++n;return n}function i(e,t){var n={},i=function(e,t){"undefined"==typeof n[e]&&(n[e]={}),n[e][t]={}};return e.forEach(function(e){var n=t.getSourceIndex(e),r=t.getTargetIndex(e);i(n,r),i(r,n)}),n}function r(e,t,n,r){var a=i(e,r);e.forEach(function(e){var i=a[r.getSourceIndex(e)],o=a[r.getTargetIndex(e)];r.setLength(e,1+t*n(i,o))})}function a(e,i,a){void 0===a&&(a=1),r(e,a,function(e,i){return Math.sqrt(t(e,i)-n(e,i))},i)}function o(e,i,a){void 0===a&&(a=1),r(e,a,function(e,i){return Math.min(Object.keys(e).length,Object.keys(i).length)<1.1?0:n(e,i)/t(e,i)},i)}function l(e,t,n,i){var r=s(e,t,i),a={};r.filter(function(e){return e.length>1}).forEach(function(e){return e.forEach(function(t){return a[t]=e})});var o=[];return t.forEach(function(e){var t=i.getSourceIndex(e),r=i.getTargetIndex(e),l=a[t],s=a[r];l&&s&&l.component===s.component||o.push({axis:n,left:t,right:r,gap:i.getMinSeparation(e)})}),o}function s(e,t,n){function i(e){a[e]=u,o[e]=u,l[e]=!0,u+=1,c.push(e);for(var t=r[e],n=0;n<t.length;++n){var s=t[n];a[s]<0?(i(s),o[e]=0|Math.min(o[e],o[s])):l[s]&&(o[e]=Math.min(o[e],o[s]))}if(o[e]===a[e]){for(var d=[],n=c.length-1;n>=0;--n){var h=c[n];if(l[h]=!1,d.push(h),h===e){c.length=n;break}}f.push(d)}}for(var r=new Array(e),a=new Array(e),o=new Array(e),l=new Array(e),s=0;s<e;++s)r[s]=[],a[s]=-1,o[s]=0,l[s]=!1;for(var s=0;s<t.length;++s)r[n.getSourceIndex(t[s])].push(n.getTargetIndex(t[s]));for(var u=0,c=[],f=[],s=0;s<e;++s)a[s]<0&&i(s);return f}e.symmetricDiffLinkLengths=a,e.jaccardLinkLengths=o,e.generateDirectedEdgeConstraints=l}(i||(i={}));var i,a=function(){function e(e){this.elem=e,this.subheaps=[]}return e.prototype.toString=function(e){for(var t="",n=!1,i=0;i<this.subheaps.length;++i){var r=this.subheaps[i];r.elem?(n&&(t+=","),t+=r.toString(e),n=!0):n=!1}return""!==t&&(t="("+t+")"),(this.elem?e(this.elem):"")+t},e.prototype.forEach=function(e){this.empty()||(e(this.elem,this),this.subheaps.forEach(function(t){return t.forEach(e)}))},e.prototype.count=function(){return this.empty()?0:1+this.subheaps.reduce(function(e,t){return e+t.count()},0)},e.prototype.min=function(){return this.elem},e.prototype.empty=function(){return null==this.elem},e.prototype.contains=function(e){if(this===e)return!0;for(var t=0;t<this.subheaps.length;t++)if(this.subheaps[t].contains(e))return!0;return!1},e.prototype.isHeap=function(e){var t=this;return this.subheaps.every(function(n){return e(t.elem,n.elem)&&n.isHeap(e)})},e.prototype.insert=function(t,n){return this.merge(new e(t),n)},e.prototype.merge=function(e,t){return this.empty()?e:e.empty()?this:t(this.elem,e.elem)?(this.subheaps.push(e),this):(e.subheaps.push(this),e)},e.prototype.removeMin=function(e){return this.empty()?null:this.mergePairs(e)},e.prototype.mergePairs=function(t){if(0==this.subheaps.length)return new e(null);if(1==this.subheaps.length)return this.subheaps[0];var n=this.subheaps.pop().merge(this.subheaps.pop(),t),i=this.mergePairs(t);return n.merge(i,t)},e.prototype.decreaseKey=function(t,n,i,r){var a=t.removeMin(r);t.elem=a.elem,t.subheaps=a.subheaps,null!==i&&null!==a.elem&&i(t.elem,t);var o=new e(n);return null!==i&&i(n,o),this.merge(o,r)},e}(),o=function(){function e(e){this.lessThan=e}return e.prototype.top=function(){return this.empty()?null:this.root.elem},e.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];for(var n,i,r=0;i=e[r];++r)n=new a(i),this.root=this.empty()?n:this.root.merge(n,this.lessThan);return n},e.prototype.empty=function(){return!this.root||!this.root.elem},e.prototype.isHeap=function(){return this.root.isHeap(this.lessThan)},e.prototype.forEach=function(e){this.root.forEach(e)},e.prototype.pop=function(){if(this.empty())return null;var e=this.root.min();return this.root=this.root.removeMin(this.lessThan),e},e.prototype.reduceKey=function(e,t,n){void 0===n&&(n=null),this.root=this.root.decreaseKey(e,t,n,this.lessThan)},e.prototype.toString=function(e){return this.root.toString(e)},e.prototype.count=function(){return this.root.count()},e}();!function(e){var t;!function(e){var t=function(){function e(e,t){this.id=e,this.distance=t}return e}(),n=function(){function e(e){this.id=e,this.neighbours=[]}return e}(),i=function(){function e(e,t,n){this.node=e,this.prev=t,this.d=n}return e}(),r=function(){function e(e,i,r,a,o){this.n=e,this.es=i,this.neighbours=new Array(this.n);for(var l=this.n;l--;)this.neighbours[l]=new n(l);for(l=this.es.length;l--;){var s=this.es[l],u=r(s),c=a(s),f=o(s);this.neighbours[u].neighbours.push(new t(c,f)),this.neighbours[c].neighbours.push(new t(u,f))}}return e.prototype.DistanceMatrix=function(){for(var e=new Array(this.n),t=0;t<this.n;++t)e[t]=this.dijkstraNeighbours(t);return e},e.prototype.DistancesFromNode=function(e){return this.dijkstraNeighbours(e)},e.prototype.PathFromNodeToNode=function(e,t){return this.dijkstraNeighbours(e,t)},e.prototype.PathFromNodeToNodeWithPrevCost=function(e,t,n){var r=new o(function(e,t){return e.d<=t.d}),a=this.neighbours[e],l=new i(a,null,0),s={};for(r.push(l);!r.empty()&&(l=r.pop(),a=l.node,a.id!==t);)for(var u=a.neighbours.length;u--;){var c=a.neighbours[u],f=this.neighbours[c.id];if(!l.prev||f.id!==l.prev.node.id){var d=f.id+","+a.id;if(!(d in s&&s[d]<=l.d)){var h=l.prev?n(l.prev.node.id,a.id,f.id):0,p=l.d+c.distance+h;s[d]=p,r.push(new i(f,l,p))}}}for(var m=[];l.prev;)l=l.prev,m.push(l.node.id);return m},e.prototype.dijkstraNeighbours=function(e,t){void 0===t&&(t=-1);for(var n=new o(function(e,t){return e.d<=t.d}),i=this.neighbours.length,r=new Array(i);i--;){var a=this.neighbours[i];a.d=i===e?0:Number.POSITIVE_INFINITY,a.q=n.push(a)}for(;!n.empty();){var l=n.pop();if(r[l.id]=l.d,l.id===t){for(var s=[],u=l;"undefined"!=typeof u.prev;)s.push(u.prev.id),u=u.prev;return s}for(i=l.neighbours.length;i--;){var c=l.neighbours[i],u=this.neighbours[c.id],f=l.d+c.distance;l.d!==Number.MAX_VALUE&&u.d>f&&(u.d=f,u.prev=l,n.reduceKey(u.q,u,function(e,t){return e.q=t}))}}return r},e}();e.Calculator=r}(t=e.shortestpaths||(e.shortestpaths={}))}(i||(i={}));var i;!function(e){!function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"}(e.EventType||(e.EventType={}));var t=e.EventType,n=function(){function n(){var e=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._variables=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:n.getSourceIndex,getTargetIndex:n.getTargetIndex,setLength:n.setLinkLength,getType:function(t){return"function"==typeof e._linkType?e._linkType(t):0}}}return n.prototype.on=function(e,n){return this.event||(this.event={}),"string"==typeof e?this.event[t[e]]=n:this.event[e]=n,this},n.prototype.trigger=function(e){this.event&&"undefined"!=typeof this.event[e.type]&&this.event[e.type](e)},n.prototype.kick=function(){for(;!this.tick(););},n.prototype.tick=function(){if(this._alpha<this._threshold)return this._running=!1,this.trigger({type:t.end,alpha:this._alpha=0,stress:this._lastStress}),!0;var e,n=this._nodes.length;this._links.length;this._descent.locks.clear();for(var i=0;i<n;++i)if(e=this._nodes[i],e.fixed){"undefined"!=typeof e.px&&"undefined"!=typeof e.py||(e.px=e.x,e.py=e.y);var r=[e.px,e.py];this._descent.locks.add(i,r)}var a=this._descent.rungeKutta();0===a?this._alpha=0:"undefined"!=typeof this._lastStress&&(this._alpha=a),this._lastStress=a;for(var i=0;i<n;++i)e=this._nodes[i],e.fixed?(e.x=e.px,e.y=e.py):(e.x=this._descent.x[0][i],e.y=this._descent.x[1][i]);return this.trigger({type:t.tick,alpha:this._alpha,stress:this._lastStress}),!1},n.prototype.nodes=function(e){if(!e){if(0===this._nodes.length&&this._links.length>0){var t=0;this._links.forEach(function(e){t=Math.max(t,e.source,e.target)}),this._nodes=new Array((++t));for(var n=0;n<t;++n)this._nodes[n]={}}return this._nodes}return this._nodes=e,this},n.prototype.groups=function(e){var t=this;return e?(this._groups=e,this._rootGroup={},this._groups.forEach(function(e){"undefined"==typeof e.padding&&(e.padding=1),"undefined"!=typeof e.leaves&&e.leaves.forEach(function(n,i){(e.leaves[i]=t._nodes[n]).parent=e}),"undefined"!=typeof e.groups&&e.groups.forEach(function(n,i){(e.groups[i]=t._groups[n]).parent=e})}),this._rootGroup.leaves=this._nodes.filter(function(e){return"undefined"==typeof e.parent}),this._rootGroup.groups=this._groups.filter(function(e){return"undefined"==typeof e.parent}),this):this._groups},n.prototype.powerGraphGroups=function(t){var n=e.powergraph.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(n.groups),t(n),this},n.prototype.avoidOverlaps=function(e){return arguments.length?(this._avoidOverlaps=e,this):this._avoidOverlaps},n.prototype.handleDisconnected=function(e){return arguments.length?(this._handleDisconnected=e,this):this._handleDisconnected},n.prototype.flowLayout=function(e,t){return arguments.length||(e="y"),this._directedLinkConstraints={axis:e,getMinSeparation:"number"==typeof t?function(){return t}:t},this},n.prototype.links=function(e){return arguments.length?(this._links=e,this):this._links},n.prototype.constraints=function(e){return arguments.length?(this._constraints=e,this):this._constraints},n.prototype.distanceMatrix=function(e){return arguments.length?(this._distanceMatrix=e,this):this._distanceMatrix},n.prototype.size=function(e){return e?(this._canvasSize=e,this):this._canvasSize},n.prototype.defaultNodeSize=function(e){return e?(this._defaultNodeSize=e,this):this._defaultNodeSize},n.prototype.groupCompactness=function(e){return e?(this._groupCompactness=e,this):this._groupCompactness},n.prototype.linkDistance=function(e){return e?(this._linkDistance="function"==typeof e?e:+e,this._linkLengthCalculator=null,this):this._linkDistance},n.prototype.linkType=function(e){return this._linkType=e,this},n.prototype.convergenceThreshold=function(e){return e?(this._threshold="function"==typeof e?e:+e,this):this._threshold},n.prototype.alpha=function(e){return arguments.length?(e=+e,this._alpha?e>0?this._alpha=e:this._alpha=0:e>0&&(this._running||(this._running=!0,this.trigger({type:t.start,alpha:this._alpha=e}),this.kick())),this):this._alpha},n.prototype.getLinkLength=function(e){return"function"==typeof this._linkDistance?+this._linkDistance(e):this._linkDistance},n.setLinkLength=function(e,t){e.length=t},n.prototype.getLinkType=function(e){return"function"==typeof this._linkType?this._linkType(e):0},n.prototype.symmetricDiffLinkLengths=function(t,n){var i=this;return void 0===n&&(n=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return e.symmetricDiffLinkLengths(i._links,i.linkAccessor,n)},this},n.prototype.jaccardLinkLengths=function(t,n){var i=this;return void 0===n&&(n=1),this.linkDistance(function(e){return t*e.length}),this._linkLengthCalculator=function(){return e.jaccardLinkLengths(i._links,i.linkAccessor,n)},this},n.prototype.start=function(t,i,r,a){var o=this;void 0===t&&(t=0),void 0===i&&(i=0),void 0===r&&(r=0),void 0===a&&(a=0);var l,s=this.nodes().length,u=s+2*this._groups.length,c=(this._links.length,this._canvasSize[0]),f=this._canvasSize[1];this._linkLengthCalculator&&this._linkLengthCalculator();var d=new Array(u),h=new Array(u);this._variables=new Array(u);var p=null,m=this._avoidOverlaps;this._nodes.forEach(function(e,t){e.index=t,"undefined"==typeof e.x&&(e.x=c/2,e.y=f/2),d[t]=e.x,h[t]=e.y});var v;this._distanceMatrix?v=this._distanceMatrix:(v=new e.shortestpaths.Calculator(u,this._links,n.getSourceIndex,n.getTargetIndex,function(e){return o.getLinkLength(e)}).DistanceMatrix(),p=e.Descent.createSquareMatrix(u,function(){return 2}),this._links.forEach(function(e){var t=n.getSourceIndex(e),i=n.getTargetIndex(e);p[t][i]=p[i][t]=1}));var g=e.Descent.createSquareMatrix(u,function(e,t){return v[e][t]});if(this._rootGroup&&"undefined"!=typeof this._rootGroup.groups){var l=s,y=function(e,t,n,i){p[e][t]=p[t][e]=n,g[e][t]=g[t][e]=i};this._groups.forEach(function(e){y(l,l+1,o._groupCompactness,.1),d[l]=0,h[l++]=0,d[l]=0,h[l++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var b=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,b=b.concat(e.generateDirectedEdgeConstraints(s,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new e.Descent([d,h],g),this._descent.locks.clear();for(var l=0;l<s;++l){var S=this._nodes[l];if(S.fixed){S.px=S.x,S.py=S.y;var w=[S.x,S.y];this._descent.locks.add(l,w)}}if(this._descent.threshold=this._threshold,this._descent.run(t),b.length>0&&(this._descent.project=new e.vpsc.Projection(this._nodes,this._groups,this._rootGroup,b).projectFunctions()),this._descent.run(i),this.avoidOverlaps(m),m&&(this._nodes.forEach(function(e,t){e.x=d[t],e.y=h[t]}),this._descent.project=new e.vpsc.Projection(this._nodes,this._groups,this._rootGroup,b,(!0)).projectFunctions(),this._nodes.forEach(function(e,t){d[t]=e.x,h[t]=e.y})),this._descent.G=p,this._descent.run(r),a){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=s,this._descent.scaleSnapByMaxH=s!=u;var N=e.Descent.createSquareMatrix(u,function(e,t){return e>=s||t>=s?p[e][t]:0});this._descent.G=N,this._descent.run(a)}if(this._links.forEach(function(e){"number"==typeof e.source&&(e.source=o._nodes[e.source]),"number"==typeof e.target&&(e.target=o._nodes[e.target])}),this._nodes.forEach(function(e,t){e.x=d[t],e.y=h[t]}),!this._distanceMatrix&&this._handleDisconnected){var D=e.separateGraphs(this._nodes,this._links);e.applyPacking(D,c,f,this._defaultNodeSize),this._nodes.forEach(function(e,t){o._descent.x[0][t]=e.x,o._descent.x[1][t]=e.y})}return this.resume()},n.prototype.resume=function(){return this.alpha(.1)},n.prototype.stop=function(){return this.alpha(0)},n.prototype.prepareEdgeRouting=function(t){void 0===t&&(t=0),this._visibilityGraph=new e.geom.TangentVisibilityGraph(this._nodes.map(function(e){return e.bounds.inflate(-t).vertices()}))},n.prototype.routeEdge=function(t,n){var i=[],r=new e.geom.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),a={x:t.source.x,y:t.source.y},o={x:t.target.x,y:t.target.y},l=r.addPoint(a,t.source.id),s=r.addPoint(o,t.target.id);r.addEdgeIfVisible(a,o,t.source.id,t.target.id),"undefined"!=typeof n&&n(r);var u=function(e){return e.source.id},c=function(e){return e.target.id},f=function(e){return e.length()},d=new e.shortestpaths.Calculator(r.V.length,r.E,u,c,f),h=d.PathFromNodeToNode(l.id,s.id);if(1===h.length||h.length===r.V.length)e.vpsc.makeEdgeBetween(t,t.source.innerBounds,t.target.innerBounds,5),i=[{x:t.sourceIntersection.x,y:t.sourceIntersection.y},{x:t.arrowStart.x,y:t.arrowStart.y}];else{for(var p=h.length-2,m=r.V[h[p]].p,v=r.V[h[0]].p,i=[t.source.innerBounds.rayIntersection(m.x,m.y)],g=p;g>=0;--g)i.push(r.V[h[g]].p);i.push(e.vpsc.makeEdgeTo(v,t.target.innerBounds,5))}return i},n.getSourceIndex=function(e){return"number"==typeof e.source?e.source:e.source.index},n.getTargetIndex=function(e){return"number"==typeof e.target?e.target:e.target.index},n.linkId=function(e){return n.getSourceIndex(e)+"-"+n.getTargetIndex(e)},n.dragStart=function(e){e.fixed|=2,e.px=e.x,e.py=e.y},n.dragEnd=function(e){e.fixed&=-7},n.mouseOver=function(e){e.fixed|=4,e.px=e.x,e.py=e.y},n.mouseOut=function(e){e.fixed&=-5},n}();e.Layout=n}(i||(i={}));var i;!function(e){function t(){return new n}var n=function(t){function n(){t.call(this),this.event=d3.dispatch(e.EventType[e.EventType.start],e.EventType[e.EventType.tick],e.EventType[e.EventType.end]);var n=this;this.drag=function(){var t=d3.behavior.drag().origin(function(e){return e}).on("dragstart.d3adaptor",e.Layout.dragStart).on("drag.d3adaptor",function(e){e.px=d3.event.x,e.py=d3.event.y,n.resume()}).on("dragend.d3adaptor",e.Layout.dragEnd);return arguments.length?void this.call(t):t}}return r(n,t),n.prototype.trigger=function(t){var n={type:e.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[n.type](n)},n.prototype.kick=function(){var e=this;d3.timer(function(){return t.prototype.tick.call(e)})},n.prototype.on=function(t,n){return"string"==typeof t?this.event.on(t,n):this.event.on(e.EventType[t],n),this},n}(e.Layout);e.D3StyleLayoutAdaptor=n,e.d3adaptor=t}(i||(i={}));var i;!function(e){var t=function(){function e(e,t,n){this.id=e,this.rect=t,this.children=n,this.leaf="undefined"==typeof n||0===n.length}return e}();e.NodeWrapper=t;var n=function(){function e(e,t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),this.id=e,this.x=t,this.y=n,this.node=i,this.line=r}return e}();e.Vert=n;var i=function(){function e(t,n){this.s=t,this.t=n;var i=e.findMatch(t,n),r=n.slice(0).reverse(),a=e.findMatch(t,r);i.length>=a.length?(this.length=i.length,this.si=i.si,this.ti=i.ti,this.reversed=!1):(this.length=a.length,this.si=a.si,this.ti=n.length-a.ti-a.length,this.reversed=!0)}return e.findMatch=function(e,t){for(var n=e.length,i=t.length,r={length:0,si:-1,ti:-1},a=new Array(n),o=0;o<n;o++){a[o]=new Array(i);for(var l=0;l<i;l++)if(e[o]===t[l]){var s=a[o][l]=0===o||0===l?1:a[o-1][l-1]+1;s>r.length&&(r.length=s,r.si=o-s+1,r.ti=l-s+1)}else a[o][l]=0}return r},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e}();e.LongestCommonSubsequence=i;var r=function(){function i(i,r,a){var o=this;void 0===a&&(a=12),this.originalnodes=i,this.groupPadding=a,this.leaves=null,this.nodes=i.map(function(e,n){return new t(n,r.getBounds(e),r.getChildren(e))}),this.leaves=this.nodes.filter(function(e){return e.leaf}),this.groups=this.nodes.filter(function(e){return!e.leaf}),this.cols=this.getGridDim("x"),this.rows=this.getGridDim("y"),this.groups.forEach(function(e){return e.children.forEach(function(t){return o.nodes[t].parent=e})}),this.root={children:[]},this.nodes.forEach(function(e){"undefined"==typeof e.parent&&(e.parent=o.root,o.root.children.push(e.id)),e.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(e,t){return o.getDepth(e)-o.getDepth(t)});var l=this.backToFront.slice(0).reverse().filter(function(e){return!e.leaf});l.forEach(function(t){var n=e.vpsc.Rectangle.empty();t.children.forEach(function(e){return n=n.union(o.nodes[e].rect)}),t.rect=n.inflate(o.groupPadding)});var s=this.midPoints(this.cols.map(function(e){return e.x})),u=this.midPoints(this.rows.map(function(e){return e.y})),c=s[0],f=s[s.length-1],d=u[0],h=u[u.length-1],p=this.rows.map(function(e){return{x1:c,x2:f,y1:e.y,y2:e.y}}).concat(u.map(function(e){return{x1:c,x2:f,y1:e,y2:e}})),m=this.cols.map(function(e){return{x1:e.x,x2:e.x,y1:d,y2:h}}).concat(s.map(function(e){return{x1:e,x2:e,y1:d,y2:h}})),v=p.concat(m);v.forEach(function(e){return e.verts=[]}),this.verts=[],this.edges=[],p.forEach(function(e){return m.forEach(function(t){var i=new n(o.verts.length,t.x1,e.y1);e.verts.push(i),t.verts.push(i),o.verts.push(i);for(var r=o.backToFront.length;r-- >0;){var a=o.backToFront[r],l=a.rect,s=Math.abs(i.x-l.cx()),u=Math.abs(i.y-l.cy());if(s<l.width()/2&&u<l.height()/2){i.node=a;break}}})}),v.forEach(function(e,t){o.nodes.forEach(function(t,i){t.rect.lineIntersections(e.x1,e.y1,e.x2,e.y2).forEach(function(i,r){var a=new n(o.verts.length,i.x,i.y,t,e);o.verts.push(a),e.verts.push(a),t.ports.push(a)})});var i=Math.abs(e.y1-e.y2)<.1,r=function(e,t){return i?t.x-e.x:t.y-e.y};e.verts.sort(r);for(var a=1;a<e.verts.length;a++){var l=e.verts[a-1],s=e.verts[a];l.node&&l.node===s.node&&l.node.leaf||o.edges.push({source:l.id,target:s.id,length:Math.abs(r(l,s))})}})}return i.prototype.avg=function(e){return e.reduce(function(e,t){return e+t})/e.length},i.prototype.getGridDim=function(e){for(var t=[],n=this.leaves.slice(0,this.leaves.length);n.length>0;){var i=n[0].rect,r=n.filter(function(t){return t.rect["overlap"+e.toUpperCase()](i)});t.push(r),r.forEach(function(e){return n.splice(n.indexOf(e),1)}),r[e]=this.avg(r.map(function(t){return t.rect["c"+e]()}))}return t.sort(function(t,n){return t[e]-n[e]}),t},i.prototype.getDepth=function(e){for(var t=0;e.parent!==this.root;)t++,e=e.parent;return t},i.prototype.midPoints=function(e){for(var t=e[1]-e[0],n=[e[0]-t/2],i=1;i<e.length;i++)n.push((e[i]+e[i-1])/2);return n.push(e[e.length-1]+t/2),n},i.prototype.findLineage=function(e){var t=[e];do e=e.parent,t.push(e);while(e!==this.root);return t.reverse()},i.prototype.findAncestorPathBetween=function(e,t){for(var n=this.findLineage(e),i=this.findLineage(t),r=0;n[r]===i[r];)r++;return{commonAncestor:n[r-1],lineages:n.slice(r).concat(i.slice(r))}},i.prototype.siblingObstacles=function(e,t){var n=this,i=this.findAncestorPathBetween(e,t),r={};i.lineages.forEach(function(e){return r[e.id]={}});var a=i.commonAncestor.children.filter(function(e){return!(e in r)});return i.lineages.filter(function(e){return e.parent!==i.commonAncestor}).forEach(function(e){return a=a.concat(e.parent.children.filter(function(t){return t!==e.id}))}),a.map(function(e){return n.nodes[e]})},i.getSegmentSets=function(e,t,n){for(var i=[],r=0;r<e.length;r++)for(var a=e[r],o=0;o<a.length;o++){var l=a[o];l.edgeid=r,l.i=o;var s=l[1][t]-l[0][t];Math.abs(s)<.1&&i.push(l)}i.sort(function(e,n){return e[0][t]-n[0][t]});for(var u=[],c=null,f=0;f<i.length;f++){var l=i[f];(!c||Math.abs(l[0][t]-c.pos)>.1)&&(c={pos:l[0][t],segments:[]},u.push(c)),c.segments.push(l)}return u},i.nudgeSegs=function(t,n,i,r,a,o){var l=r.length;if(!(l<=1)){for(var s=r.map(function(n){return new e.vpsc.Variable(n[0][t])}),u=[],c=0;c<l;c++)for(var f=0;f<l;f++)if(c!==f){var d=r[c],h=r[f],p=d.edgeid,m=h.edgeid,v=-1,g=-1;"x"==t?a(p,m)&&(d[0][n]<d[1][n]?(v=f,g=c):(v=c,g=f)):a(p,m)&&(d[0][n]<d[1][n]?(v=c,g=f):(v=f,g=c)),v>=0&&u.push(new e.vpsc.Constraint(s[v],s[g],o))}var y=new e.vpsc.Solver(s,u);y.solve(),s.forEach(function(e,n){var a=r[n],o=e.position();a[0][t]=a[1][t]=o;var l=i[a.edgeid];a.i>0&&(l[a.i-1][1][t]=o),a.i<l.length-1&&(l[a.i+1][0][t]=o)})}},i.nudgeSegments=function(e,t,n,r,a){for(var o=i.getSegmentSets(e,t,n),l=0;l<o.length;l++){for(var s=o[l],u=[],c=0;c<s.segments.length;c++){var f=s.segments[c];u.push({type:0,s:f,pos:Math.min(f[0][n],f[1][n])}),u.push({type:1,s:f,pos:Math.max(f[0][n],f[1][n])})}u.sort(function(e,t){return e.pos-t.pos+e.type-t.type});var d=[],h=0;u.forEach(function(o){0===o.type?(d.push(o.s),h++):h--,0==h&&(i.nudgeSegs(t,n,e,d,r,a),d=[])})}},i.prototype.routeEdges=function(t,n,i,r){var a=this,o=t.map(function(e){return a.route(i(e),r(e))}),l=e.GridRouter.orderEdges(o),s=o.map(function(t){return e.GridRouter.makeSegments(t)});return e.GridRouter.nudgeSegments(s,"x","y",l,n),e.GridRouter.nudgeSegments(s,"y","x",l,n),e.GridRouter.unreverseEdges(s,o),s},i.unreverseEdges=function(e,t){e.forEach(function(e,n){var i=t[n];i.reversed&&(e.reverse(),e.forEach(function(e){e.reverse()}))})},i.angleBetween2Lines=function(e,t){var n=Math.atan2(e[0].y-e[1].y,e[0].x-e[1].x),i=Math.atan2(t[0].y-t[1].y,t[0].x-t[1].x),r=n-i;return(r>Math.PI||r<-Math.PI)&&(r=i-n),r},i.isLeft=function(e,t,n){return(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x)<=0},i.getOrder=function(e){for(var t={},n=0;n<e.length;n++){var i=e[n];"undefined"==typeof t[i.l]&&(t[i.l]={}),t[i.l][i.r]=!0}return function(e,n){return"undefined"!=typeof t[e]&&t[e][n]}},i.orderEdges=function(t){for(var n=[],r=0;r<t.length-1;r++)for(var a=r+1;a<t.length;a++){var o,l,s,u=t[r],c=t[a],f=new e.LongestCommonSubsequence(u,c);0!==f.length&&(f.reversed&&(c.reverse(),c.reversed=!0,f=new e.LongestCommonSubsequence(u,c)),(f.si<=0||f.ti<=0)&&(f.si+f.length>=u.length||f.ti+f.length>=c.length)?n.push({l:r,r:a}):(f.si+f.length>=u.length||f.ti+f.length>=c.length?(o=u[f.si+1],s=u[f.si-1],l=c[f.ti-1]):(o=u[f.si+f.length-2],l=u[f.si+f.length],s=c[f.ti+f.length]),i.isLeft(o,l,s)?n.push({l:a,r:r}):n.push({l:r,r:a})))}return e.GridRouter.getOrder(n)},i.makeSegments=function(e){function t(e){return{x:e.x,y:e.y}}for(var n=function(e,t,n){return Math.abs((t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x))<.001},i=[],r=t(e[0]),a=1;a<e.length;a++){var o=t(e[a]),l=a<e.length-1?e[a+1]:null;l&&n(r,o,l)||(i.push([r,o]),r=o)}return i},i.prototype.route=function(t,n){var i=this,r=this.nodes[t],a=this.nodes[n];this.obstacles=this.siblingObstacles(r,a);var o={};this.obstacles.forEach(function(e){return o[e.id]=e}),this.passableEdges=this.edges.filter(function(e){var t=i.verts[e.source],n=i.verts[e.target];return!(t.node&&t.node.id in o||n.node&&n.node.id in o)});for(var l=1;l<r.ports.length;l++){var s=r.ports[0].id,u=r.ports[l].id;this.passableEdges.push({source:s,target:u,length:0})}for(var l=1;l<a.ports.length;l++){var s=a.ports[0].id,u=a.ports[l].id;this.passableEdges.push({source:s,target:u,length:0})}var c=function(e){return e.source},f=function(e){return e.target},d=function(e){return e.length},h=new e.shortestpaths.Calculator(this.verts.length,this.passableEdges,c,f,d),p=function(e,t,n){var o=i.verts[e],l=i.verts[t],s=i.verts[n],u=Math.abs(s.x-o.x),c=Math.abs(s.y-o.y);return o.node===r&&o.node===l.node||l.node===a&&l.node===s.node?0:u>1&&c>1?1e3:0},m=h.PathFromNodeToNodeWithPrevCost(r.ports[0].id,a.ports[0].id,p),v=m.reverse().map(function(e){return i.verts[e]});return v.push(this.nodes[a.id].ports[0]),v.filter(function(e,t){return!(t<v.length-1&&v[t+1].node===r&&e.node===r||t>0&&e.node===a&&v[t-1].node===a)})},i.getRoutePath=function(e,t,n,r){var a={routepath:"M "+e[0][0].x+" "+e[0][0].y+" ",arrowpath:""};if(e.length>1)for(var o=0;o<e.length;o++){var l=e[o],s=l[1].x,u=l[1].y,c=s-l[0].x,f=u-l[0].y;if(o<e.length-1){Math.abs(c)>0?s-=c/Math.abs(c)*t:u-=f/Math.abs(f)*t,a.routepath+="L "+s+" "+u+" ";var d=e[o+1],h=d[0].x,p=d[0].y,m=d[1].x,v=d[1].y;c=m-h,f=v-p;var g,y,b=i.angleBetween2Lines(l,d)<0?1:0;Math.abs(c)>0?(g=h+c/Math.abs(c)*t,y=p):(g=h,y=p+f/Math.abs(f)*t);var S=Math.abs(g-s),w=Math.abs(y-u);a.routepath+="A "+S+" "+w+" 0 0 "+b+" "+g+" "+y+" "}else{var N,D,T=[s,u];Math.abs(c)>0?(s-=c/Math.abs(c)*r,N=[s,u+n],D=[s,u-n]):(u-=f/Math.abs(f)*r,N=[s+n,u],D=[s-n,u]),a.routepath+="L "+s+" "+u+" ",r>0&&(a.arrowpath="M "+T[0]+" "+T[1]+" L "+N[0]+" "+N[1]+" L "+D[0]+" "+D[1])}}else{var N,D,l=e[0],s=l[1].x,u=l[1].y,c=s-l[0].x,f=u-l[0].y,T=[s,u];Math.abs(c)>0?(s-=c/Math.abs(c)*r,N=[s,u+n],D=[s,u-n]):(u-=f/Math.abs(f)*r,N=[s+n,u],D=[s-n,u]),a.routepath+="L "+s+" "+u+" ",r>0&&(a.arrowpath="M "+T[0]+" "+T[1]+" L "+N[0]+" "+N[1]+" L "+D[0]+" "+D[1])}return a},i}();e.GridRouter=r}(i||(i={}));var i;!function(e){
var t=function(){function e(e,t){this.source=e,this.target=t}return e.prototype.actualLength=function(e){var t=this;return Math.sqrt(e.reduce(function(e,n){var i=n[t.target]-n[t.source];return e+i*i},0))},e}();e.Link3D=t;var n=function(){function e(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),this.x=e,this.y=t,this.z=n}return e}();e.Node3D=n;var i=function(){function t(e,n,i){var r=this;this.nodes=e,this.links=n,this.idealLinkLength=i,this.result=new Array(t.k);for(var a=0;a<t.k;++a)this.result[a]=new Array(e.length);e.forEach(function(e,n){for(var i=0,a=t.dims;i<a.length;i++){var o=a[i];"undefined"==typeof e[o]&&(e[o]=Math.random())}r.result[0][n]=e.x,r.result[1][n]=e.y,r.result[2][n]=e.z})}return t.prototype.linkLength=function(e){return e.actualLength(this.result)},t.prototype.start=function(t){var n=this;void 0===t&&(t=100);var i=this.nodes.length,a=new r;e.jaccardLinkLengths(this.links,a,1.5),this.links.forEach(function(e){return e.length*=n.idealLinkLength});var o=new e.shortestpaths.Calculator(i,this.links,function(e){return e.source},function(e){return e.target},function(e){return e.length}).DistanceMatrix(),l=e.Descent.createSquareMatrix(i,function(e,t){return o[e][t]}),s=e.Descent.createSquareMatrix(i,function(){return 2});this.links.forEach(function(e){var t=e.source,n=e.target;return s[t][n]=s[n][t]=1}),this.descent=new e.Descent(this.result,l),this.descent.threshold=.001,this.descent.G=s;for(var u=0;u<this.nodes.length;u++){var c=this.nodes[u];c.fixed&&this.descent.locks.add(u,[c.x,c.y,c.z])}return this.descent.run(t),this},t.prototype.tick=function(){return this.descent.rungeKutta()},t.dims=["x","y","z"],t.k=t.dims.length,t}();e.Layout3D=i;var r=function(){function e(){}return e.prototype.getSourceIndex=function(e){return e.source},e.prototype.getTargetIndex=function(e){return e.target},e.prototype.getLength=function(e){return e.length},e.prototype.setLength=function(e,t){e.length=t},e}()}(i||(i={})),e.exports=i,e.exports.RBTree=n(144)},function(e,t,n){RBTree=function(e){var t=function(e){var n=t.m[e];if(n.mod)return n.mod.exports;var i=n.mod={exports:{}};return n(i,i.exports),i.exports};return t.m={},t.m["./treebase"]=function(e,t){function n(){}function i(e){this._tree=e,this._ancestors=[],this._cursor=null}n.prototype.clear=function(){this._root=null,this.size=0},n.prototype.find=function(e){for(var t=this._root;null!==t;){var n=this._comparator(e,t.data);if(0===n)return t.data;t=t.get_child(n>0)}return null},n.prototype.findIter=function(e){for(var t=this._root,n=this.iterator();null!==t;){var i=this._comparator(e,t.data);if(0===i)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}return null},n.prototype.lowerBound=function(e){return this._bound(e,this._comparator)},n.prototype.upperBound=function(e){function t(e,t){return n(t,e)}var n=this._comparator;return this._bound(e,t)},n.prototype.min=function(){var e=this._root;if(null===e)return null;for(;null!==e.left;)e=e.left;return e.data},n.prototype.max=function(){var e=this._root;if(null===e)return null;for(;null!==e.right;)e=e.right;return e.data},n.prototype.iterator=function(){return new i(this)},n.prototype.each=function(e){for(var t,n=this.iterator();null!==(t=n.next());)e(t)},n.prototype.reach=function(e){for(var t,n=this.iterator();null!==(t=n.prev());)e(t)},n.prototype._bound=function(e,t){for(var n=this._root,i=this.iterator();null!==n;){var r=this._comparator(e,n.data);if(0===r)return i._cursor=n,i;i._ancestors.push(n),n=n.get_child(r>0)}for(var a=i._ancestors.length-1;a>=0;--a)if(n=i._ancestors[a],t(e,n.data)>0)return i._cursor=n,i._ancestors.length=a,i;return i._ancestors.length=0,i},i.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},i.prototype.next=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._minNode(e)}else if(null===this._cursor.right){var t;do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===t)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},i.prototype.prev=function(){if(null===this._cursor){var e=this._tree._root;null!==e&&this._maxNode(e)}else if(null===this._cursor.left){var t;do{if(t=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===t)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},i.prototype._minNode=function(e){for(;null!==e.left;)this._ancestors.push(e),e=e.left;this._cursor=e},i.prototype._maxNode=function(e){for(;null!==e.right;)this._ancestors.push(e),e=e.right;this._cursor=e},e.exports=n},t.m.__main__=function(e,n){function i(e){this.data=e,this.left=null,this.right=null,this.red=!0}function r(e){this._root=null,this._comparator=e,this.size=0}function a(e){return null!==e&&e.red}function o(e,t){var n=e.get_child(!t);return e.set_child(!t,n.get_child(t)),n.set_child(t,e),e.red=!0,n.red=!1,n}function l(e,t){return e.set_child(!t,o(e.get_child(!t),!t)),o(e,t)}var s=t("./treebase");i.prototype.get_child=function(e){return e?this.right:this.left},i.prototype.set_child=function(e,t){e?this.right=t:this.left=t},r.prototype=new s,r.prototype.insert=function(e){var t=!1;if(null===this._root)this._root=new i(e),t=!0,this.size++;else{var n=new i((void 0)),r=0,s=0,u=null,c=n,f=null,d=this._root;for(c.right=this._root;;){if(null===d?(d=new i(e),f.set_child(r,d),t=!0,this.size++):a(d.left)&&a(d.right)&&(d.red=!0,d.left.red=!1,d.right.red=!1),a(d)&&a(f)){var h=c.right===u;d===f.get_child(s)?c.set_child(h,o(u,!s)):c.set_child(h,l(u,!s))}var p=this._comparator(d.data,e);if(0===p)break;s=r,r=p<0,null!==u&&(c=u),u=f,f=d,d=d.get_child(r)}this._root=n.right}return this._root.red=!1,t},r.prototype.remove=function(e){if(null===this._root)return!1;var t=new i((void 0)),n=t;n.right=this._root;for(var r=null,s=null,u=null,c=1;null!==n.get_child(c);){var f=c;s=r,r=n,n=n.get_child(c);var d=this._comparator(e,n.data);if(c=d>0,0===d&&(u=n),!a(n)&&!a(n.get_child(c)))if(a(n.get_child(!c))){var h=o(n,c);r.set_child(f,h),r=h}else if(!a(n.get_child(!c))){var p=r.get_child(!f);if(null!==p)if(a(p.get_child(!f))||a(p.get_child(f))){var m=s.right===r;a(p.get_child(f))?s.set_child(m,l(r,f)):a(p.get_child(!f))&&s.set_child(m,o(r,f));var v=s.get_child(m);v.red=!0,n.red=!0,v.left.red=!1,v.right.red=!1}else r.red=!1,p.red=!0,n.red=!0}}return null!==u&&(u.data=n.data,r.set_child(r.right===n,n.get_child(null===n.left)),this.size--),this._root=t.right,null!==this._root&&(this._root.red=!1),null!==u},e.exports=r},t("__main__")}(e.exports)},function(e,t){e.exports=ReactDOMServer},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){}]);