function aa(a){throw a;}var f=void 0,i=!0,k=null,l=!1;function n(){return function(){}}function ba(a){return function(b){this[a]=b}}function o(a){return function(){return this[a]}}function r(a){return function(){return a}}var s,ca=this; function da(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ea(a){return"string"==typeof a}var fa="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),ga=0,ia=Date.now||function(){return+new Date};function ja(a,b){var c=a.split("."),d=ca;!(c[0]in d)&&d.execScript&&d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&b!==f?d[e]=b:d=d[e]?d[e]:d[e]={}} function ka(a,b){function c(){}c.prototype=b.prototype;a.Cn=b.prototype;a.prototype=new c;a.prototype.constructor=a}function la(a,b){for(var c=1;c")&&(a=a.replace(ra,">"));-1!=a.indexOf('"')&&(a=a.replace(sa,"""));return a} var oa=/&/g,pa=//g,sa=/\"/g,na=/[&<>\"]/;var ta,ua,va,wa;function xa(){return ca.navigator?ca.navigator.userAgent:k}wa=va=ua=ta=l;var ya;if(ya=xa()){var za=ca.navigator;ta=0==ya.indexOf("Opera");ua=!ta&&-1!=ya.indexOf("MSIE");va=!ta&&-1!=ya.indexOf("WebKit");wa=!ta&&!va&&"Gecko"==za.product}var Aa=ua,Ba=wa,Ca=va,Da; a:{var Ea="",Fa;if(ta&&ca.opera)var Ga=ca.opera.version,Ea="function"==typeof Ga?Ga():Ga;else if(Ba?Fa=/rv\:([^\);]+)(\)|;)/:Aa?Fa=/MSIE\s+([^\);]+)(\)|;)/:Ca&&(Fa=/WebKit\/(\S+)/),Fa)var Ha=Fa.exec(xa()),Ea=Ha?Ha[1]:"";if(Aa){var Ia,Ja=ca.document;Ia=Ja?Ja.documentMode:f;if(Ia>parseFloat(Ea)){Da=""+Ia;break a}}Da=Ea}var Ka={}; function La(a){if(!Ka[a]){for(var b=0,c=(""+Da).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=(""+a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),g=0;0==b&&g(0== x[1].length?0:parseInt(x[1],10))?1:0)||((0==q[2].length)<(0==x[2].length)?-1:(0==q[2].length)>(0==x[2].length)?1:0)||(q[2]x[2]?1:0)}while(0==b)}Ka[a]=0<=b}}var Ma={};function Na(){return Ma[9]||(Ma[9]=Aa&&document.documentMode&&9<=document.documentMode)}function Oa(){this.pi=ia()}new Oa;Oa.prototype.set=ba("pi");Oa.prototype.reset=function(){this.set(ia())};Oa.prototype.get=o("pi");function Pa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b} function Qa(a){this.stack=Error().stack||"";a&&(this.message=""+a)}ka(Qa,Error);Qa.prototype.name="CustomError";function Ra(a,b){b.unshift(a);Qa.call(this,la.apply(k,b));b.shift()}ka(Ra,Qa);Ra.prototype.name="AssertionError";function Sa(a,b){aa(new Ra("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))} var Ta=Array.prototype,Ua=Ta.indexOf?function(a,b,c){return Ta.indexOf.call(a,b,c)}:function(a,b,c){c=c==k?0:0>c?Math.max(0,a.length+c):c;if(ea(a))return!ea(b)||1!=b.length?-1:a.indexOf(b,c);for(;c=arguments.length?Ta.slice.call(a,b):Ta.slice.call(a,b,c)} function Xa(a,b,c){for(var d=0,e=a.length,g;d>1,j;j=b(c,a[h]);0b?1:a2*this.Lc&&ab(this),i):l}; function ab(a){if(a.Lc!=a.Ba.length){for(var b=0,c=0;bb.length){c.push(gb(a)+"(");for(var d=a.arguments,e=0;e=ob(this).value){a=this.ak(a,b,c);b="log:"+a.bl;ca.console&&(ca.console.timeStamp?ca.console.timeStamp(b):ca.console.markTimeline&&ca.console.markTimeline(b));ca.msWriteProfilerMark&&ca.msWriteProfilerMark(b);for(b=this;b;){var c=b,d=a;if(c.Lh)for(var e=0,g=f;g=c.Lh[e];e++)g(d);b=b.getParent()}}}; s.ak=function(a,b,c){var d=new ib(a,""+b,this.fi);if(c){d.hh=c;var e;var g=arguments.callee.caller;try{var h;var j;c:{for(var m=["window","location","href"],p=ca,q;q=m.shift();)if(p[q]!=k)p=p[q];else{j=k;break c}j=p}if(ea(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:j,stack:"Not available"};else{var x,A,m=l;try{x=c.lineNumber||c.Vb||"Not available"}catch(D){x="Not available",m=i}try{A=c.fileName||c.filename||c.sourceURL||j}catch(qa){A="Not available",m=i}h=m||!c.lineNumber|| !c.fileName||!c.stack?{message:c.message,name:c.name,lineNumber:x,fileName:A,stack:c.stack||"Not available"}:c}e="Message: "+ma(h.message)+'\nUrl: '+h.fileName+"\nLine: "+h.lineNumber+"\n\nBrowser stack:\n"+ma(h.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+ma(eb(g)+"-> ")}catch(ha){e="Exception trying to expose exception! You win, we lose. "+ha}d.gh=e}return d};function t(a,b){a.log(mb,b,f)}var pb={},qb=k; function rb(a){qb||(qb=new kb(""),pb[""]=qb,qb.si(nb));var b;if(!(b=pb[a])){b=new kb(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=rb(a.substr(0,c));c.Cf||(c.Cf={});c.Cf[d]=b;b.Xe=c;pb[a]=b}return b}!Aa||Na();!Ba&&!Aa||Aa&&Na()||Ba&&La("1.9.1");Aa&&La("9");function sb(a,b,c){for(var d in b)a[d]=a[d]!==f&&c?c(a[d],b[d]):b[d];return a}function tb(a,b){"object"!==typeof a&&aa(TypeError());var c=[],d;for(d in a)a.hasOwnProperty(d)&&(!b||b.test(d))&&c.push(d);return c} function ub(a,b){for(var c in b)"function"!==typeof b[c]&&(a[c]=b[c]);return a}function u(a,b){a.a=b.prototype;a.prototype=new b;a.prototype.constructor=a}function v(a,b){var c=a.prototype,d=b.prototype,e;for(e in d)"function"!==typeof d[e]&&aa(Error("ScoreLibrary.aggregate: unexpect!")),"constructor"!==e&&(c[e]=d[e])}function vb(){} function wb(a){function b(a){return function(){return a.apply(this.delegate?this.delegate:this,arguments)}}var c=w;v(a,vb);var a=a.prototype,c=c.prototype,d;for(d in c){var e=c[d];"function"===typeof e&&"constructor"!==d&&(a[d]=b(e))}}var z;z=rb("ScoreLibrary");z.rm=function(a,b){if("undefined"==typeof a)return"undefined";if(a==k)return"NULL";var c=[],d;for(d in a)if(b||"function"!=da(a[d])){var e=d+" = ";try{e+=a[d]}catch(g){e+="*** "+g+" ***"}c.push(e)}return c.join("\n")}; z.Y=function(a){function b(a,g){var h=g+" ";try{if(a!==f)if(a===k)d.push("NULL");else if(ea(a))d.push('"'+a.replace(/\n/g,"\n"+g)+'"');else if("function"==da(a))d.push((""+a).replace(/\n/g,"\n"+g));else{var j=da(a);if("object"==j||"array"==j||"function"==j)if(c.contains(a))d.push("*** reference loop detected ***");else{c.add(a);d.push("{");for(var m in a)"function"!=da(a[m])&&(d.push("\n"),d.push(h),d.push(m+" = "),b(a[m],h));d.push("\n"+g+"}")}else d.push(a)}else d.push("undefined")}catch(p){d.push("*** "+ p+" ***")}}var c=new cb,d=[];b(a,"");return d.join("")};function xb(){}var B=B||new xb;xb.prototype.toString=r("Renderer.PaintHelper");xb.prototype.J=function(a,b,c,d,e){a.moveTo(b,c);a.lineTo(d,e)};function yb(a,b,c,d,e,g,h){var j=g?1:-1,g=2*j,m=d-b,p=e-c,q=0.4*m;h>q&&20>p&&(h=q);h*=j;q=p/m;j=b+0.25*m;p=c+(j-b)*q+h;m=d-0.25*m;h=c+(m-b)*q+h;a.moveTo(b,c);a.bezierCurveTo(j,p,m,h,d,e);a.bezierCurveTo(m,h+g,j,p+g,b,c)} function zb(a,b,c,d,e,g,h,j,m,p){j="dashed"===j?a.Mc:a.J;h&1||j.call(a,b,c,d,c,d+g,m,p);h&2||j.call(a,b,c,d+g,c+e,d+g,m,p);h&4||j.call(a,b,c+e,d+g,c+e,d,m,p);h&8||j.call(a,b,c+e,d,c,d,m,p)}xb.prototype.Mc=function(a,b,c,d,e,g,h){for(var g=g||5,h=h||5,d=d-b,e=e-c,j=Math.abs(Math.sqrt(Math.pow(d,2)+Math.pow(e,2))),m=i,p=0,q=b,x=c;p=a.i(b)||aa(RangeError("Renderer.Requisition.setAllocate(): invalid argument!"));a["allocate_"+b]=c}function E(a,b,c){/(x|y)/.test(c);return a[b+"_"+c]}function F(a,b,c,d){/(x|y)/.test(c);a[b+"_"+c]=d}function Jb(){}var Kb={xa:1,ya:0,za:0,Aa:1,x:0,y:0}; function Lb(a,b){var c={};c.xa=a.xa*b.xa+a.za*b.ya;c.ya=a.ya*b.xa+a.Aa*b.ya;c.za=a.xa*b.za+a.za*b.Aa;c.Aa=a.ya*b.za+a.Aa*b.Aa;c.x=a.xa*b.x+a.za*b.y+1*a.x;c.y=a.ya*b.x+a.Aa*b.y+1*a.y;return c}Jb.prototype.xh=function(){return this.ci?{xa:this.Xh,ya:this.Yh,za:this.Zh,Aa:this.$h,x:this.ai,y:this.bi}:f};Jb.prototype.transform=function(a){a.transform(this.Xh,this.Yh,this.Zh,this.$h,this.ai,this.bi)};function Mb(){this.id=++Nb;this.debug=l}v(Mb,Db);v(Mb,n());v(Mb,Jb);v(Mb,Ab);var Nb=Nb||0; Mb.prototype.toString=r("Renderer.Paintable");Mb.prototype.clone=function(a){a=a||new Mb;ub(a,this);return a};var Ob=Ob||f;function Pb(a){var b=Ob;return b===f||b===a.id||a.debug}var Qb=Qb||l;Mb.prototype.p=function(a){if(Qb&&Pb(this)){a.save();a.X(1);a.qa("#209424");a.beginPath();var b=Ib(this,"width"),c=Ib(this,"height");0===b?B.J(a,0.5,0.5,0.5,c-0.5):0===c?B.J(a,0.5,0.5,b-0.5,0.5):a.rect(0.5,0.5,b-1,c-1);a.stroke();a.restore()}}; function Rb(a,b){this.target=a;b&&(this.xa=b.xa,this.ya=b.ya,this.za=b.za,this.Aa=b.Aa,this.x=b.x,this.y=b.y)}Rb.prototype.toString=r("Renderer.PaintableTransformer");Rb.prototype.xh=function(){return{xa:this.xa,ya:this.ya,za:this.za,Aa:this.Aa,x:this.x,y:this.y}};Rb.prototype.transform=function(){var a=this,b=sb({},Kb);do{if(Mb.prototype.isPrototypeOf(a)){var c=a,a=b;c.ci&&(a=Lb(c.xh(),a));c.ci=i;c.Xh=a.xa;c.Yh=a.ya;c.Zh=a.za;c.$h=a.Aa;c.ai=a.x;c.bi=a.y;break}b=Lb(b,a);a=a.target}while(1);return b}; function Sb(a,b,c){this.yl=b!==f?b:1;this.zl=c!==f?c:1;Sb.a.constructor.call(this,a,{xa:this.yl,ya:0,za:0,Aa:this.zl,x:0,y:0})}u(Sb,Rb);Sb.prototype.toString=r("Renderer.PaintableScaler");function Tb(a,b){this.bf=b||0;var c=Math.cos(this.bf),d=Math.sin(this.bf);Tb.a.constructor.call(this,a,{xa:c,ya:d,za:-d,Aa:c,x:0,y:0})}u(Tb,Rb);Tb.prototype.toString=r("Renderer.PaintableRotator"); function Ub(a,b,c){this.$k=b!==f?b:0;this.al=c!==f?c:0;Ub.a.constructor.call(this,a,{xa:1,ya:0,za:0,Aa:1,x:this.$k,y:this.al})}u(Ub,Rb);Ub.prototype.toString=r("Renderer.PaintableTranslator");function Vb(a,b){this.fg=b?i:l;Vb.a.constructor.call(this,a,{xa:this.fg?-1:1,ya:0,za:0,Aa:this.fg?1:-1,x:0,y:0})}u(Vb,Rb);Vb.prototype.toString=r("Renderer.PaintableMirror");Vb.prototype.Qh=o("fg");function Wb(a){Wb.a.constructor.call(this);this.sa=a;this.Ed=a.name}u(Wb,Mb);s=Wb.prototype;s.toString=r("Renderer.Glyph"); s.clone=function(a){a=a||new Wb(this.sa);return Wb.a.clone.call(this,a)};s.getName=function(){return this.sa.name};s.uh=function(){return 0=this.sa.width)){var b=this.zh();if(b!==f)for(var c=b.length,d=0;d=b.fa&&(b.fa=5);b.xn=K(a,"staff-size",100);b.em=K(a,"capo",0);Q(a,"staff-tuning",function(a,c){var g;g=g||{};g.Vb=O(K(c,"line",f));g.step=Sc(c,"tuning-step");g.Ia=Mc(K(c,"tuning-octave",f));g.L=K(c,"tuning-alter",0);b.xi=b.xi||[];b.xi[g.Vb-1]= g},c)}s.jb=function(a,b){b=b||{};b.Yb=L(a,f,["none","brace","line","bracket","square"],"brace");b.rf=K(a,"top-staff",f);b.me=K(a,"bottom-staff",f);Ac(a,b);Bc(a,b);return b};function id(a,b){var b=b||{},c=P(a,"slash-type");c&&(b.tn=Oc(c,f,f))}function Zc(a,b){var c=0;Q(a,b,function(){c+=1});return c} function jd(a,b){var c=I(),b=b||{};b.Va=Mc(K(a,"divisions",f));b.staves=K(a,"staves",f);Q(a,"measure-style",function(a,c){b.Xc=b.Xc||[];var g;g=g||{};g.k=K(c,"number",1);this.oa(c,g);Bc(c,g);var h=P(c,"multiple-rest");if(h){g.Kd="multiple-rest";var j;j=g||{};j.Gi=N(h,"use-symbols",l);j.og=K(h,f,2)}if(h=P(c,"measure-repeat"))g.Kd="measure-repeat",j=g||{},j.type=O(Oc(h,"type",f)),j.El=K(h,"slashes",1),j.og=K(h,f,2);if(h=P(c,"beat-repeat"))g.Kd="beat-repeat",j=g||{},j.type=O(Oc(h,"type",f)),j.El=K(h, "slashes",1),j.Ol=N(h,"use-dots",l),id(h,j),j.Dl=Zc(h,"slash-dot");if(h=P(c,"slash"))g.Kd="slash",j=g||{},j.type=O(Oc(h,"type",f)),j.Ol=N(h,"use-dots",l),j.Qn=N(h,"use-stems",l),id(h,j),j.Dl=Zc(h,"slash-dot");b.Xc.push(g)},c)} s.rb=function(a,b){b=b||{};b.k=K(a,"number",1);b.Ng=N(a,"additional");b.Ng&&Qc(a,b);b.Ul=N(a,"after-barline");b.eb=Kc(a);M(this,a,b);b.T=L(a,"sign","G F C percussion TAB jianpu none".split(" "),"none");if(!b.Ng){var c=f;switch(b.T){case "G":c=2;break;case "F":c=4;break;case "C":c=3;break;case "TAB":c=5}b.Vb=K(a,"line",c)}b.nd=K(a,"clef-octave-change",0);return b};var kd="sharp natural flat double-sharp sharp-sharp double-flat flat-flat natural-sharp natural-flat quarter-flat quarter-sharp three-quarters-flat three-quarters-sharp sharp-down sharp-up natural-down natural-up flat-down flat-up triple-sharp triple-flat slash-quarter-sharp slash-sharp slash-flat double-slash-flat sharp-1 sharp-2 sharp-3 sharp-5 flat-1 flat-2 flat-3 flat-4 sori koron".split(" "); s=H.prototype;s.Ob=function(a,b){b=b||{};b.Na=L(a,f,kd,f);b.md=N(a,"cautionary",l);b.se=N(a,"editorial",l);Rc(a,b);M(this,a,b);return b}; function ld(a,b){var c=f,d=f,e=f,g=f,h=f;Q(b,"key-octave",function(a,b){h=h||{};var c=O(K(b,"number",f));c&&(h[c]=K(b,f,4))},a);Q(b,"key-step",function(a,b){d=d||[];d.push(b.Rb(f))});Q(b,"key-alter",function(a,b){e=e||[];e.push(K(b,f,0))});Q(b,"key-accidental",function(a,b){g=g||[];g.push(this.Ob(b))},a);d.forEach(function(a,b){c=c||[];var d={};d.Ia=h?h[b+1]:/(C|D|E|F)/.test(a)?5:4;d.step=a;d.L=e[b];g&&g[b]&&(d.Na=g[b]);c.push(d)});return c} s.getKey=function(a,b){b=b||{};b.k=K(a,"number",-1);b.eb=Kc(a);M(this,a,b);var c=P(a,"cancel");if(c){var d;d=b||{};d.cancel=K(c,f,f);d.cancel&&(d.dm=L(c,"location",["left","right","before-barline"],"left"))}dd(a,"fifths")?(b.we=K(a,"fifths",0),b.mode=L(a,"mode","major minor dorian phrygian lydian mixolydian aeolian ionian locrian none".split(" "),"major")):b.fe=ld(this,a);return b};function md(a,b){b=b||{};b.Yb=L(a,"symbol","common cut single-number note dotted-note normal".split(" "),"normal")} function nd(a,b){b=b||{};b.separator=L(a,"separator",["none","horizontal","diagonal","vertical","adjacent"],"none")}function od(a,b,c){var c=c||{},d=f;Q(b,"beats",function(a,b){d=d||[];d.push(b.Rb())},a);var e=f;Q(b,"beat-type",function(a,b){e=e||[];e.push(b.Rb())},a);d.forEach(function(a,b){c.ke=c.ke||[];c.ke.push({Jc:a,le:e[b]})})} s.getTime=function(a,b){b=b||{};b.k=K(a,"number",-1);md(a,b);nd(a,b);Fc(this,a,b);b.eb=Kc(a);b.ri=dd(a,"senza-misura");if(!b.ri){od(this,a,b);var c=P(a,"interchangeable");if(c){var d=b,e;e=e||{};e.Hn=L(c,"time-relation","parentheses bracket equals slash space hyphen".split(" "),f);md(c,e);nd(c,e);od(this,c,e);d.Hm=e}}return b};s.Ah=function(a,b){b=b||{};b.Yk=K(a,"millimeters",7);b.Kl=K(a,"tenths",40);return b}; s.Fb=function(a,b){b=b||{};b.$c=K(a,"page-height",800);b.ad=K(a,"page-width",600);Q(a,"page-margins",function(a,d){b.Cc=b.Cc||{};var e;e=e||{};e.type=L(d,"type",["odd","even","both"],"both");e["left-margin"]=K(d,"left-margin",0);e["right-margin"]=K(d,"right-margin",0);e["top-margin"]=K(d,"top-margin",0);e["bottom-margin"]=K(d,"bottom-margin",0);b.Cc[e.type]=e},this);return b}; s.rc=function(a,b){var b=b||{},c=P(a,"system-margins");if(c){var d=b,e;e=e||{};e["left-margin"]=K(c,"left-margin",0);e["right-margin"]=K(c,"right-margin",0);d.Ci=e}b.zi=K(a,"system-distance",0);b.Fi=K(a,"top-system-distance",0);return b}; function pd(a,b,c){var c=c||{},d=P(b,"scaling");d&&(c.qi=a.Ah(d));if(d=P(b,"page-layout"))c.We=a.Fb(d);if(d=P(b,"system-layout"))c.Bi=a.rc(d);if(d=P(b,"music-font"))c.cl=a.oa(d);if(d=P(b,"word-font"))c.Rl=a.oa(d);Q(b,"lyric-font",function(a,b){c.vc=c.vc||[];var d={};d.k=K(b,"number",f);d.name=J(b,"name",f);this.oa(b,d);c.vc.push(d)},a)} function qd(a,b,c){c=c||{};Q(b,"credit-image,credit-words",function(a,b){var g={},h=rd(b);h&&Q(h,f,function(a,b){if(b.is("credit-type")){g.pd=g.pd||"";var c=L(b,f,"page number;title;subtitle;composer;arranger;lyricist;rights".split(";"),"");c&&(g.pd+=c,g.pd+="|")}else b.is("link")||b.is("bookmark")},this);if(b.is("credit-words"))g.Sk=i,Jc(this,b,g);else if(b.is("credit-image")){g.Jm=i;return}c.Ff=c.Ff||[];c.Ff.push(g)},a);c.page=K(b,"page",1)} s.ph=function(a,b){b=b||{};b.Ic=L(a,"bar-style","regular dotted dashed heavy light-light light-heavy heavy-light heavy-heavy tick short none".split(" "),"regular");Bc(a,b);return b};function sd(a){var b;b=b||{};b.direction=O(L(a,"direction",["backward","forward"],f));b.Ml=K(a,"times",0);b.Un=L(a,"winged",["none","straight","curved","double-straight","double-curved"],"none");return b} function td(a,b){var c;c=c||{};c.kl=O(J(b,"number",f));c.text=J(b,f,"");c.type=O(L(b,"type",["start","stop","discontinue"],f));c.eb=Kc(b);M(a,b,c);c.mj=K(b,"end-length",10);c.En=K(b,"text-x",5);c.Fn=K(b,"text-y",5);return c} function ud(a,b){var c=I(),b=b||{};b.location=L(a,"location",["right","left","middle"],"right");c.ph(a,b);var d=P(a,"repeat");d&&(b.repeat=sd(d));(d=P(a,"ending"))&&(b.ending=td(c,d));(d=P(a,"wavy-line"))&&(b["wavy-line"]=c.Dh(d));(d=P(a,"segno"))&&(b.segno=c.De(d));(d=P(a,"coda"))&&(b.coda=c.De(d));Q(a,"fermata",function(a,c){b.fermata=b.fermata||[];b.fermata.push(this.rh(c))},c)}function vd(a){return Mc(K(a,"number",1))}s.R=function(a,b,c){b=b||{};b.Ta=L(a,"placement",["above","below"],c);return b}; s.Ae=function(a,b){b=b||{};b.orientation=L(a,"orientation",["over","under"],f);return b};s.Ak=function(a,b){b=b||{};b.type=O(Pc(a,f));b.k=vd(a);this.R(a,b);this.Ae(a,b);return b};s.ok=function(a,b){b=b||{};b.type=O(Pc(a,f));b.k=vd(a);this.R(a,b);this.Ae(a,b);return b};function wd(a,b){b=b||{};b.be=K(a,"tuplet-number",b.be);b.ce=ed(a,"tuplet-type",b.ce);var c=Zc(a,"tuplet-dot");b.$d=c?c:b.$d;return b} s.Fk=function(a,b,c){b=b||{};b.type=O(Oc(a,"type",f));b.k=vd(a);b.dc=N(a,"bracket",i);b.Al=L(a,"show-number",["actual","both","none"],"actual");b.Cl=L(a,"show-type",["actual","both","none"],"none");this.R(a,b);if(c=c?c.Ll:f)b.Zd={be:c.Mi,ce:c.ii,$d:c.hi};var d=P(a,"tuplet-actual");d&&(b.Zd=wd(d,b.Zd));c&&(b.ae={be:c.fl,ce:c.ii,$d:c.hi});if(a=P(a,"tuplet-normal"))b.ae=wd(a,b.ae);return b}; s.Ck=function(a,b){var c=b=b||{},d;d=L(a,"type",["start","stop","single"],"single");c.type=d;b.k=K(a,f,0);M(this,a,b);this.R(a,b);return b};s.Dk=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");xd(a,b);return b};s.Fe=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");xd(a,b);b.ed=N(a,"slash",l);return b};s.Pj=H.prototype.Fe;s.$j=H.prototype.Fe;s.Oj=H.prototype.Fe;s.Ch=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");xd(a,b);return b};s.mk=H.prototype.Ch; s.Dh=function(a,b){b=b||{};b.type=Pc(a,"start");b.k=vd(a);Ac(a,b);this.R(a,b,"above");Bc(a,b);xd(a,b);return b};s.yh=function(a,b){b=b||{};b.Jd=N(a,"long",l);b.Jd&&(b.kd=L(a,"approach",["above","below"],f),b.re=L(a,"departure",["above","below"],f));M(this,a,b);this.R(a,b,"above");xd(a,b);return b};s.Zj=H.prototype.yh;s.lk=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");return b}; function yd(a,b,c,d,e,g,h){c=c||{};Q(b,h,function(a,b){var h=f,q=b.v?b.v.prop("nodeName"):"",x=g[q];x&&(h=x.call(this,b,f,c),h[e]=q);h&&(c[d]=c[d]||[],c[d].push(h))},a);return c}function zd(a){var b=oc;b===f&&(oc=b={tremolo:a.Ck,"trill-mark":a.Dk,turn:a.Fe,"delayed-turn":a.Pj,"inverted-turn":a.$j,"delayed-inverted-turn":a.Oj,"vertical-turn":a.Ch,"wavy-line":a.Dh,shake:a.mk,mordent:a.yh,"inverted-mordent":a.Zj,schleifer:a.lk,"accidental-mark":a.oh,"other-ornament":k});return b} s.Sc=function(a,b){var b=b||{},c=zd(this),d=pc;d===f&&(pc=d=tb(c).join(","));return yd(this,a,b,"ornaments","ornament",c,d)};s.rh=function(a,b){b=b||{};b.text=L(a,f,["normal","angled","square"],"normal");b.type=L(a,"type",["upright","inverted"],"upright");M(this,a,b);return b};s.Gj=function(a,b){b=b||{};b.k=vd(a);b.direction=L(a,"direction",["up","down"],f);Ac(a,b);this.R(a,b);Bc(a,b);return b}; s.ck=function(a,b){var c=b=b||{},d;d=L(a,"type",["top","bottom"],f);c.type=d;b.k=vd(a);Ac(a,b);this.R(a,b);Bc(a,b);return b};s.oh=function(a,b){b=b||{};b.Na=L(a,f,kd,f);M(this,a,b);this.R(a,b);return b};function Ad(a){var b=qc;b===f&&(qc=b={accent:a.ib,"strong-accent":a.vk,staccato:a.sk,tenuto:a.yk,"detached-legato":a.Qj,staccatissimo:a.rk,spiccato:a.qk,scoop:a.Ce,plop:a.hk,doit:a.Rj,falloff:a.Uj,"breath-mark":a.Jj,caesura:a.Kj,stress:a.uk,unstress:a.Gk,"other-articulation":a.fk});return b} s.Uf=function(a,b){var b=b||{},c=Ad(this),d=rc;d===f&&(rc=d=tb(c).join(","));return yd(this,a,b,"articulations","articulation",c,d)};s.ib=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");return b};s.vk=function(a,b){b=b||{};b.type=L(a,"type",["up","down"],"up");this.ib(a,b);return b};s.sk=H.prototype.ib;s.yk=H.prototype.ib;s.Qj=H.prototype.ib;s.rk=H.prototype.ib;s.qk=H.prototype.ib; s.Ce=function(a,b){var c=b=b||{},d;d=L(a,"line-shape",["straight","curved"],"curved");c.Qm=d;b.xb=Gc(a,"line-shape","solid");"dashed"===b.xb&&Hc(a,b);M(this,a,b);this.R(a,b);return b};s.hk=H.prototype.Ce;s.Rj=H.prototype.Ce;s.Uj=H.prototype.Ce;s.Jj=function(a,b){b=b||{};b.text=J(a,f,f);M(this,a,b);this.R(a,b,"above");return b};s.Kj=H.prototype.ib;s.uk=H.prototype.ib;s.Gk=H.prototype.ib;s.fk=H.prototype.ib; function Bd(a){var b=sc;b===f&&(sc=b={tied:a.Ak,slur:a.ok,tuplet:a.Fk,ornaments:a.Sc,fermata:a.rh,"accidental-mark":a.oh,articulations:a.Uf,technical:a.xk,dynamics:a.qh,arpeggiate:a.Gj,"non-arpeggiate":a.ck,glissando:a.Vj,slide:a.nk,"other-notation":k});return b}s.yd=function(a,b){var b=b||{},c=Bd(this),d=tc;d===f&&(tc=d=tb(c).join(","));return yd(this,a,b,"notations","notation",c,d)}; function bd(a,b){var c;c=c||{};c.k=vd(b);c.name=J(b,"name","");zc(b,c);Ac(b,c);a.R(b,c);Bc(b,c);c.eb=Kc(b);c.pm=dd(b,"end-line");c.qm=dd(b,"end-paragraph");Cd(a,b,c);if(dd(b,"laughing"))c.Lm=i;else if(dd(b,"humming"))c.Em=i;else{var d=0;Q(b,"elision, text",function(a,b){d+=1;c.text=c.text||"";c.text=b.is("elision")?c.text+L(b,f,[String.fromCharCode(160),String.fromCharCode(95),String.fromCharCode(8255)],String.fromCharCode(160)):c.text+J(b,f,"")},a);var e=P(b,"syllabic");e&&1===d&&(c.Jl=L(e,f,["single", "begin","end","middle"],"single"));if(e=P(b,"extend"))c.extend=Pc(e,i)}return c}function Cd(a,b,c){var c=c||{},d=P(b,"footnote");d&&(c.zm=Jc(a,d));if(a=P(b,"level"))c.Uh={},c.Uh.ln=N(a,"reference",l),Rc(a,c.Uh)}function cd(a,b,c){c=c||{};Cd(a,b,c);c.sf=K(b,"voice",1)}function Dd(a,b){a&&b&&(a.Ta=b.Ta,a.Zg=b.Zg,a.Ka=b.Ka,a.sf=b.sf)}s.kk=function(a,b,c){b=b||{};Dd(b,c);b.Ta=b.Ta||"above";b.te="square";Jc(this,a,b);return b}; s.Ik=function(a,b,c){b=b||{};Dd(b,c);b.Ta=b.Ta||"below";b.te="none";Jc(this,a,b);return b};s.De=function(a,b,c){b=b||{};Dd(b,c);b.Ta=b.Ta||"above";Fc(this,a,b);return b};s.Lj=H.prototype.De;var Ed="p pp ppp pppp ppppp pppppp f ff fff ffff fffff ffffff mp mf sf sfp sfpp fp rf rfz sfz sffz fz other-dynamics".split(" ");s=H.prototype; s.qh=function(a,b,c){b=b||{};Dd(b,c);Fc(this,a,b);this.R(a,b);Ic(a,b);uc=uc||Ed.join(",");Q(a,uc,function(a,c){b.qf=b.qf||[];c.is("other-dynamics")?b.qf.push(J(c,f,"")):Ed.some(function(a){return c.is(a)?(b.qf.push(a),i):l})});return b};s.gk=function(a,b,c){b=b||{};Dd(b,c);b.type=O(L(a,"type",["start","stop","continue","change"],f));b.Vb=N(a,"line",l);b.T=N(a,"sign",i);Fc(this,a,b);return b}; s.Hk=function(a,b,c){b=b||{};Dd(b,c);b.type=O(L(a,"type",["crescendo","diminuendo","stop","continue"],f));b.k=vd(a);b.lf=K(a,"spread",10);b.lf||(b.lf=10);b.Xm=N(a,"niente",l);b.xb=Gc(a,"line-type","solid");"dashed"===b.xb&&Hc(a,b);Ac(a,b);Bc(a,b);return b};s.Nj=function(a,b,c){b=b||{};Dd(b,c);b.type=O(Pc(a,f));b.k=vd(a);Hc(a,b);Ac(a,b);Bc(a,b);return b}; s.Ij=function(a,b,c){b=b||{};Dd(b,c);b.type=O(Pc(a,f));b.k=vd(a);b.Pm=O(L(a,"line-end",["up","down","both","arrow","none"],f));b.mj=K(a,"end-length",5);b.xb=Gc(a,"line-type","solid");"dashed"===b.xb&&Hc(a,b);Ac(a,b);Bc(a,b);return b};s.dk=function(a,b,c){b=b||{};Dd(b,c);b.type=O(L(a,"type",["up","down","stop","continue"],f));b.k=vd(a);b.size=K(a,"size",8);Hc(a,b);M(this,a,b);return b}; s.bk=function(a,b,c){b=b||{};Dd(b,c);Q(a,"beat-unit",function(a,c){b["beat_unit"+a]=ed(c,f,"quarter");var g=Fd(c,":not(beat-unit-dot)");g&&(b["beat_unit"+a+"_dots"]=Zc(g,f))},this);if(c=P(a,"per-minute"))b.ni=J(c,f,"");b.bd=N(a,"parentheses",l);Fc(this,a,b);zc(a,b);return b};s.Yj=function(a,b,c){b=b||{};Dd(b,c);Fc(this,a,b);b.mi={D:0,C:0,B:0,E:0,F:0,G:0,A:0};Q(a,"pedal-tuning",function(a,c){var g=O(L(c,"pedal-step","DCBEFGA".split(""),f)),h=K(c,"pedal-alter",0);b.mi[g]=h},this);return b}; s.Fj=function(a,b){b=b||{};b.Ki=dd(a,"accordion-high");b.Li=dd(a,"accordion-low");b.Mg=Mc(K(a,"accordion-middle",0));Fc(this,a,b);return b};function Gd(a,b){b=b||{};b.Zg=N(a,"directive",i)} s.s=function(a,b){var b=b||{},c=P(a,"offset");c&&(b.offset=Hd(c));cd(this,a,b);this.O(a,b);this.R(a,b);Gd(a,b);Q(a,"direction-type",function(a,c){var g=b,g=g||{},h;h=vc;if(h===f)vc=h={rehearsal:this.kk,segno:this.De,coda:this.Lj,words:this.Ik,dynamics:this.qh,pedal:this.gk,wedge:this.Hk,dashes:this.Nj,bracket:this.Ij,"octave-shift":this.dk,"harp-pedals":this.Yj,"accordion-registration":this.Fj,metronome:this.bk,damp:k,"damp-all":k,percussion:k,eyeglasses:k,"string-mute":k,scordatura:k,image:k,"principal-voice":k, "other-direction":k};var j=wc;if(j===f)wc=j=tb(h).join(",");yd(this,c,g,"directions","direction",h,j)},this);return b};function Hd(a){var b;b=b||{};b.duration=K(a,f,0);b.un=N(a,"sound",l);return b}function xd(a,b){b=b||{};b.yn=L(a,"start-note",["upper","main","below"],"upper");b.Kn=L(a,"trill-step",["whole","half","unison"],"whole");b.Ln=L(a,"two-note-turn",["whole","half","none"],"none");b.Sl=N(a,"accelerate",l);b.Jc=K(a,"beats",4);b.rn=K(a,"second-beat",25);b.Km=K(a,"last-beat",75)} function Id(a){var b=xc;b===f&&(xc=b={"up-bow":a.Sb,"down-bow":a.Tj,harmonic:a.Xj,"open-string":a.ek,"thumb-position":a.zk,pluck:a.ik,"double-tongue":a.Sj,"triple-tongue":a.Ek,stopped:a.tk,"snap-pizzicato":a.pk,fingering:a.Xf,fret:a.sh,string:a.Rb,tap:a.wk,heel:a.th,toe:a.Bk,"hammer-on":a.Wj,"pull-off":a.jk,bend:a.Hj,fingernails:a.Xf,hole:k,arrow:k,handbell:k,"other-technical":k});return b} s.xk=function(a,b){var b=b||{},c=Id(this),d=yc;d===f&&(yc=d=tb(c).join(","));return yd(this,a,b,"technical","technical",c,d)};s.Sb=function(a,b){b=b||{};M(this,a,b);this.R(a,b,"above");return b};s.Tj=H.prototype.Sb;s.Xj=function(a,b){b=b||{};P(a,"natural")?b.Wm=i:P(a,"artificial")&&(b.Wl=i);var c=P(a,"base-pitch");if(c)b.Yl=this.ha(c);else if(c=P(a,"touching-pitch"))b.In=this.ha(c);else if(c=P(a,"sounding-pitch"))b.vn=this.ha(c);b.eb=Kc(a);M(this,a,b);this.R(a,b,"above");return b};s.ek=H.prototype.Sb; s.zk=H.prototype.Sb;s.ik=function(a,b){b=b||{};b.text=J(a,f,"");M(this,a,b);this.R(a,b,"above");return b};s.Sj=H.prototype.Sb;s.Ek=H.prototype.Sb;s.tk=H.prototype.Sb;s.pk=H.prototype.Sb;s.Xf=function(a,b){b=b||{};b.text=J(a,f,"");b.Il=N(a,"substitution",l);b.Vl=N(a,"alternate",l);M(this,a,b);this.R(a,b,"above");return b};s.sh=function(a,b){b=b||{};b.text=J(a,f,"");this.oa(a,b);Bc(a,b);return b};s.Rb=function(a,b){b=b||{};b.text=J(a,f,"");M(this,a,b);this.R(a,b,"above");return b}; s.wk=function(a,b){b=b||{};b.text=J(a,f,"T");M(this,a,b);this.R(a,b,"above");return b};s.th=function(a,b){b=b||{};b.Il=N(a,"substitution",l);M(this,a,b);this.R(a,b,"above");return b};s.Bk=H.prototype.th;function Jd(a,b,c){c.type=O(Oc(b,"type",f));c.k=vd(b);M(a,b,c);a.R(b,c,"above")}s.Wj=function(a,b){b=b||{};b.text=J(a,f,"H");Jd(this,a,b);return b};s.jk=function(a,b){b=b||{};b.text=J(a,f,"P");Jd(this,a,b);return b}; s.Hj=function(a,b){b=b||{};b.wf=K(a,"bend-alter",1);P(a,"pre-bend")?b.ul=i:P(a,"release")&&(b.Ag=i);return b};s.Vj=function(a,b){b=b||{};b.type=O(Oc(a,"type"));b.text=J(a,f,"");b.k=vd(a);b.xb=Gc(a,"line-type","wavy");"dashed"===b.xb&&Hc(a,b);M(this,a,b);return b};s.nk=function(a,b){b=b||{};b.type=O(Oc(a,"type"));b.text=J(a,f,"");b.k=vd(a);b.xb=Gc(a,"line-type","solid");"dashed"===b.xb&&Hc(a,b);M(this,a,b);return b}; function Kd(a,b){var c;c=c||{};c.value=Sc(b,f);c.text=J(b,"text","");M(a,b,c);return c}function Ld(a,b){var c;c=c||{};c.value=K(b,f,0);c.eb=Kc(b);M(a,b,c);c.location=L(b,"location",["left","right"],"right");return c}function Md(a,b){var c;c=c||{};var d=P(b,"root-step");d&&(c.step=Kd(a,d));if(d=P(b,"root-alter"))c.L=Ld(a,d);return c}function Nd(a,b){var c;c=c||{};c.text=J(b,f,"");M(a,b,c);return c}var Od=Od||"major minor augmented diminished dominant major-seventh minor-seventh diminished-seventh augmented-seventh half-diminished major-minor major-sixth minor-sixth dominant-ninth major-ninth minor-ninth dominant-11th major-11th minor-11th dominant-13th major-13th minor-13th suspended-second suspended-fourth Neapolitan Italian French German pedal power Tristan other none".split(" "); function Pd(a,b){var c;c=c||{};c.Me=L(b,f,Od,"none");c.Gi=N(b,"use-symbols",i);c.text=J(b,"text","");c.wn=N(b,"stack-degrees",l);c.dn=N(b,"parentheses-degrees",l);c.cm=N(b,"bracket-degrees",l);M(a,b,c);Cc(b,c);Dc(b,c);return c}function Qd(a,b){var c;c=c||{};c.Ok=K(b,f,0);M(a,b,c);return c}function Rd(a,b){var c;c=c||{};var d=P(b,"bass-step");d&&(c.step=Kd(a,d));if(d=P(b,"bass-alter"))c.L=Ld(a,d);return c}var Sd=Sd||["major","minor","augmented","diminished","half-diminished"]; function Td(a,b){var c;c=c||{};c.eb=Kc(b);var d=P(b,"degree-value");if(d){var e;e=e||{};e.value=O(K(d,f,f));e.Yb=L(d,"symbol",Sd,f);e.text=J(d,"text","");M(a,d,e);c.value=e}if(d=P(b,"degree-alter")){var g;g=g||{};g.value=K(d,f,0);g.tl=N(d,"plus-minus");M(a,d,g);c.L=g}if(g=P(b,"degree-type")){var h;h=h||{};h.value=O(L(g,f,["add","alter","subtract"],f));h.text=J(g,"text","");M(a,g,h);c.type=h}return c} function Ud(a,b){var c;c=c||{};b.is("root")?c.root=Md(a,b):c.Bm=Nd(a,b);var d=Fd(b,"root, function"),e=P(d,"kind",i);e&&(c.Me=Pd(a,e));if(e=P(d,"inversion",i))c.Ok=Qd(a,e);if(e=P(d,"bass",i))c.Zl=Rd(a,e);(d=P(d,"degree",i))&&Q(d,f,function(a,b){c.Gf=c.Gf||[];c.Gf.push(Td(this,b))},a);return c} function Vd(a,b){var c;c=c||{};var d=P(b,"string");d&&(c.Hl=a.Rb(d));if(d=P(b,"fret"))c.Ej=a.sh(d);if(d=P(b,"fingering"))c.jh=a.Xf(d);if(d=P(b,"barre")){var e;e=e||{};e.type=O(Oc(d,"type",f));Bc(d,e);c.Pi=e}return c} function Wd(a,b){var c;c=c||{};Ac(b,c);Bc(b,c);Cc(b,c);Ec(b,c);c.height=b.la("height",f);c.width=b.la("width",f);c.Pn=J(b,"unplayed","x");c.of=O(b.la("frame-strings",f));c.Rf=O(b.la("frame-frets",f));c.ye=1;var d=P(b,"first-fret");d&&(c.ye=K(d,f,1),c.vm=J(d,"text",""),c.um=L(d,"location",["left","right"],"right"));Q(b,"frame-note",function(a,b){c.Qf=c.Qf||[];c.Qf.push(Vd(this,b))},a);return c} function Xd(a,b){var c=I(),b=b||{};b.type=L(a,"type",["explicit","implied","alternate"],"explicit");b.eb=Kc(a);b.hn=N(a,"print-frame",i);M(c,a,b);c.R(a,b,"above");Q(a,"root, function",function(a,c){b.oe=b.oe||[];b.oe.push(Ud(this,c))},c);var d=P(a,"frame");d&&(b.frame=Wd(c,d));if(d=P(a,"offset"))b.offset=Hd(d);Cd(c,a,b);c.O(a,b)}function Yd(a){var b;b=b||{};b.kh=O(J(a,"full-path",f));b.ei=J(a,"media-type","application/vnd.recordare.musicxml+xml");return b} function Zd(a,b){var c;c=c||{};var d=P(b,"rootfiles");d&&Q(d,"rootfile",function(a,b){c.Bg=c.Bg||[];c.Bg.push(Yd(b))},a);return c}function $d(a){a&&$d.prototype.isPrototypeOf(a)?this.v=a.v:a&&"string"===typeof a?this.v=$($.parseXML(a)).children():a&&($.isXMLDoc(a)||Document.prototype.isPrototypeOf(a))?(this.v=$(a),(a=this.v.children("parsererror"))&&0Gf(c)?V(g,1):V(g,g.fa),g=Math.abs(c.u()-g),g=Math.floor(g/10),h=1;h<=g;++h){var j=0>Gf(c)?Hf(d,2*-h):Hf(d,2*(d.fa+h-1));a.beginPath();B.J(a,b,j,e,j);a.stroke()}a.restore()}c= this.n;if(If(c)){d=c.ja();e=this.aa();b=Ib(e,"width");e=e.P();g=c.H();h=0.5*c.q().tb();a.X(h);var j=Jf(g,h,b),m=Kf(d,g,h,e),p=Lf(c,d,g,h,e);a.beginPath();B.J(a,j,m,j,p);a.stroke();if("long"===d||"breve"===d)d="breve",g=1===g?-1:1,j=Jf(g,h,b),m=Kf(d,g,h,e),p=Lf(c,d,g,h,e),a.beginPath(),B.J(a,j,m,j,p),a.stroke()}c=this.n;e=Mf(c);if(e!==k&&"single"===e.type&&0=q?0:j-q;a.Uc(b)&&(j+=a.Vf(b));e.Ke&&!d&&(j+="upper"===h?10:-5);return j}Qf.prototype.Uc=n();Qf.prototype.Vf=n();function Sf(a){Sf.a.constructor.call(this,a||"Slur")}u(Sf,S);v(Sf,Qf);s=Sf.prototype; s.clone=function(a){a=a||new Sf;return Sf.a.clone.call(this,a)}; s.p=function(a){Sf.a.p.call(this,a);var b=this.n,c;c=this.n;if(c.Vc)c=35;else{c=c.r()[0];var d=c.t(),e=d.aa(),d=d.W+E(e,"parent","x"),g=this.Uc(c),h=c.H();c=d=g&&-1===h?d+e.i("width"):g&&1===h&&(this.Ie(c)||!Tf(this))?d+0:d+0.5*e.i("width")}e=this.n.r();e=Rf(this,e[0],e[e.length-1],i);h=this.n;if(h.Ke)d=this.i("width");else var g=h.r(),d=g[g.length-1],j=g[0].t(),m=d.t(),g=m.aa(),h=E(m,"parent","x")-(h.Vc?0:E(j,"parent","x"))+j.W+E(g,"parent","x"),j=this.Uc(d),m=d.H(),d=h=j&&1===m?h+0:j&&-1===m&&(this.Ie(d)|| !Tf(this))?h+g.i("width"):h+0.5*g.i("width");g=this.n.r();g=Rf(this,g[g.length-1],g[0],l);a.save();a.qa("#000000");a.beginPath();yb(a,c,e,d,g,"upper"===b.s(),25);a.closePath();a.fill();a.restore();if(b=this.Ma(a))e=g+35,j=Ib(b,"width"),h=Ib(b,"height"),c+=0.5*(d-c-j),e=g+0.5*(e-g-h),a.save(),a.translate(c,e),b.p(a),a.restore()};s.Vf=function(a){var b=this.n,c=0;!this.Ie(a)&&Tf(this)&&(c=a.Za(),c-=Math.abs(b.ia(a).u()-b.V(a).u()),c=c*("upper"===b.s()?-1:1)*(Uf(b)&&!Vf(a)?0.8:0.5));return c}; s.Uc=function(a){var b=this.n;return"upper"===b.s()&&If(a)&&-1===a.H()||"lower"===b.s()&&If(a)&&1===a.H()?i:l};s.Ie=function(a){a=this.n.V(a);return Nf(a)||a.ka("beam")?i:l};function Tf(a){var b=a.n,c=b.r(),a=b.V(c[0]),b=b.V(c[c.length-1]);return 6*Le(a.q())>=Math.abs(b.u()-a.u())}s.Ma=function(a){var b=f,c=this.n.Ga();c&&(b=new T("center"),Ie(b,c,"italic bold 12px sans-serif",a),b.wa({width:b.i("width"),height:b.i("height")}));return b};function Wf(a,b){Wf.a.constructor.call(this,a,b)} ja("ScoreLibrary.Score.Slur",Wf);u(Wf,uf);s=Wf.prototype;s.toString=r("Score.Slur");s.l=r("slur");s.clone=function(a){a=a||new Wf(this.k,this.j);return Wf.a.clone.call(this,a)};s.ta=function(a){return/(start|stop)/.test(a)};s.na=function(a){return"start"===a};s.va=function(a){return"stop"===a};s.Ie=o("Im");s.Ga=r("");s.s=function(){var a=1,b=this.r();if(b){var c=b[0],b=b[b.length-1];Vf(c)?a=-1===c.H()?1:-1:c.ca||b.ca?a=-1:c.H()===b.H()&&(a=c.H())}return-1===a?"lower":"upper"};s.Je=r(l); s.V=function(a){if(Y.prototype.isPrototypeOf(a)){var b="lower"===this.s()?0:a.I.length-1;return a.I[b]}return a};s.ia=function(a){if(Y.prototype.isPrototypeOf(a)){var b="lower"===this.s()?a.I.length-1:0;return a.I[b]}return a};s.m=function(){var a=new Sf;C(a,"height",Uf(this)?0:17.5);this.Q(a);return a};s.Gb=function(){return Uf(this)?0:5};function Uf(a){return(a=a.r())&&(a[0].ca||a[a.length-1].ca)}function Xf(){Xf.a.constructor.call(this,"Curve")}u(Xf,S); Xf.prototype.clone=function(a){a=a||new Xf;return Xf.a.clone.call(this,a)};Xf.prototype.p=function(a){Xf.a.p.call(this,a);var b=this.n,c=0+this.i("width"),d=0+this.i("height"),e=0+(b.ej||5),b=d-(b.ej||5);a.save();this.transform(a);a.qa("#000000");a.X(1);a.beginPath();0===d?B.J(a,0,0,c,0):0===c?B.J(a,0,0,0,d):(a.moveTo(0,0),a.quadraticCurveTo(e,b,c,d));a.stroke();a.restore()};function Yf(a,b){Yf.a.constructor.call(this,a,b)}u(Yf,X);Yf.prototype.toString=r("Score.Accent");Yf.prototype.l=r("accent"); Yf.prototype.N=function(){return["scripts.sforzato"]};Yf.prototype.clone=function(a){a=a||new Yf(this.k,this.j);return Yf.a.clone.call(this,a)};function Zf(a,b){Zf.a.constructor.call(this,a,b)}u(Zf,X);Zf.prototype.toString=r("Score.StrongAccent");Zf.prototype.l=r("strong-accent");Zf.prototype.N=function(){return["upper"===this.s()?"scripts.umarcato":"scripts.dmarcato"]};Zf.prototype.clone=function(a){a=a||new Zf(this.k,this.j);return Zf.a.clone.call(this,a)}; function $f(a,b){$f.a.constructor.call(this,a,b)}u($f,X);$f.prototype.toString=r("Score.Staccato");$f.prototype.l=r("staccato");$f.prototype.N=function(){return["scripts.staccato"]};$f.prototype.clone=function(a){a=a||new $f(this.k,this.j);return $f.a.clone.call(this,a)};function ag(a,b){ag.a.constructor.call(this,a,b)}u(ag,X);ag.prototype.toString=r("Score.Tenuto");ag.prototype.l=r("tenuto");ag.prototype.N=function(){return["scripts.tenuto"]}; ag.prototype.clone=function(a){a=a||new ag(this.k,this.j);return ag.a.clone.call(this,a)};function bg(a,b){bg.a.constructor.call(this,a,b)}u(bg,X);bg.prototype.toString=r("Score.DetachedLegato");bg.prototype.l=r("detached-legato");bg.prototype.N=function(){return["upper"===this.s()?"scripts.dportato":"scripts.uportato"]};bg.prototype.clone=function(a){a=a||new bg(this.k,this.j);return bg.a.clone.call(this,a)};function cg(a,b){cg.a.constructor.call(this,a,b)}u(cg,X);cg.prototype.toString=r("Score.Staccatissimo"); cg.prototype.l=r("staccatissimo");cg.prototype.N=function(){return["upper"===this.s()?"scripts.ustaccatissimo":"scripts.dstaccatissimo"]};cg.prototype.clone=function(a){a=a||new cg(this.k,this.j);return cg.a.clone.call(this,a)};function dg(a,b){dg.a.constructor.call(this,a,b)}u(dg,X);s=dg.prototype;s.toString=r("Score.BreathMark");s.l=r("breath-mark");s.N=function(){return["comma"]};s.clone=function(a){a=a||new dg(this.k,this.j);return dg.a.clone.call(this,a)};s.s=r("upper"); function eg(a,b){eg.a.constructor.call(this,a,b)}u(eg,X);s=eg.prototype;s.toString=r("Score.Caesura");s.l=r("caesura");s.N=function(){return["scripts.caesura.curved"]};s.clone=function(a){a=a||new eg(this.k,this.j);return eg.a.clone.call(this,a)};s.s=r("upper");function fg(a,b){fg.a.constructor.call(this,a,b)}u(fg,Bf);s=fg.prototype;s.toString=r("Score.Scoop");s.l=r("scoop");function gg(a){return a.Xg!==f?a.Xg:18}function hg(a){return a.Wg!==f?a.Wg:18}s.Gb=function(){return-hg(this)}; s.clone=function(a){a=a||new fg(this.k,this.j);return fg.a.clone.call(this,a)};s.Je=r(l);s.m=function(){var a=new Xf;C(a,"width",gg(this));C(a,"height",hg(this));this.Q(a);return a};s.Gb=function(){return-hg(this)};function ig(a,b){ig.a.constructor.call(this,a,b)}u(ig,fg);s=ig.prototype;s.toString=r("Score.Plop");s.l=r("plop");s.clone=function(a){a=a||new ig(this.k,this.j);return ig.a.clone.call(this,a)};s.m=function(){var a=ig.a.m.call(this);(new Ub(new Vb(a,l),0,hg(this))).transform();return a}; s.Gb=r(0);function jg(a,b){jg.a.constructor.call(this,a,b)}u(jg,fg);s=jg.prototype;s.toString=r("Score.Doit");s.l=r("doit");s.clone=function(a){a=a||new jg(this.k,this.j);return jg.a.clone.call(this,a)};s.m=function(){var a=jg.a.m.call(this);(new Ub(new Vb(new Vb(a,l),i),gg(this),hg(this))).transform();return a};s.Gb=r(0);function kg(a,b){kg.a.constructor.call(this,a,b)}u(kg,fg);kg.prototype.toString=r("Score.Falloff");kg.prototype.l=r("falloff"); kg.prototype.clone=function(a){a=a||new kg(this.k,this.j);return kg.a.clone.call(this,a)};kg.prototype.m=function(){var a=kg.a.m.call(this);(new Ub(new Vb(a,i),gg(this),0)).transform();return a};function lg(a){lg.a.constructor.call(this,"TextAnchor");this.$b=a}u(lg,S);lg.prototype.clone=function(a){a=a||new lg(this.$b);return lg.a.clone.call(this,a)};function mg(a,b){var c=b.i("width"),d=b.i("height");return/(square|circle|oval)/.test(a.$b.Wf())?Math.max(c,d):d} lg.prototype.p=function(a){lg.a.p.call(this,a);var b=this.Ma(a);if(b){a.save();var c=b.i("height"),c=0.5*(mg(this,b)-c);a.translate(0,c);b.p(a);var d=this.$b.Wf();if(d&&"none"!==d){a.save();a.X(1);a.qa("#000000");a.beginPath();b=this.Da.i("width");c=this.Da.i("height");switch(d){case "oval":case "circle":d=B;d=Math.max(b,c);a.arc(0.5*b,0.5*c,0.5*d,0,2*Math.PI);break;case "rectangle":a.rect(0,0,b,c);break;default:case "square":d=Math.max(b,c);a.rect(0,0-0.5*(d-c),d,d);break;case "bracket":d=B,zb(d, a,0,0,b,c,8)}a.stroke();a.restore()}a.restore()}};lg.prototype.Ma=function(a){if(this.Da===f){var b=this.$b.Ga(a);b&&(this.Da=new T("left"),kc(a).Ea=14,Ie(this.Da,b,this.$b.oa(),a,this.$b.qc()),a=this.Da.i("width"),b=this.Da.i("height"),this.Da.wa({width:a,height:b}),b=mg(this,this.Da),C(this,"width",a),C(this,"height",b))}return this.Da};function ng(a){ng.a.constructor.call(this,"TextAnchor");this.$b=a}u(ng,lg);ng.prototype.clone=function(a){a=a||new ng(this.$b);return ng.a.clone.call(this,a)}; ng.prototype.p=function(a){ng.a.p.call(this,a);var b=this.n,c=b.r(),d=f;if(c&&(d=c[0].ka("tied"))&&"stop"===d[0].type)a.save(),a.Td(b.oa()),b="(",c=0-a.measureText(b),d=0+this.i("height")-1,a.fillText(b,c,d),b=")",c=0+this.i("width"),a.fillText(b,c,d),a.restore()};function og(a,b){og.a.constructor.call(this,a,b)}u(og,Bf);s=og.prototype;s.toString=r("Score.TextAnchor");s.clone=function(a){a=a||new og(this.k,this.j);return og.a.clone.call(this,a)};s.Wf=function(){return this.j.te};s.Ga=function(){return this.j.text}; s.oa=r("italic 16px sans-serif");s.qc=n();s.m=function(a){var b=new lg(this);b.Ma(a);this.Q(b);return b};function pg(a,b){pg.a.constructor.call(this,a,b)}u(pg,X);pg.prototype.toString=r("Score.UpBow");pg.prototype.l=r("up-bow");pg.prototype.N=function(){return["scripts.upbow"]};pg.prototype.clone=function(a){a=a||new pg(this.k,this.j);return pg.a.clone.call(this,a)};function qg(a,b){qg.a.constructor.call(this,a,b)}u(qg,X);qg.prototype.toString=r("Score.DownBow");qg.prototype.l=r("down-bow"); qg.prototype.N=function(){return["scripts.downbow"]};qg.prototype.clone=function(a){a=a||new qg(this.k,this.j);return qg.a.clone.call(this,a)};function rg(a,b){rg.a.constructor.call(this,a,b)}u(rg,X);rg.prototype.toString=r("Score.Harmonic");rg.prototype.l=r("harmonic");rg.prototype.N=function(){return["scripts.flageolet"]};rg.prototype.clone=function(a){a=a||new rg(this.k,this.j);return rg.a.clone.call(this,a)};function sg(a,b){sg.a.constructor.call(this,a,b)}u(sg,X);sg.prototype.toString=r("Score.OpenString"); sg.prototype.l=r("open-string");sg.prototype.N=function(){return["scripts.open"]};sg.prototype.clone=function(a){a=a||new sg(this.k,this.j);return sg.a.clone.call(this,a)};function tg(a,b){tg.a.constructor.call(this,a,b)}u(tg,X);tg.prototype.toString=r("Score.ThumbPosition");tg.prototype.l=r("thumb-position");tg.prototype.N=function(){return["scripts.thumb"]};tg.prototype.clone=function(a){a=a||new tg(this.k,this.j);return tg.a.clone.call(this,a)}; function ug(a,b){ug.a.constructor.call(this,a,b)}u(ug,og);ug.prototype.toString=r("Score.Pluck");ug.prototype.l=r("pluck");ug.prototype.clone=function(a){a=a||new ug(this.k,this.j);return ug.a.clone.call(this,a)};ug.prototype.oa=r("italic 12px sans-serif");function vg(a,b){vg.a.constructor.call(this,a,b)}u(vg,og);vg.prototype.toString=r("Score.Fingering");vg.prototype.l=r("fingering");vg.prototype.clone=function(a){a=a||new vg(this.k,this.j);return vg.a.clone.call(this,a)};vg.prototype.oa=ug.prototype.oa; function wg(a,b){wg.a.constructor.call(this,a,b)}u(wg,og);s=wg.prototype;s.toString=r("Score.Fret");s.l=r("fret");s.s=r("upper");s.clone=function(a){a=a||new wg(this.k,this.j);return wg.a.clone.call(this,a)};s.oa=r("bold 12px sans-serif");s.Ad=function(){return this.j.wl};s.m=function(a){var b=new ng(this);b.Ma(a);this.Q(b);return b};function xg(a,b){xg.a.constructor.call(this,a,b)}u(xg,og);xg.prototype.toString=r("Score.String");xg.prototype.l=r("string"); xg.prototype.clone=function(a){a=a||new xg(this.k,this.j);return xg.a.clone.call(this,a)};xg.prototype.oa=ug.prototype.oa;function yg(a,b){yg.a.constructor.call(this,a,b)}u(yg,X);yg.prototype.toString=r("Score.DoubleTongue");yg.prototype.l=r("double-tongue");yg.prototype.N=function(){return["dots.dot","dots.dot"]};yg.prototype.clone=function(a){a=a||new yg(this.k,this.j);return yg.a.clone.call(this,a)};function zg(a,b){zg.a.constructor.call(this,a,b)}u(zg,X);zg.prototype.toString=r("Score.TripleTongue"); zg.prototype.l=r("triple-tongue");zg.prototype.N=function(){return["dots.dot","dots.dot","dots.dot"]};zg.prototype.clone=function(a){a=a||new zg(this.k,this.j);return zg.a.clone.call(this,a)};function Ag(a,b){Ag.a.constructor.call(this,a,b)}u(Ag,X);Ag.prototype.toString=r("Score.Stopped");Ag.prototype.l=r("stopped");Ag.prototype.N=function(){return["scripts.stopped"]};Ag.prototype.clone=function(a){a=a||new Ag(this.k,this.j);return Ag.a.clone.call(this,a)}; function Bg(a,b){Bg.a.constructor.call(this,a,b)}u(Bg,X);Bg.prototype.toString=r("Score.SnapPizzicato");Bg.prototype.l=r("snap-pizzicato");Bg.prototype.N=function(){return["scripts.snappizzicato"]};Bg.prototype.clone=function(a){a=a||new Bg(this.k,this.j);return Bg.a.clone.call(this,a)};function Cg(a,b){Cg.a.constructor.call(this,a,b)}u(Cg,og);Cg.prototype.toString=r("Score.Tap");Cg.prototype.s=r("upper");Cg.prototype.l=r("tap"); Cg.prototype.clone=function(a){a=a||new Cg(this.k,this.j);return Cg.a.clone.call(this,a)};function Dg(a,b){Dg.a.constructor.call(this,a,b)}u(Dg,X);s=Dg.prototype;s.toString=r("Score.Heel");s.l=r("heel");s.s=r("upper");s.N=function(){var a;a="scripts."+("upper"===this.s()?"u":"d");return[a+"pedalheel"]};s.clone=function(a){a=a||new Dg(this.k,this.j);return Dg.a.clone.call(this,a)};function Eg(a,b){Eg.a.constructor.call(this,a,b)}u(Eg,X);s=Eg.prototype;s.toString=r("Score.Toe");s.l=r("toe");s.s=r("upper"); s.N=function(){var a;a="scripts."+("upper"===this.s()?"u":"d");return[a+"pedaltoe"]};s.clone=function(a){a=a||new Eg(this.k,this.j);return Eg.a.clone.call(this,a)};function Fg(a,b){Fg.a.constructor.call(this,a,b)}u(Fg,Wf);s=Fg.prototype;s.toString=r("Score.HammerOn");s.l=r("hammer-on");s.clone=function(a){a=a||new Fg(this.k,this.j);return Fg.a.clone.call(this,a)};s.Ga=function(){return this.j.text};s.Ad=wg.prototype.Ad;function Gg(a,b){Gg.a.constructor.call(this,a,b)}u(Gg,Fg); Gg.prototype.toString=r("Score.PullOff");Gg.prototype.l=r("pull-off");Gg.prototype.clone=function(a){a=a||new Gg(this.k,this.j);return Gg.a.clone.call(this,a)};function Hg(a,b){Hg.a.constructor.call(this,a,b)}u(Hg,Bf);s=Hg.prototype;s.toString=r("Score.Bend");s.l=r("bend");s.clone=function(a){a=a||new Hg(this.k,this.j);return Hg.a.clone.call(this,a)};s.Gb=function(){return E(this.cf,"bendlist","y")}; s.m=function(a){var b=fc(kc(a)),c=f,d=this.j.Si;if(d&&0h&&(h=c.length);1<=h&&c.some(function(a,b){if(bthis.bc&&(this.bc=0);this.mg=this.mg!==f?Math.max(this.mg,this.bc):this.bc};Vg.prototype.accumulate=Vg.prototype.qb;function Wg(){}ja("ScoreLibrary.DurationKeyGenerator",Wg);v(Wg,Vg);Wg.prototype.mh=function(a){var b=this.vd();this.qb(a);return b};Wg.prototype.generate=Wg.prototype.mh;function w(){}ja("ScoreLibrary.DurationMapper",w); v(w,Wg);w.prototype.Ub=function(a){this.Ha=this.Ha||[];return Xa(this.Ha,function(a,c){return a-c.wb}||Ya,a)};w.prototype.keyDurationToIndex=w.prototype.Ub;w.prototype.Cg=function(a,b,c,d){var c=c||l,e=this.Ub(a);0<=e?d?d(this.Ha[e],b):sb(this.Ha[e],b):(c||(b=sb({},b)),b.wb=a,Va(this.Ha,-(e+1),0,b))};w.prototype.setInformation=w.prototype.Cg;w.prototype.Wh=function(a,b,c,d){a=this.mh(a);this.Cg(a,b,c,d);return a};w.prototype.mapInformation=w.prototype.Wh; w.prototype.mc=function(a){return this.Ha?a||l?this.Ha:this.Ha.map(function(a){a=sb({},a);delete a.wb;return a}):f};w.prototype.getAllInformations=w.prototype.mc;w.prototype.vh=function(a,b){var b=b||l,c=f;if(this.Ha){var d=this.Ub(a);0<=d&&(c=this.Ha[d],b||(c=sb({},c),delete c.wb))}return c};w.prototype.getInformation=w.prototype.vh;w.prototype.wh=function(){return this.Ha?this.Ha.map(function(a){return a.wb}):[]};w.prototype.getKeyDurations=w.prototype.wh; w.prototype.nh=function(){var a=this.wh();a.push(this.Pb());return a};w.prototype.getAbsDurations=w.prototype.nh;w.prototype.kg=function(a){var b=0;if(this.Ha){var c=this.Ub(a);c>=this.Ha.length-1?b=this.Pb()-a:0<=c&&(b=this.Ha[c+1].wb-a)}return b};w.prototype.keyDurationToDuration=w.prototype.kg; w.prototype.ie=function(a){if(1E3>a||0!==a%1E3)this.qb(-a);else{var b=this.nh();b.reverse();b.some(function(b,d,e){if(da&&this.qb(-a);return a};w.prototype.restore=w.prototype.restore; function Xg(){Xg.a.constructor.call(this)}u(Xg,Ae);wb(Xg);Xg.prototype.toString=r("Renderer.DurationContainer");Xg.prototype.clone=function(a){a=a||new Xg;return Xg.a.clone.call(this,a)};Xg.prototype.Yf=function(){return this.delegate?this.delegate:this};Xg.prototype.ff=ba("delegate");function Yg(){}u(Yg,oe);Yg.prototype.o=function(a,b,c,d,e,g,h){if(a.da===f&&a.duration===f){var j=a.n;j&&(a.duration=j.La())}return Yg.a.o.call(this,a,b,c,d,e,g,h)}; Yg.prototype.zg=function(a,b,c,d,e,g,h){function j(a,b){sb(a,b,Math.max)}Yg.a.zg.apply(this,arguments);var m={};m[this.U]=a.i(this.U);m.Qd=a.W;m.Pd=a.Ra;a.yb&&(m=Zg(a.yb,this,a,m),delete a.yb);m&&(a.da===f?a.da=this.Wh(a.duration,m,i,j):this.Cg(a.da,m,i,j))};Yg.prototype.Hg=function(a,b){if(!a.rl)if(0<=a.duration){var c=0;this.mc(i).forEach(function(a,b){c+=a[this.U];c+=a.Qd;c+=a.Pd;0regular5',c=new fh(a.w,c);a.Ef=2*(a.Vb-1)-(c.fa-b.fa)}else a.Ef=Math.ceil(1*(b.fa-1))}return a.Ef}function lh(a,b){var c=kh(a),d=a.ha();d&&(c+=ih(b)-ih(d));return Hf(a.q(),c)}function mh(a,b){var c=a.q();relative_steps=2*(c.fa-b+1-1);return Hf(c,relative_steps)}s.u=function(){return Hf(this.q(),kh(this))}; s.nc=function(){var a={width:f,height:f};switch(this.T){case "G":a.height=8*Le(this.q());break;case "C":a.height=4*Le(this.q());break;case "F":a.height=3*Le(this.q());break;case "percussion":a.height=2*Le(this.q());break;case "TAB":a.height=5*Le(this.q())}return a};s.ha=function(){this.pitch===f&&(this.pitch=/(G|C|F)/.test(this.T)?new hh({Ia:("F"===this.T?3:4)+this.nd,step:this.T,L:0}):k);return this.pitch}; s.m=function(a,b){var c=f;"none"!==this.T&&"jianpu"!==this.T&&(c=this.nc(),b||(c.height*=0.75),(c=G(a,this.getName(),c.width,c.height))&&this.Q(c));return c};function nh(a,b){nh.a.constructor.call(this,a,b);I().getTime(this,this)}u(nh,de);nh.prototype.toString=r("Score.Time");nh.prototype.clone=function(){clone=new nh(this.w,this.v);return nh.a.clone.call(this,clone)}; function oh(a,b,c,d){for(var e=1a.we&&(c=c.b,d=th.b);for(var e=f,g=Math.abs(a.we),h=7<=g?7:g,j=0;j=a.O()?1=this.O()?1:Lh(a,this.O()-1)+1)?-1:1):a=Kh(this),this.Vg=a),this.jf=this.Vg}a=this.jf}return a};function Nf(a){beams=a.ka("beam");return!beams&&Eh(a.ja())&&!a.el}s.gf=function(a){this.el=a?i:l}; function If(a){if(a.gi||a.ig)return l;var b=i;switch(a.ja()){case "breve":b=i;break;case "long":b=i;break;case "maxima":case "whole":b=l;break;default:b=i}return b} s.Za=function(){if(this.fd!==f)return this.fd;var a=this.q(),b=35,a=Math.abs(this.u()-V(a,Oe(a)));Vf(this)&&this.H()!==Kh(this)?b-=Math.min(a,30)/3:this.ca||(b=Math.max(a,b));if(Nf(this)){switch(this.ja()){case "1024th":case "512th":case "256th":case "128th":b+=25;break;case "64th":b+=15;break;case "32nd":b+=10}b=Math.max(b,35)}this.ca&&(b*=0.65);return b};s.Fc=function(a,b,c){a=a.filter(function(a){return a[b]===c},this);return 0=Hf(b,2*(b.fa+1-1))?1:0}function Ff(a){return a.ig||!a.ha()?l:0!==Gf(a)?i:l}function Nh(a){return a.vf}s.wd=o("bf");function Oh(a){return a.w}function Kf(a,b,c,d){var e=0;if("long"===a||"breve"===a)e=1===b?d.d+2*c:d.c-2*c;return e} function Lf(a,b,c,d,e){var g=0;1===c?(g=-a.Za(),"breve"===b&&(g=e.c-2*d)):(g=a.Za(),"breve"===b&&(g=e.d+2*d));return g}function Jf(a,b,c){return 1===a?0.5*b:c-0.5*b}function Ph(){} function Zg(a,b,c,d){var e=c.n;if(W.prototype.isPrototypeOf(e)||jh.prototype.isPrototypeOf(e)||nh.prototype.isPrototypeOf(e)||sh.prototype.isPrototypeOf(e)){var a=c.Od||0,e=a+c.i(b.ab),g=a,h=e;if(c=c.n.q())g=Math.min(g,V(c,1)),h=Math.max(h,V(c,c.fa));d["notes_lower_bound_"+b.gd]=Qh(l,a);d["notes_upper_bound_"+b.gd]=Qh(i,e);d["staff_lower_bound_"+b.gd]=Qh(l,g);d["staff_upper_bound_"+b.gd]=Qh(i,h);return d}if(fh.prototype.isPrototypeOf(e))return b="staff_duration_p"+c.Dc,d[b]=c.duration,d;if(uf.prototype.isPrototypeOf(e)){e= c.n;g=g||e.R();h=h||e.s();d="upper"===h;c.Pg=Rh(g,h,b.gd);"notes"===g&&(c.Dg=Rh("staff",h,b.gd));a.Nb=a.Nb||0;g=E(c,b.ga,b.lb);if(g===f){var h=c.n,j=c.i(b.U),m=c.i(b.ab),p=b.mc(i),q=b.Ub(c.da),x=p.length-1;0<=c.Bc&&(j=0,x=b.Ub(c.Bc));var A=0.5*(q+x);if(xg:D",a=this.ub(),d=new W(a.w,d);d.rd=b;d.prev=a;d.ea=a.ea;d.Db=a.Db;d.time=a.time;d.key=a.key;return(new Vh(c)).m(d)};function Wh(a,b){Wh.a.constructor.call(this,a,b)}u(Wh,og);Wh.prototype.toString=r("Score.HarmonyChord");Wh.prototype.l=r("harmony-chord");Wh.prototype.qc=Uh.prototype.qc; Wh.prototype.Ga=function(a){a=fc(kc(a));this.fh=-1;var b="",c="",d=this.j.root;d&&(c+=d.step.text||d.step.value,d.L&&d.L.eb&&d.L.value&&(c=Xh(this,c,d.L,a)));b+=c;d="";if(c=this.j.Me){if(c.Gi){var d=d+Yh(c.Me),e=c.Me,g="";/dominant$|seventh$|^half|major-minor/.test(e)?g="7":/sixth$/.test(e)?g="6":/ninth$/.test(e)?g="9":/11th$/.test(e)?g="11":/13th$/.test(e)?g="13":"suspended-second"===e?g="sus2":"suspended-fourth"===e&&(g="sus4");d+=g}c.text&&(d+=c.text)}return a=b+d+Zh(this,a)}; function Xh(a,b,c,d){b="left"===c.location?"%"+ ++a.fh+b:b+"%"+ ++a.fh;c=(new qh(f,new fh(f,'regular5'),c.value,i)).m(d);c.wa({width:c.i("width"),height:c.i("height")});a.qc(i).push(c);return b}var $h={Uk:9651,Zk:45,Ni:43,ij:176,Lk:248}; function Yh(a){var b=f;/major/.test(a)&&(b=$h.Uk);/minor/.test(a)&&(b=$h.Zk);/augmented/.test(a)&&(b=$h.Ni);/diminished/.test(a)&&(b=$h.ij,/half/.test(a)&&(b=$h.Lk));return b?String.fromCharCode(b):""}function Zh(a,b){var c="",d=a.j.Gf;d&&d.forEach(function(a){c+="/";if(a.eb){var d=a.type;d&&(c+=d.text||("add"===d.value?"add":""));(d=a.L)&&(d.tl?c+=014G"+b+"");a.rd=c;c=e.r()[0];a.prev=c;a.ea=c.ea;a.Db=c.Db;a.time=c.time;a.key=c.key;return(new Vh(d)).m(a)}; s.Ma=function(a){var b=this.n,c=f,d=b.j.Al,e=b.j.Cl;if("none"!==d){var c=new T("center"),g="",h=f;if("actual"===d||"both"===d)if(g+=b.j.Zd.be,"actual"===e||"both"===e){var j=b.r(),j=j[0],m=b.j.Zd.ce,m=m!==f?m:b.ia(j).ja(),p=b.j.Zd.$d,p=p!==f?p:b.ia(j).rd,j=this.od(Oh(b.ia(j)),m,p,a);j.wa({width:j.i("width"),height:j.i("height")});h=h||[];h.push(j);g+="%0"}"both"===d&&(g=g+":"+b.j.ae.be,"both"===e&&(j=b.r(),d=j[0],e=b.j.ae.ce,e=e!==f?e:b.ia(d).ja(),j=b.j.ae.$d,j=j!==f?j:b.ia(d).rd,j=this.od(Oh(b.ia(d)), e,j,a),j.wa({width:j.i("width"),height:j.i("height")}),h=h||[],h.push(j),g+="%1"));kc(a).Ea=14;Ie(c,g,"italic bold 12px sans-serif",a,h);c.wa({width:c.i("width"),height:c.i("height")})}return c};s.Uc=r(l);function ki(a,b){ki.a.constructor.call(this,a,b)}u(ki,uf);s=ki.prototype;s.toString=r("Score.Tuplet");s.l=r("tuplet");s.clone=function(a){a=a||new ki(this.k,this.j);return ki.a.clone.call(this,a)};s.ta=function(a){return/(start|stop)/.test(a)};s.na=function(a){return"start"===a}; s.va=function(a){return"stop"===a};s.s=function(){var a=this.r(),b=a[0],a=a[a.length-1];return b.H()===a.H()?-1===b.H()?"upper":"lower":"upper"};s.m=function(){var a=new ji;C(a,"height",14);this.Q(a);return a};s.V=function(a){if(Y.prototype.isPrototypeOf(a)){var b="upper"===this.s()?a.I.length-1:0;return a.I[b]}return a};s.ia=function(a){if(Y.prototype.isPrototypeOf(a)){var b="upper"===this.s()?0:a.I.length-1;return a.I[b]}return a};function li(a){this.Bb=a} li.prototype.Wa=function(a,b){0===b&&(this.Ec=a)};li.prototype.fb=function(a,b){if(0===b){this.Bb.Ec=this.Ec;var c=Nh(this.Bb.ia(this.Ec));c&&0=V(a,Oe(a))?"upper":"lower"):this.direction=-1===a?"lower":"upper"}return this.direction};function ni(a,b){return Y.prototype.isPrototypeOf(b)?b===a.r()[0]?a.il:a.hl:b}function qi(a){qi.a.constructor.call(this,a||"Beam")}u(qi,S);v(qi,Qf);s=qi.prototype; s.clone=function(a){a=a||new qi;return qi.a.clone.call(this,a)};s.p=function(a){qi.a.p.call(this,a);var b=this.n;a.save();a.qa("#000000");var c=this.Dd(),d=this.bg(),e=this.Ge(),g=this.cg(),h=b.ub();a.beginPath();b.vb()||b.Hd?(b=b.ia(h).wd(),h=(d-c)*Math.tan(b),b=g+h,h=e+h,a.moveTo(c,e),a.lineTo(c,g),a.lineTo(d,b),a.lineTo(d,h)):(h=ri(b)*("upper"===b.s()?-1:1),b=e+h,h=g+h,a.moveTo(c,e),a.lineTo(c,b),a.lineTo(d,h),a.lineTo(d,g));a.closePath();a.fill();a.restore()}; s.Dd=function(){var a=this.n,b=a.r()[0].t(),c=b.aa(),a=c.Hi?0.5*c.i("width"):"upper"===a.s()?c.i("width"):0;return b.W+E(c,"parent","x")+a};s.bg=function(){var a=this.n,b=f;if(a.Hd)b=this.Dd()-si(a);else if(a.vb())b=this.Dd()+si(a);else var b=a.r(),c=b[b.length-1],b=b[0].t(),c=c.t(),d=c.aa(),a=d.Hi?0.5*d.i("width"):"upper"===a.s()?d.i("width"):0,b=E(c,"parent","x")-E(b,"parent","x")+b.W+E(d,"parent","x")+a;return b}; s.Ge=function(){var a=this.n;if(a.vb()||a.Hd)return 0+("lower"===a.s()?1:-1)*(a.la()-1)*(ri(a)+ti(a));a=a.r();return Rf(this,a[0],a[a.length-1])};s.cg=function(){var a=this.n;if(a.vb()||a.Hd)return this.Ge()+("lower"===a.s()?1:-1)*ri(a);a=a.r();return Rf(this,a[a.length-1],a[0])};s.Uc=r(i);s.Vf=function(){var a=this.n;return("lower"===a.s()?1:-1)*(a.la()-1)*(ri(a)+ti(a))};function ui(){ui.a.constructor.call(this,"TremoloBeam")}u(ui,qi);s=ui.prototype; s.clone=function(a){a=a||new ui;return ui.a.clone.call(this,a)};s.p=function(a){for(var b=ui.a,c=this.n,d=c.la(),e=1;e<=d+1;++e)c.k=e,b.p.call(this,a);c.k=d};s.Dd=function(){return ui.a.Dd.call(this)+5};s.bg=function(){return ui.a.bg.call(this)-5};s.Ge=function(){var a=ui.a,b=this.n,c=b.ub(),b=b.ia(c).wd();return a.Ge.call(this)+5*Math.tan(b)};s.cg=function(){var a=ui.a,b=this.n,c=b.ub(),b=b.ia(c).wd();return a.cg.call(this)-5*Math.tan(b)};function vi(a){vi.a.constructor.call(this,a)}u(vi,uf);s=vi.prototype; s.toString=r("Score.Beam");s.l=r("beam");s.clone=function(a){a=a||new vi(this.k);return vi.a.clone.call(this,a)};s.na=function(a){return vi.a.na.call(this,a)||/(forward\shook|backward\shook)/.test(a)};s.ta=function(a){return vi.a.ta.call(this,a)||/(forward\shook|backward\shook)/.test(a)};s.zf=function(a,b,c){return!vi.a.zf.call(this,a,b,c)||this.I&&1b&&(++this.Nd,b=Math.abs(b),this.Jb=this.Nd?this.xc:this.yc:this.Ib>=this.Jb?this.xc:this.yc,this.K.vb()||this.K.Hd||this.gb===f))this.gb=this.K.r()[0];return this.gb};function xi(a,b,c,d,e,g){this.K=a;this.gg=0;this.Fg=b;this.wi=c;this.Rd=d;this.Vd=e;this.Nb=g}xi.prototype.Wa=function(a){if(1===this.K.la()&&(this.K.V(a).q(),(a=a.ka("beam"))&&2this.Ji&&(this.Ji=c,this.Ig=a,this.Nl=b);cregular5')});Ui(a,d,b,"clefs",function(a){return new jh(this,'G2')});var e=a.Eb(d);e&&"TAB"!==e.T&&(Ui(a,d,b,"times",function(a){return new nh(this,'')}),Ui(a,d,b, "keys",function(a){return new sh(this,'0')}))}}s.jb=function(){var a=this.part_symbol;if(a===f&&0===this.Nh){var b=this.pa();1brace'))}return a};s.pa=Z.prototype.pa;s.Fa=Z.prototype.Fa;s.getAttribute=Z.prototype.getAttribute;s.Tf=Z.prototype.Tf;s.ma=Z.prototype.ma;s.Eb=Z.prototype.Eb;s.Bd=Z.prototype.Bd;s.Qc=Z.prototype.Qc;s.ag=Z.prototype.ag; function je(a){this.w=a;this.Hb=new Pi}je.prototype.toString=r("Score.ElementTunnel");function Vi(a,b){for(var c=a.Hb,d=b.pa(),e=1;e<=d;++e){var g=b.Qc(e);if(g){var h=f,j=zh(g);j&&(h=Qi(c,j,e));h&&j&&(h=h.filter(function(a){return!j.some(hh.prototype.tj,a)}),g.ll=h)}}}function Wi(a,b){a.Xd=a.Xd||[];var c=a.Xd,d=f;0>=c.length?(d=new Si,Ch(b)):(d=c[c.length-1],Ch(b,d),d=d.clone());d.reset(b);d.Nh=c.length;c.push(d);return d} je.prototype.filter=function(a){a.ob=this;if(Li.prototype.isPrototypeOf(a))this.Hb.reset();else if(Z.prototype.isPrototypeOf(a))Xi(this,a);else if(Yi(this,a),W.prototype.isPrototypeOf(a)&&!Y.prototype.isPrototypeOf(a)&&!Hi.prototype.isPrototypeOf(a)){var b=a.ha();if(!a.dl&&b&&(a.prev||!a.ka("tied"))){var c;if(!(c=!this.Hb)){if(!(c=b.ji)){c=this.Hb;var d=a.O(),d=d||1;if(b.L)if(Ri(c,b,d))c=i;else{var e;e=""+ih(b);c=c[e+d]===b.L}else c=l;c=!c}c=c||a.Na&&a.Na.md}if(c){if(a.Na)a.Lb=new qh(a.Na,a.q(),f, a.ca);else if(b.L)a.Lb=new qh(f,a.q(),b.L,a.ca);else{if(c=this.Hb)c=this.Hb,d=(d=a.O())||1,b.L?c=l:(e=""+ih(b),e=c[e+d],0===e?c=l:e?c=i:(d="key_pitches_"+(d||1),c=c[d]&&c[d].some(hh.prototype.uj,b)?i:l));c&&(a.Lb=new qh(f,a.q(),0,a.ca),c=a.O(),d=""+ih(b),this.Hb[d+(c||1)]=0)}!b.ji&&this.Hb&&(c=this.Hb,a=(a=a.O())||1,b.L&&!Ri(c,b,a)&&(d=""+ih(b),d+=a,c[d]!==b.L&&(c[d]=b.L)))}}}};function Xi(a,b){var c=Wi(a,b);b.pb=c;c.Tf().forEach(function(a){Yi(this,a)},a);Vi(a,c)} function Yi(a,b){var c;a.Xd=a.Xd||[];c=a.Xd;if(0>=c.length){var d=new Si;Ti(d);d.Nh=c.length;c.push(d)}c=c[c.length-1];b.pb=c;b.Va=c.Fa();b.Ab=c.jb();if(d=b.O())!b.ea&&!fh.prototype.isPrototypeOf(b)&&(b.ea=c.ma(d)),!b.Db&&!jh.prototype.isPrototypeOf(b)&&(b.Db=c.Eb(d)),!b.time&&!nh.prototype.isPrototypeOf(b)&&(b.time=c.Bd(d)),!b.key&&!sh.prototype.isPrototypeOf(b)&&(b.key=c.Qc(d))}function ke(a,b){var c=b.Aj;c===f&&(c=We(b).next().ba(),b.Aj=c);return c} function Zi(a,b,c){this.w=a;this.Oi=b?i:l;this.ob=c}s=Zi.prototype;s.toString=r("Score.ElementIterator");s.clone=function(a){a=a||new Zi;return ub(a,this)};function $i(a){return(a=a.w)&&a.fc?a.fc.length:0}function aj(){var a=Zi.factory;a===f&&(a=new Oi);return a}function bj(a){a.M=a.M!==f?a.M:a.Oi?$i(a):0}s.S=function(){return this.M<$i(this)};s.next=function(){return this.w.fc[this.M++]};s.Tb=function(){return 0d?A+=j:0=j.length)){var j=Pg(this.Vd,j[0].t(),this.Nb),m=(this.Pe-c.la())*h.i("height");if(0b;){var e=c[this.cc],j=e.ha(),h=e.Lb,m=2<=this.cc-b,j=6<=ih(j)-ih(d);if(h&&(m||j)){j&&g&&(++this.cc,e=f);break}else e=f}if(d=e){e=new Fe("AlignAccidentalBox");if(g=a.Lb.m(this.z))m=g.P(),m=a.u()+m.c,F(g,"alignbox","x",0),F(g,"alignbox","y",m),e.o(g,l,l,0,0,"alignbox");if(h= d.Lb.m(this.z))m=h.P(),m=d.u()+m.c,a=a.ha(),j=0,6>ih(d.ha())-ih(a)&&(j+=g.i("width")),F(h,"alignbox","x",j),F(h,"alignbox","y",m),e.o(h,l,l,0,0,"alignbox");this.Hc=this.Hc||[];this.Hc.push(e);this.hd=this.hd||[];this.hd.push(this.cc)}else if(d=a.Lb.m(this.z))e=d.P(),a=a.u()+e.c,F(d,"accidentals","y",a),this.ge.o(d,l,l,2,2,"accidentals")}c.length-1===b&&this.Hc!==f&&Wj(this)};Uj.prototype.fb=function(a){a.dl=i};Uj.prototype.t=o("ge"); function Xj(){this.Jb=this.Ib=0;this.yc=this.xc=f;this.Nd=this.Md=0}Xj.prototype.Wa=function(a){var b=a.q(),b=V(b,Oe(b)),b=a.u()-b;0b&&(++this.Nd,b=Math.abs(b),this.Jb=this.Nd?this.xc:this.yc:this.Ib>=this.Jb?this.xc:this.yc,b=c.H();1===b&&c===a[0]&&(c=a[a.length-1]);-1===b&&c===a[a.length-1]&&(c=a[0]);c.Ud(b);this.gb=c}}return this.gb};function Yj(a,b){this.context=a;this.z=b}Yj.prototype.Wa=n(); function Zj(a,b,c){var d=f,e=f;0");j.pb=m.pb;j.Ab=m.Ab;j.prev=m}fk(this,j,e,i);j=d;h=l;Af.prototype.isPrototypeOf(j)|| (m=j,j=new Af(d.w,""),j.pb=m.pb,j.Ab=m.Ab,j.prev=m,h=i);fk(this,j,e,l,h)}!d.prev&&g?(g=e,j=d,h=new ak(this.context),bk(h,j,h.Mf,h.If,g,i),bk(h,j,h.Nf,h.Jf,g,i),j.w.prev||bk(h,j,h.Of,h.Kf,g,i)):Z.prototype.isPrototypeOf(d)&&(gk(this,e,d),g=new ak(this.context),g.$(d,e));Y.prototype.isPrototypeOf(d)?(g=new Qj(this.context),g.$(d,e)):Hi.prototype.isPrototypeOf(d)?(g=new Mj(this.context),g.$(d,e)):W.prototype.isPrototypeOf(d)&&(g=new Vh(this.context),g.$(d,e));Ji.prototype.isPrototypeOf(d)&& (g=new ck(this.z),g.$(d,e));d.prev&&d.next&&Af.prototype.isPrototypeOf(d)&&fk(this,d,e,l);if(!d.next&&(d=d.w.next))if(g=We(d),d=f,g.S()&&Z.prototype.isPrototypeOf(d=g.next()))g=new ak(this.context),bk(g,d,g.Mf,g.If,e,f)}gk(this,c,child_element);return c}; function hk(a,b,c){function d(a,b){var c=0,d=new ak(this.context),c=c+bk(d,a,d.Nf,d.Jf,b,f);return c+=bk(d,a,d.Of,d.Kf,b,f)}var e=0,g=function(a){if(a){var a=We(a),b=f;if(a.S()&&(b=a.next(),!Z.prototype.isPrototypeOf(b)||!b.keys&&!b.Ml))b=f}return b}(b.next,c),h=We(b,i).prev();if(!Af.prototype.isPrototypeOf(h)){var j=h,h=new Af(b,"");h.pb=j.pb;h.Ab=j.Ab;h.prev=j}e+=fk(a,h,c,g?l:i);g&&(e+=d.call(a,g,c));(function(a,b){te(a,function(a){var c=we(a)-1;do{var d=a.children&&0<=c&&cd){this.gc.prev();this.gc.Tb()||(e="score-div's width is not enough,",e+=" at least ",e+=Math.ceil(b+c+50),e+=" please!",aa(Error(e)));h=g;break}j=ik(this.ng,h,e,j,a);e=l;h.forEach(function(a,b){for(var c= this.pe[b],d=We(a);d.S();){child_element=d.next();W.prototype.isPrototypeOf(child_element)&&c.Gc(child_element);if(Hh.prototype.isPrototypeOf(child_element)){var e=c,g=child_element;Kj=Kj||[Cj,Wh];xf(e,Kj,g)}else zf.prototype.isPrototypeOf(child_element)&&(e=c,g=child_element,Jj=Jj||[Sh,ai,bi,mj,ci,jj,Ih,lj,tj,Th,wj,di,Uh],xf(e,Jj,g));Af.prototype.isPrototypeOf(child_element)&&(e=c,g=child_element,Lj=Lj||[ai,bi,Ei,sj,Og],xf(e,Lj,g))}},this)}j?(j=jk(this.ng,h,j,a),b=!this.gc.S(),j=this.sl.$(this.pe, j,b,d),this.pe.forEach(function(a){a.reset()}),a=this.Ai.$(this.ef,j,a),j=a.i("width"),b?C(a,"width",Math.min(d,1.7*j)):C(a,"width",d),a=Kk(this,a),this.he+=a.i("height"),this.he>of(this.Pa,this.Zc)&&sf(this.Zc),this.Zb=this.Zb||[],this.Zb.push(a),++this.M):a=f;return a};s.Tb=function(){return 0of(this.Pa)){this.Yd.prev();this.Yd.Tb()||(c="score-div's height is not enough,", c+=" at least ",c+=Math.ceil(b+50),c+=" please!",aa(Error(c)));break}F(c,this.ga,"x",lf(this.Pa,a,"left"));a.o(c,l,l,5,0,this.ga,i)}b=new S("BottomMargin");C(b,"height",lf(this.Pa,a,"bottom"));b.Ue=i;F(b,this.ga,"x",0);a.o(b,l,l,0,0,this.ga);(new qf(this.context)).$(this.Pa,a);sf(this.Zc);this.Wb=this.Wb||[];this.Wb.push(a);++this.M;return a};s.Tb=function(){return 0");this.Cb.css({position:"absolute",left:0,top:0});this.Cb.appendTo(this.ic);this.jc=new lc(this.Cb);this.gj=kc(this.jc);this.z=fc(this.gj);Yb(this.z);this.bb=this.ic.attr("musicxml_ref")||"";this.mb=b;this.Wc=c?i:l;this.Bl=d?i:l;this.Kb||(this.Wc?(this.Kb=this.ic.prev(".ui-dialog-titlebar"),this.Kb.css({padding:"0px"})):(this.Kb=$("",{id:"toolbar","class":"ui-widget-header ui-corner-all"}),this.Kb.css({position:"absolute",display:"none", right:0,bottom:0,"font-family":"'Trebuchet MS', 'Arial', '''Helvetica', 'Verdana', 'sans-serif'",padding:"0px 4px"}),this.Kb.appendTo(this.ic)),this.Wc?Wk(this,"go_url_btn_node",{id:"go_url_btn",text:this.bb},{icons:{secondary:"ui-icon-refresh"}},this.Qg):(Wk(this,"open_file_btn_node",{id:"open_file_btn",text:"Open local MusicXML"},{text:l,icons:{primary:"ui-icon-folder-collapsed"}},this.Ti),Xk(this,"go_url_input_node",{id:"go_url_input",type:"text",value:this.bb,size:30,maxlength:256},{"font-size":"1.1em"}, this.Kb),Wk(this,"go_url_btn_node",{id:"go_url_btn",text:"Refresh"},{text:l,icons:{primary:"ui-icon-refresh"}},this.Qg)),Wk(this,"page_1st_btn_node",{id:"page_1st_btn",text:"Goto First Page"},{text:l,icons:{primary:"ui-icon-arrowthickstop-1-w"},disabled:i},this.Ui),Wk(this,"page_prev_btn_node",{id:"page_prev_btn",text:"Goto Prev Page"},{text:l,icons:{primary:"ui-icon-arrowthick-1-w"},disabled:i},this.Xi),Wk(this,"page_next_btn_node",{id:"page_next_btn",text:"Goto Next Page"},{text:l,icons:{primary:"ui-icon-arrowthick-1-e"}, disabled:i},this.Vi),Wk(this,"page_nth_btn_node",{id:"page_nth_btn",text:"Goto Last Page"},{text:l,icons:{primary:"ui-icon-arrowthickstop-1-e"},disabled:i},this.Wi),this.Wc||Wk(this,"standalone_btn_node",{id:"standalone_btn",text:"Standalone Viewer"},{text:l,icons:{primary:"ui-icon-newwin"}},this.Yi));Yk(this)}ja("ScoreLibrary.ScoreDiv",Vk);function Zk(a,b,c){b=0<=b?b:0;a.Ve=a.Ve||[];var d=a.Ve[b];!d&&c&&(d=new lc($("")),d.resize(a.jc.kb(),a.jc.Xa()),kc(d).z=a.z,a.Ve[b]=d);return d}s=Vk.prototype; s.kb=function(){return this.ic.width()};s.Xa=function(){return this.ic.height()};function $k(a,b){a.data.He.call(a.data.Re,a,b)}function al(a,b,c){(a=a[b])&&c&&a.button("option",c)}function Xk(a,b,c,d,e){var g=a[b];g||(g=$("",c),g.css(d),g.appendTo(e),a[b]=g)}function Wk(a,b,c,d,e){var g={},h=a[b];h||(h=$("",c),h.css(g),h.button(d),h.appendTo(a.Kb),e&&h.click({Re:a,He:e},$k),a[b]=h)} function bl(a,b,c,d,e,g,h){var j=a[b];j||(j=$("
",c),e&&j.bind("dialogcreate",{Re:a,He:e},$k),g&&j.bind("dialogresizestop",{Re:a,He:g},$k),h&&j.bind("dialogclose",{Re:a,He:h},$k),a[b]=j,j.dialog(d));j.dialog("open")}function cl(a){if(a.Ja.S()){var b=a.Ja.M||0,c=a.Ja.next(),d=Zk(a,b);d===f&&(d=Zk(a,b,i),c.wa({width:c.i("width"),height:c.i("height")}),c.p(d));b=a.jc;b.clear();b.drawImage(d,0,0);a.Ja.prev()}}function dl(a){a.Ja.next();var b=a.Ja.S();a.Ja.prev();return b} function el(a){var b=a.Ja.Tb();al(a,"page_prev_btn_node",{disabled:!b});al(a,"page_1st_btn_node",{disabled:!b});b=dl(a);al(a,"page_next_btn_node",{disabled:!b});al(a,"page_nth_btn_node",{disabled:!b})} s.Ti=function(){al(this,"open_file_btn_node",{disabled:i});bl(this,"open_file_dialog_node",{id:"open_file_dialog"},{modal:i,autoOpen:l,position:["center","center"],title:"Open local MusicXML",resizable:l,width:500,height:"auto",buttons:{OK:function(){var a=$(this);a.prop("ok_clicked",i);a.dialog("close")},Cancel:function(){var a=$(this);a.prop("ok_clicked",l);a.dialog("close")}}},this.$i,f,this.Zi);al(this,"open_file_btn_node",{disabled:l})}; s.$i=function(){Xk(this,"open_file_input_node",{id:"open_file_input",type:"file",accept:"application/vnd.recordare.musicxml, application/vnd.recordare.musicxml+xml"},{width:"100%"},this.open_file_dialog_node)};s.Zi=function(){var a=this.open_file_dialog_node.prop("ok_clicked"),b=this.open_file_input_node.prop("files");a&&b&&1===b.length&&(this.mb=b[0],this.bb=this.mb.name,this.go_url_input_node.prop("value",this.bb),fl(this),Yk(this))}; s.Qg=function(){al(this,"go_url_btn_node",{disabled:i});this.go_url_input_node&&(this.bb=this.go_url_input_node.prop("value"));fl(this);Yk(this)};s.Yi=function(){bl(this,"standalone_dialog_node",{id:"standalone_dialog"},{modal:l,autoOpen:l,position:["center","center"],width:this.kb(),minWidth:this.kb(),height:"auto",minHeight:this.Xa()},this.aj,this.bj)}; s.aj=function(){this.mf||(this.mf=new Vk(this.standalone_dialog_node.attr({musicxml_ref:this.bb}).css({padding:"0px",width:this.kb(),height:this.Xa()}),this.mb,i))};s.bj=function(){this.mf&&Yk(this.mf)};function fl(a){var b=a.standalone_dialog_node;b&&b.dialog("close");delete a.mf;delete a.standalone_dialog_node}s.Ui=function(){for(;this.Ja.Tb();)this.Ja.prev();cl(this);el(this)};s.Xi=function(){this.Ja.prev();cl(this);el(this)};s.Vi=function(){this.Ja.next();cl(this);el(this)}; s.Wi=function(){for(;this.Ja.S();)this.Ja.next();this.Ja.prev();cl(this);el(this)};s.i=function(a){return this[a]};function gl(a){a.ac&&(a.ac.remove(),delete a.ac)} s.Rg=function(a){try{var b=this.kb(),c=this.Wc?this.Xa():this.Xa()-this.Kb.outerHeight();this.jc.resize(b,c);delete this.Ve;this.source=new Ye(a);this.sj=new Lk(this.jc);this.Ja=this.sj.$(this.source);if(this.Wc||this.Bl||dl(this))this.Wc||this.Kb.css("display","block");cl(this);el(this)}catch(d){this.ec(d)}gl(this);al(this,"go_url_btn_node",{disabled:l})};s.ec=function(a){gl(this);aa(a)}; function Yk(a){a.jc.clear();if(!a.ac){a.ac=$("",{src:"/images/waiting.gif",alt:"musicxml loading..."});var b=0.5*(a.kb()-a.ac.prop("width")),c=0.5*(a.Xa()-a.ac.prop("height"));a.ac.css({position:"absolute",left:b,bottom:c})}a.ac.appendTo(a.ic);"object"===typeof(a.mb?a.mb:a.bb)?new Tk(a.mb?a.mb:a.bb,a,a.Rg,a.ec):new Uk(a.mb?a.mb:a.bb,a,a.Rg,a.ec)}$(function(){$(".score-div").map(function(){return new Vk($(this))}).get()}); /* This file is part of score-library . author & contact: XiongWenjie (navigator117 at gmail.com) score-library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. score-library 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 General Public License for more details. You should have received a copy of the GNU General Public License along with score-library. If not, see . */