A tool for visualization of ancient Greek musical accent.
https://aksento.glossa.info/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
513 KiB
24 lines
513 KiB
7 years ago
|
/**
|
||
|
* VexFlow 1.2.83 built on 2016-09-06.
|
||
|
* Copyright (c) 2010 Mohit Muthanna Cheppudira <mohit@muthanna.com>
|
||
|
*
|
||
|
* http://www.vexflow.com http://github.com/0xfe/vexflow
|
||
|
*/
|
||
|
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.Vex=b():a.Vex=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d=c(1),e=c(2),f=c(5),g=c(3),h=c(10),i=c(14),j=c(30),k=c(4),l=c(43),m=c(20),n=c(45),o=c(18),p=c(29),q=c(15),r=c(33),s=c(55),t=c(56),u=c(41),v=c(42),w=c(57),x=c(22),y=c(27),z=c(39),A=c(37),B=c(40),C=c(44),D=c(21),E=c(19),F=c(58),G=c(52),H=c(53),I=c(59),J=c(17),K=c(34),L=c(51),M=c(25),N=c(60),O=c(16),P=c(61),Q=c(62),R=c(63),S=c(64),T=c(65),U=c(8),V=c(35),W=c(50),X=c(66),Y=c(67),Z=c(68),$=c(38),_=c(69),aa=c(70),ba=c(28),ca=c(46),da=c(71),ea=c(72),fa=c(31),ga=c(32),ha=c(73),ia=c(36),ja=c(74),ka=c(54),la=c(9),ma=c(75),na=c(76),oa=c(78),pa=c(77),qa=c(6);d.Vex.Flow=e.Flow,d.Vex.Flow.Element=f.Element,d.Vex.Flow.Fraction=g.Fraction,d.Vex.Flow.Renderer=h.Renderer,d.Vex.Flow.Formatter=i.Formatter,d.Vex.Flow.Music=j.Music,d.Vex.Flow.Glyph=k.Glyph,d.Vex.Flow.Stave=l.Stave,d.Vex.Flow.StaveNote=m.StaveNote,d.Vex.Flow.StaveModifier=n.StaveModifier,d.Vex.Flow.Voice=o.Voice,d.Vex.Flow.Accidental=p.Accidental,d.Vex.Flow.Beam=q.Beam,d.Vex.Flow.StaveTie=r.StaveTie,d.Vex.Flow.TabStave=s.TabStave,d.Vex.Flow.TabNote=t.TabNote,d.Vex.Flow.Bend=u.Bend,d.Vex.Flow.Vibrato=v.Vibrato,d.Vex.Flow.VibratoBracket=w.VibratoBracket,d.Vex.Flow.Note=x.Note,d.Vex.Flow.ModifierContext=y.ModifierContext,d.Vex.Flow.TickContext=z.TickContext,d.Vex.Flow.Articulation=A.Articulation,d.Vex.Flow.Annotation=B.Annotation,d.Vex.Flow.Barline=C.Barline,d.Vex.Flow.NoteHead=D.NoteHead,d.Vex.Flow.StaveConnector=E.StaveConnector,d.Vex.Flow.ClefNote=F.ClefNote,d.Vex.Flow.KeySignature=G.KeySignature,d.Vex.Flow.TimeSignature=H.TimeSignature,d.Vex.Flow.TimeSigNote=I.TimeSigNote,d.Vex.Flow.Stem=J.Stem,d.Vex.Flow.TabTie=K.TabTie,d.Vex.Flow.Clef=L.Clef,d.Vex.Flow.Modifier=M.Modifier,d.Vex.Flow.TabSlide=N.TabSlide,d.Vex.Flow.Tuplet=O.Tuplet,d.Vex.Flow.GraceNote=P.GraceNote,d.Vex.Flow.GraceTabNote=Q.GraceTabNote,d.Vex.Flow.Tuning=R.Tuning,d.Vex.Flow.KeyManager=S.KeyManager,d.Vex.Flow.StaveHairpin=T.StaveHairpin,d.Vex.Flow.BoundingBox=U.BoundingBox,d.Vex.Flow.Stroke=V.Stroke,d.Vex.Flow.TextNote=W.TextNote,d.Vex.Flow.Curve=X.Curve,d.Vex.Flow.TextDynamics=Y.TextDynamics,d.Vex.Flow.StaveLine=Z.StaveLine,d.Vex.Flow.Ornament=$.Ornament,d.Vex.Flow.PedalMarking=_.PedalMarking,d.Vex.Flow.TextBracket=aa.TextBracket,d.Vex.Flow.FretHandFinger=ba.FretHandFinger,d.Vex.Flow.Repetition=ca.Repetition,d.Vex.Flow.BarNote=da.BarNote,d.Vex.Flow.GhostNote=ea.GhostNote,d.Vex.Flow.NoteSubGroup=fa.NoteSubGroup,d.Vex.Flow.GraceNoteGroup=ga.GraceNoteGroup,d.Vex.Flow.Tremolo=ha.Tremolo,d.Vex.Flow.StringNumber=ia.StringNumber,d.Vex.Flow.Crescendo=ja.Crescendo,d.Vex.Flow.Volta=ka.Volta,d.Vex.Flow.Font=la.Font,d.Vex.Flow.System=ma.System,d.Vex.Flow.Factory=na.Factory,d.Vex.Flow.Parser=oa.Parser,d.Vex.Flow.EasyScore=pa.EasyScore,d.Vex.Flow.Registry=qa.Registry,b["default"]=d.Vex,a.exports=b["default"]},function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,
|
||
|
return this.registry=a,this}},{key:"isRendered",value:function(){return this.rendered}},{key:"setRendered",value:function(){var a=arguments.length<=0||void 0===arguments[0]||arguments[0];return this.rendered=a,this}},{key:"getAttributes",value:function(){return this.attrs}},{key:"getAttribute",value:function(a){return this.attrs[a]}},{key:"setAttribute",value:function(a,b){var c=this.attrs.id,d=this.attrs[a];return this.attrs[a]=b,this.registry&&this.registry.onUpdate({id:c,name:a,value:b,oldValue:d}),this}},{key:"getContext",value:function(){return this.context}},{key:"setContext",value:function(a){return this.context=a,this}},{key:"getBoundingBox",value:function(){return this.boundingBox}},{key:"checkContext",value:function(){if(!this.context)throw new f.Vex.RERR("NoContext","No rendering context attached to instance");return this.context}}]),a}();h.ID=1e3},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){a[b][c]||(a[b][c]={}),a[b][c][d]=e}Object.defineProperty(b,"__esModule",{value:!0}),b.Registry=b.X=void 0;var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),g=c(1),h=b.X=g.Vex.MakeException("RegistryError"),i=b.Registry=function(){function a(){d(this,a),this.clear()}return f(a,null,[{key:"INDEXES",get:function(){return["type"]}}]),f(a,[{key:"clear",value:function(){return this.index={id:{},type:{},"class":{}},this}},{key:"updateIndex",value:function(a){var b=a.id,c=a.name,d=a.value,f=a.oldValue,g=this.getElementById(b);null!==f&&this.index[c][f]&&delete this.index[c][f][b],null!==d&&e(this.index,c,d,g.getAttribute("id"),g)}},{key:"register",value:function(b,c){var d=this;if(c=c||b.getAttribute("id"),!c)throw new h("Can't add element without `id` attribute to registry",b);return b.setAttribute("id",c),e(this.index,"id",c,c,b),a.INDEXES.forEach(function(a){d.updateIndex({id:c,name:a,value:b.getAttribute(a),oldValue:null})}),b.onRegister(this),this}},{key:"getElementById",value:function(a){return this.index.id[a]?this.index.id[a][a]:null}},{key:"getElementsByAttribute",value:function(a,b){var c=this.index[a];return c&&c[b]?Object.keys(c[b]).map(function(a){return c[b][a]}):[]}},{key:"getElementsByType",value:function(a){return this.getElementsByAttribute("type",a)}},{key:"getElementsByClass",value:function(a){return this.getElementsByAttribute("class",a)}},{key:"onUpdate",value:function(b){function c(a,b){return a.filter(function(a){return a===b}).length>0}var d=b.id,e=b.name,f=b.value,g=b.oldValue;return c(a.INDEXES.concat(["id","class"]),e)?(this.updateIndex({id:d,name:e,value:f,oldValue:g}),this):this}}],[{key:"enableDefaultRegistry",value:function(b){a.defaultRegistry=b}},{key:"getDefaultRegistry",value:function(){return a.defaultRegistry}},{key:"disableDefaultRegistry",value:function(){a.defaultRegistry=null}}]),a}();i.defaultRegistry=null},function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(b,"__esModule",{value:!0});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();b.BoundingBoxComputation=function(){function a(b,d,e,f){c(this,a),this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.addPoint(b,d),this.addPoint(e,f)}return d(a,[{key:"width",value:function(){return this.x2-this.x1}},{key:"height",value:function(){return this.y2-this.y1}},{key:"addPoint",value:function(a,b){null!=a&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=a,this.x2=a),a<this.x1&&(this.x1=a),a>this.x2&&(this.x2=a)),null!=b&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=b,this.y2=b),b<this.y1&&(this.y1=b),b>this.y2&&(this.y2=b))}},{key:"addX",value:f
|
||
|
},v1f:{x_min:-340.28125,x_max:338.921875,ha:346,o:"m -32 520 b -29 521 -31 520 -31 521 b -23 519 -27 521 -24 520 b -20 513 -21 517 -20 516 b -21 506 -20 512 -20 509 b -31 474 -23 502 -27 488 l -53 402 l -66 352 l -68 349 l -57 349 b -32 351 -51 349 -40 351 b 123 370 19 352 74 359 b 137 371 127 370 133 371 b 170 356 152 371 164 366 b 171 355 170 355 170 355 b 216 366 174 355 183 358 b 280 378 268 377 266 377 b 287 378 283 378 284 378 b 332 349 307 378 322 369 b 338 319 336 341 338 330 b 332 301 338 310 336 302 b 242 280 329 299 246 280 b 242 280 242 280 242 280 b 235 288 236 280 235 283 b 235 292 235 290 235 291 b 236 302 236 297 236 299 b 220 337 236 316 230 330 l 216 340 l 210 335 b 159 276 189 322 172 301 b 118 149 152 265 156 274 b 81 34 84 36 85 36 b -8 13 78 33 -4 13 b -8 13 -8 13 -8 13 b -14 20 -12 15 -14 15 b -8 44 -14 24 -12 31 b -2 66 -5 55 -2 65 b -2 66 -2 66 -2 66 l -2 66 b -43 41 -2 66 -21 55 b -114 4 -98 8 -98 8 b -144 0 -123 0 -134 0 b -242 99 -197 0 -242 43 b -242 109 -242 102 -242 105 b -212 219 -240 122 -242 116 b -185 312 -197 270 -185 312 l -185 312 b -189 312 -185 312 -186 312 b -259 312 -200 312 -227 312 b -321 310 -291 312 -310 310 b -334 312 -330 310 -334 312 b -340 319 -338 313 -340 316 b -336 326 -340 322 -338 324 b -291 337 -334 326 -314 331 l -247 347 l -210 348 b -172 348 -190 348 -172 348 b -168 363 -172 348 -171 355 b -145 442 -151 424 -145 441 b -133 452 -144 444 -140 446 l -77 489 b -32 520 -53 506 -32 520 m 57 334 b 53 335 55 335 54 335 b 44 334 50 335 49 335 b -70 316 8 326 -28 320 b -78 309 -78 316 -78 316 b -108 202 -80 305 -88 274 b -141 81 -136 112 -141 93 b -140 74 -141 79 -141 77 b -117 49 -137 59 -127 49 b -107 52 -114 49 -110 51 b 16 127 -106 54 14 126 b 42 217 16 127 42 215 b 49 241 42 222 44 229 b 73 320 53 251 73 317 b 57 334 73 327 65 333 "},v20:{x_min:-571.671875,x_max:570.3125,ha:582,o:"m -559 351 b -551 352 -556 352 -553 352 b -530 338 -543 352 -533 348 b -529 169 -530 337 -529 291 l -529 1 l -507 27 l -441 112 b -382 174 -394 169 -390 174 b -378 174 -381 174 -379 174 b -281 86 -370 174 -375 179 b -196 0 -234 37 -196 0 b -126 84 -196 0 -164 37 b -50 174 -55 173 -57 172 b -44 174 -49 174 -47 174 b -35 173 -42 174 -38 173 b 53 86 -32 172 -12 151 b 138 0 100 37 138 0 b 208 84 140 0 170 37 b 284 174 279 173 279 172 b 289 174 285 174 288 174 b 300 173 294 174 298 173 b 462 11 303 172 340 134 l 475 -1 l 503 34 b 541 76 534 72 536 74 b 548 77 544 77 545 77 b 570 56 560 77 570 68 b 567 48 570 54 568 51 b 392 -172 564 41 397 -166 b 378 -176 387 -174 382 -176 b 368 -174 375 -176 371 -176 b 280 -87 367 -173 347 -152 b 194 0 234 -38 194 0 b 126 -86 194 0 163 -38 b 49 -174 54 -174 55 -173 b 44 -176 47 -176 46 -176 b 34 -174 40 -176 36 -174 b -54 -87 31 -173 10 -152 b -140 0 -102 -38 -140 0 b -209 -86 -140 0 -171 -38 b -285 -174 -280 -174 -279 -173 b -291 -176 -287 -176 -288 -176 b -300 -174 -294 -176 -298 -174 b -464 -11 -303 -173 -374 -102 l -476 0 l -506 -37 b -539 -76 -528 -65 -537 -74 b -551 -80 -543 -79 -547 -80 b -570 -68 -558 -80 -566 -76 l -571 -65 l -571 136 b -570 340 -571 331 -571 337 b -559 351 -568 344 -564 348 "},v21:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -138 229 b -129 230 -136 230 -133 230 b -110 217 -121 230 -114 226 l -108 215 l -108 99 b -104 -29 -108 -23 -108 -16 b -38 -104 -96 -63 -70 -91 b -1 -111 -25 -108 -13 -111 b 103 -27 46 -111 89 -77 b 107 102 107 -13 106 -19 l 107 215 l 108 217 b 127 230 112 226 119 230 b 137 229 130 230 134 230 b 147 217 141 226 145 223 l 148 215 l 148 109 b 148 63 148 91 148 76 b 147 -24 148 -1 148 -13 b -1 -154 134 -101 70 -154 b -38 -148 -13 -154 -25 -151 b -145 -38 -91 -134 -133 -93 b -149 62 -149 -22 -149 -27 b -149 98 -149 73 -149 86 l -149 215 l -148 217 b -138 229 -147 223 -142 226 "},v22:{x_min:0,x_max:432.828125,ha:442,o:"m 209 186 b 213 187 210 187 212 187 b 216 187 215 187 216 187 b 224 174 216 186 220 180 b 420 -1 269 105 338 43 b 432 -12 431 -8 432 -9 b 421 -23 432 -15 432 -16 b 228 -180 345 -70 264 -137 b 219 -188 221 -188 221 -188 l 219 -188 b 208 -177 215 -188 215 -188 b 10 1 163 -106 93 -44 b 0 11 0 6 0 8 b 10 2
|
||
|
},v3a:{x_min:-1.359375,x_max:227.3125,ha:232,o:"m 182 210 b 196 215 189 213 193 215 b 204 209 200 215 202 212 b 205 204 205 206 205 205 b 193 191 205 199 201 195 b 104 54 137 159 104 105 b 122 -8 104 31 110 11 l 123 -11 l 130 -11 b 202 -45 156 -11 185 -24 b 227 -112 219 -65 227 -88 b 172 -205 227 -149 208 -186 b 127 -216 157 -212 142 -216 b -1 -52 59 -216 -1 -144 b 0 -37 -1 -48 0 -43 b 182 210 6 58 80 155 "},v3b:{x_min:0,x_max:484.5625,ha:494,o:"m 228 245 b 239 247 234 247 239 247 b 243 247 240 247 242 247 b 303 238 257 247 287 242 b 484 -2 417 208 484 104 b 412 -177 484 -65 461 -127 b 243 -248 363 -226 303 -248 b 6 -63 138 -248 36 -180 b 0 -1 1 -41 0 -20 b 228 245 0 127 98 240 m 255 181 b 240 183 247 183 245 183 b 232 181 238 183 235 183 b 142 152 200 180 168 170 l 138 149 l 190 97 l 242 44 l 294 97 l 345 149 l 340 152 b 255 181 315 169 284 180 m 147 -54 l 197 -1 l 147 51 l 95 104 l 91 99 b 62 -1 72 70 62 34 b 66 -43 62 -15 63 -29 b 91 -101 72 -63 80 -84 l 95 -106 l 147 -54 m 393 99 b 389 104 390 102 389 104 b 337 51 389 104 366 80 l 285 -1 l 337 -54 l 389 -106 l 393 -101 b 421 -1 412 -72 421 -36 b 393 99 421 34 412 69 m 294 -98 b 242 -45 265 -69 242 -45 b 190 -98 242 -45 219 -69 l 138 -151 l 142 -154 b 242 -184 172 -174 206 -184 b 340 -154 276 -184 311 -174 l 345 -151 l 294 -98 "},v3c:{x_min:0,x_max:450.53125,ha:460,o:"m 189 302 b 204 303 193 302 198 303 b 303 224 250 303 292 270 b 306 199 304 216 306 208 b 279 129 306 173 296 147 l 276 126 l 281 127 b 408 249 337 142 385 190 b 412 259 409 254 412 258 b 430 267 417 265 423 267 b 450 247 441 267 450 259 b 200 -605 450 242 204 -599 b 182 -616 197 -612 190 -616 b 163 -602 174 -616 166 -610 b 161 -598 161 -601 161 -601 b 217 -402 161 -589 170 -562 b 272 -213 247 -298 272 -213 b 272 -213 272 -213 272 -213 b 264 -219 272 -213 268 -216 b 140 -262 227 -247 182 -262 b 36 -226 102 -262 65 -249 b 0 -145 12 -206 0 -176 b 17 -84 0 -124 5 -104 b 103 -38 38 -54 70 -38 b 191 -91 137 -38 172 -56 b 205 -141 201 -106 205 -124 b 178 -212 205 -167 196 -194 l 175 -215 l 182 -213 b 307 -93 236 -198 284 -151 b 372 129 308 -88 372 127 b 372 129 372 129 372 129 b 364 122 372 129 368 126 b 240 80 328 94 283 80 b 137 115 202 80 166 91 b 99 194 111 136 99 165 b 189 302 99 244 133 292 "},v3d:{x_min:0,x_max:677.828125,ha:692,o:"m 390 1199 b 396 1200 392 1200 394 1200 b 426 1179 404 1200 412 1195 b 528 975 468 1135 507 1059 b 543 863 537 938 543 900 b 401 533 543 743 494 627 l 364 496 l 344 476 l 345 471 l 355 430 l 383 291 l 385 284 l 387 284 b 420 287 398 285 409 287 b 616 192 494 287 567 251 b 677 18 658 140 677 79 b 502 -244 677 -88 615 -195 b 496 -247 499 -245 496 -247 b 514 -334 496 -247 499 -259 l 526 -394 b 537 -467 536 -437 537 -444 b 307 -700 536 -602 428 -700 b 215 -681 276 -700 245 -695 b 114 -595 174 -663 130 -626 b 103 -544 107 -578 103 -562 b 156 -444 103 -505 122 -466 b 219 -424 175 -431 197 -424 b 303 -463 250 -424 283 -438 b 329 -535 321 -485 329 -510 b 234 -644 329 -588 292 -638 l 224 -644 l 225 -645 b 268 -659 235 -650 254 -656 b 307 -663 281 -662 294 -663 b 498 -494 401 -663 484 -592 b 500 -467 499 -484 500 -476 b 491 -406 500 -452 498 -435 l 480 -348 b 461 -259 466 -284 461 -259 b 461 -259 461 -259 461 -259 b 457 -260 460 -259 458 -259 b 374 -270 430 -267 402 -270 b 190 -222 311 -270 246 -254 b 0 115 68 -151 0 -20 b 46 303 0 179 14 242 b 268 581 80 369 182 496 l 281 595 l 280 605 l 254 730 b 236 850 239 799 236 813 b 235 868 235 857 235 863 b 239 927 235 888 236 903 b 340 1153 250 1010 285 1090 b 390 1199 356 1171 383 1197 m 446 1039 b 434 1041 442 1041 438 1041 b 306 921 389 1041 332 989 b 284 810 291 884 284 849 b 296 705 284 780 288 745 l 308 649 b 313 627 311 637 313 627 l 313 627 b 344 657 314 627 332 645 b 487 957 434 757 487 870 b 483 995 487 970 485 982 b 446 1039 477 1021 468 1034 m 315 437 b 314 442 314 440 314 442 b 314 442 314 442 314 442 b 230 345 311 442 255 378 b 104 101 142 234 115 183 b 102 55 103 86 102 70 b 374 -242 102 -108 225 -242 b 420 -238 389 -242 404 -241 b 454 -229 431 -237 453 -230 b 454 -229 454 -229 454 -229 b 451 -213 454 -227 453 -220 l 441 -162
|
||
|
},v5e:{x_min:-206.890625,x_max:428.75,ha:438,o:"m -178 811 b -172 811 -175 811 -174 811 b -145 800 -164 811 -157 809 l -114 778 l -50 735 l 13 691 l 77 646 l 141 602 l 205 559 l 269 514 l 332 471 l 394 427 b 428 392 421 409 426 405 b 428 384 428 390 428 387 b 394 349 428 365 412 349 b 375 355 387 349 382 351 b 272 426 372 356 303 403 l 209 469 l 145 513 l 83 556 l -34 638 l -87 674 l -151 718 b -202 759 -196 749 -198 752 b -206 775 -205 764 -206 770 b -178 811 -206 792 -196 809 "},v5f:{x_min:-390.640625,x_max:389.28125,ha:397,o:"m -378 -2 b -368 -1 -375 -1 -374 -1 b -349 -13 -360 -1 -353 -5 l -348 -16 l -348 -176 l -348 -337 l 0 -337 l 347 -337 l 347 -176 l 347 -16 l 348 -13 b 367 0 352 -5 360 0 b 387 -13 375 0 383 -5 l 389 -16 l 389 -252 l 389 -489 l 387 -492 b 377 -503 385 -498 381 -501 l 372 -505 l 0 -505 l -374 -505 l -378 -503 b -389 -492 -382 -501 -386 -498 l -390 -489 l -390 -252 l -390 -16 l -389 -13 b -378 -2 -386 -8 -382 -4 m -13 -9 b -1 -8 -9 -8 -5 -8 b 50 -36 19 -8 39 -19 b 61 -72 57 -47 61 -59 b 50 -106 61 -84 57 -97 b -1 -134 39 -124 19 -134 b -46 -115 -17 -134 -34 -129 b -62 -72 -58 -102 -62 -87 b -13 -9 -62 -44 -44 -16 "},v60:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m -367 173 b -362 174 -366 174 -364 174 b -351 173 -357 174 -353 173 b -262 86 -348 172 -328 151 b -176 0 -216 37 -176 0 b -107 84 -176 0 -145 37 b -31 174 -36 173 -38 172 b -25 174 -29 174 -28 174 b -16 173 -23 174 -19 173 b 72 86 -13 172 6 151 b 157 0 119 37 157 0 b 227 84 159 0 189 37 b 303 174 298 173 296 172 b 308 174 304 174 307 174 b 318 173 313 174 317 173 b 481 11 322 172 357 134 l 494 -1 l 522 34 b 560 76 553 72 555 74 b 567 77 563 77 564 77 b 589 56 579 77 589 68 b 586 48 589 54 588 51 b 411 -172 583 41 416 -166 b 397 -176 406 -174 401 -176 b 387 -174 393 -176 390 -176 b 299 -87 386 -173 366 -152 b 213 0 253 -38 213 0 b 144 -86 213 0 182 -38 b 68 -174 73 -174 74 -173 b 62 -176 66 -176 65 -176 b 53 -174 59 -176 55 -174 b -35 -87 50 -173 29 -152 b -121 0 -83 -38 -121 0 b -190 -86 -122 0 -152 -38 b -266 -174 -261 -174 -259 -173 b -272 -176 -268 -176 -270 -176 b -281 -174 -276 -176 -280 -174 b -371 -86 -284 -173 -304 -152 b -457 0 -417 -38 -457 0 l -457 0 b -477 -26 -457 0 -470 -16 b -548 -227 -524 -88 -548 -161 b -536 -303 -548 -254 -544 -280 b -533 -317 -534 -309 -533 -313 b -553 -338 -533 -330 -541 -338 b -577 -315 -566 -338 -571 -333 b -590 -227 -586 -287 -590 -258 b -518 -9 -590 -154 -564 -77 b -465 56 -509 2 -504 8 l -402 134 b -367 173 -375 169 -372 172 "},v61:{x_min:-108.890625,x_max:251.8125,ha:257,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 383 20 616 20 616 l 20 148 l 21 151 b 137 199 59 183 99 199 b 182 191 152 199 167 197 b 251 84 227 176 251 134 b 228 0 251 58 243 29 b 93 -148 206 -40 179 -70 l 38 -199 l 23 -215 l 20 -217 l 20 -241 b 19 -267 20 -260 20 -266 b 19 -270 19 -269 19 -270 b 19 -270 19 -270 19 -270 b 47 -263 21 -270 39 -266 b 78 -249 55 -260 69 -255 b 89 -247 83 -247 85 -247 b 107 -265 99 -247 107 -254 l 107 -265 l 107 -270 l 102 -280 b 19 -492 65 -338 34 -417 b 0 -513 14 -508 10 -513 b -20 -488 -12 -513 -16 -508 b -103 -280 -38 -409 -66 -338 l -108 -270 l -108 -265 l -108 -265 b -91 -247 -108 -254 -100 -247 b -80 -249 -87 -247 -84 -247 b -49 -263 -70 -255 -57 -260 b -20 -270 -40 -266 -23 -270 b -20 -270 -20 -270 -20 -270 b -20 -267 -20 -270 -20 -269 b -21 174 -21 -266 -21 -208 l -21 616 l -20 620 b -8 631 -17 624 -13 630 m 110 131 b 96 133 106 133 100 133 b 89 133 93 133 91 133 b 24 87 63 129 40 113 l 20 80 l 20 -37 l 20 -156 l 23 -152 b 144 81 96 -72 144 20 l 144 83 b 110 131 144 113 134 126 "},v62:{x_min:46.28125,x_max:669.671875,ha:563,o:"m 183 376 b 189 376 185 376 187 376 b 212 374 197 376 208 376 b 265 337 234 369 253 355 b 274 317 268 331 273 320 b 274 316 274 317 274 316 b 280 323 276 316 276 319 b 311 358 288 337 299 348 b 319 366 315 360 318 365 b 356 376 326 373 340 376 b 382 371 364 376 374 374 b 428 337 400 366 417 352 b 436 317 431 331 436 320 b 438 316 436 317 436 316 b 442 323 438 316 439 319 b 475 358 451 337 462 348 b 483 366 477 360 481 365 b 518 376 488 373 503 376 b 54
|
||
|
},v7f:{x_min:0,x_max:367.5,ha:375,o:"m 0 124 l 0 187 l 61 187 l 122 187 l 122 138 l 122 91 l 153 61 l 183 30 l 213 61 l 243 91 l 243 138 l 243 187 l 306 187 l 367 187 l 367 124 l 367 61 l 321 61 l 274 61 l 243 30 l 213 0 l 243 -31 l 274 -62 l 321 -62 l 367 -62 l 367 -124 l 367 -188 l 306 -188 l 243 -188 l 243 -140 l 243 -93 l 213 -62 l 183 -31 l 153 -62 l 122 -93 l 122 -140 l 122 -188 l 61 -188 l 0 -188 l 0 -124 l 0 -62 l 46 -62 l 92 -62 l 123 -31 l 153 0 l 123 30 l 92 61 l 46 61 l 0 61 l 0 124 "},v80:{x_min:29.9375,x_max:420.578125,ha:371,o:"m 115 345 b 221 347 117 345 166 347 b 411 345 306 347 409 345 b 420 330 416 342 420 335 b 415 319 420 326 419 321 b 178 118 397 303 179 118 b 178 117 178 118 178 117 b 181 117 178 117 178 117 b 189 117 182 117 185 117 b 193 117 190 117 191 117 b 247 98 215 117 232 111 b 296 75 266 83 280 76 b 302 75 299 75 300 75 b 322 91 311 75 315 79 b 322 91 322 91 322 91 b 322 91 322 91 322 91 b 319 91 322 91 321 91 b 313 90 318 90 315 90 b 283 107 300 90 288 97 b 277 126 279 114 277 121 b 319 167 277 149 295 167 b 319 167 319 167 319 167 b 362 118 347 167 362 147 b 355 82 362 108 359 96 b 311 33 349 65 340 55 b 224 1 284 12 253 1 b 194 5 213 1 204 2 b 168 18 183 8 178 11 b 110 36 151 30 130 36 b 57 15 88 36 68 29 b 47 11 54 12 51 11 b 31 20 40 11 34 13 b 29 26 31 22 29 25 b 68 66 29 36 39 45 b 285 250 73 71 281 248 b 285 250 285 250 285 250 b 231 252 285 252 261 252 b 137 250 190 252 141 250 b 93 227 122 248 110 241 b 78 220 88 222 83 220 b 66 227 74 220 70 222 b 63 234 65 229 63 231 b 85 291 63 241 69 252 b 115 345 108 342 108 344 "},v81:{x_min:0,x_max:428.75,ha:438,o:"m 262 186 b 273 186 266 186 272 186 b 274 186 273 186 274 186 b 285 186 274 186 280 186 b 428 48 375 181 428 122 b 386 -68 428 12 416 -29 b 155 -187 329 -145 236 -187 b 12 -111 92 -187 38 -162 b 0 -51 4 -91 0 -72 b 262 186 0 58 122 179 m 366 131 b 352 134 362 133 357 134 b 219 81 321 134 269 115 b 47 -111 126 23 50 -62 b 47 -112 47 -111 47 -112 b 77 -136 47 -129 58 -136 b 264 -45 118 -136 194 -101 b 382 109 336 12 382 76 b 366 131 382 120 377 129 "},v82:{x_min:0,x_max:607.0625,ha:619,o:"m 243 631 b 250 632 246 632 249 632 b 270 620 259 632 268 628 l 272 616 l 272 201 l 272 -212 l 270 -216 b 251 -229 268 -224 259 -229 b 227 -215 243 -229 240 -229 l 151 -142 b 32 -16 81 -80 53 -49 b 0 84 9 18 0 52 b 111 199 0 149 42 199 b 137 197 119 199 127 198 b 228 151 168 191 197 177 l 231 148 l 231 383 b 232 620 231 616 231 616 b 243 631 234 624 238 630 m 168 131 b 152 133 163 133 157 133 b 107 102 130 133 111 120 b 106 86 107 97 106 91 b 111 41 106 73 108 56 b 227 -152 125 -13 171 -90 l 231 -156 l 231 -37 l 231 80 l 225 87 b 168 131 210 111 190 126 m 347 631 b 353 632 348 632 351 632 b 374 620 363 632 371 628 b 375 383 375 616 375 616 l 375 148 l 377 151 b 492 199 415 183 454 199 b 537 191 507 199 522 197 b 607 84 582 176 607 134 b 583 0 607 58 598 29 b 455 -142 562 -40 533 -72 l 378 -215 b 355 -229 364 -229 362 -229 b 334 -216 345 -229 337 -224 l 333 -212 l 333 201 l 333 616 l 334 620 b 347 631 337 624 341 630 m 465 131 b 451 133 461 133 455 133 b 445 133 449 133 446 133 b 379 87 419 129 396 113 l 375 80 l 375 -37 l 375 -156 l 378 -152 b 499 81 451 -72 499 20 l 499 83 b 465 131 499 113 490 126 "},v83:{x_min:-1.359375,x_max:847.96875,ha:865,o:"m 488 1499 b 495 1500 490 1500 492 1500 b 541 1465 507 1500 521 1490 b 679 1078 622 1372 679 1210 b 677 1050 679 1068 677 1060 b 477 642 668 893 604 764 l 443 609 l 431 596 l 431 592 l 438 562 l 449 508 l 460 458 b 481 355 475 390 481 355 b 481 355 481 355 481 355 b 490 356 481 355 485 355 b 528 358 495 356 511 358 b 558 356 540 358 552 356 b 839 95 699 338 808 237 b 847 22 845 72 847 47 b 631 -303 847 -113 766 -242 b 620 -309 623 -308 620 -309 l 620 -310 b 631 -359 620 -310 626 -333 l 646 -435 l 660 -496 b 672 -588 668 -535 672 -563 b 664 -653 672 -610 669 -630 b 383 -875 630 -792 509 -875 b 201 -810 321 -875 257 -855 b 129 -680 151 -768 129 -730 b 274 -530 129 -592 200 -530 b 351 -553 300 -530 326 -538 b 412 -669 393 -582 412 -626 b 287 -805 412 -735 366 -800 l 279 -805 l 285 -809 b 383 -830 318 -82
|
||
|
},v9e:{x_min:0,x_max:607.0625,ha:619,o:"m 243 631 b 250 632 246 632 249 632 b 270 620 259 632 268 628 l 272 616 l 272 201 l 272 -212 l 270 -216 b 251 -229 268 -224 259 -229 b 227 -215 243 -229 240 -229 l 151 -142 b 32 -16 81 -80 53 -49 b 0 84 9 18 0 52 b 111 199 0 149 42 199 b 137 197 119 199 127 198 b 228 151 168 191 197 177 l 231 148 l 231 383 b 232 620 231 616 231 616 b 243 631 234 624 238 630 m 168 131 b 152 133 163 133 157 133 b 107 102 130 133 111 120 b 106 86 107 97 106 91 b 111 41 106 73 108 56 b 227 -152 125 -13 171 -90 l 231 -156 l 231 -37 l 231 80 l 225 87 b 168 131 210 111 190 126 m 347 631 b 353 632 348 632 351 632 b 374 620 363 632 371 628 b 375 383 375 616 375 616 l 375 148 l 377 151 b 492 199 415 183 454 199 b 537 191 507 199 522 197 b 607 84 582 176 607 134 b 583 0 607 58 598 29 b 455 -142 562 -40 533 -72 l 378 -215 b 355 -229 364 -229 362 -229 b 334 -216 345 -229 337 -224 l 333 -212 l 333 201 l 333 616 l 334 620 b 347 631 337 624 341 630 m 465 131 b 451 133 461 133 455 133 b 445 133 449 133 446 133 b 379 87 419 129 396 113 l 375 80 l 375 -37 l 375 -156 l 378 -152 b 499 81 451 -72 499 20 l 499 83 b 465 131 499 113 490 126 "},v9f:{x_min:-311.6875,x_max:310.328125,ha:317,o:"m -9 388 b -2 390 -8 390 -5 390 b 5 388 1 390 4 390 b 19 378 10 387 16 383 b 23 333 23 371 23 371 l 23 328 l 23 290 l 27 290 b 172 274 62 290 129 283 b 200 259 191 270 196 267 b 215 40 204 249 215 102 b 215 26 215 33 215 26 l 216 24 l 253 24 l 255 24 b 299 19 292 24 292 23 b 310 -1 306 15 310 6 b 299 -23 310 -11 306 -19 b 255 -27 292 -27 292 -27 l 253 -27 l 216 -27 l 215 -30 b 215 -55 215 -31 215 -43 b 202 -244 213 -111 209 -179 b 174 -277 200 -270 198 -273 b 40 -294 132 -285 87 -291 l 23 -294 l 23 -331 b 23 -340 23 -334 23 -337 b 17 -381 23 -376 23 -374 b -1 -391 13 -388 5 -391 b -21 -381 -9 -391 -17 -388 b -27 -340 -27 -374 -27 -376 b -27 -331 -27 -337 -27 -334 l -27 -294 l -44 -294 b -178 -277 -91 -291 -136 -285 b -205 -258 -198 -273 -204 -270 b -219 -44 -210 -215 -219 -94 b -219 -29 -219 -37 -219 -30 l -220 -27 l -255 -27 l -258 -27 b -300 -23 -294 -27 -294 -27 b -311 -2 -307 -19 -311 -11 b -294 23 -311 8 -304 19 b -255 24 -291 23 -284 24 l -220 24 l -219 26 b -219 40 -219 26 -219 33 b -204 259 -219 104 -208 249 b -176 274 -200 267 -196 270 b -31 290 -133 283 -66 290 l -27 290 l -27 328 b -27 371 -27 360 -27 369 b -9 388 -24 378 -17 385 m -27 136 l -27 247 l -28 247 b -103 233 -46 245 -100 235 b -107 197 -103 233 -106 217 b -115 52 -111 147 -114 94 b -115 27 -115 40 -115 29 l -115 24 l -72 24 l -27 24 l -27 136 m 34 245 b 24 247 28 247 24 247 b 23 136 24 247 23 197 l 23 24 l 68 24 l 111 24 l 111 27 b 111 52 111 29 111 40 b 103 197 110 94 107 147 b 99 233 102 217 100 233 b 34 245 98 235 54 244 m -27 -140 l -27 -27 l -72 -27 l -115 -27 l -115 -30 b -115 -56 -115 -33 -115 -44 b -107 -201 -114 -98 -111 -151 b -103 -237 -106 -222 -103 -237 b -28 -251 -100 -240 -40 -251 b -27 -140 -28 -251 -27 -201 m 111 -30 l 111 -27 l 68 -27 l 23 -27 l 23 -140 b 24 -251 23 -201 24 -251 b 99 -237 36 -251 96 -240 b 103 -201 100 -237 102 -222 b 111 -56 107 -151 110 -98 b 111 -30 111 -44 111 -33 "},va0:{x_min:0,x_max:622.03125,ha:635,o:"m 398 417 b 406 419 401 419 404 419 b 427 398 417 419 427 409 b 427 391 427 395 427 392 b 34 -274 424 385 38 -272 b 20 -280 29 -278 25 -280 b 0 -259 9 -280 0 -270 b 0 -252 0 -256 0 -254 b 393 413 2 -247 389 410 b 398 417 394 415 397 416 m 592 417 b 600 419 594 419 597 419 b 622 398 611 419 622 409 b 620 391 622 395 620 392 b 227 -274 617 385 231 -272 b 213 -280 223 -278 219 -280 b 193 -259 202 -280 193 -270 b 194 -252 193 -256 193 -254 b 586 413 196 -247 582 410 b 592 417 588 415 590 416 "},va1:{x_min:0,x_max:294,ha:300,o:"m 138 381 b 147 381 141 381 144 381 b 221 299 191 381 221 341 b 194 238 221 278 213 255 b 159 210 190 234 161 212 b 78 148 157 209 81 151 b 78 148 78 148 78 148 b 95 106 78 144 88 119 b 121 77 103 88 108 83 b 156 69 132 72 144 69 b 259 127 193 69 232 91 b 273 140 266 137 269 138 b 279 141 274 141 276 141 b 294 124 287 141 294 134 b 292 117 294 123 294 120 b 255 66 289 113 261 72 b 126 -1 220 22 171 -1 b 4
|
||
|
},vc1:{x_min:-525.390625,x_max:524.03125,ha:535,o:"m -42 1067 b 1 1068 -27 1068 -13 1068 b 524 534 285 1068 524 831 b 0 0 524 231 283 0 b -118 12 -38 0 -77 4 b -487 335 -284 51 -424 174 b -525 534 -513 402 -525 469 b -42 1067 -525 802 -325 1042 m 38 1038 b 0 1039 25 1039 12 1039 b -460 725 -198 1039 -386 914 l -461 721 l 0 721 l 460 721 l 458 725 b 38 1038 390 899 224 1022 m 472 685 l 470 692 l 0 692 l -470 692 l -473 685 b -496 535 -488 638 -496 587 b -472 377 -496 483 -488 428 l -470 374 l 0 374 l 470 374 l 470 377 b 495 535 487 428 495 483 b 472 685 495 587 488 638 m 458 344 l 460 345 l 0 345 l -461 345 l -460 344 b -402 238 -454 323 -424 269 b 0 27 -303 98 -152 27 b 401 238 151 27 302 98 b 458 344 423 269 453 323 "},vc2:{x_min:0,x_max:337.5625,ha:344,o:"m 230 535 b 239 537 232 537 234 537 b 258 524 247 537 254 533 l 259 521 l 259 390 l 259 258 l 285 265 b 318 270 302 269 311 270 b 336 259 328 270 332 267 b 337 208 336 256 337 233 b 336 158 337 184 336 159 b 302 140 332 148 329 147 b 259 130 266 131 259 130 b 259 65 259 130 259 104 b 259 20 259 51 259 36 l 259 -88 l 285 -81 b 318 -76 302 -77 311 -76 b 332 -81 325 -76 328 -77 b 337 -123 336 -87 337 -86 l 337 -138 l 337 -154 b 332 -195 337 -191 336 -190 b 281 -210 328 -199 328 -199 b 262 -216 272 -213 264 -216 l 259 -216 l 259 -349 l 259 -483 l 258 -487 b 239 -499 254 -495 246 -499 b 220 -487 231 -499 223 -495 l 219 -483 l 217 -355 l 217 -227 l 216 -227 l 194 -233 l 152 -244 b 129 -249 140 -247 130 -249 b 127 -410 127 -249 127 -258 b 127 -576 127 -548 127 -573 b 126 -578 126 -577 126 -578 b 127 -580 126 -578 126 -580 b 133 -578 129 -580 130 -578 b 186 -557 152 -576 170 -569 b 197 -555 190 -556 194 -555 b 215 -573 206 -555 215 -562 l 215 -574 l 215 -580 l 209 -588 b 126 -802 172 -648 141 -727 b 107 -823 123 -817 118 -823 b 87 -798 95 -823 91 -817 b 5 -588 69 -718 40 -648 l 0 -580 l 0 -574 b 0 -573 0 -574 0 -574 b 16 -555 0 -562 6 -555 b 27 -557 20 -555 24 -556 b 81 -578 44 -569 62 -576 b 87 -580 84 -578 85 -580 b 88 -578 88 -580 88 -580 b 87 -576 88 -578 88 -577 b 87 -416 87 -573 87 -549 b 85 -260 87 -270 87 -260 b 85 -260 85 -260 85 -260 b 32 -273 74 -263 35 -273 b 13 -260 24 -273 16 -267 b 12 -209 12 -256 12 -256 l 12 -162 l 13 -158 b 74 -134 17 -148 17 -148 l 87 -131 l 87 -22 b 85 86 87 79 87 86 b 85 86 85 86 85 86 b 32 74 74 83 35 74 b 13 86 24 74 16 79 b 12 137 12 90 12 90 l 12 184 l 13 188 b 73 212 17 198 17 198 l 87 215 l 87 348 l 87 481 l 88 485 b 107 498 92 492 99 498 b 117 495 110 498 114 496 b 126 485 121 494 125 489 l 127 481 l 127 353 l 127 226 l 133 226 b 172 235 136 227 153 231 l 212 247 l 217 248 l 217 384 l 219 521 l 220 524 b 230 535 221 528 225 533 m 217 9 b 217 119 217 70 217 119 l 217 119 b 194 113 217 119 206 116 l 152 102 b 129 97 140 99 130 97 b 127 -12 127 97 127 91 l 127 -122 l 133 -120 b 172 -111 136 -119 153 -115 l 212 -101 l 217 -98 l 217 9 "},vc3:{x_min:-10.890625,x_max:299.4375,ha:294,o:"m 136 460 b 142 462 137 462 140 462 b 166 449 152 462 161 456 b 171 428 168 446 168 445 b 288 131 194 322 238 209 b 298 115 295 120 296 117 b 299 106 298 112 299 109 b 273 81 299 91 287 81 b 255 86 268 81 261 83 b 155 116 225 104 183 116 l 152 116 l 149 108 b 141 83 148 102 144 91 b 134 48 137 69 134 58 b 149 9 134 34 140 24 b 153 -1 152 5 153 1 b 149 -9 153 -5 152 -6 b 144 -11 148 -11 147 -11 b 122 2 138 -11 133 -6 b 95 61 104 20 95 38 b 107 108 95 74 99 90 b 108 113 107 111 108 112 b 107 113 108 113 108 113 b 102 113 106 113 104 113 b 31 86 76 108 53 98 b 14 80 24 81 20 80 b -10 106 0 80 -10 91 b 0 131 -10 115 -9 116 b 115 430 49 209 91 317 b 136 460 119 451 123 456 "}},cssFontWeight:"normal",ascender:1903,underlinePosition:-125,cssFontStyle:"normal",boundingBox:{yMin:-2065.375,xMin:-695.53125,yMax:1901.578125,xMax:1159.671875},resolution:1e3,original_font_information:{postscript_name:"Gonville-18",version_string:"Version 0.1.8904 ",vendor_url:"",full_font_name:"Gonville-18",font_family_name:"Gonville-18",copyright:"No copyright is claimed on this font file.",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"FontForge 2.0 :G
|
||
|
d&&e&&d.forEach(function(a){return a.setStave(e).preFormat()});var j=0,k=0,l=a/2;if(this.minTotalWidth=0,g.forEach(function(a){var d=h[a];b&&d.setContext(b),d.preFormat();var e=d.getWidth();c.minTotalWidth+=e;var f=d.getMetrics();j=j+k+f.extraLeftPx,d.setX(j),k=e-f.extraLeftPx}),this.minTotalWidth=j+k,this.hasMinTotalWidth=!0,!(a<=0)){var m=a-this.minTotalWidth,n=m/(this.totalTicks.value()*i),o=0;g.forEach(function(a,b){var c=g[b-1]||0,d=h[a],e=(a-c)*n;o+=e,d.setX(d.getX()+o),d.getCenterAlignedTickables().forEach(function(a){a.center_x_shift=l-d.getX()})}),1!==g.length&&(this.justifyWidth=a,this.lossHistory=[],this.evaluate())}}},{key:"evaluate",value:function(){function a(a,b){var c=d[a];void 0===c?d[a]={mean:b,count:1}:(c.count+=1,c.mean=(c.mean+b)/2)}var b=this,c=this.justifyWidth;this.contextGaps={total:0,gaps:[]},this.tickContexts.list.forEach(function(a,c){if(0!==c){var d=b.tickContexts.list[c-1],e=b.tickContexts.map[d],f=b.tickContexts.map[a],g=e.getMetrics(),h=e.getX()+g.width,i=f.getX(),j=i-h;b.contextGaps.total+=j,b.contextGaps.gaps.push({x1:h,x2:i}),f.getFormatterMetrics().freedom.left=j,e.getFormatterMetrics().freedom.right=j}});var d=this.durationStats={};this.voices.forEach(function(b){b.getTickables().forEach(function(b,d,e){var f=b.getTicks().clone().simplify().toString(),g=b.getMetrics(),h=b.getFormatterMetrics(),i=b.getX()+g.noteWidth+g.modRightPx+g.extraRightPx,j=0;if(d<e.length-1){var k=e[d+1],l=k.getMetrics(),m=k.getX()-l.modLeftPx-l.extraLeftPx;j=m-i,h.space.used=k.getX()-b.getX(),k.getFormatterMetrics().freedom.left=j}else j=c-i,h.space.used=c-b.getX();h.freedom.right=j,a(f,h.space.used)})});var e=0;return this.voices.forEach(function(a){a.getTickables().forEach(function(a){var b=a.getTicks().clone().simplify().toString(),c=a.getFormatterMetrics();c.iterations+=1,c.space.deviation=c.space.used-d[b].mean,c.duration=b,c.space.mean=d[b].mean,e+=Math.pow(d[b].mean,2)})}),this.totalCost=Math.sqrt(e),this.lossHistory.push(this.totalCost),this}},{key:"tune",value:function(){function a(a,b,c,d){a.setX(a.getX()+d),a.getFormatterMetrics().freedom.left+=d,a.getFormatterMetrics().freedom.right-=d,b&&(b.getFormatterMetrics().freedom.right+=d),c&&(c.getFormatterMetrics().freedom.left-=d)}var b=this,c=function(a){return a.reduce(function(a,b){return a+b})},d=0;return this.tickContexts.list.forEach(function(e,f,g){var h=b.tickContexts.map[e],i=f>0?b.tickContexts.map[g[f-1]]:null,j=f<g.length-1?b.tickContexts.map[g[f+1]]:null;a(h,i,j,d);var k=-c(h.getTickables().map(function(a){return a.getFormatterMetrics().space.deviation}));k>0?d=-Math.min(h.getFormatterMetrics().freedom.right,Math.abs(k)):k<0&&(d=j?Math.min(j.getFormatterMetrics().freedom.right,Math.abs(k)):0);var l=Math.min(5,Math.abs(d));d=d>0?l:-l}),this.evaluate()}},{key:"postFormat",value:function(){var a=function(a){return a.list.forEach(function(b){return a.map[b].postFormat()})};return a(this.modiferContexts),a(this.tickContexts),this}},{key:"joinVoices",value:function(a){return this.createModifierContexts(a),this.hasMinTotalWidth=!1,this}},{key:"format",value:function(a,b,c){var d={align_rests:!1,context:null,stave:null};return j.Vex.Merge(d,c),this.voices=a,this.alignRests(a,d.align_rests),this.createTickContexts(a),this.preFormat(b,d.context,a,d.stave),d.stave&&this.postFormat(),this}},{key:"formatToStave",value:function(a,b,c){var d=b.getNoteEndX()-b.getNoteStartX()-10;e("Formatting voices to width: ",d);var f={context:b.getContext()};return j.Vex.Merge(f,c),this.format(a,d,f)}}]),a}()},function(a,b,c){"use strict";function d(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return Array.from(a)}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b
|
||
|
a.save(),a.lineWidth=2,a.setFont(this.font.family,this.font.size,this.font.weight);for(var H=0;H<this.texts.length;H++){var I=this.texts[H],J=a.measureText(""+I.content).width,K=this.top_stave.getX()-J-24+I.options.shift_x,L=(this.top_stave.getYForLine(0)+this.bottom_stave.getBottomLineY())/2+I.options.shift_y;a.fillText(""+I.content,K,L+4)}a.restore()}}]),b}(j.Element)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];v.DEBUG&&l.Vex.L("Vex.Flow.StaveNote",b)}function h(a,b,c){var d=(b.isrest?0:1)*c;a.line+=d,a.maxLine+=d,a.minLine+=d,a.note.setKeyLine(0,a.note.getKeyLine(0)+d)}function i(a,b,c){var d=a.line-l.Vex.MidLine(b.minLine,c.maxLine);a.note.setKeyLine(0,a.note.getKeyLine(0)-d),a.line-=d,a.maxLine-=d,a.minLine-=d}Object.defineProperty(b,"__esModule",{value:!0}),b.StaveNote=void 0;var j=function w(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){var e=Object.getPrototypeOf(a);return null===e?void 0:w(e,b,c)}if("value"in d)return d.value;var f=d.get;if(void 0!==f)return f.call(c)},k=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),l=c(1),m=c(2),n=c(8),o=c(17),p=c(21),q=c(24),r=c(25),s=c(26),t=function(a){return o.Stem.WIDTH/(2*-a.getStemDirection())},u=function(a,b){return b===(a.getStemDirection()===o.Stem.UP?a.keyProps.length-1:0)},v=b.StaveNote=function(a){function b(a){d(this,b);var c=e(this,Object.getPrototypeOf(b).call(this,a));if(c.setAttribute("type","StaveNote"),c.keys=a.keys,c.clef=a.clef,c.octave_shift=a.octave_shift,c.beam=null,c.glyph=m.Flow.durationToGlyph(c.duration,c.noteType),!c.glyph)throw new l.Vex.RuntimeError("BadArguments","Invalid note initialization data (No glyph found): "+JSON.stringify(a));return c.displaced=!1,c.dot_shiftY=0,c.keyProps=[],c.use_default_head_x=!1,c.note_heads=[],c.modifiers=[],l.Vex.Merge(c.render_options,{glyph_font_scale:a.glyph_font_scale||m.Flow.DEFAULT_NOTATION_FONT_SCALE,stroke_px:a.stroke_px||b.DEFAULT_LEDGER_LINE_OFFSET}),c.calculateKeyProps(),c.buildStem(),a.auto_stem?c.autoStem():c.setStemDirection(a.stem_direction),c.reset(),c.buildFlag(),c.calcExtraPx(),c}return f(b,a),k(b,null,[{key:"format",value:function(a,c){if(!a||a.length<2)return!1;if(null!=a[0].getStave())return b.formatByY(a,c);for(var d=[],e=0;e<a.length;e++){var f=a[e].getKeyProps(),g=f[0].line,j=f[f.length-1].line,k=a[e].getStemDirection(),l=a[e].getStemLength()/10,m=a[e].getStemMinumumLength()/10,n=void 0;a[e].isRest()?(n=g+a[e].glyph.line_above,j=g-a[e].glyph.line_below):(n=1===k?f[f.length-1].line+l:f[f.length-1].line,j=1===k?f[0].line:f[0].line-l),d.push({line:f[0].line,maxLine:n,minLine:j,isrest:a[e].isRest(),stemDirection:k,stemMax:l,stemMin:m,voice_shift:a[e].getVoiceShiftWidth(),is_displaced:a[e].isDisplaced(),note:a[e]})}var o=d.length,p=d[0],q=o>2?d[1]:null,r=o>2?d[2]:d[1];2===o&&p.stemDirection===-1&&1===r.stemDirection&&(p=d[1],r=d[0]);var s=Math.max(p.voice_shift,r.voice_shift),t=0,u=void 0;if(2===o){var v=p.stemDirection===r.stemDirection?0:.5;return p.stemDirection===r.stemDirection&&p.minLine<=r.maxLine&&(p.isrest||(u=Math.abs(p.line-(r.maxLine+.5)),u=Math.max(u,p.stemMin),p.minLine=p.line-u,p.note.setStemLength(10*u))),p.minLine<=r.maxLine+v&&(p.isrest?h(p,r,1):r.isrest?h(r,p,-1):(t=s,p.stemDirection===r.stemDirection?p.n
|
||
|
this.applyTickMultiplier(c,b)}return this.tuplet=a,this}},{key:"addToModifierContext",value:function(a){this.modifierContext=a,this.preFormatted=!1}},{key:"addModifier",value:function(a){return this.modifiers.push(a),this.preFormatted=!1,this}},{key:"setTickContext",value:function(a){this.tickContext=a,this.preFormatted=!1}},{key:"preFormat",value:function(){this.preFormatted||(this.width=0,this.modifierContext&&(this.modifierContext.preFormat(),this.width+=this.modifierContext.getWidth()))}},{key:"postFormat",value:function(){return this.postFormatted?this:(this.postFormatted=!0,this)}},{key:"getIntrinsicTicks",value:function(){return this.intrinsicTicks}},{key:"setIntrinsicTicks",value:function(a){this.intrinsicTicks=a,this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}},{key:"getTickMultiplier",value:function(){return this.tickMultiplier}},{key:"applyTickMultiplier",value:function(a,b){this.tickMultiplier.multiply(a,b),this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}},{key:"setDuration",value:function(a){var b=a.numerator*(j.Flow.RESOLUTION/a.denominator);this.ticks=this.tickMultiplier.clone().multiply(b),this.intrinsicTicks=this.ticks.value()}}]),b}(i.Element)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0}),b.StemmableNote=void 0;var g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=c(1),i=c(2),j=c(17),k=c(4),l=c(22);b.StemmableNote=function(a){function b(a){d(this,b);var c=e(this,Object.getPrototypeOf(b).call(this,a));return c.setAttribute("type","StemmableNote"),c.stem=null,c.stemExtensionOverride=null,c.beam=null,c}return f(b,a),g(b,[{key:"getStem",value:function(){return this.stem}},{key:"setStem",value:function(a){return this.stem=a,this}},{key:"buildStem",value:function(){var a=new j.Stem;return this.setStem(a),this}},{key:"buildFlag",value:function(){var a=this.glyph,b=this.beam,c=null===b;if(a&&a.flag&&c){var d=this.getStemDirection()===j.Stem.DOWN?a.code_flag_downstem:a.code_flag_upstem;this.flag=new k.Glyph(d,this.render_options.glyph_font_scale)}}},{key:"getStemLength",value:function(){return j.Stem.HEIGHT+this.getStemExtension()}},{key:"getBeamCount",value:function(){var a=this.getGlyph();return a?a.beam_count:0}},{key:"getStemMinumumLength",value:function(){var a=i.Flow.durationToFraction(this.duration),b=a.value()<=1?0:20;switch(this.duration){case"8":null==this.beam&&(b=35);break;case"16":b=null==this.beam?35:25;break;case"32":b=null==this.beam?45:35;break;case"64":b=null==this.beam?50:40;break;case"128":b=null==this.beam?55:45}return b}},{key:"getStemDirection",value:function(){return this.stem_direction}},{key:"setStemDirection",value:function(a){if(a||(a=j.Stem.UP),a!==j.Stem.UP&&a!==j.Stem.DOWN)throw new h.Vex.RERR("BadArgument","Invalid stem direction: "+a);return this.stem_direction=a,this.stem&&(this.stem.setDirection(a),this.stem.setExtension(this.getStemExtension())),this.reset(),this.flag&&this.buildFlag(),this.beam=null,this.preFormatted&&this.preFormat(),this}},{key:"getStemX",value:function(){var a=this.getAbsoluteX()+this.x_shift,b=this.getAbsoluteX()+this.x_shift+this.getGlyphWidth(),c=this.stem_direction===j.Stem.DOWN?a:b;return c}},{key:"getCenterGlyphX",value:function(){return this.getAbsoluteX()+this.x_shift+this.getGlyphWidth()/2}},{key:"getStemExtension",val
|
||
|
}},{key:"getWidth",value:function(){return this.width}},{key:"draw",value:function(){var a=this;this.checkContext();var b=this.getNote();if(!b||null===this.index)throw new h.Vex.RuntimeError("NoAttachedNote","Can't draw notes without a parent note and parent note index.");this.setRendered();var c=function(b,c){var d=c.getTickContext(),e=d.getExtraPx(),f=d.getX()-e.left-e.extraLeft+a.getSpacingFromNextModifier();b.forEach(function(a){var b=a.getTickContext(),d=b.getX();a.setStave(c.stave),b.setX(f+d)})};c(this.subNotes,b,this.width),this.subNotes.forEach(function(b){return b.setContext(a.context).draw()})}}]),b}(j.Modifier)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];r.DEBUG&&i.Vex.L("Vex.Flow.GraceNoteGroup",b)}Object.defineProperty(b,"__esModule",{value:!0}),b.GraceNoteGroup=void 0;var h=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),i=c(1),j=c(2),k=c(25),l=c(14),m=c(18),n=c(15),o=c(33),p=c(34),q=c(20),r=b.GraceNoteGroup=function(a){function b(a,c){var f;d(this,b);var g=e(this,Object.getPrototypeOf(b).call(this));return g.setAttribute("type","GraceNoteGroup"),g.note=null,g.index=null,g.position=k.Modifier.Position.LEFT,g.grace_notes=a,g.width=0,g.preFormatted=!1,g.show_slur=c,g.slur=null,g.formatter=new l.Formatter,g.voice=new m.Voice({num_beats:4,beat_value:4,resolution:j.Flow.RESOLUTION}).setStrict(!1),g.render_options={slur_y_shift:0},g.voice.addTickables(g.grace_notes),f=g,e(g,f)}return f(b,a),h(b,null,[{key:"format",value:function(a,b){var c=4,d=0;if(!a||0===a.length)return!1;for(var e=[],f=null,g=0,h=0;h<a.length;++h){var i=a[h],j=i.getNote(),k=j.getCategory()===q.StaveNote.CATEGORY,l=k?c:d;if(k&&j!==f){for(var m=0;m<j.keys.length;++m){var n=j.getKeyProps()[m];g=n.displaced?j.getExtraLeftPx():g}f=j}e.push({shift:g,gracenote_group:i,spacing:l})}for(var o=e[0].shift,p=void 0,r=0;r<e.length;++r){var s=e[r].gracenote_group;s.preFormat(),p=s.getWidth()+e[r].spacing,o=Math.max(p,o)}for(var t=0;t<e.length;++t){var u=e[t].gracenote_group;p=u.getWidth()+e[t].spacing,u.setSpacingFromNextModifier(o-Math.min(p,o))}return b.left_shift+=o,!0}},{key:"CATEGORY",get:function(){return"gracenotegroups"}}]),h(b,[{key:"getCategory",value:function(){return b.CATEGORY}},{key:"preFormat",value:function(){this.preFormatted||(this.formatter.joinVoices([this.voice]).format([this.voice],0),this.setWidth(this.formatter.getMinTotalWidth()),this.preFormatted=!0)}},{key:"beamNotes",value:function(){if(this.grace_notes.length>1){var a=new n.Beam(this.grace_notes);a.render_options.beam_width=3,a.render_options.partial_beam_length=4,this.beam=a}return this}},{key:"setNote",value:function(a){this.note=a}},{key:"setWidth",value:function(a){this.width=a}},{key:"getWidth",value:function(){return this.width}},{key:"draw",value:function(){function a(a,b){var c=b.getTickContext(),e=c.getExtraPx(),f=c.getX()-e.left-e.extraLeft+d.getSpacingFromNextModifier();a.forEach(function(a){var c=a.getTickContext(),d=c.getX();a.setStave(b.stave),c.setX(f+d)})}var b=this;this.checkContext();var c=this.getNote();if(g("Drawing grace note group for:",c),!c||null===this.index)throw new i.Vex.RuntimeError("NoAttachedNote","Can't draw grace note without a parent note and parent note index.");this.setRendered();var d=this;if(a(this.grace_notes,c,this.width
|
||
|
this.preFormatted=!1,this}},{key:"preFormat",value:function(){if(this.preFormatted)return this;for(var a=0;a<this.tickables.length;++a){var b=this.tickables[a];b.preFormat();var c=b.getMetrics();this.extraLeftPx=Math.max(this.extraLeftPx,c.extraLeftPx+c.modLeftPx),this.extraRightPx=Math.max(this.extraRightPx,c.extraRightPx+c.modRightPx),this.notePx=Math.max(this.notePx,c.noteWidth),this.width=this.notePx+this.extraLeftPx+this.extraRightPx}return this}},{key:"postFormat",value:function(){return this.postFormatted?this:(this.postFormatted=!0,this)}}]),b}(i.Tickable)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];l.DEBUG&&i.Vex.L("Vex.Flow.Annotation",b)}Object.defineProperty(b,"__esModule",{value:!0}),b.Annotation=void 0;var h=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),i=c(1),j=c(2),k=c(25),l=b.Annotation=function(a){function b(a){d(this,b);var c=e(this,Object.getPrototypeOf(b).call(this));return c.setAttribute("type","Annotation"),c.note=null,c.index=null,c.text=a,c.justification=b.Justify.CENTER,c.vert_justification=b.VerticalJustify.TOP,c.font={family:"Arial",size:10,weight:""},c.setWidth(j.Flow.textWidth(a)),c}return f(b,a),h(b,null,[{key:"format",value:function(a,b){if(!a||0===a.length)return!1;for(var c=0,d=0;d<a.length;++d){var e=a[d];c=Math.max(e.getWidth(),c),e.getPosition()===k.Modifier.Position.ABOVE?(e.setTextLine(b.top_text_line),b.top_text_line++):(e.setTextLine(b.text_line),b.text_line++)}return b.left_shift+=c/2,b.right_shift+=c/2,!0}},{key:"CATEGORY",get:function(){return"annotations"}},{key:"Justify",get:function(){return{LEFT:1,CENTER:2,RIGHT:3,CENTER_STEM:4}}},{key:"JustifyString",get:function(){return{left:b.Justify.LEFT,right:b.Justify.RIGHT,center:b.Justify.CENTER,centerStem:b.Justify.CENTER_STEM}}},{key:"VerticalJustify",get:function(){return{TOP:1,CENTER:2,BOTTOM:3,CENTER_STEM:4}}},{key:"VerticalJustifyString",get:function(){return{above:b.VerticalJustify.TOP,top:b.VerticalJustify.TOP,below:b.VerticalJustify.BOTTOM,bottom:b.VerticalJustify.BOTTOM,center:b.VerticalJustify.CENTER,centerStem:b.VerticalJustify.CENTER_STEM}}}]),h(b,[{key:"getCategory",value:function(){return b.CATEGORY}},{key:"setFont",value:function(a,b,c){return this.font={family:a,size:b,weight:c},this}},{key:"setVerticalJustification",value:function(a){return this.vert_justification="string"==typeof a?b.VerticalJustifyString[a]:a,this}},{key:"getJustification",value:function(){return this.justification}},{key:"setJustification",value:function(a){return this.justification="string"==typeof a?b.JustifyString[a]:a,this}},{key:"draw",value:function(){if(this.checkContext(),!this.note)throw new i.Vex.RERR("NoNoteForAnnotation","Can't draw text annotation without an attached note.");this.setRendered();var a=this.note.getModifierStartXY(k.Modifier.Position.ABOVE,this.index);this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight);var c=this.context.measureText(this.text).width,d=this.context.measureText("m").width,e=void 0,f=void 0;e=this.justification===b.Justify.LEFT?a.x:this.justification===b.Justify.RIGHT?a.x-c:this.justification===b.Justify.CENTER?a.x-c/2:this.note.getStemX()-c/2;var h=void 0,l=void 0,m=this.note.hasStem(),n=this.note.getStave();if(m&&(h=this.note.getStem().getExte
|
||
|
g=h-+f.measureText(d).width-12);var j=a.getYForTopText(a.options.num_lines)+this.y_shift;return e&&i.Glyph.renderGlyph(f,h,j,40,"v4d",!0),f.fillText(d,g,j+5),f.restore(),this}}]),b}(h.StaveModifier)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0}),b.StaveSection=void 0;var g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=c(45);b.StaveSection=function(a){function b(a,c,f){d(this,b);var g=e(this,Object.getPrototypeOf(b).call(this));return g.setAttribute("type","StaveSection"),g.setWidth(16),g.section=a,g.x=c,g.shift_x=0,g.shift_y=f,g.font={family:"sans-serif",size:12,weight:"bold"},g}return f(b,a),g(b,null,[{key:"CATEGORY",get:function(){return"stavesection"}}]),g(b,[{key:"getCategory",value:function(){return b.CATEGORY}},{key:"setStaveSection",value:function(a){return this.section=a,this}},{key:"setShiftX",value:function(a){return this.shift_x=a,this}},{key:"setShiftY",value:function(a){return this.shift_y=a,this}},{key:"draw",value:function(a,b){var c=a.checkContext();this.setRendered(),c.save(),c.lineWidth=2,c.setFont(this.font.family,this.font.size,this.font.weight);var d=c.measureText(""+this.section).width,e=d+6;e<18&&(e=18);var f=20,g=a.getYForTopText(3)+this.shift_y,h=this.x+b;return c.beginPath(),c.lineWidth=2,c.rect(h,g,e,f),c.stroke(),h+=(e-d)/2,c.fillText(""+this.section,h,g+16),c.restore(),this}}]),b}(h.StaveModifier)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(b,"__esModule",{value:!0}),b.StaveTempo=void 0;var g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=c(2),i=c(25),j=c(45),k=c(4);b.StaveTempo=function(a){function b(a,c,f){d(this,b);var g=e(this,Object.getPrototypeOf(b).call(this));return g.setAttribute("type","StaveTempo"),g.tempo=a,g.position=i.Modifier.Position.ABOVE,g.x=c,g.shift_x=10,g.shift_y=f,g.font={family:"times",size:14,weight:"bold"},g.render_options={glyph_font_scale:30},g}return f(b,a),g(b,null,[{key:"CATEGORY",get:function(){return"stavetempo"}}]),g(b,[{key:"getCategory",value:function(){return b.CATEGORY}},{key:"setTempo",value:function(a){return this.tempo=a,this}},{key:"setShiftX",value:function(a){return this.shift_x=a,this}},{key:"setShiftY",value:function(a){return this.shift_y=a,this}},{key:"draw",value:function(a,b){var c=a.checkContext();this.setRendered();var d=this.render_options,e=d.glyph_font_scale/38,f=this.tempo.name,g=this.tempo.duration,i=this.tempo.dots,j=this.tempo.bpm,l=this.font,m=this.x+this.shift_x+b,n=a.getYForTopText(1)+this.shift_y;if(c.save(),f&&(c.setFont(l.family,l.size,l.weight),c.fillText(f,m,n),m+=c.measureTex
|
||
|
this.glyph.getWidth=function(){return c.width}}var g=this.positions.map(function(b){var c=b.str;return a.getYForLine(c-1)});return this.setYs(g),this.stem&&this.stem.setYBounds(this.getStemY(),this.getStemY()),this}},{key:"getPositions",value:function(){return this.positions}},{key:"addToModifierContext",value:function(a){this.setModifierContext(a);for(var b=0;b<this.modifiers.length;++b)this.modifierContext.addModifier(this.modifiers[b]);return this.modifierContext.addModifier(this),this.preFormatted=!1,this}},{key:"getTieRightX",value:function(){var a=this.getAbsoluteX(),b=this.glyph.getWidth();return a+=b/2,a+=-this.width/2+this.width+2}},{key:"getTieLeftX",value:function(){var a=this.getAbsoluteX(),b=this.glyph.getWidth();return a+=b/2,a-=this.width/2+2}},{key:"getModifierStartXY",value:function(a,b){if(!this.preFormatted)throw new k.Vex.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");if(0===this.ys.length)throw new k.Vex.RERR("NoYValues","No Y-Values calculated for this note.");var c=0;if(a===m.Modifier.Position.LEFT)c=-2;else if(a===m.Modifier.Position.RIGHT)c=this.width+2;else if(a===m.Modifier.Position.BELOW||a===m.Modifier.Position.ABOVE){var d=this.glyph.getWidth();c=d/2}return{x:this.getAbsoluteX()+c,y:this.ys[b]}}},{key:"getLineForRest",value:function(){return this.positions[0].str}},{key:"preFormat",value:function(){this.preFormatted||(this.modifierContext&&this.modifierContext.preFormat(),this.setPreFormatted(!0))}},{key:"getStemX",value:function(){return this.getCenterGlyphX()}},{key:"getStemY",value:function(){var a=this.stave.getNumLines(),b=-.5,c=a-.5,d=n.Stem.UP===this.stem_direction?b:c;return this.stave.getYForLine(d)}},{key:"getStemExtents",value:function(){return this.stem.getExtents()}},{key:"drawFlag",value:function(){var a=this.beam,b=this.glyph,c=this.context,d=this.stem,e=this.stem_direction,f=this.render_options,g=f.draw_stem,h=f.glyph_font_scale,i=null==a&&g;if(b.flag&&i){var j=this.getStemX()+1,k=this.getStemY()-d.getHeight(),l=e===n.Stem.DOWN?b.code_flag_downstem:b.code_flag_upstem;q.Glyph.renderGlyph(c,j,k,h,l)}}},{key:"drawModifiers",value:function(){var a=this;this.modifiers.forEach(function(b){("dots"!==b.getCategory()||a.render_options.draw_dots)&&(b.setContext(a.context),b.draw())})}},{key:"drawStemThrough",value:function(){var a=this.getStemX(),b=this.getStemY(),c=this.context,d=this.render_options.draw_stem_through_stave,e=this.render_options.draw_stem;if(e&&d){var f=this.stave.getNumLines(),i=this.positions.map(function(a){return a.str}),j=g(f,i),k=h(b,j,this.getStave(),this.getStemDirection());c.save(),c.setLineWidth(n.Stem.WIDTH),k.forEach(function(b){0!==b.length&&(c.beginPath(),c.moveTo(a,b[0]),c.lineTo(a,b[b.length-1]),c.stroke(),c.closePath())}),c.restore()}}},{key:"drawPositions",value:function(){for(var a=this.context,b=this.getAbsoluteX(),c=this.ys,d=0;d<this.positions.length;++d){var e=c[d]+this.render_options.y_shift,f=this.glyphs[d],g=this.glyph.getWidth(),h=b+g/2-f.getWidth()/2;if(a.clearRect(h-2,e-3,f.getWidth()+4,6),f.code)q.Glyph.renderGlyph(a,h,e,this.render_options.glyph_font_scale*this.render_options.scale,f.code);else{a.save(),a.setRawFont(this.render_options.font);var i=f.text.toString();a.fillText(i,h,e+5*this.render_options.scale),a.restore()}}}},{key:"draw",value:function(){if(this.checkContext(),!this.stave)throw new k.Vex.RERR("NoStave","Can't draw without a stave.");if(0===this.ys.length)throw new k.Vex.RERR("NoYValues","Can't draw note without Y values.");this.setRendered();var a=null==this.beam&&this.render_options.draw_stem;this.drawPositions(),this.drawStemThrough();var b=this.getStemX();this.stem.setNoteHeadXBounds(b,b),a&&(this.context.openGroup("stem",null,{pointerBBox:!0}),this.stem.setContext(this.context).draw(),this.context.closeGroup()),this.drawFlag(),this.drawModifiers()}}]),b}(o.StemmableNote)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't
|
||
|
c.font={family:"Arial",size:10,weight:""},c.render_options={padding_left:4,padding_right:3,line_width:1,line_dash:null,rounded_end:!0,color:null,draw_start_arrow:!1,draw_end_arrow:!1,arrowhead_length:10,arrowhead_angle:Math.PI/8,text_position_vertical:b.TextVerticalPosition.TOP,text_justification:b.TextJustification.CENTER},c.setNotes(a),c}return f(b,a),i(b,null,[{key:"TextVerticalPosition",get:function(){return{TOP:1,BOTTOM:2}}},{key:"TextJustification",get:function(){return{LEFT:1,CENTER:2,RIGHT:3}}}]),i(b,[{key:"setFont",value:function(a){return this.font=a,this}},{key:"setText",value:function(a){return this.text=a,this}},{key:"setNotes",value:function(a){if(!a.first_note&&!a.last_note)throw new j.Vex.RuntimeError("BadArguments","Notes needs to have either first_note or last_note set.");if(a.first_indices||(a.first_indices=[0]),a.last_indices||(a.last_indices=[0]),a.first_indices.length!==a.last_indices.length)throw new j.Vex.RuntimeError("BadArguments","Connected notes must have similar index sizes");return this.first_note=a.first_note,this.first_indices=a.first_indices,this.last_note=a.last_note,this.last_indices=a.last_indices,this}},{key:"applyLineStyle",value:function(){var a=this.checkContext(),b=this.render_options;b.line_dash&&a.setLineDash(b.line_dash),b.line_width&&a.setLineWidth(b.line_width),b.rounded_end?a.setLineCap("round"):a.setLineCap("square")}},{key:"applyFontStyle",value:function(){var a=this.checkContext();this.font&&a.setFont(this.font.family,this.font.size,this.font.weight),this.render_options.color&&(a.setStrokeStyle(this.render_options.color),a.setFillStyle(this.render_options.color))}},{key:"draw",value:function(){var a=this,c=this.checkContext();this.setRendered();var d=this.first_note,e=this.last_note,f=this.render_options;c.save(),this.applyLineStyle();var g=void 0,i=void 0;this.first_indices.forEach(function(b,j){var k=a.last_indices[j];g=d.getModifierStartXY(2,b),i=e.getModifierStartXY(1,k);var l=g.y>i.y;g.x+=d.getMetrics().modRightPx+f.padding_left,i.x-=e.getMetrics().modLeftPx+f.padding_right;var m=d.getGlyph().getWidth(),n=d.getKeyProps()[b].displaced;n&&1===d.getStemDirection()&&(g.x+=m+f.padding_left);var o=e.getKeyProps()[k].displaced;o&&e.getStemDirection()===-1&&(i.x-=m+f.padding_right),g.y+=l?-3:1,i.y+=l?2:0,h(c,g,i,a.render_options)}),c.restore();var j=c.measureText(this.text).width,k=f.text_justification,m=0;if(k===b.TextJustification.LEFT)m=g.x;else if(k===b.TextJustification.CENTER){var n=i.x-g.x,o=n/2+g.x;m=o-j/2}else k===b.TextJustification.RIGHT&&(m=i.x-j);var p=void 0,q=f.text_position_vertical;return q===b.TextVerticalPosition.TOP?p=d.getStave().getYForTopText():q===b.TextVerticalPosition.BOTTOM&&(p=d.getStave().getYForBottomText(l.Flow.TEXT_HEIGHT_OFFSET_HACK)),c.save(),this.applyFontStyle(),c.fillText(this.text,m,p),c.restore(),this}}]),b}(k.Element)},function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];m.DEBUG&&j.Vex.L("Vex.Flow.PedalMarking",b)}function h(a,b,c,d,e){var f=m.GLYPHS[a],g=new l.Glyph(f.code,e);g.render(b,c+f.x_shift,d+f.y_shift)}Object.defineProperty(b,"__esModule",{value:!0}),b.PedalMarking=void 0;var i=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),j=c(1),k=c(5),l=c(4),m=b.PedalMarking=function(a){function b(a){d(this,b);var c=e(this,Object
|
||
|
}}}},{key:"ACCIDENTAL",value:function(){return{expect:[this.ACCIDENTALS],maybe:!0}}},{key:"DOTS",value:function(){var a=this;return{expect:[this.DOT],zeroOrMore:!0,run:function(b){return a.builder.setNoteDots(b.matches[0])}}}},{key:"TYPE",value:function(){var a=this;return{expect:[this.SLASH,this.MAYBESLASH,this.TYPES],maybe:!0,run:function(b){return a.builder.setNoteType(b.matches[2])}}}},{key:"DURATION",value:function(){var a=this;return{expect:[this.SLASH,this.DURATIONS],maybe:!0,run:function(b){return a.builder.setNoteDuration(b.matches[1])}}}},{key:"OPTS",value:function(){return{expect:[this.LBRACKET,this.KEYVAL,this.KEYVALS,this.RBRACKET],maybe:!0}}},{key:"KEYVALS",value:function(){return{expect:[this.COMMA,this.KEYVAL],zeroOrMore:!0}}},{key:"KEYVAL",value:function(){var a=this,b=function(a){return a.slice(1,-1)};return{expect:[this.KEY,this.EQUALS,this.VAL],run:function(c){return a.builder.addNoteOption(c.matches[0],b(c.matches[2]))}}}},{key:"VAL",value:function(){return{expect:[this.SVAL,this.DVAL],or:!0}}},{key:"KEY",value:function(){return{token:"[a-zA-Z][a-zA-Z0-9]*"}}},{key:"DVAL",value:function(){return{token:'["][^"]*["]'}}},{key:"SVAL",value:function(){return{token:"['][^']*[']"}}},{key:"NOTENAME",value:function(){return{token:"[a-gA-G]"}}},{key:"OCTAVE",value:function(){return{token:"[0-9]+"}}},{key:"ACCIDENTALS",value:function(){return{token:"bbs|bb|bss|bs|b|db|d|##|#|n|\\+\\+-|\\+-|\\+\\+|\\+"}}},{key:"DURATIONS",value:function(){return{token:"[0-9whq]+"}}},{key:"TYPES",value:function(){return{token:"[rRsSxX]"}}},{key:"LPAREN",value:function(){return{token:"[(]"}}},{key:"RPAREN",value:function(){return{token:"[)]"}}},{key:"COMMA",value:function(){return{token:"[,]"}}},{key:"DOT",value:function(){return{token:"[.]"}}},{key:"SLASH",value:function(){return{token:"[/]"}}},{key:"MAYBESLASH",value:function(){return{token:"[/]?"}}},{key:"EQUALS",value:function(){return{token:"[=]"}}},{key:"LBRACKET",value:function(){return{token:"\\["}}},{key:"RBRACKET",value:function(){return{token:"\\]"}}},{key:"EOL",value:function(){return{token:"$"}}}]),a}(),r=function(){function a(b){e(this,a),this.factory=b,this.commitHooks=[],this.reset()}return k(a,[{key:"reset",value:function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options={stem:"auto",clef:"treble"},this.elements={notes:[],accidentals:[]},this.rollingDuration="8",this.resetPiece(),j(this.options,a)}},{key:"getFactory",value:function(){return this.factory}},{key:"getElements",value:function(){return this.elements}},{key:"addCommitHook",value:function(a){this.commitHooks.push(a)}},{key:"resetPiece",value:function(){f("resetPiece"),this.piece={chord:[],duration:this.rollingDuration,dots:0,type:void 0,options:{}}}},{key:"setNoteDots",value:function(a){f("setNoteDots:",a),a&&(this.piece.dots=a.length)}},{key:"setNoteDuration",value:function(a){f("setNoteDuration:",a),this.rollingDuration=this.piece.duration=a||this.rollingDuration}},{key:"setNoteType",value:function(a){f("setNoteType:",a),a&&(this.piece.type=a)}},{key:"addNoteOption",value:function(a,b){f("addNoteOption: key:",a,"value:",b),this.piece.options[a]=b}},{key:"addNote",value:function(a,b,c){f("addNote:",a,b,c),this.piece.chord.push({key:a,accid:b,octave:c})}},{key:"addSingleNote",value:function(a,b,c){f("addSingleNote:",a,b,c),this.addNote(a,b,c)}},{key:"addChord",value:function(a){var b=this;f("startChord"),"object"!==i(a[0])?this.addSingleNote(a[0]):a.forEach(function(a){a&&b.addNote.apply(b,d(a))}),f("endChord")}},{key:"commitPiece",value:function(){var a=this;f("commitPiece");var b=this.factory;if(b){var c=j({},this.options,this.piece.options),d=c.stem,e=c.clef,g="auto"===d.toLowerCase(),h=g||"up"!==d.toLowerCase()?m.StaveNote.STEM_DOWN:m.StaveNote.STEM_UP,i=this.piece,k=i.chord,l=i.duration,n=i.dots,o=i.type,p=k.map(function(a){return a.key+"/"+a.octave}),q=b.StaveNote({keys:p,duration:l,dots:n,type:o,clef:e,auto_stem:g});g||q.setStemDirection(h);var r=k.map(function(a){return a.accid||null});r.forEach(function(a,c){a&&q.addAccidental(c,b.Accidental({type:a}))});for(var s=
|
||
|
//# sourceMappingURL=vexflow-min.js.map
|