index-legacy-0440abb2.js 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. (function(){function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},_get.apply(this,arguments)}function _wrapNativeSuper2(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper2=function(e){if(null===e||!_isNativeFunction2(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct2(e,arguments,_getPrototypeOf2(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(n,e)},_wrapNativeSuper2(e)}function _construct2(e,t,n){return _construct2=_isNativeReflectConstruct2()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf2(i,n.prototype),i},_construct2.apply(null,arguments)}function _isNativeFunction2(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _inherits2(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf2(e,t)}function _setPrototypeOf2(e,t){return _setPrototypeOf2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_setPrototypeOf2(e,t)}function _createSuper2(e){var t=_isNativeReflectConstruct2();return function(){var n,r=_getPrototypeOf2(e);if(t){var i=_getPrototypeOf2(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn2(this,n)}}function _possibleConstructorReturn2(e,t){if(t&&("object"===_typeof2(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized2(e)}function _assertThisInitialized2(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct2(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function set(e,t,n,r){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,t,n,r){var i,a=_superPropBase(e,t);if(a){if((i=Object.getOwnPropertyDescriptor(a,t)).set)return i.set.call(r,n),!0;if(!i.writable)return!1}if(i=Object.getOwnPropertyDescriptor(r,t)){if(!i.writable)return!1;i.value=n,Object.defineProperty(r,t,i)}else _defineProperty2(r,t,n);return!0},set(e,t,n,r)}function _set(e,t,n,r,i){if(!set(e,t,n,r||e)&&i)throw new TypeError("failed to set property");return n}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf2(e)););return e}function _getPrototypeOf2(e){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf2(e)}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(M){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new E(i||[]);return r(o,"_invoke",{value:S(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=u;var h={};function d(){}function f(){}function p(){}var v={};l(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==t&&n.call(g,a)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function i(r,a,o,s){var l=c(e[r],e,a);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==_typeof2(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(h).then((function(e){u.value=e,o(u)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return C()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(A.prototype),l(A.prototype,o,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new A(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),l(y,s,"Generator"),l(y,a,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=k,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator2(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){asyncGeneratorStep(a,r,i,o,s,"next",e)}function s(e){asyncGeneratorStep(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty2(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _classCallCheck2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey(r.key),r)}}function _createClass2(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _typeof2(e){return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof2(e)}function _defineProperty2(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof2(t)?t:String(t)}function _toPrimitive(e,t){if("object"!==_typeof2(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_typeof2(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray2(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray2(e){return _arrayWithoutHoles2(e)||_iterableToArray2(e)||_unsupportedIterableToArray2(e)||_nonIterableSpread2()}function _nonIterableSpread2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray2(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles2(e){if(Array.isArray(e))return _arrayLikeToArray2(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray2(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}System.register([],(function(exports,module){"use strict";var __vite_style__=document.createElement("style");return __vite_style__.textContent=':root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: .10667rem;--van-padding-xs: .21333rem;--van-padding-sm: .32rem;--van-padding-md: .42667rem;--van-padding-lg: .64rem;--van-padding-xl: .85333rem;--van-font-bold: 600;--van-font-size-xs: .26667rem;--van-font-size-sm: .32rem;--van-font-size-md: .37333rem;--van-font-size-lg: .42667rem;--van-line-height-xs: .37333rem;--van-line-height-sm: .48rem;--van-line-height-md: .53333rem;--van-line-height-lg: .58667rem;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: .02667rem;--van-radius-sm: .05333rem;--van-radius-md: .10667rem;--van-radius-lg: .21333rem;--van-radius-max: 26.64rem}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}:root{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 1.33333rem}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}:root{--van-badge-size: .42667rem;--van-badge-color: var(--van-white);--van-badge-padding: 0 .08rem;--van-badge-font-size: var(--van-font-size-sm);--van-badge-font-weight: var(--van-font-bold);--van-badge-border-width: var(--van-border-width);--van-badge-background: var(--van-danger-color);--van-badge-dot-color: var(--van-danger-color);--van-badge-dot-size: .21333rem;--van-badge-font: -apple-system-font, helvetica neue, arial, sans-serif}.van-badge{display:inline-block;box-sizing:border-box;min-width:var(--van-badge-size);padding:var(--van-badge-padding);color:var(--van-badge-color);font-weight:var(--van-badge-font-weight);font-size:var(--van-badge-font-size);font-family:var(--van-badge-font);line-height:1.2;text-align:center;background:var(--van-badge-background);border:var(--van-badge-border-width) solid var(--van-background-2);border-radius:var(--van-radius-max)}.van-badge--fixed{position:absolute;transform-origin:100%}.van-badge--top-left{top:0;left:0;transform:translate(-50%,-50%)}.van-badge--top-right{top:0;right:0;transform:translate(50%,-50%)}.van-badge--bottom-left{bottom:0;left:0;transform:translate(-50%,50%)}.van-badge--bottom-right{bottom:0;right:0;transform:translate(50%,50%)}.van-badge--dot{width:var(--van-badge-dot-size);min-width:0;height:var(--van-badge-dot-size);background:var(--van-badge-dot-color);border-radius:100%;border:none;padding:0}.van-badge__wrapper{position:relative;display:inline-block}.van-icon{position:relative;display:inline-block;font:.37333rem/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\\e6af"}.van-icon-eye:before{content:"\\e6b0"}.van-icon-enlarge:before{content:"\\e6b1"}.van-icon-expand-o:before{content:"\\e6b2"}.van-icon-eye-o:before{content:"\\e6b3"}.van-icon-expand:before{content:"\\e6b4"}.van-icon-filter-o:before{content:"\\e6b5"}.van-icon-fire:before{content:"\\e6b6"}.van-icon-fail:before{content:"\\e6b7"}.van-icon-failure:before{content:"\\e6b8"}.van-icon-fire-o:before{content:"\\e6b9"}.van-icon-flag-o:before{content:"\\e6ba"}.van-icon-font:before{content:"\\e6bb"}.van-icon-font-o:before{content:"\\e6bc"}.van-icon-gem-o:before{content:"\\e6bd"}.van-icon-flower-o:before{content:"\\e6be"}.van-icon-gem:before{content:"\\e6bf"}.van-icon-gift-card:before{content:"\\e6c0"}.van-icon-friends:before{content:"\\e6c1"}.van-icon-friends-o:before{content:"\\e6c2"}.van-icon-gold-coin:before{content:"\\e6c3"}.van-icon-gold-coin-o:before{content:"\\e6c4"}.van-icon-good-job-o:before{content:"\\e6c5"}.van-icon-gift:before{content:"\\e6c6"}.van-icon-gift-o:before{content:"\\e6c7"}.van-icon-gift-card-o:before{content:"\\e6c8"}.van-icon-good-job:before{content:"\\e6c9"}.van-icon-home-o:before{content:"\\e6ca"}.van-icon-goods-collect:before{content:"\\e6cb"}.van-icon-graphic:before{content:"\\e6cc"}.van-icon-goods-collect-o:before{content:"\\e6cd"}.van-icon-hot-o:before{content:"\\e6ce"}.van-icon-info:before{content:"\\e6cf"}.van-icon-hotel-o:before{content:"\\e6d0"}.van-icon-info-o:before{content:"\\e6d1"}.van-icon-hot-sale-o:before{content:"\\e6d2"}.van-icon-hot:before{content:"\\e6d3"}.van-icon-like:before{content:"\\e6d4"}.van-icon-idcard:before{content:"\\e6d5"}.van-icon-invitation:before{content:"\\e6d6"}.van-icon-like-o:before{content:"\\e6d7"}.van-icon-hot-sale:before{content:"\\e6d8"}.van-icon-location-o:before{content:"\\e6d9"}.van-icon-location:before{content:"\\e6da"}.van-icon-label:before{content:"\\e6db"}.van-icon-lock:before{content:"\\e6dc"}.van-icon-label-o:before{content:"\\e6dd"}.van-icon-map-marked:before{content:"\\e6de"}.van-icon-logistics:before{content:"\\e6df"}.van-icon-manager:before{content:"\\e6e0"}.van-icon-more:before{content:"\\e6e1"}.van-icon-live:before{content:"\\e6e2"}.van-icon-manager-o:before{content:"\\e6e3"}.van-icon-medal:before{content:"\\e6e4"}.van-icon-more-o:before{content:"\\e6e5"}.van-icon-music-o:before{content:"\\e6e6"}.van-icon-music:before{content:"\\e6e7"}.van-icon-new-arrival-o:before{content:"\\e6e8"}.van-icon-medal-o:before{content:"\\e6e9"}.van-icon-new-o:before{content:"\\e6ea"}.van-icon-free-postage:before{content:"\\e6eb"}.van-icon-newspaper-o:before{content:"\\e6ec"}.van-icon-new-arrival:before{content:"\\e6ed"}.van-icon-minus:before{content:"\\e6ee"}.van-icon-orders-o:before{content:"\\e6ef"}.van-icon-new:before{content:"\\e6f0"}.van-icon-paid:before{content:"\\e6f1"}.van-icon-notes-o:before{content:"\\e6f2"}.van-icon-other-pay:before{content:"\\e6f3"}.van-icon-pause-circle:before{content:"\\e6f4"}.van-icon-pause:before{content:"\\e6f5"}.van-icon-pause-circle-o:before{content:"\\e6f6"}.van-icon-peer-pay:before{content:"\\e6f7"}.van-icon-pending-payment:before{content:"\\e6f8"}.van-icon-passed:before{content:"\\e6f9"}.van-icon-plus:before{content:"\\e6fa"}.van-icon-phone-circle-o:before{content:"\\e6fb"}.van-icon-phone-o:before{content:"\\e6fc"}.van-icon-printer:before{content:"\\e6fd"}.van-icon-photo-fail:before{content:"\\e6fe"}.van-icon-phone:before{content:"\\e6ff"}.van-icon-photo-o:before{content:"\\e700"}.van-icon-play-circle:before{content:"\\e701"}.van-icon-play:before{content:"\\e702"}.van-icon-phone-circle:before{content:"\\e703"}.van-icon-point-gift-o:before{content:"\\e704"}.van-icon-point-gift:before{content:"\\e705"}.van-icon-play-circle-o:before{content:"\\e706"}.van-icon-shrink:before{content:"\\e707"}.van-icon-photo:before{content:"\\e708"}.van-icon-qr:before{content:"\\e709"}.van-icon-qr-invalid:before{content:"\\e70a"}.van-icon-question-o:before{content:"\\e70b"}.van-icon-revoke:before{content:"\\e70c"}.van-icon-replay:before{content:"\\e70d"}.van-icon-service:before{content:"\\e70e"}.van-icon-question:before{content:"\\e70f"}.van-icon-search:before{content:"\\e710"}.van-icon-refund-o:before{content:"\\e711"}.van-icon-service-o:before{content:"\\e712"}.van-icon-scan:before{content:"\\e713"}.van-icon-share:before{content:"\\e714"}.van-icon-send-gift-o:before{content:"\\e715"}.van-icon-share-o:before{content:"\\e716"}.van-icon-setting:before{content:"\\e717"}.van-icon-points:before{content:"\\e718"}.van-icon-photograph:before{content:"\\e719"}.van-icon-shop:before{content:"\\e71a"}.van-icon-shop-o:before{content:"\\e71b"}.van-icon-shop-collect-o:before{content:"\\e71c"}.van-icon-shop-collect:before{content:"\\e71d"}.van-icon-smile:before{content:"\\e71e"}.van-icon-shopping-cart-o:before{content:"\\e71f"}.van-icon-sign:before{content:"\\e720"}.van-icon-sort:before{content:"\\e721"}.van-icon-star-o:before{content:"\\e722"}.van-icon-smile-comment-o:before{content:"\\e723"}.van-icon-stop:before{content:"\\e724"}.van-icon-stop-circle-o:before{content:"\\e725"}.van-icon-smile-o:before{content:"\\e726"}.van-icon-star:before{content:"\\e727"}.van-icon-success:before{content:"\\e728"}.van-icon-stop-circle:before{content:"\\e729"}.van-icon-records:before{content:"\\e72a"}.van-icon-shopping-cart:before{content:"\\e72b"}.van-icon-tosend:before{content:"\\e72c"}.van-icon-todo-list:before{content:"\\e72d"}.van-icon-thumb-circle-o:before{content:"\\e72e"}.van-icon-thumb-circle:before{content:"\\e72f"}.van-icon-umbrella-circle:before{content:"\\e730"}.van-icon-underway:before{content:"\\e731"}.van-icon-upgrade:before{content:"\\e732"}.van-icon-todo-list-o:before{content:"\\e733"}.van-icon-tv-o:before{content:"\\e734"}.van-icon-underway-o:before{content:"\\e735"}.van-icon-user-o:before{content:"\\e736"}.van-icon-vip-card-o:before{content:"\\e737"}.van-icon-vip-card:before{content:"\\e738"}.van-icon-send-gift:before{content:"\\e739"}.van-icon-wap-home:before{content:"\\e73a"}.van-icon-wap-nav:before{content:"\\e73b"}.van-icon-volume-o:before{content:"\\e73c"}.van-icon-video:before{content:"\\e73d"}.van-icon-wap-home-o:before{content:"\\e73e"}.van-icon-volume:before{content:"\\e73f"}.van-icon-warning:before{content:"\\e740"}.van-icon-weapp-nav:before{content:"\\e741"}.van-icon-wechat-pay:before{content:"\\e742"}.van-icon-warning-o:before{content:"\\e743"}.van-icon-wechat:before{content:"\\e744"}.van-icon-setting-o:before{content:"\\e745"}.van-icon-youzan-shield:before{content:"\\e746"}.van-icon-warn-o:before{content:"\\e747"}.van-icon-smile-comment:before{content:"\\e748"}.van-icon-user-circle-o:before{content:"\\e749"}.van-icon-video-o:before{content:"\\e74a"}.van-icon-add-square:before{content:"\\e65c"}.van-icon-add:before{content:"\\e65d"}.van-icon-arrow-down:before{content:"\\e65e"}.van-icon-arrow-up:before{content:"\\e65f"}.van-icon-arrow:before{content:"\\e660"}.van-icon-after-sale:before{content:"\\e661"}.van-icon-add-o:before{content:"\\e662"}.van-icon-alipay:before{content:"\\e663"}.van-icon-ascending:before{content:"\\e664"}.van-icon-apps-o:before{content:"\\e665"}.van-icon-aim:before{content:"\\e666"}.van-icon-award:before{content:"\\e667"}.van-icon-arrow-left:before{content:"\\e668"}.van-icon-award-o:before{content:"\\e669"}.van-icon-audio:before{content:"\\e66a"}.van-icon-bag-o:before{content:"\\e66b"}.van-icon-balance-list:before{content:"\\e66c"}.van-icon-back-top:before{content:"\\e66d"}.van-icon-bag:before{content:"\\e66e"}.van-icon-balance-pay:before{content:"\\e66f"}.van-icon-balance-o:before{content:"\\e670"}.van-icon-bar-chart-o:before{content:"\\e671"}.van-icon-bars:before{content:"\\e672"}.van-icon-balance-list-o:before{content:"\\e673"}.van-icon-birthday-cake-o:before{content:"\\e674"}.van-icon-bookmark:before{content:"\\e675"}.van-icon-bill:before{content:"\\e676"}.van-icon-bell:before{content:"\\e677"}.van-icon-browsing-history-o:before{content:"\\e678"}.van-icon-browsing-history:before{content:"\\e679"}.van-icon-bookmark-o:before{content:"\\e67a"}.van-icon-bulb-o:before{content:"\\e67b"}.van-icon-bullhorn-o:before{content:"\\e67c"}.van-icon-bill-o:before{content:"\\e67d"}.van-icon-calendar-o:before{content:"\\e67e"}.van-icon-brush-o:before{content:"\\e67f"}.van-icon-card:before{content:"\\e680"}.van-icon-cart-o:before{content:"\\e681"}.van-icon-cart-circle:before{content:"\\e682"}.van-icon-cart-circle-o:before{content:"\\e683"}.van-icon-cart:before{content:"\\e684"}.van-icon-cash-on-deliver:before{content:"\\e685"}.van-icon-cash-back-record:before{content:"\\e686"}.van-icon-cashier-o:before{content:"\\e687"}.van-icon-chart-trending-o:before{content:"\\e688"}.van-icon-certificate:before{content:"\\e689"}.van-icon-chat:before{content:"\\e68a"}.van-icon-clear:before{content:"\\e68b"}.van-icon-chat-o:before{content:"\\e68c"}.van-icon-checked:before{content:"\\e68d"}.van-icon-clock:before{content:"\\e68e"}.van-icon-clock-o:before{content:"\\e68f"}.van-icon-close:before{content:"\\e690"}.van-icon-closed-eye:before{content:"\\e691"}.van-icon-circle:before{content:"\\e692"}.van-icon-cluster-o:before{content:"\\e693"}.van-icon-column:before{content:"\\e694"}.van-icon-comment-circle-o:before{content:"\\e695"}.van-icon-cluster:before{content:"\\e696"}.van-icon-comment:before{content:"\\e697"}.van-icon-comment-o:before{content:"\\e698"}.van-icon-comment-circle:before{content:"\\e699"}.van-icon-completed:before{content:"\\e69a"}.van-icon-credit-pay:before{content:"\\e69b"}.van-icon-coupon:before{content:"\\e69c"}.van-icon-debit-pay:before{content:"\\e69d"}.van-icon-coupon-o:before{content:"\\e69e"}.van-icon-contact:before{content:"\\e69f"}.van-icon-descending:before{content:"\\e6a0"}.van-icon-desktop-o:before{content:"\\e6a1"}.van-icon-diamond-o:before{content:"\\e6a2"}.van-icon-description:before{content:"\\e6a3"}.van-icon-delete:before{content:"\\e6a4"}.van-icon-diamond:before{content:"\\e6a5"}.van-icon-delete-o:before{content:"\\e6a6"}.van-icon-cross:before{content:"\\e6a7"}.van-icon-edit:before{content:"\\e6a8"}.van-icon-ellipsis:before{content:"\\e6a9"}.van-icon-down:before{content:"\\e6aa"}.van-icon-discount:before{content:"\\e6ab"}.van-icon-ecard-pay:before{content:"\\e6ac"}.van-icon-envelop-o:before{content:"\\e6ae"}.van-icon-shield-o:before{content:"\\e74b"}.van-icon-guide-o:before{content:"\\e74c"}.van-icon-cash-o:before{content:"\\e74d"}.van-icon-qq:before{content:"\\e74e"}.van-icon-wechat-moments:before{content:"\\e74f"}.van-icon-weibo:before{content:"\\e750"}.van-icon-link-o:before{content:"\\e751"}.van-icon-miniprogram-o:before{content:"\\e752"}@font-face{font-weight:400;font-family:vant-icon;font-style:normal;font-display:auto;src:url(data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAGAgAA0AAAAA34AAAF/FAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCShEICoOWIIK6dAuDdAABNgIkA4N6BCAFhQ4HlRUb9q51B8h1O4AkUtvLGIkQNg4Ake1DZ///x+TGmFAifdkzRYUNWmGzVcusxJ63YJ8dHfe+KIHghunNX2CmdJrQVCF2JKmxNGunPaLGLvxCy+jknqsM//A/rYfPwLaRP8nJOzzfNt9HwIMvl8r/CgiCeCKKoPyvNyB44Ql4Vl53giaWHXaYttIOq3WvzNrEaldtbbXOpW7Zqa3WypXYtZXZWqtdMbBtzM06zF0dRqJN/Ndt392fEw04xCThNMtyiZNmgkBa1Nl/EysgV0oVx3IdupYPgKbHI01//pc5q27DbFW3JCeHiJYV2JsALbI/0lf6BmZmEe4JQL/lLdsCPrbr802ftjhV8OHfuSqvwEmCnESQXYdiayIRZAVd9lRXrv1Nfp9EsLlJvKi0HRPwyMmvzTuXn9j0kxrQIQ6QAzcGN8etbYwZPI8WAH7gx3em0q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Ok0TKFlzQar5CaHZvUJO6p5ABTrNgwZTh3KE/AlA3DVB2D0SDTJwl/PcRsLeGWZv9wG+4Rmqkm4AYWxRBhM8lqCs0UOAcEKgfIq2SBVEYSIyErVbvC6yunDZQUPlhm+O6t/u3N/mpuiKxcqyEZgSrNHhiMQ5zrT92G1R1hoFhlS35bOXNIyGkDJeoyAbAkmJNMKiAP9sRdMa+SKbMtyQdrBjdx2SB2VTASFqoeAmD2Q5Y1ZPWPg5Qq9LkVJO1/uCCK7kcvQEsiWlZ+VTuGTwJJrAKmHnkGuN422fVBRQjzt9qM+5Ox6s5QVg4gVg5LQBoX3C7GhrqYaYjTjwBZ0QP3x4LjrSRh9MdIGqCPQ49p9TU2cdeoQ7zCq9klMIUfC5P6x0E9ljP3FQeCEF9xrhjejj3vzawWaGmOTmx+PBAtkWJR6tK0JknDigh9nbeE0Ip7/fENE3FZrlNJoLfJDocOBqsn4XBu8ZkIz4U1dSo0WUtTSIFTMpnvOXQnzC5168OSoXtiSoUwP1Z7UG0OrdjUeEwomR5rksSsFCNa42owjR9etIzk7opSs9zRa/UaCHZpQWfYCqqReW8cmYIchGw5beCBiLvIXGzxVgdT5tdK6rTA6DUe9Wo5yPFyEsfVFIkS1WsQBxlcHjbzepoEE294LBlX2+xeJJN0W0NBBi3YKG4AxORuIiJSN5Jli7eylPnJKdZ/hSjhTnkXX14B2LVcFlg/e25n2VDInLC42mF8130th1+ipl8NuQctrmzOh6QXr2u8PuPVjpiJQQ/D0aa+kvm7SXPASXTDJrwnkOufHqA9pB7CjBY6ZoXL569Y9XbjzTVF0jrVfSxCbSOdSwoHMCW21qCOMFaC3tQO33qPpVLl3iF3PBhKhPjCGQ9IYp3L6ygBAAA=) format("woff2"),url(//at.alicdn.com/t/c/font_2553510_ovbl29ce9ud.woff?t=1672541115585) format("woff")}.van-icon__image{display:block;width:1em;height:1em;object-fit:contain}:root{--van-skeleton-image-size: 2.56rem;--van-skeleton-image-radius: .64rem}.van-skeleton-image{display:flex;width:var(--van-skeleton-image-size);height:var(--van-skeleton-image-size);align-items:center;justify-content:center;background:var(--van-active-color)}.van-skeleton-image--round{border-radius:var(--van-skeleton-image-radius)}.van-skeleton-image__icon{width:calc(var(--van-skeleton-image-size) / 2);height:calc(var(--van-skeleton-image-size) / 2);font-size:calc(var(--van-skeleton-image-size) / 2);color:var(--van-gray-5)}:root{--van-rate-icon-size: .53333rem;--van-rate-icon-gutter: var(--van-padding-base);--van-rate-icon-void-color: var(--van-gray-5);--van-rate-icon-full-color: var(--van-danger-color);--van-rate-icon-disabled-color: var(--van-gray-5)}.van-rate{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap}.van-rate__item{position:relative}.van-rate__item:not(:last-child){padding-right:var(--van-rate-icon-gutter)}.van-rate__icon{display:block;width:1em;color:var(--van-rate-icon-void-color);font-size:var(--van-rate-icon-size)}.van-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.van-rate__icon--full{color:var(--van-rate-icon-full-color)}.van-rate__icon--disabled{color:var(--van-rate-icon-disabled-color)}.van-rate--disabled{cursor:not-allowed}.van-rate--readonly{cursor:default}:root{--van-notice-bar-height: 1.06667rem;--van-notice-bar-padding: 0 var(--van-padding-md);--van-notice-bar-wrapable-padding: var(--van-padding-xs) var(--van-padding-md);--van-notice-bar-text-color: var(--van-orange-dark);--van-notice-bar-font-size: var(--van-font-size-md);--van-notice-bar-line-height: .64rem;--van-notice-bar-background: var(--van-orange-light);--van-notice-bar-icon-size: .42667rem;--van-notice-bar-icon-min-width: .64rem}.van-notice-bar{position:relative;display:flex;align-items:center;height:var(--van-notice-bar-height);padding:var(--van-notice-bar-padding);color:var(--van-notice-bar-text-color);font-size:var(--van-notice-bar-font-size);line-height:var(--van-notice-bar-line-height);background:var(--van-notice-bar-background)}.van-notice-bar__left-icon,.van-notice-bar__right-icon{min-width:var(--van-notice-bar-icon-min-width);font-size:var(--van-notice-bar-icon-size)}.van-notice-bar__right-icon{text-align:right;cursor:pointer}.van-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.van-notice-bar__content.van-ellipsis{max-width:100%}.van-notice-bar--wrapable{height:auto;padding:var(--van-notice-bar-wrapable-padding)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}:root{--van-nav-bar-height: 1.22667rem;--van-nav-bar-background: var(--van-background-2);--van-nav-bar-arrow-size: .42667rem;--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background);-webkit-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}:root{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: .85333rem;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: .85333rem;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}:root{--van-back-top-size: 1.06667rem;--van-back-top-right: .8rem;--van-back-top-bottom: 1.06667rem;--van-back-top-z-index: 100;--van-back-top-icon-size: .53333rem;--van-back-top-text-color: #fff;--van-back-top-background: var(--van-blue)}.van-back-top{position:fixed;display:flex;align-items:center;justify-content:center;width:var(--van-back-top-size);height:var(--van-back-top-size);right:var(--van-back-top-right);bottom:var(--van-back-top-bottom);z-index:var(--van-back-top-z-index);cursor:pointer;color:var(--van-back-top-text-color);border-radius:var(--van-radius-max);box-shadow:0 .05333rem .21333rem rgba(0,0,0,.12);transform:scale(0);transition:var(--van-duration-base) cubic-bezier(.25,.8,.5,1);background-color:var(--van-back-top-background)}.van-back-top:active{opacity:var(--van-active-opacity)}.van-back-top--active{transform:scale(1)}.van-back-top__icon{font-size:var(--van-back-top-icon-size);font-weight:var(--van-font-bold)}:root{--van-tag-padding: 0 var(--van-padding-base);--van-tag-text-color: var(--van-white);--van-tag-font-size: var(--van-font-size-sm);--van-tag-radius: .05333rem;--van-tag-line-height: .42667rem;--van-tag-medium-padding: .05333rem .16rem;--van-tag-large-padding: var(--van-padding-base) var(--van-padding-xs);--van-tag-large-radius: var(--van-radius-md);--van-tag-large-font-size: var(--van-font-size-md);--van-tag-round-radius: var(--van-radius-max);--van-tag-danger-color: var(--van-danger-color);--van-tag-primary-color: var(--van-primary-color);--van-tag-success-color: var(--van-success-color);--van-tag-warning-color: var(--van-warning-color);--van-tag-default-color: var(--van-gray-6);--van-tag-plain-background: var(--van-background-2)}.van-tag{position:relative;display:inline-flex;align-items:center;padding:var(--van-tag-padding);color:var(--van-tag-text-color);font-size:var(--van-tag-font-size);line-height:var(--van-tag-line-height);border-radius:var(--van-tag-radius)}.van-tag--default{background:var(--van-tag-default-color)}.van-tag--default.van-tag--plain{color:var(--van-tag-default-color)}.van-tag--danger{background:var(--van-tag-danger-color)}.van-tag--danger.van-tag--plain{color:var(--van-tag-danger-color)}.van-tag--primary{background:var(--van-tag-primary-color)}.van-tag--primary.van-tag--plain{color:var(--van-tag-primary-color)}.van-tag--success{background:var(--van-tag-success-color)}.van-tag--success.van-tag--plain{color:var(--van-tag-success-color)}.van-tag--warning{background:var(--van-tag-warning-color)}.van-tag--warning.van-tag--plain{color:var(--van-tag-warning-color)}.van-tag--plain{background:var(--van-tag-plain-background);border-color:currentColor}.van-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:.02667rem solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.van-tag--medium{padding:var(--van-tag-medium-padding)}.van-tag--large{padding:var(--van-tag-large-padding);font-size:var(--van-tag-large-font-size);border-radius:var(--van-tag-large-radius)}.van-tag--mark{border-radius:0 var(--van-tag-round-radius) var(--van-tag-round-radius) 0}.van-tag--mark:after{display:block;width:.05333rem;content:""}.van-tag--round{border-radius:var(--van-tag-round-radius)}.van-tag__close{margin-left:.05333rem}:root{--van-card-padding: var(--van-padding-xs) var(--van-padding-md);--van-card-font-size: var(--van-font-size-sm);--van-card-text-color: var(--van-text-color);--van-card-background: var(--van-background);--van-card-thumb-size: 2.34667rem;--van-card-thumb-radius: var(--van-radius-lg);--van-card-title-line-height: .42667rem;--van-card-desc-color: var(--van-text-color-2);--van-card-desc-line-height: var(--van-line-height-md);--van-card-price-color: var(--van-text-color);--van-card-origin-price-color: var(--van-text-color-2);--van-card-num-color: var(--van-text-color-2);--van-card-origin-price-font-size: var(--van-font-size-xs);--van-card-price-font-size: var(--van-font-size-sm);--van-card-price-integer-font-size: var(--van-font-size-lg);--van-card-price-font: var(--van-price-font)}.van-card{position:relative;box-sizing:border-box;padding:var(--van-card-padding);color:var(--van-card-text-color);font-size:var(--van-card-font-size);background:var(--van-card-background)}.van-card:not(:first-child){margin-top:var(--van-padding-xs)}.van-card__header{display:flex}.van-card__thumb{position:relative;flex:none;width:var(--van-card-thumb-size);height:var(--van-card-thumb-size);margin-right:var(--van-padding-xs)}.van-card__thumb img{border-radius:var(--van-card-thumb-radius)}.van-card__content{position:relative;display:flex;flex:1;flex-direction:column;justify-content:space-between;min-width:0;min-height:var(--van-card-thumb-size)}.van-card__content--centered{justify-content:center}.van-card__title,.van-card__desc{word-wrap:break-word}.van-card__title{max-height:.85333rem;font-weight:var(--van-font-bold);line-height:var(--van-card-title-line-height)}.van-card__desc{max-height:var(--van-card-desc-line-height);color:var(--van-card-desc-color);line-height:var(--van-card-desc-line-height)}.van-card__bottom{line-height:var(--van-line-height-md)}.van-card__price{display:inline-block;color:var(--van-card-price-color);font-weight:var(--van-font-bold);font-size:var(--van-card-price-font-size)}.van-card__price-integer{font-size:var(--van-card-price-integer-font-size);font-family:var(--van-card-price-font)}.van-card__price-decimal{font-family:var(--van-card-price-font)}.van-card__origin-price{display:inline-block;margin-left:.13333rem;color:var(--van-card-origin-price-color);font-size:var(--van-card-origin-price-font-size);text-decoration:line-through}.van-card__num{float:right;color:var(--van-card-num-color)}.van-card__tag{position:absolute;top:.05333rem;left:0}.van-card__footer{flex:none;text-align:right}.van-card__footer .van-button{margin-left:.13333rem}:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: .64rem;--van-cell-vertical-padding: .26667rem;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: .42667rem;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md)}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:.02667rem solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}:root{--van-coupon-cell-selected-text-color: var(--van-text-color)}.van-coupon-cell__value--selected{color:var(--van-coupon-cell-selected-text-color)}:root{--van-contact-card-padding: var(--van-padding-md);--van-contact-card-add-icon-size: 1.06667rem;--van-contact-card-add-icon-color: var(--van-primary-color);--van-contact-card-title-line-height: var(--van-line-height-md)}.van-contact-card{padding:var(--van-contact-card-padding)}.van-contact-card__title{margin-left:.13333rem;line-height:var(--van-contact-card-title-line-height)}.van-contact-card--add .van-contact-card__value{line-height:var(--van-contact-card-add-icon-size)}.van-contact-card--add .van-cell__left-icon{color:var(--van-contact-card-add-icon-color);font-size:var(--van-contact-card-add-icon-size)}.van-contact-card:before{position:absolute;right:0;bottom:0;left:0;height:.05333rem;background:repeating-linear-gradient(-45deg,var(--van-warning-color) 0,var(--van-warning-color) 20%,transparent 0,transparent 25%,var(--van-primary-color) 0,var(--van-primary-color) 45%,transparent 0,transparent 50%);background-size:2.13333rem;content:""}:root{--van-collapse-item-duration: var(--van-duration-base);--van-collapse-item-content-padding: var(--van-padding-sm) var(--van-padding-md);--van-collapse-item-content-font-size: var(--van-font-size-md);--van-collapse-item-content-line-height: 1.5;--van-collapse-item-content-text-color: var(--van-text-color-2);--van-collapse-item-content-background: var(--van-background-2);--van-collapse-item-title-disabled-color: var(--van-text-color-3)}.van-collapse-item{position:relative}.van-collapse-item--border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:var(--van-padding-md);left:var(--van-padding-md);border-top:.02667rem solid var(--van-border-color);transform:scaleY(.5)}.van-collapse-item__title .van-cell__right-icon:before{transform:rotate(90deg) translateZ(0);transition:transform var(--van-collapse-item-duration)}.van-collapse-item__title:after{right:var(--van-padding-md);display:none}.van-collapse-item__title--expanded .van-cell__right-icon:before{transform:rotate(-90deg)}.van-collapse-item__title--expanded:after{display:block}.van-collapse-item__title--borderless:after{display:none}.van-collapse-item__title--disabled{cursor:not-allowed}.van-collapse-item__title--disabled,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--van-collapse-item-title-disabled-color)}.van-collapse-item__wrapper{overflow:hidden;transition:height var(--van-collapse-item-duration) ease-in-out;will-change:height}.van-collapse-item__content{padding:var(--van-collapse-item-content-padding);color:var(--van-collapse-item-content-text-color);font-size:var(--van-collapse-item-content-font-size);line-height:var(--van-collapse-item-content-line-height);background:var(--van-collapse-item-content-background)}:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-text-color);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: .42667rem;--van-field-clear-icon-size: .42667rem;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: .32rem;--van-field-text-area-min-height: 1.6rem;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: .42667rem;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field{flex-wrap:wrap}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--top{display:flex;width:100%;text-align:left;margin-bottom:var(--van-padding-base);word-break:break-word}.van-field__label--required:before{margin-right:.05333rem;color:var(--van-field-required-mark-color);content:"*"}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}:root{--van-search-padding: .26667rem var(--van-padding-sm);--van-search-background: var(--van-background-2);--van-search-content-background: var(--van-background);--van-search-input-height: .90667rem;--van-search-label-padding: 0 .13333rem;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background);border-radius:var(--van-radius-sm)}.van-search__content--round{border-radius:var(--van-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;align-items:center;padding:0 var(--van-padding-xs) 0 0;height:var(--van-search-input-height);background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}:root{--van-action-bar-icon-width: 1.28rem;--van-action-bar-icon-height: 100%;--van-action-bar-icon-color: var(--van-text-color);--van-action-bar-icon-size: .48rem;--van-action-bar-icon-font-size: var(--van-font-size-xs);--van-action-bar-icon-active-color: var(--van-active-color);--van-action-bar-icon-text-color: var(--van-text-color);--van-action-bar-icon-background: var(--van-background-2)}.van-action-bar-icon{display:flex;flex-direction:column;justify-content:center;min-width:var(--van-action-bar-icon-width);height:var(--van-action-bar-icon-height);color:var(--van-action-bar-icon-text-color);font-size:var(--van-action-bar-icon-font-size);line-height:1;text-align:center;background:var(--van-action-bar-icon-background);cursor:pointer}.van-action-bar-icon:active{background-color:var(--van-action-bar-icon-active-color)}.van-action-bar-icon__icon{margin:0 auto var(--van-padding-base);color:var(--van-action-bar-icon-color);font-size:var(--van-action-bar-icon-size)}:root{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: .8rem;--van-loading-spinner-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:.05333rem;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}:root{--van-pull-refresh-head-height: 1.33333rem;--van-pull-refresh-head-font-size: var(--van-font-size-md);--van-pull-refresh-head-text-color: var(--van-text-color-2);--van-pull-refresh-loading-icon-size: .42667rem}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}:root{--van-number-keyboard-background: var(--van-gray-2);--van-number-keyboard-key-height: 1.28rem;--van-number-keyboard-key-font-size: .74667rem;--van-number-keyboard-key-active-color: var(--van-gray-3);--van-number-keyboard-key-background: var(--van-background-2);--van-number-keyboard-delete-font-size: var(--van-font-size-lg);--van-number-keyboard-title-color: var(--van-gray-7);--van-number-keyboard-title-height: .90667rem;--van-number-keyboard-title-font-size: var(--van-font-size-lg);--van-number-keyboard-close-padding: 0 var(--van-padding-md);--van-number-keyboard-close-color: var(--van-primary-color);--van-number-keyboard-close-font-size: var(--van-font-size-md);--van-number-keyboard-button-text-color: var(--van-white);--van-number-keyboard-button-background: var(--van-primary-color);--van-number-keyboard-z-index: 100}.van-theme-dark{--van-number-keyboard-background: var(--van-gray-8);--van-number-keyboard-key-background: var(--van-gray-7);--van-number-keyboard-key-active-color: var(--van-gray-6)}.van-number-keyboard{position:fixed;bottom:0;left:0;z-index:var(--van-number-keyboard-z-index);width:100%;padding-bottom:.58667rem;background:var(--van-number-keyboard-background);-webkit-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:.53333rem .53333rem 0 0}.van-number-keyboard__header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:content-box;height:var(--van-number-keyboard-title-height);padding-top:.16rem;color:var(--van-number-keyboard-title-color);font-size:var(--van-number-keyboard-title-font-size)}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:flex;padding:.16rem 0 0 .16rem}.van-number-keyboard__keys{display:flex;flex:3;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:var(--van-number-keyboard-close-padding);color:var(--van-number-keyboard-close-color);font-size:var(--van-number-keyboard-close-font-size);background-color:transparent;border:none}.van-number-keyboard__sidebar{display:flex;flex:1;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:flex;align-items:center;justify-content:center;height:var(--van-number-keyboard-key-height);font-size:var(--van-number-keyboard-key-font-size);line-height:1.5;background:var(--van-number-keyboard-key-background);border-radius:var(--van-radius-lg);cursor:pointer}.van-key--large{position:absolute;top:0;right:.16rem;bottom:.16rem;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:var(--van-number-keyboard-delete-font-size)}.van-key--active{background-color:var(--van-number-keyboard-key-active-color)}.van-key--blue{color:var(--van-number-keyboard-button-text-color);background:var(--van-number-keyboard-button-background)}.van-key--blue.van-key--active{opacity:var(--van-active-opacity)}.van-key__wrapper{position:relative;flex:1;flex-basis:33%;box-sizing:border-box;padding:0 .16rem .16rem 0}.van-key__wrapper--wider{flex-basis:66%}.van-key__delete-icon{width:.85333rem;height:.58667rem}.van-key__collapse-icon{width:.8rem;height:.64rem}.van-key__loading-icon{color:var(--van-number-keyboard-button-text-color)}:root{--van-list-text-color: var(--van-text-color-2);--van-list-text-font-size: var(--van-font-size-md);--van-list-text-line-height: 1.33333rem;--van-list-loading-icon-size: .42667rem}.van-list__loading,.van-list__finished-text,.van-list__error-text{color:var(--van-list-text-color);font-size:var(--van-list-text-font-size);line-height:var(--van-list-text-line-height);text-align:center}.van-list__placeholder{height:0;pointer-events:none}.van-list__loading-icon .van-loading__spinner{width:var(--van-list-loading-icon-size);height:var(--van-list-loading-icon-size)}:root{--van-switch-size: .69333rem;--van-switch-width:calc(1.8em + .10667rem);--van-switch-height:calc(1em + .10667rem);--van-switch-node-size: 1em;--van-switch-node-background: var(--van-white);--van-switch-node-shadow: 0 .08rem .02667rem 0 rgba(0, 0, 0, .05);--van-switch-background: rgba(120, 120, 128, .16);--van-switch-on-background: var(--van-primary-color);--van-switch-duration: var(--van-duration-base);--van-switch-disabled-opacity: var(--van-disabled-opacity)}.van-theme-dark{--van-switch-background: rgba(120, 120, 128, .32)}.van-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--van-switch-width);height:var(--van-switch-height);font-size:var(--van-switch-size);background:var(--van-switch-background);border-radius:var(--van-switch-node-size);cursor:pointer;transition:background-color var(--van-switch-duration)}.van-switch__node{position:absolute;top:.05333rem;left:.05333rem;width:var(--van-switch-node-size);height:var(--van-switch-node-size);font-size:inherit;background:var(--van-switch-node-background);border-radius:100%;box-shadow:var(--van-switch-node-shadow);transition:transform var(--van-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.van-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.van-switch--on{background:var(--van-switch-on-background)}.van-switch--on .van-switch__node{transform:translate(calc(var(--van-switch-width) - var(--van-switch-node-size) - .10667rem))}.van-switch--on .van-switch__loading{color:var(--van-switch-on-background)}.van-switch--disabled{cursor:not-allowed;opacity:var(--van-switch-disabled-opacity)}.van-switch--loading{cursor:default}:root{--van-button-mini-height: .64rem;--van-button-mini-padding: 0 var(--van-padding-base);--van-button-mini-font-size: var(--van-font-size-xs);--van-button-small-height: .85333rem;--van-button-small-padding: 0 var(--van-padding-xs);--van-button-small-font-size: var(--van-font-size-sm);--van-button-normal-padding: 0 .4rem;--van-button-normal-font-size: var(--van-font-size-md);--van-button-large-height: 1.33333rem;--van-button-default-height: 1.17333rem;--van-button-default-line-height: 1.2;--van-button-default-font-size: var(--van-font-size-lg);--van-button-default-color: var(--van-text-color);--van-button-default-background: var(--van-background-2);--van-button-default-border-color: var(--van-gray-4);--van-button-primary-color: var(--van-white);--van-button-primary-background: var(--van-primary-color);--van-button-primary-border-color: var(--van-primary-color);--van-button-success-color: var(--van-white);--van-button-success-background: var(--van-success-color);--van-button-success-border-color: var(--van-success-color);--van-button-danger-color: var(--van-white);--van-button-danger-background: var(--van-danger-color);--van-button-danger-border-color: var(--van-danger-color);--van-button-warning-color: var(--van-white);--van-button-warning-background: var(--van-warning-color);--van-button-warning-border-color: var(--van-warning-color);--van-button-border-width: var(--van-border-width);--van-button-radius: var(--van-radius-md);--van-button-round-radius: var(--van-radius-max);--van-button-plain-background: var(--van-white);--van-button-disabled-opacity: var(--van-disabled-opacity);--van-button-icon-size: 1.2em;--van-button-loading-icon-size: .53333rem}.van-theme-dark{--van-button-plain-background: transparent}.van-button{position:relative;display:inline-block;box-sizing:border-box;height:var(--van-button-default-height);margin:0;padding:0;font-size:var(--van-button-default-font-size);line-height:var(--van-button-default-line-height);text-align:center;border-radius:var(--van-button-radius);cursor:pointer;transition:opacity var(--van-duration-fast);-webkit-appearance:none;-webkit-font-smoothing:auto}.van-button:before{position:absolute;top:50%;left:50%;width:100%;height:100%;background:var(--van-black);border:inherit;border-color:var(--van-black);border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" "}.van-button:active:before{opacity:.1}.van-button--loading:before,.van-button--disabled:before{display:none}.van-button--default{color:var(--van-button-default-color);background:var(--van-button-default-background);border:var(--van-button-border-width) solid var(--van-button-default-border-color)}.van-button--primary{color:var(--van-button-primary-color);background:var(--van-button-primary-background);border:var(--van-button-border-width) solid var(--van-button-primary-border-color)}.van-button--success{color:var(--van-button-success-color);background:var(--van-button-success-background);border:var(--van-button-border-width) solid var(--van-button-success-border-color)}.van-button--danger{color:var(--van-button-danger-color);background:var(--van-button-danger-background);border:var(--van-button-border-width) solid var(--van-button-danger-border-color)}.van-button--warning{color:var(--van-button-warning-color);background:var(--van-button-warning-background);border:var(--van-button-border-width) solid var(--van-button-warning-border-color)}.van-button--plain{background:var(--van-button-plain-background)}.van-button--plain.van-button--primary{color:var(--van-button-primary-background)}.van-button--plain.van-button--success{color:var(--van-button-success-background)}.van-button--plain.van-button--danger{color:var(--van-button-danger-background)}.van-button--plain.van-button--warning{color:var(--van-button-warning-background)}.van-button--large{width:100%;height:var(--van-button-large-height)}.van-button--normal{padding:var(--van-button-normal-padding);font-size:var(--van-button-normal-font-size)}.van-button--small{height:var(--van-button-small-height);padding:var(--van-button-small-padding);font-size:var(--van-button-small-font-size)}.van-button__loading{color:inherit;font-size:inherit}.van-button__loading .van-loading__spinner{color:currentColor;width:var(--van-button-loading-icon-size);height:var(--van-button-loading-icon-size)}.van-button--mini{height:var(--van-button-mini-height);padding:var(--van-button-mini-padding);font-size:var(--van-button-mini-font-size)}.van-button--mini+.van-button--mini{margin-left:var(--van-padding-base)}.van-button--block{display:block;width:100%}.van-button--disabled{cursor:not-allowed;opacity:var(--van-button-disabled-opacity)}.van-button--loading{cursor:default}.van-button--round{border-radius:var(--van-button-round-radius)}.van-button--square{border-radius:0}.van-button__content{display:flex;align-items:center;justify-content:center;height:100%}.van-button__content:before{content:" "}.van-button__icon{font-size:var(--van-button-icon-size);line-height:inherit}.van-button__icon+.van-button__text,.van-button__loading+.van-button__text,.van-button__text+.van-button__icon,.van-button__text+.van-button__loading{margin-left:var(--van-padding-base)}.van-button--hairline{border-width:0}.van-button--hairline:after{border-color:inherit;border-radius:calc(var(--van-button-radius) * 2)}.van-button--hairline.van-button--round:after{border-radius:var(--van-button-round-radius)}.van-button--hairline.van-button--square:after{border-radius:0}:root{--van-submit-bar-height: 1.33333rem;--van-submit-bar-z-index: 100;--van-submit-bar-background: var(--van-background-2);--van-submit-bar-button-width: 2.93333rem;--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: .53333rem;--van-submit-bar-price-font: var(--van-price-font);--van-submit-bar-currency-font-size: var(--van-font-size-md);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background: var(--van-orange-light);--van-submit-bar-tip-icon-size: .32rem;--van-submit-bar-button-height: 1.06667rem;--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background:var(--van-submit-bar-background);-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}:root{--van-contact-edit-padding: var(--van-padding-md);--van-contact-edit-fields-radius: var(--van-radius-md);--van-contact-edit-buttons-padding: var(--van-padding-xl) 0;--van-contact-edit-button-margin-bottom: var(--van-padding-sm);--van-contact-edit-button-font-size: var(--van-font-size-lg);--van-contact-edit-field-label-width: 4.1em}.van-contact-edit{padding:var(--van-contact-edit-padding)}.van-contact-edit__fields{overflow:hidden;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__fields .van-field__label{width:var(--van-contact-edit-field-label-width)}.van-contact-edit__switch-cell{margin-top:.26667rem;padding-top:.24rem;padding-bottom:.24rem;border-radius:var(--van-contact-edit-fields-radius)}.van-contact-edit__buttons{padding:var(--van-contact-edit-buttons-padding)}.van-contact-edit__button{margin-bottom:var(--van-contact-edit-button-margin-bottom);font-size:var(--van-contact-edit-button-font-size)}:root{--van-action-bar-button-height: 1.06667rem;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:.13333rem;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:.13333rem;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:.34667rem}}:root{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}:root{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: .42667rem;--van-popup-close-icon-size: .58667rem;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: .42667rem;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}:root{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: .42667rem;--van-share-sheet-icon-size: 1.28rem;--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: 1.28rem;--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:.02667rem solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__icon,.van-share-sheet__image-icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__icon{display:flex;align-items:center;justify-content:center;color:var(--van-gray-7);border-radius:100%;background-color:var(--van-gray-2)}.van-share-sheet__icon--link,.van-share-sheet__icon--poster,.van-share-sheet__icon--qrcode{font-size:.69333rem}.van-share-sheet__icon--weapp-qrcode{font-size:.74667rem}.van-share-sheet__icon--qq,.van-share-sheet__icon--weibo,.van-share-sheet__icon--wechat,.van-share-sheet__icon--wechat-moments{font-size:.8rem;color:var(--van-white)}.van-share-sheet__icon--qq{background-color:#38b9fa}.van-share-sheet__icon--wechat{background-color:#0bc15f}.van-share-sheet__icon--weibo{background-color:#ee575e}.van-share-sheet__icon--wechat-moments{background-color:#7bc845}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}:root{--van-popover-arrow-size: .16rem;--van-popover-radius: var(--van-radius-lg);--van-popover-action-width: 3.41333rem;--van-popover-action-height: 1.17333rem;--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: .53333rem;--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background: var(--van-background-2);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-radius)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%;transform:translateY(-50%)}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%;transform:translate(-50%)}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background);box-shadow:0 .05333rem .32rem rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-ease-in)}:root{--van-notify-text-color: var(--van-white);--van-notify-padding: var(--van-padding-xs) var(--van-padding-md);--van-notify-font-size: var(--van-font-size-md);--van-notify-line-height: var(--van-line-height-md);--van-notify-primary-background: var(--van-primary-color);--van-notify-success-background: var(--van-success-color);--van-notify-danger-background: var(--van-danger-color);--van-notify-warning-background: var(--van-warning-color)}.van-notify{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-notify-padding);color:var(--van-notify-text-color);font-size:var(--van-notify-font-size);line-height:var(--van-notify-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word}.van-notify--primary{background:var(--van-notify-primary-background)}.van-notify--success{background:var(--van-notify-success-background)}.van-notify--danger{background:var(--van-notify-danger-background)}.van-notify--warning{background:var(--van-notify-warning-background)}:root{--van-dialog-width: 8.53333rem;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: .42667rem;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: .64rem;--van-dialog-header-padding-top: .69333rem;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 1.28rem;--van-dialog-round-button-height: .96rem;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media (max-width: 321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:2.77333rem}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:.69333rem var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}:root{--van-toast-max-width: 70%;--van-toast-font-size: var(--van-font-size-md);--van-toast-text-color: var(--van-white);--van-toast-loading-icon-color: var(--van-white);--van-toast-line-height: var(--van-line-height-md);--van-toast-radius: var(--van-radius-lg);--van-toast-background: rgba(0, 0, 0, .7);--van-toast-icon-size: .96rem;--van-toast-text-min-width: 2.56rem;--van-toast-text-padding: var(--van-padding-xs) var(--van-padding-sm);--van-toast-default-padding: var(--van-padding-md);--van-toast-default-width: 2.34667rem;--van-toast-default-min-height: 2.34667rem;--van-toast-position-top-distance: 20%;--van-toast-position-bottom-distance: 20%}.van-toast{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:content-box;transition:all var(--van-duration-fast);width:var(--van-toast-default-width);max-width:var(--van-toast-max-width);min-height:var(--van-toast-default-min-height);padding:var(--van-toast-default-padding);color:var(--van-toast-text-color);font-size:var(--van-toast-font-size);line-height:var(--van-toast-line-height);white-space:pre-wrap;word-break:break-all;text-align:center;background:var(--van-toast-background);border-radius:var(--van-toast-radius)}.van-toast--break-normal{word-break:normal;word-wrap:normal}.van-toast--break-word{word-break:normal;word-wrap:break-word}.van-toast--unclickable{overflow:hidden;cursor:not-allowed}.van-toast--unclickable *{pointer-events:none}.van-toast--text,.van-toast--html{width:-webkit-fit-content;width:fit-content;min-width:var(--van-toast-text-min-width);min-height:0;padding:var(--van-toast-text-padding)}.van-toast--text .van-toast__text,.van-toast--html .van-toast__text{margin-top:0}.van-toast--top{top:var(--van-toast-position-top-distance)}.van-toast--bottom{top:auto;bottom:var(--van-toast-position-bottom-distance)}.van-toast__icon{font-size:var(--van-toast-icon-size)}.van-toast__loading{padding:var(--van-padding-base);color:var(--van-toast-loading-icon-color)}.van-toast__text{margin-top:var(--van-padding-xs)}:root{--van-action-sheet-max-height: 80%;--van-action-sheet-header-height: 1.28rem;--van-action-sheet-header-font-size: var(--van-font-size-lg);--van-action-sheet-description-color: var(--van-text-color-2);--van-action-sheet-description-font-size: var(--van-font-size-md);--van-action-sheet-description-line-height: var(--van-line-height-md);--van-action-sheet-item-background: var(--van-background-2);--van-action-sheet-item-font-size: var(--van-font-size-lg);--van-action-sheet-item-line-height: var(--van-line-height-lg);--van-action-sheet-item-text-color: var(--van-text-color);--van-action-sheet-item-disabled-text-color: var(--van-text-color-3);--van-action-sheet-subname-color: var(--van-text-color-2);--van-action-sheet-subname-font-size: var(--van-font-size-sm);--van-action-sheet-subname-line-height: var(--van-line-height-sm);--van-action-sheet-close-icon-size: .58667rem;--van-action-sheet-close-icon-color: var(--van-gray-5);--van-action-sheet-close-icon-padding: 0 var(--van-padding-md);--van-action-sheet-cancel-text-color: var(--van-gray-7);--van-action-sheet-cancel-padding-top: var(--van-padding-xs);--van-action-sheet-cancel-padding-color: var(--van-background);--van-action-sheet-loading-icon-size: .58667rem}.van-action-sheet{display:flex;flex-direction:column;max-height:var(--van-action-sheet-max-height);overflow:hidden;color:var(--van-action-sheet-item-text-color)}.van-action-sheet__content{flex:1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-action-sheet__item,.van-action-sheet__cancel{display:block;width:100%;padding:.37333rem var(--van-padding-md);font-size:var(--van-action-sheet-item-font-size);background:var(--van-action-sheet-item-background);border:none;cursor:pointer}.van-action-sheet__item:active,.van-action-sheet__cancel:active{background-color:var(--van-active-color)}.van-action-sheet__item{line-height:var(--van-action-sheet-item-line-height)}.van-action-sheet__item--loading,.van-action-sheet__item--disabled{color:var(--van-action-sheet-item-disabled-text-color)}.van-action-sheet__item--loading:active,.van-action-sheet__item--disabled:active{background-color:var(--van-action-sheet-item-background)}.van-action-sheet__item--disabled{cursor:not-allowed}.van-action-sheet__item--loading{cursor:default}.van-action-sheet__cancel{flex-shrink:0;box-sizing:border-box;color:var(--van-action-sheet-cancel-text-color)}.van-action-sheet__subname{margin-top:var(--van-padding-xs);color:var(--van-action-sheet-subname-color);font-size:var(--van-action-sheet-subname-font-size);line-height:var(--van-action-sheet-subname-line-height)}.van-action-sheet__gap{display:block;height:var(--van-action-sheet-cancel-padding-top);background:var(--van-action-sheet-cancel-padding-color)}.van-action-sheet__header{flex-shrink:0;font-weight:var(--van-font-bold);font-size:var(--van-action-sheet-header-font-size);line-height:var(--van-action-sheet-header-height);text-align:center}.van-action-sheet__description{position:relative;flex-shrink:0;padding:.53333rem var(--van-padding-md);color:var(--van-action-sheet-description-color);font-size:var(--van-action-sheet-description-font-size);line-height:var(--van-action-sheet-description-line-height);text-align:center}.van-action-sheet__description:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:.02667rem solid var(--van-border-color);transform:scaleY(.5)}.van-action-sheet__loading-icon .van-loading__spinner{width:var(--van-action-sheet-loading-icon-size);height:var(--van-action-sheet-loading-icon-size)}.van-action-sheet__close{position:absolute;top:0;right:0;z-index:1;padding:var(--van-action-sheet-close-icon-padding);color:var(--van-action-sheet-close-icon-color);font-size:var(--van-action-sheet-close-icon-size);line-height:inherit}:root{--van-sticky-z-index: 99}.van-sticky--fixed{position:fixed;z-index:var(--van-sticky-z-index)}:root{--van-swipe-indicator-size: .16rem;--van-swipe-indicator-margin: var(--van-padding-sm);--van-swipe-indicator-active-opacity: 1;--van-swipe-indicator-inactive-opacity: .3;--van-swipe-indicator-active-background: var(--van-primary-color);--van-swipe-indicator-inactive-background: var(--van-border-color)}.van-swipe{position:relative;overflow:hidden;transform:translateZ(0);cursor:-webkit-grab;cursor:grab;-webkit-user-select:none;user-select:none}.van-swipe__track{display:flex;height:100%}.van-swipe__track--vertical{flex-direction:column}.van-swipe__indicators{position:absolute;bottom:var(--van-swipe-indicator-margin);left:50%;display:flex;transform:translate(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:var(--van-swipe-indicator-margin);flex-direction:column;transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:var(--van-swipe-indicator-size)}.van-swipe__indicator{width:var(--van-swipe-indicator-size);height:var(--van-swipe-indicator-size);background-color:var(--van-swipe-indicator-inactive-background);border-radius:100%;opacity:var(--van-swipe-indicator-inactive-opacity);transition:opacity var(--van-duration-fast),background-color var(--van-duration-fast)}.van-swipe__indicator:not(:last-child){margin-right:var(--van-swipe-indicator-size)}.van-swipe__indicator--active{background-color:var(--van-swipe-indicator-active-background);opacity:var(--van-swipe-indicator-active-opacity)}.van-swipe-item{position:relative;flex-shrink:0;width:100%;height:100%}:root{--van-image-preview-index-text-color: var(--van-white);--van-image-preview-index-font-size: var(--van-font-size-md);--van-image-preview-index-line-height: var(--van-line-height-md);--van-image-preview-index-text-shadow: 0 .02667rem .02667rem var(--van-gray-8);--van-image-preview-overlay-background: rgba(0, 0, 0, .9);--van-image-preview-close-icon-size: .58667rem;--van-image-preview-close-icon-color: var(--van-gray-5);--van-image-preview-close-icon-margin: var(--van-padding-md);--van-image-preview-close-icon-z-index: 1}.van-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.van-image-preview__swipe{height:100%}.van-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.van-image-preview__cover{position:absolute;top:0;left:0}.van-image-preview__image,.van-image-preview__image-wrap{width:100%;transition-property:transform}.van-image-preview__image--vertical,.van-image-preview__image-wrap--vertical{width:auto;height:100%}.van-image-preview__image img,.van-image-preview__image-wrap img,.van-image-preview__image video,.van-image-preview__image-wrap video{-webkit-user-drag:none}.van-image-preview__image .van-image__error,.van-image-preview__image-wrap .van-image__error{top:30%;height:40%}.van-image-preview__image .van-image__error-icon,.van-image-preview__image-wrap .van-image__error-icon{font-size:.96rem}.van-image-preview__image .van-image__loading,.van-image-preview__image-wrap .van-image__loading{background-color:transparent}.van-image-preview__index{position:absolute;top:var(--van-padding-md);left:50%;color:var(--van-image-preview-index-text-color);font-size:var(--van-image-preview-index-font-size);line-height:var(--van-image-preview-index-line-height);text-shadow:var(--van-image-preview-index-text-shadow);transform:translate(-50%)}.van-image-preview__overlay{background:var(--van-image-preview-overlay-background)}.van-image-preview__close-icon{position:absolute;z-index:var(--van-image-preview-close-icon-z-index);color:var(--van-image-preview-close-icon-color);font-size:var(--van-image-preview-close-icon-size)}.van-image-preview__close-icon--top-left{top:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--top-right{top:var(--van-image-preview-close-icon-margin);right:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-left{bottom:var(--van-image-preview-close-icon-margin);left:var(--van-image-preview-close-icon-margin)}.van-image-preview__close-icon--bottom-right{right:var(--van-image-preview-close-icon-margin);bottom:var(--van-image-preview-close-icon-margin)}:root{--van-uploader-size: 2.13333rem;--van-uploader-icon-size: .64rem;--van-uploader-icon-color: var(--van-gray-4);--van-uploader-text-color: var(--van-text-color-2);--van-uploader-text-font-size: var(--van-font-size-sm);--van-uploader-upload-background: var(--van-gray-1);--van-uploader-upload-active-color: var(--van-active-color);--van-uploader-delete-color: var(--van-white);--van-uploader-delete-icon-size: .37333rem;--van-uploader-delete-background: rgba(0, 0, 0, .7);--van-uploader-file-background: var(--van-background);--van-uploader-file-icon-size: .53333rem;--van-uploader-file-icon-color: var(--van-gray-7);--van-uploader-file-name-padding: 0 var(--van-padding-base);--van-uploader-file-name-margin-top: var(--van-padding-xs);--van-uploader-file-name-font-size: var(--van-font-size-sm);--van-uploader-file-name-text-color: var(--van-gray-7);--van-uploader-mask-text-color: var(--van-white);--van-uploader-mask-background: rgba(50, 50, 51, .88);--van-uploader-mask-icon-size: .58667rem;--van-uploader-mask-message-font-size: var(--van-font-size-sm);--van-uploader-mask-message-line-height: var(--van-line-height-xs);--van-uploader-loading-icon-size: .58667rem;--van-uploader-loading-icon-color: var(--van-white);--van-uploader-disabled-opacity: var(--van-disabled-opacity)}.van-uploader{position:relative;display:inline-block}.van-uploader__wrapper{display:flex;flex-wrap:wrap}.van-uploader__wrapper--disabled{opacity:var(--van-uploader-disabled-opacity)}.van-uploader__input{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;cursor:pointer;opacity:0}.van-uploader__input-wrapper{position:relative}.van-uploader__input:disabled{cursor:not-allowed}.van-uploader__upload{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;width:var(--van-uploader-size);height:var(--van-uploader-size);margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;background:var(--van-uploader-upload-background)}.van-uploader__upload:active{background-color:var(--van-uploader-upload-active-color)}.van-uploader__upload--readonly:active{background-color:var(--van-uploader-upload-background)}.van-uploader__upload-icon{color:var(--van-uploader-icon-color);font-size:var(--van-uploader-icon-size)}.van-uploader__upload-text{margin-top:var(--van-padding-xs);color:var(--van-uploader-text-color);font-size:var(--van-uploader-text-font-size)}.van-uploader__preview{position:relative;margin:0 var(--van-padding-xs) var(--van-padding-xs) 0;cursor:pointer}.van-uploader__preview-image{display:block;width:var(--van-uploader-size);height:var(--van-uploader-size);overflow:hidden}.van-uploader__preview-delete{position:absolute;top:0;right:0}.van-uploader__preview-delete--shadow{width:var(--van-uploader-delete-icon-size);height:var(--van-uploader-delete-icon-size);background:var(--van-uploader-delete-background);border-radius:0 0 0 .32rem}.van-uploader__preview-delete-icon{position:absolute;top:0;right:0;color:var(--van-uploader-delete-color);font-size:var(--van-uploader-delete-icon-size);transform:scale(.7) translate(10%,-10%)}.van-uploader__preview-cover{position:absolute;top:0;right:0;bottom:0;left:0}.van-uploader__mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-uploader-mask-text-color);background:var(--van-uploader-mask-background)}.van-uploader__mask-icon{font-size:var(--van-uploader-mask-icon-size)}.van-uploader__mask-message{margin-top:.16rem;padding:0 var(--van-padding-base);font-size:var(--van-uploader-mask-message-font-size);line-height:var(--van-uploader-mask-message-line-height)}.van-uploader__loading{width:var(--van-uploader-loading-icon-size);height:var(--van-uploader-loading-icon-size);color:var(--van-uploader-loading-icon-color)}.van-uploader__file{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--van-uploader-size);height:var(--van-uploader-size);background:var(--van-uploader-file-background)}.van-uploader__file-icon{color:var(--van-uploader-file-icon-color);font-size:var(--van-uploader-file-icon-size)}.van-uploader__file-name{box-sizing:border-box;width:100%;margin-top:var(--van-uploader-file-name-margin-top);padding:var(--van-uploader-file-name-padding);color:var(--van-uploader-file-name-text-color);font-size:var(--van-uploader-file-name-font-size);text-align:center}:root{--van-tab-text-color: var(--van-gray-7);--van-tab-active-text-color: var(--van-text-color);--van-tab-disabled-text-color: var(--van-text-color-3);--van-tab-font-size: var(--van-font-size-md);--van-tab-line-height: var(--van-line-height-md);--van-tabs-default-color: var(--van-primary-color);--van-tabs-line-height: 1.17333rem;--van-tabs-card-height: .8rem;--van-tabs-nav-background: var(--van-background-2);--van-tabs-bottom-bar-width: 1.06667rem;--van-tabs-bottom-bar-height: .08rem;--van-tabs-bottom-bar-color: var(--van-primary-color)}.van-tab{position:relative;display:flex;flex:1;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--van-padding-base);color:var(--van-tab-text-color);font-size:var(--van-tab-font-size);line-height:var(--van-tab-line-height);cursor:pointer}.van-tab--active{color:var(--van-tab-active-text-color);font-weight:var(--van-font-bold)}.van-tab--disabled{color:var(--van-tab-disabled-text-color);cursor:not-allowed}.van-tab--grow{flex:1 0 auto;padding:0 var(--van-padding-sm)}.van-tab--shrink{flex:none;padding:0 var(--van-padding-xs)}.van-tab--card{color:var(--van-tabs-default-color);border-right:var(--van-border-width) solid var(--van-tabs-default-color)}.van-tab--card:last-child{border-right:none}.van-tab--card.van-tab--active{color:var(--van-white);background-color:var(--van-tabs-default-color)}.van-tab--card--disabled{color:var(--van-tab-disabled-text-color)}.van-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.van-tabs{position:relative}.van-tabs__wrap{overflow:hidden}.van-tabs__wrap--page-top{position:fixed}.van-tabs__wrap--content-bottom{top:auto;bottom:0}.van-tabs__nav{position:relative;display:flex;background:var(--van-tabs-nav-background);-webkit-user-select:none;user-select:none}.van-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.van-tabs__nav--complete::-webkit-scrollbar{display:none}.van-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:.4rem}.van-tabs__nav--line.van-tabs__nav--shrink,.van-tabs__nav--line.van-tabs__nav--complete{padding-right:var(--van-padding-xs);padding-left:var(--van-padding-xs)}.van-tabs__nav--card{box-sizing:border-box;height:var(--van-tabs-card-height);margin:0 var(--van-padding-md);border:var(--van-border-width) solid var(--van-tabs-default-color);border-radius:var(--van-border-radius-sm)}.van-tabs__nav--card.van-tabs__nav--shrink{display:inline-flex}.van-tabs__line{position:absolute;bottom:.4rem;left:0;z-index:1;width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}.van-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.van-tabs__content--animated{overflow:hidden}.van-tabs--line .van-tabs__wrap{height:var(--van-tabs-line-height)}.van-tabs--card>.van-tabs__wrap{height:var(--van-tabs-card-height)}.van-tab__panel,.van-tab__panel-wrapper{flex-shrink:0;box-sizing:border-box;width:100%}.van-tab__panel-wrapper--inactive{height:0;overflow:visible}:root{--van-cascader-header-height: 1.28rem;--van-cascader-header-padding: 0 var(--van-padding-md);--van-cascader-title-font-size: var(--van-font-size-lg);--van-cascader-title-line-height: .53333rem;--van-cascader-close-icon-size: .58667rem;--van-cascader-close-icon-color: var(--van-gray-5);--van-cascader-selected-icon-size: .48rem;--van-cascader-tabs-height: 1.28rem;--van-cascader-active-color: var(--van-primary-color);--van-cascader-options-height: 10.24rem;--van-cascader-option-disabled-color: var(--van-text-color-3);--van-cascader-tab-color: var(--van-text-color);--van-cascader-unselected-tab-color: var(--van-text-color-2)}.van-cascader__header{display:flex;align-items:center;justify-content:space-between;height:var(--van-cascader-header-height);padding:var(--van-cascader-header-padding)}.van-cascader__title{font-weight:var(--van-font-bold);font-size:var(--van-cascader-title-font-size);line-height:var(--van-cascader-title-line-height)}.van-cascader__close-icon{color:var(--van-cascader-close-icon-color);font-size:var(--van-cascader-close-icon-size)}.van-cascader__tabs.van-tabs--line .van-tabs__wrap{height:var(--van-cascader-tabs-height)}.van-cascader__tab{color:var(--van-cascader-tab-color);font-weight:var(--van-font-bold)}.van-cascader__tab--unselected{color:var(--van-cascader-unselected-tab-color);font-weight:400}.van-cascader__option{display:flex;align-items:center;justify-content:space-between;padding:.26667rem var(--van-padding-md);font-size:var(--van-font-size-md);line-height:var(--van-line-height-md);cursor:pointer}.van-cascader__option:active{background-color:var(--van-active-color)}.van-cascader__option--selected{color:var(--van-cascader-active-color);font-weight:var(--van-font-bold)}.van-cascader__option--disabled{color:var(--van-cascader-option-disabled-color);cursor:not-allowed}.van-cascader__option--disabled:active{background-color:transparent}.van-cascader__selected-icon{font-size:var(--van-cascader-selected-icon-size)}.van-cascader__options{box-sizing:border-box;height:var(--van-cascader-options-height);padding-top:.16rem;overflow-y:auto;-webkit-overflow-scrolling:touch}:root{--van-picker-background: var(--van-background-2);--van-picker-toolbar-height: 1.17333rem;--van-picker-title-font-size: var(--van-font-size-lg);--van-picker-title-line-height: var(--van-line-height-md);--van-picker-action-padding: 0 var(--van-padding-md);--van-picker-action-font-size: var(--van-font-size-md);--van-picker-confirm-action-color: var(--van-primary-color);--van-picker-cancel-action-color: var(--van-text-color-2);--van-picker-option-font-size: var(--van-font-size-lg);--van-picker-option-padding: 0 var(--van-padding-base);--van-picker-option-text-color: var(--van-text-color);--van-picker-option-disabled-opacity: .3;--van-picker-loading-icon-color: var(--van-primary-color);--van-picker-loading-mask-color: rgba(255, 255, 255, .9);--van-picker-mask-color: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4)), linear-gradient(0deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .4))}.van-theme-dark{--van-picker-loading-mask-color: rgba(0, 0, 0, .6);--van-picker-mask-color: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1)), linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .1))}.van-picker{position:relative;background:var(--van-picker-background);-webkit-user-select:none;user-select:none}.van-picker__toolbar{position:relative;display:flex;align-items:center;justify-content:space-between;height:var(--van-picker-toolbar-height)}.van-picker__cancel,.van-picker__confirm{height:100%;padding:var(--van-picker-action-padding);font-size:var(--van-picker-action-font-size);background-color:transparent;border:none}.van-picker__confirm{color:var(--van-picker-confirm-action-color)}.van-picker__cancel{color:var(--van-picker-cancel-action-color)}.van-picker__title{position:absolute;left:50%;color:var(--van-text-color);max-width:50%;font-weight:var(--van-font-bold);font-size:var(--van-picker-title-font-size);line-height:var(--van-picker-title-line-height);text-align:center;transform:translate(-50%)}.van-picker__columns{position:relative;display:flex;cursor:-webkit-grab;cursor:grab}.van-picker__loading{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;color:var(--van-picker-loading-icon-color);background:var(--van-picker-loading-mask-color)}.van-picker__frame{position:absolute;top:50%;right:var(--van-padding-md);left:var(--van-padding-md);z-index:2;transform:translateY(-50%);pointer-events:none}.van-picker__mask{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;background-image:var(--van-picker-mask-color);background-repeat:no-repeat;background-position:top,bottom;transform:translateZ(0);pointer-events:none}.van-picker-column{flex:1;overflow:hidden;font-size:var(--van-picker-option-font-size)}.van-picker-column__wrapper{transition-timing-function:cubic-bezier(.23,1,.68,1)}.van-picker-column__item{display:flex;align-items:center;justify-content:center;padding:var(--van-picker-option-padding);color:var(--van-picker-option-text-color)}.van-picker-column__item--disabled{cursor:not-allowed;opacity:var(--van-picker-option-disabled-opacity)}:root{--van-picker-group-background: var(--van-background-2)}.van-picker-group{background:var(--van-picker-group-background)}.van-picker-group__tabs{margin-top:var(--van-padding-base)}.van-picker-group__tab-title{margin-right:.42667rem}:root{--van-calendar-background: var(--van-background-2);--van-calendar-popup-height: 80%;--van-calendar-header-shadow: 0 .05333rem .26667rem rgba(125, 126, 128, .16);--van-calendar-header-title-height: 1.17333rem;--van-calendar-header-title-font-size: var(--van-font-size-lg);--van-calendar-header-subtitle-font-size: var(--van-font-size-md);--van-calendar-weekdays-height: .8rem;--van-calendar-weekdays-font-size: var(--van-font-size-sm);--van-calendar-month-title-font-size: var(--van-font-size-md);--van-calendar-month-mark-color: rgba(242, 243, 245, .8);--van-calendar-month-mark-font-size: 4.26667rem;--van-calendar-day-height: 1.70667rem;--van-calendar-day-font-size: var(--van-font-size-lg);--van-calendar-day-margin-bottom: .10667rem;--van-calendar-range-edge-color: var(--van-white);--van-calendar-range-edge-background: var(--van-primary-color);--van-calendar-range-middle-color: var(--van-primary-color);--van-calendar-range-middle-background-opacity: .1;--van-calendar-selected-day-size: 1.44rem;--van-calendar-selected-day-color: var(--van-white);--van-calendar-info-font-size: var(--van-font-size-xs);--van-calendar-info-line-height: var(--van-line-height-xs);--van-calendar-selected-day-background: var(--van-primary-color);--van-calendar-day-disabled-color: var(--van-text-color-3);--van-calendar-confirm-button-height: .96rem;--van-calendar-confirm-button-margin: .18667rem 0}.van-theme-dark{--van-calendar-month-mark-color: rgba(100, 101, 102, .2);--van-calendar-day-disabled-color: var(--van-gray-7)}.van-calendar{display:flex;flex-direction:column;height:100%;background:var(--van-calendar-background)}.van-calendar__popup.van-popup--top,.van-calendar__popup.van-popup--bottom{height:var(--van-calendar-popup-height)}.van-calendar__popup.van-popup--left,.van-calendar__popup.van-popup--right{height:100%}.van-calendar__popup .van-popup__close-icon{top:.29333rem}.van-calendar__header{flex-shrink:0;box-shadow:var(--van-calendar-header-shadow)}.van-calendar__month-title,.van-calendar__header-title,.van-calendar__header-subtitle{color:var(--van-text-color);height:var(--van-calendar-header-title-height);font-weight:var(--van-font-bold);line-height:var(--van-calendar-header-title-height);text-align:center}.van-calendar__header-title{font-size:var(--van-calendar-header-title-font-size)}.van-calendar__header-subtitle{font-size:var(--van-calendar-header-subtitle-font-size)}.van-calendar__month-title{font-size:var(--van-calendar-month-title-font-size)}.van-calendar__weekdays{display:flex}.van-calendar__weekday{flex:1;font-size:var(--van-calendar-weekdays-font-size);line-height:var(--van-calendar-weekdays-height);text-align:center}.van-calendar__body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__days{position:relative;display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.van-calendar__month-mark{position:absolute;top:50%;left:50%;z-index:0;color:var(--van-calendar-month-mark-color);font-size:var(--van-calendar-month-mark-font-size);transform:translate(-50%,-50%);pointer-events:none}.van-calendar__day,.van-calendar__selected-day{display:flex;align-items:center;justify-content:center;text-align:center}.van-calendar__day{position:relative;width:14.285%;height:var(--van-calendar-day-height);font-size:var(--van-calendar-day-font-size);margin-bottom:var(--van-calendar-day-margin-bottom);cursor:pointer}.van-calendar__day--end,.van-calendar__day--start,.van-calendar__day--start-end,.van-calendar__day--multiple-middle,.van-calendar__day--multiple-selected{color:var(--van-calendar-range-edge-color);background:var(--van-calendar-range-edge-background)}.van-calendar__day--start{border-radius:var(--van-radius-md) 0 0 var(--van-radius-md)}.van-calendar__day--end{border-radius:0 var(--van-radius-md) var(--van-radius-md) 0}.van-calendar__day--start-end,.van-calendar__day--multiple-selected{border-radius:var(--van-radius-md)}.van-calendar__day--middle{color:var(--van-calendar-range-middle-color)}.van-calendar__day--middle:after{position:absolute;top:0;right:0;bottom:0;left:0;background-color:currentColor;opacity:var(--van-calendar-range-middle-background-opacity);content:""}.van-calendar__day--disabled{color:var(--van-calendar-day-disabled-color);cursor:default}.van-calendar__top-info,.van-calendar__bottom-info{position:absolute;right:0;left:0;font-size:var(--van-calendar-info-font-size);line-height:var(--van-calendar-info-line-height)}@media (max-width: 350px){.van-calendar__top-info,.van-calendar__bottom-info{font-size:.24rem}}.van-calendar__top-info{top:.16rem}.van-calendar__bottom-info{bottom:.16rem}.van-calendar__selected-day{width:var(--van-calendar-selected-day-size);height:var(--van-calendar-selected-day-size);color:var(--van-calendar-selected-day-color);background:var(--van-calendar-selected-day-background);border-radius:var(--van-radius-md)}.van-calendar__footer{flex-shrink:0;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md)}.van-calendar__confirm{height:var(--van-calendar-confirm-button-height);margin:var(--van-calendar-confirm-button-margin)}:root{--van-address-edit-padding: var(--van-padding-sm);--van-address-edit-buttons-padding: var(--van-padding-xl) var(--van-padding-base);--van-address-edit-button-margin-bottom: var(--van-padding-sm);--van-address-edit-button-font-size: var(--van-font-size-lg)}.van-address-edit{padding:var(--van-address-edit-padding)}.van-address-edit__fields{overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__fields .van-field__label{width:4.1em}.van-address-edit__default{margin-top:var(--van-padding-sm);overflow:hidden;border-radius:var(--van-padding-xs)}.van-address-edit__buttons{padding:var(--van-address-edit-buttons-padding)}.van-address-edit__button{margin-bottom:var(--van-address-edit-button-margin-bottom);font-size:var(--van-address-edit-button-font-size)}.van-address-edit-detail__search-item{background:var(--van-gray-2)}.van-radio-group--horizontal,.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}:root{--van-checkbox-size: .53333rem;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:.02667rem solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}:root{--van-coupon-margin: 0 var(--van-padding-sm) var(--van-padding-sm);--van-coupon-content-height: 2.24rem;--van-coupon-content-padding: .37333rem 0;--van-coupon-content-text-color: var(--van-text-color);--van-coupon-background: var(--van-background-2);--van-coupon-active-background: var(--van-active-color);--van-coupon-radius: var(--van-radius-lg);--van-coupon-shadow: 0 0 .10667rem rgba(0, 0, 0, .1);--van-coupon-head-width: 2.56rem;--van-coupon-amount-color: var(--van-primary-color);--van-coupon-amount-font-size: .8rem;--van-coupon-currency-font-size: 40%;--van-coupon-name-font-size: var(--van-font-size-md);--van-coupon-disabled-text-color: var(--van-text-color-2);--van-coupon-description-padding: var(--van-padding-xs) var(--van-padding-md);--van-coupon-description-border-color: var(--van-border-color);--van-coupon-checkbox-color: var(--van-primary-color)}.van-coupon{margin:var(--van-coupon-margin);overflow:hidden;background:var(--van-coupon-background);border-radius:var(--van-coupon-radius);box-shadow:var(--van-coupon-shadow)}.van-coupon:active{background-color:var(--van-coupon-active-background)}.van-coupon__content{display:flex;align-items:center;box-sizing:border-box;min-height:var(--van-coupon-content-height);padding:var(--van-coupon-content-padding);color:var(--van-coupon-content-text-color)}.van-coupon__head{position:relative;min-width:var(--van-coupon-head-width);padding:0 var(--van-padding-xs);color:var(--van-coupon-amount-color);text-align:center}.van-coupon__amount,.van-coupon__condition,.van-coupon__name,.van-coupon__valid{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount{margin-bottom:.16rem;font-weight:var(--van-font-bold);font-size:var(--van-coupon-amount-font-size);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-coupon__amount span{font-size:var(--van-coupon-currency-font-size)}.van-coupon__amount span:not(:empty){margin-left:.05333rem}.van-coupon__condition{font-size:var(--van-font-size-sm);line-height:.42667rem;white-space:pre-wrap}.van-coupon__body{position:relative;flex:1}.van-coupon__name{margin-bottom:.26667rem;font-weight:var(--van-font-bold);font-size:var(--van-coupon-name-font-size);line-height:var(--van-line-height-md)}.van-coupon__valid{font-size:var(--van-font-size-sm)}.van-coupon__corner{position:absolute;top:0;right:var(--van-padding-md);bottom:0}.van-coupon__corner .van-checkbox__icon--checked .van-icon{background-color:var(--van-coupon-checkbox-color);border-color:var(--van-coupon-checkbox-color)}.van-coupon__description{padding:var(--van-coupon-description-padding);font-size:var(--van-font-size-sm);border-top:.02667rem dashed var(--van-coupon-description-border-color)}.van-coupon--disabled:active{background-color:var(--van-coupon-background)}.van-coupon--disabled .van-coupon-item__content{height:calc(var(--van-coupon-content-height) - .26667rem)}.van-coupon--disabled .van-coupon__head{color:inherit}:root{--van-radio-size: .53333rem;--van-radio-border-color: var(--van-gray-5);--van-radio-duration: var(--van-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:.02667rem solid var(--van-radio-border-color);transition-duration:var(--van-radio-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}:root{--van-contact-list-edit-icon-size: .42667rem;--van-contact-list-add-button-z-index: 999;--van-contact-list-radio-color: var(--van-primary-color);--van-contact-list-item-padding: var(--van-padding-md)}.van-contact-list{box-sizing:border-box;height:100%;padding-bottom:2.13333rem}.van-contact-list__item{padding:var(--van-contact-list-item-padding)}.van-contact-list__item-title{display:flex;align-items:center;padding-right:var(--van-padding-xl);padding-left:var(--van-padding-xs)}.van-contact-list__item-tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-contact-list__group{box-sizing:border-box;height:100%;overflow-y:scroll;-webkit-overflow-scrolling:touch}.van-contact-list__edit{font-size:var(--van-contact-list-edit-icon-size)}.van-contact-list__radio .van-radio__icon--checked .van-icon{background-color:var(--van-contact-list-radio-color);border-color:var(--van-contact-list-radio-color)}.van-contact-list__bottom{position:fixed;right:0;bottom:0;left:0;z-index:var(--van-contact-list-add-button-z-index);padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-contact-list__add{height:1.06667rem;margin:.13333rem 0}:root{--van-address-list-padding: var(--van-padding-sm) var(--van-padding-sm) 2.13333rem;--van-address-list-disabled-text-color: var(--van-text-color-2);--van-address-list-disabled-text-padding: calc(var(--van-padding-base) * 5) 0;--van-address-list-disabled-text-font-size: var(--van-font-size-md);--van-address-list-disabled-text-line-height: var(--van-line-height-md);--van-address-list-add-button-z-index: 999;--van-address-list-item-padding: var(--van-padding-sm);--van-address-list-item-text-color: var(--van-text-color);--van-address-list-item-disabled-text-color: var(--van-text-color-3);--van-address-list-item-font-size: .34667rem;--van-address-list-item-line-height: var(--van-line-height-sm);--van-address-list-radio-color: var(--van-primary-color);--van-address-list-edit-icon-size: .53333rem}.van-address-list{box-sizing:border-box;height:100%;padding:var(--van-address-list-padding)}.van-address-list__bottom{position:fixed;bottom:0;left:0;z-index:var(--van-address-list-add-button-z-index);box-sizing:border-box;width:100%;padding-left:var(--van-padding-md);padding-right:var(--van-padding-md);background-color:var(--van-background-2)}.van-address-list__add{height:1.06667rem;margin:.13333rem 0}.van-address-list__disabled-text{padding:var(--van-address-list-disabled-text-padding);color:var(--van-address-list-disabled-text-color);font-size:var(--van-address-list-disabled-text-font-size);line-height:var(--van-address-list-disabled-text-line-height)}.van-address-item{padding:var(--van-address-list-item-padding);background-color:var(--van-background-2);border-radius:var(--van-radius-lg)}.van-address-item:not(:last-child){margin-bottom:var(--van-padding-sm)}.van-address-item__title{padding-right:1.17333rem}.van-address-item__name{display:flex;align-items:center;margin-bottom:var(--van-padding-xs);font-size:var(--van-font-size-lg);line-height:var(--van-line-height-lg)}.van-address-item__tag{flex:none;margin-left:var(--van-padding-xs);padding-top:0;padding-bottom:0;line-height:1.4em}.van-address-item__address{color:var(--van-address-list-item-text-color);font-size:var(--van-address-list-item-font-size);line-height:var(--van-address-list-item-line-height)}.van-address-item--disabled .van-address-item__name,.van-address-item--disabled .van-address-item__address{color:var(--van-address-list-item-disabled-text-color)}.van-address-item__edit{position:absolute;top:50%;right:var(--van-padding-md);color:var(--van-gray-6);font-size:var(--van-address-list-edit-icon-size);transform:translateY(-50%)}.van-address-item .van-cell{padding:0}.van-address-item .van-radio__label{margin-left:var(--van-padding-sm)}.van-address-item .van-radio__icon--checked .van-icon{background-color:var(--van-address-list-radio-color);border-color:var(--van-address-list-radio-color)}:root{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: .42667rem;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}:root{--van-circle-size: 2.66667rem;--van-circle-color: var(--van-primary-color);--van-circle-layer-color: var(--van-white);--van-circle-text-color: var(--van-text-color);--van-circle-text-font-weight: var(--van-font-bold);--van-circle-text-font-size: var(--van-font-size-md);--van-circle-text-line-height: var(--van-line-height-md)}.van-circle{position:relative;display:inline-block;width:var(--van-circle-size);height:var(--van-circle-size);text-align:center}.van-circle svg{position:absolute;top:0;left:0;width:100%;height:100%}.van-circle__layer{stroke:var(--van-circle-layer-color)}.van-circle__hover{fill:none;stroke:var(--van-circle-color);stroke-linecap:round}.van-circle__text{position:absolute;top:50%;left:0;box-sizing:border-box;width:100%;padding:0 var(--van-padding-base);color:var(--van-circle-text-color);font-weight:var(--van-circle-text-font-weight);font-size:var(--van-circle-text-font-size);line-height:var(--van-circle-text-line-height);transform:translateY(-50%)}.van-row{display:flex;flex-wrap:wrap}.van-row--nowrap{flex-wrap:nowrap}.van-row--justify-center{justify-content:center}.van-row--justify-end{justify-content:flex-end}.van-row--justify-space-between{justify-content:space-between}.van-row--justify-space-around{justify-content:space-around}.van-row--align-center{align-items:center}.van-row--align-bottom{align-items:flex-end}.van-col{display:block;box-sizing:border-box;min-height:.02667rem}.van-col--1{flex:0 0 4.16666667%;max-width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{flex:0 0 8.33333333%;max-width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{flex:0 0 12.5%;max-width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{flex:0 0 16.66666667%;max-width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{flex:0 0 20.83333333%;max-width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{flex:0 0 25%;max-width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{flex:0 0 29.16666667%;max-width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{flex:0 0 33.33333333%;max-width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{flex:0 0 37.5%;max-width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{flex:0 0 41.66666667%;max-width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{flex:0 0 45.83333333%;max-width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{flex:0 0 50%;max-width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{flex:0 0 54.16666667%;max-width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{flex:0 0 58.33333333%;max-width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{flex:0 0 62.5%;max-width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{flex:0 0 66.66666667%;max-width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{flex:0 0 70.83333333%;max-width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{flex:0 0 75%;max-width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{flex:0 0 79.16666667%;max-width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{flex:0 0 83.33333333%;max-width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{flex:0 0 87.5%;max-width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{flex:0 0 91.66666667%;max-width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{flex:0 0 95.83333333%;max-width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{flex:0 0 100%;max-width:100%}.van-col--offset-24{margin-left:100%}:root{--van-count-down-text-color: var(--van-text-color);--van-count-down-font-size: var(--van-font-size-md);--van-count-down-line-height: var(--van-line-height-md)}.van-count-down{color:var(--van-count-down-text-color);font-size:var(--van-count-down-font-size);line-height:var(--van-count-down-line-height)}:root{--van-empty-padding: var(--van-padding-xl) 0;--van-empty-image-size: 4.26667rem;--van-empty-description-margin-top: var(--van-padding-md);--van-empty-description-padding: 0 1.6rem;--van-empty-description-color: var(--van-text-color-2);--van-empty-description-font-size: var(--van-font-size-md);--van-empty-description-line-height: var(--van-line-height-md);--van-empty-bottom-margin-top: .64rem}.van-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:var(--van-empty-padding)}.van-empty__image{width:var(--van-empty-image-size);height:var(--van-empty-image-size)}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:var(--van-empty-description-margin-top);padding:var(--van-empty-description-padding);color:var(--van-empty-description-color);font-size:var(--van-empty-description-font-size);line-height:var(--van-empty-description-line-height)}.van-empty__bottom{margin-top:var(--van-empty-bottom-margin-top)}.van-theme-dark .van-empty{opacity:.5}:root{--van-coupon-list-background: var(--van-background);--van-coupon-list-field-padding: .13333rem 0 .13333rem var(--van-padding-md);--van-coupon-list-exchange-button-height: .85333rem;--van-coupon-list-close-button-height: 1.06667rem;--van-coupon-list-empty-tip-color: var(--van-text-color-2);--van-coupon-list-empty-tip-font-size: var(--van-font-size-md);--van-coupon-list-empty-tip-line-height: var(--van-line-height-md)}.van-coupon-list{position:relative;height:100%;background:var(--van-coupon-list-background)}.van-coupon-list__field{padding:var(--van-coupon-list-field-padding)}.van-coupon-list__field .van-field__body{height:.90667rem;padding-left:var(--van-padding-sm);line-height:.90667rem;background:var(--van-background);border-radius:var(--van-radius-max)}.van-coupon-list__field .van-field__body::-webkit-input-placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__body::placeholder{color:var(--van-text-color-3)}.van-coupon-list__field .van-field__clear{margin-right:0}.van-coupon-list__exchange-bar{display:flex;align-items:center;background-color:var(--van-background-2)}.van-coupon-list__exchange{flex:none;height:var(--van-coupon-list-exchange-button-height);font-size:var(--van-font-size-lg);line-height:calc(var(--van-coupon-list-exchange-button-height) - .05333rem);border:0}.van-coupon-list .van-tabs__wrap{box-shadow:0 .16rem .32rem -.32rem var(--van-gray-6)}.van-coupon-list__list{box-sizing:border-box;padding:var(--van-padding-md) 0 var(--van-padding-lg);overflow-y:auto;-webkit-overflow-scrolling:touch}.van-coupon-list__list--with-bottom{padding-bottom:1.33333rem}.van-coupon-list__bottom{position:absolute;bottom:0;left:0;z-index:999;box-sizing:border-box;width:100%;padding:.13333rem var(--van-padding-md);font-weight:var(--van-font-bold);background-color:var(--van-background-2)}.van-coupon-list__close{height:var(--van-coupon-list-close-button-height)}.van-coupon-list__empty-tip{color:var(--van-coupon-list-empty-tip-color);font-size:var(--van-coupon-list-empty-tip-font-size);line-height:var(--van-coupon-list-empty-tip-line-height)}:root{--van-divider-margin: var(--van-padding-md) 0;--van-divider-text-color: var(--van-text-color-2);--van-divider-font-size: var(--van-font-size-md);--van-divider-line-height: .64rem;--van-divider-border-color: var(--van-border-color);--van-divider-content-padding: var(--van-padding-md);--van-divider-content-left-width: 10%;--van-divider-content-right-width: 10%}.van-divider{display:flex;align-items:center;margin:var(--van-divider-margin);color:var(--van-divider-text-color);font-size:var(--van-divider-font-size);line-height:var(--van-divider-line-height);border-color:var(--van-divider-border-color);border-style:solid;border-width:0}.van-divider:before,.van-divider:after{display:block;flex:1;box-sizing:border-box;height:.02667rem;border-color:inherit;border-style:inherit;border-width:var(--van-border-width) 0 0}.van-divider:before{content:""}.van-divider--hairline:before,.van-divider--hairline:after{transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--content-center:before,.van-divider--content-left:before,.van-divider--content-right:before{margin-right:var(--van-divider-content-padding)}.van-divider--content-center:after,.van-divider--content-left:after,.van-divider--content-right:after{margin-left:var(--van-divider-content-padding);content:""}.van-divider--content-left:before{max-width:var(--van-divider-content-left-width)}.van-divider--content-right:after{max-width:var(--van-divider-content-right-width)}:root{--van-dropdown-menu-height: 1.28rem;--van-dropdown-menu-background: var(--van-background-2);--van-dropdown-menu-shadow: 0 .05333rem .32rem rgba(100, 101, 102, .12);--van-dropdown-menu-title-font-size: .4rem;--van-dropdown-menu-title-text-color: var(--van-text-color);--van-dropdown-menu-title-active-text-color: var(--van-primary-color);--van-dropdown-menu-title-disabled-text-color: var(--van-text-color-2);--van-dropdown-menu-title-padding: 0 var(--van-padding-xs);--van-dropdown-menu-title-line-height: var(--van-line-height-lg);--van-dropdown-menu-option-active-color: var(--van-primary-color);--van-dropdown-menu-content-max-height: 80%}.van-dropdown-menu{-webkit-user-select:none;user-select:none}.van-dropdown-menu__bar{position:relative;display:flex;height:var(--van-dropdown-menu-height);background:var(--van-dropdown-menu-background);box-shadow:var(--van-dropdown-menu-shadow)}.van-dropdown-menu__bar--opened{z-index:calc(var(--van-dropdown-item-z-index) + 1)}.van-dropdown-menu__item{display:flex;flex:1;align-items:center;justify-content:center;min-width:0}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:var(--van-dropdown-menu-title-disabled-text-color)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:var(--van-dropdown-menu-title-padding);color:var(--van-dropdown-menu-title-text-color);font-size:var(--van-dropdown-menu-title-font-size);line-height:var(--van-dropdown-menu-title-line-height)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-.10667rem;margin-top:-.13333rem;border:.08rem solid;border-color:transparent transparent var(--van-gray-4) var(--van-gray-4);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:var(--van-dropdown-menu-title-active-text-color)}.van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}.van-dropdown-menu__title--down:after{margin-top:-.02667rem;transform:rotate(135deg)}:root{--van-dropdown-item-z-index: 10}.van-dropdown-item{position:fixed;right:0;left:0;z-index:var(--van-dropdown-item-z-index);overflow:hidden}.van-dropdown-item__icon{display:block;line-height:inherit}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active,.van-dropdown-item__option--active .van-dropdown-item__icon{color:var(--van-dropdown-menu-option-active-color)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__content{position:absolute;max-height:var(--van-dropdown-menu-content-max-height)}.van-grid{display:flex;flex-wrap:wrap}:root{--van-grid-item-content-padding: var(--van-padding-md) var(--van-padding-xs);--van-grid-item-content-background: var(--van-background-2);--van-grid-item-content-active-color: var(--van-active-color);--van-grid-item-icon-size: .74667rem;--van-grid-item-text-color: var(--van-text-color);--van-grid-item-text-font-size: var(--van-font-size-sm)}.van-grid-item{position:relative;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__icon{font-size:var(--van-grid-item-icon-size)}.van-grid-item__text{color:var(--van-grid-item-text-color);font-size:var(--van-grid-item-text-font-size);line-height:1.5;word-break:break-all}.van-grid-item__icon+.van-grid-item__text{margin-top:var(--van-padding-xs)}.van-grid-item__content{display:flex;flex-direction:column;box-sizing:border-box;height:100%;padding:var(--van-grid-item-content-padding);background:var(--van-grid-item-content-background)}.van-grid-item__content:after{z-index:1;border-width:0 var(--van-border-width) var(--van-border-width) 0}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--center{align-items:center;justify-content:center}.van-grid-item__content--horizontal{flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__text{margin:0 0 0 var(--van-padding-xs)}.van-grid-item__content--reverse{flex-direction:column-reverse}.van-grid-item__content--reverse .van-grid-item__text{margin:0 0 var(--van-padding-xs)}.van-grid-item__content--horizontal.van-grid-item__content--reverse{flex-direction:row-reverse}.van-grid-item__content--horizontal.van-grid-item__content--reverse .van-grid-item__text{margin:0 var(--van-padding-xs) 0 0}.van-grid-item__content--surround:after{border-width:var(--van-border-width)}.van-grid-item__content--clickable{cursor:pointer}.van-grid-item__content--clickable:active{background-color:var(--van-grid-item-content-active-color)}:root{--van-index-bar-sidebar-z-index: 2;--van-index-bar-index-font-size: var(--van-font-size-xs);--van-index-bar-index-line-height: var(--van-line-height-xs);--van-index-bar-index-active-color: var(--van-primary-color)}.van-index-bar__sidebar{position:fixed;top:50%;right:0;z-index:var(--van-index-bar-sidebar-z-index);display:flex;flex-direction:column;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.van-index-bar__index{padding:0 var(--van-padding-xs) 0 var(--van-padding-md);font-weight:var(--van-font-bold);font-size:var(--van-index-bar-index-font-size);line-height:var(--van-index-bar-index-line-height)}.van-index-bar__index--active{color:var(--van-index-bar-index-active-color);font-weight:700}:root{--van-index-anchor-z-index: 1;--van-index-anchor-padding: 0 var(--van-padding-md);--van-index-anchor-text-color: var(--van-text-color);--van-index-anchor-font-weight: var(--van-font-bold);--van-index-anchor-font-size: var(--van-font-size-md);--van-index-anchor-line-height: .85333rem;--van-index-anchor-background: transparent;--van-index-anchor-sticky-text-color: var(--van-primary-color);--van-index-anchor-sticky-background: var(--van-background-2)}.van-index-anchor{z-index:var(--van-index-anchor-z-index);box-sizing:border-box;padding:var(--van-index-anchor-padding);color:var(--van-index-anchor-text-color);font-weight:var(--van-index-anchor-font-weight);font-size:var(--van-index-anchor-font-size);line-height:var(--van-index-anchor-line-height);background:var(--van-index-anchor-background)}.van-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--van-index-anchor-sticky-text-color);background:var(--van-index-anchor-sticky-background)}:root{--van-pagination-height: 1.06667rem;--van-pagination-font-size: var(--van-font-size-md);--van-pagination-item-width: .96rem;--van-pagination-item-default-color: var(--van-primary-color);--van-pagination-item-disabled-color: var(--van-gray-7);--van-pagination-item-disabled-background: var(--van-background);--van-pagination-background: var(--van-background-2);--van-pagination-desc-color: var(--van-gray-7);--van-pagination-disabled-opacity: var(--van-disabled-opacity)}.van-pagination{font-size:var(--van-pagination-font-size)}.van-pagination__items{display:flex}.van-pagination__item,.van-pagination__page-desc{display:flex;align-items:center;justify-content:center}.van-pagination__item{flex:1;box-sizing:border-box;min-width:var(--van-pagination-item-width);height:var(--van-pagination-height);color:var(--van-pagination-item-default-color);background:var(--van-pagination-background);cursor:pointer;-webkit-user-select:none;user-select:none}.van-pagination__item button{flex:1;height:100%;border:none;padding:0;background:transparent}.van-pagination__item button[disabled]{cursor:not-allowed}.van-pagination__item:active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item:not(:last-child):after{border-right-width:0}.van-pagination__item--active{color:var(--van-white);background-color:var(--van-pagination-item-default-color)}.van-pagination__item--page{flex-grow:0}.van-pagination__item--prev,.van-pagination__item--next{padding:0 var(--van-padding-base);cursor:pointer}.van-pagination__item--border:after{border-width:var(--van-border-width)}.van-pagination__item--disabled{color:var(--van-pagination-item-disabled-color);background-color:var(--van-pagination-item-disabled-background);opacity:var(--van-pagination-disabled-opacity)}.van-pagination__page-desc{flex:1;height:var(--van-pagination-height);color:var(--van-pagination-desc-color)}:root{--van-password-input-height: 1.33333rem;--van-password-input-margin: 0 var(--van-padding-md);--van-password-input-font-size: .53333rem;--van-password-input-radius: .16rem;--van-password-input-background: var(--van-background-2);--van-password-input-info-color: var(--van-text-color-2);--van-password-input-info-font-size: var(--van-font-size-md);--van-password-input-error-info-color: var(--van-danger-color);--van-password-input-dot-size: .26667rem;--van-password-input-dot-color: var(--van-text-color);--van-password-input-text-color: var(--van-text-color);--van-password-input-cursor-color: var(--van-text-color);--van-password-input-cursor-width: .02667rem;--van-password-input-cursor-height: 40%;--van-password-input-cursor-duration: 1s}.van-password-input{position:relative;margin:var(--van-password-input-margin);-webkit-user-select:none;user-select:none}.van-password-input__info,.van-password-input__error-info{margin-top:var(--van-padding-md);font-size:var(--van-password-input-info-font-size);text-align:center}.van-password-input__info{color:var(--van-password-input-info-color)}.van-password-input__error-info{color:var(--van-password-input-error-info-color)}.van-password-input__security{display:flex;width:100%;height:var(--van-password-input-height);cursor:pointer}.van-password-input__security:after{border-radius:var(--van-password-input-radius)}.van-password-input__security li{position:relative;display:flex;flex:1;align-items:center;justify-content:center;height:100%;color:var(--van-password-input-text-color);font-size:var(--van-password-input-font-size);line-height:1.2;background:var(--van-password-input-background)}.van-password-input__security i{position:absolute;top:50%;left:50%;width:var(--van-password-input-dot-size);height:var(--van-password-input-dot-size);background:var(--van-password-input-dot-color);border-radius:100%;transform:translate(-50%,-50%);visibility:hidden}.van-password-input__cursor{position:absolute;top:50%;left:50%;width:var(--van-password-input-cursor-width);height:var(--van-password-input-cursor-height);background:var(--van-password-input-cursor-color);transform:translate(-50%,-50%);animation:var(--van-password-input-cursor-duration) van-cursor-flicker infinite}@keyframes van-cursor-flicker{0%{opacity:0}50%{opacity:1}to{opacity:0}}:root{--van-progress-height: .10667rem;--van-progress-color: var(--van-primary-color);--van-progress-inactive-color: var(--van-gray-5);--van-progress-background: var(--van-gray-3);--van-progress-pivot-padding: 0 .13333rem;--van-progress-pivot-text-color: var(--van-white);--van-progress-pivot-font-size: var(--van-font-size-xs);--van-progress-pivot-line-height: 1.6;--van-progress-pivot-background: var(--van-primary-color)}.van-progress{position:relative;height:var(--van-progress-height);background:var(--van-progress-background);border-radius:var(--van-progress-height)}.van-progress__portion{position:absolute;left:0;width:100%;height:100%;background:var(--van-progress-color);border-radius:inherit;transform-origin:0;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__portion--inactive{background:var(--van-progress-inactive-color)}.van-progress__pivot{position:absolute;top:50%;box-sizing:border-box;min-width:3.6em;padding:var(--van-progress-pivot-padding);color:var(--van-progress-pivot-text-color);font-size:var(--van-progress-pivot-font-size);line-height:var(--van-progress-pivot-line-height);text-align:center;word-break:keep-all;background:var(--van-progress-pivot-background);border-radius:1em;transition:all var(--van-duration-base) var(--van-ease-out)}.van-progress__pivot--inactive{background:var(--van-progress-inactive-color)}:root{--van-sidebar-width: 2.13333rem}.van-sidebar{width:var(--van-sidebar-width);overflow-y:auto;-webkit-overflow-scrolling:touch}:root{--van-sidebar-font-size: var(--van-font-size-md);--van-sidebar-line-height: var(--van-line-height-md);--van-sidebar-text-color: var(--van-text-color);--van-sidebar-disabled-text-color: var(--van-text-color-3);--van-sidebar-padding: .53333rem var(--van-padding-sm);--van-sidebar-active-color: var(--van-active-color);--van-sidebar-background: var(--van-background);--van-sidebar-selected-font-weight: var(--van-font-bold);--van-sidebar-selected-text-color: var(--van-text-color);--van-sidebar-selected-border-width: .10667rem;--van-sidebar-selected-border-height: .42667rem;--van-sidebar-selected-border-color: var(--van-primary-color);--van-sidebar-selected-background: var(--van-background-2)}.van-sidebar-item{position:relative;display:block;box-sizing:border-box;padding:var(--van-sidebar-padding);overflow:hidden;color:var(--van-sidebar-text-color);font-size:var(--van-sidebar-font-size);line-height:var(--van-sidebar-line-height);background:var(--van-sidebar-background);cursor:pointer;-webkit-user-select:none;user-select:none}.van-sidebar-item:active{background-color:var(--van-sidebar-active-color)}.van-sidebar-item:not(:last-child):after{border-bottom-width:.02667rem}.van-sidebar-item__text{word-break:break-all}.van-sidebar-item--select{color:var(--van-sidebar-selected-text-color);font-weight:var(--van-sidebar-selected-font-weight)}.van-sidebar-item--select,.van-sidebar-item--select:active{background-color:var(--van-sidebar-selected-background)}.van-sidebar-item--select:before{position:absolute;top:50%;left:0;width:var(--van-sidebar-selected-border-width);height:var(--van-sidebar-selected-border-height);background-color:var(--van-sidebar-selected-border-color);transform:translateY(-50%);content:""}.van-sidebar-item--disabled{color:var(--van-sidebar-disabled-text-color);cursor:not-allowed}.van-sidebar-item--disabled:active{background-color:var(--van-sidebar-background)}:root{--van-tree-select-font-size: var(--van-font-size-md);--van-tree-select-nav-background: var(--van-background);--van-tree-select-content-background: var(--van-background-2);--van-tree-select-nav-item-padding: .37333rem var(--van-padding-sm);--van-tree-select-item-height: 1.28rem;--van-tree-select-item-active-color: var(--van-primary-color);--van-tree-select-item-disabled-color: var(--van-gray-5);--van-tree-select-item-selected-size: .42667rem}.van-tree-select{position:relative;display:flex;font-size:var(--van-tree-select-font-size)}.van-tree-select__nav{flex:1;overflow-y:auto;background:var(--van-tree-select-nav-background);-webkit-overflow-scrolling:touch}.van-tree-select__nav-item{padding:var(--van-tree-select-nav-item-padding)}.van-tree-select__content{flex:2;overflow-y:auto;background:var(--van-tree-select-content-background);-webkit-overflow-scrolling:touch}.van-tree-select__item{position:relative;padding:0 .85333rem 0 var(--van-padding-md);font-weight:var(--van-font-bold);line-height:var(--van-tree-select-item-height);-webkit-user-select:none;user-select:none;cursor:pointer}.van-tree-select__item--active{color:var(--van-tree-select-item-active-color)}.van-tree-select__item:active{background-color:var(--van-active-color)}.van-tree-select__item--disabled{color:var(--van-tree-select-item-disabled-color);cursor:not-allowed}.van-tree-select__item--disabled:active{background-color:transparent}.van-tree-select__selected{position:absolute;top:50%;right:var(--van-padding-md);margin-top:calc(var(--van-padding-xs) * -1);font-size:var(--van-tree-select-item-selected-size)}:root{--van-skeleton-title-width: 40%}.van-skeleton-title{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-title--round{border-radius:var(--van-radius-max)}.van-skeleton-title{width:var(--van-skeleton-title-width);margin:0}.van-skeleton-title+.van-skeleton-paragraph{margin-top:.53333rem}:root{--van-skeleton-avatar-size: .85333rem;--van-skeleton-avatar-background: var(--van-active-color)}.van-skeleton-avatar{flex-shrink:0;width:var(--van-skeleton-avatar-size);height:var(--van-skeleton-avatar-size);margin-right:var(--van-padding-md);background:var(--van-skeleton-avatar-background)}.van-skeleton-avatar--round{border-radius:var(--van-radius-max)}.van-skeleton-avatar+.van-skeleton__content{padding-top:var(--van-padding-xs)}:root{--van-skeleton-paragraph-height: .42667rem;--van-skeleton-paragraph-background: var(--van-active-color);--van-skeleton-paragraph-margin-top: var(--van-padding-sm)}.van-skeleton-paragraph{height:var(--van-skeleton-paragraph-height);background:var(--van-skeleton-paragraph-background)}.van-skeleton-paragraph--round{border-radius:var(--van-radius-max)}.van-skeleton-paragraph:not(:first-child){margin-top:var(--van-skeleton-paragraph-margin-top)}:root{--van-skeleton-duration: 1.2s}.van-skeleton{display:flex;padding:0 var(--van-padding-md)}.van-skeleton__content{width:100%}.van-skeleton--animate{animation:van-skeleton-blink var(--van-skeleton-duration) ease-in-out infinite}@keyframes van-skeleton-blink{50%{opacity:.6}}:root{--van-slider-active-background: var(--van-primary-color);--van-slider-inactive-background: var(--van-gray-3);--van-slider-disabled-opacity: var(--van-disabled-opacity);--van-slider-bar-height: .05333rem;--van-slider-button-width: .64rem;--van-slider-button-height: .64rem;--van-slider-button-radius: 50%;--van-slider-button-background: var(--van-white);--van-slider-button-shadow: 0 .02667rem .05333rem rgba(0, 0, 0, .5)}.van-theme-dark{--van-slider-inactive-background: var(--van-background-3)}.van-slider{position:relative;width:100%;height:var(--van-slider-bar-height);background:var(--van-slider-inactive-background);border-radius:var(--van-radius-max);cursor:pointer}.van-slider:before{position:absolute;top:calc(var(--van-padding-xs) * -1);right:0;bottom:calc(var(--van-padding-xs) * -1);left:0;content:""}.van-slider__bar{position:absolute;width:100%;height:100%;background:var(--van-slider-active-background);border-radius:inherit;transition:all var(--van-duration-fast)}.van-slider__button{width:var(--van-slider-button-width);height:var(--van-slider-button-height);background:var(--van-slider-button-background);border-radius:var(--van-slider-button-radius);box-shadow:var(--van-slider-button-shadow)}.van-slider__button-wrapper{position:absolute;cursor:-webkit-grab;cursor:grab;top:50%}.van-slider__button-wrapper--right{right:0;transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper--left{left:0;transform:translate3d(-50%,-50%,0)}.van-slider--disabled{cursor:not-allowed;opacity:var(--van-slider-disabled-opacity)}.van-slider--disabled .van-slider__button-wrapper{cursor:not-allowed}.van-slider--vertical{display:inline-block;width:var(--van-slider-bar-height);height:100%}.van-slider--vertical .van-slider__button-wrapper--right{top:auto;right:50%;bottom:0;transform:translate3d(50%,50%,0)}.van-slider--vertical .van-slider__button-wrapper--left{top:0;right:50%;left:auto;transform:translate3d(50%,-50%,0)}.van-slider--vertical:before{top:0;right:calc(var(--van-padding-xs) * -1);bottom:0;left:calc(var(--van-padding-xs) * -1)}.van-space{display:inline-flex}.van-space--horizontal .van-space-item{display:flex;align-items:center}.van-space--vertical{flex-direction:column}.van-space--align-baseline{align-items:baseline}.van-space--align-start{align-items:flex-start}.van-space--align-end{align-items:flex-end}.van-space--align-center{align-items:center}.van-space--wrap{flex-wrap:wrap}.van-space--fill{display:flex}:root{--van-steps-background: var(--van-background-2)}.van-steps{overflow:hidden;background-color:var(--van-steps-background)}.van-steps--horizontal{padding:.26667rem .26667rem 0}.van-steps--horizontal .van-steps__items{position:relative;display:flex;margin:0 0 .26667rem;padding-bottom:.58667rem}.van-steps--vertical{padding:0 0 0 var(--van-padding-xl)}:root{--van-step-text-color: var(--van-text-color-2);--van-step-active-color: var(--van-primary-color);--van-step-process-text-color: var(--van-text-color);--van-step-font-size: var(--van-font-size-md);--van-step-line-color: var(--van-border-color);--van-step-finish-line-color: var(--van-primary-color);--van-step-finish-text-color: var(--van-text-color);--van-step-icon-size: .32rem;--van-step-circle-size: .13333rem;--van-step-circle-color: var(--van-gray-6);--van-step-horizontal-title-font-size: var(--van-font-size-sm)}.van-step{position:relative;flex:1;color:var(--van-step-text-color);font-size:var(--van-step-font-size)}.van-step__circle{display:block;width:var(--van-step-circle-size);height:var(--van-step-circle-size);background-color:var(--van-step-circle-color);border-radius:50%}.van-step__line{position:absolute;background-color:var(--van-step-line-color);transition:background-color var(--van-duration-base)}.van-step--horizontal{float:left}.van-step--horizontal:first-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child{position:absolute;right:.02667rem;width:auto}.van-step--horizontal:last-child .van-step__title{margin-left:0;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:-.24rem;left:auto}.van-step--horizontal .van-step__circle-container{position:absolute;top:.8rem;left:calc(var(--van-padding-xs) * -1);z-index:1;padding:0 var(--van-padding-xs);background-color:var(--van-background-2);transform:translateY(-50%)}.van-step--horizontal .van-step__title{display:inline-block;margin-left:.08rem;font-size:var(--van-step-horizontal-title-font-size);transform:translate(-50%)}.van-step--horizontal .van-step__line{top:.8rem;left:0;width:100%;height:.02667rem}.van-step--horizontal .van-step__icon{display:block;font-size:var(--van-step-icon-size)}.van-step--horizontal .van-step--process{color:var(--van-step-process-text-color)}.van-step--vertical{display:block;float:none;padding:.26667rem .26667rem .26667rem 0;line-height:var(--van-line-height-sm)}.van-step--vertical:not(:last-child):after{border-bottom-width:.02667rem}.van-step--vertical .van-step__circle-container{position:absolute;top:.50667rem;left:-.4rem;z-index:1;font-size:var(--van-step-icon-size);line-height:1;transform:translate(-50%,-50%)}.van-step--vertical .van-step__line{top:.42667rem;left:-.4rem;width:.02667rem;height:100%}.van-step:last-child .van-step__line{width:0}.van-step--finish{color:var(--van-step-finish-text-color)}.van-step--finish .van-step__circle,.van-step--finish .van-step__line{background-color:var(--van-step-finish-line-color)}.van-step__icon,.van-step__title{transition:color var(--van-duration-base)}.van-step__icon--active,.van-step__title--active,.van-step__icon--finish,.van-step__title--finish{color:var(--van-step-active-color)}:root{--van-stepper-background: var(--van-active-color);--van-stepper-button-icon-color: var(--van-text-color);--van-stepper-button-disabled-color: var(--van-background);--van-stepper-button-disabled-icon-color: var(--van-gray-5);--van-stepper-button-round-theme-color: var(--van-primary-color);--van-stepper-input-width: .85333rem;--van-stepper-input-height: .74667rem;--van-stepper-input-font-size: var(--van-font-size-md);--van-stepper-input-line-height: normal;--van-stepper-input-text-color: var(--van-text-color);--van-stepper-input-disabled-text-color: var(--van-text-color-3);--van-stepper-input-disabled-background: var(--van-active-color);--van-stepper-radius: var(--van-radius-md)}.van-stepper{display:inline-block;-webkit-user-select:none;user-select:none}.van-stepper__minus,.van-stepper__plus{position:relative;box-sizing:border-box;width:var(--van-stepper-input-height);height:var(--van-stepper-input-height);margin:0;padding:0;color:var(--van-stepper-button-icon-color);vertical-align:middle;background:var(--van-stepper-background);border:0}.van-stepper__minus:before,.van-stepper__plus:before{width:50%;height:.02667rem}.van-stepper__minus:after,.van-stepper__plus:after{width:.02667rem;height:50%}.van-stepper__minus:before,.van-stepper__plus:before,.van-stepper__minus:after,.van-stepper__plus:after{position:absolute;top:50%;left:50%;background-color:currentColor;transform:translate(-50%,-50%);content:""}.van-stepper__minus--disabled,.van-stepper__plus--disabled{color:var(--van-stepper-button-disabled-icon-color);background-color:var(--van-stepper-button-disabled-color);cursor:not-allowed}.van-stepper__minus{border-radius:var(--van-stepper-radius) 0 0 var(--van-stepper-radius)}.van-stepper__minus:after{display:none}.van-stepper__plus{border-radius:0 var(--van-stepper-radius) var(--van-stepper-radius) 0}.van-stepper__input{box-sizing:border-box;width:var(--van-stepper-input-width);height:var(--van-stepper-input-height);margin:0 .05333rem;padding:0;color:var(--van-stepper-input-text-color);font-size:var(--van-stepper-input-font-size);line-height:var(--van-stepper-input-line-height);text-align:center;vertical-align:middle;background:var(--van-stepper-background);border:0;border-width:.02667rem 0;border-radius:0;-webkit-appearance:none}.van-stepper__input:disabled{color:var(--van-stepper-input-disabled-text-color);background-color:var(--van-stepper-input-disabled-background);-webkit-text-fill-color:var(--van-stepper-input-disabled-text-color);opacity:1}.van-stepper__input:read-only{cursor:default}.van-stepper--round .van-stepper__input{background-color:transparent}.van-stepper--round .van-stepper__plus,.van-stepper--round .van-stepper__minus{border-radius:100%}.van-stepper--round .van-stepper__plus--disabled,.van-stepper--round .van-stepper__minus--disabled{opacity:.3;cursor:not-allowed}.van-stepper--round .van-stepper__plus{color:var(--van-white);background:var(--van-stepper-button-round-theme-color)}.van-stepper--round .van-stepper__minus{color:var(--van-stepper-button-round-theme-color);background-color:var(--van-background-2);border:.02667rem solid var(--van-stepper-button-round-theme-color)}.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}:root{--van-tabbar-height: 1.33333rem;--van-tabbar-z-index: 1;--van-tabbar-background: var(--van-background-2)}.van-tabbar{z-index:var(--van-tabbar-z-index);display:flex;box-sizing:content-box;width:100%;height:var(--van-tabbar-height);background:var(--van-tabbar-background)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}:root{--van-tabbar-item-font-size: var(--van-font-size-sm);--van-tabbar-item-text-color: var(--van-text-color);--van-tabbar-item-active-color: var(--van-primary-color);--van-tabbar-item-active-background: var(--van-background-2);--van-tabbar-item-line-height: 1;--van-tabbar-item-icon-size: .58667rem;--van-tabbar-item-icon-margin-bottom: var(--van-padding-base)}.van-tabbar-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:var(--van-tabbar-item-text-color);font-size:var(--van-tabbar-item-font-size);line-height:var(--van-tabbar-item-line-height);cursor:pointer}.van-tabbar-item__icon{margin-bottom:var(--van-tabbar-item-icon-margin-bottom);font-size:var(--van-tabbar-item-icon-size)}.van-tabbar-item__icon .van-icon{display:block}.van-tabbar-item__icon .van-badge{margin-top:var(--van-padding-base)}.van-tabbar-item__icon img{display:block;height:.53333rem}.van-tabbar-item--active{color:var(--van-tabbar-item-active-color);background-color:var(--van-tabbar-item-active-background)}:root{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap;word-break:break-word}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}.var--box,.var--box *{box-sizing:border-box}.var--relative{position:relative}.var--absolute{position:absolute}.var--hidden{overflow:hidden}.var--lock{overflow:hidden!important}.var--block{display:block}.var--ellipsis{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.var--inline-block{display:inline-block}.var--flex{display:flex}.var--inline-flex{display:inline-flex}:root{--font-size-xs: .26667rem;--font-size-sm: .32rem;--font-size-md: .37333rem;--font-size-lg: .42667rem;--icon-size-xs: .42667rem;--icon-size-sm: .48rem;--icon-size-md: .53333rem;--icon-size-lg: .58667rem;--color-body: #fff;--color-text: #333;--color-primary: #3a7afe;--color-info: #00afef;--color-success: #00c48f;--color-warning: #ff9f00;--color-danger: #f44336;--color-disabled: #e0e0e0;--color-text-disabled: #aaa;--opacity-disabled: .6;--cubic-bezier: cubic-bezier(.25, .8, .5, 1);--shadow-key-umbra-opacity: rgba(0, 0, 0, .2);--shadow-key-penumbra-opacity: rgba(0, 0, 0, .14);--shadow-key-ambient-opacity: rgba(0, 0, 0, .12)}:root{--popup-content-background-color: #fff;--popup-overlay-background-color: rgba(0, 0, 0, .6)}.var-fade-enter-from,.var-fade-leave-to{opacity:0}.var-fade-enter-active,.var-fade-leave-active{transition:opacity .25s}.var-pop-center-enter-from,.var-pop-center-leave-to{transform:scale(.3)}.var-pop-center-enter-active,.var-pop-center-leave-active{transition:all .25s}.var-pop-bottom-enter-from,.var-pop-bottom-leave-to{transform:translateY(100%)}.var-pop-bottom-enter-active,.var-pop-bottom-leave-active{transition:all .25s}.var-pop-top-enter-from,.var-pop-top-leave-to{transform:translateY(-100%)}.var-pop-top-enter-active,.var-pop-top-leave-active{transition:all .25s}.var-pop-left-enter-from,.var-pop-left-leave-to{transform:translate(-100%)}.var-pop-left-enter-active,.var-pop-left-leave-active{transition:all .25s}.var-pop-right-enter-from,.var-pop-right-leave-to{transform:translate(100%)}.var-pop-right-enter-active,.var-pop-right-leave-active{transition:all .25s}.var-popup{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.var-popup__overlay{display:flex;justify-content:center;align-items:center;position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--popup-overlay-background-color);transition:all .25s}.var-popup__content{overflow:auto;transition:all .25s}.var-popup--content-background-color{background-color:var(--popup-content-background-color)}.var-popup--center{position:relative}.var-popup--bottom{min-width:100%;position:absolute;left:0;bottom:0}.var-popup--top{min-width:100%;position:absolute;left:0;top:0}.var-popup--left{min-height:100%;position:absolute;left:0;top:0}.var-popup--right{min-height:100%;position:absolute;right:0;top:0}.var-elevation--0{box-shadow:0 0 0 0 var(--shadow-key-umbra-opacity),0 0 0 0 var(--shadow-key-penumbra-opacity),0 0 0 0 var(--shadow-key-ambient-opacity)}.var-elevation--1{box-shadow:0 .05333rem .02667rem -.02667rem var(--shadow-key-umbra-opacity),0 .02667rem .02667rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .08rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--2{box-shadow:0 .08rem .02667rem -.05333rem var(--shadow-key-umbra-opacity),0 .05333rem .05333rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .13333rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--3{box-shadow:0 .08rem .08rem -.05333rem var(--shadow-key-umbra-opacity),0 .08rem .10667rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .21333rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--4{box-shadow:0 .05333rem .10667rem -.02667rem var(--shadow-key-umbra-opacity),0 .10667rem .13333rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .26667rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--5{box-shadow:0 .08rem .13333rem -.02667rem var(--shadow-key-umbra-opacity),0 .13333rem .21333rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .37333rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--6{box-shadow:0 .08rem .13333rem -.02667rem var(--shadow-key-umbra-opacity),0 .16rem .26667rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .48rem 0 var(--shadow-key-ambient-opacity)}.var-elevation--7{box-shadow:0 .10667rem .13333rem -.05333rem var(--shadow-key-umbra-opacity),0 .18667rem .26667rem .02667rem var(--shadow-key-penumbra-opacity),0 .05333rem .42667rem .02667rem var(--shadow-key-ambient-opacity)}.var-elevation--8{box-shadow:0 .13333rem .13333rem -.08rem var(--shadow-key-umbra-opacity),0 .21333rem .26667rem .02667rem var(--shadow-key-penumbra-opacity),0 .08rem .37333rem .05333rem var(--shadow-key-ambient-opacity)}.var-elevation--9{box-shadow:0 .13333rem .16rem -.08rem var(--shadow-key-umbra-opacity),0 .24rem .32rem .02667rem var(--shadow-key-penumbra-opacity),0 .08rem .42667rem .05333rem var(--shadow-key-ambient-opacity)}.var-elevation--10{box-shadow:0 .16rem .16rem -.08rem var(--shadow-key-umbra-opacity),0 .26667rem .37333rem .02667rem var(--shadow-key-penumbra-opacity),0 .10667rem .48rem .08rem var(--shadow-key-ambient-opacity)}.var-elevation--11{box-shadow:0 .16rem .18667rem -.10667rem var(--shadow-key-umbra-opacity),0 .29333rem .4rem .02667rem var(--shadow-key-penumbra-opacity),0 .10667rem .53333rem .08rem var(--shadow-key-ambient-opacity)}.var-elevation--12{box-shadow:0 .18667rem .21333rem -.10667rem var(--shadow-key-umbra-opacity),0 .32rem .45333rem .05333rem var(--shadow-key-penumbra-opacity),0 .13333rem .58667rem .10667rem var(--shadow-key-ambient-opacity)}.var-elevation--13{box-shadow:0 .18667rem .21333rem -.10667rem var(--shadow-key-umbra-opacity),0 .34667rem .50667rem .05333rem var(--shadow-key-penumbra-opacity),0 .13333rem .64rem .10667rem var(--shadow-key-ambient-opacity)}.var-elevation--14{box-shadow:0 .18667rem .24rem -.10667rem var(--shadow-key-umbra-opacity),0 .37333rem .56rem .05333rem var(--shadow-key-penumbra-opacity),0 .13333rem .69333rem .10667rem var(--shadow-key-ambient-opacity)}.var-elevation--15{box-shadow:0 .21333rem .24rem -.13333rem var(--shadow-key-umbra-opacity),0 .4rem .58667rem .05333rem var(--shadow-key-penumbra-opacity),0 .16rem .74667rem .13333rem var(--shadow-key-ambient-opacity)}.var-elevation--16{box-shadow:0 .21333rem .26667rem -.13333rem var(--shadow-key-umbra-opacity),0 .42667rem .64rem .05333rem var(--shadow-key-penumbra-opacity),0 .16rem .8rem .13333rem var(--shadow-key-ambient-opacity)}.var-elevation--17{box-shadow:0 .21333rem .29333rem -.13333rem var(--shadow-key-umbra-opacity),0 .45333rem .69333rem .05333rem var(--shadow-key-penumbra-opacity),0 .16rem .85333rem .13333rem var(--shadow-key-ambient-opacity)}.var-elevation--18{box-shadow:0 .24rem .29333rem -.13333rem var(--shadow-key-umbra-opacity),0 .48rem .74667rem .05333rem var(--shadow-key-penumbra-opacity),0 .18667rem .90667rem .16rem var(--shadow-key-ambient-opacity)}.var-elevation--19{box-shadow:0 .24rem .32rem -.16rem var(--shadow-key-umbra-opacity),0 .50667rem .77333rem .05333rem var(--shadow-key-penumbra-opacity),0 .18667rem .96rem .16rem var(--shadow-key-ambient-opacity)}.var-elevation--20{box-shadow:0 .26667rem .34667rem -.16rem var(--shadow-key-umbra-opacity),0 .53333rem .82667rem .08rem var(--shadow-key-penumbra-opacity),0 .21333rem 1.01333rem .18667rem var(--shadow-key-ambient-opacity)}.var-elevation--21{box-shadow:0 .26667rem .34667rem -.16rem var(--shadow-key-umbra-opacity),0 .56rem .88rem .08rem var(--shadow-key-penumbra-opacity),0 .21333rem 1.06667rem .18667rem var(--shadow-key-ambient-opacity)}.var-elevation--22{box-shadow:0 .26667rem .37333rem -.16rem var(--shadow-key-umbra-opacity),0 .58667rem .93333rem .08rem var(--shadow-key-penumbra-opacity),0 .21333rem 1.12rem .18667rem var(--shadow-key-ambient-opacity)}.var-elevation--23{box-shadow:0 .29333rem .37333rem -.18667rem var(--shadow-key-umbra-opacity),0 .61333rem .96rem .08rem var(--shadow-key-penumbra-opacity),0 .24rem 1.17333rem .21333rem var(--shadow-key-ambient-opacity)}.var-elevation--24{box-shadow:0 .29333rem .4rem -.18667rem var(--shadow-key-umbra-opacity),0 .64rem 1.01333rem .08rem var(--shadow-key-penumbra-opacity),0 .24rem 1.22667rem .21333rem var(--shadow-key-ambient-opacity)}:root{--loading-opacity: .38;--loading-desc-margin: .21333rem 0 0}.var-loading{--loading-normal-width: 1.33333rem;--loading-normal-height: calc(var(--font-size-md) + .05333rem);--loading-large-width: 1.70667rem;--loading-large-height: calc(var(--font-size-lg) + .05333rem);--loading-small-width: .96rem;--loading-small-height: calc(var(--font-size-sm) + .05333rem);--loading-mini-width: .58667rem;--loading-mini-height: calc(var(--font-size-xs) + .05333rem);position:relative}.var-loading__content{position:relative;transition:opacity .3s;opacity:1}.var-loading__content--active{opacity:var(--loading-opacity)}.var-loading__content-mask{position:absolute;left:0;right:0;top:0;bottom:0}.var-loading__body{display:flex;justify-content:center;align-items:center;height:100%;flex-direction:column}.var-loading__inside{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1}.var-loading__description{color:var(--color-primary);margin:var(--loading-desc-margin)}.var-loading__description--large{font-size:var(--font-size-lg)}.var-loading__description--normal{font-size:var(--font-size-md)}.var-loading__description--small{font-size:var(--font-size-sm)}.var-loading__description--mini{font-size:var(--font-size-xs)}.var-loading__circle{display:flex}.var-loading__circle-block{display:inline-block;color:var(--color-primary);animation:circle 1.8s linear infinite}.var-loading__circle-block--large{width:.96rem;height:.96rem}.var-loading__circle-block--normal{width:.8rem;height:.8rem}.var-loading__circle-block--small{width:.64rem;height:.64rem}.var-loading__circle-block--mini{width:.48rem;height:.48rem}.var-loading__circle-block svg{display:block;width:100%;height:100%}.var-loading__circle-block svg circle{animation:circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}@keyframes circle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.var-loading__wave{--loading-wave-size-item-width: .13333rem;--loading-wave-size-item-margin: .13333rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.var-loading__wave--large{width:var(--loading-large-width);height:var(--loading-large-height)}.var-loading__wave--normal{width:var(--loading-normal-width);height:var(--loading-normal-height)}.var-loading__wave--small{width:var(--loading-small-width);height:var(--loading-small-height)}.var-loading__wave--mini{width:var(--loading-mini-width);height:var(--loading-mini-height)}.var-loading__wave-item{height:100%;display:inline-block;animation:1.2s ease-in-out infinite wave;background-color:var(--color-primary)}.var-loading__wave-item:nth-child(1){animation-delay:-1.2s;margin-left:0}.var-loading__wave-item:nth-child(2){animation-delay:-1.1s}.var-loading__wave-item:nth-child(3){animation-delay:-1s}.var-loading__wave-item:nth-child(4){animation-delay:-.9s}.var-loading__wave-item:nth-child(5){animation-delay:-.8s}.var-loading__wave-item--large{width:var(--loading-wave-size-item-width);margin-left:var(--loading-wave-size-item-margin)}.var-loading__wave-item--normal{width:calc(var(--loading-wave-size-item-width) - .02667rem);margin-left:calc(var(--loading-wave-size-item-margin) - .02667rem)}.var-loading__wave-item--small{width:calc(var(--loading-wave-size-item-width) - .05333rem);margin-left:calc(var(--loading-wave-size-item-margin) - .05333rem)}.var-loading__wave-item--mini{width:calc(var(--loading-wave-size-item-width) - .08rem);margin-left:calc(var(--loading-wave-size-item-margin) - .08rem)}@keyframes wave{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.var-loading__cube{--loading-cube-size-item-width: .26667rem;--loading-cube-size-item-height: .26667rem;--loading-cube-size-item-margin: .13333rem;display:flex;align-items:center;flex-shrink:0}.var-loading__cube--large{width:var(--loading-large-width);height:var(--loading-large-height)}.var-loading__cube--normal{width:var(--loading-normal-width);height:var(--loading-normal-height)}.var-loading__cube--small{width:var(--loading-small-width);height:var(--loading-small-height)}.var-loading__cube--mini{width:var(--loading-mini-width);height:var(--loading-mini-height)}.var-loading__cube-item{display:inline-block;transform-origin:right bottom;animation:1.5s ease infinite cube;background-color:var(--color-primary)}.var-loading__cube-item:nth-child(1){animation-delay:.2s;margin-left:0}.var-loading__cube-item:nth-child(2){animation-delay:.4s}.var-loading__cube-item:nth-child(3){animation-delay:.6s}.var-loading__cube-item:nth-child(4){animation-delay:.8s}.var-loading__cube-item--large{height:var(--loading-cube-size-item-height);width:var(--loading-cube-size-item-width);margin-left:var(--loading-cube-size-item-margin)}.var-loading__cube-item--normal{height:calc(var(--loading-cube-size-item-height) - .05333rem);width:calc(var(--loading-cube-size-item-width) - .05333rem);margin-left:calc(var(--loading-cube-size-item-margin) - .02667rem)}.var-loading__cube-item--small{height:calc(var(--loading-cube-size-item-height) - .10667rem);width:calc(var(--loading-cube-size-item-width) - .10667rem);margin-left:calc(var(--loading-cube-size-item-margin) - .05333rem)}.var-loading__cube-item--mini{height:calc(var(--loading-cube-size-item-height) - .16rem);width:calc(var(--loading-cube-size-item-width) - .16rem);margin-left:calc(var(--loading-cube-size-item-margin) - .08rem)}@keyframes cube{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:rotate(90deg) scale(.3)}}.var-loading__rect{--loading-rect-size-item-width: .21333rem;--loading-rect-size-item-height: 100%;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;flex-shrink:0}.var-loading__rect--large{width:var(--loading-large-width);height:var(--loading-large-height)}.var-loading__rect--normal{width:var(--loading-normal-width);height:var(--loading-normal-height)}.var-loading__rect--small{width:var(--loading-small-width);height:var(--loading-small-height)}.var-loading__rect--mini{width:var(--loading-mini-width);height:var(--loading-mini-height)}.var-loading__rect-item{animation:2s ease-in-out infinite rect;background-color:var(--color-primary)}.var-loading__rect-item:nth-child(1){animation-delay:1.75s}.var-loading__rect-item:nth-child(2){animation-delay:1.5s}.var-loading__rect-item:nth-child(3){animation-delay:1.25s}.var-loading__rect-item:nth-child(4){animation-delay:1s}.var-loading__rect-item:nth-child(5){animation-delay:.75s}.var-loading__rect-item:nth-child(6){animation-delay:.5s}.var-loading__rect-item:nth-child(7){animation-delay:.25s}.var-loading__rect-item:nth-child(8){animation-delay:0s}.var-loading__rect-item--large{height:var(--loading-rect-size-item-height);width:var(--loading-rect-size-item-width)}.var-loading__rect-item--normal{height:calc(var(--loading-rect-size-item-height) * .9);width:calc(var(--loading-rect-size-item-width) * .8)}.var-loading__rect-item--small{height:calc(var(--loading-rect-size-item-height) * .8);width:calc(var(--loading-rect-size-item-width) * .6)}.var-loading__rect-item--mini{height:calc(var(--loading-rect-size-item-height) * .7);width:calc(var(--loading-rect-size-item-width) * .4)}@keyframes rect{0%{opacity:.3}25%{opacity:1}50%{opacity:.3}65%{opacity:1}to{opacity:.3}}.var-loading__disappear{--loading-disappear-size-item-width: .4rem;--loading-disappear-size-item-height: .4rem;display:flex;justify-content:space-around;align-items:center;flex-flow:nowrap;flex-shrink:0}.var-loading__disappear--large{width:var(--loading-large-width);height:var(--loading-large-height)}.var-loading__disappear--normal{width:var(--loading-normal-width);height:var(--loading-normal-height)}.var-loading__disappear--small{width:var(--loading-small-width);height:var(--loading-small-height)}.var-loading__disappear--mini{width:var(--loading-mini-width);height:var(--loading-mini-height)}.var-loading__disappear-item{border-radius:50%;animation:.5s ease-in-out infinite alternate disappear;background-color:var(--color-primary)}.var-loading__disappear-item:nth-child(1){animation-delay:-.4s}.var-loading__disappear-item:nth-child(2){animation-delay:-.2s}.var-loading__disappear-item:nth-child(3){animation-delay:0s}.var-loading__disappear-item--large{height:var(--loading-disappear-size-item-height);width:var(--loading-disappear-size-item-width)}.var-loading__disappear-item--normal{height:calc(var(--loading-disappear-size-item-height) * .8);width:calc(var(--loading-disappear-size-item-width) * .8)}.var-loading__disappear-item--small{height:calc(var(--loading-disappear-size-item-height) * .6);width:calc(var(--loading-disappear-size-item-width) * .6)}.var-loading__disappear-item--mini{height:calc(var(--loading-disappear-size-item-height) * .4);width:calc(var(--loading-disappear-size-item-width) * .4)}@keyframes disappear{0%{opacity:1}to{opacity:0}}:root{--button-default-color: #f5f5f5;--button-primary-color: var(--color-primary);--button-danger-color: var(--color-danger);--button-success-color: var(--color-success);--button-warning-color: var(--color-warning);--button-info-color: var(--color-info);--button-disabled-color: var(--color-disabled);--button-disabled-text-color: var(--color-text-disabled);--button-border-radius: .10667rem;--button-mini-padding: 0 .24rem;--button-small-padding: 0 .29333rem;--button-normal-padding: 0 .4rem;--button-large-padding: 0 .58667rem;--button-round-padding: .16rem;--button-mini-height: .53333rem;--button-small-height: .74667rem;--button-normal-height: .96rem;--button-large-height: 1.17333rem;--button-mini-font-size: var(--font-size-xs);--button-small-font-size: var(--font-size-sm);--button-normal-font-size: var(--font-size-md);--button-large-font-size: var(--font-size-lg)}.var-button{position:relative;justify-content:center;align-items:center;outline:none;border:none;border-radius:var(--button-border-radius);user-select:none;cursor:pointer;font-family:inherit;transition:box-shadow .2s,background-color .25s;will-change:box-shadow;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap}.var-button:active{box-shadow:0 .08rem .13333rem -.02667rem var(--shadow-key-umbra-opacity),0 .13333rem .21333rem 0 var(--shadow-key-penumbra-opacity),0 .02667rem .37333rem 0 var(--shadow-key-ambient-opacity)}.var-button__content{display:flex;align-items:center;flex-wrap:wrap}.var-button__loading[var-button-cover]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.var-button--default{color:inherit;background-color:var(--button-default-color)}.var-button--primary{color:#fff;background-color:var(--button-primary-color)}.var-button--info{color:#fff;background-color:var(--button-info-color)}.var-button--success{color:#fff;background-color:var(--button-success-color)}.var-button--warning{color:#fff;background-color:var(--button-warning-color)}.var-button--danger{color:#fff;background-color:var(--button-danger-color)}.var-button--disabled{background-color:var(--button-disabled-color);color:var(--button-disabled-text-color);cursor:not-allowed;box-shadow:none!important}.var-button--block{width:100%}.var-button--text{background-color:transparent}.var-button--text:active{box-shadow:none}.var-button--text-default{color:inherit}.var-button--text-primary{color:var(--button-primary-color)}.var-button--text-info{color:var(--button-info-color)}.var-button--text-success{color:var(--button-success-color)}.var-button--text-warning{color:var(--button-warning-color)}.var-button--text-danger{color:var(--button-danger-color)}.var-button--text-disabled{color:var(--button-disabled-text-color)}.var-button--normal{height:var(--button-normal-height);padding:var(--button-normal-padding);font-size:var(--button-normal-font-size)}.var-button--large{height:var(--button-large-height);padding:var(--button-large-padding);font-size:var(--button-large-font-size)}.var-button--small{height:var(--button-small-height);padding:var(--button-small-padding);font-size:var(--button-small-font-size)}.var-button--mini{height:var(--button-mini-height);padding:var(--button-mini-padding);font-size:var(--button-mini-font-size)}.var-button--round{padding:var(--button-round-padding);border-radius:50%;height:auto}.var-button--outline{border:thin solid currentColor}.var-button--hidden{opacity:0}@font-face{font-family:varlet-icons;src:url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI/skzfAAABjAAAAFZjbWFwjZdd9AAAA7AAAAf2Z2x5ZsxpT7MAAAyQAAAxJGhlYWRhIEB+AAAA4AAAADZoaGVhA8QCMwAAALwAAAAkaG10eOQAAAAAAAHkAAABzGxvY2GWuqLkAAALqAAAAOhtYXhwAYwAfgAAARgAAAAgbmFtZQyVRWAAAD20AAACRnBvc3QvJoX1AAA//AAABvcAAQAAAcD/wAAAAgAAAP//AgEAAQAAAAAAAAAAAAAAAAAAAHMAAQAAAAEAAK/5zeZfDzz1AAsCAAAAAAAAAAAAAAAAAAAAAAAAAP/AAgEBwQAAAAgAAgAAAAAAAAABAAAAcwByAA8AAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAEB/AGQAAUAAAFEAWYAAABHAUQBZgAAAPUAGQCEAAACA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AlAADwNwAA8DcAAAAmAADwOAAA8DgAAAAnAADwOQAA8DkAAAAoAADwQAAA8EAAAAApAADwQQAA8EEAAAAqAADwQgAA8EIAAAArAADwQwAA8EMAAAAsAADwRAAA8EQAAAAtAADwRQAA8EUAAAAuAADwRgAA8EYAAAAvAADwRwAA8EcAAAAwAADwSAAA8EgAAAAxAADwSQAA8EkAAAAyAADwUAAA8FAAAAAzAADwUQAA8FEAAAA0AADwUgAA8FIAAAA1AADwUwAA8FMAAAA2AADwVAAA8FQAAAA3AADwVQAA8FUAAAA4AADwVgAA8FYAAAA5AADwVwAA8FcAAAA6AADwWAAA8FgAAAA7AADwWQAA8FkAAAA8AADwYAAA8GAAAAA9AADwYQAA8GEAAAA+AADwYgAA8GIAAAA/AADwYwAA8GMAAABAAADwZAAA8GQAAABBAADwZQAA8GUAAABCAADwZgAA8GYAAABDAADwZwAA8GcAAABEAADwaAAA8GgAAABFAADwaQAA8GkAAABGAADwcAAA8HAAAABHAADwcQAA8HEAAABIAADwcgAA8HIAAABJAADwcwAA8HMAAABKAADwdAAA8HQAAABLAADwdQAA8HUAAABMAADwdgAA8HYAAABNAADwdwAA8HcAAABOAADweAAA8HgAAABPAADweQAA8HkAAABQAADwgAAA8IAAAABRAADwgQAA8IEAAABSAADwggAA8IIAAABTAADwgwAA8IMAAABUAADwhAAA8IQAAABVAADwhQAA8IUAAABWAADwhgAA8IYAAABXAADwhwAA8IcAAABYAADwiAAA8IgAAABZAADwiQAA8IkAAABaAADwkAAA8JAAAABbAADwkQAA8JEAAABcAADwkgAA8JIAAABdAADwkwAA8JMAAABeAADwlAAA8JQAAABfAADwlQAA8JUAAABgAADwlgAA8JYAAABhAADwlwAA8JcAAABiAADwmAAA8JgAAABjAADwmQAA8JkAAABkAADxAAAA8QAAAABlAADxAQAA8QEAAABmAADxAgAA8QIAAABnAADxAwAA8QMAAABoAADxBAAA8QQAAABpAADxBQAA8QUAAABqAADxBgAA8QYAAABrAADxBwAA8QcAAABsAADxCAAA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GluZQ1tYWduaWZ5LW1pbnVzFW1hZ25pZnktbWludXMtb3V0bGluZQtwbGF5LWNpcmNsZRNwbGF5LWNpcmNsZS1vdXRsaW5lC2hlbHAtY2lyY2xlE2hlbHAtY2lyY2xlLW91dGxpbmULcGx1cy1jaXJjbGUTcGx1cy1jaXJjbGUtb3V0bGluZQVjaGVjawx3aW5kb3ctY2xvc2UEcGx1cwVtaW51cwpjaGV2cm9uLXVwDGNoZXZyb24tZG93bgxjaGV2cm9uLWxlZnQNY2hldnJvbi1yaWdodAdtZW51LXVwCW1lbnUtZG93bgltZW51LWxlZnQKbWVudS1yaWdodAZ1cGxvYWQIZG93bmxvYWQUZm9ybWF0LWxpc3QtY2hlY2tib3gEbWVudQltZW51LW9wZW4NZG90cy12ZXJ0aWNhbBRtZXNzYWdlLXRleHQtb3V0bGluZRptZXNzYWdlLXByb2Nlc3Npbmctb3V0bGluZRN3aGl0ZS1iYWxhbmNlLXN1bm55DndlYXRoZXItY2xvdWR5EXdlYXRoZXItbGlnaHRuaW5nD3dlYXRoZXItcG91cmluZw13ZWF0aGVyLXNub3d5DXdlYXRoZXItcmFpbnkJdHJhbnNsYXRlB21hZ25pZnkGZ2l0aHViB3JlZnJlc2gKYXJyb3ctZG93bgVwb3dlchVmaWxlLWRvY3VtZW50LW91dGxpbmUEZmlyZQR3aWZpBndyZW5jaAxjYWtlLXZhcmlhbnQIbm90ZWJvb2sJY2VsbHBob25lDXdlYXRoZXItbmlnaHQDeG1sDGNvbnRlbnQtY29weQtxcmNvZGUtc2NhbgxiYXJjb2RlLXNjYW4Ic2hvcHBpbmcQc2hvcHBpbmctb3V0bGluZRRjYXJkLWFjY291bnQtZGV0YWlscxxjYXJkLWFjY291bnQtZGV0YWlscy1vdXRsaW5lA3BpbgdwaW4tb2ZmC3Bpbi1vdXRsaW5lD3Bpbi1vZmYtb3V0bGluZQljb2RlLWpzb24AAAA=) format("truetype");font-weight:400;font-style:normal}.var-icon--set{font-family:varlet-icons}.var-icon-checkbox-marked-circle:before{content:"\\f000"}.var-icon-check-circle-outline:before{content:"\\f001"}.var-icon-information:before{content:"\\f002"}.var-icon-information-outline:before{content:"\\f003"}.var-icon-warning:before{content:"\\f004"}.var-icon-alert-outline:before{content:"\\f005"}.var-icon-error:before{content:"\\f006"}.var-icon-alert-circle-outline:before{content:"\\f007"}.var-icon-checkbox-marked:before{content:"\\f008"}.var-icon-checkbox-marked-outline:before{content:"\\f009"}.var-icon-checkbox-blank-outline:before{content:"\\f010"}.var-icon-radio-marked:before{content:"\\f011"}.var-icon-checkbox-marked-circle-outline:before{content:"\\f012"}.var-icon-radio-blank:before{content:"\\f013"}.var-icon-close-circle:before{content:"\\f014"}.var-icon-close-circle-outline:before{content:"\\f015"}.var-icon-close-box:before{content:"\\f016"}.var-icon-close-box-outline:before{content:"\\f017"}.var-icon-minus-circle:before{content:"\\f018"}.var-icon-minus-circle-outline:before{content:"\\f019"}.var-icon-star:before{content:"\\f020"}.var-icon-star-half-full:before{content:"\\f021"}.var-icon-star-outline:before{content:"\\f022"}.var-icon-heart:before{content:"\\f023"}.var-icon-heart-half-full:before{content:"\\f024"}.var-icon-heart-outline:before{content:"\\f025"}.var-icon-delete:before{content:"\\f026"}.var-icon-trash-can:before{content:"\\f027"}.var-icon-trash-can-outline:before{content:"\\f028"}.var-icon-minus-box:before{content:"\\f029"}.var-icon-minus-box-outline:before{content:"\\f030"}.var-icon-account-circle:before{content:"\\f031"}.var-icon-account-circle-outline:before{content:"\\f032"}.var-icon-cog:before{content:"\\f033"}.var-icon-cog-outline:before{content:"\\f034"}.var-icon-map-marker-radius:before{content:"\\f035"}.var-icon-map-marker-radius-outline:before{content:"\\f036"}.var-icon-camera:before{content:"\\f037"}.var-icon-camera-outline:before{content:"\\f038"}.var-icon-cart:before{content:"\\f039"}.var-icon-cart-outline:before{content:"\\f040"}.var-icon-phone:before{content:"\\f041"}.var-icon-phone-outline:before{content:"\\f042"}.var-icon-image:before{content:"\\f043"}.var-icon-image-outline:before{content:"\\f044"}.var-icon-bell:before{content:"\\f045"}.var-icon-bell-outline:before{content:"\\f046"}.var-icon-home:before{content:"\\f047"}.var-icon-home-outline:before{content:"\\f048"}.var-icon-map-marker:before{content:"\\f049"}.var-icon-map-marker-outline:before{content:"\\f050"}.var-icon-magnify-plus:before{content:"\\f051"}.var-icon-magnify-plus-outline:before{content:"\\f052"}.var-icon-magnify-minus:before{content:"\\f053"}.var-icon-magnify-minus-outline:before{content:"\\f054"}.var-icon-play-circle:before{content:"\\f055"}.var-icon-play-circle-outline:before{content:"\\f056"}.var-icon-help-circle:before{content:"\\f057"}.var-icon-help-circle-outline:before{content:"\\f058"}.var-icon-plus-circle:before{content:"\\f059"}.var-icon-plus-circle-outline:before{content:"\\f060"}.var-icon-check:before{content:"\\f061"}.var-icon-window-close:before{content:"\\f062"}.var-icon-plus:before{content:"\\f063"}.var-icon-minus:before{content:"\\f064"}.var-icon-chevron-up:before{content:"\\f065"}.var-icon-chevron-down:before{content:"\\f066"}.var-icon-chevron-left:before{content:"\\f067"}.var-icon-chevron-right:before{content:"\\f068"}.var-icon-menu-up:before{content:"\\f069"}.var-icon-menu-down:before{content:"\\f070"}.var-icon-menu-left:before{content:"\\f071"}.var-icon-menu-right:before{content:"\\f072"}.var-icon-upload:before{content:"\\f073"}.var-icon-download:before{content:"\\f074"}.var-icon-format-list-checkbox:before{content:"\\f075"}.var-icon-menu:before{content:"\\f076"}.var-icon-menu-open:before{content:"\\f077"}.var-icon-dots-vertical:before{content:"\\f078"}.var-icon-message-text-outline:before{content:"\\f079"}.var-icon-message-processing-outline:before{content:"\\f080"}.var-icon-white-balance-sunny:before{content:"\\f081"}.var-icon-weather-cloudy:before{content:"\\f082"}.var-icon-weather-lightning:before{content:"\\f083"}.var-icon-weather-pouring:before{content:"\\f084"}.var-icon-weather-snowy:before{content:"\\f085"}.var-icon-weather-rainy:before{content:"\\f086"}.var-icon-translate:before{content:"\\f087"}.var-icon-magnify:before{content:"\\f088"}.var-icon-github:before{content:"\\f089"}.var-icon-refresh:before{content:"\\f090"}.var-icon-arrow-down:before{content:"\\f091"}.var-icon-power:before{content:"\\f092"}.var-icon-file-document-outline:before{content:"\\f093"}.var-icon-fire:before{content:"\\f094"}.var-icon-wifi:before{content:"\\f095"}.var-icon-wrench:before{content:"\\f096"}.var-icon-cake-variant:before{content:"\\f097"}.var-icon-notebook:before{content:"\\f098"}.var-icon-cellphone:before{content:"\\f099"}.var-icon-weather-night:before{content:"\\f100"}.var-icon-xml:before{content:"\\f101"}.var-icon-content-copy:before{content:"\\f102"}.var-icon-qrcode-scan:before{content:"\\f103"}.var-icon-barcode-scan:before{content:"\\f104"}.var-icon-shopping:before{content:"\\f105"}.var-icon-shopping-outline:before{content:"\\f106"}.var-icon-card-account-details:before{content:"\\f107"}.var-icon-card-account-details-outline:before{content:"\\f108"}.var-icon-pin:before{content:"\\f109"}.var-icon-pin-off:before{content:"\\f110"}.var-icon-pin-outline:before{content:"\\f111"}.var-icon-pin-off-outline:before{content:"\\f112"}.var-icon-code-json:before{content:"\\f113"}:root{--icon-size: .53333rem}.var-icon{position:relative;display:inline-flex;justify-content:center;align-items:center;vertical-align:bottom;color:inherit;font-size:var(--icon-size)}.var-icon:before{position:relative;display:inline-block;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;font-weight:400;font-style:normal;line-height:1}.var-icon--shrinking{transform:scale(0);transition-property:transform}.var-icon__image{width:var(--icon-size);height:var(--icon-size);object-fit:cover}:root{--snackbar-width: 6.82667rem;--snackbar-color: rgba(255, 255, 255, .87);--snackbar-border-radius: .10667rem;--snackbar-background: #333;--snackbar-font-size: var(--font-size-md);--snackbar-margin: .16rem .64rem;--snackbar-border-color: currentColor;--snackbar-success-background: var(--color-success);--snackbar-info-background: var(--color-info);--snackbar-error-background: var(--color-danger);--snackbar-warning-background: var(--color-warning);--snackbar-content-padding: .37333rem .42667rem;--snackbar-action-margin: 0 .42667rem 0 0}.var-transition-group{position:fixed;left:0;right:0;top:0;bottom:0;pointer-events:none}.var-pointer-auto{pointer-events:auto}.var-snackbar{display:flex;justify-content:center;align-items:baseline;left:0;right:0;bottom:0;transition:all .15s var(--cubic-bezier)}.var-snackbar__transition{top:0;position:fixed}.var-snackbar__transition .var-snackbar__wrapper{position:absolute}.var-snackbar__transition .var-snackbar__wrapper-top{top:5%}.var-snackbar__transition .var-snackbar__wrapper-center{top:45%}.var-snackbar__transition .var-snackbar__wrapper-bottom{bottom:5%}.var-snackbar__wrapper{width:var(--snackbar-width);display:flex;border-radius:var(--snackbar-border-radius);color:var(--snackbar-color);background:var(--snackbar-background);font-size:var(--snackbar-font-size);margin:var(--snackbar-margin);align-items:center;border-color:var(--snackbar-border-color);pointer-events:auto;transition:.3s var(--cubic-bezier)}.var-snackbar__wrapper-success{background:var(--snackbar-success-background)}.var-snackbar__wrapper-info{background:var(--snackbar-info-background)}.var-snackbar__wrapper-warning{background:var(--snackbar-warning-background)}.var-snackbar__wrapper-error{background:var(--snackbar-error-background)}.var-snackbar__content{flex-grow:1;padding:var(--snackbar-content-padding)}.var-snackbar__action{margin:var(--snackbar-action-margin);display:flex}.var-snackbar__vertical{flex-direction:column;align-items:flex-start}.var-snackbar__vertical .var-snackbar__action{align-self:flex-end;margin-bottom:.21333rem}.var-snackbar-fade-enter-from,.var-snackbar-fade-leave-to{opacity:0;transform:translateY(-.8rem)}:root{--cell-color: var(--color-text);--cell-font-size: var(--font-size-md);--cell-description-font-size: var(--font-size-sm);--cell-description-color: rgba(0, 0, 0, .6);--cell-description-margin-top: .10667rem;--cell-padding: .26667rem .32rem;--cell-min-height: 1.06667rem;--cell-border-color: #bcc2cb;--cell-border-left: .32rem;--cell-border-right: .32rem;--cell-icon-right: .21333rem;--cell-extra-left: .21333rem}.var-cell{align-items:center;display:flex;min-height:var(--cell-min-height);outline:none;width:100%;padding:var(--cell-padding);position:relative;box-sizing:border-box;font-size:var(--cell-font-size);color:var(--cell-color)}.var-cell--border:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;bottom:0;right:var(--cell-border-right);left:var(--cell-border-left);border-bottom:.02667rem solid var(--cell-border-color);transform:scaleY(.5)}.var-cell__icon{margin-right:var(--cell-icon-right);flex:0}.var-cell__content{flex:1;overflow:hidden}.var-cell__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.var-cell__description{font-size:var(--cell-description-font-size);color:var(--cell-description-color);margin-top:var(--cell-description-margin-top)}.var-cell__extra{flex:0;margin-left:var(--cell-extra-left)}.var-cell--cursor{cursor:pointer}:root{--ripple-cubic-bezier: cubic-bezier(.68, .01, .62, .6);--ripple-color: currentColor}.var-ripple{position:absolute;transition:transform .2s var(--ripple-cubic-bezier),opacity .14s linear;top:0;left:0;border-radius:50%;opacity:0;will-change:transform,opacity;pointer-events:none;z-index:100;background-color:var(--ripple-color)}:root{--form-details-error-message-color: var(--color-danger);--form-details-extra-message-color: #888;--form-details-margin-top: .16rem;--form-details-font-size: .32rem;--form-details-message-margin-right: .10667rem}.var-form-details{display:flex;justify-content:space-between;font-size:var(--form-details-font-size);margin-top:var(--form-details-margin-top)}.var-form-details-enter-from,.var-form-details-leave-to{opacity:0;margin-top:.05333rem!important}.var-form-details-enter-active,.var-form-details-leave-active{transition:.2s all var(--cubic-bezier)}.var-form-details__message-enter-from,.var-form-details__message-leave-to{opacity:0}.var-form-details__message-enter-active,.var-form-details__message-leave-active{transition:.2s all var(--cubic-bezier)}.var-form-details__error-message{flex-grow:1;color:var(--form-details-error-message-color);margin-right:var(--form-details-message-margin-right);user-select:none;text-align:left}.var-form-details__extra-message{flex-shrink:0;color:var(--form-details-extra-message-color);user-select:none;text-align:right}.var-hover-overlay{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-color:currentColor;opacity:0;transition:opacity .15s;will-change:opacity;pointer-events:none}.var-hover-overlay--hovering{opacity:.15}:root{--switch-track-background: #fff;--switch-track-active-background: var(--color-primary);--switch-track-error-background: var(--color-danger);--switch-ripple-color: var(--color-primary);--switch-handle-background: #fff;--switch-handle-color: #fff;--switch-handle-active-background: var(--color-primary);--switch-handle-error-background: var(--color-danger);--switch-disabled-opacity: var(--opacity-disabled)}.var-switch{display:inline-block}.var-switch__block{position:relative;display:flex;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;justify-content:center;height:.64rem;width:1.06667rem;transition:filter .25s}.var-switch--disabled{filter:opacity(var(--switch-disabled-opacity));cursor:not-allowed}.var-switch__track{background-color:var(--switch-track-background);transition:background-color .25s;filter:opacity(var(--switch-disabled-opacity));height:.384rem;width:1.01333rem;border-radius:calc(.53333rem * 2 / 3)}.var-switch__track--active{background-color:var(--switch-track-active-background)}.var-switch__track--error{background-color:var(--switch-track-error-background)!important}.var-switch__ripple{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--switch-ripple-color);border-radius:50%;overflow:hidden;transition:.3s var(--cubic-bezier);width:1.06667rem;height:1.06667rem;left:-.26667rem}.var-switch__ripple--active{left:.26667rem}.var-switch__handle{border-radius:50%;background-color:var(--switch-handle-background);display:flex;align-items:center;justify-content:center;color:var(--switch-handle-color);transition:background-color .25s;width:.53333rem;height:.53333rem}.var-switch__handle--active{background-color:var(--switch-handle-active-background)}.var-switch__handle--error{background-color:var(--switch-handle-error-background)!important}*{margin:0;padding:0;box-sizing:border-box}:root{--cursor-color: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABRJREFUCB1jZDy49T8DEDCBCBAAACTkAnq23WmtAAAAAElFTkSuQmCC);--container-background: #fff;--active-stave-box: rgba(1, 193, 181, .2);--corsor-opacity: 1}.eyeProtection{--cursor-color: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABZJREFUCB1j/N8sv5UBCJhABMN/hv8AKQgEWNQffFMAAAAASUVORK5CYII=);--container-background: #fff4e1;--active-measur-backgorund: rgba(255, 98, 37, .18)}.hideCursor{--corsor-opacity: 0}.selectionToast{top:10vh}.pop-center-enter-from,.pop-center-leave-to{transform:scale(0)}.pop-center-enter-active,.pop-center-leave-active{transition:all .25s}:root{--van-duration-base: .25s}.van-overlay{transition:all .25s}.popup-custom{transition:all .25s;background:transparent;overflow:initial}.popup-custom.van-scale{transform-origin:center -25%}.van-scale-enter-from,.van-scale-leave-to{opacity:0;transform:scale(.3)}.van-scale-enter-active,.van-scale-leave-active{transition:all .25s}.custom-close-btn .van-popup__close-icon{top:0;right:-.8rem;background-color:#fff;border-radius:50%;padding:.10667rem;font-size:.42667rem;color:var(--van-primary-color)}._popup_1838h_1{background:transparent;width:100%;height:100%}._dots_1838h_6{display:flex;justify-content:center;align-items:center;width:100%;height:100%}._dot_1838h_6{width:.8rem;height:.8rem;margin:0 .53333rem;background-color:silver;border-radius:50%}._dot_1838h_6._active_1838h_20{background-color:#fff}._dot_1838h_6._one_1838h_23{background-color:var(--van-primary-color)}._audioList_1j0z3_1{position:fixed;left:0;bottom:0;width:100%;z-index:-1000000}._selectionContainer_1lvx1_1{position:absolute;left:0;top:0;right:0}._position_1lvx1_7{position:absolute}._staveBox_1lvx1_10{background-color:var(--active-stave-box)!important}._leftStaveBox_1lvx1_13{background-color:var(--active-stave-box)}._leftStaveBox_1lvx1_13:before{content:"";position:absolute;left:-.13333rem;top:-.13333rem;width:.13333rem;height:100%;border-top:.13333rem solid var(--van-primary-color);border-left:.13333rem solid var(--van-primary-color);border-bottom:.13333rem solid var(--van-primary-color)}._rightStaveBox_1lvx1_27{background-color:var(--active-stave-box)}._rightStaveBox_1lvx1_27:after{content:"";position:absolute;right:-.13333rem;top:-.13333rem;width:.13333rem;height:100%;border-top:.13333rem solid var(--van-primary-color);border-right:.13333rem solid var(--van-primary-color);border-bottom:.13333rem solid var(--van-primary-color)}._centerStaveBox_1lvx1_41{background-color:var(--active-stave-box)}._centerStaveBox_1lvx1_41:before{content:"";position:absolute;left:-.13333rem;top:-.13333rem;width:.13333rem;height:100%;border-top:.13333rem solid var(--van-primary-color);border-left:.13333rem solid var(--van-primary-color);border-bottom:.13333rem solid var(--van-primary-color)}._centerStaveBox_1lvx1_41:after{content:"";position:absolute;right:-.13333rem;top:-.13333rem;width:.13333rem;height:100%;border-top:.13333rem solid var(--van-primary-color);border-right:.13333rem solid var(--van-primary-color);border-bottom:.13333rem solid var(--van-primary-color)}._prepareStaveBox_1lvx1_66{background-color:rgba(255,98,37,.18)}._disable_1lvx1_69{pointer-events:none}._line_1lvx1_72{position:absolute;top:-20%;height:120%;width:.10667rem;background-color:rgba(255,141,41,.376)}.lineHide{opacity:0!important}._scoreItem_1lvx1_82{position:absolute;left:50%;top:-90%;transform:translate(-50%);font-size:.42667rem;font-family:Roboto,sans-serif;font-weight:700;display:flex;align-items:center;pointer-events:none;transition:all .8s}._scoreItem_1lvx1_82 img{height:.8rem}.scoreItemLeve0{background-color:rgba(255,142,142,.32)}.scoreItemLeve1{background-color:rgba(1,193,181,.2)}.scoreItemLeve2{background-color:rgba(255,178,82,.37)}.scoreItemLeve3{background-color:rgba(255,220,64,.4)}.centerTop-enter-active{opacity:1}.centerTop-enter-from{opacity:0;left:50%;top:50%;transform:translate(-50%) translateY(-50%) scale(.3)}._dotWrap_1lvx1_119{position:absolute;top:-.26667rem;right:6%;display:flex;justify-content:center;align-items:center;width:.53333rem;height:.53333rem;border-radius:50%;background-color:#ff9100;color:#fff;font-weight:700;font-size:.37333rem}._noteFollow_1lvx1_134{pointer-events:none;text-align:center;display:none}._noteFollow_1lvx1_134 .van-icon-success,._noteFollow_1lvx1_134 .van-icon-cross{display:none}._noteFollow_1lvx1_134.success{color:#07c160;display:block}._noteFollow_1lvx1_134.success .van-icon-success{display:initial}._noteFollow_1lvx1_134.error{color:#ee0a24;display:block}._noteFollow_1lvx1_134.error .van-icon-cross{display:initial}#musicAndSelection{position:relative;overflow-x:hidden;overflow-y:auto;height:100%;max-height:100vh}#musicAndSelection::-webkit-scrollbar{width:0;display:none}#musicAndSelection>div{transform:scale(var(--music-zoom));transform-origin:left top}#musicAndSelection svg{overflow:visible}._inGradualRange_i7l3l_19 #cursorImg-0{opacity:0}\n',document.head.appendChild(__vite_style__),{execute:function execute(){var _window$webkit,_window$webkit$messag,_window$webkit2,_window$webkit2$messa,_window$webkit3,_window$webkit3$messa;exports({$:createElementBlock,A:nextTick,C:withInstall,D:useScrollParent,I:isHidden,J:addUnit,Y:supportTouch,Z:createNamespace,_:openBlock,a0:normalizeClass,a3:defineListenerProp,a6:resolveComponent,a7:resolveDirective,a8:withDirectives,a9:renderSlot,aH:useClickAway,aN:isVNode,aQ:useRoute$1,aZ:showToast,aa:createBaseVNode,ab:createCommentVNode,ac:normalizeStyle,ad:call,af:createBlock,ag:withCtx,ai:useParent,al:useValidation,an:createTextVNode,ap:reactive,bC:usePlaceholder,bE:useRoute,bJ:noop$1,bN:callInterceptor,bP:mountComponent,bQ:usePopupState,bW:useCustomFieldValue,bY:raf,bZ:getScrollTop,b_:setScrollTop,bg:toRefs,bj:createRouter,bk:createWebHashHistory,c:createNamespace$1,c0:onDeactivated,c1:onMountedOrActivated,c2:getZIndexStyle,c5:usePageVisibility,c6:onActivated,c7:onPopupReopen,c8:doubleRaf,c9:useId,cb:setRootScrollTop,cc:getElementTop,cd:route,ce:inject,cf:provide,ch:getRootScrollTop,cm:formatNumber,co:resetScroll,cq:cancelRaf,cr:getSizeStyle,cu:addNumber,cv:useZIndex,cw:useTeleport,cx:useLock,cy:useRouteListener,d:defineComponent,f:useParent$1,g:useExpose,h:useEventListener$1,k:useChildren,l:pick$1,p:preventDefault,r:ref,u:useTouch,v:unitToPx,w:watchEffect,x:watch,z:mergeProps});var index="",common="",popup$1="",SnackbarSfc="",elevation="",loading="",button="",icon="",snackbar="",coreSfc="",cell="",CellSfc="",ripple="",formDetails="",hoverOverlay="",_switch="",SwitchSfc="",style="";function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return!!n[e.toLowerCase()]}:function(e){return!!n[e]}}function normalizeStyle(e){if(isArray$8(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],i=isString$2(r)?parseStringStyle(r):normalizeStyle(r);if(i)for(var a in i)t[a]=i[a]}return t}return isString$2(e)||isObject$4(e)?e:void 0}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[\s\S]*?\*\//g;function parseStringStyle(e){var t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach((function(e){if(e){var n=e.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function normalizeClass(e){var t="";if(isString$2(e))t=e;else if(isArray$8(e))for(var n=0;n<e.length;n++){var r=normalizeClass(e[n]);r&&(t+=r+" ")}else if(isObject$4(e))for(var i in e)e[i]&&(t+=i+" ");return t.trim()}var specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||""===e}var toDisplayString=exports("ae",(function(e){return isString$2(e)?e:null==e?"":isArray$8(e)||isObject$4(e)&&(e.toString===objectToString$2||!isFunction$5(e.toString))?JSON.stringify(e,replacer,2):String(e)})),replacer=function e(t,n){return n&&n.__v_isRef?e(t,n.value):isMap$1(n)?_defineProperty2({},"Map(".concat(n.size,")"),_toConsumableArray2(n.entries()).reduce((function(e,t){var n=_slicedToArray(t,2),r=n[0],i=n[1];return e["".concat(r," =>")]=i,e}),{})):isSet$1(n)?_defineProperty2({},"Set(".concat(n.size,")"),_toConsumableArray2(n.values())):!isObject$4(n)||isArray$8(n)||isPlainObject$3(n)?n:String(n)},EMPTY_OBJ={},EMPTY_ARR=[],NOOP=function(){},NO=function(){return!1},onRE=/^on[^a-z]/,isOn=function(e){return onRE.test(e)},isModelListener=function(e){return e.startsWith("onUpdate:")},extend$3=Object.assign,remove$7=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},hasOwnProperty$3=Object.prototype.hasOwnProperty,hasOwn$2=function(e,t){return hasOwnProperty$3.call(e,t)},isArray$8=Array.isArray,isMap$1=function(e){return"[object Map]"===toTypeString(e)},isSet$1=function(e){return"[object Set]"===toTypeString(e)},isFunction$5=function(e){return"function"==typeof e},isString$2=function(e){return"string"==typeof e},isSymbol$1=function(e){return"symbol"===_typeof2(e)},isObject$4=function(e){return null!==e&&"object"===_typeof2(e)},isPromise$1=function(e){return isObject$4(e)&&isFunction$5(e.then)&&isFunction$5(e.catch)},objectToString$2=Object.prototype.toString,toTypeString=function(e){return objectToString$2.call(e)},toRawType=function(e){return toTypeString(e).slice(8,-1)},isPlainObject$3=function(e){return"[object Object]"===toTypeString(e)},isIntegerKey=function(e){return isString$2(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=function(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},camelizeRE$1=/-(\w)/g,camelize$2=cacheStringFunction((function(e){return e.replace(camelizeRE$1,(function(e,t){return t?t.toUpperCase():""}))})),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction((function(e){return e.replace(hyphenateRE,"-$1").toLowerCase()})),capitalize=cacheStringFunction((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),toHandlerKey=cacheStringFunction((function(e){return e?"on".concat(capitalize(e)):""})),hasChanged=function(e,t){return!Object.is(e,t)},invokeArrayFns=function(e,t){for(var n=0;n<e.length;n++)e[n](t)},def=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},looseToNumber=function(e){var t=parseFloat(e);return isNaN(t)?e:t},toNumber$1=function(e){var t=isString$2(e)?Number(e):NaN;return isNaN(t)?e:t},_globalThis,getGlobalThis=function(){return _globalThis||(_globalThis="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})},activeEffectScope,EffectScope=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck2(this,e),this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}return _createClass2(e,[{key:"active",get:function(){return this._active}},{key:"run",value:function(e){if(this._active){var t=activeEffectScope;try{return activeEffectScope=this,e()}finally{activeEffectScope=t}}}},{key:"on",value:function(){activeEffectScope=this}},{key:"off",value:function(){activeEffectScope=this.parent}},{key:"stop",value:function(e){if(this._active){var t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}]),e}();function recordEffectScope(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:activeEffectScope;t&&t.active&&t.effects.push(e)}function getCurrentScope(){return activeEffectScope}var createDep=function(e){var t=new Set(e);return t.w=0,t.n=0,t},wasTracked=function(e){return(e.w&trackOpBit)>0},newTracked=function(e){return(e.n&trackOpBit)>0},initDepMarkers=function(e){var t=e.deps;if(t.length)for(var n=0;n<t.length;n++)t[n].w|=trackOpBit},finalizeDepMarkers=function(e){var t=e.deps;if(t.length){for(var n=0,r=0;r<t.length;r++){var i=t[r];wasTracked(i)&&!newTracked(i)?i.delete(e):t[n++]=i,i.w&=~trackOpBit,i.n&=~trackOpBit}t.length=n}},targetMap=new WeakMap,effectTrackDepth=0,trackOpBit=1,maxMarkerBits=30,activeEffect,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ReactiveEffect=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;_classCallCheck2(this,e),this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,r)}return _createClass2(e,[{key:"run",value:function(){if(!this.active)return this.fn();for(var e=activeEffect,t=shouldTrack;e;){if(e===this)return;e=e.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=t,this.parent=void 0,this.deferStop&&this.stop()}}},{key:"stop",value:function(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}]),e}();function cleanupEffect(e){var t=e.deps;if(t.length){for(var n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var shouldTrack=!0,trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){var e=trackStack.pop();shouldTrack=void 0===e||e}function track(e,t,n){if(shouldTrack&&activeEffect){var r=targetMap.get(e);r||targetMap.set(e,r=new Map);var i=r.get(n);i||r.set(n,i=createDep()),trackEffects(i)}}function trackEffects(e,t){var n=!1;effectTrackDepth<=maxMarkerBits?newTracked(e)||(e.n|=trackOpBit,n=!wasTracked(e)):n=!e.has(activeEffect),n&&(e.add(activeEffect),activeEffect.deps.push(e))}function trigger(e,t,n,r,i,a){var o=targetMap.get(e);if(o){var s=[];if("clear"===t)s=_toConsumableArray2(o.values());else if("length"===n&&isArray$8(e)){var l=Number(r);o.forEach((function(e,t){("length"===t||t>=l)&&s.push(e)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":isArray$8(e)?isIntegerKey(n)&&s.push(o.get("length")):(s.push(o.get(ITERATE_KEY)),isMap$1(e)&&s.push(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$8(e)||(s.push(o.get(ITERATE_KEY)),isMap$1(e)&&s.push(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$1(e)&&s.push(o.get(ITERATE_KEY))}if(1===s.length)s[0]&&triggerEffects(s[0]);else{var u,c=[],h=_createForOfIteratorHelper(s);try{for(h.s();!(u=h.n()).done;){var d=u.value;d&&c.push.apply(c,_toConsumableArray2(d))}}catch(f){h.e(f)}finally{h.f()}triggerEffects(createDep(c))}}}function triggerEffects(e,t){var n,r=isArray$8(e)?e:_toConsumableArray2(e),i=_createForOfIteratorHelper(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.computed&&triggerEffect(a)}}catch(u){i.e(u)}finally{i.f()}var o,s=_createForOfIteratorHelper(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.computed||triggerEffect(l)}}catch(u){s.e(u)}finally{s.f()}}function triggerEffect(e,t){(e!==activeEffect||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function getDepFromReactive(e,t){var n;return null===(n=targetMap.get(e))||void 0===n?void 0:n.get(t)}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter((function(e){return"arguments"!==e&&"caller"!==e})).map((function(e){return Symbol[e]})).filter(isSymbol$1)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){var e={};return["includes","indexOf","lastIndexOf"].forEach((function(t){e[t]=function(){for(var e=toRaw(this),n=0,r=this.length;n<r;n++)track(e,"get",n+"");for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=e[t].apply(e,a);return-1===s||!1===s?e[t].apply(e,_toConsumableArray2(a.map(toRaw))):s}})),["push","pop","shift","unshift","splice"].forEach((function(t){e[t]=function(){pauseTracking();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=toRaw(this)[t].apply(this,n);return resetTracking(),i}})),e}function hasOwnProperty$2(e){var t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}function createGetter(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(n))return n;var a=isArray$8(n);if(!e){if(a&&hasOwn$2(arrayInstrumentations,r))return Reflect.get(arrayInstrumentations,r,i);if("hasOwnProperty"===r)return hasOwnProperty$2}var o=Reflect.get(n,r,i);return(isSymbol$1(r)?builtInSymbols.has(r):isNonTrackableKeys(r))?o:(e||track(n,"get",r),t?o:isRef(o)?a&&isIntegerKey(r)?o:o.value:isObject$4(o)?e?readonly(o):reactive(o):o)}}var set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){var a=t[n];if(isReadonly(a)&&isRef(a)&&!isRef(r))return!1;if(!e&&(isShallow(r)||isReadonly(r)||(a=toRaw(a),r=toRaw(r)),!isArray$8(t)&&isRef(a)&&!isRef(r)))return a.value=r,!0;var o=isArray$8(t)&&isIntegerKey(n)?Number(n)<t.length:hasOwn$2(t,n),s=Reflect.set(t,n,r,i);return t===toRaw(i)&&(o?hasChanged(r,a)&&trigger(t,"set",n,r):trigger(t,"add",n,r)),s}}function deleteProperty(e,t){var n=hasOwn$2(e,t);e[t];var r=Reflect.deleteProperty(e,t);return r&&n&&trigger(e,"delete",t,void 0),r}function has$1$1(e,t){var n=Reflect.has(e,t);return isSymbol$1(t)&&builtInSymbols.has(t)||track(e,"has",t),n}function ownKeys$1(e){return track(e,"iterate",isArray$8(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get:get$1,set:set$1,deleteProperty:deleteProperty,has:has$1$1,ownKeys:ownKeys$1},readonlyHandlers={get:readonlyGet,set:function(e,t){return!0},deleteProperty:function(e,t){return!0}},shallowReactiveHandlers=extend$3({},mutableHandlers,{get:shallowGet,set:shallowSet}),toShallow=function(e){return e},getProto$1=function(e){return Reflect.getPrototypeOf(e)};function get$2(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=toRaw(e=e.__v_raw),a=toRaw(t);n||(t!==a&&track(i,"get",t),track(i,"get",a));var o=getProto$1(i).has,s=r?toShallow:n?toReadonly:toReactive;return o.call(i,t)?s(e.get(t)):o.call(i,a)?s(e.get(a)):void(e!==i&&e.get(t))}function has$4(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=toRaw(n),i=toRaw(e);return t||(e!==i&&track(r,"has",e),track(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function size(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add(e){e=toRaw(e);var t=toRaw(this);return getProto$1(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set(e,t){t=toRaw(t);var n=toRaw(this),r=getProto$1(n),i=r.has,a=r.get,o=i.call(n,e);o||(e=toRaw(e),o=i.call(n,e));var s=a.call(n,e);return n.set(e,t),o?hasChanged(t,s)&&trigger(n,"set",e,t):trigger(n,"add",e,t),this}function deleteEntry(e){var t=toRaw(this),n=getProto$1(t),r=n.has,i=n.get,a=r.call(t,e);a||(e=toRaw(e),a=r.call(t,e)),i&&i.call(t,e);var o=t.delete(e);return a&&trigger(t,"delete",e,void 0),o}function clear(){var e=toRaw(this),t=0!==e.size,n=e.clear();return t&&trigger(e,"clear",void 0,void 0),n}function createForEach(e,t){return function(n,r){var i=this,a=i.__v_raw,o=toRaw(a),s=t?toShallow:e?toReadonly:toReactive;return!e&&track(o,"iterate",ITERATE_KEY),a.forEach((function(e,t){return n.call(r,s(e),s(t),i)}))}}function createIterableMethod(e,t,n){return function(){var r=this.__v_raw,i=toRaw(r),a=isMap$1(i),o="entries"===e||e===Symbol.iterator&&a,s="keys"===e&&a,l=r[e].apply(r,arguments),u=n?toShallow:t?toReadonly:toReactive;return!t&&track(i,"iterate",s?MAP_KEY_ITERATE_KEY:ITERATE_KEY),_defineProperty2({next:function(){var e=l.next(),t=e.value,n=e.done;return n?{value:t,done:n}:{value:o?[u(t[0]),u(t[1])]:u(t),done:n}}},Symbol.iterator,(function(){return this}))}}function createReadonlyMethod(e){return function(){return"delete"!==e&&this}}function createInstrumentations(){var e={get:function(e){return get$2(this,e)},get size(){return size(this)},has:has$4,add:add,set:set,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!1)},t={get:function(e){return get$2(this,e,!1,!0)},get size(){return size(this)},has:has$4,add:add,set:set,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!0)},n={get:function(e){return get$2(this,e,!0)},get size(){return size(this,!0)},has:function(e){return has$4.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},r={get:function(e){return get$2(this,e,!0,!0)},get size(){return size(this,!0)},has:function(e){return has$4.call(this,e,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((function(i){e[i]=createIterableMethod(i,!1,!1),n[i]=createIterableMethod(i,!0,!1),t[i]=createIterableMethod(i,!1,!0),r[i]=createIterableMethod(i,!0,!0)})),[e,n,t,r]}var _createInstrumentatio=createInstrumentations(),_createInstrumentatio2=_slicedToArray(_createInstrumentatio,4),mutableInstrumentations=_createInstrumentatio2[0],readonlyInstrumentations=_createInstrumentatio2[1],shallowInstrumentations=_createInstrumentatio2[2],shallowReadonlyInstrumentations=_createInstrumentatio2[3];function createInstrumentationGetter(e,t){var n=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return function(t,r,i){return"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(hasOwn$2(n,r)&&r in t?n:t,r,i)}}var mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,n,r,i){if(!isObject$4(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;var a=i.get(e);if(a)return a;var o=getTargetType(e);if(0===o)return e;var s=new Proxy(e,2===o?r:n);return i.set(e,s),s}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!(!e||!e.__v_isReactive)}function isReadonly(e){return!(!e||!e.__v_isReadonly)}function isShallow(e){return!(!e||!e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){var t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return def(e,"__v_skip",!0),e}var toReactive=function(e){return isObject$4(e)?reactive(e):e},toReadonly=function(e){return isObject$4(e)?readonly(e):e};function trackRefValue(e){shouldTrack&&activeEffect&&trackEffects((e=toRaw(e)).dep||(e.dep=createDep()))}function triggerRefValue(e,t){var n=(e=toRaw(e)).dep;n&&triggerEffects(n)}function isRef(e){return!(!e||!0!==e.__v_isRef)}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}var RefImpl=function(){function e(t,n){_classCallCheck2(this,e),this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:toRaw(t),this._value=n?t:toReactive(t)}return _createClass2(e,[{key:"value",get:function(){return trackRefValue(this),this._value},set:function(e){var t=this.__v_isShallow||isShallow(e)||isReadonly(e);e=t?e:toRaw(e),hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:toReactive(e),triggerRefValue(this))}}]),e}();function unref(e){return isRef(e)?e.value:e}var shallowUnwrapHandlers={get:function(e,t,n){return unref(Reflect.get(e,t,n))},set:function(e,t,n,r){var i=e[t];return isRef(i)&&!isRef(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}function toRefs(e){var t=isArray$8(e)?new Array(e.length):{};for(var n in e)t[n]=toRef(e,n);return t}var ObjectRefImpl=function(){function e(t,n,r){_classCallCheck2(this,e),this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}return _createClass2(e,[{key:"value",get:function(){var e=this._object[this._key];return void 0===e?this._defaultValue:e},set:function(e){this._object[this._key]=e}},{key:"dep",get:function(){return getDepFromReactive(toRaw(this._object),this._key)}}]),e}(),_a$1;function toRef(e,t,n){var r=e[t];return isRef(r)?r:new ObjectRefImpl(e,t,n)}var ComputedRefImpl=function(){function e(t,n,r,i){var a=this;_classCallCheck2(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(t,(function(){a._dirty||(a._dirty=!0,triggerRefValue(a))})),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}return _createClass2(e,[{key:"value",get:function(){var e=toRaw(this);return trackRefValue(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value},set:function(e){this._setter(e)}}]),e}();function computed$1(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=isFunction$5(e);return a?(n=e,r=NOOP):(n=e.get,r=e.set),new ComputedRefImpl(n,r,a||!r,i)}function warn(e){}function callWithErrorHandling(e,t,n,r){var i;try{i=r?e.apply(void 0,_toConsumableArray2(r)):e()}catch(a){handleError(a,t,n)}return i}function callWithAsyncErrorHandling(e,t,n,r){if(isFunction$5(e)){var i=callWithErrorHandling(e,t,n,r);return i&&isPromise$1(i)&&i.catch((function(e){handleError(e,t,n)})),i}for(var a=[],o=0;o<e.length;o++)a.push(callWithAsyncErrorHandling(e[o],t,n,r));return a}function handleError(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t?t.vnode:null;if(t){for(var a=t.parent,o=t.proxy,s=n;a;){var l=a.ec;if(l)for(var u=0;u<l.length;u++)if(!1===l[u](e,o,s))return;a=a.parent}var c=t.appContext.config.errorHandler;if(c)return void callWithErrorHandling(c,null,10,[e,o,s])}logError(e,n,i,r)}function logError(e,t,n){console.error(e)}_a$1="__v_isReadonly";var isFlushing=!1,isFlushPending=!1,queue$1=[],flushIndex=0,pendingPostFlushCbs=[],activePostFlushCbs=null,postFlushIndex=0,resolvedPromise=Promise.resolve(),currentFlushPromise=null;function nextTick(e){var t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){for(var t=flushIndex+1,n=queue$1.length;t<n;){var r=t+n>>>1;getId(queue$1[r])<e?t=r+1:n=r}return t}function queueJob(e){queue$1.length&&queue$1.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex)||(null==e.id?queue$1.push(e):queue$1.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){isFlushing||isFlushPending||(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){var t=queue$1.indexOf(e);t>flushIndex&&queue$1.splice(t,1)}function queuePostFlushCb(e){isArray$8(e)?pendingPostFlushCbs.push.apply(pendingPostFlushCbs,_toConsumableArray2(e)):activePostFlushCbs&&activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex)||pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:isFlushing?flushIndex+1:0;t<queue$1.length;t++){var n=queue$1[t];n&&n.pre&&(queue$1.splice(t,1),t--,n())}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){var t,n=_toConsumableArray2(new Set(pendingPostFlushCbs));if(pendingPostFlushCbs.length=0,activePostFlushCbs)return void(t=activePostFlushCbs).push.apply(t,_toConsumableArray2(n));for((activePostFlushCbs=n).sort((function(e,t){return getId(e)-getId(t)})),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}var getId=function(e){return null==e.id?1/0:e.id},comparator=function(e,t){var n=getId(e)-getId(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function flushJobs(e){isFlushPending=!1,isFlushing=!0,queue$1.sort(comparator);try{for(flushIndex=0;flushIndex<queue$1.length;flushIndex++){var t=queue$1[flushIndex];t&&!1!==t.active&&callWithErrorHandling(t,null,14)}}finally{flushIndex=0,queue$1.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$1.length||pendingPostFlushCbs.length)&&flushJobs()}}function emit(e,t){if(!e.isUnmounted){for(var n=e.vnode.props||EMPTY_OBJ,r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o,s=i,l=t.startsWith("update:"),u=l&&t.slice(7);if(u&&u in n){var c=n["".concat("modelValue"===u?"model":u,"Modifiers")]||EMPTY_OBJ,h=c.number;c.trim&&(s=i.map((function(e){return isString$2(e)?e.trim():e}))),h&&(s=i.map(looseToNumber))}var d=n[o=toHandlerKey(t)]||n[o=toHandlerKey(camelize$2(t))];!d&&l&&(d=n[o=toHandlerKey(hyphenate(t))]),d&&callWithAsyncErrorHandling(d,e,6,s);var f=n[o+"Once"];if(f){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,callWithAsyncErrorHandling(f,e,6,s)}}}function normalizeEmitsOptions(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;var a=e.emits,o={},s=!1;if(!isFunction$5(e)){var l=function(e){var n=normalizeEmitsOptions(e,t,!0);n&&(s=!0,extend$3(o,n))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return a||s?(isArray$8(a)?a.forEach((function(e){return o[e]=null})):extend$3(o,a),isObject$4(e)&&r.set(e,o),o):(isObject$4(e)&&r.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn$2(e,t[0].toLowerCase()+t.slice(1))||hasOwn$2(e,hyphenate(t))||hasOwn$2(e,t))}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){var t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}function withCtx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:currentRenderingInstance;if(!t)return e;if(e._n)return e;var n=function n(){n._d&&setBlockTracking(-1);var r,i=setCurrentRenderingInstance(t);try{r=e.apply(void 0,arguments)}finally{setCurrentRenderingInstance(i),n._d&&setBlockTracking(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function markAttrsAccessed(){}function renderComponentRoot(e){var t,n,r=e.type,i=e.vnode,a=e.proxy,o=e.withProxy,s=e.props,l=_slicedToArray(e.propsOptions,1)[0],u=e.slots,c=e.attrs,h=e.emit,d=e.render,f=e.renderCache,p=e.data,v=e.setupState,m=e.ctx,g=e.inheritAttrs,y=setCurrentRenderingInstance(e);try{if(4&i.shapeFlag){var b=o||a;t=normalizeVNode(d.call(b,b,f,s,v,p,m)),n=c}else{var A=r;0,t=normalizeVNode(A.length>1?A(s,{attrs:c,slots:u,emit:h}):A(s,null)),n=r.props?c:getFunctionalFallthrough(c)}}catch(_){blockStack.length=0,handleError(_,e,1),t=createVNode(Comment)}var S=t;if(n&&!1!==g){var x=Object.keys(n),w=S.shapeFlag;x.length&&7&w&&(l&&x.some(isModelListener)&&(n=filterModelListeners(n,l)),S=cloneVNode(S,n))}return i.dirs&&((S=cloneVNode(S)).dirs=S.dirs?S.dirs.concat(i.dirs):i.dirs),i.transition&&(S.transition=i.transition),t=S,setCurrentRenderingInstance(y),t}var getFunctionalFallthrough=function(e){var t;for(var n in e)("class"===n||"style"===n||isOn(n))&&((t||(t={}))[n]=e[n]);return t},filterModelListeners=function(e,t){var n={};for(var r in e)isModelListener(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function shouldUpdateComponent(e,t,n){var r=e.props,i=e.children,a=e.component,o=t.props,s=t.children,l=t.patchFlag,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||hasPropsChanged(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?hasPropsChanged(r,o,u):!!o;if(8&l)for(var c=t.dynamicProps,h=0;h<c.length;h++){var d=c[h];if(o[d]!==r[d]&&!isEmitListener(u,d))return!0}return!1}function hasPropsChanged(e,t,n){var r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(var i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]&&!isEmitListener(n,a))return!0}return!1}function updateHOCHostEl(e,t){for(var n=e.vnode,r=e.parent;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}var isSuspense=function(e){return e.__isSuspense};function queueEffectWithSuspense(e,t){var n;t&&t.pendingBranch?isArray$8(e)?(n=t.effects).push.apply(n,_toConsumableArray2(e)):t.effects.push(e):queuePostFlushCb(e)}function provide(e,t){if(currentInstance){var n=currentInstance.provides,r=currentInstance.parent&&currentInstance.parent.provides;r===n&&(n=currentInstance.provides=Object.create(r)),n[e]=t}else;}function inject(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=currentInstance||currentRenderingInstance;if(r){var i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&isFunction$5(t)?t.call(r.proxy):t}}function watchEffect(e,t){return doWatch(e,null,t)}var INITIAL_WATCHER_VALUE={};function watch(e,t,n){return doWatch(e,t,n)}function doWatch(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:EMPTY_OBJ,a=i.immediate,o=i.deep,s=i.flush,l=(i.onTrack,i.onTrigger,getCurrentScope()===(null==currentInstance?void 0:currentInstance.scope)?currentInstance:null),u=!1,c=!1;if(isRef(e)?(n=function(){return e.value},u=isShallow(e)):isReactive(e)?(n=function(){return e},o=!0):isArray$8(e)?(c=!0,u=e.some((function(e){return isReactive(e)||isShallow(e)})),n=function(){return e.map((function(e){return isRef(e)?e.value:isReactive(e)?traverse(e):isFunction$5(e)?callWithErrorHandling(e,l,2):void 0}))}):n=isFunction$5(e)?t?function(){return callWithErrorHandling(e,l,2)}:function(){if(!l||!l.isUnmounted)return r&&r(),callWithAsyncErrorHandling(e,l,3,[f])}:NOOP,t&&o){var h=n;n=function(){return traverse(h())}}var d,f=function(e){r=y.onStop=function(){callWithErrorHandling(e,l,4)}};if(isInSSRComponentSetup){if(f=NOOP,t?a&&callWithAsyncErrorHandling(t,l,3,[n(),c?[]:void 0,f]):n(),"sync"!==s)return NOOP;var p=useSSRContext();d=p.__watcherHandles||(p.__watcherHandles=[])}var v,m=c?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE,g=function(){if(y.active)if(t){var e=y.run();(o||u||(c?e.some((function(e,t){return hasChanged(e,m[t])})):hasChanged(e,m)))&&(r&&r(),callWithAsyncErrorHandling(t,l,3,[e,m===INITIAL_WATCHER_VALUE?void 0:c&&m[0]===INITIAL_WATCHER_VALUE?[]:m,f]),m=e)}else y.run()};g.allowRecurse=!!t,"sync"===s?v=g:"post"===s?v=function(){return queuePostRenderEffect(g,l&&l.suspense)}:(g.pre=!0,l&&(g.id=l.uid),v=function(){return queueJob(g)});var y=new ReactiveEffect(n,v);t?a?g():m=y.run():"post"===s?queuePostRenderEffect(y.run.bind(y),l&&l.suspense):y.run();var b=function(){y.stop(),l&&l.scope&&remove$7(l.scope.effects,y)};return d&&d.push(b),b}function instanceWatch(e,t,n){var r,i=this.proxy,a=isString$2(e)?e.includes(".")?createPathGetter(i,e):function(){return i[e]}:e.bind(i,i);isFunction$5(t)?r=t:(r=t.handler,n=t);var o=currentInstance;setCurrentInstance(this);var s=doWatch(a,r.bind(i),n);return o?setCurrentInstance(o):unsetCurrentInstance(),s}function createPathGetter(e,t){var n=t.split(".");return function(){for(var t=e,r=0;r<n.length&&t;r++)t=t[n[r]];return t}}function traverse(e,t){if(!isObject$4(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),isRef(e))traverse(e.value,t);else if(isArray$8(e))for(var n=0;n<e.length;n++)traverse(e[n],t);else if(isSet$1(e)||isMap$1(e))e.forEach((function(e){traverse(e,t)}));else if(isPlainObject$3(e))for(var r in e)traverse(e[r],t);return e}function useTransitionState(){var e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted((function(){e.isMounted=!0})),onBeforeUnmount((function(){e.isUnmounting=!0})),e}var TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup:function(e,t){var n,r=t.slots,i=getCurrentInstance(),a=useTransitionState();return function(){var t=r.default&&getTransitionRawChildren(r.default(),!0);if(t&&t.length){var o=t[0];if(t.length>1){var s,l=_createForOfIteratorHelper(t);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(u.type!==Comment){o=u;break}}}catch(A){l.e(A)}finally{l.f()}}var c=toRaw(e),h=c.mode;if(a.isLeaving)return emptyPlaceholder(o);var d=getKeepAliveChild(o);if(!d)return emptyPlaceholder(o);var f=resolveTransitionHooks(d,c,a,i);setTransitionHooks(d,f);var p=i.subTree,v=p&&getKeepAliveChild(p),m=!1,g=d.type.getTransitionKey;if(g){var y=g();void 0===n?n=y:y!==n&&(n=y,m=!0)}if(v&&v.type!==Comment&&(!isSameVNodeType(d,v)||m)){var b=resolveTransitionHooks(v,c,a,i);if(setTransitionHooks(v,b),"out-in"===h)return a.isLeaving=!0,b.afterLeave=function(){a.isLeaving=!1,!1!==i.update.active&&i.update()},emptyPlaceholder(o);"in-out"===h&&d.type!==Comment&&(b.delayLeave=function(e,t,n){getLeavingNodesForType(a,v)[String(v.key)]=v,e._leaveCb=function(){t(),e._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=n})}return o}}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function resolveTransitionHooks(e,t,n,r){var i=t.appear,a=t.mode,o=t.persisted,s=void 0!==o&&o,l=t.onBeforeEnter,u=t.onEnter,c=t.onAfterEnter,h=t.onEnterCancelled,d=t.onBeforeLeave,f=t.onLeave,p=t.onAfterLeave,v=t.onLeaveCancelled,m=t.onBeforeAppear,g=t.onAppear,y=t.onAfterAppear,b=t.onAppearCancelled,A=String(e.key),S=getLeavingNodesForType(n,e),x=function(e,t){e&&callWithAsyncErrorHandling(e,r,9,t)},w=function(e,t){var n=t[1];x(e,t),isArray$8(e)?e.every((function(e){return e.length<=1}))&&n():e.length<=1&&n()},_={mode:a,persisted:s,beforeEnter:function(t){var r=l;if(!n.isMounted){if(!i)return;r=m||l}t._leaveCb&&t._leaveCb(!0);var a=S[A];a&&isSameVNodeType(e,a)&&a.el._leaveCb&&a.el._leaveCb(),x(r,[t])},enter:function(e){var t=u,r=c,a=h;if(!n.isMounted){if(!i)return;t=g||u,r=y||c,a=b||h}var o=!1,s=e._enterCb=function(t){o||(o=!0,x(t?a:r,[e]),_.delayedLeave&&_.delayedLeave(),e._enterCb=void 0)};t?w(t,[e,s]):s()},leave:function(t,r){var i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();x(d,[t]);var a=!1,o=t._leaveCb=function(n){a||(a=!0,r(),x(n?v:p,[t]),t._leaveCb=void 0,S[i]===e&&delete S[i])};S[i]=e,f?w(f,[t,o]):o()},clone:function(e){return resolveTransitionHooks(e,t,n,r)}};return _}function emptyPlaceholder(e){if(isKeepAlive(e))return(e=cloneVNode(e)).children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){6&e.shapeFlag&&e.component?setTransitionHooks(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,a=0;a<e.length;a++){var o=e[a],s=null==n?o.key:String(n)+String(null!=o.key?o.key:a);o.type===Fragment?(128&o.patchFlag&&i++,r=r.concat(getTransitionRawChildren(o.children,t,s))):(t||o.type!==Comment)&&r.push(null!=s?cloneVNode(o,{key:s}):o)}if(i>1)for(var l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function defineComponent(e){return isFunction$5(e)?{setup:e,name:e.name}:e}var isAsyncWrapper=function(e){return!!e.type.__asyncLoader},isKeepAlive=function(e){return e.type.__isKeepAlive};function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:currentInstance,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(injectHook(t,r,n),n)for(var i=n.parent;i&&i.parent;)isKeepAlive(i.parent.vnode)&&injectToKeepAliveRoot(r,t,n,i),i=i.parent}function injectToKeepAliveRoot(e,t,n,r){var i=injectHook(t,e,r,!0);onUnmounted((function(){remove$7(r[t],i)}),n)}function injectHook(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:currentInstance,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=function(){if(!n.isUnmounted){pauseTracking(),setCurrentInstance(n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=callWithAsyncErrorHandling(t,n,e,i);return unsetCurrentInstance(),resetTracking(),o}});return r?i.unshift(a):i.push(a),a}}var createHook=function(e){return function(t){return(!isInSSRComponentSetup||"sp"===e)&&injectHook(e,(function(){return t.apply(void 0,arguments)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:currentInstance)}},onBeforeMount=exports("N",createHook("bm")),onMounted=exports("F",createHook("m")),onBeforeUpdate=exports("b$",createHook("bu")),onUpdated=exports("E",createHook("u")),onBeforeUnmount=exports("b4",createHook("bum")),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e){injectHook("ec",e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:currentInstance)}function withDirectives(e,t){var n=currentRenderingInstance;if(null===n)return e;for(var r=getExposeProxy(n)||n.proxy,i=e.dirs||(e.dirs=[]),a=0;a<t.length;a++){var o=_slicedToArray(t[a],4),s=o[0],l=o[1],u=o[2],c=o[3],h=void 0===c?EMPTY_OBJ:c;s&&(isFunction$5(s)&&(s={mounted:s,updated:s}),s.deep&&traverse(l),i.push({dir:s,instance:r,value:l,oldValue:void 0,arg:u,modifiers:h}))}return e}function invokeDirectiveHook(e,t,n,r){for(var i=e.dirs,a=t&&t.dirs,o=0;o<i.length;o++){var s=i[o];a&&(s.oldValue=a[o].value);var l=s.dir[r];l&&(pauseTracking(),callWithAsyncErrorHandling(l,n,8,[e.el,s,e,t]),resetTracking())}}var COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}var NULL_DYNAMIC_COMPONENT=Symbol();function resolveDynamicComponent(e){return isString$2(e)?resolveAsset(COMPONENTS,e,!1)||e:e||NULL_DYNAMIC_COMPONENT}function resolveDirective(e){return resolveAsset(DIRECTIVES,e)}function resolveAsset(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=currentRenderingInstance||currentInstance;if(r){var i=r.type;if(e===COMPONENTS){var a=getComponentName(i,!1);if(a&&(a===t||a===camelize$2(t)||a===capitalize(camelize$2(t))))return i}var o=resolve(r[e]||i[e],t)||resolve(r.appContext[e],t);return!o&&n?i:o}}function resolve(e,t){return e&&(e[t]||e[camelize$2(t)]||e[capitalize(camelize$2(t))])}function renderList(e,t,n,r){var i,a=n&&n[r];if(isArray$8(e)||isString$2(e)){i=new Array(e.length);for(var o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if("number"==typeof e){i=new Array(e);for(var l=0;l<e;l++)i[l]=t(l+1,l,void 0,a&&a[l])}else if(isObject$4(e))if(e[Symbol.iterator])i=Array.from(e,(function(e,n){return t(e,n,void 0,a&&a[n])}));else{var u=Object.keys(e);i=new Array(u.length);for(var c=0,h=u.length;c<h;c++){var d=u[c];i[c]=t(e[d],d,c,a&&a[c])}}else i=[];return n&&(n[r]=i),i}function renderSlot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return"default"!==t&&(n.name=t),createVNode("slot",n,r&&r());var a=e[t];a&&a._c&&(a._d=!1),openBlock();var o=a&&ensureValidVNode(a(n)),s=createBlock(Fragment,{key:n.key||o&&o.key||"_".concat(t)},o||(r?r():[]),o&&1===e._?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function ensureValidVNode(e){return e.some((function(e){return!isVNode(e)||e.type!==Comment&&!(e.type===Fragment&&!ensureValidVNode(e.children))}))?e:null}var getPublicInstance=function e(t){return t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:e(t.parent):null},publicPropertiesMap=extend$3(Object.create(null),{$:function(e){return e},$el:function(e){return e.vnode.el},$data:function(e){return e.data},$props:function(e){return e.props},$attrs:function(e){return e.attrs},$slots:function(e){return e.slots},$refs:function(e){return e.refs},$parent:function(e){return getPublicInstance(e.parent)},$root:function(e){return getPublicInstance(e.root)},$emit:function(e){return e.emit},$options:function(e){return resolveMergedOptions(e)},$forceUpdate:function(e){return e.f||(e.f=function(){return queueJob(e.update)})},$nextTick:function(e){return e.n||(e.n=nextTick.bind(e.proxy))},$watch:function(e){return instanceWatch.bind(e)}}),hasSetupBinding=function(e,t){return e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn$2(e,t)},PublicInstanceProxyHandlers={get:function(e,t){var n,r=e._,i=r.ctx,a=r.setupState,o=r.data,s=r.props,l=r.accessCache,u=r.type,c=r.appContext;if("$"!==t[0]){var h=l[t];if(void 0!==h)switch(h){case 1:return a[t];case 2:return o[t];case 4:return i[t];case 3:return s[t]}else{if(hasSetupBinding(a,t))return l[t]=1,a[t];if(o!==EMPTY_OBJ&&hasOwn$2(o,t))return l[t]=2,o[t];if((n=r.propsOptions[0])&&hasOwn$2(n,t))return l[t]=3,s[t];if(i!==EMPTY_OBJ&&hasOwn$2(i,t))return l[t]=4,i[t];shouldCacheAccess&&(l[t]=0)}}var d,f,p=publicPropertiesMap[t];return p?("$attrs"===t&&track(r,"get",t),p(r)):(d=u.__cssModules)&&(d=d[t])?d:i!==EMPTY_OBJ&&hasOwn$2(i,t)?(l[t]=4,i[t]):(f=c.config.globalProperties,hasOwn$2(f,t)?f[t]:void 0)},set:function(e,t,n){var r=e._,i=r.data,a=r.setupState,o=r.ctx;return hasSetupBinding(a,t)?(a[t]=n,!0):i!==EMPTY_OBJ&&hasOwn$2(i,t)?(i[t]=n,!0):!hasOwn$2(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(o[t]=n,!0))},has:function(e,t){var n,r=e._,i=r.data,a=r.setupState,o=r.accessCache,s=r.ctx,l=r.appContext,u=r.propsOptions;return!!o[t]||i!==EMPTY_OBJ&&hasOwn$2(i,t)||hasSetupBinding(a,t)||(n=u[0])&&hasOwn$2(n,t)||hasOwn$2(s,t)||hasOwn$2(publicPropertiesMap,t)||hasOwn$2(l.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:hasOwn$2(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},shouldCacheAccess=!0;function applyOptions(e){var t=resolveMergedOptions(e),n=e.proxy,r=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");var i=t.data,a=t.computed,o=t.methods,s=t.watch,l=t.provide,u=t.inject,c=t.created,h=t.beforeMount,d=t.mounted,f=t.beforeUpdate,p=t.updated,v=t.activated,m=t.deactivated,g=(t.beforeDestroy,t.beforeUnmount),y=(t.destroyed,t.unmounted),b=t.render,A=t.renderTracked,S=t.renderTriggered,x=t.errorCaptured,w=t.serverPrefetch,_=t.expose,E=t.inheritAttrs,k=t.components,C=t.directives;t.filters;if(u&&resolveInjections(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(var M in o){var P=o[M];isFunction$5(P)&&(r[M]=P.bind(n))}if(i){var I=i.call(n,n);isObject$4(I)&&(e.data=reactive(I))}if(shouldCacheAccess=!0,a){var T=function(){var e=a[B],t=isFunction$5(e)?e.bind(n,n):isFunction$5(e.get)?e.get.bind(n,n):NOOP,i=!isFunction$5(e)&&isFunction$5(e.set)?e.set.bind(n):NOOP,o=computed({get:t,set:i});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:function(){return o.value},set:function(e){return o.value=e}})};for(var B in a)T()}if(s)for(var R in s)createWatcher(s[R],r,n,R);if(l){var L=isFunction$5(l)?l.call(n):l;Reflect.ownKeys(L).forEach((function(e){provide(e,L[e])}))}function N(e,t){isArray$8(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(c&&callHook$1(c,e,"c"),N(onBeforeMount,h),N(onMounted,d),N(onBeforeUpdate,f),N(onUpdated,p),N(onActivated,v),N(onDeactivated,m),N(onErrorCaptured,x),N(onRenderTracked,A),N(onRenderTriggered,S),N(onBeforeUnmount,g),N(onUnmounted,y),N(onServerPrefetch,w),isArray$8(_))if(_.length){var F=e.exposed||(e.exposed={});_.forEach((function(e){Object.defineProperty(F,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})}))}else e.exposed||(e.exposed={});b&&e.render===NOOP&&(e.render=b),null!=E&&(e.inheritAttrs=E),k&&(e.components=k),C&&(e.directives=C)}function resolveInjections(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];isArray$8(e)&&(e=normalizeInject(e));var r=function(){var r,a=e[i];isRef(r=isObject$4(a)?"default"in a?inject(a.from||i,a.default,!0):inject(a.from||i):inject(a))&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:function(){return r.value},set:function(e){return r.value=e}}):t[i]=r};for(var i in e)r()}function callHook$1(e,t,n){callWithAsyncErrorHandling(isArray$8(e)?e.map((function(e){return e.bind(t.proxy)})):e.bind(t.proxy),t,n)}function createWatcher(e,t,n,r){var i=r.includes(".")?createPathGetter(n,r):function(){return n[r]};if(isString$2(e)){var a=t[e];isFunction$5(a)&&watch(i,a)}else if(isFunction$5(e))watch(i,e.bind(n));else if(isObject$4(e))if(isArray$8(e))e.forEach((function(e){return createWatcher(e,t,n,r)}));else{var o=isFunction$5(e.handler)?e.handler.bind(n):t[e.handler];isFunction$5(o)&&watch(i,o,e)}}function resolveMergedOptions(e){var t,n=e.type,r=n.mixins,i=n.extends,a=e.appContext,o=a.mixins,s=a.optionsCache,l=a.config.optionMergeStrategies,u=s.get(n);return u?t=u:o.length||r||i?(t={},o.length&&o.forEach((function(e){return mergeOptions$1(t,e,l,!0)})),mergeOptions$1(t,n,l)):t=n,isObject$4(n)&&s.set(n,t),t}function mergeOptions$1(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.mixins,a=t.extends;for(var o in a&&mergeOptions$1(e,a,n,!0),i&&i.forEach((function(t){return mergeOptions$1(e,t,n,!0)})),t)if(r&&"expose"===o);else{var s=internalOptionMergeStrats[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}var internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend$3(isFunction$5(e)?e.call(this,this):e,isFunction$5(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$8(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mergeAsArray(e,t){return e?_toConsumableArray2(new Set([].concat(e,t))):t}function mergeObjectOptions(e,t){return e?extend$3(extend$3(Object.create(null),e),t):t}function mergeWatchOptions(e,t){if(!e)return t;if(!t)return e;var n=extend$3(Object.create(null),e);for(var r in t)n[r]=mergeAsArray(e[r],t[r]);return n}function initProps(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},a={};for(var o in def(a,InternalObjectKey,1),e.propsDefaults=Object.create(null),setFullProps(e,t,i,a),e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:shallowReactive(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function updateProps(e,t,n,r){var i=e.props,a=e.attrs,o=e.vnode.patchFlag,s=toRaw(i),l=_slicedToArray(e.propsOptions,1)[0],u=!1;if(!(r||o>0)||16&o){var c;for(var h in setFullProps(e,t,i,a)&&(u=!0),s)t&&(hasOwn$2(t,h)||(c=hyphenate(h))!==h&&hasOwn$2(t,c))||(l?!n||void 0===n[h]&&void 0===n[c]||(i[h]=resolvePropValue(l,s,h,void 0,e,!0)):delete i[h]);if(a!==s)for(var d in a)t&&hasOwn$2(t,d)||(delete a[d],u=!0)}else if(8&o)for(var f=e.vnode.dynamicProps,p=0;p<f.length;p++){var v=f[p];if(!isEmitListener(e.emitsOptions,v)){var m=t[v];if(l)if(hasOwn$2(a,v))m!==a[v]&&(a[v]=m,u=!0);else{var g=camelize$2(v);i[g]=resolvePropValue(l,s,g,m,e,!1)}else m!==a[v]&&(a[v]=m,u=!0)}}u&&trigger(e,"set","$attrs")}function setFullProps(e,t,n,r){var i,a=_slicedToArray(e.propsOptions,2),o=a[0],s=a[1],l=!1;if(t)for(var u in t)if(!isReservedProp(u)){var c=t[u],h=void 0;o&&hasOwn$2(o,h=camelize$2(u))?s&&s.includes(h)?(i||(i={}))[h]=c:n[h]=c:isEmitListener(e.emitsOptions,u)||u in r&&c===r[u]||(r[u]=c,l=!0)}if(s)for(var d=toRaw(n),f=i||EMPTY_OBJ,p=0;p<s.length;p++){var v=s[p];n[v]=resolvePropValue(o,d,v,f[v],e,!hasOwn$2(f,v))}return l}function resolvePropValue(e,t,n,r,i,a){var o=e[n];if(null!=o){var s=hasOwn$2(o,"default");if(s&&void 0===r){var l=o.default;if(o.type!==Function&&isFunction$5(l)){var u=i.propsDefaults;n in u?r=u[n]:(setCurrentInstance(i),r=u[n]=l.call(null,t),unsetCurrentInstance())}else r=l}o[0]&&(a&&!s?r=!1:!o[1]||""!==r&&r!==hyphenate(n)||(r=!0))}return r}function normalizePropsOptions(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.propsCache,i=r.get(e);if(i)return i;var a=e.props,o={},s=[],l=!1;if(!isFunction$5(e)){var u=function(e){l=!0;var n=_slicedToArray(normalizePropsOptions(e,t,!0),2),r=n[0],i=n[1];extend$3(o,r),i&&s.push.apply(s,_toConsumableArray2(i))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!a&&!l)return isObject$4(e)&&r.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$8(a))for(var c=0;c<a.length;c++){var h=camelize$2(a[c]);validatePropName(h)&&(o[h]=EMPTY_OBJ)}else if(a)for(var d in a){var f=camelize$2(d);if(validatePropName(f)){var p=a[d],v=o[f]=isArray$8(p)||isFunction$5(p)?{type:p}:Object.assign({},p);if(v){var m=getTypeIndex(Boolean,v.type),g=getTypeIndex(String,v.type);v[0]=m>-1,v[1]=g<0||m<g,(m>-1||hasOwn$2(v,"default"))&&s.push(f)}}}var y=[o,s];return isObject$4(e)&&r.set(e,y),y}function validatePropName(e){return"$"!==e[0]}function getType(e){var t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray$8(t)?t.findIndex((function(t){return isSameType(t,e)})):isFunction$5(t)&&isSameType(t,e)?0:-1}var isInternalKey=function(e){return"_"===e[0]||"$stable"===e},normalizeSlotValue=function(e){return isArray$8(e)?e.map(normalizeVNode):[normalizeVNode(e)]},normalizeSlot$1=function(e,t,n){if(t._n)return t;var r=withCtx((function(){return normalizeSlotValue(t.apply(void 0,arguments))}),n);return r._c=!1,r},normalizeObjectSlots=function(e,t,n){var r=e._ctx,i=function(){if(isInternalKey(a))return"continue";var n=e[a];if(isFunction$5(n))t[a]=normalizeSlot$1(a,n,r);else if(null!=n){var i=normalizeSlotValue(n);t[a]=function(){return i}}};for(var a in e)i()},normalizeVNodeSlots=function(e,t){var n=normalizeSlotValue(t);e.slots.default=function(){return n}},initSlots=function(e,t){if(32&e.vnode.shapeFlag){var n=t._;n?(e.slots=toRaw(t),def(t,"_",n)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=function(e,t,n){var r=e.vnode,i=e.slots,a=!0,o=EMPTY_OBJ;if(32&r.shapeFlag){var s=t._;s?n&&1===s?a=!1:(extend$3(i,t),n||1!==s||delete i._):(a=!t.$stable,normalizeObjectSlots(t,i)),o=t}else t&&(normalizeVNodeSlots(e,t),o={default:1});if(a)for(var l in i)isInternalKey(l)||l in o||delete i[l]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var uid$1=0;function createAppAPI(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;isFunction$5(n)||(n=Object.assign({},n)),null==r||isObject$4(r)||(r=null);var i=createAppContext(),a=new Set,o=!1,s=i.app={_uid:uid$1++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:version,get config(){return i.config},set config(e){},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a.has(e)||(e&&isFunction$5(e.install)?(a.add(e),e.install.apply(e,[s].concat(n))):isFunction$5(e)&&(a.add(e),e.apply(void 0,[s].concat(n)))),s},mixin:function(e){return i.mixins.includes(e)||i.mixins.push(e),s},component:function(e,t){return t?(i.components[e]=t,s):i.components[e]},directive:function(e,t){return t?(i.directives[e]=t,s):i.directives[e]},mount:function(a,l,u){if(!o){var c=createVNode(n,r);return c.appContext=i,l&&t?t(c,a):e(c,a,u),o=!0,s._container=a,a.__vue_app__=s,getExposeProxy(c.component)||c.component.proxy}},unmount:function(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:function(e,t){return i.provides[e]=t,s}};return s}}function setRef(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(isArray$8(e))e.forEach((function(e,a){return setRef(e,t&&(isArray$8(t)?t[a]:t),n,r,i)}));else if(!isAsyncWrapper(r)||i){var a=4&r.shapeFlag?getExposeProxy(r.component)||r.component.proxy:r.el,o=i?null:a,s=e.i,l=e.r,u=t&&t.r,c=s.refs===EMPTY_OBJ?s.refs={}:s.refs,h=s.setupState;if(null!=u&&u!==l&&(isString$2(u)?(c[u]=null,hasOwn$2(h,u)&&(h[u]=null)):isRef(u)&&(u.value=null)),isFunction$5(l))callWithErrorHandling(l,s,12,[o,c]);else{var d=isString$2(l),f=isRef(l);if(d||f){var p=function(){if(e.f){var t=d?hasOwn$2(h,l)?h[l]:c[l]:l.value;i?isArray$8(t)&&remove$7(t,a):isArray$8(t)?t.includes(a)||t.push(a):d?(c[l]=[a],hasOwn$2(h,l)&&(h[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,hasOwn$2(h,l)&&(h[l]=o)):f&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,queuePostRenderEffect(p,n)):p()}}}}var queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){getGlobalThis().__VUE__=!0;var n,r,i=e.insert,a=e.remove,o=e.patchProp,s=e.createElement,l=e.createText,u=e.createComment,c=e.setText,h=e.setElementText,d=e.parentNode,f=e.nextSibling,p=e.setScopeId,v=void 0===p?NOOP:p,m=e.insertStaticContent,g=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!isSameVNodeType(e,t)&&(r=U(e),O(e,i,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);var u=t.type,c=t.ref,h=t.shapeFlag;switch(u){case Text:y(e,t,n,r);break;case Comment:b(e,t,n,r);break;case Static:null==e&&A(t,n,r,o);break;case Fragment:M(e,t,n,r,i,a,o,s,l);break;default:1&h?S(e,t,n,r,i,a,o,s,l):6&h?P(e,t,n,r,i,a,o,s,l):(64&h||128&h)&&u.process(e,t,n,r,i,a,o,s,l,Q)}null!=c&&i&&setRef(c,e&&e.ref,a,t||e,!t)}},y=function(e,t,n,r){if(null==e)i(t.el=l(t.children),n,r);else{var a=t.el=e.el;t.children!==e.children&&c(a,t.children)}},b=function(e,t,n,r){null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},A=function(e,t,n,r){var i=_slicedToArray(m(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},S=function(e,t,n,r,i,a,o,s,l){o=o||"svg"===t.type,null==e?x(t,n,r,i,a,o,s,l):E(e,t,i,a,o,s,l)},x=function(e,t,n,r,a,l,u,c){var d,f,p=e.type,v=e.props,m=e.shapeFlag,g=e.transition,y=e.dirs;if(d=e.el=s(e.type,l,v&&v.is,v),8&m?h(d,e.children):16&m&&_(e.children,d,null,r,a,l&&"foreignObject"!==p,u,c),y&&invokeDirectiveHook(e,null,r,"created"),w(d,e,e.scopeId,u,r),v){for(var b in v)"value"===b||isReservedProp(b)||o(d,b,null,v[b],l,e.children,r,a,H);"value"in v&&o(d,"value",null,v.value),(f=v.onVnodeBeforeMount)&&invokeVNodeHook(f,r,e)}y&&invokeDirectiveHook(e,null,r,"beforeMount");var A=(!a||a&&!a.pendingBranch)&&g&&!g.persisted;A&&g.beforeEnter(d),i(d,t,n),((f=v&&v.onVnodeMounted)||A||y)&&queuePostRenderEffect((function(){f&&invokeVNodeHook(f,r,e),A&&g.enter(d),y&&invokeDirectiveHook(e,null,r,"mounted")}),a)},w=function e(t,n,r,i,a){if(r&&v(t,r),i)for(var o=0;o<i.length;o++)v(t,i[o]);if(a&&n===a.subTree){var s=a.vnode;e(t,s,s.scopeId,s.slotScopeIds,a.parent)}},_=function(e,t,n,r,i,a,o,s){for(var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;l<e.length;l++){var u=e[l]=s?cloneIfMounted(e[l]):normalizeVNode(e[l]);g(null,u,t,n,r,i,a,o,s)}},E=function(e,t,n,r,i,a,s){var l=t.el=e.el,u=t.patchFlag,c=t.dynamicChildren,d=t.dirs;u|=16&e.patchFlag;var f,p=e.props||EMPTY_OBJ,v=t.props||EMPTY_OBJ;n&&toggleRecurse(n,!1),(f=v.onVnodeBeforeUpdate)&&invokeVNodeHook(f,n,t,e),d&&invokeDirectiveHook(t,e,n,"beforeUpdate"),n&&toggleRecurse(n,!0);var m=i&&"foreignObject"!==t.type;if(c?k(e.dynamicChildren,c,l,n,r,m,a):s||L(e,t,l,null,n,r,m,a,!1),u>0){if(16&u)C(l,t,p,v,n,r,i);else if(2&u&&p.class!==v.class&&o(l,"class",null,v.class,i),4&u&&o(l,"style",p.style,v.style,i),8&u)for(var g=t.dynamicProps,y=0;y<g.length;y++){var b=g[y],A=p[b],S=v[b];S===A&&"value"!==b||o(l,b,A,S,i,e.children,n,r,H)}1&u&&e.children!==t.children&&h(l,t.children)}else s||null!=c||C(l,t,p,v,n,r,i);((f=v.onVnodeUpdated)||d)&&queuePostRenderEffect((function(){f&&invokeVNodeHook(f,n,t,e),d&&invokeDirectiveHook(t,e,n,"updated")}),r)},k=function(e,t,n,r,i,a,o){for(var s=0;s<t.length;s++){var l=e[s],u=t[s],c=l.el&&(l.type===Fragment||!isSameVNodeType(l,u)||70&l.shapeFlag)?d(l.el):n;g(l,u,c,null,r,i,a,o,!0)}},C=function(e,t,n,r,i,a,s){if(n!==r){if(n!==EMPTY_OBJ)for(var l in n)isReservedProp(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,H);for(var u in r)if(!isReservedProp(u)){var c=r[u],h=n[u];c!==h&&"value"!==u&&o(e,u,h,c,s,t.children,i,a,H)}"value"in r&&o(e,"value",n.value,r.value)}},M=function(e,t,n,r,a,o,s,u,c){var h=t.el=e?e.el:l(""),d=t.anchor=e?e.anchor:l(""),f=t.patchFlag,p=t.dynamicChildren,v=t.slotScopeIds;v&&(u=u?u.concat(v):v),null==e?(i(h,n,r),i(d,n,r),_(t.children,n,d,a,o,s,u,c)):f>0&&64&f&&p&&e.dynamicChildren?(k(e.dynamicChildren,p,n,a,o,s,u),(null!=t.key||a&&t===a.subTree)&&traverseStaticChildren(e,t,!0)):L(e,t,n,d,a,o,s,u,c)},P=function(e,t,n,r,i,a,o,s,l){t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):I(t,n,r,i,a,o,l):T(e,t,l)},I=function(e,t,n,r,i,a,o){var s=e.component=createComponentInstance(e,r,i);if(isKeepAlive(e)&&(s.ctx.renderer=Q),setupComponent(s),s.asyncDep){if(i&&i.registerDep(s,B),!e.el){var l=s.subTree=createVNode(Comment);b(null,l,t,n)}}else B(s,e,t,n,i,a,o)},T=function(e,t,n){var r=t.component=e.component;if(shouldUpdateComponent(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void R(r,t,n);r.next=t,invalidateJob(r.update),r.update()}else t.el=e.el,r.vnode=t},B=function(e,t,n,i,a,o,s){var l=e.effect=new ReactiveEffect((function(){if(e.isMounted){var l,u=e.next,c=e.bu,h=e.u,f=e.parent,p=e.vnode,v=u;toggleRecurse(e,!1),u?(u.el=p.el,R(e,u,s)):u=p,c&&invokeArrayFns(c),(l=u.props&&u.props.onVnodeBeforeUpdate)&&invokeVNodeHook(l,f,u,p),toggleRecurse(e,!0);var m=renderComponentRoot(e),y=e.subTree;e.subTree=m,g(y,m,d(y.el),U(y),e,a,o),u.el=m.el,null===v&&updateHOCHostEl(e,m.el),h&&queuePostRenderEffect(h,a),(l=u.props&&u.props.onVnodeUpdated)&&queuePostRenderEffect((function(){return invokeVNodeHook(l,f,u,p)}),a)}else{var b,A=t,S=A.el,x=A.props,w=e.bm,_=e.m,E=e.parent,k=isAsyncWrapper(t);if(toggleRecurse(e,!1),w&&invokeArrayFns(w),!k&&(b=x&&x.onVnodeBeforeMount)&&invokeVNodeHook(b,E,t),toggleRecurse(e,!0),S&&r){var C=function(){e.subTree=renderComponentRoot(e),r(S,e.subTree,e,a,null)};k?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&C()})):C()}else{var M=e.subTree=renderComponentRoot(e);g(null,M,n,i,e,a,o),t.el=M.el}if(_&&queuePostRenderEffect(_,a),!k&&(b=x&&x.onVnodeMounted)){var P=t;queuePostRenderEffect((function(){return invokeVNodeHook(b,E,P)}),a)}(256&t.shapeFlag||E&&isAsyncWrapper(E.vnode)&&256&E.vnode.shapeFlag)&&e.a&&queuePostRenderEffect(e.a,a),e.isMounted=!0,t=n=i=null}}),(function(){return queueJob(u)}),e.scope),u=e.update=function(){return l.run()};u.id=e.uid,toggleRecurse(e,!0),u()},R=function(e,t,n){t.component=e;var r=e.vnode.props;e.vnode=t,e.next=null,updateProps(e,t.props,r,n),updateSlots(e,t.children,n),pauseTracking(),flushPreFlushCbs(),resetTracking()},L=function(e,t,n,r,i,a,o,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8],u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,f=t.patchFlag,p=t.shapeFlag;if(f>0){if(128&f)return void F(u,d,n,r,i,a,o,s,l);if(256&f)return void N(u,d,n,r,i,a,o,s,l)}8&p?(16&c&&H(u,i,a),d!==u&&h(n,d)):16&c?16&p?F(u,d,n,r,i,a,o,s,l):H(u,i,a,!0):(8&c&&h(n,""),16&p&&_(d,n,r,i,a,o,s,l))},N=function(e,t,n,r,i,a,o,s,l){t=t||EMPTY_ARR;var u,c=(e=e||EMPTY_ARR).length,h=t.length,d=Math.min(c,h);for(u=0;u<d;u++){var f=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);g(e[u],f,n,null,i,a,o,s,l)}c>h?H(e,i,a,!0,!1,d):_(t,n,r,i,a,o,s,l,d)},F=function(e,t,n,r,i,a,o,s,l){for(var u=0,c=t.length,h=e.length-1,d=c-1;u<=h&&u<=d;){var f=e[u],p=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);if(!isSameVNodeType(f,p))break;g(f,p,n,null,i,a,o,s,l),u++}for(;u<=h&&u<=d;){var v=e[h],m=t[d]=l?cloneIfMounted(t[d]):normalizeVNode(t[d]);if(!isSameVNodeType(v,m))break;g(v,m,n,null,i,a,o,s,l),h--,d--}if(u>h){if(u<=d)for(var y=d+1,b=y<c?t[y].el:r;u<=d;)g(null,t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]),n,b,i,a,o,s,l),u++}else if(u>d)for(;u<=h;)O(e[u],i,a,!0),u++;else{var A,S=u,x=u,w=new Map;for(u=x;u<=d;u++){var _=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);null!=_.key&&w.set(_.key,u)}var E=0,k=d-x+1,C=!1,M=0,P=new Array(k);for(u=0;u<k;u++)P[u]=0;for(u=S;u<=h;u++){var I=e[u];if(E>=k)O(I,i,a,!0);else{var T=void 0;if(null!=I.key)T=w.get(I.key);else for(A=x;A<=d;A++)if(0===P[A-x]&&isSameVNodeType(I,t[A])){T=A;break}void 0===T?O(I,i,a,!0):(P[T-x]=u+1,T>=M?M=T:C=!0,g(I,t[T],n,null,i,a,o,s,l),E++)}}var B=C?getSequence(P):EMPTY_ARR;for(A=B.length-1,u=k-1;u>=0;u--){var R=x+u,L=t[R],N=R+1<c?t[R+1].el:r;0===P[u]?g(null,L,n,N,i,a,o,s,l):C&&(A<0||u!==B[A]?D(L,n,N,2):A--)}}},D=function e(t,n,r,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=t.el,l=t.type,u=t.transition,c=t.children,h=t.shapeFlag;if(6&h)e(t.component.subTree,n,r,a);else if(128&h)t.suspense.move(n,r,a);else if(64&h)l.move(t,n,r,Q);else if(l!==Fragment){if(l!==Static)if(2!==a&&1&h&&u)if(0===a)u.beforeEnter(s),i(s,n,r),queuePostRenderEffect((function(){return u.enter(s)}),o);else{var d=u.leave,p=u.delayLeave,v=u.afterLeave,m=function(){return i(s,n,r)},g=function(){d(s,(function(){m(),v&&v()}))};p?p(s,m,g):g()}else i(s,n,r);else!function(e,t,n){for(var r,a=e.el,o=e.anchor;a&&a!==o;)r=f(a),i(a,t,n),a=r;i(o,t,n)}(t,n,r)}else{i(s,n,r);for(var y=0;y<c.length;y++)e(c[y],n,r,a);i(t.anchor,n,r)}},O=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.type,o=e.props,s=e.ref,l=e.children,u=e.dynamicChildren,c=e.shapeFlag,h=e.patchFlag,d=e.dirs;if(null!=s&&setRef(s,null,n,e,!0),256&c)t.ctx.deactivate(e);else{var f,p=1&c&&d,v=!isAsyncWrapper(e);if(v&&(f=o&&o.onVnodeBeforeUnmount)&&invokeVNodeHook(f,t,e),6&c)G(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);p&&invokeDirectiveHook(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,i,Q,r):u&&(a!==Fragment||h>0&&64&h)?H(u,t,n,!1,!0):(a===Fragment&&384&h||!i&&16&c)&&H(l,t,n),r&&V(e)}(v&&(f=o&&o.onVnodeUnmounted)||p)&&queuePostRenderEffect((function(){f&&invokeVNodeHook(f,t,e),p&&invokeDirectiveHook(e,null,t,"unmounted")}),n)}},V=function(e){var t=e.type,n=e.el,r=e.anchor,i=e.transition;if(t!==Fragment)if(t!==Static){var o=function(){a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){var s=i.leave,l=i.delayLeave,u=function(){return s(n,o)};l?l(e.el,o,u):u()}else o()}else!function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=f(n),a(n),n=t;a(r)}(e);else z(n,r)},z=function(e,t){for(var n;e!==t;)n=f(e),a(e),e=n;a(t)},G=function(e,t,n){var r=e.bum,i=e.scope,a=e.update,o=e.subTree,s=e.um;r&&invokeArrayFns(r),i.stop(),a&&(a.active=!1,O(o,e,t,n)),s&&queuePostRenderEffect(s,t),queuePostRenderEffect((function(){e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},H=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;a<e.length;a++)O(e[a],t,n,r,i)},U=function e(t){return 6&t.shapeFlag?e(t.component.subTree):128&t.shapeFlag?t.suspense.next():f(t.anchor||t.el)},j=function(e,t,n){null==e?t._vnode&&O(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),flushPreFlushCbs(),flushPostFlushCbs(),t._vnode=e},Q={p:g,um:O,m:D,r:V,mt:I,mc:_,pc:L,pbc:k,n:U,o:e};if(t){var Y=_slicedToArray(t(Q),2);n=Y[0],r=Y[1]}return{render:j,hydrate:n,createApp:createAppAPI(j,n)}}function toggleRecurse(e,t){var n=e.effect,r=e.update;n.allowRecurse=r.allowRecurse=t}function traverseStaticChildren(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.children,i=t.children;if(isArray$8(r)&&isArray$8(i))for(var a=0;a<r.length;a++){var o=r[a],s=i[a];1&s.shapeFlag&&!s.dynamicChildren&&((s.patchFlag<=0||32===s.patchFlag)&&((s=i[a]=cloneIfMounted(i[a])).el=o.el),n||traverseStaticChildren(o,s)),s.type===Text&&(s.el=o.el)}}function getSequence(e){var t,n,r,i,a,o=e.slice(),s=[0],l=e.length;for(t=0;t<l;t++){var u=e[t];if(0!==u){if(e[n=s[s.length-1]]<u){o[t]=n,s.push(t);continue}for(r=0,i=s.length-1;r<i;)e[s[a=r+i>>1]]<u?r=a+1:i=a;u<e[s[r]]&&(r>0&&(o[t]=s[r-1]),s[r]=t)}}for(i=s[(r=s.length)-1];r-- >0;)s[r]=i,i=o[i];return s}var isTeleport=function(e){return e.__isTeleport},isTeleportDisabled=function(e){return e&&(e.disabled||""===e.disabled)},isTargetSVG=function(e){return"undefined"!=typeof SVGElement&&e instanceof SVGElement},resolveTarget=function(e,t){var n=e&&e.to;return isString$2(n)?t?t(n):null:n},TeleportImpl={__isTeleport:!0,process:function(e,t,n,r,i,a,o,s,l,u){var c=u.mc,h=u.pc,d=u.pbc,f=u.o,p=f.insert,v=f.querySelector,m=f.createText,g=(f.createComment,isTeleportDisabled(t.props)),y=t.shapeFlag,b=t.children,A=t.dynamicChildren;if(null==e){var S=t.el=m(""),x=t.anchor=m("");p(S,n,r),p(x,n,r);var w=t.target=resolveTarget(t.props,v),_=t.targetAnchor=m("");w&&(p(_,w),o=o||isTargetSVG(w));var E=function(e,t){16&y&&c(b,e,t,i,a,o,s,l)};g?E(n,x):w&&E(w,_)}else{t.el=e.el;var k=t.anchor=e.anchor,C=t.target=e.target,M=t.targetAnchor=e.targetAnchor,P=isTeleportDisabled(e.props),I=P?n:C,T=P?k:M;if(o=o||isTargetSVG(C),A?(d(e.dynamicChildren,A,I,i,a,o,s),traverseStaticChildren(e,t,!0)):l||h(e,t,I,T,i,a,o,s,!1),g)P||moveTeleport(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){var B=t.target=resolveTarget(t.props,v);B&&moveTeleport(t,B,null,u,0)}else P&&moveTeleport(t,C,M,u,1)}updateCssVars(t)},remove:function(e,t,n,r,i,a){var o=i.um,s=i.o.remove,l=e.shapeFlag,u=e.children,c=e.anchor,h=e.targetAnchor,d=e.target,f=e.props;if(d&&s(h),(a||!isTeleportDisabled(f))&&(s(c),16&l))for(var p=0;p<u.length;p++){var v=u[p];o(v,t,n,!0,!!v.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(e,t,n,r){var i=r.o.insert,a=r.m,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2;0===o&&i(e.targetAnchor,t,n);var s=e.el,l=e.anchor,u=e.shapeFlag,c=e.children,h=e.props,d=2===o;if(d&&i(s,t,n),(!d||isTeleportDisabled(h))&&16&u)for(var f=0;f<c.length;f++)a(c[f],t,n,2);d&&i(l,t,n)}function hydrateTeleport(e,t,n,r,i,a,o,s){var l=o.o,u=l.nextSibling,c=l.parentNode,h=l.querySelector,d=t.target=resolveTarget(t.props,h);if(d){var f=d._lpa||d.firstChild;if(16&t.shapeFlag)if(isTeleportDisabled(t.props))t.anchor=s(u(e),t,c(e),n,r,i,a),t.targetAnchor=f;else{t.anchor=u(e);for(var p=f;p;)if((p=u(p))&&8===p.nodeType&&"teleport anchor"===p.data){t.targetAnchor=p,d._lpa=t.targetAnchor&&u(t.targetAnchor);break}s(f,t,d,n,r,i,a)}updateCssVars(t)}return t.anchor&&u(t.anchor)}var Teleport=exports("cz",TeleportImpl);function updateCssVars(e){var t=e.ctx;if(t&&t.ut){for(var n=e.children[0].el;n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}var Fragment=exports("U",Symbol(void 0)),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[],currentBlock=null;function openBlock(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}var isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(e),e}function createElementBlock(e,t,n,r,i,a){return setupBlock(createBaseVNode(e,t,n,r,i,a,!0))}function createBlock(e,t,n,r,i){return setupBlock(createVNode(e,t,n,r,i,!0))}function isVNode(e){return!!e&&!0===e.__v_isVNode}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}var InternalObjectKey="__vInternal",normalizeKey=function(e){var t=e.key;return null!=t?t:null},normalizeRef=function(e){var t=e.ref,n=e.ref_key,r=e.ref_for;return null!=t?isString$2(t)||isRef(t)||isFunction$5(t)?{i:currentRenderingInstance,r:t,k:n,f:!!r}:t:null};function createBaseVNode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Fragment?0:1,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return s?(normalizeChildren(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=isString$2(n)?8:16),isBlockTreeEnabled>0&&!o&&currentBlock&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&currentBlock.push(l),l}var createVNode=exports("j",_createVNode);function _createVNode(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==NULL_DYNAMIC_COMPONENT||(e=Comment),isVNode(e)){var o=cloneVNode(e,t,!0);return n&&normalizeChildren(o,n),isBlockTreeEnabled>0&&!a&&currentBlock&&(6&o.shapeFlag?currentBlock[currentBlock.indexOf(e)]=o:currentBlock.push(o)),o.patchFlag|=-2,o}if(isClassComponent(e)&&(e=e.__vccOpts),t){var s=t=guardReactiveProps(t),l=s.class,u=s.style;l&&!isString$2(l)&&(t.class=normalizeClass(l)),isObject$4(u)&&(isProxy(u)&&!isArray$8(u)&&(u=extend$3({},u)),t.style=normalizeStyle(u))}return createBaseVNode(e,t,n,r,i,isString$2(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction$5(e)?2:0,a,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend$3({},e):e:null}function cloneVNode(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.props,i=e.ref,a=e.patchFlag,o=e.children,s=t?mergeProps(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&normalizeKey(s),ref:t&&t.ref?n&&i?isArray$8(i)?i.concat(normalizeRef(t)):[i,normalizeRef(t)]:normalizeRef(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function createTextVNode(){return createVNode(Text,null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function createCommentVNode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment):isArray$8(e)?createVNode(Fragment,null,e.slice()):"object"===_typeof2(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(isArray$8(t))n=16;else if("object"===_typeof2(t)){if(65&r){var i=t.default;return void(i&&(i._c&&(i._d=!1),normalizeChildren(e,i()),i._c&&(i._d=!0)))}n=32;var a=t._;a||InternalObjectKey in t?3===a&&currentRenderingInstance&&(1===currentRenderingInstance.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=currentRenderingInstance}else isFunction$5(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),64&r?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(){for(var e={},t=0;t<arguments.length;t++){var n=t<0||arguments.length<=t?void 0:arguments[t];for(var r in n)if("class"===r)e.class!==n.class&&(e.class=normalizeClass([e.class,n.class]));else if("style"===r)e.style=normalizeStyle([e.style,n.style]);else if(isOn(r)){var i=e[r],a=n[r];!a||i===a||isArray$8(i)&&i.includes(a)||(e[r]=i?[].concat(i,a):a)}else""!==r&&(e[r]=n[r])}return e}function invokeVNodeHook(e,t,n){callWithAsyncErrorHandling(e,t,7,[n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null])}var emptyAppContext=createAppContext(),uid=0;function createComponentInstance(e,t,n){var r=e.type,i=(t?t.appContext:e.appContext)||emptyAppContext,a={uid:uid++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(r,i),emitsOptions:normalizeEmitsOptions(r,i),emit:null,emitted:null,propsDefaults:EMPTY_OBJ,inheritAttrs:r.inheritAttrs,ctx:EMPTY_OBJ,data:EMPTY_OBJ,props:EMPTY_OBJ,attrs:EMPTY_OBJ,slots:EMPTY_OBJ,refs:EMPTY_OBJ,setupState:EMPTY_OBJ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=emit.bind(null,a),e.ce&&e.ce(a),a}var currentInstance=null,getCurrentInstance=exports("aj",(function(){return currentInstance||currentRenderingInstance})),setCurrentInstance=function(e){currentInstance=e,e.scope.on()},unsetCurrentInstance=function(){currentInstance&&currentInstance.scope.off(),currentInstance=null};function isStatefulComponent(e){return 4&e.vnode.shapeFlag}var isInSSRComponentSetup=!1,compile$1;function setupComponent(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];isInSSRComponentSetup=t;var n=e.vnode,r=n.props,i=n.children,a=isStatefulComponent(e);initProps(e,r,a,t),initSlots(e,i);var o=a?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,o}function setupStatefulComponent(e,t){var n=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));var r=n.setup;if(r){var i=e.setupContext=r.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();var a=callWithErrorHandling(r,e,0,[e.props,i]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(a)){if(a.then(unsetCurrentInstance,unsetCurrentInstance),t)return a.then((function(n){handleSetupResult(e,n,t)})).catch((function(t){handleError(t,e,0)}));e.asyncDep=a}else handleSetupResult(e,a,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,n){isFunction$5(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$4(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,n)}function finishComponentSetup(e,t,n){var r=e.type;if(!e.render){if(!t&&compile$1&&!r.render){var i=r.template||resolveMergedOptions(e).template;if(i){var a=e.appContext.config,o=a.isCustomElement,s=a.compilerOptions,l=r.delimiters,u=r.compilerOptions,c=extend$3(extend$3({isCustomElement:o,delimiters:l},s),u);r.render=compile$1(i,c)}}e.render=r.render||NOOP}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(e){return new Proxy(e.attrs,{get:function(t,n){return track(e,"get","$attrs"),t[n]}})}function createSetupContext(e){var t;return{get attrs(){return t||(t=createAttrsProxy(e))},slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get:function(t,n){return n in t?t[n]:n in publicPropertiesMap?publicPropertiesMap[n](e):void 0},has:function(e,t){return t in e||t in publicPropertiesMap}}))}function getComponentName(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return isFunction$5(e)?e.displayName||e.name:e.name||t&&e.__name}function isClassComponent(e){return isFunction$5(e)&&"__vccOpts"in e}var computed=exports("s",(function(e,t){return computed$1(e,t,isInSSRComponentSetup)}));function h(e,t,n){var r=arguments.length;return 2===r?isObject$4(t)&&!isArray$8(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&isVNode(n)&&(n=[n]),createVNode(e,t,n))}var ssrContextKey=Symbol(""),useSSRContext=function(){return inject(ssrContextKey)},version="3.2.47",svgNS="http://www.w3.org/2000/svg",doc$2="undefined"!=typeof document?document:null,templateContainer=doc$2&&doc$2.createElement("template"),nodeOps={insert:function(e,t,n){t.insertBefore(e,n||null)},remove:function(e){var t=e.parentNode;t&&t.removeChild(e)},createElement:function(e,t,n,r){var i=t?doc$2.createElementNS(svgNS,e):doc$2.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:function(e){return doc$2.createTextNode(e)},createComment:function(e){return doc$2.createComment(e)},setText:function(e,t){e.nodeValue=t},setElementText:function(e,t){e.textContent=t},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},querySelector:function(e){return doc$2.querySelector(e)},setScopeId:function(e,t){e.setAttribute(t,"")},insertStaticContent:function(e,t,n,r,i,a){var o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{templateContainer.innerHTML=r?"<svg>".concat(e,"</svg>"):e;var s=templateContainer.content;if(r){for(var l=s.firstChild;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function patchClass(e,t,n){var r=e._vtc;r&&(t=(t?[t].concat(_toConsumableArray2(r)):_toConsumableArray2(r)).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,n){var r=e.style,i=isString$2(n);if(n&&!i){if(t&&!isString$2(t))for(var a in t)null==n[a]&&setStyle(r,a,"");for(var o in n)setStyle(r,o,n[o])}else{var s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}var importantRE=/\s*!important$/;function setStyle(e,t,n){if(isArray$8(n))n.forEach((function(n){return setStyle(e,t,n)}));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{var r=autoPrefix(e,t);importantRE.test(n)?e.setProperty(hyphenate(r),n.replace(importantRE,""),"important"):e[r]=n}}var prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){var n=prefixCache[t];if(n)return n;var r=camelize$2(t);if("filter"!==r&&r in e)return prefixCache[t]=r;r=capitalize(r);for(var i=0;i<prefixes.length;i++){var a=prefixes[i]+r;if(a in e)return prefixCache[t]=a}return t}var xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(e,t,n,r,i){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(xlinkNS,t.slice(6,t.length)):e.setAttributeNS(xlinkNS,t,n);else{var a=isSpecialBooleanAttr(t);null==n||a&&!includeBooleanAttr(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function patchDOMProp(e,t,n,r,i,a,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,i,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;var s=null==n?"":n;return e.value===s&&"OPTION"!==e.tagName||(e.value=s),void(null==n&&e.removeAttribute(t))}var l=!1;if(""===n||null==n){var u=_typeof2(e[t]);"boolean"===u?n=includeBooleanAttr(n):null==n&&"string"===u?(n="",l=!0):"number"===u&&(n=0,l=!0)}try{e[t]=n}catch(c){}l&&e.removeAttribute(t)}function addEventListener(e,t,n,r){e.addEventListener(t,n,r)}function removeEventListener(e,t,n,r){e.removeEventListener(t,n,r)}function patchEvent(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=e._vei||(e._vei={}),o=a[t];if(r&&o)o.value=r;else{var s=_slicedToArray(parseName(t),2),l=s[0],u=s[1];if(r)addEventListener(e,l,a[t]=createInvoker(r,i),u);else o&&(removeEventListener(e,l,o,u),a[t]=void 0)}}var optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){var t,n;if(optionsModifierRE.test(e))for(t={};n=e.match(optionsModifierRE);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):hyphenate(e.slice(2)),t]}var cachedNow=0,p=Promise.resolve(),getNow=function(){return cachedNow||(p.then((function(){return cachedNow=0})),cachedNow=Date.now())};function createInvoker(e,t){var n=function e(n){if(n._vts){if(n._vts<=e.attached)return}else n._vts=Date.now();callWithAsyncErrorHandling(patchStopImmediatePropagation(n,e.value),t,5,[n])};return n.value=e,n.attached=getNow(),n}function patchStopImmediatePropagation(e,t){if(isArray$8(t)){var n=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){n.call(e),e._stopped=!0},t.map((function(e){return function(t){return!t._stopped&&e&&e(t)}}))}return t}var nativeOnRE=/^on[a-z]/,patchProp=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;"class"===t?patchClass(e,r,i):"style"===t?patchStyle(e,n,r):isOn(t)?isModelListener(t)||patchEvent(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):shouldSetAsProp(e,t,r,i))?patchDOMProp(e,t,r,a,o,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),patchAttr(e,t,r,i))};function shouldSetAsProp(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&nativeOnRE.test(t)&&isFunction$5(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!nativeOnRE.test(t)||!isString$2(n))&&t in e))))}var TRANSITION="transition",ANIMATION="animation",Transition=exports("ah",(function(e,t){var n=t.slots;return h(BaseTransition,resolveTransitionProps(e),n)}));Transition.displayName="Transition";var DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$3({},BaseTransition.props,DOMTransitionPropsValidators),callHook=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];isArray$8(e)?e.forEach((function(e){return e.apply(void 0,_toConsumableArray2(t))})):e&&e.apply(void 0,_toConsumableArray2(t))},hasExplicitCallback=function(e){return!!e&&(isArray$8(e)?e.some((function(e){return e.length>1})):e.length>1)};function resolveTransitionProps(e){var t={};for(var n in e)n in DOMTransitionPropsValidators||(t[n]=e[n]);if(!1===e.css)return t;var r=e.name,i=void 0===r?"v":r,a=e.type,o=e.duration,s=e.enterFromClass,l=void 0===s?"".concat(i,"-enter-from"):s,u=e.enterActiveClass,c=void 0===u?"".concat(i,"-enter-active"):u,h=e.enterToClass,d=void 0===h?"".concat(i,"-enter-to"):h,f=e.appearFromClass,p=void 0===f?l:f,v=e.appearActiveClass,m=void 0===v?c:v,g=e.appearToClass,y=void 0===g?d:g,b=e.leaveFromClass,A=void 0===b?"".concat(i,"-leave-from"):b,S=e.leaveActiveClass,x=void 0===S?"".concat(i,"-leave-active"):S,w=e.leaveToClass,_=void 0===w?"".concat(i,"-leave-to"):w,E=normalizeDuration(o),k=E&&E[0],C=E&&E[1],M=t.onBeforeEnter,P=t.onEnter,I=t.onEnterCancelled,T=t.onLeave,B=t.onLeaveCancelled,R=t.onBeforeAppear,L=void 0===R?M:R,N=t.onAppear,F=void 0===N?P:N,D=t.onAppearCancelled,O=void 0===D?I:D,V=function(e,t,n){removeTransitionClass(e,t?y:d),removeTransitionClass(e,t?m:c),n&&n()},z=function(e,t){e._isLeaving=!1,removeTransitionClass(e,A),removeTransitionClass(e,_),removeTransitionClass(e,x),t&&t()},G=function(e){return function(t,n){var r=e?F:P,i=function(){return V(t,e,n)};callHook(r,[t,i]),nextFrame((function(){removeTransitionClass(t,e?p:l),addTransitionClass(t,e?y:d),hasExplicitCallback(r)||whenTransitionEnds(t,a,k,i)}))}};return extend$3(t,{onBeforeEnter:function(e){callHook(M,[e]),addTransitionClass(e,l),addTransitionClass(e,c)},onBeforeAppear:function(e){callHook(L,[e]),addTransitionClass(e,p),addTransitionClass(e,m)},onEnter:G(!1),onAppear:G(!0),onLeave:function(e,t){e._isLeaving=!0;var n=function(){return z(e,t)};addTransitionClass(e,A),forceReflow(),addTransitionClass(e,x),nextFrame((function(){e._isLeaving&&(removeTransitionClass(e,A),addTransitionClass(e,_),hasExplicitCallback(T)||whenTransitionEnds(e,a,C,n))})),callHook(T,[e,n])},onEnterCancelled:function(e){V(e,!1),callHook(I,[e])},onAppearCancelled:function(e){V(e,!0),callHook(O,[e])},onLeaveCancelled:function(e){z(e),callHook(B,[e])}})}function normalizeDuration(e){if(null==e)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];var t=NumberOf(e);return[t,t]}function NumberOf(e){return toNumber$1(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.add(t)})),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach((function(t){return t&&e.classList.remove(t)}));var n=e._vtc;n&&(n.delete(t),n.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var endId=0;function whenTransitionEnds(e,t,n,r){var i=e._endId=++endId,a=function(){i===e._endId&&r()};if(n)return setTimeout(a,n);var o=getTransitionInfo(e,t),s=o.type,l=o.timeout,u=o.propCount;if(!s)return r();var c=s+"end",h=0,d=function(){e.removeEventListener(c,f),a()},f=function(t){t.target===e&&++h>=u&&d()};setTimeout((function(){h<u&&d()}),l+1),e.addEventListener(c,f)}function getTransitionInfo(e,t){var n=window.getComputedStyle(e),r=function(e){return(n[e]||"").split(", ")},i=r("".concat(TRANSITION,"Delay")),a=r("".concat(TRANSITION,"Duration")),o=getTimeout(i,a),s=r("".concat(ANIMATION,"Delay")),l=r("".concat(ANIMATION,"Duration")),u=getTimeout(s,l),c=null,h=0,d=0;return t===TRANSITION?o>0&&(c=TRANSITION,h=o,d=a.length):t===ANIMATION?u>0&&(c=ANIMATION,h=u,d=l.length):d=(c=(h=Math.max(o,u))>0?o>u?TRANSITION:ANIMATION:null)?c===TRANSITION?a.length:l.length:0,{type:c,timeout:h,propCount:d,hasTransform:c===TRANSITION&&/\b(transform|all)(,|$)/.test(r("".concat(TRANSITION,"Property")).toString())}}function getTimeout(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(Math,_toConsumableArray2(t.map((function(t,n){return toMs(t)+toMs(e[n])}))))}function toMs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function forceReflow(){return document.body.offsetHeight}var positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$3({},TransitionPropsValidators,{tag:String,moveClass:String}),setup:function(e,t){var n,r,i=t.slots,a=getCurrentInstance(),o=useTransitionState();return onUpdated((function(){if(n.length){var t=e.moveClass||"".concat(e.name||"v","-move");if(hasCSSTransform(n[0].el,a.vnode.el,t)){n.forEach(callPendingCbs),n.forEach(recordPosition);var r=n.filter(applyTranslation);forceReflow(),r.forEach((function(e){var n=e.el,r=n.style;addTransitionClass(n,t),r.transform=r.webkitTransform=r.transitionDuration="";var i=n._moveCb=function(e){e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,removeTransitionClass(n,t))};n.addEventListener("transitionend",i)}))}}})),function(){var t=toRaw(e),s=resolveTransitionProps(t),l=t.tag||Fragment;n=r,r=i.default?getTransitionRawChildren(i.default()):[];for(var u=0;u<r.length;u++){var c=r[u];null!=c.key&&setTransitionHooks(c,resolveTransitionHooks(c,s,o,a))}if(n)for(var h=0;h<n.length;h++){var d=n[h];setTransitionHooks(d,resolveTransitionHooks(d,s,o,a)),positionMap.set(d,d.el.getBoundingClientRect())}return createVNode(l,null,r)}}},removeMode=function(e){return delete e.mode};TransitionGroupImpl.props;var TransitionGroup=TransitionGroupImpl;function callPendingCbs(e){var t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function recordPosition(e){newPositionMap.set(e,e.el.getBoundingClientRect())}function applyTranslation(e){var t=positionMap.get(e),n=newPositionMap.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){var a=e.el.style;return a.transform=a.webkitTransform="translate(".concat(r,"px,").concat(i,"px)"),a.transitionDuration="0s",e}}function hasCSSTransform(e,t,n){var r=e.cloneNode();e._vtc&&e._vtc.forEach((function(e){e.split(/\s+/).forEach((function(e){return e&&r.classList.remove(e)}))})),n.split(/\s+/).forEach((function(e){return e&&r.classList.add(e)})),r.style.display="none";var i=1===t.nodeType?t:t.parentNode;i.appendChild(r);var a=getTransitionInfo(r).hasTransform;return i.removeChild(r),a}var keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=exports("bI",(function(e,t){return function(n){if("key"in n){var r=hyphenate(n.key);return t.some((function(e){return e===r||keyNames[e]===r}))?e(n):void 0}}})),vShow=exports("cg",{beforeMount:function(e,t,n){var r=t.value,i=n.transition;e._vod="none"===e.style.display?"":e.style.display,i&&r?i.beforeEnter(e):setDisplay(e,r)},mounted:function(e,t,n){var r=t.value,i=n.transition;i&&r&&i.enter(e)},updated:function(e,t,n){var r=t.value,i=t.oldValue,a=n.transition;!r!=!i&&(a?r?(a.beforeEnter(e),setDisplay(e,!0),a.enter(e)):a.leave(e,(function(){setDisplay(e,!1)})):setDisplay(e,r))},beforeUnmount:function(e,t){setDisplay(e,t.value)}});function setDisplay(e,t){e.style.display=t?e._vod:"none"}var rendererOptions=extend$3({patchProp:patchProp},nodeOps),renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}var createApp=exports("bn",(function(){var e,t=(e=ensureRenderer()).createApp.apply(e,arguments),n=t.mount;return t.mount=function(e){var r=normalizeContainer(e);if(r){var i=t._component;isFunction$5(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";var a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a}},t}));function normalizeContainer(e){return isString$2(e)?document.querySelector(e):e}
  2. /*!
  3. * vue-router v4.1.6
  4. * (c) 2022 Eduardo San Martin Morote
  5. * @license MIT
  6. */var isBrowser="undefined"!=typeof window;function isESModule(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}var assign$2=Object.assign;function applyToParams(e,t){var n={};for(var r in t){var i=t[r];n[r]=isArray$7(i)?i.map(e):e(i)}return n}var noop$2=function(){},isArray$7=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=function(e){return e.replace(TRAILING_SLASH_RE,"")},NavigationType,NavigationDirection;function parseURL(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",i={},a="",o="",s=t.indexOf("#"),l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),i=e(a=t.slice(l+1,s>-1?s:t.length))),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),{fullPath:(n=resolveRelativePath(null!=n?n:t,r))+(a&&"?")+a+o,path:n,query:i,hash:o}}function stringifyURL(e,t){var n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function stripBase(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function isSameRouteLocation(e,t,n){var r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&isSameRouteRecord(t.matched[r],n.matched[i])&&isSameRouteLocationParams(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!isSameRouteLocationParamsValue(e[n],t[n]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray$7(e)?isEquivalentArray(e,t):isArray$7(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return isArray$7(t)?e.length===t.length&&e.every((function(e,n){return e===t[n]})):1===e.length&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;var n,r,i=t.split("/"),a=e.split("/"),o=i.length-1;for(n=0;n<a.length;n++)if("."!==(r=a[n])){if(".."!==r)break;o>1&&o--}return i.slice(0,o).join("/")+"/"+a.slice(n-(n===a.length?1:0)).join("/")}function normalizeBase(e){if(!e)if(isBrowser){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),removeTrailingSlash(e)}!function(e){e.pop="pop",e.push="push"}(NavigationType||(NavigationType={})),function(e){e.back="back",e.forward="forward",e.unknown=""}(NavigationDirection||(NavigationDirection={}));var BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var computeScrollPosition=function(){return{left:window.pageXOffset,top:window.pageYOffset}};function scrollToPosition(e){var t;if("el"in e){var n=e.el,r="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=getElementPosition(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}var scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){var t=scrollPositions.get(e);return scrollPositions.delete(e),t}var createBaseLocation=function(){return location.protocol+"//"+location.host};function createCurrentLocation(e,t){var n=t.pathname,r=t.search,i=t.hash,a=e.indexOf("#");if(a>-1){var o=i.includes(e.slice(a))?e.slice(a).length:1,s=i.slice(o);return"/"!==s[0]&&(s="/"+s),stripBase(s,"")}return stripBase(n,e)+r+i}function useHistoryListeners(e,t,n,r){var i=[],a=[],o=null,s=function(a){var s=a.state,l=createCurrentLocation(e,location),u=n.value,c=t.value,h=0;if(s){if(n.value=l,t.value=s,o&&o===u)return void(o=null);h=c?s.position-c.position:0}else r(l);i.forEach((function(e){e(n.value,u,{delta:h,type:NavigationType.pop,direction:h?h>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})}))};function l(){var e=window.history;e.state&&e.replaceState(assign$2({},e.state,{scroll:computeScrollPosition()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){o=n.value},listen:function(e){i.push(e);var t=function(){var t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t},destroy:function(){var e,t=_createForOfIteratorHelper(a);try{for(t.s();!(e=t.n()).done;){(0,e.value)()}}catch(n){t.e(n)}finally{t.f()}a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}function buildState(e,t,n){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:n,replaced:arguments.length>3&&void 0!==arguments[3]&&arguments[3],position:window.history.length,scroll:r?computeScrollPosition():null}}function useHistoryStateNavigation(e){var t=window,n=t.history,r=t.location,i={value:createCurrentLocation(e,r)},a={value:n.state};function o(t,i,o){var s=e.indexOf("#"),l=s>-1?(r.host&&document.querySelector("base")?e:e.slice(s))+t:createBaseLocation()+e+t;try{n[o?"replaceState":"pushState"](i,"",l),a.value=i}catch(u){console.error(u),r[o?"replace":"assign"](l)}}return a.value||o(i.value,{back:null,current:i.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0),{location:i,state:a,push:function(e,t){var r=assign$2({},a.value,n.state,{forward:e,scroll:computeScrollPosition()});o(r.current,r,!0),o(e,assign$2({},buildState(i.value,e,null),{position:r.position+1},t),!1),i.value=e},replace:function(e,t){o(e,assign$2({},n.state,buildState(a.value.back,e,a.value.forward,!0),t,{position:a.value.position}),!0),i.value=e}}}function createWebHistory(e){var t=useHistoryStateNavigation(e=normalizeBase(e)),n=useHistoryListeners(e,t.state,t.location,t.replace);var r=assign$2({location:"",base:e,go:function(e){!(arguments.length>1&&void 0!==arguments[1])||arguments[1]||n.pauseListeners(),history.go(e)},createHref:createHref.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:function(){return t.location.value}}),Object.defineProperty(r,"state",{enumerable:!0,get:function(){return t.state.value}}),r}function createWebHashHistory(e){return(e=location.host?e||location.pathname+location.search:"").includes("#")||(e+="#"),createWebHistory(e)}function isRouteLocation(e){return"string"==typeof e||e&&"object"===_typeof2(e)}function isRouteName(e){return"string"==typeof e||"symbol"===_typeof2(e)}var START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol(""),NavigationFailureType;function createRouterError(e,t){return assign$2(new Error,_defineProperty2({type:e},NavigationFailureSymbol,!0),t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(null==t||!!(e.type&t))}!function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"}(NavigationFailureType||(NavigationFailureType={}));var BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){var n,r=assign$2({},BASE_PATH_PARSER_OPTIONS,t),i=[],a=r.start?"^":"",o=[],s=_createForOfIteratorHelper(e);try{for(s.s();!(n=s.n()).done;){var l=n.value,u=l.length?[]:[90];r.strict&&!l.length&&(a+="/");for(var c=0;c<l.length;c++){var h=l[c],d=40+(r.sensitive?.25:0);if(0===h.type)c||(a+="/"),a+=h.value.replace(REGEX_CHARS_RE,"\\$&"),d+=40;else if(1===h.type){var f=h.value,p=h.repeatable,v=h.optional,m=h.regexp;o.push({name:f,repeatable:p,optional:v});var g=m||BASE_PARAM_PATTERN;if(g!==BASE_PARAM_PATTERN){d+=10;try{new RegExp("(".concat(g,")"))}catch(S){throw new Error('Invalid custom RegExp for param "'.concat(f,'" (').concat(g,"): ")+S.message)}}var y=p?"((?:".concat(g,")(?:/(?:").concat(g,"))*)"):"(".concat(g,")");c||(y=v&&l.length<2?"(?:/".concat(y,")"):"/"+y),v&&(y+="?"),a+=y,d+=20,v&&(d+=-8),p&&(d+=-20),".*"===g&&(d+=-50)}u.push(d)}i.push(u)}}catch(S){s.e(S)}finally{s.f()}if(r.strict&&r.end){var b=i.length-1;i[b][i[b].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");var A=new RegExp(a,r.sensitive?"":"i");return{re:A,score:i,keys:o,parse:function(e){var t=e.match(A),n={};if(!t)return null;for(var r=1;r<t.length;r++){var i=t[r]||"",a=o[r-1];n[a.name]=i&&a.repeatable?i.split("/"):i}return n},stringify:function(t){var n,r="",i=!1,a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i&&r.endsWith("/")||(r+="/"),i=!1;var s,l=_createForOfIteratorHelper(o);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(0===u.type)r+=u.value;else if(1===u.type){var c=u.value,h=u.repeatable,d=u.optional,f=c in t?t[c]:"";if(isArray$7(f)&&!h)throw new Error('Provided param "'.concat(c,'" is an array but it is not repeatable (* or + modifiers)'));var p=isArray$7(f)?f.join("/"):f;if(!p){if(!d)throw new Error('Missing required param "'.concat(c,'"'));o.length<2&&(r.endsWith("/")?r=r.slice(0,-1):i=!0)}r+=p}}}catch(S){l.e(S)}finally{l.f()}}}catch(S){a.e(S)}finally{a.f()}return r||"/"}}}function compareScoreArray(e,t){for(var n=0;n<e.length&&n<t.length;){var r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function comparePathParserScore(e,t){for(var n=0,r=e.score,i=t.score;n<r.length&&n<i.length;){var a=compareScoreArray(r[n],i[n]);if(a)return a;n++}if(1===Math.abs(i.length-r.length)){if(isLastScoreNegative(r))return 1;if(isLastScoreNegative(i))return-1}return i.length-r.length}function isLastScoreNegative(e){var t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if("/"===e)return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error('Invalid path "'.concat(e,'"'));function t(e){throw new Error("ERR (".concat(r,')/"').concat(u,'": ').concat(e))}var n,r=0,i=r,a=[];function o(){n&&a.push(n),n=[]}var s,l=0,u="",c="";function h(){u&&(0===r?n.push({type:0,value:u}):1===r||2===r||3===r?(n.length>1&&("*"===s||"+"===s)&&t("A repeatable param (".concat(u,") must be alone in its segment. eg: '/:ids+.")),n.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function d(){u+=s}for(;l<e.length;)if("\\"!==(s=e[l++])||2===r)switch(r){case 0:"/"===s?(u&&h(),o()):":"===s?(h(),r=1):d();break;case 4:d(),r=i;break;case 1:"("===s?r=2:VALID_PARAM_RE.test(s)?d():(h(),r=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:r=3:c+=s;break;case 3:h(),r=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state")}else i=r,r=4;return 2===r&&t('Unfinished custom RegExp for param "'.concat(u,'"')),h(),o(),a}function createRouteRecordMatcher(e,t,n){var r=tokensToParser(tokenizePath(e.path),n),i=assign$2(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function createRouterMatcher(e,t){var n=[],r=new Map;function i(e,n,r){var s=!r,l=normalizeRouteRecord(e);l.aliasOf=r&&r.record;var u,c,h=mergeOptions(t,e),d=[l];if("alias"in e){var f,p=_createForOfIteratorHelper("string"==typeof e.alias?[e.alias]:e.alias);try{for(p.s();!(f=p.n()).done;){var v=f.value;d.push(assign$2({},l,{components:r?r.record.components:l.components,path:v,aliasOf:r?r.record:l}))}}catch(_){p.e(_)}finally{p.f()}}for(var m=0,g=d;m<g.length;m++){var y=g[m],b=y.path;if(n&&"/"!==b[0]){var A=n.record.path,S="/"===A[A.length-1]?"":"/";y.path=n.record.path+(b&&S+b)}if(u=createRouteRecordMatcher(y,n,h),r?r.alias.push(u):((c=c||u)!==u&&c.alias.push(u),s&&e.name&&!isAliasRecord(u)&&a(e.name)),l.children)for(var x=l.children,w=0;w<x.length;w++)i(x[w],u,r&&r.children[w]);r=r||u,(u.record.components&&Object.keys(u.record.components).length||u.record.name||u.record.redirect)&&o(u)}return c?function(){a(c)}:noop$2}function a(e){if(isRouteName(e)){var t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{var i=n.indexOf(e);i>-1&&(n.splice(i,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function o(e){for(var t=0;t<n.length&&comparePathParserScore(e,n[t])>=0&&(e.record.path!==n[t].record.path||!isRecordChildOf(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!isAliasRecord(e)&&r.set(e.record.name,e)}return t=mergeOptions({strict:!1,end:!0,sensitive:!1},t),e.forEach((function(e){return i(e)})),{addRoute:i,resolve:function(e,t){var i,a,o,s={};if("name"in e&&e.name){if(!(i=r.get(e.name)))throw createRouterError(1,{location:e});o=i.record.name,s=assign$2(paramsFromLocation(t.params,i.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}))),e.params&&paramsFromLocation(e.params,i.keys.map((function(e){return e.name})))),a=i.stringify(s)}else if("path"in e)a=e.path,(i=n.find((function(e){return e.re.test(a)})))&&(s=i.parse(a),o=i.record.name);else{if(!(i=t.name?r.get(t.name):n.find((function(e){return e.re.test(t.path)}))))throw createRouterError(1,{location:e,currentLocation:t});o=i.record.name,s=assign$2({},t.params,e.params),a=i.stringify(s)}for(var l=[],u=i;u;)l.unshift(u.record),u=u.parent;return{name:o,path:a,params:s,matched:l,meta:mergeMetaFields(l)}},removeRoute:a,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function paramsFromLocation(e,t){var n,r={},i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;a in e&&(r[a]=e[a])}}catch(o){i.e(o)}finally{i.f()}return r}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function normalizeRecordProps(e){var t={},n=e.props||!1;if("component"in e)t.default=n;else for(var r in e.components)t[r]="boolean"==typeof n?n:n[r];return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce((function(e,t){return assign$2(e,t.meta)}),{})}function mergeOptions(e,t){var n={};for(var r in e)n[r]=r in t?t[r]:e[r];return n}function isRecordChildOf(e,t){return t.children.some((function(t){return t===e||isRecordChildOf(e,t)}))}var HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return null==e?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode$5(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function parseQuery(e){var t={};if(""===e||"?"===e)return t;for(var n=("?"===e[0]?e.slice(1):e).split("&"),r=0;r<n.length;++r){var i=n[r].replace(PLUS_RE," "),a=i.indexOf("="),o=decode$5(a<0?i:i.slice(0,a)),s=a<0?null:decode$5(i.slice(a+1));if(o in t){var l=t[o];isArray$7(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function stringifyQuery(e){var t="",n=function(n){var r=e[n];if(n=encodeQueryKey(n),null==r)return void 0!==r&&(t+=(t.length?"&":"")+n),"continue";(isArray$7(r)?r.map((function(e){return e&&encodeQueryValue(e)})):[r&&encodeQueryValue(r)]).forEach((function(e){void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))};for(var r in e)n(r);return t}function normalizeQuery(e){var t={};for(var n in e){var r=e[n];void 0!==r&&(t[n]=isArray$7(r)?r.map((function(e){return null==e?null:""+e})):null==r?r:""+r)}return t}var matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){var e=[];return{add:function(t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:function(){return e},reset:function(){e=[]}}}function guardToPromiseFn(e,t,n,r,i){var a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return function(){return new Promise((function(o,s){var l=function(e){!1===e?s(createRouterError(4,{from:n,to:t})):e instanceof Error?s(e):isRouteLocation(e)?s(createRouterError(2,{from:t,to:e})):(a&&r.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),o())},u=e.call(r&&r.instances[i],t,n,l),c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((function(e){return s(e)}))}))}}function extractComponentsGuards(e,t,n,r){var i,a=[],o=_createForOfIteratorHelper(e);try{var s=function(){var e=i.value,o=function(i){var o=e.components[i];if("beforeRouteEnter"!==t&&!e.instances[i])return"continue";if(isRouteComponent(o)){var s=(o.__vccOpts||o)[t];s&&a.push(guardToPromiseFn(s,n,r,e,i))}else{var l=o();a.push((function(){return l.then((function(a){if(!a)return Promise.reject(new Error("Couldn't resolve component \"".concat(i,'" at "').concat(e.path,'"')));var o=isESModule(a)?a.default:a;e.components[i]=o;var s=(o.__vccOpts||o)[t];return s&&guardToPromiseFn(s,n,r,e,i)()}))}))}};for(var s in e.components)o(s)};for(o.s();!(i=o.n()).done;)s()}catch(l){o.e(l)}finally{o.f()}return a}function isRouteComponent(e){return"object"===_typeof2(e)||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){var t=inject(routerKey),n=inject(routeLocationKey),r=computed((function(){return t.resolve(unref(e.to))})),i=computed((function(){var e=r.value.matched,t=e.length,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;var o=a.findIndex(isSameRouteRecord.bind(null,i));if(o>-1)return o;var s=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(i)===s&&a[a.length-1].path!==s?a.findIndex(isSameRouteRecord.bind(null,e[t-2])):o})),a=computed((function(){return i.value>-1&&includesParams(n.params,r.value.params)})),o=computed((function(){return i.value>-1&&i.value===n.matched.length-1&&isSameRouteLocationParams(n.params,r.value.params)}));return{route:r,href:computed((function(){return r.value.href})),isActive:a,isExactActive:o,navigate:function(){return guardEvent(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$2):Promise.resolve()}}}var RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:useLink,setup:function(e,t){var n=t.slots,r=reactive(useLink(e)),i=inject(routerKey).options,a=computed((function(){var t;return _defineProperty2(t={},getLinkClass(e.activeClass,i.linkActiveClass,"router-link-active"),r.isActive),_defineProperty2(t,getLinkClass(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active"),r.isExactActive),t}));return function(){var t=n.default&&n.default(r);return e.custom?t:h("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},t)}}}),RouterLink=RouterLinkImpl;function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function includesParams(e,t){var n=function(){var n=t[r],i=e[r];if("string"==typeof n){if(n!==i)return{v:!1}}else if(!isArray$7(i)||i.length!==n.length||n.some((function(e,t){return e!==i[t]})))return{v:!1}};for(var r in t){var i=n();if("object"===_typeof2(i))return i.v}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var getLinkClass=function(e,t,n){return null!=e?e:null!=t?t:n},RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup:function(e,t){var n=t.attrs,r=t.slots,i=inject(routerViewLocationKey),a=computed((function(){return e.route||i.value})),o=inject(viewDepthKey,0),s=computed((function(){for(var e,t=unref(o),n=a.value.matched;(e=n[t])&&!e.components;)t++;return t})),l=computed((function(){return a.value.matched[s.value]}));provide(viewDepthKey,computed((function(){return s.value+1}))),provide(matchedRouteKey,l),provide(routerViewLocationKey,a);var u=ref();return watch((function(){return[u.value,l.value,e.name]}),(function(e,t){var n=_slicedToArray(e,3),r=n[0],i=n[1],a=n[2],o=_slicedToArray(t,3),s=o[0],l=o[1];o[2];i&&(i.instances[a]=r,l&&l!==i&&r&&r===s&&(i.leaveGuards.size||(i.leaveGuards=l.leaveGuards),i.updateGuards.size||(i.updateGuards=l.updateGuards))),!r||!i||l&&isSameRouteRecord(i,l)&&s||(i.enterCallbacks[a]||[]).forEach((function(e){return e(r)}))}),{flush:"post"}),function(){var t=a.value,i=e.name,o=l.value,s=o&&o.components[i];if(!s)return normalizeSlot(r.default,{Component:s,route:t});var c=o.props[i],d=c?!0===c?t.params:"function"==typeof c?c(t):c:null,f=h(s,assign$2({},d,n,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(o.instances[i]=null)},ref:u}));return normalizeSlot(r.default,{Component:f,route:t})||f}}});function normalizeSlot(e,t){if(!e)return null;var n=e(t);return 1===n.length?n[0]:n}var RouterView=exports("S",RouterViewImpl);function createRouter(e){var t=createRouterMatcher(e.routes,e),n=e.parseQuery||parseQuery,r=e.stringifyQuery||stringifyQuery,i=e.history,a=useCallbacks(),o=useCallbacks(),s=useCallbacks(),l=shallowRef(START_LOCATION_NORMALIZED),u=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");var c,h=applyToParams.bind(null,(function(e){return""+e})),d=applyToParams.bind(null,encodeParam),f=applyToParams.bind(null,decode$5);function p(e,a){if(a=assign$2({},a||l.value),"string"==typeof e){var o=parseURL(n,e,a.path),s=t.resolve({path:o.path},a),u=i.createHref(o.fullPath);return assign$2(o,s,{params:f(s.params),hash:decode$5(o.hash),redirectedFrom:void 0,href:u})}var c;if("path"in e)c=assign$2({},e,{path:parseURL(n,e.path,a.path).path});else{var p=assign$2({},e.params);for(var v in p)null==p[v]&&delete p[v];c=assign$2({},e,{params:d(e.params)}),a.params=d(a.params)}var m=t.resolve(c,a),g=e.hash||"";m.params=h(f(m.params));var y=stringifyURL(r,assign$2({},e,{hash:encodeHash(g),path:m.path})),b=i.createHref(y);return assign$2({fullPath:y,hash:g,query:r===stringifyQuery?normalizeQuery(e.query):e.query||{}},m,{redirectedFrom:void 0,href:b})}function v(e){return"string"==typeof e?parseURL(n,e,l.value.path):assign$2({},e)}function m(e,t){if(u!==e)return createRouterError(8,{from:t,to:e})}function g(e){return b(e)}function y(e){var t=e.matched[e.matched.length-1];if(t&&t.redirect){var n=t.redirect,r="function"==typeof n?n(e):n;return"string"==typeof r&&((r=r.includes("?")||r.includes("#")?r=v(r):{path:r}).params={}),assign$2({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function b(e,t){var n=u=p(e),i=l.value,a=e.state,o=e.force,s=!0===e.replace,c=y(n);if(c)return b(assign$2(v(c),{state:"object"===_typeof2(c)?assign$2({},a,c.state):a,force:o,replace:s}),t||n);var h,d=n;return d.redirectedFrom=t,!o&&isSameRouteLocation(r,i,n)&&(h=createRouterError(16,{to:d,from:i}),P(i,i,!0,!1)),(h?Promise.resolve(h):S(d,i)).catch((function(e){return isNavigationFailure(e)?isNavigationFailure(e,2)?e:M(e):C(e,d,i)})).then((function(e){if(e){if(isNavigationFailure(e,2))return b(assign$2({replace:s},v(e.to),{state:"object"===_typeof2(e.to)?assign$2({},a,e.to.state):a,force:o}),t||d)}else e=w(d,i,!0,s,a);return x(d,i,e),e}))}function A(e,t){var n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function S(e,t){var n,r=_slicedToArray(extractChangingRecords(e,t),3),i=r[0],s=r[1],l=r[2];n=extractComponentsGuards(i.reverse(),"beforeRouteLeave",e,t);var u,c=_createForOfIteratorHelper(i);try{for(c.s();!(u=c.n()).done;){u.value.leaveGuards.forEach((function(r){n.push(guardToPromiseFn(r,e,t))}))}}catch(d){c.e(d)}finally{c.f()}var h=A.bind(null,e,t);return n.push(h),runGuardQueue(n).then((function(){n=[];var r,i=_createForOfIteratorHelper(a.list());try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push(guardToPromiseFn(o,e,t))}}catch(d){i.e(d)}finally{i.f()}return n.push(h),runGuardQueue(n)})).then((function(){n=extractComponentsGuards(s,"beforeRouteUpdate",e,t);var r,i=_createForOfIteratorHelper(s);try{for(i.s();!(r=i.n()).done;){r.value.updateGuards.forEach((function(r){n.push(guardToPromiseFn(r,e,t))}))}}catch(d){i.e(d)}finally{i.f()}return n.push(h),runGuardQueue(n)})).then((function(){n=[];var r,i=_createForOfIteratorHelper(e.matched);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.beforeEnter&&!t.matched.includes(a))if(isArray$7(a.beforeEnter)){var o,s=_createForOfIteratorHelper(a.beforeEnter);try{for(s.s();!(o=s.n()).done;){var l=o.value;n.push(guardToPromiseFn(l,e,t))}}catch(d){s.e(d)}finally{s.f()}}else n.push(guardToPromiseFn(a.beforeEnter,e,t))}}catch(d){i.e(d)}finally{i.f()}return n.push(h),runGuardQueue(n)})).then((function(){return e.matched.forEach((function(e){return e.enterCallbacks={}})),(n=extractComponentsGuards(l,"beforeRouteEnter",e,t)).push(h),runGuardQueue(n)})).then((function(){n=[];var r,i=_createForOfIteratorHelper(o.list());try{for(i.s();!(r=i.n()).done;){var a=r.value;n.push(guardToPromiseFn(a,e,t))}}catch(d){i.e(d)}finally{i.f()}return n.push(h),runGuardQueue(n)})).catch((function(e){return isNavigationFailure(e,8)?e:Promise.reject(e)}))}function x(e,t,n){var r,i=_createForOfIteratorHelper(s.list());try{for(i.s();!(r=i.n()).done;){(0,r.value)(e,t,n)}}catch(a){i.e(a)}finally{i.f()}}function w(e,t,n,r,a){var o=m(e,t);if(o)return o;var s=t===START_LOCATION_NORMALIZED,u=isBrowser?history.state:{};n&&(r||s?i.replace(e.fullPath,assign$2({scroll:s&&u&&u.scroll},a)):i.push(e.fullPath,a)),l.value=e,P(e,t,n,s),M()}var _,E=useCallbacks(),k=useCallbacks();function C(e,t,n){M(e);var r=k.list();return r.length?r.forEach((function(r){return r(e,t,n)})):console.error(e),Promise.reject(e)}function M(e){return _||(_=!e,c||(c=i.listen((function(e,t,n){if(R.listening){var r=p(e),a=y(r);if(a)b(assign$2(a,{replace:!0}),r).catch(noop$2);else{u=r;var o=l.value;isBrowser&&saveScrollPosition(getScrollKey(o.fullPath,n.delta),computeScrollPosition()),S(r,o).catch((function(e){return isNavigationFailure(e,12)?e:isNavigationFailure(e,2)?(b(e.to,r).then((function(e){isNavigationFailure(e,20)&&!n.delta&&n.type===NavigationType.pop&&i.go(-1,!1)})).catch(noop$2),Promise.reject()):(n.delta&&i.go(-n.delta,!1),C(e,r,o))})).then((function(e){(e=e||w(r,o,!1))&&(n.delta&&!isNavigationFailure(e,8)?i.go(-n.delta,!1):n.type===NavigationType.pop&&isNavigationFailure(e,20)&&i.go(-1,!1)),x(r,o,e)})).catch(noop$2)}}}))),E.list().forEach((function(t){var n=_slicedToArray(t,2),r=n[0],i=n[1];return e?i(e):r()})),E.reset()),e}function P(t,n,r,i){var a=e.scrollBehavior;if(!isBrowser||!a)return Promise.resolve();var o=!r&&getSavedScrollPosition(getScrollKey(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return nextTick().then((function(){return a(t,n,o)})).then((function(e){return e&&scrollToPosition(e)})).catch((function(e){return C(e,t,n)}))}var I,T=function(e){return i.go(e)},B=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){var r,i;return isRouteName(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)},removeRoute:function(e){var n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((function(e){return e.record}))},resolve:p,options:e,push:g,replace:function(e){return g(assign$2(v(e),{replace:!0}))},go:T,back:function(){return T(-1)},forward:function(){return T(1)},beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:function(){return _&&l.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((function(e,t){E.add([e,t])}))},install:function(e){e.component("RouterLink",RouterLink),e.component("RouterView",RouterView),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:function(){return unref(l)}}),isBrowser&&!I&&l.value===START_LOCATION_NORMALIZED&&(I=!0,g(i.location).catch((function(e){})));var t={},n=function(e){t[e]=computed((function(){return l.value[e]}))};for(var r in START_LOCATION_NORMALIZED)n(r);e.provide(routerKey,this),e.provide(routeLocationKey,reactive(t)),e.provide(routerViewLocationKey,l);var a=e.unmount;B.add(e),e.unmount=function(){B.delete(e),B.size<1&&(u=START_LOCATION_NORMALIZED,c&&c(),c=null,l.value=START_LOCATION_NORMALIZED,I=!1,_=!1),a()}}};return R}function runGuardQueue(e){return e.reduce((function(e,t){return e.then((function(){return t()}))}),Promise.resolve())}function extractChangingRecords(e,t){for(var n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length),o=function(){var a=t.matched[s];a&&(e.matched.find((function(e){return isSameRouteRecord(e,a)}))?r.push(a):n.push(a));var o=e.matched[s];o&&(t.matched.find((function(e){return isSameRouteRecord(e,o)}))||i.push(o))},s=0;s<a;s++)o();return[n,r,i]}function useRoute$1(){return inject(routeLocationKey)}var isDef$1=exports("i",(function(e){return null!=e})),isFunction$4=exports("bK",(function(e){return"function"==typeof e})),isObject$3=exports("ci",(function(e){return null!==e&&"object"===_typeof2(e)})),isPromise=exports("cj",(function(e){return isObject$3(e)&&isFunction$4(e.then)&&isFunction$4(e.catch)})),isNumeric=function(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)},isIOS$1=function(){return!!inBrowser$2&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())};function noop$1(){}var extend$2=exports("e",Object.assign),inBrowser$2=exports("bO","undefined"!=typeof window);function get(e,t){var n=t.split("."),r=e;return n.forEach((function(e){var t;r=isObject$3(r)&&null!=(t=r[e])?t:""})),r}function pick$1(e,t,n){return t.reduce((function(t,r){return n&&void 0===e[r]||(t[r]=e[r]),t}),{})}var isSameValue=exports("y",(function(e,t){return JSON.stringify(e)===JSON.stringify(t)})),toArray=exports("cl",(function(e){return Array.isArray(e)?e:[e]})),unknownProp=exports("bG",null),numericProp=exports("n",[Number,String]),truthProp=exports("t",{type:Boolean,default:!0}),makeRequiredProp=exports("m",(function(e){return{type:e,required:!0}})),makeArrayProp=exports("b",(function(){return{type:Array,default:function(){return[]}}})),makeNumberProp=exports("cp",(function(e){return{type:Number,default:e}})),makeNumericProp=exports("o",(function(e){return{type:numericProp,default:e}})),makeStringProp=exports("q",(function(e){return{type:String,default:e}})),inBrowser$1="undefined"!=typeof window;function raf(e){return inBrowser$1?requestAnimationFrame(e):-1}function cancelRaf(e){inBrowser$1&&cancelAnimationFrame(e)}function doubleRaf(e){raf((function(){return raf(e)}))}var isWindow=function(e){return e===window},makeDOMRect=function(e,t){return{top:0,left:0,right:e,bottom:t,width:e,height:t}},useRect=exports("G",(function(e){var t=unref(e);if(isWindow(t)){var n=t.innerWidth,r=t.innerHeight;return makeDOMRect(n,r)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():makeDOMRect(0,0)}));function useParent$1(e){var t=inject(e,null);if(t){var n=getCurrentInstance(),r=t.link,i=t.unlink,a=t.internalChildren;return r(n),onUnmounted((function(){return i(n)})),{parent:t,index:computed((function(){return a.indexOf(n)}))}}return{parent:null,index:ref(-1)}}function flattenVNodes(e){var t=[];return function e(n){Array.isArray(n)&&n.forEach((function(n){var r;isVNode(n)&&(t.push(n),(null==(r=n.component)?void 0:r.subTree)&&(t.push(n.component.subTree),e(n.component.subTree.children)),n.children&&e(n.children))}))}(e),t}var findVNodeIndex=function(e,t){var n=e.indexOf(t);return-1===n?e.findIndex((function(e){return void 0!==t.key&&null!==t.key&&e.type===t.type&&e.key===t.key})):n},width,height;function sortChildren(e,t,n){var r=flattenVNodes(e.subTree.children);n.sort((function(e,t){return findVNodeIndex(r,e.vnode)-findVNodeIndex(r,t.vnode)}));var i=n.map((function(e){return e.proxy}));t.sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}))}function useChildren(e){var t=reactive([]),n=reactive([]),r=getCurrentInstance();return{children:t,linkChildren:function(i){provide(e,Object.assign({link:function(e){e.proxy&&(n.push(e),t.push(e.proxy),sortChildren(r,t,n))},unlink:function(e){var r=n.indexOf(e);t.splice(r,1),n.splice(r,1)},children:t,internalChildren:n},i))}}}function onMountedOrActivated(e){var t;onMounted((function(){e(),nextTick((function(){t=!0}))})),onActivated((function(){t&&e()}))}function useEventListener$1(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(inBrowser$1){var r,i,a=n.target,o=void 0===a?window:a,s=n.passive,l=void 0!==s&&s,u=n.capture,c=void 0!==u&&u,h=!1,d=function(n){if(!h){var i=unref(n);i&&!r&&(i.addEventListener(e,t,{capture:c,passive:l}),r=!0)}},f=function(n){if(!h){var i=unref(n);i&&r&&(i.removeEventListener(e,t,c),r=!1)}};return onUnmounted((function(){return f(o)})),onDeactivated((function(){return f(o)})),onMountedOrActivated((function(){return d(o)})),isRef(o)&&(i=watch(o,(function(e,t){f(t),d(e)}))),function(){null==i||i(),f(o),h=!0}}}function useClickAway(e,t){if(inBrowser$1){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).eventName;useEventListener$1(void 0===n?"click":n,(function(n){(Array.isArray(e)?e:[e]).every((function(e){var t=unref(e);return t&&!t.contains(n.target)}))&&t(n)}),{target:document})}}function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser$1)){var e=function(){width.value=window.innerWidth,height.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:width,height:height}}var overflowScrollReg=/scroll|auto|overlay/i,defaultRoot=inBrowser$1?window:void 0,visibility;function isElement$1(e){return"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType}function getScrollParent(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultRoot,n=e;n&&n!==t&&isElement$1(n);){var r=window.getComputedStyle(n).overflowY;if(overflowScrollReg.test(r))return n;n=n.parentNode}return t}function useScrollParent(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultRoot,n=ref();return onMounted((function(){e.value&&(n.value=getScrollParent(e.value,t))})),n}function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser$1)){var e=function(){visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}var CUSTOM_FIELD_INJECTION_KEY=exports("cn",Symbol("van-field"));function useCustomFieldValue(e){var t=inject(CUSTOM_FIELD_INJECTION_KEY,null);t&&!t.customValue.value&&(t.customValue.value=e,watch(e,(function(){t.resetValidation(),t.validateWithTrigger("onChange")})))}function getScrollTop(e){var t="scrollTop"in e?e.scrollTop:e.pageYOffset;return Math.max(t,0)}function setScrollTop(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function getRootScrollTop(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function setRootScrollTop(e){setScrollTop(window,e),setScrollTop(document.body,e)}function getElementTop(e,t){if(e===window)return 0;var n=t?getScrollTop(t):getRootScrollTop();return useRect(e).top+n}var isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}var stopPropagation=exports("ct",(function(e){return e.stopPropagation()}));function preventDefault(e,t){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&stopPropagation(e)}function isHidden(e){var t=unref(e);if(!t)return!1;var n=window.getComputedStyle(t),r="none"===n.display,i=null===t.offsetParent&&"fixed"!==n.position;return r||i}var _useWindowSize=useWindowSize(),windowWidth=_useWindowSize.width,windowHeight=_useWindowSize.height,rootFontSize;function addUnit(e){if(isDef$1(e))return isNumeric(e)?"".concat(e,"px"):String(e)}function getSizeStyle(e){if(isDef$1(e)){if(Array.isArray(e))return{width:addUnit(e[0]),height:addUnit(e[1])};var t=addUnit(e);return{width:t,height:t}}}function getZIndexStyle(e){var t={};return void 0!==e&&(t.zIndex=+e),t}function getRootFontSize(){if(!rootFontSize){var e=document.documentElement,t=e.style.fontSize||window.getComputedStyle(e).fontSize;rootFontSize=parseFloat(t)}return rootFontSize}function convertRem(e){return+(e=e.replace(/rem/g,""))*getRootFontSize()}function convertVw(e){return+(e=e.replace(/vw/g,""))*windowWidth.value/100}function convertVh(e){return+(e=e.replace(/vh/g,""))*windowHeight.value/100}function unitToPx(e){if("number"==typeof e)return e;if(inBrowser$2){if(e.includes("rem"))return convertRem(e);if(e.includes("vw"))return convertVw(e);if(e.includes("vh"))return convertVh(e)}return parseFloat(e)}exports({c3:windowWidth,c4:windowHeight});var camelizeRE=/-(\w)/g,camelize$1=function(e){return e.replace(camelizeRE,(function(e,t){return t.toUpperCase()}))},kebabCase=function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,"")},clamp=exports("a",(function(e,t,n){return Math.min(Math.max(e,t),n)}));function trimExtraChar(e,t,n){var r=e.indexOf(t);return-1===r?e:"-"===t&&0!==r?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(n,"")}function formatNumber(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=t?trimExtraChar(e,".",/\./g):e.split(".")[0];var r=t?/[^-0-9.]/g:/[^-0-9]/g;return(e=n?trimExtraChar(e,"-",/-/g):e.replace(/-/,"")).replace(r,"")}function addNumber(e,t){var n=Math.pow(10,10);return Math.round((e+t)*n)/n}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function assignKey(e,t,n){var r=t[n];isDef$1(r)&&(hasOwnProperty$1.call(e,n)&&isObject$3(r)?e[n]=deepAssign(Object(e[n]),r):e[n]=r)}function deepAssign(e,t){return Object.keys(t).forEach((function(n){assignKey(e,t,n)})),e}var stdin_default$i={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,t){return"".concat(e,"年").concat(t,"月")},rangePrompt:function(e){return"最多选择 ".concat(e," 天")}},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:function(e){return"".concat(e,"折")},condition:function(e){return"满".concat(e,"元可用")}},vanCouponCell:{title:"优惠券",count:function(e){return"".concat(e,"张可用")}},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}},lang=ref("zh-CN"),_messages=reactive({"zh-CN":stdin_default$i}),Locale={messages:function(){return _messages[lang.value]},use:function(e,t){lang.value=e,this.add(_defineProperty2({},e,t))},add:function(){deepAssign(_messages,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},stdin_default$h=Locale;function createTranslate(e){var t=camelize$1(e)+".";return function(e){for(var n=stdin_default$h.messages(),r=get(n,t+e)||get(n,e),i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return isFunction$4(r)?r.apply(void 0,a):r}}function genBem(e,t){return t?"string"==typeof t?" ".concat(e,"--").concat(t):Array.isArray(t)?t.reduce((function(t,n){return t+genBem(e,n)}),""):Object.keys(t).reduce((function(n,r){return n+(t[r]?genBem(e,r):"")}),""):""}function createBEM(e){return function(t,n){return t&&"string"!=typeof t&&(n=t,t=""),t=t?"".concat(e,"__").concat(t):e,"".concat(t).concat(genBem(t,n))}}function createNamespace$1(e){var t="van-".concat(e);return[t,createBEM(t),createTranslate(t)]}var BORDER="van-hairline",BORDER_TOP=exports("bM","".concat(BORDER,"--top")),BORDER_LEFT=exports("bL","".concat(BORDER,"--left")),BORDER_BOTTOM=exports("cs","".concat(BORDER,"--bottom")),BORDER_SURROUND="".concat(BORDER,"--surround"),BORDER_TOP_BOTTOM=exports("ca","".concat(BORDER,"--top-bottom")),BORDER_UNSET_TOP_BOTTOM=exports("B","".concat(BORDER,"-unset--top-bottom")),HAPTICS_FEEDBACK=exports("H","van-haptics-feedback"),FORM_KEY=exports("ck",Symbol("van-form"));function callInterceptor(e,t){var n=t.args,r=void 0===n?[]:n,i=t.done,a=t.canceled;if(e){var o=e.apply(null,r);isPromise(o)?o.then((function(e){e?i():a&&a()})).catch(noop$1):o?i():a&&a()}else i()}function withInstall(e){return e.install=function(t){var n=e.name;n&&(t.component(n,e),t.component(camelize$1("-".concat(n)),e))},e}var POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){var t=inject(POPUP_TOGGLE_KEY,null);t&&watch(t,(function(t){t&&e()}))}var useHeight=function(e,t){var n=ref(),r=function(){n.value=useRect(e).height};return onMounted((function(){if(nextTick(r),t)for(var e=1;e<=3;e++)setTimeout(r,100*e)})),onPopupReopen((function(){return nextTick(r)})),watch([windowWidth,windowHeight],r),n};function usePlaceholder(e,t){var n=useHeight(e,!0);return function(e){return createVNode("div",{class:t("placeholder"),style:{height:n.value?"".concat(n.value,"px"):void 0}},[e()])}}function useExpose(e){var t=getCurrentInstance();t&&extend$2(t.proxy,e)}var routeProps=exports("bD",{to:[String,Object],url:String,replace:Boolean});function route(e){var t=e.to,n=e.url,r=e.replace,i=e.$router;t&&i?i[r?"replace":"push"](t):n&&(r?location.replace(n):location.href=n)}function useRoute(){var e=getCurrentInstance().proxy;return function(){return route(e)}}var _createNamespace$=createNamespace$1("badge"),_createNamespace$2=_slicedToArray(_createNamespace$,2),name$e=_createNamespace$2[0],bem$e=_createNamespace$2[1],badgeProps={dot:Boolean,max:numericProp,tag:makeStringProp("div"),color:String,offset:Array,content:numericProp,showZero:truthProp,position:makeStringProp("top-right")},stdin_default$g=defineComponent({name:name$e,props:badgeProps,setup:function(e,t){var n=t.slots,r=function(){if(n.content)return!0;var t=e.content,r=e.showZero;return isDef$1(t)&&""!==t&&(r||0!==t&&"0"!==t)},i=function(){var t=e.dot,i=e.max,a=e.content;if(!t&&r())return n.content?n.content():isDef$1(i)&&isNumeric(a)&&+a>+i?"".concat(i,"+"):a},a=function(e){return e.startsWith("-")?e.replace("-",""):"-".concat(e)},o=computed((function(){var t={background:e.color};if(e.offset){var r=_slicedToArray(e.offset,2),i=r[0],o=r[1],s=_slicedToArray(e.position.split("-"),2),l=s[0],u=s[1];n.default?(t[l]="number"==typeof o?addUnit("top"===l?o:-o):"top"===l?addUnit(o):a(o),t[u]="number"==typeof i?addUnit("left"===u?i:-i):"left"===u?addUnit(i):a(i)):(t.marginTop=addUnit(o),t.marginLeft=addUnit(i))}return t})),s=function(){if(r()||e.dot)return createVNode("div",{class:bem$e([e.position,{dot:e.dot,fixed:!!n.default}]),style:o.value},[i()])};return function(){if(n.default){var t=e.tag;return createVNode(t,{class:bem$e("wrapper")},{default:function(){return[n.default(),s()]}})}return s()}}}),Badge=exports("aX",withInstall(stdin_default$g)),globalZIndex=2e3,useGlobalZIndex=function(){return++globalZIndex},setGlobalZIndex=function(e){globalZIndex=e},_createNamespace$3=createNamespace$1("config-provider"),_createNamespace$4=_slicedToArray(_createNamespace$3,2),name$d=_createNamespace$4[0],bem$d=_createNamespace$4[1],CONFIG_PROVIDER_KEY=Symbol(name$d),configProviderProps={tag:makeStringProp("div"),theme:makeStringProp("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,iconPrefix:String};function mapThemeVarsToCSSVars(e){var t={};return Object.keys(e).forEach((function(n){t["--van-".concat(kebabCase(n))]=e[n]})),t}defineComponent({name:name$d,props:configProviderProps,setup:function(e,t){var n=t.slots,r=computed((function(){return mapThemeVarsToCSSVars(extend$2({},e.themeVars,"dark"===e.theme?e.themeVarsDark:e.themeVarsLight))}));if(inBrowser$2){var i=function(){document.documentElement.classList.add("van-theme-".concat(e.theme))},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.theme;document.documentElement.classList.remove("van-theme-".concat(t))};watch((function(){return e.theme}),(function(e,t){t&&a(t),i()}),{immediate:!0}),onActivated(i),onDeactivated(a),onBeforeUnmount(a)}return provide(CONFIG_PROVIDER_KEY,e),watchEffect((function(){void 0!==e.zIndex&&setGlobalZIndex(e.zIndex)})),function(){return createVNode(e.tag,{class:bem$d(),style:r.value},{default:function(){var e;return[null==(e=n.default)?void 0:e.call(n)]}})}}});var _createNamespace$5=createNamespace$1("icon"),_createNamespace$6=_slicedToArray(_createNamespace$5,2),name$c=_createNamespace$6[0],bem$c=_createNamespace$6[1],isImage=function(e){return null==e?void 0:e.includes("/")},iconProps={dot:Boolean,tag:makeStringProp("i"),name:String,size:numericProp,badge:numericProp,color:String,badgeProps:Object,classPrefix:String},stdin_default$f=defineComponent({name:name$c,props:iconProps,setup:function(e,t){var n=t.slots,r=inject(CONFIG_PROVIDER_KEY,null),i=computed((function(){return e.classPrefix||(null==r?void 0:r.iconPrefix)||bem$c()}));return function(){var t=e.tag,r=e.dot,a=e.name,o=e.size,s=e.badge,l=e.color,u=isImage(a);return createVNode(Badge,mergeProps({dot:r,tag:t,class:[i.value,u?"":"".concat(i.value,"-").concat(a)],style:{color:l,fontSize:addUnit(o)},content:s},e.badgeProps),{default:function(){var e;return[null==(e=n.default)?void 0:e.call(n),u&&createVNode("img",{class:bem$c("image"),src:a},null)]}})}}}),Icon$1=exports("aq",withInstall(stdin_default$f)),_createNamespace$7=createNamespace$1("loading"),_createNamespace$8=_slicedToArray(_createNamespace$7,2),name$b=_createNamespace$8[0],bem$b=_createNamespace$8[1],SpinIcon=Array(12).fill(null).map((function(e,t){return createVNode("i",{class:bem$b("line",String(t+1))},null)})),CircularIcon=createVNode("svg",{class:bem$b("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),loadingProps={size:numericProp,type:makeStringProp("circular"),color:String,vertical:Boolean,textSize:numericProp,textColor:String},stdin_default$e=defineComponent({name:name$b,props:loadingProps,setup:function(e,t){var n=t.slots,r=computed((function(){return extend$2({color:e.color},getSizeStyle(e.size))})),i=function(){var t;if(n.default)return createVNode("span",{class:bem$b("text"),style:{fontSize:addUnit(e.textSize),color:null!=(t=e.textColor)?t:e.color}},[n.default()])};return function(){var t,a=e.type,o=e.vertical;return createVNode("div",{class:bem$b([a,{vertical:o}]),"aria-live":"polite","aria-busy":!0},[(t="spinner"===e.type?SpinIcon:CircularIcon,createVNode("span",{class:bem$b("spinner",e.type),style:r.value},[n.icon?n.icon():t])),i()])}}}),Loading$1=exports("L",withInstall(stdin_default$e)),_createNamespace$9=createNamespace$1("button"),_createNamespace$10=_slicedToArray(_createNamespace$9,2),name$a=_createNamespace$10[0],bem$a=_createNamespace$10[1],buttonProps=extend$2({},routeProps,{tag:makeStringProp("button"),text:String,icon:String,type:makeStringProp("default"),size:makeStringProp("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:makeStringProp("button"),loadingSize:numericProp,loadingText:String,loadingType:String,iconPosition:makeStringProp("left")}),stdin_default$d=defineComponent({name:name$a,props:buttonProps,emits:["click"],setup:function(e,t){var n=t.emit,r=t.slots,i=useRoute(),a=function(){return e.loading?r.loading?r.loading():createVNode(Loading$1,{size:e.loadingSize,type:e.loadingType,class:bem$a("loading")},null):r.icon?createVNode("div",{class:bem$a("icon")},[r.icon()]):e.icon?createVNode(Icon$1,{name:e.icon,class:bem$a("icon"),classPrefix:e.iconPrefix},null):void 0},o=function(){var t;if(t=e.loading?e.loadingText:r.default?r.default():e.text)return createVNode("span",{class:bem$a("text")},[t])},s=function(){var t=e.color,n=e.plain;if(t){var r={color:n?t:"white"};return n||(r.background=t),t.includes("gradient")?r.border=0:r.borderColor=t,r}},l=function(t){e.loading?preventDefault(t):e.disabled||(n("click",t),i())};return function(){var t=e.tag,n=e.type,r=e.size,i=e.block,u=e.round,c=e.plain,h=e.square,d=e.loading,f=e.disabled,p=e.hairline,v=e.nativeType,m=e.iconPosition,g=[bem$a([n,r,{plain:c,block:i,round:u,square:h,loading:d,disabled:f,hairline:p}]),_defineProperty2({},BORDER_SURROUND,p)];return createVNode(t,{type:v,class:g,style:s(),disabled:f,onClick:l},{default:function(){return[createVNode("div",{class:bem$a("content")},["left"===m&&a(),o(),"right"===m&&a()])]}})}}}),Button=exports("aI",withInstall(stdin_default$d)),popupSharedProps=exports("bF",{show:Boolean,zIndex:numericProp,overlay:truthProp,duration:numericProp,teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,beforeClose:Function,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp}),popupSharedPropKeys=exports("bH",Object.keys(popupSharedProps));function getDirection(e,t){return e>t?"horizontal":t>e?"vertical":""}function useTouch(){var e=ref(0),t=ref(0),n=ref(0),r=ref(0),i=ref(0),a=ref(0),o=ref(""),s=function(){n.value=0,r.value=0,i.value=0,a.value=0,o.value=""};return{move:function(s){var l=s.touches[0];n.value=(l.clientX<0?0:l.clientX)-e.value,r.value=l.clientY-t.value,i.value=Math.abs(n.value),a.value=Math.abs(r.value);(!o.value||i.value<10&&a.value<10)&&(o.value=getDirection(i.value,a.value))},start:function(n){s(),e.value=n.touches[0].clientX,t.value=n.touches[0].clientY},reset:s,startX:e,startY:t,deltaX:n,deltaY:r,offsetX:i,offsetY:a,direction:o,isVertical:function(){return"vertical"===o.value},isHorizontal:function(){return"horizontal"===o.value}}}var totalLockCount=0,BODY_LOCK_CLASS="van-overflow-hidden";function useLockScroll(e,t){var n=useTouch(),r=function(t){n.move(t);var r=n.deltaY.value>0?"10":"01",i=getScrollParent(t.target,e.value),a=i.scrollHeight,o=i.offsetHeight,s=i.scrollTop,l="11";0===s?l=o>=a?"00":"01":s+o>=a&&(l="10"),"11"===l||!n.isVertical()||parseInt(l,2)&parseInt(r,2)||preventDefault(t,!0)},i=function(){document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",r,{passive:!1}),totalLockCount||document.body.classList.add(BODY_LOCK_CLASS),totalLockCount++},a=function(){totalLockCount&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",r),--totalLockCount||document.body.classList.remove(BODY_LOCK_CLASS))},o=function(){return t()&&a()};onMountedOrActivated((function(){return t()&&i()})),onDeactivated(o),onBeforeUnmount(o),watch(t,(function(e){e?i():a()}))}function useLazyRender(e){var t=ref(!1);return watch(e,(function(e){e&&(t.value=e)}),{immediate:!0}),function(e){return function(){return t.value?e():null}}}var _createNamespace$11=createNamespace$1("overlay"),_createNamespace$12=_slicedToArray(_createNamespace$11,2),name$9=_createNamespace$12[0],bem$9=_createNamespace$12[1],overlayProps={show:Boolean,zIndex:numericProp,duration:numericProp,className:unknownProp,lockScroll:truthProp,lazyRender:truthProp,customStyle:Object},stdin_default$c=defineComponent({name:name$9,props:overlayProps,setup:function(e,t){var n=t.slots,r=ref(),i=useLazyRender((function(){return e.show||!e.lazyRender}))((function(){var t,i=extend$2(getZIndexStyle(e.zIndex),e.customStyle);return isDef$1(e.duration)&&(i.animationDuration="".concat(e.duration,"s")),withDirectives(createVNode("div",{ref:r,style:i,class:[bem$9(),e.className]},[null==(t=n.default)?void 0:t.call(n)]),[[vShow,e.show]])}));return useEventListener$1("touchmove",(function(t){e.lockScroll&&preventDefault(t,!0)}),{target:r}),function(){return createVNode(Transition,{name:"van-fade",appear:!0},{default:i})}}}),Overlay=withInstall(stdin_default$c),popupProps=extend$2({},popupSharedProps,{round:Boolean,position:makeStringProp("center"),closeIcon:makeStringProp("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:makeStringProp("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),_createNamespace$13=createNamespace$1("popup"),_createNamespace$14=_slicedToArray(_createNamespace$13,2),name$8=_createNamespace$14[0],bem$8=_createNamespace$14[1],stdin_default$b=defineComponent({name:name$8,inheritAttrs:!1,props:popupProps,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup:function(e,t){var n,r,i=t.emit,a=t.attrs,o=t.slots,s=ref(),l=ref(),u=useLazyRender((function(){return e.show||!e.lazyRender})),c=computed((function(){var t={zIndex:s.value};isDef$1(e.duration)&&(t["center"===e.position?"animationDuration":"transitionDuration"]="".concat(e.duration,"s"));return t})),h=function(){n||(n=!0,s.value=void 0!==e.zIndex?+e.zIndex:useGlobalZIndex(),i("open"))},d=function(){n&&callInterceptor(e.beforeClose,{done:function(){n=!1,i("close"),i("update:show",!1)}})},f=function(t){i("clickOverlay",t),e.closeOnClickOverlay&&d()},p=function(){if(e.overlay)return createVNode(Overlay,{show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0,onClick:f},{default:o["overlay-content"]})},v=function(e){i("clickCloseIcon",e),d()},m=function(){if(e.closeable)return createVNode(Icon$1,{role:"button",tabindex:0,name:e.closeIcon,class:[bem$8("close-icon",e.closeIconPosition),HAPTICS_FEEDBACK],classPrefix:e.iconPrefix,onClick:v},null)},g=function(){return i("opened")},y=function(){return i("closed")},b=function(e){return i("keydown",e)},A=u((function(){var t,n=e.round,r=e.position,i=e.safeAreaInsetTop,s=e.safeAreaInsetBottom;return withDirectives(createVNode("div",mergeProps({ref:l,style:c.value,role:"dialog",tabindex:0,class:[bem$8(_defineProperty2({round:n},r,r)),{"van-safe-area-top":i,"van-safe-area-bottom":s}],onKeydown:b},a),[null==(t=o.default)?void 0:t.call(o),m()]),[[vShow,e.show]])})),S=function(){var t=e.position,n=e.transition,r=e.transitionAppear,i="center"===t?"van-fade":"van-popup-slide-".concat(t);return createVNode(Transition,{name:n||i,appear:r,onAfterEnter:g,onAfterLeave:y},{default:A})};return watch((function(){return e.show}),(function(e){e&&!n&&(h(),0===a.tabindex&&nextTick((function(){var e;null==(e=l.value)||e.focus()}))),!e&&n&&(n=!1,i("close"))})),useExpose({popupRef:l}),useLockScroll(l,(function(){return e.show&&e.lockScroll})),useEventListener$1("popstate",(function(){e.closeOnPopstate&&(d(),r=!1)})),onMounted((function(){e.show&&h()})),onActivated((function(){r&&(i("update:show",!0),r=!1)})),onDeactivated((function(){e.show&&e.teleport&&(d(),r=!0)})),provide(POPUP_TOGGLE_KEY,(function(){return e.show})),function(){return e.teleport?createVNode(Teleport,{to:e.teleport},{default:function(){return[p(),S()]}}):createVNode(Fragment,null,[p(),S()])}}}),Popup=exports("a_",withInstall(stdin_default$b)),current=0;function useId(){var e=getCurrentInstance(),t=((null==e?void 0:e.type)||{}).name;return"".concat(void 0===t?"unknown":t,"-").concat(++current)}var lockCount=0;function lockClick(e){e?(lockCount||document.body.classList.add("van-toast--unclickable"),lockCount++):lockCount&&(--lockCount||document.body.classList.remove("van-toast--unclickable"))}var _createNamespace$15=createNamespace$1("toast"),_createNamespace$16=_slicedToArray(_createNamespace$15,2),name$7=_createNamespace$16[0],bem$7=_createNamespace$16[1],popupInheritProps=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay"],toastProps={icon:String,show:Boolean,type:makeStringProp("text"),overlay:Boolean,message:numericProp,iconSize:numericProp,duration:makeNumberProp(2e3),position:makeStringProp("middle"),teleport:[String,Object],wordBreak:String,className:unknownProp,iconPrefix:String,transition:makeStringProp("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean},stdin_default$a=defineComponent({name:name$7,props:toastProps,emits:["update:show"],setup:function(e,t){var n,r=t.emit,i=t.slots,a=!1,o=function(){var t=e.show&&e.forbidClick;a!==t&&lockClick(a=t)},s=function(e){return r("update:show",e)},l=function(){e.closeOnClick&&s(!1)},u=function(){return clearTimeout(n)},c=function(){var t=e.icon,n=e.type,r=e.iconSize,i=e.iconPrefix,a=e.loadingType;return t||"success"===n||"fail"===n?createVNode(Icon$1,{name:t||n,size:r,class:bem$7("icon"),classPrefix:i},null):"loading"===n?createVNode(Loading$1,{class:bem$7("loading"),size:r,type:a},null):void 0};return watch((function(){return[e.show,e.forbidClick]}),o),watch((function(){return[e.show,e.type,e.message,e.duration]}),(function(){u(),e.show&&e.duration>0&&(n=setTimeout((function(){s(!1)}),e.duration))})),onMounted(o),onUnmounted(o),function(){return createVNode(Popup,mergeProps({class:[bem$7([e.position,"normal"===e.wordBreak?"break-normal":e.wordBreak,_defineProperty2({},e.type,!e.icon)]),e.className],lockScroll:!1,onClick:l,onClosed:u,"onUpdate:show":s},pick$1(e,popupInheritProps)),{default:function(){return[c(),(t=e.type,n=e.message,i.message?createVNode("div",{class:bem$7("text")},[i.message()]):isDef$1(n)&&""!==n?"html"===t?createVNode("div",{key:0,class:bem$7("text"),innerHTML:String(n)},null):createVNode("div",{class:bem$7("text")},[n]):void 0)];var t,n}})}}});function usePopupState(){var e=reactive({show:!1}),t=function(t){e.show=t},n=function(n){extend$2(e,n,{transitionAppear:!0}),t(!0)},r=function(){return t(!1)};return useExpose({open:n,close:r,toggle:t}),{open:n,close:r,state:e,toggle:t}}function mountComponent(e){var t=createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount:function(){t.unmount(),document.body.removeChild(n)}}}var defaultOptions$1={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1},queue=[],allowMultiple=!1,currentOptions=extend$2({},defaultOptions$1),defaultOptionsMap=new Map;function parseOptions(e){return isObject$3(e)?e:{message:e}}function createInstance(){var e=mountComponent({setup:function(){var e=ref(""),t=usePopupState(),n=t.open,r=t.state,i=t.close,a=t.toggle,o=function(){};return watch(e,(function(e){r.message=e})),getCurrentInstance().render=function(){return createVNode(stdin_default$a,mergeProps(r,{onClosed:o,"onUpdate:show":a}),null)},{open:n,close:i,message:e}}}),t=e.instance;e.unmount;return t}function getInstance(){if(!queue.length||allowMultiple){var e=createInstance();queue.push(e)}return queue[queue.length-1]}function showToast(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!inBrowser$2)return{};var t=getInstance(),n=parseOptions(e);return t.open(extend$2({},currentOptions,defaultOptionsMap.get(n.type||currentOptions.type),n)),t}var createMethod=function(e){return function(t){return showToast(extend$2({type:e},parseOptions(t)))}},showLoadingToast=exports("bo",createMethod("loading")),closeToast=exports("bq",(function(e){queue.length&&(e?(queue.forEach((function(e){e.close()})),queue=[]):queue[0].close())}));withInstall(stdin_default$a);var _createNamespace$17=createNamespace$1("empty"),_createNamespace$18=_slicedToArray(_createNamespace$17,2),name$6=_createNamespace$18[0],bem$6=_createNamespace$18[1],emptyProps={image:makeStringProp("default"),imageSize:[Number,String,Array],description:String},stdin_default$9=defineComponent({name:name$6,props:emptyProps,setup:function(e,t){var n=t.slots,r=function(){var t=n.description?n.description():e.description;if(t)return createVNode("p",{class:bem$6("description")},[t])},i=function(){if(n.default)return createVNode("div",{class:bem$6("bottom")},[n.default()])},a=useId(),o=function(e){return"".concat(a,"-").concat(e)},s=function(e){return"url(#".concat(o(e),")")},l=function(e,t,n){return createVNode("stop",{"stop-color":e,offset:"".concat(t,"%"),"stop-opacity":n},null)},u=function(e,t){return[l(e,0),l(t,100)]},c=function(e){return[createVNode("defs",null,[createVNode("radialGradient",{id:o(e),cx:"50%",cy:"54%",fx:"50%",fy:"54%",r:"297%",gradientTransform:"matrix(-.16 0 0 -.33 .58 .72)"},[l("#EBEDF0",0),l("#F2F3F5",100,.3)])]),createVNode("ellipse",{fill:s(e),opacity:".8",cx:"80",cy:"140",rx:"46",ry:"8"},null)]},h=function(){return[createVNode("defs",null,[createVNode("linearGradient",{id:o("a"),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M36 131V53H16v20H2v58h34z",fill:s("a")},null),createVNode("path",{d:"M123 15h22v14h9v77h-31V15z",fill:s("a")},null)])]},d=function(){return[createVNode("defs",null,[createVNode("linearGradient",{id:o("b"),x1:"64%",y1:"97%",x2:"64%",y2:"0%"},[l("#F2F3F5",0,.3),l("#F2F3F5",100)])]),createVNode("g",{opacity:".8"},[createVNode("path",{d:"M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",fill:s("b")},null),createVNode("path",{d:"M19 23c2 0 3 1 4 3 2 0 4 2 4 4a4 4 0 0 1-4 3v1h-7v-1l-1 1c-2 0-3-2-3-4 0-1 1-3 3-3 0-2 2-4 4-4Z",fill:s("b")},null)])]},f=function(){return createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:o(1),x1:"64%",y1:"100%",x2:"64%"},[l("#FFF",0,.5),l("#F2F3F5",100)]),createVNode("linearGradient",{id:o(2),x1:"50%",x2:"50%",y2:"84%"},[l("#EBEDF0",0),l("#DCDEE0",100,0)]),createVNode("linearGradient",{id:o(3),x1:"100%",x2:"100%",y2:"100%"},[u("#EAEDF0","#DCDEE0")]),createVNode("radialGradient",{id:o(4),cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54 0 .5 -.5)"},[l("#EBEDF0",0),l("#FFF",100,0)])]),createVNode("g",{fill:"none"},[h(),createVNode("path",{fill:s(4),d:"M0 139h160v21H0z"},null),createVNode("path",{d:"M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",fill:s(2)},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[createVNode("path",{d:"M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",stroke:s(3)},null),createVNode("path",{d:"M53 36a34 34 0 0 0 0 48",stroke:s(3)},null),createVNode("path",{d:"M95 73a19 19 0 0 0 6-13c0-5-2-9-6-13",stroke:s(3)},null),createVNode("path",{d:"M106 84a34 34 0 0 0 0-48",stroke:s(3)},null)]),createVNode("g",{transform:"translate(31 105)"},[createVNode("rect",{fill:"#EBEDF0",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.1"},null),createVNode("rect",{fill:"#EBEDF0",x:"15",y:"12",width:"18",height:"6",rx:"1.1"},null)])])])},p=function(){return createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:o(5)},[u("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"95%",y1:"48%",x2:"5.5%",y2:"51%",id:o(6)},[u("#EAEDF1","#DCDEE0")]),createVNode("linearGradient",{y1:"45%",x2:"100%",y2:"54%",id:o(7)},[u("#EAEDF1","#DCDEE0")])]),h(),d(),createVNode("g",{transform:"translate(36 50)",fill:"none"},[createVNode("g",{transform:"translate(8)"},[createVNode("rect",{fill:"#EBEDF0",opacity:".6",x:"38",y:"13",width:"36",height:"53",rx:"2"},null),createVNode("rect",{fill:s(5),width:"64",height:"66",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"6",y:"6",width:"52",height:"55",rx:"1"},null),createVNode("g",{transform:"translate(15 17)",fill:s(6)},[createVNode("rect",{width:"34",height:"6",rx:"1"},null),createVNode("path",{d:"M0 14h34v6H0z"},null),createVNode("rect",{y:"28",width:"34",height:"6",rx:"1"},null)])]),createVNode("rect",{fill:s(7),y:"61",width:"88",height:"28",rx:"1"},null),createVNode("rect",{fill:"#F7F8FA",x:"29",y:"72",width:"30",height:"6",rx:"1"},null)])])},v=function(){return createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:o(8)},[u("#EAEDF1","#DCDEE0")])]),h(),d(),c("c"),createVNode("path",{d:"m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",fill:s(8)},null)])},m=function(){return createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{x1:"50%",y1:"100%",x2:"50%",id:o(9)},[u("#EEE","#D8D8D8")]),createVNode("linearGradient",{x1:"100%",y1:"50%",y2:"50%",id:o(10)},[u("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:o(11)},[u("#F2F3F5","#DCDEE0")]),createVNode("linearGradient",{x1:"50%",x2:"50%",y2:"100%",id:o(12)},[u("#FFF","#F7F8FA")])]),h(),d(),c("d"),createVNode("g",{transform:"rotate(-45 113 -4)",fill:"none"},[createVNode("rect",{fill:s(9),x:"24",y:"52.8",width:"5.8",height:"19",rx:"1"},null),createVNode("rect",{fill:s(10),x:"22.1",y:"67.3",width:"9.9",height:"28",rx:"1"},null),createVNode("circle",{stroke:s(11),"stroke-width":"8",cx:"27",cy:"27",r:"27"},null),createVNode("circle",{fill:s(12),cx:"27",cy:"27",r:"16"},null),createVNode("path",{d:"M37 7c-8 0-15 5-16 12",stroke:s(11),"stroke-width":"3",opacity:".5","stroke-linecap":"round",transform:"rotate(45 29 13)"},null)])])},g=function(){var t;if(n.image)return n.image();var r={error:v,search:m,network:f,default:p};return(null==(t=r[e.image])?void 0:t.call(r))||createVNode("img",{src:e.image},null)};return function(){return createVNode("div",{class:bem$6()},[createVNode("div",{class:bem$6("image"),style:getSizeStyle(e.imageSize)},[g()]),r(),i()])}}}),Empty=withInstall(stdin_default$9),_createNamespace$19=createNamespace$1("nav-bar"),_createNamespace$20=_slicedToArray(_createNamespace$19,2),name$5=_createNamespace$20[0],bem$5=_createNamespace$20[1],navBarProps={title:String,fixed:Boolean,zIndex:numericProp,border:truthProp,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:truthProp},stdin_default$8=defineComponent({name:name$5,props:navBarProps,emits:["clickLeft","clickRight"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref(),a=usePlaceholder(i,bem$5),o=function(e){return n("clickLeft",e)},s=function(e){return n("clickRight",e)},l=function(){var t,n=e.title,a=e.fixed,l=e.border,u=getZIndexStyle(e.zIndex),c=e.leftArrow||e.leftText||r.left,h=e.rightText||r.right;return createVNode("div",{ref:i,style:u,class:[bem$5({fixed:a}),(t={},_defineProperty2(t,BORDER_BOTTOM,l),_defineProperty2(t,"van-safe-area-top",e.safeAreaInsetTop),t)]},[createVNode("div",{class:bem$5("content")},[c&&createVNode("div",{class:[bem$5("left"),e.clickable?HAPTICS_FEEDBACK:""],onClick:o},[r.left?r.left():[e.leftArrow&&createVNode(Icon$1,{class:bem$5("arrow"),name:"arrow-left"},null),e.leftText&&createVNode("span",{class:bem$5("text")},[e.leftText])]]),createVNode("div",{class:[bem$5("title"),"van-ellipsis"]},[r.title?r.title():n]),h&&createVNode("div",{class:[bem$5("right"),e.clickable?HAPTICS_FEEDBACK:""],onClick:s},[r.right?r.right():createVNode("span",{class:bem$5("text")},[e.rightText])])])])};return function(){return e.fixed&&e.placeholder?a(l):l()}}}),NavBar=withInstall(stdin_default$8),_createNamespace$21=createNamespace$1("notice-bar"),_createNamespace$22=_slicedToArray(_createNamespace$21,2),name$4=_createNamespace$22[0],bem$4=_createNamespace$22[1],noticeBarProps={text:String,mode:String,color:String,delay:makeNumericProp(1),speed:makeNumericProp(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}},stdin_default$7=defineComponent({name:name$4,props:noticeBarProps,emits:["close","replay"],setup:function(e,t){var n,r=t.emit,i=t.slots,a=0,o=0,s=ref(),l=ref(),u=reactive({show:!0,offset:0,duration:0}),c=function(t){"closeable"===e.mode&&(u.show=!1,r("close",t))},h=function(){if(i["right-icon"])return i["right-icon"]();var t="closeable"===e.mode?"cross":"link"===e.mode?"arrow":void 0;return t?createVNode(Icon$1,{name:t,class:bem$4("right-icon"),onClick:c},null):void 0},d=function(){u.offset=a,u.duration=0,raf((function(){doubleRaf((function(){u.offset=-o,u.duration=(o+a)/+e.speed,r("replay")}))}))},f=function(){var t=!1===e.scrollable&&!e.wrapable,n={transform:u.offset?"translateX(".concat(u.offset,"px)"):"",transitionDuration:"".concat(u.duration,"s")};return createVNode("div",{ref:s,role:"marquee",class:bem$4("wrap")},[createVNode("div",{ref:l,style:n,class:[bem$4("content"),{"van-ellipsis":t}],onTransitionend:d},[i.default?i.default():e.text])])},p=function(){var t=e.delay,r=e.speed,i=e.scrollable,c=isDef$1(t)?1e3*+t:0;a=0,o=0,u.offset=0,u.duration=0,clearTimeout(n),n=setTimeout((function(){if(s.value&&l.value&&!1!==i){var e=useRect(s).width,t=useRect(l).width;(i||t>e)&&doubleRaf((function(){a=e,o=t,u.offset=-o,u.duration=o/+r}))}}),c)};return onPopupReopen(p),onMountedOrActivated(p),useEventListener$1("pageshow",p),useExpose({reset:p}),watch((function(){return[e.text,e.scrollable]}),p),function(){var t=e.color,n=e.wrapable,r=e.background;return withDirectives(createVNode("div",{role:"alert",class:bem$4({wrapable:n}),style:{color:t,background:r}},[i["left-icon"]?i["left-icon"]():e.leftIcon?createVNode(Icon$1,{class:bem$4("left-icon"),name:e.leftIcon},null):void 0,f(),h()]),[[vShow,u.show]])}}}),NoticeBar=exports("az",withInstall(stdin_default$7)),_createNamespace$23=createNamespace$1("skeleton-title"),_createNamespace$24=_slicedToArray(_createNamespace$23,2),name$3=_createNamespace$24[0],bem$3=_createNamespace$24[1],skeletonTitleProps={round:Boolean,titleWidth:numericProp},stdin_default$6=defineComponent({name:name$3,props:skeletonTitleProps,setup:function(e){return function(){return createVNode("h3",{class:bem$3([{round:e.round}]),style:{width:addUnit(e.titleWidth)}},null)}}}),SkeletonTitle=withInstall(stdin_default$6),stdin_default$5=SkeletonTitle,_createNamespace$25=createNamespace$1("skeleton-avatar"),_createNamespace$26=_slicedToArray(_createNamespace$25,2),name$2=_createNamespace$26[0],bem$2=_createNamespace$26[1],skeletonAvatarProps={avatarSize:numericProp,avatarShape:makeStringProp("round")},stdin_default$4=defineComponent({name:name$2,props:skeletonAvatarProps,setup:function(e){return function(){return createVNode("div",{class:bem$2([e.avatarShape]),style:getSizeStyle(e.avatarSize)},null)}}}),SkeletonAvatar=withInstall(stdin_default$4),stdin_default$3=SkeletonAvatar,DEFAULT_ROW_WIDTH="100%",skeletonParagraphProps={round:Boolean,rowWidth:{type:numericProp,default:DEFAULT_ROW_WIDTH}},_createNamespace$27=createNamespace$1("skeleton-paragraph"),_createNamespace$28=_slicedToArray(_createNamespace$27,2),name$1=_createNamespace$28[0],bem$1=_createNamespace$28[1],stdin_default$2=defineComponent({name:name$1,props:skeletonParagraphProps,setup:function(e){return function(){return createVNode("div",{class:bem$1([{round:e.round}]),style:{width:e.rowWidth}},null)}}}),SkeletonParagraph=withInstall(stdin_default$2),stdin_default$1=SkeletonParagraph,_createNamespace$29=createNamespace$1("skeleton"),_createNamespace$30=_slicedToArray(_createNamespace$29,2),name=_createNamespace$30[0],bem=_createNamespace$30[1],DEFAULT_LAST_ROW_WIDTH="60%",skeletonProps={row:makeNumericProp(0),round:Boolean,title:Boolean,titleWidth:numericProp,avatar:Boolean,avatarSize:numericProp,avatarShape:makeStringProp("round"),loading:truthProp,animate:truthProp,rowWidth:{type:[Number,String,Array],default:DEFAULT_ROW_WIDTH}},stdin_default=defineComponent({name:name,inheritAttrs:!1,props:skeletonProps,setup:function(e,t){var n=t.slots,r=t.attrs,i=function(){if(e.avatar)return createVNode(stdin_default$3,{avatarShape:e.avatarShape,avatarSize:e.avatarSize},null)},a=function(){if(e.title)return createVNode(stdin_default$5,{round:e.round,titleWidth:e.titleWidth},null)},o=function(t){var n=e.rowWidth;return n===DEFAULT_ROW_WIDTH&&t===+e.row-1?DEFAULT_LAST_ROW_WIDTH:Array.isArray(n)?n[t]:n};return function(){var t;return e.loading?createVNode("div",mergeProps({class:bem({animate:e.animate,round:e.round})},r),[n.template?n.template():createVNode(Fragment,null,[i(),createVNode("div",{class:bem("content")},[a(),Array(+e.row).fill("").map((function(t,n){return createVNode(stdin_default$1,{key:n,round:e.round,rowWidth:addUnit(o(n))},null)}))])])]):null==(t=n.default)?void 0:t.call(n)}}}),Skeleton=exports("b5",withInstall(stdin_default)),storeData=exports("R",reactive({status:"init",user:{},platformType:"STUDENT",platformApi:"/api-student",proxy:"",isApp:!1})),setStoreData=exports("bm",(function(e){Object.assign(storeData,e)})),setUserInfo=exports("V",(function(e){storeData.status="login",storeData.user=e||{}})),commonjsGlobal=exports("bX","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function getAugmentedNamespace(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var assign$1=make_assign(),create$1=make_create(),trim$1=make_trim(),Global$5="undefined"!=typeof window?window:commonjsGlobal,util$i={assign:assign$1,create:create$1,trim:trim$1,bind:bind$3,slice:slice$3,each:each$8,map:map,pluck:pluck$1,isList:isList$1,isFunction:isFunction$3,isObject:isObject$2,Global:Global$5};function make_assign(){return Object.assign?Object.assign:function(e,t,n,r){for(var i=1;i<arguments.length;i++)each$8(Object(arguments[i]),(function(t,n){e[n]=t}));return e}}function make_create(){if(Object.create)return function(e,t,n,r){var i=slice$3(arguments,1);return assign$1.apply(this,[Object.create(e)].concat(i))};var e=function(){};return function(t,n,r,i){var a=slice$3(arguments,1);return e.prototype=t,assign$1.apply(this,[new e].concat(a))}}function make_trim(){return String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function bind$3(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function slice$3(e,t){return Array.prototype.slice.call(e,t||0)}function each$8(e,t){pluck$1(e,(function(e,n){return t(e,n),!1}))}function map(e,t){var n=isList$1(e)?[]:{};return pluck$1(e,(function(e,r){return n[r]=t(e,r),!1})),n}function pluck$1(e,t){if(isList$1(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var r in e)if(e.hasOwnProperty(r)&&t(e[r],r))return e[r]}function isList$1(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}function isFunction$3(e){return e&&"[object Function]"==={}.toString.call(e)}function isObject$2(e){return e&&"[object Object]"==={}.toString.call(e)}var util$h=util$i,slice$2=util$h.slice,pluck=util$h.pluck,each$7=util$h.each,bind$2=util$h.bind,create=util$h.create,isList=util$h.isList,isFunction$2=util$h.isFunction,isObject$1=util$h.isObject,storeEngine={createStore:_createStore},storeAPI={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(n,r){e.call(t,t._deserialize(n),(r||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return _createStore.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return _createStore(this.storage,this.plugins,e)}};function _warn(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}function _createStore(e,t,n){n||(n=""),e&&!isList(e)&&(e=[e]),t&&!isList(t)&&(t=[t]);var r=n?"__storejs_"+n+"_":"",i=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var a={_namespacePrefix:r,_namespaceRegexp:i,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(r){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=slice$2(arguments,0),r=this;var i=[function(){if(n)return each$7(arguments,(function(e,n){t[n]=e})),n.apply(r,t)}].concat(t);return e.apply(r,i)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(r){n=e}return void 0!==n?n:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(isList(e))each$7(e,(function(e){t._addPlugin(e)}));else if(!pluck(this.plugins,(function(t){return e===t}))){if(this.plugins.push(e),!isFunction$2(e))throw new Error("Plugins must be function values that return objects");var n=e.call(this);if(!isObject$1(n))throw new Error("Plugins must return an object of function properties");each$7(n,(function(n,r){if(!isFunction$2(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)}))}},addStorage:function(e){_warn("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},o=create(a,storeAPI,{plugins:[]});return o.raw={},each$7(o,(function(e,t){isFunction$2(e)&&(o.raw[t]=bind$2(o,e))})),each$7(e,(function(e){o._addStorage(e)})),each$7(t,(function(e){o._addPlugin(e)})),o}var util$g=util$i,Global$4=util$g.Global,localStorage_1={name:"localStorage",read:read$5,write:write$5,each:each$6,remove:remove$6,clearAll:clearAll$5};function localStorage$1(){return Global$4.localStorage}function read$5(e){return localStorage$1().getItem(e)}function write$5(e,t){return localStorage$1().setItem(e,t)}function each$6(e){for(var t=localStorage$1().length-1;t>=0;t--){var n=localStorage$1().key(t);e(read$5(n),n)}}function remove$6(e){return localStorage$1().removeItem(e)}function clearAll$5(){return localStorage$1().clear()}var util$f=util$i,Global$3=util$f.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$4,write:write$4,each:each$5,remove:remove$5,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$4(e){return globalStorage[e]}function write$4(e,t){globalStorage[e]=t}function each$5(e){for(var t=globalStorage.length-1;t>=0;t--){var n=globalStorage.key(t);e(globalStorage[n],n)}}function remove$5(e){return globalStorage.removeItem(e)}function clearAll$4(){each$5((function(e,t){delete globalStorage[e]}))}var util$e=util$i,Global$2=util$e.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$3,read:read$3,each:each$4,remove:remove$4,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable$1=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$3(e,t){if(!disable$1){var n=fixKey(e);_withStorageEl((function(e){e.setAttribute(n,t),e.save(storageName)}))}}function read$3(e){if(!disable$1){var t=fixKey(e),n=null;return _withStorageEl((function(e){n=e.getAttribute(t)})),n}}function each$4(e){_withStorageEl((function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];e(t.getAttribute(i.name),i.name)}}))}function remove$4(e){var t=fixKey(e);_withStorageEl((function(e){e.removeAttribute(t),e.save(storageName)}))}function clearAll$3(){_withStorageEl((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(storageName);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(storageName)}))}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function fixKey(e){return e.replace(/^\d/,"___$&").replace(forbiddenCharsRegex,"___")}function _makeIEStorageElFunction(){if(!doc$1||!doc$1.documentElement||!doc$1.documentElement.addBehavior)return null;var e,t,n,r="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,n=e.createElement("div")}catch(i){n=doc$1.createElement("div"),e=doc$1.body}return function(t){var r=[].slice.call(arguments,0);r.unshift(n),e.appendChild(n),n.addBehavior("#default#userData"),n.load(storageName),t.apply(this,r),e.removeChild(n)}}var util$d=util$i,Global$1=util$d.Global,trim=util$d.trim,cookieStorage={name:"cookieStorage",read:read$2,write:write$2,each:each$3,remove:remove$3,clearAll:clearAll$2},doc=Global$1.document;function read$2(e){if(!e||!_has(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(doc.cookie.replace(new RegExp(t),"$1"))}function each$3(e){for(var t=doc.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(trim(t[n])){var r=t[n].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function write$2(e,t){e&&(doc.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function remove$3(e){e&&_has(e)&&(doc.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function clearAll$2(){each$3((function(e,t){remove$3(t)}))}function _has(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(doc.cookie)}var util$c=util$i,Global=util$c.Global,sessionStorage_1={name:"sessionStorage",read:read$1,write:write$1,each:each$2,remove:remove$2,clearAll:clearAll$1};function sessionStorage$1(){return Global.sessionStorage}function read$1(e){return sessionStorage$1().getItem(e)}function write$1(e,t){return sessionStorage$1().setItem(e,t)}function each$2(e){for(var t=sessionStorage$1().length-1;t>=0;t--){var n=sessionStorage$1().key(t);e(read$1(n),n)}}function remove$2(e){return sessionStorage$1().removeItem(e)}function clearAll$1(){return sessionStorage$1().clear()}var memoryStorage_1={name:"memoryStorage",read:read,write:write,each:each$1,remove:remove$1,clearAll:clearAll},memoryStorage={};function read(e){return memoryStorage[e]}function write(e,t){memoryStorage[e]=t}function each$1(e){for(var t in memoryStorage)memoryStorage.hasOwnProperty(t)&&e(memoryStorage[t],t)}function remove$1(e){delete memoryStorage[e]}function clearAll(e){memoryStorage={}}var all=[localStorage_1,oldFFGlobalStorage,oldIEUserDataStorage,cookieStorage,sessionStorage_1,memoryStorage_1],json2$1={},hasRequiredJson2;function requireJson2(){return hasRequiredJson2||(hasRequiredJson2=1,"object"!==("undefined"==typeof JSON?"undefined":_typeof2(JSON))&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,(function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function str(e,t){var n,r,i,a,o,s=gap,l=t[e];switch(l&&"object"===_typeof2(l)&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),_typeof2(l)){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,o=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,n=0;n<a;n+=1)o[n]=str(n,l)||"null";return i=0===o.length?"[]":gap?"[\n"+gap+o.join(",\n"+gap)+"\n"+s+"]":"["+o.join(",")+"]",gap=s,i}if(rep&&"object"===_typeof2(rep))for(a=rep.length,n=0;n<a;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],l))&&o.push(quote(r)+(gap?": ":":")+i);else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(i=str(r,l))&&o.push(quote(r)+(gap?": ":":")+i);return i=0===o.length?"{}":gap?"{\n"+gap+o.join(",\n"+gap)+"\n"+s+"}":"{"+o.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!==_typeof2(t)||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,r,i=e[t];if(i&&"object"===_typeof2(i))for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(e,t,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=exports("aM",engine.createStore(storages,plugins)),browser=exports("av",(function(){var e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/)||/(iPhone|iPad|iPod|iOS)/i.test(e),android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("ORCHESTRAAPPI")>-1,isApp:e.includes("DAYAAPPA")||e.includes("DAYAAPPI")||e.includes("COLEXIUAPPA")||e.includes("COLEXIUAPPI")||e.includes("ORCHESTRAAPPI")||e.includes("ORCHESTRAAPPA"),isTeacher:e.indexOf("ORCHESTRATEACHER")>-1||e.includes("COLEXIUTEACHER"),isStudent:e.indexOf("ORCHESTRASTUDENT")>-1||e.includes("COLEXIUSTUDENT"),isSchool:e.indexOf("ORCHESTRASCHOOL")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,alipay:e.indexOf("AlipayClient")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}})),getRandomKey=exports("W",(function(){return""+Date.now()+Math.floor(1e6*Math.random())})),AuthorizationKey="AUTHORIZATION",setToken=exports("O",(function(e){sessionStorage.setItem(AuthorizationKey,e)})),getToken=function(){return sessionStorage.getItem(AuthorizationKey)||""},setGlobalData=exports("b1",(function(e,t){if(e&&t){var n=window.GYM||{};n[e]=t,window.GYM=n}})),BEHAVIORIDKEY="BEHAVIORID",setBehaviorId=exports("P",(function(e){localStorage.setItem(BEHAVIORIDKEY,e)})),getBehaviorId=exports("aR",(function(){return localStorage.getItem(BEHAVIORIDKEY)})),campIdKey="CAMPID",setCampId=exports("Q",(function(e){sessionStorage.setItem(campIdKey,e)})),getCampId=exports("aS",(function(){return sessionStorage.getItem(campIdKey)||""})),getSecondRPM=exports("a$",(function(e,t){if(isNaN(e))return"00:00";var n=Math.floor(e/60/60%24),r=Math.floor(e/60%60),i=Math.floor(e%60);return"cn"===t?"".concat(n>0?n.toString().padStart(2,"0")+"时":"").concat(r.toString().padStart(2,"0"),"分").concat(i.toString().padStart(2,"0"),"秒"):"".concat(n>0?n.toString().padStart(2,"0")+":":"").concat(r.toString().padStart(2,"0"),":").concat(i.toString().padStart(2,"0"))})),SPEEDKEY="speeds",setStorageSpeed=function(e,t){var n=store_legacy.get(SPEEDKEY)||{};n[e]=t,store_legacy.set(SPEEDKEY,n)},getStorageSpeed=exports("bf",(function(e){return(store_legacy.get(SPEEDKEY)||{})[e]||0})),originalPostMessage=window.postMessage;window.postMessage=function(e){originalPostMessage(e,"*")};var loop=function(){},calls={},browserInfo$3=browser();browserInfo$3.isApp&&window.addEventListener("message",(function(e){try{var t,n,r=e.data?"object"===_typeof2(e.data)?e.data:JSON.parse(e.data):{},i=(null===(t=r.content)||void 0===t?void 0:t.uuid)||r.uuid;try{r.content&&(r.content=JSON.parse(r.content))}catch(d){}if(console.log("h5_接受_api:",null==r?void 0:r.api),!i){var a,o=Object.keys(calls).filter((function(e){return 0===e.indexOf(r.api)})),s=_createForOfIteratorHelper(o);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=calls[l]||loop;"function"==typeof u&&u(r),Array.isArray(u)&&u.forEach((function(e){"function"==typeof e&&e(r)}))}}catch(f){s.e(f)}finally{s.f()}return}var c=(null===(n=r.content)||void 0===n?void 0:n.uuid)||r.uuid||r.api+r.uuid,h=calls[c]||loop;"function"==typeof h&&h(r)}catch(d){console.error("通信消息解析错误",d)}}));var instance=window.DAYA||(null===(_window$webkit=window.webkit)||void 0===_window$webkit||null===(_window$webkit$messag=_window$webkit.messageHandlers)||void 0===_window$webkit$messag?void 0:_window$webkit$messag.DAYA)||window.COLEXIU||(null===(_window$webkit2=window.webkit)||void 0===_window$webkit2||null===(_window$webkit2$messa=_window$webkit2.messageHandlers)||void 0===_window$webkit2$messa?void 0:_window$webkit2$messa.COLEXIU)||window.ORCHESTRA||(null===(_window$webkit3=window.webkit)||void 0===_window$webkit3||null===(_window$webkit3$messa=_window$webkit3.messageHandlers)||void 0===_window$webkit3$messa?void 0:_window$webkit3$messa.ORCHESTRA),postMessage=exports("aP",(function(e,t){if(browserInfo$3.isApp){var n=getRandomKey();calls[n]=t||loop,e.content=e.content?_objectSpread(_objectSpread({},e.content),{},{uuid:n}):{uuid:n},instance.postMessage(JSON.stringify(e)),console.log("h5_请求_api:",e.api)}})),listenerMessage=function(e,t){if(browserInfo$3.isApp){var n=e;calls[n]||(calls[n]=[]),calls[n].push(t||loop)}},removeListenerMessage=function(e,t){if(browserInfo$3.isApp){var n=e;if(Array.isArray(calls[n])){var r=calls[n].indexOf(t);calls[n].splice(r,1)}}},promisefiyPostMessage=exports("bR",(function(e){return new Promise((function(t){postMessage(e,(function(e){return t(e)}))}))})),getEarphone=function(){return storeData.isApp?promisefiyPostMessage({api:"isWiredHeadsetOn"}):Promise.resolve({})},isSpecialShapedScreen=exports("b9",(function(){return storeData.isApp?promisefiyPostMessage({api:"isSpecialShapedScreen"}):Promise.resolve({})})),startSoundCheck=function(){postMessage({api:"startSoundCheck"})},sendResult=function(e){listenerMessage("sendResult",e)},removeResult=function(e){removeListenerMessage("sendResult",e)},endSoundCheck=function(){postMessage({api:"endSoundCheck"})},startEvaluating=function(e){return storeData.isApp?promisefiyPostMessage({api:"startEvaluating",content:e}):Promise.resolve({})},endEvaluating=function(e){return storeData.isApp?promisefiyPostMessage({api:"endEvaluating",content:e}):Promise.resolve({})},cancelEvaluating=function(){postMessage({api:"cancelEvaluating"})},api_startRecording=function(){return storeData.isApp?promisefiyPostMessage({api:"startRecording"}):Promise.resolve({})},api_stopRecording=function(){return storeData.isApp?promisefiyPostMessage({api:"stopRecording"}):Promise.resolve({})},api_proxyServiceMessage=exports("aE",(function(e){return storeData.isApp?promisefiyPostMessage({api:"proxyServiceMessage",content:e}):Promise.resolve({})})),api_videoUpdate=exports("aD",(function(){return storeData.isApp?promisefiyPostMessage({api:"videoUpdate"}):Promise.resolve({})})),api_shareAchievements=exports("at",(function(e){return storeData.isApp?promisefiyPostMessage({api:"shareAchievements",content:e}):Promise.resolve({})})),api_openWebView=exports("bU",(function(e){return storeData.isApp?promisefiyPostMessage({api:"openWebView",content:e}):Promise.resolve({})})),api_openCamera=exports("aK",(function(){return storeData.isApp?promisefiyPostMessage({api:"openCamera"}):Promise.resolve({})})),api_closeCamera=exports("aL",(function(){return storeData.isApp?promisefiyPostMessage({api:"closeCamera"}):Promise.resolve({})})),api_setStatusBarVisibility=exports("b2",(function(){postMessage({api:"setStatusBarVisibility",content:{isVisibility:0}})})),api_cloudToggleFollow=function(e){return storeData.isApp?promisefiyPostMessage({api:"cloudToggleFollow",content:{state:e}}):Promise.resolve({})},api_cloudFollowTime=function(e){!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?listenerMessage("cloudFollowTime",e):removeListenerMessage("cloudFollowTime",e)},api_back=exports("aY",(function(){postMessage({api:"back"})})),api_cloudLoading=exports("bh",(function(){postMessage({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})})),api_cloudDestroy=exports("aO",(function(){postMessage({api:"cloudDestroy"})})),api_setEventTracking=exports("by",(function(){postMessage({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),api_savePicture=exports("bp",(function(e){return storeData.isApp?promisefiyPostMessage({api:"savePicture",content:e}):Promise.resolve({})})),api_setCache=exports("bS",(function(e){postMessage({api:"setCache",content:e})})),TheError=exports("T",defineComponent({name:"The-error",setup:function(e,t){return function(){return createVNode("div",null,[createVNode(NavBar,{leftArrow:!0,onClickLeft:function(){api_back()}},null),createVNode(Empty,{image:"error",description:"网络开小差,请稍后重试"},{default:function(){return[createVNode(Button,{type:"primary",size:"small",onClick:function(){return history.go(0)}},{default:function(){return[createTextVNode("重新加载")]}})]}})])}}})),token="%[a-f0-9]{2}",singleMatcher=new RegExp("("+token+")|([^%]+?)","gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(e,t){try{return[decodeURIComponent(e.join(""))]}catch(i){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],decodeComponents(n),decodeComponents(r))}function decode$4(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(singleMatcher)||[],n=1;n<t.length;n++)t=(e=decodeComponents(t,n).join("")).match(singleMatcher)||[];return e}}function customDecodeURIComponent(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=multiMatcher.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(s){var r=decode$4(n[0]);r!==n[0]&&(t[n[0]]=r)}n=multiMatcher.exec(e)}t["%C2"]="�";for(var i=0,a=Object.keys(t);i<a.length;i++){var o=a[i];e=e.replace(new RegExp(o,"g"),t[o])}return e}function decodeUriComponent(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+_typeof2(e)+"`");try{return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}function splitOnFirst(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];var n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function includeKeys(e,t){var n={};if(Array.isArray(t)){var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=Object.getOwnPropertyDescriptor(e,a);null!=o&&o.enumerable&&Object.defineProperty(n,a,o)}}catch(h){i.e(h)}finally{i.f()}}else{var s,l=_createForOfIteratorHelper(Reflect.ownKeys(e));try{for(l.s();!(s=l.n()).done;){var u=s.value,c=Object.getOwnPropertyDescriptor(e,u);if(c.enumerable)t(u,e[u],e)&&Object.defineProperty(n,u,c)}}catch(h){l.e(h)}finally{l.f()}}return n}var isNullOrUndefined=function(e){return null==e},strictUriEncode=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))},encodeFragmentIdentifier=Symbol("encodeFragmentIdentifier");function encoderForArrayFormat(e){switch(e.arrayFormat){case"index":return function(t){return function(n,r){var i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(_toConsumableArray2(n),null===r?[[encode$1(t,e),"[",i,"]"].join("")]:[[encode$1(t,e),"[",encode$1(i,e),"]=",encode$1(r,e)].join("")])}};case"bracket":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(_toConsumableArray2(n),null===r?[[encode$1(t,e),"[]"].join("")]:[[encode$1(t,e),"[]=",encode$1(r,e)].join("")])}};case"colon-list-separator":return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(_toConsumableArray2(n),null===r?[[encode$1(t,e),":list="].join("")]:[[encode$1(t,e),":list=",encode$1(r,e)].join("")])}};case"comma":case"separator":case"bracket-separator":var t="bracket-separator"===e.arrayFormat?"[]=":"=";return function(n){return function(r,i){return void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[encode$1(n,e),t,encode$1(i,e)].join("")]:[[r,encode$1(i,e)].join(e.arrayFormatSeparator)])}};default:return function(t){return function(n,r){return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:[].concat(_toConsumableArray2(n),null===r?[encode$1(t,e)]:[[encode$1(t,e),"=",encode$1(r,e)].join("")])}}}}function parserForArrayFormat(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[].concat(_toConsumableArray2(r[e]),[n]):r[e]=[n]:r[e]=n};case"colon-list-separator":return function(e,n,r){t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(_toConsumableArray2(r[e]),[n]):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&decode$3(n,e).includes(e.arrayFormatSeparator);n=a?decode$3(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return decode$3(t,e)})):null===n?n:decode$3(n,e);r[t]=o};case"bracket-separator":return function(t,n,r){var i=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),i){var a=null===n?[]:n.split(e.arrayFormatSeparator).map((function(t){return decode$3(t,e)}));void 0!==r[t]?r[t]=[].concat(_toConsumableArray2(r[t]),_toConsumableArray2(a)):r[t]=a}else r[t]=n?decode$3(n,e):n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(_toConsumableArray2([n[e]].flat()),[t]):n[e]=t}}}function validateArrayFormatSeparator(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function encode$1(e,t){return t.encode?t.strict?strictUriEncode(e):encodeURIComponent(e):e}function decode$3(e,t){return t.decode?decodeUriComponent(e):e}function keysSorter(e){return Array.isArray(e)?e.sort():"object"===_typeof2(e)?keysSorter(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function removeHash(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function getHash(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}function parseValue(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function extract(e){var t=(e=removeHash(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function parse$5(e,t){validateArrayFormatSeparator((t=_objectSpread({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=parserForArrayFormat(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;var i,a=_createForOfIteratorHelper(e.split("&"));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(""!==o){var s=t.decode?o.replace(/\+/g," "):o,l=_slicedToArray(splitOnFirst(s,"="),2),u=l[0],c=l[1];void 0===u&&(u=s),c=void 0===c?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?c:decode$3(c,t),n(decode$3(u,t),c,r)}}}catch(S){a.e(S)}finally{a.f()}for(var h=0,d=Object.entries(r);h<d.length;h++){var f=_slicedToArray(d[h],2),p=f[0],v=f[1];if("object"===_typeof2(v)&&null!==v)for(var m=0,g=Object.entries(v);m<g.length;m++){var y=_slicedToArray(g[m],2),b=y[0],A=y[1];v[b]=parseValue(A,t)}else r[p]=parseValue(v,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"===_typeof2(n)&&!Array.isArray(n)?e[t]=keysSorter(n):e[t]=n,e}),Object.create(null))}function stringify$2(e,t){if(!e)return"";validateArrayFormatSeparator((t=_objectSpread({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&isNullOrUndefined(e[n])||t.skipEmptyString&&""===e[n]},r=encoderForArrayFormat(t),i={},a=0,o=Object.entries(e);a<o.length;a++){var s=_slicedToArray(o[a],2),l=s[0],u=s[1];n(l)||(i[l]=u)}var c=Object.keys(i);return!1!==t.sort&&c.sort(t.sort),c.map((function(n){var i=e[n];return void 0===i?"":null===i?encode$1(n,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?encode$1(n,t)+"[]":i.reduce(r(n),[]).join("&"):encode$1(n,t)+"="+encode$1(i,t)})).filter((function(e){return e.length>0})).join("&")}function parseUrl(e,t){var n,r,i;t=_objectSpread({decode:!0},t);var a=_slicedToArray(splitOnFirst(e,"#"),2),o=a[0],s=a[1];return void 0===o&&(o=e),_objectSpread({url:null!==(n=null===(r=o)||void 0===r||null===(i=r.split("?"))||void 0===i?void 0:i[0])&&void 0!==n?n:"",query:parse$5(extract(e),t)},t&&t.parseFragmentIdentifier&&s?{fragmentIdentifier:decode$3(s,t)}:{})}function stringifyUrl(e,t){t=_objectSpread(_defineProperty2({encode:!0,strict:!0},encodeFragmentIdentifier,!0),t);var n=removeHash(e.url).split("?")[0]||"",r=stringify$2(_objectSpread(_objectSpread({},parse$5(extract(e.url),{sort:!1})),e.query),t);r&&(r="?".concat(r));var i=getHash(e.url);if(e.fragmentIdentifier){var a=new URL(n);a.hash=e.fragmentIdentifier,i=t[encodeFragmentIdentifier]?a.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(r).concat(i)}function pick(e,t,n){var r=parseUrl(e,n=_objectSpread(_defineProperty2({parseFragmentIdentifier:!0},encodeFragmentIdentifier,!1),n)),i=r.url,a=r.query,o=r.fragmentIdentifier;return stringifyUrl({url:i,query:includeKeys(a,t),fragmentIdentifier:o},n)}function exclude(e,t,n){return pick(e,Array.isArray(t)?function(e){return!t.includes(e)}:function(e,n){return!t(e,n)},n)}var queryString=Object.freeze(Object.defineProperty({__proto__:null,exclude:exclude,extract:extract,parse:parse$5,parseUrl:parseUrl,pick:pick,stringify:stringify$2,stringifyUrl:stringifyUrl},Symbol.toStringTag,{value:"Module"}));exports("as",queryString);var getQuery=exports("M",(function(){var e={};try{e=_objectSpread(_objectSpread({},queryString.parse(location.search)),queryString.parse(location.hash.split("?")[1]))}catch(t){}return _objectSpread({},e)})),shams=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===_typeof2(Symbol.iterator))return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},origSymbol="undefined"!=typeof Symbol&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return"function"==typeof origSymbol&&("function"==typeof Symbol&&("symbol"===_typeof2(origSymbol("foo"))&&("symbol"===_typeof2(Symbol("bar"))&&hasSymbolSham())))},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(e){var t=this;if("function"!=typeof t||toStr$1.call(t)!==funcType)throw new TypeError(ERROR_MESSAGE+t);for(var n,r=slice$1.call(arguments,1),i=Math.max(0,t.length-r.length),a=[],o=0;o<i;o++)a.push("$"+o);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var i=t.apply(this,r.concat(slice$1.call(arguments)));return Object(i)===i?i:this}return t.apply(e,r.concat(slice$1.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$1=functionBind,src$1=bind$1.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function(e){try{return $Function('"use strict"; return ('+e+").constructor;")()}catch(t){}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch(e){$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch(e){try{return $gOPD(arguments,"callee").get}catch(t){return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function(e){return e.__proto__},needsEval={},TypedArray="undefined"==typeof Uint8Array?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":"undefined"==typeof AggregateError?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":"undefined"==typeof Atomics?undefined$1:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined$1:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?undefined$1:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined$1:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined$1:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":"undefined"==typeof Int8Array?undefined$1:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined$1:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":"object"===("undefined"==typeof JSON?"undefined":_typeof2(JSON))?JSON:undefined$1,"%Map%":"undefined"==typeof Map?undefined$1:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&hasSymbols?getProto((new Map)[Symbol.iterator]()):undefined$1,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined$1:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined$1:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&hasSymbols?getProto((new Set)[Symbol.iterator]()):undefined$1,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined$1:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined$1:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined$1:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined$1:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined$1:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined$1:WeakSet};try{null.error}catch(e){var errorProto=getProto(getProto(e));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function e(t){var n;if("%AsyncFunction%"===t)n=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===t)n=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=getProto(i.prototype))}return INTRINSICS[t]=n,n},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=functionBind,hasOwn$1=src$1,$concat$1=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace$1=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(e){var t=$strSlice(e,0,1),n=$strSlice(e,-1);if("%"===t&&"%"!==n)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var r=[];return $replace$1(e,rePropName,(function(e,t,n,i){r[r.length]=n?$replace$1(i,reEscapeChar,"$1"):t||e})),r},getBaseIntrinsic=function(e,t){var n,r=e;if(hasOwn$1(LEGACY_ALIASES,r)&&(r="%"+(n=LEGACY_ALIASES[r])[0]+"%"),hasOwn$1(INTRINSICS,r)){var i=INTRINSICS[r];if(i===needsEval&&(i=doEval(r)),void 0===i&&!t)throw new $TypeError$1("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new $SyntaxError("intrinsic "+e+" does not exist!")},getIntrinsic=function(e,t){if("string"!=typeof e||0===e.length)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new $TypeError$1('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,e))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=stringToPath(e),r=n.length>0?n[0]:"",i=getBaseIntrinsic("%"+r+"%",t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],$spliceApply(n,$concat$1([0,1],l)));for(var u=1,c=!0;u<n.length;u+=1){var h=n[u],d=$strSlice(h,0,1),f=$strSlice(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===f||"'"===f||"`"===f)&&d!==f)throw new $SyntaxError("property names with quotes must have matching quotes");if("constructor"!==h&&c||(s=!0),hasOwn$1(INTRINSICS,a="%"+(r+="."+h)+"%"))o=INTRINSICS[a];else if(null!=o){if(!(h in o)){if(!t)throw new $TypeError$1("base intrinsic for "+e+" exists, but the property is not available.");return}if($gOPD&&u+1>=n.length){var p=$gOPD(o,h);o=(c=!!p)&&"get"in p&&!("originalValue"in p.get)?p.get:o[h]}else c=hasOwn$1(o,h),o=o[h];c&&!s&&(INTRINSICS[a]=o)}}return o},callBindExports={},callBind$1={get exports(){return callBindExports},set exports(e){callBindExports=e}};!function(t){var n=functionBind,r=getIntrinsic,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||n.call(a,i),s=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),u=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}t.exports=function(e){var t=o(n,a,arguments);s&&l&&(s(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var c=function(){return o(n,i,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c}(callBind$1);var GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(e,t){var n=GetIntrinsic$1(e,!!t);return"function"==typeof n&&$indexOf(e,".prototype.")>-1?callBind(n):n},__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1),hasMap="function"==typeof Map&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&"function"==typeof mapSizeDescriptor.get?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet="function"==typeof Set&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&"function"==typeof setSizeDescriptor.get?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap="function"==typeof WeakMap&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet="function"==typeof WeakSet&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef="function"==typeof WeakRef&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString$1=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf="function"==typeof BigInt?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?Symbol.prototype.toString:null,hasShammedSymbols="function"==typeof Symbol&&"object"===_typeof2(Symbol.iterator),toStringTag="function"==typeof Symbol&&Symbol.toStringTag&&(_typeof2(Symbol.toStringTag)===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||$test.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-$floor(-e):$floor(e);if(r!==e){var i=String(r),a=$slice.call(t,i.length+1);return $replace.call(i,n,"$&_")+"."+$replace.call($replace.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(t,n,"$&_")}var utilInspect=require$$0$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function e(t,n,r,i){var a=n||{};if(has$3(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=!has$3(a,"customInspect")||a.customInspect;if("boolean"!=typeof o&&"symbol"!==o)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return inspectString(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?addNumericSeparator(t,l):l}if("bigint"==typeof t){var u=String(t)+"n";return s?addNumericSeparator(t,u):u}var c=void 0===a.depth?5:a.depth;if(void 0===r&&(r=0),r>=c&&c>0&&"object"===_typeof2(t))return isArray$6(t)?"[Array]":"[Object]";var h=getIndent(a,r);if(void 0===i)i=[];else if(indexOf$2(i,t)>=0)return"[Circular]";function d(t,n,o){if(n&&(i=$arrSlice.call(i)).push(n),o){var s={depth:a.depth};return has$3(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,r+1,i)}return e(t,a,r+1,i)}if("function"==typeof t&&!isRegExp$1(t)){var f=nameOf(t),p=arrObjKeys(t,d);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(p.length>0?" { "+$join.call(p,", ")+" }":"")}if(isSymbol(t)){var v=hasShammedSymbols?$replace.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(t);return"object"!==_typeof2(t)||hasShammedSymbols?v:markBoxed(v)}if(isElement(t)){for(var m="<"+$toLowerCase.call(String(t.nodeName)),g=t.attributes||[],y=0;y<g.length;y++)m+=" "+g[y].name+"="+wrapQuotes(quote(g[y].value),"double",a);return m+=">",t.childNodes&&t.childNodes.length&&(m+="..."),m+="</"+$toLowerCase.call(String(t.nodeName))+">"}if(isArray$6(t)){if(0===t.length)return"[]";var b=arrObjKeys(t,d);return h&&!singleLineValues(b)?"["+indentedJoin(b,h)+"]":"[ "+$join.call(b,", ")+" ]"}if(isError(t)){var A=arrObjKeys(t,d);return"cause"in Error.prototype||!("cause"in t)||isEnumerable.call(t,"cause")?0===A.length?"["+String(t)+"]":"{ ["+String(t)+"] "+$join.call(A,", ")+" }":"{ ["+String(t)+"] "+$join.call($concat.call("[cause]: "+d(t.cause),A),", ")+" }"}if("object"===_typeof2(t)&&o){if(inspectSymbol&&"function"==typeof t[inspectSymbol]&&utilInspect)return utilInspect(t,{depth:c-r});if("symbol"!==o&&"function"==typeof t.inspect)return t.inspect()}if(isMap(t)){var S=[];return mapForEach&&mapForEach.call(t,(function(e,n){S.push(d(n,t,!0)+" => "+d(e,t))})),collectionOf("Map",mapSize.call(t),S,h)}if(isSet(t)){var x=[];return setForEach&&setForEach.call(t,(function(e){x.push(d(e,t))})),collectionOf("Set",setSize.call(t),x,h)}if(isWeakMap(t))return weakCollectionOf("WeakMap");if(isWeakSet(t))return weakCollectionOf("WeakSet");if(isWeakRef(t))return weakCollectionOf("WeakRef");if(isNumber$1(t))return markBoxed(d(Number(t)));if(isBigInt(t))return markBoxed(d(bigIntValueOf.call(t)));if(isBoolean$1(t))return markBoxed(booleanValueOf.call(t));if(isString$1(t))return markBoxed(d(String(t)));if(!isDate$1(t)&&!isRegExp$1(t)){var w=arrObjKeys(t,d),_=gPO?gPO(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",k=!_&&toStringTag&&Object(t)===t&&toStringTag in t?$slice.call(toStr(t),8,-1):E?"Object":"",C=(_||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(k||E?"["+$join.call($concat.call([],k||[],E||[]),": ")+"] ":"");return 0===w.length?C+"{}":h?C+"{"+indentedJoin(w,h)+"}":C+"{ "+$join.call(w,", ")+" }"}return String(t)};function wrapQuotes(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function quote(e){return $replace.call(String(e),/"/g,"&quot;")}function isArray$6(e){return!("[object Array]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isDate$1(e){return!("[object Date]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isRegExp$1(e){return!("[object RegExp]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isError(e){return!("[object Error]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isString$1(e){return!("[object String]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isNumber$1(e){return!("[object Number]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isBoolean$1(e){return!("[object Boolean]"!==toStr(e)||toStringTag&&"object"===_typeof2(e)&&toStringTag in e)}function isSymbol(t){if(hasShammedSymbols)return t&&"object"===_typeof2(t)&&t instanceof Symbol;if("symbol"===_typeof2(t))return!0;if(!t||"object"!==_typeof2(t)||!symToString)return!1;try{return symToString.call(t),!0}catch(e){}return!1}function isBigInt(t){if(!t||"object"!==_typeof2(t)||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch(e){}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(e){return e in this};function has$3(e,t){return hasOwn.call(e,t)}function toStr(e){return objectToString$1.call(e)}function nameOf(e){if(e.name)return e.name;var t=$match.call(functionToString.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function indexOf$2(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function isMap(t){if(!mapSize||!t||"object"!==_typeof2(t))return!1;try{mapSize.call(t);try{setSize.call(t)}catch(n){return!0}return t instanceof Map}catch(e){}return!1}function isWeakMap(t){if(!weakMapHas||!t||"object"!==_typeof2(t))return!1;try{weakMapHas.call(t,weakMapHas);try{weakSetHas.call(t,weakSetHas)}catch(n){return!0}return t instanceof WeakMap}catch(e){}return!1}function isWeakRef(t){if(!weakRefDeref||!t||"object"!==_typeof2(t))return!1;try{return weakRefDeref.call(t),!0}catch(e){}return!1}function isSet(t){if(!setSize||!t||"object"!==_typeof2(t))return!1;try{setSize.call(t);try{mapSize.call(t)}catch(n){return!0}return t instanceof Set}catch(e){}return!1}function isWeakSet(t){if(!weakSetHas||!t||"object"!==_typeof2(t))return!1;try{weakSetHas.call(t,weakSetHas);try{weakMapHas.call(t,weakMapHas)}catch(n){return!0}return t instanceof WeakSet}catch(e){}return!1}function isElement(e){return!(!e||"object"!==_typeof2(e))&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function inspectString(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return inspectString($slice.call(e,0,t.maxStringLength),t)+r}return wrapQuotes($replace.call($replace.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+$toUpperCase.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,r){return e+" ("+t+") {"+(r?indentedJoin(n,r):$join.call(n,", "))+"}"}function singleLineValues(e){for(var t=0;t<e.length;t++)if(indexOf$2(e[t],"\n")>=0)return!1;return!0}function getIndent(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=$join.call(Array(e.indent+1)," ")}return{base:n,prev:$join.call(Array(t+1),n)}}function indentedJoin(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+$join.call(e,","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n=isArray$6(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=has$3(e,i)?t(e[i],e):""}var a,o="function"==typeof gOPS?gOPS(e):[];if(hasShammedSymbols){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)has$3(e,l)&&(n&&String(Number(l))===l&&l<e.length||hasShammedSymbols&&a["$"+l]instanceof Symbol||($test.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof gOPS)for(var u=0;u<o.length;u++)isEnumerable.call(e,o[u])&&r.push("["+t(o[u])+"]: "+t(e[o[u]],e));return r}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},listGet=function(e,t){var n=listGetNode(e,t);return n&&n.value},listSet=function(e,t,n){var r=listGetNode(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},listHas=function(e,t){return!!listGetNode(e,t)},sideChannel=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},get:function(r){if($WeakMap&&r&&("object"===_typeof2(r)||"function"==typeof r)){if(e)return $weakMapGet(e,r)}else if($Map){if(t)return $mapGet(t,r)}else if(n)return listGet(n,r)},has:function(r){if($WeakMap&&r&&("object"===_typeof2(r)||"function"==typeof r)){if(e)return $weakMapHas(e,r)}else if($Map){if(t)return $mapHas(t,r)}else if(n)return listHas(n,r);return!1},set:function(r,i){$WeakMap&&r&&("object"===_typeof2(r)||"function"==typeof r)?(e||(e=new $WeakMap),$weakMapSet(e,r,i)):$Map?(t||(t=new $Map),$mapSet(t,r,i)):(n||(n={key:{},next:null}),listSet(n,r,i))}};return r},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(e){return replace.call(e,percentTwenties,"+")},RFC3986:function(e){return String(e)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$5=Array.isArray,hexTable=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(isArray$5(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},arrayToObject=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},merge=function e(t,n,r){if(!n)return t;if("object"!==_typeof2(n)){if(isArray$5(t))t.push(n);else{if(!t||"object"!==_typeof2(t))return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!has$2.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==_typeof2(t))return[t].concat(n);var i=t;return isArray$5(t)&&!isArray$5(n)&&(i=arrayToObject(t,r)),isArray$5(t)&&isArray$5(n)?(n.forEach((function(n,i){if(has$2.call(t,i)){var a=t[i];a&&"object"===_typeof2(a)&&n&&"object"===_typeof2(n)?t[i]=e(a,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return has$2.call(t,i)?t[i]=e(t[i],a,r):t[i]=a,t}),i)},assign=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},decode$2=function(t,n,r){var i=t.replace(/\+/g," ");if("iso-8859-1"===r)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode=function(e,t,n,r,i){if(0===e.length)return e;var a=e;if("symbol"===_typeof2(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",s=0;s<a.length;++s){var l=a.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===formats$2.RFC1738&&(40===l||41===l)?o+=a.charAt(s):l<128?o+=hexTable[l]:l<2048?o+=hexTable[192|l>>6]+hexTable[128|63&l]:l<55296||l>=57344?o+=hexTable[224|l>>12]+hexTable[128|l>>6&63]+hexTable[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(s)),o+=hexTable[240|l>>18]+hexTable[128|l>>12&63]+hexTable[128|l>>6&63]+hexTable[128|63&l])}return o},compact=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var l=o[s],u=a[l];"object"===_typeof2(u)&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return compactQueue(t),e},isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},isBuffer=function(e){return!(!e||"object"!==_typeof2(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},combine=function(e,t){return[].concat(e,t)},maybeMap=function(e,t){if(isArray$5(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},utils$3={arrayToObject:arrayToObject,assign:assign,combine:combine,compact:compact,decode:decode$2,encode:encode,isBuffer:isBuffer,isRegExp:isRegExp,maybeMap:maybeMap,merge:merge},getSideChannel=sideChannel,utils$2=utils$3,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},isArray$4=Array.isArray,push=Array.prototype.push,pushToArray=function(e,t){push.apply(e,isArray$4(t)?t:[t])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$2.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(e){return toISO.call(e)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"===_typeof2(e)||"bigint"==typeof e},sentinel={},stringify$1=function e(t,n,r,i,a,o,s,l,u,c,h,d,f,p,v,m){for(var g=t,y=m,b=0,A=!1;void 0!==(y=y.get(sentinel))&&!A;){var S=y.get(t);if(b+=1,void 0!==S){if(S===b)throw new RangeError("Cyclic object value");A=!0}void 0===y.get(sentinel)&&(b=0)}if("function"==typeof l?g=l(n,g):g instanceof Date?g=h(g):"comma"===r&&isArray$4(g)&&(g=utils$2.maybeMap(g,(function(e){return e instanceof Date?h(e):e}))),null===g){if(a)return s&&!p?s(n,defaults$1.encoder,v,"key",d):n;g=""}if(isNonNullishPrimitive(g)||utils$2.isBuffer(g))return s?[f(p?n:s(n,defaults$1.encoder,v,"key",d))+"="+f(s(g,defaults$1.encoder,v,"value",d))]:[f(n)+"="+f(String(g))];var x,w=[];if(void 0===g)return w;if("comma"===r&&isArray$4(g))p&&s&&(g=utils$2.maybeMap(g,s)),x=[{value:g.length>0?g.join(",")||null:void 0}];else if(isArray$4(l))x=l;else{var _=Object.keys(g);x=u?_.sort(u):_}for(var E=i&&isArray$4(g)&&1===g.length?n+"[]":n,k=0;k<x.length;++k){var C=x[k],M="object"===_typeof2(C)&&void 0!==C.value?C.value:g[C];if(!o||null!==M){var P=isArray$4(g)?"function"==typeof r?r(E,C):E:E+(c?"."+C:"["+C+"]");m.set(t,b);var I=getSideChannel();I.set(sentinel,m),pushToArray(w,e(M,P,r,i,a,o,"comma"===r&&p&&isArray$4(g)?null:s,l,u,c,h,d,f,p,v,I))}}return w},normalizeStringifyOptions=function(e){if(!e)return defaults$1;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||defaults$1.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=formats$1.default;if(void 0!==e.format){if(!has$1.call(formats$1.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=formats$1.formatters[n],i=defaults$1.filter;return("function"==typeof e.filter||isArray$4(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:void 0===e.allowDots?defaults$1.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults$1.charsetSentinel,delimiter:void 0===e.delimiter?defaults$1.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:defaults$1.encode,encoder:"function"==typeof e.encoder?e.encoder:defaults$1.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:defaults$1.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:defaults$1.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults$1.strictNullHandling}},stringify_1=function(e,t){var n,r=e,i=normalizeStringifyOptions(t);"function"==typeof i.filter?r=(0,i.filter)("",r):isArray$4(i.filter)&&(n=i.filter);var a,o=[];if("object"!==_typeof2(r)||null===r)return"";a=t&&t.arrayFormat in arrayPrefixGenerators?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=arrayPrefixGenerators[a];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===s&&t&&t.commaRoundTrip;n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var u=getSideChannel(),c=0;c<n.length;++c){var h=n[c];i.skipNulls&&null===r[h]||pushToArray(o,stringify$1(r[h],h,s,l,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,u))}var d=o.join(i.delimiter),f=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?f+="utf8=%26%2310003%3B&":f+="utf8=%E2%9C%93&"),d.length>0?f+d:""},utils$1=utils$3,has=Object.prototype.hasOwnProperty,isArray$3=Array.isArray,defaults={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$1.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},parseArrayValue=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,o=i.split(t.delimiter,a),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<o.length;++n)0===o[n].indexOf("utf8=")&&(o[n]===charsetSentinel?l="utf-8":o[n]===isoSentinel&&(l="iso-8859-1"),s=n,n=o.length);for(n=0;n<o.length;++n)if(n!==s){var u,c,h=o[n],d=h.indexOf("]="),f=-1===d?h.indexOf("="):d+1;-1===f?(u=t.decoder(h,defaults.decoder,l,"key"),c=t.strictNullHandling?null:""):(u=t.decoder(h.slice(0,f),defaults.decoder,l,"key"),c=utils$1.maybeMap(parseArrayValue(h.slice(f+1),t),(function(e){return t.decoder(e,defaults.decoder,l,"value")}))),c&&t.interpretNumericEntities&&"iso-8859-1"===l&&(c=interpretNumericEntities(c)),h.indexOf("[]=")>-1&&(c=isArray$3(c)?[c]:c),has.call(r,u)?r[u]=utils$1.combine(r[u],c):r[u]=c}return r},parseObject=function(e,t,n,r){for(var i=r?t:parseArrayValue(t,n),a=e.length-1;a>=0;--a){var o,s=e[a];if("[]"===s&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=i:"__proto__"!==l&&(o[l]=i):o={0:i}}i=o}return i},parseKeys=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=o?i.slice(0,o.index):i,l=[];if(s){if(!n.plainObjects&&has.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var u=0;n.depth>0&&null!==(o=a.exec(i))&&u<n.depth;){if(u+=1,!n.plainObjects&&has.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(o[1])}return o&&l.push("["+i.slice(o.index)+"]"),parseObject(l,t,n,r)}},normalizeParseOptions=function(e){if(!e)return defaults;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?defaults.charset:e.charset;return{allowDots:void 0===e.allowDots?defaults.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:defaults.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:defaults.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:defaults.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:defaults.comma,decoder:"function"==typeof e.decoder?e.decoder:defaults.decoder,delimiter:"string"==typeof e.delimiter||utils$1.isRegExp(e.delimiter)?e.delimiter:defaults.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:defaults.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:defaults.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:defaults.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:defaults.strictNullHandling}},parse$4=function(e,t){var n=normalizeParseOptions(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?parseValues(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),o=0;o<a.length;++o){var s=a[o],l=parseKeys(s,r[s],n,"string"==typeof e);i=utils$1.merge(i,l,n)}return!0===n.allowSparse?i:utils$1.compact(i)},stringify=stringify_1,parse$3=parse$4,formats=formats$3,lib$4={formats:formats,parse:parse$3,stringify:stringify},global$1="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==global$1&&global$1,support={searchParams:"URLSearchParams"in global$1,iterable:"Symbol"in global$1&&"iterator"in Symbol,blob:"FileReader"in global$1&&"Blob"in global$1&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in global$1,arrayBuffer:"ArrayBuffer"in global$1};function isDataView(e){return e&&DataView.prototype.isPrototypeOf(e)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(e){return e&&viewClasses.indexOf(Object.prototype.toString.call(e))>-1};function normalizeName(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function normalizeValue(e){return"string"!=typeof e&&(e=String(e)),e}function iteratorFor(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return support.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Headers(e){this.map={},e instanceof Headers?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function consumed(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function fileReaderReady(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function readBlobAsArrayBuffer(e){var t=new FileReader,n=fileReaderReady(t);return t.readAsArrayBuffer(e),n}function readBlobAsText(e){var t=new FileReader,n=fileReaderReady(t);return t.readAsText(e),n}function readArrayBufferAsText(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function bufferClone(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:support.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:support.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:support.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():support.arrayBuffer&&support.blob&&isDataView(e)?(this._bodyArrayBuffer=bufferClone(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||isArrayBufferView(e))?this._bodyArrayBuffer=bufferClone(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):support.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},support.blob&&(this.blob=function(){var e=consumed(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=consumed(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var e=consumed(this);if(e)return e;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){return this.text().then(decode$1)}),this.json=function(){return this.text().then(JSON.parse)},this}Headers.prototype.append=function(e,t){e=normalizeName(e),t=normalizeValue(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Headers.prototype.delete=function(e){delete this.map[normalizeName(e)]},Headers.prototype.get=function(e){return e=normalizeName(e),this.has(e)?this.map[e]:null},Headers.prototype.has=function(e){return this.map.hasOwnProperty(normalizeName(e))},Headers.prototype.set=function(e,t){this.map[normalizeName(e)]=normalizeValue(t)},Headers.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Headers.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),iteratorFor(e)},Headers.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),iteratorFor(e)},Headers.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),iteratorFor(e)},support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);var methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(e){var t=e.toUpperCase();return methods.indexOf(t)>-1?t:e}function Request(e,t){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof Request){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Headers(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Headers(t.headers)),this.method=normalizeMethod(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function decode$1(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function parseHeaders(e){var t=new Headers;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t}function Response(e,t){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new Headers(t.headers),this.url=t.url||"",this._initBody(e)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var e=new Response(null,{status:0,statusText:""});return e.type="error",e};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(e,t){if(-1===redirectStatuses.indexOf(t))throw new RangeError("Invalid status code");return new Response(null,{status:t,headers:{location:e}})};var DOMException=global$1.DOMException;try{new DOMException}catch(err){DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$2(t,n){return new Promise((function(r,i){var a=new Request(t,n);if(a.signal&&a.signal.aborted)return i(new DOMException("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:parseHeaders(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;setTimeout((function(){r(new Response(t,e))}),0)},o.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){i(new DOMException("Aborted","AbortError"))}),0)},o.open(a.method,function(t){try{return""===t&&global$1.location.href?global$1.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?o.withCredentials=!0:"omit"===a.credentials&&(o.withCredentials=!1),"responseType"in o&&(support.blob?o.responseType="blob":support.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!n||"object"!==_typeof2(n.headers)||n.headers instanceof Headers?a.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){o.setRequestHeader(e,normalizeValue(n.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&a.signal.removeEventListener("abort",s)}),o.send(void 0===a._bodyInit?null:a._bodyInit)}))}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _construct(e,t,n){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i},_construct.apply(null,arguments)}function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)},_wrapNativeSuper(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof2(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function compose(e){if(!Array.isArray(e))throw new TypeError("Middlewares must be an array!");for(var t=e.length,n=0;n<t;n++)if("function"!=typeof e[n])throw new TypeError("Middleware must be componsed of function");return function(t,n){var r=-1;return function i(a){if(a<=r)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));r=a;var o=e[a]||n;if(!o)return Promise.resolve();try{return Promise.resolve(o(t,(function(){return i(a+1)})))}catch(err){return Promise.reject(err)}}(0)}}fetch$2.polyfill=!0,global$1.fetch||(global$1.fetch=fetch$2,global$1.Headers=Headers,global$1.Request=Request,global$1.Response=Response),self.fetch.bind(self);var Onion=function(){function e(t){if(_classCallCheck(this,e),!Array.isArray(t))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=_toConsumableArray(t),this.middlewares=[]}return _createClass(e,[{key:"use",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,i=!1,a=!1;"number"==typeof n?(process&&process.env,r=!0,i=!1):"object"===_typeof(n)&&n&&(i=n.global||!1,r=n.core||!1,a=n.defaultInstance||!1),i?e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,t):r?e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,t):a?this.defaultMiddlewares.push(t):this.middlewares.push(t)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return compose([].concat(_toConsumableArray(this.middlewares),_toConsumableArray(this.defaultMiddlewares),_toConsumableArray(e.globalMiddlewares),_toConsumableArray(e.coreMiddlewares)))(t)}}]),e}();Onion.globalMiddlewares=[],Onion.defaultGlobalMiddlewaresLength=0,Onion.coreMiddlewares=[],Onion.defaultCoreMiddlewaresLength=0;var MapCache=function(){function e(t){_classCallCheck(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return _createClass(e,[{key:"extendOptions",value:function(e){this.maxCache=e.maxCache||0}},{key:"get",value:function(e){return this.cache.get(JSON.stringify(e))}},{key:"set",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var i=_toConsumableArray(this.cache.keys())[0];this.cache.delete(i),this.timer[i]&&clearTimeout(this.timer[i])}var a=JSON.stringify(e);this.cache.set(a,t),r>0&&(this.timer[a]=setTimeout((function(){n.cache.delete(a),delete n.timer[a]}),r))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache.delete(t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),RequestError=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return _classCallCheck(this,n),(i=t.call(this,e)).name="RequestError",i.request=r,i.type=a,i}return n}(_wrapNativeSuper(Error)),ResponseError=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return _classCallCheck(this,n),(o=t.call(this,r||e.statusText)).name="ResponseError",o.data=i,o.response=e,o.request=a,o.type=s,o}return n}(_wrapNativeSuper(Error));function readerGBK(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsText(e,"GBK")}))}function safeJsonParse(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{return JSON.parse(t)}catch(e){if(n)throw new ResponseError(r,"JSON.parse fail",t,i,"ParseError")}return t}function timeout2Throw(e,t,n){return new Promise((function(r,i){setTimeout((function(){i(new RequestError(t||"timeout of ".concat(e,"ms exceeded"),n,"Timeout"))}),e)}))}function cancel2Throw(e){return new Promise((function(t,n){e.cancelToken&&e.cancelToken.promise.then((function(e){n(e)}))}))}var toString$2=Object.prototype.toString;function getEnv(){var e;return"undefined"!=typeof process&&"[object process]"===toString$2.call(process)&&(e="NODE"),"undefined"!=typeof XMLHttpRequest&&(e="BROWSER"),e}function isArray$2(e){return"object"===_typeof(e)&&"[object Array]"===Object.prototype.toString.call(e)}function isURLSearchParams(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function isDate(e){return"object"===_typeof(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isObject(e){return null!==e&&"object"===_typeof(e)}function forEach2ObjArr(e,t){if(e)if("object"!==_typeof(e)&&(e=[e]),isArray$2(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function getParamObject(e){return isURLSearchParams(e)?lib$4.parse(e.toString(),{strictNullHandling:!0}):"string"==typeof e?[e]:e}function reqStringify(e){return lib$4.stringify(e,{arrayFormat:"repeat",strictNullHandling:!0})}function mergeRequestOptions(e,t){return _objectSpread2(_objectSpread2(_objectSpread2({},e),t),{},{headers:_objectSpread2(_objectSpread2({},e.headers),t.headers),params:_objectSpread2(_objectSpread2({},getParamObject(e.params)),getParamObject(t.params)),method:(t.method||e.method||"get").toLowerCase()})}var addfix=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=t.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:t}},warnedCoreType=!1;function __defaultValidateCache(e,t){var n=t.method;return"get"===(void 0===n?"get":n).toLowerCase()}function fetchMiddleware(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,a=n.url,o=void 0===a?"":a,s=e.cache,l=e.responseInterceptors,u=i.timeout,c=void 0===u?0:u,h=i.timeoutMessage,d=i.__umiRequestCoreType__,f=void 0===d?"normal":d,p=i.useCache,v=void 0!==p&&p,m=i.method,g=void 0===m?"get":m,y=i.params,b=i.ttl,A=i.validateCache,S=void 0===A?__defaultValidateCache:A;if("normal"!==f)return process&&process.env,t();var x=fetch;if(!x)throw new Error("Global fetch not exist!");var w,_="BROWSER"===getEnv(),E=S(o,i)&&v&&_;if(E){var k=s.get({url:o,params:y,method:g});if(k)return(k=k.clone()).useCache=!0,e.res=k,t()}return w=c>0?Promise.race([cancel2Throw(i),x(o,i),timeout2Throw(c,h,e.req)]):Promise.race([cancel2Throw(i),x(o,i)]),l.forEach((function(e){w=w.then((function(t){var n="function"==typeof t.clone?t.clone():t;return e(n,i)}))})),w.then((function(n){if(E&&200===n.status){var r=n.clone();r.useCache=!0,s.set({url:o,params:y,method:g},r,b)}return e.res=n,t()}))}function parseResponseMiddleware(t,n){var r;return n().then((function(){if(t){var n=t.res,i=void 0===n?{}:n,a=t.req,o=void 0===a?{}:a,s=(o||{}).options,l=(s=void 0===s?{}:s).responseType,u=void 0===l?"json":l,c=s.charset,h=void 0===c?"utf8":c;s.getResponse;var d=s.throwErrIfParseFail,f=void 0!==d&&d,p=s.parseResponse;if((void 0===p||p)&&i&&i.clone){if((r="BROWSER"===getEnv()?i.clone():i).useCache=i.useCache||!1,"gbk"===h)try{return i.blob().then(readerGBK).then((function(e){return safeJsonParse(e,!1,r,o)}))}catch(e){throw new ResponseError(r,e.message,null,o,"ParseError")}else if("json"===u)return i.text().then((function(e){return safeJsonParse(e,f,r,o)}));try{return i[u]()}catch(e){throw new ResponseError(r,"responseType not support",null,o,"ParseError")}}}})).then((function(e){if(t){t.res;var n=t.req,i=void 0===n?{}:n,a=(i||{}).options,o=(a=void 0===a?{}:a).getResponse,s=void 0!==o&&o;if(r){if(r.status>=200&&r.status<300)return s?void(t.res={data:e,response:r}):void(t.res=e);throw new ResponseError(r,"http error",e,i,"HttpError")}}})).catch((function(e){if(e instanceof RequestError||e instanceof ResponseError)throw e;var n=t.req,r=t.res;throw e.request=e.request||n,e.response=e.response||r,e.type=e.type||e.name,e.data=e.data||void 0,e}))}function simplePostMiddleware(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,a=i.method;if(-1===["post","put","patch","delete"].indexOf((void 0===a?"get":a).toLowerCase()))return t();var o=i.requestType,s=void 0===o?"json":o,l=i.data;if(l){var u=Object.prototype.toString.call(l);"[object Object]"===u||"[object Array]"===u?"json"===s?(i.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},i.headers),i.body=JSON.stringify(l)):"form"===s&&(i.headers=_objectSpread2({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},i.headers),i.body=reqStringify(l)):(i.headers=_objectSpread2({Accept:"application/json"},i.headers),i.body=l)}return e.req.options=i,t()}function paramsSerialize(e,t){var n,r;if(e)if(t)n=t(e);else if(isURLSearchParams(e))n=e.toString();else{if(isArray$2(e))r=[],forEach2ObjArr(e,(function(e){null==e?r.push(e):r.push(isObject(e)?JSON.stringify(e):e)})),n=reqStringify(r);else r={},forEach2ObjArr(e,(function(e,t){var n=e;null==e?r[t]=e:isDate(e)?n=e.toISOString():isArray$2(e)?n=e:isObject(e)&&(n=JSON.stringify(e)),r[t]=n})),n=reqStringify(r)}return n}function simpleGetMiddleware(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,a=i.paramsSerializer,o=i.params,s=e.req,l=(s=void 0===s?{}:s).url,u=void 0===l?"":l;i.method=i.method?i.method.toUpperCase():"GET",i.credentials=i.credentials||"same-origin";var c=paramsSerialize(o,a);if(e.req.originUrl=u,c){var h=-1!==u.indexOf("?")?"&":"?";e.req.url="".concat(u).concat(h).concat(c)}return e.req.options=i,t()}var globalMiddlewares=[simplePostMiddleware,simpleGetMiddleware,parseResponseMiddleware],coreMiddlewares=[fetchMiddleware];Onion.globalMiddlewares=globalMiddlewares,Onion.defaultGlobalMiddlewaresLength=globalMiddlewares.length,Onion.coreMiddlewares=coreMiddlewares,Onion.defaultCoreMiddlewaresLength=coreMiddlewares.length;var Core=function(){function t(e){_classCallCheck(this,t),this.onion=new Onion([]),this.fetchIndex=0,this.mapCache=new MapCache(e),this.initOptions=e,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return _createClass(t,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=mergeRequestOptions(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(e){return[].concat(_toConsumableArray(t.requestInterceptors),_toConsumableArray(this.instanceRequestInterceptors)).reduce((function(t,n){return t.then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.req.url=t.url||e.req.url,e.req.options=t.options||e.req.options,n(e.req.url,e.req.options)}))}),Promise.resolve()).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.req.url=t.url||e.req.url,e.req.options=t.options||e.req.options,Promise.resolve()}))}},{key:"request",value:function(n,r){var i=this,a=this.onion,o={req:{url:n,options:_objectSpread2(_objectSpread2({},r),{},{url:n})},res:null,cache:this.mapCache,responseInterceptors:[].concat(_toConsumableArray(t.responseInterceptors),_toConsumableArray(this.instanceResponseInterceptors))};if("string"!=typeof n)throw new Error("url MUST be a string");return new Promise((function(t,n){i.dealRequestInterceptors(o).then((function(){return a.execute(o)})).then((function(){t(o.res)})).catch((function(r){var i=o.req.options.errorHandler;if(i)try{var a=i(r);t(a)}catch(e){n(e)}else n(r)}))}))}}],[{key:"requestUse",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof e)throw new TypeError("Interceptor must be function!");n.global?t.requestInterceptors.push(e):this.instanceRequestInterceptors.push(e)}},{key:"responseUse",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof e)throw new TypeError("Interceptor must be function!");n.global?t.responseInterceptors.push(e):this.instanceResponseInterceptors.push(e)}}]),t}();function Cancel(e){this.message=e}function CancelToken(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Cancel(e),t(n.reason))}))}function isCancel(e){return!(!e||!e.__CANCEL__)}Core.requestInterceptors=[addfix],Core.responseInterceptors=[],Cancel.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},Cancel.prototype.__CANCEL__=!0,CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var e;return{token:new CancelToken((function(t){e=t})),cancel:e}};var request$1=function(){var e=new Core(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=mergeRequestOptions(e.initOptions,n);return e.request(t,r)};t.use=e.use.bind(e),t.fetchIndex=e.fetchIndex,t.interceptors={request:{use:Core.requestUse.bind(e)},response:{use:Core.responseUse.bind(e)}};return["get","post","delete","put","patch","head","options","rpc"].forEach((function(e){t[e]=function(n,r){return t(n,_objectSpread2(_objectSpread2({},r),{},{method:e}))}})),t.Cancel=Cancel,t.CancelToken=CancelToken,t.isCancel=isCancel,t.extendOptions=e.extendOptions.bind(e),t.middlewares={instance:e.onion.middlewares,defaultInstance:e.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},t},extend$1=function(e){return request$1(e)};request$1({parseResponse:!1}),request$1({});var lodash_isemptyExports={},lodash_isempty={get exports(){return lodash_isemptyExports},set exports(e){lodash_isemptyExports=e}};!function(t,n){var r=9007199254740991,i="[object Arguments]",a="[object Function]",o="[object GeneratorFunction]",s="[object Map]",l="[object Promise]",u="[object Set]",c="[object WeakMap]",h="[object DataView]",d=/^\[object .+?Constructor\]$/,f="object"==_typeof2(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,p="object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self&&self.Object===Object&&self,v=f||p||Function("return this")(),m=n&&!n.nodeType&&n,g=m&&t&&!t.nodeType&&t,y=g&&g.exports===m;var b=Function.prototype,A=Object.prototype,S=v["__core-js_shared__"],x=function(){var e=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w=b.toString,_=A.hasOwnProperty,E=A.toString,k=RegExp("^"+w.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=y?v.Buffer:void 0,M=A.propertyIsEnumerable,P=C?C.isBuffer:void 0,I=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),T=U(v,"DataView"),B=U(v,"Map"),R=U(v,"Promise"),L=U(v,"Set"),N=U(v,"WeakMap"),F=!M.call({valueOf:1},"valueOf"),D=Q(T),O=Q(B),V=Q(R),z=Q(L),G=Q(N);function H(t){if(!$(t)||(n=t,x&&x in n))return!1;var n,r=J(t)||function(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(e){}return n}(t)?k:d;return r.test(Q(t))}function U(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return H(n)?n:void 0}var j=function(e){return E.call(e)};function Q(t){if(null!=t){try{return w.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Y(e){return function(e){return function(e){return!!e&&"object"==_typeof2(e)}(e)&&X(e)}(e)&&_.call(e,"callee")&&(!M.call(e,"callee")||E.call(e)==i)}(T&&j(new T(new ArrayBuffer(1)))!=h||B&&j(new B)!=s||R&&j(R.resolve())!=l||L&&j(new L)!=u||N&&j(new N)!=c)&&(j=function(e){var t=E.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):void 0;if(r)switch(r){case D:return h;case O:return s;case V:return l;case z:return u;case G:return c}return t});var W=Array.isArray;function X(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!J(e)}var K=P||function(){return!1};function J(e){var t=$(e)?E.call(e):"";return t==a||t==o}function $(e){var t=_typeof2(e);return!!e&&("object"==t||"function"==t)}t.exports=function(e){if(X(e)&&(W(e)||"string"==typeof e||"function"==typeof e.splice||K(e)||Y(e)))return!e.length;var t=j(e);if(t==s||t==u)return!e.size;if(F||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}(e))return!I(e).length;for(var n in e)if(_.call(e,n))return!1;return!0}}(lodash_isempty,lodash_isemptyExports);var objectTag="[object Object]";function isHostObject(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(e){}return n}function overArg(e,t){return function(n){return e(t(n))}}var funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object),objectToString=objectProto.toString,getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&"object"==_typeof2(e)}function isPlainObject$2(e){if(!isObjectLike(e)||objectToString.call(e)!=objectTag||isHostObject(e))return!1;var t=getPrototype(e);if(null===t)return!0;var n=hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&funcToString.call(n)==objectCtorString}var lodash_isplainobject=isPlainObject$2,lodash_transformExports={},lodash_transform={get exports(){return lodash_transformExports},set exports(e){lodash_transformExports=e}};!function(t,n){var r="__lodash_hash_undefined__",i=1,a=2,o=1/0,s=9007199254740991,l="[object Arguments]",u="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",f="[object Function]",p="[object GeneratorFunction]",v="[object Map]",m="[object Number]",g="[object Object]",y="[object Promise]",b="[object RegExp]",A="[object Set]",S="[object String]",x="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",E="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,M=/^\./,P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,T=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[l]=R[u]=R[_]=R[c]=R[E]=R[h]=R[d]=R[f]=R[v]=R[m]=R[g]=R[b]=R[A]=R[S]=R[w]=!1;var L="object"==_typeof2(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,N="object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self&&self.Object===Object&&self,F=L||N||Function("return this")(),D=n&&!n.nodeType&&n,O=D&&t&&!t.nodeType&&t,V=O&&O.exports===D&&L.process,z=function(){try{return V&&V.binding("util")}catch(e){}}(),G=z&&z.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(e){}return n}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Y(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var X=Array.prototype,K=Function.prototype,J=Object.prototype,$=F["__core-js_shared__"],q=function(){var e=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Z=K.toString,ee=J.hasOwnProperty,te=J.toString,ne=RegExp("^"+Z.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=F.Symbol,ie=F.Uint8Array,ae=Y(Object.getPrototypeOf,Object),oe=Object.create,se=J.propertyIsEnumerable,le=X.splice,ue=Y(Object.keys,Object),ce=Ue(F,"DataView"),he=Ue(F,"Map"),de=Ue(F,"Promise"),fe=Ue(F,"Set"),pe=Ue(F,"WeakMap"),ve=Ue(Object,"create"),me=$e(ce),ge=$e(he),ye=$e(de),be=$e(fe),Ae=$e(pe),Se=re?re.prototype:void 0,xe=Se?Se.valueOf:void 0,we=Se?Se.toString:void 0;function _e(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.__data__=new ke;++t<n;)this.add(e[t])}function Me(e){this.__data__=new Ee(e)}function Pe(e,t){var n=tt(e)||et(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!ee.call(e,a)||i&&("length"==a||Qe(a,r))||n.push(a);return n}function Ie(e,t){for(var n=e.length;n--;)if(Ze(e[n][0],t))return n;return-1}_e.prototype.clear=function(){this.__data__=ve?ve(null):{}},_e.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_e.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===r?void 0:n}return ee.call(t,e)?t[e]:void 0},_e.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:ee.call(t,e)},_e.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)},Ee.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Ie(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ie(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},ke.prototype.clear=function(){this.__data__={hash:new _e,map:new(he||Ee),string:new _e}},ke.prototype.delete=function(e){return He(this,e).delete(e)},ke.prototype.get=function(e){return He(this,e).get(e)},ke.prototype.has=function(e){return He(this,e).has(e)},ke.prototype.set=function(e,t){return He(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,r),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.clear=function(){this.__data__=new Ee},Me.prototype.delete=function(e){return this.__data__.delete(e)},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new ke(r)}return n.set(e,t),this};var Te,Be=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[Te?o:++r];if(!1===t(i[s],s,i))break}return e};function Re(e,t){return e&&Be(e,t,ct)}function Le(e,t){for(var n=0,r=(t=Ye(t,e)?[t]:ze(t)).length;null!=e&&n<r;)e=e[Je(t[n++])];return n&&n==r?e:void 0}function Ne(e,t){return null!=e&&t in Object(e)}function Fe(e,t,n,r,o){return e===t||(null==e||null==t||!at(e)&&!ot(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var f=tt(e),p=tt(t),y=u,w=u;f||(y=(y=je(e))==l?g:y);p||(w=(w=je(t))==l?g:w);var k=y==g&&!j(e),C=w==g&&!j(t),M=y==w;if(M&&!k)return s||(s=new Me),f||ut(e)?Ge(e,t,n,r,o,s):function(e,t,n,r,o,s,l){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!r(new ie(e),new ie(t)));case c:case h:case m:return Ze(+e,+t);case d:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+"";case v:var u=Q;case A:var f=s&a;if(u||(u=W),e.size!=t.size&&!f)return!1;var p=l.get(e);if(p)return p==t;s|=i,l.set(e,t);var g=Ge(u(e),u(t),r,o,s,l);return l.delete(e),g;case x:if(xe)return xe.call(e)==xe.call(t)}return!1}(e,t,y,n,r,o,s);if(!(o&a)){var P=k&&ee.call(e,"__wrapped__"),I=C&&ee.call(t,"__wrapped__");if(P||I){var T=P?e.value():e,B=I?t.value():t;return s||(s=new Me),n(T,B,r,o,s)}}if(!M)return!1;return s||(s=new Me),function(e,t,n,r,i,o){var s=i&a,l=ct(e),u=l.length,c=ct(t),h=c.length;if(u!=h&&!s)return!1;var d=u;for(;d--;){var f=l[d];if(!(s?f in t:ee.call(t,f)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var v=!0;o.set(e,t),o.set(t,e);var m=s;for(;++d<u;){var g=e[f=l[d]],y=t[f];if(r)var b=s?r(y,g,f,t,e,o):r(g,y,f,e,t,o);if(!(void 0===b?g===y||n(g,y,r,i,o):b)){v=!1;break}m||(m="constructor"==f)}if(v&&!m){var A=e.constructor,S=t.constructor;A==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof S&&S instanceof S||(v=!1)}return o.delete(e),o.delete(t),v}(e,t,n,r,o,s)}(e,t,Fe,n,r,o))}function De(e){return!(!at(e)||(t=e,q&&q in t))&&(rt(e)||j(e)?ne:T).test($e(e));var t}function Oe(e){return"function"==typeof e?e:null==e?ht:"object"==_typeof2(e)?tt(e)?function(e,t){if(Ye(e)&&We(t))return Xe(Je(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Le(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ye(t,e)?[t]:ze(t);var r,i=-1,a=t.length;for(;++i<a;){var o=Je(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}if(r)return r;a=e?e.length:0;return!!a&&it(a)&&Qe(o,a)&&(tt(e)||et(e))}(e,t,Ne)}(n,e):Fe(t,r,void 0,i|a)}}(e[0],e[1]):function(e){var t=function(e){var t=ct(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,We(i)]}return t}(e);if(1==t.length&&t[0][2])return Xe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,s=o,l=!r;if(null==e)return!s;for(e=Object(e);o--;){var u=n[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=n[o])[0],h=e[c],d=u[1];if(l&&u[2]){if(void 0===h&&!(c in e))return!1}else{var f=new Me;if(r)var p=r(h,d,c,e,t,f);if(!(void 0===p?Fe(d,h,r,i|a,f):p))return!1}}return!0}(n,e,t)}}(e):Ye(t=e)?(n=Je(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Le(t,e)}}(t);var t,n}function Ve(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||J,t!==r)return ue(e);var t,n,r,i=[];for(var a in Object(e))ee.call(e,a)&&"constructor"!=a&&i.push(a);return i}function ze(e){return tt(e)?e:Ke(e)}function Ge(e,t,n,r,o,s){var l=o&a,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var d=-1,f=!0,p=o&i?new Ce:void 0;for(s.set(e,t),s.set(t,e);++d<u;){var v=e[d],m=t[d];if(r)var g=l?r(m,v,d,t,e,s):r(v,m,d,e,t,s);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!U(t,(function(e,t){if(!p.has(t)&&(v===e||n(v,e,r,o,s)))return p.add(t)}))){f=!1;break}}else if(v!==m&&!n(v,m,r,o,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function He(e,t){var n,r,i=e.__data__;return("string"==(r=_typeof2(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return De(n)?n:void 0}var je=function(e){return te.call(e)};function Qe(e,t){return!!(t=null==t?s:t)&&("number"==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Ye(e,t){if(tt(e))return!1;var n=_typeof2(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!st(e))||(C.test(e)||!k.test(e)||null!=t&&e in Object(t))}function We(e){return e==e&&!at(e)}function Xe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(ce&&je(new ce(new ArrayBuffer(1)))!=E||he&&je(new he)!=v||de&&je(de.resolve())!=y||fe&&je(new fe)!=A||pe&&je(new pe)!=w)&&(je=function(e){var t=te.call(e),n=t==g?e.constructor:void 0,r=n?$e(n):void 0;if(r)switch(r){case me:return E;case ge:return v;case ye:return y;case be:return A;case Ae:return w}return t});var Ke=qe((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(st(e))return we?we.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(t);var n=[];return M.test(e)&&n.push(""),e.replace(P,(function(e,t,r,i){n.push(r?i.replace(I,"$1"):t||e)})),n}));function Je(e){if("string"==typeof e||st(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function $e(t){if(null!=t){try{return Z.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function qe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(qe.Cache||ke),n}function Ze(e,t){return e===t||e!=e&&t!=t}function et(e){return function(e){return ot(e)&&nt(e)}(e)&&ee.call(e,"callee")&&(!se.call(e,"callee")||te.call(e)==l)}qe.Cache=ke;var tt=Array.isArray;function nt(e){return null!=e&&it(e.length)&&!rt(e)}function rt(e){var t=at(e)?te.call(e):"";return t==f||t==p}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function at(e){var t=_typeof2(e);return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==_typeof2(e)}function st(e){return"symbol"==_typeof2(e)||ot(e)&&te.call(e)==x}var lt,ut=G?(lt=G,function(e){return lt(e)}):function(e){return ot(e)&&it(e.length)&&!!R[te.call(e)]};function ct(e){return nt(e)?Pe(e):Ve(e)}function ht(e){return e}t.exports=function(e,t,n){var r,i=tt(e)||ut(e);if(t=Oe(t),null==n)if(i||at(e)){var a=e.constructor;n=i?tt(e)?new a:[]:rt(a)?at(r=ae(e))?oe(r):{}:{}}else n={};return(i?H:Re)(e,(function(e,r,i){return t(n,e,r,i)})),n}}(lodash_transform,lodash_transformExports);var isEmpty$1=lodash_isemptyExports,isPlainObject$1=lodash_isplainobject,transform=lodash_transformExports,src=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cleanKeys,i=void 0===r?[]:r,a=n.cleanValues,o=void 0===a?[]:a,s=n.emptyArrays,l=void 0===s||s,u=n.emptyObjects,c=void 0===u||u,h=n.emptyStrings,d=void 0===h||h,f=n.NaNValues,p=void 0!==f&&f,v=n.nullValues,m=void 0===v||v,g=n.undefinedValues,y=void 0===g||g;return transform(t,(function(t,n,r){if(!i.includes(r)&&((Array.isArray(n)||isPlainObject$1(n))&&(n=e(n,{NaNValues:p,cleanKeys:i,cleanValues:o,emptyArrays:l,emptyObjects:c,emptyStrings:d,nullValues:m,undefinedValues:y})),!o.includes(n)&&!(c&&isPlainObject$1(n)&&isEmpty$1(n))&&(!l||!Array.isArray(n)||n.length)&&!(d&&""===n||p&&Number.isNaN(n)||m&&null===n||y&&void 0===n)))return Array.isArray(t)?t.push(n):void(t[r]=n)}))},whiteUrl=function(){return{"/sysMusicScoreCategories/queryTree":"/eduMusicScore/queryTree","/sysMusicScoreAccompaniment/queryPage":queryString.parse(location.search).platform?"/sysMusicScoreAccompaniment/queryPage":"/eduMusicScore/queryPage","/sysMusicScoreAccompaniment/queryPageLimit":"/eduMusicScore/queryPageLimit","/sysMusicScoreAccompaniment/querySubjectIds":"/eduMusicScore/querySubjectIds"}},apiRouter=whiteUrl(),browserInfo$2=browser(),request=exports("K",extend$1({requestType:"form",timeout:1e4}));request.interceptors.request.use((function(e,t){var n=storeData.proxy+storeData.platformApi;"WEB"===storeData.platformType&&apiRouter[e]&&(e=apiRouter[e]);var r=getToken(),i={};return r&&(i.Authorization=r),{url:n+e,options:_objectSpread(_objectSpread({},t),{},{params:src(t.params),data:src(t.data),headers:_objectSpread(_objectSpread({},t.headers),i)})}}),{global:!1}),request.interceptors.response.use(function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(t,n){var r,i,a;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.status>299||t.status<200)){e.next=4;break}throw showToast(r=t.statusText+", 状态码"+t.status),new Error(r);case 4:return e.next=6,t.clone().json();case 6:if(200===(i=e.sent).code||0===i.errCode){e.next=12;break}throw a=i.msg||i.message||"处理失败,请重试",403!==i.code&&401!==i.code&&showToast(a),403===i.code&&(browserInfo$2.isApp?postMessage({api:"login"}):(storeData.status="error",showToast("登录过期"))),new Error(a);case 12:return e.abrupt("return",i);case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{global:!1});var dayjs_minExports={},dayjs_min={get exports(){return dayjs_minExports},set exports(e){dayjs_minExports=e}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",l="week",u="month",c="quarter",h="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),a=n-i<0,o=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:h,w:l,d:s,D:d,h:o,m:a,s:i,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",A={};A[b]=m;var S=function(e){return e instanceof E},x=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();A[a]&&(i=a),n&&(A[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;A[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},w=function(e,t){if(S(e))return e.clone();var n="object"==_typeof2(t)?t:{};return n.date=e,n.args=arguments,new E(n)},_=y;_.l=x,_.i=S,_.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return _},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return w(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<w(e)},g.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!_.u(t)||t,c=_.p(e),f=function(e,t){var i=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case h:return r?f(1,0):f(31,11);case u:return r?f(1,m):f(0,m+1);case l:var b=this.$locale().weekStart||0,A=(v<b?v+7:v)-b;return f(r?g-A:g+(6-A),m);case s:case d:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,l=_.p(e),c="set"+(this.$u?"UTC":""),f=(n={},n[s]=c+"Date",n[d]=c+"Date",n[u]=c+"Month",n[h]=c+"FullYear",n[o]=c+"Hours",n[a]=c+"Minutes",n[i]=c+"Seconds",n[r]=c+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===u||l===h){var v=this.clone().set(d,1);v.$d[f](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[_.p(e)]()},g.add=function(r,c){var d,f=this;r=Number(r);var p=_.p(c),v=function(e){var t=w(f);return _.w(t.date(t.date()+Math.round(e*r)),f)};if(p===u)return this.set(u,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===s)return v(1);if(p===l)return v(7);var m=(d={},d[a]=t,d[o]=n,d[i]=e,d)[p]||1,g=this.$d.getTime()+r*m;return _.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,u=n.months,c=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},h=function(e){return _.s(a%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,l,2),ddd:c(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(a),HH:_.s(a,2,"0"),h:h(1),hh:h(2),a:d(a,o,!0),A:d(a,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return r.replace(v,(function(e,t){return t||p[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,f){var p,v=_.p(d),m=w(r),g=(m.utcOffset()-this.utcOffset())*t,y=this-m,b=_.m(this,m);return b=(p={},p[h]=b/12,p[u]=b,p[c]=b/3,p[l]=(y-g)/6048e5,p[s]=(y-g)/864e5,p[o]=y/n,p[a]=y/t,p[i]=y/e,p)[v]||y,f?b:_.a(b)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return A[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return _.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),k=E.prototype;return w.prototype=k,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",u],["$y",h],["$D",d]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,E,w),e.$i=!0),w},w.locale=x,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=A[b],w.Ls=A,w.p={},w}()}(dayjs_min);var dayjs=dayjs_minExports,durationExports={},duration$1={get exports(){return durationExports},set exports(e){durationExports=e}};!function(e,t){e.exports=function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2592e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:s,months:l,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},h=function(e){return e instanceof y},d=function(e,t,n){return new y(e,n,t.$l)},f=function(e){return t.p(e)+"s"},p=function(e){return e<0},v=function(e){return p(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},g=function(e,t){return e?p(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*c[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==_typeof2(e))return Object.keys(e).forEach((function(t){r.$d[f(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(u);if(i){var a=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var m=p.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*c[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=v(e/s),e%=s,this.$d.months=v(e/l),e%=l,this.$d.days=v(e/a),e%=a,this.$d.hours=v(e/i),e%=i,this.$d.minutes=v(e/r),e%=r,this.$d.seconds=v(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=g(n,"D"),i=g(this.$d.hours,"H"),a=g(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3);var s=g(o,"S"),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,u=i.format||a.format||s.format?"T":"",c=(l?"-":"")+"P"+e.format+t.format+r.format+u+i.format+a.format+s.format;return"P"===c||"-P"===c?"P0D":c},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/c[f(e)]},m.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?v(t/c[n]):this.$d[n],0===t?0:t},m.add=function(e,t,n){var r;return r=t?e*c[f(t)]:h(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return d(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},p}();return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return d(e,{$l:n},t)},i.isDuration=h;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return h(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return h(e)&&(e=e.asMilliseconds()),o.bind(this)(e,t)}}}()}(duration$1);var duration=durationExports,howler={},exports$1;
  7. /*!
  8. * howler.js v2.2.3
  9. * howlerjs.com
  10. *
  11. * (c) 2013-2020, James Simpson of GoldFire Studios
  12. * goldfirestudios.com
  13. *
  14. * MIT License
  15. */
  16. exports$1=howler,function(){var t=function(){this.init()};t.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||c(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||c(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.muted=!!e||o._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,c()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var t=this||n;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(e){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(e){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var e=this||n,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(err){return e}if(!t||"function"!=typeof t.canPlayType)return e;var r=t.canPlayType("audio/mpeg;").replace(/^no$/,""),i=e._navigator?e._navigator.userAgent:"",a=i.match(/OPR\/([0-6].)/g),o=a&&parseInt(a[0].split("/")[1],10)<33,s=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome"),l=i.match(/Version\/(.*?) /),u=s&&l&&parseInt(l[1],10)<15;return e._codecs={mp3:!(o||!r&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!r,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||n;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function t(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(n){e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var a=e._howls[i]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[i]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var l=e.ctx.createBufferSource();l.buffer=e._scratchBuffer,l.connect(e.ctx.destination),void 0===l.start?l.noteOn(0):l.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),l.onended=function(){l.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var r=0;r<e._howls[t]._sounds.length;r++)if(!e._howls[t]._sounds[r]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var n=new t,r=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};r.prototype={init:function(e){var t=this;return n.ctx||c(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var r=0;r<e._src.length;r++){var a,s;if(e._format&&e._format[r])a=e._format[r];else{if("string"!=typeof(s=e._src[r])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(a=/^data:audio\/([^;,]+);/i.exec(s))||(a=/\.([^.]+)$/.exec(s.split("?",1)[0])),a&&(a=a[1].toLowerCase())}if(a||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),a&&n.codecs(a)){t=e._src[r];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&o(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var r=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===r._state&&!r._sprite[e])return null;if(void 0===e&&(e="__default",!r._playLock)){for(var a=0,o=0;o<r._sounds.length;o++)r._sounds[o]._paused&&!r._sounds[o]._ended&&(a++,i=r._sounds[o]._id);1===a?e=null:i=null}}var s=i?r._soundById(i):r._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||"__default"),"loaded"!==r._state){s._sprite=e,s._ended=!1;var l=s._id;return r._queue.push({event:"play",action:function(){r.play(l)}}),l}if(i&&!s._paused)return t||r._loadQueue("play"),s._id;r._webAudio&&n._autoResume();var u=Math.max(0,s._seek>0?s._seek:r._sprite[e][0]/1e3),c=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-u),h=1e3*c/Math.abs(s._rate),d=r._sprite[e][0]/1e3,f=(r._sprite[e][0]+r._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=u,s._start=d,s._stop=f,s._loop=!(!s._loop&&!r._sprite[e][2])};if(!(u>=f)){var v=s._node;if(r._webAudio){var m=function(){r._playLock=!1,p(),r._refreshBuffer(s);var e=s._muted||r._muted?0:s._volume;v.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,void 0===v.bufferSource.start?s._loop?v.bufferSource.noteGrainOn(0,u,86400):v.bufferSource.noteGrainOn(0,u,c):s._loop?v.bufferSource.start(0,u,86400):v.bufferSource.start(0,u,c),h!==1/0&&(r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),h)),t||setTimeout((function(){r._emit("play",s._id),r._loadQueue()}),0)};"running"===n.state&&"interrupted"!==n.ctx.state?m():(r._playLock=!0,r.once("resume",m),r._clearTimer(s._id))}else{var g=function(){v.currentTime=u,v.muted=s._muted||r._muted||n._muted||v.muted,v.volume=s._volume*n.volume(),v.playbackRate=s._rate;try{var i=v.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(r._playLock=!0,p(),i.then((function(){r._playLock=!1,v._unlocked=!0,t?r._loadQueue():r._emit("play",s._id)})).catch((function(){r._playLock=!1,r._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(r._playLock=!1,p(),r._emit("play",s._id)),v.playbackRate=s._rate,v.paused)return void r._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),h):(r._endTimers[s._id]=function(){r._ended(s),v.removeEventListener("ended",r._endTimers[s._id],!1)},v.addEventListener("ended",r._endTimers[s._id],!1))}catch(err){r._emit("playerror",s._id,err)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=r._src,v.load());var y=window&&window.ejecta||!v.readyState&&n._navigator.isCocoonJS;v.readyState>=3||y?g():(r._playLock=!0,r._state="loading",v.addEventListener(n._canPlayEvent,(function e(){r._state="loaded",g(),v.removeEventListener(n._canPlayEvent,e,!1)}),!1),r._clearTimer(s._id))}return s._id}r._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else isNaN(i._node.duration)&&i._node.duration!==1/0||i._node.pause();arguments[1]||t._emit("pause",i?i._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(void 0===a._node.bufferSource.stop?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):isNaN(a._node.duration)&&a._node.duration!==1/0||(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit("stop",a._id))}return n},mute:function(e,t){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"mute",action:function(){r.mute(e,t)}}),r;if(void 0===t){if("boolean"!=typeof e)return r._muted;r._muted=e}for(var i=r._getSoundIds(t),a=0;a<i.length;a++){var o=r._soundById(i[a]);o&&(o._muted=e,o._interval&&r._stopFade(o._id),r._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,n.ctx.currentTime):o._node&&(o._node.muted=!!n._muted||e),r._emit("mute",o._id))}return r},volume:function(){var e,t,r,i=this,a=arguments;if(0===a.length)return i._volume;if(1===a.length||2===a.length&&void 0===a[1]?i._getSoundIds().indexOf(a[0])>=0?t=parseInt(a[0],10):e=parseFloat(a[0]):a.length>=2&&(e=parseFloat(a[0]),t=parseInt(a[1],10)),!(void 0!==e&&e>=0&&e<=1))return(r=t?i._soundById(t):i._sounds[0])?r._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,a)}}),i;void 0===t&&(i._volume=e),t=i._getSoundIds(t);for(var o=0;o<t.length;o++)(r=i._soundById(t[o]))&&(r._volume=e,a[2]||i._stopFade(t[o]),i._webAudio&&r._node&&!r._muted?r._node.gain.setValueAtTime(e,n.ctx.currentTime):r._node&&!r._muted&&(r._node.volume=e*n.volume()),i._emit("volume",r._id));return i},fade:function(e,t,r,i){var a=this;if("loaded"!==a._state||a._playLock)return a._queue.push({event:"fade",action:function(){a.fade(e,t,r,i)}}),a;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),r=parseFloat(r),a.volume(e,i);for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var l=a._soundById(o[s]);if(l){if(i||a._stopFade(o[s]),a._webAudio&&!l._muted){var u=n.ctx.currentTime,c=u+r/1e3;l._volume=e,l._node.gain.setValueAtTime(e,u),l._node.gain.linearRampToValueAtTime(t,c)}a._startFadeInterval(l,e,t,r,o[s],void 0===i)}}return a},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,l=n-t,u=Math.abs(l/.01),c=Math.max(4,u>0?r/u:r),h=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var i=(Date.now()-h)/r;h=Date.now(),s+=l*i,s=Math.round(100*s)/100,s=l<0?Math.max(n,s):Math.min(n,s),o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;e=i[0],r._loop=e}else 2===i.length&&(e=i[0],t=parseInt(i[1],10));for(var a=r._getSoundIds(t),o=0;o<a.length;o++)(n=r._soundById(a[o]))&&(n._loop=e,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,r.playing(a[o])&&(r.pause(a[o],!0),r.play(a[o],!0)))));return r},rate:function(){var e,t,r,i=this,a=arguments;if(0===a.length?t=i._sounds[0]._id:1===a.length?i._getSoundIds().indexOf(a[0])>=0?t=parseInt(a[0],10):e=parseFloat(a[0]):2===a.length&&(e=parseFloat(a[0]),t=parseInt(a[1],10)),"number"!=typeof e)return(r=i._soundById(t))?r._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,a)}}),i;void 0===t&&(i._rate=e),t=i._getSoundIds(t);for(var o=0;o<t.length;o++)if(r=i._soundById(t[o])){i.playing(t[o])&&(r._rateSeek=i.seek(t[o]),r._playStart=i._webAudio?n.ctx.currentTime:r._playStart),r._rate=e,i._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):r._node&&(r._node.playbackRate=e);var s=i.seek(t[o]),l=1e3*((i._sprite[r._sprite][0]+i._sprite[r._sprite][1])/1e3-s)/Math.abs(r._rate);!i._endTimers[t[o]]&&r._paused||(i._clearTimer(t[o]),i._endTimers[t[o]]=setTimeout(i._ended.bind(i,r),l)),i._emit("rate",r._id)}return i},seek:function(){var e,t,r=this,i=arguments;if(0===i.length?r._sounds.length&&(t=r._sounds[0]._id):1===i.length?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):r._sounds.length&&(t=r._sounds[0]._id,e=parseFloat(i[0])):2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),void 0===t)return 0;if("number"==typeof e&&("loaded"!==r._state||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,i)}}),r;var a=r._soundById(t);if(a){if(!("number"==typeof e&&e>=0)){if(r._webAudio){var o=r.playing(t)?n.ctx.currentTime-a._playStart:0,s=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(s+o*Math.abs(a._rate))}return a._node.currentTime}var l=r.playing(t);l&&r.pause(t,!0),a._seek=e,a._ended=!1,r._clearTimer(t),r._webAudio||!a._node||isNaN(a._node.duration)||(a._node.currentTime=e);var u=function(){l&&r.play(t,!0),r._emit("seek",t)};l&&!r._webAudio?setTimeout((function e(){r._playLock?setTimeout(e,0):u()}),0):u()}return r},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,r=0;r<t.length;r++)t[r]._paused||e.stop(t[r]._id),e._webAudio||(e._clearSound(t[r]._node),t[r]._node.removeEventListener("error",t[r]._errorFn,!1),t[r]._node.removeEventListener(n._canPlayEvent,t[r]._loadFn,!1),t[r]._node.removeEventListener("ended",t[r]._endFn,!1),n._releaseHtml5Audio(t[r]._node)),delete t[r]._node,e._clearTimer(t[r]._id);var i=n._howls.indexOf(e);i>=0&&n._howls.splice(i,1);var o=!0;for(r=0;r<n._howls.length;r++)if(n._howls[r]._src===e._src||e._src.indexOf(n._howls[r]._src)>=0){o=!1;break}return a&&o&&delete a[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,i=r["_on"+e],a=0;if("number"==typeof t&&(n=t,t=null),t||n)for(a=0;a<i.length;a++){var o=n===i[a].id;if(t===i[a].fn&&o||!t&&o){i.splice(a,1);break}}else if(e)r["_on"+e]=[];else{var s=Object.keys(r);for(a=0;a<s.length;a++)0===s[a].indexOf("_on")&&Array.isArray(r[s[a]])&&(r[s[a]]=[])}return r},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this,i=r["_on"+e],a=i.length-1;a>=0;a--)i[a].id&&i[a].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,i[a].fn),0),i[a].once&&r.off(e,i[a].fn,i[a].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!(!e._loop&&!t._sprite[r][2]);if(t._emit("end",e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var a=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),a)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),t._webAudio||i||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=a[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),this},_cleanBuffer:function(t){var r=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(n._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),r))try{t.bufferSource.buffer=n._scratchBuffer}catch(e){}return t.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var a={},o=function(e){var t=e._src;if(a[t])return e._duration=a[t].duration,void u(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);l(r.buffer,e)}else{var o=new XMLHttpRequest;o.open(e._xhr.method,t,!0),o.withCredentials=e._xhr.withCredentials,o.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){o.setRequestHeader(t,e._xhr.headers[t])})),o.onload=function(){var t=(o.status+"")[0];"0"===t||"2"===t||"3"===t?l(o.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(o)}},s=function(t){try{t.send()}catch(e){t.onerror()}},l=function(e,t){var r=function(){t._emit("loaderror",null,"Decoding audio data failed.")},i=function(e){e&&t._sounds.length>0?(a[t._src]=e,u(t,e)):r()};"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(i).catch(r):n.ctx.decodeAudioData(e,i,r)},u=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},c=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(e){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),r=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=r?parseInt(r[1],10):null;if(t&&i&&i<9){var a=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!a&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};exports$1.Howler=n,exports$1.Howl=r,void 0!==commonjsGlobal?(commonjsGlobal.HowlerGlobal=t,commonjsGlobal.Howler=n,commonjsGlobal.Howl=r,commonjsGlobal.Sound=i):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)}(),
  17. /*!
  18. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  19. *
  20. * howler.js v2.2.3
  21. * howlerjs.com
  22. *
  23. * (c) 2013-2020, James Simpson of GoldFire Studios
  24. * goldfirestudios.com
  25. *
  26. * MIT License
  27. */
  28. function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){var o=this;if(!o.ctx||!o.ctx.listener)return o;var s=o._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,r="number"!=typeof r?s[3]:r,i="number"!=typeof i?s[4]:i,a="number"!=typeof a?s[5]:a,"number"!=typeof e?s:(o._orientation=[e,t,n,r,i,a],void 0!==o.ctx.listener.forwardX?(o.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),o.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),o.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),o.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),o.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),o.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1)):o.ctx.listener.setOrientation(e,t,n,r,i,a),o)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var a=r._getSoundIds(n),o=0;o<a.length;o++){var s=r._soundById(a[o]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,i),"spatial"===i?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,i){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"pos",action:function(){a.pos(e,n,r,i)}}),a;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===i){if("number"!=typeof e)return a._pos;a._pos=[e,n,r]}for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var l=a._soundById(o[s]);if(l){if("number"!=typeof e)return l._pos;l._pos=[e,n,r],l._node&&(l._panner&&!l._panner.pan||t(l,"spatial"),void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):l._panner.setPosition(e,n,r)),a._emit("pos",l._id)}}return a},Howl.prototype.orientation=function(e,n,r,i){var a=this;if(!a._webAudio)return a;if("loaded"!==a._state)return a._queue.push({event:"orientation",action:function(){a.orientation(e,n,r,i)}}),a;if(n="number"!=typeof n?a._orientation[1]:n,r="number"!=typeof r?a._orientation[2]:r,void 0===i){if("number"!=typeof e)return a._orientation;a._orientation=[e,n,r]}for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var l=a._soundById(o[s]);if(l){if("number"!=typeof e)return l._orientation;l._orientation=[e,n,r],l._node&&(l._panner||(l._pos||(l._pos=a._pos||[0,0,-.5]),t(l,"spatial")),void 0!==l._panner.orientationX?(l._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),l._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):l._panner.setOrientation(e,n,r)),a._emit("orientation",l._id)}}return a},Howl.prototype.pannerAttr=function(){var e,n,r,i=this,a=arguments;if(!i._webAudio)return i;if(0===a.length)return i._pannerAttr;if(1===a.length){if("object"!==_typeof2(a[0]))return(r=i._soundById(parseInt(a[0],10)))?r._pannerAttr:i._pannerAttr;e=a[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:i._panningModel})}else 2===a.length&&(e=a[0],n=parseInt(a[1],10));for(var o=i._getSoundIds(n),s=0;s<o.length;s++)if(r=i._soundById(o[s])){var l=r._pannerAttr;l={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:l.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:l.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:l.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:l.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:l.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:l.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:l.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:l.panningModel};var u=r._panner;u?(u.coneInnerAngle=l.coneInnerAngle,u.coneOuterAngle=l.coneOuterAngle,u.coneOuterGain=l.coneOuterGain,u.distanceModel=l.distanceModel,u.maxDistance=l.maxDistance,u.refDistance=l.refDistance,u.rolloffFactor=l.rolloffFactor,u.panningModel=l.panningModel):(r._pos||(r._pos=i._pos||[0,0,-.5]),t(r,"spatial"))}return i},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}();var tick="data:audio/mpeg;base64,UklGRtRSAABXQVZFZm10IBAAAAABAAIARKwAABCxAgAEABA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AE4AXQBeAGkAaABtAG8AcABtAGYAaQBgAF4ATQBOAD4APgAkACQAEAAOAPP/9//g/9r/xv/L/7T/sv+m/6X/l/+b/5f/kP+R/5j/mf+U/6L/pf+w/7D/xf/C/9j/2//w/+//CQAJAB8AIAA3ADUASQBKAFkAWABjAGUAbABqAGgAaQBqAGkAWgBbAFEAUAA7AD0AKQAnABEAEQD4//r/5P/h/8r/zf+6/7j/qf+q/57/nv+X/5b/l/+Z/5v/l/+i/6b/s/+w/8D/wv/Y/9j/7v/s/wQABQAcABwAMgAxAEMARgBVAFIAYABhAGYAZQBoAGkAZABlAFsAWgBRAFEAPAA7ACoALAAVABIA+v///+r/4//N/9T/wP+6/63/sf+j/6D/mv+d/5v/mf+b/5v/p/+o/6//rf/C/8b/1v/R/+j/7v8GAP7/EgAbADEAKQA9AEQAUgBMAFkAXgBkAGAAZABmAGIAYQBbAF0ATgBLAD8AQgArACkAFgAXAAAAAgDs/+f/0v/Y/8b/wP+v/7T/qP+m/6H/n/8=",tock="data:audio/mpeg;base64,UklGRtRSAABXQVZFZm10IBAAAAABAAIARKwAABCxAgAEABAAZGF0YbBSAAD5//n/9v/2//L/8v/2//X/7P/u//T/8f/m/+r/9v/z/wAAAAD3//r/AgD8/wUACwAYABYADAAKAA8AFAAaABIAJAArAB0AGgAWABcAGwAbAB0AHAAWABYAFQAWAAcABwARABEAEQAQAAsADgAHAAEA9f/9//f/8P8EAAkACwAIAPn/+v8FAAUADAANAAUAAwDy//T/8//y/+z/7f/8//n/8P/0/w4ACgD2//r/CwAIAP3//v8CAAIA6v/r//b/9P/n/+j/9v/2//H/8v/6//j///8DAAMA/f/y//j/7//r/wMABAAHAAkA6//n/wIABwABAPz/7P/w//T/8v8FAAUA8//0//f/9f/4//r/AAAAAP7//P/9////+P/1/+//8//s/+j/7P/w/97/2f/5//3/7P/q/+r/6v/t/+7/8P/v//v/+/8BAAEA/v///wMAAQAAAAMAAwD//+j/7P/8//j/+P/8//b/9P/w//D/CQAJADUAN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ev97f3",tockAndTick={tick:tick,tock:tock},browserInfo$1=browser(),metronomeData=exports("aV",reactive({disable:!0,initPlayerState:!1,lineShow:!1,isClick:!1,metro:null,metroList:[],activeList:[],metroMeasure:[],activeIndex:null,activeMetro:{}})),toggleLine=function(){if(metronomeData.lineShow){var e=document.querySelector("#cursorImg-0");e&&(metronomeData.activeMetro.isRestFlag?e.classList.remove("lineHide"):e.classList.add("lineHide"))}};watch((function(){return metronomeData.lineShow}),(function(){var e=document.querySelector("#cursorImg-0");if(e){var t=state$1.times[state$1.activeNoteIndex];metronomeData.lineShow&&!t.isRestFlag?e.classList.add("lineHide"):e.classList.remove("lineHide")}}));var Metronome=function(){function e(t){var n=this;_classCallCheck2(this,e),_defineProperty2(this,"playType","tick"),_defineProperty2(this,"source",null),_defineProperty2(this,"source1",null),_defineProperty2(this,"source2",null),_defineProperty2(this,"sound",(function(e){e=setCurrentTime(e);for(var t=-1,r=-1,i=0;i<metronomeData.metroList.length;i++){var a=metronomeData.metroList[i];if(!(e>=a))break;t=i,r=a}if(t>-1&&metronomeData.activeIndex!==t)return metronomeData.activeIndex=t,metronomeData.activeMetro=n.getStep(r),n.playAudio(),metronomeData.isClick=!1,void toggleLine();metronomeData.isClick=!1})),_defineProperty2(this,"playAudio",(function(){var e;metronomeData.initPlayerState&&(n.source=0===(null===(e=metronomeData.activeMetro)||void 0===e?void 0:e.index)?n.source1:n.source2,n.source.volume(metronomeData.disable?0:.4),n.source.play())})),_defineProperty2(this,"loadAudio1",(function(){return new howler.Howl({src:tockAndTick.tick})})),_defineProperty2(this,"loadAudio2",(function(){return new howler.Howl({src:tockAndTick.tock})}))}return _createClass2(e,[{key:"init",value:function(e){this.calculation(e),metronomeData.activeList=[]}},{key:"initPlayer",value:function(){this.source1||(this.source1=this.loadAudio1()),this.source2||(this.source2=this.loadAudio2()),metronomeData.initPlayerState=!0}},{key:"selectPlay",value:function(){}},{key:"getStep",value:function(e){for(var t=0;t<metronomeData.metroMeasure.length;t++){var n=metronomeData.metroMeasure[t].find((function(t){return t.time===e}));if(n)return n}return{}}},{key:"calculation",value:function(e){for(var t,n=[],r=-1,i=function(){var t,i,o,s,l=e[a],u=(null==l||null===(t=l.noteElement)||void 0===t||null===(i=t.sourceMeasure)||void 0===i?void 0:i.MeasureNumberXML)||-1,c=null==l||null===(o=l.noteElement)||void 0===o||null===(s=o.sourceMeasure)||void 0===s?void 0:s.measureListIndex;if(u>-1&&u!=r){var h,d,f,p,v,m,g,y,b,A={measureNumberXML:u,measureNumberIndex:c,numerator:(null==l||null===(h=l.noteElement)||void 0===h||null===(d=h.sourceMeasure)||void 0===d||null===(f=d.ActiveTimeSignature)||void 0===f?void 0:f.numerator)||0,start:l.measures[0].time,end:l.measures[l.measures.length-1].endtime,time:l.measures[l.measures.length-1].endtime-l.measures[0].time,stave_x:(null==l||null===(p=l.noteElement)||void 0===p||null===(v=p.sourceMeasure)||void 0===v||null===(m=v.verticalMeasureList)||void 0===m||null===(g=m[0])||void 0===g||null===(y=g.stave)||void 0===y?void 0:y.x)||0,end_x:(null==l||null===(b=l.stave)||void 0===b?void 0:b.end_x)||0,stepList:[],svgs:[],isRestFlag:l.isRestFlag};if([121].includes(state$1.subjectId)){var S=e.filter((function(e){var t,n;return(null==e||null===(t=e.noteElement)||void 0===t||null===(n=t.sourceMeasure)||void 0===n?void 0:n.measureListIndex)==c}));l.measures=S,A.start=l.measures[0].time,A.end=l.measures[l.measures.length-1].endtime,A.time=l.measures[l.measures.length-1].endtime-l.measures[0].time;try{var x=l.noteElement.sourceMeasure.verticalMeasureList.reduce((function(e,t){return e.push.apply(e,_toConsumableArray2(t.vfVoices[1].tickables)),e}),[]),w=[];A.svgs=x.map((function(e){var t=e.getBoundingBox().x;if(!w.includes(t)&&"w"!==e.duration)return w.push(t),e._start_x=t,e})).filter(Boolean).sort((function(e,t){return e._start_x-t._start_x}))}catch(_){console.log(_)}A.stepList=calculateMutilpleMetroStep(l.measures,A)}else A.stepList=calculateMetroStep(l.measures,A);n.push(A),r=u}},a=0;a<e.length;a++)i();var o=[],s=[];try{for(var l=0;l<n.length;l++){var u=n[l],c=u.time/u.numerator,h=([121].includes(state$1.subjectId)?95:100)/(u.numerator+1);s[l]=[];for(var d=0;d<u.numerator;d++){var f,p=c*d+u.start;o.push(p);var v="";if(u.stepList[d])v=u.stepList[d]+"px";else{var m=u.stepList[d-1];v=m?m.toString().indexOf("%")>-1?"".concat(m," + ").concat(h,"%"):"".concat(m,"px + ").concat(h,"%"):"".concat(h,"%"),u.stepList[d]=v}s[l].push({index:d,time:p,left:(null===(f=v)||void 0===f?void 0:f.indexOf("%"))>-1?"calc(".concat(v,")"):v,measureNumberXML:u.measureNumberXML,isRestFlag:u.isRestFlag})}}}catch(g){console.log(g)}metronomeData.metroList=o,metronomeData.metroMeasure=s,metronomeData.activeMetro=(null===(t=s[0])||void 0===t?void 0:t[0])||{}}}]),e}();function calculateMetroStep(e,t){var n=e.reduce((function(e,t){return e+=t._noteLength}),0),r=n/t.numerator;if(1===e.length){var i=e[0].svgElement;if(i&&!i.isRest()){for(var a,o,s,l,u,c,h,d,f=(null==i||null===(a=i.attrs)||void 0===a||null===(o=a.el)||void 0===o||null===(s=o.parentElement)||void 0===s||null===(l=s.parentElement)||void 0===l||null===(u=l.getBoundingClientRect)||void 0===u?void 0:u.call(l))||{x:0,right:0},p=(null==i||null===(c=i.attrs)||void 0===c||null===(h=c.el)||void 0===h||null===(d=h.getBoundingClientRect)||void 0===d?void 0:d.call(h))||{x:0},v=Math.abs(f.right-p.x)/t.numerator,m=[],g=0;g<t.numerator;g++)m.push(p.x-f.x+g*v);return m}try{if(1===t.measureNumberXML&&i&&i.isRest()){for(var y,b,A,S,x,w,_,E,k=(null==i||null===(y=i.attrs)||void 0===y||null===(b=y.el)||void 0===b||null===(A=b.parentElement)||void 0===A||null===(S=A.parentElement)||void 0===S||null===(x=S.getBoundingClientRect)||void 0===x?void 0:x.call(S))||{x:0,right:0},C=(null==i||null===(w=i.attrs)||void 0===w||null===(_=w.el)||void 0===_||null===(E=_.getBoundingClientRect)||void 0===E?void 0:E.call(_))||{x:0},M=Math.abs(k.right-C.x)/t.numerator,P=[],I=-1;I<t.numerator-1;I++)P.push(C.x-k.x+I*M);return P}}catch(Pe){console.log("🚀 ~ error:",Pe)}return[]}for(var T=0,B=[],R=[],L=0;L<e.length;L++){var N=e[L];N.index=L,T+=N._noteLength;var F=Math.floor(T/r);if(F>=1){var D,O,V,z,G,H,U,j,Q,Y,W,X;T-=r;var K=(null==N||null===(D=N.svgElement)||void 0===D||null===(O=D.attrs)||void 0===O||null===(V=O.el)||void 0===V||null===(z=V.parentElement)||void 0===z||null===(G=z.parentElement)||void 0===G||null===(H=(U=G).getBoundingClientRect)||void 0===H?void 0:H.call(U))||{x:0};if(B.length>0){var J,$,q,Z,ee,te,ne=(null===(J=B[0])||void 0===J||null===($=J.svgElement)||void 0===$||null===(q=$.attrs)||void 0===q||null===(Z=q.el)||void 0===Z||null===(ee=(te=Z).getBoundingClientRect)||void 0===ee?void 0:ee.call(te))||{x:0},re=ne.x-K.x;if(B[0]._noteLength/r>=1){var ie,ae,oe,se,le,ue,ce=(null===(ie=e[B[0].index+1])||void 0===ie||null===(ae=ie.svgElement)||void 0===ae||null===(oe=ae.attrs)||void 0===oe||null===(se=oe.el)||void 0===se||null===(le=(ue=se).getBoundingClientRect)||void 0===le?void 0:le.call(ue))||{x:K.right},he=Math.abs(ne.x-ce.x)/2;re=ne.x-K.x+he}R.push(re)}else{var de,fe,pe,ve,me,ge=((null==N||null===(de=N.svgElement)||void 0===de||null===(fe=de.attrs)||void 0===fe||null===(pe=fe.el)||void 0===pe||null===(ve=(me=pe).getBoundingClientRect)||void 0===ve?void 0:ve.call(me))||{x:0}).x-K.x;R.push(ge)}B=[];var ye=(null==N||null===(j=N.svgElement)||void 0===j||null===(Q=j.attrs)||void 0===Q||null===(Y=Q.el)||void 0===Y||null===(W=(X=Y).getBoundingClientRect)||void 0===W?void 0:W.call(X))||{x:0},be=ye.x-K.x,Ae=0;if(F>1){var Se,xe,we,_e,Ee,ke,Ce=(null===(Se=e[L+1])||void 0===Se||null===(xe=Se.svgElement)||void 0===xe||null===(we=xe.attrs)||void 0===we||null===(_e=we.el)||void 0===_e||null===(Ee=(ke=_e).getBoundingClientRect)||void 0===Ee?void 0:Ee.call(ke))||{x:K.right};Ae=Math.abs(ye.x-Ce.x)/F}for(var Me=1;Me<F;Me++)T-=r,R.push(be+Ae*Me)}T>Number.EPSILON&&T>0&&B.push(N)}return R=R.reduce((function(e,t){return e.includes(t)?e.push(void 0):e.push(t),e}),[]),R}function calculateMutilpleMetroStep(e,t){var n,r,i,a,o,s,l,u=t.time/t.numerator,c=(null===(n=e[0])||void 0===n||null===(r=n.svgElement)||void 0===r||null===(i=r.attrs)||void 0===i||null===(a=i.el)||void 0===a||null===(o=a.parentElement)||void 0===o||null===(s=o.parentElement)||void 0===s||null===(l=s.getBoundingClientRect)||void 0===l?void 0:l.call(s))||{x:0};if(1===e.length){var h,d,f,p=t.svgs[0],v=(null==p||null===(h=p.attrs)||void 0===h||null===(d=h.el)||void 0===d||null===(f=d.getBoundingClientRect)||void 0===f?void 0:f.call(d))||{x:0};return p&&!p.isRest()?[v.x-c.x]:[]}for(var m=0,g=[],y=[],b=0;b<e.length;b++){var A,S,x,w,_,E=e[b];E._index=b;var k=E.endtime-E.time;m+=k;var C=null===(A=t.svgs[b])||void 0===A||null===(S=A.attrs)||void 0===S?void 0:S.el,M=(null===(x=C)||void 0===x||null===(w=(_=x).getBoundingClientRect)||void 0===w?void 0:w.call(_))||{x:0};if(k>u){m-=u;var P,I,T,B,R,L=M.x-c.x;if(g.length>0)L=(M=(null===(T=C=null===(P=t.svgs[g[0]._index])||void 0===P||null===(I=P.attrs)||void 0===I?void 0:I.el)||void 0===T||null===(B=(R=T).getBoundingClientRect)||void 0===B?void 0:B.call(R))||{x:0}).x-c.x;y.push(L),g=[]}else g.push(E);if(Math.abs(m-u)<.001){var N,F,D,O,V,z=M.x-c.x;if(g.length>0)z=(M=(null===(D=C=null===(N=t.svgs[g[0]._index])||void 0===N||null===(F=N.attrs)||void 0===F?void 0:F.el)||void 0===D||null===(O=(V=D).getBoundingClientRect)||void 0===O?void 0:O.call(V))||{x:0}).x-c.x;y.push(z),m=0,g=[]}}return y=y.reduce((function(e,t){return e.includes(t)?e.push(void 0):e.push(t),e}),[]),y}function setCurrentTime(e){return browserInfo$1.huawei||browserInfo$1.xiaomi?e+=.125:browserInfo$1.android?e+=.11:browserInfo$1.ios&&(e+=.01),e}exports("be",Metronome);var GradualVersion=function(e){return e[e.BASE=0]="BASE",e[e.ENSEMBLE=1]="ENSEMBLE",e}(GradualVersion||{}),context={locks:{},zIndex:2e3,enableRipple:!0};reactive(context);var Context=exports("X",reactive(context)),isString=function(e){return"string"==typeof e},isBoolean=function(e){return"boolean"==typeof e},isNumber=function(e){return"number"==typeof e},isPlainObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},isFunction$1=exports("a2",(function(e){return"function"==typeof e})),isArray$1=function(e){return Array.isArray(e)},isURL=function(e){return!!e&&/^(http)|(\.*\/)/.test(e)},toNumber=function(e){return null==e?0:isString(e)?(e=parseFloat(e),e=Number.isNaN(e)?0:e):isBoolean(e)?Number(e):e},inBrowser=function(){return"undefined"!=typeof window},camelize=exports("a1",(function(e){return e.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}))}));function getViewportSize(){var e=window,t=e.innerWidth,n=e.innerHeight;return t>n?{vMin:n,vMax:t}:{vMin:t,vMax:n}}var isRem=function(e){return isString(e)&&e.endsWith("rem")},isPx=function(e){return isString(e)&&e.endsWith("px")||isNumber(e)},isPercent=function(e){return isString(e)&&e.endsWith("%")},isVw=function(e){return isString(e)&&e.endsWith("vw")},isVh=function(e){return isString(e)&&e.endsWith("vh")},isVMin=function(e){return isString(e)&&e.endsWith("vmin")},isVMax=function(e){return isString(e)&&e.endsWith("vmax")},isCalc=function(e){return isString(e)&&e.startsWith("calc(")},isVar=function(e){return isString(e)&&e.startsWith("var(")},toPxNum=function(e){if(isNumber(e))return e;if(isPx(e))return+e.replace("px","");if(isVw(e))return+e.replace("vw","")*window.innerWidth/100;if(isVh(e))return+e.replace("vh","")*window.innerHeight/100;if(isRem(e)){var t=+e.replace("rem",""),n=window.getComputedStyle(document.documentElement).fontSize;return t*parseFloat(n)}return isVMin(e)?getViewportSize().vMin:isVMax(e)?getViewportSize().vMax:isString(e)?toNumber(e):0},toSizeUnit=exports("a5",(function(e){if(null!=e)return isPercent(e)||isVw(e)||isVh(e)||isRem(e)||isCalc(e)||isVar(e)||isVMin(e)||isVMax(e)?e:toPxNum(e)+"px"})),multiplySizeUnit=exports("am",(function(e,t){if(void 0===t&&(t=1),null!=e){var n=toSizeUnit(e),r=n.match(/(vh|%|rem|px|vw)$/)[0];return""+parseFloat(n)*t+r}}));function supportTouch(){return"undefined"!=typeof window&&"ontouchstart"in window}function useMounted(e){var t=!1;onMounted((function(){e(),nextTick((function(){t=!0}))})),onActivated((function(){t&&e()}))}function useEventListener(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(inBrowser()){var i,a=r.passive,o=void 0!==a&&a,s=r.capture,l=void 0!==s&&s,u=!1,c=!1,h=function(e){if(!u&&!c){var r=unref(e);r&&(r.addEventListener(t,n,{passive:o,capture:l}),u=!0)}},d=function(e){if(u&&!c){var r=unref(e);r&&(r.removeEventListener(t,n,{capture:l}),u=!1)}};isRef(e)&&(i=watch((function(){return e.value}),(function(e,t){d(t),h(e)})));return useMounted((function(){h(e)})),onBeforeUnmount((function(){d(e)})),onDeactivated((function(){d(e)})),function(){null==i||i(),d(e),c=!0}}}var __rest=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function keyInProvides(e){return e in getCurrentInstance().provides}function useParent(e){if(!keyInProvides(e))return{index:null,parentProvider:null,bindParent:null};var t=inject(e),n=t.childInstances,r=t.collect,i=t.clear,a=__rest(t,["childInstances","collect","clear"]),o=getCurrentInstance();return{index:computed((function(){return n.indexOf(o)})),parentProvider:a,bindParent:function(e){onMounted((function(){nextTick().then((function(){r(o,e)}))})),onBeforeUnmount((function(){nextTick().then((function(){i(o,e)}))}))}}}function asyncGeneratorStep$1(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator$1(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){asyncGeneratorStep$1(a,r,i,o,s,"next",e)}function s(e){asyncGeneratorStep$1(a,r,i,o,s,"throw",e)}o(void 0)}))}}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends$2.apply(this,arguments)}function pickProps(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=e[n],t}),{}):e[t]}function mount(e){var t=createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount:function(){t.unmount(),document.body.removeChild(n)}}}function mountInstance(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),{unmountInstance:mount({setup:function(){return function(){return h(e,_extends$2({},t,n))}}}).unmount}}function useValidation(){var e=ref(""),t=function(){var t=_asyncToGenerator$1(_regeneratorRuntime().mark((function t(n,r,i){var a;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(isArray$1(n)&&n.length){t.next=2;break}return t.abrupt("return",!0);case 2:return t.next=4,Promise.all(n.map((function(e){return e(r,i)})));case 4:return a=t.sent,t.abrupt("return",!a.some((function(t){return!0!==t&&(e.value=String(t),!0)})));case 6:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),n=function(){var n=_asyncToGenerator$1(_regeneratorRuntime().mark((function n(r,i,a,o,s){return _regeneratorRuntime().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.includes(i)){n.next=6;break}return n.next=3,t(a,o,s);case 3:if(n.t0=n.sent,!n.t0){n.next=6;break}e.value="";case 6:case"end":return n.stop()}}),n)})));return function(e,t,r,i,a){return n.apply(this,arguments)}}();return{errorMessage:e,validate:t,resetValidation:function(){e.value=""},validateWithTrigger:n}}function useRouteListener(e){inBrowser()&&(useEventListener(window,"hashchange",e),useEventListener(window,"popstate",e))}function useTeleport(){var e=ref(!1);return onActivated((function(){e.value=!1})),onDeactivated((function(){e.value=!0})),{disabled:e}}function createNamespace(e){var t="var-"+e;return{n:function(e){return e?"$"===e[0]?e.replace("$","var"):e.startsWith("--")?""+t+e:t+"__"+e:t},classes:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){if(isArray$1(e)){var t=_slicedToArray(e,3),n=t[0],r=t[1],i=t[2];return n?r:void 0===i?null:i}return e}))}}}function call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return isArray$1(e)?e.map((function(e){return e.apply(void 0,n)})):e?e.apply(void 0,n):void 0}function defineListenerProp(e){return{type:[Function,Array],default:e}}function resolveLock(){Object.keys(Context.locks).length<=0?document.body.classList.remove("var--lock"):document.body.classList.add("var--lock")}function addLock(e){Context.locks[e]=1,resolveLock()}function releaseLock(e){delete Context.locks[e],resolveLock()}function useLock(e,t){var n=getCurrentInstance().uid;t&&watch(t,(function(t){!1===t?releaseLock(n):!0===t&&!0===e()&&addLock(n)})),watch(e,(function(e){t&&!1===t()||(!0===e?addLock(n):releaseLock(n))})),onBeforeMount((function(){t&&!1===t()||!0===e()&&addLock(n)})),onUnmounted((function(){t&&!1===t()||!0===e()&&releaseLock(n)})),onActivated((function(){t&&!1===t()||!0===e()&&addLock(n)})),onDeactivated((function(){t&&!1===t()||!0===e()&&releaseLock(n)}))}function useZIndex(e,t){var n=ref(Context.zIndex);return watch(e,(function(e){e&&(Context.zIndex+=t,n.value=Context.zIndex)}),{immediate:!0}),{zIndex:n}}var props$3={name:{type:String},size:{type:[Number,String]},color:{type:String},namespace:{type:String,default:"var-icon"},transition:{type:[Number,String],default:0},animationClass:{type:String},onClick:defineListenerProp()};function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){asyncGeneratorStep(a,r,i,o,s,"next",e)}function s(e){asyncGeneratorStep(a,r,i,o,s,"throw",e)}o(void 0)}))}}var _createNamespace=createNamespace("icon"),n$3=_createNamespace.n,classes$2=_createNamespace.classes;function __render__$3(e,t){return openBlock(),createBlock(resolveDynamicComponent(e.isURL(e.name)?"img":"i"),{class:normalizeClass(e.classes(e.n(),[e.namespace!==e.n(),e.namespace],e.namespace+"--set",[e.isURL(e.name),e.n("image"),e.namespace+"-"+e.nextName],[e.animateInProgress,null==e.animationClass?e.n("--shrinking"):e.animationClass])),style:normalizeStyle({color:e.color,"transition-duration":e.toNumber(e.transition)+"ms",width:e.isURL(e.name)?e.toSizeUnit(e.size):null,height:e.isURL(e.name)?e.toSizeUnit(e.size):null,fontSize:e.toSizeUnit(e.size)}),src:e.isURL(e.name)?e.nextName:null,onClick:e.onClick},null,8,["class","style","src","onClick"])}var __sfc__$3=defineComponent({name:"VarIcon",props:props$3,setup:function(e){var t=ref(""),n=ref(!1),r=function(){var r=_asyncToGenerator(_regeneratorRuntime().mark((function r(i,a){var o;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.transition,null!=a&&0!==toNumber(o)){r.next=4;break}return t.value=i,r.abrupt("return");case 4:return n.value=!0,r.next=7,nextTick();case 7:setTimeout((function(){null!=a&&(t.value=i),n.value=!1}),toNumber(o));case 8:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}();return watch((function(){return e.name}),r,{immediate:!0}),{n:n$3,classes:classes$2,nextName:t,animateInProgress:n,isURL:isURL,toNumber:toNumber,toSizeUnit:toSizeUnit}}});__sfc__$3.render=__render__$3;var Icon=exports("a4",__sfc__$3);function typeValidator$1(e){return["circle","wave","cube","rect","disappear"].includes(e)}function sizeValidator(e){return["normal","mini","small","large"].includes(e)}Icon.install=function(e){e.component(Icon.name,Icon)};var props$2={type:{type:String,default:"circle",validator:typeValidator$1},radius:{type:[String,Number]},size:{type:String,default:"normal",validator:sizeValidator},color:{type:String},description:{type:String},loading:{type:Boolean,default:!1}},_createNamespace2=createNamespace("loading"),n$2=_createNamespace2.n,classes$1=_createNamespace2.classes,_withScopeId=function(e){return pushScopeId(""),e=e(),popScopeId(),e},_hoisted_1=_withScopeId((function(){return createBaseVNode("svg",{viewBox:"25 25 50 50"},[createBaseVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"})],-1)})),_hoisted_2=[_hoisted_1];function __render__$2(e,t){return openBlock(),createElementBlock("div",{class:normalizeClass(e.n())},[e.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.classes(e.n("content"),[e.loading,e.n("content--active")]))},[renderSlot(e.$slots,"default"),e.loading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.n("content-mask"))},null,2)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),e.isShow?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.classes(e.n("$--box"),e.n("body"),[e.$slots.default,e.n("inside")]))},["circle"===e.type?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.n("circle"))},[createBaseVNode("span",{class:normalizeClass(e.classes(e.n("circle-block"),e.n("circle-block--"+e.size))),style:normalizeStyle({width:e.multiplySizeUnit(e.radius,2),height:e.multiplySizeUnit(e.radius,2),color:e.color})},_hoisted_2,6)],2)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.loadingTypeDict,(function(t,n){return openBlock(),createElementBlock(Fragment,{key:n},[e.type===n?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.classes(e.n(n),e.n(n+"--"+e.size)))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t,(function(t){return openBlock(),createElementBlock("div",{key:t+n,style:normalizeStyle({backgroundColor:e.color}),class:normalizeClass(e.classes(e.n(n+"-item"),e.n(n+"-item--"+e.size)))},null,6)})),128))],2)):createCommentVNode("v-if",!0)],64)})),128)),e.$slots.description||e.description?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.classes(e.n("description"),e.n("description--"+e.size))),style:normalizeStyle({color:e.color})},[renderSlot(e.$slots,"description",{},(function(){return[createTextVNode(toDisplayString(e.description),1)]}))],6)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],2)}var __sfc__$2=defineComponent({name:"VarLoading",props:props$2,setup:function(e,t){var n=t.slots,r=computed((function(){return!call(n.default)||e.loading}));return{n:n$2,classes:classes$1,multiplySizeUnit:multiplySizeUnit,loadingTypeDict:{wave:5,cube:4,rect:8,disappear:3},isShow:r}}});__sfc__$2.render=__render__$2;var Loading=exports("ak",__sfc__$2);function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends$1.apply(this,arguments)}function positionValidator(e){return["top","center","bottom"].includes(e)}function typeValidator(e){return SNACKBAR_TYPE.includes(e)}Loading.install=function(e){e.component(Loading.name,Loading)};var props$1={type:{type:String,validator:typeValidator},position:{type:String,default:"top",validator:positionValidator},content:{type:String},contentClass:{type:String},duration:{type:Number,default:3e3},vertical:{type:Boolean,default:!1},loadingType:pickProps(props$2,"type"),loadingSize:pickProps(props$2,"size"),loadingRadius:pickProps(props$2,"radius"),loadingColor:_extends$1({},pickProps(props$2,"color"),{default:"currentColor"}),lockScroll:{type:Boolean,default:!1},show:{type:Boolean,default:!1},teleport:{type:String,default:"body"},forbidClick:{type:Boolean,default:!1},onOpen:defineListenerProp(),onOpened:defineListenerProp(),onClose:defineListenerProp(),onClosed:defineListenerProp(),"onUpdate:show":defineListenerProp(),_update:{type:String}},_createNamespace3=createNamespace("snackbar"),n$1=_createNamespace3.n,classes=_createNamespace3.classes,ICON_TYPE_DICT={success:"checkbox-marked-circle",warning:"warning",info:"information",error:"error",loading:""};function __render__$1(e,t){var n=resolveComponent("var-icon"),r=resolveComponent("var-loading");return withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(e.n()),style:normalizeStyle({pointerEvents:e.isForbidClick?"auto":"none",zIndex:e.zIndex})},[createBaseVNode("div",{class:normalizeClass(e.classes(e.n("wrapper"),e.n("wrapper-"+e.position),e.n("$-elevation--4"),[e.vertical,e.n("vertical")],[e.type&&e.SNACKBAR_TYPE.includes(e.type),e.n("wrapper-"+e.type)])),style:normalizeStyle({zIndex:e.zIndex})},[createBaseVNode("div",{class:normalizeClass([e.n("content"),e.contentClass])},[renderSlot(e.$slots,"default",{},(function(){return[createTextVNode(toDisplayString(e.content),1)]}))],2),createBaseVNode("div",{class:normalizeClass(e.n("action"))},[e.iconName?(openBlock(),createBlock(n,{key:0,name:e.iconName},null,8,["name"])):createCommentVNode("v-if",!0),"loading"===e.type?(openBlock(),createBlock(r,{key:1,type:e.loadingType,size:e.loadingSize,color:e.loadingColor,radius:e.loadingRadius},null,8,["type","size","color","radius"])):createCommentVNode("v-if",!0),renderSlot(e.$slots,"action")],2)],6)],6)),[[vShow,e.show]])}var __sfc__$1=defineComponent({name:"VarSnackbarCore",components:{VarLoading:Loading,VarIcon:Icon},props:props$1,setup:function(e){var t=ref(null),n=useZIndex((function(){return e.show}),1).zIndex;useLock((function(){return e.show}),(function(){return e.lockScroll}));var r=computed((function(){return"loading"===e.type||e.forbidClick})),i=computed((function(){return e.type?ICON_TYPE_DICT[e.type]:""})),a=function(){t.value=setTimeout((function(){"loading"!==e.type&&call(e["onUpdate:show"],!1)}),e.duration)};return watch((function(){return e.show}),(function(n){n?(call(e.onOpen),a()):!1===n&&(clearTimeout(t.value),call(e.onClose))})),watch((function(){return e._update}),(function(){clearTimeout(t.value),a()})),useMounted((function(){e.show&&(call(e.onOpen),a())})),{SNACKBAR_TYPE:SNACKBAR_TYPE,n:n$1,classes:classes,zIndex:n,iconName:i,isForbidClick:r}}});__sfc__$1.render=__render__$1;var VarSnackbarCore=__sfc__$1,_createNamespace4=createNamespace("snackbar"),n=_createNamespace4.n;function __render__(e,t){var n=resolveComponent("var-snackbar-core");return openBlock(),createBlock(Teleport,{to:e.teleport,disabled:e.disabled},[createVNode(Transition,{name:e.n()+"-fade",onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:withCtx((function(){return[createVNode(n,mergeProps(e.$props,{class:e.n("transition")}),{action:withCtx((function(){return[renderSlot(e.$slots,"action")]})),default:withCtx((function(){return[renderSlot(e.$slots,"default",{},(function(){return[createTextVNode(toDisplayString(e.content),1)]}))]})),_:3},16,["class"])]})),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var __sfc__=defineComponent({name:"VarSnackbar",components:{VarSnackbarCore:VarSnackbarCore},props:props$1,setup:function(){var e=useTeleport().disabled;return{n:n,disabled:e}}});__sfc__.render=__render__;var VarSnackbar=__sfc__;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_extends.apply(this,arguments)}function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var SNACKBAR_TYPE=["loading","success","warning","info","error"],sid=0,isMount=!1,unmount,isAllowMultiple=!1,defaultOptionsValue={type:void 0,content:"",position:"top",duration:3e3,vertical:!1,contentClass:void 0,loadingType:"circle",loadingSize:"normal",lockScroll:!1,teleport:"body",forbidClick:!1,onOpen:function(){},onOpened:function(){},onClose:function(){},onClosed:function(){}},uniqSnackbarOptions=reactive([]),defaultOptions=defaultOptionsValue,transitionGroupProps={name:"var-snackbar-fade",tag:"div",class:"var-transition-group"},TransitionGroupHost={setup:function(){return function(){var e=uniqSnackbarOptions.map((function(e){var t=e.id,n=e.reactiveSnackOptions,r=e._update,i=document.querySelector(".var-transition-group");n.forbidClick||"loading"===n.type?i.classList.add("var-pointer-auto"):i.classList.remove("var-pointer-auto"),isAllowMultiple&&(n.position="top");var a=_extends({position:isAllowMultiple?"relative":"absolute"},getTop(n.position));return createVNode(VarSnackbarCore,mergeProps(n,{key:t,style:a,"data-id":t,_update:r,show:n.show,"onUpdate:show":function(e){return n.show=e}}),null)}));return createVNode(TransitionGroup,mergeProps(transitionGroupProps,{style:{zIndex:Context.zIndex},onAfterEnter:opened,onAfterLeave:removeUniqOption}),_isSlot(e)?e:{default:function(){return[e]}})}}},Snackbar=function(e){var t=normalizeOptions(e),n=reactive(_extends({},defaultOptions,t));n.show=!0,isMount||(isMount=!0,unmount=mountInstance(TransitionGroupHost).unmountInstance);var r=uniqSnackbarOptions.length,i={id:sid++,reactiveSnackOptions:n};0===r||isAllowMultiple?addUniqOption(i):updateUniqOption(n,"update-"+sid);return{clear:function(){!isAllowMultiple&&uniqSnackbarOptions.length?uniqSnackbarOptions[0].reactiveSnackOptions.show=!1:n.show=!1}}};function opened(e){var t=e.getAttribute("data-id"),n=uniqSnackbarOptions.find((function(e){return e.id===toNumber(t)}));n&&call(n.reactiveSnackOptions.onOpened)}function removeUniqOption(e){e.parentElement&&e.parentElement.classList.remove("var-pointer-auto");var t=e.getAttribute("data-id"),n=uniqSnackbarOptions.find((function(e){return e.id===toNumber(t)}));n&&(n.animationEnd=!0,call(n.reactiveSnackOptions.onClosed));var r=uniqSnackbarOptions.every((function(e){return e.animationEnd}));r&&(call(unmount),uniqSnackbarOptions=reactive([]),isMount=!1)}function addUniqOption(e){uniqSnackbarOptions.push(e)}function normalizeOptions(e){return void 0===e&&(e={}),isString(e)?{content:e}:e}function updateUniqOption(e,t){var n=_slicedToArray(uniqSnackbarOptions,1)[0];n.reactiveSnackOptions=_extends({},n.reactiveSnackOptions,e),n._update=t}function getTop(e){return void 0===e&&(e="top"),"bottom"===e?_defineProperty2({},e,"5%"):{top:"top"===e?"5%":"45%"}}SNACKBAR_TYPE.forEach((function(e){Snackbar[e]=function(t){return isPlainObject(t)?t.type=e:t={content:t,type:e},Snackbar(t)}})),Snackbar.install=function(e){e.component(VarSnackbar.name,VarSnackbar)},Snackbar.allowMultiple=function(e){void 0===e&&(e=!1),e!==isAllowMultiple&&(uniqSnackbarOptions.forEach((function(e){e.reactiveSnackOptions.show=!1})),isAllowMultiple=e)},Snackbar.clear=function(){uniqSnackbarOptions.forEach((function(e){e.reactiveSnackOptions.show=!1}))},Snackbar.setDefaultOptions=function(e){defaultOptions=e},Snackbar.resetDefaultOptions=function(){defaultOptions=defaultOptionsValue},Snackbar.Component=VarSnackbar,VarSnackbar.install=function(e){e.component(VarSnackbar.name,VarSnackbar)};var Snackbar$1=exports("au",Snackbar),Image1=""+new URL("5-d8bfbf51.png",module.meta.url).href,Image2=""+new URL("4-cfa387c7.png",module.meta.url).href,Image3=""+new URL("3-d02c685a.png",module.meta.url).href,Image4=""+new URL("2-5c4c2ef5.png",module.meta.url).href,Image5=""+new URL("1-a0d5037d.png",module.meta.url).href,clx1=""+new URL("clx5-b3331931.svg",module.meta.url).href,clx2=""+new URL("clx4-7a8a1657.svg",module.meta.url).href,clx3=""+new URL("clx3-82262a8a.svg",module.meta.url).href,clx4=""+new URL("clx2-99f2ced3.svg",module.meta.url).href,clx5=""+new URL("clx1-3d063166.svg",module.meta.url).href,good="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAACQCAMAAABOB0IDAAADAFBMVEUAAAADBB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hOEtUtKE2iQDk33w1Gq+h2oX3dlASkExmKOnwIRO/Cu75nWOJJE850C2++A2Oq7LgBuCO96wZFTwrK0LyGm+9Rz2kxSHsSKO0RmPMuMKr5Zc+xnKQJZ9JWXmn0sUE8ysIZUcHd950YeGNQUuMt9QLV9xgr1rdSwbi7IwNvFBJKnIBd7S8aryEFbHcH3ri0BxaP/gKdEB7KYrDIcgAAAABJRU5ErkJggg==",scoreIcon={good:good,bad:bad,perfect:perfect,great:great},leveByScoreMeasureIcons=[{icon:scoreIcon.bad,text:"bad",color:"#EE4C6A"},{icon:scoreIcon.good,text:"good",color:"#FF958B"},{icon:scoreIcon.great,text:"great",color:"#FF8E5A"},{icon:scoreIcon.perfect,text:"perfect",color:"#516AFF"}],icons=[{img:Image1,tips:"你的演奏不太好,再练一练吧~",mome:"敢于尝试",clxImg:clx1,clxtip:"你的演奏不太好,音准和完整性还需加强,再练一练吧~",clxmome:"敢于尝试"},{img:Image2,tips:"你的演奏还不熟练,加紧训练才能有好成绩哦~",mome:"还要加油哦~",clxImg:clx2,clxtip:"你的演奏还不熟练,音准和完整性还需加强,加紧训练才能有好成绩哦~",clxmome:"还要加油哦~"},{img:Image3,tips:"你的演奏还不流畅,科学的练习才能更完美哦~",mome:"突破自我",clxImg:clx3,clxtip:"你的演奏还不流畅,音准和节奏还需加强,科学的练习才能更完美哦~",clxmome:"突破自我"},{img:Image4,tips:"你的演奏还不错,继续加油吧,离完美就差一步啦~",mome:"崭露头角",clxImg:clx4,clxtip:"你的演奏还不错,继续加油吧,加强音准,离完美就差一步啦~",clxmome:"崭露头角"},{img:Image5,tips:"你的演奏完美无缺,继续努力吧~",mome:"你很棒",clxImg:clx5,clxtip:"你的演奏非常不错,音准的把握和节奏稍有瑕疵,完整性把握的很好~",clxmome:"你很棒"}],getLeveByScore=function(e){if(!e&&"number"!=typeof e)return{};var t=0;return e>20&&e<=40?t=1:e>40&&e<=60?t=2:e>60&&e<=80?t=3:e>80&&(t=4),_objectSpread(_objectSpread({},icons[t]),{},{leve:t})},getLeveByScoreMeasure=function(e){if(!e&&"number"!=typeof e)return{};var t=0;return e>=40&&e<70?t=1:e>=70&&e<90?t=2:e>=90&&(t=3),t},evaluatingData=exports("ar",reactive({contentData:{},rendered:!1,earphone:!1,soundEffect:!1,soundEffectFrequency:0,checkStep:0,checkEnd:!1,earphoneMode:!1,soundEffectMode:!1,websocketState:!1,startBegin:!1,backtime:0,evaluatings:{},resultData:{},resulstMode:!1,isComplete:!1})),handleStartEvaluat=exports("aC",(function(){"evaluating"===state$1.modeType?handleCancelEvaluat():handleStopPlay(),state$1.modeType="evaluating"===state$1.modeType?"practise":"evaluating","evaluating"!==state$1.modeType&&(evaluatingData.rendered=!1)})),sendEvaluatingOffsetTime=function(e){var t=(Date.now()-evaluatingData.backtime-1e3*e)/1e3;console.log("真正播放延迟",t/1e3),setTimeout(_asyncToGenerator2(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,api_proxyServiceMessage({header:{commond:"audioPlayStart",type:"SOUND_COMPARE"},body:{offsetTime:t<0?0:t}});case 2:evaluatingData.backtime=0;case 3:case"end":return e.stop()}}),e)}))),220)},checkUseEarphone=function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,getEarphone();case 2:return n=e.sent,e.abrupt("return",(null==n||null===(t=n.content)||void 0===t?void 0:t.checkIsWired)||!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),handleStartSoundCheck=function(){startSoundCheck()},handleEndSoundCheck=exports("aA",(function(){endSoundCheck()})),connectWebsocket=exports("aF",function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(t){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:evaluatingData.contentData=t,evaluatingData.websocketState=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),handlePerformDetection=exports("aw",_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(evaluatingData.checkEnd=!1,0!==evaluatingData.checkStep){e.next=8;break}return e.next=4,checkUseEarphone();case 4:return t=e.sent,evaluatingData.checkStep=1,t?handlePerformDetection():evaluatingData.earphoneMode=!0,e.abrupt("return");case 8:if(1!==evaluatingData.checkStep){e.next=12;break}return evaluatingData.checkStep=10,state$1.setting.soundEffect?(evaluatingData.soundEffectMode=!0,handleStartSoundCheck()):handlePerformDetection(),e.abrupt("return");case 12:10===evaluatingData.checkStep&&(evaluatingData.checkEnd=!0,evaluatingData.checkStep=0);case 13:case"end":return e.stop()}}),e)})))),addMeasureScore=exports("bi",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];evaluatingData.evaluatings[e.measureRenderIndex]=_objectSpread(_objectSpread({},e),{},{leve:getLeveByScoreMeasure(e.score),show:t})})),handleScoreResult=function(e){if(null!=e&&e.content){console.log("🚀 ~ 评测返回:",e);var t=e.content,n=t.header,r=t.body;"checking"===n.commond&&(evaluatingData.soundEffectFrequency=r.frequency),"measureScore"===(null==n?void 0:n.commond)&&addMeasureScore(r),"overall"===(null==n?void 0:n.commond)&&(evaluatingData.resulstMode=!0,evaluatingData.resultData=_objectSpread(_objectSpread({},r),getLeveByScore(r.score)),closeToast())}},handleStartBegin=exports("ax",_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:evaluatingData.isComplete=!1,evaluatingData.startBegin=!0,evaluatingData.evaluatings={},evaluatingData.resultData={},evaluatingData.backtime=Date.now(),resetPlaybackToStart();try{console.log("🚀 ~ content:",evaluatingData.contentData,JSON.stringify(evaluatingData.contentData))}catch(n){}return e.next=9,startEvaluating(evaluatingData.contentData);case 9:if("startEvaluating"===(null==(t=e.sent)?void 0:t.api)){e.next=14;break}return Snackbar$1.error("请在APP端进行评测"),evaluatingData.startBegin=!1,e.abrupt("return");case 14:return api_startRecording(),e.next=17,togglePlay("play");case 17:if(e.sent){e.next=22;break}return evaluatingData.startBegin=!1,handleCancelEvaluat(),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})))),handleEndEvaluat=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];console.log("触发结束"),evaluatingData.startBegin&&"evaluating"===state$1.modeType&&(evaluatingData.startBegin=!1,api_stopRecording(),endEvaluating({musicScoreId:state$1.examSongId}),showLoadingToast({message:"评分中",duration:0,forbidClick:!0}),evaluatingData.isComplete=e)},handleEndBegin=exports("ay",(function(){handleEndEvaluat(),handleStopPlay()})),handleCancelEvaluat=function(){evaluatingData.evaluatings={},closeToast(),api_proxyServiceMessage({header:{commond:"recordCancel",type:"SOUND_COMPARE",status:200}}),cancelEvaluating(),handleStopPlay()},handleViewReport=exports("aB",(function(e,t){var n,r=(null===(n=evaluatingData.resultData)||void 0===n?void 0:n[e])||"",i="";if("gym"===t)i=location.origin+location.pathname+"report/"+r;else i=location.origin+location.pathname+"report-share.html?id="+r;api_openWebView({url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0})})),Evaluating=exports("b8",defineComponent({name:"evaluating",setup:function(){return watch(usePageVisibility(),(function(e){"hidden"==e&&evaluatingData.startBegin&&handleEndBegin()})),onMounted((function(){evaluatingData.resultData={},evaluatingData.evaluatings={},evaluatingData.soundEffectFrequency=0,evaluatingData.checkStep=0,evaluatingData.rendered=!0,sendResult(handleScoreResult),state$1.isSelectMeasureMode||clearSelection()})),onUnmounted((function(){removeResult(handleScoreResult)})),function(){return createVNode("div",null,null)}}})),popup="_popup_1838h_1",dots="_dots_1838h_6",dot="_dot_1838h_6",active="_active_1838h_20",one="_one_1838h_23",styles$3={popup:popup,dots:dots,dot:dot,active:active,one:one},tickData=reactive({list:[],len:0,tickEnd:!1,beatLengthInMilliseconds:0,state:"",source1:"",source2:"",index:0,show:!1}),handlePlay=function(e,t){return new Promise((function(n){setTimeout((function(){tickData.tickEnd||(tickData.index++,t&&t.play()),n(e)}),tickData.beatLengthInMilliseconds)}))},handleInitTick=exports("bB",(function(e,t){tickData.state="",tickData.beatLengthInMilliseconds=e,tickData.len=t})),handleStartTick=function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:tickData.show=!0,tickData.tickEnd=!1,"ok"!==tickData.state&&(tickData.source1=new howler.Howl({src:tockAndTick.tick}),tickData.source2=new howler.Howl({src:tockAndTick.tock}),tickData.state="ok"),tickData.index=0,t=0;case 5:if(!(t<=tickData.len)){e.next=14;break}if(!tickData.tickEnd){e.next=8;break}return e.abrupt("return",!1);case 8:return n=0===t?tickData.source1:t===tickData.len?null:tickData.source2,e.next=11,handlePlay(t,n);case 11:t++,e.next=5;break;case 14:return tickData.show=!1,e.abrupt("return",!0);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Tick=exports("bz",defineComponent({name:"metronome",setup:function(){var e=function(){tickData.tickEnd=!0};return function(){return createVNode(Popup,{class:styles$3.popup,show:tickData.show,"onUpdate:show":function(e){return tickData.show=e},closeable:!0,onClickCloseIcon:e},{default:function(){return[createVNode("div",{class:styles$3.dots},[Array(tickData.len).fill(0).map((function(e,t){return createVNode("div",{class:[styles$3.dot,tickData.index>t&&styles$3.active,tickData.index>t&&0===t&&styles$3.one]},null)}))])]}})}}})),audioList="_audioList_1j0z3_1",styles$2={audioList:audioList},timer=null,midiData=reactive({iframeRef:null,playing:!1,index:0,rate:1}),playNote=function e(){var t,n;if(midiData.playing){var r=state$1.times[midiData.index];if(r){midiData.index++;var i=r.endtime-r.time;null===(t=midiData.iframeRef)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.playNote(r.realKey,i),timer=setTimeout((function(){e()}),i/midiData.rate*1e3)}else onEnded()}},stopPlay=function(){midiData.playing=!1},hanldeInitMidiData=function(e){midiData.iframeRef=e},handleTogglePlayMidi=function(e){"play"===e?(midiData.playing=!0,playNote(),onPlay()):stopPlay()},hanldeSetMidiPlaybackRate=function(e){midiData.rate=e},getMidiCurrentTime=function(){var e=midiData.index-1;return e=e<0?0:e,state$1.times[e].time},getMidiDuration=function(){return state$1.times[state$1.times.length-1].endtime},setMidiCurrentTime=function(e){clearTimeout(timer),midiData.index=e,playNote()},audioData=reactive({songEle:null,backgroundEle:null,midiRender:!1}),midiRef=ref(),audioListStart=function(e){var t,n;if(audioData.midiRender)handleTogglePlayMidi(e);else if("play"===e)null===(t=audioData.songEle)||void 0===t||t.play(),null===(n=audioData.backgroundEle)||void 0===n||n.play();else if("paused"===e){var r,i;null===(r=audioData.songEle)||void 0===r||r.pause(),null===(i=audioData.backgroundEle)||void 0===i||i.pause()}},setAudioPlaybackRate=function(e){audioData.midiRender?hanldeSetMidiPlaybackRate(e):(audioData.songEle&&(audioData.songEle.playbackRate=e),audioData.backgroundEle&&(audioData.backgroundEle.playbackRate=e))},getAudioCurrentTime=exports("bv",(function(){var e,t;return audioData.midiRender?getMidiCurrentTime():(null===(e=audioData.songEle)||void 0===e?void 0:e.currentTime)||(null===(t=audioData.backgroundEle)||void 0===t?void 0:t.currentTime)||0})),getAudioDuration=function(){var e,t;return audioData.midiRender?getMidiDuration():(null===(e=audioData.songEle)||void 0===e?void 0:e.duration)||(null===(t=audioData.backgroundEle)||void 0===t?void 0:t.duration)||0},setAudioCurrentTime=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;audioData.midiRender?setMidiCurrentTime(t):(audioData.songEle&&(audioData.songEle.currentTime=e),audioData.backgroundEle&&(audioData.backgroundEle.currentTime=e))},AudioList=exports("b7",defineComponent({name:"audio-list",setup:function(){var e=computed((function(){return"music"===state$1.playSource})),t=function(){midiRef.value.contentWindow.handleRendered=function(){audioData.midiRender=!0},hanldeInitMidiData(midiRef.value)};return console.log(state$1.playMode,state$1.midiUrl),function(){return createVNode("div",{class:styles$2.audioList},["MIDI"===state$1.playMode&&0!=state$1.speed&&createVNode("iframe",{style:{display:"none"},ref:midiRef,src:"/midi/index.html",onLoad:t},null),"MIDI"!==state$1.playMode&&createVNode("div",null,[createVNode("audio",{muted:!e.value,preload:"auto",ref:function(e){state$1.music&&(audioData.songEle=e)},src:state$1.music,onLoadedmetadata:onLoadedmetadata,onPlay:onPlay,onTimeupdate:onTimeupdate,onEnded:onEnded},null),createVNode("audio",{muted:e.value,preload:"auto",ref:function(e){state$1.accompany&&(audioData.backgroundEle=e)},src:state$1.accompany},null)])])}}})),followData=reactive({list:[],index:0,start:!1,rendered:!1}),toggleFollow=exports("bu",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];state$1.modeType="follow"===state$1.modeType?"practise":"follow",e||(followData.start=!1,openToggleRecord(!1))})),noteFrequency=ref(0),audioFrequency=ref(0),followTime=ref(0),openToggleRecord=function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t,n,r=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(r.length>0&&void 0!==r[0])||r[0],e.next=3,api_cloudToggleFollow(t?"start":"end");case 3:t?followTime.value=Date.now():(n=Date.now()-followTime.value,0!==followTime.value&&n>0&&(followTime.value=0));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onClear=function(){state$1.times.forEach((function(e){var t=document.querySelector("div[data-vf=vf".concat(e.id,"]"));t&&(t.classList.remove("error"),t.classList.remove("success"))}))},handleFollowStart=exports("bw",_asyncToGenerator2(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(storeData.isApp){e.next=3;break}return Snackbar$1({content:"请在APP端使用",type:"warning"}),e.abrupt("return");case 3:return onClear(),followData.start=!0,followData.index=0,followData.list=[],resetPlaybackToStart(),e.next=10,openToggleRecord(!0);case 10:setStep$1();case 11:case"end":return e.stop()}}),e)})))),handleFollowEnd=exports("bx",(function(){followData.start=!1,openToggleRecord(!1),followData.index=0})),next=function(){gotoNext(state$1.times[followData.index])},getNoteIndex=function e(){var t=state$1.times[followData.index];return t.frequency<=0?(followData.index=followData.index+1,next(),e()):(noteFrequency.value=t.frequency,{id:t.id,min:t.frequency-.1*t.prevFrequency,max:t.frequency+.1*t.nextFrequency})},checking=!1,onFollowTime=function(e){var t,n=null==e||null===(t=e.content)||void 0===t?void 0:t.frequency;audioFrequency.value=n,followData.list.push(n)},setStep$1=function e(){var t=Date.now();requestAnimationFrame((function(){if(Date.now()-t<16.6){if(!followData.start)return;checked()}e()}))},checked=function(){if(!checking){checking=!0;for(var e=getNoteIndex(),t=0;t<followData.list.length;t++){var n=followData.list[t];if(n>e.min&&n<e.max)return next(),followData.index+=1,followData.list=followData.list.slice(t+1),setColor(e,!0),void(checking=!1)}setColor(e),checking=!1}},setColor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector("div[data-vf=vf".concat(e.id,"]"));n&&(t?(n.classList.remove("error"),n.classList.add("success")):(n.classList.remove("success"),n.classList.add("error")))},FollowPractice=exports("bA",defineComponent({name:"follow",setup:function(){return onMounted((function(){api_cloudFollowTime(onFollowTime),console.log("进入跟练模式")})),onUnmounted((function(){api_cloudFollowTime(onFollowTime,!1),onClear(),console.log("退出跟练模式")})),function(){return createVNode("div",null,null)}}})),musicscoresettingKey=exports("bV","musicscoresetting"),state=reactive({appName:"",musicRenderType:"staff",musicRendered:!1,detailId:"",xmlUrl:"",subjectId:0,categoriesId:0,categoriesName:"",enableEvaluation:!0,enableNotation:!1,examSongId:"",examSongName:"",extConfigJson:{},isOpenMetronome:!1,isShowFingering:!1,music:"",accompany:"",midiUrl:"",parentCategoriesId:0,playMode:"MP3",speed:0,originSpeed:0,track:"",partIndex:0,needTick:!1,osmd:null,isSpecialBookCategory:!1,playState:"paused",playEnd:!1,playSource:"music",playProgress:0,activeNoteIndex:0,activeMeasureIndex:0,sectionStatus:!1,section:[],sectionToast:null,sectionBoundingBoxs:[],isOpenPrepare:!1,sectionFirst:null,times:[],modeType:"practise",setting:{soundEffect:!0,eyeProtection:!1,camera:!1,cameraOpacity:70,repeatAutoPlay:!0,displayFingering:!0,displayCursor:!0,frequency:442,evaluationDifficulty:"ADVANCED",saveToAlbum:!1,enableAccompaniment:!1,reactionTimeMs:0},fixtime:0,fingeringInfo:{},scrollContainer:"musicAndSelection",isPercussion:!1,repeatedBeats:0,partListNames:[],gradual:[],gradualVersion:GradualVersion.BASE,gradualTimes:null,multitrack:0,zoom:.8,isSelectMeasureMode:!1,isReport:!1}),customData=exports("b0",reactive({customNoteRealValue:[],customNoteCurrentTime:!1})),onLoadedmetadata=function(e){},setStep=function e(){if("play"===state.playState){var t=Date.now();requestAnimationFrame((function(){Date.now()-t<16.7?(handlePlaying(),e()):setTimeout((function(){handlePlaying(),e()}),16.7)}))}else console.log("结束播放")},onPlay=function(){if(console.log("开始播放"),state.playEnd=!1,setStep(),"evaluating"===state.modeType){var e=getAudioCurrentTime();state.isSelectMeasureMode&&(e-=state.section[0].time),sendEvaluatingOffsetTime(e)}},onTimeupdate=function(e){},autoResetPlay=function(){"practise"===state.modeType&&(skipNotePlay(0,!0),state.setting.repeatAutoPlay&&(scrollViewNote(),setTimeout((function(){togglePlay("play")}),1e3)))},onEnded=function(){state.playEnd=!0,state.playState="paused",audioListStart(state.playState),handleEndEvaluat(!0),autoResetPlay()},handlePlaying=function(){var e,t=getAudioCurrentTime(),n=getAudioDuration();state.playProgress=t/n*100;var r=getNote(t);if(r){if(state.sectionStatus&&2===state.section.length){var i=state.sectionFirst?state.sectionFirst:state.section[0],a=state.section[1];if(r.MeasureNumberXML<i.MeasureNumberXML||r.MeasureNumberXML>a.MeasureNumberXML){if(console.log("选段播放结束"),"evaluating"===state.modeType&&state.isSelectMeasureMode)return void onEnded();r=i,setAudioCurrentTime(i.time,i.i)}}gotoNext(r)}null===(e=metronomeData.metro)||void 0===e||e.sound(t)},skipNotePlay=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=state.times[e],r=n.time;t&&(r=0),n&&(setAudioCurrentTime(r,e),gotoNext(n))},togglePlay=exports("aU",function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(t){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(state.playState=t||("paused"===state.playState?"play":"paused"),"play"!==state.playState||!state.needTick){e.next=8;break}return e.next=4,handleStartTick();case 4:if(e.sent){e.next=8;break}return state.playState="paused",e.abrupt("return",!1);case 8:return"play"==state.playState&&state.sectionStatus&&state.section.length<2&&clearSelection(),audioListStart(state.playState),e.abrupt("return",!0);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),handleStopPlay=function(){state.playState="paused",audioListStart(state.playState)},resetPlaybackToStart=function(){state.sectionStatus&&2===state.section.length?state.section=formateSelectMearure(state.section):skipNotePlay(0,!0)},gotoCustomNote=function(e){try{state.osmd.cursor.reset()}catch(n){}for(var t=0;t<e;t++)state.osmd.cursor.next()},gotoNext=function(e){var t=e.i;if(state.activeNoteIndex!==e.i){var n=state.osmd,r=state.activeNoteIndex;if(state.activeNoteIndex=t,state.activeMeasureIndex=e.MeasureNumberXML,r&&t-r==1)n.cursor.next();else if(r&&t-r>0)for(;t-r>0;)r++,n.cursor.next();else gotoCustomNote(t);scrollViewNote()}},getNote=function(e){var t=state.times,n=state.times.length;if(!(e>t[n-1].endtime+2)){for(var r=null,i=state.activeNoteIndex;i<n;i++){var a=t[i],o=t[i-1];if(!(e>=a.time))break;o&&a.time==o.time||(r=a)}return r}onEnded()},handleResetPlay=exports("aW",(function(){resetPlaybackToStart()})),handleSetSpeed=exports("aJ",(function(e){setStorageSpeed(state.examSongId,e),state.speed=e;var t=e/state.originSpeed;console.log("🚀 ~ playbackRate:",e,state.originSpeed),setAudioPlaybackRate(t)})),clearSelection=function(){var e;state.sectionStatus=!1,state.section=[],null===(e=state.sectionToast)||void 0===e||e.close(),state.sectionToast=null},handleChangeSection=exports("aT",(function(){state.sectionStatus?clearSelection():(state.sectionStatus=!0,state.sectionStatus&&togglePlay("paused"),state.sectionToast=showToast({message:"请选择开始小节",duration:0,position:"top",className:"selectionToast"}))})),formateSelectMearure=function(e){var t,n;if(!e.length)return[];var r=e.sort((function(e,t){return e.time-t.time})),i=null===(t=r[0])||void 0===t?void 0:t.MeasureNumberXML,a=null===(n=r.last())||void 0===n?void 0:n.MeasureNumberXML,o=state.times.filter((function(e){return i===e.MeasureNumberXML}))||[],s=state.times.filter((function(e){return a===e.MeasureNumberXML}))||[];if(!o.length||!s.length)return clearSelection(),[];r[0]=o[0],r[1]=s.last();var l=r[0].i;if(state.isOpenPrepare){var u=r[0].MeasureNumberXML;state.sectionFirst=state.times.find((function(e){return u-e.MeasureNumberXML==1})),l=state.sectionFirst?state.sectionFirst.i:l}return skipNotePlay(l,0===l),r},handleSelection=function(e){if(state.sectionStatus&&!(state.section.length>1)){var t;if(2!==state.section.length&&e)if(state.section.push(e),2===state.section.length)state.section=formateSelectMearure(state.section),null===(t=state.sectionToast)||void 0===t||t.close(),state.sectionToast=null;1===state.section.length&&state.sectionToast&&(state.sectionToast.message="请选择结束小节")}},hanldeDirectSelection=exports("bT",(function(e){Array.isArray(e)&&2===e.length&&(state.sectionStatus=!0,state.section=formateSelectMearure(e))})),offsetTop=0,scrollViewNote=function(){var e=document.getElementById("cursorImg-0"),t=document.getElementById(state.scrollContainer);e&&t&&offsetTop!==e.offsetTop&&(offsetTop=e.offsetTop,e.offsetTop>50?t.scrollTo({top:e.offsetTop-25,behavior:"smooth"}):t.scrollTo({top:0,behavior:"smooth"}))},isRhythmicExercises=exports("bb",(function(){return state.examSongName.indexOf("节奏练习")>-1})),handleRessetState=exports("bt",(function(){"evaluating"===state.modeType?handleStartEvaluat():"practise"===state.modeType?togglePlay("paused"):"follow"===state.modeType&&toggleFollow(!1)})),state$1=exports("ao",state),AJAX=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"ajax",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e3,r=e.indexOf(".mxl")>-1?"text/plain; charset=x-user-defined":"application/xml";if(XMLHttpRequest)t=new XMLHttpRequest;else{if(!ActiveXObject)return Promise.reject(new Error("XMLHttp not supported."));t=new ActiveXObject("Microsoft.XMLHTTP")}return t.timeout=n,new Promise((function(n,i){t.onreadystatechange=function(){t.readyState===XMLHttpRequest.DONE&&(200===t.status||0===t.status&&t.responseText?n(t.responseText):i(new Error("Could not retrieve requested URL "+t.status)))},t.ontimeout=function(e){i(new Error("Server request Timeout"))},t.overrideMimeType(r),t.open("GET",e,!0),t.send()}))}}]),e}(),_Fraction=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck2(this,e),this.numerator=0,this.denominator=1,this.wholeValue=0,this.numerator=t,this.denominator=n,this.wholeValue=r,i&&this.simplify(),this.setRealValue()}return _createClass2(e,[{key:"toString",value:function(){var e=this.numerator+"/"+this.denominator;return 0!==this.wholeValue&&(e=this.wholeValue+" "+e),e}},{key:"clone",value:function(){return new e(this.numerator,this.denominator,this.wholeValue,!1)}},{key:"Numerator",get:function(){return this.numerator},set:function(e){this.numerator!==e&&(this.numerator=e,this.simplify(),this.setRealValue())}},{key:"Denominator",get:function(){return this.denominator},set:function(e){this.denominator!==e&&(this.denominator=e,0!==this.numerator&&this.simplify(),this.setRealValue())}},{key:"WholeValue",get:function(){return this.wholeValue},set:function(e){this.wholeValue!==e&&(this.wholeValue=e,this.setRealValue())}},{key:"GetExpandedNumerator",value:function(){return this.wholeValue*this.denominator+this.numerator}},{key:"calculateNumberOfNeededDots",value:function(){for(var e=1,t=2,n=this.GetExpandedNumerator();t<n;)e++,t=Math.pow(2,e);return Math.min(3,e-1)}},{key:"IsNegative",value:function(){return this.realValue<0}},{key:"RealValue",get:function(){return this.realValue}},{key:"expand",value:function(e){this.numerator*=e,this.denominator*=e,0!==this.wholeValue&&(this.numerator+=this.wholeValue*this.denominator,this.wholeValue=0)}},{key:"Add",value:function(e){return this.numerator=(this.wholeValue*this.denominator+this.numerator)*e.denominator+(e.wholeValue*e.denominator+e.numerator)*this.denominator,this.denominator=this.denominator*e.denominator,this.wholeValue=0,this.simplify(),this.setRealValue(),this}},{key:"Sub",value:function(e){return this.numerator=(this.wholeValue*this.denominator+this.numerator)*e.denominator-(e.wholeValue*e.denominator+e.numerator)*this.denominator,this.denominator=this.denominator*e.denominator,this.wholeValue=0,this.simplify(),this.setRealValue(),this}},{key:"getHalfLength",value:function(){return new e(this.WholeValue,2).Add(new e(this.Numerator,2*this.Denominator))}},{key:"Quantize",value:function(t){if(this.denominator<=t)return this;for(var n=new e(this.numerator+1,this.denominator,this.wholeValue);n.Denominator>t;)n.Numerator++;if(this.numerator>this.denominator){for(var r=new e(this.numerator-1,this.denominator,this.wholeValue);r.Denominator>t;)r.Numerator--;if(r.Denominator<n.Denominator)return r}return n}},{key:"Equals",value:function(e){return this.realValue===(null==e?void 0:e.realValue)}},{key:"CompareTo",value:function(e){var t=this.realValue-e.realValue;return t?t<0?-1:1:0}},{key:"lt",value:function(e){return this.realValue<e.realValue}},{key:"lte",value:function(e){return this.realValue<=e.realValue}},{key:"gt",value:function(e){return!this.lte(e)}},{key:"gte",value:function(e){return!this.lt(e)}},{key:"setRealValue",value:function(){this.realValue=this.wholeValue+this.numerator/this.denominator}},{key:"simplify",value:function(){if(0!==this.numerator){var t=e.greatestCommonDenominator(Math.abs(this.numerator),Math.abs(this.denominator));this.numerator/=t,this.denominator/=t;var n=Math.floor(this.numerator/this.denominator);if(0!==n&&(this.wholeValue+=n,this.numerator-=n*this.denominator,0===this.numerator&&(this.denominator=1)),this.denominator>e.maximumAllowedNumber){var r=this.denominator/e.maximumAllowedNumber;this.numerator=Math.round(this.numerator/r),this.denominator=Math.round(this.denominator/r)}if(this.numerator>e.maximumAllowedNumber){var i=this.numerator/e.maximumAllowedNumber;this.numerator=Math.round(this.numerator/i),this.denominator=Math.round(this.denominator/i)}}else this.denominator=1}},{key:"isOnBeat",value:function(t){var n=this.distanceFromBeat(t);return Math.abs(n)<e.FloatInaccuracyTolerance}},{key:"distanceFromBeat",value:function(t){var n=new e(1,t.Denominator),r=this.RealValue%n.RealValue;return r}}],[{key:"max",value:function(e,t){return e.RealValue>t.RealValue?e:t}},{key:"Equal",value:function(e,t){return e.wholeValue===t.wholeValue&&e.Denominator===t.Denominator&&e.Numerator===t.Numerator}},{key:"createFromFraction",value:function(t){return new e(t.numerator,t.denominator,t.wholeValue,!1)}},{key:"plus",value:function(e,t){var n=e.clone();return n.Add(t),n}},{key:"minus",value:function(e,t){var n=e.clone();return n.Sub(t),n}},{key:"multiply",value:function(t,n){return new e((t.wholeValue*t.denominator+t.numerator)*(n.wholeValue*n.denominator+n.numerator),t.denominator*n.denominator)}},{key:"greatestCommonDenominator",value:function(e,t){if(0===e)return t;if(1===t)return 1;for(;Math.abs(t)>1e-8;)e>t?e-=t:t-=e;return Math.round(e)}}]),e}(),Fraction$1=_Fraction;Fraction$1.maximumAllowedNumber=46340,Fraction$1.FloatInaccuracyTolerance=1e-4;var AbstractExpression=function(){function e(t){_classCallCheck2(this,e),this.placement=t}return _createClass2(e,[{key:"Placement",get:function(){return this.placement}}],[{key:"isStringInStringList",value:function(e,t){for(var n=0,r=e.length;n<r;++n){if(t===e[n].toLowerCase().trim())return!0}return!1}},{key:"PlacementEnumFromString",value:function(e){switch(e.toLowerCase()){case"above":return 0;case"below":return 1;case"aboveorbelow":case"abovebelow":return 5;case"left":return 2;case"right":return 3;default:return 4}}}]),e}(),PlacementEnum=function(e){return e[e.Above=0]="Above",e[e.Below=1]="Below",e[e.Left=2]="Left",e[e.Right=3]="Right",e[e.NotYetDefined=4]="NotYetDefined",e[e.AboveOrBelow=5]="AboveOrBelow",e}(PlacementEnum||{}),_ContinuousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a,o,s){var l,u,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";return _classCallCheck2(this,n),_set((l=_assertThisInitialized2(u=t.call(this,r)),_getPrototypeOf2(n.prototype)),"parentMeasure",a,l,!0),u.NumberXml=s,u.dynamicType=e,u.label=c,u.staffNumber=i,u.activeInstantaneousDynamic=o,u.startVolume=1,u.endVolume=1,u.setStartAndEndVolume(),""!==c&&u.setType(),u}return _createClass2(n,[{key:"setStartAndEndVolume",value:function(){this.activeInstantaneousDynamic&&(0===this.dynamicType&&(this.startVolume=this.activeInstantaneousDynamic.Volume,this.endVolume=1.2*this.activeInstantaneousDynamic.Volume),1===this.dynamicType&&(this.startVolume=this.activeInstantaneousDynamic.Volume,this.endVolume=.8*this.activeInstantaneousDynamic.Volume))}},{key:"DynamicType",get:function(){return this.dynamicType},set:function(e){this.dynamicType=e}},{key:"StartMultiExpression",get:function(){return this.startMultiExpression},set:function(e){this.startMultiExpression=e}},{key:"EndMultiExpression",get:function(){return this.endMultiExpression},set:function(e){this.endMultiExpression=e}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"StartVolume",get:function(){return this.startVolume},set:function(e){this.startVolume=e}},{key:"EndVolume",get:function(){return this.endVolume},set:function(e){this.endVolume=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"Label",get:function(){return this.label},set:function(e){this.label=e,this.setType()}},{key:"getInterpolatedDynamic",value:function(e){var t,n=this.StartMultiExpression.AbsoluteTimestamp;if(t=this.EndMultiExpression?this.EndMultiExpression.AbsoluteTimestamp:Fraction$1.plus(this.startMultiExpression.SourceMeasureParent.AbsoluteTimestamp,this.startMultiExpression.SourceMeasureParent.Duration),e.lt(n))return-1;if(t.lt(e))return-2;var r=Fraction$1.minus(e,n).RealValue/Fraction$1.minus(t,n).RealValue;return Math.max(0,Math.min(99.9,this.startVolume+(this.endVolume-this.startVolume)*r))}},{key:"isWedge",value:function(){return!this.label}},{key:"setType",value:function(){n.isStringInStringList(n.listContinuousDynamicIncreasing,this.label)?this.dynamicType=0:n.isStringInStringList(n.listContinuousDynamicDecreasing,this.label)&&(this.dynamicType=1)}}],[{key:"isInputStringContinuousDynamic",value:function(e){return!!e&&(n.isStringInStringList(n.listContinuousDynamicIncreasing,e)||n.isStringInStringList(n.listContinuousDynamicDecreasing,e))}}]),n}(AbstractExpression),ContinuousDynamicExpression=_ContinuousDynamicExpression;ContinuousDynamicExpression.listContinuousDynamicIncreasing=["crescendo","cresc","cresc.","cres."],ContinuousDynamicExpression.listContinuousDynamicDecreasing=["decrescendo","decresc","decr.","diminuendo","dim.","dim"];var ContDynamicEnum=function(e){return e[e.crescendo=0]="crescendo",e[e.diminuendo=1]="diminuendo",e}(ContDynamicEnum||{}),DynamicExpressionSymbolEnum=function(e){return e[e.p=0]="p",e[e.f=1]="f",e[e.s=2]="s",e[e.z=3]="z",e[e.m=4]="m",e[e.r=5]="r",e}(DynamicExpressionSymbolEnum||{}),MusicSheetReadingException=_createClass2((function e(t,n){_classCallCheck2(this,e),this.message=t,n&&(this.message+=" "+n.toString())})),ArgumentOutOfRangeException=_createClass2((function e(t){_classCallCheck2(this,e),this.message=t})),InvalidEnumArgumentException=_createClass2((function e(t){_classCallCheck2(this,e),this.message=t})),loglevelExports={},loglevel={get exports(){return loglevelExports},set exports(e){loglevelExports=e}};!function(t){var n,r;n=commonjsGlobal,r=function(){var t=function(){},n="undefined",r=("undefined"==typeof window?"undefined":_typeof2(window))!==n&&_typeof2(window.navigator)!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function a(t,n){var r=t[n];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(e,n){for(var r=0;r<i.length;r++){var a=i[r];this[a]=r<e?t:this.methodFactory(a,e,n)}this.log=this.debug}function l(e,t,r){return function(){("undefined"==typeof console?"undefined":_typeof2(console))!==n&&(s.call(this,t,r),this[e].apply(this,arguments))}}function u(e,i,s){return function(e){return"debug"===e&&(e="log"),("undefined"==typeof console?"undefined":_typeof2(console))!==n&&("trace"===e&&r?o:void 0!==console[e]?a(console,e):void 0!==console.log?a(console,"log"):t)}(e)||l.apply(this,arguments)}function c(e,t,r){var a,o=this;t=null==t?"WARN":t;var l="loglevel";function c(){var e;if(("undefined"==typeof window?"undefined":_typeof2(window))!==n&&l){try{e=window.localStorage[l]}catch(i){}if(_typeof2(e)===n)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(l)+"=");-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(i){}return void 0===o.levels[e]&&(e=void 0),e}}"string"==typeof e?l+=":"+e:"symbol"===_typeof2(e)&&(l=void 0),o.name=e,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=r||u,o.getLevel=function(){return a},o.setLevel=function(t,r){if("string"==typeof t&&void 0!==o.levels[t.toUpperCase()]&&(t=o.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(a=t,!1!==r&&function(e){var t=(i[e]||"silent").toUpperCase();if(("undefined"==typeof window?"undefined":_typeof2(window))!==n&&l){try{return void(window.localStorage[l]=t)}catch(r){}try{window.document.cookie=encodeURIComponent(l)+"="+t+";"}catch(r){}}}(t),s.call(o,t,e),("undefined"==typeof console?"undefined":_typeof2(console))===n&&t<o.levels.SILENT)return"No console available for logging"},o.setDefaultLevel=function(e){t=e,c()||o.setLevel(e,!1)},o.resetLevel=function(){o.setLevel(t,!1),function(){if(("undefined"==typeof window?"undefined":_typeof2(window))!==n&&l){try{return void window.localStorage.removeItem(l)}catch(e){}try{window.document.cookie=encodeURIComponent(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)};var h=c();null==h&&(h=t),o.setLevel(h,!1)}var h=new c,d={};h.getLogger=function(e){if("symbol"!==_typeof2(e)&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new c(e,h.getLevel(),h.methodFactory)),t};var f=("undefined"==typeof window?"undefined":_typeof2(window))!==n?window.log:void 0;return h.noConflict=function(){return("undefined"==typeof window?"undefined":_typeof2(window))!==n&&window.log===h&&(window.log=f),h},h.getLoggers=function(){return d},h.default=h,h},t.exports?t.exports=r():n.log=r()}(loglevel);var lib$3={},arrays$4={},util$b={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.prototype.hasOwnProperty;function n(e){return"function"==typeof e}function r(e){return void 0===e}function i(e){return"[object String]"===Object.prototype.toString.call(e)}e.has=function(e,n){return t.call(e,n)},e.defaultCompare=function(e,t){return e<t?-1:e===t?0:1},e.defaultEquals=function(e,t){return e===t},e.defaultToString=function(e){return null===e?"COLLECTION_NULL":r(e)?"COLLECTION_UNDEFINED":i(e)?"$s"+e:"$o"+e.toString()},e.makeString=function(t,n){if(void 0===n&&(n=","),null===t)return"COLLECTION_NULL";if(r(t))return"COLLECTION_UNDEFINED";if(i(t))return t.toString();var a="{",o=!0;for(var s in t)e.has(t,s)&&(o?o=!1:a+=n,a=a+s+":"+t[s]);return a+"}"},e.isFunction=n,e.isUndefined=r,e.isString=i,e.reverseCompareFunction=function(e){return r(e)||!n(e)?function(e,t){return e<t?1:e===t?0:-1}:function(t,n){return-1*e(t,n)}},e.compareToEquals=function(e){return function(t,n){return 0===e(t,n)}}}(util$b),Object.defineProperty(arrays$4,"__esModule",{value:!0});var util$a=util$b;function indexOf$1(e,t,n){for(var r=n||util$a.defaultEquals,i=e.length,a=0;a<i;a++)if(r(e[a],t))return a;return-1}function lastIndexOf(e,t,n){for(var r=n||util$a.defaultEquals,i=e.length-1;i>=0;i--)if(r(e[i],t))return i;return-1}function contains(e,t,n){return indexOf$1(e,t,n)>=0}function remove(e,t,n){var r=indexOf$1(e,t,n);return!(r<0)&&(e.splice(r,1),!0)}function frequency(e,t,n){for(var r=n||util$a.defaultEquals,i=e.length,a=0,o=0;o<i;o++)r(e[o],t)&&a++;return a}function equals(e,t,n){var r=n||util$a.defaultEquals;if(e.length!==t.length)return!1;for(var i=e.length,a=0;a<i;a++)if(!r(e[a],t[a]))return!1;return!0}function copy(e){return e.concat()}function swap(e,t,n){if(t<0||t>=e.length||n<0||n>=e.length)return!1;var r=e[t];return e[t]=e[n],e[n]=r,!0}function toString$1(e){return"["+e.toString()+"]"}function forEach(e,t){for(var n=0,r=e;n<r.length;n++){if(!1===t(r[n]))return}}arrays$4.indexOf=indexOf$1,arrays$4.lastIndexOf=lastIndexOf,arrays$4.contains=contains,arrays$4.remove=remove,arrays$4.frequency=frequency,arrays$4.equals=equals,arrays$4.copy=copy,arrays$4.swap=swap,arrays$4.toString=toString$1,arrays$4.forEach=forEach;var Bag$1={},Dictionary$2={};Object.defineProperty(Dictionary$2,"__esModule",{value:!0});var util$9=util$b,Dictionary$1=function(){function e(e){this.table={},this.nElements=0,this.toStr=e||util$9.defaultToString}return e.prototype.getValue=function(e){var t=this.table["$"+this.toStr(e)];if(!util$9.isUndefined(t))return t.value},e.prototype.setValue=function(e,t){if(!util$9.isUndefined(e)&&!util$9.isUndefined(t)){var n,r="$"+this.toStr(e),i=this.table[r];return util$9.isUndefined(i)?(this.nElements++,n=void 0):n=i.value,this.table[r]={key:e,value:t},n}},e.prototype.remove=function(e){var t="$"+this.toStr(e),n=this.table[t];if(!util$9.isUndefined(n))return delete this.table[t],this.nElements--,n.value},e.prototype.keys=function(){var e=[];for(var t in this.table)if(util$9.has(this.table,t)){var n=this.table[t];e.push(n.key)}return e},e.prototype.values=function(){var e=[];for(var t in this.table)if(util$9.has(this.table,t)){var n=this.table[t];e.push(n.value)}return e},e.prototype.forEach=function(e){for(var t in this.table)if(util$9.has(this.table,t)){var n=this.table[t];if(!1===e(n.key,n.value))return}},e.prototype.containsKey=function(e){return!util$9.isUndefined(this.getValue(e))},e.prototype.clear=function(){this.table={},this.nElements=0},e.prototype.size=function(){return this.nElements},e.prototype.isEmpty=function(){return this.nElements<=0},e.prototype.toString=function(){var e="{";return this.forEach((function(t,n){e+="\n\t"+t+" : "+n})),e+"\n}"},e}(),_default=Dictionary$2.default=Dictionary$1,_Set={};Object.defineProperty(_Set,"__esModule",{value:!0});var util$8=util$b,arrays$3=arrays$4,Dictionary_1$5=Dictionary$2,Set$1=function(){function e(e){this.dictionary=new Dictionary_1$5.default(e)}return e.prototype.contains=function(e){return this.dictionary.containsKey(e)},e.prototype.add=function(e){return!this.contains(e)&&!util$8.isUndefined(e)&&(this.dictionary.setValue(e,e),!0)},e.prototype.intersection=function(e){var t=this;this.forEach((function(n){return e.contains(n)||t.remove(n),!0}))},e.prototype.union=function(e){var t=this;e.forEach((function(e){return t.add(e),!0}))},e.prototype.difference=function(e){var t=this;e.forEach((function(e){return t.remove(e),!0}))},e.prototype.isSubsetOf=function(e){if(this.size()>e.size())return!1;var t=!0;return this.forEach((function(n){return!!e.contains(n)||(t=!1,!1)})),t},e.prototype.remove=function(e){return!!this.contains(e)&&(this.dictionary.remove(e),!0)},e.prototype.forEach=function(e){this.dictionary.forEach((function(t,n){return e(n)}))},e.prototype.toArray=function(){return this.dictionary.values()},e.prototype.isEmpty=function(){return this.dictionary.isEmpty()},e.prototype.size=function(){return this.dictionary.size()},e.prototype.clear=function(){this.dictionary.clear()},e.prototype.toString=function(){return arrays$3.toString(this.toArray())},e}();_Set.default=Set$1,Object.defineProperty(Bag$1,"__esModule",{value:!0});var util$7=util$b,Dictionary_1$4=Dictionary$2,Set_1$1=_Set,Bag=function(){function e(e){this.toStrF=e||util$7.defaultToString,this.dictionary=new Dictionary_1$4.default(this.toStrF),this.nElements=0}return e.prototype.add=function(e,t){if(void 0===t&&(t=1),util$7.isUndefined(e)||t<=0)return!1;if(this.contains(e))this.dictionary.getValue(e).copies+=t;else{var n={value:e,copies:t};this.dictionary.setValue(e,n)}return this.nElements+=t,!0},e.prototype.count=function(e){return this.contains(e)?this.dictionary.getValue(e).copies:0},e.prototype.contains=function(e){return this.dictionary.containsKey(e)},e.prototype.remove=function(e,t){if(void 0===t&&(t=1),util$7.isUndefined(e)||t<=0)return!1;if(this.contains(e)){var n=this.dictionary.getValue(e);return t>n.copies?this.nElements-=n.copies:this.nElements-=t,n.copies-=t,n.copies<=0&&this.dictionary.remove(e),!0}return!1},e.prototype.toArray=function(){for(var e=[],t=0,n=this.dictionary.values();t<n.length;t++)for(var r=n[t],i=r.value,a=r.copies,o=0;o<a;o++)e.push(i);return e},e.prototype.toSet=function(){for(var e=new Set_1$1.default(this.toStrF),t=0,n=this.dictionary.values();t<n.length;t++){var r=n[t].value;e.add(r)}return e},e.prototype.forEach=function(e){this.dictionary.forEach((function(t,n){for(var r=n.value,i=n.copies,a=0;a<i;a++)if(!1===e(r))return!1;return!0}))},e.prototype.size=function(){return this.nElements},e.prototype.isEmpty=function(){return 0===this.nElements},e.prototype.clear=function(){this.nElements=0,this.dictionary.clear()},e}();Bag$1.default=Bag;var BSTree$1={},BSTreeKV$1={},Queue$1={},LinkedList$1={};Object.defineProperty(LinkedList$1,"__esModule",{value:!0});var util$6=util$b,arrays$2=arrays$4,LinkedList=function(){function e(){this.firstNode=null,this.lastNode=null,this.nElements=0}return e.prototype.add=function(e,t){if(util$6.isUndefined(t)&&(t=this.nElements),t<0||t>this.nElements||util$6.isUndefined(e))return!1;var n=this.createNode(e);if(0===this.nElements||null===this.lastNode)this.firstNode=n,this.lastNode=n;else if(t===this.nElements)this.lastNode.next=n,this.lastNode=n;else if(0===t)n.next=this.firstNode,this.firstNode=n;else{var r=this.nodeAtIndex(t-1);if(null===r)return!1;n.next=r.next,r.next=n}return this.nElements++,!0},e.prototype.first=function(){if(null!==this.firstNode)return this.firstNode.element},e.prototype.last=function(){if(null!==this.lastNode)return this.lastNode.element},e.prototype.elementAtIndex=function(e){var t=this.nodeAtIndex(e);if(null!==t)return t.element},e.prototype.indexOf=function(e,t){var n=t||util$6.defaultEquals;if(util$6.isUndefined(e))return-1;for(var r=this.firstNode,i=0;null!==r;){if(n(r.element,e))return i;i++,r=r.next}return-1},e.prototype.contains=function(e,t){return this.indexOf(e,t)>=0},e.prototype.remove=function(e,t){var n=t||util$6.defaultEquals;if(this.nElements<1||util$6.isUndefined(e))return!1;for(var r=null,i=this.firstNode;null!==i;){if(n(i.element,e))return null===r?(this.firstNode=i.next,i===this.lastNode&&(this.lastNode=null)):i===this.lastNode?(this.lastNode=r,r.next=i.next,i.next=null):(r.next=i.next,i.next=null),this.nElements--,!0;r=i,i=i.next}return!1},e.prototype.clear=function(){this.firstNode=null,this.lastNode=null,this.nElements=0},e.prototype.equals=function(t,n){var r=n||util$6.defaultEquals;return t instanceof e&&(this.size()===t.size()&&this.equalsAux(this.firstNode,t.firstNode,r))},e.prototype.equalsAux=function(e,t,n){for(;null!==e&&null!==t;){if(!n(e.element,t.element))return!1;e=e.next,t=t.next}return!0},e.prototype.removeElementAtIndex=function(e){if(!(e<0||e>=this.nElements||null===this.firstNode||null===this.lastNode)){var t;if(1===this.nElements)t=this.firstNode.element,this.firstNode=null,this.lastNode=null;else{var n=this.nodeAtIndex(e-1);null===n?(t=this.firstNode.element,this.firstNode=this.firstNode.next):n.next===this.lastNode&&(t=this.lastNode.element,this.lastNode=n),null!==n&&null!==n.next&&(t=n.next.element,n.next=n.next.next)}return this.nElements--,t}},e.prototype.forEach=function(e){for(var t=this.firstNode;null!==t&&!1!==e(t.element);)t=t.next},e.prototype.reverse=function(){for(var e=null,t=this.firstNode,n=null;null!==t;)n=t.next,t.next=e,e=t,t=n;n=this.firstNode,this.firstNode=this.lastNode,this.lastNode=n},e.prototype.toArray=function(){for(var e=[],t=this.firstNode;null!==t;)e.push(t.element),t=t.next;return e},e.prototype.size=function(){return this.nElements},e.prototype.isEmpty=function(){return this.nElements<=0},e.prototype.toString=function(){return arrays$2.toString(this.toArray())},e.prototype.nodeAtIndex=function(e){if(e<0||e>=this.nElements)return null;if(e===this.nElements-1)return this.lastNode;for(var t=this.firstNode,n=0;n<e&&null!==t;n++)t=t.next;return t},e.prototype.createNode=function(e){return{element:e,next:null}},e}();LinkedList$1.default=LinkedList,Object.defineProperty(Queue$1,"__esModule",{value:!0});var LinkedList_1$2=LinkedList$1,Queue=function(){function e(){this.list=new LinkedList_1$2.default}return e.prototype.enqueue=function(e){return this.list.add(e)},e.prototype.add=function(e){return this.list.add(e)},e.prototype.dequeue=function(){if(0!==this.list.size()){var e=this.list.first();return this.list.removeElementAtIndex(0),e}},e.prototype.peek=function(){if(0!==this.list.size())return this.list.first()},e.prototype.size=function(){return this.list.size()},e.prototype.contains=function(e,t){return this.list.contains(e,t)},e.prototype.isEmpty=function(){return this.list.size()<=0},e.prototype.clear=function(){this.list.clear()},e.prototype.forEach=function(e){this.list.forEach(e)},e}();Queue$1.default=Queue,Object.defineProperty(BSTreeKV$1,"__esModule",{value:!0});var util$5=util$b,Queue_1$1=Queue$1,BSTreeKV=function(){function e(e){this.root=null,this.compare=e||util$5.defaultCompare,this.nElements=0}return e.prototype.add=function(e){return!util$5.isUndefined(e)&&(null!==this.insertNode(this.createNode(e))&&(this.nElements++,!0))},e.prototype.clear=function(){this.root=null,this.nElements=0},e.prototype.isEmpty=function(){return 0===this.nElements},e.prototype.size=function(){return this.nElements},e.prototype.contains=function(e){return!util$5.isUndefined(e)&&null!==this.searchNode(this.root,e)},e.prototype.search=function(e){var t=this.searchNode(this.root,e);if(null!==t)return t.element},e.prototype.remove=function(e){var t=this.searchNode(this.root,e);return null!==t&&(this.removeNode(t),this.nElements--,!0)},e.prototype.inorderTraversal=function(e){this.inorderTraversalAux(this.root,e,{stop:!1})},e.prototype.preorderTraversal=function(e){this.preorderTraversalAux(this.root,e,{stop:!1})},e.prototype.postorderTraversal=function(e){this.postorderTraversalAux(this.root,e,{stop:!1})},e.prototype.levelTraversal=function(e){this.levelTraversalAux(this.root,e)},e.prototype.minimum=function(){if(!this.isEmpty()&&null!==this.root)return this.minimumAux(this.root).element},e.prototype.maximum=function(){if(!this.isEmpty()&&null!==this.root)return this.maximumAux(this.root).element},e.prototype.forEach=function(e){this.inorderTraversal(e)},e.prototype.toArray=function(){var e=[];return this.inorderTraversal((function(t){return e.push(t),!0})),e},e.prototype.height=function(){return this.heightAux(this.root)},e.prototype.searchNode=function(e,t){for(var n=1;null!==e&&0!==n;)(n=this.compare(t,e.element))<0?e=e.leftCh:n>0&&(e=e.rightCh);return e},e.prototype.transplant=function(e,t){null===e.parent?this.root=t:e===e.parent.leftCh?e.parent.leftCh=t:e.parent.rightCh=t,null!==t&&(t.parent=e.parent)},e.prototype.removeNode=function(e){if(null===e.leftCh)this.transplant(e,e.rightCh);else if(null===e.rightCh)this.transplant(e,e.leftCh);else{var t=this.minimumAux(e.rightCh);t.parent!==e&&(this.transplant(t,t.rightCh),t.rightCh=e.rightCh,t.rightCh.parent=t),this.transplant(e,t),t.leftCh=e.leftCh,t.leftCh.parent=t}},e.prototype.inorderTraversalAux=function(e,t,n){null===e||n.stop||(this.inorderTraversalAux(e.leftCh,t,n),n.stop||(n.stop=!1===t(e.element),n.stop||this.inorderTraversalAux(e.rightCh,t,n)))},e.prototype.levelTraversalAux=function(e,t){var n=new Queue_1$1.default;for(null!==e&&n.enqueue(e),e=n.dequeue()||null;null!=e;){if(!1===t(e.element))return;null!==e.leftCh&&n.enqueue(e.leftCh),null!==e.rightCh&&n.enqueue(e.rightCh),e=n.dequeue()||null}},e.prototype.preorderTraversalAux=function(e,t,n){null===e||n.stop||(n.stop=!1===t(e.element),n.stop||(this.preorderTraversalAux(e.leftCh,t,n),n.stop||this.preorderTraversalAux(e.rightCh,t,n)))},e.prototype.postorderTraversalAux=function(e,t,n){null===e||n.stop||(this.postorderTraversalAux(e.leftCh,t,n),n.stop||(this.postorderTraversalAux(e.rightCh,t,n),n.stop||(n.stop=!1===t(e.element))))},e.prototype.minimumAux=function(e){for(;null!=e&&null!==e.leftCh;)e=e.leftCh;return e},e.prototype.maximumAux=function(e){for(;null!=e&&null!==e.rightCh;)e=e.rightCh;return e},e.prototype.heightAux=function(e){return null===e?-1:Math.max(this.heightAux(e.leftCh),this.heightAux(e.rightCh))+1},e.prototype.insertNode=function(e){for(var t=null,n=this.root;null!==n;){var r=this.compare(e.element,n.element);if(0===r)return null;r<0?(t=n,n=n.leftCh):(t=n,n=n.rightCh)}return e.parent=t,null===t?this.root=e:this.compare(e.element,t.element)<0?t.leftCh=e:t.rightCh=e,e},e.prototype.createNode=function(e){return{element:e,leftCh:null,rightCh:null,parent:null}},e}();BSTreeKV$1.default=BSTreeKV;var __extends$2=commonjsGlobal&&commonjsGlobal.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),extendStatics;Object.defineProperty(BSTree$1,"__esModule",{value:!0});var BSTreeKV_1$1=BSTreeKV$1,BSTree=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends$2(t,e),t}(BSTreeKV_1$1.default);BSTree$1.default=BSTree;var Heap$1={};Object.defineProperty(Heap$1,"__esModule",{value:!0});var collections=util$b,arrays$1=arrays$4,Heap=function(){function e(e){this.data=[],this.compare=e||collections.defaultCompare}return e.prototype.leftChildIndex=function(e){return 2*e+1},e.prototype.rightChildIndex=function(e){return 2*e+2},e.prototype.parentIndex=function(e){return Math.floor((e-1)/2)},e.prototype.minIndex=function(e,t){return t>=this.data.length?e>=this.data.length?-1:e:this.compare(this.data[e],this.data[t])<=0?e:t},e.prototype.siftUp=function(e){for(var t=this.parentIndex(e);e>0&&this.compare(this.data[t],this.data[e])>0;)arrays$1.swap(this.data,t,e),e=t,t=this.parentIndex(e)},e.prototype.siftDown=function(e){for(var t=this.minIndex(this.leftChildIndex(e),this.rightChildIndex(e));t>=0&&this.compare(this.data[e],this.data[t])>0;)arrays$1.swap(this.data,t,e),e=t,t=this.minIndex(this.leftChildIndex(e),this.rightChildIndex(e))},e.prototype.peek=function(){return this.data.length>0?this.data[0]:void 0},e.prototype.add=function(e){return!collections.isUndefined(e)&&(this.data.push(e),this.siftUp(this.data.length-1),!0)},e.prototype.removeRoot=function(){if(this.data.length>0){var e=this.data[0];return this.data[0]=this.data[this.data.length-1],this.data.splice(this.data.length-1,1),this.data.length>0&&this.siftDown(0),e}},e.prototype.contains=function(e){var t=collections.compareToEquals(this.compare);return arrays$1.contains(this.data,e,t)},e.prototype.size=function(){return this.data.length},e.prototype.isEmpty=function(){return this.data.length<=0},e.prototype.clear=function(){this.data.length=0},e.prototype.forEach=function(e){arrays$1.forEach(this.data,e)},e}();Heap$1.default=Heap;var LinkedDictionary$1={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(LinkedDictionary$1,"__esModule",{value:!0});var Dictionary_1$3=Dictionary$2,util$4=util$b,LinkedDictionaryPair=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},e}(),HeadOrTailLinkedDictionaryPair=function(){function e(){this.key=null,this.value=null}return e.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},e}();function isHeadOrTailLinkedDictionaryPair(e){return!e.next}var LinkedDictionary=function(e){function t(t){var n=e.call(this,t)||this;return n.head=new HeadOrTailLinkedDictionaryPair,n.tail=new HeadOrTailLinkedDictionaryPair,n.head.next=n.tail,n.tail.prev=n.head,n}return __extends$1(t,e),t.prototype.appendToTail=function(e){var t=this.tail.prev;t.next=e,e.prev=t,e.next=this.tail,this.tail.prev=e},t.prototype.getLinkedDictionaryPair=function(e){if(!util$4.isUndefined(e)){var t="$"+this.toStr(e);return this.table[t]}},t.prototype.getValue=function(e){var t=this.getLinkedDictionaryPair(e);if(!util$4.isUndefined(t))return t.value},t.prototype.remove=function(t){var n=this.getLinkedDictionaryPair(t);if(!util$4.isUndefined(n))return e.prototype.remove.call(this,t),n.unlink(),n.value},t.prototype.clear=function(){e.prototype.clear.call(this),this.head.next=this.tail,this.tail.prev=this.head},t.prototype.replace=function(e,t){var n="$"+this.toStr(t.key);t.next=e.next,t.prev=e.prev,this.remove(e.key),t.prev.next=t,t.next.prev=t,this.table[n]=t,++this.nElements},t.prototype.setValue=function(e,t){if(!util$4.isUndefined(e)&&!util$4.isUndefined(t)){var n=this.getLinkedDictionaryPair(e),r=new LinkedDictionaryPair(e,t),i="$"+this.toStr(e);return util$4.isUndefined(n)?(this.appendToTail(r),this.table[i]=r,void++this.nElements):(this.replace(n,r),n.value)}},t.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(t)})),e},t.prototype.values=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e},t.prototype.forEach=function(e){for(var t=this.head.next;!isHeadOrTailLinkedDictionaryPair(t);){if(!1===e(t.key,t.value))return;t=t.next}},t}(Dictionary_1$3.default);LinkedDictionary$1.default=LinkedDictionary;var MultiDictionary$1={};Object.defineProperty(MultiDictionary$1,"__esModule",{value:!0});var util$3=util$b,Dictionary_1$2=Dictionary$2,arrays=arrays$4,MultiDictionary=function(){function e(e,t,n){void 0===n&&(n=!1),this.dict=new Dictionary_1$2.default(e),this.equalsF=t||util$3.defaultEquals,this.allowDuplicate=n}return e.prototype.getValue=function(e){var t=this.dict.getValue(e);return util$3.isUndefined(t)?[]:arrays.copy(t)},e.prototype.setValue=function(e,t){if(util$3.isUndefined(e)||util$3.isUndefined(t))return!1;var n=this.dict.getValue(e);return util$3.isUndefined(n)?(this.dict.setValue(e,[t]),!0):!(!this.allowDuplicate&&arrays.contains(n,t,this.equalsF))&&(n.push(t),!0)},e.prototype.remove=function(e,t){if(util$3.isUndefined(t)){var n=this.dict.remove(e);return!util$3.isUndefined(n)}var r=this.dict.getValue(e);return!(util$3.isUndefined(r)||!arrays.remove(r,t,this.equalsF))&&(0===r.length&&this.dict.remove(e),!0)},e.prototype.keys=function(){return this.dict.keys()},e.prototype.values=function(){for(var e=[],t=0,n=this.dict.values();t<n.length;t++)for(var r=0,i=n[t];r<i.length;r++){var a=i[r];e.push(a)}return e},e.prototype.containsKey=function(e){return this.dict.containsKey(e)},e.prototype.clear=function(){this.dict.clear()},e.prototype.size=function(){return this.dict.size()},e.prototype.isEmpty=function(){return this.dict.isEmpty()},e}();MultiDictionary$1.default=MultiDictionary;var FactoryDictionary$1={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(FactoryDictionary$1,"__esModule",{value:!0});var Dictionary_1$1=Dictionary$2,util$2=util$b,FactoryDictionary=function(e){function t(t,n){var r=e.call(this,n)||this;return r.defaultFactoryFunction=t,r}return __extends(t,e),t.prototype.setDefault=function(t,n){var r=e.prototype.getValue.call(this,t);return util$2.isUndefined(r)?(this.setValue(t,n),n):r},t.prototype.getValue=function(e){return this.setDefault(e,this.defaultFactoryFunction())},t}(Dictionary_1$1.default);FactoryDictionary$1.default=FactoryDictionary;var PriorityQueue$1={};Object.defineProperty(PriorityQueue$1,"__esModule",{value:!0});var util$1=util$b,Heap_1$1=Heap$1,PriorityQueue=function(){function e(e){this.heap=new Heap_1$1.default(util$1.reverseCompareFunction(e))}return e.prototype.enqueue=function(e){return this.heap.add(e)},e.prototype.add=function(e){return this.heap.add(e)},e.prototype.dequeue=function(){if(0!==this.heap.size()){var e=this.heap.peek();return this.heap.removeRoot(),e}},e.prototype.peek=function(){return this.heap.peek()},e.prototype.contains=function(e){return this.heap.contains(e)},e.prototype.isEmpty=function(){return this.heap.isEmpty()},e.prototype.size=function(){return this.heap.size()},e.prototype.clear=function(){this.heap.clear()},e.prototype.forEach=function(e){this.heap.forEach(e)},e}();PriorityQueue$1.default=PriorityQueue;var Stack$1={};Object.defineProperty(Stack$1,"__esModule",{value:!0});var LinkedList_1$1=LinkedList$1,Stack=function(){function e(){this.list=new LinkedList_1$1.default}return e.prototype.push=function(e){return this.list.add(e,0)},e.prototype.add=function(e){return this.list.add(e,0)},e.prototype.pop=function(){return this.list.removeElementAtIndex(0)},e.prototype.peek=function(){return this.list.first()},e.prototype.size=function(){return this.list.size()},e.prototype.contains=function(e,t){return this.list.contains(e,t)},e.prototype.isEmpty=function(){return this.list.isEmpty()},e.prototype.clear=function(){this.list.clear()},e.prototype.forEach=function(e){this.list.forEach(e)},e}();Stack$1.default=Stack;var MultiRootTree$1={},Direction;Object.defineProperty(MultiRootTree$1,"__esModule",{value:!0}),function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER",e[e.INSIDE_AT_END=2]="INSIDE_AT_END",e[e.INSIDE_AT_START=3]="INSIDE_AT_START"}(Direction||(Direction={}));var MultiRootTree=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this.rootIds=e,this.nodes=t,this.initRootIds(),this.initNodes()}return e.prototype.initRootIds=function(){for(var e=0,t=this.rootIds;e<t.length;e++){var n=t[e];this.createEmptyNodeIfNotExist(n)}},e.prototype.initNodes=function(){for(var e in this.nodes)if(this.nodes.hasOwnProperty(e))for(var t=0,n=this.nodes[e];t<n.length;t++){var r=n[t];this.createEmptyNodeIfNotExist(r)}},e.prototype.createEmptyNodeIfNotExist=function(e){this.nodes[e]||(this.nodes[e]=[])},e.prototype.getRootIds=function(){return this.rootIds.slice()},e.prototype.getNodes=function(){var e={};for(var t in this.nodes)this.nodes.hasOwnProperty(t)&&(e[t]=this.nodes[t].slice());return e},e.prototype.getObject=function(){return{rootIds:this.getRootIds(),nodes:this.getNodes()}},e.prototype.toObject=function(){return this.getObject()},e.prototype.flatten=function(){for(var e=this,t=[],n=0;n<this.rootIds.length;n++){var r=this.rootIds[n];t.push({id:r,level:0,hasParent:!1,childrenCount:0}),l(r,this.nodes,t,0)}for(var i=0,a=t;i<a.length;i++){var o=a[i];o.childrenCount=s(o.id)}return t;function s(t){return e.nodes[t]?e.nodes[t].length:0}function l(e,t,n,r){if(void 0===r&&(r=0),e&&t&&n&&t[e]){r++;for(var i=t[e],a=0;a<i.length;a++){var o=i[a];n.push({id:o,level:r,hasParent:!0}),l(o,t,n,r)}r--}}},e.prototype.moveIdBeforeId=function(e,t){return this.moveId(e,t,Direction.BEFORE)},e.prototype.moveIdAfterId=function(e,t){return this.moveId(e,t,Direction.AFTER)},e.prototype.moveIdIntoId=function(e,t,n){return void 0===n&&(n=!0),n?this.moveId(e,t,Direction.INSIDE_AT_START):this.moveId(e,t,Direction.INSIDE_AT_END)},e.prototype.swapRootIdWithRootId=function(e,t){var n=this.findRootId(e),r=this.findRootId(t);this.swapRootPositionWithRootPosition(n,r)},e.prototype.swapRootPositionWithRootPosition=function(e,t){var n=this.rootIds[t];this.rootIds[t]=this.rootIds[e],this.rootIds[e]=n},e.prototype.deleteId=function(e){this.rootDeleteId(e),this.nodeAndSubNodesDelete(e),this.nodeRefrencesDelete(e)},e.prototype.insertIdBeforeId=function(e,t){var n=this.findRootId(e);for(var r in n>-1&&this.insertIdIntoRoot(t,n),this.nodes)if(this.nodes.hasOwnProperty(r)){var i=this.findNodeId(r,e);i>-1&&this.insertIdIntoNode(r,t,i)}},e.prototype.insertIdAfterId=function(e,t){var n=this.findRootId(e);for(var r in n>-1&&this.insertIdIntoRoot(t,n+1),this.nodes)if(this.nodes.hasOwnProperty(r)){var i=this.findNodeId(r,e);i>-1&&this.insertIdIntoNode(r,t,i+1)}},e.prototype.insertIdIntoId=function(e,t){this.nodeInsertAtEnd(e,t),this.nodes[t]=[]},e.prototype.insertIdIntoRoot=function(e,t){if(void 0===t)this.rootInsertAtEnd(e);else if(t<0){var n=this.rootIds.length;this.rootIds.splice(t+n+1,0,e)}else this.rootIds.splice(t,0,e);this.nodes[e]=this.nodes[e]||[]},e.prototype.insertIdIntoNode=function(e,t,n){if(this.nodes[e]=this.nodes[e]||[],this.nodes[t]=this.nodes[t]||[],void 0===n)this.nodeInsertAtEnd(e,t);else if(n<0){var r=this.nodes[e].length;this.nodes[e].splice(n+r+1,0,t)}else this.nodes[e].splice(n,0,t)},e.prototype.moveId=function(e,t,n){var r=e,i=this.findRootId(r);for(var a in this.nodes[t],this.nodes)if(this.nodes.hasOwnProperty(a)){this.findNodeId(a,t);break}var o=t,s=this.findRootId(o);for(var a in this.nodes[t],this.nodes)if(this.nodes.hasOwnProperty(a)){this.findNodeId(a,t);break}if(i>-1)if(s>-1)switch(this.rootDelete(i),s>i&&s--,n){case Direction.BEFORE:this.insertIdIntoRoot(r,s);break;case Direction.AFTER:this.insertIdIntoRoot(r,s+1);break;case Direction.INSIDE_AT_START:this.nodeInsertAtStart(o,r);break;case Direction.INSIDE_AT_END:this.nodeInsertAtEnd(o,r)}else for(var a in this.rootDelete(i),this.nodes){if(this.nodes.hasOwnProperty(a))if((l=this.findNodeId(a,o))>-1){switch(n){case Direction.BEFORE:this.insertIdIntoNode(a,r,l);break;case Direction.AFTER:this.insertIdIntoNode(a,r,l+1);break;case Direction.INSIDE_AT_START:this.nodeInsertAtStart(o,r);break;case Direction.INSIDE_AT_END:this.nodeInsertAtEnd(o,r)}break}}else if(s>-1){for(var a in this.nodes){if(this.nodes.hasOwnProperty(a))if((l=this.findNodeId(a,r))>-1){this.nodeDeleteAtIndex(a,l);break}}switch(n){case Direction.BEFORE:this.insertIdIntoRoot(r,s);break;case Direction.AFTER:this.insertIdIntoRoot(r,s+1);break;case Direction.INSIDE_AT_START:this.nodeInsertAtStart(o,r);break;case Direction.INSIDE_AT_END:this.nodeInsertAtEnd(o,r)}}else{for(var a in this.nodes){if(this.nodes.hasOwnProperty(a))if((l=this.findNodeId(a,r))>-1){this.nodeDeleteAtIndex(a,l);break}}for(var a in this.nodes){var l;if(this.nodes.hasOwnProperty(a))if((l=this.findNodeId(a,o))>-1){switch(n){case Direction.BEFORE:this.insertIdIntoNode(a,r,l);break;case Direction.AFTER:this.insertIdIntoNode(a,r,l+1);break;case Direction.INSIDE_AT_START:this.nodeInsertAtStart(o,r);break;case Direction.INSIDE_AT_END:this.nodeInsertAtEnd(o,r)}break}}}},e.prototype.swapArrayElements=function(e,t,n){var r=e[t];return e[t]=e[n],e[n]=r,e},e.prototype.rootDeleteId=function(e){var t=this.findRootId(e);t>-1&&this.rootDelete(t)},e.prototype.nodeAndSubNodesDelete=function(e){for(var t=[],n=0;n<this.nodes[e].length;n++){var r=this.nodes[e][n];this.nodeAndSubNodesDelete(r),t.push(e)}this.nodeDelete(e);for(n=0;n<t.length;n++)this.nodeDelete(t[n])},e.prototype.nodeRefrencesDelete=function(e){for(var t in this.nodes)if(this.nodes.hasOwnProperty(t))for(var n=0;n<this.nodes[t].length;n++){this.nodes[t][n]===e&&this.nodeDeleteAtIndex(t,n)}},e.prototype.nodeDelete=function(e){delete this.nodes[e]},e.prototype.findRootId=function(e){return this.rootIds.indexOf(e)},e.prototype.findNodeId=function(e,t){return this.nodes[e].indexOf(t)},e.prototype.findNode=function(e){return this.nodes[e]},e.prototype.nodeInsertAtStart=function(e,t){this.nodes[e].unshift(t)},e.prototype.nodeInsertAtEnd=function(e,t){this.nodes[e].push(t)},e.prototype.rootDelete=function(e){this.rootIds.splice(e,1)},e.prototype.nodeDeleteAtIndex=function(e,t){this.nodes[e].splice(t,1)},e.prototype.rootInsertAtStart=function(e){this.rootIds.unshift(e)},e.prototype.rootInsertAtEnd=function(e){this.rootIds.push(e)},e}();MultiRootTree$1.default=MultiRootTree,Object.defineProperty(lib$3,"__esModule",{value:!0});var _arrays=arrays$4;lib$3.arrays=_arrays;var Bag_1=Bag$1;lib$3.Bag=Bag_1.default;var BSTree_1=BSTree$1;lib$3.BSTree=BSTree_1.default;var BSTreeKV_1=BSTreeKV$1;lib$3.BSTreeKV=BSTreeKV_1.default;var Dictionary_1=Dictionary$2,Dictionary=lib$3.Dictionary=Dictionary_1.default,Heap_1=Heap$1;lib$3.Heap=Heap_1.default;var LinkedDictionary_1=LinkedDictionary$1;lib$3.LinkedDictionary=LinkedDictionary_1.default;var LinkedList_1=LinkedList$1;lib$3.LinkedList=LinkedList_1.default;var MultiDictionary_1=MultiDictionary$1;lib$3.MultiDictionary=MultiDictionary_1.default;var FactoryDictionary_1=FactoryDictionary$1;lib$3.FactoryDictionary=FactoryDictionary_1.default;var FactoryDictionary_2=FactoryDictionary$1;lib$3.DefaultDictionary=FactoryDictionary_2.default;var Queue_1=Queue$1;lib$3.Queue=Queue_1.default;var PriorityQueue_1=PriorityQueue$1;lib$3.PriorityQueue=PriorityQueue_1.default;var Set_1=_Set;lib$3.Set=Set_1.default;var Stack_1=Stack$1;lib$3.Stack=Stack_1.default;var MultiRootTree_1=MultiRootTree$1;lib$3.MultiRootTree=MultiRootTree_1.default;var _util=util$b;lib$3.util=_util;var _InstantaneousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a,o){var s,l;return _classCallCheck2(this,n),_set((s=_assertThisInitialized2(l=t.call(this,i)),_getPrototypeOf2(n.prototype)),"parentMeasure",o,s,!0),l.dynamicEnum=DynamicEnum[e.toLowerCase()],l.soundDynamic=r,l.staffNumber=a,l}return _createClass2(n,[{key:"ParentMultiExpression",get:function(){return this.multiExpression},set:function(e){this.multiExpression=e}},{key:"DynEnum",get:function(){return this.dynamicEnum},set:function(e){this.dynamicEnum=e}},{key:"SoundDynamic",get:function(){return this.soundDynamic},set:function(e){this.soundDynamic=e}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"Length",get:function(){return Math.abs(this.length)<1e-4&&(this.length=this.calculateLength()),this.length}},{key:"MidiVolume",get:function(){return 127*this.Volume}},{key:"Volume",get:function(){return n.dynamicToRelativeVolumeDict.getValue(this.dynamicEnum)}},{key:"getDynamicExpressionSymbol",value:function(e){switch(e){case"p":return DynamicExpressionSymbolEnum.p;case"f":return DynamicExpressionSymbolEnum.f;case"s":return DynamicExpressionSymbolEnum.s;case"z":return DynamicExpressionSymbolEnum.z;case"m":return DynamicExpressionSymbolEnum.m;case"r":return DynamicExpressionSymbolEnum.r;default:throw new InvalidEnumArgumentException("unknown DynamicExpressionSymbolEnum: "+e)}}},{key:"calculateLength",value:function(){return loglevelExports.debug("[Andrea] instantaneousDynamicExpression: not implemented: calculateLength!"),0}}],[{key:"staticConstructor",value:function(){n.dynamicToRelativeVolumeDict.setValue(13,1),n.dynamicToRelativeVolumeDict.setValue(12,126/127),n.dynamicToRelativeVolumeDict.setValue(11,125/127),n.dynamicToRelativeVolumeDict.setValue(10,124/127),n.dynamicToRelativeVolumeDict.setValue(9,122/127),n.dynamicToRelativeVolumeDict.setValue(8,108/127),n.dynamicToRelativeVolumeDict.setValue(7,76/127),n.dynamicToRelativeVolumeDict.setValue(14,.5),n.dynamicToRelativeVolumeDict.setValue(16,.5),n.dynamicToRelativeVolumeDict.setValue(17,.5),n.dynamicToRelativeVolumeDict.setValue(18,.5),n.dynamicToRelativeVolumeDict.setValue(19,.5),n.dynamicToRelativeVolumeDict.setValue(20,.5),n.dynamicToRelativeVolumeDict.setValue(21,.5),n.dynamicToRelativeVolumeDict.setValue(22,.5),n.dynamicToRelativeVolumeDict.setValue(23,.5),n.dynamicToRelativeVolumeDict.setValue(6,60/127),n.dynamicToRelativeVolumeDict.setValue(5,28/127),n.dynamicToRelativeVolumeDict.setValue(4,12/127),n.dynamicToRelativeVolumeDict.setValue(3,10/127),n.dynamicToRelativeVolumeDict.setValue(2,7/127),n.dynamicToRelativeVolumeDict.setValue(1,5/127),n.dynamicToRelativeVolumeDict.setValue(0,4/127)}},{key:"isInputStringInstantaneousDynamic",value:function(e){return!!e&&n.isStringInStringList(n.listInstantaneousDynamics,e)}}]),n}(AbstractExpression),InstantaneousDynamicExpression=_InstantaneousDynamicExpression;InstantaneousDynamicExpression.dynamicToRelativeVolumeDict=new Dictionary,InstantaneousDynamicExpression.listInstantaneousDynamics=["pppppp","ppppp","pppp","ppp","pp","p","ffffff","fffff","ffff","fff","ff","f","mf","mp","sf","sff","sp","spp","fp","rf","rfz","sfz","sffz","fz"];var DynamicEnum=function(e){return e[e.pppppp=0]="pppppp",e[e.ppppp=1]="ppppp",e[e.pppp=2]="pppp",e[e.ppp=3]="ppp",e[e.pp=4]="pp",e[e.p=5]="p",e[e.mp=6]="mp",e[e.mf=7]="mf",e[e.f=8]="f",e[e.ff=9]="ff",e[e.fff=10]="fff",e[e.ffff=11]="ffff",e[e.fffff=12]="fffff",e[e.ffffff=13]="ffffff",e[e.sf=14]="sf",e[e.sff=15]="sff",e[e.sfp=16]="sfp",e[e.sfpp=17]="sfpp",e[e.fp=18]="fp",e[e.rf=19]="rf",e[e.rfz=20]="rfz",e[e.sfz=21]="sfz",e[e.sffz=22]="sffz",e[e.fz=23]="fz",e[e.other=24]="other",e}(DynamicEnum||{});InstantaneousDynamicExpression.staticConstructor();var DynamicsContainer=function(){function e(t,n){_classCallCheck2(this,e),t instanceof ContinuousDynamicExpression?this.continuousDynamicExpression=t:t instanceof InstantaneousDynamicExpression&&(this.instantaneousDynamicExpression=t),this.staffNumber=n}return _createClass2(e,[{key:"parMultiExpression",value:function(){return this.continuousDynamicExpression?this.continuousDynamicExpression.StartMultiExpression:this.instantaneousDynamicExpression?this.instantaneousDynamicExpression.ParentMultiExpression:void 0}}],[{key:"Compare",value:function(e,t){return e.parMultiExpression().AbsoluteTimestamp.CompareTo(t.parMultiExpression().AbsoluteTimestamp)}}]),e}(),AbstractNotationInstruction=function(){function e(t){_classCallCheck2(this,e),this.printObject=!0,this.parent=t}return _createClass2(e,[{key:"Parent",get:function(){return this.parent},set:function(e){this.parent=e}},{key:"PrintObject",get:function(){return this.printObject},set:function(e){this.printObject=e}}]),e}(),RhythmInstruction=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,void 0)).rhythm=e,i.numerator=e.Numerator,i.denominator=e.Denominator,i.symbolEnum=r,i}return _createClass2(n,[{key:"Rhythm",get:function(){return this.rhythm},set:function(e){this.rhythm=e}},{key:"SymbolEnum",get:function(){return this.symbolEnum},set:function(e){this.symbolEnum=e}},{key:"clone",value:function(){return new n(this.rhythm.clone(),this.symbolEnum)}},{key:"OperatorEquals",value:function(e){var t=this;return t===e||!(!t||!e)&&(t.numerator===e.numerator&&t.denominator===e.denominator)}},{key:"OperatorNotEqual",value:function(e){return!(this===e)}},{key:"ToString",value:function(){return"Rhythm: "+this.rhythm.toString()}}]),n}(AbstractNotationInstruction),RhythmSymbolEnum=function(e){return e[e.NONE=0]="NONE",e[e.COMMON=1]="COMMON",e[e.CUT=2]="CUT",e}(RhythmSymbolEnum||{}),MusicPartManagerIterator=function(){function e(t,n,r){_classCallCheck2(this,e),this.currentMeasureIndex=0,this.currentPartIndex=0,this.currentVoiceEntryIndex=-1,this.currentDynamicEntryIndex=0,this.currentTempoEntryIndex=0,this.currentDynamicChangingExpressions=[],this.repetitionIterationCountDictKeys=[],this.repetitionIterationCountDictValues=[],this.currentRepetition=void 0,this.endReached=!1,this.frontReached=!1,this.currentTimeStamp=new Fraction$1(0,1),this.currentEnrolledMeasureTimestamp=new Fraction$1(0,1),this.currentRelativeInMeasureTimestamp=new Fraction$1(0,1),this.currentVerticalContainerInMeasureTimestamp=new Fraction$1(0,1),this.jumpResponsibleRepetition=void 0,this.activeDynamicExpressions=[];try{this.frontReached=!0,this.musicSheet=t,this.currentBpm=t.userStartTempoInBPM,this.currentVoiceEntries=void 0,this.frontReached=!1;var i,a=_createForOfIteratorHelper(this.musicSheet.Repetitions);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.setRepetitionIterationCount(o,1)}}catch(err){a.e(err)}finally{a.f()}for(var s=0;s<t.getCompleteNumberOfStaves();s++)this.ActiveDynamicExpressions.push(void 0);this.currentMeasure=this.musicSheet.SourceMeasures[0],n||(n=new Fraction$1);do{this.moveToNext()}while((!this.currentVoiceEntries||this.currentTimeStamp.lt(n))&&!this.endReached);for(var l=0;l<this.activeDynamicExpressions.length;l++)if(this.activeDynamicExpressions[l])if(this.activeDynamicExpressions[l]instanceof ContinuousDynamicExpression){var u=this.activeDynamicExpressions[l];this.currentDynamicChangingExpressions.push(new DynamicsContainer(u,l))}else{var c=this.activeDynamicExpressions[l];this.currentDynamicChangingExpressions.push(new DynamicsContainer(c,l))}this.currentTempoChangingExpression=this.activeTempoExpression}catch(err){loglevelExports.info("MusicPartManagerIterator: "+err)}}return _createClass2(e,[{key:"EndReached",get:function(){return this.endReached}},{key:"FrontReached",get:function(){return this.frontReached}},{key:"CurrentMeasure",get:function(){return this.currentMeasure}},{key:"CurrentRepetition",get:function(){return this.currentRepetition}},{key:"CurrentRepetitionIteration",get:function(){return this.CurrentRepetition?this.getRepetitionIterationCount(this.CurrentRepetition):0}},{key:"CurrentJumpResponsibleRepetitionIterationBeforeJump",get:function(){return this.jumpResponsibleRepetition?this.getRepetitionIterationCount(this.jumpResponsibleRepetition)-1:0}},{key:"CurrentBpm",get:function(){return this.currentBpm}},{key:"CurrentVoiceEntries",get:function(){return this.currentVoiceEntries}},{key:"CurrentMeasureIndex",get:function(){return this.currentMeasureIndex}},{key:"CurrentEnrolledTimestamp",get:function(){return Fraction$1.plus(this.currentEnrolledMeasureTimestamp,this.currentVerticalContainerInMeasureTimestamp)}},{key:"CurrentSourceTimestamp",get:function(){return this.currentTimeStamp}},{key:"CurrentRelativeInMeasureTimestamp",get:function(){return this.currentRelativeInMeasureTimestamp}},{key:"JumpOccurred",get:function(){return this.backJumpOccurred||this.forwardJumpOccurred}},{key:"ActiveTempoExpression",get:function(){return this.activeTempoExpression}},{key:"ActiveDynamicExpressions",get:function(){return this.activeDynamicExpressions}},{key:"CurrentTempoChangingExpression",get:function(){return this.currentTempoChangingExpression}},{key:"JumpResponsibleRepetition",get:function(){return this.jumpResponsibleRepetition}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=new e(this.musicSheet,null!=t?t:this.currentTimeStamp,n);return r.currentVoiceEntryIndex=this.currentVoiceEntryIndex,r.currentMappingPart=this.currentMappingPart,r.currentPartIndex=this.currentPartIndex,r.currentVoiceEntries=this.currentVoiceEntries,r.endReached=this.endReached,r.frontReached=this.frontReached,r}},{key:"CurrentVisibleVoiceEntries",value:function(e){var t=[];if(!this.currentVoiceEntries)return t;if(e){var n,r=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.ParentVoice.Parent.IdString===e.IdString)return this.getVisibleEntries(i,t),t}}catch(err){r.e(err)}finally{r.f()}}else{var a,o=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.getVisibleEntries(s,t)}}catch(err){o.e(err)}finally{o.f()}}return t}},{key:"CurrentAudibleVoiceEntries",value:function(e){var t=[];if(this.currentVoiceEntries)if(e){var n,r=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.ParentVoice.Parent.IdString===e.IdString)return this.getAudibleEntries(i,t),t}}catch(err){r.e(err)}finally{r.f()}}else{var a,o=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.getAudibleEntries(s,t)}}catch(err){o.e(err)}finally{o.f()}}return t}},{key:"getCurrentDynamicChangingExpressions",value:function(){return this.currentDynamicChangingExpressions}},{key:"CurrentScoreFollowingVoiceEntries",value:function(e){var t=[];if(!this.currentVoiceEntries)return t;if(e){var n,r=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.ParentVoice.Parent.IdString===e.IdString)return this.getScoreFollowingEntries(i,t),t}}catch(err){r.e(err)}finally{r.f()}}else{var a,o=_createForOfIteratorHelper(this.currentVoiceEntries);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.getScoreFollowingEntries(s,t)}}catch(err){o.e(err)}finally{o.f()}}return t}},{key:"currentPlaybackSettings",value:function(){return this.musicSheet.SheetPlaybackSetting}},{key:"moveToNext",value:function(){this.forwardJumpOccurred=this.backJumpOccurred=!1,this.endReached||(this.currentVoiceEntries&&(this.currentVoiceEntries.length=0),this.recursiveMove(),this.currentMeasure||(this.currentTimeStamp=new Fraction$1(99999,1)),void 0!==this.CurrentTempoChangingExpression&&(void 0!==this.CurrentTempoChangingExpression.ContinuousTempo?this.currentBpm=this.CurrentTempoChangingExpression.ContinuousTempo.getInterpolatedTempo(this.CurrentSourceTimestamp):this.currentBpm=this.CurrentTempoChangingExpression.InstantaneousTempo.TempoInBpm))}},{key:"moveToNextVisibleVoiceEntry",value:function(e){for(;!this.endReached;)if(this.moveToNext(),this.checkEntries(e))return}},{key:"resetRepetitionIterationCount",value:function(e){return 1}},{key:"incrementRepetitionIterationCount",value:function(e){return-1===this.repetitionIterationCountDictKeys.indexOf(e)?this.setRepetitionIterationCount(e,1):this.setRepetitionIterationCount(e,this.getRepetitionIterationCount(e)+1)}},{key:"setRepetitionIterationCount",value:function(e,t){var n=this.repetitionIterationCountDictKeys.indexOf(e);return-1===n?(this.repetitionIterationCountDictKeys.push(e),this.repetitionIterationCountDictValues.push(t)):this.repetitionIterationCountDictValues[n]=t,t}},{key:"getRepetitionIterationCount",value:function(e){var t=this.repetitionIterationCountDictKeys.indexOf(e);if(-1!==t)return this.repetitionIterationCountDictValues[t]}},{key:"handleRepetitionsAtMeasureBegin",value:function(){for(var e=0,t=this.currentMeasure.FirstRepetitionInstructions.length;e<t;++e){var n=this.currentMeasure.FirstRepetitionInstructions[e];if(n.parentRepetition){var r=n.parentRepetition;this.currentRepetition=r,r.StartIndex===this.currentMeasureIndex&&void 0!==this.JumpResponsibleRepetition&&r!==this.JumpResponsibleRepetition&&r.StartIndex>=this.JumpResponsibleRepetition.StartIndex&&r.EndIndex<=this.JumpResponsibleRepetition.EndIndex&&this.resetRepetitionIterationCount(r)}}}},{key:"handleRepetitionsAtMeasureEnd",value:function(){for(var e=0,t=this.currentMeasure.LastRepetitionInstructions.length;e<t;++e){var n=this.currentMeasure.LastRepetitionInstructions[e],r=n.parentRepetition;if(r){if(r.BackwardJumpInstructions.indexOf(n)>-1&&this.getRepetitionIterationCount(r)<r.UserNumberOfRepetitions)return void this.doBackJump(r);if(n===r.forwardJumpInstruction&&(void 0!==this.JumpResponsibleRepetition&&r!==this.JumpResponsibleRepetition&&r.StartIndex>=this.JumpResponsibleRepetition.StartIndex&&r.EndIndex<=this.JumpResponsibleRepetition.EndIndex&&this.resetRepetitionIterationCount(r),this.repetitionIterationCountDictKeys.contains(r))){var i=r.getForwardJumpTargetForIteration(this.getRepetitionIterationCount(r));if(i>=0)return this.currentMeasureIndex=i,this.currentMeasure=this.musicSheet.SourceMeasures[this.currentMeasureIndex],this.currentVoiceEntryIndex=-1,this.jumpResponsibleRepetition=r,void(this.forwardJumpOccurred=!0);-2===i&&(this.endReached=!0)}}}this.currentMeasureIndex++,void 0!==this.JumpResponsibleRepetition&&this.currentMeasureIndex>this.JumpResponsibleRepetition.EndIndex&&(this.jumpResponsibleRepetition=void 0)}},{key:"doBackJump",value:function(e){this.currentMeasureIndex=e.getBackwardJumpTarget(),this.currentMeasure=this.musicSheet.SourceMeasures[this.currentMeasureIndex],this.currentVoiceEntryIndex=-1,this.incrementRepetitionIterationCount(e),this.jumpResponsibleRepetition=e,this.backJumpOccurred=!0}},{key:"activateCurrentRhythmInstructions",value:function(){if(void 0!==this.currentMeasure&&this.currentMeasure.FirstInstructionsStaffEntries.length>0&&void 0!==this.currentMeasure.FirstInstructionsStaffEntries[0])for(var e=this.currentMeasure.FirstInstructionsStaffEntries[0].Instructions,t=0,n=e.length;t<n;++t){var r=e[t];r instanceof RhythmInstruction&&(this.musicSheet.SheetPlaybackSetting.rhythm=r.Rhythm)}}},{key:"activateCurrentDynamicOrTempoInstructions",value:function(){for(var e=this.musicSheet.TimestampSortedDynamicExpressionsList;this.currentDynamicEntryIndex>0&&(this.currentDynamicEntryIndex>=e.length||e[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp.gte(this.CurrentSourceTimestamp));)this.currentDynamicEntryIndex--;for(;this.currentDynamicEntryIndex<e.length&&e[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp.lt(this.CurrentSourceTimestamp);)this.currentDynamicEntryIndex++;for(;this.currentDynamicEntryIndex<e.length&&e[this.currentDynamicEntryIndex].parMultiExpression().AbsoluteTimestamp.Equals(this.CurrentSourceTimestamp);){var t=e[this.currentDynamicEntryIndex],n=t.staffNumber;this.CurrentSourceTimestamp.Equals(t.parMultiExpression().AbsoluteTimestamp)&&(t.continuousDynamicExpression?this.activeDynamicExpressions[n]=t.continuousDynamicExpression:t.instantaneousDynamicExpression&&(this.activeDynamicExpressions[n]=t.instantaneousDynamicExpression)),this.currentDynamicEntryIndex++}this.currentDynamicChangingExpressions.length=0;for(var r=0;r<this.activeDynamicExpressions.length;r++)if(this.activeDynamicExpressions[r]){var i=void 0,a=void 0;if(this.activeDynamicExpressions[r]instanceof ContinuousDynamicExpression){var o=this.activeDynamicExpressions[r];i=o.StartMultiExpression.AbsoluteTimestamp,a=o.EndMultiExpression.AbsoluteTimestamp,this.CurrentSourceTimestamp.gte(i)&&this.CurrentSourceTimestamp.lte(a)&&this.currentDynamicChangingExpressions.push(new DynamicsContainer(o,r))}else{var s=this.activeDynamicExpressions[r];this.CurrentSourceTimestamp.Equals(s.ParentMultiExpression.AbsoluteTimestamp)&&this.currentDynamicChangingExpressions.push(new DynamicsContainer(s,r))}}for(var l=this.musicSheet.TimestampSortedTempoExpressionsList;this.currentTempoEntryIndex>0&&(this.currentTempoEntryIndex>=l.length||l[this.currentTempoEntryIndex].AbsoluteTimestamp.gte(this.CurrentSourceTimestamp));)this.currentTempoEntryIndex--;for(;this.currentTempoEntryIndex<l.length&&l[this.currentTempoEntryIndex].AbsoluteTimestamp.lt(this.CurrentSourceTimestamp);)this.currentTempoEntryIndex++;for(;this.currentTempoEntryIndex<l.length&&l[this.currentTempoEntryIndex].AbsoluteTimestamp.Equals(this.CurrentSourceTimestamp);)this.activeTempoExpression=l[this.currentTempoEntryIndex],this.currentTempoEntryIndex++;if(this.currentTempoChangingExpression=void 0,this.activeTempoExpression){var u=this.activeTempoExpression.AbsoluteTimestamp;this.activeTempoExpression.ContinuousTempo&&(u=this.activeTempoExpression.ContinuousTempo.AbsoluteEndTimestamp),(this.CurrentSourceTimestamp.gte(this.activeTempoExpression.AbsoluteTimestamp)||this.CurrentSourceTimestamp.lte(u))&&(this.currentTempoChangingExpression=this.activeTempoExpression)}}},{key:"recursiveMove",value:function(){if(this.currentVoiceEntryIndex++,0===this.currentVoiceEntryIndex&&(this.handleRepetitionsAtMeasureBegin(),this.activateCurrentRhythmInstructions()),this.currentVoiceEntryIndex>=0&&this.currentVoiceEntryIndex<this.currentMeasure.VerticalSourceStaffEntryContainers.length){var e=this.currentMeasure.VerticalSourceStaffEntryContainers[this.currentVoiceEntryIndex];this.currentVoiceEntries=this.getVoiceEntries(e),this.currentVerticalContainerInMeasureTimestamp=e.Timestamp,this.currentTimeStamp=Fraction$1.plus(this.currentMeasure.AbsoluteTimestamp,this.currentVerticalContainerInMeasureTimestamp);var t=this.musicSheet.SelectionEnd;return t&&this.currentTimeStamp.gte(t)&&(this.endReached=!0),void this.activateCurrentDynamicOrTempoInstructions()}if(this.currentEnrolledMeasureTimestamp.Add(this.currentMeasure.Duration),this.handleRepetitionsAtMeasureEnd(),this.currentMeasureIndex>=0&&this.currentMeasureIndex<this.musicSheet.SourceMeasures.length)return this.currentMeasure=this.musicSheet.SourceMeasures[this.currentMeasureIndex],this.currentTimeStamp=Fraction$1.plus(this.currentMeasure.AbsoluteTimestamp,this.currentVerticalContainerInMeasureTimestamp),this.currentVoiceEntryIndex=-1,void this.recursiveMove();this.currentVerticalContainerInMeasureTimestamp=new Fraction$1,this.currentMeasure=void 0,this.currentVoiceEntries=void 0,this.endReached=!0}},{key:"checkEntries",value:function(e){var t=this.CurrentVisibleVoiceEntries();if(t.length>0){if(!e)return!0;for(var n=0,r=t.length;n<r;++n){if(t[n].Notes[0].Pitch)return!0}}return!1}},{key:"getVisibleEntries",value:function(e,t){e.ParentVoice.Visible&&t.push(e)}},{key:"getAudibleEntries",value:function(e,t){if(e.hasTie()){var n=e.Notes[0];if(void 0!==n.NoteTie&&n.NoteTie.StartNote!==n)return}e.ParentVoice.Audible&&t.push(e)}},{key:"getScoreFollowingEntries",value:function(e,t){e.ParentVoice.Following&&e.ParentVoice.Parent.Following&&t.push(e)}},{key:"getVoiceEntries",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e.StaffEntries);try{for(r.s();!(t=r.n()).done;){var i,a,o=t.value;null!=o&&null!==(i=o.ParentStaff)&&void 0!==i&&null!==(a=i.ParentInstrument)&&void 0!==a&&a.Visible&&o.VoiceEntries[0]&&n.push.apply(n,_toConsumableArray2(o.VoiceEntries))}}catch(err){r.e(err)}finally{r.f()}return n}}]),e}(),Cursor=function(){function e(t,n,r){_classCallCheck2(this,e),this.hidden=!1,this.currentPageNumber=1,this.container=t,this.openSheetMusicDisplay=n,this.rules=this.openSheetMusicDisplay.EngravingRules,this.cursorOptions=r;var i=0;for(this.cursorElementId="cursorImg-0";document.getElementById(this.cursorElementId);)i++,this.cursorElementId="cursorImg-".concat(i);var a=document.createElement("img");a.id=this.cursorElementId,a.style.position="absolute",!0===this.cursorOptions.follow?(this.wantedZIndex="-1",a.style.zIndex=this.wantedZIndex):(this.wantedZIndex="-2",a.style.zIndex=this.wantedZIndex),this.cursorElement=a,this.container.appendChild(a)}return _createClass2(e,[{key:"cursorPositionChanged",value:function(e,t){for(;this.iterator.CurrentEnrolledTimestamp.lt(e);)this.iterator.moveToNext();this.iterator.CurrentEnrolledTimestamp.gt(e)&&(this.iterator=new MusicPartManagerIterator(this.manager.MusicSheet,e)),this.updateWithTimestamp(t.PredictedPosition)}},{key:"pauseOccurred",value:function(e){}},{key:"setSound",value:function(){}},{key:"selectionEndReached",value:function(e){}},{key:"resetOccurred",value:function(e){this.reset()}},{key:"notesPlaybackEventOccurred",value:function(e){}},{key:"adjustToBackgroundColor",value:function(){var e;e=this.rules.PageBackgroundColor?"1":this.wantedZIndex,this.cursorElement.style.zIndex=e}},{key:"init",value:function(e,t){this.manager=e,this.graphic=t,this.reset(),this.hidden=!1}},{key:"show",value:function(){this.hidden=!1,this.update(),this.adjustToBackgroundColor()}},{key:"resetIterator",value:function(){if(this.openSheetMusicDisplay.Sheet&&this.openSheetMusicDisplay.Sheet.SourceMeasures){var e=this.openSheetMusicDisplay.Sheet.SourceMeasures.length-1,t=this.rules.MinMeasureToDrawIndex;t=Math.min(t,e);var n=this.rules.MaxMeasureToDrawIndex;if(n=Math.min(n,e),this.openSheetMusicDisplay.Sheet&&(!this.openSheetMusicDisplay.Sheet.SelectionStart||this.openSheetMusicDisplay.Sheet.SelectionStart.WholeValue<t)&&this.openSheetMusicDisplay.Sheet.SourceMeasures.length>t&&(this.openSheetMusicDisplay.Sheet.SelectionStart=this.openSheetMusicDisplay.Sheet.SourceMeasures[t].AbsoluteTimestamp),this.openSheetMusicDisplay.Sheet&&this.openSheetMusicDisplay.Sheet.SourceMeasures.length>n){var r=this.openSheetMusicDisplay.Sheet.SourceMeasures[n];this.openSheetMusicDisplay.Sheet.SelectionEnd=Fraction$1.plus(r.AbsoluteTimestamp,r.Duration)}this.iterator=this.manager.getIterator()}else console.log("OSMD.Cursor.resetIterator(): sheet or measures were null/undefined.")}},{key:"getStaffEntryFromVoiceEntry",value:function(e){var t=e.ParentSourceStaffEntry.VerticalContainerParent.ParentMeasure.measureListIndex,n=e.ParentSourceStaffEntry.ParentStaff.idInMusicSheet;return this.graphic.findGraphicalStaffEntryFromMeasureList(n,t,e.ParentSourceStaffEntry)}},{key:"updateWithTimestamp",value:function(e){var t=this.manager.absoluteEnrolledToSheetTimestamp(e),n=this.graphic.calculateXPositionFromTimestamp(t),r=n[0],i=n[1];this.updateCurrentPageFromSystem(i);var a=n[2];if(a){var o,s,l=Math.max(a.parentMeasure.MeasureNumber,1),u=_createForOfIteratorHelper(this.graphic.MeasureList[l-1]);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(c){o=c;break}}}catch(err){u.e(err)}finally{u.f()}var h=this.graphic.calculateCursorPoints(r,i),d=h[0].y,f=h[1].y-d;if(o){if(this.updateWidthAndStyle(o.PositionAndShape,r,d,f),this.openSheetMusicDisplay.FollowCursor){var p=this.cursorElement.getBoundingClientRect().top;this.cursorElement.scrollIntoView({behavior:p<1e3?"smooth":"auto",block:"center"})}this.cursorElement.style.display=""}}}},{key:"update",value:function(){var e=this;if(!this.hidden&&void 0!==this.hidden&&null!==this.hidden){this.updateCurrentPage();var t=this.Iterator,n=t.CurrentVisibleVoiceEntries();if(!t.EndReached&&t.CurrentVoiceEntries&&0!==n.length){var r,i,a,o=0;if(t.CurrentMeasure.isReducedToMultiRest){var s=this.graphic.findGraphicalMeasure(t.CurrentMeasureIndex,0),l=s.parentSourceMeasure.multipleRestMeasures,u=t.CurrentMeasure.multipleRestMeasureNumber/(l+1),c=s.PositionAndShape.Size.width-s.beginInstructionsWidth;o=s.PositionAndShape.AbsolutePosition.x+s.beginInstructionsWidth+u*c,a=s.ParentMusicSystem}else{var h=n.map((function(t){return e.getStaffEntryFromVoiceEntry(t)})).sort((function(e,t){var n,r,i,a;return(null==e||null===(n=e.PositionAndShape)||void 0===n||null===(r=n.AbsolutePosition)||void 0===r?void 0:r.x)<=(null==t||null===(i=t.PositionAndShape)||void 0===i||null===(a=i.AbsolutePosition)||void 0===a?void 0:a.x)?-1:1}))[0];h&&(o=h.PositionAndShape.AbsolutePosition.x,a=h.parentMeasure.ParentMusicSystem)}if(a){r=a.PositionAndShape.AbsolutePosition.y+a.StaffLines[0].PositionAndShape.RelativePosition.y;var d=a.StaffLines[a.StaffLines.length-1];i=a.PositionAndShape.AbsolutePosition.y+d.PositionAndShape.RelativePosition.y+d.StaffHeight-r;var f=this.graphic.findGraphicalMeasure(t.CurrentMeasureIndex,0).PositionAndShape;if(this.updateWidthAndStyle(f,o,r,i),this.openSheetMusicDisplay.FollowCursor&&this.cursorOptions.follow)if(this.openSheetMusicDisplay.EngravingRules.RenderSingleHorizontalStaffline)this.cursorElement.scrollIntoView({behavior:"smooth",inline:"center"});else{var p=this.cursorElement.getBoundingClientRect().top;this.cursorElement.scrollIntoView({behavior:p<1e3?"smooth":"auto",block:"center"})}this.cursorElement.style.display=""}}}}},{key:"updateWidthAndStyle",value:function(e,t,n,r){var i,a=this.cursorElement,o=0,s=r;switch(this.cursorOptions.type){case 1:a.style.top=10*n*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*(t-1.5)*this.openSheetMusicDisplay.zoom+"px",s=10*r*this.openSheetMusicDisplay.zoom,a.height=s,a.style.height=s+"px",o=5*this.openSheetMusicDisplay.zoom;break;case 2:a.style.top=10*(n-2.5)*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*t*this.openSheetMusicDisplay.zoom+"px",s=15*this.openSheetMusicDisplay.zoom,a.height=s,a.style.height=s+"px",o=5*this.openSheetMusicDisplay.zoom;break;case 3:a.style.top=10*e.AbsolutePosition.y*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*e.AbsolutePosition.x*this.openSheetMusicDisplay.zoom+"px",s=10*r*this.openSheetMusicDisplay.zoom,a.height=s,a.style.height=s+"px",o=10*e.Size.width*this.openSheetMusicDisplay.zoom;break;case 4:a.style.top=10*e.AbsolutePosition.y*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*e.AbsolutePosition.x*this.openSheetMusicDisplay.zoom+"px",s=10*r*this.openSheetMusicDisplay.zoom,a.height=s,a.style.height=s+"px",o=10*(t-e.AbsolutePosition.x)*this.openSheetMusicDisplay.zoom;break;default:a.style.top=10*n*this.openSheetMusicDisplay.zoom+"px",a.style.left=10*(t-1.5)*this.openSheetMusicDisplay.zoom+"px",s=10*r*this.openSheetMusicDisplay.zoom,a.height=s,a.style.height=s+"px",o=30*this.openSheetMusicDisplay.zoom}null!==(i=window.GYM)&&void 0!==i&&i.multitrack&&(a.height=s+24,a.style.height=s+24+"px"),o!==a.width&&(a.width=o,this.updateStyle(o,this.cursorOptions))}},{key:"hide",value:function(){this.cursorElement.style.display="none",this.hidden=!0}},{key:"next",value:function(){this.Iterator.moveToNextVisibleVoiceEntry(!1),this.update()}},{key:"reset",value:function(){this.resetIterator();var e=this.manager.getIterator(this.graphic.ParentMusicSheet.SelectionStart);this.updateWithTimestamp(e.CurrentEnrolledTimestamp)}},{key:"updateStyle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0!==t&&(this.cursorOptions=t);var n=document.createElement("canvas");n.width=this.cursorElement.width,n.height=1;var r=n.getContext("2d");r.globalAlpha=this.cursorOptions.alpha;var i=r.createLinearGradient(0,0,this.cursorElement.width,0);switch(this.cursorOptions.type){case 1:case 2:case 3:case 4:i.addColorStop(1,this.cursorOptions.color);break;default:i.addColorStop(0,"white"),i.addColorStop(.2,this.cursorOptions.color),i.addColorStop(.8,this.cursorOptions.color),i.addColorStop(1,"white")}r.fillStyle=i,r.fillRect(0,0,e,1),this.cursorElement.src=n.toDataURL("image/png")}},{key:"Iterator",get:function(){return this.iterator}},{key:"Hidden",get:function(){return this.hidden}},{key:"VoicesUnderCursor",value:function(e){return this.Iterator.CurrentVisibleVoiceEntries(e)}},{key:"NotesUnderCursor",value:function(e){var t=this.VoicesUnderCursor(e),n=[];return t.forEach((function(e){n.push.apply(n,e.Notes)})),n}},{key:"GNotesUnderCursor",value:function(e){var t=this,n=this.VoicesUnderCursor(e),r=[];return n.forEach((function(e){r.push.apply(r,_toConsumableArray2(e.Notes.map((function(e){return t.rules.GNote(e)}))))})),r}},{key:"updateCurrentPage",value:function(){var e,t=this.Iterator.currentTimeStamp,n=_createForOfIteratorHelper(this.graphic.MusicPages);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.MusicSystems.last().GetSystemsLastTimeStamp().gt(t)){var i=r.PageNumber;return i!==this.currentPageNumber&&(this.container.removeChild(this.cursorElement),this.container=document.getElementById(this.rules.DYContainerId+i),this.container.appendChild(this.cursorElement)),this.currentPageNumber=i}}}catch(err){n.e(err)}finally{n.f()}return 1}},{key:"updateCurrentPageFromSystem",value:function(e){if(null!=e&&e.Parent){var t=e.Parent.PageNumber;return t!==this.currentPageNumber&&(this.container.removeChild(this.cursorElement),this.container=document.getElementById(this.rules.DYContainerId+t),this.container.appendChild(this.cursorElement)),this.currentPageNumber=t}return 1}}]),e}(),PointF2D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck2(this,e),this.x=0,this.y=0,this.x=t,this.y=n}return _createClass2(e,[{key:"ToString",value:function(){return"["+this.x+", "+this.y+"]"}}],[{key:"Empty",get:function(){return new e}},{key:"pointsAreEqual",value:function(e,t){return e.x===t.x&&e.y===t.y}}]),e}(),SizeF2D=_createClass2((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck2(this,e),this.width=t,this.height=n})),RectangleF2D=function(){function e(t,n,r,i){_classCallCheck2(this,e),this.x=0,this.y=0,this.width=0,this.height=0,this.x=t,this.y=n,this.width=r,this.height=i}return _createClass2(e,[{key:"Location",get:function(){return new PointF2D(this.x,this.y)}},{key:"Size",get:function(){return new SizeF2D(this.width,this.height)}}],[{key:"createFromLocationAndSize",value:function(t,n){return new e(t.x,t.y,n.width,n.height)}}]),e}(),AClassHierarchyTrackable=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"isInstanceOfClass",value:function(e){for(var t=this.constructor.prototype;t;){if(e===t.constructor.name)return!0;t=t.__proto__}return!1}}]),e}(),GraphicalObject=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){return _classCallCheck2(this,n),t.apply(this,arguments)}return _createClass2(n,[{key:"PositionAndShape",get:function(){return this.boundingBox},set:function(e){this.boundingBox=e}}]),n}(AClassHierarchyTrackable),StaffLineActivitySymbol=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;_classCallCheck2(this,n),(r=t.call(this)).parentStaffLine=e;var i=e.PositionAndShape;return r.boundingBox=new BoundingBox$1(_assertThisInitialized2(r),i),r.boundingBox.BorderRight=6,r.boundingBox.BorderBottom=4.5,r.boundingBox.BorderLeft=-1.5,r.boundingBox.BorderTop=-1.5,r}return _createClass2(n)}(GraphicalObject),Clickable=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){return _classCallCheck2(this,n),t.apply(this,arguments)}return _createClass2(n)}(GraphicalObject),BoundingBox$1=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck2(this,e),this.isSymbol=!1,this.relativePositionHasBeenSet=!1,this.xBordersHaveBeenSet=!1,this.yBordersHaveBeenSet=!1,this.absolutePosition=new PointF2D,this.relativePosition=new PointF2D,this.size=new SizeF2D,this.marginSize=new SizeF2D,this.upperLeftCorner=new PointF2D,this.upperLeftMarginCorner=new PointF2D,this.borderLeft=0,this.borderRight=0,this.borderTop=0,this.borderBottom=0,this.borderMarginLeft=0,this.borderMarginRight=0,this.borderMarginTop=0,this.borderMarginBottom=0,this.childElements=[],this.parent=n,this.dataObject=t,this.isSymbol=r,this.xBordersHaveBeenSet=!1,this.yBordersHaveBeenSet=!1,n&&(this.Parent=n)}return _createClass2(e,[{key:"RelativePositionHasBeenSet",get:function(){return this.relativePositionHasBeenSet}},{key:"XBordersHaveBeenSet",get:function(){return this.xBordersHaveBeenSet},set:function(e){this.xBordersHaveBeenSet=e}},{key:"YBordersHaveBeenSet",get:function(){return this.yBordersHaveBeenSet},set:function(e){this.yBordersHaveBeenSet=e}},{key:"AbsolutePosition",get:function(){return this.absolutePosition},set:function(e){this.absolutePosition=e}},{key:"RelativePosition",get:function(){return this.relativePosition},set:function(e){this.relativePosition=e,this.relativePositionHasBeenSet=!0}},{key:"Size",get:function(){return this.size},set:function(e){this.size=e}},{key:"MarginSize",get:function(){return this.marginSize}},{key:"UpperLeftCorner",get:function(){return this.upperLeftCorner}},{key:"UpperLeftMarginCorner",get:function(){return this.upperLeftMarginCorner}},{key:"BorderLeft",get:function(){return this.borderLeft},set:function(e){this.borderLeft=e,this.calculateRectangle()}},{key:"BorderRight",get:function(){return this.borderRight},set:function(e){this.borderRight=e,this.calculateRectangle()}},{key:"BorderTop",get:function(){return this.borderTop},set:function(e){this.borderTop=e,this.calculateRectangle()}},{key:"BorderBottom",get:function(){return this.borderBottom},set:function(e){this.borderBottom=e,this.calculateRectangle()}},{key:"BorderMarginLeft",get:function(){return this.borderMarginLeft>this.borderLeft?this.borderLeft:this.borderMarginLeft},set:function(e){this.borderMarginLeft=e,this.calculateMarginRectangle()}},{key:"BorderMarginRight",get:function(){return this.borderMarginRight<this.borderRight?this.borderRight:this.borderMarginRight},set:function(e){this.borderMarginRight=e,this.calculateMarginRectangle()}},{key:"BorderMarginTop",get:function(){return this.borderMarginTop>this.borderTop?this.borderTop:this.borderMarginTop},set:function(e){this.borderMarginTop=e,this.calculateMarginRectangle()}},{key:"BorderMarginBottom",get:function(){return this.borderMarginBottom<this.borderBottom?this.borderBottom:this.borderMarginBottom},set:function(e){this.borderMarginBottom=e,this.calculateMarginRectangle()}},{key:"BoundingRectangle",get:function(){return this.boundingRectangle}},{key:"BoundingMarginRectangle",get:function(){return this.boundingMarginRectangle}},{key:"ChildElements",get:function(){return this.childElements},set:function(e){this.childElements=e}},{key:"Parent",get:function(){return this.parent},set:function(e){var t,n,r,i;if(this.parent){var a=this.parent.ChildElements.indexOf(this,0);a>-1&&this.parent.ChildElements.splice(a,1)}(this.parent=e,(null===(t=this.parent)||void 0===t||null===(n=t.ChildElements)||void 0===n?void 0:n.indexOf(this))>-1)?loglevelExports.error("BoundingBox of "+this.dataObject.constructor.name+" already in children list of "+this.parent.dataObject.constructor.name+"'s BoundingBox"):null===(r=this.parent)||void 0===r||null===(i=r.ChildElements)||void 0===i||i.push(this)}},{key:"DataObject",get:function(){return this.dataObject}},{key:"Center",get:function(){return new PointF2D(this.RelativePosition.x+(this.BorderMarginRight+this.BorderMarginLeft),this.RelativePosition.y+(this.BorderMarginBottom+this.BorderMarginTop))}},{key:"setAbsolutePositionFromParent",value:function(){this.parent?(this.absolutePosition.x=this.parent.AbsolutePosition.x+this.relativePosition.x,this.absolutePosition.y=this.parent.AbsolutePosition.y+this.relativePosition.y):this.absolutePosition=this.relativePosition}},{key:"calculateAbsolutePosition",value:function(){this.absolutePosition.x=this.relativePosition.x,this.absolutePosition.y=this.relativePosition.y;for(var e=this.parent;e;)this.absolutePosition.x+=e.relativePosition.x,this.absolutePosition.y+=e.relativePosition.y,e=e.parent}},{key:"calculateAbsolutePositionsRecursiveWithoutTopelement",value:function(){this.absolutePosition.x=0,this.absolutePosition.y=0;for(var e=0,t=this.ChildElements.length;e<t;++e){this.ChildElements[e].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}}},{key:"calculateAbsolutePositionsRecursive",value:function(e,t){this.absolutePosition.x=this.relativePosition.x+e,this.absolutePosition.y=this.relativePosition.y+t;for(var n=0,r=this.ChildElements.length;n<r;++n){this.ChildElements[n].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}}},{key:"calculateAbsolutePositionsOfChildren",value:function(){for(var e=0,t=this.ChildElements.length;e<t;++e){this.ChildElements[e].calculateAbsolutePositionsRecursive(this.absolutePosition.x,this.absolutePosition.y)}}},{key:"calculateBoundingBox",value:function(){if(0!==this.childElements.length){for(var e=0,t=this.ChildElements.length;e<t;++e){this.ChildElements[e].calculateBoundingBox()}var n=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,a=Number.MIN_VALUE,o=Number.MAX_VALUE,s=Number.MIN_VALUE,l=Number.MAX_VALUE,u=Number.MIN_VALUE;this.isSymbol&&(n=this.borderLeft,r=this.borderRight,i=this.borderTop,a=this.borderBottom,o=this.borderMarginLeft,s=this.borderMarginRight,l=this.borderMarginTop,u=this.borderMarginBottom);for(var c=0,h=this.ChildElements.length;c<h;++c){var d=this.ChildElements[c];n=Math.min(n,d.relativePosition.x+d.borderLeft),r=Math.max(r,d.relativePosition.x+d.borderRight),i=Math.min(i,d.relativePosition.y+d.borderTop),a=Math.max(a,d.relativePosition.y+d.borderBottom),o=Math.min(o,d.relativePosition.x+d.borderMarginLeft),s=Math.max(s,d.relativePosition.x+d.borderMarginRight),l=Math.min(l,d.relativePosition.y+d.borderMarginTop),u=Math.max(u,d.relativePosition.y+d.borderMarginBottom)}this.borderLeft=n,this.borderRight=r,this.borderTop=i,this.borderBottom=a,this.borderMarginLeft=o,this.borderMarginRight=s,this.borderMarginTop=l,this.borderMarginBottom=u,this.calculateRectangle(),this.calculateMarginRectangle(),this.xBordersHaveBeenSet=!0,this.yBordersHaveBeenSet=!0}}},{key:"calculateTopBottomBorders",value:function(){if(0!==this.childElements.length){for(var e=0,t=this.ChildElements.length;e<t;++e){this.ChildElements[e].calculateTopBottomBorders()}var n=Number.MAX_VALUE,r=Number.MIN_VALUE,i=Number.MAX_VALUE,a=Number.MIN_VALUE;this.yBordersHaveBeenSet&&(n=this.borderTop,r=this.borderBottom,i=this.borderMarginTop,a=this.borderMarginBottom);for(var o=0,s=this.ChildElements.length;o<s;++o){var l=this.ChildElements[o];n=Math.min(n,l.relativePosition.y+l.borderTop),EngravingRules.FixStafflineBoundingBox&&l.dataObject instanceof StaffLineActivitySymbol||(r=Math.max(r,l.relativePosition.y+l.borderBottom)),i=Math.min(i,l.relativePosition.y+l.borderMarginTop),a=Math.max(a,l.relativePosition.y+l.borderMarginBottom)}this.borderTop=n,this.borderBottom=r,this.borderMarginTop=i,this.borderMarginBottom=a,this.calculateRectangle(),this.calculateMarginRectangle()}}},{key:"computeNonOverlappingPositionWithMargin",value:function(e,t,n){this.RelativePosition=new PointF2D(n.x,n.y),this.setAbsolutePositionFromParent();var r=0,i=!1;do{switch(t){case 0:case 1:r=this.relativePosition.x,e.calculateMarginPositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.x)>.001;break;case 2:case 3:r=this.relativePosition.y,e.calculateMarginPositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.y)>.001;break;default:throw new ArgumentOutOfRangeException("direction")}}while(i)}},{key:"collisionDetection",value:function(e){var t=Math.min(this.AbsolutePosition.x+this.borderRight,e.absolutePosition.x+e.borderRight)-Math.max(this.AbsolutePosition.x+this.borderLeft,e.absolutePosition.x+e.borderLeft),n=Math.min(this.AbsolutePosition.y+this.borderBottom,e.absolutePosition.y+e.borderBottom)-Math.max(this.AbsolutePosition.y+this.borderTop,e.absolutePosition.y+e.borderTop);return t>0&&n>0}},{key:"liesInsideBorders",value:function(e){var t=this.AbsolutePosition.x+this.borderLeft<=e.absolutePosition.x+e.borderLeft&&e.absolutePosition.x+e.borderLeft<=this.AbsolutePosition.x+this.borderRight,n=this.AbsolutePosition.x+this.borderLeft<=e.absolutePosition.x+e.borderRight&&e.absolutePosition.x+e.borderRight<=this.AbsolutePosition.x+this.borderRight;if(t&&n){var r=this.AbsolutePosition.y+this.borderTop<=e.absolutePosition.y+e.borderTop&&e.absolutePosition.y+e.borderTop<=this.AbsolutePosition.y+this.borderBottom,i=this.AbsolutePosition.y+this.borderTop<=e.absolutePosition.y+e.borderBottom&&e.absolutePosition.y+e.borderBottom<=this.AbsolutePosition.y+this.borderBottom;if(r&&i)return!0}return!1}},{key:"pointLiesInsideBorders",value:function(e){if(this.AbsolutePosition.x+this.borderLeft<=e.x&&e.x<=this.AbsolutePosition.x+this.borderRight&&(this.AbsolutePosition.y+this.borderTop<=e.y&&e.y<=this.AbsolutePosition.y+this.borderBottom))return!0;return!1}},{key:"marginCollisionDetection",value:function(e){var t=Math.min(this.AbsolutePosition.x+this.borderMarginRight,e.absolutePosition.x+e.borderMarginRight)-Math.max(this.AbsolutePosition.x+this.borderMarginLeft,e.absolutePosition.x+e.borderMarginLeft),n=Math.min(this.AbsolutePosition.y+this.borderMarginBottom,e.absolutePosition.y+e.borderMarginBottom)-Math.max(this.AbsolutePosition.y+this.borderMarginTop,e.absolutePosition.y+e.borderMarginTop);return t>0&&n>0}},{key:"liesInsideMargins",value:function(e){var t=this.AbsolutePosition.x+this.borderMarginLeft<=e.absolutePosition.x+e.borderMarginLeft&&e.absolutePosition.x+e.borderMarginLeft<=this.AbsolutePosition.x+this.borderMarginRight,n=this.AbsolutePosition.x+this.borderMarginLeft<=e.absolutePosition.x+e.borderMarginRight&&e.absolutePosition.x+e.borderMarginRight<=this.AbsolutePosition.x+this.borderMarginRight;if(t&&n){var r=this.AbsolutePosition.y+this.borderMarginTop<=e.absolutePosition.y+e.borderMarginTop&&e.absolutePosition.y+e.borderMarginTop<=this.AbsolutePosition.y+this.borderMarginBottom,i=this.AbsolutePosition.y+this.borderMarginTop<=e.absolutePosition.y+e.borderMarginBottom&&e.absolutePosition.y+e.borderMarginBottom<=this.AbsolutePosition.y+this.borderMarginBottom;if(r&&i)return!0}return!1}},{key:"pointLiesInsideMargins",value:function(e){if(this.AbsolutePosition.x+this.borderMarginLeft<=e.x&&e.x<=this.AbsolutePosition.x+this.borderMarginRight&&(this.AbsolutePosition.y+this.borderMarginTop<=e.y&&e.y<=this.AbsolutePosition.y+this.borderMarginBottom))return!0;return!1}},{key:"computeNonOverlappingPosition",value:function(e,t,n){this.RelativePosition=new PointF2D(n.x,n.y),this.setAbsolutePositionFromParent();var r=0,i=!1;do{switch(t){case 0:case 1:r=this.relativePosition.x,e.calculatePositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.x)>1e-4;break;case 2:case 3:r=this.relativePosition.y,e.calculatePositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.y)>1e-4;break;default:throw new ArgumentOutOfRangeException("direction")}}while(i)}},{key:"getClickedObjectOfType",value:function(e){var t=this.dataObject;if(this.pointLiesInsideBorders(e)&&t)return t;for(var n=0,r=this.childElements.length;n<r;++n){var i=this.childElements[n].getClickedObjectOfType(e);if(i)return i}}},{key:"getClickedClickable",value:function(e){var t=this.dataObject;if(this.pointLiesInsideBorders(e)&&t&&t instanceof Clickable)return t;for(var n=0,r=this.childElements.length;n<r;++n){var i=this.childElements[n].getClickedClickable(e);if(i&&i instanceof Clickable)return i}}},{key:"getObjectsInRegion",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:GraphicalObject.name,i=[],a=_createForOfIteratorHelper(this.childElements);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=i.concat(o.getObjectsInRegion(e,n,r))}}catch(err){a.e(err)}finally{a.f()}return this.dataObject&&this.dataObject.isInstanceOfClass(r)&&(n?e.liesInsideBorders(this)&&i.push(this.dataObject):e.collisionDetection(this)&&i.push(this.dataObject)),i}},{key:"calculateRectangle",value:function(){this.upperLeftCorner=new PointF2D(this.BorderLeft,this.BorderTop),this.size=new SizeF2D(this.BorderRight-this.BorderLeft,this.BorderBottom-this.BorderTop),this.boundingRectangle=RectangleF2D.createFromLocationAndSize(this.upperLeftCorner,this.size)}},{key:"calculateMarginRectangle",value:function(){this.upperLeftMarginCorner=new PointF2D(this.BorderMarginLeft,this.BorderMarginTop),this.marginSize=new SizeF2D(this.BorderMarginRight-this.BorderMarginLeft,this.BorderMarginBottom-this.BorderMarginTop),this.boundingMarginRectangle=RectangleF2D.createFromLocationAndSize(this.upperLeftMarginCorner,this.marginSize)}},{key:"calculateMarginPositionAlongDirection",value:function(e,t){if(this!==e){if(this.isSymbol&&this.marginCollisionDetection(e)){var n=0;switch(t){case 0:return n=this.absolutePosition.x+this.borderMarginLeft-(e.absolutePosition.x+e.borderMarginRight),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case 1:return n=this.absolutePosition.x+this.borderMarginRight-(e.absolutePosition.x+e.borderMarginLeft),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case 2:return n=this.absolutePosition.y+this.borderMarginTop-(e.absolutePosition.y+e.borderMarginBottom),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);case 3:return n=this.absolutePosition.y+this.borderMarginBottom-(e.absolutePosition.y+e.borderMarginTop),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);default:throw new ArgumentOutOfRangeException("direction")}}for(var r=0,i=this.ChildElements.length;r<i;++r){this.ChildElements[r].calculateMarginPositionAlongDirection(e,t)}}}},{key:"calculatePositionAlongDirection",value:function(e,t){if(this!==e){var n;if(this.isSymbol&&this.collisionDetection(e))switch(t){case 0:return n=this.absolutePosition.x+this.borderLeft-(e.absolutePosition.x+e.borderRight),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case 1:return n=this.absolutePosition.x+this.borderRight-(e.absolutePosition.x+e.borderLeft),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case 2:return n=this.absolutePosition.y+this.borderTop-(e.absolutePosition.y+e.borderBottom),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);case 3:return n=this.absolutePosition.y+this.borderBottom-(e.absolutePosition.y+e.borderTop),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);default:throw new ArgumentOutOfRangeException("direction")}for(var r=0,i=this.ChildElements.length;r<i;++r){this.ChildElements[r].calculatePositionAlongDirection(e,t)}}}}]),e}(),ColDirEnum=function(e){return e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down",e}(ColDirEnum||{}),GraphicalMusicPage=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).musicSystems=[],r.labels=[],r.parent=e,r.boundingBox=new BoundingBox$1(_assertThisInitialized2(r),void 0),r}return _createClass2(n,[{key:"MusicSystems",get:function(){return this.musicSystems},set:function(e){this.musicSystems=e}},{key:"Labels",get:function(){return this.labels},set:function(e){this.labels=e}},{key:"Parent",get:function(){return this.parent},set:function(e){this.parent=e}},{key:"PageNumber",get:function(){return this.pageNumber},set:function(e){this.pageNumber=e}},{key:"setMusicPageAbsolutePosition",value:function(e,t){return new PointF2D(0,0)}}]),n}(GraphicalObject),PagePlacementEnum=function(e){return e[e.Down=0]="Down",e[e.Right=1]="Right",e[e.RightDown=2]="RightDown",e}(PagePlacementEnum||{}),TextAlignmentEnum=function(e){return e[e.LeftTop=0]="LeftTop",e[e.LeftCenter=1]="LeftCenter",e[e.LeftBottom=2]="LeftBottom",e[e.CenterTop=3]="CenterTop",e[e.CenterCenter=4]="CenterCenter",e[e.CenterBottom=5]="CenterBottom",e[e.RightTop=6]="RightTop",e[e.RightCenter=7]="RightCenter",e[e.RightBottom=8]="RightBottom",e}(TextAlignmentEnum||{}),TextAlignment=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"IsLeft",value:function(e){return 0===e||1===e||2===e}},{key:"IsCenterAligned",value:function(e){return 3===e||4===e||5===e}},{key:"IsRight",value:function(e){return 6===e||7===e||8===e}}]),e}(),FontStyles=function(e){return e[e.Regular=0]="Regular",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.BoldItalic=3]="BoldItalic",e[e.Underlined=4]="Underlined",e}(FontStyles||{}),Fonts=function(e){return e[e.TimesNewRoman=0]="TimesNewRoman",e[e.Kokila=1]="Kokila",e[e.Gonville=2]="Gonville",e}(Fonts||{}),FontStringNames={0:"Times New Roman",1:"Kokila",2:"Gonville"},TieTypes=function(e){return e.SIMPLE="",e.HAMMERON="H",e.PULLOFF="P",e.SLIDE="S",e.TAPPING="T",e}(TieTypes||{}),Additional={"-2":[4,12,23],"-7":[13],"-9":[6]},NoteEnum=function(e){return e[e.C=0]="C",e[e.D=2]="D",e[e.E=4]="E",e[e.F=5]="F",e[e.G=7]="G",e[e.A=9]="A",e[e.B=11]="B",e}(NoteEnum||{}),AccidentalEnum=function(e){return e[e.SHARP=0]="SHARP",e[e.FLAT=1]="FLAT",e[e.NONE=2]="NONE",e[e.NATURAL=3]="NATURAL",e[e.DOUBLESHARP=4]="DOUBLESHARP",e[e.DOUBLEFLAT=5]="DOUBLEFLAT",e[e.TRIPLESHARP=6]="TRIPLESHARP",e[e.TRIPLEFLAT=7]="TRIPLEFLAT",e[e.QUARTERTONESHARP=8]="QUARTERTONESHARP",e[e.QUARTERTONEFLAT=9]="QUARTERTONEFLAT",e[e.SLASHFLAT=10]="SLASHFLAT",e[e.THREEQUARTERSSHARP=11]="THREEQUARTERSSHARP",e[e.THREEQUARTERSFLAT=12]="THREEQUARTERSFLAT",e[e.SLASHQUARTERSHARP=13]="SLASHQUARTERSHARP",e[e.SLASHSHARP=14]="SLASHSHARP",e[e.DOUBLESLASHFLAT=15]="DOUBLESLASHFLAT",e[e.SORI=16]="SORI",e[e.KORON=17]="KORON",e}(AccidentalEnum||{}),_Pitch=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;_classCallCheck2(this,e),this.accidental=2,this.fundamentalNote=t,this.octave=n,this.accidental=r,this.accidentalXml=i,this.halfTone=t+12*(n+e.octXmlDiff)+e.HalfTonesFromAccidental(r),this.frequency=e.calcFrequency(this),this.nextFrequency=e.calcFrequency(this,"next"),this.prevFrequency=e.calcFrequency(this,"prev")}return _createClass2(e,[{key:"AccidentalHalfTones",get:function(){return e.HalfTonesFromAccidental(this.accidental)}},{key:"Octave",get:function(){return this.octave}},{key:"FundamentalNote",get:function(){return this.fundamentalNote}},{key:"Accidental",get:function(){return this.accidental}},{key:"AccidentalXml",get:function(){return this.accidentalXml}},{key:"Frequency",get:function(){return this.frequency}},{key:"getHalfTone",value:function(){return this.halfTone}},{key:"getTransposedPitch",value:function(e){if(e>12)throw new Error("rewrite this method to handle bigger octave changes or don't use is with bigger octave changes!");return e>0?this.getHigherPitchByTransposeFactor(e):e<0?this.getLowerPitchByTransposeFactor(-e):this}},{key:"DoEnharmonicChange",value:function(){switch(this.accidental){case 1:case 5:this.fundamentalNote=this.getPreviousFundamentalNote(this.fundamentalNote),this.accidental=e.AccidentalFromHalfTones(this.halfTone-(this.fundamentalNote+12*(this.octave+e.octXmlDiff)));break;case 0:case 4:this.fundamentalNote=this.getNextFundamentalNote(this.fundamentalNote),this.accidental=e.AccidentalFromHalfTones(this.halfTone-(this.fundamentalNote+12*(this.octave+e.octXmlDiff)));break;default:return}}},{key:"ToString",value:function(){var t=e.accidentalVexflow(this.accidental);return t||(t=""),"Key: "+e.getNoteEnumString(this.fundamentalNote)+t+", Note: "+this.fundamentalNote+", octave: "+this.octave.toString()}},{key:"OperatorEquals",value:function(e){var t=this;return!(!t||!e)&&(t.FundamentalNote===e.FundamentalNote&&t.Octave===e.Octave&&t.Accidental===e.Accidental)}},{key:"OperatorNotEqual",value:function(e){return!(this===e)}},{key:"OperatorFundamentalGreaterThan",value:function(e){var t=this;return t.Octave===e.Octave?t.FundamentalNote>e.FundamentalNote:t.Octave>e.Octave}},{key:"OperatorFundamentalLessThan",value:function(e){var t=this;return t.Octave===e.Octave?t.FundamentalNote<e.FundamentalNote:t.Octave<e.Octave}},{key:"getHigherPitchByTransposeFactor",value:function(t){var n,r=e.pitchEnumValues.indexOf(this.fundamentalNote),i=this.octave;return r+t>e.pitchEnumValues.length-1?(n=e.pitchEnumValues[r+t-e.pitchEnumValues.length],i++):n=e.pitchEnumValues[r+t],new e(n,i,2)}},{key:"getLowerPitchByTransposeFactor",value:function(t){var n,r=e.pitchEnumValues.indexOf(this.fundamentalNote),i=this.octave;return r-t<0?(n=e.pitchEnumValues[e.pitchEnumValues.length+r-t],i--):n=e.pitchEnumValues[r-t],new e(n,i,2)}},{key:"getNextFundamentalNote",value:function(t){var n=e.pitchEnumValues.indexOf(t);return n=(n+1)%e.pitchEnumValues.length,e.pitchEnumValues[n]}},{key:"getPreviousFundamentalNote",value:function(t){var n=e.pitchEnumValues.indexOf(t);return n>0?e.pitchEnumValues[n-1]:e.pitchEnumValues[e.pitchEnumValues.length-1]}}],[{key:"getNoteEnumString",value:function(e){switch(e){case 0:return"C";case 2:return"D";case 4:return"E";case 5:return"F";case 7:return"G";case 9:return"A";case 11:return"B";default:return""}}},{key:"lineShiftFromNoteEnum",value:function(t,n){if(0===n)return[t,0];var r=e.pitchEnumValues,i=r.indexOf(t),a=0,o=(i+n)%r.length;return i+n>r.length-1&&(a=1),o<0&&(o=r.length+o,a=-1),[r[o],a]}},{key:"CalculateTransposedHalfTone",value:function(t,n){var r=t.fundamentalNote+t.AccidentalHalfTones+n;return e.WrapAroundCheck(r,12)}},{key:"WrapAroundCheck",value:function(e,t){for(var n=0;e<0;)e+=t,n--;for(;e>=t;)e-=t,n++;return{overflow:n,halftone:e}}},{key:"calcFrequency",value:function(t,n){var r,i=0;if(t instanceof e){var a=t;i=a.octave-1,r=a.fundamentalNote-9+a.AccidentalHalfTones}else if("number"==typeof t){r=t-57}var o=window.DYSubjectId,s=0;for(var l in"COLEXIU"===window.DYEnvironment&&(Additional[12]=[120]),Additional){if(Object.prototype.hasOwnProperty.call(Additional,l))if(Additional[l].includes(o)){s=parseFloat(l);break}}var u=r+s;return"next"===n&&u++,"prev"===n&&u--,442*Math.pow(2,i)*Math.pow(2,u/12)}},{key:"calcFractionalKey",value:function(t){return Math.log(t/440)/Math.LN10*e.halftoneFactor+57}},{key:"fromFrequency",value:function(t){var n=e.calcFractionalKey(t)+.5,r=Math.floor(n/12)-e.octXmlDiff,i=Math.floor(n)%12,a=i,o=2;return-1===this.pitchEnumValues.indexOf(a)&&(a=i-1,o=0),new e(a,r,o)}},{key:"fromHalftone",value:function(t){var n=Math.floor(t/12)-e.octXmlDiff,r=t%12,i=r,a=2;return-1===this.pitchEnumValues.indexOf(i)&&(i=r-1,a=0),new e(i,n,a)}},{key:"ceiling",value:function(e){var t=e%=12;return-1===this.pitchEnumValues.indexOf(t)&&(t=e+1),t}},{key:"floor",value:function(e){var t=e%=12;return-1===this.pitchEnumValues.indexOf(t)&&(t=e-1),t}},{key:"HalfTonesFromAccidental",value:function(e){switch(e){case 2:case 3:return 0;case 0:return 1;case 1:return-1;case 4:return 2;case 5:return-2;case 6:return 3;case 7:return-3;case 8:return.5;case 9:return-.5;case 10:return-.51;case 11:return 1.5;case 12:return-1.5;case 13:return.0013;case 14:return.0014;case 15:return-.0015;case 16:return.0016;case 17:return.0017;default:throw new Error("Unhandled AccidentalEnum value")}}},{key:"AccidentalFromHalfTones",value:function(e){switch(e){case 0:return 2;case 1:return 0;case-1:return 1;case 2:return 4;case-2:return 5;case 3:return 6;case-3:return 7;case.5:return 8;case-.5:return 9;case 1.5:return 11;case-1.5:return 12;default:return e>0&&e<1?8:e<0&&e>-1?9:8}}},{key:"accidentalVexflow",value:function(e){var t;switch(e){case 3:t="n";break;case 1:t="b";break;case 0:t="#";break;case 4:t="##";break;case 6:t="###";break;case 5:t="bb";break;case 7:t="bbs";break;case 8:t="+";break;case 9:t="d";break;case 10:t="bs";break;case 11:t="++";break;case 12:t="db";break;case 13:t="+-";break;case 14:t="++-";break;case 15:t="bss";break;case 16:t="o";break;case 17:t="k"}return t}},{key:"OctaveXmlDifference",get:function(){return e.octXmlDiff}}]),e}(),Pitch=_Pitch;Pitch.pitchEnumValues=[0,2,4,5,7,9,11],Pitch.halftoneFactor=12/(Math.LN2/Math.LN10),Pitch.octXmlDiff=3;var VerticalGraphicalStaffEntryContainer=function(){function e(t,n){_classCallCheck2(this,e),this.staffEntries=[],this.absoluteTimestamp=n,this.staffEntries=new Array(t)}return _createClass2(e,[{key:"Index",get:function(){return this.index},set:function(e){this.index=e}},{key:"AbsoluteTimestamp",get:function(){return this.absoluteTimestamp}},{key:"StaffEntries",get:function(){return this.staffEntries},set:function(e){this.staffEntries=e}},{key:"getFirstNonNullStaffEntry",value:function(){for(var e=0,t=this.staffEntries.length;e<t;++e){var n=this.staffEntries[e];if(n)return n}}}],[{key:"compareByTimestamp",value:function(e,t){var n=e.absoluteTimestamp.RealValue,r=t.absoluteTimestamp.RealValue;return n<r?-1:n>r?1:0}}]),e}(),OutlineAndFillStyleEnum=function(e){return e[e.BaseWritingColor=0]="BaseWritingColor",e[e.FollowingCursor=1]="FollowingCursor",e[e.AlternativeFollowingCursor=2]="AlternativeFollowingCursor",e[e.PlaybackCursor=3]="PlaybackCursor",e[e.Highlighted=4]="Highlighted",e[e.ErrorUnderlay=5]="ErrorUnderlay",e[e.Selected=6]="Selected",e[e.SelectionSymbol=7]="SelectionSymbol",e[e.DebugColor1=8]="DebugColor1",e[e.DebugColor2=9]="DebugColor2",e[e.DebugColor3=10]="DebugColor3",e[e.SplitScreenDivision=11]="SplitScreenDivision",e[e.GreyTransparentOverlay=12]="GreyTransparentOverlay",e[e.MarkedArea1=13]="MarkedArea1",e[e.MarkedArea2=14]="MarkedArea2",e[e.MarkedArea3=15]="MarkedArea3",e[e.MarkedArea4=16]="MarkedArea4",e[e.MarkedArea5=17]="MarkedArea5",e[e.MarkedArea6=18]="MarkedArea6",e[e.MarkedArea7=19]="MarkedArea7",e[e.MarkedArea8=20]="MarkedArea8",e[e.MarkedArea9=21]="MarkedArea9",e[e.MarkedArea10=22]="MarkedArea10",e[e.Comment1=23]="Comment1",e[e.Comment2=24]="Comment2",e[e.Comment3=25]="Comment3",e[e.Comment4=26]="Comment4",e[e.Comment5=27]="Comment5",e[e.Comment6=28]="Comment6",e[e.Comment7=29]="Comment7",e[e.Comment8=30]="Comment8",e[e.Comment9=31]="Comment9",e[e.Comment10=32]="Comment10",e}(OutlineAndFillStyleEnum||{}),OUTLINE_AND_FILL_STYLE_DICT=new Dictionary;OUTLINE_AND_FILL_STYLE_DICT.setValue(0,"Thistle"),OUTLINE_AND_FILL_STYLE_DICT.setValue(1,"Aqua"),OUTLINE_AND_FILL_STYLE_DICT.setValue(2,"Azure"),OUTLINE_AND_FILL_STYLE_DICT.setValue(3,"Bisque"),OUTLINE_AND_FILL_STYLE_DICT.setValue(4,"CadetBlue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(5,"DarkBlue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(6,"DarkGoldenRod"),OUTLINE_AND_FILL_STYLE_DICT.setValue(7,"BlanchedAlmond"),OUTLINE_AND_FILL_STYLE_DICT.setValue(8,"Chartreuse"),OUTLINE_AND_FILL_STYLE_DICT.setValue(9,"DarkGreen"),OUTLINE_AND_FILL_STYLE_DICT.setValue(10,"DarkOrange"),OUTLINE_AND_FILL_STYLE_DICT.setValue(11,"FireBrick"),OUTLINE_AND_FILL_STYLE_DICT.setValue(12,"DarkSalmon"),OUTLINE_AND_FILL_STYLE_DICT.setValue(13,"DarkSeaGreen"),OUTLINE_AND_FILL_STYLE_DICT.setValue(14,"DarkOrchid"),OUTLINE_AND_FILL_STYLE_DICT.setValue(15,"Aquamarine"),OUTLINE_AND_FILL_STYLE_DICT.setValue(16,"DarkKhaki"),OUTLINE_AND_FILL_STYLE_DICT.setValue(17,"ForestGreen"),OUTLINE_AND_FILL_STYLE_DICT.setValue(18,"AliceBlue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(19,"DeepPink"),OUTLINE_AND_FILL_STYLE_DICT.setValue(20,"Coral"),OUTLINE_AND_FILL_STYLE_DICT.setValue(21,"DarkOliveGreen"),OUTLINE_AND_FILL_STYLE_DICT.setValue(22,"Chocolate"),OUTLINE_AND_FILL_STYLE_DICT.setValue(23,"DodgerBlue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(24,"Blue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(25,"Beige"),OUTLINE_AND_FILL_STYLE_DICT.setValue(26,"Crimson"),OUTLINE_AND_FILL_STYLE_DICT.setValue(27,"Fuchsia"),OUTLINE_AND_FILL_STYLE_DICT.setValue(28,"Brown"),OUTLINE_AND_FILL_STYLE_DICT.setValue(29,"BlanchedAlmond"),OUTLINE_AND_FILL_STYLE_DICT.setValue(30,"CornflowerBlue"),OUTLINE_AND_FILL_STYLE_DICT.setValue(31,"Cornsilk"),OUTLINE_AND_FILL_STYLE_DICT.setValue(32,"DarkGrey");var GraphicalLayers=function(e){return e[e.Background=0]="Background",e[e.Highlight=1]="Highlight",e[e.MeasureError=2]="MeasureError",e[e.SelectionSymbol=3]="SelectionSymbol",e[e.Cursor=4]="Cursor",e[e.PSI_Debug=5]="PSI_Debug",e[e.Notes=6]="Notes",e[e.Comment=7]="Comment",e[e.Debug_above=8]="Debug_above",e}(GraphicalLayers||{}),NoteState=function(e){return e[e.Normal=0]="Normal",e[e.Selected=1]="Selected",e[e.Follow_Confirmed=2]="Follow_Confirmed",e[e.QFeedback_NotFound=3]="QFeedback_NotFound",e[e.QFeedback_OK=4]="QFeedback_OK",e[e.QFeedback_Perfect=5]="QFeedback_Perfect",e[e.Debug1=6]="Debug1",e[e.Debug2=7]="Debug2",e[e.Debug3=8]="Debug3",e}(NoteState||{}),AutoColorSet=function(e){return e.C="#d82c6b",e.D="#F89D15",e.E="#FFE21A",e.F="#4dbd5c",e.G="#009D96",e.A="#43469d",e.B="#76429c",e.Rest="#000000",e}(AutoColorSet||{}),GraphicalLine=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:OutlineAndFillStyleEnum.BaseWritingColor,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;_classCallCheck2(this,e),this.start=t,this.end=n,this.width=r,this.styleId=i,this.colorHex=a}return _createClass2(e,[{key:"Start",get:function(){return this.start},set:function(e){this.start=e}},{key:"End",get:function(){return this.end},set:function(e){this.end=e}},{key:"Width",get:function(){return this.width},set:function(e){this.width=e}}]),e}(),ClefInstruction=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;return _classCallCheck2(this,n),(e=t.call(this,void 0)).clefType=0,e.line=2,e.octaveOffset=0,e.line=a,e.clefType=r,e.octaveOffset=i,e.calcParameters(),e}return _createClass2(n,[{key:"ClefType",get:function(){return this.clefType},set:function(e){this.clefType=e}},{key:"Line",get:function(){return this.line},set:function(e){this.line=e}},{key:"OctaveOffset",get:function(){return this.octaveOffset},set:function(e){this.octaveOffset=e}},{key:"ClefPitch",get:function(){return this.clefPitch},set:function(e){this.clefPitch=e}},{key:"ReferenceCyPosition",get:function(){return this.referenceCyPosition},set:function(e){this.referenceCyPosition=e}},{key:"Equals",value:function(e){return this===e||!(!this||!e)&&(this.clefPitch===e.clefPitch&&this.Line===e.Line)}},{key:"NotEqual",value:function(e){return!this.Equals(e)}},{key:"ToString",value:function(){return"ClefType: "+this.clefType}},{key:"calcParameters",value:function(){switch(this.clefType){case 0:this.clefPitch=new Pitch(NoteEnum.G,1+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+2;break;case 1:this.clefPitch=new Pitch(NoteEnum.F,0+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+1.5;break;case 2:this.clefPitch=new Pitch(NoteEnum.C,1+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line;break;case 3:this.clefPitch=new Pitch(NoteEnum.C,2,AccidentalEnum.NONE),this.referenceCyPosition=2;break;case 4:this.clefPitch=new Pitch(NoteEnum.G,0,AccidentalEnum.NONE),this.referenceCyPosition=0;break;default:throw new ArgumentOutOfRangeException("clefType")}}}],[{key:"getDefaultClefFromMidiInstrument",value:function(e){switch(e){case 0:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 43:return new n(1,0,4);default:return new n(0,0,2)}}},{key:"getAllPossibleClefs",value:function(){for(var e=[],t=0;t<=2;t++){var r=new n(0,t,2);e.push(r)}for(var i=-2;i<=0;i++){var a=new n(1,i,4);e.push(a)}return e}},{key:"isSupportedClef",value:function(e){switch(e){case 0:case 1:case 2:case 3:case 4:return!0;default:return!1}}}]),n}(AbstractNotationInstruction),ClefEnum=function(e){return e[e.G=0]="G",e[e.F=1]="F",e[e.C=2]="C",e[e.percussion=3]="percussion",e[e.TAB=4]="TAB",e}(ClefEnum||{}),MidiInstrument=function(e){return e[e.None=-1]="None",e[e.Acoustic_Grand_Piano=0]="Acoustic_Grand_Piano",e[e.Bright_Acoustic_Piano=1]="Bright_Acoustic_Piano",e[e.Electric_Grand_Piano=2]="Electric_Grand_Piano",e[e.Honky_tonk_Piano=3]="Honky_tonk_Piano",e[e.Electric_Piano_1=4]="Electric_Piano_1",e[e.Electric_Piano_2=5]="Electric_Piano_2",e[e.Harpsichord=6]="Harpsichord",e[e.Clavinet=7]="Clavinet",e[e.Celesta=8]="Celesta",e[e.Glockenspiel=9]="Glockenspiel",e[e.Music_Box=10]="Music_Box",e[e.Vibraphone=11]="Vibraphone",e[e.Marimba=12]="Marimba",e[e.Xylophone=13]="Xylophone",e[e.Tubular_Bells=14]="Tubular_Bells",e[e.Dulcimer=15]="Dulcimer",e[e.Drawbar_Organ=16]="Drawbar_Organ",e[e.Percussive_Organ=17]="Percussive_Organ",e[e.Rock_Organ=18]="Rock_Organ",e[e.Church_Organ=19]="Church_Organ",e[e.Reed_Organ=20]="Reed_Organ",e[e.Accordion=21]="Accordion",e[e.Harmonica=22]="Harmonica",e[e.Tango_Accordion=23]="Tango_Accordion",e[e.Acoustic_Guitar_nylon=24]="Acoustic_Guitar_nylon",e[e.Acoustic_Guitar_steel=25]="Acoustic_Guitar_steel",e[e.Electric_Guitar_jazz=26]="Electric_Guitar_jazz",e[e.Electric_Guitar_clean=27]="Electric_Guitar_clean",e[e.Electric_Guitar_muted=28]="Electric_Guitar_muted",e[e.Overdriven_Guitar=29]="Overdriven_Guitar",e[e.Distortion_Guitar=30]="Distortion_Guitar",e[e.Guitar_harmonics=31]="Guitar_harmonics",e[e.Acoustic_Bass=32]="Acoustic_Bass",e[e.Electric_Bass_finger=33]="Electric_Bass_finger",e[e.Electric_Bass_pick=34]="Electric_Bass_pick",e[e.Fretless_Bass=35]="Fretless_Bass",e[e.Slap_Bass_1=36]="Slap_Bass_1",e[e.Slap_Bass_2=37]="Slap_Bass_2",e[e.Synth_Bass_1=38]="Synth_Bass_1",e[e.Synth_Bass_2=39]="Synth_Bass_2",e[e.Violin=40]="Violin",e[e.Viola=41]="Viola",e[e.Cello=42]="Cello",e[e.Contrabass=43]="Contrabass",e[e.Tremolo_Strings=44]="Tremolo_Strings",e[e.Pizzicato_Strings=45]="Pizzicato_Strings",e[e.Orchestral_Harp=46]="Orchestral_Harp",e[e.Timpani=47]="Timpani",e[e.String_Ensemble_1=48]="String_Ensemble_1",e[e.String_Ensemble_2=49]="String_Ensemble_2",e[e.Synth_Strings_1=50]="Synth_Strings_1",e[e.Synth_Strings_2=51]="Synth_Strings_2",e[e.Choir_Aahs=52]="Choir_Aahs",e[e.Voice_Oohs=53]="Voice_Oohs",e[e.Synth_Voice=54]="Synth_Voice",e[e.Orchestra_Hit=55]="Orchestra_Hit",e[e.Trumpet=56]="Trumpet",e[e.Trombone=57]="Trombone",e[e.Tuba=58]="Tuba",e[e.Muted_Trumpet=59]="Muted_Trumpet",e[e.French_Horn=60]="French_Horn",e[e.Brass_Section=61]="Brass_Section",e[e.Synth_Brass_1=62]="Synth_Brass_1",e[e.Synth_Brass_2=63]="Synth_Brass_2",e[e.Soprano_Sax=64]="Soprano_Sax",e[e.Alto_Sax=65]="Alto_Sax",e[e.Tenor_Sax=66]="Tenor_Sax",e[e.Baritone_Sax=67]="Baritone_Sax",e[e.Oboe=68]="Oboe",e[e.English_Horn=69]="English_Horn",e[e.Bassoon=70]="Bassoon",e[e.Clarinet=71]="Clarinet",e[e.Piccolo=72]="Piccolo",e[e.Flute=73]="Flute",e[e.Recorder=74]="Recorder",e[e.Pan_Flute=75]="Pan_Flute",e[e.Blown_Bottle=76]="Blown_Bottle",e[e.Shakuhachi=77]="Shakuhachi",e[e.Whistle=78]="Whistle",e[e.Ocarina=79]="Ocarina",e[e.Lead_1_square=80]="Lead_1_square",e[e.Lead_2_sawtooth=81]="Lead_2_sawtooth",e[e.Lead_3_calliope=82]="Lead_3_calliope",e[e.Lead_4_chiff=83]="Lead_4_chiff",e[e.Lead_5_charang=84]="Lead_5_charang",e[e.Lead_6_voice=85]="Lead_6_voice",e[e.Lead_7_fifths=86]="Lead_7_fifths",e[e.Lead_8_bass_lead=87]="Lead_8_bass_lead",e[e.Pad_1_new_age=88]="Pad_1_new_age",e[e.Pad_2_warm=89]="Pad_2_warm",e[e.Pad_3_polysynth=90]="Pad_3_polysynth",e[e.Pad_4_choir=91]="Pad_4_choir",e[e.Pad_5_bowed=92]="Pad_5_bowed",e[e.Pad_6_metallic=93]="Pad_6_metallic",e[e.Pad_7_halo=94]="Pad_7_halo",e[e.Pad_8_sweep=95]="Pad_8_sweep",e[e.FX_1_rain=96]="FX_1_rain",e[e.FX_2_soundtrack=97]="FX_2_soundtrack",e[e.FX_3_crystal=98]="FX_3_crystal",e[e.FX_4_atmosphere=99]="FX_4_atmosphere",e[e.FX_5_brightness=100]="FX_5_brightness",e[e.FX_6_goblins=101]="FX_6_goblins",e[e.FX_7_echoes=102]="FX_7_echoes",e[e.FX_8_scifi=103]="FX_8_scifi",e[e.Sitar=104]="Sitar",e[e.Banjo=105]="Banjo",e[e.Shamisen=106]="Shamisen",e[e.Koto=107]="Koto",e[e.Kalimba=108]="Kalimba",e[e.Bag_pipe=109]="Bag_pipe",e[e.Fiddle=110]="Fiddle",e[e.Shanai=111]="Shanai",e[e.Tinkle_Bell=112]="Tinkle_Bell",e[e.Agogo=113]="Agogo",e[e.Steel_Drums=114]="Steel_Drums",e[e.Woodblock=115]="Woodblock",e[e.Taiko_Drum=116]="Taiko_Drum",e[e.Melodic_Tom=117]="Melodic_Tom",e[e.Synth_Drum=118]="Synth_Drum",e[e.Reverse_Cymbal=119]="Reverse_Cymbal",e[e.Guitar_Fret_Noise=120]="Guitar_Fret_Noise",e[e.Breath_Noise=121]="Breath_Noise",e[e.Seashore=122]="Seashore",e[e.Bird_Tweet=123]="Bird_Tweet",e[e.Telephone_Ring=124]="Telephone_Ring",e[e.Helicopter=125]="Helicopter",e[e.Applause=126]="Applause",e[e.Gunshot=127]="Gunshot",e[e.euphonium=128]="euphonium",e[e.AltoClarinetInEb=200]="AltoClarinetInEb",e[e.TrumpetInBb=201]="TrumpetInBb",e[e.BaritoneSaxophone=202]="BaritoneSaxophone",e[e.TenorSaxophone=203]="TenorSaxophone",e[e.ClarinetInEb=204]="ClarinetInEb",e[e.Euphonium=205]="Euphonium",e[e.Alto_Clarinet=206]="Alto_Clarinet",e[e.Bass_Clarinet=207]="Bass_Clarinet",e[e.Bass_Trombone=208]="Bass_Trombone",e[e.clarinet_in_bb=209]="clarinet_in_bb",e[e.clarinet_in_eb=210]="clarinet_in_eb",e[e.Percussion=135]="Percussion",e}(MidiInstrument||{}),_KeyInstruction=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck2(this,n),(e=t.call(this,r)).isTransposedBy=0,e.Key=i,e.keyTypeOriginal=i,e.mode=a,e.alteratedNotes=e.calcAlteratedNotes(),e}return _createClass2(n,[{key:"Key",get:function(){return this.keyType},set:function(e){this.keyType=e,this.alteratedNotes=this.calcAlteratedNotes()}},{key:"Mode",get:function(){return this.mode},set:function(e){this.mode=e}},{key:"AlteratedNotes",get:function(){return this.alteratedNotes}},{key:"calcAlteratedNotes",value:function(){var e=[];if(this.keyType>0)for(var t=0;t<this.keyType;t++)e.push(n.sharpPositionList[t]);else if(this.keyType<0)for(var r=0;r<-this.keyType;r++)e.push(n.flatPositionList[r]);return e}},{key:"willAlterateNote",value:function(e){return this.alteratedNotes.indexOf(e)>=0}},{key:"getAlterationForPitch",value:function(e){return this.keyType>0&&this.alteratedNotes.indexOf(e.FundamentalNote)<=this.keyType?AccidentalEnum.SHARP:this.keyType<0&&this.alteratedNotes.indexOf(e.FundamentalNote)<=Math.abs(this.keyType)?AccidentalEnum.FLAT:AccidentalEnum.NONE}},{key:"ToString",value:function(){return"Key: "+this.keyType+this.mode}},{key:"OperatorEquals",value:function(e){var t=this;return t===e||!(!t||!e)&&(t.Key===e.Key&&t.Mode===e.Mode)}},{key:"OperatorNotEqual",value:function(e){return!this.OperatorEquals(e)}}],[{key:"copy",value:function(e){var t=new n(e.parent,e.Key,e.Mode);return t.keyTypeOriginal=e.keyTypeOriginal,t}},{key:"getAllPossibleMajorKeyInstructions",value:function(){for(var e=[],t=-7;t<7;t++){var r=new n(void 0,t,0);e.push(r)}return e}}]),n}(AbstractNotationInstruction),KeyInstruction=_KeyInstruction;KeyInstruction.sharpPositionList=[NoteEnum.F,NoteEnum.C,NoteEnum.G,NoteEnum.D,NoteEnum.A,NoteEnum.E,NoteEnum.B],KeyInstruction.flatPositionList=[NoteEnum.B,NoteEnum.E,NoteEnum.A,NoteEnum.D,NoteEnum.G,NoteEnum.C,NoteEnum.F];var KeyEnum=function(e){return e[e.major=0]="major",e[e.minor=1]="minor",e[e.none=2]="none",e[e.dorian=3]="dorian",e[e.phrygian=4]="phrygian",e[e.lydian=5]="lydian",e[e.mixolydian=6]="mixolydian",e[e.aeolian=7]="aeolian",e[e.ionian=8]="ionian",e[e.locrian=9]="locrian",e}(KeyEnum||{});Array.prototype.last||Object.defineProperty(Array.prototype,"last",{enumerable:!1,value:function(){return this[this.length-1]}}),Array.prototype.clear||Object.defineProperty(Array.prototype,"clear",{enumerable:!1,value:function(){this.length=0}}),Array.prototype.contains||Object.defineProperty(Array.prototype,"contains",{enumerable:!1,value:function(e){return-1!==this.indexOf(e)}});var CollectionUtil=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"contains2",value:function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}},{key:"last",value:function(e){return e[e.length-1]}},{key:"removeDictElementIfTrue",value:function(e,t,n){var r=[];t.forEach((function(t,i){n(e,t,i)&&r.push(t)}));for(var i=0;i<r.length;i++)t.remove(r[i])}},{key:"getLastElement",value:function(e){return e[e.length-1]}},{key:"binarySearch",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length-1,a=1;r<=i;){var o=n(e[a=Math.floor((r+i)/2)],t);if(0===o)return a;o<0&&(r=a+1),0<o&&(i=a)}return-a}}]),e}(),GraphicalVoiceEntry=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).parentVoiceEntry=e,i.parentStaffEntry=r,i.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),r?r.PositionAndShape:void 0,!0),i.notes=[],i.rules=r?r.parentMeasure.parentSourceMeasure.Rules:new EngravingRules,i}return _createClass2(n,[{key:"sort",value:function(){return this.notes.sort((function(e,t){var n,r,i,a;return(null!==(n=null===(r=t.sourceNote.Pitch)||void 0===r?void 0:r.getHalfTone())&&void 0!==n?n:0)-(null!==(i=null===(a=e.sourceNote.Pitch)||void 0===a?void 0:a.getHalfTone())&&void 0!==i?i:0)})),this.notes}},{key:"sortForVexflow",value:function(){return this.notes.sort((function(e,t){var n,r,i;return(null!==(n=null===(r=e.sourceNote.Pitch)||void 0===r?void 0:r.getHalfTone())&&void 0!==n?n:0)-(null!==(i=t.sourceNote.Pitch.getHalfTone())&&void 0!==i?i:0)})),this.notes}},{key:"color",value:function(){}}]),n}(GraphicalObject),GraphicalMusicSheet=function(){function e(t,n){_classCallCheck2(this,e),this.musicPages=[],this.measureList=[],this.verticalGraphicalStaffEntryContainers=[],this.cursors=[],this.leadSheet=!1,this.musicSheet=t,this.numberOfStaves=this.musicSheet.Staves.length,this.calculator=n,this.calculator.initialize(this)}return _createClass2(e,[{key:"ParentMusicSheet",get:function(){return this.musicSheet}},{key:"GetCalculator",get:function(){return this.calculator}},{key:"JianpuKeySignature",get:function(){return this.jianpuKeySignature},set:function(e){this.jianpuKeySignature=e}},{key:"MusicPages",get:function(){return this.musicPages},set:function(e){this.musicPages=e}},{key:"MeasureList",get:function(){return this.measureList},set:function(e){this.measureList=e}},{key:"VerticalGraphicalStaffEntryContainers",get:function(){return this.verticalGraphicalStaffEntryContainers},set:function(e){this.verticalGraphicalStaffEntryContainers=e}},{key:"Title",get:function(){return this.title},set:function(e){this.title=e}},{key:"Subtitle",get:function(){return this.subtitle},set:function(e){this.subtitle=e}},{key:"Composer",get:function(){return this.composer},set:function(e){this.composer=e}},{key:"Lyricist",get:function(){return this.lyricist},set:function(e){this.lyricist=e}},{key:"Cursors",get:function(){return this.cursors}},{key:"SelectionStartSymbol",get:function(){return this.selectionStartSymbol}},{key:"SelectionEndSymbol",get:function(){return this.selectionEndSymbol}},{key:"MinAllowedSystemWidth",get:function(){return this.minAllowedSystemWidth},set:function(e){this.minAllowedSystemWidth=e}},{key:"NumberOfStaves",get:function(){return this.numberOfStaves}},{key:"LeadSheet",get:function(){return this.leadSheet},set:function(e){this.leadSheet=e}},{key:"Initialize",value:function(){this.verticalGraphicalStaffEntryContainers=[],this.musicPages=[],this.measureList=[]}},{key:"reCalculate",value:function(){this.calculator.calculate()}},{key:"EnforceRedrawOfMusicSystems",value:function(){for(var e=0,t=this.musicPages.length;e<t;++e)for(var n=this.musicPages[e],r=0,i=n.MusicSystems.length;r<i;++r){n.MusicSystems[r].needsToBeRedrawn=!0}}},{key:"getClickedObject",value:function(e){for(var t=0,n=this.MusicPages.length;t<n;++t){return this.MusicPages[t].PositionAndShape.getClickedObjectOfType(e)}}},{key:"findGraphicalMeasure",value:function(e,t){for(var n=e;n>=0;n--){var r=this.measureList[n][t];if(r)return r}}},{key:"findGraphicalStaffEntryFromMeasureList",value:function(e,t,n){for(var r=t;r<this.measureList.length;r++){var i=this.measureList[r][e];if(i)for(var a=0,o=i.staffEntries.length;a<o;++a){var s=i.staffEntries[a];if(s.sourceStaffEntry===n)return s}}}},{key:"findNextGraphicalStaffEntry",value:function(e,t,n){var r=n.parentMeasure,i=r.staffEntries.indexOf(n);if(i<r.staffEntries.length-1)return r.staffEntries[i+1];if(t<this.measureList.length-1){var a=this.measureList[t+1][e];if(a.staffEntries.length>0)return a.staffEntries[0]}}},{key:"getFirstVisibleMeasuresListFromIndices",value:function(e,t){for(var n=[],r=this.measureList[0].length,i=e;i<=t;i++)for(var a=0;a<r;a++)if(this.measureList[i][a].isVisible()){n.push(this.measureList[i][a]);break}return n}},{key:"orderMeasuresByStaffLine",value:function(e){var t=[],n=[];t.push(n);for(var r=0;r<e.length;r++)0===r?n.push(e[0]):(e[r].ParentStaffLine===e[r-1].ParentStaffLine||(-1===t.indexOf(n)&&t.push(n),n=[],t.push(n)),n.push(e[r]));return t}},{key:"initializeActiveClefs",value:function(){var e=[],t=this.musicSheet.getFirstSourceMeasure();if(t)for(var n=0;n<t.CompleteNumberOfStaves;n++){var r=new ClefInstruction;if(t.FirstInstructionsStaffEntries[n])for(var i=0,a=t.FirstInstructionsStaffEntries[n].Instructions.length;i<a;++i){var o=t.FirstInstructionsStaffEntries[n].Instructions[i];o instanceof ClefInstruction&&(r=o)}e.push(r)}return e}},{key:"GetMainKey",value:function(){var e=this.musicSheet.getFirstSourceMeasure();if(e)for(var t=0;t<e.CompleteNumberOfStaves;t++)for(var n=0,r=e.FirstInstructionsStaffEntries[t].Instructions.length;n<r;++n){var i=e.FirstInstructionsStaffEntries[t].Instructions[n];if(i instanceof KeyInstruction)return i}}},{key:"getOrCreateVerticalContainer",value:function(e){if(0===this.verticalGraphicalStaffEntryContainers.length||CollectionUtil.getLastElement(this.verticalGraphicalStaffEntryContainers).AbsoluteTimestamp.lt(e)){var t=new VerticalGraphicalStaffEntryContainer(this.numberOfStaves,e);return this.verticalGraphicalStaffEntryContainers.push(t),t}for(var n=this.verticalGraphicalStaffEntryContainers.length-1;n>=0;n--){if(this.verticalGraphicalStaffEntryContainers[n].AbsoluteTimestamp.lt(e)){var r=new VerticalGraphicalStaffEntryContainer(this.numberOfStaves,e);return this.verticalGraphicalStaffEntryContainers.splice(n+1,0,r),r}if(this.verticalGraphicalStaffEntryContainers[n].AbsoluteTimestamp.Equals(e))return this.verticalGraphicalStaffEntryContainers[n]}}},{key:"GetVerticalContainerFromTimestamp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=CollectionUtil.binarySearch(this.verticalGraphicalStaffEntryContainers,new VerticalGraphicalStaffEntryContainer(0,e),VerticalGraphicalStaffEntryContainer.compareByTimestamp,t);if(n>=0)return this.verticalGraphicalStaffEntryContainers[n]}},{key:"GetInterpolatedIndexInVerticalContainers",value:function(e){var t=this.verticalGraphicalStaffEntryContainers,n=0,r=t.length-1,i=void 0,a=void 0;if(e.lte(t[t.length-1].AbsoluteTimestamp)){for(;r-n>1;){var o=Math.floor((r+n)/2);if(t[n].AbsoluteTimestamp.Equals(e)){r=n;break}if(t[r].AbsoluteTimestamp.Equals(e)){n=r;break}if(t[o].AbsoluteTimestamp.Equals(e))return this.verticalGraphicalStaffEntryContainers.indexOf(t[o]);e.lt(t[o].AbsoluteTimestamp)?r=o:n=o}if(n===r)return this.verticalGraphicalStaffEntryContainers.indexOf(t[n]);i=t[n].AbsoluteTimestamp,a=t[r].AbsoluteTimestamp}else i=t[t.length-1].AbsoluteTimestamp,a=Fraction$1.plus(this.getLongestStaffEntryDuration(t.length-1),i),r=t.length;var s=a.RealValue-i.RealValue,l=r-(a.RealValue-e.RealValue)/s;return Math.min(l,this.verticalGraphicalStaffEntryContainers.length)}},{key:"getVisibleStavesIndicesFromSourceMeasure",value:function(e){for(var t=[],n=[],r=0,i=e.length;r<i;++r){var a=e[r].ParentStaff.ParentInstrument;-1===t.indexOf(a)&&t.push(a)}for(var o=0,s=t.length;o<s;++o)for(var l=t[o],u=this.musicSheet.getGlobalStaffIndexOfFirstStaff(l),c=0;c<l.Staves.length;c++)n.push(u+c);return n}},{key:"getGraphicalMeasureFromSourceMeasureAndIndex",value:function(e,t){for(var n=0;n<this.measureList.length;n++){var r;if((null===(r=this.measureList[n][0])||void 0===r?void 0:r.parentSourceMeasure)===e)return this.measureList[n][t]}}},{key:"getLastGraphicalMeasureFromIndex",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.measureList.length-1;return t&&(n=Math.min(n,this.musicSheet.Rules.MaxMeasureToDrawIndex)),this.measureList[n][e]}},{key:"getMeasureIndex",value:function(e,t,n){for(t=0;t<this.measureList.length;t++)for(var r=0,i=this.measureList[t].length;r<i;++r){if(this.measureList[t][r]===e)return!0}return!1}},{key:"GetNearestGraphicalObject",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:GraphicalObject.name,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0,o=[];0===o.length&&n<=r;){var s=new BoundingBox$1(void 0);s.BorderLeft=e.x-n,s.BorderTop=e.y-n,s.BorderRight=e.x+n,s.BorderBottom=e.y+n,s.AbsolutePosition=new PointF2D(e.x,e.y),s.calculateAbsolutePosition();for(var l=0,u=this.MusicPages.length;l<u;++l){var c=this.MusicPages[l].PositionAndShape.getObjectsInRegion(s,!1,t);if(c&&0!==c.length)for(var h=0,d=c.length;h<d;++h)a?a(c[h])&&o.push(c[h]):o.push(c[h])}n+=i}for(var f=void 0,p=0,v=o.length;p<v;++p){var m=o[p];if(void 0===f)f=m;else this.CalculateDistance(m.PositionAndShape.AbsolutePosition,e)<this.CalculateDistance(f.PositionAndShape.AbsolutePosition,e)&&(f=m)}if(f)return f}},{key:"GetNearestVoiceEntry",value:function(e){return this.GetNearestGraphicalObject(e,GraphicalVoiceEntry.name,5,20,5,(function(e){var t;return void 0!==(null===(t=e.parentStaffEntry)||void 0===t?void 0:t.relInMeasureTimestamp)}))}},{key:"GetNearestNote",value:function(e,t){var n=this.GetNearestVoiceEntry(e);if(n){var r,i,a=Number.MAX_SAFE_INTEGER,o=_createForOfIteratorHelper(n.notes);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.PositionAndShape.AbsolutePosition.y,u=Math.abs(s.PositionAndShape.AbsolutePosition.x-e.x),c=Math.abs(l-e.y);u+c<a&&(r=s,a=u+c)}}catch(err){o.e(err)}finally{o.f()}return r}}},{key:"domToSvg",value:function(e){return this.domToSvgTransform(e,!0)}},{key:"svgToDom",value:function(e){return this.domToSvgTransform(e,!1)}},{key:"svgToOsmd",value:function(e){var t=new PointF2D(e.x,e.y);return t.x/=10,t.y/=10,t}},{key:"domToSvgTransform",value:function(e,t){var n=this.drawer.Backends[0].getSvgElement(),r=n.createSVGPoint();r.x=e.x,r.y=e.y;var i=n.getScreenCTM();t&&(i=i.inverse());var a=r.matrixTransform(i);return new PointF2D(a.x,a.y)}},{key:"GetClickableLabel",value:function(e){var t=new BoundingBox$1;t.BorderLeft=e.x-4,t.BorderTop=e.y-4,t.BorderRight=e.x+4,t.BorderBottom=e.y+4,t.AbsolutePosition=new PointF2D(0,0);for(var n=0,r=this.MusicPages.length;n<r;++n){var i=this.MusicPages[n].PositionAndShape.getObjectsInRegion(t);if(1===i.length)for(var a=0,o=i.length;a<o;++a){return i[a]}}}},{key:"GetPossibleCommentAnchor",value:function(e){var t=this.GetNearestVoiceEntry(e);if(t)return t.parentStaffEntry.sourceStaffEntry}},{key:"GetClickedObjectOfType",value:function(e){for(var t=0,n=this.musicPages.length;t<n;++t){var r=this.musicPages[t].PositionAndShape.getClickedObjectOfType(e);if(r)return r}}},{key:"GetClickedClickable",value:function(e){for(var t=0,n=this.musicPages.length;t<n;++t){var r=this.musicPages[t].PositionAndShape.getClickedClickable(e);if(r&&r instanceof Clickable)return r}}},{key:"tryGetTimestampFromPosition",value:function(e){var t=this.GetClickedObjectOfType(e);if(t)return t.getAbsoluteTimestamp()}},{key:"tryGetClickableLabel",value:function(e){try{return this.GetClickableLabel(e)}catch(t){loglevelExports.info("GraphicalMusicSheet.tryGetClickableObject","positionOnMusicSheet: "+e,t)}}},{key:"tryGetTimeStampFromPosition",value:function(e){try{var t=this.GetNearestVoiceEntry(e);if(!t)return;return t.parentStaffEntry.getAbsoluteTimestamp()}catch(n){loglevelExports.info("GraphicalMusicSheet.tryGetTimeStampFromPosition","positionOnMusicSheet: "+e,n)}}},{key:"getStaffEntry",value:function(e){var t=this.VerticalGraphicalStaffEntryContainers[e],n=void 0;try{for(var r=0,i=t.StaffEntries.length;r<i;++r){var a=t.StaffEntries[r];a&&a.sourceStaffEntry.ParentStaff.ParentInstrument.Visible&&(n?a.PositionAndShape&&n.PositionAndShape&&n.PositionAndShape.RelativePosition.x>a.PositionAndShape.RelativePosition.x&&(n=a):n=a)}}catch(o){loglevelExports.info("GraphicalMusicSheet.getStaffEntry",o)}return n}},{key:"GetPreviousVisibleContainerIndex",value:function(e){for(var t=e-1;t>=0;t--)for(var n=this.verticalGraphicalStaffEntryContainers[t].StaffEntries,r=0,i=n.length;r<i;++r){var a=n[r];if(a&&a.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return t}return-1}},{key:"GetNextVisibleContainerIndex",value:function(e){for(var t=e+1;t<this.verticalGraphicalStaffEntryContainers.length;++t)for(var n=this.verticalGraphicalStaffEntryContainers[t].StaffEntries,r=0,i=n.length;r<i;++r){var a=n[r];if(a&&a.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return t}return-1}},{key:"findClosestLeftStaffEntry",value:function(e,t){for(var n=void 0,r=Math.floor(e),i=r=Math.min(this.VerticalGraphicalStaffEntryContainers.length-1,r);i>=0;i--)if(n=this.getStaffEntry(i)){if(!t)return n;if(n.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return n}}},{key:"findClosestRightStaffEntry",value:function(e,t){for(var n=void 0,r=Math.max(0,Math.ceil(e));r<this.VerticalGraphicalStaffEntryContainers.length;r++)if(n=this.getStaffEntry(r)){if(!t)return n;if(n.sourceStaffEntry.ParentStaff.ParentInstrument.Visible)return n}}},{key:"calculateCursorLineAtTimestamp",value:function(e,t){var n=this.calculateXPositionFromTimestamp(e),r=n[0],i=n[1];if(i&&0!==i.StaffLines.length){var a=i.PositionAndShape.AbsolutePosition.y,o=CollectionUtil.last(i.StaffLines).PositionAndShape.RelativePosition.y+4;return new GraphicalLine(new PointF2D(r,a),new PointF2D(r,a+o),3,t)}}},{key:"calculateXPositionFromTimestamp",value:function(e){var t=void 0,n=this.GetInterpolatedIndexInVerticalContainers(e),r=this.findClosestLeftStaffEntry(n,!0),i=this.findClosestRightStaffEntry(n,!0),a=e.RealValue;if(!r&&!i)return[0,void 0,void 0];var o,s,l=void 0;r?l=null===(o=r.parentMeasure.ParentStaffLine)||void 0===o?void 0:o.ParentMusicSystem:l=null===(s=i.parentMeasure.ParentStaffLine)||void 0===s?void 0:s.ParentMusicSystem;var u,c,h=void 0;i?h=null===(u=i.parentMeasure.ParentStaffLine)||void 0===u?void 0:u.ParentMusicSystem:h=null===(c=r.parentMeasure.ParentStaffLine)||void 0===c?void 0:c.ParentMusicSystem;if(l===h){var d,f,p;t=l;var v=0;if(r)if(i){f=r.PositionAndShape.AbsolutePosition.x,p=i.PositionAndShape.AbsolutePosition.x,d=r===i?0:(a-r.getAbsoluteTimestamp().RealValue)/(i.getAbsoluteTimestamp().RealValue-r.getAbsoluteTimestamp().RealValue);var m=r.parentMeasure,g=r.parentMeasure.parentSourceMeasure.multipleRestMeasures,y=m.MeasureNumber/(g+1),b=m.PositionAndShape.Size.width-m.beginInstructionsWidth;v=m.PositionAndShape.AbsolutePosition.x+m.beginInstructionsWidth+y*b}else{f=r.PositionAndShape.AbsolutePosition.x,p=t.GetRightBorderAbsoluteXPosition();var A=r.parentMeasure.parentSourceMeasure;d=(a-r.getAbsoluteTimestamp().RealValue)/(Fraction$1.plus(A.AbsoluteTimestamp,A.Duration).RealValue-r.getAbsoluteTimestamp().RealValue)}else f=p=i.PositionAndShape.AbsolutePosition.x,d=0;return d=Math.min(1,Math.max(0,d)),v&&1===r.parentMeasure.MeasureNumber?[v,t,r]:[f+d*(p-f),t,r]}var S,x,w=i.parentMeasure.parentSourceMeasure.AbsoluteTimestamp.RealValue;if(a<w){t=l;var _=r.PositionAndShape.AbsolutePosition.x,E=t.GetRightBorderAbsoluteXPosition();S=(a-r.getAbsoluteTimestamp().RealValue)/(w-r.getAbsoluteTimestamp().RealValue),x=_+(S=Math.min(1,Math.max(0,S)))*(E-_)}else{t=h;var k=i.PositionAndShape.AbsolutePosition.x,C=t.GetLeftBorderAbsoluteXPosition();S=(a-w)/(i.getAbsoluteTimestamp().RealValue-w),x=C+(S=Math.min(1,Math.max(0,S)))*(k-C)}return[x,t,r]}},{key:"calculateCursorPoints",value:function(e,t){if(void 0===t||0===t.StaffLines.length)return[new PointF2D,new PointF2D];var n=t.PositionAndShape.AbsolutePosition.y,r=t.StaffLines.last(),i=r.PositionAndShape.RelativePosition.y+r.StaffHeight;return[new PointF2D(e,n),new PointF2D(e,n+i)]}},{key:"GetNumberOfVisibleInstruments",value:function(){for(var e=0,t=0,n=this.musicSheet.Instruments.length;t<n;++t){!0===this.musicSheet.Instruments[t].Visible&&e++}return e}},{key:"GetNumberOfFollowedInstruments",value:function(){for(var e=0,t=0,n=this.musicSheet.Instruments.length;t<n;++t){!0===this.musicSheet.Instruments[t].Following&&e++}return e}},{key:"GetGraphicalFromSourceStaffEntry",value:function(e){var t;if(null!==(t=e.VerticalContainerParent.ParentMeasure)&&void 0!==t&&t.VerticalMeasureList)return e.VerticalContainerParent.ParentMeasure.VerticalMeasureList[e.ParentStaff.idInMusicSheet].findGraphicalStaffEntryFromTimestamp(e.Timestamp)}},{key:"CalculateDistance",value:function(e,t){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}},{key:"getLongestStaffEntryDuration",value:function(e){var t,n=new Fraction$1(0,1),r=_createForOfIteratorHelper(this.verticalGraphicalStaffEntryContainers[e].StaffEntries);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i){var a=i.findStaffEntryMaxNoteLength();n.lt(a)&&(n=a)}}}catch(err){r.e(err)}finally{r.f()}return n}}],[{key:"transformRelativeToAbsolutePosition",value:function(e){for(var t=0;t<e.MusicPages.length;t++){var n=e.MusicPages[t].setMusicPageAbsolutePosition(t,e.ParentMusicSheet.Rules);e.MusicPages[t].PositionAndShape.calculateAbsolutePositionsRecursive(n.x,n.y)}}}]),e}(),Note$1=function(){function e(t,n,r,i,a,o){_classCallCheck2(this,e),this.slurs=[],this.playbackInstrumentId=void 0,this.notehead=void 0,this.printObject=!0,this.voiceEntry=t,this.parentStaffEntry=n,this.length=r,this.pitch=i,this.sourceMeasure=a,this.isRestFlag=null!=o&&o,this.noteTremoloType="",this.glissandoType="",this.slideType="",this.halfTone=i?i.getHalfTone():0}return _createClass2(e,[{key:"NoteAsString",get:function(){return this.pitch.toString()}},{key:"TremoloType",get:function(){return this.noteTremoloType},set:function(e){this.noteTremoloType=e}},{key:"ParentVoiceEntry",get:function(){return this.voiceEntry},set:function(e){this.voiceEntry=e}},{key:"ParentStaffEntry",get:function(){return this.parentStaffEntry}},{key:"ParentStaff",get:function(){return this.parentStaffEntry.ParentStaff}},{key:"Length",get:function(){return this.length},set:function(e){this.length=e}},{key:"PlaybackNote",get:function(){return this.playbackNote},set:function(e){this.playbackNote=e}},{key:"SourceMeasure",get:function(){return this.sourceMeasure}},{key:"TypeLength",get:function(){return this.typeLength},set:function(e){this.typeLength=e}},{key:"NoteTypeXml",get:function(){return this.noteTypeXml},set:function(e){this.noteTypeXml=e}},{key:"NormalNotes",get:function(){return this.normalNotes},set:function(e){this.normalNotes=e}},{key:"Pitch",get:function(){return this.pitch}},{key:"NoteBeam",get:function(){return this.beam},set:function(e){this.beam=e}},{key:"Notehead",get:function(){return this.notehead},set:function(e){this.notehead=e}},{key:"NoteTuplet",get:function(){return this.tuplet},set:function(e){this.tuplet=e}},{key:"NoteTie",get:function(){return this.tie},set:function(e){this.tie=e}},{key:"NoteSlurs",get:function(){return this.slurs},set:function(e){this.slurs=e}},{key:"PlaybackInstrumentId",get:function(){return this.playbackInstrumentId},set:function(e){this.playbackInstrumentId=e}},{key:"PrintObject",get:function(){return this.printObject},set:function(e){this.printObject=e}},{key:"Arpeggio",get:function(){return this.arpeggio},set:function(e){this.arpeggio=e}},{key:"IsCueNote",get:function(){return this.isCueNote},set:function(e){this.isCueNote=e}},{key:"StemDirectionXml",get:function(){return this.stemDirectionXml},set:function(e){this.stemDirectionXml=e}},{key:"TremoloStrokes",get:function(){return this.tremoloStrokes},set:function(e){this.tremoloStrokes=e}},{key:"StemColorXml",get:function(){return this.stemColorXml},set:function(e){this.stemColorXml=e}},{key:"NoteheadColorXml",get:function(){return this.noteheadColorXml},set:function(e){this.noteheadColorXml=e}},{key:"NoteheadColor",get:function(){return this.noteheadColor},set:function(e){this.noteheadColor=e}},{key:"NoteheadColorCurrentlyRendered",get:function(){return this.noteheadColorCurrentlyRendered},set:function(e){this.noteheadColorCurrentlyRendered=e}},{key:"isRest",value:function(){return this.isRestFlag}},{key:"isWholeRest",value:function(){return this.isRest()&&this.Length.RealValue===this.sourceMeasure.ActiveTimeSignature.RealValue}},{key:"ToString",value:function(){return this.pitch?this.Pitch.ToString()+", length: "+this.length.toString():"rest note, length: "+this.length.toString()}},{key:"getAbsoluteTimestamp",value:function(){return Fraction$1.plus(this.voiceEntry.Timestamp,this.sourceMeasure.AbsoluteTimestamp)}},{key:"checkForDoubleSlur",value:function(e){for(var t=0,n=this.slurs.length;t<n;++t){var r=this.slurs[t];if(void 0!==r.StartNote&&void 0!==r.EndNote&&void 0!==e.StartNote&&e.StartNote===r.StartNote&&r.EndNote===this)return!0}return!1}}]),e}(),Vex=function(){};Vex.L=function(e,t){if(t){var n=Array.prototype.slice.call(t).join(" ");window.console.log(e+": "+n)}},Vex.MakeException=function(e){return function(t){_inherits2(r,t);var n=_createSuper2(r);function r(t,i){var a;return _classCallCheck2(this,r),(a=n.call(this,t)).name=e,a.message=t,a.data=i,a}return _createClass2(r)}(_wrapNativeSuper2(Error))};var RuntimeError=function(){function e(t,n){_classCallCheck2(this,e),this.code=t,this.message=n}return _createClass2(e,[{key:"toString",value:function(){return"[RuntimeError] "+this.code+":"+this.message}}]),e}();Vex.RuntimeError=RuntimeError,Vex.RERR=Vex.RuntimeError,Vex.Merge=function(e,t){for(var n in t)e[n]=t[n];return e},Vex.Min=Math.min,Vex.Max=Math.max,Vex.forEach=function(e,t){for(var n=0;n<e.length;n++)t(e[n],n)},Vex.RoundN=function(e,t){return e%t>=t/2?parseInt(e/t,10)*t+t:parseInt(e/t,10)*t},Vex.MidLine=function(e,t){var n=t+(e-t)/2;return n%2>0&&(n=Vex.RoundN(10*n,5)/10),n},Vex.SortAndUnique=function(e,t,n){if(e.length>1){var r,i=[];e.sort(t);for(var a=0;a<e.length;++a)0!==a&&n(e[a],r)||i.push(e[a]),r=e[a];return i}return e},Vex.Contains=function(e,t){for(var n=e.length;n--;)if(e[n]===t)return!0;return!1},Vex.getCanvasContext=function(e){if(!e)throw new Vex.RERR("BadArgument","Invalid canvas selector: "+e);var t=document.getElementById(e);if(!t||!t.getContext)throw new Vex.RERR("UnsupportedBrowserError","This browser does not support HTML5 Canvas");return t.getContext("2d")},Vex.drawDot=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#55";e.save(),e.setFillStyle(r),e.beginPath(),e.arc(t,n,3,0,2*Math.PI,!0),e.closePath(),e.fill(),e.restore()},Vex.BM=function(e,t){var n=(new Date).getTime();t();var r=(new Date).getTime()-n;Vex.L(e+r+"ms")},Vex.StackTrace=function(){return(new Error).stack},Vex.W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.join(" ");window.console.log("Warning: ",r,Vex.StackTrace())},Vex.Prefix=function(e){return Vex.Prefix.prefix+e},Vex.Prefix.prefix="vf-";var Fraction=function(){function e(t,n){_classCallCheck2(this,e),this.set(t,n)}return _createClass2(e,[{key:"set",value:function(e,t){return this.numerator=void 0===e?1:e,this.denominator=void 0===t?1:t,this}},{key:"value",value:function(){return this.numerator/this.denominator}},{key:"simplify",value:function(){var t=this.numerator,n=this.denominator,r=e.GCD(t,n);return t/=r,(n/=r)<0&&(n=-n,t=-t),this.set(t,n)}},{key:"add",value:function(t,n){var r,i;t instanceof e?(r=t.numerator,i=t.denominator):(r=void 0!==t?t:0,i=void 0!==n?n:1);var a=e.LCM(this.denominator,i),o=a/this.denominator,s=a/i,l=this.numerator*o+r*s;return this.set(l,a)}},{key:"subtract",value:function(t,n){var r,i;t instanceof e?(r=t.numerator,i=t.denominator):(r=void 0!==t?t:0,i=void 0!==n?n:1);var a=e.LCM(this.denominator,i),o=a/this.denominator,s=a/i,l=this.numerator*o-r*s;return this.set(l,a)}},{key:"multiply",value:function(t,n){var r,i;return t instanceof e?(r=t.numerator,i=t.denominator):(r=void 0!==t?t:1,i=void 0!==n?n:1),this.set(this.numerator*r,this.denominator*i)}},{key:"divide",value:function(t,n){var r,i;return t instanceof e?(r=t.numerator,i=t.denominator):(r=void 0!==t?t:1,i=void 0!==n?n:1),this.set(this.numerator*i,this.denominator*r)}},{key:"equals",value:function(t){var n=e.__compareA.copy(t).simplify(),r=e.__compareB.copy(this).simplify();return n.numerator===r.numerator&&n.denominator===r.denominator}},{key:"greaterThan",value:function(t){var n=e.__compareB.copy(this);return n.subtract(t),n.numerator>0}},{key:"greaterThanEquals",value:function(t){var n=e.__compareB.copy(this);return n.subtract(t),n.numerator>=0}},{key:"lessThan",value:function(e){return!this.greaterThanEquals(e)}},{key:"lessThanEquals",value:function(e){return!this.greaterThan(e)}},{key:"clone",value:function(){return new e(this.numerator,this.denominator)}},{key:"copy",value:function(e){return"number"==typeof e?this.set(e||0,1):this.set(e.numerator,e.denominator)}},{key:"quotient",value:function(){return Math.floor(this.numerator/this.denominator)}},{key:"fraction",value:function(){return this.numerator%this.denominator}},{key:"abs",value:function(){return this.denominator=Math.abs(this.denominator),this.numerator=Math.abs(this.numerator),this}},{key:"toString",value:function(){return this.numerator+"/"+this.denominator}},{key:"toSimplifiedString",value:function(){return e.__tmp.copy(this).simplify().toString()}},{key:"toMixedString",value:function(){var t="",n=this.quotient(),r=e.__tmp.copy(this);return n<0?r.abs().fraction():r.fraction(),0!==n?(t+=n,0!==r.numerator&&(t+=" "+r.toSimplifiedString())):t=0===r.numerator?"0":r.toSimplifiedString(),t}},{key:"parse",value:function(e){var t=e.split("/"),n=parseInt(t[0],10),r=t[1]?parseInt(t[1],10):1;return this.set(n,r)}}],[{key:"GCD",value:function(e,t){if("number"!=typeof e||"number"!=typeof t)throw new Vex.RERR("BadArgument","Invalid numbers: ".concat(e,", ").concat(t));for(var n;0!==t;)n=t,t=e%t,e=n;return e}},{key:"LCM",value:function(t,n){return t*n/e.GCD(t,n)}},{key:"LCMM",value:function(t){if(0===t.length)return 0;if(1===t.length)return t[0];if(2===t.length)return e.LCM(t[0],t[1]);var n=t[0];return t.shift(),e.LCM(n,e.LCMM(t))}}]),e}();Fraction.__compareA=new Fraction,Fraction.__compareB=new Fraction,Fraction.__tmp=new Fraction;var X$3=Vex.MakeException("RegistryError");function setIndexValue(e,t,n,r,i){e[t][n]||(e[t][n]={}),e[t][n][r]=i}var Registry=function(){function e(){_classCallCheck2(this,e),this.clear()}return _createClass2(e,[{key:"clear",value:function(){return this.index={id:{},type:{},class:{}},this}},{key:"updateIndex",value:function(e){var t=e.id,n=e.name,r=e.value,i=e.oldValue,a=this.getElementById(t);null!==i&&this.index[n][i]&&delete this.index[n][i][t],null!==r&&setIndexValue(this.index,n,r,a.getAttribute("id"),a)}},{key:"register",value:function(t,n){var r=this;if(!(n=n||t.getAttribute("id")))throw new X$3("Can't add element without `id` attribute to registry",t);return t.setAttribute("id",n),setIndexValue(this.index,"id",n,n,t),e.INDEXES.forEach((function(e){r.updateIndex({id:n,name:e,value:t.getAttribute(e),oldValue:null})})),t.onRegister(this),this}},{key:"getElementById",value:function(e){return this.index.id[e]?this.index.id[e][e]:null}},{key:"getElementsByAttribute",value:function(e,t){var n=this.index[e];return n&&n[t]?Object.keys(n[t]).map((function(e){return n[t][e]})):[]}},{key:"getElementsByType",value:function(e){return this.getElementsByAttribute("type",e)}},{key:"getElementsByClass",value:function(e){return this.getElementsByAttribute("class",e)}},{key:"onUpdate",value:function(t){var n=t.id,r=t.name,i=t.value,a=t.oldValue;return function(e,t){return e.filter((function(e){return e===t})).length>0}(e.INDEXES.concat(["id","class"]),r)?(this.updateIndex({id:n,name:r,value:i,oldValue:a}),this):this}}],[{key:"INDEXES",get:function(){return["type"]}},{key:"enableDefaultRegistry",value:function(t){e.defaultRegistry=t}},{key:"getDefaultRegistry",value:function(){return e.defaultRegistry}},{key:"disableDefaultRegistry",value:function(){e.defaultRegistry=null}}]),e}();Registry.defaultRegistry=null;var Element$1=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type;_classCallCheck2(this,e),this.attrs={id:e.newID(),el:null,type:t||"Base",classes:{}},this.boundingBox=null,this.context=null,this.rendered=!1,Registry.getDefaultRegistry()&&Registry.getDefaultRegistry().register(this)}return _createClass2(e,[{key:"setStyle",value:function(e){return this.style=e,this}},{key:"getStyle",value:function(){return this.style}},{key:"applyStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.context,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getStyle();return t?(e.save(),t.shadowColor&&e.setShadowColor(t.shadowColor),t.shadowBlur&&e.setShadowBlur(t.shadowBlur),t.fillStyle&&e.setFillStyle(t.fillStyle),t.strokeStyle&&e.setStrokeStyle(t.strokeStyle),t.lineWidth&&e.setLineWidth(t.lineWidth),this):this}},{key:"restoreStyle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.context;return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getStyle())?(e.restore(),this):this}},{key:"drawWithStyle",value:function(){this.checkContext(),this.applyStyle(),this.draw(),this.restoreStyle()}},{key:"hasClass",value:function(e){return!0===this.attrs.classes[e]}},{key:"addClass",value:function(e){return this.attrs.classes[e]=!0,this.registry&&this.registry.onUpdate({id:this.getAttribute("id"),name:"class",value:e,oldValue:null}),this}},{key:"removeClass",value:function(e){return delete this.attrs.classes[e],this.registry&&this.registry.onUpdate({id:this.getAttribute("id"),name:"class",value:null,oldValue:e}),this}},{key:"onRegister",value:function(e){return this.registry=e,this}},{key:"isRendered",value:function(){return this.rendered}},{key:"setRendered",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.rendered=e,this}},{key:"getAttributes",value:function(){return this.attrs}},{key:"getAttribute",value:function(e){return this.attrs[e]}},{key:"setAttribute",value:function(e,t){var n=this.attrs.id,r=this.attrs[e];return this.attrs[e]=t,this.registry&&this.registry.onUpdate({id:n,name:e,value:t,oldValue:r}),this}},{key:"getContext",value:function(){return this.context}},{key:"setContext",value:function(e){return this.context=e,this}},{key:"getBoundingBox",value:function(){return this.boundingBox}},{key:"checkContext",value:function(){if(!this.context)throw new Vex.RERR("NoContext","No rendering context attached to instance");return this.context}}],[{key:"newID",value:function(){return"auto"+e.ID++}}]),e}();Element$1.ID=1e3;var BoundingBoxComputation=function(){function e(t,n,r,i){_classCallCheck2(this,e),this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.addPoint(t,n),this.addPoint(r,i)}return _createClass2(e,[{key:"width",value:function(){return this.x2-this.x1}},{key:"height",value:function(){return this.y2-this.y1}},{key:"addPoint",value:function(e,t){null!=e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),null!=t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}},{key:"addX",value:function(e){this.addPoint(e,null)}},{key:"addY",value:function(e){this.addPoint(null,e)}},{key:"addQuadraticCurve",value:function(e,t,n,r,i,a){var o=e+2/3*(n-e),s=t+2/3*(r-t),l=o+1/3*(i-e),u=s+1/3*(a-t);this.addBezierCurve(e,t,o,s,l,u,i,a)}},{key:"addBezierCurve",value:function(e,t,n,r,i,a,o,s){var l,u=[e,t],c=[n,r],h=[i,a],d=[o,s];this.addPoint(u[0],u[1]),this.addPoint(d[0],d[1]);var f=function(e,t){return Math.pow(1-e,3)*u[t]+3*Math.pow(1-e,2)*e*c[t]+3*(1-e)*Math.pow(e,2)*h[t]+Math.pow(e,3)*d[t]};for(l=0;l<=1;l++){var p=6*u[l]-12*c[l]+6*h[l],v=-3*u[l]+9*c[l]-9*h[l]+3*d[l],m=3*c[l]-3*u[l];if(0!==v){var g=Math.pow(p,2)-4*m*v;if(!(g<0)){var y=(-p+Math.sqrt(g))/(2*v);0<y&&y<1&&(0===l&&this.addX(f(y,l)),1===l&&this.addY(f(y,l)));var b=(-p-Math.sqrt(g))/(2*v);0<b&&b<1&&(0===l&&this.addX(f(b,l)),1===l&&this.addY(f(b,l)))}}else{if(0===p)continue;var A=-m/p;0<A&&A<1&&(0===l&&this.addX(f(A,l)),1===l&&this.addY(f(A,l)))}}}}]),e}(),BoundingBox=function(){function e(t,n,r,i){_classCallCheck2(this,e),this.x=t,this.y=n,this.w=r,this.h=i}return _createClass2(e,[{key:"getX",value:function(){return this.x}},{key:"getY",value:function(){return this.y}},{key:"getW",value:function(){return this.w}},{key:"getH",value:function(){return this.h}},{key:"setX",value:function(e){return this.x=e,this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"setW",value:function(e){return this.w=e,this}},{key:"setH",value:function(e){return this.h=e,this}},{key:"move",value:function(e,t){this.x+=e,this.y+=t}},{key:"clone",value:function(){return e.copy(this)}},{key:"mergeWith",value:function(e,t){var n=e,r=this.x<n.x?this.x:n.x,i=this.y<n.y?this.y:n.y,a=Math.max(this.x+this.w,n.x+n.w)-r,o=Math.max(this.y+this.h,n.y+n.h)-i;return this.x=r,this.y=i,this.w=a,this.h=o,t&&this.draw(t),this}},{key:"draw",value:function(e,t,n){t||(t=0),n||(n=0),e.rect(this.x+t,this.y+n,this.w,this.h),e.stroke()}}],[{key:"copy",value:function(t){return new e(t.x,t.y,t.w,t.h)}}]),e}(),Font={glyphs:{v0:{x_min:0,x_max:514.5,ha:525,o:"m 236 648 b 246 648 238 648 242 648 b 288 646 261 648 283 648 b 472 513 364 634 428 587 b 514 347 502 464 514 413 b 462 163 514 272 499 217 b 257 44 409 83 333 44 b 50 163 181 44 103 83 b 0 347 14 217 0 272 b 40 513 0 413 12 464 b 236 648 87 591 155 638 m 277 614 b 253 616 273 616 261 616 b 242 616 247 616 243 616 b 170 499 193 609 181 589 b 159 348 163 446 159 398 b 166 222 159 308 161 266 b 201 91 174 138 183 106 b 257 76 215 81 235 76 b 311 91 277 76 299 81 b 347 222 330 106 338 138 b 353 348 352 266 353 308 b 344 499 353 398 351 446 b 277 614 333 587 322 606 m 257 -1 l 258 -1 l 255 -1 l 257 -1 m 257 673 l 258 673 l 255 673 l 257 673 "},v1:{x_min:-1.359375,x_max:344.359375,ha:351,o:"m 126 637 l 129 638 l 198 638 l 266 638 l 269 635 b 274 631 272 634 273 632 l 277 627 l 277 395 b 279 156 277 230 277 161 b 329 88 281 123 295 106 b 344 69 341 81 344 79 b 337 55 344 62 343 59 l 333 54 l 197 54 l 61 54 l 58 55 b 50 69 53 59 50 62 b 65 88 50 79 53 81 b 80 97 72 91 74 93 b 117 156 103 113 112 129 b 117 345 117 161 117 222 l 117 528 l 100 503 l 38 406 b 14 383 24 384 23 383 b -1 398 5 383 -1 390 b 4 415 -1 403 1 409 b 16 437 5 416 10 426 l 72 539 l 100 596 b 121 632 119 631 119 631 b 126 637 122 634 125 635 m 171 -1 l 172 -1 l 170 -1 l 171 -1 m 171 673 l 172 673 l 170 673 l 171 673 "},v2:{x_min:-1.359375,x_max:458.6875,ha:468,o:"m 197 648 b 216 648 201 648 208 648 b 258 646 232 648 253 648 b 419 546 333 637 393 599 b 432 489 428 528 432 509 b 356 342 432 440 405 384 b 235 278 322 313 288 295 b 69 170 166 256 107 217 b 69 169 69 170 69 169 b 69 169 69 169 69 169 b 74 173 69 169 72 170 b 209 222 112 204 163 222 b 310 195 247 222 274 215 b 371 179 332 184 352 179 b 396 181 379 179 387 179 b 428 202 409 184 423 194 b 442 212 431 209 436 212 b 458 197 450 212 458 206 b 441 148 458 190 449 165 b 299 44 409 84 353 44 b 288 45 295 44 292 44 b 250 61 274 45 268 49 b 122 99 212 86 164 99 b 73 91 104 99 88 97 b 28 63 53 84 34 72 b 14 54 25 56 20 54 b 1 62 9 54 4 56 l -1 65 l -1 79 b 0 99 -1 91 0 95 b 2 113 1 102 2 108 b 164 309 20 197 81 272 b 285 470 232 341 277 398 b 287 487 287 476 287 481 b 171 595 287 551 239 595 b 155 595 166 595 160 595 b 142 592 145 594 142 594 b 145 589 142 592 142 591 b 179 527 168 576 179 551 b 132 455 179 496 163 467 b 104 451 122 452 112 451 b 27 530 62 451 27 487 b 29 555 27 538 27 546 b 197 648 44 601 115 639 m 228 -1 l 230 -1 l 227 -1 l 228 -1 m 228 673 l 230 673 l 227 673 l 228 673 "},v3:{x_min:-1.359375,x_max:409.6875,ha:418,o:"m 174 648 b 191 648 176 648 183 648 b 225 648 204 648 220 648 b 402 523 317 638 389 588 b 404 503 404 517 404 510 b 402 484 404 495 404 488 b 264 373 389 437 334 394 b 257 370 259 371 257 371 b 257 370 257 370 257 370 b 264 369 258 370 261 369 b 409 202 359 334 409 267 b 318 72 409 152 381 104 b 200 43 281 52 240 43 b 23 113 134 43 69 68 b 0 169 6 129 0 149 b 77 249 0 210 29 249 l 77 249 b 152 174 125 249 152 212 b 103 102 152 145 137 116 b 103 102 103 102 103 102 b 147 94 103 101 132 95 b 153 94 149 94 151 94 b 265 206 219 94 265 141 b 264 226 265 213 265 219 b 147 355 253 299 204 353 b 126 371 133 356 126 362 b 147 388 126 383 132 388 b 254 474 196 391 238 424 b 259 502 258 484 259 494 b 182 592 259 544 228 582 b 156 595 175 595 166 595 b 115 592 142 595 129 594 l 111 591 l 115 588 b 152 524 141 574 152 549 b 92 449 152 491 130 458 b 76 448 87 448 81 448 b -1 530 32 448 -1 488 b 20 581 -1 548 5 566 b 174 648 55 619 108 641 m 204 -1 l 205 -1 l 202 -1 l 204 -1 m 204 673 l 205 673 l 202 673 l 204 673 "},v4:{x_min:0,x_max:468.21875,ha:478,o:"m 174 637 b 232 638 175 638 189 638 b 277 638 245 638 259 638 l 378 638 l 381 635 b 389 623 386 632 389 627 b 382 609 389 617 386 613 b 366 589 381 606 372 598 l 313 528 l 245 451 l 209 410 l 155 348 l 84 267 b 59 240 72 252 59 240 b 59 240 59 240 59 240 b 151 238 59 238 68 238 l 242 238 l 242 303 b 243 371 242 369 242 370 b 289 426 245 374 254 385 l 303 441 l 317 456 l 338 483 l 360 506 l 371 520 b 386 527 375 526 381 527 b 400 519 392 527 397 524 b 401 440 401 516 401 514 b 401 377 401 423 401 402 l 401 238 l 426 238 b 453 237 449 238 450 238 b 465 217 461 234 465 226 b 460 202 465 212 464 206 b 426 197 454 197 453 197 l 401 197 l 401 180 b 451 88 402 129 412 109 b 468 69 465 81 468 79 b 461 55 468 62 466 59 l 458 54 l 321 54 l 185 54 l 182 55 b 175 69 176 59 175 62 b 191 88 175 79 176 81 b 240 180 230 109 240 129 l 240 197 l 125 197 b 73 195 104 195 87 195 b 8 197 10 195 9 197 b 0 212 2 199 0 205 b 0 212 0 212 0 212 b 20 242 0 219 0 219 b 163 610 104 344 163 492 b 174 637 163 628 166 634 m 234 -1 l 235 -1 l 232 -1 l 234 -1 m 234 673 l 235 673 l 232 673 l 234 673 "},v5:{x_min:0,x_max:409.6875,ha:418,o:"m 47 637 b 53 638 49 638 50 638 b 69 634 55 638 61 637 b 210 610 114 619 161 610 b 363 634 259 610 311 619 b 382 638 372 637 378 638 b 392 634 386 638 389 637 b 397 623 396 630 397 627 b 393 610 397 620 396 616 b 298 505 368 552 338 520 b 212 494 277 498 246 494 b 65 517 163 494 106 502 b 61 517 62 517 61 517 b 61 517 61 517 61 517 b 51 408 61 517 51 412 b 51 408 51 408 51 408 b 51 408 51 408 51 408 b 61 412 53 408 55 409 b 125 434 80 421 103 430 b 185 441 145 440 166 441 b 409 244 310 441 409 353 b 401 191 409 227 406 209 b 197 43 375 105 287 43 b 159 47 183 43 171 44 b 23 123 112 56 61 86 b 0 180 6 140 0 159 b 76 260 0 220 31 260 b 92 259 81 260 87 259 b 152 183 132 251 152 216 b 100 112 152 152 134 122 b 95 111 98 112 95 111 b 95 111 95 111 95 111 b 129 98 95 109 119 101 b 148 97 136 97 141 97 b 264 235 206 97 261 158 b 265 248 265 240 265 244 b 210 398 265 312 243 373 b 179 408 201 406 194 408 b 174 408 178 408 176 408 b 53 369 130 408 88 394 b 34 359 39 359 38 359 b 17 374 24 359 17 365 b 39 628 17 384 38 625 b 47 637 40 631 43 635 m 204 -1 l 205 -1 l 202 -1 l 204 -1 m 204 673 l 205 673 l 202 673 l 204 673 "},v6:{x_min:0,x_max:475.03125,ha:485,o:"m 255 648 b 274 648 259 648 266 648 b 314 646 288 648 307 648 b 450 555 374 637 438 594 b 454 530 453 546 454 538 b 375 451 454 485 416 451 b 328 467 359 451 343 455 b 300 526 310 483 300 503 b 352 598 300 557 319 589 b 356 599 355 598 356 599 b 352 602 356 599 355 601 b 288 616 330 612 308 616 b 210 584 257 616 230 605 b 164 433 189 559 174 508 b 160 374 163 415 160 381 b 160 374 160 374 160 374 b 160 374 160 374 160 374 b 168 377 160 374 164 376 b 258 395 200 390 228 395 b 366 367 294 395 328 387 b 475 223 436 333 475 283 b 472 197 475 215 473 206 b 349 65 462 141 419 95 b 259 43 317 51 288 43 b 167 69 230 43 200 52 b 4 290 80 113 20 195 b 0 349 1 309 0 328 b 20 467 0 391 6 433 b 255 648 58 563 155 637 m 269 363 b 257 363 265 363 261 363 b 210 345 236 363 220 356 b 186 226 196 324 186 272 b 187 198 186 216 186 206 b 213 95 191 151 202 112 b 257 76 221 83 238 76 b 270 77 261 76 266 76 b 321 156 299 81 310 99 b 329 229 326 183 329 206 b 321 301 329 252 326 274 b 269 363 311 342 298 359 m 236 -1 l 238 -1 l 235 -1 l 236 -1 m 236 673 l 238 673 l 235 673 l 236 673 "},v7:{x_min:0,x_max:442.359375,ha:451,o:"m 147 648 b 166 649 153 649 160 649 b 313 598 217 649 273 630 b 340 587 323 588 328 587 l 341 587 b 412 628 367 587 390 601 b 427 638 416 635 421 638 b 439 632 431 638 435 637 b 442 623 441 630 442 628 b 430 569 442 616 439 603 b 352 369 408 492 377 410 b 300 259 325 324 313 298 b 273 84 283 205 273 140 b 265 55 273 65 272 59 l 261 54 l 181 54 l 99 54 l 96 55 b 91 61 95 56 92 59 l 89 63 l 89 77 b 147 263 89 133 111 202 b 261 401 176 313 212 355 b 378 541 315 449 349 489 l 382 548 l 375 544 b 240 495 333 512 285 495 b 129 535 198 495 160 509 b 84 560 108 552 95 560 b 76 559 81 560 78 560 b 31 487 59 555 43 530 b 14 470 27 473 24 470 b 1 477 8 470 4 471 l 0 480 l 0 553 l 0 627 l 1 630 b 16 638 4 635 9 638 b 23 635 17 638 20 637 b 49 626 36 626 39 626 b 96 638 59 626 80 630 b 104 639 99 638 102 639 b 117 644 107 641 112 642 b 147 648 125 645 137 648 m 220 -1 l 221 -1 l 219 -1 l 220 -1 m 220 673 l 221 673 l 219 673 l 220 673 "},v8:{x_min:0,x_max:488.640625,ha:499,o:"m 217 648 b 245 649 225 648 235 649 b 453 516 343 649 430 595 b 458 478 455 503 458 491 b 412 370 458 440 441 398 b 411 369 412 369 411 369 b 415 365 411 367 412 367 b 488 231 462 331 488 281 b 472 165 488 208 483 186 b 243 43 434 86 338 43 b 63 104 178 43 112 62 b 0 233 20 140 0 186 b 73 365 0 283 24 331 l 77 369 l 72 374 b 29 476 42 406 29 441 b 217 648 29 557 103 635 m 258 605 b 242 606 253 605 247 606 b 157 552 198 606 157 580 b 160 541 157 548 159 544 b 319 413 176 503 242 452 l 337 403 l 338 406 b 359 476 352 428 359 452 b 258 605 359 537 318 595 m 138 326 b 130 330 134 328 130 330 b 130 330 130 330 130 330 b 107 305 127 330 112 313 b 84 231 91 281 84 256 b 243 86 84 156 151 86 b 249 87 245 86 246 87 b 347 156 303 88 347 120 b 344 172 347 162 345 167 b 156 319 325 227 257 281 b 138 326 151 322 144 324 m 243 -1 l 245 -1 l 242 -1 l 243 -1 m 243 673 l 245 673 l 242 673 l 243 673 "},v9:{x_min:0,x_max:475.03125,ha:485,o:"m 191 646 b 212 649 198 648 205 649 b 255 644 227 649 243 646 b 458 448 348 616 428 539 b 475 342 469 415 475 378 b 460 244 475 308 469 274 b 193 44 421 124 303 44 b 91 69 157 44 122 51 b 19 161 43 97 19 126 b 21 181 19 167 20 174 b 98 241 32 220 65 241 b 170 186 129 241 160 223 b 172 166 171 179 172 173 b 121 94 172 134 152 102 b 117 93 118 94 117 93 b 121 90 117 93 118 91 b 185 76 142 80 164 76 b 270 119 220 76 251 91 b 308 259 287 145 300 194 b 313 317 310 277 313 310 b 313 317 313 317 313 317 b 313 317 313 317 313 317 b 304 315 313 317 308 316 b 216 295 273 302 245 295 b 145 308 193 295 170 299 b 19 398 88 327 42 360 b 0 469 5 420 0 444 b 24 551 0 496 8 526 b 191 646 54 596 125 637 m 227 614 b 215 616 224 616 220 616 b 202 614 210 616 206 616 b 152 535 174 610 163 592 b 144 463 147 509 144 485 b 152 391 144 440 147 417 b 216 328 163 344 179 328 b 280 391 253 328 269 344 b 288 463 285 417 288 440 b 280 535 288 485 285 509 b 227 614 269 594 258 610 m 236 -1 l 238 -1 l 235 -1 l 236 -1 m 236 673 l 238 673 l 235 673 l 236 673 "},va:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -8 -1 b -1 0 -5 -1 -4 0 b 16 -11 5 0 13 -4 b 83 -186 17 -12 47 -90 l 148 -358 l 148 -363 b 127 -385 148 -376 138 -385 b 112 -378 122 -385 118 -383 b 54 -226 110 -374 114 -385 b 0 -81 24 -147 0 -81 b -55 -226 -1 -81 -25 -147 b -114 -378 -115 -385 -111 -374 b -129 -385 -119 -383 -123 -385 b -149 -363 -140 -385 -149 -376 l -149 -358 l -84 -186 b -19 -11 -49 -90 -19 -12 b -8 -1 -17 -8 -12 -4 "},vb:{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 "},vc:{x_min:0,x_max:447.8125,ha:457,o:"m 0 86 l 0 173 l 223 173 l 447 173 l 447 86 l 447 0 l 223 0 l 0 0 l 0 86 "},vf:{x_min:0,x_max:370.21875,ha:378,o:"m 0 0 l 0 277 l 61 277 l 122 277 l 122 0 l 122 -278 l 61 -278 l 0 -278 l 0 0 m 246 -1 l 246 277 l 308 277 l 370 277 l 370 -1 l 370 -278 l 308 -278 l 246 -278 l 246 -1 "},v10:{x_min:0,x_max:559.421875,ha:571,o:"m 5 127 b 14 127 6 127 9 127 b 51 126 25 127 43 127 b 175 98 93 122 138 112 l 186 94 b 279 51 210 86 255 65 b 285 47 280 51 283 48 b 319 27 291 44 311 31 l 326 22 b 359 0 332 19 352 4 l 367 -6 b 371 -9 368 -6 370 -8 l 379 -15 b 387 -22 383 -18 386 -20 l 398 -30 l 411 -40 l 417 -47 l 427 -55 l 434 -61 b 441 -66 436 -62 439 -65 l 446 -72 l 453 -77 l 462 -87 b 558 -188 490 -113 549 -176 b 559 -195 559 -191 559 -194 b 548 -205 559 -201 555 -205 b 541 -204 547 -205 544 -205 b 534 -198 539 -201 536 -199 l 525 -191 b 481 -162 518 -187 490 -167 b 472 -155 477 -159 472 -156 b 468 -152 470 -155 469 -154 b 461 -149 466 -152 464 -151 b 428 -130 454 -145 441 -137 b 371 -99 413 -122 372 -99 b 363 -95 371 -99 367 -98 b 353 -91 357 -94 353 -91 b 348 -90 353 -91 352 -91 b 332 -81 343 -87 341 -86 b 27 -12 230 -37 127 -13 b 0 -5 4 -11 2 -11 b 0 58 0 -2 0 27 b 0 122 0 88 0 120 b 5 127 1 124 4 126 "},v11:{x_min:-155.171875,x_max:153.8125,ha:157,o:"m -137 353 b -130 353 -136 353 -133 353 b -112 349 -125 353 -119 352 b -100 342 -110 347 -104 344 b 0 317 -69 326 -35 317 b 111 349 38 317 76 328 b 129 353 117 352 123 353 b 153 327 142 353 153 344 b 144 302 153 320 153 317 b 27 6 93 226 50 113 b 21 -13 24 -11 24 -11 b 0 -26 17 -22 8 -26 b -24 -12 -9 -26 -19 -22 b -28 5 -24 -9 -27 -2 b -145 302 -53 117 -95 224 b -155 327 -155 317 -155 320 b -137 353 -155 340 -148 349 "},v18:{x_min:0,x_max:323.9375,ha:331,o:"m 217 535 b 225 537 220 537 221 537 b 245 524 235 537 242 533 l 246 521 l 247 390 l 247 258 l 273 265 b 306 270 288 269 299 270 b 322 259 315 270 319 267 b 323 208 323 256 323 233 b 322 158 323 184 323 159 b 288 140 318 148 315 147 b 247 130 254 131 247 130 b 247 65 247 130 247 104 b 247 20 247 51 247 36 l 247 -88 l 273 -81 b 306 -76 289 -77 299 -76 b 318 -81 311 -76 315 -77 b 323 -123 323 -87 323 -86 l 323 -138 l 323 -154 b 318 -195 323 -191 323 -190 b 269 -210 314 -199 315 -199 b 249 -216 259 -213 250 -216 l 247 -216 l 247 -349 l 246 -483 l 245 -487 b 225 -499 242 -495 234 -499 b 206 -487 219 -499 210 -495 l 205 -483 l 205 -355 l 205 -227 l 204 -227 l 181 -233 l 138 -244 b 117 -249 127 -247 117 -249 b 115 -385 115 -249 115 -256 l 115 -523 l 114 -526 b 95 -538 110 -534 102 -538 b 74 -526 87 -538 78 -534 l 73 -523 l 73 -391 b 72 -260 73 -269 73 -260 b 72 -260 72 -260 72 -260 b 19 -273 61 -263 23 -273 b 0 -260 10 -273 4 -267 b 0 -209 0 -256 0 -256 l 0 -162 l 1 -158 b 61 -134 5 -148 5 -148 l 73 -131 l 73 -22 b 72 86 73 79 73 86 b 72 86 72 86 72 86 b 19 74 61 83 23 74 b 0 86 10 74 4 79 b 0 137 0 90 0 90 l 0 184 l 1 188 b 61 212 5 198 5 198 l 73 215 l 73 348 l 73 481 l 74 485 b 95 498 78 492 87 498 b 103 495 98 498 100 496 b 114 485 107 494 111 489 l 115 481 l 115 353 l 115 226 l 121 226 b 159 235 123 227 141 231 l 198 247 l 205 248 l 205 384 l 205 521 l 206 524 b 217 535 209 528 212 533 m 205 9 b 205 119 205 70 205 119 l 205 119 b 182 113 204 119 194 116 l 138 102 b 117 97 127 99 117 97 b 115 -12 115 97 115 91 l 115 -122 l 121 -120 b 159 -111 123 -119 141 -115 l 198 -101 l 205 -98 l 205 9 "},v1b:{x_min:0,x_max:559.421875,ha:571,o:"m 544 204 b 548 204 545 204 547 204 b 559 194 555 204 559 199 b 559 190 559 192 559 191 b 530 156 559 188 556 184 b 462 86 510 134 481 104 b 453 76 458 81 454 77 l 446 70 l 441 65 b 434 59 439 63 436 61 l 427 54 b 409 37 426 51 416 44 b 392 23 398 29 394 26 b 387 19 389 22 387 20 b 379 13 386 19 383 16 l 371 8 l 367 5 l 359 -1 l 337 -16 b 285 -48 319 -29 298 -41 l 279 -52 b 186 -95 255 -66 210 -87 l 175 -99 b 23 -129 127 -117 68 -129 b 17 -129 20 -129 19 -129 b 1 -123 2 -129 2 -129 b 0 -49 0 -122 0 -83 b 0 4 0 -22 0 1 b 27 11 2 9 4 9 b 185 31 78 12 145 20 b 198 34 186 31 193 33 b 314 73 234 44 277 58 b 349 88 328 79 340 84 b 353 90 352 90 353 90 b 363 94 353 90 357 93 b 371 98 367 97 371 98 b 428 129 372 98 413 120 b 461 148 441 136 454 144 b 468 151 464 149 466 151 b 472 154 469 152 470 154 b 481 161 473 155 477 158 b 525 190 490 166 518 186 l 534 197 b 540 201 536 198 539 199 b 544 204 541 202 544 204 "},v1d:{x_min:0,x_max:619.3125,ha:632,o:"m 274 184 b 307 186 285 186 296 186 b 616 22 465 186 597 116 b 619 -1 617 13 619 5 b 308 -187 619 -104 483 -187 b 0 -1 133 -187 0 -102 b 5 36 0 11 1 23 b 274 184 29 115 141 176 m 289 161 b 272 162 284 162 277 162 b 171 41 209 162 171 108 b 205 -73 171 5 182 -34 b 345 -163 243 -133 298 -163 b 436 -98 385 -163 420 -142 b 446 -43 443 -80 446 -62 b 289 161 446 47 377 147 "},v1e:{x_min:-402.890625,x_max:401.53125,ha:410,o:"m -219 173 b -213 174 -217 174 -215 174 b -202 173 -209 174 -205 173 b -114 86 -200 172 -179 151 b -28 0 -66 37 -28 0 b 40 84 -28 0 2 37 b 117 174 111 173 110 172 b 122 174 118 174 119 174 b 132 173 125 174 129 173 b 295 11 134 172 171 134 l 307 -1 l 336 34 b 374 76 366 72 368 74 b 381 77 375 77 378 77 b 401 56 392 77 401 68 b 400 48 401 54 401 51 b 223 -172 397 41 230 -166 b 210 -176 220 -174 215 -176 b 201 -174 206 -176 204 -176 b 112 -87 198 -173 178 -152 b 27 0 65 -38 27 0 b -42 -86 27 0 -4 -38 b -118 -174 -112 -174 -111 -173 b -123 -176 -119 -176 -121 -176 b -133 -174 -126 -176 -130 -174 b -296 -12 -136 -173 -172 -137 l -308 0 l -337 -34 b -375 -77 -367 -73 -370 -76 b -382 -79 -377 -79 -379 -79 b -402 -58 -393 -79 -402 -69 b -401 -49 -402 -55 -402 -52 b -224 172 -398 -43 -228 167 b -219 173 -223 172 -220 173 "},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 "},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 22 0 13 0 15 b 202 179 87 69 167 136 b 209 186 206 183 209 186 "},v23:{x_min:0,x_max:133.390625,ha:136,o:"m 54 66 b 65 68 58 68 61 68 b 122 37 88 68 110 56 b 133 -1 130 26 133 12 b 104 -58 133 -23 123 -44 b 66 -69 92 -65 78 -69 b 10 -38 44 -69 23 -58 b 0 -1 2 -27 0 -13 b 54 66 0 30 20 61 "},v25:{x_min:0,x_max:318.5,ha:325,o:"m 20 376 b 167 377 23 377 96 377 b 296 376 231 377 294 377 b 318 347 311 371 318 359 b 296 316 318 333 311 320 b 159 315 294 315 227 315 b 21 316 91 315 24 315 b 0 345 6 320 0 333 b 20 376 0 359 6 371 "},v26:{x_min:-21.78125,x_max:483.1875,ha:493,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 140 199 59 183 102 199 b 206 179 164 199 187 192 l 210 176 l 210 396 l 210 617 l 212 621 b 231 632 216 628 223 632 b 250 620 239 632 247 628 b 251 383 251 616 251 616 l 251 148 l 254 151 b 370 199 291 183 332 199 b 415 191 385 199 400 197 b 483 84 458 176 483 134 b 461 0 483 58 476 29 b 332 -142 439 -40 411 -72 l 255 -215 b 231 -229 240 -229 239 -229 b 216 -223 224 -229 220 -227 b 210 -158 210 -217 210 -223 b 210 -120 210 -148 210 -136 l 210 -29 l 205 -34 b 100 -142 182 -65 159 -88 l 23 -215 b -1 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 201 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 m 341 131 b 328 133 337 133 332 133 b 322 133 326 133 323 133 b 257 87 296 129 273 113 l 251 80 l 251 -37 l 251 -156 l 255 -152 b 375 81 328 -72 375 20 l 375 83 b 341 131 375 113 367 126 "},v27:{x_min:0,x_max:432.828125,ha:442,o:"m 208 184 b 213 187 209 186 212 187 b 224 176 217 187 221 183 b 245 147 225 172 235 159 b 419 -1 288 90 347 38 b 431 -8 424 -4 431 -8 b 432 -12 432 -9 432 -11 b 430 -18 432 -13 432 -16 b 364 -61 424 -20 383 -47 b 225 -183 307 -102 250 -152 b 223 -187 224 -184 223 -187 b 220 -188 221 -188 220 -188 b 208 -176 216 -188 210 -184 b 187 -148 205 -173 197 -159 b 12 0 144 -90 84 -38 b 0 11 4 5 0 8 b 16 24 0 13 4 18 b 183 158 83 69 141 115 b 208 184 194 169 198 173 m 183 105 b 176 113 181 109 176 113 b 172 109 176 113 175 112 b 92 45 149 90 117 62 l 88 41 l 102 31 b 247 -105 160 -6 210 -55 l 254 -115 l 257 -112 l 269 -102 b 340 -45 287 -87 319 -61 l 344 -43 l 330 -33 b 183 105 272 6 221 54 "},v28:{x_min:-73.5,x_max:72.140625,ha:74,o:"m -72 252 l -73 254 l 0 254 l 72 254 l 70 252 b 0 -1 70 248 0 -1 b -72 252 -1 -1 -72 248 "},v29:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m 175 273 b 182 274 178 273 181 274 b 202 262 190 274 198 269 b 204 158 204 259 204 259 l 204 56 l 250 112 b 303 174 296 172 298 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 208 -6 213 0 210 -2 l 204 -12 l 204 -147 b 204 -210 204 -173 204 -194 b 198 -292 204 -297 204 -287 b 183 -299 194 -297 189 -299 b 164 -287 175 -299 167 -295 b 163 -174 163 -284 163 -284 l 161 -63 l 119 -117 b 65 -176 76 -170 73 -176 b 61 -176 63 -176 62 -176 b -35 -87 51 -174 57 -180 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 -363 174 -374 170 -371 174 b -359 174 -362 174 -360 174 b -262 86 -351 174 -356 179 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 147 11 -13 172 35 123 l 157 -1 l 160 1 l 163 4 l 163 130 b 164 260 163 256 163 258 b 175 273 166 266 170 270 "},v2a:{x_min:-21.78125,x_max:366.140625,ha:374,o:"m 276 1378 b 284 1379 279 1379 281 1379 b 306 1360 292 1379 298 1374 b 352 1247 326 1326 343 1286 b 366 1139 362 1213 366 1175 b 347 1009 366 1093 359 1049 l 344 1002 l 347 992 b 352 971 348 986 351 977 b 366 863 362 936 366 899 b 347 732 366 818 359 773 l 344 725 l 347 716 b 352 695 348 710 351 700 b 366 588 362 659 366 623 b 223 262 366 464 314 345 b 189 233 212 252 212 252 b 35 76 126 183 73 129 b -1 16 20 56 2 27 b -19 4 -4 9 -12 4 l -21 4 l -21 137 l -21 270 l -17 270 b 186 344 59 281 134 308 b 319 606 270 399 319 499 b 317 650 319 620 319 635 l 315 659 l 314 655 b 223 537 288 607 258 570 b 189 509 212 528 212 528 b 35 352 126 459 73 405 b -1 292 20 333 2 303 b -19 280 -4 285 -12 280 l -21 280 l -21 413 l -21 546 l -17 546 b 186 620 59 557 134 584 b 319 882 270 675 319 775 b 317 925 319 896 319 911 l 315 935 l 314 931 b 223 813 288 884 258 846 b 189 785 212 805 212 805 b 35 628 126 735 73 681 b -1 569 20 609 2 580 b -19 556 -4 562 -12 556 l -21 556 l -21 689 l -21 823 l -17 823 b 202 907 68 835 152 867 b 319 1157 280 968 319 1061 b 270 1338 319 1218 303 1281 b 262 1358 264 1349 262 1353 b 262 1364 262 1360 262 1363 b 276 1378 265 1371 269 1376 "},v2c:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -413 173 b -408 174 -412 174 -409 174 b -397 173 -404 174 -400 173 b -308 86 -394 172 -374 151 b -223 0 -261 37 -223 0 b -153 84 -223 0 -191 37 b -77 174 -83 173 -84 172 b -72 174 -76 174 -74 174 b -62 173 -68 174 -63 173 b 25 86 -59 172 -39 151 b 112 0 73 37 111 0 b 181 84 112 0 144 37 b 257 174 251 173 251 172 b 262 174 258 174 261 174 b 273 173 266 174 270 173 b 436 9 276 172 347 101 l 447 -1 l 477 36 b 522 79 511 79 513 79 l 522 79 b 552 51 533 79 539 73 b 596 -112 582 6 596 -51 b 567 -262 596 -161 586 -213 b 539 -322 558 -287 544 -316 b 524 -327 534 -326 529 -327 b 504 -315 515 -327 507 -323 b 503 -308 503 -312 503 -309 b 511 -285 503 -302 504 -297 b 555 -113 540 -227 555 -169 b 544 -34 555 -86 551 -59 b 522 19 540 -16 530 8 l 521 22 l 481 -26 l 405 -122 b 353 -176 366 -172 362 -176 b 349 -176 352 -176 351 -176 b 253 -87 341 -176 347 -180 b 167 0 206 -38 167 0 b 99 -86 167 0 136 -38 b 21 -174 27 -174 28 -173 b 17 -176 20 -176 19 -176 b 6 -174 13 -176 9 -174 b -81 -87 4 -173 -14 -152 b -167 0 -129 -38 -167 0 b -236 -86 -167 0 -198 -38 b -313 -174 -307 -174 -306 -173 b -318 -176 -314 -176 -315 -176 b -328 -174 -321 -176 -325 -174 b -491 -12 -330 -173 -367 -137 l -503 0 l -530 -34 b -570 -77 -562 -73 -564 -76 b -577 -79 -571 -79 -574 -79 b -597 -58 -588 -79 -597 -69 b -596 -49 -597 -55 -597 -52 b -417 172 -593 -43 -423 167 b -413 173 -417 172 -415 173 "},v2d:{x_min:0,x_max:438.28125,ha:447,o:"m 212 190 b 219 191 213 191 216 191 b 236 176 225 191 228 190 b 419 18 277 105 341 49 b 436 5 431 13 434 11 b 438 -1 438 4 438 1 b 424 -16 438 -8 432 -13 b 356 -49 409 -20 379 -36 b 234 -180 306 -83 258 -133 b 219 -192 230 -188 224 -192 b 200 -176 213 -192 206 -187 b 9 -15 157 -102 89 -45 b 0 0 2 -12 0 -6 b 16 18 0 9 2 12 b 200 176 93 48 159 104 b 212 190 205 186 208 188 m 239 113 b 236 117 238 116 238 117 b 230 108 235 117 234 115 b 92 -15 196 58 140 8 b 88 -18 91 -16 88 -18 b 92 -20 88 -18 91 -19 b 198 -116 130 -43 166 -74 b 200 -117 200 -117 200 -117 b 201 -117 200 -117 201 -117 b 264 -43 212 -98 242 -62 b 345 15 288 -19 321 4 b 348 18 347 16 348 16 b 344 20 348 18 347 19 b 239 113 307 41 266 79 "},v2f:{x_min:-1.359375,x_max:680.5625,ha:694,o:"m 597 1042 b 604 1042 600 1042 602 1042 b 642 1002 627 1042 642 1022 b 619 966 642 988 635 974 b 439 927 574 942 503 927 l 426 927 l 426 921 b 430 838 428 893 430 866 b 345 480 430 696 398 560 b 179 391 307 423 249 391 b 156 392 171 391 164 392 b 138 394 149 394 142 394 b 103 434 115 396 103 416 b 129 471 103 451 111 466 b 141 474 133 473 137 474 b 172 459 153 474 164 469 b 181 455 175 456 176 455 b 187 456 182 455 185 455 b 253 520 212 460 234 483 b 315 836 294 605 315 714 b 311 928 315 867 314 898 b 302 945 310 943 311 942 b 245 953 283 950 262 953 b 130 891 193 953 149 931 b 84 860 119 870 102 860 b 36 905 61 860 39 877 b 36 910 36 907 36 909 b 80 970 36 931 50 949 b 249 1017 125 1000 187 1017 b 322 1009 273 1017 299 1014 l 341 1003 b 436 991 372 995 406 991 b 577 1031 495 991 545 1004 b 597 1042 583 1038 590 1041 m 416 360 b 424 360 419 360 421 360 b 481 309 454 360 479 338 b 503 145 484 280 495 199 b 585 -185 525 16 555 -106 b 630 -245 596 -213 613 -237 l 634 -247 l 638 -245 b 647 -244 641 -245 645 -244 b 680 -278 666 -244 680 -262 b 664 -308 680 -290 675 -301 b 638 -312 658 -310 650 -312 b 613 -309 631 -312 623 -310 b 477 -201 555 -303 502 -260 b 417 -2 460 -159 434 -72 b 416 5 417 1 416 5 b 416 5 416 5 416 5 b 411 -5 415 5 413 0 b 359 -97 397 -33 377 -70 b 353 -106 355 -102 353 -105 b 359 -112 353 -108 355 -109 b 409 -130 375 -123 390 -129 b 426 -134 420 -130 421 -131 b 431 -147 428 -137 431 -141 b 420 -162 431 -152 427 -159 b 382 -169 409 -166 396 -169 b 323 -155 363 -169 341 -165 l 317 -152 l 314 -155 b 62 -303 240 -240 148 -295 b 36 -305 55 -305 44 -305 b 23 -303 29 -305 24 -305 b -1 -273 6 -299 -1 -287 b 31 -240 -1 -256 10 -240 b 36 -240 32 -240 34 -240 b 42 -241 38 -241 39 -241 b 134 -204 63 -241 99 -226 b 367 288 265 -115 357 81 b 375 330 368 313 370 320 b 416 360 383 347 400 358 m 360 -359 b 379 -359 363 -359 371 -359 b 424 -360 396 -359 416 -359 b 646 -502 536 -373 624 -430 b 649 -527 649 -510 649 -519 b 530 -673 649 -578 604 -635 l 521 -677 l 529 -681 b 653 -811 592 -714 637 -762 b 660 -853 658 -827 660 -839 b 645 -911 660 -873 656 -892 b 426 -1021 608 -981 519 -1021 b 283 -989 377 -1021 328 -1011 b 235 -949 249 -972 239 -964 b 234 -936 234 -946 234 -941 b 234 -928 234 -934 234 -931 l 235 -925 l 234 -927 l 225 -934 b 87 -982 186 -966 138 -982 b 80 -982 85 -982 83 -982 b 55 -981 70 -981 58 -981 b 17 -943 32 -981 17 -964 b 54 -904 17 -921 35 -904 b 78 -914 62 -904 72 -909 l 83 -918 l 88 -918 b 190 -831 122 -918 166 -881 b 269 -506 242 -727 269 -612 b 268 -462 269 -492 269 -477 b 266 -449 266 -458 266 -452 b 265 -444 266 -445 266 -444 b 257 -446 264 -444 261 -445 b 132 -545 196 -470 152 -505 b 88 -573 122 -563 104 -573 b 39 -523 63 -573 39 -553 b 63 -476 39 -505 44 -494 b 360 -359 136 -408 235 -369 m 419 -424 b 393 -423 411 -423 406 -423 l 375 -423 l 377 -426 b 379 -439 377 -427 378 -434 b 383 -510 382 -463 383 -487 b 314 -811 383 -609 360 -710 b 266 -893 296 -850 285 -870 b 264 -898 265 -896 264 -898 l 264 -898 b 264 -898 264 -898 264 -898 b 268 -898 264 -898 266 -898 b 273 -898 270 -898 272 -898 b 300 -909 283 -898 291 -900 b 426 -957 340 -941 385 -957 b 476 -949 443 -957 460 -954 b 547 -853 522 -931 547 -893 b 485 -745 547 -816 526 -775 b 397 -707 460 -727 432 -714 b 366 -675 375 -703 366 -692 b 396 -642 366 -657 377 -645 b 530 -557 455 -637 511 -601 b 536 -527 534 -548 536 -537 b 419 -424 536 -480 490 -437 "},v30:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 276 1900 b 284 1901 279 1900 281 1901 b 306 1883 291 1901 298 1896 b 367 1686 347 1825 367 1757 b 343 1558 367 1643 359 1600 l 338 1549 l 343 1537 b 367 1411 359 1497 367 1454 b 343 1282 367 1367 359 1324 l 338 1272 l 343 1261 b 367 1135 359 1221 367 1178 b 343 1007 367 1090 359 1047 l 338 996 l 343 985 b 367 859 359 945 367 902 b 343 731 367 814 359 771 l 338 720 l 343 709 b 367 582 359 667 367 626 b 289 362 367 503 340 426 b 239 312 276 345 259 330 b 29 77 152 237 76 152 b -1 18 14 54 2 30 b -19 4 -4 11 -12 4 l -21 4 l -21 133 l -20 260 l -13 262 b 98 299 17 269 62 284 b 111 305 103 302 110 305 b 167 334 123 310 156 327 b 319 595 264 391 319 491 b 313 659 319 616 318 638 b 310 667 311 664 311 667 b 307 663 310 667 308 666 b 240 588 289 637 269 614 b 16 331 141 505 62 413 b -1 294 8 316 1 302 b -19 280 -4 287 -12 280 l -21 280 l -21 408 l -20 537 l -13 538 b 98 576 17 545 62 560 b 111 581 103 578 110 581 b 167 610 123 587 156 603 b 319 871 264 667 319 767 b 313 935 319 892 318 913 b 310 942 311 941 311 942 b 307 939 310 942 308 941 b 240 864 289 913 269 889 b 16 607 141 781 62 689 b -1 570 8 592 1 578 b -19 556 -4 563 -12 556 l -21 556 l -21 684 l -20 813 l -13 814 b 98 852 17 821 62 836 b 111 857 103 855 110 857 b 167 886 123 863 156 880 b 319 1147 264 943 319 1043 b 313 1211 319 1168 318 1189 b 310 1218 311 1217 311 1218 b 307 1215 310 1218 308 1217 b 240 1140 289 1188 269 1165 b 16 884 141 1057 62 966 b -1 846 8 868 1 855 b -19 832 -4 839 -12 832 l -21 832 l -21 960 l -20 1089 l -13 1090 b 98 1128 17 1097 62 1111 b 111 1134 103 1131 110 1134 b 167 1163 123 1139 156 1156 b 319 1424 264 1220 319 1320 b 313 1486 319 1444 318 1465 b 310 1494 311 1493 311 1494 b 307 1492 310 1494 308 1493 b 240 1417 289 1464 269 1442 b 16 1160 141 1333 62 1242 b -1 1121 8 1145 1 1131 b -19 1109 -4 1115 -12 1109 l -21 1109 l -21 1236 l -20 1365 l -13 1367 b 98 1404 17 1374 62 1388 b 111 1410 103 1407 110 1410 b 250 1508 172 1437 215 1467 b 319 1701 296 1564 319 1633 b 270 1859 319 1757 303 1814 b 262 1882 265 1868 262 1875 b 276 1900 262 1890 266 1896 "},v31:{x_min:0,x_max:386.5625,ha:394,o:"m 0 173 l 0 347 l 193 347 l 386 347 l 386 173 l 386 0 l 193 0 l 0 0 l 0 173 "},v33:{x_min:-423.3125,x_max:421.9375,ha:431,o:"m -10 276 b -2 277 -8 277 -5 277 b 17 265 5 277 13 273 b 19 163 19 260 19 260 l 19 68 l 39 45 b 277 -95 122 -34 200 -81 b 289 -97 281 -97 285 -97 b 378 0 332 -97 371 -54 b 378 11 378 4 378 6 b 302 83 378 55 345 83 b 242 66 283 83 262 77 b 208 56 231 59 219 56 b 148 120 175 56 148 81 b 200 186 148 151 164 172 b 261 198 220 194 240 198 b 420 45 341 198 411 137 b 421 22 421 37 421 29 b 257 -198 421 -86 347 -188 b 242 -198 251 -198 247 -198 b 20 -105 181 -198 95 -163 l 19 -104 l 19 -183 b 19 -216 19 -195 19 -206 b 12 -273 19 -272 17 -267 b -2 -278 8 -277 2 -278 b -21 -266 -10 -278 -19 -274 b -23 -165 -23 -263 -23 -262 l -23 -69 l -44 -47 b -250 86 -117 23 -183 66 b -295 94 -270 93 -284 94 b -315 91 -302 94 -308 94 b -381 5 -356 81 -381 43 b -355 -56 -381 -16 -372 -40 b -299 -81 -338 -73 -319 -81 b -246 -68 -283 -81 -265 -77 b -212 -58 -234 -61 -223 -58 b -168 -77 -196 -58 -179 -65 b -151 -122 -156 -90 -151 -105 b -179 -174 -151 -141 -160 -162 b -239 -195 -194 -184 -217 -192 b -257 -197 -245 -195 -250 -197 b -423 -5 -349 -197 -423 -113 b -423 0 -423 -4 -423 -1 b -277 194 -420 97 -362 173 b -247 197 -268 197 -258 197 b -24 104 -185 197 -100 162 l -23 102 l -23 181 b -21 265 -23 260 -23 260 b -10 276 -20 269 -14 274 "},v34:{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 "},v36:{x_min:-1.359375,x_max:1064.390625,ha:1086,o:"m 296 692 b 314 694 302 694 307 694 b 386 685 337 694 366 689 b 548 498 480 660 548 580 b 548 481 548 492 548 487 b 455 395 541 426 499 395 b 370 462 420 395 383 417 b 362 496 364 477 362 488 b 377 514 362 509 367 514 b 393 501 386 514 390 510 b 432 474 397 484 413 474 b 470 487 445 474 458 478 b 491 530 484 496 491 510 b 490 544 491 534 491 539 b 333 660 479 606 411 657 l 323 662 l 315 646 b 269 524 285 591 269 556 b 321 431 269 492 287 466 b 349 395 338 413 343 408 b 363 342 359 378 363 362 b 359 312 363 333 362 322 b 285 158 348 266 318 206 b 281 152 283 155 281 152 b 281 152 281 152 281 152 b 287 154 283 152 284 152 b 318 155 298 154 308 155 b 461 98 371 155 419 136 l 464 97 l 483 112 b 503 129 494 120 503 127 b 504 130 503 129 504 129 b 503 138 504 131 503 134 b 500 180 500 152 500 166 b 553 326 500 238 518 288 b 604 366 560 331 592 358 b 649 381 617 376 632 381 b 696 362 665 381 681 374 b 724 302 714 347 724 324 b 695 238 724 278 714 255 b 660 210 691 234 662 212 b 579 148 658 209 582 151 b 579 148 579 148 579 148 b 596 106 579 144 589 119 b 622 77 604 88 609 83 b 657 69 632 72 645 69 b 748 112 688 69 721 84 b 755 123 754 117 755 120 b 755 127 755 124 755 126 b 751 165 752 137 751 151 b 758 219 751 183 754 202 b 894 387 774 290 820 347 b 896 390 896 388 896 388 b 891 398 896 391 895 392 b 622 560 827 477 730 535 b 600 580 605 564 600 569 b 617 596 600 591 607 596 b 628 595 622 596 624 596 b 1057 248 846 552 1020 412 b 1064 191 1061 229 1064 209 b 922 0 1064 94 1005 9 b 902 -1 916 -1 909 -1 b 774 76 847 -1 800 26 b 769 83 770 81 770 83 b 769 81 769 83 769 83 b 627 -1 733 29 677 -1 b 548 27 597 -1 570 8 b 515 88 537 37 525 61 l 513 95 l 510 93 l 453 45 b 390 0 396 0 396 0 b 390 0 390 0 390 0 b 374 15 381 0 377 4 b 268 105 359 69 314 105 b 250 104 262 105 257 105 l 243 102 l 234 90 b 155 1 201 49 159 2 b 147 -1 152 0 149 -1 b 130 15 138 -1 130 6 b 132 20 130 18 132 19 b 136 31 133 22 134 27 b 220 131 149 74 178 109 b 231 137 225 134 230 136 b 302 278 280 202 302 244 b 265 335 302 299 295 309 b 209 442 234 363 213 402 b 209 455 209 446 209 451 b 279 648 209 502 232 564 l 285 659 l 283 659 b 176 627 238 653 210 645 b 57 477 111 594 66 538 b 55 459 55 471 55 464 b 72 409 55 437 61 415 b 93 403 78 405 87 403 b 152 467 123 403 151 431 b 168 488 153 483 157 488 b 185 462 181 488 185 483 l 185 460 b 137 344 183 409 168 369 b 78 322 119 328 98 322 b 13 360 50 322 25 335 b -1 426 4 380 -1 402 b 89 610 -1 488 32 559 b 296 692 147 659 210 685 m 926 348 b 921 353 924 351 922 353 b 914 348 920 353 918 351 b 823 167 857 306 823 237 b 828 124 823 154 826 138 b 890 31 837 79 862 40 b 896 31 892 31 894 31 b 956 104 916 31 940 59 b 970 191 965 129 970 159 b 966 241 970 208 969 224 b 926 348 959 277 945 313 m 627 326 b 619 326 624 326 622 326 b 598 316 611 326 604 323 b 568 215 579 288 568 255 b 568 208 568 213 568 210 b 571 183 570 195 570 184 l 571 183 b 594 201 571 183 582 191 l 634 231 b 660 259 653 247 656 248 b 664 278 662 266 664 272 b 627 326 664 299 649 320 "},v38:{x_min:-1.359375,x_max:651.96875,ha:665,o:"m 389 644 b 405 645 394 645 400 645 b 504 566 450 645 492 613 b 507 541 506 557 507 549 b 480 471 507 514 498 489 l 477 467 l 483 470 b 609 591 539 485 586 531 b 613 601 611 595 613 599 b 631 609 619 607 624 609 b 651 588 641 609 651 602 b 200 -946 651 584 204 -941 b 182 -957 197 -953 190 -957 b 163 -945 174 -957 166 -953 b 161 -939 161 -942 161 -942 b 217 -743 161 -931 170 -904 b 272 -555 247 -639 272 -555 b 272 -555 272 -555 272 -555 b 264 -560 272 -555 268 -557 b 140 -603 227 -589 182 -603 b 36 -567 102 -603 65 -592 b -1 -487 12 -548 -1 -517 b 17 -427 -1 -466 5 -445 b 103 -380 38 -395 70 -380 b 191 -433 137 -380 172 -398 b 205 -484 201 -448 205 -466 b 178 -553 205 -509 196 -535 l 175 -557 l 182 -555 b 307 -435 236 -539 284 -494 b 372 -213 308 -430 372 -215 b 372 -213 372 -213 372 -213 b 364 -219 372 -213 368 -216 b 240 -262 328 -247 283 -262 b 137 -226 202 -262 166 -249 b 99 -145 112 -206 99 -176 b 118 -84 99 -124 106 -104 b 204 -38 138 -54 171 -38 b 292 -91 238 -38 273 -56 b 306 -141 302 -106 306 -124 b 279 -212 306 -167 296 -194 l 276 -215 l 281 -213 b 408 -93 336 -198 385 -151 b 473 129 409 -88 473 127 b 473 129 473 129 473 129 b 465 122 473 129 469 126 b 341 80 428 94 383 80 b 236 115 303 80 266 91 b 200 195 213 136 200 165 b 217 256 200 217 206 238 b 304 303 239 287 272 303 b 393 249 338 303 374 285 b 406 199 402 234 406 217 b 379 129 406 173 397 148 l 377 126 l 382 127 b 509 248 436 142 485 190 b 574 470 510 254 574 469 b 574 470 574 470 574 470 b 566 464 574 470 570 467 b 442 421 529 435 484 421 b 337 458 404 421 367 433 b 300 537 313 478 300 508 b 389 644 300 585 334 635 "},v39:{x_min:-171.5,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 553 20 616 20 614 b 20 491 20 503 20 491 l 20 491 b 153 535 47 501 149 535 b 174 514 167 535 174 524 b 164 496 174 508 171 501 b 92 470 164 495 132 484 l 20 445 l 20 390 b 20 363 20 378 20 370 b 20 333 20 340 20 333 l 20 333 b 153 377 47 344 149 377 b 174 356 167 377 174 367 b 164 338 174 349 171 342 b 92 312 164 338 132 326 l 20 288 l 20 219 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 100 -142 206 -40 178 -72 l 23 -215 b -1 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 b -21 30 -21 -212 -21 -212 b -21 273 -21 163 -21 273 b -84 252 -21 273 -50 263 b -152 230 -133 234 -145 230 b -157 231 -155 230 -156 231 b -171 252 -166 234 -171 244 b -160 270 -171 259 -167 266 b -27 316 -159 270 -93 294 l -21 319 l -21 374 b -21 431 -21 406 -21 431 b -84 409 -21 431 -50 421 b -152 388 -133 392 -145 388 b -157 390 -155 388 -156 388 b -171 409 -166 392 -171 401 b -160 428 -171 417 -167 424 b -27 474 -159 428 -93 451 l -21 476 l -21 546 b -20 620 -21 614 -21 616 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 "},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 "},v3e:{x_min:0,x_max:406.96875,ha:415,o:"m 21 183 b 28 183 24 183 25 183 b 42 181 34 183 39 183 b 127 108 47 179 47 179 b 202 41 168 72 202 41 b 279 108 204 41 238 72 b 357 177 321 145 356 176 b 375 183 363 181 370 183 b 406 151 392 183 406 169 b 404 137 406 147 405 141 b 322 62 401 131 398 129 b 251 0 284 27 251 0 b 322 -63 251 -1 284 -29 b 404 -138 398 -130 401 -133 b 406 -152 405 -142 406 -148 b 375 -184 406 -170 392 -184 b 357 -179 370 -184 363 -183 b 279 -109 356 -177 321 -147 b 202 -43 238 -73 204 -43 b 127 -109 202 -43 168 -73 b 49 -179 85 -147 50 -177 b 31 -184 43 -183 36 -184 b 0 -152 13 -184 0 -170 b 2 -138 0 -148 0 -142 b 83 -63 5 -133 8 -130 b 155 0 122 -29 155 -1 b 83 62 155 0 122 27 b 8 129 43 97 10 127 b 0 151 2 136 0 144 b 21 183 0 165 8 177 "},v3f:{x_min:-24.5,x_max:317.140625,ha:324,o:"m -24 -147 l -24 -5 l -20 -5 b -1 -19 -12 -5 -4 -11 b 58 -123 6 -43 31 -86 b 196 -278 93 -173 134 -219 b 317 -570 274 -356 317 -460 b 294 -713 317 -617 308 -666 l 289 -724 l 294 -735 b 317 -873 308 -780 317 -827 b 235 -1132 317 -963 288 -1054 b 209 -1165 228 -1140 224 -1146 b 189 -1177 204 -1172 196 -1177 b 171 -1164 182 -1177 175 -1172 b 168 -1154 170 -1161 168 -1159 b 181 -1132 168 -1149 172 -1142 b 269 -891 238 -1064 269 -975 b 269 -881 269 -886 269 -884 b 262 -814 269 -857 265 -827 b 258 -800 261 -811 259 -806 b 142 -628 240 -731 198 -667 b -8 -589 112 -606 47 -589 b -20 -589 -13 -589 -19 -589 l -24 -589 l -24 -449 l -24 -308 l -20 -308 b -1 -322 -12 -308 -4 -313 b 58 -424 6 -345 31 -388 b 194 -580 93 -476 136 -523 b 259 -660 221 -606 245 -635 b 261 -663 259 -662 261 -663 b 264 -656 262 -663 262 -660 b 269 -587 268 -632 269 -610 b 264 -521 269 -566 268 -544 b 262 -512 264 -517 262 -513 b 258 -498 261 -509 259 -503 b 142 -326 240 -428 198 -365 b -8 -287 112 -303 47 -288 b -20 -287 -13 -287 -19 -287 l -24 -287 l -24 -147 "},v40:{x_min:-1.359375,x_max:436.921875,ha:446,o:"m 213 205 b 217 205 215 205 216 205 b 234 194 224 205 234 199 b 236 187 234 194 235 190 l 245 167 l 261 129 l 270 106 b 355 -61 294 54 329 -13 b 420 -163 381 -105 402 -138 b 436 -188 435 -184 436 -184 b 436 -191 436 -190 436 -190 b 421 -206 436 -201 431 -206 l 421 -206 l 416 -206 l 405 -201 b 217 -158 347 -172 283 -158 b 31 -201 153 -158 88 -172 l 20 -206 l 14 -206 l 14 -206 b 0 -191 5 -206 0 -201 b -1 -188 0 -190 -1 -190 b 14 -163 -1 -186 0 -184 b 95 -34 36 -136 72 -77 b 166 106 119 8 148 68 l 175 129 l 183 148 l 200 188 b 213 205 205 199 208 202 "},v41:{x_min:-1.359375,x_max:556.6875,ha:568,o:"m 294 322 b 318 323 299 322 308 323 b 360 320 334 323 352 322 b 526 217 430 310 490 273 b 543 166 537 202 543 184 b 447 70 543 117 503 70 b 445 70 447 70 446 70 b 359 159 394 72 359 113 b 368 201 359 173 362 187 b 442 245 382 229 412 245 b 455 244 446 245 451 245 b 460 244 458 244 460 244 b 460 244 460 244 460 244 b 454 248 460 244 458 245 b 325 291 417 276 372 291 b 285 287 313 291 299 290 b 144 -2 183 269 144 190 b 281 -290 144 -208 179 -280 b 304 -291 289 -291 298 -291 b 524 -105 412 -291 506 -212 b 541 -84 526 -88 530 -84 b 556 -101 551 -84 556 -90 b 549 -138 556 -111 553 -122 b 334 -322 521 -237 435 -310 b 302 -324 323 -323 313 -324 b 13 -101 172 -324 54 -234 b -1 -1 4 -68 -1 -34 b 294 322 -1 161 121 303 "},v42:{x_min:-348.4375,x_max:24.5,ha:25,o:"m -330 155 b -322 156 -329 156 -326 156 b -315 156 -319 156 -317 156 b -298 147 -311 155 -308 154 b -19 30 -224 98 -122 55 l 2 26 b 24 -1 17 22 24 13 b 2 -27 24 -15 17 -23 l -19 -31 b -298 -148 -122 -56 -224 -99 b -322 -158 -313 -158 -315 -158 b -348 -131 -338 -158 -348 -145 b -344 -117 -348 -127 -347 -122 b -328 -104 -341 -112 -338 -111 b -127 -8 -269 -65 -202 -33 b -106 0 -115 -4 -106 -1 b -127 6 -106 0 -115 2 b -328 102 -202 31 -269 63 b -344 116 -338 109 -341 111 b -348 130 -347 120 -348 124 b -330 155 -348 141 -341 152 "},v43:{x_min:-442.359375,x_max:441,ha:450,o:"m -31 487 b -1 488 -21 488 -10 488 b 434 104 216 488 397 330 b 441 27 438 79 441 47 b 439 12 441 20 439 15 b 419 0 435 4 427 0 b 404 5 413 0 408 1 b 398 30 400 11 398 13 b 0 351 390 213 213 351 b -59 348 -20 351 -39 349 b -400 30 -251 324 -393 191 b -405 5 -400 13 -401 11 b -420 0 -409 1 -415 0 b -441 12 -428 0 -436 4 b -442 27 -441 15 -442 20 b -435 104 -442 47 -439 79 b -31 487 -401 316 -235 474 m -13 131 b -1 133 -9 133 -5 133 b 51 105 19 133 39 123 b 61 70 58 95 61 83 b 51 34 61 58 58 45 b -1 6 39 16 19 6 b -46 27 -17 6 -34 13 b -62 69 -57 38 -62 54 b -13 131 -62 98 -44 124 "},v44:{x_min:-21.78125,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 100 -142 206 -40 178 -72 l 23 -215 b 0 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 201 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 "},v45:{x_min:-402.890625,x_max:401.53125,ha:410,o:"m -10 273 b -4 274 -9 273 -6 274 b 16 262 4 274 12 269 b 17 158 17 259 17 259 l 17 56 l 62 112 b 117 174 110 172 110 172 b 122 174 118 174 119 174 b 132 173 125 174 129 173 b 295 11 134 172 171 134 l 307 -1 l 336 34 b 374 76 366 72 368 74 b 381 77 375 77 378 77 b 401 56 392 77 401 68 b 400 48 401 54 401 51 b 223 -172 397 41 230 -166 b 210 -176 220 -174 215 -176 b 201 -174 206 -176 204 -176 b 112 -87 198 -173 178 -152 b 27 0 65 -38 27 0 b 21 -6 27 0 24 -2 l 17 -12 l 17 -147 b 17 -210 17 -173 17 -194 b 10 -292 17 -297 16 -287 b -2 -299 6 -297 2 -299 b -21 -287 -10 -299 -19 -295 b -24 -174 -23 -284 -23 -284 l -24 -63 l -66 -117 b -121 -176 -110 -170 -114 -176 b -125 -176 -122 -176 -123 -176 b -296 -12 -134 -174 -125 -184 l -308 0 l -337 -34 b -375 -77 -367 -73 -370 -76 b -382 -79 -377 -79 -379 -79 b -402 -58 -393 -79 -402 -69 b -401 -49 -402 -55 -402 -52 b -224 170 -398 -43 -231 165 b -212 174 -221 173 -216 174 b -202 173 -208 174 -205 174 b -39 11 -200 172 -151 122 l -28 -1 l -25 1 l -24 4 l -24 130 b -23 260 -24 256 -24 258 b -10 273 -20 266 -16 270 "},v46:{x_min:0,x_max:627.46875,ha:640,o:"m 306 190 b 314 191 308 191 311 191 b 326 184 318 191 322 190 l 336 173 b 510 52 377 127 442 80 b 515 49 513 51 515 49 b 611 16 537 40 579 24 b 627 0 624 13 627 9 b 607 -18 627 -11 624 -13 b 330 -181 490 -49 389 -109 b 314 -192 323 -190 319 -192 b 306 -191 311 -192 308 -192 b 294 -177 302 -188 302 -188 b 257 -140 287 -170 265 -148 b 19 -18 193 -84 114 -44 b 0 0 2 -13 0 -11 b 16 16 0 9 2 13 b 110 49 47 24 89 40 b 117 52 111 49 114 51 b 145 65 126 56 130 58 b 281 163 200 93 245 124 b 300 186 288 170 291 174 b 306 190 300 187 303 188 m 317 137 b 313 142 315 141 314 142 b 308 137 313 142 311 141 b 161 4 276 84 220 33 b 155 0 159 1 155 0 b 163 -4 155 0 159 -2 b 308 -138 220 -34 276 -84 b 313 -142 311 -141 313 -142 b 317 -138 314 -142 315 -141 b 464 -4 351 -84 406 -34 b 470 0 468 -2 470 0 b 464 4 470 0 468 1 b 317 137 406 33 351 84 "},v47:{x_min:-24.5,x_max:315.78125,ha:322,o:"m -24 -145 l -24 -5 l -20 -5 b 1 -26 -10 -5 -6 -9 b 175 -241 31 -86 96 -166 b 314 -548 259 -323 304 -420 b 315 -589 315 -555 315 -571 b 314 -630 315 -606 315 -623 b 298 -730 311 -664 306 -699 l 295 -742 l 296 -748 b 314 -850 304 -778 311 -813 b 315 -892 315 -857 315 -874 b 314 -932 315 -909 315 -925 b 298 -1032 311 -967 306 -1002 l 295 -1045 l 296 -1050 b 314 -1153 304 -1081 311 -1115 b 315 -1193 315 -1160 315 -1177 b 314 -1235 315 -1211 315 -1228 b 217 -1526 306 -1338 270 -1444 b 201 -1533 213 -1532 208 -1533 b 182 -1522 193 -1533 185 -1529 b 179 -1514 181 -1518 179 -1517 b 189 -1489 179 -1508 182 -1501 b 266 -1217 240 -1403 266 -1308 b 262 -1156 266 -1196 265 -1177 b 110 -907 247 -1043 190 -950 b 0 -889 87 -895 50 -889 l -1 -889 l -24 -889 l -24 -749 l -24 -610 l -20 -610 b 1 -631 -10 -610 -6 -614 b 175 -846 31 -691 96 -771 b 259 -956 213 -884 236 -914 b 265 -966 262 -961 264 -966 b 265 -966 265 -966 265 -966 b 265 -953 265 -964 265 -959 b 266 -920 266 -943 266 -932 b 262 -853 266 -898 265 -873 b 110 -605 247 -741 190 -648 b 0 -587 87 -592 50 -587 l -1 -587 l -24 -587 l -24 -448 l -24 -308 l -20 -308 b 1 -328 -10 -308 -6 -312 b 175 -544 31 -388 96 -469 b 259 -655 213 -581 236 -612 b 265 -663 262 -659 264 -663 b 265 -663 265 -663 265 -663 b 265 -650 265 -663 265 -657 b 266 -617 266 -641 266 -630 b 262 -551 266 -595 265 -570 b 110 -303 247 -438 190 -345 b 0 -284 87 -290 50 -284 l -1 -284 l -24 -284 l -24 -145 "},v49:{x_min:0,x_max:630.203125,ha:643,o:"m 308 204 b 314 205 310 205 313 205 b 326 201 319 205 323 204 b 355 154 328 199 338 180 b 401 83 362 142 392 95 l 409 72 b 431 41 412 66 424 49 b 619 -174 498 -51 570 -134 b 630 -192 626 -180 630 -186 b 626 -202 630 -195 628 -199 b 616 -206 623 -205 620 -206 b 552 -188 608 -206 592 -202 b 310 -155 488 -169 392 -155 b 268 -156 295 -155 281 -155 b 77 -188 197 -161 126 -173 b 13 -206 35 -202 20 -206 b 9 -206 12 -206 10 -206 b 0 -191 2 -202 0 -197 b 8 -176 0 -186 2 -180 b 204 49 58 -136 138 -43 l 220 72 l 227 83 b 295 188 245 108 281 166 b 308 204 299 197 304 202 m 315 147 b 314 147 315 147 314 147 b 314 147 314 147 314 147 b 306 129 314 145 310 138 l 296 105 b 281 72 292 97 284 77 l 274 56 b 181 -123 247 -4 212 -72 l 174 -134 l 176 -133 b 314 -123 215 -127 272 -123 b 451 -133 356 -123 413 -127 l 454 -134 l 449 -123 b 353 56 417 -72 381 -4 l 347 72 b 332 105 344 77 336 97 l 322 129 b 315 147 318 138 315 145 "},v4a:{x_min:70.78125,x_max:378.390625,ha:315,o:"m 246 373 b 254 373 249 373 251 373 b 372 324 303 373 360 351 b 378 302 377 317 378 309 b 338 251 378 278 362 255 b 328 249 334 249 332 249 b 283 294 303 249 283 270 b 288 315 283 301 284 308 b 289 319 289 317 289 319 b 289 319 289 319 289 319 b 283 320 289 320 287 320 b 270 322 279 322 274 322 b 206 288 242 322 215 308 b 206 283 206 287 206 285 b 257 223 206 267 230 238 b 284 206 272 213 277 210 b 351 90 328 173 351 130 b 340 47 351 74 348 59 b 205 -30 314 -2 264 -30 b 182 -29 198 -30 190 -30 b 84 15 147 -24 103 -5 b 70 48 74 24 70 36 b 108 99 70 70 85 94 b 121 102 112 101 117 102 b 167 56 147 102 167 80 b 159 31 167 48 164 40 l 156 26 l 157 26 b 190 20 167 22 178 20 b 220 26 201 20 212 22 b 258 65 243 34 258 51 b 257 70 258 66 258 69 b 204 126 249 94 234 109 b 114 258 148 158 114 209 b 125 302 114 273 118 288 b 246 373 147 342 193 370 "},v4b:{x_min:0,x_max:503.609375,ha:514,o:"m 274 430 b 277 430 276 430 277 430 b 310 394 296 430 310 415 b 308 383 310 391 308 387 b 306 367 307 381 307 374 b 236 120 298 305 272 210 b 40 -273 189 -5 125 -134 b 20 -287 35 -283 27 -287 b 5 -281 14 -287 9 -285 b 0 -267 1 -277 0 -273 b 9 -242 0 -262 2 -255 b 246 395 137 -12 232 242 b 274 430 249 416 257 427 m 468 430 b 472 430 469 430 470 430 b 503 394 490 430 503 415 b 502 383 503 391 503 387 b 499 367 502 381 500 374 b 431 120 491 305 465 210 b 234 -273 382 -5 318 -134 b 213 -287 228 -283 220 -287 b 198 -281 208 -287 202 -285 b 193 -267 194 -277 193 -273 b 202 -242 193 -262 196 -255 b 439 395 330 -12 426 242 b 468 430 442 416 451 427 "},v4d:{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 b 24 298 23 299 24 298 b 81 276 34 298 65 285 b 213 91 145 240 190 177 b 224 24 217 76 224 36 b 257 24 224 24 235 24 b 299 19 292 24 292 24 b 310 -1 306 15 310 6 b 299 -23 310 -11 306 -19 b 257 -27 292 -27 292 -27 b 224 -29 235 -27 224 -29 b 213 -95 224 -40 217 -80 b 81 -280 190 -181 145 -244 b 24 -301 65 -290 34 -301 b 23 -335 24 -301 23 -303 l 23 -340 b 17 -381 23 -374 23 -374 b -1 -391 13 -388 5 -391 b -21 -381 -9 -391 -17 -388 b -27 -340 -27 -374 -27 -374 l -27 -335 b -28 -301 -27 -303 -27 -301 b -85 -280 -38 -301 -69 -290 b -217 -95 -149 -244 -194 -181 b -228 -29 -221 -80 -228 -40 b -259 -27 -228 -29 -238 -27 b -300 -23 -294 -27 -294 -27 b -311 -2 -307 -19 -311 -11 b -294 23 -311 8 -304 19 b -259 24 -291 23 -284 24 b -228 24 -239 24 -228 24 b -217 91 -228 36 -221 76 b -85 276 -194 177 -149 240 b -28 298 -69 285 -38 298 b -27 333 -27 298 -27 299 b -27 371 -27 362 -27 369 b -9 388 -24 378 -17 385 m -27 136 b -28 247 -27 197 -28 247 b -61 216 -31 247 -53 226 b -123 33 -95 172 -121 98 l -125 24 l -76 24 l -27 24 l -27 136 m 29 242 b 24 247 27 245 24 247 b 23 136 24 247 23 197 l 23 24 l 72 24 l 121 24 l 119 33 b 29 242 115 116 77 206 m -27 -140 l -27 -27 l -76 -27 l -125 -27 l -123 -36 b -61 -220 -121 -102 -95 -176 b -28 -251 -53 -230 -31 -251 b -27 -140 -28 -251 -27 -201 m 119 -36 l 121 -27 l 72 -27 l 23 -27 l 23 -140 b 24 -251 23 -201 24 -251 b 57 -220 27 -251 49 -230 b 119 -36 91 -176 117 -102 "},v4e:{x_min:0,x_max:239.5625,ha:244,o:"m 10 460 b 20 462 13 462 14 462 b 39 449 28 462 35 458 l 40 446 l 40 326 b 40 205 40 259 40 205 b 127 227 40 205 80 215 b 220 249 196 244 213 249 b 227 247 224 249 225 248 b 238 237 231 245 235 241 l 239 233 l 239 -106 l 239 -448 l 238 -451 b 219 -463 234 -459 225 -463 b 198 -451 210 -463 202 -459 l 197 -448 l 197 -324 b 197 -201 197 -248 197 -201 b 110 -223 196 -201 157 -210 b 17 -245 42 -240 24 -245 b 10 -242 13 -245 13 -244 b 0 -233 6 -241 2 -237 l 0 -230 l 0 108 l 0 446 l 0 449 b 10 460 2 453 6 458 m 197 22 b 197 70 197 41 197 58 b 196 116 197 113 197 116 l 196 116 b 118 97 196 116 160 106 l 40 77 l 40 -18 b 40 -112 40 -69 40 -112 l 119 -93 l 197 -73 l 197 22 "},v51:{x_min:-1.359375,x_max:455.96875,ha:465,o:"m 352 541 b 357 542 353 542 355 542 b 377 530 364 542 372 537 l 378 526 l 378 394 l 379 262 l 404 266 b 436 270 420 269 430 270 b 450 265 443 270 446 269 b 455 220 455 259 455 260 l 455 208 l 455 161 l 454 156 b 411 140 449 147 447 147 b 378 133 393 137 379 134 b 378 68 378 133 378 106 b 378 22 378 54 378 38 l 379 -87 l 404 -83 b 436 -79 420 -80 430 -79 b 450 -84 443 -79 446 -80 b 455 -129 455 -90 455 -88 l 455 -141 l 455 -188 l 454 -192 b 413 -209 449 -202 447 -202 b 382 -215 398 -212 383 -215 l 378 -215 l 378 -345 l 378 -380 b 375 -485 378 -484 378 -480 b 357 -494 371 -491 364 -494 b 340 -485 351 -494 344 -491 b 336 -383 337 -480 336 -484 l 336 -349 l 336 -223 l 334 -223 b 291 -231 334 -223 314 -227 l 247 -240 l 247 -371 l 246 -503 l 245 -506 b 225 -519 242 -514 234 -519 b 206 -506 219 -519 210 -514 l 205 -503 l 205 -376 l 205 -248 l 160 -256 l 115 -265 l 115 -396 l 115 -527 l 114 -531 b 95 -544 110 -539 102 -544 b 76 -531 87 -544 78 -539 l 73 -527 l 73 -399 b 73 -273 73 -330 73 -273 b 49 -277 73 -273 61 -274 b 17 -281 32 -280 24 -281 b 4 -276 10 -281 8 -280 b -1 -234 0 -269 -1 -272 b 0 -219 -1 -229 0 -224 l 0 -170 l 1 -167 b 10 -158 2 -163 6 -159 b 49 -149 13 -156 16 -155 l 73 -145 l 73 -34 b 73 76 73 26 73 76 b 49 72 73 76 61 74 b 17 68 32 69 24 68 b 4 73 10 68 8 69 b -1 115 0 80 -1 77 b 0 130 -1 120 0 124 l 0 179 l 1 181 b 10 191 2 186 6 190 b 49 199 13 192 16 194 l 73 204 l 73 338 b 73 374 73 352 73 365 b 77 483 73 484 73 477 b 95 492 81 489 88 492 b 111 483 100 492 107 489 b 115 378 115 477 115 483 l 115 342 b 117 212 115 223 115 212 b 204 229 117 212 200 227 l 205 229 l 205 365 l 205 502 l 206 505 b 225 517 210 513 219 517 b 245 505 234 517 242 513 l 246 502 l 247 369 l 247 237 l 249 237 b 336 254 253 238 336 254 b 337 390 336 254 337 302 l 337 526 l 338 530 b 352 541 341 535 347 539 m 336 15 b 336 126 336 102 336 126 l 336 126 b 291 117 336 126 315 122 l 247 109 l 247 -1 l 247 -112 l 249 -112 b 336 -95 253 -111 336 -95 b 336 15 336 -95 336 -56 m 205 -120 b 205 -55 205 -120 205 -93 b 205 -9 205 -41 205 -24 l 205 101 l 160 93 l 115 84 l 115 -26 b 115 -83 115 -49 115 -69 b 117 -137 115 -133 115 -137 b 205 -120 118 -137 204 -120 "},v52:{x_min:-10.890625,x_max:298.078125,ha:294,o:"m 138 473 b 142 474 140 473 141 474 b 164 459 148 474 153 470 b 191 402 183 442 191 423 b 181 353 191 388 187 371 b 178 349 179 352 178 349 b 179 348 178 348 179 348 b 185 349 181 348 182 348 b 255 376 210 355 234 363 b 272 381 264 381 266 381 b 298 355 287 381 298 370 b 288 330 298 348 298 345 b 171 34 238 254 194 141 b 166 13 168 16 168 16 b 144 1 161 5 152 1 b 121 15 134 1 125 5 b 115 33 119 18 117 24 b 0 330 91 145 49 252 b -10 355 -9 345 -10 348 b 13 381 -10 371 0 381 b 31 376 19 381 25 380 b 132 345 61 358 103 345 l 136 345 l 137 355 b 145 378 138 359 142 370 b 152 415 149 394 152 405 b 137 452 152 427 148 438 b 133 464 134 458 133 460 b 138 473 133 467 134 470 "},v53:{x_min:0,x_max:902.421875,ha:921,o:"m 17 240 b 24 241 19 241 21 241 b 32 240 28 241 31 241 b 46 229 38 238 43 234 b 50 88 50 223 50 237 b 50 -1 50 63 50 34 b 50 -90 50 -36 50 -65 b 46 -231 50 -238 50 -224 b 25 -242 42 -238 34 -242 b 0 -224 14 -242 4 -235 b 0 2 0 -222 0 -108 b 0 223 0 112 0 220 b 17 240 2 230 9 237 m 110 240 b 118 241 111 241 114 241 b 126 240 121 241 123 241 b 142 223 133 237 140 230 b 144 123 144 220 144 205 b 144 29 144 45 144 29 b 144 29 144 29 144 29 b 393 183 166 106 264 167 b 450 186 412 184 431 186 b 756 29 600 186 732 120 b 756 29 756 29 756 29 b 758 123 758 29 758 45 b 760 227 758 226 758 223 b 784 241 766 237 774 241 b 804 229 792 241 800 237 b 809 88 808 223 809 237 l 809 -1 l 809 -90 b 804 -231 809 -238 808 -224 b 784 -242 800 -238 792 -242 b 762 -231 775 -242 766 -238 b 758 -124 756 -224 758 -231 b 756 -30 758 -47 758 -30 b 756 -30 756 -30 756 -30 b 509 -184 736 -108 637 -169 b 450 -187 488 -187 469 -187 b 144 -30 300 -187 168 -122 b 144 -30 144 -30 144 -30 b 144 -124 144 -30 144 -47 b 140 -231 144 -231 144 -224 b 118 -242 134 -238 126 -242 b 92 -224 107 -242 96 -235 b 92 2 92 -222 92 -108 b 92 223 92 112 92 220 b 110 240 95 230 102 237 m 432 161 b 413 162 426 162 420 162 b 313 41 351 162 313 109 b 347 -73 313 5 323 -34 b 487 -163 385 -133 439 -163 b 578 -97 526 -163 562 -142 b 588 -43 585 -80 588 -62 b 432 161 588 47 518 147 m 868 240 b 876 241 869 241 872 241 b 884 240 879 241 882 241 b 898 229 890 238 894 234 b 902 88 902 223 902 237 l 902 -1 l 902 -90 b 898 -231 902 -238 902 -224 b 876 -242 892 -238 884 -242 b 852 -224 865 -242 854 -235 b 850 2 850 -222 850 -108 b 852 223 850 112 850 220 b 868 240 853 230 860 237 "},v54:{x_min:-24.5,x_max:317.140625,ha:324,o:"m -24 -161 l -24 -5 l -20 -5 b 0 -24 -9 -5 -2 -12 b 171 -315 21 -124 84 -233 b 317 -660 268 -406 317 -531 b 187 -1014 317 -782 274 -909 b 161 -1034 172 -1034 171 -1034 b 141 -1013 149 -1034 141 -1025 b 152 -991 141 -1004 142 -1002 b 266 -682 228 -899 266 -788 b 174 -430 266 -588 236 -498 b -23 -317 136 -388 66 -348 b -24 -161 -23 -316 -24 -285 "},v55:{x_min:0,x_max:551.25,ha:563,o:"m 289 644 b 304 645 294 645 299 645 b 404 566 349 645 392 613 b 406 541 405 557 406 549 b 379 471 406 514 397 489 l 377 467 l 382 470 b 509 591 438 485 485 531 b 513 601 510 595 513 599 b 530 609 518 607 524 609 b 551 588 540 609 551 602 b 200 -605 551 584 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 195 112 136 99 165 b 118 256 99 217 106 238 b 204 303 138 287 171 303 b 292 249 238 303 273 285 b 306 199 302 234 306 217 b 279 129 306 173 296 148 l 276 126 l 281 127 b 408 248 336 142 385 190 b 473 470 409 254 473 469 b 473 470 473 470 473 470 b 465 464 473 470 469 467 b 341 421 428 435 383 421 b 236 458 303 421 266 433 b 200 537 212 478 200 508 b 289 644 200 585 234 635 "},v58:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 259 1553 b 265 1553 261 1553 264 1553 b 288 1540 272 1553 277 1550 b 367 1351 340 1493 367 1424 b 336 1221 367 1308 357 1263 l 332 1211 l 333 1208 b 367 1077 356 1170 367 1124 b 336 945 367 1032 357 986 l 332 935 l 333 932 b 367 800 356 893 367 848 b 336 669 367 756 357 710 l 332 659 l 333 656 b 367 523 356 617 367 571 b 345 412 367 485 360 446 b 231 273 322 356 284 310 b -1 19 121 195 27 93 b -17 4 -4 11 -10 5 l -21 4 l -21 134 l -21 265 l -17 265 b 133 291 20 265 96 278 b 318 537 245 328 318 433 b 307 603 318 559 315 582 b 303 614 304 612 304 614 b 298 609 302 614 300 613 b 231 549 281 589 258 567 b -1 295 121 471 27 369 b -17 280 -4 287 -10 281 l -21 280 l -21 410 l -21 541 l -17 541 b 133 567 20 541 96 555 b 318 813 245 605 318 709 b 307 880 318 835 315 859 b 303 891 304 888 304 891 b 298 885 302 891 300 888 b 231 825 281 866 258 843 b -1 571 121 748 27 645 b -17 556 -4 563 -10 557 l -21 556 l -21 687 l -21 817 l -17 817 b 133 843 20 817 96 830 b 318 1089 245 881 318 985 b 307 1156 318 1111 315 1134 b 303 1167 304 1164 304 1167 b 298 1161 302 1167 300 1164 b 231 1102 281 1140 258 1120 b -1 848 121 1024 27 921 b -17 832 -4 839 -10 834 l -21 832 l -21 963 l -21 1093 l -17 1093 b 114 1113 12 1093 78 1103 b 313 1314 215 1142 289 1218 b 318 1364 317 1331 318 1347 b 255 1511 318 1422 295 1478 b 243 1532 247 1519 243 1525 b 259 1553 243 1540 250 1550 "},v59:{x_min:0,x_max:464.140625,ha:474,o:"m 0 0 l 0 347 l 76 347 l 153 347 l 153 0 l 153 -348 l 76 -348 l 0 -348 l 0 0 m 308 -1 l 308 347 l 386 347 l 464 347 l 464 -1 l 464 -348 l 386 -348 l 308 -348 l 308 -1 "},v5a:{x_min:-171.5,x_max:170.140625,ha:174,o:"m -6 566 b 0 567 -5 567 -2 567 b 14 556 6 567 12 563 b 92 285 14 555 50 433 b 170 13 166 33 170 19 b 168 13 170 13 170 13 b 161 1 168 8 167 4 l 159 0 l 122 0 l 84 0 l 81 1 b 21 195 76 5 78 -5 b -32 381 -8 297 -32 381 b -87 197 -32 381 -57 298 b -141 8 -115 94 -140 9 b -155 0 -142 2 -149 0 b -171 15 -163 0 -171 5 b -14 556 -171 18 -24 528 b -6 566 -14 560 -10 564 "},v5b:{x_min:-441,x_max:439.640625,ha:449,o:"m -428 -2 b -421 0 -427 -1 -424 0 b -406 -6 -416 0 -409 -2 b -400 -31 -401 -12 -400 -15 b -1 -352 -392 -215 -215 -352 b 58 -349 19 -352 38 -351 b 398 -31 250 -326 392 -192 b 404 -6 398 -15 400 -12 b 419 -1 408 -2 413 -1 b 439 -13 427 -1 435 -5 b 439 -29 439 -16 439 -22 b 434 -105 439 -48 438 -80 b 0 -489 397 -333 213 -489 b -68 -484 -23 -489 -44 -488 b -441 -36 -280 -452 -436 -263 b -441 -30 -441 -34 -441 -31 b -428 -2 -441 -11 -439 -5 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 -57 -102 -62 -87 b -13 -9 -62 -44 -44 -16 "},v5c:{x_min:0,x_max:447.8125,ha:457,o:"m 0 -87 l 0 0 l 223 0 l 447 0 l 447 -87 l 447 -174 l 223 -174 l 0 -174 l 0 -87 "},v5d:{x_min:-1.359375,x_max:592.078125,ha:604,o:"m 280 692 b 295 694 283 692 289 694 b 310 692 300 694 307 692 b 357 630 340 684 357 657 b 336 580 357 612 351 594 b 311 538 321 566 311 549 b 352 492 311 512 330 492 b 366 495 357 492 362 492 b 397 553 390 503 397 517 b 415 603 397 576 402 591 b 460 623 427 617 443 623 b 509 599 479 623 498 614 b 522 559 518 587 522 573 b 494 506 522 538 513 519 b 451 495 481 498 473 496 b 415 488 432 495 426 494 b 394 449 404 483 394 464 b 394 448 394 448 394 448 l 394 440 l 397 433 b 428 409 404 420 413 413 b 438 408 431 408 435 408 b 479 431 450 408 462 415 b 528 455 495 448 510 455 b 548 452 534 455 541 453 b 592 391 577 442 592 416 b 549 331 592 365 577 340 b 528 327 541 328 534 327 b 479 351 510 327 495 335 b 438 374 464 367 450 374 b 417 369 431 374 424 373 b 394 333 402 360 394 348 b 400 312 394 326 396 319 b 451 287 408 294 420 288 b 513 258 484 285 499 278 b 522 223 519 247 522 234 b 461 159 522 190 496 159 b 449 161 457 159 453 159 b 397 229 416 167 397 191 b 366 288 397 265 390 278 b 352 290 362 290 357 290 b 315 262 336 290 321 280 b 311 245 313 256 311 251 b 334 204 311 233 318 220 b 355 170 348 190 351 184 b 357 152 356 166 357 159 b 355 136 357 147 356 140 b 295 88 345 104 321 88 b 232 152 264 88 232 112 b 255 204 232 174 238 186 b 279 244 273 222 279 231 l 279 245 b 238 290 279 270 259 290 b 224 288 234 290 228 290 b 193 229 200 278 193 265 b 141 161 193 191 174 167 b 129 159 137 159 133 159 b 68 223 93 159 68 190 b 77 258 68 234 70 247 b 138 287 91 278 106 285 b 185 302 166 287 175 291 b 196 333 193 312 196 323 b 174 369 196 347 187 360 b 152 374 166 373 159 374 b 111 351 140 374 126 367 b 62 327 95 335 80 327 b 51 328 58 327 54 327 b -1 391 16 334 -1 363 b 53 455 -1 420 17 449 b 62 455 57 455 59 455 b 111 431 80 455 95 448 b 152 408 127 415 140 408 b 161 409 155 408 159 408 b 193 433 176 413 186 420 l 196 440 l 196 448 b 196 451 196 449 196 449 b 190 471 196 459 194 463 b 137 495 182 489 167 495 l 134 495 l 134 495 b 68 560 95 495 68 521 b 129 623 68 596 95 623 b 144 621 134 623 138 623 b 193 553 175 614 193 589 b 224 495 193 517 200 503 b 238 492 228 492 234 492 b 279 538 259 492 279 512 b 254 580 279 549 269 566 b 232 630 239 594 232 612 b 280 692 232 657 250 684 m 307 456 b 295 458 303 458 299 458 b 230 391 258 458 230 426 b 236 360 230 381 231 371 b 295 324 249 337 272 324 b 353 360 318 324 341 337 b 360 391 357 370 360 381 b 307 456 360 421 340 451 "},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 "},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 544 373 528 376 536 376 b 604 285 579 360 604 326 b 597 249 604 273 601 258 b 543 63 596 247 544 70 b 541 54 543 61 541 55 b 540 44 540 51 540 47 b 552 23 540 33 545 23 b 552 23 552 23 552 23 b 647 126 586 29 627 72 b 658 138 651 136 653 138 b 660 138 660 138 660 138 b 669 129 666 137 669 136 b 654 88 669 122 665 109 b 562 -12 631 43 602 9 l 549 -19 b 521 -27 540 -24 530 -27 b 447 30 490 -27 458 -4 b 443 58 445 38 443 48 b 450 93 443 72 446 84 b 504 278 453 97 504 272 b 507 288 506 283 506 287 b 509 298 507 292 509 295 b 491 326 509 310 502 320 b 487 327 490 327 488 327 b 479 324 484 327 483 326 b 441 270 462 316 443 288 b 435 249 441 265 436 254 b 398 127 434 248 419 195 b 362 4 379 61 362 5 b 328 -1 359 -1 362 -1 b 314 -1 323 -1 319 -1 b 302 -1 310 -1 306 -1 b 266 4 266 -1 269 -1 b 265 6 265 5 265 5 b 303 144 265 13 272 34 b 343 278 325 216 343 276 b 344 288 343 281 344 285 b 345 298 345 291 345 295 b 330 326 345 310 340 320 b 323 327 328 327 325 327 b 317 324 322 327 321 326 b 279 270 300 316 281 288 b 273 249 279 265 274 254 b 236 127 272 248 255 195 b 200 4 216 61 200 5 b 164 -1 197 -1 198 -1 b 151 -1 161 -1 156 -1 b 140 -1 147 -1 142 -1 b 103 4 104 -1 106 -1 b 103 6 103 5 103 5 b 141 144 103 13 108 34 b 181 278 161 216 179 276 b 182 288 181 281 181 285 b 183 298 182 291 183 295 b 168 324 183 310 178 320 b 160 327 166 326 163 327 b 141 320 156 327 151 324 b 69 230 112 305 85 272 b 57 215 65 217 62 215 b 55 215 57 215 55 215 b 46 224 49 215 46 217 b 59 260 46 231 50 242 b 151 363 81 306 112 341 b 161 369 155 365 160 367 b 183 376 166 371 174 374 "},v68:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -533 324 b -525 327 -530 326 -528 327 b -504 305 -514 327 -504 317 b -504 305 -504 305 -504 305 b -513 284 -504 299 -504 299 b -556 112 -541 226 -556 167 b -545 33 -556 84 -552 58 b -524 -20 -541 15 -532 -9 l -522 -23 l -491 15 l -413 111 b -355 174 -367 169 -363 174 b -351 174 -353 174 -352 174 b -254 86 -343 174 -348 179 b -168 -1 -208 37 -168 -1 b -100 84 -168 -1 -137 37 b -23 173 -28 173 -29 172 b -19 174 -21 174 -20 174 b -8 173 -14 174 -10 173 b 155 11 -5 172 43 123 l 166 -1 l 168 1 l 170 4 l 170 130 b 171 260 170 256 170 258 b 191 274 175 269 183 274 b 205 267 196 274 201 272 b 212 158 212 262 210 273 l 212 56 l 257 112 b 311 173 304 172 304 172 b 317 174 313 174 314 174 b 326 173 319 174 323 173 b 490 11 329 172 366 134 l 502 -1 l 530 34 b 568 76 560 72 563 74 b 575 77 570 77 573 77 b 596 56 586 77 596 68 b 594 48 596 54 596 51 b 417 -172 592 41 424 -166 b 405 -176 415 -174 409 -176 b 396 -174 401 -176 398 -176 b 307 -87 393 -173 372 -152 b 221 -1 259 -38 221 -1 b 216 -6 221 -1 219 -2 l 212 -12 l 212 -147 b 212 -210 212 -173 212 -194 b 205 -292 212 -297 210 -287 b 191 -299 201 -297 196 -299 b 172 -287 183 -299 175 -295 b 170 -174 171 -284 171 -284 l 170 -63 l 127 -117 b 73 -176 84 -170 80 -176 b 68 -176 72 -176 70 -176 b -27 -87 59 -174 65 -180 b -114 0 -74 -38 -112 0 b -182 -86 -114 0 -145 -38 b -258 -174 -253 -174 -253 -173 b -264 -176 -259 -176 -262 -176 b -274 -174 -268 -176 -272 -174 b -438 -11 -277 -173 -348 -102 l -449 0 l -479 -37 b -524 -80 -513 -80 -514 -80 l -524 -80 b -553 -52 -534 -80 -540 -74 b -597 109 -583 -8 -597 48 b -560 280 -597 165 -585 224 b -533 324 -548 310 -540 322 "},v6c:{x_min:-1.359375,x_max:193.28125,ha:197,o:"m 78 233 b 87 233 81 233 84 233 b 187 140 132 233 174 195 b 193 102 190 127 193 115 b 43 -113 193 22 136 -62 b 27 -119 36 -116 31 -119 b 19 -108 21 -119 19 -115 b 29 -97 19 -102 20 -101 b 102 13 73 -72 102 -27 b 92 51 102 26 98 40 l 91 54 l 84 54 b 8 104 53 54 21 74 b -1 142 1 116 -1 130 b 78 233 -1 187 31 227 "},v6d:{x_min:-590.71875,x_max:589.359375,ha:601,o:"m 544 335 b 553 337 548 337 551 337 b 575 313 563 337 570 330 b 589 226 583 285 589 256 b 517 8 589 152 563 76 b 464 -58 507 -4 503 -9 l 401 -136 b 362 -176 372 -172 370 -176 b 357 -176 360 -176 359 -176 b 261 -87 349 -174 355 -180 b 175 0 215 -38 175 0 b 106 -86 175 0 144 -38 b 29 -174 35 -174 36 -173 b 24 -176 28 -176 27 -176 b 14 -174 21 -176 17 -174 b -73 -87 12 -173 -8 -152 b -159 0 -121 -38 -159 0 b -228 -86 -160 0 -190 -38 b -304 -174 -299 -174 -298 -173 b -310 -176 -306 -176 -308 -176 b -319 -174 -314 -176 -318 -174 b -483 -12 -323 -173 -359 -137 l -495 0 l -524 -34 b -562 -77 -553 -73 -556 -76 b -568 -79 -564 -79 -566 -79 b -590 -58 -581 -79 -590 -69 b -588 -49 -590 -55 -589 -52 b -412 170 -585 -43 -417 165 b -398 174 -408 173 -402 174 b -389 173 -394 174 -392 174 b -300 86 -387 172 -366 151 b -215 -1 -254 37 -215 -1 b -145 84 -215 -1 -183 37 b -69 173 -74 173 -76 172 b -63 174 -68 174 -66 174 b -54 173 -61 174 -57 173 b 34 86 -51 172 -31 151 b 119 -1 81 37 119 -1 b 189 84 121 -1 151 37 b 265 173 259 173 258 172 b 270 174 266 174 269 174 b 280 173 274 174 279 173 b 370 84 283 172 303 151 b 455 -1 416 37 455 -1 l 455 -1 b 476 24 455 -1 469 15 b 547 226 522 87 547 159 b 534 302 547 252 543 278 b 532 317 533 308 532 313 b 544 335 532 326 536 333 "},v6f:{x_min:-80.3125,x_max:78.9375,ha:81,o:"m 63 191 b 69 192 65 192 66 192 b 77 188 72 192 76 191 b 78 183 78 187 78 186 b 74 158 78 179 77 172 l 66 115 b 9 -161 49 30 10 -158 b -10 -187 6 -172 -1 -181 b -34 -194 -17 -191 -25 -194 b -80 -147 -58 -194 -80 -174 b -80 -141 -80 -144 -80 -142 b 9 70 -80 -134 -73 -117 l 49 163 b 63 191 59 188 61 190 "},v70:{x_min:0,x_max:436.921875,ha:446,o:"m 213 190 b 217 191 215 191 216 191 b 231 184 223 191 228 188 b 249 154 240 167 246 159 b 419 18 292 91 348 45 b 436 -1 435 11 436 8 b 424 -16 436 -9 434 -13 b 308 -87 394 -26 340 -59 b 231 -186 276 -117 257 -142 b 219 -192 228 -191 225 -192 b 198 -174 209 -192 208 -191 b 47 -33 161 -113 110 -63 b 10 -16 34 -26 17 -19 b 0 -1 2 -13 0 -9 b 17 18 0 8 1 11 b 198 173 95 48 156 101 b 213 190 206 187 208 188 "},v72:{x_min:-423.3125,x_max:421.9375,ha:431,o:"m -262 197 b -247 197 -257 197 -253 197 b -118 162 -210 197 -163 184 b 40 45 -61 134 -13 98 b 277 -95 119 -33 200 -81 b 289 -97 281 -97 285 -97 b 378 0 332 -97 371 -55 b 378 11 378 4 378 6 b 302 83 378 55 345 83 b 242 66 283 83 262 77 b 208 56 231 59 219 56 b 148 120 175 56 148 81 b 201 186 148 151 164 172 b 261 198 220 194 240 198 b 420 45 341 198 411 136 b 421 22 421 37 421 29 b 245 -199 421 -93 338 -199 b 238 -198 243 -199 240 -199 b -44 -47 148 -194 50 -141 b -250 86 -114 22 -183 66 b -295 94 -270 91 -283 94 b -315 91 -302 94 -307 94 b -381 4 -356 81 -381 43 b -355 -56 -381 -18 -372 -40 b -298 -81 -338 -73 -319 -81 b -246 -68 -283 -81 -265 -77 b -212 -58 -234 -61 -223 -58 b -178 -69 -200 -58 -189 -62 b -151 -122 -160 -81 -151 -101 b -171 -167 -151 -138 -157 -155 b -239 -195 -185 -181 -213 -192 b -257 -197 -245 -197 -250 -197 b -423 -5 -352 -197 -423 -109 b -412 65 -423 16 -419 40 b -262 197 -389 137 -329 188 "},v74:{x_min:-206.890625,x_max:428.75,ha:438,o:"m 389 -351 b 394 -351 390 -351 393 -351 b 428 -385 413 -351 428 -367 b 428 -394 428 -388 428 -391 b 394 -428 426 -406 421 -410 l 332 -473 l 269 -516 l 205 -560 l 141 -603 l 77 -648 l 13 -692 l -50 -737 l -114 -780 l -145 -802 b -171 -813 -157 -810 -163 -813 b -175 -813 -172 -813 -174 -813 b -206 -777 -194 -811 -206 -795 b -202 -760 -206 -771 -205 -766 b -87 -675 -197 -752 -206 -757 l -34 -639 l 83 -557 l 145 -514 l 209 -470 l 272 -427 b 389 -351 375 -356 381 -352 "},v75:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -137 381 b -130 383 -134 383 -133 383 b -111 371 -122 383 -114 378 b -55 224 -110 370 -85 305 b 0 80 -25 145 -1 80 b 54 224 0 80 24 145 b 112 377 114 384 110 373 b 127 384 118 381 122 384 b 148 362 138 384 148 374 l 148 356 l 83 183 b 16 9 47 88 17 11 b -1 0 12 2 5 0 b -14 5 -5 0 -10 1 b -84 183 -19 9 -13 -6 l -149 356 l -149 362 b -137 381 -149 371 -145 378 "},v78:{x_min:0,x_max:193.28125,ha:197,o:"m 85 514 b 95 517 88 517 89 517 b 114 505 103 517 110 513 l 115 502 l 115 376 b 115 249 115 306 115 249 b 141 258 117 249 127 252 l 167 266 l 172 266 b 190 254 181 265 187 262 l 193 251 l 193 202 l 193 188 b 187 147 193 149 191 152 b 147 130 183 142 182 141 l 115 119 l 115 9 b 115 -99 115 -51 115 -99 b 141 -91 115 -99 127 -95 b 171 -81 166 -81 167 -81 l 171 -81 b 191 -94 181 -81 189 -87 b 193 -142 191 -97 193 -120 b 191 -195 193 -167 191 -194 b 125 -227 187 -205 187 -204 l 115 -230 l 115 -366 l 115 -503 l 114 -506 b 95 -519 110 -514 102 -519 b 74 -506 87 -519 78 -514 l 73 -503 l 73 -374 b 73 -245 73 -260 73 -245 b 73 -245 73 -245 73 -245 b 55 -252 72 -245 63 -249 l 32 -260 b 19 -263 27 -262 23 -263 b 4 -256 13 -263 8 -260 b 0 -215 0 -251 0 -254 b 0 -199 0 -210 0 -206 l 0 -152 l 1 -149 b 8 -140 2 -145 5 -141 b 42 -127 9 -140 24 -133 l 73 -116 l 73 -5 b 73 23 73 4 73 15 b 73 105 73 70 73 105 b 49 97 73 105 61 101 b 17 88 32 91 23 88 b 4 95 10 88 8 91 b 0 137 0 101 0 98 b 0 151 0 141 0 145 l 0 199 l 1 202 b 43 224 5 212 5 212 l 73 234 l 73 367 l 73 502 l 74 505 b 85 514 77 509 81 513 "},v79:{x_min:-1.359375,x_max:899.703125,ha:918,o:"m 307 349 b 332 351 315 351 323 351 b 443 340 367 351 408 347 b 741 47 607 306 720 195 b 744 0 743 31 744 16 b 660 -303 744 -90 713 -206 b 28 -755 534 -531 304 -695 b 14 -756 23 -755 19 -756 b -1 -741 4 -756 -1 -750 b 21 -720 -1 -731 1 -728 b 567 -56 337 -601 548 -344 b 568 -11 568 -41 568 -24 b 442 285 568 129 525 233 b 325 319 406 308 367 319 b 93 177 232 319 137 266 b 84 154 91 170 84 155 b 84 154 84 154 84 154 b 88 156 84 154 85 155 b 159 177 110 170 134 177 b 257 134 194 177 231 162 b 294 41 281 108 294 73 b 171 -97 294 -24 246 -90 b 156 -98 166 -97 161 -98 b 6 74 73 -98 6 -22 b 6 80 6 76 6 79 b 307 349 10 223 141 340 m 839 215 b 845 216 841 216 842 216 b 862 213 852 216 860 215 b 899 163 887 206 899 184 b 872 117 899 145 890 127 b 847 111 865 112 856 111 b 808 130 833 111 818 117 b 796 162 800 140 796 151 b 839 215 796 187 812 212 m 839 -112 b 845 -112 841 -112 842 -112 b 862 -115 852 -112 860 -113 b 899 -165 887 -122 899 -144 b 872 -210 899 -183 890 -201 b 847 -217 865 -215 856 -217 b 808 -198 833 -217 818 -210 b 796 -165 800 -188 796 -177 b 839 -112 796 -140 812 -116 "},v7a:{x_min:-1.359375,x_max:386.5625,ha:394,o:"m 249 535 b 257 537 251 537 253 537 b 276 524 266 537 273 533 l 277 521 l 279 419 l 279 316 l 304 323 b 337 328 319 326 330 328 b 353 316 347 328 349 324 b 355 266 355 315 355 290 b 353 215 355 241 355 217 b 319 198 349 206 347 205 b 279 187 284 190 279 188 b 279 156 279 187 279 174 b 279 136 279 151 279 144 l 279 84 l 289 87 l 330 98 b 367 105 352 102 362 105 b 378 101 372 105 375 104 b 386 61 385 95 386 94 b 386 40 386 55 386 48 l 386 -5 l 385 -8 b 374 -19 383 -12 378 -18 b 291 -40 372 -19 347 -26 b 279 -43 284 -41 279 -43 b 279 -83 279 -43 279 -59 b 279 -95 279 -87 279 -91 l 279 -145 l 304 -140 b 337 -133 321 -136 330 -133 b 349 -140 343 -133 347 -136 b 355 -181 355 -145 355 -142 l 355 -197 l 355 -210 b 349 -252 355 -249 355 -247 b 300 -269 345 -258 347 -258 b 280 -274 291 -272 281 -273 l 279 -274 l 277 -378 l 277 -483 l 276 -487 b 257 -499 273 -495 265 -499 b 238 -487 249 -499 242 -495 l 236 -483 l 236 -384 l 236 -285 l 235 -285 l 212 -291 l 170 -301 b 148 -308 159 -305 148 -306 b 147 -415 147 -308 147 -313 l 147 -523 l 145 -526 b 126 -538 141 -534 133 -538 b 106 -526 118 -538 110 -534 l 104 -523 l 104 -420 b 103 -317 104 -326 104 -317 b 103 -317 103 -317 103 -317 b 50 -330 92 -322 54 -330 b 31 -317 42 -330 35 -326 b 29 -267 29 -315 29 -315 l 29 -219 l 32 -216 b 92 -192 36 -206 36 -206 l 104 -190 l 104 -138 b 103 -87 104 -91 104 -87 b 103 -87 103 -87 103 -87 b 88 -91 103 -87 96 -88 l 49 -101 b 17 -106 32 -105 23 -106 b 6 -102 13 -106 10 -105 b -1 -62 0 -97 -1 -95 b 0 -41 -1 -56 0 -49 l 0 4 l 1 6 b 10 16 2 11 6 15 b 91 37 12 18 38 24 l 104 41 l 104 93 b 103 144 104 140 104 144 b 103 144 103 144 103 144 b 50 131 92 141 54 131 b 31 144 42 131 35 137 b 29 195 29 147 29 148 l 29 242 l 32 245 b 92 269 36 255 36 255 l 104 273 l 104 377 l 104 481 l 106 485 b 126 498 110 492 118 498 b 134 495 129 498 132 496 b 145 485 138 494 142 489 l 147 481 l 147 383 l 147 283 l 152 284 b 190 294 155 285 171 290 l 230 303 l 236 305 l 236 413 l 236 521 l 238 524 b 249 535 240 528 243 533 m 236 126 b 235 177 236 154 236 177 l 235 177 b 213 172 235 177 225 174 l 170 161 b 147 155 157 158 147 155 b 147 124 147 155 147 142 b 147 102 147 117 147 111 l 147 52 l 153 54 l 228 72 l 236 74 l 236 126 m 236 -105 b 235 -54 236 -65 236 -54 l 235 -54 b 231 -55 235 -54 234 -54 b 172 -69 227 -55 204 -62 l 149 -76 l 147 -76 l 147 -127 l 147 -179 l 152 -177 b 190 -167 155 -177 171 -173 l 230 -158 l 236 -156 l 236 -105 "},v7c:{x_min:0,x_max:300.8125,ha:307,o:"m 49 505 b 53 506 50 505 51 506 b 70 496 58 506 62 503 b 81 485 73 492 78 488 l 96 473 l 111 459 l 122 449 l 134 438 l 182 396 l 255 330 b 292 291 292 298 292 298 l 292 290 l 292 284 l 283 270 b 209 36 234 197 209 113 b 288 -170 209 -44 235 -119 b 299 -184 295 -179 299 -181 b 300 -191 300 -187 300 -188 b 285 -206 300 -199 294 -206 b 280 -206 283 -206 281 -206 b 247 -201 270 -202 259 -201 b 176 -222 223 -201 197 -208 b 114 -340 136 -249 114 -292 b 172 -471 114 -384 134 -433 b 185 -492 182 -481 185 -487 b 181 -502 185 -496 183 -499 b 171 -508 176 -505 174 -508 b 152 -498 166 -508 160 -503 b 0 -284 65 -428 12 -352 b 0 -260 0 -278 0 -270 b 1 -238 0 -252 0 -242 b 148 -140 16 -177 73 -140 b 209 -148 167 -140 189 -142 b 215 -149 212 -148 215 -149 b 215 -149 215 -149 215 -149 l 215 -149 b 201 -136 215 -148 209 -142 l 157 -97 l 96 -41 b 17 34 21 24 17 29 b 17 37 17 36 17 36 b 17 38 17 37 17 38 b 25 56 17 44 17 44 b 110 298 81 131 110 219 b 46 474 110 367 88 431 b 38 491 40 480 38 487 b 49 505 38 498 42 502 "},v7d:{x_min:-1.359375,x_max:436.921875,ha:446,o:"m 213 205 b 217 205 215 205 216 205 b 234 194 224 205 234 199 b 236 187 234 194 235 190 l 245 167 l 261 129 l 270 106 b 355 -61 294 54 329 -13 b 420 -163 381 -105 402 -138 b 436 -188 435 -184 436 -184 b 436 -191 436 -190 436 -190 b 421 -206 436 -201 431 -206 l 421 -206 l 416 -206 l 405 -201 b 217 -158 347 -172 283 -158 b 31 -201 153 -158 88 -172 l 20 -206 l 14 -206 l 14 -206 b 0 -191 5 -206 0 -201 b -1 -188 0 -190 -1 -190 b 14 -163 -1 -186 0 -184 b 95 -34 36 -136 72 -77 b 166 106 119 8 148 68 l 175 129 l 183 148 l 200 188 b 213 205 205 199 208 202 "},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 "},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 -823 351 -830 b 586 -718 464 -830 540 -789 b 626 -584 612 -678 626 -631 b 619 -528 626 -566 623 -548 b 612 -495 619 -526 616 -510 b 577 -324 590 -387 577 -324 b 577 -324 577 -324 577 -324 b 568 -326 575 -324 571 -324 b 528 -334 558 -328 537 -333 b 465 -338 506 -337 485 -338 b 24 -11 269 -338 87 -206 b -1 145 8 41 -1 93 b 96 442 -1 249 32 351 b 322 714 166 541 236 626 l 352 745 l 345 782 l 332 843 l 315 921 b 303 984 310 950 304 978 b 295 1082 298 1017 295 1049 b 413 1426 295 1208 336 1329 b 488 1499 436 1456 477 1496 m 549 1301 b 541 1301 547 1301 544 1301 b 411 1207 500 1301 447 1263 b 355 1004 374 1152 355 1079 b 359 942 355 984 356 963 b 371 881 362 927 363 917 l 385 818 b 392 782 389 799 392 784 l 392 782 b 434 828 393 782 424 816 b 607 1165 534 941 594 1060 b 608 1193 608 1175 608 1183 b 597 1270 608 1224 604 1254 b 549 1301 589 1286 571 1299 m 398 528 b 393 555 396 542 393 553 b 392 555 393 555 393 555 b 317 470 390 555 347 505 b 190 298 266 408 212 334 b 127 70 148 227 127 148 b 155 -77 127 19 137 -30 b 468 -303 209 -216 333 -303 b 519 -299 484 -303 502 -302 b 568 -284 541 -295 568 -287 l 568 -284 b 563 -263 568 -284 566 -274 l 534 -120 l 511 -13 l 496 61 l 480 133 b 469 187 472 176 469 187 b 468 188 469 187 469 188 b 416 162 462 188 430 172 b 337 13 364 126 337 69 b 413 -124 337 -40 363 -93 b 428 -144 424 -131 428 -137 b 428 -149 428 -145 428 -148 b 409 -166 426 -161 419 -166 b 394 -162 405 -166 400 -165 b 240 77 302 -122 240 -27 l 240 77 b 430 342 240 197 315 301 l 436 344 l 426 394 l 398 528 m 548 194 b 526 195 540 195 532 195 b 519 195 524 195 521 195 l 514 195 l 518 177 l 539 79 l 552 15 l 566 -48 l 594 -187 l 605 -240 b 612 -266 609 -254 611 -266 b 612 -266 612 -266 612 -266 b 641 -248 613 -266 630 -256 b 744 -98 692 -212 730 -156 b 751 -40 749 -79 751 -59 b 548 194 751 76 665 181 "},v84:{x_min:25.859375,x_max:164.6875,ha:168,o:"m 34 369 b 40 370 35 370 38 370 b 59 353 49 370 50 367 b 164 40 122 254 155 158 b 164 0 164 33 164 16 b 164 -40 164 -16 164 -34 b 59 -353 155 -158 122 -254 b 40 -371 53 -366 47 -371 b 34 -370 38 -371 36 -370 b 25 -358 28 -367 25 -363 b 31 -337 25 -352 27 -347 b 92 0 72 -234 92 -117 b 31 335 92 116 72 233 b 25 356 27 345 25 352 b 34 369 25 363 28 366 "},v86:{x_min:-571.671875,x_max:570.3125,ha:582,o:"m -386 173 b -381 174 -385 174 -383 174 b -370 173 -377 174 -372 173 b -281 86 -367 172 -347 151 b -196 0 -235 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 277 172 b 289 174 285 174 288 174 b 299 173 294 174 298 173 b 462 11 303 172 338 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 374 -176 371 -176 b 280 -87 367 -173 345 -152 b 194 0 234 -38 194 0 b 125 -86 194 0 163 -38 b 49 -174 54 -174 55 -173 b 43 -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 -141 0 -171 -38 b -285 -174 -280 -174 -279 -173 b -291 -176 -287 -176 -289 -176 b -300 -174 -295 -176 -299 -174 b -464 -12 -304 -173 -340 -137 l -476 0 l -504 -34 b -543 -77 -534 -73 -537 -76 b -549 -79 -545 -79 -547 -79 b -571 -58 -562 -79 -571 -69 b -568 -49 -571 -55 -570 -52 b -392 172 -566 -43 -396 167 b -386 173 -390 172 -387 173 "},v8a:{x_min:-170.140625,x_max:168.78125,ha:172,o:"m -160 567 b -122 567 -159 567 -149 567 l -87 567 l -84 566 b -74 553 -78 563 -77 560 b -20 366 -73 551 -49 466 b 31 186 8 267 31 186 b 85 371 31 186 55 269 b 140 559 114 473 138 557 b 153 567 141 564 148 567 b 168 559 159 567 166 564 b 168 555 168 557 168 557 b 92 281 168 548 159 513 b 14 13 50 134 14 13 b 0 0 14 6 6 0 b -17 15 -8 0 -17 8 b -93 283 -17 15 -51 136 b -170 552 -166 533 -170 548 b -170 553 -170 552 -170 552 b -160 567 -170 560 -167 564 "},v8b:{x_min:0,x_max:319.859375,ha:326,o:"m 149 508 b 159 509 152 509 155 509 b 186 494 170 509 181 503 b 190 440 190 487 190 488 l 190 430 l 190 377 l 242 377 l 251 377 b 303 373 298 377 296 377 b 319 345 314 367 319 356 b 304 319 319 335 314 324 b 250 315 296 315 299 315 l 242 315 l 190 315 l 190 262 l 190 252 b 186 198 190 204 190 205 b 159 183 179 188 170 183 b 132 198 148 183 138 188 b 127 252 127 205 127 204 l 127 262 l 127 315 l 76 315 l 68 315 b 14 319 20 315 21 315 b 0 347 4 324 0 335 b 14 373 0 356 4 367 b 68 377 21 377 20 377 l 76 377 l 127 377 l 127 430 l 127 440 b 132 494 127 488 127 487 b 149 508 136 501 142 505 "},v8c:{x_min:-330.75,x_max:329.390625,ha:336,o:"m -133 483 b -117 484 -127 484 -122 484 b 31 373 -51 484 9 440 b 35 348 34 365 35 356 b -25 285 35 313 10 285 b -87 331 -55 285 -76 302 b -167 402 -100 376 -133 402 b -191 398 -175 402 -183 401 b -227 341 -215 388 -227 369 b -225 320 -227 334 -227 327 b -13 74 -209 230 -125 133 b 6 65 -4 70 5 66 l 9 63 l 10 65 b 117 231 12 68 40 112 l 189 341 l 242 424 b 268 460 262 456 264 458 b 283 464 273 463 277 464 b 308 438 296 464 308 453 l 308 437 b 287 396 308 430 308 428 l 95 98 l 59 43 l 58 41 l 65 37 b 253 -156 151 -8 217 -77 b 281 -285 272 -199 281 -244 b 148 -481 281 -381 231 -463 b 115 -485 137 -484 126 -485 b -32 -376 51 -485 -9 -442 b -36 -349 -35 -366 -36 -358 b 25 -287 -36 -315 -12 -287 b 85 -333 54 -287 74 -302 b 166 -403 99 -377 133 -403 b 190 -399 174 -403 182 -402 b 225 -342 215 -390 225 -370 b 224 -322 225 -335 225 -328 b 12 -76 208 -231 125 -134 b -8 -66 2 -72 -6 -68 l -10 -65 l -12 -66 b -118 -231 -13 -68 -42 -113 l -190 -342 l -243 -426 b -269 -462 -264 -458 -265 -458 b -284 -466 -274 -464 -279 -466 b -310 -440 -298 -466 -310 -455 l -310 -438 b -288 -398 -310 -430 -308 -430 l -96 -99 l -59 -44 l -59 -43 l -66 -38 b -281 284 -198 33 -281 158 l -281 284 b -133 483 -281 392 -220 474 m 254 177 b 266 179 258 177 262 179 b 319 149 287 179 307 167 b 329 115 326 140 329 127 b 319 79 329 102 326 90 b 268 51 307 61 287 51 b 221 72 250 51 234 58 b 205 115 210 84 205 99 b 254 177 205 142 223 170 m -281 -54 b -269 -52 -277 -52 -273 -52 b -223 -73 -253 -52 -235 -59 b -206 -116 -212 -84 -206 -101 b -216 -151 -206 -129 -209 -141 b -269 -179 -228 -170 -249 -179 b -314 -159 -285 -179 -302 -173 b -330 -116 -325 -147 -330 -131 b -281 -54 -330 -88 -313 -61 "},v8d:{x_min:-1.359375,x_max:255.890625,ha:261,o:"m 118 514 b 127 517 121 517 122 517 b 147 505 136 517 142 513 l 148 502 l 148 403 b 148 306 148 351 148 306 b 174 315 149 306 160 310 l 200 324 l 205 323 b 223 312 213 323 220 319 l 225 308 l 225 260 b 225 245 225 255 225 249 b 220 204 225 208 224 209 b 179 188 216 199 215 199 l 148 177 l 148 124 l 148 70 l 189 84 b 236 98 219 94 230 98 b 247 94 240 98 243 97 b 255 52 254 88 255 87 b 255 33 255 47 255 40 l 254 -12 l 253 -15 b 249 -22 253 -18 250 -20 l 245 -24 l 196 -41 l 148 -58 l 148 -108 b 148 -158 148 -136 148 -158 b 174 -148 148 -158 160 -154 b 204 -140 198 -140 200 -140 l 204 -140 b 224 -152 213 -140 221 -145 b 225 -201 224 -155 225 -177 b 224 -254 225 -226 224 -251 b 157 -284 220 -262 220 -262 l 148 -288 l 148 -395 l 148 -503 l 147 -506 b 127 -519 142 -514 134 -519 b 107 -506 119 -519 111 -514 l 106 -503 l 106 -403 b 106 -303 106 -316 106 -303 b 104 -303 104 -303 104 -303 b 88 -310 104 -303 96 -306 l 63 -319 b 51 -322 59 -320 55 -322 b 36 -315 46 -322 40 -319 b 31 -273 32 -309 31 -312 b 31 -258 31 -269 31 -263 l 31 -210 l 34 -206 b 40 -198 35 -204 38 -199 b 74 -186 42 -197 57 -191 l 106 -173 l 106 -123 b 106 -97 106 -112 106 -104 b 106 -72 106 -76 106 -72 b 104 -72 106 -72 106 -72 b 20 -99 89 -79 23 -99 b 0 -84 10 -99 2 -93 b -1 -37 0 -81 -1 -59 b 0 11 -1 -15 0 9 b 58 40 4 22 2 22 l 106 56 l 106 109 b 106 123 106 115 106 119 b 106 162 106 147 106 162 b 81 155 106 162 93 159 b 50 147 65 149 55 147 b 36 152 43 147 40 148 b 31 194 32 158 31 156 b 31 209 31 198 31 204 l 31 256 l 34 260 b 76 281 38 269 38 269 l 106 292 l 106 396 l 106 502 l 107 505 b 118 514 110 509 114 513 "},v8f:{x_min:-21.78125,x_max:362.0625,ha:369,o:"m 302 1031 b 308 1032 304 1032 307 1032 b 330 1016 318 1032 325 1027 b 362 867 351 970 362 920 b 340 738 362 824 353 780 l 336 727 l 340 717 b 362 591 355 677 362 634 b 257 323 362 496 325 401 b 204 272 243 306 227 290 b 20 56 129 206 66 133 b -1 18 12 44 0 22 b -19 4 -4 9 -12 4 l -21 4 l -21 140 l -21 276 l -12 277 b 167 333 61 288 127 309 b 319 598 262 388 319 491 b 311 664 319 620 317 642 l 310 673 l 304 664 b 204 548 279 620 250 587 b 20 333 129 483 66 409 b -1 292 12 320 0 298 b -19 280 -4 285 -12 280 l -21 280 l -21 416 l -21 552 l -12 553 b 167 609 61 564 127 585 b 319 874 264 666 319 770 b 294 992 319 914 311 954 b 288 1011 288 1004 288 1007 b 302 1031 288 1021 294 1028 "},v90:{x_min:-171.5,x_max:483.1875,ha:493,o:"m -8 631 b -1 632 -6 632 -4 632 b 19 620 8 632 16 628 b 20 495 20 616 20 616 b 20 373 20 427 20 373 b 115 410 20 373 63 390 l 210 448 l 210 531 b 212 620 210 614 210 616 b 231 632 215 628 223 632 b 246 627 236 632 242 631 b 251 541 251 620 251 628 l 251 463 l 315 489 b 387 514 368 509 381 514 b 393 513 390 514 392 514 b 406 494 402 510 406 502 b 397 476 406 487 404 480 b 323 446 396 474 363 462 l 251 417 l 251 283 l 251 148 l 254 151 b 370 199 291 183 332 199 b 415 191 385 199 400 197 b 483 84 458 176 483 134 b 461 0 483 58 476 29 b 332 -142 439 -40 411 -72 l 255 -215 b 231 -229 240 -229 239 -229 b 216 -223 224 -229 220 -227 b 210 -158 210 -217 210 -223 b 210 -120 210 -148 210 -136 l 210 -29 l 205 -34 b 100 -142 182 -65 159 -88 l 23 -215 b -1 -229 9 -229 6 -229 b -19 -217 -9 -229 -16 -224 l -20 -215 l -21 48 l -21 310 l -83 287 b -152 262 -133 266 -145 262 b -157 263 -153 262 -155 262 b -171 283 -166 266 -171 274 b -161 301 -171 290 -167 297 b -91 328 -160 302 -129 315 l -21 356 l -21 487 l -20 617 l -19 621 b -8 631 -17 626 -12 630 m 210 288 b 210 401 210 351 210 401 b 114 365 209 401 167 384 l 20 327 l 20 238 l 20 148 l 21 151 b 140 199 59 183 102 199 b 206 180 164 199 187 192 l 209 177 b 209 177 209 177 209 177 b 210 288 210 177 210 199 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 m 341 131 b 328 133 337 133 332 133 b 322 133 326 133 323 133 b 257 87 296 129 273 113 l 251 80 l 251 -37 l 251 -156 l 255 -152 b 375 81 328 -72 375 20 l 375 83 b 341 131 375 113 367 126 "},v92:{x_min:0,x_max:598.890625,ha:611,o:"m 62 181 b 77 183 66 183 72 183 b 91 181 83 183 88 183 b 202 131 100 180 106 177 l 299 87 l 394 131 b 517 183 499 181 502 183 b 519 183 517 183 518 183 b 598 104 567 183 598 144 b 577 49 598 84 592 65 b 518 15 567 38 563 37 b 484 0 499 6 484 0 b 518 -16 484 -1 499 -8 b 577 -51 563 -38 567 -40 b 598 -105 592 -66 598 -86 b 519 -184 598 -145 567 -184 b 517 -184 518 -184 517 -184 b 394 -133 502 -184 499 -183 l 299 -88 l 202 -133 b 81 -184 99 -183 95 -184 b 77 -184 80 -184 78 -184 b 0 -105 29 -184 0 -145 b 20 -51 0 -86 5 -66 b 80 -16 29 -40 34 -38 b 114 -1 98 -8 114 -1 b 80 15 114 0 98 6 b 20 49 34 37 29 38 b 0 104 6 65 0 84 b 62 181 0 140 23 174 m 88 134 b 74 136 85 134 80 136 b 68 134 72 136 69 136 b 46 104 54 130 46 117 b 55 81 46 95 49 88 b 149 34 59 76 53 80 b 224 -1 190 15 224 0 b 144 -38 224 -1 187 -18 b 54 -84 59 -79 58 -79 b 46 -105 49 -90 46 -98 b 76 -137 46 -122 58 -137 b 78 -137 77 -137 77 -137 b 194 -86 87 -137 76 -141 b 298 -36 250 -58 298 -36 b 298 -36 298 -36 298 -36 b 402 -84 299 -36 345 -58 b 518 -137 522 -141 510 -137 b 521 -137 519 -137 519 -137 b 551 -105 539 -137 551 -122 b 541 -83 551 -98 548 -90 b 447 -36 537 -77 544 -81 b 374 -1 406 -16 374 -1 b 447 34 374 0 406 15 b 541 81 544 80 537 76 b 551 104 548 88 551 97 b 521 136 551 120 539 136 b 518 136 519 136 519 136 b 517 136 518 136 517 136 l 517 136 b 402 83 511 136 511 136 b 298 34 345 56 299 34 b 298 34 298 34 298 34 b 194 84 298 34 250 56 b 88 134 137 111 89 133 "},v93:{x_min:0,x_max:438.28125,ha:447,o:"m 212 205 b 219 205 213 205 216 205 b 239 183 228 205 231 204 b 421 -163 298 40 363 -83 b 438 -191 434 -180 438 -186 b 436 -197 438 -192 438 -195 b 424 -206 434 -204 431 -206 b 406 -201 420 -206 415 -205 b 216 -156 347 -172 281 -156 b 23 -205 148 -156 80 -173 b 14 -206 20 -206 17 -206 b 0 -191 6 -206 0 -201 b 6 -176 0 -187 1 -183 b 202 192 63 -104 142 45 b 212 205 205 199 208 202 m 264 48 l 249 81 l 243 94 l 242 91 b 89 -126 208 36 137 -66 b 81 -138 85 -133 81 -138 b 81 -138 81 -138 81 -138 b 81 -138 81 -138 81 -138 b 95 -133 81 -138 87 -136 b 280 -94 156 -108 221 -94 b 334 -98 299 -94 317 -95 b 343 -99 338 -99 343 -99 b 343 -99 343 -99 343 -99 b 338 -94 343 -99 341 -97 b 264 48 318 -58 287 1 "},v94:{x_min:-149.71875,x_max:148.359375,ha:151,o:"m -9 215 b 0 217 -6 217 -4 217 b 19 205 8 217 14 213 b 20 142 20 202 20 201 l 20 84 l 23 84 b 144 -27 81 74 129 30 b 148 -66 147 -40 148 -54 b 36 -213 148 -134 103 -197 b 0 -219 24 -217 12 -219 b -145 -104 -68 -219 -129 -173 b -149 -68 -148 -91 -149 -79 b -24 84 -149 6 -98 74 l -21 84 l -21 142 b -19 205 -20 201 -20 202 b -9 215 -17 209 -13 213 m -21 -15 b -23 41 -21 37 -21 41 b -23 41 -23 41 -23 41 b -76 11 -35 40 -62 26 b -108 -65 -98 -11 -108 -38 b -1 -176 -108 -122 -65 -176 b 107 -65 63 -176 107 -122 b 74 11 107 -38 96 -11 b 20 41 61 26 32 41 b 20 -15 20 41 20 15 b 19 -74 20 -72 20 -72 b 0 -87 14 -83 6 -87 b -19 -74 -8 -87 -16 -83 b -21 -15 -20 -72 -20 -72 "},v95:{x_min:0,x_max:406.96875,ha:415,o:"m 55 181 b 70 183 61 183 66 183 b 111 170 85 183 99 179 b 160 130 115 167 137 149 l 202 95 l 245 130 b 319 181 299 176 302 179 b 334 183 325 183 330 183 b 406 109 375 183 406 148 b 401 81 406 99 405 91 b 348 24 394 65 390 59 b 318 -1 332 11 318 0 b 348 -26 318 -1 332 -12 b 401 -83 390 -61 394 -66 b 406 -111 405 -93 406 -101 b 334 -184 406 -149 375 -184 b 319 -183 330 -184 325 -184 b 245 -131 302 -180 299 -177 l 202 -97 l 160 -131 b 85 -183 107 -177 103 -180 b 70 -184 80 -184 76 -184 b 0 -111 31 -184 0 -149 b 4 -83 0 -101 1 -93 b 58 -26 10 -66 16 -61 b 88 -1 74 -12 88 -1 b 58 24 88 0 74 11 b 10 69 23 54 17 59 b 0 109 2 81 0 95 b 55 181 0 142 21 173 m 83 133 b 72 136 78 136 76 136 b 57 131 66 136 61 134 b 46 109 49 126 46 117 b 50 93 46 104 47 98 b 107 45 51 91 77 70 b 160 0 137 20 160 0 b 107 -47 160 -1 137 -22 b 50 -94 77 -72 51 -93 b 46 -111 47 -99 46 -105 b 59 -134 46 -120 50 -130 b 72 -137 62 -136 68 -137 b 83 -136 76 -137 80 -136 b 144 -84 84 -134 107 -116 b 202 -36 176 -58 202 -36 b 261 -84 202 -36 230 -58 b 323 -136 299 -116 321 -134 b 334 -137 326 -136 330 -137 b 345 -134 338 -137 343 -136 b 360 -111 355 -130 360 -120 b 355 -94 360 -105 359 -99 b 299 -47 353 -93 329 -72 b 245 0 269 -22 245 -1 b 299 45 245 0 269 20 b 355 93 329 70 353 91 b 360 109 359 98 360 104 b 345 133 360 119 355 129 b 334 136 343 134 338 136 b 323 134 330 136 326 134 b 261 83 321 133 299 115 b 202 34 230 56 202 34 b 144 83 202 34 176 56 b 83 133 106 115 84 133 "},v97:{x_min:-228.671875,x_max:227.3125,ha:232,o:"m -217 487 l -213 488 l 0 488 l 212 488 l 216 487 b 225 476 220 484 224 480 l 227 473 l 227 244 l 227 15 l 225 12 b 206 0 223 4 215 0 b 197 1 204 0 200 0 b 187 12 193 4 189 6 l 186 15 l 186 138 l 186 262 l -1 262 l -187 262 l -187 138 l -187 15 l -189 12 b -208 0 -193 4 -200 0 b -227 12 -216 0 -223 4 l -228 15 l -228 244 l -228 473 l -227 476 b -217 487 -225 480 -221 484 "},v9a:{x_min:-21.78125,x_max:367.5,ha:375,o:"m 230 1031 b 238 1032 232 1032 235 1032 b 259 1014 245 1032 251 1027 b 367 662 330 906 367 782 b 364 602 367 641 367 621 b 232 317 352 488 304 384 b 57 120 155 245 103 187 b -1 18 31 84 6 40 b -19 4 -4 11 -12 4 l -21 4 l -21 159 l -21 315 l -16 315 b 96 335 10 315 62 324 b 315 695 227 380 315 527 b 313 738 315 709 314 724 b 224 991 304 825 273 916 b 216 1013 219 999 216 1007 b 230 1031 216 1021 220 1028 "},v9b:{x_min:-24.5,x_max:313.0625,ha:319,o:"m -24 -133 l -24 -5 l -20 -5 b -1 -19 -12 -5 -4 -11 b 142 -213 13 -61 74 -144 b 258 -376 196 -269 230 -315 b 313 -605 295 -449 313 -528 b 292 -742 313 -652 306 -699 b 288 -752 289 -748 288 -752 b 288 -752 288 -752 288 -752 b 292 -764 289 -753 291 -757 b 313 -907 306 -811 313 -860 b 292 -1045 313 -954 306 -1002 b 288 -1054 289 -1050 288 -1054 b 288 -1054 288 -1054 288 -1054 b 292 -1067 289 -1054 291 -1060 b 313 -1210 306 -1113 313 -1161 b 292 -1346 313 -1257 306 -1304 b 288 -1357 289 -1353 288 -1357 b 288 -1357 288 -1357 288 -1357 b 292 -1368 289 -1357 291 -1363 b 313 -1512 306 -1415 313 -1464 b 292 -1648 313 -1560 306 -1605 b 288 -1660 289 -1654 288 -1660 b 288 -1660 288 -1660 288 -1660 b 292 -1671 289 -1660 291 -1665 b 313 -1814 306 -1719 313 -1766 b 250 -2040 313 -1897 291 -1977 b 232 -2062 238 -2057 236 -2059 b 221 -2065 230 -2063 225 -2065 b 200 -2045 210 -2065 201 -2057 b 200 -2043 200 -2044 200 -2044 b 208 -2026 200 -2037 202 -2034 b 269 -1826 249 -1966 269 -1897 b 153 -1544 269 -1726 230 -1625 b -9 -1472 115 -1506 58 -1481 b -21 -1471 -14 -1471 -19 -1471 l -24 -1471 l -24 -1343 l -24 -1215 l -20 -1215 b -1 -1229 -12 -1215 -4 -1221 b 142 -1424 13 -1270 74 -1353 b 257 -1582 196 -1478 228 -1524 b 264 -1594 261 -1589 264 -1594 l 264 -1594 b 265 -1582 264 -1594 264 -1589 b 270 -1525 268 -1562 270 -1544 b 153 -1243 270 -1424 228 -1321 b -9 -1170 115 -1203 58 -1178 b -21 -1168 -14 -1170 -19 -1168 l -24 -1168 l -24 -1041 l -24 -913 l -20 -913 b -1 -927 -12 -913 -4 -918 b 142 -1121 13 -967 74 -1050 b 257 -1281 196 -1175 228 -1221 b 264 -1292 261 -1286 264 -1292 l 264 -1292 b 265 -1279 264 -1292 264 -1286 b 270 -1222 268 -1261 270 -1242 b 153 -941 270 -1121 228 -1018 b -9 -867 115 -900 58 -875 b -21 -866 -14 -867 -19 -866 l -24 -866 l -24 -738 l -24 -610 l -20 -610 b -1 -624 -12 -610 -4 -616 b 142 -818 13 -664 74 -749 b 257 -978 196 -873 228 -918 b 264 -989 261 -984 264 -989 l 264 -989 b 265 -977 264 -989 264 -984 b 270 -920 268 -959 270 -939 b 153 -638 270 -818 228 -716 b -9 -564 115 -598 58 -573 b -21 -563 -14 -564 -19 -563 l -24 -563 l -24 -435 l -24 -308 l -20 -308 b -1 -322 -12 -308 -4 -313 b 142 -516 13 -363 74 -446 b 257 -675 196 -571 228 -616 b 264 -687 261 -681 264 -687 l 264 -687 b 265 -674 264 -687 264 -681 b 270 -617 268 -656 270 -637 b 153 -335 270 -516 228 -413 b -9 -262 115 -295 58 -270 b -21 -260 -14 -262 -19 -260 l -24 -260 l -24 -133 "},v9c:{x_min:-166.0625,x_max:-25.859375,ha:0,o:"m -49 369 b -42 370 -46 369 -44 370 b -27 360 -36 370 -29 366 b -25 355 -27 359 -25 358 b -32 335 -25 351 -28 347 b -92 52 -66 248 -87 159 b -93 -1 -93 43 -93 20 b -92 -54 -93 -23 -93 -45 b -32 -337 -85 -162 -66 -251 b -25 -355 -27 -349 -25 -352 b -42 -371 -25 -365 -32 -371 b -61 -353 -50 -371 -51 -369 b -163 -63 -119 -262 -153 -165 b -166 -1 -166 -37 -166 -31 b -163 62 -166 30 -166 36 b -61 352 -153 163 -119 260 b -49 369 -54 365 -51 366 "},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 "},va3:{x_min:58.53125,x_max:228.671875,ha:294,o:"m 138 371 b 142 373 140 371 141 373 b 178 342 149 373 156 366 b 228 251 217 297 228 278 b 228 244 228 248 228 247 b 176 147 227 212 212 184 b 123 73 152 122 132 93 b 121 62 122 70 121 66 b 145 13 121 48 129 31 b 153 -2 151 6 153 1 b 149 -9 153 -5 152 -6 b 144 -11 148 -11 145 -11 b 129 -1 140 -11 136 -8 b 61 87 89 37 68 68 b 58 113 59 95 58 105 b 110 215 58 144 74 177 b 163 287 134 240 155 269 b 166 299 166 291 166 295 b 141 348 166 313 157 330 b 133 360 134 356 133 358 b 133 363 133 362 133 362 b 138 371 133 367 136 370 "},va5:{x_min:0,x_max:349.8125,ha:357,o:"m 88 302 b 103 303 93 302 98 303 b 202 224 149 303 191 270 b 205 199 204 216 205 208 b 178 129 205 173 196 147 l 175 126 l 182 127 b 307 249 236 142 284 190 b 313 259 308 254 311 258 b 329 267 317 265 323 267 b 349 247 340 267 349 259 b 201 -263 349 242 204 -258 b 182 -273 197 -270 190 -273 b 163 -260 174 -273 166 -269 b 161 -256 161 -259 161 -258 b 217 -59 161 -248 170 -220 b 272 129 247 43 272 127 b 272 129 272 129 272 129 b 264 122 272 129 268 126 b 140 80 227 94 183 80 b 36 115 102 80 65 91 b 0 194 10 136 0 165 b 88 302 0 244 32 292 "},va9:{x_min:-24.5,x_max:314.421875,ha:321,o:"m -24 -145 l -24 -5 l -20 -5 b 0 -23 -9 -5 -2 -12 b 27 -87 4 -38 14 -66 b 138 -220 53 -136 88 -177 b 235 -328 179 -255 208 -288 b 314 -592 287 -409 314 -501 b 292 -732 314 -639 307 -687 l 289 -742 l 294 -756 b 314 -896 307 -802 314 -849 b 292 -1035 314 -943 307 -991 l 289 -1045 l 294 -1057 b 314 -1197 307 -1104 314 -1152 b 292 -1338 314 -1246 307 -1292 l 289 -1347 l 294 -1360 b 314 -1500 307 -1407 314 -1454 b 273 -1689 314 -1565 300 -1628 b 250 -1712 265 -1710 261 -1712 b 228 -1691 236 -1712 228 -1704 l 228 -1685 l 234 -1675 b 270 -1507 258 -1621 270 -1564 b 98 -1193 270 -1381 209 -1261 b 40 -1174 76 -1179 58 -1174 b -10 -1189 24 -1174 8 -1178 b -20 -1192 -14 -1192 -16 -1192 l -24 -1192 l -24 -1052 l -24 -913 l -20 -913 b 0 -931 -9 -913 -2 -920 b 27 -995 4 -946 14 -974 b 138 -1128 53 -1043 88 -1085 b 257 -1275 190 -1172 228 -1220 b 262 -1283 259 -1279 262 -1283 l 262 -1283 b 269 -1249 264 -1282 268 -1260 b 270 -1206 270 -1233 270 -1220 b 98 -891 270 -1075 206 -957 b 40 -871 76 -877 58 -871 b -10 -886 24 -871 8 -875 b -20 -889 -14 -889 -16 -889 l -24 -889 l -24 -749 l -24 -610 l -20 -610 b 0 -628 -9 -610 -2 -617 b 27 -692 4 -644 14 -671 b 138 -825 53 -741 88 -782 b 257 -973 190 -870 228 -917 b 262 -981 259 -977 262 -981 l 262 -981 b 269 -946 264 -979 268 -957 b 270 -903 270 -931 270 -917 b 98 -588 270 -774 206 -655 b 40 -569 76 -574 58 -569 b -10 -584 24 -569 8 -574 b -20 -587 -14 -587 -16 -587 l -24 -587 l -24 -448 l -24 -308 l -20 -308 b 0 -326 -9 -308 -2 -315 b 27 -390 4 -341 14 -369 b 138 -523 53 -438 88 -480 b 257 -670 190 -567 228 -614 b 262 -678 259 -674 262 -678 b 262 -678 262 -678 262 -678 b 269 -644 264 -677 268 -656 b 270 -601 270 -628 270 -614 b 98 -285 270 -471 206 -352 b 40 -266 76 -273 58 -266 b -10 -281 24 -266 8 -272 b -20 -284 -14 -284 -16 -284 l -24 -284 l -24 -145 "},vaa:{x_min:-1.359375,x_max:752.703125,ha:768,o:"m 490 985 b 504 986 495 986 500 986 b 604 907 551 986 593 954 b 607 884 607 900 607 892 b 581 813 607 857 597 831 l 578 810 l 583 811 b 710 932 638 827 687 873 b 714 943 711 936 713 942 b 730 952 720 949 725 952 b 752 931 741 952 752 943 b 200 -946 752 927 204 -941 b 182 -957 197 -953 190 -957 b 163 -945 174 -957 166 -953 b 161 -939 161 -942 161 -942 b 217 -743 161 -931 170 -904 b 272 -555 247 -639 272 -555 b 272 -555 272 -555 272 -555 b 264 -560 272 -555 268 -557 b 140 -603 227 -589 182 -603 b 36 -567 102 -603 65 -592 b -1 -487 12 -548 -1 -517 b 17 -427 -1 -466 5 -445 b 103 -380 38 -395 70 -380 b 191 -433 137 -380 172 -398 b 205 -484 201 -448 205 -466 b 178 -553 205 -509 196 -535 l 175 -557 l 182 -555 b 307 -435 236 -539 284 -494 b 372 -213 308 -430 372 -215 b 372 -213 372 -213 372 -213 b 364 -219 372 -213 368 -216 b 240 -262 328 -247 283 -262 b 137 -226 202 -262 166 -249 b 99 -145 112 -206 99 -176 b 118 -84 99 -124 106 -104 b 204 -38 138 -54 171 -38 b 292 -91 238 -38 273 -56 b 306 -141 302 -106 306 -124 b 279 -212 306 -167 296 -194 l 276 -215 l 281 -213 b 408 -93 336 -198 385 -151 b 473 129 409 -88 473 127 b 473 129 473 129 473 129 b 465 122 473 129 469 126 b 341 80 428 94 383 80 b 236 115 303 80 266 91 b 200 195 213 136 200 165 b 217 256 200 217 206 238 b 304 303 239 287 272 303 b 393 249 338 303 374 285 b 406 199 402 234 406 217 b 379 129 406 173 397 148 l 377 126 l 382 127 b 509 248 436 142 485 190 b 574 470 510 254 574 469 b 574 470 574 470 574 470 b 566 464 574 470 570 467 b 442 421 529 435 484 421 b 337 458 404 421 367 433 b 300 538 314 477 300 508 b 318 598 300 559 306 580 b 404 645 340 630 372 645 b 494 592 439 645 475 627 b 507 541 502 577 507 559 b 480 471 507 516 498 489 l 477 467 l 483 470 b 608 589 537 485 586 531 b 675 811 611 595 675 810 b 675 811 675 811 675 811 b 666 806 675 811 671 809 b 543 763 628 777 585 763 b 438 799 504 763 468 775 b 401 878 412 820 401 849 b 490 985 401 928 434 977 "},vab:{x_min:0,x_max:272.21875,ha:278,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 "},vad:{x_min:0,x_max:873.828125,ha:892,o:"m 0 0 l 0 703 l 81 703 l 164 703 l 164 0 l 164 -705 l 81 -705 l 0 -705 l 0 0 m 225 0 l 225 703 l 246 703 l 268 703 l 268 366 l 268 30 l 274 36 b 314 79 284 44 302 63 b 413 302 357 137 392 213 b 432 327 419 324 421 327 b 449 306 443 327 447 322 b 611 115 457 195 529 115 b 651 122 624 115 638 117 b 728 316 705 140 724 188 b 729 388 728 342 729 366 b 671 635 729 533 711 602 b 581 662 649 652 616 662 b 477 637 545 662 510 653 l 475 635 l 477 634 b 503 627 488 632 495 631 b 545 556 532 612 545 584 b 491 480 545 524 526 491 b 465 474 481 476 473 474 b 379 563 417 474 379 516 b 389 602 379 576 382 588 b 541 691 409 641 479 681 b 582 694 555 692 568 694 b 865 462 714 694 834 598 b 873 392 871 440 873 416 b 865 317 873 367 871 341 b 639 84 839 194 748 101 b 612 83 630 83 620 83 b 511 116 577 83 543 94 b 504 120 509 119 506 120 b 504 120 504 120 504 120 b 469 59 504 120 488 93 l 432 -1 l 469 -61 b 504 -122 488 -94 504 -122 b 504 -122 504 -122 504 -122 b 511 -117 506 -122 509 -120 b 612 -84 543 -95 577 -84 b 665 -91 630 -84 647 -87 b 869 -338 771 -122 850 -216 b 873 -392 872 -356 873 -374 b 798 -595 873 -469 847 -539 b 581 -695 741 -662 660 -695 b 406 -626 517 -695 454 -671 b 381 -563 389 -607 381 -585 b 465 -477 381 -519 413 -477 b 545 -559 514 -477 545 -519 b 503 -628 545 -587 532 -613 b 477 -635 495 -632 488 -634 l 475 -637 l 477 -638 b 581 -663 510 -655 545 -663 b 671 -637 616 -663 649 -653 b 729 -391 711 -603 729 -534 b 728 -317 729 -367 728 -344 b 623 -117 722 -173 698 -124 b 611 -116 619 -116 615 -116 b 449 -308 528 -116 457 -198 b 432 -328 447 -323 443 -328 b 413 -303 421 -328 419 -326 b 314 -80 392 -215 357 -138 b 274 -37 302 -65 284 -45 l 268 -31 l 268 -367 l 268 -705 l 246 -705 l 225 -705 l 225 0 "},vb1:{x_min:78.9375,x_max:485.921875,ha:417,o:"m 362 378 b 378 380 367 380 372 380 b 472 348 415 380 453 367 b 485 315 481 338 485 327 b 462 273 485 298 477 281 b 439 267 454 269 446 267 b 398 290 424 267 409 274 b 344 319 385 309 364 319 b 281 269 315 319 289 301 b 279 262 280 266 279 262 b 276 256 279 260 277 258 b 274 249 276 254 274 251 b 238 127 273 248 257 192 b 201 4 217 61 201 5 b 166 -1 198 -1 200 -1 b 153 -1 163 -1 157 -1 b 141 -1 148 -1 144 -1 b 104 4 106 -1 107 -1 b 104 6 104 5 104 5 b 142 144 104 13 110 34 b 182 278 164 219 181 276 b 183 288 182 281 182 285 b 185 302 185 292 185 298 b 164 330 185 317 176 328 b 159 330 163 330 161 330 b 102 302 140 330 119 320 b 91 294 95 295 93 294 b 88 294 91 294 89 294 b 78 303 83 294 78 298 b 81 312 78 306 78 309 b 200 373 106 347 160 373 b 215 371 205 373 209 371 b 266 335 235 367 254 353 b 269 331 268 333 269 331 b 269 331 269 331 269 331 b 273 335 269 331 270 334 b 362 378 298 359 330 376 "},vb3:{x_min:0,x_max:227.3125,ha:232,o:"m 91 213 b 100 215 93 215 96 215 b 227 58 167 215 224 144 b 227 52 227 56 227 54 b 61 -201 227 -43 164 -138 b 29 -216 44 -212 36 -216 b 23 -210 27 -216 24 -213 b 21 -205 21 -208 21 -206 b 34 -192 21 -201 25 -197 b 122 -55 89 -161 122 -106 b 104 6 122 -33 117 -12 l 103 9 l 96 9 b 4 79 57 9 17 38 b 0 112 1 90 0 101 b 91 213 0 163 36 209 "},vb4:{x_min:-597.53125,x_max:596.171875,ha:608,o:"m -533 324 b -525 327 -530 326 -528 327 b -504 305 -514 327 -504 317 b -504 305 -504 305 -504 305 b -513 284 -504 299 -504 299 b -556 112 -541 226 -556 167 b -545 33 -556 84 -552 58 b -524 -20 -541 15 -532 -9 l -522 -23 l -491 15 l -413 111 b -355 174 -367 169 -363 174 b -351 174 -353 174 -352 174 b -254 86 -343 174 -348 179 b -168 -1 -208 37 -168 -1 b -100 84 -168 -1 -137 37 b -23 173 -28 173 -29 172 b -19 174 -21 174 -20 174 b -8 173 -14 174 -10 173 b 80 86 -5 172 13 151 b 166 -1 127 37 166 -1 b 235 84 166 -1 197 37 b 311 173 306 173 304 172 b 317 174 313 174 314 174 b 326 173 319 174 323 173 b 490 11 329 172 366 134 l 502 -1 l 530 34 b 568 76 560 72 563 74 b 575 77 570 77 573 77 b 596 56 586 77 596 68 b 594 48 596 54 596 51 b 417 -172 592 41 424 -166 b 405 -176 415 -174 409 -176 b 396 -174 401 -176 398 -176 b 307 -87 393 -173 372 -152 b 221 -1 259 -38 221 -1 b 152 -86 221 -1 190 -38 b 76 -176 81 -174 83 -173 b 70 -176 74 -176 73 -176 b 61 -174 66 -176 62 -174 b -27 -87 58 -173 38 -152 b -114 -1 -74 -38 -112 -1 b -182 -86 -114 -1 -145 -38 b -258 -176 -253 -174 -253 -173 b -264 -176 -259 -176 -262 -176 b -274 -174 -268 -176 -272 -174 b -438 -11 -277 -173 -348 -102 l -449 0 l -479 -37 b -524 -80 -513 -80 -514 -80 l -524 -80 b -553 -52 -534 -80 -540 -74 b -597 109 -583 -8 -597 48 b -560 280 -597 165 -585 224 b -533 324 -548 310 -540 322 "},vb6:{x_min:0,x_max:556.6875,ha:568,o:"m 289 545 b 298 546 292 545 295 546 b 318 533 306 546 315 541 b 319 428 319 530 319 528 l 319 327 l 334 327 b 526 223 412 326 485 285 b 543 172 537 206 543 190 b 447 76 543 122 503 76 b 445 76 446 76 446 76 b 359 165 394 77 359 119 b 368 205 359 179 362 192 b 441 251 382 233 412 251 b 455 249 446 251 451 251 b 460 248 458 249 460 248 b 460 248 460 248 460 248 b 454 254 460 249 458 251 b 334 295 419 280 378 294 l 319 295 l 319 4 l 319 -287 l 321 -285 b 328 -285 322 -285 325 -285 b 524 -99 424 -277 507 -198 b 541 -79 526 -84 530 -79 b 556 -97 551 -79 556 -84 b 548 -133 556 -105 553 -117 b 334 -317 521 -233 434 -306 b 322 -319 329 -317 323 -317 l 319 -319 l 319 -424 b 319 -471 319 -444 319 -459 b 313 -541 319 -544 318 -535 b 298 -548 308 -545 303 -548 b 279 -534 289 -548 281 -542 b 277 -424 277 -531 277 -530 l 277 -317 l 273 -317 b 13 -95 153 -305 51 -217 b 0 2 4 -62 0 -29 b 182 295 0 126 66 238 b 274 324 210 309 249 320 l 277 324 l 277 427 b 279 533 277 528 277 530 b 289 545 281 538 285 542 m 277 2 b 277 291 277 161 277 291 b 268 288 277 291 273 290 b 144 1 179 265 144 184 b 276 -284 144 -199 175 -267 l 277 -285 l 277 2 "},vb7:{x_min:-176.9375,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 503 20 616 20 614 b 20 391 20 442 20 391 b 84 424 20 391 49 406 l 147 456 l 152 456 b 153 456 153 456 153 456 b 175 435 166 456 175 446 b 172 427 175 433 174 430 b 92 380 170 420 172 421 l 20 342 l 20 245 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 100 -142 206 -40 178 -72 l 23 -215 b 0 -229 9 -229 6 -229 b -20 -216 -9 -229 -17 -224 b -21 54 -21 -212 -21 -212 b -21 322 -21 201 -21 322 b -85 290 -21 322 -50 308 l -148 256 l -153 256 b -155 256 -155 256 -155 256 b -176 277 -167 256 -176 266 b -174 285 -176 280 -175 283 b -93 333 -171 294 -174 292 l -21 370 l -21 494 b -20 620 -21 616 -21 616 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 "},vb9:{x_min:-122.5,x_max:121.140625,ha:124,o:"m -16 145 b 0 147 -10 147 -5 147 b 121 -1 66 147 121 77 b 114 -49 121 -16 118 -33 b -1 -148 95 -112 47 -148 b -85 -106 -31 -148 -61 -134 b -122 -1 -110 -76 -122 -38 b -16 145 -122 68 -81 134 m 12 111 b 0 113 8 113 4 113 b -68 22 -29 113 -61 73 b -70 0 -69 15 -70 6 b -13 -113 -70 -49 -47 -98 b -1 -115 -9 -115 -5 -115 b 63 -40 24 -115 53 -83 b 68 -1 66 -27 68 -15 b 12 111 68 48 46 97 "},vba:{x_min:-118.421875,x_max:597.53125,ha:381,o:"m 460 574 b 464 574 461 574 462 574 b 488 574 470 574 481 574 b 500 573 491 574 498 574 b 594 503 543 570 588 538 b 597 488 596 498 597 494 b 528 417 597 449 564 417 b 502 423 519 417 510 419 b 465 481 477 434 465 458 b 488 528 465 499 472 516 b 490 530 490 530 490 530 b 490 530 490 530 490 530 b 468 517 488 530 475 523 b 349 340 419 485 377 420 b 347 330 348 334 347 330 b 383 328 347 328 363 328 b 428 326 423 328 424 328 b 442 302 438 320 442 312 b 430 281 442 294 438 285 b 385 276 424 277 426 276 l 377 276 l 332 276 l 330 269 b 178 -117 303 126 250 -9 b 1 -249 129 -194 69 -237 b -20 -251 -6 -251 -13 -251 b -114 -187 -65 -251 -100 -227 b -118 -156 -117 -177 -118 -166 b -51 -84 -118 -116 -91 -84 b -31 -87 -46 -84 -39 -86 b 16 -152 0 -95 16 -124 b -12 -205 16 -173 8 -194 b -16 -208 -14 -206 -16 -208 b -14 -208 -16 -208 -14 -208 b -9 -206 -14 -208 -12 -208 b 74 -124 23 -197 54 -166 b 172 224 98 -79 125 22 b 185 276 178 252 183 274 b 185 276 185 276 185 276 b 141 276 185 276 181 276 b 91 280 96 276 96 276 b 77 302 83 285 77 294 b 91 326 77 312 83 320 b 148 328 95 328 96 328 l 198 330 l 202 341 b 460 574 249 473 351 566 "},vbf:{x_min:-53.078125,x_max:513.140625,ha:485,o:"m 185 383 b 196 384 187 383 191 384 b 277 334 230 384 259 365 b 288 301 281 324 288 306 b 288 297 288 298 288 297 b 294 302 289 297 291 299 b 394 370 323 338 367 367 b 404 371 398 370 401 371 b 510 272 453 371 498 328 b 513 237 513 262 513 251 b 507 172 513 217 511 192 b 326 -34 487 59 412 -26 b 314 -36 322 -36 318 -36 b 274 -24 298 -36 283 -31 l 265 -16 b 224 44 246 -1 232 20 b 223 49 224 47 223 49 b 223 49 223 49 223 49 b 149 -197 221 48 149 -194 b 149 -198 149 -197 149 -198 b 170 -210 149 -202 155 -205 b 187 -215 174 -210 175 -212 b 204 -231 201 -219 204 -222 b 197 -245 204 -240 202 -242 l 194 -248 l 76 -248 l -42 -248 l -46 -245 b -53 -231 -51 -242 -53 -240 b -35 -215 -53 -222 -49 -217 b -13 -210 -21 -212 -20 -212 b -6 -208 -10 -209 -8 -208 b 0 -206 -6 -208 -2 -206 b 25 -188 13 -201 21 -195 b 163 280 28 -183 163 276 b 166 291 163 283 164 287 b 167 302 167 295 167 299 b 155 324 167 315 161 324 b 155 324 155 324 155 324 b 65 230 125 322 85 280 b 53 215 61 217 58 215 b 51 215 53 215 51 215 b 42 224 46 215 42 217 b 57 263 42 231 47 244 b 140 360 77 305 104 337 b 152 370 144 365 149 369 b 185 383 157 376 172 381 m 374 306 b 366 308 371 308 368 308 b 300 273 348 308 321 294 b 284 254 288 262 287 259 b 280 242 283 249 281 245 b 257 169 279 240 270 213 l 236 98 l 236 93 b 251 48 238 77 243 61 b 279 27 258 37 272 27 b 281 27 279 27 280 27 b 291 31 281 27 287 30 b 396 170 334 52 378 109 b 406 247 402 197 406 224 b 401 277 406 259 405 270 b 374 306 397 290 383 303 "},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 "},vd0:{x_min:-10.890625,x_max:299.4375,ha:294,o:"m 44 174 b 51 174 47 174 49 174 b 68 173 55 174 61 174 l 287 112 l 551 40 b 615 20 617 22 609 23 b 626 0 622 16 626 8 b 615 -22 626 -9 622 -18 b 613 -23 613 -23 613 -23 b 613 -23 613 -23 613 -23 b 287 -113 613 -24 597 -29 l 68 -174 b 53 -176 61 -176 57 -176 b 39 -172 47 -176 43 -174 b 27 -151 31 -167 27 -159 b 39 -129 27 -141 31 -133 b 230 -74 43 -124 20 -131 l 370 -36 l 468 -9 b 498 0 484 -4 498 -1 b 468 8 498 0 484 2 l 370 34 l 230 73 b 40 126 28 129 43 124 b 27 149 31 131 27 140 b 44 174 27 161 34 170 m 205 110 l 205 300 b 205 330 245 330 245 300 l 245 300 l 245 -300 b 245 -330 205 -330 205 -300 l 205 -300 l 205 110 l 345 90 m 345 90 l 345 330 b 345 360 385 360 385 330 l 385 330 l 385 -270 b 385 -300 345 -300 345 -270 l 345 -270 l 345 90 "},vd1:{x_min:-20,x_max:320,ha:257,o:"m -8 200 b -8 210 8 200 16 200 l 20 148 -199 l 23 -615 b 0 -629 9 -629 6 -629 l -21 -612 l -21 -201 l -21 216 l -20 200 m 16 200 l 310 0 l 240 0 l 16 140 l 16 -120 l 240 0 l 310 0 l 16 -200 "},vd2:{x_min:0,x_max:430.75,ha:386,o:"m 0 200 l 0 -200 l 430 -200 l 430 200 l 0 200 "},vd3:{x_min:0,x_max:430.75,ha:386,o:"m 0 200 l 0 -200 l 430 -200 l 430 200 l 0 200 l 50 150 l 380 150 l 380 -150 l 50 -150 l 50 150 "},vd4:{x_min:0,x_max:430.75,ha:360,o:"m 0 150 l 0 -150 l 430 -150 l 430 150 l 0 150 "},vd5:{x_min:0,x_max:430.75,ha:360,o:"m 0 150 l 0 -150 l 430 -150 l 430 150 l 0 150 l 50 100 l 380 100 l 380 -100 l 50 -100 l 50 100"},vd6:{x_min:0,x_max:430.75,ha:360,o:"m -146 537 b -138 538 -143 538 -141 538 b -118 525 -129 538 -121 533 b -117 390 -117 522 -117 521 b -115 259 -117 268 -117 259 b -115 259 -115 259 -115 259 b -59 272 -104 263 -62 272 b -39 259 -50 272 -42 267 b -37 209 -38 257 -37 233 b -39 159 -37 185 -38 162 b -85 138 -43 149 -44 149 l -117 131 l -117 21 b -115 -88 -117 -80 -117 -88 b -115 -88 -115 -88 -115 -88 b -59 -75 -104 -84 -62 -75 b -44 -81 -52 -75 -48 -77 b -38 -124 -38 -87 -38 -85 b -38 -138 -38 -124 -38 -138 b -38 -152 -38 -138 -38 -152 b -44 -195 -38 -191 -38 -190 b -85 -209 -48 -200 -48 -200 l -117 -217 l -117 -349 b -118 -486 -117 -481 -117 -482 b -138 -499 -121 -494 -129 -499 b -153 -493 -143 -499 -149 -497 b -159 -415 -158 -487 -159 -496 b -159 -355 -159 -398 -159 -379 b -159 -227 -159 -284 -159 -227 b -205 -238 -159 -227 -180 -232 b -250 -249 -230 -244 -250 -249 b -251 -386 -251 -249 -251 -311 b -252 -525 -251 -521 -251 -522 b -272 -538 -255 -534 -264 -538 b -287 -532 -277 -538 -283 -536 b -293 -452 -292 -527 -293 -536 b -293 -391 -293 -436 -293 -415 b -294 -260 -293 -269 -293 -260 b -294 -260 -294 -260 -294 -260 b -348 -272 -306 -264 -345 -272 b -368 -259 -357 -272 -365 -267 b -369 -209 -369 -257 -369 -233 b -368 -159 -369 -185 -369 -162 b -323 -139 -364 -149 -362 -148 l -293 -131 l -293 -22 b -294 87 -293 80 -293 87 b -294 87 -294 87 -294 87 b -348 75 -306 84 -345 75 b -368 88 -357 75 -365 80 b -369 138 -369 91 -369 114 b -368 188 -369 162 -369 186 b -323 209 -364 198 -362 199 l -293 216 l -293 349 b -292 486 -293 481 -293 482 b -272 499 -288 494 -280 499 b -257 493 -266 499 -261 497 b -251 414 -251 487 -251 496 b -251 354 -251 398 -251 378 b -251 226 -251 284 -251 226 b -205 238 -250 226 -230 231 b -159 249 -180 244 -159 249 b -159 385 -159 249 -159 310 b -157 525 -159 521 -159 522 b -146 537 -156 530 -151 535 z m -159 11 b -159 120 -159 98 -159 120 l -159 120 b -175 116 -160 120 -167 119 b -221 105 -184 114 -204 109 l -251 98 l -251 -12 b -251 -121 -251 -72 -251 -121 b -205 -110 -250 -121 -230 -116 b -159 -99 -180 -104 -159 -99 b -159 11 -159 -99 -159 -49 z m 89 517 b 97 519 92 518 94 519 b 117 505 106 519 114 513 b 119 376 119 502 119 501 l 119 249 l 145 258 b 176 267 169 266 172 267 b 177 267 176 267 177 267 b 196 255 186 267 192 263 l 197 252 l 197 205 b 197 181 197 195 197 187 b 193 149 197 153 197 153 b 152 131 190 144 187 143 l 119 120 l 119 10 b 119 -100 119 -62 119 -100 b 145 -91 120 -100 131 -96 b 173 -82 159 -86 171 -82 b 176 -81 174 -81 175 -81 b 196 -94 185 -81 193 -87 b 198 -151 197 -97 198 -125 b 197 -194 198 -172 197 -192 b 153 -218 193 -203 192 -204 l 119 -230 l 119 -367 l 118 -504 l 117 -507 b 97 -519 113 -514 105 -519 b 82 -512 92 -519 87 -517 b 76 -434 77 -507 76 -516 b 76 -374 76 -418 76 -398 b 76 -245 76 -303 76 -245 b 52 -254 76 -245 65 -249 b 19 -263 34 -260 25 -263 b 6 -257 13 -263 10 -261 b 0 -214 0 -251 0 -253 b 0 -200 0 -210 0 -205 b 0 -188 0 -196 0 -192 b 6 -143 0 -147 0 -149 b 46 -126 10 -139 10 -139 l 76 -115 l 76 -5 b 76 106 76 56 76 106 b 51 98 76 106 64 102 b 18 89 34 92 25 89 b 6 95 13 89 10 91 b 0 139 0 101 0 99 b 0 153 0 143 0 148 b 0 179 0 163 0 172 b 44 225 0 215 3 211 l 76 236 l 76 369 b 78 505 76 501 76 502 b 89 517 80 510 85 515 z "},vd7:{x_min:0,x_max:430.75,ha:360,o:"m 283 633 b 291 634 286 634 289 634 b 311 621 300 634 308 629 b 313 505 313 618 313 617 b 313 393 313 443 313 393 b 378 425 313 393 343 407 l 443 458 l 448 458 b 449 458 449 458 449 458 b 471 437 462 458 471 448 b 469 429 471 434 470 432 b 387 382 466 421 469 423 l 313 344 l 313 247 l 313 150 l 315 152 b 433 201 353 184 394 201 b 479 193 448 201 464 198 b 549 86 524 177 549 135 b 526 1 549 59 541 29 b 395 -143 504 -39 475 -71 b 316 -214 351 -182 341 -191 b 292 -229 302 -228 300 -229 b 272 -216 283 -229 275 -224 b 271 55 271 -212 271 -212 b 270 323 271 203 270 323 b 205 291 270 323 241 308 l 140 258 l 135 258 b 134 258 135 258 134 258 b 112 279 121 258 112 267 b 114 287 112 281 113 284 b 196 334 117 295 114 293 l 271 371 l 271 495 b 272 621 271 617 271 618 b 283 633 274 626 279 631 z m 404 133 b 391 134 400 134 395 134 b 384 134 388 134 386 134 b 318 88 358 130 335 114 l 313 81 l 313 -37 l 313 -156 l 316 -152 b 439 83 391 -71 439 22 l 439 84 b 404 133 439 115 430 128 z m -8 633 l -8 633 b 0 634 -6 634 -3 634 b 20 621 8 634 17 629 b 21 384 21 618 21 617 l 21 150 l 24 152 b 141 201 62 184 102 201 b 187 193 157 201 172 198 b 257 86 232 177 257 135 b 234 1 257 59 250 29 b 103 -143 212 -39 183 -71 b 24 -214 60 -182 49 -191 b 0 -229 10 -228 8 -229 b -20 -216 -9 -229 -17 -224 l -21 -212 l -21 203 l -21 618 l -20 621 b -8 633 -18 626 -13 631 z m 113 133 l 113 133 b 99 134 109 134 103 134 b 93 134 97 134 94 134 b 26 88 66 130 43 114 l 21 81 l 21 -37 l 21 -156 l 25 -152 b 148 83 99 -71 148 22 l 148 84 b 113 133 148 115 138 128 z "}},cssFontWeight:"normal",ascender:1903,underlinePosition:-125,cssFontStyle:"normal",boundingBox:{yMin:-2065.375,xMin:-695.53125,yMax:1901.578125,xMax:1159.671875},resolution:1e3,descender:-2066,familyName:"VexFlow-18",lineHeight:4093,underlineThickness:50};function processOutline(e,t,n,r,i,a){var o,s,l,u=0;function c(){return t+e[u++]*r}function h(){return n+e[u++]*i}for(;u<e.length;)switch(o=e[u++]){case"m":case"l":a[o](c(),h());break;case"q":s=c(),l=h(),a.q(c(),h(),s,l);break;case"b":s=c(),l=h(),a.b(c(),h(),c(),h(),s,l)}}var Glyph=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","Glyph"),a.code=e,a.point=r,a.options={cache:!0,font:Font},a.metrics=null,a.x_shift=0,a.y_shift=0,a.originShift={x:0,y:0},i?a.setOptions(i):a.reset(),a}return _createClass2(n,[{key:"setOptions",value:function(e){Vex.Merge(this.options,e),this.reset()}},{key:"setPoint",value:function(e){return this.point=e,this}},{key:"setStave",value:function(e){return this.stave=e,this}},{key:"setXShift",value:function(e){return this.x_shift=e,this}},{key:"setYShift",value:function(e){return this.y_shift=e,this}},{key:"reset",value:function(){this.scale=72*this.point/(100*this.options.font.resolution),this.metrics=n.loadMetrics(this.options.font,this.code,this.options.cache),this.bbox=n.getOutlineBoundingBox(this.metrics.outline,this.scale,0,0)}},{key:"getMetrics",value:function(){if(!this.metrics)throw new Vex.RuntimeError("BadGlyph","Glyph ".concat(this.code," is not initialized."));return{x_min:this.metrics.x_min*this.scale,x_max:this.metrics.x_max*this.scale,width:this.bbox.getW(),height:this.bbox.getH()}}},{key:"setOriginX",value:function(e){var t=this.bbox,n=(e-Math.abs(t.getX()/t.getW()))*t.getW();this.originShift.x=-n}},{key:"setOriginY",value:function(e){var t=this.bbox,n=(e-Math.abs(t.getY()/t.getH()))*t.getH();this.originShift.y=-n}},{key:"setOrigin",value:function(e,t){this.setOriginX(e),this.setOriginY(t)}},{key:"render",value:function(e,t,r){if(!this.metrics)throw new Vex.RuntimeError("BadGlyph","Glyph ".concat(this.code," is not initialized."));var i=this.metrics.outline,a=this.scale;this.setRendered(),this.applyStyle(e),n.renderOutline(e,i,a,t+this.originShift.x,r+this.originShift.y),this.restoreStyle(e)}},{key:"renderToStave",value:function(e){if(this.checkContext(),!this.metrics)throw new Vex.RuntimeError("BadGlyph","Glyph ".concat(this.code," is not initialized."));if(!this.stave)throw new Vex.RuntimeError("GlyphError","No valid stave");var t=this.metrics.outline,r=this.scale;this.setRendered(),this.applyStyle(),n.renderOutline(this.context,t,r,e+this.x_shift,this.stave.getYForGlyphs()+this.y_shift),this.restoreStyle()}}],[{key:"loadMetrics",value:function(e,t,n){var r=e.glyphs[t];if(!r)throw new Vex.RERR("BadGlyph","Glyph ".concat(t," does not exist in font."));var i,a=r.x_min,o=r.x_max,s=r.ha;if(r.o)return n?r.cached_outline?i=r.cached_outline:(i=r.o.split(" "),r.cached_outline=i):(r.cached_outline&&delete r.cached_outline,i=r.o.split(" ")),{x_min:a,x_max:o,ha:s,outline:i};throw new Vex.RERR("BadGlyph","Glyph ".concat(t," has no outline defined."))}},{key:"renderGlyph",value:function(e,t,r,i,a,o){var s=72*i/(100*Font.resolution),l=n.loadMetrics(Font,a,!o);n.renderOutline(e,l.outline,s,t,r)}},{key:"renderOutline",value:function(e,t,n,r,i){e.beginPath(),e.moveTo(r,i),processOutline(t,r,i,n,-n,{m:e.moveTo.bind(e),l:e.lineTo.bind(e),q:e.quadraticCurveTo.bind(e),b:e.bezierCurveTo.bind(e)}),e.fill()}},{key:"getOutlineBoundingBox",value:function(e,t,n,r){var i=new BoundingBoxComputation;return processOutline(e,n,r,t,-t,{m:i.addPoint.bind(i),l:i.addPoint.bind(i),q:i.addQuadraticCurve.bind(i),b:i.addBezierCurve.bind(i)}),new BoundingBox(i.x1,i.y1,i.width(),i.height())}}]),n}(Element$1),Flow={STEM_WIDTH:1.5,STEM_HEIGHT:35,STAVE_LINE_THICKNESS:1,RESOLUTION:16384,DEFAULT_NOTATION_FONT_SCALE:39,DEFAULT_TABLATURE_FONT_SCALE:39,SLASH_NOTEHEAD_WIDTH:15,TEXT_HEIGHT_OFFSET_HACK:1,IsKerned:!0,clefProperties:function(e){if(!e)throw new Vex.RERR("BadArgument","Invalid clef: "+e);var t=Flow.clefProperties.values[e];if(!t)throw new Vex.RERR("BadArgument","Invalid clef: "+e);return t}};Flow.clefProperties.values={treble:{line_shift:0},bass:{line_shift:6},tenor:{line_shift:4},alto:{line_shift:3},soprano:{line_shift:1},percussion:{line_shift:0},"mezzo-soprano":{line_shift:2},"baritone-c":{line_shift:5},"baritone-f":{line_shift:5},subbass:{line_shift:7},french:{line_shift:-1}},Flow.keyProperties=function(e,t,n){void 0===t&&(t="treble");var r={octave_shift:0};"object"===_typeof2(n)&&Vex.Merge(r,n);var i=e.split("/");if(i.length<2)throw new Vex.RERR("BadArguments","Key must have note + octave and an optional glyph: ".concat(e));var a=i[0].toUpperCase(),o=Flow.keyProperties.note_values[a];if(!o)throw new Vex.RERR("BadArguments","Invalid key name: "+a);o.octave&&(i[1]=o.octave);var s=parseInt(i[1],10),l=(7*(s+=-1*r.octave_shift)-28+o.index)/2,u=0;(l+=Flow.clefProperties(t).line_shift)<=0&&2*l%2==0&&(u=1),l>=6&&2*l%2==0&&(u=-1);var c=void 0!==o.int_val?12*s+o.int_val:null,h=o.code,d=o.shift_right,f={};if(i.length>2&&i[2]){var p=i[2].toUpperCase();f=Flow.keyProperties.customNoteHeads[p]||{}}return _objectSpread({key:a,octave:s,line:l,int_value:c,accidental:o.accidental,code:h,stroke:u,shift_right:d,displaced:!1},f)},Flow.keyProperties.note_values={C:{index:0,int_val:0,accidental:null},CN:{index:0,int_val:0,accidental:"n"},"C#":{index:0,int_val:1,accidental:"#"},"C##":{index:0,int_val:2,accidental:"##"},CB:{index:0,int_val:-1,accidental:"b"},CBB:{index:0,int_val:-2,accidental:"bb"},D:{index:1,int_val:2,accidental:null},DN:{index:1,int_val:2,accidental:"n"},"D#":{index:1,int_val:3,accidental:"#"},"D##":{index:1,int_val:4,accidental:"##"},DB:{index:1,int_val:1,accidental:"b"},DBB:{index:1,int_val:0,accidental:"bb"},E:{index:2,int_val:4,accidental:null},EN:{index:2,int_val:4,accidental:"n"},"E#":{index:2,int_val:5,accidental:"#"},"E##":{index:2,int_val:6,accidental:"##"},EB:{index:2,int_val:3,accidental:"b"},EBB:{index:2,int_val:2,accidental:"bb"},F:{index:3,int_val:5,accidental:null},FN:{index:3,int_val:5,accidental:"n"},"F#":{index:3,int_val:6,accidental:"#"},"F##":{index:3,int_val:7,accidental:"##"},FB:{index:3,int_val:4,accidental:"b"},FBB:{index:3,int_val:3,accidental:"bb"},G:{index:4,int_val:7,accidental:null},GN:{index:4,int_val:7,accidental:"n"},"G#":{index:4,int_val:8,accidental:"#"},"G##":{index:4,int_val:9,accidental:"##"},GB:{index:4,int_val:6,accidental:"b"},GBB:{index:4,int_val:5,accidental:"bb"},A:{index:5,int_val:9,accidental:null},AN:{index:5,int_val:9,accidental:"n"},"A#":{index:5,int_val:10,accidental:"#"},"A##":{index:5,int_val:11,accidental:"##"},AB:{index:5,int_val:8,accidental:"b"},ABB:{index:5,int_val:7,accidental:"bb"},B:{index:6,int_val:11,accidental:null},BN:{index:6,int_val:11,accidental:"n"},"B#":{index:6,int_val:12,accidental:"#"},"B##":{index:6,int_val:13,accidental:"##"},BB:{index:6,int_val:10,accidental:"b"},BBB:{index:6,int_val:9,accidental:"bb"},R:{index:6,int_val:9,rest:!0},X:{index:6,accidental:"",octave:4,code:"v3e",shift_right:5.5}},Flow.keyProperties.customNoteHeads={D0:{code:"v27",shift_right:0,stem_up_x_offset:0,stem_down_x_offset:0,stem_up_y_offset:-1,stem_down_y_offset:0},D1:{code:"v2d",shift_right:-.5},D2:{code:"v22",shift_right:-.5},D3:{code:"v70",shift_right:-.5},T0:{code:"v49",shift_right:-2,stem_up_y_offset:-4,stem_down_y_offset:4},T1:{code:"v93",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},T2:{code:"v40",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},T3:{code:"v7d",shift_right:.5,stem_up_y_offset:-4,stem_down_y_offset:4},X0:{code:"v92",stem_up_x_offset:-2,stem_down_x_offset:0,stem_up_y_offset:4,stem_down_y_offset:4},X1:{code:"v95",shift_right:-.5,stem_up_y_offset:4,stem_down_y_offset:4},X2:{code:"v3e",shift_right:.5,stem_up_y_offset:4,stem_down_y_offset:4},X3:{code:"v3b",shift_right:0,stem_up_x_offset:-1.2,stem_down_x_offset:0,stem_up_y_offset:-1,stem_down_y_offset:2},S1:{code:"vd3",shift_right:0},S2:{code:"vd2",shift_right:0},R1:{code:"vd5",shift_right:0},R2:{code:"vd4",shift_right:0}},Flow.integerToNote=function(e){if(void 0===e)throw new Vex.RERR("BadArguments","Undefined integer for integerToNote");if(e<-2)throw new Vex.RERR("BadArguments","integerToNote requires integer > -2: ".concat(e));var t=Flow.integerToNote.table[e];if(!t)throw new Vex.RERR("BadArguments","Unknown note value for integer: ".concat(e));return t},Flow.integerToNote.table={0:"C",1:"C#",2:"D",3:"D#",4:"E",5:"F",6:"F#",7:"G",8:"G#",9:"A",10:"A#",11:"B"},Flow.tabToGlyph=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=null,r=0,i=0;if("X"===e.toString().toUpperCase()){var a=new Glyph("v7f",Flow.DEFAULT_TABLATURE_FONT_SCALE).getMetrics();n="v7f",r=a.width,i=-a.height/2}else r=Flow.textWidth(e.toString());return{text:e,code:n,getWidth:function(){return r*t},shift_y:i}},Flow.textWidth=function(e){return 7*e.toString().length},Flow.articulationCodes=function(e){return Flow.articulationCodes.articulations[e]},Flow.articulationCodes.articulations={"a.":{code:"v23",between_lines:!0},av:{code:"v28",between_lines:!0},"a>":{code:"v42",between_lines:!0},"a-":{code:"v25",between_lines:!0},"a^":{code:"va",between_lines:!1},"a+":{code:"v8b",between_lines:!1},ao:{code:"v94",between_lines:!1},ah:{code:"vb9",between_lines:!1},"a@a":{code:"v43",between_lines:!1},"a@u":{code:"v5b",between_lines:!1},"a|":{code:"v75",between_lines:!1},am:{code:"v97",between_lines:!1},"a,":{code:"vb3",between_lines:!1}},Flow.accidentalCodes=function(e){return Flow.accidentalCodes.accidentals[e]},Flow.accidentalCodes.accidentals={"#":{code:"v18",parenRightPaddingAdjustment:-1},"##":{code:"v7f",parenRightPaddingAdjustment:-1},b:{code:"v44",parenRightPaddingAdjustment:-2},bb:{code:"v26",parenRightPaddingAdjustment:-2},n:{code:"v4e",parenRightPaddingAdjustment:-1},"{":{code:"v9c",parenRightPaddingAdjustment:-1},"}":{code:"v84",parenRightPaddingAdjustment:-1},db:{code:"v9e",parenRightPaddingAdjustment:-1},d:{code:"vab",parenRightPaddingAdjustment:0},bbs:{code:"v90",parenRightPaddingAdjustment:-1},"++":{code:"v51",parenRightPaddingAdjustment:-1},"+":{code:"v78",parenRightPaddingAdjustment:-1},"+-":{code:"v8d",parenRightPaddingAdjustment:-1},"++-":{code:"v7a",parenRightPaddingAdjustment:-1},bs:{code:"vb7",parenRightPaddingAdjustment:-1},bss:{code:"v39",parenRightPaddingAdjustment:-1},o:{code:"vd0",parenRightPaddingAdjustment:-1},k:{code:"vd1",parenRightPaddingAdjustment:-1},ashs:{code:"vd6",parenRightPaddingAdjustment:-1},afhf:{code:"vd7",parenRightPaddingAdjustment:-1}},Flow.accidentalColumnsTable={1:{a:[1],b:[1]},2:{a:[1,2]},3:{a:[1,3,2],b:[1,2,1],second_on_bottom:[1,2,3]},4:{a:[1,3,4,2],b:[1,2,3,1],spaced_out_tetrachord:[1,2,1,2]},5:{a:[1,3,5,4,2],b:[1,2,4,3,1],spaced_out_pentachord:[1,2,3,2,1],very_spaced_out_pentachord:[1,2,1,2,1]},6:{a:[1,3,5,6,4,2],b:[1,2,4,5,3,1],spaced_out_hexachord:[1,3,2,1,3,2],very_spaced_out_hexachord:[1,2,1,2,1,2]}},Flow.ornamentCodes=function(e){return Flow.ornamentCodes.ornaments[e]},Flow.ornamentCodes.ornaments={mordent:{code:"v1e"},mordent_inverted:{code:"v45"},turn:{code:"v72"},turn_inverted:{code:"v33"},tr:{code:"v1f"},upprall:{code:"v60"},downprall:{code:"vb4"},prallup:{code:"v6d"},pralldown:{code:"v2c"},upmordent:{code:"v29"},downmordent:{code:"v68"},lineprall:{code:"v20"},prallprall:{code:"v86"}},Flow.keySignature=function(e){var t=Flow.keySignature.keySpecs[e];if(!t)throw new Vex.RERR("BadKeySignature","Bad key signature spec: '".concat(e,"'"));if(!t.acc)return[];for(var n=Flow.keySignature.accidentalList(t.acc),r=[],i=0;i<t.num;++i){var a=n[i];r.push({type:t.acc,line:a})}return r},Flow.keySignature.keySpecs={C:{acc:null,num:0},Am:{acc:null,num:0},F:{acc:"b",num:1},Dm:{acc:"b",num:1},Bb:{acc:"b",num:2},Gm:{acc:"b",num:2},Eb:{acc:"b",num:3},Cm:{acc:"b",num:3},Ab:{acc:"b",num:4},Fm:{acc:"b",num:4},Db:{acc:"b",num:5},Bbm:{acc:"b",num:5},Gb:{acc:"b",num:6},Ebm:{acc:"b",num:6},Cb:{acc:"b",num:7},Abm:{acc:"b",num:7},G:{acc:"#",num:1},Em:{acc:"#",num:1},D:{acc:"#",num:2},Bm:{acc:"#",num:2},A:{acc:"#",num:3},"F#m":{acc:"#",num:3},E:{acc:"#",num:4},"C#m":{acc:"#",num:4},B:{acc:"#",num:5},"G#m":{acc:"#",num:5},"F#":{acc:"#",num:6},"D#m":{acc:"#",num:6},"C#":{acc:"#",num:7},"A#m":{acc:"#",num:7}},Flow.unicode={sharp:String.fromCharCode(parseInt("266F",16)),flat:String.fromCharCode(parseInt("266D",16)),natural:String.fromCharCode(parseInt("266E",16)),triangle:String.fromCharCode(parseInt("25B3",16)),"o-with-slash":String.fromCharCode(parseInt("00F8",16)),degrees:String.fromCharCode(parseInt("00B0",16)),circle:String.fromCharCode(parseInt("25CB",16))},Flow.keySignature.accidentalList=function(e){return{b:[2,.5,2.5,1,3,1.5,3.5],"#":[0,1.5,-.5,1,2.5,.5,2]}[e]},Flow.parseNoteDurationString=function(e){if("string"!=typeof e)return null;var t=/(\d*\/?\d+|[a-z])(d*)([nrhms]|$)/.exec(e);if(!t)return null;var n=t[1],r=t[2].length,i=t[3];return 0===i.length&&(i="n"),{duration:n,dots:r,type:i}},Flow.parseNoteStruct=function(e){var t=e.duration,n=Flow.parseNoteDurationString(t);if(!n)return null;var r=Flow.durationToTicks(n.duration);if(null==r)return null;var i=e.type,a=[];if(i){if(!Flow.getGlyphProps.validTypes[i])return null}else i=n.type||"n",void 0!==e.keys&&e.keys.forEach((function(e,t){var n=e.split("/");n&&3===n.length&&(a[t]=n[2])}));var o=e.dots?e.dots:n.dots;if("number"!=typeof o)return null;for(var s=r,l=0;l<o;l++){if(s<=1)return null;r+=s/=2}return{duration:n.duration,type:i,customTypes:a,dots:o,ticks:r}},Flow.sanitizeDuration=function(e){var t=Flow.durationAliases[e];if(void 0!==t&&(e=t),void 0===Flow.durationToTicks.durations[e])throw new Vex.RERR("BadArguments","The provided duration is not valid: ".concat(e));return e},Flow.durationToFraction=function(e){return(new Fraction).parse(Flow.sanitizeDuration(e))},Flow.durationToNumber=function(e){return Flow.durationToFraction(e).value()},Flow.durationToTicks=function(e){e=Flow.sanitizeDuration(e);var t=Flow.durationToTicks.durations[e];return void 0===t?null:t},Flow.durationToTicks.durations={"1/2":2*Flow.RESOLUTION,1:Flow.RESOLUTION/1,2:Flow.RESOLUTION/2,4:Flow.RESOLUTION/4,8:Flow.RESOLUTION/8,16:Flow.RESOLUTION/16,32:Flow.RESOLUTION/32,64:Flow.RESOLUTION/64,128:Flow.RESOLUTION/128,256:Flow.RESOLUTION/256},Flow.durationAliases={w:"1",h:"2",q:"4",b:"256"},Flow.getGlyphProps=function(e,t){e=Flow.sanitizeDuration(e);var n=Flow.getGlyphProps.duration_codes[e];if(void 0===n)return null;t||(t="n");var r=n.type[t];if(void 0===r){var i=Flow.keyProperties.customNoteHeads[t.toUpperCase()];if(void 0===i)return null;r=_objectSpread({code_head:i.code},i)}return _objectSpread(_objectSpread({},n.common),r)},Flow.getGlyphProps.validTypes={n:{name:"note"},r:{name:"rest"},h:{name:"harmonic"},m:{name:"muted"},s:{name:"slash"}},Flow.getGlyphProps.duration_codes={"1/2":{common:{getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"v53",e).getMetrics().width},stem:!1,stem_offset:0,flag:!1,stem_up_extension:-Flow.STEM_HEIGHT,stem_down_extension:-Flow.STEM_HEIGHT,tabnote_stem_up_extension:-Flow.STEM_HEIGHT,tabnote_stem_down_extension:-Flow.STEM_HEIGHT,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v53"},h:{code_head:"v59"},m:{code_head:"vf",stem_offset:0},r:{code_head:"v31",rest:!0,position:"B/5",dot_shiftY:.5},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},1:{common:{getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"v1d",e).getMetrics().width},stem:!1,stem_offset:0,flag:!1,stem_up_extension:-Flow.STEM_HEIGHT,stem_down_extension:-Flow.STEM_HEIGHT,tabnote_stem_up_extension:-Flow.STEM_HEIGHT,tabnote_stem_down_extension:-Flow.STEM_HEIGHT,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v1d"},h:{code_head:"v46"},m:{code_head:"v92",stem_offset:-3},r:{code_head:"v5c",rest:!0,position:"D/5",dot_shiftY:.5},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},2:{common:{getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"v81",e).getMetrics().width},stem:!0,stem_offset:0,flag:!1,stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"v81"},h:{code_head:"v2d"},m:{code_head:"v95",stem_offset:-3},r:{code_head:"vc",stem:!1,rest:!0,position:"B/4",dot_shiftY:-.5},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},4:{common:{getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!1,stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e",stem_offset:-3},r:{code_head:"v7c",stem:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1.5,line_below:1.5},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},8:{common:{getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!0,beam_count:1,code_flag_upstem:"v54",code_flag_downstem:"v9a",stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"va5",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1,line_below:1},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},16:{common:{beam_count:2,getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v3f",code_flag_downstem:"v8f",stem_up_extension:0,stem_down_extension:0,tabnote_stem_up_extension:0,tabnote_stem_down_extension:0,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v3c",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-.5,line_above:1,line_below:2},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},32:{common:{beam_count:3,getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v47",code_flag_downstem:"v2a",stem_up_extension:9,stem_down_extension:9,tabnote_stem_up_extension:8,tabnote_stem_down_extension:5,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v55",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-1.5,line_above:2,line_below:2},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},64:{common:{beam_count:4,getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"va9",code_flag_downstem:"v58",stem_up_extension:13,stem_down_extension:13,tabnote_stem_up_extension:12,tabnote_stem_down_extension:9,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"v38",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:-1.5,line_above:2,line_below:3},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}},128:{common:{beam_count:5,getWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Flow.DEFAULT_NOTATION_FONT_SCALE;return new Glyph(this.code_head||"vb",e).getMetrics().width},stem:!0,stem_offset:0,flag:!0,code_flag_upstem:"v9b",code_flag_downstem:"v30",stem_up_extension:22,stem_down_extension:22,tabnote_stem_up_extension:21,tabnote_stem_down_extension:18,dot_shiftY:0,line_above:0,line_below:0},type:{n:{code_head:"vb"},h:{code_head:"v22"},m:{code_head:"v3e"},r:{code_head:"vaa",stem:!1,flag:!1,rest:!0,position:"B/4",dot_shiftY:1.5,line_above:3,line_below:3},s:{getWidth:function(){return Flow.SLASH_NOTEHEAD_WIDTH},position:"B/4"}}}},Flow.smufl={},Flow.smufl.to_code_points={bracketTop:"v1b",bracketBottom:"v10",barlineTick:"v6f",segno:"v8c",coda:"v4d",gClef:"v83",cClef:"vad",fClef:"v79",unpitchedPercussionClef1:"v59","6stringTabClef":"v2f",timeSig0:"v0",timeSig1:"v1",timeSig2:"v2",timeSig3:"v3",timeSig4:"v4",timeSig5:"v5",timeSig6:"v6",timeSig7:"v7",timeSig8:"v8",timeSig9:"v9",timeSigCommon:"v41",timeSigCutCommon:"vb6",noteheadDoubleWhole:"v53",noteheadWhole:"v1d",noteheadHalf:"v81",noteheadBlack:"vb",noteheadXWhole:"v92",noteheadXHalf:"v95",noteheadXBlack:"v3e",noteheadCircleX:"v3b",noteheadTriangleUpWhole:"v49",noteheadTriangleUpHalf:"v93",noteheadTriangleUpBlack:"v40",noteheadDiamondWhole:"v46",noteheadDiamondHalf:"v2d",noteheadDiamondBlack:"v22",augmentationDot:"v23",tremolo1:"v74",flag8thUp:"v54",flag8thDown:"v9a",flag16thUp:"v3f",flag16thDown:"v8f",flag32ndUp:"v47",flag32ndDown:"v2a",flag64thUp:"va9",flag64thDown:"v58",flag128thUp:"v9b",flag128thDown:"v30",accidentalFlat:"v44",accidentalNatural:"v4e",accidentalSharp:"v18",accidentalDoubleSharp:"v7f",accidentalDoubleFlat:"v26",accidentalParensLeft:"v9c",accidentalParensRight:"v84",accidentalQuarterToneFlatStein:"vab",accidentalThreeQuarterTonesFlatZimmermann:"v9e",accidentalQuarterToneSharpStein:"v78",accidentalThreeQuarterTonesSharpStein:"v51",accidentalBuyukMucennebFlat:"v39",accidentalBakiyeFlat:"vb7",accidentalKomaSharp:"v51",accidentalKucukMucennebSharp:"v8d",accidentalKoron:"vd1",accidentalSori:"vd0",articAccentAbove:"v42",articAccentBelow:"v42",articTenutoAbove:"v25",articTenutoBelow:"v25",articStaccatoAbove:"v23",articStaccatoBelow:"v23",articStaccatissimoAbove:"v28",articMarcatoAbove:"va",fermataAbove:"v43",fermataBelow:"v5b",breathMarkComma:"v6c",breathMarkUpbow:"v8a",caesura:"v34",caesuraCurved:"v4b",restMaxima:"v59",restDoubleWhole:"v31",restWhole:"v5c",restHalf:"vc",restQuarter:"v7c",rest8th:"va5",rest16th:"v3c",rest32nd:"v55",rest64th:"v38",rest128th:"vaa",dynamicPiano:"vbf",dynamicMezzo:"v62",dynamicForte:"vba",dynamicRinforzando:"vba",dynamicSforzando:"v4a",dynamicZ:"v80",ornamentTrill:"v1f",ornamentTurn:"v72",ornamentTurnSlash:"v33",ornamentMordent:"v45",ornamentMordentInverted:"v1e",ornamentTremblement:"v86",ornamentPrecompAppoggTrill:"v20",ornamentPrecompSlideTrillDAnglebert:"v60",ornamentPrecompSlideTrillBach:"v29",ornamentPrecompTrillSuffixDandrieu:"v6d",ornamentPrecompDoubleCadenceUpperPrefix:"vb4",ornamentPrecompDoubleCadenceUpperPrefixTurn:"v68",ornamentPrecompTrillLowerSuffix:"v2c",stringsDownBow:"v94",stringsUpBow:"v75",stringsHarmonic:"vb9",pluckedSnapPizzicatoAbove:"v94",pluckedLeftHandPizzicato:"v8b",keyboardPedalPed:"v36",keyboardPedalUp:"v5d",pictChokeCymbal:"vb3",wiggleArpeggiatoUp:"va3",arrowheadBlackUp:"vc3",arrowheadBlackDown:"v52"},Flow.TIME4_4={num_beats:4,beat_value:4,resolution:Flow.RESOLUTION};var CanvasContext=function(){function e(t){_classCallCheck2(this,e),this.vexFlowCanvasContext=t,t.canvas?this.canvas=t.canvas:this.canvas={width:e.WIDTH,height:e.HEIGHT}}return _createClass2(e,[{key:"clear",value:function(){this.vexFlowCanvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"openGroup",value:function(){}},{key:"closeGroup",value:function(){}},{key:"add",value:function(){}},{key:"setFont",value:function(e,t,n){return this.vexFlowCanvasContext.font=(n||"")+" "+t+"pt "+e,this}},{key:"setRawFont",value:function(e){return this.vexFlowCanvasContext.font=e,this}},{key:"setFillStyle",value:function(e){return this.vexFlowCanvasContext.fillStyle=e,this}},{key:"setBackgroundFillStyle",value:function(e){return this.background_fillStyle=e,this}},{key:"setStrokeStyle",value:function(e){return this.vexFlowCanvasContext.strokeStyle=e,this}},{key:"setShadowColor",value:function(e){return this.vexFlowCanvasContext.shadowColor=e,this}},{key:"setShadowBlur",value:function(e){return this.vexFlowCanvasContext.shadowBlur=e,this}},{key:"setLineWidth",value:function(e){return this.vexFlowCanvasContext.lineWidth=e,this}},{key:"setLineCap",value:function(e){return this.vexFlowCanvasContext.lineCap=e,this}},{key:"setLineDash",value:function(e){return this.vexFlowCanvasContext.lineDash=e,this}},{key:"scale",value:function(e,t){return this.vexFlowCanvasContext.scale(parseFloat(e),parseFloat(t))}},{key:"resize",value:function(e,t){var n=_slicedToArray(this.SanitizeCanvasDims(parseInt(e,10),parseInt(t,10)),2);return e=n[0],t=n[1],this.vexFlowCanvasContext.resize(e,t)}},{key:"rect",value:function(e,t,n,r){return this.vexFlowCanvasContext.rect(e,t,n,r)}},{key:"fillRect",value:function(e,t,n,r){return this.vexFlowCanvasContext.fillRect(e,t,n,r)}},{key:"clearRect",value:function(e,t,n,r){return this.vexFlowCanvasContext.clearRect(e,t,n,r)}},{key:"beginPath",value:function(){return this.vexFlowCanvasContext.beginPath()}},{key:"moveTo",value:function(e,t){return this.vexFlowCanvasContext.moveTo(e,t)}},{key:"lineTo",value:function(e,t){return this.vexFlowCanvasContext.lineTo(e,t)}},{key:"bezierCurveTo",value:function(e,t,n,r,i,a){return this.vexFlowCanvasContext.bezierCurveTo(e,t,n,r,i,a)}},{key:"quadraticCurveTo",value:function(e,t,n,r){return this.vexFlowCanvasContext.quadraticCurveTo(e,t,n,r)}},{key:"arc",value:function(e,t,n,r,i,a){return this.vexFlowCanvasContext.arc(e,t,n,r,i,a)}},{key:"glow",value:function(){return this.vexFlowCanvasContext.glow()}},{key:"fill",value:function(){return this.vexFlowCanvasContext.fill()}},{key:"stroke",value:function(){return this.vexFlowCanvasContext.stroke()}},{key:"closePath",value:function(){return this.vexFlowCanvasContext.closePath()}},{key:"measureText",value:function(e){return this.vexFlowCanvasContext.measureText(e)}},{key:"fillText",value:function(e,t,n){return this.vexFlowCanvasContext.fillText(e,t,n)}},{key:"save",value:function(){return this.vexFlowCanvasContext.save()}},{key:"restore",value:function(){return this.vexFlowCanvasContext.restore()}}],[{key:"WIDTH",get:function(){return 600}},{key:"HEIGHT",get:function(){return 400}},{key:"CANVAS_BROWSER_SIZE_LIMIT",get:function(){return 32767}},{key:"SanitizeCanvasDims",value:function(e,t){return Math.max(e,t)>this.CANVAS_BROWSER_SIZE_LIMIT&&(Vex.W("Canvas dimensions exceed browser limit. Cropping to "+this.CANVAS_BROWSER_SIZE_LIMIT),e>this.CANVAS_BROWSER_SIZE_LIMIT&&(e=this.CANVAS_BROWSER_SIZE_LIMIT),t>this.CANVAS_BROWSER_SIZE_LIMIT&&(t=this.CANVAS_BROWSER_SIZE_LIMIT)),[e,t]}}]),e}(),RaphaelContext=function(){function e(t){_classCallCheck2(this,e),this.element=t,this.paper=Raphael(t),this.path="",this.pen={x:0,y:0},this.lineWidth=1,this.state={scale:{x:1,y:1},font_family:"Arial",font_size:8,font_weight:800},this.attributes={"stroke-width":.3,fill:"black",stroke:"black",font:"10pt Arial"},this.background_attributes={"stroke-width":0,fill:"white",stroke:"white",font:"10pt Arial"},this.shadow_attributes={width:0,color:"black"},this.state_stack=[]}return _createClass2(e,[{key:"openGroup",value:function(){}},{key:"closeGroup",value:function(){}},{key:"add",value:function(){}},{key:"setFont",value:function(e,t,n){return this.state.font_family=e,this.state.font_size=t,this.state.font_weight=n,this.attributes.font=(this.state.font_weight||"")+" "+this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this}},{key:"setRawFont",value:function(e){return this.attributes.font=e,this}},{key:"setFillStyle",value:function(e){return this.attributes.fill=e,this}},{key:"setBackgroundFillStyle",value:function(e){return this.background_attributes.fill=e,this.background_attributes.stroke=e,this}},{key:"setStrokeStyle",value:function(e){return this.attributes.stroke=e,this}},{key:"setShadowColor",value:function(e){return this.shadow_attributes.color=e,this}},{key:"setShadowBlur",value:function(e){return this.shadow_attributes.width=e,this}},{key:"setLineWidth",value:function(e){this.attributes["stroke-width"]=e,this.lineWidth=e}},{key:"setLineDash",value:function(){return this}},{key:"setLineCap",value:function(){return this}},{key:"scale",value:function(e,t){return this.state.scale={x:e,y:t},this.attributes.transform="S"+e+","+t+",0,0",this.attributes.scale=e+","+t+",0,0",this.attributes.font=this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this.background_attributes.transform="S"+e+","+t+",0,0",this.background_attributes.font=this.state.font_size*this.state.scale.x+"pt "+this.state.font_family,this}},{key:"clear",value:function(){this.paper.clear()}},{key:"resize",value:function(e,t){return this.element.style.width=e,this.paper.setSize(e,t),this}},{key:"setViewBox",value:function(e){this.paper.canvas.setAttribute("viewBox",e)}},{key:"rect",value:function(e,t,n,r){return r<0&&(t+=r,r=-r),this.paper.rect(e,t,n-.5,r-.5).attr(this.attributes).attr("fill","none").attr("stroke-width",this.lineWidth),this}},{key:"fillRect",value:function(e,t,n,r){return r<0&&(t+=r,r=-r),this.paper.rect(e,t,n-.5,r-.5).attr(this.attributes),this}},{key:"clearRect",value:function(e,t,n,r){return r<0&&(t+=r,r=-r),this.paper.rect(e,t,n-.5,r-.5).attr(this.background_attributes),this}},{key:"beginPath",value:function(){return this.path="",this.pen.x=0,this.pen.y=0,this}},{key:"moveTo",value:function(e,t){return this.path+="M"+e+","+t,this.pen.x=e,this.pen.y=t,this}},{key:"lineTo",value:function(e,t){return this.path+="L"+e+","+t,this.pen.x=e,this.pen.y=t,this}},{key:"bezierCurveTo",value:function(e,t,n,r,i,a){return this.path+="C"+e+","+t+","+n+","+r+","+i+","+a,this.pen.x=i,this.pen.y=a,this}},{key:"quadraticCurveTo",value:function(e,t,n,r){return this.path+="Q"+e+","+t+","+n+","+r,this.pen.x=n,this.pen.y=r,this}},{key:"arc",value:function(e,t,n,r,i,a){function o(e){for(;e<0;)e+=2*Math.PI;for(;e>2*Math.PI;)e-=2*Math.PI;return e}if((r=o(r))>(i=o(i))){var s=r;r=i,i=s,a=!a}var l=i-r;return l>Math.PI?(this.arcHelper(e,t,n,r,r+l/2,a),this.arcHelper(e,t,n,r+l/2,i,a)):this.arcHelper(e,t,n,r,i,a),this}},{key:"arcHelper",value:function(e,t,n,r,i,a){var o=e+n*Math.cos(r),s=t+n*Math.sin(r),l=e+n*Math.cos(i),u=t+n*Math.sin(i),c=0,h=0;a?(h=1,i-r<Math.PI&&(c=1)):i-r>Math.PI&&(c=1),this.path+="M"+o+","+s+",A"+n+","+n+",0,"+c+","+h+","+l+","+u+"M"+this.pen.x+","+this.pen.y}},{key:"glow",value:function(){var e=this.paper.set();if(this.shadow_attributes.width>0)for(var t=this.shadow_attributes,n=t.width/2,r=1;r<=n;r++)e.push(this.paper.path(this.path).attr({stroke:t.color,"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(t.width/n*r).toFixed(3),opacity:+((t.opacity||.3)/n).toFixed(3),transform:this.attributes.transform,scale:this.attributes.scale}));return e}},{key:"fill",value:function(){var e=this.paper.path(this.path).attr(this.attributes).attr("stroke-width",0);return this.glow(e),this}},{key:"stroke",value:function(){var e=this.lineWidth*(this.state.scale.x+this.state.scale.y)/2,t=this.paper.path(this.path).attr(this.attributes).attr("fill","none").attr("stroke-width",e);return this.glow(t),this}},{key:"closePath",value:function(){return this.path+="Z",this}},{key:"measureText",value:function(e){var t=this.paper.text(0,0,e).attr(this.attributes).attr("fill","none").attr("stroke","none"),n=t.getBBox();return t.remove(),{width:n.width,height:n.height}}},{key:"fillText",value:function(e,t,n){return this.paper.text(t+this.measureText(e).width/2,n-this.state.font_size/(2.25*this.state.scale.y),e).attr(this.attributes),this}},{key:"save",value:function(){return this.state_stack.push({state:{font_family:this.state.font_family},attributes:{font:this.attributes.font,fill:this.attributes.fill,stroke:this.attributes.stroke,"stroke-width":this.attributes["stroke-width"]},shadow_attributes:{width:this.shadow_attributes.width,color:this.shadow_attributes.color}}),this}},{key:"restore",value:function(){var e=this.state_stack.pop();return this.state.font_family=e.state.font_family,this.attributes.font=e.attributes.font,this.attributes.fill=e.attributes.fill,this.attributes.stroke=e.attributes.stroke,this.attributes["stroke-width"]=e.attributes["stroke-width"],this.shadow_attributes.width=e.shadow_attributes.width,this.shadow_attributes.color=e.shadow_attributes.color,this}}]),e}(),attrNamesToIgnoreMap={path:{x:!0,y:!0,width:!0,height:!0},rect:{},text:{width:!0,height:!0}},fontAttrNamesToIgnore={"font-family":!0,"font-weight":!0,"font-style":!0,"font-size":!0};Vex.Merge(attrNamesToIgnoreMap.rect,fontAttrNamesToIgnore),Vex.Merge(attrNamesToIgnoreMap.path,fontAttrNamesToIgnore);var SVGContext=function(){function e(t){_classCallCheck2(this,e),this.element=t,this.svgNS="http://www.w3.org/2000/svg";var n=this.create("svg");this.element.appendChild(n),this.svg=n,this.groups=[this.svg],this.parent=this.svg,this.path="",this.pen={x:NaN,y:NaN},this.lineWidth=1,this.state={scale:{x:1,y:1},"font-family":"Arial","font-size":"8pt","font-weight":"normal"},this.attributes={"stroke-width":.3,fill:"black",stroke:"black","stroke-dasharray":"none","font-family":"Arial","font-size":"10pt","font-weight":"normal","font-style":"normal"},this.background_attributes={"stroke-width":0,fill:"white",stroke:"white","stroke-dasharray":"none","font-family":"Arial","font-size":"10pt","font-weight":"normal","font-style":"normal"},this.shadow_attributes={width:0,color:"black"},this.state_stack=[],this.iePolyfill()}return _createClass2(e,[{key:"create",value:function(e){return document.createElementNS(this.svgNS,e)}},{key:"openGroup",value:function(e,t,n){var r=this.create("g");return this.groups.push(r),this.parent.appendChild(r),this.parent=r,e&&r.setAttribute("class",Vex.Prefix(e)),t&&r.setAttribute("id",Vex.Prefix(t)),n&&n.pointerBBox&&r.setAttribute("pointer-events","bounding-box"),r}},{key:"closeGroup",value:function(){this.groups.pop(),this.parent=this.groups[this.groups.length-1]}},{key:"add",value:function(e){this.parent.appendChild(e)}},{key:"iePolyfill",value:function(){"undefined"!=typeof navigator&&(this.ie=/MSIE 9/i.test(navigator.userAgent)||/MSIE 10/i.test(navigator.userAgent)||/rv:11\.0/i.test(navigator.userAgent)||/Trident/i.test(navigator.userAgent))}},{key:"setFont",value:function(e,t,n){var r=!1,i=!1,a="normal";"string"==typeof n&&(-1!==n.indexOf("italic")&&(n=n.replace(/italic/g,""),i=!0),-1!==n.indexOf("bold")&&(n=n.replace(/bold/g,""),r=!0),n=n.replace(/ /g,""));var o={"font-family":e,"font-size":t+"pt","font-weight":n=void 0===(n=r?"bold":n)||""===n?"normal":n,"font-style":a=i?"italic":a};return this.fontSize=Number(t),Vex.Merge(this.attributes,o),Vex.Merge(this.state,o),this}},{key:"setRawFont",value:function(e){var t=(e=e.trim()).split(" ");return this.attributes["font-family"]=t[1],this.state["font-family"]=t[1],this.attributes["font-size"]=t[0],this.state["font-size"]=t[0],this.fontSize=Number(t[0].match(/\d+/)),this}},{key:"setFillStyle",value:function(e){return this.attributes.fill=e,this}},{key:"setBackgroundFillStyle",value:function(e){return this.background_attributes.fill=e,this.background_attributes.stroke=e,this}},{key:"setStrokeStyle",value:function(e){return this.attributes.stroke=e,this}},{key:"setShadowColor",value:function(e){return this.shadow_attributes.color=e,this}},{key:"setShadowBlur",value:function(e){return this.shadow_attributes.width=e,this}},{key:"setLineWidth",value:function(e){this.attributes["stroke-width"]=e,this.lineWidth=e}},{key:"setLineDash",value:function(e){if("[object Array]"===Object.prototype.toString.call(e))return e=e.join(", "),this.attributes["stroke-dasharray"]=e,this;throw new Vex.RERR("ArgumentError","lineDash must be an array of integers.")}},{key:"setLineCap",value:function(e){return this.attributes["stroke-linecap"]=e,this}},{key:"resize",value:function(e,t){this.width=e,this.height=t,this.element.style.width=e;var n={width:e,height:t};return this.applyAttributes(this.svg,n),this.scale(this.state.scale.x,this.state.scale.y),this}},{key:"scale",value:function(e,t){this.state.scale={x:e,y:t};var n=this.width/e,r=this.height/t;return this.setViewBox(0,0,n,r),this}},{key:"setViewBox",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];this.svg.setAttribute("viewBox",r)}else{var i=t[0]+" "+t[1]+" "+t[2]+" "+t[3];this.svg.setAttribute("viewBox",i)}}},{key:"applyAttributes",value:function(e,t){var n=attrNamesToIgnoreMap[e.nodeName];return Object.keys(t).forEach((function(r){var i;n&&n[r]||!r||!t[r]||"d"===r&&(null===(i=t[r])||void 0===i?void 0:i.indexOf("NaN"))>-1||e.setAttributeNS(null,r,t[r])})),e}},{key:"clear",value:function(){for(;this.svg.lastChild;)this.svg.removeChild(this.svg.lastChild);this.scale(this.state.scale.x,this.state.scale.y)}},{key:"rect",value:function(e,t,n,r,i){r<0&&(t+=r,r*=-1);var a=this.create("rect");return void 0===i&&(i={fill:"none","stroke-width":this.lineWidth,stroke:"black"}),Vex.Merge(i,{x:e,y:t,width:n,height:r}),this.applyAttributes(a,i),this.add(a),this}},{key:"fillRect",value:function(e,t,n,r){return r<0&&(t+=r,r*=-1),this.rect(e,t,n,r,this.attributes),this}},{key:"clearRect",value:function(e,t,n,r){return this.rect(e,t,n,r,this.background_attributes),this}},{key:"beginPath",value:function(){return this.path="",this.pen.x=NaN,this.pen.y=NaN,this}},{key:"moveTo",value:function(e,t){return this.path+="M"+e+" "+t,this.pen.x=e,this.pen.y=t,this}},{key:"lineTo",value:function(e,t){return this.path+="L"+e+" "+t,this.pen.x=e,this.pen.y=t,this}},{key:"bezierCurveTo",value:function(e,t,n,r,i,a){return this.path+="C"+e+" "+t+","+n+" "+r+","+i+" "+a,this.pen.x=i,this.pen.y=a,this}},{key:"quadraticCurveTo",value:function(e,t,n,r){return this.path+="Q"+e+" "+t+","+n+" "+r,this.pen.x=n,this.pen.y=r,this}},{key:"arc",value:function(e,t,n,r,i,a){function o(e){for(;e<0;)e+=2*Math.PI;for(;e>2*Math.PI;)e-=2*Math.PI;return e}if((r=o(r))>(i=o(i))){var s=r;r=i,i=s,a=!a}var l=i-r;return l>Math.PI?(this.arcHelper(e,t,n,r,r+l/2,a),this.arcHelper(e,t,n,r+l/2,i,a)):this.arcHelper(e,t,n,r,i,a),this}},{key:"arcHelper",value:function(e,t,n,r,i,a){var o=e+n*Math.cos(r),s=t+n*Math.sin(r),l=e+n*Math.cos(i),u=t+n*Math.sin(i),c=0,h=0;a?(h=1,i-r<Math.PI&&(c=1)):i-r>Math.PI&&(c=1),this.path+="M"+o+" "+s+" A"+n+" "+n+" 0 "+c+" "+h+" "+l+" "+u,isNaN(this.pen.x)||isNaN(this.pen.y)||(this.peth+="M"+this.pen.x+" "+this.pen.y)}},{key:"closePath",value:function(){return this.path+="Z",this}},{key:"glow",value:function(){if(this.shadow_attributes.width>0)for(var e=this.shadow_attributes,t=e.width/2,n=1;n<=t;n++){var r={stroke:e.color,"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(.4*e.width/t*n).toFixed(3),opacity:+((e.opacity||.3)/t).toFixed(3)},i=this.create("path");r.d=this.path,this.applyAttributes(i,r),this.add(i)}return this}},{key:"fill",value:function(e){this.glow();var t=this.create("path"),n=e;return void 0===e?(e={},Vex.Merge(e,this.attributes),e.stroke="none",n=e):(n=e,Vex.Merge(n,this.attributes),e.class&&(n.class=e.class),e.id&&(n.id=e.id)),e.d=this.path,this.applyAttributes(t,e),this.add(t),this}},{key:"stroke",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.glow();var t=this.create("path"),n={};return Vex.Merge(n,this.attributes),e&&Vex.Merge(n,e),n.fill="none",n["stroke-width"]=this.lineWidth,n.d=this.path,this.applyAttributes(t,n),this.add(t),this}},{key:"measureText",value:function(e){var t=this.create("text");if("function"!=typeof t.getBBox)return{x:0,y:0,width:0,height:0};t.textContent=e,this.applyAttributes(t,this.attributes),this.svg.appendChild(t);var n=t.getBBox();return this.ie&&""!==e&&"italic"===this.attributes["font-style"]&&(n=this.ieMeasureTextFix(n,e)),this.svg.removeChild(t),n}},{key:"ieMeasureTextFix",value:function(e){var t=1.196*Number(this.fontSize)+1.9598,n=e.width-t,r=e.height-1.5;return{x:e.x,y:e.y,width:n,height:r}}},{key:"fillText",value:function(e,t,n){if(e&&!(e.length<=0)){var r={};Vex.Merge(r,this.attributes),r.stroke="none",r.x=t,r.y=n;var i=this.create("text");i.textContent=e,this.applyAttributes(i,r),this.add(i)}}},{key:"save",value:function(){return this.state_stack.push({state:{"font-family":this.state["font-family"],"font-weight":this.state["font-weight"],"font-style":this.state["font-style"],"font-size":this.state["font-size"],scale:this.state.scale},attributes:{"font-family":this.attributes["font-family"],"font-weight":this.attributes["font-weight"],"font-style":this.attributes["font-style"],"font-size":this.attributes["font-size"],fill:this.attributes.fill,stroke:this.attributes.stroke,"stroke-width":this.attributes["stroke-width"],"stroke-dasharray":this.attributes["stroke-dasharray"]},shadow_attributes:{width:this.shadow_attributes.width,color:this.shadow_attributes.color},lineWidth:this.lineWidth}),this}},{key:"restore",value:function(){var e=this.state_stack.pop();return this.state["font-family"]=e.state["font-family"],this.state["font-weight"]=e.state["font-weight"],this.state["font-style"]=e.state["font-style"],this.state["font-size"]=e.state["font-size"],this.state.scale=e.state.scale,this.attributes["font-family"]=e.attributes["font-family"],this.attributes["font-weight"]=e.attributes["font-weight"],this.attributes["font-style"]=e.attributes["font-style"],this.attributes["font-size"]=e.attributes["font-size"],this.attributes.fill=e.attributes.fill,this.attributes.stroke=e.attributes.stroke,this.attributes["stroke-width"]=e.attributes["stroke-width"],this.attributes["stroke-dasharray"]=e.attributes["stroke-dasharray"],this.shadow_attributes.width=e.shadow_attributes.width,this.shadow_attributes.color=e.shadow_attributes.color,this.lineWidth=e.lineWidth,this}}]),e}(),lastContext=null,Renderer=function(){function e(t,n){if(_classCallCheck2(this,e),this.elementId=t,!this.elementId)throw new Vex.RERR("BadArgument","Invalid id for renderer.");if(this.element=document.getElementById(t),this.element||(this.element=t),this.ctx=null,this.paper=null,this.backend=n,this.backend===e.Backends.CANVAS){if(!this.element.getContext)throw new Vex.RERR("BadElement","Can't get canvas context from element: ".concat(t));this.ctx=e.bolsterCanvasContext(this.element.getContext("2d"))}else if(this.backend===e.Backends.RAPHAEL)this.ctx=new RaphaelContext(this.element);else{if(this.backend!==e.Backends.SVG)throw new Vex.RERR("InvalidBackend","No support for backend: ".concat(this.backend));this.ctx=new SVGContext(this.element)}}return _createClass2(e,[{key:"resize",value:function(t,n){if(this.backend===e.Backends.CANVAS){if(!this.element.getContext)throw new Vex.RERR("BadElement","Can't get canvas context from element: ".concat(this.elementId));var r=_slicedToArray(CanvasContext.SanitizeCanvasDims(t,n),2);t=r[0],n=r[1];var i=window.devicePixelRatio||1;this.element.width=t*i,this.element.height=n*i,this.element.style.width=t+"px",this.element.style.height=n+"px",this.ctx=e.bolsterCanvasContext(this.element.getContext("2d")),this.ctx.scale(i,i)}else this.ctx.resize(t,n);return this}},{key:"getContext",value:function(){return this.ctx}}],[{key:"Backends",get:function(){return{CANVAS:1,RAPHAEL:2,SVG:3,VML:4}}},{key:"LineEndType",get:function(){return{NONE:1,UP:2,DOWN:3}}},{key:"USE_CANVAS_PROXY",get:function(){return!1}},{key:"lastContext",get:function(){return lastContext},set:function(e){lastContext=e}},{key:"buildContext",value:function(t,n,r,i,a){var o=new e(t,n);r&&i&&o.resize(r,i),a||(a="#FFF");var s=o.getContext();return s.setBackgroundFillStyle(a),e.lastContext=s,s}},{key:"getCanvasContext",value:function(t,n,r,i){return e.buildContext(t,e.Backends.CANVAS,n,r,i)}},{key:"getRaphaelContext",value:function(t,n,r,i){return e.buildContext(t,e.Backends.RAPHAEL,n,r,i)}},{key:"getSVGContext",value:function(t,n,r,i){return e.buildContext(t,e.Backends.SVG,n,r,i)}},{key:"bolsterCanvasContext",value:function(t){if(e.USE_CANVAS_PROXY)return new CanvasContext(t);return t.vexFlowCanvasContext=t,["clear","setFont","setRawFont","setFillStyle","setBackgroundFillStyle","setStrokeStyle","setShadowColor","setShadowBlur","setLineWidth","setLineCap","setLineDash","openGroup","closeGroup","getGroup"].forEach((function(e){t[e]=t[e]||CanvasContext.prototype[e]})),t}},{key:"drawDashedLine",value:function(e,t,n,r,i,a){e.beginPath();var o=r-t,s=i-n,l=Math.atan2(s,o),u=t,c=n;e.moveTo(t,n);for(var h=0,d=!0;!(o<0?u<=r:u>=r)||!(s<0?c<=i:c>=i);){var f=a[h++%a.length],p=u+Math.cos(l)*f;u=o<0?Math.max(r,p):Math.min(r,p);var v=c+Math.sin(l)*f;c=s<0?Math.max(i,v):Math.min(i,v),d?e.lineTo(u,c):e.moveTo(u,c),d=!d}e.closePath(),e.stroke()}}]),e}();function L$j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Stem.DEBUG&&Vex.L("Vex.Flow.Stem",t)}var Stem=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Stem"),e.x_begin=r.x_begin||0,e.x_end=r.x_end||0,e.y_top=r.y_top||0,e.y_bottom=r.y_bottom||0,e.stem_extension=r.stem_extension||0,e.stem_direction=r.stem_direction||0,e.hide=r.hide||!1,e.isStemlet=r.isStemlet||!1,e.stemletHeight=r.stemletHeight||0,e.resetHeight=0,e.renderHeightAdjustment=0,e.setOptions(r),e}return _createClass2(n,[{key:"setResetHeight",value:function(e){this.resetHeight=e}},{key:"setOptions",value:function(e){this.stem_up_y_offset=e.stem_up_y_offset||0,this.stem_down_y_offset=e.stem_down_y_offset||0}},{key:"setNoteHeadXBounds",value:function(e,t){return this.x_begin=e,this.x_end=t,this}},{key:"setDirection",value:function(e){this.stem_direction=e}},{key:"setExtension",value:function(e){this.stem_extension=e}},{key:"getExtension",value:function(){return this.stem_extension}},{key:"setYBounds",value:function(e,t){this.y_top=e,this.y_bottom=t}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getHeight",value:function(){var e=this.stem_direction===n.UP?this.stem_up_y_offset:this.stem_down_y_offset;return(this.y_bottom-this.y_top)*this.stem_direction+(n.HEIGHT-e+this.stem_extension)*this.stem_direction}},{key:"getBoundingBox",value:function(){throw new Vex.RERR("NotImplemented","getBoundingBox() not implemented.")}},{key:"getExtents",value:function(){var e=this.stem_direction===n.UP,t=[this.y_top,this.y_bottom],r=n.HEIGHT+this.stem_extension,i=(e?Math.min:Math.max).apply(void 0,t),a=(e?Math.max:Math.min).apply(void 0,t);return{topY:i+r*-this.stem_direction+this.resetHeight*-this.stem_direction,baseY:a}}},{key:"setVisibility",value:function(e){return this.hide=!e,this}},{key:"setStemlet",value:function(e,t){return this.isStemlet=e,this.stemletHeight=t,this}},{key:"draw",value:function(){if(this.setRendered(),!this.hide){var e,t,r=this.checkContext(),i=this.stem_direction;i===n.DOWN?(e=this.x_begin,t=this.y_top+this.stem_down_y_offset):(e=this.x_end,t=this.y_bottom-this.stem_up_y_offset);var a=this.getHeight();L$j("Rendering stem - ","Top Y: ",this.y_top,"Bottom Y: ",this.y_bottom);var o=this.isStemlet?a-this.stemletHeight*this.stem_direction:0;if(r.save(),this.applyStyle(r),r.beginPath(),r.setLineWidth(n.WIDTH),r.moveTo(e,t-o),r.lineTo(e,t-a-this.renderHeightAdjustment*i-this.resetHeight*i),r.svg){var s={class:Vex.Prefix("stem")};this.id&&(s.id=this.id),r.stroke(s)}else r.stroke();this.restoreStyle(r),r.restore()}}}],[{key:"CATEGORY",get:function(){return"stem"}},{key:"UP",get:function(){return 1}},{key:"DOWN",get:function(){return-1}},{key:"WIDTH",get:function(){return Flow.STEM_WIDTH}},{key:"HEIGHT",get:function(){return Flow.STEM_HEIGHT}}]),n}(Element$1),Tuplet$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;if(_classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","Tuplet"),!e||!e.length)throw new Vex.RuntimeError("BadArguments","No notes provided for tuplet.");return i.options=Vex.Merge({},r),i.notes=e,i.num_notes="num_notes"in i.options?i.options.num_notes:e.length,i.options.beats_occupied&&i.beatsOccupiedDeprecationWarning(),i.notes_occupied=i.options.notes_occupied||i.options.beats_occupied||2,"bracketed"in i.options?i.bracketed=i.options.bracketed:i.bracketed=e.some((function(e){return null===e.beam})),i.ratioed="ratioed"in i.options?i.options.ratioed:Math.abs(i.notes_occupied-i.num_notes)>1,i.point=28,i.y_pos=16,i.x_pos=100,i.width=200,i.location=i.options.location||n.LOCATION_TOP,_Formatter.AlignRestsToNotes(e,!0,!0),i.resolveGlyphs(),i.attach(),i}return _createClass2(n,[{key:"attach",value:function(){for(var e=0;e<this.notes.length;e++){this.notes[e].setTuplet(this)}}},{key:"detach",value:function(){for(var e=0;e<this.notes.length;e++){this.notes[e].resetTuplet(this)}}},{key:"setBracketed",value:function(e){return this.bracketed=!!e,this}},{key:"setRatioed",value:function(e){return this.ratioed=!!e,this}},{key:"setTupletLocation",value:function(e){if(e){if(e!==n.LOCATION_TOP&&e!==n.LOCATION_BOTTOM)throw new Vex.RERR("BadArgument","Invalid tuplet location: "+e)}else e=n.LOCATION_TOP;return this.location=e,this}},{key:"getNotes",value:function(){return this.notes}},{key:"getNoteCount",value:function(){return this.num_notes}},{key:"beatsOccupiedDeprecationWarning",value:function(){var e=["beats_occupied has been deprecated as an ","option for tuplets. Please use notes_occupied ","instead. Calls to getBeatsOccupied and ","setBeatsOccupied should now be routed to ","getNotesOccupied and setNotesOccupied instead"].join("");console&&console.warn?console.warn(e):console&&console.log(e)}},{key:"getBeatsOccupied",value:function(){return this.beatsOccupiedDeprecationWarning(),this.getNotesOccupied()}},{key:"setBeatsOccupied",value:function(e){return this.beatsOccupiedDeprecationWarning(),this.setNotesOccupied(e)}},{key:"getNotesOccupied",value:function(){return this.notes_occupied}},{key:"setNotesOccupied",value:function(e){this.detach(),this.notes_occupied=e,this.resolveGlyphs(),this.attach()}},{key:"resolveGlyphs",value:function(){this.numerator_glyphs=[];for(var e=this.num_notes;e>=1;)this.numerator_glyphs.unshift(new Glyph("v"+e%10,this.point)),e=parseInt(e/10,10);for(this.denom_glyphs=[],e=this.notes_occupied;e>=1;)this.denom_glyphs.unshift(new Glyph("v"+e%10,this.point)),e=parseInt(e/10,10)}},{key:"getNestedTupletCount",value:function(){var e=this.location,t=this.notes[0],n=i(t,e),r=i(t,e);function i(e,t){return e.tupletStack.filter((function(e){return e.location===t})).length}return this.notes.forEach((function(t){var a=i(t,e);n=a>n?a:n,r=a<r?a:r})),n-r}},{key:"getYPosition",value:function(){var e,t=this.getNestedTupletCount()*n.NESTING_OFFSET*-this.location,r=this.options.y_offset||0,i=this.notes[0];if(this.location===n.LOCATION_TOP){e=i.getStave().getYForLine(0)-15;for(var a=0;a<this.notes.length;++a){var o=this.notes[a].getStemDirection()===Stem.UP?this.notes[a].getStemExtents().topY-10:this.notes[a].getStemExtents().baseY-20;o<e&&(e=o)}}else{e=i.getStave().getYForLine(4)+20;for(var s=0;s<this.notes.length;++s){var l=this.notes[s].getStemDirection()===Stem.UP?this.notes[s].getStemExtents().baseY+20:this.notes[s].getStemExtents().topY+10;l>e&&(e=l)}}return e+t+r}},{key:"draw",value:function(){var e=this;this.checkContext(),this.setRendered();var t=this.notes[0],r=this.notes[this.notes.length-1];this.bracketed?(this.x_pos=t.getTieLeftX()-5,this.width=r.getTieRightX()-this.x_pos+5):(this.x_pos=t.getStemX(),this.width=r.getStemX()-this.x_pos),this.y_pos=this.getYPosition();var i=function(e,t){return e+t.getMetrics().width},a=this.numerator_glyphs.reduce(i,0);this.ratioed&&(a=this.denom_glyphs.reduce(i,a),a+=.32*this.point);var o=this.x_pos+this.width/2-a/2;if(this.bracketed){var s=this.width/2-a/2-5;s>0&&(this.context.fillRect(this.x_pos,this.y_pos,s,1),this.context.fillRect(this.x_pos+this.width/2+a/2+5,this.y_pos,s,1),this.context.fillRect(this.x_pos,this.y_pos+(this.location===n.LOCATION_BOTTOM),1,10*this.location),this.context.fillRect(this.x_pos+this.width,this.y_pos+(this.location===n.LOCATION_BOTTOM),1,10*this.location))}var l=0;if(this.numerator_glyphs.forEach((function(t){t.render(e.context,o+l,e.y_pos+e.point/3-2),l+=t.getMetrics().width})),this.ratioed){var u=o+l+.16*this.point,c=.06*this.point;this.context.beginPath(),this.context.arc(u,this.y_pos-.08*this.point,c,0,2*Math.PI,!0),this.context.closePath(),this.context.fill(),this.context.beginPath(),this.context.arc(u,this.y_pos+.12*this.point,c,0,2*Math.PI,!0),this.context.closePath(),this.context.fill(),l+=.32*this.point,this.denom_glyphs.forEach((function(t){t.render(e.context,o+l,e.y_pos+e.point/3-2),l+=t.getMetrics().width}))}}}],[{key:"LOCATION_TOP",get:function(){return 1}},{key:"LOCATION_BOTTOM",get:function(){return-1}},{key:"NESTING_OFFSET",get:function(){return 15}}]),n}(Element$1);function calculateStemDirection(e){var t=0;return e.forEach((function(e){e.keyProps&&e.keyProps.forEach((function(e){t+=e.line-3}))})),t>=0?Stem.DOWN:Stem.UP}var getStemSlope=function(e,t){var n=e.getStemExtents().topY,r=e.getStemX();return(t.getStemExtents().topY-n)/(t.getStemX()-r)},BEAM_LEFT="L",BEAM_RIGHT="R",BEAM_BOTH="B",Beam$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i,a,o;if(_classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","Beam"),!e||e===[])throw new Vex.RuntimeError("BadArguments","No notes provided for beam.");if(1===e.length)throw new Vex.RuntimeError("BadArguments","Too few notes for beam.");if(i.ticks=e[0].getIntrinsicTicks(),i.ticks>=Flow.durationToTicks("4"))throw new Vex.RuntimeError("BadArguments","Beams can only be applied to notes shorter than a quarter note.");for(i.stem_direction=Stem.UP,a=0;a<e.length;++a)if((o=e[a]).hasStem()){i.stem_direction=o.getStemDirection();break}var s=i.stem_direction;if(r&&"stavenotes"===e[0].getCategory())s=calculateStemDirection(e);else if(r&&"tabnotes"===e[0].getCategory()){var l=e.reduce((function(e,t){return e+t.stem_direction}),0);s=l>-1?Stem.UP:Stem.DOWN}for(a=0;a<e.length;++a)o=e[a],r&&(o.setStemDirection(s),i.stem_direction=s),o.setBeam(_assertThisInitialized2(i));return i.postFormatted=!1,i.notes=e,i.beam_count=i.getBeamCount(),i.break_on_indices=[],i.render_options={beam_width:5,max_slope:.25,min_slope:-.25,slope_iterations:20,slope_cost:100,show_stemlets:!1,stemlet_extension:7,partial_beam_length:10,flat_beams:!1,min_flat_beam_offset:15},i}return _createClass2(n,[{key:"getNotes",value:function(){return this.notes}},{key:"getBeamCount",value:function(){var e=this.notes.map((function(e){return e.getGlyph().beam_count}));return e.reduce((function(e,t){return t>e?t:e}))}},{key:"breakSecondaryAt",value:function(e){return this.break_on_indices=e,this}},{key:"getSlopeY",value:function(e,t,n,r){return n+(e-t)*r}},{key:"calculateSlope",value:function(){for(var e=this.notes,t=this.stem_direction,n=this.render_options,r=n.max_slope,i=n.min_slope,a=n.slope_iterations,o=n.slope_cost,s=e[0],l=getStemSlope(s,e[e.length-1]),u=(r-i)/a,c=Number.MAX_VALUE,h=0,d=0,f=i;f<=r;f+=u){for(var p=0,v=0,m=1;m<e.length;++m){var g=e[m],y=this.getSlopeY(g.getStemX(),s.getStemX(),s.getStemExtents().topY,f)+v,b=g.getStemExtents().topY;if(b*t<y*t){var A=Math.abs(b-y);v+=A*-t,p+=A*m}else p+=(b-y)*t}var S=l/2,x=o*Math.abs(S-f)+Math.abs(p);x<c&&(c=x,h=f,d=v)}this.slope=h,this.y_shift=d}},{key:"calculateFlatSlope",value:function(){for(var e=this.notes,t=this.stem_direction,n=this.render_options,r=n.beam_width,i=n.min_flat_beam_offset,a=n.flat_beam_offset,o=0,s=0,l=0,u=0,c=0;c<e.length;c++){var h=e[c],d=h.getStemExtents().topY;o+=d,t===Stem.DOWN&&u<d?(u=d,s=Math.max.apply(Math,_toConsumableArray2(h.getYs())),l=h.getBeamCount()):t===Stem.UP&&(0===u||u>d)&&(u=d,s=Math.min.apply(Math,_toConsumableArray2(h.getYs())),l=h.getBeamCount())}var f=o/e.length,p=i+l*(1.5*r),v=s+p*-t;t===Stem.DOWN&&f<v?f=s+p:t===Stem.UP&&f>v&&(f=s-p),a+this.render_options.flat_beam_offset_per_beam>0?(t===Stem.DOWN&&f>a&&!this.render_options.flat_beams||t===Stem.UP&&f<a&&!this.render_options.flat_beams)&&(this.render_options.flat_beam_offset=f):this.render_options.flat_beam_offset=f,this.slope=0,this.y_shift=0}},{key:"getBeamYToDraw",value:function(){var e=this.notes[0].getStemExtents().topY;if(this.render_options.flat_beams&&this.render_options.flat_beam_offset+this.render_options.flat_beam_offset_per_beam>0){var t=this.render_options.flat_beam_offset;this.render_options.flat_beam_offset_per_beam&&(t+=this.render_options.flat_beam_offset_per_beam*this.getBeamCount());var n,r=this.notes[0].note_heads[0].y,i=this.stem_direction>0?Math.min:Math.max,a=_createForOfIteratorHelper(this.notes);try{for(a.s();!(n=a.n()).done;){var o,s=_createForOfIteratorHelper(n.value.note_heads);try{for(s.s();!(o=s.n()).done;){r=i(r,o.value.y)}}catch(err){s.e(err)}finally{s.f()}}}catch(err){a.e(err)}finally{a.f()}e=r+t*-this.stem_direction}return e}},{key:"applyStemExtensions",value:function(){for(var e=this.notes,t=this.slope,n=this.y_shift,r=this.stem_direction,i=this.beam_count,a=this.render_options,o=a.show_stemlets,s=a.stemlet_extension,l=a.beam_width,u=e[0],c=this.getBeamYToDraw(),h=u.getStemX(),d=0;d<e.length;++d){var f=e[d],p=f.getStemX(),v=f.getStemExtents().topY,m=this.getSlopeY(p,h,c,t)+n,g=f.getStem().getExtension(),y=r===Stem.UP?v-m:m-v;if(f.stem.setExtension(g+y),f.stem.renderHeightAdjustment=-Stem.WIDTH/2,f.isRest()&&o){var b=(i-1)*l*1.5+l;f.stem.setVisibility(!0).setStemlet(!0,b+s)}}}},{key:"lookupBeamDirection",value:function(e,t,n,r){if("4"===e)return BEAM_LEFT;var i="".concat(Flow.durationToNumber(e)/2),a=t<Flow.durationToTicks(i),o=r<Flow.durationToTicks(i),s=n<Flow.durationToTicks(i);return a&&o&&s?BEAM_BOTH:a&&!o&&s?BEAM_LEFT:!a&&o&&s?BEAM_RIGHT:this.lookupBeamDirection(i,t,n,r)}},{key:"getBeamLines",value:function(e){for(var t=Flow.durationToTicks(e),n=[],r=!1,i=null,a=this.render_options.partial_beam_length,o=!1,s=0,l=0;l<this.notes.length;++l){var u=this.notes[l];s+=u.ticks.value();var c=!1;parseInt(e,10)>=8&&(c=-1!==this.break_on_indices.indexOf(l),this.render_options.secondary_break_ticks&&s>=this.render_options.secondary_break_ticks&&(s=0,c=!0));var h=u.getIntrinsicTicks()<t,d=u.getStemX()-Stem.WIDTH/2,f=this.notes[l-1],p=this.notes[l+1],v=p&&p.getIntrinsicTicks()<t,m=f&&f.getIntrinsicTicks()<t,g=f&&p&&h&&!m&&!v;if(h)if(r)(i=n[n.length-1]).end=d,c&&(r=!1,p&&!v&&null===i.end&&(i.end=i.start-a));else{if(i={start:d,end:null,start_note:u},r=!0,g){var y=f.getIntrinsicTicks(),b=p.getIntrinsicTicks(),A=u.getIntrinsicTicks(),S=this.lookupBeamDirection(e,y,A,b);[BEAM_LEFT,BEAM_BOTH].includes(S)?i.end=i.start-a:i.end=i.start+a}else v?c&&(i.end=i.start-a,r=!1):i.end=(o||0===l)&&p?i.start+a:i.start-a;n.push(i)}else r=!1;o=c}var x=n[n.length-1];return x&&null===x.end&&(x.end=x.start-a),n}},{key:"drawStems",value:function(){var e=this;this.notes.forEach((function(t){t.getStem()&&(e.context.openGroup("stem",t.getAttribute("id")+"-stem"),t.getStem().setContext(e.context).draw(),e.context.closeGroup())}),this)}},{key:"drawBeamLines",value:function(){this.checkContext();var e,t=["4","8","16","32","64"],n=this.notes[0],r=this.getBeamYToDraw(),i=n.getStemX(),a=this.render_options.beam_width*this.stem_direction,o={},s=_createForOfIteratorHelper(this.notes);try{for(s.s();!(e=s.n()).done;){o[e.value.getAttribute("id")]=0}}catch(err){s.e(err)}finally{s.f()}for(var l=0;l<t.length;++l){for(var u=t[l],c=this.getBeamLines(u),h=0;h<c.length;++h){var d=c[h],f=d.start,p=d.start_note.getAttribute("id"),v=o[p];o[p]++;var m=this.getSlopeY(f,i,r,this.slope),g=d.end,y=this.getSlopeY(g,i,r,this.slope),b=p;this.context.openGroup("beam","".concat(b,"-beam").concat(v)),this.context.beginPath(),this.context.moveTo(f,m),this.context.lineTo(f,m+a),this.context.lineTo(g+1,y+a),this.context.lineTo(g+1,y),this.context.closePath(),this.context.fill(),this.context.closeGroup()}r+=1.5*a}}},{key:"preFormat",value:function(){return this}},{key:"postFormat",value:function(){this.postFormatted||("tabnotes"===this.notes[0].getCategory()||this.render_options.flat_beams?this.calculateFlatSlope():this.calculateSlope(),this.applyStemExtensions(),this.postFormatted=!0)}},{key:"draw",value:function(){this.checkContext(),this.setRendered(),this.unbeamable||(this.postFormatted||this.postFormat(),this.drawStems(),this.applyStyle(),this.drawBeamLines(),this.restoreStyle())}}],[{key:"getDefaultBeamGroups",value:function(e){e&&"c"!==e||(e="4/4");var t={"1/2":["1/2"],"2/2":["1/2"],"3/2":["1/2"],"4/2":["1/2"],"1/4":["1/4"],"2/4":["1/4"],"3/4":["1/4"],"4/4":["1/4"],"1/8":["1/8"],"2/8":["2/8"],"3/8":["3/8"],"4/8":["2/8"],"1/16":["1/16"],"2/16":["2/16"],"3/16":["3/16"],"4/16":["2/16"]}[e];if(void 0!==t)return t.map((function(e){return(new Fraction).parse(e)}));var n=parseInt(e.split("/")[0],10),r=parseInt(e.split("/")[1],10);return n%3==0?[new Fraction(3,r)]:r>4?[new Fraction(2,r)]:r<=4?[new Fraction(1,r)]:[new Fraction(1,4)]}},{key:"applyAndGetBeams",value:function(e,t,r){return n.generateBeams(e.getTickables(),{groups:r,stem_direction:t})}},{key:"generateBeams",value:function(e,t){t||(t={}),t.groups&&t.groups.length||(t.groups=[new Fraction(2,8)]);var r,i,a=t.groups.map((function(e){if(!e.multiply)throw new Vex.RuntimeError("InvalidBeamGroups","The beam groups must be an array of Vex.Flow.Fractions");return e.clone().multiply(Flow.RESOLUTION,1)})),o=0,s=[],l=[];function u(){a.length-1>o?o+=1:o=0}r=[],e.forEach((function(e){if(r=[],e.shouldIgnoreTicks())return s.push(l),void(l=r);l.push(e);var t=a[o].clone(),n=l.reduce((function(e,t){return t.getTicks().clone().add(e)}),new Fraction(0,1)),i=Flow.durationToNumber(e.duration)<8;i&&e.tuplet&&(t.numerator*=2),n.greaterThan(t)?(i||r.push(l.pop()),s.push(l),l=r,u()):n.equals(t)&&(s.push(l),l=r,u())})),l.length>0&&s.push(l),i=[],s.forEach((function(e){var n=[];e.forEach((function(e,r,a){var o=0===r||r===a.length-1,s=a[r-1],l=!t.beam_rests&&e.isRest(),u=t.beam_rests&&t.beam_middle_only&&e.isRest()&&o,c=!1;if(t.maintain_stem_directions&&s&&!e.isRest()&&!s.isRest()){var h=s.getStemDirection();c=e.getStemDirection()!==h}var d=parseInt(e.duration,10)<8;l||u||c||d?(n.length>0&&i.push(n),n=c?[e]:[]):n.push(e)})),n.length>0&&i.push(n)})),(s=i).forEach((function(e){var n;if(t.maintain_stem_directions){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(!n.isRest())return n}return!1}(e);n=r?r.getStemDirection():Stem.UP}else n=t.stem_direction?t.stem_direction:calculateStemDirection(e);!function(e,t){e.forEach((function(e){e.setStemDirection(t)}))}(e,n)}));var c,h=s.filter((function(e){if(e.length>1){var t=!0;return e.forEach((function(e){e.getIntrinsicTicks()>=Flow.durationToTicks("4")&&(t=!1)})),t}return!1})),d=(c=[],s.forEach((function(e){var t=null;e.forEach((function(e){e.tuplet&&t!==e.tuplet&&(t=e.tuplet,c.push(t))}))})),c),f=[];return h.forEach((function(e){var r=new n(e);t.show_stemlets&&(r.render_options.show_stemlets=!0),t.secondary_breaks&&(r.render_options.secondary_break_ticks=Flow.durationToTicks(t.secondary_breaks)),!0===t.flat_beams&&(r.render_options.flat_beams=!0,r.render_options.flat_beam_offset=t.flat_beam_offset),f.push(r)})),d.forEach((function(e){var t=e.notes[0].stem_direction===Stem.DOWN?Tuplet$1.LOCATION_BOTTOM:Tuplet$1.LOCATION_TOP;e.setTupletLocation(t);for(var n=!1,r=0;r<e.notes.length;r++){if(null===e.notes[r].beam){n=!0;break}}e.setBracketed(n)})),f}}]),n}(Element$1),Voice$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Voice"),"string"==typeof e){var i=e.match(/(\d+)\/(\d+)/);i&&(e={num_beats:i[1],beat_value:i[2],resolution:Flow.RESOLUTION})}return r.time=Vex.Merge({num_beats:4,beat_value:4,resolution:Flow.RESOLUTION},e),r.totalTicks=new Fraction(r.time.num_beats*(r.time.resolution/r.time.beat_value),1),r.resolutionMultiplier=1,r.tickables=[],r.ticksUsed=new Fraction(0,1),r.smallestTickCount=r.totalTicks.clone(),r.largestTickWidth=0,r.stave=null,r.mode=n.Mode.STRICT,r.voiceGroup=null,r}return _createClass2(n,[{key:"getTotalTicks",value:function(){return this.totalTicks}},{key:"getTicksUsed",value:function(){return this.ticksUsed}},{key:"getLargestTickWidth",value:function(){return this.largestTickWidth}},{key:"getSmallestTickCount",value:function(){return this.smallestTickCount}},{key:"getTickables",value:function(){return this.tickables}},{key:"getMode",value:function(){return this.mode}},{key:"setMode",value:function(e){return this.mode=e,this}},{key:"getResolutionMultiplier",value:function(){return this.resolutionMultiplier}},{key:"getActualResolution",value:function(){return this.resolutionMultiplier*this.time.resolution}},{key:"setStave",value:function(e){return this.stave=e,this.boundingBox=null,this}},{key:"getBoundingBox",value:function(){var e,t,n,r;if(!this.boundingBox){if(!this.stave)throw new Vex.RERR("NoStave","Can't get bounding box without stave.");for(e=this.stave,t=null,r=0;r<this.tickables.length;++r)this.tickables[r].setStave(e),(n=this.tickables[r].getBoundingBox())&&(t=t?t.mergeWith(n):n);this.boundingBox=t}return this.boundingBox}},{key:"getVoiceGroup",value:function(){if(!this.voiceGroup)throw new Vex.RERR("NoVoiceGroup","No voice group for voice.");return this.voiceGroup}},{key:"setVoiceGroup",value:function(e){return this.voiceGroup=e,this}},{key:"setStrict",value:function(e){return this.mode=e?n.Mode.STRICT:n.Mode.SOFT,this}},{key:"isComplete",value:function(){return this.mode!==n.Mode.STRICT&&this.mode!==n.Mode.FULL||this.ticksUsed.equals(this.totalTicks)}},{key:"addTickable",value:function(e){if(!e.shouldIgnoreTicks()){var t=e.getTicks();if(this.ticksUsed.add(t),(this.mode===n.Mode.STRICT||this.mode===n.Mode.FULL)&&this.ticksUsed.greaterThan(this.totalTicks))throw this.ticksUsed.subtract(t),new Vex.RERR("BadArgument","Too many ticks.");t.lessThan(this.smallestTickCount)&&(this.smallestTickCount=t.clone()),this.resolutionMultiplier=this.ticksUsed.denominator,this.totalTicks.add(0,this.ticksUsed.denominator)}return this.tickables.push(e),e.setVoice(this),this}},{key:"addTickables",value:function(e){for(var t=0;t<e.length;++t)this.addTickable(e[t]);return this}},{key:"preFormat",value:function(){var e=this;return this.preFormatted||(this.tickables.forEach((function(t){t.getStave()||t.setStave(e.stave)})),this.preFormatted=!0),this}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.context,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.stave;this.setRendered();for(var n=null,r=0;r<this.tickables.length;++r){var i=this.tickables[r];if(t&&i.setStave(t),!i.getStave())throw new Vex.RuntimeError("MissingStave","The voice cannot draw tickables without staves.");if(0===r&&(n=i.getBoundingBox()),r>0&&n){var a=i.getBoundingBox();a&&n.mergeWith(a)}i.setContext(e),i.drawWithStyle()}this.boundingBox=n}}],[{key:"Mode",get:function(){return{STRICT:1,SOFT:2,FULL:3}}}]),n}(Element$1);function drawBoldDoubleLine(e,t,n,r,i){if(t!==_StaveConnector.type.BOLD_DOUBLE_LEFT&&t!==_StaveConnector.type.BOLD_DOUBLE_RIGHT)throw new Vex.RERR("InvalidConnector","A REPEAT_BEGIN or REPEAT_END type must be provided.");var a=3,o=3.5;t===_StaveConnector.type.BOLD_DOUBLE_RIGHT&&(a=-5,o=3),e.fillRect(n+a,r,1,i-r),e.fillRect(n-2,r,o,i-r)}var _StaveConnector=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","StaveConnector"),i.thickness=Flow.STAVE_LINE_THICKNESS,i.width=3,i.top_stave=e,i.bottom_stave=r,i.type=n.type.DOUBLE,i.font={family:"times",size:16,weight:"normal"},i.x_shift=0,i.texts=[],i}return _createClass2(n,[{key:"setType",value:function(e){return(e="string"==typeof e?n.typeString[e]:e)>=n.type.SINGLE_RIGHT&&e<=n.type.NONE&&(this.type=e),this}},{key:"setText",value:function(e,t){return this.texts.push({content:e,options:Vex.Merge({shift_x:0,shift_y:0},t)}),this}},{key:"setFont",value:function(e){Vex.Merge(this.font,e)}},{key:"setXShift",value:function(e){if("number"!=typeof e)throw Vex.RERR("InvalidType","x_shift must be a Number");return this.x_shift=e,this}},{key:"draw",value:function(){var e=this.checkContext();this.setRendered();var t=this.top_stave.getYForLine(0),r=this.bottom_stave.getYForLine(this.bottom_stave.getNumLines()-1)+this.thickness,i=this.width,a=this.top_stave.getX();(this.type===n.type.SINGLE_RIGHT||this.type===n.type.BOLD_DOUBLE_RIGHT||this.type===n.type.THIN_DOUBLE)&&(a=this.top_stave.getX()+this.top_stave.width);var o=r-t;switch(this.type){case n.type.SINGLE:case n.type.SINGLE_LEFT:case n.type.SINGLE_RIGHT:i=1;break;case n.type.DOUBLE:a-=this.width+2;break;case n.type.BRACE:i=12;var s=this.top_stave.getX()-2+this.x_shift,l=t,u=s,c=r,h=s-i,d=l+o/2,f=h-.9*i,p=l+.2*o,v=s+1.1*i,m=d-.135*o,g=v,y=d+.135*o,b=f,A=c-.2*o,S=h-i,x=A,w=s+.4*i,_=d+.135*o,E=w,k=d-.135*o,C=S,M=p;e.beginPath(),e.moveTo(s,l),e.bezierCurveTo(f,p,v,m,h,d),e.bezierCurveTo(g,y,b,A,u,c),e.bezierCurveTo(S,x,w,_,h,d),e.bezierCurveTo(E,k,C,M,s,l),e.fill(),e.stroke();break;case n.type.BRACKET:o=(r+=4)-(t-=4),Glyph.renderGlyph(e,a-5,t-3,40,"v1b",!0),Glyph.renderGlyph(e,a-5,r+3,40,"v10",!0),a-=this.width+2;break;case n.type.BOLD_DOUBLE_LEFT:drawBoldDoubleLine(e,this.type,a+this.x_shift,t,r);break;case n.type.BOLD_DOUBLE_RIGHT:drawBoldDoubleLine(e,this.type,a,t,r);break;case n.type.THIN_DOUBLE:i=1;break;case n.type.NONE:break;default:throw new Vex.RERR("InvalidType","The provided StaveConnector.type (".concat(this.type,") is invalid"))}this.type!==n.type.BRACE&&this.type!==n.type.BOLD_DOUBLE_LEFT&&this.type!==n.type.BOLD_DOUBLE_RIGHT&&this.type!==n.type.NONE&&e.fillRect(a,t,i,o),this.type===n.type.THIN_DOUBLE&&e.fillRect(a-3,t,i,o),e.save(),e.lineWidth=2,e.setFont(this.font.family,this.font.size,this.font.weight);for(var P=0;P<this.texts.length;P++){var I=this.texts[P],T=e.measureText(""+I.content).width,B=this.top_stave.getX()-T-24+I.options.shift_x,R=(this.top_stave.getYForLine(0)+this.bottom_stave.getBottomLineY())/2+I.options.shift_y;e.fillText(""+I.content,B,R+4)}e.restore()}}],[{key:"type",get:function(){return{SINGLE_RIGHT:0,SINGLE_LEFT:1,SINGLE:1,DOUBLE:2,BRACE:3,BRACKET:4,BOLD_DOUBLE_LEFT:5,BOLD_DOUBLE_RIGHT:6,THIN_DOUBLE:7,NONE:8}}},{key:"typeString",get:function(){return{singleRight:n.type.SINGLE_RIGHT,singleLeft:n.type.SINGLE_LEFT,single:n.type.SINGLE,double:n.type.DOUBLE,brace:n.type.BRACE,bracket:n.type.BRACKET,boldDoubleLeft:n.type.BOLD_DOUBLE_LEFT,boldDoubleRight:n.type.BOLD_DOUBLE_RIGHT,thinDouble:n.type.THIN_DOUBLE,none:n.type.NONE}}}]),n}(Element$1),Tickable=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Tickable"),e.ticks=new Fraction(0,1),e.intrinsicTicks=0,e.tickMultiplier=new Fraction(1,1),e.width=0,e.x_shift=0,e.voice=null,e.tickContext=null,e.modifierContext=null,e.modifiers=[],e.preFormatted=!1,e.postFormatted=!1,e.tuplet=null,e.tupletStack=[],e.align_center=!1,e.center_x_shift=0,e.ignore_ticks=!1,e.formatterMetrics={freedom:{left:0,right:0},duration:"",iterations:0,space:{used:0,mean:0,deviation:0}},e}return _createClass2(n,[{key:"reset",value:function(){return this}},{key:"getTicks",value:function(){return this.ticks}},{key:"shouldIgnoreTicks",value:function(){return this.ignore_ticks}},{key:"getWidth",value:function(){return this.width}},{key:"getFormatterMetrics",value:function(){return this.formatterMetrics}},{key:"setXShift",value:function(e){this.x_shift=e}},{key:"getCenterXShift",value:function(){return this.isCenterAligned()?this.center_x_shift:0}},{key:"isCenterAligned",value:function(){return this.align_center}},{key:"setCenterAlignment",value:function(e){return this.align_center=e,this}},{key:"getVoice",value:function(){if(!this.voice)throw new Vex.RERR("NoVoice","Tickable has no voice.");return this.voice}},{key:"setVoice",value:function(e){this.voice=e}},{key:"getTuplet",value:function(){return this.tuplet}},{key:"resetTuplet",value:function(e){var t,n;if(e){var r=this.tupletStack.indexOf(e);return-1!==r&&(this.tupletStack.splice(r,1),t=e.getNoteCount(),n=e.getNotesOccupied(),this.applyTickMultiplier(t,n)),this}for(;this.tupletStack.length;)t=(e=this.tupletStack.pop()).getNoteCount(),n=e.getNotesOccupied(),this.applyTickMultiplier(t,n);return this}},{key:"setTuplet",value:function(e){if(e){this.tupletStack.push(e);var t=e.getNoteCount(),n=e.getNotesOccupied();this.applyTickMultiplier(n,t)}return this.tuplet=e,this}},{key:"addToModifierContext",value:function(e){this.modifierContext=e,this.preFormatted=!1}},{key:"addModifier",value:function(e){return this.modifiers.push(e),this.preFormatted=!1,this}},{key:"getModifiers",value:function(){return this.modifiers}},{key:"setTickContext",value:function(e){this.tickContext=e,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.postFormatted=!0),this}},{key:"getIntrinsicTicks",value:function(){return this.intrinsicTicks}},{key:"setIntrinsicTicks",value:function(e){this.intrinsicTicks=e,this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}},{key:"getTickMultiplier",value:function(){return this.tickMultiplier}},{key:"applyTickMultiplier",value:function(e,t){this.tickMultiplier.multiply(e,t),this.ticks=this.tickMultiplier.clone().multiply(this.intrinsicTicks)}},{key:"setDuration",value:function(e){var t=e.numerator*(Flow.RESOLUTION/e.denominator);this.ticks=this.tickMultiplier.clone().multiply(t),this.intrinsicTicks=this.ticks.value()}}]),n}(Element$1),Note=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Note"),!e)throw new Vex.RuntimeError("BadArguments","Note must have valid initialization data to identify duration and type.");var i=Flow.parseNoteStruct(e);if(!i)throw new Vex.RuntimeError("BadArguments","Invalid note initialization object: ".concat(JSON.stringify(e)));if(r.duration=i.duration,r.dots=i.dots,r.noteType=i.type,r.customTypes=i.customTypes,r.DYMusicScoreType=e.DYMusicScoreType,e.duration_override?r.setDuration(e.duration_override):r.setIntrinsicTicks(i.ticks),r.modifiers=[],r.glyph=Flow.getGlyphProps(r.duration,r.noteType),r.customGlyphs=r.customTypes.map((function(e){return Flow.getGlyphProps(r.duration,e)})),r.positions&&("object"!==_typeof2(r.positions)||!r.positions.length))throw new Vex.RuntimeError("BadArguments","Note keys must be array type.");return r.playNote=null,r.tickContext=null,r.modifierContext=null,r.ignore_ticks=!1,r.width=0,r.extraLeftPx=0,r.extraRightPx=0,r.x_shift=0,r.left_modPx=0,r.right_modPx=0,r.voice=null,r.preFormatted=!1,r.ys=[],e.align_center&&r.setCenterAlignment(e.align_center),r.stave=null,r.render_options={annotation_spacing:5,stave_padding:n.STAVEPADDING},r}return _createClass2(n,[{key:"getPlayNote",value:function(){return this.playNote}},{key:"setPlayNote",value:function(e){return this.playNote=e,this}},{key:"isRest",value:function(){return!1}},{key:"addStroke",value:function(e,t){return t.setNote(this),t.setIndex(e),this.modifiers.push(t),this.setPreFormatted(!1),this}},{key:"getStave",value:function(){return this.stave}},{key:"setStave",value:function(e){return this.stave=e,this.setYs([e.getYForLine(0)]),this.context=this.stave.context,this}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setContext",value:function(e){return this.context=e,this}},{key:"getExtraLeftPx",value:function(){return this.extraLeftPx}},{key:"getExtraRightPx",value:function(){return this.extraRightPx}},{key:"setExtraLeftPx",value:function(e){return this.extraLeftPx=e,this}},{key:"setExtraRightPx",value:function(e){return this.extraRightPx=e,this}},{key:"shouldIgnoreTicks",value:function(){return this.ignore_ticks}},{key:"getLineNumber",value:function(){return 0}},{key:"getLineForRest",value:function(){return 0}},{key:"getGlyph",value:function(){return this.glyph}},{key:"getGlyphWidth",value:function(){return this.glyph.getWidth?this.glyph.getWidth(this.render_options.glyph_font_scale):15}},{key:"setYs",value:function(e){return this.ys=e,this}},{key:"getYs",value:function(){if(0===this.ys.length)throw new Vex.RERR("NoYValues","No Y-values calculated for this note.");return this.ys}},{key:"getYForTopText",value:function(e){if(!this.stave)throw new Vex.RERR("NoStave","No stave attached to this note.");return this.stave.getYForTopText(e)}},{key:"getBoundingBox",value:function(){return null}},{key:"getVoice",value:function(){if(!this.voice)throw new Vex.RERR("NoVoice","Note has no voice.");return this.voice}},{key:"setVoice",value:function(e){return this.voice=e,this.preFormatted=!1,this}},{key:"getTickContext",value:function(){return this.tickContext}},{key:"setTickContext",value:function(e){return this.tickContext=e,this.preFormatted=!1,this}},{key:"getDuration",value:function(){return this.duration}},{key:"isDotted",value:function(){return this.dots>0}},{key:"hasStem",value:function(){return!1}},{key:"getDots",value:function(){return this.dots}},{key:"getNoteType",value:function(){return this.noteType}},{key:"setBeam",value:function(){return this}},{key:"setModifierContext",value:function(e){return this.modifierContext=e,this}},{key:"addModifier",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.setNote(this),e.setIndex(t),this.modifiers.push(e),this.setPreFormatted(!1),this}},{key:"getModifierStartXY",value:function(){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");return{x:this.getAbsoluteX(),y:this.ys[0]}}},{key:"getMetrics",value:function(){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call getMetrics on an unformatted note.");var e=0,t=0;null!=this.modifierContext&&(e=this.modifierContext.state.left_shift,t=this.modifierContext.state.right_shift);var n=this.getWidth();return{width:n,noteWidth:n-e-t-this.extraLeftPx-this.extraRightPx,left_shift:this.x_shift,modLeftPx:e,modRightPx:t,extraLeftPx:this.extraLeftPx,extraRightPx:this.extraRightPx}}},{key:"setWidth",value:function(e){this.width=e}},{key:"getWidth",value:function(){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call GetWidth on an unformatted note.");return this.width+(this.modifierContext?this.modifierContext.getWidth():0)}},{key:"setXShift",value:function(e){return this.x_shift=e,this}},{key:"getXShift",value:function(){return this.x_shift}},{key:"getX",value:function(){if(!this.tickContext)throw new Vex.RERR("NoTickContext","Note needs a TickContext assigned for an X-Value");return this.tickContext.getX()+this.x_shift}},{key:"getAbsoluteX",value:function(){if(!this.tickContext)throw new Vex.RERR("NoTickContext","Note needs a TickContext assigned for an X-Value");var e=this.tickContext.getX();return this.stave&&(e+=this.stave.getNoteStartX()+this.render_options.stave_padding),this.isCenterAligned()&&("jianpu"===this.DYMusicScoreType||(e+=this.getCenterXShift())),e}},{key:"setPreFormatted",value:function(e){if(this.preFormatted=e,this.preFormatted){var t=this.tickContext.getExtraPx();this.left_modPx=Math.max(this.left_modPx,t.left),this.right_modPx=Math.max(this.right_modPx,t.right)}}}],[{key:"CATEGORY",get:function(){return"note"}},{key:"STAVEPADDING",get:function(){return 12}},{key:"plotMetrics",value:function(e,t,n){var r=t.getMetrics(),i=t.getAbsoluteX()-r.modLeftPx-r.extraLeftPx,a=t.getAbsoluteX()-r.extraLeftPx,o=t.getAbsoluteX(),s=t.getAbsoluteX()+r.noteWidth,l=t.getAbsoluteX()+r.noteWidth+r.extraRightPx,u=t.getAbsoluteX()+r.noteWidth+r.extraRightPx+r.modRightPx,c=u+t.getFormatterMetrics().freedom.right,h=u-i;e.save(),e.setFont("Arial",8,""),e.fillText(Math.round(h)+"px",i+t.getXShift(),n);var d=n+7;function f(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d;e.beginPath(),e.setStrokeStyle(i),e.setFillStyle(i),e.setLineWidth(3),e.moveTo(n+t.getXShift(),a),e.lineTo(r+t.getXShift(),a),e.stroke()}f(i,a,"red"),f(a,o,"#999"),f(o,s,"green"),f(s,l,"#999"),f(l,u,"red"),f(u,c,"#DD0"),f(i-t.getXShift(),i,"#BBB"),Vex.drawDot(e,o+t.getXShift(),d,"blue");var p=t.getFormatterMetrics();if(p.iterations>0){var v=p.space.deviation,m=v>=0?"+":"";e.setFillStyle("red"),e.fillText(m+Math.round(v),o+t.getXShift(),n-10)}e.restore()}}]),n}(Tickable);function L$i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];NoteHead.DEBUG&&Vex.L("Vex.Flow.NoteHead",t)}function drawSlashNoteHead(e,t,n,r,i,a){var o=Flow.SLASH_NOTEHEAD_WIDTH;e.save(),e.setLineWidth(Flow.STEM_WIDTH);var s=!1;if(Flow.durationToNumber(t)>2&&(s=!0),s||(n-=Flow.STEM_WIDTH/2*i),e.beginPath(),e.moveTo(n,r+a),e.lineTo(n,r+1),e.lineTo(n+o,r-a),e.lineTo(n+o,r),e.lineTo(n,r+a),e.closePath(),s?e.fill():e.stroke(),Flow.durationToFraction(t).equals(.5))for(var l=[-3,-1,o+1,o+3],u=0;u<l.length;u++)e.beginPath(),e.moveTo(n+l[u],r-10),e.lineTo(n+l[u],r+11),e.stroke();e.restore()}var NoteHead=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","NoteHead"),r.index=e.index,r.x=e.x||0,r.y=e.y||0,r.note_type=e.note_type,r.duration=e.duration,r.displaced=e.displaced||!1,r.stem_direction=e.stem_direction||_StaveNote3.STEM_UP,r.line=e.line,r._line=e._line,r.glyph=Flow.getGlyphProps(r.duration,r.note_type),!r.glyph)throw new Vex.RuntimeError("BadArguments","No glyph found for duration '".concat(r.duration,"' and type '").concat(r.note_type,"'"));return r.glyph_code=r.glyph.code_head,r.x_shift=e.x_shift||0,e.custom_glyph_code&&(r.custom_glyph=!0,r.glyph_code=e.custom_glyph_code,r.stem_up_x_offset=e.stem_up_x_offset||0,r.stem_down_x_offset=e.stem_down_x_offset||0),r.style=e.style,r.slashed=e.slashed,Vex.Merge(r.render_options,{glyph_font_scale:e.glyph_font_scale||Flow.DEFAULT_NOTATION_FONT_SCALE,stroke_px:3}),r.setWidth(r.glyph.getWidth(r.render_options.glyph_font_scale)),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getWidth",value:function(){return this.width}},{key:"isDisplaced",value:function(){return!0===this.displaced}},{key:"getGlyph",value:function(){return this.glyph}},{key:"setX",value:function(e){return this.x=e,this}},{key:"getY",value:function(){return this.y}},{key:"setY",value:function(e){return this.y=e,this}},{key:"getLine",value:function(){return this.line}},{key:"setLine",value:function(e){return this.line=e,this}},{key:"getAbsoluteX",value:function(){var e=this.preFormatted?_get(_getPrototypeOf2(n.prototype),"getAbsoluteX",this).call(this):this.x,t=Stem.WIDTH/2;return e+(this.displaced?(this.width-t)*this.stem_direction:0)}},{key:"getBoundingBox",value:function(){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call getBoundingBox on an unformatted note.");var e=this.stave.getSpacingBetweenLines(),t=e/2,n=this.y-t;return new Flow.BoundingBox(this.getAbsoluteX(),n,this.width,e)}},{key:"setStave",value:function(e){var t=this.getLine();return this.stave=e,this.setY(e.getYForNote(t)),this.context=this.stave.context,this}},{key:"preFormat",value:function(){if(this.preFormatted)return this;var e=this.getWidth()+this.extraLeftPx+this.extraRightPx;return this.setWidth(e),this.setPreFormatted(!0),this}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e=this.context,t=this.getAbsoluteX();this.custom_glyph&&(t+=this.stem_direction===Stem.UP?this.stem_up_x_offset:this.stem_down_x_offset);var n=this.y;L$i("Drawing note head '",this.note_type,this.duration,"' at",t,n);var r=this.stem_direction,i=this.render_options.glyph_font_scale;if(this.style&&this.applyStyle(e),"s"===this.note_type){var a=this.stave.getSpacingBetweenLines();drawSlashNoteHead(e,this.duration,t,n,r,a)}else Glyph.renderGlyph(e,t,n,i,this.glyph_code);this.style&&this.restoreStyle(e)}}],[{key:"CATEGORY",get:function(){return"notehead"}}]),n}(Note),StemmableNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","StemmableNote"),r.stem=null,r.stemExtensionOverride=null,r.beam=null,r.renderFlag=!0,r}return _createClass2(n,[{key:"getStem",value:function(){return this.stem}},{key:"setStem",value:function(e){return this.stem=e,this}},{key:"buildStem",value:function(){var e=new Stem;return this.setStem(e),this}},{key:"buildFlag",value:function(){var e=this.glyph,t=null===this.beam&&this.renderFlag;if(e&&e.flag&&t){var n=this.getStemDirection()===Stem.DOWN?e.code_flag_downstem:e.code_flag_upstem;this.flag=new Glyph(n,this.render_options.glyph_font_scale)}}},{key:"getTopGlyph",value:function(){return this.getStemDirection()===Stem.DOWN?this.customGlyphs[this.customGlyphs.length-1]:this.customGlyphs[0]}},{key:"getStemLength",value:function(){return Stem.HEIGHT+this.getStemExtension()}},{key:"getBeamCount",value:function(){var e=this.getGlyph();return e?e.beam_count:0}},{key:"getStemMinumumLength",value:function(){var e=Flow.durationToFraction(this.duration).value()<=1?0:20;switch(this.duration){case"8":null==this.beam&&(e=35);break;case"16":e=null==this.beam?35:25;break;case"32":e=null==this.beam?45:35;break;case"64":e=null==this.beam?50:40;break;case"128":e=null==this.beam?55:45}return e}},{key:"getStemDirection",value:function(){return this.stem_direction}},{key:"setStemDirection",value:function(e){if(e||(e=Stem.UP),e!==Stem.UP&&e!==Stem.DOWN)throw new Vex.RERR("BadArgument","Invalid stem direction: ".concat(e));if(this.stem_direction=e,this.stem){this.stem.setDirection(e),this.stem.setExtension(this.getStemExtension());var t=this.getTopGlyph()||this.getGlyph();this.stem.setOptions({stem_up_y_offset:t.stem_up_y_offset,stem_down_y_offset:t.stem_down_y_offset})}return this.reset(),this.flag&&this.renderFlag&&this.buildFlag(),this.beam=null,this.preFormatted&&this.preFormat(),this}},{key:"getStemX",value:function(){var e=this.getAbsoluteX()+this.x_shift,t=this.getAbsoluteX()+this.x_shift+this.getGlyphWidth();return this.stem_direction===Stem.DOWN?e:t}},{key:"getCenterGlyphX",value:function(){return this.getAbsoluteX()+this.x_shift+this.getGlyphWidth()/2}},{key:"getStemExtension",value:function(){var e=this.getGlyph();return null!=this.stemExtensionOverride?this.stemExtensionOverride:e?1===this.getStemDirection()?e.stem_up_extension:e.stem_down_extension:0}},{key:"setStemLength",value:function(e){return this.stemExtensionOverride=e-Stem.HEIGHT,this}},{key:"getStemExtents",value:function(){return this.stem.getExtents()}},{key:"setBeam",value:function(e){return this.beam=e,this}},{key:"getYForTopText",value:function(e){var t=this.getStemExtents();return this.hasStem()?Math.min(this.stave.getYForTopText(e),t.topY-this.render_options.annotation_spacing*(e+1)):this.stave.getYForTopText(e)}},{key:"getYForBottomText",value:function(e){var t=this.getStemExtents();return this.hasStem()?Math.max(this.stave.getYForTopText(e),t.baseY+this.render_options.annotation_spacing*e):this.stave.getYForBottomText(e)}},{key:"hasFlag",value:function(){return this.renderFlag&&Flow.getGlyphProps(this.duration).flag&&!this.beam}},{key:"postFormat",value:function(){return this.beam&&this.beam.postFormat(),this.postFormatted=!0,this}},{key:"drawStem",value:function(e){this.checkContext(),this.setRendered(),this.setStem(new Stem(e)),this.stem.setContext(this.context).draw()}}]),n}(Note),Modifier=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Modifier"),e.width=0,e.note=null,e.index=null,e.text_line=0,e.position=n.Position.LEFT,e.modifier_context=null,e.x_shift=0,e.y_shift=0,e.spacingFromNextModifier=0,e}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getWidth",value:function(){return this.width}},{key:"setWidth",value:function(e){return this.width=e,this}},{key:"getNote",value:function(){return this.note}},{key:"setNote",value:function(e){return this.note=e,this}},{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return this.index=e,this}},{key:"getModifierContext",value:function(){return this.modifier_context}},{key:"setModifierContext",value:function(e){return this.modifier_context=e,this}},{key:"getPosition",value:function(){return this.position}},{key:"setPosition",value:function(e){return this.position="string"==typeof e?n.PositionString[e]:e,this}},{key:"setTextLine",value:function(e){return this.text_line=e,this}},{key:"setYShift",value:function(e){return this.y_shift=e,this}},{key:"setSpacingFromNextModifier",value:function(e){this.spacingFromNextModifier=e}},{key:"getSpacingFromNextModifier",value:function(){return this.spacingFromNextModifier}},{key:"setXShift",value:function(e){this.x_shift=0,this.position===n.Position.LEFT?this.x_shift-=e:this.x_shift+=e}},{key:"getXShift",value:function(){return this.x_shift}},{key:"draw",value:function(){throw this.checkContext(),new Vex.RERR("MethodNotImplemented","draw() not implemented for this modifier.")}},{key:"alignSubNotesWithNote",value:function(e,t){var n=t.getTickContext(),r=n.getExtraPx(),i=n.getX()-r.left-r.extraLeft+this.getSpacingFromNextModifier();e.forEach((function(e){var n=e.getTickContext();e.setStave(t.stave),n.setXOffset(i)}))}}],[{key:"CATEGORY",get:function(){return"none"}},{key:"Position",get:function(){return{LEFT:1,RIGHT:2,ABOVE:3,BELOW:4}}},{key:"PositionString",get:function(){return{above:n.Position.ABOVE,below:n.Position.BELOW,left:n.Position.LEFT,right:n.Position.RIGHT}}}]),n}(Element$1),Dot=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Dot"),e.note=null,e.index=null,e.position=Modifier.Position.RIGHT,e.radius=2,e.setWidth(5),e.dot_shiftY=0,e}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setNote",value:function(e){this.note=e,"gracenotes"===this.note.getCategory()&&(this.radius*=.5,this.setWidth(3))}},{key:"setDotShiftY",value:function(e){return this.dot_shiftY=e,this}},{key:"draw",value:function(){if(this.checkContext(),this.setRendered(),!this.note||null===this.index)throw new Vex.RERR("NoAttachedNote","Can't draw dot without a note and index.");var e=this.note.stave.options.spacing_between_lines_px,t=this.note.getModifierStartXY(this.position,this.index,{forceFlagRight:!0});"tabnotes"===this.note.getCategory()&&(t.y=this.note.getStemExtents().baseY+1);var n=t.x+this.x_shift+this.width-this.radius,r=t.y+this.y_shift+this.dot_shiftY*e,i=this.context;i.beginPath(),i.arc(n,r,this.radius,0,2*Math.PI,!1),i.fill()}}],[{key:"CATEGORY",get:function(){return"dots"}},{key:"format",value:function(e,t){var n=t.right_shift;if(!e||0===e.length)return!1;for(var r=[],i={},a=0;a<e.length;++a){var o=e[a],s=o.getNote(),l=void 0,u=void 0;"function"==typeof s.getKeyProps?u=(l=s.getKeyProps()[o.getIndex()]).displaced?s.getExtraRightPx():0:(l={line:.5},u=0);var c=s.getAttribute("id");r.push({line:l.line,note:s,note_id:c,dot:o}),i[c]=Math.max(i[c]||u,u)}r.sort((function(e,t){return t.line-e.line}));for(var h=n,d=0,f=null,p=null,v=null,m=0,g=0;g<r.length;++g){var y=r[g],b=y.dot,A=y.note,S=y.note_id,x=y.line;x===f&&A===p||(h=i[S]),A.isRest()||x===f||(.5===Math.abs(x%1)?m=0:(m=.5,null==p||p.isRest()||f-x!=.5?x+m===v&&(m=-.5):m=-.5)),A.isRest()?b.dot_shiftY+=-m:b.dot_shiftY=-m,v=x+m,b.setXShift(h),d=(h+=b.getWidth()+1)>d?h:d,f=x,p=A}return t.right_shift+=d,!0}}]),n}(Modifier);function L$h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_StaveNote3.DEBUG&&Vex.L("Vex.Flow.StaveNote",t)}var getStemAdjustment=function(e){return Stem.WIDTH/(2*-e.getStemDirection())},isInnerNoteIndex=function(e,t){return t===(e.getStemDirection()===Stem.UP?e.keyProps.length-1:0)};function shiftRestVertical(e,t,n){var r=(t.isrest?0:1)*n;e.line+=r,e.maxLine+=r,e.minLine+=r,e.note.setKeyLine(0,e.note.getKeyLine(0)+r)}function centerRest(e,t,n){var r=e.line-Vex.MidLine(t.minLine,n.maxLine);e.note.setKeyLine(0,e.note.getKeyLine(0)-r),e.line-=r,e.maxLine-=r,e.minLine-=r}var _StaveNote3=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","StaveNote"),r.keys=e.keys,r.clef=e.clef,r.octave_shift=e.octave_shift,r.beam=null,r.vibrato=null,r.slideNote=null,r.glyph=Flow.getGlyphProps(r.duration,r.noteType),!r.glyph)throw new Vex.RuntimeError("BadArguments","Invalid note initialization data (No glyph found): ".concat(JSON.stringify(e)));return r.displaced=!1,r.dot_shiftY=0,r.addDotsCount=0,r.keyProps=[],r.use_default_head_x=!1,r.note_heads=[],r.modifiers=[],Vex.Merge(r.render_options,{glyph_font_scale:e.glyph_font_scale||Flow.DEFAULT_NOTATION_FONT_SCALE,stroke_px:e.stroke_px||n.DEFAULT_LEDGER_LINE_OFFSET}),r.calculateKeyProps(),r.buildStem(),e.auto_stem?r.autoStem():r.setStemDirection(e.stem_direction),r.reset(),r.buildFlag(),r}return _createClass2(n,[{key:"reset",value:function(){var e=this;_get(_getPrototypeOf2(n.prototype),"reset",this).call(this);var t=this.note_heads.map((function(e){return e.getStyle()}));this.buildNoteHeads(),this.note_heads.forEach((function(e,n){return e.setStyle(t[n])})),this.stave&&this.note_heads.forEach((function(t){return t.setStave(e.stave)})),this.calcExtraPx()}},{key:"setBeam",value:function(e){return this.beam=e,this.calcExtraPx(),this}},{key:"setVibrato",value:function(e){this.vibrato=e}},{key:"setSlideNote",value:function(e){this.slideNote=e}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"buildStem",value:function(){this.setStem(new Stem({hide:!!this.isRest()})),this.stem.id=Vex.Prefix("".concat(this.getAttribute("id"),"-stem"))}},{key:"buildNoteHeads",value:function(){this.note_heads=[];var e,t,n,r=this.getStemDirection(),i=this.getKeys(),a=null,o=null,s=!1;r===Stem.UP?(e=0,t=i.length,n=1):r===Stem.DOWN&&(e=i.length-1,t=-1,n=-1);for(var l=e;l!==t;l+=n){var u=this.keyProps[l],c=u.line;null===a?a=c:0===(o=Math.abs(a-c))||.5===o?s=!s:(s=!1,this.use_default_head_x=!0),a=c;var h=new NoteHead({duration:this.duration,note_type:this.noteType,displaced:s,stem_direction:r,custom_glyph_code:u.code,glyph_font_scale:this.render_options.glyph_font_scale,x_shift:u.shift_right,stem_up_x_offset:u.stem_up_x_offset,stem_down_x_offset:u.stem_down_x_offset,line:u.line});this.note_heads[l]=h}}},{key:"autoStem",value:function(){this.minLine=this.keyProps[0].line,this.maxLine=this.keyProps[this.keyProps.length-1].line;var e=(this.minLine+this.maxLine)/2<3?Stem.UP:Stem.DOWN;this.setStemDirection(e)}},{key:"calculateKeyProps",value:function(){for(var e=null,t=0;t<this.keys.length;++t){var n=this.keys[t];this.glyph.rest&&(this.glyph.position=n);var r={octave_shift:this.octave_shift||0},i=Flow.keyProperties(n,this.clef,r);if(!i)throw new Vex.RuntimeError("BadArguments","Invalid key for note properties: ".concat(n));"R"===i.key&&("1"===this.duration||"w"===this.duration?i.line=4:i.line=3);var a=i.line;null===e?e=a:.5===Math.abs(e-a)&&(this.displaced=!0,i.displaced=!0,this.keyProps.length>0&&(this.keyProps[t-1].displaced=!0)),e=a,this.keyProps.push(i)}e=-1/0,this.keyProps.forEach((function(t){t.line<e&&Vex.W("Unsorted keys in note will be sorted. See https://github.com/0xfe/vexflow/issues/104 for details."),e=t.line})),this.keyProps.sort((function(e,t){return e.line-t.line}))}},{key:"getBoundingBox",value:function(){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call getBoundingBox on an unformatted note.");var e=this.getMetrics(),t=e.width,n=e.modLeftPx,r=e.extraLeftPx,i=this.getAbsoluteX()-n-r,a=0,o=0,s=this.getStave().getSpacingBetweenLines()/2,l=2*s;if(this.isRest()){var u=this.ys[0],c=Flow.durationToFraction(this.duration);c.equals(1)||c.equals(2)?(a=u-s,o=u+s):(a=u-this.glyph.line_above*l,o=u+this.glyph.line_below*l)}else if(this.glyph.stem){var h=this.getStemExtents();h.baseY+=s*this.stem_direction,a=Math.min(h.topY,h.baseY),o=Math.max(h.topY,h.baseY)}else{a=null,o=null;for(var d=0;d<this.ys.length;++d){var f=this.ys[d];0===d?(a=f,o=f):(a=Math.min(f,a),o=Math.max(f,o))}a-=s,o+=s}return new BoundingBox(i,a,t,o-a)}},{key:"getLineNumber",value:function(e){if(!this.keyProps.length)throw new Vex.RERR("NoKeyProps","Can't get bottom note line, because note is not initialized properly.");for(var t=this.keyProps[0].line,n=0;n<this.keyProps.length;n++){var r=this.keyProps[n].line;e?r>t&&(t=r):r<t&&(t=r)}return t}},{key:"isRest",value:function(){return this.glyph.rest}},{key:"isChord",value:function(){return!this.isRest()&&this.keys.length>1}},{key:"hasStem",value:function(){return this.glyph.stem}},{key:"hasFlag",value:function(){return _get(_getPrototypeOf2(n.prototype),"hasFlag",this).call(this)&&!this.isRest()&&this.renderFlag}},{key:"getStemX",value:function(){return"r"===this.noteType?this.getCenterGlyphX():_get(_getPrototypeOf2(n.prototype),"getStemX",this).call(this)+getStemAdjustment(this)}},{key:"getYForTopText",value:function(e){var t=this.getStemExtents();return Math.min(this.stave.getYForTopText(e),t.topY-this.render_options.annotation_spacing*(e+1))}},{key:"getYForBottomText",value:function(e){var t=this.getStemExtents();return Math.max(this.stave.getYForTopText(e),t.baseY+this.render_options.annotation_spacing*e)}},{key:"setStave",value:function(e){_get(_getPrototypeOf2(n.prototype),"setStave",this).call(this,e);var t=this.note_heads.map((function(t){return t.setStave(e),t.getY()}));if(this.setYs(t),this.stem){var r=this.getNoteHeadBounds(),i=r.y_top,a=r.y_bottom;this.stem.setYBounds(i,a)}return this}},{key:"getKeys",value:function(){return this.keys}},{key:"getKeyProps",value:function(){return this.keyProps}},{key:"isDisplaced",value:function(){return this.displaced}},{key:"setNoteDisplaced",value:function(e){return this.displaced=e,this}},{key:"getTieRightX",value:function(){var e=this.getAbsoluteX();return e+=this.getGlyphWidth()+this.x_shift+this.extraRightPx,this.modifierContext&&(e+=this.modifierContext.getExtraRightPx()),e}},{key:"getTieLeftX",value:function(){var e=this.getAbsoluteX();return e+=this.x_shift-this.extraLeftPx}},{key:"getLineForRest",value:function(){var e=this.keyProps[0].line;if(this.keyProps.length>1){var t=this.keyProps[this.keyProps.length-1].line,n=Math.max(e,t),r=Math.min(e,t);e=Vex.MidLine(n,r)}return e}},{key:"getModifierStartXY",value:function(e,t,n){if(n=n||{},!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");if(0===this.ys.length)throw new Vex.RERR("NoYValues","No Y-Values calculated for this note.");var r=Modifier.Position,i=r.ABOVE,a=r.BELOW,o=r.LEFT,s=r.RIGHT,l=0;return e===o?l=-2:e===s?(l=this.getGlyphWidth()+this.x_shift+2,this.stem_direction===Stem.UP&&this.hasFlag()&&(n.forceFlagRight||isInnerNoteIndex(this,t))&&(l+=this.flag.getMetrics().width)):e!==a&&e!==i||(l=this.getGlyphWidth()/2),{x:this.getAbsoluteX()+l,y:this.ys[t]}}},{key:"setStyle",value:function(e){_get(_getPrototypeOf2(n.prototype),"setStyle",this).call(this,e),this.note_heads.forEach((function(t){return t.setStyle(e)})),this.stem&&this.stem.setStyle(e)}},{key:"setStemStyle",value:function(e){this.stem&&this.getStem().setStyle(e)}},{key:"getStemStyle",value:function(){return this.stem.getStyle()}},{key:"setLedgerLineStyle",value:function(e){this.ledgerLineStyle=e}},{key:"getLedgerLineStyle",value:function(){return this.ledgerLineStyle}},{key:"setFlagStyle",value:function(e){this.flagStyle=e}},{key:"getFlagStyle",value:function(){return this.flagStyle}},{key:"setKeyStyle",value:function(e,t){return this.note_heads[e].setStyle(t),this}},{key:"setKeyLine",value:function(e,t){return this.keyProps[e].line=t,this.reset(),this}},{key:"getKeyLine",value:function(e){return this.keyProps[e].line}},{key:"addToModifierContext",value:function(e){this.setModifierContext(e);for(var t=0;t<this.modifiers.length;++t)this.modifierContext.addModifier(this.modifiers[t]);return this.modifierContext.addModifier(this),this.setPreFormatted(!1),this}},{key:"addModifier",value:function(e,t){return t.setNote(this),t.setIndex(e),this.modifiers.push(t),this.setPreFormatted(!1),this}},{key:"addAccidental",value:function(e,t){return this.addModifier(e,t)}},{key:"addArticulation",value:function(e,t){return this.addModifier(e,t)}},{key:"addAnnotation",value:function(e,t){return this.addModifier(e,t)}},{key:"addDot",value:function(e){var t=new Dot;return t.setDotShiftY(this.glyph.dot_shiftY),this.addDotsCount++,this.addModifier(e,t)}},{key:"addDotToAll",value:function(){for(var e=0;e<this.keys.length;++e)this.addDot(e);return this}},{key:"getAccidentals",value:function(){return this.modifierContext.getModifiers("accidentals")}},{key:"getDots",value:function(){return this.modifierContext.getModifiers("dots")}},{key:"getVoiceShiftWidth",value:function(){return this.getGlyphWidth()*(this.displaced?2:1)}},{key:"calcExtraPx",value:function(){this.setExtraLeftPx(this.displaced&&this.stem_direction===Stem.DOWN?this.getGlyphWidth():0),this.setExtraRightPx(!this.hasFlag()&&this.displaced&&this.stem_direction===Stem.UP?this.getGlyphWidth():0)}},{key:"preFormat",value:function(){if(!this.preFormatted){this.modifierContext&&this.modifierContext.preFormat();var e=this.getGlyphWidth()+this.extraLeftPx+this.extraRightPx;this.renderFlag&&this.glyph.flag&&null===this.beam&&this.stem_direction===Stem.UP&&(e+=this.getGlyphWidth()),this.setWidth(e),this.setPreFormatted(!0)}}},{key:"getNoteHeadBounds",value:function(){var e=null,t=null,n=null,r=null,i=this.stave.getNumLines(),a=1,o=!1,s=!1,l=i,u=a;return this.note_heads.forEach((function(c){var h=c.getLine(),d=c.getY();(null===e||d<e)&&(e=d),(null===t||d>t)&&(t=d),null===r&&c.isDisplaced()&&(r=c.getAbsoluteX()),null!==n||c.isDisplaced()||(n=c.getAbsoluteX()),i=h>i?h:i,a=h<a?h:a,c.isDisplaced()?(o=!1===o?h:Math.max(h,o),s=!1===s?h:Math.min(h,s)):(l=Math.max(h,l),u=Math.min(h,u))}),this),{y_top:e,y_bottom:t,displaced_x:r,non_displaced_x:n,highest_line:i,lowest_line:a,highest_displaced_line:o,lowest_displaced_line:s,highest_non_displaced_line:l,lowest_non_displaced_line:u}}},{key:"getNoteHeadBeginX",value:function(){return this.getAbsoluteX()+this.x_shift}},{key:"getNoteHeadEndX",value:function(){return this.getNoteHeadBeginX()+this.getGlyphWidth()}},{key:"drawLedgerLines",value:function(){var e=this.stave,t=this.glyph,n=this.render_options.stroke_px,r=this.context,i=t.getWidth()+2*n,a=2*(t.getWidth()+n)-Stem.WIDTH/2;if(!this.isRest()){if(!r)throw new Vex.RERR("NoCanvasContext","Can't draw without a canvas context.");var o=this.getNoteHeadBounds(),s=o.highest_line,l=o.lowest_line,u=o.highest_displaced_line,c=o.highest_non_displaced_line,h=o.lowest_displaced_line,d=o.lowest_non_displaced_line,f=o.displaced_x,p=o.non_displaced_x,v=Math.min(f,p),m=function(e,t,o){var s;s=o&&t?v-n:t?p-n:f-n;var l=t&&o?a:i;r.beginPath(),r.moveTo(s,e),r.lineTo(s+l,e),r.stroke()},g=_objectSpread(_objectSpread({},e.getStyle()||{}),this.getLedgerLineStyle()||{});this.applyStyle(r,g);for(var y=6;y<=s;++y){var b=null!==p&&y<=c,A=null!==f&&y<=u;m(e.getYForNote(y),b,A)}for(var S=0;S>=l;--S){var x=null!==p&&S>=d,w=null!==f&&S>=h;m(e.getYForNote(S),x,w)}this.restoreStyle(r,g)}}},{key:"drawVibrato",value:function(){if(this.vibrato){var e=this.context,t=this.vibrato.getNoteHeadEndX()+2,r=this.vibrato.getNoteHeadBounds().y_bottom,i=this.getNoteHeadBounds().y_top,a=r<i?1:-1,o=Math.abs(this.getNoteHeadBeginX()-5-t),s=Math.abs(i-r);"w"!==this.duration&&this.vibrato.stave.y===this.stave.y||(o=this.vibrato.stave.getNoteEndX()-5-t),this.vibrato.stave.y!==this.stave.y&&(s=0),e.openGroup("vibrato"),n.renderVibrato(this.context,t,r,{harsh:!0,width:o,height:s,wave_height:6,wave_width:4,wave_girth:4,stem_direction:a}),e.closeGroup()}}},{key:"drawSlide",value:function(){if(this.slideNote){var e=this.context,t=this.slideNote.getNoteHeadEndX()+2,r=this.slideNote.getNoteHeadBounds().y_bottom,i=this.getNoteHeadBeginX()-4,a=this.getNoteHeadBounds().y_top;"w"!==this.duration&&this.slideNote.stave.y===this.stave.y||(i=this.slideNote.stave.getNoteEndX()-2),e.openGroup("slide"),n.renderSlideNote(e,t,r,i,a),e.closeGroup()}}},{key:"drawModifiers",value:function(){if(!this.context)throw new Vex.RERR("NoCanvasContext","Can't draw without a canvas context.");var e=this.context;e.openGroup("modifiers");for(var t=0;t<this.modifiers.length;t++){var n=this.modifiers[t],r=this.note_heads[n.getIndex()],i=r.getStyle();this.isRest()&&"articulations"===n.getCategory()||(n.note&&"jianpu"==n.note.DYMusicScoreType&&"Dot"===n.getAttribute("type")&&!n.note.formatterMetrics.duration||(r.applyStyle(e,i),n.setContext(e),n.drawWithStyle(),r.restoreStyle(e,i)))}e.closeGroup(),this.drawVibrato(),this.drawSlide()}},{key:"drawFlag",value:function(){var e=this.stem,t=this.beam,n=this.context;if(!n)throw new Vex.RERR("NoCanvasContext","Can't draw without a canvas context.");var r=null===t&&this.renderFlag;if(this.getGlyph().flag&&r){var i=this.getNoteHeadBounds(),a=i.y_top,o=i.y_bottom,s=e.getHeight(),l=this.getStemX(),u=this.getStemDirection()===Stem.DOWN?a-s+2:o-s-2;if(e&&!t){var c=this.keyProps[0].line;(c>6.5||c<-.5)&&(u+=c>6.5?10*(c-6.5):10*(c+.5))}n.openGroup("flag",null,{pointerBBox:!0}),this.applyStyle(n,this.getFlagStyle()||!1),this.flag.render(n,l,u),this.restoreStyle(n,this.getFlagStyle()||!1),n.closeGroup()}}},{key:"drawNoteHeads",value:function(){var e=this;this.note_heads.forEach((function(t){e.context.openGroup("notehead",null,{pointerBBox:!0});try{if(e.isRest()&&"w"===e.duration){var n=e.stave.options.line_config.filter((function(e){return e.visible})).length;4===e.keyProps[0].line&&n<5&&t.setY(t.getY()+10),1===n&&t.setLine(3)}}catch(r){}t.setContext(e.context).draw(),e.context.closeGroup()}))}},{key:"drawStem",value:function(e){if(!this.context)throw new Vex.RERR("NoCanvasContext","Can't draw without a canvas context.");e&&this.setStem(new Stem(e)),this.stem.id=Vex.Prefix("".concat(this.getAttribute("id"),"-stem")),this.stem&&(this.context.openGroup("stem",null,{pointerBBox:!0}),this.stem.setContext(this.context).draw(),this.context.closeGroup())}},{key:"draw",value:function(){if(!this.context)throw new Vex.RERR("NoCanvasContext","Can't draw without a canvas context.");if(!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");if(0===this.ys.length)throw new Vex.RERR("NoYValues","Can't draw note without Y values.");var e=this.stave.getLines();if(2===e||3===e||4===e)for(var t=0;t<this.note_heads.length;t++)if(this.isRest())2===e&&("q"===this.duration?this.note_heads[t].setLine(2):"w"===this.duration?this.note_heads[t].setLine(4):"h"===this.duration?this.note_heads[t].setLine(2.5):this.note_heads[t].setLine(2));else{var n=2===e?2:3===e?.65:.3,r=this.note_heads[t].line;this.note_heads[t].setLine(r+n)}var i=this.getNoteHeadBeginX(),a=this.hasStem()&&!this.beam;if(this.note_heads.forEach((function(e){return e.setX(i)})),this.stem){var o=this.getStemX(),s=this.keyProps[0].line;(s>6.5||s<-.5)&&(this.beam||(this.stem.renderHeightAdjustment=s>6.5?10*(s-6.5):10*Math.abs(s+.5))),this.stem.setNoteHeadXBounds(o,o)}L$h("Rendering ",this.isChord()?"chord :":"note :",this.keys),this.drawLedgerLines(),this.applyStyle(),this.setAttribute("el",this.context.openGroup("stavenote",this.getAttribute("id"))),this.context.openGroup("note",null,{pointerBBox:!0}),a&&this.drawStem(),this.drawNoteHeads(),this.drawFlag(),this.context.closeGroup(),this.drawModifiers(),this.context.closeGroup(),this.restoreStyle(),this.setRendered()}}],[{key:"CATEGORY",get:function(){return"stavenotes"}},{key:"STEM_UP",get:function(){return Stem.UP}},{key:"STEM_DOWN",get:function(){return Stem.DOWN}},{key:"DEFAULT_LEDGER_LINE_OFFSET",get:function(){return 3}},{key:"renderVibrato",value:function(e,t,n,r){var i=r.width,a=r.height,o=r.wave_width,s=r.wave_girth,l=r.wave_height,u=r.stem_direction,c=Math.floor(i/o),h=a/(c/2)*u;0==h&&(u=1,h=.3),e.beginPath(),e.moveTo(t,n+s);for(var d=0;d<c/2;++d)e.quadraticCurveTo(t+o/2,n-l/2,t+o,n),t+=o,n+=h,e.quadraticCurveTo(t+o/2,n+l/2,t+o,n),t+=o;for(var f=0;f<c/2;++f)e.quadraticCurveTo(t-o/2,n+l/2+s,t-o,n+s),t-=o,n-=h,e.quadraticCurveTo(t-o/2,n-l/2+s,t-o,n+s),t-=o;u<0&&e.stroke(),e.fill()}},{key:"renderSlideNote",value:function(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.lineWidth=2,e.stroke()}},{key:"format",value:function(e,t){if(!e||e.length<2)return!1;for(var n=[],r=e[0].stagger_same_whole_notes,i=0;i<e.length;i++){var a=e[i].getKeyProps(),o=a[0].line,s=a[a.length-1].line,l=e[i].getStemDirection(),u=e[i].getStemLength()/10,c=e[i].getStemMinumumLength()/10,h=void 0;e[i].isRest()?(h=o+e[i].glyph.line_above,s=o-e[i].glyph.line_below):(h=1===l?a[a.length-1].line+u:a[a.length-1].line,s=1===l?a[0].line:a[0].line-u),n.push({line:a[0].line,maxLine:h,minLine:s,isrest:e[i].isRest(),stemDirection:l,stemMax:u,stemMin:c,voice_shift:e[i].getVoiceShiftWidth(),is_displaced:e[i].isDisplaced(),note:e[i]})}var d=n.length,f=n[0],p=d>2?n[1]:null,v=d>2?n[2]:n[1];2===d&&-1===f.stemDirection&&1===v.stemDirection&&(f=n[1],v=n[0]);var m,g=Math.max(f.voice_shift,v.voice_shift),y=0;if(2===d){var b=f.stemDirection===v.stemDirection?0:.5;if(f.stemDirection===v.stemDirection&&f.minLine<=v.maxLine&&(f.isrest||(m=Math.abs(f.line-(v.maxLine+.5)),m=Math.max(m,f.stemMin),f.minLine=f.line-m,f.note.setStemLength(10*m))),f.minLine<=v.maxLine+b)if(f.isrest)shiftRestVertical(f,v,1);else if(v.isrest)shiftRestVertical(v,f,-1);else{y=g;var A=Math.abs(f.line-v.line),S=0,x=0;"h"===f.note.duration?S++:"w"===f.note.duration&&x++,"h"===v.note.duration?S++:"w"===v.note.duration&&x++;var w=1===S||1===x||f.note.dots!==v.note.dots;if(r&&(w=w||2===x),0===A&&w){if(v.note.setXShift(y),f.note.dots>0){var _,E=0,k=_createForOfIteratorHelper(f.note.modifiers);try{for(k.s();!(_=k.n()).done;){var C=_.value;if(C instanceof Dot&&(E++,C.setYShift(-10*(v.maxLine-f.line+1)),E===f.note.dots))break}}catch(err){k.e(err)}finally{k.f()}}}else A<1&&A>0?v.note.setXShift(y):f.note.voice!==v.note.voice&&f.stemDirection===v.stemDirection&&(f.line>v.line?1===f.stemDirection?v.note.renderFlag=!1:f.note.renderFlag=!1:v.line>f.line?1===v.stemDirection?f.note.renderFlag=!1:v.note.renderFlag=!1:1===v.stemDirection&&(v.stemDirection=-1,v.note.setStemDirection(-1)))}return!0}if((null!==p&&p.minLine<v.maxLine+.5&&(p.isrest||(m=Math.abs(p.line-(v.maxLine+.5)),m=Math.max(m,p.stemMin),p.minLine=p.line-m,p.note.setStemLength(10*m))),p.isrest&&!f.isrest&&!v.isrest)&&(f.minLine<=p.maxLine||p.minLine<=v.maxLine))return p.maxLine-p.minLine<f.minLine-v.maxLine?centerRest(p,f,v):(y=g+3,p.note.setXShift(y)),!0;return f.isrest&&p.isrest&&v.isrest?(shiftRestVertical(f,p,1),shiftRestVertical(v,p,-1),!0):(p.isrest&&f.isrest&&p.minLine<=v.maxLine&&shiftRestVertical(p,v,1),p.isrest&&v.isrest&&f.minLine<=p.maxLine&&shiftRestVertical(p,f,-1),f.isrest&&f.minLine<=p.maxLine&&shiftRestVertical(f,p,1),v.isrest&&p.minLine<=v.maxLine&&shiftRestVertical(v,p,-1),(!f.isrest&&!p.isrest&&f.minLine<=p.maxLine+.5||!p.isrest&&!v.isrest&&p.minLine<=v.maxLine)&&(y=g+3,p.note.setXShift(y)),!0)}},{key:"formatByY",value:function(e,t){for(var n=!0,r=0;r<e.length;r++)n=n&&null!=e[r].getStave();if(!n)throw new Vex.RERR("Stave Missing","All notes must have a stave - Vex.Flow.ModifierContext.formatMultiVoice!");for(var i=0,a=0;a<e.length-1;a++){var o=e[a],s=e[a+1];o.maxLine<s.maxLine&&(o=e[a+1],s=e[a]);var l=o.getKeyProps(),u=s.getKeyProps(),c=o.getStave().getYForLine(5-l[0].line+.5);s.getStave().getYForLine(5-u[u.length-1].line-.5)-c<0&&o.voice===s.voice&&(i=o.getVoiceShiftWidth()+2,s.setXShift(i))}t.right_shift+=i}},{key:"postFormat",value:function(e){return!!e&&(e.forEach((function(e){return e.postFormat()})),!0)}}]),n}(StemmableNote),FretHandFinger=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","FretHandFinger"),r.note=null,r.index=null,r.finger=e,r.width=7,r.position=Modifier.Position.LEFT,r.x_shift=0,r.y_shift=0,r.x_offset=0,r.y_offset=0,r.font={family:"sans-serif",size:9,weight:"bold"},r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setFretHandFinger",value:function(e){return this.finger=e,this}},{key:"setOffsetX",value:function(e){return this.x_offset=e,this}},{key:"setOffsetY",value:function(e){return this.y_offset=e,this}},{key:"draw",value:function(){if(this.checkContext(),!this.note||null==this.index)throw new Vex.RERR("NoAttachedNote","Can't draw string number without a note and index.");this.setRendered();var e=this.context,t=this.note.getModifierStartXY(this.position,this.index),n=t.x+this.x_shift+this.x_offset,r=t.y+this.y_shift+this.y_offset+5;switch(this.position){case Modifier.Position.ABOVE:n-=4,r-=12;break;case Modifier.Position.BELOW:n-=2,r+=10;break;case Modifier.Position.LEFT:n-=this.width;break;case Modifier.Position.RIGHT:n+=1;break;default:throw new Vex.RERR("InvalidPostion","The position ".concat(this.position," does not exist"))}e.save(),e.setFont(this.font.family,this.font.size,this.font.weight),e.fillText(""+this.finger,n,r),e.restore()}}],[{key:"CATEGORY",get:function(){return"frethandfinger"}},{key:"format",value:function(e,t){var n=t.left_shift,r=t.right_shift;if(!e||0===e.length)return!1;for(var i=[],a=null,o=0,s=0,l=0;l<e.length;++l){var u=e[l],c=u.getNote(),h=u.getPosition(),d=c.getKeyProps()[u.getIndex()];if(c!==a){for(var f=0;f<c.keys.length;++f){var p=c.getKeyProps()[f];0===n&&(o=p.displaced?c.getExtraLeftPx():o),0===r&&(s=p.displaced?c.getExtraRightPx():s)}a=c}i.push({note:c,num:u,pos:h,line:d.line,shiftL:o,shiftR:s})}i.sort((function(e,t){return t.line-e.line}));for(var v=0,m=0,g=0,y=0,b=null,A=null,S=0;S<i.length;++S){var x=0,w=i[S],_=w.note,E=w.pos,k=w.num,C=w.line,M=w.shiftL,P=w.shiftR;C===b&&_===A||(v=n+M,m=r+P);var I=k.getWidth()+1;E===Modifier.Position.LEFT?(k.setXShift(n+v),g=(x=n+I)>g?x:g):E===Modifier.Position.RIGHT&&(k.setXShift(m),y=(x=s+I)>y?x:y),b=C,A=_}return t.left_shift+=g,t.right_shift+=y,!0}}]),n}(Modifier),Music=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"isValidNoteValue",value:function(t){return!(null==t||t<0||t>=e.NUM_TONES)}},{key:"isValidIntervalValue",value:function(e){return this.isValidNoteValue(e)}},{key:"getNoteParts",value:function(e){if(!e||e.length<1)throw new Vex.RERR("BadArguments","Invalid note name: "+e);if(e.length>3)throw new Vex.RERR("BadArguments","Invalid note name: "+e);var t=e.toLowerCase(),n=/^([cdefgab])(b|bb|n|#|##)?$/.exec(t);if(null!=n)return{root:n[1],accidental:n[2]};throw new Vex.RERR("BadArguments","Invalid note name: "+e)}},{key:"getKeyParts",value:function(e){if(!e||e.length<1)throw new Vex.RERR("BadArguments","Invalid key: "+e);var t=e.toLowerCase(),n=/^([cdefgab])(b|#)?(mel|harm|m|M)?$/.exec(t);if(null!=n){var r=n[1],i=n[2],a=n[3];return a||(a="M"),{root:r,accidental:i,type:a}}throw new Vex.RERR("BadArguments","Invalid key: ".concat(e))}},{key:"getNoteValue",value:function(t){var n=e.noteValues[t];if(null==n)throw new Vex.RERR("BadArguments","Invalid note name: ".concat(t));return n.int_val}},{key:"getIntervalValue",value:function(t){var n=e.intervals[t];if(null==n)throw new Vex.RERR("BadArguments","Invalid interval name: ".concat(t));return n}},{key:"getCanonicalNoteName",value:function(t){if(!this.isValidNoteValue(t))throw new Vex.RERR("BadArguments","Invalid note value: ".concat(t));return e.canonical_notes[t]}},{key:"getCanonicalIntervalName",value:function(t){if(!this.isValidIntervalValue(t))throw new Vex.RERR("BadArguments","Invalid interval value: ".concat(t));return e.diatonic_intervals[t]}},{key:"getRelativeNoteValue",value:function(t,n,r){if(null==r&&(r=1),1!==r&&-1!==r)throw new Vex.RERR("BadArguments","Invalid direction: ".concat(r));var i=(t+r*n)%e.NUM_TONES;return i<0&&(i+=e.NUM_TONES),i}},{key:"getRelativeNoteName",value:function(t,n){var r=this.getNoteParts(t),i=this.getNoteValue(r.root),a=n-i;if(Math.abs(a)>e.NUM_TONES-3){var o=1;a>0&&(o=-1);var s=(n+1+(i+1))%e.NUM_TONES*o;if(Math.abs(s)>2)throw new Vex.RERR("BadArguments","Notes not related: ".concat(t,", ").concat(n,")"));a=s}if(Math.abs(a)>2)throw new Vex.RERR("BadArguments","Notes not related: ".concat(t,", ").concat(n,")"));var l=r.root;if(a>0)for(var u=1;u<=a;++u)l+="#";else if(a<0)for(var c=-1;c>=a;--c)l+="b";return l}},{key:"getScaleTones",value:function(e,t){for(var n=[e],r=e,i=0;i<t.length;i+=1)(r=this.getRelativeNoteValue(r,t[i]))!==e&&n.push(r);return n}},{key:"getIntervalBetween",value:function(t,n,r){if(null==r&&(r=1),1!==r&&-1!==r)throw new Vex.RERR("BadArguments","Invalid direction: ".concat(r));if(!this.isValidNoteValue(t)||!this.isValidNoteValue(n))throw new Vex.RERR("BadArguments","Invalid notes: ".concat(t,", ").concat(n));var i=1===r?n-t:t-n;return i<0&&(i+=e.NUM_TONES),i}},{key:"createScaleMap",value:function(t){var n=this.getKeyParts(t),r=e.scaleTypes[n.type],i=n.root;if(n.accidental&&(i+=n.accidental),!r)throw new Vex.RERR("BadArguments","Unsupported key type: "+t);for(var a=this.getScaleTones(this.getNoteValue(i),r),o=e.root_indices[n.root],s={},l=0;l<e.roots.length;++l){var u=(o+l)%e.roots.length,c=e.roots[u],h=this.getRelativeNoteName(c,a[l]);1===h.length&&(h+="n"),s[c]=h}return s}}],[{key:"NUM_TONES",get:function(){return 12}},{key:"roots",get:function(){return["c","d","e","f","g","a","b"]}},{key:"root_values",get:function(){return[0,2,4,5,7,9,11]}},{key:"root_indices",get:function(){return{c:0,d:1,e:2,f:3,g:4,a:5,b:6}}},{key:"canonical_notes",get:function(){return["c","c#","d","d#","e","f","f#","g","g#","a","a#","b"]}},{key:"diatonic_intervals",get:function(){return["unison","m2","M2","m3","M3","p4","dim5","p5","m6","M6","b7","M7","octave"]}},{key:"diatonic_accidentals",get:function(){return{unison:{note:0,accidental:0},m2:{note:1,accidental:-1},M2:{note:1,accidental:0},m3:{note:2,accidental:-1},M3:{note:2,accidental:0},p4:{note:3,accidental:0},dim5:{note:4,accidental:-1},p5:{note:4,accidental:0},m6:{note:5,accidental:-1},M6:{note:5,accidental:0},b7:{note:6,accidental:-1},M7:{note:6,accidental:0},octave:{note:7,accidental:0}}}},{key:"intervals",get:function(){return{u:0,unison:0,m2:1,b2:1,min2:1,S:1,H:1,2:2,M2:2,maj2:2,T:2,W:2,m3:3,b3:3,min3:3,M3:4,3:4,maj3:4,4:5,p4:5,"#4":6,b5:6,aug4:6,dim5:6,5:7,p5:7,"#5":8,b6:8,aug5:8,6:9,M6:9,maj6:9,b7:10,m7:10,min7:10,dom7:10,M7:11,maj7:11,8:12,octave:12}}},{key:"scales",get:function(){return{major:[2,2,1,2,2,2,1],dorian:[2,1,2,2,2,1,2],mixolydian:[2,2,1,2,2,1,2],minor:[2,1,2,2,1,2,2]}}},{key:"scaleTypes",get:function(){return{M:e.scales.major,m:e.scales.minor}}},{key:"accidentals",get:function(){return["bb","b","n","#","##"]}},{key:"noteValues",get:function(){return{c:{root_index:0,int_val:0},cn:{root_index:0,int_val:0},"c#":{root_index:0,int_val:1},"c##":{root_index:0,int_val:2},cb:{root_index:0,int_val:11},cbb:{root_index:0,int_val:10},d:{root_index:1,int_val:2},dn:{root_index:1,int_val:2},"d#":{root_index:1,int_val:3},"d##":{root_index:1,int_val:4},db:{root_index:1,int_val:1},dbb:{root_index:1,int_val:0},e:{root_index:2,int_val:4},en:{root_index:2,int_val:4},"e#":{root_index:2,int_val:5},"e##":{root_index:2,int_val:6},eb:{root_index:2,int_val:3},ebb:{root_index:2,int_val:2},f:{root_index:3,int_val:5},fn:{root_index:3,int_val:5},"f#":{root_index:3,int_val:6},"f##":{root_index:3,int_val:7},fb:{root_index:3,int_val:4},fbb:{root_index:3,int_val:3},g:{root_index:4,int_val:7},gn:{root_index:4,int_val:7},"g#":{root_index:4,int_val:8},"g##":{root_index:4,int_val:9},gb:{root_index:4,int_val:6},gbb:{root_index:4,int_val:5},a:{root_index:5,int_val:9},an:{root_index:5,int_val:9},"a#":{root_index:5,int_val:10},"a##":{root_index:5,int_val:11},ab:{root_index:5,int_val:8},abb:{root_index:5,int_val:7},b:{root_index:6,int_val:11},bn:{root_index:6,int_val:11},"b#":{root_index:6,int_val:0},"b##":{root_index:6,int_val:1},bb:{root_index:6,int_val:10},bbb:{root_index:6,int_val:9}}}}]),e}();function L$g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_Accidental.DEBUG&&Vex.L("Vex.Flow.Accidental",t)}var getGlyphWidth=function(e){return e.getMetrics().width},_Accidental=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(_classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Accidental"),L$g("New accidental: ",r),e.note=null,e.index=null,e.type=r,e.position=Modifier.Position.LEFT,e.render_options={font_scale:38,stroke_px:3,parenLeftPadding:2,parenRightPadding:2},e.accidental=Flow.accidentalCodes(e.type),!e.accidental)throw new Vex.RERR("ArgumentError","Unknown accidental type: ".concat(r));return e.cautionary=!1,e.parenLeft=null,e.parenRight=null,e.reset(),e}return _createClass2(n,[{key:"reset",value:function(){var e=this.render_options.font_scale;this.glyph=new Glyph(this.accidental.code,e),this.glyph.setOriginX(1),this.cautionary&&(this.parenLeft=new Glyph(Flow.accidentalCodes("{").code,e),this.parenRight=new Glyph(Flow.accidentalCodes("}").code,e),this.parenLeft.setOriginX(1),this.parenRight.setOriginX(1))}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getWidth",value:function(){var e=this.cautionary?getGlyphWidth(this.parenLeft)+getGlyphWidth(this.parenRight)+this.render_options.parenLeftPadding+this.render_options.parenRightPadding:0;return getGlyphWidth(this.glyph)+e}},{key:"setNote",value:function(e){if(!e)throw new Vex.RERR("ArgumentError","Bad note value: ".concat(e));this.note=e,"gracenotes"===this.note.getCategory()&&(this.render_options.font_scale=25,this.reset())}},{key:"setAsCautionary",value:function(){return this.cautionary=!0,this.render_options.font_scale=28,this.reset(),this}},{key:"draw",value:function(){var e=this.context,t=this.type,n=this.position,r=this.note,i=this.index,a=this.cautionary,o=this.x_shift,s=this.y_shift,l=this.glyph,u=this.parenLeft,c=this.parenRight,h=this.render_options,d=h.parenLeftPadding,f=h.parenRightPadding;if(this.checkContext(),!r||null==i)throw new Vex.RERR("NoAttachedNote","Can't draw accidental without a note and index.");var p=r.getModifierStartXY(n,i),v=p.x+o,m=p.y+s;L$g("Rendering: ",t,v,m),a?(c.render(e,v,m),v-=getGlyphWidth(c),v-=f,v-=this.accidental.parenRightPaddingAdjustment,l.render(e,v,m),v-=getGlyphWidth(l),v-=d,u.render(e,v,m)):l.render(e,v,m),this.setRendered()}}],[{key:"CATEGORY",get:function(){return"accidentals"}},{key:"format",value:function(e,t){var n=this,r=t.left_shift+1;if(e&&0!==e.length){for(var i=[],a=null,o=0,s=0;s<e.length;++s){var l=e[s],u=l.getNote(),c=u.getStave(),h=u.getKeyProps()[l.getIndex()];if(u!==a){for(var d=0;d<u.keys.length;++d)o=u.getKeyProps()[d].displaced?u.getExtraLeftPx():o;a=u}if(null!==c){var f=c.options.spacing_between_lines_px,p=c.getYForLine(h.line),v=Math.round(p/f*2)/2;i.push({y:p,line:v,shift:o,acc:l,lineSpace:f})}else i.push({line:h.line,shift:o,acc:l})}i.sort((function(e,t){return t.line-e.line}));for(var m=[],g=0,y=null,b=0;b<i.length;b++){var A=i[b];null!==y&&y===A.line||m.push({line:A.line,flatLine:!0,dblSharpLine:!0,numAcc:0,width:0}),"b"!==A.acc.type&&"bb"!==A.acc.type&&(m[m.length-1].flatLine=!1),"##"!==A.acc.type&&(m[m.length-1].dblSharpLine=!1),m[m.length-1].numAcc++,m[m.length-1].width+=A.acc.getWidth()+3,g=A.shift>g?A.shift:g,y=A.line}for(var S=0,x=function(e){for(var t=!1,r=e,i=e;i+1<m.length&&!t;)n.checkCollision(m[i],m[i+1])?i++:t=!0;var a,o,s=function(e){return m[r+e]},l=function(e){return e.map(s)},u=function(e,t){var n=_slicedToArray(l([e,t]).map((function(e){return e.line})),2);return n[0]-n[1]},c=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map(l).every((function(e){return!n.checkCollision.apply(n,_toConsumableArray2(e))}))},h=i-r+1,d=n.checkCollision(m[r],m[i])?"a":"b";switch(h){case 3:"a"===d&&.5===u(1,2)&&.5!==u(0,1)&&(d="second_on_bottom");break;case 4:c([0,2],[1,3])&&(d="spaced_out_tetrachord");break;case 5:"b"===d&&c([1,3])&&(d="spaced_out_pentachord",c([0,2],[2,4])&&(d="very_spaced_out_pentachord"));break;case 6:c([0,3],[1,4],[2,5])&&(d="spaced_out_hexachord"),c([0,2],[2,4],[1,3],[3,5])&&(d="very_spaced_out_hexachord")}if(h>=7){for(var f=2,p=!0;!0===p;){p=!1;for(var v=0;v+f<m.length;v++)if(n.checkCollision(m[v],m[v+f])){p=!0,f++;break}}for(a=e;a<=i;a++)o=(a-e)%f+1,m[a].column=o,S=S>o?S:o}else for(a=e;a<=i;a++)o=Flow.accidentalColumnsTable[h][d][a-e],m[a].column=o,S=S>o?S:o;w=e=i},w=0;w<m.length;w++)x(w);for(var _=[],E=[],k=0;k<=S;k++)_[k]=0,E[k]=0;_[0]=g+r,E[0]=g+r,m.forEach((function(e){e.width>_[e.column]&&(_[e.column]=e.width)}));for(var C=1;C<_.length;C++)E[C]=_[C]+E[C-1];var M=E[E.length-1],P=0;m.forEach((function(e){for(var t=0,n=P+e.numAcc;P<n;P++){var r=E[e.column-1]+t;i[P].acc.setXShift(r),t+=i[P].acc.getWidth()+3,L$g("Line, accCount, shift: ",e.line,P,r)}})),t.left_shift+=M}}},{key:"checkCollision",value:function(e,t){var n=t.line-e.line,r=3;n>0?(r=t.flatLine||t.dblSharpLine?2.5:3,e.dblSharpLine&&(n-=.5)):(r=e.flatLine||e.dblSharpLine?2.5:3,t.dblSharpLine&&(n-=.5));var i=Math.abs(n)<r;return L$g("Line_1, Line_2, Collision: ",e.line,t.line,i),i}},{key:"applyAccidentals",value:function(e,t){var r=[],i={};e.forEach((function(e){var t=new Fraction(0,1);e.getTickables().forEach((function(e){if(!e.shouldIgnoreTicks()){var n=i[t.value()];n?n.push(e):(r.push(t.value()),i[t.value()]=[e]),t.add(e.getTicks())}}))}));var a=new Music;t||(t="C");var o=a.createScaleMap(t);r.forEach((function(e){var t=i[e],r=[];t.forEach((function e(t){t.isRest()||t.shouldIgnoreTicks()||(t.keys.forEach((function(e,i){var s=a.getNoteParts(e.split("/")[0]),l=s.accidental||"n",u=s.root+l,c=o[s.root]===u,h=r.indexOf(u)>-1;if(!c||c&&h){o[s.root]=u;var d=new n(l);t.addAccidental(i,d),r.push(u)}})),t.getModifiers().forEach((function(t){"gracenotegroups"===t.getCategory()&&t.getGraceNotes().forEach(e)})))}))}))}}]),n}(Modifier),NoteSubGroup$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","NoteSubGroup"),r.note=null,r.index=null,r.position=Modifier.Position.LEFT,r.subNotes=e,r.subNotes.forEach((function(e){e.ignore_ticks=!1})),r.width=0,r.preFormatted=!1,r.formatter=new _Formatter,r.voice=new Voice$1({num_beats:4,beat_value:4,resolution:Flow.RESOLUTION}).setStrict(!1),r.voice.addTickables(r.subNotes),_possibleConstructorReturn2(r,_assertThisInitialized2(r))}return _createClass2(n,[{key:"getCategory",value:function(){return n.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:"setNote",value:function(e){this.note=e}},{key:"setWidth",value:function(e){this.width=e}},{key:"getWidth",value:function(){return this.width}},{key:"draw",value:function(){var e=this;this.checkContext();var t=this.getNote();if(!t||null===this.index)throw new Vex.RuntimeError("NoAttachedNote","Can't draw notes without a parent note and parent note index.");this.setRendered(),this.alignSubNotesWithNote(this.subNotes,t),this.subNotes.forEach((function(t){return t.setContext(e.context).drawWithStyle()}))}}],[{key:"CATEGORY",get:function(){return"notesubgroup"}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;for(var n=0,r=0;r<e.length;++r){var i=e[r];i.preFormat(),n+=i.getWidth()}return t.left_shift+=n,!0}}]),n}(Modifier),_StaveTie2=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","StaveTie"),i.notes=e,i.context=null,i.text=r,i.direction=null,i.render_options={cp1:8,cp2:12,text_shift_x:0,first_x_shift:0,last_x_shift:0,y_shift:7,tie_spacing:0,font:{family:"Arial",size:15,style:""}},i.font=i.render_options.font,i.setNotes(e),i}return _createClass2(n,[{key:"setFont",value:function(e){return this.font=e,this}},{key:"setDirection",value:function(e){return this.direction=e,this}},{key:"setNotes",value:function(e){if(!e.first_note&&!e.last_note)throw new Vex.RuntimeError("BadArguments","Tie needs to have either first_note or last_note set.");if(e.first_indices||(e.first_indices=[0]),e.last_indices||(e.last_indices=[0]),e.first_indices.length!==e.last_indices.length)throw new Vex.RuntimeError("BadArguments","Tied notes must have similar index sizes");return this.first_note=e.first_note,this.first_indices=e.first_indices,this.last_note=e.last_note,this.last_indices=e.last_indices,this}},{key:"isPartial",value:function(){return!this.first_note||!this.last_note}},{key:"renderTie",value:function(e){if(0===e.first_ys.length||0===e.last_ys.length)throw new Vex.RERR("BadArguments","No Y-values to render");var t=this.context,n=this.render_options.cp1,r=this.render_options.cp2;Math.abs(e.last_x_px-e.first_x_px)<10&&(n=2,r=8);for(var i=this.render_options.first_x_shift,a=this.render_options.last_x_shift,o=this.render_options.y_shift*e.direction,s=0;s<this.first_indices.length;++s){var l=(e.last_x_px+a+(e.first_x_px+i))/2,u=e.first_ys[this.first_indices[s]]+o,c=e.last_ys[this.last_indices[s]]+o;if(isNaN(u)||isNaN(c))throw new Vex.RERR("BadArguments","Bad indices for tie rendering.");var h=(u+c)/2+n*e.direction,d=(u+c)/2+r*e.direction,f=u>h&&Math.abs(u-h)<10?-6:0;if(this.first_note&&"jianpu"===this.first_note.DYMusicScoreType){if("TabTie"===this.getAttribute("type"))continue;u<h&&(f=-15),u!=c&&(u=c=Math.max(u,c))}var p=void 0;this.first_note&&(p=this.first_note.getAttribute("id")+"-tie"),this.setAttribute("el",t.openGroup("stavetie",p)),t.beginPath(),t.moveTo(e.first_x_px+i,u+f),t.quadraticCurveTo(l,h+2.3*f,e.last_x_px+a,c+f),t.quadraticCurveTo(l,d+2.3*f,e.first_x_px+i,u+f),t.closePath(),t.fill(),t.closeGroup()}}},{key:"renderText",value:function(e,t){if(this.text){var n=(e+t)/2;n-=this.context.measureText(this.text).width/2;var r=0;this.first_note&&"jianpu"===this.first_note.DYMusicScoreType&&(r=2),this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.style),this.context.fillText(this.text,n+this.render_options.text_shift_x,(this.first_note||this.last_note).getStave().getYForTopText()-1+r),this.context.restore()}}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e,t,n,r,i,a=this.first_note,o=this.last_note;return a?(e=a.getTieRightX()+this.render_options.tie_spacing,i=a.getStemDirection(),n=a.getYs()):(e=o.getStave().getTieStartX(),n=o.getYs(),this.first_indices=this.last_indices),o?(t=o.getTieLeftX()+this.render_options.tie_spacing,i=o.getStemDirection(),r=o.getYs(),"GraceNote"===o.attrs.type&&(t+=5,e-=15)):(t=a.getStave().getTieEndX(),r=a.getYs(),this.last_indices=this.first_indices),this.direction&&(i=this.direction),this.renderTie({first_x_px:e,last_x_px:t,first_ys:n,last_ys:r,direction:i}),this.renderText(e,t),!0}}]),n}(Element$1),TabTie=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,e,r)).setAttribute("type","TabTie"),i.render_options.cp1=9,i.render_options.cp2=11,i.render_options.y_shift=3,i.setNotes(e),i}return _createClass2(n,[{key:"draw",value:function(){this.checkContext(),this.setRendered();var e,t,n,r,i=this.first_note,a=this.last_note;return i?(e=i.getTieRightX()+this.render_options.tie_spacing,n=i.getYs()):(e=a.getStave().getTieStartX(),n=a.getYs(),this.first_indices=this.last_indices),a?(t=a.getTieLeftX()+this.render_options.tie_spacing,r=a.getYs()):(t=i.getStave().getTieEndX(),r=i.getYs(),this.last_indices=this.first_indices),this.renderTie({first_x_px:e,last_x_px:t,first_ys:n,last_ys:r,direction:-1}),this.renderText(e,t),!0}}],[{key:"createHammeron",value:function(e){return new n(e,"H")}},{key:"createPulloff",value:function(e){return new n(e,"P")}}]),n}(_StaveTie2);function L$f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_GraceNoteGroup.DEBUG&&Vex.L("Vex.Flow.GraceNoteGroup",t)}var _GraceNoteGroup=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","GraceNoteGroup"),i.note=null,i.index=null,i.position=Modifier.Position.LEFT,i.grace_notes=e,i.width=0,i.preFormatted=!1,i.show_slur=r,i.slur=null,i.formatter=new _Formatter,i.voice=new Voice$1({num_beats:4,beat_value:4,resolution:Flow.RESOLUTION}).setStrict(!1),i.render_options={slur_y_shift:0},i.beams=[],i.voice.addTickables(i.grace_notes),_possibleConstructorReturn2(i,_assertThisInitialized2(i))}return _createClass2(n,[{key:"getCategory",value:function(){return n.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(e){if((e=e||this.grace_notes).length>1){var t=new Beam$1(e);t.render_options.beam_width=3,t.render_options.partial_beam_length=4,this.beams.push(t)}return this}},{key:"setNote",value:function(e){this.note=e}},{key:"setWidth",value:function(e){this.width=e}},{key:"getWidth",value:function(){return this.width}},{key:"getGraceNotes",value:function(){return this.grace_notes}},{key:"draw",value:function(){var e=this;this.checkContext();var t=this.getNote();if(L$f("Drawing grace note group for:",t),!t||null===this.index)throw new Vex.RuntimeError("NoAttachedNote","Can't draw grace note without a parent note and parent note index.");if(this.setRendered(),this.alignSubNotesWithNote(this.getGraceNotes(),t),this.grace_notes.forEach((function(t){t.setContext(e.context).draw()})),this.beams.forEach((function(t){t.setContext(e.context).draw()})),this.show_slur){var n=this.getNote().getCategory()===_StaveNote3.CATEGORY,r=n?_StaveTie2:TabTie;this.slur=new r({last_note:this.grace_notes[0],first_note:t,first_indices:[0],last_indices:[0]}),this.slur.render_options.cp2=12,this.slur.render_options.y_shift=(n?7:5)+this.render_options.slur_y_shift,this.slur.setContext(this.context).draw()}}}],[{key:"CATEGORY",get:function(){return"gracenotegroups"}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;for(var n=[],r=null,i=0,a=0;a<e.length;++a){var o=e[a],s=o.getNote(),l=s.getCategory()===_StaveNote3.CATEGORY,u=l?4:0;if(l&&s!==r){for(var c=0;c<s.keys.length;++c){i=s.getKeyProps()[c].displaced?s.getExtraLeftPx():i}r=s}n.push({shift:i,gracenote_group:o,spacing:u})}for(var h,d=n[0].shift,f=0;f<n.length;++f){var p=n[f].gracenote_group;p.preFormat(),h=p.getWidth()+n[f].spacing,d=Math.max(h,d)}for(var v=0;v<n.length;++v){var m=n[v].gracenote_group;h=m.getWidth()+n[v].spacing,m.setSpacingFromNextModifier(d-Math.min(h,d))}return t.left_shift+=d,!0}}]),n}(Modifier),Stroke=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","Stroke"),i.note=null,i.options=Vex.Merge({},r),i.all_voices=!("all_voices"in i.options)||i.options.all_voices,i.note_end=null,i.index=null,i.type=e,i.position=Modifier.Position.LEFT,i.render_options={font_scale:38,stroke_px:3,stroke_spacing:10},i.font={family:"serif",size:10,weight:"bold italic"},i.setXShift(0),i.setWidth(10),i}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getPosition",value:function(){return this.position}},{key:"addEndNote",value:function(e){return this.note_end=e,this}},{key:"draw",value:function(){if(this.checkContext(),this.setRendered(),!this.note||null==this.index)throw new Vex.RERR("NoAttachedNote","Can't draw stroke without a note and index.");for(var e,t,r,i,a,o=this.note.getModifierStartXY(this.position,this.index),s=this.note.getYs(),l=o.y,u=o.y,c=o.x-5,h=this.note.stave.options.spacing_between_lines_px,d=this.getModifierContext().getModifiers(this.note.getCategory()),f=0;f<d.length;f++){s=d[f].getYs();for(var p=0;p<s.length;p++)(this.note===d[f]||this.all_voices)&&(l=Vex.Min(l,s[p]),u=Vex.Max(u,s[p]))}switch(this.type){case n.Type.BRUSH_DOWN:e="vc3",t=-3,r=l-h/2+10,u+=h/2;break;case n.Type.BRUSH_UP:e="v11",t=.5,r=u+h/2,l-=h/2;break;case n.Type.ROLL_DOWN:case n.Type.RASQUEDO_DOWN:e="vc3",t=-3,i=this.x_shift+t-2,this.note instanceof _StaveNote3?(r=(l+=1.5*h)-h,a=(u+=(u-l)%2!=0?.5*h:h)+h+2):(r=(l+=1.5*h)-.75*h,a=(u+=h)+.25*h);break;case n.Type.ROLL_UP:case n.Type.RASQUEDO_UP:e="v52",t=-4,i=this.x_shift+t-1,this.note instanceof _StaveNote3?(r=h/2,(u-(l+=.5*h))%2==0&&(u+=h/2),r=u+.5*h,a=l-1.25*h):(r=(u+=.5*h)+.25*h,a=(l+=.25*h)-h);break;case n.Type.ARPEGGIO_DIRECTIONLESS:l+=.5*h,u+=h;break;default:throw new Vex.RERR("InvalidType","The stroke type ".concat(this.type," does not exist"))}if(this.type===n.Type.BRUSH_DOWN||this.type===n.Type.BRUSH_UP)this.context.fillRect(c+this.x_shift,l,1,u-l);else if(this.note instanceof _StaveNote3)for(var v=l;v<=u;v+=h)Glyph.renderGlyph(this.context,c+this.x_shift-4,v,this.render_options.font_scale,"va3");else{var m;for(m=l;m<=u;m+=10)Glyph.renderGlyph(this.context,c+this.x_shift-4,m,this.render_options.font_scale,"va3");this.type===n.Type.RASQUEDO_DOWN&&(a=m+.25*h)}this.type!==n.Type.ARPEGGIO_DIRECTIONLESS&&(Glyph.renderGlyph(this.context,c+this.x_shift+t,r,this.render_options.font_scale,e),this.type!==n.Type.RASQUEDO_DOWN&&this.type!==n.Type.RASQUEDO_UP||(this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight),this.context.fillText("R",c+i,a),this.context.restore()))}}],[{key:"CATEGORY",get:function(){return"strokes"}},{key:"Type",get:function(){return{BRUSH_DOWN:1,BRUSH_UP:2,ROLL_DOWN:3,ROLL_UP:4,RASQUEDO_DOWN:5,RASQUEDO_UP:6,ARPEGGIO_DIRECTIONLESS:7}}},{key:"format",value:function(e,t){var n=t.left_shift;if(!e||0===e.length)return this;var r=e.map((function(e){var t=e.getNote();if(t instanceof _StaveNote3){var n=t.getKeyProps()[e.getIndex()];return{line:n.line,shift:n.displaced?t.getExtraLeftPx():0,stroke:e}}return{line:t.getPositions()[e.getIndex()].str,shift:0,stroke:e}})),i=n,a=r.reduce((function(e,t){var n=t.stroke,r=t.shift;return n.setXShift(i+r),Math.max(n.getWidth()+0,e)}),0);return t.left_shift+=a,!0}}]),n}(Modifier),_StringNumber=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","StringNumber"),r.note=null,r.last_note=null,r.index=null,r.string_number=e,r.setWidth(20),r.position=Modifier.Position.ABOVE,r.x_shift=0,r.y_shift=0,r.x_offset=0,r.y_offset=0,r.dashed=!0,r.leg=Renderer.LineEndType.NONE,r.radius=8,r.font={family:"sans-serif",size:10,weight:"bold"},r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getNote",value:function(){return this.note}},{key:"setNote",value:function(e){return this.note=e,this}},{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(e){return this.index=e,this}},{key:"setLineEndType",value:function(e){return e>=Renderer.LineEndType.NONE&&e<=Renderer.LineEndType.DOWN&&(this.leg=e),this}},{key:"setStringNumber",value:function(e){return this.string_number=e,this}},{key:"setOffsetX",value:function(e){return this.x_offset=e,this}},{key:"setOffsetY",value:function(e){return this.y_offset=e,this}},{key:"setLastNote",value:function(e){return this.last_note=e,this}},{key:"setDashed",value:function(e){return this.dashed=e,this}},{key:"draw",value:function(){var e=this.checkContext();if(!this.note||null==this.index)throw new Vex.RERR("NoAttachedNote","Can't draw string number without a note and index.");this.setRendered();var t=this.note.stave.options.spacing_between_lines_px,n=this.note.getModifierStartXY(this.position,this.index),r=n.x+this.x_shift+this.x_offset,i=n.y+this.y_shift+this.y_offset;switch(this.position){case Modifier.Position.ABOVE:case Modifier.Position.BELOW:var a=this.note.getStemExtents(),o=a.topY,s=a.baseY+2;this.note.stem_direction===_StaveNote3.STEM_DOWN&&(o=a.baseY,s=a.topY-2),i=this.position===Modifier.Position.ABOVE?this.note.hasStem()?o-1.75*t:n.y-1.75*t:this.note.hasStem()?s+1.5*t:n.y+1.75*t,i+=this.y_shift+this.y_offset;break;case Modifier.Position.LEFT:r-=this.radius/2+5;break;case Modifier.Position.RIGHT:r+=this.radius/2+6;break;default:throw new Vex.RERR("InvalidPosition","The position ".concat(this.position," is invalid"))}e.save(),e.beginPath(),e.arc(r,i,this.radius,0,2*Math.PI,!1),e.lineWidth=1.5,e.stroke(),e.setFont(this.font.family,this.font.size,this.font.weight);var l=r-e.measureText(this.string_number).width/2;if(e.fillText(""+this.string_number,l,i+4.5),null!=this.last_note){var u,c,h=this.last_note.getStemX()-this.note.getX()+5;switch(e.strokeStyle="#000000",e.lineCap="round",e.lineWidth=.6,this.dashed?Renderer.drawDashedLine(e,r+10,i,r+h,i,[3,3]):Renderer.drawDashedLine(e,r+10,i,r+h,i,[3,0]),this.leg){case Renderer.LineEndType.UP:u=-10,c=this.dashed?[3,3]:[3,0],Renderer.drawDashedLine(e,r+h,i,r+h,i+u,c);break;case Renderer.LineEndType.DOWN:u=10,c=this.dashed?[3,3]:[3,0],Renderer.drawDashedLine(e,r+h,i,r+h,i+u,c)}}e.restore()}}],[{key:"CATEGORY",get:function(){return"stringnumber"}},{key:"format",value:function(e,t){var n=t.left_shift,r=t.right_shift;if(!e||0===e.length)return this;var i,a,o,s,l,u=[],c=null,h=0,d=0;for(i=0;i<e.length;++i)for(o=(a=e[i]).getNote(),i=0;i<e.length;++i){o=(a=e[i]).getNote(),s=a.getPosition();var f=o.getKeyProps()[a.getIndex()];if(o!==c){for(var p=0;p<o.keys.length;++p)l=o.getKeyProps()[p],0===n&&(h=l.displaced?o.getExtraLeftPx():h),0===r&&(d=l.displaced?o.getExtraRightPx():d);c=o}u.push({pos:s,note:o,num:a,line:f.line,shiftL:h,shiftR:d})}u.sort((function(e,t){return t.line-e.line}));var v=0,m=0,g=0,y=null,b=null;for(i=0;i<u.length;++i){var A=0;o=u[i].note,s=u[i].pos,a=u[i].num;var S=u[i].line;u[i].shiftL;var x=u[i].shiftR;S===y&&o===b||(v=r+x);var w=a.getWidth()+1;s===Modifier.Position.LEFT?(a.setXShift(n),m=(A=h+w)>m?A:m):s===Modifier.Position.RIGHT&&(a.setXShift(v),g=(A+=w)>g?A:g),y=S,b=o}return t.left_shift+=m,t.right_shift+=g,!0}}]),n}(Modifier);function L$e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Articulation$1.DEBUG&&Vex.L("Vex.Flow.Articulation",t)}var _Modifier$Position2=Modifier.Position,ABOVE=_Modifier$Position2.ABOVE,BELOW=_Modifier$Position2.BELOW,roundToNearestHalf=function(e,t){return.5*e(t/.5)},isWithinLines=function(e,t){return t===ABOVE?e<=5:e>=1},getRoundingFunction=function(e,t){return isWithinLines(e,t)?t===ABOVE?Math.ceil:Math.floor:Math.round},snapLineToStaff=function(e,t,n,r){var i=roundToNearestHalf(getRoundingFunction(t,n),t);if(e&&isWithinLines(i,n)&&i%1==0){return i+.5*-r}return i},isStaveNote=function(e){var t=e.getCategory();return"stavenotes"===t||"gracenotes"===t},isTabNote=function(e){var t=e.getCategory();return"tabnotes"===t||"numberednotes"===t},getTopY=function(e,t){var n=e.getStave(),r=e.getStemDirection(),i=e.getStemExtents(),a=i.topY,o=i.baseY;if(isStaveNote(e))return e.hasStem()?r===Stem.UP?a:o:Math.min.apply(Math,_toConsumableArray2(e.getYs()));if(isTabNote(e))return e.hasStem()&&r===Stem.UP?a:n.getYForTopText(t);throw new Vex.RERR("UnknownCategory","Only can get the top and bottom ys of stavenotes and tabnotes")},getBottomY=function(e,t){var n=e.getStave(),r=e.getStemDirection(),i=e.getStemExtents(),a=i.topY,o=i.baseY;if(isStaveNote(e))return e.hasStem()?r===Stem.UP?o:a:Math.max.apply(Math,_toConsumableArray2(e.getYs()));if(isTabNote(e))return e.hasStem()?r===Stem.UP?n.getYForBottomText(t):a:n.getYForBottomText(t);throw new Vex.RERR("UnknownCategory","Only can get the top and bottom ys of stavenotes and tabnotes")},getInitialOffset=function(e,t){var n=t===ABOVE&&e.getStemDirection()===Stem.UP||t===BELOW&&e.getStemDirection()===Stem.DOWN;return isStaveNote(e)?e.hasStem()&&n?.5:1:e.hasStem()&&n?1:0},Articulation$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Articulation"),r.note=null,r.index=null,r.type=e,r.position=BELOW,r.render_options={font_scale:38},r.articulation=Flow.articulationCodes(r.type),!r.articulation)throw new Vex.RERR("ArgumentError","Articulation not found: ".concat(r.type));return r.glyph=new Glyph(r.articulation.code,r.render_options.font_scale),r.setWidth(r.glyph.getMetrics().width),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"draw",value:function(){var e,t=this,r=this.note,i=this.index,a=this.position,o=this.glyph,s=this.articulation.between_lines,l=this.text_line,u=this.context;if(this.checkContext(),!r||null==i)throw new Vex.RERR("NoAttachedNote","Can't draw Articulation without a note and index.");this.setRendered();var c=r.getStave(),h=c.getSpacingBetweenLines(),d="tabnotes"===r.getCategory(),f=r.getModifierStartXY(a,i).x,p=!s||d,v=getInitialOffset(r,a),m=(e={},_defineProperty2(e,ABOVE,(function(){o.setOrigin(.5,1);var e=getTopY(r,l)-(l+v)*h+(t.y_shift||0);return p?Math.min(c.getYForTopText(n.INITIAL_OFFSET),e):e})),_defineProperty2(e,BELOW,(function(){o.setOrigin(.5,0);var e=getBottomY(r,l)+(l+v)*h;return p?Math.max(c.getYForBottomText(n.INITIAL_OFFSET),e):e})),e)[a]();if(!d){var g=a===ABOVE?-1:1,y=d?r.positions[i].str:r.getKeyProps()[i].line,b=(r.getYs()[i]-m)/h+y,A=snapLineToStaff(s,b,a,g);isWithinLines(A,a)&&o.setOrigin(.5,.5),m+=Math.abs(A-b)*h*g}L$e("Rendering articulation at (x: ".concat(f,", y: ").concat(m,")")),o.render(u,f,m)}}],[{key:"CATEGORY",get:function(){return"articulations"}},{key:"INITIAL_OFFSET",get:function(){return-.5}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;var n=function(e,t,n){return roundToNearestHalf(getRoundingFunction(t,n),e.glyph.getMetrics().height/10+.5)};e.filter((function(e){return e.getPosition()===ABOVE})).forEach((function(e){e.setTextLine(t.top_text_line),t.top_text_line+=n(e,t.top_text_line,ABOVE)})),e.filter((function(e){return e.getPosition()===BELOW})).forEach((function(e){e.setTextLine(t.text_line),t.text_line+=n(e,t.text_line,BELOW)}));var r=e.map((function(e){return e.getWidth()})).reduce((function(e,t){return Math.max(t,e)}));return t.left_shift+=r/2,t.right_shift+=r/2,!0}},{key:"easyScoreHook",value:function(e,t,n){var r=e.articulations;if(r){var i={staccato:"a.",tenuto:"a-"};r.split(",").map((function(e){return e.trim().split(".")})).map((function(e){var t=_slicedToArray(e,2),r=t[0],a=t[1],o={type:i[r]};return a&&(o.position=Modifier.PositionString[a]),n.getFactory().Articulation(o)})).map((function(e){return t.addModifier(0,e)}))}}}]),n}(Modifier),_TickContext=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","TickContext"),e.currentTick=new Fraction(0,1),e.maxTicks=new Fraction(0,1),e.minTicks=null,e.padding=3,e.x=0,e.xBase=0,e.xOffset=0,e.tickables=[],e.notePx=0,e.extraLeftPx=0,e.extraRightPx=0,e.tContexts=[],e}return _createClass2(n,[{key:"getX",value:function(){return this.x}},{key:"setX",value:function(e){return this.x=e,this.xBase=e,this.xOffset=0,this}},{key:"getXBase",value:function(){return this.xBase}},{key:"setXBase",value:function(e){this.xBase=e,this.x=e+this.xOffset}},{key:"getXOffset",value:function(){return this.xOffset}},{key:"setXOffset",value:function(e){this.xOffset=e,this.x=this.xBase+e}},{key:"getWidth",value:function(){return this.width+2*this.padding}},{key:"setPadding",value:function(e){return this.padding=e,this}},{key:"getMaxTicks",value:function(){return this.maxTicks}},{key:"getMinTicks",value:function(){return this.minTicks}},{key:"getTickables",value:function(){return this.tickables}},{key:"getCenterAlignedTickables",value:function(){return this.tickables.filter((function(e){return e.isCenterAligned()}))}},{key:"getMetrics",value:function(){return{width:this.width,notePx:this.notePx,extraLeftPx:this.extraLeftPx,extraRightPx:this.extraRightPx}}},{key:"getCurrentTick",value:function(){return this.currentTick}},{key:"setCurrentTick",value:function(e){this.currentTick=e,this.preFormatted=!1}},{key:"getExtraPx",value:function(){for(var e=0,t=0,n=0,r=0,i=0;i<this.tickables.length;i++){n=Math.max(this.tickables[i].extraLeftPx||0,n),r=Math.max(this.tickables[i].extraRightPx||0,r);var a=this.tickables[i].modifierContext;a&&null!=a&&(e=Math.max(e,a.state.left_shift),t=Math.max(t,a.state.right_shift))}return{left:e,right:t,extraLeft:n,extraRight:r}}},{key:"addTickable",value:function(e){if(!e)throw new Vex.RERR("BadArgument","Invalid tickable added.");if(!e.shouldIgnoreTicks()){this.ignore_ticks=!1;var t=e.getTicks();t.greaterThan(this.maxTicks)&&(this.maxTicks=t.clone()),(null==this.minTicks||t.lessThan(this.minTicks))&&(this.minTicks=t.clone())}return e.setTickContext(this),this.tickables.push(e),this.preFormatted=!1,this}},{key:"preFormat",value:function(){if(this.preFormatted)return this;for(var e=0;e<this.tickables.length;++e){var t=this.tickables[e];t.preFormat();var n=t.getMetrics();this.extraLeftPx=Math.max(this.extraLeftPx,n.extraLeftPx+n.modLeftPx),this.extraRightPx=Math.max(this.extraRightPx,n.extraRightPx+n.modRightPx),this.notePx=Math.max(this.notePx,n.noteWidth),this.width=this.notePx+this.extraLeftPx+this.extraRightPx}return this}},{key:"postFormat",value:function(){return this.postFormatted||(this.postFormatted=!0),this}}],[{key:"getNextContext",value:function(e){var t=e.tContexts,n=t.indexOf(e);return t[n+1]}}]),n}(Tickable);function L$d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Ornament.DEBUG&&Vex.L("Vex.Flow.Ornament",t)}var Ornament=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Ornament"),r.note=null,r.index=null,r.type=e,r.position=Modifier.Position.ABOVE,r.delayed=!1,r.accidentalUpper=null,r.accidentalLower=null,r.render_options={font_scale:38,accidentalLowerPadding:3,accidentalUpperPadding:3},r.ornament=Flow.ornamentCodes(r.type),!r.ornament)throw new Vex.RERR("ArgumentError","Ornament not found: '".concat(r.type,"'"));return r.glyph=new Glyph(r.ornament.code,r.render_options.font_scale),r.glyph.setOrigin(.5,1),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setDelayed",value:function(e){return this.delayed=e,this}},{key:"setUpperAccidental",value:function(e){var t=this.render_options.font_scale/1.3;return this.accidentalUpper=new Glyph(Flow.accidentalCodes(e).code,t),this.accidentalUpper.setOrigin(.5,1),this}},{key:"setLowerAccidental",value:function(e){var t=this.render_options.font_scale/1.3;return this.accidentalLower=new Glyph(Flow.accidentalCodes(e).code,t),this.accidentalLower.setOrigin(.5,1),this}},{key:"draw",value:function(){if(this.checkContext(),!this.note||null==this.index)throw new Vex.RERR("NoAttachedNote","Can't draw Ornament without a note and index.");this.setRendered();var e=this.context,t=this.note.getStemDirection(),n=this.note.getStave(),r=this.note.getStem().getExtents(),i=t===_StaveNote3.STEM_DOWN?r.baseY:r.topY;"tabnotes"===this.note.getCategory()&&(this.note.hasStem()?t===_StaveNote3.STEM_DOWN&&(i=n.getYForTopText(this.text_line)):i=n.getYForTopText(this.text_line));var a=t===_StaveNote3.STEM_DOWN,o=n.getSpacingBetweenLines(),s=1;!a&&this.note.beam&&(s+=.5);var l=i-o*(this.text_line+s),u=this.note.getModifierStartXY(this.position,this.index).x,c=Math.min(n.getYForTopText(this.text_line),l);if(c+=this.y_shift,this.delayed){var h=0;if(void 0!==this.delayXShift)h=this.delayXShift;else{h+=this.glyph.getMetrics().width/2;var d=_TickContext.getNextContext(this.note.getTickContext());h+=d?.5*(d.getX()-u):.5*(n.x+n.width-u),this.delayXShift=h}u+=h}L$d("Rendering ornament: ",this.ornament,u,c),this.accidentalLower&&(this.accidentalLower.render(e,u,c),c-=this.accidentalLower.getMetrics().height,c-=this.render_options.accidentalLowerPadding),this.glyph.render(e,u,c),c-=this.glyph.getMetrics().height,this.accidentalUpper&&(c-=this.render_options.accidentalUpperPadding,this.accidentalUpper.render(e,u,c))}}],[{key:"CATEGORY",get:function(){return"ornaments"}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;for(var n=0,r=0;r<e.length;++r){var i=e[r];n=Math.max(i.getWidth(),n),i.getPosition()===Modifier.Position.ABOVE?(i.setTextLine(t.top_text_line),t.top_text_line+=2):(i.setTextLine(t.text_line),t.text_line+=2)}return t.left_shift+=n/2,t.right_shift+=n/2,!0}}]),n}(Modifier);function L$c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_Annotation.DEBUG&&Vex.L("Vex.Flow.Annotation",t)}var _Annotation=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Annotation"),r.note=null,r.index=null,r.text=e,r.justification=n.Justify.CENTER,r.vert_justification=n.VerticalJustify.TOP,r.font={family:"Arial",size:10,weight:""},r.setWidth(Flow.textWidth(e)),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setFont",value:function(e,t,n){return this.font={family:e,size:t,weight:n},this}},{key:"setVerticalJustification",value:function(e){return this.vert_justification="string"==typeof e?n.VerticalJustifyString[e]:e,this}},{key:"getJustification",value:function(){return this.justification}},{key:"setJustification",value:function(e){return this.justification="string"==typeof e?n.JustifyString[e]:e,this}},{key:"draw",value:function(){if(this.checkContext(),!this.note)throw new Vex.RERR("NoNoteForAnnotation","Can't draw text annotation without an attached note.");this.setRendered();var e=this.note.getModifierStartXY(Modifier.Position.ABOVE,this.index);this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight);var t,r,i,a,o=this.context.measureText(this.text).width,s=this.context.measureText("m").width;t=this.justification===n.Justify.LEFT?e.x:this.justification===n.Justify.RIGHT?e.x-o:this.justification===n.Justify.CENTER?e.x-o/2:this.note.getStemX()-o/2;var l=this.note.hasStem(),u=this.note.getStave();if(l&&(i=this.note.getStem().getExtents(),a=u.getSpacingBetweenLines()),this.vert_justification===n.VerticalJustify.BOTTOM){if(r=u.getYForBottomText(this.text_line+Flow.TEXT_HEIGHT_OFFSET_HACK),l){var c=1===this.note.getStemDirection()?i.baseY:i.topY;r=Math.max(r,c+a*(this.text_line+2))}}else if(this.vert_justification===n.VerticalJustify.CENTER){var h=this.note.getYForTopText(this.text_line)-1;r=h+(u.getYForBottomText(this.text_line)-h)/2+s/2}else if(this.vert_justification===n.VerticalJustify.TOP)r=Math.min(u.getYForTopText(this.text_line),this.note.getYs()[0]-10),l&&(r=Math.min(r,i.topY-5-a*this.text_line));else{var d=this.note.getStemExtents();r=d.topY+(d.baseY-d.topY)/2+s/2}L$c("Rendering annotation: ",this.text,t,r);["b","bb","#","##","n"].includes(this.text)?(new Glyph(Flow.accidentalCodes(this.text).code,38).render(this.context,t+2,r-27),this.setRendered()):(this.context.fillText(this.text,t,r),this.context.restore())}}],[{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:n.Justify.LEFT,right:n.Justify.RIGHT,center:n.Justify.CENTER,centerStem:n.Justify.CENTER_STEM}}},{key:"VerticalJustify",get:function(){return{TOP:1,CENTER:2,BOTTOM:3,CENTER_STEM:4}}},{key:"VerticalJustifyString",get:function(){return{above:n.VerticalJustify.TOP,top:n.VerticalJustify.TOP,below:n.VerticalJustify.BOTTOM,bottom:n.VerticalJustify.BOTTOM,center:n.VerticalJustify.CENTER,centerStem:n.VerticalJustify.CENTER_STEM}}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;for(var n=0,r=0;r<e.length;++r){var i=e[r];n=Math.max(i.getWidth(),n),i.getPosition()===Modifier.Position.ABOVE?(i.setTextLine(t.top_text_line),t.top_text_line++):(i.setTextLine(t.text_line),t.text_line++)}return t.left_shift+=n/2,t.right_shift+=n/2,!0}}]),n}(Modifier),Bend=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","Bend"),a.text=e,a.x_shift=0,a.release=r||!1,a.font="10pt Arial",a.render_options={line_width:1.5,line_style:"#777777",bend_width:8,release_width:8},i?a.phrase=i:(a.phrase=[{type:n.UP,text:a.text}],a.release&&a.phrase.push({type:n.DOWN,text:""})),a.updateWidth(),a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setXShift",value:function(e){this.x_shift=e,this.updateWidth()}},{key:"setFont",value:function(e){return this.font=e,this}},{key:"getText",value:function(){return this.text}},{key:"updateWidth",value:function(){var e=this;for(var t,r=0,i=0;i<this.phrase.length;++i){var a=this.phrase[i];if("width"in a)r+=a.width;else{var o=a.type===n.UP?this.render_options.bend_width:this.render_options.release_width;a.width=Vex.Max(o,(t=a.text,e.context?e.context.measureText(t).width:Flow.textWidth(t)))+3,a.draw_width=a.width/2,r+=a.width}}return this.setWidth(r+this.x_shift),this}},{key:"draw",value:function(){if(this.checkContext(),!this.note||null==this.index)throw new Vex.RERR("NoNoteForBend","Can't draw bend without a note or index.");this.setRendered();var e=this.note.getModifierStartXY(Modifier.Position.RIGHT,this.index);e.x+=3,e.y+=.5;var t=this.x_shift,r=this.context,i=this.note.getStave().getYForTopText(this.text_line)+3,a=this.note.getStave().getYForTopText(this.text_line)-1,o=this;function s(e,t,n,i){var a=e+n,s=t;r.save(),r.beginPath(),r.setLineWidth(o.render_options.line_width),r.setStrokeStyle(o.render_options.line_style),r.setFillStyle(o.render_options.line_style),r.moveTo(e,t),r.quadraticCurveTo(a,s,e+n,i),r.stroke(),r.restore()}function l(e,t,n,i){r.save(),r.beginPath(),r.setLineWidth(o.render_options.line_width),r.setStrokeStyle(o.render_options.line_style),r.setFillStyle(o.render_options.line_style),r.moveTo(e,i),r.quadraticCurveTo(e+n,i,e+n,t),r.stroke(),r.restore()}function u(e,t,n){var i=n||1;r.beginPath(),r.moveTo(e,t),r.lineTo(e-4,t+4*i),r.lineTo(e+4,t+4*i),r.closePath(),r.fill()}function c(e,t){r.save(),r.setRawFont(o.font);var n=e-r.measureText(t).width/2;r.fillText(t,n,a),r.restore()}for(var h=null,d=0,f=0;f<this.phrase.length;++f){var p=this.phrase[f];0===f&&(p.draw_width+=t),d=p.draw_width+(h?h.draw_width:0)-(1===f?t:0),p.type===n.UP&&(h&&h.type===n.UP&&u(e.x,i),s(e.x,e.y,d,i)),p.type===n.DOWN&&(h&&h.type===n.UP&&l(e.x,e.y,d,i),h&&h.type===n.DOWN&&(u(e.x,e.y,-1),l(e.x,e.y,d,i)),null===h&&(d=p.draw_width,l(e.x,e.y,d,i))),c(e.x+d,p.text),(h=p).x=e.x,e.x+=d}h.type===n.UP?u(h.x+d,i):h.type===n.DOWN&&u(h.x+d,e.y,-1)}}],[{key:"CATEGORY",get:function(){return"bends"}},{key:"UP",get:function(){return 0}},{key:"DOWN",get:function(){return 1}},{key:"format",value:function(e,t){if(!e||0===e.length)return!1;for(var n=0,r=t.top_text_line,i=0;i<e.length;++i){var a=e[i];a.setXShift(n),n=a.getWidth(),a.setTextLine(r)}return t.right_shift+=n,t.top_text_line+=1,!0}}]),n}(Modifier),Vibrato=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","Vibrato"),e.position=Modifier.Position.RIGHT,e.render_options={harsh:!1,vibrato_width:20,wave_height:6,wave_width:4,wave_girth:2},e.setVibratoWidth(e.render_options.vibrato_width),e}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setHarsh",value:function(e){return this.render_options.harsh=e,this}},{key:"setVibratoWidth",value:function(e){return this.render_options.vibrato_width=e,this.setWidth(e),this}},{key:"draw",value:function(){var e=this.checkContext();if(!this.note)throw new Vex.RERR("NoNoteForVibrato","Can't draw vibrato without an attached note.");this.setRendered();var t=this.note.getModifierStartXY(Modifier.Position.RIGHT,this.index).x+this.x_shift,r=this.note.getYForTopText(this.text_line)+2;n.renderVibrato(e,t,r,this.render_options)}}],[{key:"CATEGORY",get:function(){return"vibratos"}},{key:"format",value:function(e,t,n){if(!e||0===e.length)return!1;var r=t.top_text_line,i=0,a=t.right_shift-7,o=n.getModifiers(Bend.CATEGORY);o&&o.length>0&&r--;for(var s=0;s<e.length;++s){var l=e[s];l.setXShift(a),l.setTextLine(r),a+=i+=l.getWidth()}return t.right_shift+=i,t.top_text_line+=1,!0}},{key:"renderVibrato",value:function(e,t,n,r){var i,a=r.harsh,o=r.vibrato_width,s=r.wave_width,l=r.wave_girth,u=r.wave_height,c=o/s;if(e.beginPath(),a){for(e.moveTo(t,n+l+1),i=0;i<c/2;++i)e.lineTo(t+s,n-u/2),t+=s,e.lineTo(t+s,n+u/2),t+=s;for(i=0;i<c/2;++i)e.lineTo(t-s,n-u/2+l+1),t-=s,e.lineTo(t-s,n+u/2+l+1),t-=s;e.fill()}else{for(e.moveTo(t,n+l),i=0;i<c/2;++i)e.quadraticCurveTo(t+s/2,n-u/2,t+s,n),t+=s,e.quadraticCurveTo(t+s/2,n+u/2,t+s,n),t+=s;for(i=0;i<c/2;++i)e.quadraticCurveTo(t-s/2,n+u/2+l,t-s,n+l),t-=s,e.quadraticCurveTo(t-s/2,n-u/2+l,t-s,n+l),t-=s;e.fill()}}}]),n}(Modifier);function L$b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_ModifierContext.DEBUG&&Vex.L("Vex.Flow.ModifierContext",t)}var _ModifierContext=function(){function e(){_classCallCheck2(this,e),this.modifiers={},this.preFormatted=!1,this.postFormatted=!1,this.width=0,this.spacing=0,this.state={left_shift:0,right_shift:0,text_line:0,top_text_line:0},this.PREFORMAT=[_StaveNote3,Dot,FretHandFinger,_Accidental,Stroke,_GraceNoteGroup,NoteSubGroup$1,_StringNumber,Articulation$1,Ornament,_Annotation,Bend,Vibrato],this.POSTFORMAT=[_StaveNote3]}return _createClass2(e,[{key:"addModifier",value:function(e){var t=e.getCategory();return this.modifiers[t]||(this.modifiers[t]=[]),this.modifiers[t].push(e),e.setModifierContext(this),this.preFormatted=!1,this}},{key:"getModifiers",value:function(e){return this.modifiers[e]}},{key:"getWidth",value:function(){return this.width}},{key:"getExtraLeftPx",value:function(){return this.state.left_shift}},{key:"getExtraRightPx",value:function(){return this.state.right_shift}},{key:"getState",value:function(){return this.state}},{key:"getMetrics",value:function(){if(!this.formatted)throw new Vex.RERR("UnformattedModifier","Unformatted modifier has no metrics.");return{width:this.state.left_shift+this.state.right_shift+this.spacing,spacing:this.spacing,extra_left_px:this.state.left_shift,extra_right_px:this.state.right_shift}}},{key:"preFormat",value:function(){var e=this;this.preFormatted||(this.PREFORMAT.forEach((function(t){L$b("Preformatting ModifierContext: ",t.CATEGORY),t.format(e.getModifiers(t.CATEGORY),e.state,e)})),this.width=this.state.left_shift+this.state.right_shift,this.preFormatted=!0)}},{key:"postFormat",value:function(){var e=this;this.postFormatted||this.POSTFORMAT.forEach((function(t){L$b("Postformatting ModifierContext: ",t.CATEGORY),t.postFormat(e.getModifiers(t.CATEGORY),e)}))}}]),e}();function L$a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_Formatter.DEBUG&&Vex.L("Vex.Flow.Formatter",t)}function getNext(e,t){var n,r,i=e[t+1];return i&&null!=i&&null!==(n=i.keys)&&void 0!==n&&n.includes("b/4")||null!=i&&null!==(r=i.keys)&&void 0!==r&&r.includes("r/4")?getNext(e,t+1):i}function createContexts(e,t,n){if(!e||!e.length)throw new Vex.RERR("BadArgument","No voices to format");var r=e[0].getTotalTicks(),i=e.reduce((function(e,t){if(!t.getTotalTicks().equals(r))throw new Vex.RERR("TickMismatch","Voices should have same total note duration in ticks.");if(t.getMode()===Voice$1.Mode.STRICT&&!t.isComplete())throw new Vex.RERR("IncompleteVoice","Voice does not have enough notes.");return Math.max(e,Fraction.LCM(e,t.getResolutionMultiplier()))}),1),a={},o=[],s=[];return e.forEach((function(e){var r=new Fraction(0,i);e.getTickables().forEach((function(e){var i=r.numerator;if(!a[i]){var l=new t;s.push(l),a[i]=l}n(e,a[i]),o.push(i),r.add(e.getTicks())}))})),{map:a,array:s,list:Vex.SortAndUnique(o,(function(e,t){return e-t}),(function(e,t){return e===t})),resolutionMultiplier:i}}var _Formatter=function(){function e(){_classCallCheck2(this,e),this.minTotalWidth=0,this.hasMinTotalWidth=!1,this.totalTicks=new Fraction(0,1),this.tickContexts=null,this.modiferContexts=null,this.contextGaps={total:0,gaps:[]},this.voices=[]}return _createClass2(e,[{key:"alignRests",value:function(t,n){if(!t||!t.length)throw new Vex.RERR("BadArgument","No voices to format rests");t.forEach((function(t){return e.AlignRestsToNotes(t.getTickables(),n)}))}},{key:"preCalculateMinTotalWidth",value:function(e){if(this.hasMinTotalWidth)return this.minTotalWidth;if(!this.tickContexts){if(!e)throw new Vex.RERR("BadArgument","'voices' required to run preCalculateMinTotalWidth");this.createTickContexts(e)}var t=this.tickContexts,n=t.list,r=t.map;return this.minTotalWidth=n.map((function(e){var t=r[e];return t.preFormat(),t.getWidth()})).reduce((function(e,t){return e+t}),0),this.hasMinTotalWidth=!0,this.minTotalWidth}},{key:"getMinTotalWidth",value:function(){if(!this.hasMinTotalWidth)throw new Vex.RERR("NoMinTotalWidth","Call 'preCalculateMinTotalWidth' or 'preFormat' before calling 'getMinTotalWidth'");return this.minTotalWidth}},{key:"createModifierContexts",value:function(e){var t=createContexts(e,_ModifierContext,(function(e,t){return e.addToModifierContext(t)}));return this.modiferContexts=t,t}},{key:"createTickContexts",value:function(e){var t=createContexts(e,_TickContext,(function(e,t){return t.addTickable(e)}));return t.array.forEach((function(e){e.tContexts=t.array})),this.totalTicks=e[0].getTicksUsed().clone(),this.tickContexts=t,t}},{key:"preFormat",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=this.tickContexts,o=a.list,s=a.map,l=a.resolutionMultiplier;r&&i&&r.forEach((function(e){return e.setStave(i).preFormat()}));var u=0,c=0,h=t/2;if(this.minTotalWidth=0,o.forEach((function(t){var r=s[t];n&&r.setContext(n),r.preFormat();var i=r.getWidth();e.minTotalWidth+=i;var a=r.getMetrics();u=u+c+a.extraLeftPx,r.setX(u),c=i-a.extraLeftPx})),this.minTotalWidth=u+c,this.hasMinTotalWidth=!0,!(t<=0)){var d=(t-this.minTotalWidth)/(this.totalTicks.value()*l),f=0;o.forEach((function(e,t){var n=o[t-1]||0,r=s[e];f+=(e-n)*d,r.setX(r.getX()+f),r.getCenterAlignedTickables().forEach((function(e){e.center_x_shift=h-r.getX()}))})),1!==o.length&&(this.justifyWidth=t,this.lossHistory=[],this.evaluate())}}},{key:"evaluate",value:function(){var e=this,t=this.justifyWidth;this.contextGaps={total:0,gaps:[]},this.tickContexts.list.forEach((function(t,n){if(0!==n){var r=e.tickContexts.list[n-1],i=e.tickContexts.map[r],a=e.tickContexts.map[t],o=i.getMetrics(),s=i.getX()+o.width,l=a.getX(),u=l-s;e.contextGaps.total+=u,e.contextGaps.gaps.push({x1:s,x2:l}),a.getFormatterMetrics().freedom.left=u,i.getFormatterMetrics().freedom.right=u}}));var n=this.durationStats={};this.voices.forEach((function(e){e.getTickables().forEach((function(e,r,i){var a=e.getTicks().clone().simplify().toString(),o=e.getMetrics(),s=e.getFormatterMetrics(),l=e.getX()+o.noteWidth+o.modRightPx+o.extraRightPx,u=0;if(r<i.length-1){var c=i[r+1],h=c.getMetrics();u=c.getX()-h.modLeftPx-h.extraLeftPx-l,s.space.used=c.getX()-e.getX(),c.getFormatterMetrics().freedom.left=u}else u=t-l,s.space.used=t-e.getX();s.freedom.right=u,function(e,t){var r=n[e];void 0===r?n[e]={mean:t,count:1}:(r.count+=1,r.mean=(r.mean+t)/2)}(a,s.space.used)}))}));var r=0;return this.voices.forEach((function(e){e.getTickables().forEach((function(e){var t=e.getTicks().clone().simplify().toString(),i=e.getFormatterMetrics();i.iterations+=1,i.space.deviation=i.space.used-n[t].mean,i.duration=t,i.space.mean=n[t].mean,r+=Math.pow(n[t].mean,2)}))})),this.totalCost=Math.sqrt(r),this.lossHistory.push(this.totalCost),this}},{key:"tune",value:function(){var e=this;var t=0;return this.tickContexts.list.forEach((function(n,r,i){var a=e.tickContexts.map[n],o=r>0?e.tickContexts.map[i[r-1]]:null,s=r<i.length-1?e.tickContexts.map[i[r+1]]:null;!function(e,t,n,r){e.setX(e.getX()+r),e.getFormatterMetrics().freedom.left+=r,e.getFormatterMetrics().freedom.right-=r,t&&(t.getFormatterMetrics().freedom.right+=r),n&&(n.getFormatterMetrics().freedom.left-=r)}(a,o,s,t);var l=-a.getTickables().map((function(e){return e.getFormatterMetrics().space.deviation})).reduce((function(e,t){return e+t}));l>0?t=-Math.min(a.getFormatterMetrics().freedom.right,Math.abs(l)):l<0&&(t=s?Math.min(s.getFormatterMetrics().freedom.right,Math.abs(l)):0);var u=Math.min(5,Math.abs(t));t=t>0?u:-u})),this.evaluate()}},{key:"postFormat",value:function(){var e=function(e){return e.list.forEach((function(t){return e.map[t].postFormat()}))};return e(this.modiferContexts),e(this.tickContexts),this}},{key:"joinVoices",value:function(e){return this.createModifierContexts(e),this.hasMinTotalWidth=!1,this}},{key:"format",value:function(e,t,n){var r={align_rests:!1,context:null,stave:null};return Vex.Merge(r,n),this.voices=e,this.alignRests(e,r.align_rests),this.createTickContexts(e),this.preFormat(t,r.context,e,r.stave),this}},{key:"formatToStave",value:function(e,t,n){var r=t.getNoteEndX()-t.getNoteStartX()-10;L$a("Formatting voices to width: ",r);var i={context:t.getContext()};return Vex.Merge(i,n),this.format(e,r,i)}}],[{key:"SimpleFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).paddingBetween,r=void 0===n?10:n;e.reduce((function(e,t){t.addToModifierContext(new _ModifierContext);var n=(new _TickContext).addTickable(t).preFormat(),i=n.getExtraPx();return n.setX(e+i.left),e+n.getWidth()+i.right+r}),t)}},{key:"plotDebugging",value:function(e,t,n,r,i){var a=n+Note.STAVEPADDING,o=t.contextGaps;e.save(),e.setFont("Arial",8,""),o.gaps.forEach((function(t){var n,o,s;n=a+t.x1,o=a+t.x2,s="#aaa",e.beginPath(),e.setStrokeStyle(s),e.setFillStyle(s),e.setLineWidth(1),e.fillRect(n,r,o-n,i-r),e.fillText(Math.round(t.x2-t.x1),a+t.x1,i+12)})),e.fillText(Math.round(o.total)+"px",a-20,i+12),e.setFillStyle("red"),e.fillText("Loss: "+t.lossHistory.map((function(e){return Math.round(e)})),a-20,i+22),e.restore()}},{key:"FormatAndDraw",value:function(t,n,r,i){var a={auto_beam:!1,align_rests:!1};"object"===_typeof2(i)?Vex.Merge(a,i):"boolean"==typeof i&&(a.auto_beam=i);var o=new Voice$1(Flow.TIME4_4).setMode(Voice$1.Mode.SOFT).addTickables(r),s=a.auto_beam?Beam$1.applyAndGetBeams(o):[];return(new e).joinVoices([o],{align_rests:a.align_rests}).formatToStave([o],n,{align_rests:a.align_rests,stave:n}),o.setStave(n).draw(t,n),s.forEach((function(e){return e.setContext(t).draw()})),o.getBoundingBox()}},{key:"FormatAndDrawTab",value:function(t,n,r,i,a,o,s){var l={auto_beam:o,align_rests:!1};"object"===_typeof2(s)?Vex.Merge(l,s):"boolean"==typeof s&&(l.auto_beam=s);var u=new Voice$1(Flow.TIME4_4).setMode(Voice$1.Mode.SOFT).addTickables(a),c=new Voice$1(Flow.TIME4_4).setMode(Voice$1.Mode.SOFT).addTickables(i),h=l.auto_beam?Beam$1.applyAndGetBeams(u):[];(new e).joinVoices([u],{align_rests:l.align_rests}).joinVoices([c]).formatToStave([u,c],r,{align_rests:l.align_rests}),u.draw(t,r),c.draw(t,n),h.forEach((function(e){return e.setContext(t).draw()})),new _StaveConnector(r,n).setContext(t).draw()}},{key:"AlignRestsToNotes",value:function(e,t,n){return e.forEach((function(t,r){if(t instanceof _StaveNote3&&t.isRest()){if(t.tuplet&&!n)return;if(["va5","v3c"].includes(t.glyph.code_head)){var i="va5"===t.glyph.code_head?10:14,a=e[r-1],o=getNext(e,r),s=!1;if(a&&o&&a.beam&&o.beam&&(s=a.beam.notes.includes(o)),s){t.setKeyLine(0,3);var l,u=[].concat(_toConsumableArray2(a.beam.notes),_toConsumableArray2(o.beam.notes));if(t.beam&&t.beam.notes)(l=u).push.apply(l,_toConsumableArray2(t.beam.notes));u=Array.from(new Set(u));for(var c=0;c<u.length;c+=1){var h=u[c].getKeyProps()[0].line,d=u[c].stem;if(d)if(d.stem_direction>0){var f=h<1.5?Math.abs(h-1.5)*i:0;d.setResetHeight(f)}else{var p=h>4.5?Math.abs(h-4.5)*i:0;d.setResetHeight(p)}}}}}})),this}}]),e}(),StaveModifier=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e;return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","StaveModifier"),e.padding=10,e.position=n.Position.ABOVE,e.layoutMetrics=null,e}return _createClass2(n,[{key:"getPosition",value:function(){return this.position}},{key:"setPosition",value:function(e){return this.position=e,this}},{key:"getStave",value:function(){return this.stave}},{key:"setStave",value:function(e){return this.stave=e,this}},{key:"getWidth",value:function(){return this.width}},{key:"setWidth",value:function(e){return this.width=e,this}},{key:"getX",value:function(){return this.x}},{key:"setX",value:function(e){return this.x=e,this}},{key:"getCategory",value:function(){return""}},{key:"makeSpacer",value:function(e){return{getContext:function(){return!0},setStave:function(){},renderToStave:function(){},getMetrics:function(){return{width:e}}}}},{key:"placeGlyphOnLine",value:function(e,t,n){e.setYShift(t.getYForLine(n)-t.getYForGlyphs())}},{key:"getPadding",value:function(e){return void 0!==e&&e<2?0:this.padding}},{key:"setPadding",value:function(e){return this.padding=e,this}},{key:"setLayoutMetrics",value:function(e){return this.layoutMetrics=e,this}},{key:"getLayoutMetrics",value:function(){return this.layoutMetrics}}],[{key:"Position",get:function(){return{LEFT:1,RIGHT:2,ABOVE:3,BELOW:4,BEGIN:5,END:6}}}]),n}(Element$1),Barline=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;_classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","Barline"),r.thickness=Flow.STAVE_LINE_THICKNESS;var i=n.type;return r.widths={},r.widths[i.SINGLE]=5,r.widths[i.DOUBLE]=5,r.widths[i.END]=5,r.widths[i.REPEAT_BEGIN]=5,r.widths[i.REPEAT_END]=5,r.widths[i.REPEAT_BOTH]=5,r.widths[i.NONE]=5,r.paddings={},r.paddings[i.SINGLE]=0,r.paddings[i.DOUBLE]=0,r.paddings[i.END]=0,r.paddings[i.REPEAT_BEGIN]=15,r.paddings[i.REPEAT_END]=15,r.paddings[i.REPEAT_BOTH]=15,r.paddings[i.NONE]=0,r.layoutMetricsMap={},r.layoutMetricsMap[i.SINGLE]={xMin:0,xMax:1,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.DOUBLE]={xMin:-3,xMax:1,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.END]={xMin:-5,xMax:1,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.REPEAT_END]={xMin:-10,xMax:1,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.REPEAT_BEGIN]={xMin:-2,xMax:10,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.REPEAT_BOTH]={xMin:-10,xMax:10,paddingLeft:5,paddingRight:5},r.layoutMetricsMap[i.NONE]={xMin:0,xMax:0,paddingLeft:5,paddingRight:5},r.setPosition(StaveModifier.Position.BEGIN),r.setType(e),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){return this.type="string"==typeof e?n.typeString[e]:e,this.setWidth(this.widths[this.type]),this.setPadding(this.paddings[this.type]),this.setLayoutMetrics(this.layoutMetricsMap[this.type]),this}},{key:"draw",value:function(e){switch(e.checkContext(),this.setRendered(),this.type){case n.type.SINGLE:this.drawVerticalBar(e,this.x,!1);break;case n.type.DOUBLE:this.drawVerticalBar(e,this.x,!0);break;case n.type.END:this.drawVerticalEndBar(e,this.x);break;case n.type.REPEAT_BEGIN:this.drawRepeatBar(e,this.x,!0),e.getX()!==this.x&&this.drawVerticalBar(e,e.getX());break;case n.type.REPEAT_END:this.drawRepeatBar(e,this.x,!1);break;case n.type.REPEAT_BOTH:this.drawRepeatBar(e,this.x,!1),this.drawRepeatBar(e,this.x,!0)}}},{key:"drawVerticalBar",value:function(e,t,n){e.checkContext();var r=e.getTopLineTopY(),i=e.getBottomLineBottomY();n&&e.context.fillRect(t-3,r,1,i-r),e.context.fillRect(t,r,1,i-r)}},{key:"drawVerticalEndBar",value:function(e,t){e.checkContext();var n=e.getTopLineTopY(),r=e.getBottomLineBottomY();e.context.fillRect(t-5,n,1,r-n),e.context.fillRect(t-2,n,3,r-n)}},{key:"drawRepeatBar",value:function(e,t,n){e.checkContext();var r=e.getTopLineTopY(),i=e.getBottomLineBottomY(),a=3;n||(a=-5),e.context.fillRect(t+a,r,1,i-r),e.context.fillRect(t-2,r,3,i-r);n?a+=4:a-=4;var o=t+a+1,s=(e.getNumLines()-1)*e.getSpacingBetweenLines(),l=r+(s=s/2-e.getSpacingBetweenLines()/2)+1;e.context.beginPath(),e.context.arc(o,l,2,0,2*Math.PI,!1),e.context.fill(),l+=e.getSpacingBetweenLines(),e.context.beginPath(),e.context.arc(o,l,2,0,2*Math.PI,!1),e.context.fill()}}],[{key:"CATEGORY",get:function(){return"barlines"}},{key:"type",get:function(){return{SINGLE:1,DOUBLE:2,END:3,REPEAT_BEGIN:4,REPEAT_END:5,REPEAT_BOTH:6,NONE:7}}},{key:"typeString",get:function(){return{single:n.type.SINGLE,double:n.type.DOUBLE,end:n.type.END,repeatBegin:n.type.REPEAT_BEGIN,repeatEnd:n.type.REPEAT_END,repeatBoth:n.type.REPEAT_BOTH,none:n.type.NONE}}}]),n}(StaveModifier),Repetition$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","Repetition"),a.symbol_type=e,a.x=r,a.x_shift=0,a.y_shift=i,a.font={family:"times",size:12,weight:"bold italic"},a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setShiftX",value:function(e){return this.x_shift=e,this}},{key:"setShiftY",value:function(e){return this.y_shift=e,this}},{key:"setX",value:function(e){return this.x=e,this}},{key:"draw",value:function(e,t){switch(this.setRendered(),this.symbol_type){case n.type.CODA_RIGHT:this.drawCodaFixed(e,t+e.width);break;case n.type.CODA_LEFT:this.drawSymbolText(e,t,"Coda",!1);break;case n.type.SEGNO_LEFT:this.drawSignoFixed(e,t);break;case n.type.SEGNO_RIGHT:this.drawSignoFixed(e,t+e.width);break;case n.type.DC:this.drawSymbolText(e,t,"D.C.",!1);break;case n.type.DC_AL_CODA:this.drawSymbolText(e,t,"D.C. al Coda",!0);break;case n.type.DC_AL_FINE:this.drawSymbolText(e,t,"D.C. al Fine",!1);break;case n.type.DS:this.drawSymbolText(e,t,"D.S.",!1);break;case n.type.DS_AL_CODA:this.drawSymbolText(e,t,"D.S. al Coda",!0);break;case n.type.DS_AL_FINE:this.drawSymbolText(e,t,"D.S. al Fine",!1);break;case n.type.FINE:this.drawSymbolText(e,t,"Fine",!1);break;case n.type.TO_CODA:this.drawSymbolText(e,t,"To Coda",!0)}return this}},{key:"drawCodaFixed",value:function(e,t){var n=e.getYForTopText(e.options.num_lines)+this.y_shift;return Glyph.renderGlyph(e.context,this.x+t+this.x_shift,n+25,40,"v4d",!0),this}},{key:"drawSignoFixed",value:function(e,t){var n=e.getYForTopText(e.options.num_lines)+this.y_shift;return Glyph.renderGlyph(e.context,this.x+t+this.x_shift,n+25,30,"v8c",!0),this}},{key:"drawSymbolText",value:function(e,t,r,i){var a=e.checkContext();a.save(),a.setFont(this.font.family,this.font.size,this.font.weight);var o=0+this.x_shift,s=t+this.x_shift;this.symbol_type===n.type.CODA_LEFT?s=(o=this.x+e.options.vertical_bar_width)+a.measureText(r).width+12:(this.x_shift=-(o+a.measureText(r).width+12+e.options.vertical_bar_width+12),s=(o=this.x+this.x_shift+e.options.vertical_bar_width)+a.measureText(r).width+12);var l=e.getYForTopText(e.options.num_lines)+this.y_shift+25;return i&&Glyph.renderGlyph(a,s,l,40,"v4d",!0),a.fillText(r,o,l+5),a.restore(),this}}],[{key:"CATEGORY",get:function(){return"repetitions"}},{key:"type",get:function(){return{NONE:1,CODA_LEFT:2,CODA_RIGHT:3,SEGNO_LEFT:4,SEGNO_RIGHT:5,DC:6,DC_AL_CODA:7,DC_AL_FINE:8,DS:9,DS_AL_CODA:10,DS_AL_FINE:11,FINE:12,TO_CODA:13}}}]),n}(StaveModifier),StaveSection=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","StaveSection"),a.setWidth(16),a.section=e,a.x=r,a.shift_x=0,a.shift_y=i,a.font={family:"sans-serif",size:12,weight:"bold"},a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setStaveSection",value:function(e){return this.section=e,this}},{key:"setShiftX",value:function(e){return this.shift_x=e,this}},{key:"setShiftY",value:function(e){return this.shift_y=e,this}},{key:"draw",value:function(e,t){var n=e.checkContext();this.setRendered(),n.save(),n.lineWidth=2,n.setFont(this.font.family,this.font.size,this.font.weight);var r=n.measureText(""+this.section),i=r.width,a=r.height,o=i+6;o<18&&(o=18);var s=a,l=e.getYForTopText(3)+this.shift_y,u=this.x+t;return n.beginPath(),n.lineWidth=2,n.rect(u,l+a/4,o,s),n.stroke(),u+=(o-i)/2,n.fillText(""+this.section,u,l+16),n.restore(),this}}],[{key:"CATEGORY",get:function(){return"stavesection"}}]),n}(StaveModifier),StaveTempo=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","StaveTempo"),a.tempo=e,a.position=Modifier.Position.ABOVE,a.x=r,a.shift_x=10,a.shift_y=i,a.font={family:"times",size:14,weight:"bold"},a.render_options={glyph_font_scale:30},a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setTempo",value:function(e){return this.tempo=e,this}},{key:"setShiftX",value:function(e){return this.shift_x=e,this}},{key:"setShiftY",value:function(e){return this.shift_y=e,this}},{key:"draw",value:function(e,t){var n=e.checkContext();this.setRendered();var r=this.render_options,i=r.glyph_font_scale/38,a=this.tempo.name,o=this.tempo.duration,s=this.tempo.dots,l=this.tempo.bpm,u=this.font,c=this.x+this.shift_x+t,h=e.getYForTopText(1)+this.shift_y;if(n.save(),n.openGroup("stavetempo",null,{}),a&&(n.setFont(u.family,u.size,u.weight),n.fillText(a,c,h),c+=n.measureText(a).width),o&&l){n.setFont(u.family,u.size,"normal"),a&&(c+=n.measureText(" ").width,n.fillText("(",c,h),c+=n.measureText("(").width);var d=Flow.getGlyphProps(o);if(c+=3*i,Glyph.renderGlyph(n,c,h,r.glyph_font_scale,d.code_head),c+=d.getWidth()*i,d.stem){var f=30;d.beam_count&&(f+=3*(d.beam_count-1));var p=h-(f*=i);n.fillRect(c-i,p,i,f),d.flag&&(Glyph.renderGlyph(n,c,p,r.glyph_font_scale,d.code_flag_upstem),s||(c+=6*i))}for(var v=0;v<s;v++)c+=6*i,n.beginPath(),n.arc(c,h+2*i,2*i,0,2*Math.PI,!1),n.fill();n.fillText(" = "+l+(a?")":""),c+3*i,h)}return n.closeGroup(),n.restore(),this}}],[{key:"CATEGORY",get:function(){return"stavetempo"}}]),n}(StaveModifier),_TextNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;if(_classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","TextNote"),r.text=e.text,r.superscript=e.superscript,r.subscript=e.subscript,r.glyph_type=e.glyph,r.glyph=null,r.font={family:"Arial",size:12,weight:""},e.font&&(r.font=e.font),r.glyph_type){var i=n.GLYPHS[r.glyph_type];if(!i)throw new Vex.RERR("Invalid glyph type: "+r.glyph_type);r.glyph=new Glyph(i.code,i.point,{cache:!1}),i.width?r.setWidth(i.width):r.setWidth(r.glyph.getMetrics().width),r.glyph_struct=i}else r.setWidth(Flow.textWidth(r.text));return r.line=e.line||0,r.smooth=e.smooth||!1,r.ignore_ticks=e.ignore_ticks||!1,r.justification=n.Justification.LEFT,r}return _createClass2(n,[{key:"setJustification",value:function(e){return this.justification=e,this}},{key:"setLine",value:function(e){return this.line=e,this}},{key:"preFormat",value:function(){this.checkContext(),this.preFormatted||(this.smooth?this.setWidth(0):this.glyph||this.setWidth(this.context.measureText(this.text).width),this.justification===n.Justification.CENTER?this.extraLeftPx=this.width/2:this.justification===n.Justification.RIGHT&&(this.extraLeftPx=this.width),this.setPreFormatted(!0))}},{key:"draw",value:function(){if(this.checkContext(),!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");this.setRendered();var e,t=this.context,r=this.getAbsoluteX();if(this.justification===n.Justification.CENTER?r-=this.getWidth()/2:this.justification===n.Justification.RIGHT&&(r-=this.getWidth()),this.glyph)e=this.stave.getYForLine(this.line+-3),this.glyph.render(this.context,r+this.glyph_struct.x_shift,e+this.glyph_struct.y_shift);else{e=this.stave.getYForLine(this.line+-3),this.applyStyle(t),t.setFont(this.font.family,this.font.size,this.font.weight),t.fillText(this.text,r,e);var i=t.measureText("M").width,a=t.measureText(this.text).width;this.superscript&&(t.setFont(this.font.family,this.font.size/1.3,this.font.weight),t.fillText(this.superscript,r+a+2,e-i/2.2)),this.subscript&&(t.setFont(this.font.family,this.font.size/1.3,this.font.weight),t.fillText(this.subscript,r+a+2,e+i/2.2-1)),this.restoreStyle(t)}}}],[{key:"Justification",get:function(){return{LEFT:1,CENTER:2,RIGHT:3}}},{key:"GLYPHS",get:function(){return{segno:{code:"v8c",point:40,x_shift:0,y_shift:-10},tr:{code:"v1f",point:40,x_shift:0,y_shift:0},mordent_upper:{code:"v1e",point:40,x_shift:0,y_shift:0},mordent_lower:{code:"v45",point:40,x_shift:0,y_shift:0},f:{code:"vba",point:40,x_shift:0,y_shift:0},p:{code:"vbf",point:40,x_shift:0,y_shift:0},m:{code:"v62",point:40,x_shift:0,y_shift:0},s:{code:"v4a",point:40,x_shift:0,y_shift:0},z:{code:"v80",point:40,x_shift:0,y_shift:0},coda:{code:"v4d",point:40,x_shift:0,y_shift:-8},pedal_open:{code:"v36",point:40,x_shift:0,y_shift:0},pedal_close:{code:"v5d",point:40,x_shift:0,y_shift:3},caesura_straight:{code:"v34",point:40,x_shift:0,y_shift:2},caesura_curved:{code:"v4b",point:40,x_shift:0,y_shift:2},breath:{code:"v6c",point:40,x_shift:0,y_shift:0},tick:{code:"v6f",point:50,x_shift:0,y_shift:0},turn:{code:"v72",point:40,x_shift:0,y_shift:0},turn_inverted:{code:"v33",point:40,x_shift:0,y_shift:0},mordent:{code:"v1e",point:40,x_shift:0,y_shift:0}}}}]),n}(Note),StaveText=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","StaveText"),a.setWidth(16),a.text=e,a.position=r,a.options={shift_x:0,shift_y:0,justification:_TextNote.Justification.CENTER},Vex.Merge(a.options,i),a.font={family:"times",size:16,weight:"normal"},a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setStaveText",value:function(e){return this.text=e,this}},{key:"setShiftX",value:function(e){return this.shift_x=e,this}},{key:"setShiftY",value:function(e){return this.shift_y=e,this}},{key:"setFont",value:function(e){Vex.Merge(this.font,e)}},{key:"setText",value:function(e){this.text=e}},{key:"draw",value:function(e){var t=e.checkContext();this.setRendered(),t.save(),t.lineWidth=2,t.setFont(this.font.family,this.font.size,this.font.weight);var n,r,i=t.measureText(""+this.text).width,a=StaveModifier.Position,o=_TextNote.Justification;switch(this.position){case a.LEFT:case a.RIGHT:r=(e.getYForLine(0)+e.getBottomLineY())/2+this.options.shift_y,n=this.position===a.LEFT?e.getX()-i-24+this.options.shift_x:e.getX()+e.getWidth()+24+this.options.shift_x;break;case a.ABOVE:case a.BELOW:n=e.getX()+this.options.shift_x,this.options.justification===o.CENTER?n+=e.getWidth()/2-i/2:this.options.justification===o.RIGHT&&(n+=e.getWidth()-i),r=this.position===a.ABOVE?e.getYForTopText(2)+this.options.shift_y:e.getYForBottomText(2)+this.options.shift_y;break;default:throw new Vex.RERR("InvalidPosition","Value Must be in Modifier.Position.")}return t.fillText(""+this.text,n,r+4),t.restore(),this}}],[{key:"CATEGORY",get:function(){return"stavetext"}}]),n}(StaveModifier);function L$9(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Clef.DEBUG&&Vex.L("Vex.Flow.Clef",t)}var Clef=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","Clef"),a.setPosition(StaveModifier.Position.BEGIN),a.setType(e,r,i),a.setWidth(n.sizes[a.size].width),L$9("Creating clef:",e),a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setType",value:function(e,t,r){if(this.type=e,this.clef=n.types[e],this.size=void 0===t?"default":t,this.clef.point=n.sizes[this.size].point,this.glyph=new Glyph(this.clef.code,this.clef.point),void 0!==r){var i=n.annotations[r];this.annotation={code:i.code,point:i.sizes[this.size].point,line:i.sizes[this.size].attachments[this.type].line,x_shift:i.sizes[this.size].attachments[this.type].x_shift},this.attachment=new Glyph(this.annotation.code,this.annotation.point),this.attachment.metrics.x_max=0,this.attachment.setXShift(this.annotation.x_shift)}else this.annotation=void 0;return this}},{key:"getWidth",value:function(){if("tab"===this.type&&!this.stave)throw new Vex.RERR("ClefError","Can't get width without stave.");return this.width}},{key:"setStave",value:function(e){if(this.stave=e,"tab"!==this.type)return this;var t,n,r=this.stave.getOptions().num_lines;switch(r){case 8:t=55,n=14;break;case 7:t=47,n=8;break;case 6:t=40,n=1;break;case 5:t=30,n=-6;break;case 4:t=23,n=-12;break;default:throw new Vex.RERR("ClefError","Invalid number of lines: ".concat(r))}return this.glyph.setPoint(t),this.glyph.setYShift(n),this}},{key:"draw",value:function(){if(!this.x)throw new Vex.RERR("ClefError","Can't draw clef without x.");if(!this.stave)throw new Vex.RERR("ClefError","Can't draw clef without stave.");this.setRendered(),this.glyph.setStave(this.stave),this.glyph.setContext(this.stave.context),void 0!==this.clef.line&&this.placeGlyphOnLine(this.glyph,this.stave,this.clef.line),this.stave.context.openGroup("clef"),this.glyph.renderToStave(this.x),void 0!==this.annotation&&(this.placeGlyphOnLine(this.attachment,this.stave,this.annotation.line),this.attachment.setStave(this.stave),this.attachment.setContext(this.stave.context),this.attachment.renderToStave(this.x)),this.stave.context.closeGroup()}}],[{key:"CATEGORY",get:function(){return"clefs"}},{key:"types",get:function(){return{treble:{code:"v83",line:3},bass:{code:"v79",line:1},alto:{code:"vad",line:2},tenor:{code:"vad",line:1},percussion:{code:"v59",line:2},soprano:{code:"vad",line:4},"mezzo-soprano":{code:"vad",line:3},"baritone-c":{code:"vad",line:0},"baritone-f":{code:"v79",line:2},subbass:{code:"v79",line:0},french:{code:"v83",line:4},tab:{code:"v2f"}}}},{key:"sizes",get:function(){return{default:{point:40,width:26},small:{point:32,width:20}}}},{key:"annotations",get:function(){return{"8va":{code:"v8",sizes:{default:{point:20,attachments:{treble:{line:-1.2,x_shift:11}}},small:{point:18,attachments:{treble:{line:-.4,x_shift:8}}}}},"8vb":{code:"v8",sizes:{default:{point:20,attachments:{treble:{line:6.3,x_shift:10},bass:{line:4,x_shift:1}}},small:{point:18,attachments:{treble:{line:5.8,x_shift:6},bass:{line:3.5,x_shift:.5}}}}}}}}]),n}(StaveModifier),KeySignature=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","KeySignature"),a.setKeySig(e,r,i),a.setPosition(StaveModifier.Position.BEGIN),a.glyphFontScale=38,a.glyphs=[],a.xPositions=[],a.paddingForced=!1,a.isDraw=!0,a}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setDrawState",value:function(e){this.isDraw=e}},{key:"convertToGlyph",value:function(e,t){var r=Flow.accidentalCodes(e.type),i=new Glyph(r.code,this.glyphFontScale),a=1;if("n"===e.type&&t){var o=n.accidentalSpacing[t.type];if(o)a=t.line>=e.line?o.above:o.below}this.placeGlyphOnLine(i,this.stave,e.line),this.glyphs.push(i);var s=this.xPositions[this.xPositions.length-1],l=i.getMetrics().width+a;this.xPositions.push(s+l),this.width+=l}},{key:"cancelKey",value:function(e){return this.formatted=!1,this.cancelKeySpec=e,this}},{key:"convertToCancelAccList",value:function(e){var t=Flow.keySignature(e),n=this.accList.length>0&&t.length>0&&t[0].type!==this.accList[0].type,r=n?t.length:t.length-this.accList.length;if(!(r<1)){for(var i=[],a=0;a<r;a++){var o=a;n||(o=t.length-r+a);var s=t[o];i.push({type:"n",line:s.line})}return this.accList=i.concat(this.accList),{accList:i,type:t[0].type}}}},{key:"addToStave",value:function(e){return this.paddingForced=!0,e.addModifier(this),this}},{key:"convertAccLines",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.accList,a=0;switch(e){case"soprano":"#"===t?n=[2.5,.5,2,0,1.5,-.5,1]:a=-1;break;case"mezzo-soprano":"b"===t?n=[0,2,.5,2.5,1,3,1.5]:a=1.5;break;case"alto":a=.5;break;case"tenor":"#"===t?n=[3,1,2.5,.5,2,0,1.5]:a=-.5;break;case"baritone-f":case"baritone-c":"b"===t?n=[.5,2.5,1,3,1.5,3.5,2]:a=2;break;case"bass":case"french":a=1}if(void 0!==n)for(r=0;r<i.length;++r)i[r].line=n[r];else if(0!==a)for(r=0;r<i.length;++r)i[r].line+=a}},{key:"getPadding",value:function(e){return this.formatted||this.format(),0===this.glyphs.length||!this.paddingForced&&e<2?0:this.padding}},{key:"getWidth",value:function(){return this.formatted||this.format(),this.width}},{key:"setKeySig",value:function(e,t,n){return this.formatted=!1,this.keySpec=e,this.cancelKeySpec=t,this.alterKeySpec=n,this}},{key:"alterKey",value:function(e){return this.formatted=!1,this.alterKeySpec=e,this}},{key:"convertToAlterAccList",value:function(e){for(var t=Math.min(e.length,this.accList.length),n=0;n<t;++n)e[n]&&(this.accList[n].type=e[n])}},{key:"format",value:function(){if(!this.stave)throw new Vex.RERR("KeySignatureError","Can't draw key signature without stave.");this.width=0,this.glyphs=[],this.xPositions=[0],this.accList=Flow.keySignature(this.keySpec);var e,t=this.accList,n=t.length>0?t[0].type:null;if(this.cancelKeySpec&&(e=this.convertToCancelAccList(this.cancelKeySpec)),this.alterKeySpec&&this.convertToAlterAccList(this.alterKeySpec),this.accList.length>0){var r=(this.position===StaveModifier.Position.END?this.stave.endClef:this.stave.clef)||this.stave.clef;e&&this.convertAccLines(r,e.type,e.accList),this.convertAccLines(r,n,t);for(var i=0;i<this.accList.length;++i)this.convertToGlyph(this.accList[i],this.accList[i+1])}this.formatted=!0}},{key:"draw",value:function(){if(!this.x)throw new Vex.RERR("KeySignatureError","Can't draw key signature without x.");if(!this.stave)throw new Vex.RERR("KeySignatureError","Can't draw key signature without stave.");if(this.formatted||this.format(),this.setRendered(),this.isDraw&&this.glyphs.length>0){this.stave.context.openGroup("keysignature");for(var e=0;e<this.glyphs.length;e++){var t=this.glyphs[e],n=this.x+this.xPositions[e];t.setStave(this.stave),t.setContext(this.stave.context),t.renderToStave(n)}this.stave.context.closeGroup()}}}],[{key:"CATEGORY",get:function(){return"keysignatures"}},{key:"accidentalSpacing",get:function(){return{"#":{above:6,below:4},b:{above:4,below:7},n:{above:4,below:1},"##":{above:6,below:4},bb:{above:4,below:7},db:{above:4,below:7},d:{above:4,below:7},bbs:{above:4,below:7},"++":{above:6,below:4},"+":{above:6,below:4},"+-":{above:6,below:4},"++-":{above:6,below:4},bs:{above:4,below:10},bss:{above:4,below:10}}}}]),n}(StaveModifier),assertIsValidFraction=function(e){var t=e.split("/").filter((function(e){return""!==e}));if(2!==t.length)throw new Vex.RERR("BadTimeSignature","Invalid time spec: ".concat(e,'. Must be in the form "<numerator>/<denominator>"'));t.forEach((function(t){if(isNaN(Number(t)))throw new Vex.RERR("BadTimeSignature","Invalid time spec: ".concat(e,". Must contain two valid numbers."))}))},TimeSignature=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(_classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","TimeSignature"),e.validate_args=a,null===r)return _possibleConstructorReturn2(e);var o=i;return e.point=40,e.topLine=2,e.bottomLine=4,e.setPosition(StaveModifier.Position.BEGIN),e.setTimeSig(r),e.setWidth(e.timeSig.glyph.getMetrics().width),e.setPadding(o),e}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"parseTimeSpec",value:function(e){if("C"===e||"C|"===e){var t=n.glyphs[e],r=t.line,i=t.code,a=t.point;return{line:r,num:!1,glyph:new Glyph(i,a)}}this.validate_args&&assertIsValidFraction(e);var o=_slicedToArray(e.split("/").map((function(e){return e.split("")})),2),s=o[0],l=o[1];return{num:!0,glyph:this.makeTimeSignatureGlyph(s,l)}}},{key:"makeTimeSignatureGlyph",value:function(e,t){var n=new Glyph("v0",this.point);n.topGlyphs=[],n.botGlyphs=[];for(var r=0,i=0;i<e.length;++i){var a=e[i],o=new Glyph("v"+a,this.point);n.topGlyphs.push(o),r+=o.getMetrics().width}for(var s=0,l=0;l<t.length;++l){var u=t[l],c=new Glyph("v"+u,this.point);n.botGlyphs.push(c),s+=c.getMetrics().width}var h=r>s?r:s,d=n.getMetrics().x_min;n.getMetrics=function(){return{x_min:d,x_max:d+h,width:h}};var f=(h-r)/2,p=(h-s)/2,v=this;return n.renderToStave=function(e){for(var t=e+f,n=0;n<this.topGlyphs.length;++n){var r=this.topGlyphs[n];Glyph.renderOutline(this.context,r.metrics.outline,r.scale,t+r.x_shift,this.stave.getYForLine(v.topLine)),t+=r.getMetrics().width}t=e+p;for(var i=0;i<this.botGlyphs.length;++i){var a=this.botGlyphs[i];v.placeGlyphOnLine(a,this.stave,a.line),Glyph.renderOutline(this.context,a.metrics.outline,a.scale,t+a.x_shift,this.stave.getYForLine(v.bottomLine)),t+=a.getMetrics().width}},n}},{key:"getTimeSig",value:function(){return this.timeSig}},{key:"setTimeSig",value:function(e){return this.timeSig=this.parseTimeSpec(e),this}},{key:"draw",value:function(){if(!this.x)throw new Vex.RERR("TimeSignatureError","Can't draw time signature without x.");if(!this.stave)throw new Vex.RERR("TimeSignatureError","Can't draw time signature without stave.");this.setRendered(),this.timeSig.glyph.setStave(this.stave),this.timeSig.glyph.setContext(this.stave.context),this.placeGlyphOnLine(this.timeSig.glyph,this.stave,this.timeSig.line),this.timeSig.glyph.renderToStave(this.x)}}],[{key:"CATEGORY",get:function(){return"timesignatures"}},{key:"glyphs",get:function(){return{C:{code:"v41",point:40,line:2},"C|":{code:"vb6",point:40,line:2}}}}]),n}(StaveModifier),Volta=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;return _classCallCheck2(this,n),(o=t.call(this)).setAttribute("type","Volta"),o.volta=e,o.x=i,o.y_shift=a,o.number=r,o.font={family:"sans-serif",size:9,weight:"bold"},o}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setShiftY",value:function(e){return this.y_shift=e,this}},{key:"draw",value:function(e,t){var r=e.checkContext();this.setRendered();var i=e.width-t,a=e.getYForTopText(e.options.num_lines)+this.y_shift,o=1.5*e.options.spacing_between_lines_px;switch(this.volta){case n.type.BEGIN:r.fillRect(this.x+t,a,1,o);break;case n.type.END:i-=5,r.fillRect(this.x+t+i,a,1,o);break;case n.type.BEGIN_END:i-=3,r.fillRect(this.x+t,a,1,o),r.fillRect(this.x+t+i,a,1,o)}return this.volta!==n.type.BEGIN&&this.volta!==n.type.BEGIN_END||(r.save(),r.setFont(this.font.family,this.font.size,this.font.weight),r.fillText(this.number,this.x+t+5,a+15),r.restore()),r.fillRect(this.x+t,a,i,1),this}}],[{key:"CATEGORY",get:function(){return"voltas"}},{key:"type",get:function(){return{NONE:1,BEGIN:2,MID:3,END:4,BEGIN_END:5}}}]),n}(StaveModifier),_keySignature="",volta={},voltaMeasureNumber={},_Stave2=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;_classCallCheck2(this,n),(o=t.call(this)).setAttribute("type","Stave"),o.x=e,o.y=r,o.width=i,o.formatted=!1,o.setStartX(e+5),o.end_x=e+i,o.staveTempos=[],o.modifiers=[],o.measure=0,o.clef="treble",o.endClef=void 0,o.font={family:"sans-serif",size:8,weight:""},o.timeSignature={numerator:"",denominator:""},o.options={vertical_bar_width:10,glyph_spacing_px:10,num_lines:5,fill_style:"#999999",left_bar:!1,right_bar:!0,spacing_between_lines_px:10,space_above_staff_ln:4,space_below_staff_ln:4,top_text_position:1,DYMusicScoreType:"",keySignature:""},o.bounds={x:o.x,y:o.y,w:o.width,h:0},Vex.Merge(o.options,a),o.resetLines();var s=Barline.type;return o.addModifier(new Barline(o.options.left_bar?s.SINGLE:s.NONE)),o.addEndModifier(new Barline(o.options.right_bar?s.SINGLE:s.NONE)),o}return _createClass2(n,[{key:"space",value:function(e){return this.options.spacing_between_lines_px*e}},{key:"resetLines",value:function(){this.options.line_config=[];for(var e=0;e<this.options.num_lines;e++)"jianpu"===this.options.DYMusicScoreType?this.options.line_config.push({visible:!1}):this.options.line_config.push({visible:!0});this.height=(this.options.num_lines+this.options.space_above_staff_ln)*this.options.spacing_between_lines_px,this.options.bottom_text_position=this.options.num_lines}},{key:"getLines",value:function(){var e=this.options.line_config.map((function(e){return e.visible})).filter(Boolean);return e.length}},{key:"getOptions",value:function(){return this.options}},{key:"setNoteStartX",value:function(e){this.formatted||this.format(),this.setStartX(e);var t=this.modifiers[0];return t.setX(this.start_x-t.getWidth()),this}},{key:"setStartX",value:function(e){this.start_x=e}},{key:"getNoteStartX",value:function(){return this.formatted||this.format(),this.start_x}},{key:"getNoteEndX",value:function(){return this.formatted||this.format(),this.end_x}},{key:"getTieStartX",value:function(){return this.start_x}},{key:"getTieEndX",value:function(){return this.x+this.width}},{key:"getX",value:function(){return this.x}},{key:"getNumLines",value:function(){return this.options.num_lines}},{key:"setNumLines",value:function(e){return this.options.num_lines=parseInt(e,10),this.resetLines(),this}},{key:"setY",value:function(e){return this.y=e,this}},{key:"getTopLineTopY",value:function(){return this.getYForLine(0)-Flow.STAVE_LINE_THICKNESS/2}},{key:"getBottomLineBottomY",value:function(){return 2===this.getLines()?this.getYForLine(6)+Flow.STAVE_LINE_THICKNESS/2:this.getYForLine(this.getNumLines()-1)+Flow.STAVE_LINE_THICKNESS/2}},{key:"setX",value:function(e){var t=e-this.x;this.formatted=!1,this.x=e,this.start_x+=t,this.end_x+=t;for(var n=0;n<this.modifiers.length;n++){var r=this.modifiers[n];void 0!==r.x&&(r.x+=t)}return this}},{key:"setWidth",value:function(e){return this.formatted=!1,this.width=e,this.end_x=this.x+e,this}},{key:"getWidth",value:function(){return this.width}},{key:"getStyle",value:function(){return _objectSpread({fillStyle:this.options.fill_style,strokeStyle:this.options.fill_style,lineWidth:Flow.STAVE_LINE_THICKNESS},this.style||{})}},{key:"setMeasure",value:function(e){return this.measure=e,this}},{key:"getModifierXShift",value:function(){if("number"!=typeof(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0))throw new Vex.RERR("InvalidIndex","Must be of number type");if(this.formatted||this.format(),1===this.getModifiers(StaveModifier.Position.BEGIN).length)return 0;var e=this.start_x-this.x,t=this.modifiers[0];return t.getType()===Barline.type.REPEAT_BEGIN&&e>t.getWidth()&&(e-=t.getWidth()),e}},{key:"setRepetitionTypeLeft",value:function(e,t){return this.modifiers.push(new Repetition$1(e,this.x,t)),this}},{key:"setRepetitionTypeRight",value:function(e,t){return this.modifiers.push(new Repetition$1(e,this.x,t)),this}},{key:"setVoltaType",value:function(e,t,n){if(2===e)2===volta.type&&volta.stave.modifiers.push(new Volta(volta.type,volta.number_t,volta.x,volta.y)),volta={stave:this,type:e,number_t:t,MeasureNumber:this.MeasureNumber,y:n,x:this.x};else if(4===e){for(var r=this.MeasureNumber-volta.MeasureNumber,i=Math.max(volta.y,n),a=0;a<=r;a++)voltaMeasureNumber[volta.MeasureNumber+a]={type:0===a?2:a===r?4:0,number_t:t,y:i};volta={}}else this.modifiers.push(new Volta(e,t,this.x,n));return this}},{key:"drawVolta",value:function(){var e=voltaMeasureNumber[this.MeasureNumber];e&&(this.modifiers.push(new Volta(e.type,e.number_t,this.x,e.y)),delete voltaMeasureNumber[this.MeasureNumber]),volta.type&&volta.MeasureNumber==this.MeasureNumber&&(this.modifiers.push(new Volta(volta.type,volta.number_t,this.x,volta.y)),volta={})}},{key:"setSection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12,i=new StaveSection(e,this.x+n,t);return i.font.size=r,this.modifiers.push(i),this}},{key:"setTempo",value:function(e,t){return this.modifiers.push(new StaveTempo(e,this.x,t)),this}},{key:"setText",value:function(e,t,n){var r=new StaveText(e,t,n);return r.setFont({family:"Arial",size:14,weight:"normal"}),this.modifiers.push(r),this}},{key:"getHeight",value:function(){return this.height}},{key:"getSpacingBetweenLines",value:function(){return this.options.spacing_between_lines_px}},{key:"getBoundingBox",value:function(){return new BoundingBox(this.x,this.y,this.width,this.getBottomY()-this.y)}},{key:"getBottomY",value:function(){var e=this.options,t=e.spacing_between_lines_px;return this.getYForLine(e.num_lines)+e.space_below_staff_ln*t}},{key:"getBottomLineY",value:function(){return this.getYForLine(this.options.num_lines)}},{key:"getYForLine",value:function(e){var t=this.options,n=t.spacing_between_lines_px,r=t.space_above_staff_ln;return this.y+e*n+r*n}},{key:"getLineForY",value:function(e){var t=this.options,n=t.spacing_between_lines_px,r=t.space_above_staff_ln;return(e-this.y)/n-r}},{key:"getYForTopText",value:function(e){var t=e||0;return this.getYForLine(-t-this.options.top_text_position)}},{key:"getYForBottomText",value:function(e){var t=e||0;return this.getYForLine(this.options.bottom_text_position+t)}},{key:"getYForNote",value:function(e){var t=this.options,n=t.spacing_between_lines_px,r=t.space_above_staff_ln;return this.y+r*n+5*n-e*n}},{key:"getYForGlyphs",value:function(){return this.getYForLine(3)}},{key:"addModifier",value:function(e,t,n){return void 0!==t&&e.setPosition(t),n&&(this.timeSignature.numerator=n.numerator,this.timeSignature.denominator=n.denominator),e.setStave(this),this.formatted=!1,this.modifiers.push(e),this}},{key:"addEndModifier",value:function(e){return this.addModifier(e,StaveModifier.Position.END),this}},{key:"setBegBarType",value:function(e){var t=Barline.type,n=t.SINGLE,r=t.REPEAT_BEGIN,i=t.NONE;return e!==n&&e!==r&&e!==i||(this.modifiers[0].setType(e),this.formatted=!1),this}},{key:"setEndBarType",value:function(e){return e!==Barline.type.REPEAT_BEGIN&&(this.modifiers[1].setType(e),this.formatted=!1),this}},{key:"setClef",value:function(e,t,n,r){void 0===r&&(r=StaveModifier.Position.BEGIN),r===StaveModifier.Position.END?this.endClef=e:this.clef=e;var i=this.getModifiers(r,Clef.CATEGORY);return 0===i.length?this.addClef(e,t,n,r):i[0].setType(e,t,n),this}},{key:"setEndClef",value:function(e,t,n){return this.setClef(e,t,n,StaveModifier.Position.END),this}},{key:"setKeySignature",value:function(e,t,n){this.options.keySignature=e,void 0===n&&(n=StaveModifier.Position.BEGIN);var r=this.getModifiers(n,KeySignature.CATEGORY);return 0===r.length?"jianpu"!==this.options.DYMusicScoreType&&this.addKeySignature(e,t,n):r[0].setKeySig(e,t),this}},{key:"setEndKeySignature",value:function(e,t){return this.setKeySignature(e,t,StaveModifier.Position.END),this}},{key:"setTimeSignature",value:function(e,t,n){void 0===n&&(n=StaveModifier.Position.BEGIN);var r=this.getModifiers(n,TimeSignature.CATEGORY);return 0===r.length?this.addTimeSignature(e,t,n):r[0].setTimeSig(e),this}},{key:"setEndTimeSignature",value:function(e,t){return this.setTimeSignature(e,t,StaveModifier.Position.END),this}},{key:"addKeySignature",value:function(e,t,n){return void 0===n&&(n=StaveModifier.Position.BEGIN),this.addModifier(new KeySignature(e,t).setPosition(n),n),this}},{key:"addClef",value:function(e,t,n,r){return void 0===r||r===StaveModifier.Position.BEGIN?this.clef=e:r===StaveModifier.Position.END&&(this.endClef=e),this.addModifier(new Clef(e,t,n),r),this}},{key:"addEndClef",value:function(e,t,n){return this.addClef(e,t,n,StaveModifier.Position.END),this}},{key:"addTimeSignature",value:function(e,t,n){return this.addModifier(new TimeSignature(e,t),n),this}},{key:"addEndTimeSignature",value:function(e,t){return this.addTimeSignature(e,t,StaveModifier.Position.END),this}},{key:"addTrebleGlyph",value:function(){return this.addClef("treble"),this}},{key:"getModifiers",value:function(e,t){return void 0===e&&void 0===t?this.modifiers:this.modifiers.filter((function(n){return!(void 0!==e&&e!==n.getPosition()||void 0!==t&&t!==n.getCategory())}))}},{key:"sortByCategory",value:function(e,t){for(var n=e.length-1;n>=0;n--)for(var r=0;r<n;r++)if(t[e[r].getCategory()]>t[e[r+1].getCategory()]){var i=e[r];e[r]=e[r+1],e[r+1]=i}}},{key:"format",value:function(){var e,t,n,r=this.modifiers[0],i=this.modifiers[1],a=this.getModifiers(StaveModifier.Position.BEGIN),o=this.getModifiers(StaveModifier.Position.END);this.sortByCategory(a,{barlines:0,clefs:1,keysignatures:2,timesignatures:3}),this.sortByCategory(o,{timesignatures:0,keysignatures:1,barlines:2,clefs:3}),a.length>1&&r.getType()===Barline.type.REPEAT_BEGIN&&(a.push(a.splice(0,1)[0]),a.splice(0,0,new Barline(Barline.type.SINGLE))),o.indexOf(i)>0&&o.splice(0,0,new Barline(Barline.type.NONE));for(var s=0,l=this.x,u=0;u<a.length;u++)t=(n=a[u]).getPadding(u+s),e=n.getWidth(),isNaN(e)&&(n.setWidth(10),e=10),l+=t,n.setX(l),l+=e,t+e===0&&s--;this.setStartX(l),l=this.x+this.width;for(var c={left:0,right:0,paddingRight:0,paddingLeft:0},h=0,d=0;d<o.length;d++){h="barlines"===(n=o[d]).getCategory()?d:h,c.right=0,c.left=0,c.paddingRight=0,c.paddingLeft=0;var f=n.getLayoutMetrics();f?(0!==d&&(c.right=f.xMax||0,c.paddingRight=f.paddingRight||0),c.left=-f.xMin||0,c.paddingLeft=f.paddingLeft||0,d===o.length-1&&(c.paddingLeft=0)):(c.paddingRight=n.getPadding(d-h)||0,0!==d&&(c.right=n.getWidth()||0),0===d&&(c.left=n.getWidth()||0)),l-=c.paddingRight,l-=c.right,n.setX(l),l-=c.left,l-=c.paddingLeft}this.end_x=1===o.length?this.x+this.width:l,this.formatted=!0}},{key:"draw",value:function(){var e=this;this.checkContext(),this.setRendered(),this.formatted||this.format();var t,n=this.options.num_lines,r=this.width,i=this.x,a=this.getLines();if(2===a||3===a){var o=2===a?[2,4]:[0,2,4];this.options.line_config.forEach((function(e,t){o.includes(t)?e.visible=!0:e.visible=!1}))}for(var s=0;s<n;s++)t=this.getYForLine(s),this.applyStyle(),this.options.line_config[s].visible&&(this.context.beginPath(),this.context.moveTo(i,t),this.context.lineTo(i+r,t),this.context.stroke()),this.restoreStyle();this.drawVolta(),"jianpu"===this.options.DYMusicScoreType&&this.drawJianpuKey();for(var l=0;l<this.modifiers.length;l++){if("jianpu"===this.options.DYMusicScoreType){var u=this.modifiers[l].attrs.type;if(["StaveTempo","TimeSignature"].includes(u))continue}if("StaveTempo"!==this.modifiers[l].attrs.type){2===a&&("Clef"===this.modifiers[l].attrs.type&&(this.modifiers[l].clef.line=3),"TimeSignature"===this.modifiers[l].attrs.type&&(this.modifiers[l].bottomLine=5,this.modifiers[l].topLine=3)),4===a&&"Clef"===this.modifiers[l].attrs.type&&(this.modifiers[l].clef.line=1.5);var c=!1;["StaveSection","Repetition","Volta"].includes(this.modifiers[l].attrs.type)&&(c=!0,this.context.openGroup(this.modifiers[l].attrs.type)),"function"==typeof this.modifiers[l].draw&&(this.modifiers[l].applyStyle(this.context),this.modifiers[l].draw(this,this.getModifierXShift(l)),this.modifiers[l].restoreStyle(this.context)),c&&this.context.closeGroup()}else this.staveTempos.push(this.modifiers[l])}if(setTimeout((function(){return e.drawStaveTempo()})),this.measure>0){this.context.save(),this.context.setFont(this.font.family,this.font.size,this.font.weight);var h=this.context.measureText(""+this.measure).width;t=this.getYForTopText(0)+3,this.context.fillText(""+this.measure,this.x-h/2,t),this.context.restore()}return this}},{key:"drawStaveTempo",value:function(){if(this.staveTempos.length){var e=document.querySelector("#".concat(this.attrs.id));if(e){var t=e.parentElement.getBBox(),n=this.getYForLine(0),r=e.parentElement.parentElement.querySelectorAll(".vf-curve");if(r.length){var i=this.x+this.staveTempos[0].shift_x+this.getModifierXShift(0),a=this.getYForTopText(1)+t.y-n+5;r.forEach((function(e){var n=e.getBBox();n.x-10<i&&n.x+n.width>i&&n.y-10<a&&n.y+n.height>a&&(t.y=n.y+5)}))}for(var o=0;o<this.staveTempos.length;o++)this.staveTempos[o].shift_y=t.y-n+5,this.staveTempos[o].applyStyle(this.context),this.staveTempos[o].draw(this,this.getModifierXShift(o)),this.staveTempos[o].restoreStyle(this.context);this.staveTempos=[]}}}},{key:"drawJianpuKey",value:function(){if(this.options.keySignature){var e=this.options.keySignature;6===window.DYSubjectId&&(e=n.saxophoneMap(e)),window&&window.sett&&window.sett.keySignature&&(e="C"),this.MeasureNumber<2?this.setText("1=".concat(e),1,{justification:1,shift_x:50,shift_y:-75}):this.options.keySignature!=_keySignature&&this.setText("1=".concat(e),1,{justification:1,shift_x:50,shift_y:-50}),_keySignature=this.options.keySignature}if(this.MeasureNumber>=0&&this.timeSignature.numerator){var t=40,r=0;this.MeasureNumber<2&&(t=70,r=-72),this.setText("".concat(this.timeSignature.numerator),1,{justification:1,shift_x:t,shift_y:r-13}),this.setText("ᅳ",1,{justification:1,shift_x:t+3,shift_y:r-2}),this.setText("".concat(this.timeSignature.denominator),1,{justification:1,shift_x:t,shift_y:r+8})}}},{key:"drawVertical",value:function(e,t){this.drawVerticalFixed(this.x+e,t)}},{key:"drawVerticalFixed",value:function(e,t){this.checkContext();var n=this.getYForLine(0),r=this.getYForLine(this.options.num_lines-1);t&&this.context.fillRect(e-3,n,1,r-n+1),this.context.fillRect(e,n,1,r-n+1)}},{key:"drawVerticalBar",value:function(e){this.drawVerticalBarFixed(this.x+e,!1)}},{key:"drawVerticalBarFixed",value:function(e){this.checkContext();var t=this.getYForLine(0),n=this.getYForLine(this.options.num_lines-1);this.context.fillRect(e,t,1,n-t+1)}},{key:"getConfigForLines",value:function(){return this.options.line_config}},{key:"setConfigForLine",value:function(e,t){if(e>=this.options.num_lines||e<0)throw new Vex.RERR("StaveConfigError","The line number must be within the range of the number of lines in the Stave.");if(void 0===t.visible)throw new Vex.RERR("StaveConfigError","The line configuration object is missing the 'visible' property.");if("boolean"!=typeof t.visible)throw new Vex.RERR("StaveConfigError","The line configuration objects 'visible' property must be true or false.");return this.options.line_config[e]=t,this}},{key:"setConfigForLines",value:function(e){if(e.length!==this.options.num_lines)throw new Vex.RERR("StaveConfigError","The length of the lines configuration array must match the number of lines in the Stave");for(var t in e)e[t]||(e[t]=this.options.line_config[t]),Vex.Merge(this.options.line_config[t],e[t]);return this.options.line_config=e,this}}],[{key:"saxophoneMap",value:function(e){var t={C:"bE","#C":"E","C#":"E",Db:"E",D:"F",Eb:"bG",E:"G",F:"bA","#F":"A","F#":"A",Gb:"A",G:"bB",Ab:"B",A:"C",Bb:"bD",B:"D"};return t[e]?t[e]:e}}]),n}(Element$1),_TabStave=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;_classCallCheck2(this,n);var s={spacing_between_lines_px:13,num_lines:6,top_text_position:1};return Vex.Merge(s,a),(o=t.call(this,e,r,i,s)).setAttribute("type","TabStave"),o}return _createClass2(n,[{key:"getYForGlyphs",value:function(){return this.getYForLine(2.5)}},{key:"addTabGlyph",value:function(){return this.addClef("tab"),this}}]),n}(_Stave2);function getUnusedStringGroups(e,t){for(var n=[],r=[],i=1;i<=e;i++){t.indexOf(i)>-1?(n.push(r),r=[]):r.push(i)}return r.length>0&&n.push(r),n}function getPartialStemLines(e,t,n,r){var i=1!==r,a=-1!==r,o=n.getSpacingBetweenLines(),s=n.getNumLines(),l=[];return t.forEach((function(t){var u=t.indexOf(s)>-1,c=t.indexOf(1)>-1;if(!(i&&c||a&&u)){1===t.length&&t.push(t[0]);var h=[];t.forEach((function(t,i,a){var l=1===t,u=t===s,c=n.getYForLine(t-1);0!==i||l?i!==a.length-1||u||(c+=o/2-1):c-=o/2-1,h.push(c),1===r&&l?h.push(e-2):-1===r&&u&&h.push(e+2)})),l.push(h.sort((function(e,t){return e-t})))}})),l}var TabNote$1=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;if(_classCallCheck2(this,n),(i=t.call(this,e)).setAttribute("type","TabNote"),i.ghost=!1,i.positions=e.positions,Vex.Merge(i.render_options,{glyph_font_scale:Flow.DEFAULT_TABLATURE_FONT_SCALE,draw_stem:r,draw_dots:r,draw_stem_through_stave:!1,y_shift:0,scale:1,font:"10pt Arial"}),i.glyph=Flow.getGlyphProps(i.duration,i.noteType),!i.glyph)throw new Vex.RuntimeError("BadArguments","Invalid note initialization data (No glyph found): ".concat(JSON.stringify(e)));return i.buildStem(),e.stem_direction?i.setStemDirection(e.stem_direction):i.setStemDirection(Stem.UP),i.ghost=!1,i.updateWidth(),i}return _createClass2(n,[{key:"reset",value:function(){this.stave&&this.setStave(this.stave)}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setGhost",value:function(e){return this.ghost=e,this.updateWidth(),this}},{key:"hasStem",value:function(){return this.render_options.draw_stem}},{key:"getStemExtension",value:function(){var e=this.getGlyph();return null!=this.stem_extension_override?this.stem_extension_override:e?1===this.getStemDirection()?e.tabnote_stem_up_extension:e.tabnote_stem_down_extension:0}},{key:"addDot",value:function(){var e=new Dot;return this.dots+=1,this.addModifier(e,0)}},{key:"updateWidth",value:function(){var e=this;this.glyphs=[],this.width=0;for(var t=0;t<this.positions.length;++t){var n=this.positions[t].fret;this.ghost&&(n="("+n+")");var r=Flow.tabToGlyph(n,this.render_options.scale);this.glyphs.push(r),this.width=Math.max(r.getWidth(),this.width)}this.glyph.getWidth=function(){return e.width}}},{key:"setStave",value:function(e){var t,r=this;if(_get(_getPrototypeOf2(n.prototype),"setStave",this).call(this,e),this.context=e.context,this.context){var i=this.context;this.width=0;var a=function(){var e=r.glyphs[t],n=""+e.text;"X"!==n.toUpperCase()&&(i.save(),i.setRawFont(r.render_options.font),e.width=i.measureText(n).width,i.restore(),e.getWidth=function(){return e.width}),r.width=Math.max(e.getWidth(),r.width)};for(t=0;t<this.glyphs.length;++t)a();this.glyph.getWidth=function(){return r.width}}var o=this.positions.map((function(t){var n=t.str;return e.getYForLine(n-1)}));return this.setYs(o),this.stem&&this.stem.setYBounds(this.getStemY(),this.getStemY()),this}},{key:"getPositions",value:function(){return this.positions}},{key:"addToModifierContext",value:function(e){this.setModifierContext(e);for(var t=0;t<this.modifiers.length;++t)this.modifierContext.addModifier(this.modifiers[t]);return this.modifierContext.addModifier(this),this.preFormatted=!1,this}},{key:"getTieRightX",value:function(){var e=this.getAbsoluteX();return e+=this.glyph.getWidth()/2,e+=-this.width/2+this.width+2}},{key:"getTieLeftX",value:function(){var e=this.getAbsoluteX();return e+=this.glyph.getWidth()/2,e-=this.width/2+2}},{key:"getModifierStartXY",value:function(e,t){if(!this.preFormatted)throw new Vex.RERR("UnformattedNote","Can't call GetModifierStartXY on an unformatted note");if(0===this.ys.length)throw new Vex.RERR("NoYValues","No Y-Values calculated for this note.");var n=0;if(e===Modifier.Position.LEFT)n=-2;else if(e===Modifier.Position.RIGHT)n=this.width+2;else if(e===Modifier.Position.BELOW||e===Modifier.Position.ABOVE){n=this.glyph.getWidth()/2}return{x:this.getAbsoluteX()+n,y:this.ys[t]}}},{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 e=this.stave.getNumLines()-.5,t=Stem.UP===this.stem_direction?-.5:e;return this.stave.getYForLine(t)}},{key:"getStemExtents",value:function(){return this.stem.getExtents()}},{key:"drawFlag",value:function(){var e=this.beam,t=this.glyph,n=this.context,r=this.stem,i=this.stem_direction,a=this.render_options,o=a.draw_stem,s=a.glyph_font_scale,l=null==e&&o;if(t.flag&&l){var u=this.getStemX()+1,c=this.getStemY()-r.getHeight(),h=i===Stem.DOWN?t.code_flag_downstem:t.code_flag_upstem;Glyph.renderGlyph(n,u,c,s,h)}}},{key:"drawModifiers",value:function(){var e=this;this.modifiers.forEach((function(t){("dots"!==t.getCategory()||e.render_options.draw_dots)&&(t.setContext(e.context),t.drawWithStyle())}))}},{key:"drawStemThrough",value:function(){var e=this.getStemX(),t=this.getStemY(),n=this.context,r=this.render_options.draw_stem_through_stave;if(this.render_options.draw_stem&&r){var i=this.stave.getNumLines(),a=this.positions.map((function(e){return e.str})),o=getPartialStemLines(t,getUnusedStringGroups(i,a),this.getStave(),this.getStemDirection());n.save(),n.setLineWidth(Stem.WIDTH),o.forEach((function(t){0!==t.length&&(n.beginPath(),n.moveTo(e,t[0]),n.lineTo(e,t[t.length-1]),n.stroke(),n.closePath())})),n.restore()}}},{key:"drawPositions",value:function(){for(var e=this.context,t=this.getAbsoluteX(),n=this.ys,r=0;r<this.positions.length;++r){var i=n[r]+this.render_options.y_shift,a=this.glyphs[r],o=t+this.glyph.getWidth()/2-a.getWidth()/2;if(e.clearRect(o-2,i-3,a.getWidth()+4,6),a.code)Glyph.renderGlyph(e,o,i,this.render_options.glyph_font_scale*this.render_options.scale,a.code);else{e.save(),e.setRawFont(this.render_options.font);var s=a.text.toString();e.fillText(s,o,i+5*this.render_options.scale),e.restore()}}}},{key:"draw",value:function(){if(this.checkContext(),!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");if(0===this.ys.length)throw new Vex.RERR("NoYValues","Can't draw note without Y values.");this.setRendered();var e=null==this.beam&&this.render_options.draw_stem;this.setAttribute("el",this.context.openGroup("tabnote",this.getAttribute("id"),{pointerBBox:!0})),this.drawPositions(),this.drawStemThrough();var t=this.getStemX();this.stem.setNoteHeadXBounds(t,t),e&&(this.context.openGroup("stem",null,{pointerBBox:!0}),this.stem.setContext(this.context).draw(),this.context.closeGroup()),this.drawFlag(),this.drawModifiers(),this.context.closeGroup()}}],[{key:"CATEGORY",get:function(){return"tabnotes"}}]),n}(StemmableNote);function L$8(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_VibratoBracket.DEBUG&&Vex.L("Vex.Flow.VibratoBracket",t)}var _VibratoBracket=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","VibratoBracket"),r.start=e.start,r.stop=e.stop,r.toEndOfStopStave=e.toEndOfStopStave,r.line=1,r.render_options={harsh:!1,wave_height:6,wave_width:4,wave_girth:2},r}return _createClass2(n,[{key:"setLine",value:function(e){return this.line=e,this}},{key:"setHarsh",value:function(e){return this.render_options.harsh=e,this}},{key:"draw",value:function(){var e=this.context;this.setRendered();var t=this.start?this.start.getStave().getYForTopText(this.line):this.stop.getStave().getYForTopText(this.line),n=0;if(this.start){var r,i=0,a=_createForOfIteratorHelper(this.start.modifiers);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o&&"tr"===o.type){i=o.glyph.bbox.w;break}}}catch(err){a.e(err)}finally{a.f()}n=this.start.getNoteHeadBeginX?this.start.getNoteHeadBeginX():this.start.getAbsoluteX(),n+=i}else n=this.stop.getStave().getTieStartX();var s=0;s=this.stop?this.toEndOfStopStave?this.stop.getStave().getTieEndX()-10:this.stop.getAbsoluteX()+this.stop.getWidth():this.start.getStave().getTieEndX()-10,this.render_options.vibrato_width=s-n,L$8("Rendering VibratoBracket: start_x:",n,"stop_x:",s,"y:",t),Vibrato.renderVibrato(e,n,t,this.render_options)}}]),n}(Element$1),semibrave_rest;function get_semibrave_rest(){if(!semibrave_rest){var e=new NoteHead({duration:"w",note_type:"r"});semibrave_rest={glyph_font_scale:e.render_options.glyph_font_scale,glyph_code:e.glyph_code,width:e.getWidth()}}return semibrave_rest}var _MultiMeasureRest=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","MultiMeasureRest"),i.render_options={show_number:!0,number_line:-.5,number_glyph_point:40,padding_left:void 0,padding_right:void 0,line:2,spacing_between_lines_px:10,line_thickness:void 0,serif_thickness:2,use_symbols:!1,symbol_spacing:void 0,semibrave_rest_glyph_scale:Flow.DEFAULT_NOTATION_FONT_SCALE},Vex.Merge(i.render_options,r),i.number_of_measures=e,i.xs={left:NaN,right:NaN},i}return _createClass2(n,[{key:"getXs",value:function(){return this.xs}},{key:"setStave",value:function(e){return this.stave=e,this}},{key:"getStave",value:function(){return this.stave}},{key:"drawLine",value:function(e,t,n,r){var i=this.stave.getYForLine(this.render_options.line),a=.1*(n-t);t+=a,n-=a;var o=this.render_options.serif_thickness,s=.25*r;isNaN(this.render_options.line_thickness)||(s=.5*this.render_options.line_thickness),e.save(),e.beginPath(),e.moveTo(t,i-r),e.lineTo(t+o,i-r),e.lineTo(t+o,i-s),e.lineTo(n-o,i-s),e.lineTo(n-o,i-r),e.lineTo(n,i-r),e.lineTo(n,i+r),e.lineTo(n-o,i+r),e.lineTo(n-o,i+s),e.lineTo(t+o,i+s),e.lineTo(t+o,i+r),e.lineTo(t,i+r),e.closePath(),e.fill()}},{key:"drawSymbols",value:function(e,t,n,r){var i=Math.floor(this.number_of_measures/4),a=this.number_of_measures%4,o=Math.floor(a/2),s=a%2,l=get_semibrave_rest(),u=l.width*(this.render_options.semibrave_rest_glyph_scale/l.glyph_font_scale),c={2:{width:.5*u,height:r},1:{width:u}},h=1.35*u;isNaN(this.render_options.symbol_spacing)||(h=this.render_options.symbol_spacing);var d=t+.5*(n-t)-.5*(i*c[2].width+o*c[2].width+s*c[1].width+(i+o+s-1)*h),f=this.stave.getYForLine(this.render_options.line-1),p=this.stave.getYForLine(this.render_options.line),v=this.stave.getYForLine(this.render_options.line+1);e.save(),e.setStrokeStyle("none"),e.setLineWidth(0);for(var m=0;m<i;++m)e.fillRect(d,p-c[2].height,c[2].width,c[2].height),e.fillRect(d,v-c[2].height,c[2].width,c[2].height),d+=c[2].width+h;for(var g=0;g<o;++g)e.fillRect(d,p-c[2].height,c[2].width,c[2].height),d+=c[2].width+h;for(var y=0;y<s;++y)Glyph.renderGlyph(e,d,f,this.render_options.semibrave_rest_glyph_scale,l.glyph_code),d+=c[1].width+h;e.restore()}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e=this.context,t=this.stave,n=this.render_options.spacing_between_lines_px,r=t.getNoteStartX(),i=t.getNoteEndX(),a=t.getModifiers(StaveModifier.Position.BEGIN);if(1===a.length&&"barlines"===a[0].getCategory()&&(r-=a[0].getWidth()),isNaN(this.render_options.padding_left)||(r=t.getX()+this.render_options.padding_left),isNaN(this.render_options.padding_right)||(i=t.getX()+t.getWidth()-this.render_options.padding_right),this.xs.left=r,this.xs.right=i,this.render_options.use_symbols?this.drawSymbols(e,r,i,n):this.drawLine(e,r,i,n),this.render_options.show_number){var o="/"+this.number_of_measures,s=new TimeSignature(null,void 0,!1);s.point=this.render_options.number_glyph_point,s.setTimeSig(o),s.setStave(t),s.x=r+.5*(i-r)-.5*s.timeSig.glyph.getMetrics().width,s.bottomLine=this.render_options.number_line,s.setContext(e).draw()}}}]),n}(Element$1),_ClefNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,{duration:"b"})).setAttribute("type","ClefNote"),a.setType(e,r,i),a.ignore_ticks=!0,a}return _createClass2(n,[{key:"setType",value:function(e,t,n){return this.type=e,this.clef_obj=new Clef(e,t,n),this.clef=this.clef_obj.clef,this.glyph=new Glyph(this.clef.code,this.clef.point),this.setWidth(this.glyph.getMetrics().width),this}},{key:"getClef",value:function(){return this.clef}},{key:"setContext",value:function(e){return this.context=e,this.glyph.setContext(this.context),this}},{key:"getBoundingBox",value:function(){return _get(_getPrototypeOf2(n.prototype),"getBoundingBox",this).call(this)}},{key:"addToModifierContext",value:function(){return this}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"preFormat",value:function(){return this.setPreFormatted(!0),this}},{key:"draw",value:function(){if(!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");this.glyph.getContext()||this.glyph.setContext(this.context),this.setRendered();var e=this.getAbsoluteX();if(this.glyph.setStave(this.stave),this.glyph.setYShift(this.stave.getYForLine(this.clef.line)-this.stave.getYForGlyphs()),this.glyph.renderToStave(e),void 0!==this.clef_obj.annotation){var t=new Glyph(this.clef_obj.annotation.code,this.clef_obj.annotation.point);t.getContext()||t.setContext(this.context),t.setStave(this.stave),t.setYShift(this.stave.getYForLine(this.clef_obj.annotation.line)-this.stave.getYForGlyphs()),t.setXShift(this.clef_obj.annotation.x_shift),t.renderToStave(e)}}}],[{key:"CATEGORY",get:function(){return"clefnote"}}]),n}(Note),_KeySigNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,{duration:"b"})).setAttribute("type","KeySigNote"),a.keySignature=new KeySignature(e,r,i),a.ignore_ticks=!0,a}return _createClass2(n,[{key:"getBoundingBox",value:function(){return _get(_getPrototypeOf2(n.prototype),"getBoundingBox",this).call(this)}},{key:"addToModifierContext",value:function(){return this}},{key:"preFormat",value:function(){return this.setPreFormatted(!0),this.keySignature.setStave(this.stave),this.keySignature.format(),this.setWidth(this.keySignature.width),this}},{key:"draw",value:function(){this.stave.checkContext(),this.setRendered(),this.keySignature.x=this.getAbsoluteX(),this.keySignature.setContext(this.context),this.keySignature.draw()}}]),n}(Note),_TimeSigNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;_classCallCheck2(this,n),(i=t.call(this,{duration:"b"})).setAttribute("type","TimeSigNote");var a=new TimeSignature(e,r);return i.timeSig=a.getTimeSig(),i.setWidth(i.timeSig.glyph.getMetrics().width),i.ignore_ticks=!0,i}return _createClass2(n,[{key:"getBoundingBox",value:function(){return _get(_getPrototypeOf2(n.prototype),"getBoundingBox",this).call(this)}},{key:"addToModifierContext",value:function(){return this}},{key:"preFormat",value:function(){return this.setPreFormatted(!0),this}},{key:"draw",value:function(){this.stave.checkContext(),this.setRendered(),this.timeSig.glyph.getContext()||this.timeSig.glyph.setContext(this.context),this.timeSig.glyph.setStave(this.stave),this.timeSig.glyph.setYShift(this.stave.getYForLine(this.timeSig.line)-this.stave.getYForGlyphs()),this.timeSig.glyph.renderToStave(this.getAbsoluteX())}}]),n}(Note),TabSlide=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;if(_classCallCheck2(this,n),(i=t.call(this,e,"sl.")).setAttribute("type","TabSlide"),!r){var a=e.first_note.getPositions()[0].fret,o=e.last_note.getPositions()[0].fret;r=parseInt(a,10)>parseInt(o,10)?n.SLIDE_DOWN:n.SLIDE_UP}return i.slide_direction=r,i.render_options.cp1=11,i.render_options.cp2=14,i.render_options.y_shift=.5,i.setFont({font:"Times",size:10,style:"bold italic"}),i.setNotes(e),i}return _createClass2(n,[{key:"renderTie",value:function(e){if(0===e.first_ys.length||0===e.last_ys.length)throw new Vex.RERR("BadArguments","No Y-values to render");var t=this.context,r=e.first_x_px,i=e.first_ys,a=e.last_x_px,o=this.slide_direction;if(o!==n.SLIDE_UP&&o!==n.SLIDE_DOWN)throw new Vex.RERR("BadSlide","Invalid slide direction");for(var s=0;s<this.first_indices.length;++s){var l=i[this.first_indices[s]]+this.render_options.y_shift;if(isNaN(l))throw new Vex.RERR("BadArguments","Bad indices for slide rendering.");t.beginPath(),t.moveTo(r,l+3*o),t.lineTo(a,l-3*o),t.closePath(),t.stroke()}this.setRendered()}}],[{key:"SLIDE_UP",get:function(){return 1}},{key:"SLIDE_DOWN",get:function(){return-1}},{key:"createSlideUp",value:function(e){return new n(e,n.SLIDE_UP)}},{key:"createSlideDown",value:function(e){return new n(e,n.SLIDE_DOWN)}}]),n}(TabTie),_GraceNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,Object.assign(e,{glyph_font_scale:Flow.DEFAULT_NOTATION_FONT_SCALE*n.SCALE,stroke_px:n.LEDGER_LINE_OFFSET}))).setAttribute("type","GraceNote"),r.slash=e.slash,r.slur=!0,r.buildNoteHeads(),r.width=3,r}return _createClass2(n,[{key:"getStemExtension",value:function(){if(null!=this.stem_extension_override)return this.stem_extension_override;var e=this.getGlyph();if(e){var t=_get(_getPrototypeOf2(n.prototype),"getStemExtension",this).call(this);if(e.stem){var r=this.getStaveNoteScale();t=(Stem.HEIGHT+t)*r-Stem.HEIGHT}return t}return 0}},{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getStaveNoteScale",value:function(){return this.render_options.glyph_font_scale/Flow.DEFAULT_NOTATION_FONT_SCALE}},{key:"draw",value:function(){_get(_getPrototypeOf2(n.prototype),"draw",this).call(this),this.setRendered();var e=this.stem;if(this.slash&&e){var t=this.getStaveNoteScale(),r=t/.66,i=void 0,a=this.beam;if(a)a.postFormatted||a.postFormat(),i=this.calcBeamedNotesSlashBBox(8*r,8*r,{stem:6*r,beam:5*r});else{var o=this.getStemDirection(),s=this.getNoteHeadBounds(),l=e.getHeight(),u=this.getAbsoluteX(),c=o===Flow.Stem.DOWN?s.y_top-l:s.y_bottom-l,h=o===Flow.Stem.DOWN?this.glyph.stem_down_extension:this.glyph.stem_up_extension,d=Flow.STEM_HEIGHT;d-=d/2.8,c+=(d+=h)*t*o;var f=o===Flow.Stem.UP?{x1:1,y1:0,x2:13,y2:-9}:{x1:-4,y1:1,x2:13,y2:9};i={x1:u+=f.x1*r,y1:c+=f.y1*r,x2:u+f.x2*r,y2:c+f.y2*r}}var p=this.context;p.save(),p.setLineWidth(1*r),p.beginPath(),p.moveTo(i.x1,i.y1),p.lineTo(i.x2,i.y2),p.closePath(),p.stroke(),p.restore()}}},{key:"calcBeamedNotesSlashBBox",value:function(e,t,n){var r=this.beam,i=r.slope,a=r.notes[r.notes.length-1]===this?-1:1,o=Math.atan(i*a),s=Math.cos(o)*t,l=Math.sin(o)*t;e*=this.getStemDirection();var u=Math.atan((l-e)/s),c=Math.cos(u)*n.stem*a,h=Math.sin(u)*n.stem,d=Math.cos(u)*n.beam*a,f=Math.sin(u)*n.beam,p=this.getStemX(),v=r.notes[0].getStemX(),m=this.beam.getBeamYToDraw()+(p-v)*i;return{x1:p-c,y1:m+e-h,x2:p+s*a+d,y2:m+l+f}}}],[{key:"CATEGORY",get:function(){return"gracenotes"}},{key:"LEDGER_LINE_OFFSET",get:function(){return 2}},{key:"SCALE",get:function(){return.66}}]),n}(_StaveNote3),GraceTabNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,e,!1)).setAttribute("type","GraceTabNote"),Vex.Merge(r.render_options,{y_shift:.3,scale:.6,font:"7.5pt Arial"}),r.updateWidth(),r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"draw",value:function(){_get(_getPrototypeOf2(n.prototype),"draw",this).call(this),this.setRendered()}}],[{key:"CATEGORY",get:function(){return"gracetabnotes"}}]),n}(TabNote$1),Tuning=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"E/5,B/4,G/4,D/4,A/3,E/3,B/2,E/2";_classCallCheck2(this,e),this.setTuning(t)}return _createClass2(e,[{key:"noteToInteger",value:function(e){return Flow.keyProperties(e).int_value}},{key:"setTuning",value:function(t){e.names[t]&&(t=e.names[t]),this.tuningString=t,this.tuningValues=[],this.numStrings=0;var n=t.split(/\s*,\s*/);if(0===n.length)throw new Vex.RERR("BadArguments","Invalid tuning string: "+t);this.numStrings=n.length;for(var r=0;r<this.numStrings;++r)this.tuningValues[r]=this.noteToInteger(n[r])}},{key:"getValueForString",value:function(e){var t=parseInt(e,10);if(t<1||t>this.numStrings)throw new Vex.RERR("BadArguments","String number must be between 1 and ".concat(this.numStrings,":").concat(e));return this.tuningValues[t-1]}},{key:"getValueForFret",value:function(e,t){var n=this.getValueForString(t),r=parseInt(e,10);if(r<0)throw new Vex.RERR("BadArguments","Fret number must be 0 or higher: "+e);return n+r}},{key:"getNoteForFret",value:function(e,t){var n=this.getValueForFret(e,t),r=Math.floor(n/12),i=n%12;return Flow.integerToNote(i)+"/"+r}}],[{key:"names",get:function(){return{standard:"E/5,B/4,G/4,D/4,A/3,E/3",dagdad:"D/5,A/4,G/4,D/4,A/3,D/3",dropd:"E/5,B/4,G/4,D/4,A/3,D/3",eb:"Eb/5,Bb/4,Gb/4,Db/4,Ab/3,Db/3",standardBanjo:"D/5,B/4,G/4,D/4,G/5"}}}]),e}(),KeyManager=function(){function e(t){_classCallCheck2(this,e),this.music=new Music,this.setKey(t)}return _createClass2(e,[{key:"setKey",value:function(e){return this.key=e,this.reset(),this}},{key:"getKey",value:function(){return this.key}},{key:"reset",value:function(){if(this.keyParts=this.music.getKeyParts(this.key),this.keyString=this.keyParts.root,this.keyParts.accidental&&(this.keyString+=this.keyParts.accidental),!Music.scaleTypes[this.keyParts.type])throw new Vex.RERR("BadArguments","Unsupported key type: ".concat(this.key));this.scale=this.music.getScaleTones(this.music.getNoteValue(this.keyString),Music.scaleTypes[this.keyParts.type]),this.scaleMap={},this.scaleMapByValue={},this.originalScaleMapByValue={};for(var e=Music.root_indices[this.keyParts.root],t=0;t<Music.roots.length;++t){var n=(e+t)%Music.roots.length,r=Music.roots[n],i=this.music.getRelativeNoteName(r,this.scale[t]);this.scaleMap[r]=i,this.scaleMapByValue[this.scale[t]]=i,this.originalScaleMapByValue[this.scale[t]]=i}return this}},{key:"getAccidental",value:function(e){var t=this.music.getKeyParts(e).root,n=this.music.getNoteParts(this.scaleMap[t]);return{note:this.scaleMap[t],accidental:n.accidental}}},{key:"selectNote",value:function(e){e=e.toLowerCase();var t=this.music.getNoteParts(e),n=this.scaleMap[t.root],r=this.music.getNoteParts(n);if(n===e)return{note:n,accidental:t.accidental,change:!1};var i=this.scaleMapByValue[this.music.getNoteValue(e)];if(null!=i)return{note:i,accidental:this.music.getNoteParts(i).accidental,change:!1};var a=this.originalScaleMapByValue[this.music.getNoteValue(e)];return null!=a?(this.scaleMap[r.root]=a,delete this.scaleMapByValue[this.music.getNoteValue(n)],this.scaleMapByValue[this.music.getNoteValue(e)]=a,{note:a,accidental:this.music.getNoteParts(a).accidental,change:!0}):r.root===e?(delete this.scaleMapByValue[this.music.getNoteValue(this.scaleMap[t.root])],this.scaleMapByValue[this.music.getNoteValue(r.root)]=r.root,this.scaleMap[r.root]=r.root,{note:r.root,accidental:null,change:!0}):(delete this.scaleMapByValue[this.music.getNoteValue(this.scaleMap[t.root])],this.scaleMapByValue[this.music.getNoteValue(e)]=e,delete this.scaleMap[r.root],this.scaleMap[r.root]=e,{note:e,accidental:t.accidental,change:!0})}}]),e}(),StaveHairpin=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","StaveHairpin"),i.notes=e,i.hairpin=r,i.position=Modifier.Position.BELOW,i.render_options={height:10,y_shift:0,left_shift_px:0,right_shift_px:0},i.setNotes(e),i}return _createClass2(n,[{key:"setPosition",value:function(e){return e!==Modifier.Position.ABOVE&&e!==Modifier.Position.BELOW||(this.position=e),this}},{key:"setRenderOptions",value:function(e){return null!=e.height&&null!=e.y_shift&&null!=e.left_shift_px&&null!=e.right_shift_px&&(this.render_options=e),this}},{key:"setNotes",value:function(e){if(!e.first_note&&!e.last_note)throw new Vex.RuntimeError("BadArguments","Hairpin needs to have either first_note or last_note set.");return this.first_note=e.first_note,this.last_note=e.last_note,this}},{key:"renderHairpin",value:function(e){var t=this.checkContext(),r=this.render_options.y_shift+20,i=e.first_y;this.position===Modifier.Position.ABOVE&&(r=30-r,i=e.first_y-e.staff_height);var a=this.render_options.left_shift_px,o=this.render_options.right_shift_px;switch(t.beginPath(),this.hairpin){case n.type.CRESC:t.moveTo(e.last_x+o,i+r),t.lineTo(e.first_x+a,i+this.render_options.height/2+r),t.lineTo(e.last_x+o,i+this.render_options.height+r);break;case n.type.DECRESC:t.moveTo(e.first_x+a,i+r),t.lineTo(e.last_x+o,i+this.render_options.height/2+r),t.lineTo(e.first_x+a,i+this.render_options.height+r)}t.stroke(),t.closePath()}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e=this.first_note,t=this.last_note,n=e.getModifierStartXY(this.position,0),r=t.getModifierStartXY(this.position,0);return this.renderHairpin({first_x:n.x,last_x:r.x,first_y:e.getStave().y+e.getStave().height,last_y:t.getStave().y+t.getStave().height,staff_height:e.getStave().height}),!0}}],[{key:"type",get:function(){return{CRESC:1,DECRESC:2}}},{key:"FormatByTicksAndDraw",value:function(e,t,r,i,a,o){var s=t.pixelsPerTick;if(null==s)throw new Vex.RuntimeError("BadArguments","A valid Formatter must be provide to draw offsets by ticks.");var l=s*o.left_shift_ticks,u=s*o.right_shift_ticks,c={height:o.height,y_shift:o.y_shift,left_shift_px:l,right_shift_px:u};new n({first_note:r.first_note,last_note:r.last_note},i).setContext(e).setRenderOptions(c).setPosition(a).draw()}}]),n}(Element$1),_Curve=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).setAttribute("type","Curve"),a.render_options={spacing:2,thickness:2,x_shift:0,y_shift:10,position:n.Position.NEAR_HEAD,position_end:n.Position.NEAR_HEAD,invert:!1,cps:[{x:0,y:10},{x:0,y:10}]},Vex.Merge(a.render_options,i),a.setNotes(e,r),a}return _createClass2(n,[{key:"setNotes",value:function(e,t){if(!e&&!t)throw new Vex.RuntimeError("BadArguments","Curve needs to have either first_note or last_note set.");return this.from=e,this.to=t,this}},{key:"isPartial",value:function(){return!this.from||!this.to}},{key:"renderCurve",value:function(e){var t=this.context,n=this.render_options.cps,r=this.render_options.x_shift,i=this.render_options.y_shift*e.direction,a=e.first_x+r,o=e.first_y+i,s=e.last_x-r,l=e.last_y+i,u=this.render_options.thickness,c=(s-a)/(n.length+2);t.beginPath(),t.moveTo(a,o),t.bezierCurveTo(a+c+n[0].x,o+n[0].y*e.direction,s-c+n[1].x,l+n[1].y*e.direction,s,l),t.bezierCurveTo(s-c+n[1].x,l+(n[1].y+u)*e.direction,a+c+n[0].x,o+(n[0].y+u)*e.direction,a,o),t.stroke(),t.closePath(),t.fill()}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e,t,r,i,a,o=this.from,s=this.to,l="baseY",u="baseY";function c(e){return"string"==typeof e?n.PositionString[e]:e}var h=c(this.render_options.position),d=c(this.render_options.position_end);return h===n.Position.NEAR_TOP&&(l="topY",u="topY"),d===n.Position.NEAR_HEAD?u="baseY":d===n.Position.NEAR_TOP&&(u="topY"),o?(e=o.getTieRightX(),a=o.getStemDirection(),r=o.getStemExtents()[l]):(e=s.getStave().getTieStartX(),r=s.getStemExtents()[l]),s?(t=s.getTieLeftX(),a=s.getStemDirection(),i=s.getStemExtents()[u]):(t=o.getStave().getTieEndX(),i=o.getStemExtents()[u]),this.renderCurve({first_x:e,last_x:t,first_y:r,last_y:i,direction:a*(!0===this.render_options.invert?-1:1)}),!0}}],[{key:"Position",get:function(){return{NEAR_HEAD:1,NEAR_TOP:2}}},{key:"PositionString",get:function(){return{nearHead:n.Position.NEAR_HEAD,nearTop:n.Position.NEAR_TOP}}}]),n}(Element$1);function L$7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_TextDynamics.DEBUG&&Vex.L("Vex.Flow.TextDynamics",t)}var _TextDynamics=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","TextDynamics"),r.sequence=e.text.toLowerCase(),r.line=e.line||0,r.glyphs=[],Vex.Merge(r.render_options,{glyph_font_size:40}),L$7("New Dynamics Text: ",r.sequence),r}return _createClass2(n,[{key:"setLine",value:function(e){return this.line=e,this}},{key:"preFormat",value:function(){var e=this,t=0;return this.sequence.split("").forEach((function(r){var i=n.GLYPHS[r];if(!i)throw new Vex.RERR("Invalid dynamics character: "+r);var a=e.render_options.glyph_font_size,o=new Glyph(i.code,a);e.glyphs.push(o),t+=i.width})),this.setWidth(t),this.preFormatted=!0,this}},{key:"draw",value:function(){var e=this;this.setRendered();var t=this.getAbsoluteX(),r=this.stave.getYForLine(this.line+-3);L$7("Rendering Dynamics: ",this.sequence);var i=t;this.glyphs.forEach((function(t,a){var o=e.sequence[a];t.render(e.context,i,r),i+=n.GLYPHS[o].width}))}}],[{key:"GLYPHS",get:function(){return{f:{code:"vba",width:12},p:{code:"vbf",width:14},m:{code:"v62",width:17},s:{code:"v4a",width:10},z:{code:"v80",width:12},r:{code:"vb1",width:12}}}}]),n}(Note);function drawArrowHead(e,t,n,r,i,a,o){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.lineTo(a,o),e.lineTo(t,n),e.closePath(),e.fill()}function drawArrowLine(e,t,n,r){var i,a,o,s,l=r.draw_start_arrow&&r.draw_end_arrow,u=t.x,c=t.y,h=n.x,d=n.y,f=Math.sqrt((h-u)*(h-u)+(d-c)*(d-c)),p=(f-r.arrowhead_length/3)/f;r.draw_end_arrow||l?(i=Math.round(u+(h-u)*p),a=Math.round(c+(d-c)*p)):(i=h,a=d),r.draw_start_arrow||l?(o=u+(h-u)*(1-p),s=c+(d-c)*(1-p)):(o=u,s=c),r.color&&(e.setStrokeStyle(r.color),e.setFillStyle(r.color)),e.beginPath(),e.moveTo(o,s),e.lineTo(i,a),e.stroke(),e.closePath();var v,m,g,y,b=Math.atan2(d-c,h-u),A=Math.abs(r.arrowhead_length/Math.cos(r.arrowhead_angle));(r.draw_end_arrow||l)&&(v=b+Math.PI+r.arrowhead_angle,g=h+Math.cos(v)*A,y=d+Math.sin(v)*A,m=b+Math.PI-r.arrowhead_angle,drawArrowHead(e,g,y,h,d,h+Math.cos(m)*A,d+Math.sin(m)*A)),(r.draw_start_arrow||l)&&(v=b+r.arrowhead_angle,g=u+Math.cos(v)*A,y=c+Math.sin(v)*A,m=b-r.arrowhead_angle,drawArrowHead(e,g,y,u,c,u+Math.cos(m)*A,c+Math.sin(m)*A))}var _StaveLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","StaveLine"),r.notes=e,r.text="",r.font={family:"Arial",size:10,weight:""},r.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:n.TextVerticalPosition.TOP,text_justification:n.TextJustification.CENTER},r.setNotes(e),r}return _createClass2(n,[{key:"setFont",value:function(e){return this.font=e,this}},{key:"setText",value:function(e){return this.text=e,this}},{key:"setNotes",value:function(e){if(!e.first_note&&!e.last_note)throw new Vex.RuntimeError("BadArguments","Notes needs to have either first_note or last_note set.");if(e.first_indices||(e.first_indices=[0]),e.last_indices||(e.last_indices=[0]),e.first_indices.length!==e.last_indices.length)throw new Vex.RuntimeError("BadArguments","Connected notes must have similar index sizes");return this.first_note=e.first_note,this.first_indices=e.first_indices,this.last_note=e.last_note,this.last_indices=e.last_indices,this}},{key:"applyLineStyle",value:function(){var e=this.checkContext(),t=this.render_options;t.line_dash&&e.setLineDash(t.line_dash),t.line_width&&e.setLineWidth(t.line_width),t.rounded_end?e.setLineCap("round"):e.setLineCap("square")}},{key:"applyFontStyle",value:function(){var e=this.checkContext();this.font&&e.setFont(this.font.family,this.font.size,this.font.weight),this.render_options.color&&(e.setStrokeStyle(this.render_options.color),e.setFillStyle(this.render_options.color))}},{key:"draw",value:function(){var e=this,t=this.checkContext();this.setRendered();var r,i,a=this.first_note,o=this.last_note,s=this.render_options;t.save(),this.applyLineStyle(),this.first_indices.forEach((function(n,l){var u=e.last_indices[l];r=a.getModifierStartXY(2,n),i=o.getModifierStartXY(1,u);var c=r.y>i.y;r.x+=a.getMetrics().modRightPx+s.padding_left,i.x-=o.getMetrics().modLeftPx+s.padding_right;var h=a.getGlyph().getWidth();a.getKeyProps()[n].displaced&&1===a.getStemDirection()&&(r.x+=h+s.padding_left),o.getKeyProps()[u].displaced&&-1===o.getStemDirection()&&(i.x-=h+s.padding_right),r.y+=c?-3:1,i.y+=c?2:0,drawArrowLine(t,r,i,e.render_options)})),t.restore();var l,u=t.measureText(this.text).width,c=s.text_justification,h=0;if(c===n.TextJustification.LEFT)h=r.x;else if(c===n.TextJustification.CENTER){h=(i.x-r.x)/2+r.x-u/2}else c===n.TextJustification.RIGHT&&(h=i.x-u);var d=s.text_position_vertical;return d===n.TextVerticalPosition.TOP?l=a.getStave().getYForTopText():d===n.TextVerticalPosition.BOTTOM&&(l=a.getStave().getYForBottomText(Flow.TEXT_HEIGHT_OFFSET_HACK)),t.save(),this.applyFontStyle(),t.fillText(this.text,h,l),t.restore(),this}}],[{key:"TextVerticalPosition",get:function(){return{TOP:1,BOTTOM:2}}},{key:"TextJustification",get:function(){return{LEFT:1,CENTER:2,RIGHT:3}}}]),n}(Element$1);function L$6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_PedalMarking.DEBUG&&Vex.L("Vex.Flow.PedalMarking",t)}function drawPedalGlyph(e,t,n,r,i){var a=_PedalMarking.GLYPHS[e];new Glyph(a.code,i).render(t,n+a.x_shift,r+a.y_shift)}var _PedalMarking=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","PedalMarking"),r.EndsStave=!1,r.ChangeBegin=!1,r.ChangeEnd=!1,r.notes=e,r.style=n.TEXT,r.line=0,r.custom_depress_text="",r.custom_release_text="",r.font={family:"Times New Roman",size:12,weight:"italic bold"},r.render_options={bracket_height:10,text_margin_right:6,bracket_line_width:1,glyph_point_size:40,color:"black"},r}return _createClass2(n,[{key:"setEndStave",value:function(e){if(this.endStave=e,this.endStaveAddedWidth=0,this.startMargin=0,this.endMargin=0,Array.isArray(this.endStave.modifiers))for(var t=0;t<this.endStave.modifiers.length;t++){var n=this.endStave.modifiers[t];n&&n.position===StaveModifier.Position.END&&n.width&&(this.endStaveAddedWidth+=n.width)}}},{key:"setCustomText",value:function(e,t){return this.custom_depress_text=e||"",this.custom_release_text=t||"",this}},{key:"setStyle",value:function(e){if(e<1&&e>3)throw new Vex.RERR("InvalidParameter","The style must be one found in PedalMarking.Styles");return this.style=e,this}},{key:"setLine",value:function(e){return this.line=e,this}},{key:"drawBracketed",value:function(){var e,t,r=this,i=this.context,a=!1,o=this;this.notes.forEach((function(s,l,u){a=!a;var c=0;if(c=s?s.getNoteHeadBeginX():r.endStave.end_x+r.endStaveAddedWidth,r.EndsStave)a?r.ChangeBegin&&(c=s.getAbsoluteX()):(c=s?r.ChangeEnd?s.getAbsoluteX():s.getStave().end_x+r.endStaveAddedWidth-o.render_options.text_margin_right:r.endStave.end_x+r.endStaveAddedWidth-o.render_options.text_margin_right,r.endMargin=-o.render_options.text_margin_right);else if(s)if(a)r.ChangeBegin&&(c=s.getAbsoluteX());else switch(o.style){case n.Styles.BRACKET_OPEN_END:case n.Styles.BRACKET_OPEN_BOTH:case n.Styles.MIXED_OPEN_END:c=s.getNoteHeadEndX();break;default:r.ChangeEnd?c=s.getAbsoluteX():(c=s.getNoteHeadBeginX()-o.render_options.text_margin_right,r.startMargin=-o.render_options.text_margin_right)}var h=r.endStave;s&&(h=s.getStave());var d=h.getYForBottomText(o.line+3);t&&t>d&&(d=t);var f=u[l+1]===s,p=u[l-1]===s,v=0;if(a)if(v=p?5:0,o.style!==n.Styles.MIXED&&o.style!==n.Styles.MIXED_OPEN_END||p)i.beginPath(),o.style===n.Styles.BRACKET_OPEN_BEGIN||o.style===n.Styles.BRACKET_OPEN_BOTH?i.moveTo(c+v,d):(r.ChangeBegin&&(c+=5),i.moveTo(c,d-o.render_options.bracket_height),r.ChangeBegin&&(c+=5),i.lineTo(c+v,d)),i.stroke(),i.closePath();else if(o.custom_depress_text){var m=i.measureText(o.custom_depress_text).width;i.fillText(o.custom_depress_text,c-m/2,d),v=m/2+o.render_options.text_margin_right}else drawPedalGlyph("pedal_depress",i,c,d,o.render_options.glyph_point_size),v=20+o.render_options.text_margin_right;else v=f&&!r.EndsStave?-5:0,i.beginPath(),i.moveTo(e,t),i.lineTo(c+v,d),o.style!==n.Styles.BRACKET_OPEN_END&&o.style!==n.Styles.MIXED_OPEN_END&&o.style!==n.Styles.BRACKET_OPEN_BOTH&&(r.ChangeEnd&&(c+=5),i.lineTo(c,d-o.render_options.bracket_height)),i.stroke(),i.closePath();e=c+v,t=d}))}},{key:"drawText",value:function(){var e=this.context,t=!1,n=this,r=n.render_options.glyph_point_size;this.notes.forEach((function(i){t=!t;var a=i.getStave(),o=i.getAbsoluteX(),s=a.getYForBottomText(n.line+3),l=0;t?n.custom_depress_text?(l=e.measureText(n.custom_depress_text).width,e.fillText(n.custom_depress_text,o-l/2,s)):drawPedalGlyph("pedal_depress",e,o,s,r):n.custom_release_text?(l=e.measureText(n.custom_release_text).width,e.fillText(n.custom_release_text,o-l/2,s)):drawPedalGlyph("pedal_release",e,o,s,r)}))}},{key:"draw",value:function(){var e=this.checkContext();this.setRendered(),e.save(),e.setStrokeStyle(this.render_options.color),e.setFillStyle(this.render_options.color),e.setFont(this.font.family,this.font.size,this.font.weight),L$6("Rendering Pedal Marking"),this.style===n.Styles.BRACKET||this.style===n.Styles.MIXED||this.style===n.Styles.MIXED_OPEN_END||this.style===n.Styles.BRACKET_OPEN_BEGIN||this.style===n.Styles.BRACKET_OPEN_END||this.style===n.Styles.BRACKET_OPEN_BOTH?(e.setLineWidth(this.render_options.bracket_line_width),this.drawBracketed()):this.style===n.Styles.TEXT&&this.drawText(),e.restore()}}],[{key:"GLYPHS",get:function(){return{pedal_depress:{code:"v36",x_shift:-10,y_shift:0},pedal_release:{code:"v5d",x_shift:-2,y_shift:3}}}},{key:"Styles",get:function(){return{TEXT:1,BRACKET:2,MIXED:3,MIXED_OPEN_END:4,BRACKET_OPEN_BEGIN:5,BRACKET_OPEN_END:6,BRACKET_OPEN_BOTH:7}}},{key:"StylesString",get:function(){return{text:n.Styles.TEXT,bracket:n.Styles.BRACKET,mixed:n.Styles.MIXED,mixed_open_end:n.Styles.MIXED_OPEN_END,bracket_open_begin:n.Styles.BRACKET_OPEN_BEGIN,bracket_open_end:n.Styles.BRACKET_OPEN_END,bracket_open_both:n.Styles.BRACKET_OPEN_BOTH}}},{key:"createSustain",value:function(e){return new n(e)}},{key:"createSostenuto",value:function(e){var t=new n(e);return t.setStyle(n.Styles.MIXED),t.setCustomText("Sost. Ped."),t}},{key:"createUnaCorda",value:function(e){var t=new n(e);return t.setStyle(n.Styles.TEXT),t.setCustomText("una corda","tre corda"),t}}]),n}(Element$1);function L$5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_TextBracket.DEBUG&&Vex.L("Vex.Flow.TextBracket",t)}var _TextBracket=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=e.start,a=e.stop,o=e.text,s=void 0===o?"":o,l=e.superscript,u=void 0===l?"":l,c=e.position,h=void 0===c?n.Positions.TOP:c;return _classCallCheck2(this,n),(r=t.call(this)).setAttribute("type","TextBracket"),r.start=i,r.stop=a,r.text=s,r.superscript=u,r.position="string"==typeof h?n.PositionString[h]:h,r.line=1,r.font={family:"Serif",size:15,weight:"italic"},r.render_options={dashed:!0,dash:[5],color:"black",line_width:1,show_bracket:!0,bracket_height:8,underline_superscript:!0},r}return _createClass2(n,[{key:"applyStyle",value:function(e){return e.setFont(this.font.family,this.font.size,this.font.weight),e.setStrokeStyle(this.render_options.color),e.setFillStyle(this.render_options.color),e.setLineWidth(this.render_options.line_width),this}},{key:"setDashed",value:function(e,t){return this.render_options.dashed=e,t&&(this.render_options.dash=t),this}},{key:"setFont",value:function(e){return this.font=_objectSpread(_objectSpread({},this.font),e),this}},{key:"setLine",value:function(e){return this.line=e,this}},{key:"draw",value:function(){var e=this.context;this.setRendered();var t=0;switch(this.position){case n.Positions.TOP:t=this.start.getStave().getYForTopText(this.line);break;case n.Positions.BOTTOM:t=this.start.getStave().getYForBottomText(this.line+Flow.TEXT_HEIGHT_OFFSET_HACK);break;default:throw new Vex.RERR("InvalidPosition","The position ".concat(this.position," is invalid"))}var r={x:this.start.getAbsoluteX(),y:t},i={x:this.stop.getAbsoluteX(),y:t};L$5("Rendering TextBracket: start:",r,"stop:",i,"y:",t);var a=this.render_options.bracket_height*this.position;e.save(),this.applyStyle(e),e.fillText(this.text,r.x,r.y);var o=e.measureText(this.text).width,s=e.measureText("M").width,l=r.y-s/2.5;e.setFont(this.font.family,this.font.size/1.4,this.font.weight),e.fillText(this.superscript,r.x+o+1,l);var u=e.measureText(this.superscript).width,c=e.measureText("M").width,h=r.x,d=l,f=i.x+this.stop.getGlyph().getWidth();this.position===n.Positions.TOP?(h+=o+u+5,d-=c/2.7):this.position===n.Positions.BOTTOM&&(d+=c/2.7,h+=o+2,this.render_options.underline_superscript||(h+=u)),this.render_options.dashed?(Renderer.drawDashedLine(e,h,d,f,d,this.render_options.dash),this.render_options.show_bracket&&Renderer.drawDashedLine(e,f,d+1*this.position,f,d+a,this.render_options.dash)):(e.beginPath(),e.moveTo(h,d),e.lineTo(f,d),this.render_options.show_bracket&&e.lineTo(f,d+a),e.stroke(),e.closePath()),e.restore()}}],[{key:"Positions",get:function(){return{TOP:1,BOTTOM:-1}}},{key:"PositionString",get:function(){return{top:n.Positions.TOP,bottom:n.Positions.BOTTOM}}}]),n}(Element$1);function L$4(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_BarNote.DEBUG&&Vex.L("Vex.Flow.BarNote",t)}var _BarNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Barline.type.SINGLE;_classCallCheck2(this,n),(r=t.call(this,{duration:"b"})).setAttribute("type","BarNote"),r.metrics={widths:{}};var a=Barline.type;return r.metrics.widths=(_defineProperty2(e={},a.SINGLE,8),_defineProperty2(e,a.DOUBLE,12),_defineProperty2(e,a.END,15),_defineProperty2(e,a.REPEAT_BEGIN,14),_defineProperty2(e,a.REPEAT_END,14),_defineProperty2(e,a.REPEAT_BOTH,18),_defineProperty2(e,a.NONE,0),e),r.ignore_ticks=!0,r.setType(i),r}return _createClass2(n,[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){return this.type="string"==typeof e?Barline.typeString[e]:e,this.setWidth(this.metrics.widths[this.type]),this}},{key:"getBoundingBox",value:function(){return _get(_getPrototypeOf2(n.prototype),"getBoundingBox",this).call(this)}},{key:"addToModifierContext",value:function(){return this}},{key:"preFormat",value:function(){return this.setPreFormatted(!0),this}},{key:"draw",value:function(){if(this.checkContext(),!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");L$4("Rendering bar line at: ",this.getAbsoluteX());var e=new Barline(this.type);e.setX(this.getAbsoluteX()),e.draw(this.stave),this.setRendered()}}]),n}(Note),_GhostNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i;if(_classCallCheck2(this,n),!e)throw new Vex.RuntimeError("BadArguments","Ghost note must have valid initialization data to identify duration.");if("string"==typeof e)i={duration:e};else{if("object"!==_typeof2(e))throw new Vex.RuntimeError("BadArguments","Ghost note must have valid initialization data to identify duration.");i=e}return(r=t.call(this,i)).setAttribute("type","GhostNote"),r.setWidth(0),r}return _createClass2(n,[{key:"isRest",value:function(){return!0}},{key:"setStave",value:function(e){_get(_getPrototypeOf2(n.prototype),"setStave",this).call(this,e)}},{key:"addToModifierContext",value:function(){return this}},{key:"preFormat",value:function(){return this.setPreFormatted(!0),this}},{key:"draw",value:function(){if(!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");this.setRendered();for(var e=0;e<this.modifiers.length;++e){var t=this.modifiers[e];t.setContext(this.context),t.drawWithStyle()}}}]),n}(StemmableNote),Tremolo=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).setAttribute("type","Tremolo"),i.num=e,i.note=null,i.index=null,i.position=Modifier.Position.CENTER,i.code="v74",i.y_spacing_scale=1,i.extra_stroke_scale=1,i.noteTremoloList=[],r&&Array.isArray(r)&&(i.noteTremoloList=r),i}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"getShift_x",value:function(){var e=0;if(2===this.noteTremoloList.length)try{e=this.noteTremoloList[0].formatterMetrics.freedom.right/1.5,e=isNaN(e)?0:-e}catch(t){}return e}},{key:"draw",value:function(){if(this.checkContext(),!this.note||null==this.index)throw new Vex.RERR("NoAttachedNote","Can't draw Tremolo without a note and index.");this.setRendered();var e=this.note.getStemDirection();this.y_spacing=4*e*this.y_spacing_scale;var t=this.note.getModifierStartXY(this.position,this.index).x,r=this.note.stem.getExtents().topY,i="gracenotes"===this.note.getCategory()?_GraceNote.SCALE:1;i*=this.extra_stroke_scale,r+=e<0?n.YOFFSETSTEMDOWN*i:n.YOFFSETSTEMUP*i,this.font={family:"Arial",size:16*i,weight:""},this.render_options={font_scale:35*i,stroke_px:3,stroke_spacing:10*i},t+=e<0?n.XOFFSETSTEMDOWN:n.XOFFSETSTEMUP,t+=this.getShift_x();for(var a=0;a<this.num;++a)Glyph.renderGlyph(this.context,t,r,this.render_options.font_scale,this.code),r+=this.y_spacing}}],[{key:"CATEGORY",get:function(){return"tremolo"}},{key:"YOFFSETSTEMUP",get:function(){return-9}},{key:"YOFFSETSTEMDOWN",get:function(){return-21}},{key:"XOFFSETSTEMUP",get:function(){return 6}},{key:"XOFFSETSTEMDOWN",get:function(){return-2}}]),n}(Modifier);function L$3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Crescendo.DEBUG&&Vex.L("Vex.Flow.Crescendo",t)}function renderHairpin(e,t){var n=t.begin_x,r=t.end_x,i=t.y,a=t.height/2;e.beginPath(),t.reverse?(e.moveTo(n,i-a),e.lineTo(r,i),e.lineTo(n,i+a)):(e.moveTo(r,i-a),e.lineTo(n,i),e.lineTo(r,i+a)),e.stroke(),e.closePath()}var Crescendo=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","Crescendo"),r.decrescendo=!1,r.line=e.line||0,r.height=15,Vex.Merge(r.render_options,{extend_left:0,extend_right:0,y_shift:0}),r}return _createClass2(n,[{key:"setLine",value:function(e){return this.line=e,this}},{key:"setHeight",value:function(e){return this.height=e,this}},{key:"setDecrescendo",value:function(e){return this.decrescendo=e,this}},{key:"preFormat",value:function(){return this.preFormatted=!0,this}},{key:"draw",value:function(){this.checkContext(),this.setRendered();var e=this.getTickContext(),t=_TickContext.getNextContext(e),n=this.getAbsoluteX(),r=t?t.getX():this.stave.x+this.stave.width,i=this.stave.getYForLine(this.line+-3)+1;L$3("Drawing ",this.decrescendo?"decrescendo ":"crescendo ",this.height,"x",n-r),renderHairpin(this.context,{begin_x:n-this.render_options.extend_left,end_x:r+this.render_options.extend_right,y:i+this.render_options.y_shift,height:this.height,reverse:this.decrescendo})}}]),n}(Note);function L$2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Parser.DEBUG&&Vex.L("Vex.Flow.Parser",t)}var X$2=Vex.MakeException("ParserError");function flattenMatches(e){return void 0!==e.matchedString?e.matchedString:e.results?flattenMatches(e.results):1===e.length?flattenMatches(e[0]):0===e.length?null:e.map(flattenMatches)}var Parser=function(){function e(t){_classCallCheck2(this,e),this.grammar=t}return _createClass2(e,[{key:"parse",value:function(e){this.line=e,this.pos=0,this.errorPos=-1;var t=this.expect(this.grammar.begin());return t.errorPos=this.errorPos,t}},{key:"matchFail",value:function(e){-1===this.errorPos&&(this.errorPos=this.pos),this.pos=e}},{key:"matchSuccess",value:function(){this.errorPos=-1}},{key:"matchToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?new RegExp("^(("+e+"))"):new RegExp("^(("+e+")\\s*)"),n=this.line.slice(this.pos).match(t);return null!==n?{success:!0,matchedString:n[2],incrementPos:n[1].length,pos:this.pos}:{success:!1,pos:this.pos}}},{key:"expectOne",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=this.pos,i=!0,a=!1;t=!0===t||!0===e.maybe;for(var o=0;o<e.expect.length;o++){var s=e.expect[o],l=this.pos,u=this.expect(s);if(u.success){if(n.push(u),a=!0,e.or)break}else if(i=!1,!e.or){this.pos=l;break}}var c=e.or&&a||i,h=c||!0===t;return t&&!c&&(this.pos=r),h?this.matchSuccess():this.matchFail(r),{success:h,results:n,numMatches:c?1:0}}},{key:"expectOneOrMore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=this.pos,i=0,a=!0;do{var o=this.expectOne(e);o.success?(i++,n.push(o.results)):a=!1}while(a);var s=i>0||!0===t;return!t||i>0||(this.pos=r),s?this.matchSuccess():this.matchFail(r),{success:s,results:n,numMatches:i}}},{key:"expectZeroOrMore",value:function(e){return this.expectOneOrMore(e,!0)}},{key:"expect",value:function(e){var t;if(L$2("Evaluating rules:",e),!e)throw new X$2("Invalid Rule: "+e,e);var n=e.bind(this.grammar)();if(n.token)(t=this.matchToken(n.token,!0===n.noSpace)).success&&(this.pos+=t.incrementPos);else{if(!n.expect)throw new X$2("Bad grammar! No `token` or `expect` property",n);t=n.oneOrMore?this.expectOneOrMore(n):n.zeroOrMore?this.expectZeroOrMore(n):this.expectOne(n)}return t.matches=[],t.results&&t.results.forEach((function(e){return t.matches.push(flattenMatches(e))})),n.run&&t.success&&n.run(t),t}}]),e}();function L$1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];_EasyScore.DEBUG&&Vex.L("Vex.Flow.EasyScore",t)}var X$1=Vex.MakeException("EasyScoreError"),Grammar=function(){function e(t){_classCallCheck2(this,e),this.builder=t}return _createClass2(e,[{key:"begin",value:function(){return this.LINE}},{key:"LINE",value:function(){return{expect:[this.PIECE,this.PIECES,this.EOL]}}},{key:"PIECE",value:function(){var e=this;return{expect:[this.CHORDORNOTE,this.PARAMS],run:function(){return e.builder.commitPiece()}}}},{key:"PIECES",value:function(){return{expect:[this.COMMA,this.PIECE],zeroOrMore:!0}}},{key:"PARAMS",value:function(){return{expect:[this.DURATION,this.TYPE,this.DOTS,this.OPTS]}}},{key:"CHORDORNOTE",value:function(){return{expect:[this.CHORD,this.SINGLENOTE],or:!0}}},{key:"CHORD",value:function(){var e=this;return{expect:[this.LPAREN,this.NOTES,this.RPAREN],run:function(t){return e.builder.addChord(t.matches[1])}}}},{key:"NOTES",value:function(){return{expect:[this.NOTE],oneOrMore:!0}}},{key:"NOTE",value:function(){return{expect:[this.NOTENAME,this.ACCIDENTAL,this.OCTAVE]}}},{key:"SINGLENOTE",value:function(){var e=this;return{expect:[this.NOTENAME,this.ACCIDENTAL,this.OCTAVE],run:function(t){return e.builder.addSingleNote(t.matches[0],t.matches[1],t.matches[2])}}}},{key:"ACCIDENTAL",value:function(){return{expect:[this.ACCIDENTALS],maybe:!0}}},{key:"DOTS",value:function(){var e=this;return{expect:[this.DOT],zeroOrMore:!0,run:function(t){return e.builder.setNoteDots(t.matches[0])}}}},{key:"TYPE",value:function(){var e=this;return{expect:[this.SLASH,this.MAYBESLASH,this.TYPES],maybe:!0,run:function(t){return e.builder.setNoteType(t.matches[2])}}}},{key:"DURATION",value:function(){var e=this;return{expect:[this.SLASH,this.DURATIONS],maybe:!0,run:function(t){return e.builder.setNoteDuration(t.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 e=this;return{expect:[this.KEY,this.EQUALS,this.VAL],run:function(t){return e.builder.addNoteOption(t.matches[0],t.matches[2].slice(1,-1))}}}},{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|\\+\\+-|\\+-|\\+\\+|\\+|k|o"}}},{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:"$"}}}]),e}(),Builder=function(){function e(t){_classCallCheck2(this,e),this.factory=t,this.commitHooks=[],this.reset()}return _createClass2(e,[{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options={stem:"auto",clef:"treble"},this.elements={notes:[],accidentals:[]},this.rollingDuration="8",this.resetPiece(),Object.assign(this.options,e)}},{key:"getFactory",value:function(){return this.factory}},{key:"getElements",value:function(){return this.elements}},{key:"addCommitHook",value:function(e){this.commitHooks.push(e)}},{key:"resetPiece",value:function(){L$1("resetPiece"),this.piece={chord:[],duration:this.rollingDuration,dots:0,type:void 0,options:{}}}},{key:"setNoteDots",value:function(e){L$1("setNoteDots:",e),e&&(this.piece.dots=e.length)}},{key:"setNoteDuration",value:function(e){L$1("setNoteDuration:",e),this.rollingDuration=this.piece.duration=e||this.rollingDuration}},{key:"setNoteType",value:function(e){L$1("setNoteType:",e),e&&(this.piece.type=e)}},{key:"addNoteOption",value:function(e,t){L$1("addNoteOption: key:",e,"value:",t),this.piece.options[e]=t}},{key:"addNote",value:function(e,t,n){L$1("addNote:",e,t,n),this.piece.chord.push({key:e,accid:t,octave:n})}},{key:"addSingleNote",value:function(e,t,n){L$1("addSingleNote:",e,t,n),this.addNote(e,t,n)}},{key:"addChord",value:function(e){var t=this;L$1("startChord"),"object"!==_typeof2(e[0])?this.addSingleNote(e[0]):e.forEach((function(e){e&&t.addNote.apply(t,_toConsumableArray2(e))})),L$1("endChord")}},{key:"commitPiece",value:function(){var e=this;L$1("commitPiece");var t=this.factory;if(t){var n=_objectSpread(_objectSpread({},this.options),this.piece.options),r=n.stem,i=n.clef,a="auto"===r.toLowerCase(),o=a||"up"!==r.toLowerCase()?_StaveNote3.STEM_DOWN:_StaveNote3.STEM_UP,s=this.piece,l=s.chord,u=s.duration,c=s.dots,h=s.type,d=l.map((function(e){return e.key+"/"+e.octave})),f=t.StaveNote({keys:d,duration:u,dots:c,type:h,clef:i,auto_stem:a});a||f.setStemDirection(o);var p=l.map((function(e){return e.accid||null}));p.forEach((function(e,n){e&&f.addAccidental(n,t.Accidental({type:e}))}));for(var v=0;v<c;v++)f.addDotToAll();this.commitHooks.forEach((function(t){return t(n,f,e)})),this.elements.notes.push(f),this.elements.accidentals.concat(p),this.resetPiece()}}}]),e}();function setId(e,t){var n=e.id;void 0!==n&&t.setAttribute("id",n)}function setClass(e,t){if(e.class){e.class.split(/\s*,\s*/).forEach((function(e){return t.addClass(e)}))}}var _EasyScore=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck2(this,e),this.setOptions(t),this.defaults={clef:"treble",time:"4/4",stem:"auto"}}return _createClass2(e,[{key:"set",value:function(e){return Object.assign(this.defaults,e),this}},{key:"setOptions",value:function(e){var t=this;return this.options=_objectSpread({factory:null,builder:null,commitHooks:[setId,setClass,Articulation$1.easyScoreHook],throwOnError:!1},e),this.factory=this.options.factory,this.builder=this.options.builder||new Builder(this.factory),this.grammar=new Grammar(this.builder),this.parser=new Parser(this.grammar),this.options.commitHooks.forEach((function(e){return t.addCommitHook(e)})),this}},{key:"setContext",value:function(e){return this.factory&&this.factory.setContext(e),this}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.builder.reset(t);var n=this.parser.parse(e);if(!n.success&&this.options.throwOnError)throw new X$1("Error parsing line: "+e,n);return n}},{key:"beam",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.factory.Beam({notes:e,options:t}),e}},{key:"tuplet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.factory.Tuplet({notes:e,options:t}),e}},{key:"notes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=_objectSpread({clef:this.defaults.clef,stem:this.defaults.stem},t),this.parse(e,t),this.builder.getElements().notes}},{key:"voice",value:function(e,t){return t=_objectSpread({time:this.defaults.time},t),this.factory.Voice(t).addTickables(e)}},{key:"addCommitHook",value:function(e){return this.builder.addCommitHook(e)}}]),e}();function initGroup(){return{notes:[],finish:!1,total:0,staveId:""}}var _text_width=null,tone="C",group=initGroup(),_denominator="",_numerator="",ornamentGroup="",_NumberedNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;_classCallCheck2(this,n),(r=t.call(this,e)).setAttribute("type","NumberedNote"),tone=e.keyString,r.ornament=!!e.ornament,r.line=0,r.keys=e.keys||[],r.fontSize=20,r.offset_x=0,r.offset_y=0,r.note_tones=[],r.duration_lines=0,r.long_duration_lines=0,r.note_size=e.note_size||16;var i=Flow.sanitizeDuration(r.duration),a=n.numberedDurationLine[i.toString()];if(a&&(r.duration_lines=a),(a=n.longDurationLine[i.toString()])&&(r.long_duration_lines=a),!_text_width){var o="__$text_wraper$$__",s=document.createElement("canvas");s.id=o,document.body.append(s);var l=document.getElementById(o),u=l.getContext("2d");u.font="Arial 22px";var c=u.measureText("5");_text_width=c.width+2,document.body.removeChild(l)}return r}return _createClass2(n,[{key:"getCategory",value:function(){return n.CATEGORY}},{key:"setKeySignature",value:function(e){this.keySignature=e}},{key:"preFormat",value:function(){this.preFormatted||(this.modifierContext&&this.modifierContext.preFormat(),this.setWidth(this.full_width),this.setPreFormatted(!0))}},{key:"filterNote",value:function(){if(!(window&&window.sett&&window.sett.keySignature)&&this.keys&&this.keys.length){var e=n.accidentalMap(tone);if(e){var t=n.noteLift;if(t){var r=this.keys[0].split("/")[0];"b"===r&&(r="R"),(r=(r=r.replace(new RegExp("#","g"),"")).replace(new RegExp("n","g"),"")).length>1&&(r=r.replace(new RegExp("b","g"),""));var i=NumberedNoteHead.numberedNotationMapping[r.toUpperCase()];if(t.includes(i))for(var a=0;a<this.modifiers.length;a++){var o=this.modifiers[a];if("Accidental"===o.getAttribute("type")&&o.accidental){var s=e[o.type];s?o.accidental=Flow.accidentalCodes(s):this.modifiers.splice(a,1)}}}}}}},{key:"preFormatModifier",value:function(){var e=this,t=0,n=0;this.filterNote(),this.modifiers.forEach((function(r,i){switch(r.getAttribute("type")){case"Accidental":r.render_options.font_scale=1.4*e.note_width,r.x_shift=2,r.y_shift=e.unit_height/2,e.ornament&&(r.render_options.font_scale=e.note_width,r.x_shift=14,r.y_shift=-10);break;case"Stroke":r.x_shift=-1*t,r.y_shift=1*e.unit_height;break;case"Dot":r.x_shift=n*e.duration_dot_width+7,r.y_shift=1*e.unit_height,n++;break;case"Ornament":r.y_shift=-3;break;default:r.y_shift=1*e.unit_height}r.reset&&r.reset(),t+=r.getWidth()/2}))}},{key:"handleDeleteDot",value:function(){for(var e=0;e<this.modifiers.length;e++)"Dot"==this.modifiers[e].attrs.type&&this.modifiers.splice(e,1)}},{key:"calcGroup",value:function(){if(group.staveId!=this.stave.attrs.id&&(this.drawDurationLoneLine(),group=initGroup()),this.stave.timeSignature.denominator&&(_denominator=this.stave.timeSignature.denominator,_numerator=this.stave.timeSignature.numerator),_denominator&&_numerator){var e=n.durationTime[_denominator],t=this.formatterMetrics.duration.split("/").filter((function(e){return e})),r=t.length?t[0]/t[1]:0;if(!this.ornament){if(0===r){if(this.long_duration_lines=this.intrinsicTicks/e-1,this.long_duration_lines>=_numerator&&(this.long_duration_lines=_numerator-1),8==_denominator)if(this.long_duration_lines=0,3==_numerator&&this.draw_dot(this.context,this.bottom_x+25,this.bottom_y-30,this.dot_width),6==_numerator)this.draw_dot(this.context,this.bottom_x+25,this.bottom_y-30,this.dot_width),new Glyph("v0",40).render(this.context,this.bottom_x+40,this.top_y),this.draw_dot(this.context,this.bottom_x+65,this.bottom_y-30,this.dot_width);return group=initGroup()}var i={lines:this.duration_lines,duration:r,id:this.attrs.id,x:this.x-this.duration_line_space/2-this.left_width,y:this.y,width:this.full_width};r>2*e&&(this.long_duration_lines=parseInt(r/e)-1,this.handleDeleteDot()),ornamentGroup&&(i.x+=this.note_width),group.notes.push(i);var a=group.notes.reduce((function(e,t){return e+t.duration}),0);if((a=parseInt(a))>e&&(a-=e),a>e-10&&a<e+10){group.finish=!0,1===group.notes.length&&(group=initGroup());var o=group.notes.filter((function(e){return 0===e.lines}));o.length&&(this.drawDurationLoneLine(),group=initGroup())}}}}},{key:"draw",value:function(){if(this.checkContext(),!this.stave)throw new Vex.RERR("NoStave","Can't draw without a stave.");var e=this.context;e.save(),e.setFont("Arial",this.note_height,"normal"),this.setAttribute("el",e.openGroup("stavenote",this.getAttribute("id"))),e.openGroup("note",null,{pointerBBox:!0});var t=this.getAbsoluteX()+2.5;this.x=t;var n=this.stave.getYForLine(2)+this.note_height/2;this.y=n,this.buildToneHeads(),this.preFormatModifier(),this.applyStyle(),this.note_tones.forEach((function(t){t.draw(e)})),e.openGroup("modifier",null,{pointerBBox:!0}),this.drawModifiers(),e.closeGroup(),e.closeGroup(),e.closeGroup(),this.calcGroup(),group.staveId=this.stave.attrs.id,this.drawDurationLine(e,{}),this.drawLongDurationLines(e),this.restoreStyle(),this.setRendered(),ornamentGroup=this.ornament?ornamentGroup?Object.assign(ornamentGroup,{lines:this.duration_lines,id:this.attrs.id,x:this.x-this.duration_line_space/2-this.left_width,width:this.full_width}):{lines:this.duration_lines,id:this.attrs.id,x:this.x-this.duration_line_space/2-this.left_width,width:this.full_width}:""}},{key:"drawDurationLoneLine",value:function(e,t){e=e||this.context;for(var n=t||this.y+this.duration_line_space,r=0;r<5;r++){for(var i=[],a=0,o=0;o<group.notes.length;o++){var s=group.notes[o];if(a==o&&s.lines>r)i.push(s),a++;else{if(i.length>1){var l=i.length-1;n=i[0].y+this.duration_line_space,e.rect(i[0].x,n+3*r,i[l].x-i[0].x+i[l].width,.5)}i=[],a=o+1}}if(i.length>1){var u=i.length-1;n=i[0].y+this.duration_line_space,e.rect(i[0].x,n+3*r,i[u].x-i[0].x+i[u].width,.5)}}}},{key:"draw_dot",value:function(e,t,n,r){e.openGroup("numbered-note-dot"),e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.closePath(),e.fill(),e.closeGroup()}},{key:"drawDurationLine",value:function(e,t){var n,r,i=this.attrs.id+"-lines";if(e.openGroup("numbered_note_lines",i),this.duration_lines>0){var a=this.duration_line_space,o=this.full_width;if(t&&t.width&&(o=t.width),o<0&&(o=this.note_width),n=t&&void 0!==t.startX?t.startX:this.x-a/2-this.left_width,r=t&&void 0!==t.startY?t.startY:this.y+this.duration_line_space,group.finish&&(this.drawDurationLoneLine(e,r),group=initGroup()),this.ornament?(n+=12,r-=22,o=15,ornamentGroup&&(n-=10,o+=10)):ornamentGroup&&(n+=this.note_width,o-=this.note_width),o>0){for(var s=0;s<this.duration_lines;s++)e.rect(n,r,o,.5),r+=3;this.ornament&&(ornamentGroup?(ornamentGroup.startX=n,ornamentGroup.startY=r):ornamentGroup={startX:n,startY:r})}}!this.ornament&&ornamentGroup&&(n=ornamentGroup.startX,r=ornamentGroup.startY,n+=5,r-=3,e.beginPath(),e.moveTo(n,r),e.lineTo(n,r+5),e.lineTo(n+5,r+5),e.stroke()),e.closeGroup()}},{key:"removeDurationLines",value:function(){var e="vf-"+this.attrs.id+"-lines",t=document.getElementById(e);t&&t.remove()}},{key:"drawLongDurationLines",value:function(e){for(var t=this.x+this.note_width+this.right_width+10,n=1;n<=this.long_duration_lines;n++)e.fillRect(t+2,this.y-this.full_height/2,this.long_duration_width,2),t+=this.long_duration_space+this.long_duration_width}},{key:"setStave",value:function(e){return _get(_getPrototypeOf2(n.prototype),"setStave",this).call(this,e),this}},{key:"buildToneHeads",value:function(){this.offset_x=this.x,this.offset_y=this.y;var e=[];this.note_tones=[];for(var t=0;t<this.keys.length;t++){var r=new NumberedNoteHead({key:this.keys[t],x:this.ornament?this.note_x+12:this.note_x,y:this.ornament?this.offset_y-this.note_height:this.offset_y,idx:t,note:this});this.offset_y-=r.height+this.head_space,this.note_tones.push(r),e.push(this.offset_y);try{if(0===t&&window&&window.sett&&window.sett.keySignature){var i=n.accidentalAndKey(tone)[r.meta.key],a=(this.modifiers.find((function(e){return"Accidental"===e.getAttribute("type")})),this.modifiers.findIndex((function(e){return"Accidental"===e.getAttribute("type")})));i&&a>-1?this.modifiers[a].accidental.code="#"===i?"v18":"v44":this.modifiers.splice(a,1)}}catch(o){console.log("🚀 ~ error",o)}}this.setYs(e)}},{key:"getFullWidth",value:function(){return this.full_width}},{key:"getFullHeight",value:function(){return this.full_height}},{key:"getLine",value:function(){return this.keyProps[0].line}},{key:"full_width",get:function(){return this.note_width+this.left_width+this.right_width+this.long_duration_line_width}},{key:"long_duration_line_width",get:function(){return(this.long_duration_width+this.long_duration_space)*this.long_duration_lines}},{key:"full_height",get:function(){return this.bottom_y-this.top_y}},{key:"note_width",get:function(){return this.note_size||0}},{key:"note_dot_width",get:function(){return 6}},{key:"note_height",get:function(){return this.unit_height}},{key:"unit_height",get:function(){return this.note_size||0}},{key:"note_x",get:function(){return this.x||0}},{key:"top_x",get:function(){return this.x||0}},{key:"top_y",get:function(){var e=this;return(this.y||0)-(e.note_tones.map((function(t){return(t.td+t.bd)*(e.dot_space+e.dot_width)})).reduce((function(e,t){return e+t}),0)+this.note_height*this.note_tones.length-this.unit_height-this.note_tones[0].bd*(e.dot_space+e.dot_width)+(this.note_tones.length-1)*this.head_space)}},{key:"bottom_x",get:function(){return this.x||0}},{key:"bottom_y",get:function(){return(this.y||0)+this.unit_height+this.duration_lines*(this.duration_line_height+this.duration_line_space)+this.note_tones[0].meta.bd*(this.dot_width+this.dot_space)}},{key:"left_width",get:function(){return this.modifiers_width}},{key:"right_width",get:function(){return this.full_duration_dot_width}},{key:"duration_dot_width",get:function(){return 6}},{key:"full_duration_dot_width",get:function(){return this.duration_dot_width*this.getModifiersByCategory(Dot.CATEGORY).length}},{key:"getModifiersByCategory",value:function(e){var t=[];return this.modifiers.forEach((function(n){n.getCategory()===e&&t.push(n)})),t}},{key:"head_space",get:function(){return 6}},{key:"duration_line_height",get:function(){return 2}},{key:"duration_line_space",get:function(){return 4}},{key:"dot_width",get:function(){return 2}},{key:"dot_space",get:function(){return 2}},{key:"long_duration_space",get:function(){return 10}},{key:"long_duration_width",get:function(){return 20}},{key:"getWidth",value:function(){return this.full_width}},{key:"modifiers_width",get:function(){var e=0;return this.modifiers.forEach((function(t){e+=t.getWidth()})),e}}],[{key:"CATEGORY",get:function(){return"numberednotes"}},{key:"accidentalAndKey",value:function(e){switch(e){case"G":return{4:"#"};case"D":return{1:"#",4:"#"};case"A":return{1:"#",4:"#",5:"#"};case"E":return{1:"#",2:"#",4:"#",5:"#"};case"B":return{1:"#",2:"#",4:"#",5:"#",6:"#"};case"F#":return{1:"#",2:"#",3:"#",4:"#",5:"#",6:"#"};case"C#":return{1:"#",2:"#",3:"#",4:"#",5:"#",6:"#",7:"#"};case"F":return{7:"b"};case"Bb":return{7:"b",3:"b"};case"Eb":return{7:"b",3:"b",6:"b"};case"Ab":return{7:"b",2:"b",3:"b",6:"b"};case"Db":return{7:"b",2:"b",3:"b",5:"b",6:"b"};case"Gb":return{7:"b",1:"b",2:"b",3:"b",5:"b",6:"b"};case"Cb":return{7:"b",1:"b",2:"b",3:"b",4:"b",5:"b",6:"b"};default:return{}}}},{key:"accidentalMap",value:function(e){switch(e){case"C":return"";case"F":case"Bb":case"Eb":case"Ab":case"Db":case"Gb":case"Cb":return{bb:"b",b:"",n:"#","#":"##"};default:return{b:"bb",n:"b","#":"","##":"#"}}}},{key:"noteLift",get:function(){switch(tone){case"G":return["7"];case"D":return["7","3"];case"A":return["7","3","6"];case"E":return["2","6","3","7"];case"B":return["5","2","6","3","7"];case"F#":return["1","5","2","6","3","7"];case"C#":return["4","1","5","2","6","3","7"];case"F":return["4"];case"Bb":return["1","4"];case"Eb":return["5","1","4"];case"Ab":return["2","5","1","4"];case"Db":return["6","2","5","1","4"];case"Gb":return["3","6","2","5","1","4"];case"Cb":return["7","3","6","2","5","1","4"]}}},{key:"longDurationLine",get:function(){return{1:3,2:1,6:2}}},{key:"numberedDurationLine",get:function(){return{8:1,16:2,32:3,64:4,128:5}}},{key:"durationTime",get:function(){return{8:6144,4:4096}}}]),n}(_StaveNote3),NumberedNoteHead=function(){function e(t){_classCallCheck2(this,e),this.key=t.key,this.x=t.x||0,this.y=t.y||0,this.idx=t.idx||0,this.note=t.note||0,this.meta=this.tone_to_numbered_key(),this.noteSize=t.noteSize||16,this.td=this.meta.td,this.bd=this.meta.bd}return _createClass2(e,[{key:"tone_to_numbered_key",value:function(){var t=this.key.split("/")[0];"b"===t&&(t="R"),(t=(t=t.replace(new RegExp("#","g"),"")).replace(new RegExp("n","g"),"")).length>1&&(t=t.replace(new RegExp("b","g"),""));var n=0,r=0;this.note.stave&&this.note.stave.options&&this.note.stave.options.keySignature&&(tone=this.note.stave.options.keySignature);var i=this.note.getLine();return i<e.numberedNotationMapping.min&&(n=Math.ceil(Math.abs((i-e.numberedNotationMapping.min)/3.5))),i>e.numberedNotationMapping.max&&(r=Math.ceil((i-e.numberedNotationMapping.max)/3.5)),"R"===t.toUpperCase()&&(n=0,r=0),{key:e.numberedNotationMapping[t.toUpperCase()],td:r,bd:n}}},{key:"draw",value:function(e){var t=this.y;e.openGroup("numbered-note-head");for(var n=this.x+(this.note.ornament?-2:0),r=t-this.note.unit_height-this.note.dot_space-(this.note.ornament?-4:2),i=0;i<this.meta.td;i++)this.draw_dot(e,n+_text_width-1,r,this.note.dot_width),r-=this.note.dot_width+this.note.dot_space+4;new Glyph("v"+this.meta.key,this.note.ornament?30:40).render(e,n+1,t),t+=this.note.dot_space+this.note.dot_width-(this.note.ornament?2:0);for(var a=0;a<this.meta.bd;a++){if(0===this.idx){var o=this.note.duration_lines*(this.note.duration_line_height+this.note.duration_line_space);this.note.duration_lines>1&&(o-=this.note.duration_line_space),t+=o}this.draw_dot(e,n+_text_width,t,this.note.dot_width),t+=this.note.dot_width+this.note.dot_space}e.closeGroup()}},{key:"height",get:function(){return this.note.note_height+(this.meta.bd+this.meta.td)*(this.note.dot_width+this.note.dot_space)}},{key:"draw_dot",value:function(e,t,n,r){e.openGroup("numbered-note-dot"),e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.closePath(),e.fill(),e.closeGroup()}}],[{key:"numberedNotationMapping",get:function(){var e=tone;switch(window&&window.sett&&window.sett.keySignature&&(e="C"),e){case"A":return{C:"3",D:"4",E:"5",F:"6",G:"7",A:"1",B:"2",R:"0",min:2.5,max:5.5};case"B":case"Bb":case"A#":return{C:"2",D:"3",E:"4",F:"5",G:"6",A:"7",B:"1",R:"0",min:-.5,max:2.5};case"D":case"D#":case"Db":return{C:"7",D:"1",E:"2",F:"3",G:"4",A:"5",B:"6",R:"0",min:.5,max:3.5};case"E":case"Eb":return{C:"6",D:"7",E:"1",F:"2",G:"3",A:"4",B:"5",R:"0",min:1,max:4};case"F":case"F#":return{C:"5",D:"6",E:"7",F:"1",G:"2",A:"3",B:"4",R:"0",min:1.5,max:4.5};case"G":case"Gb":return{C:"4",D:"5",E:"6",F:"7",G:"1",A:"2",B:"3",R:"0",min:2,max:5};case"Ab":case"G#":return{C:"3",D:"4",E:"5",F:"6",G:"7",A:"1",B:"2",R:"0",min:-1,max:2};default:return{C:"1",D:"2",E:"3",F:"4",G:"5",A:"6",B:"7",R:"0",min:0,max:3}}}}]),e}();function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Factory.DEBUG&&Vex.L("Vex.Flow.Factory",t)}var X=Vex.MakeException("FactoryError");function setDefaults$1(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.options;return(e=Object.assign(t,e)).options=Object.assign(n,e.options),e}var Factory=function(){function e(t){_classCallCheck2(this,e),L("New factory: ",t);var n={stave:{space:10},renderer:{context:null,elementId:"",backend:Renderer.Backends.SVG,width:500,height:200,background:"#FFF"},font:{face:"Arial",point:10,style:""}};this.options=n,this.setOptions(t)}return _createClass2(e,[{key:"reset",value:function(){this.renderQ=[],this.systems=[],this.staves=[],this.voices=[],this.stave=null}},{key:"getOptions",value:function(){return this.options}},{key:"setOptions",value:function(e){for(var t=0,n=["stave","renderer","font"];t<n.length;t++){var r=n[t];Object.assign(this.options[r],e[r])}(null!==this.options.renderer.elementId||this.options.renderer.context)&&this.initRenderer(),this.reset()}},{key:"initRenderer",value:function(){var e=this.options.renderer,t=e.elementId,n=e.backend,r=e.width,i=e.height,a=e.background;if(""===t)throw new X("HTML DOM element not set in Factory");this.context=Renderer.buildContext(t,n,r,i,a)}},{key:"getContext",value:function(){return this.context}},{key:"setContext",value:function(e){return this.context=e,this}},{key:"getStave",value:function(){return this.stave}},{key:"getVoices",value:function(){return this.voices}},{key:"space",value:function(e){return this.options.stave.space*e}},{key:"Stave",value:function(e){e=setDefaults$1(e,{x:0,y:0,width:this.options.renderer.width-this.space(1),options:{spacing_between_lines_px:this.options.stave.space}});var t=new _Stave2(e.x,e.y,e.width,e.options);return this.staves.push(t),t.setContext(this.context),this.stave=t,t}},{key:"TabStave",value:function(e){e=setDefaults$1(e,{x:0,y:0,width:this.options.renderer.width-this.space(1),options:{spacing_between_lines_px:1.3*this.options.stave.space}});var t=new _TabStave(e.x,e.y,e.width,e.options);return this.staves.push(t),t.setContext(this.context),this.stave=t,t}},{key:"StaveNote",value:function(e){var t=new _StaveNote3(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"GhostNote",value:function(e){var t=new _GhostNote(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"TextNote",value:function(e){var t=new _TextNote(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"NumberedNote",value:function(e){var t=new _NumberedNote(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"BarNote",value:function(e){e=setDefaults$1(e,{type:"single",options:{}});var t=new _BarNote(e.type);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"ClefNote",value:function(e){e=setDefaults$1(e,{type:"treble",options:{size:"default"}});var t=new _ClefNote(e.type,e.options.size,e.options.annotation);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"TimeSigNote",value:function(e){e=setDefaults$1(e,{time:"4/4",options:{}});var t=new _TimeSigNote(e.time);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"KeySigNote",value:function(e){var t=new _KeySigNote(e.key,e.cancelKey,e.alterKey);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"TabNote",value:function(e){var t=new TabNote$1(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"GraceNote",value:function(e){var t=new _GraceNote(e);return this.stave&&t.setStave(this.stave),t.setContext(this.context),t}},{key:"GraceNoteGroup",value:function(e){var t=new _GraceNoteGroup(e.notes,e.slur);return t.setContext(this.context),t}},{key:"Accidental",value:function(e){e=setDefaults$1(e,{type:null,options:{}});var t=new _Accidental(e.type);return t.setContext(this.context),t}},{key:"Annotation",value:function(e){e=setDefaults$1(e,{text:"p",vJustify:"below",hJustify:"center",fontFamily:"Times",fontSize:14,fontWeight:"bold italic",options:{}});var t=new _Annotation(e.text);return t.setJustification(e.hJustify),t.setVerticalJustification(e.vJustify),t.setFont(e.fontFamily,e.fontSize,e.fontWeight),t.setContext(this.context),t}},{key:"Articulation",value:function(e){e=setDefaults$1(e,{type:"a.",position:"above",options:{}});var t=new Articulation$1(e.type);return t.setPosition(e.position),t.setContext(this.context),t}},{key:"TextDynamics",value:function(e){e=setDefaults$1(e,{text:"p",duration:"q",dots:0,line:0,options:{}});var t=new _TextDynamics({text:e.text,line:e.line,duration:e.duration,dots:e.dots});return this.stave&&t.setStave(this.stave),t.setContext(this.context),this.renderQ.push(t),t}},{key:"Fingering",value:function(e){e=setDefaults$1(e,{number:"0",position:"left",options:{}});var t=new FretHandFinger(e.number);return t.setPosition(e.position),t.setContext(this.context),t}},{key:"StringNumber",value:function(e){e=setDefaults$1(e,{number:"0",position:"left",options:{}});var t=new _StringNumber(e.number);return t.setPosition(e.position),t.setContext(this.context),t}},{key:"TickContext",value:function(){return(new _TickContext).setContext(this.context)}},{key:"ModifierContext",value:function(){return new _ModifierContext}},{key:"MultiMeasureRest",value:function(e){var t=new _MultiMeasureRest(e.number_of_measures,e);return t.setContext(this.context),this.renderQ.push(t),t}},{key:"Voice",value:function(e){e=setDefaults$1(e,{time:"4/4",options:{}});var t=new Voice$1(e.time);return this.voices.push(t),t}},{key:"StaveConnector",value:function(e){e=setDefaults$1(e,{top_stave:null,bottom_stave:null,type:"double",options:{}});var t=new _StaveConnector(e.top_stave,e.bottom_stave);return t.setType(e.type).setContext(this.context),this.renderQ.push(t),t}},{key:"Formatter",value:function(){return new _Formatter}},{key:"Tuplet",value:function(e){e=setDefaults$1(e,{notes:[],options:{}});var t=new Tuplet$1(e.notes,e.options).setContext(this.context);return this.renderQ.push(t),t}},{key:"Beam",value:function(e){e=setDefaults$1(e,{notes:[],options:{autoStem:!1,secondaryBeamBreaks:[]}});var t=new Beam$1(e.notes,e.options.autoStem).setContext(this.context);return t.breakSecondaryAt(e.options.secondaryBeamBreaks),this.renderQ.push(t),t}},{key:"Curve",value:function(e){e=setDefaults$1(e,{from:null,to:null,options:{}});var t=new _Curve(e.from,e.to,e.options).setContext(this.context);return this.renderQ.push(t),t}},{key:"StaveTie",value:function(e){e=setDefaults$1(e,{from:null,to:null,first_indices:[0],last_indices:[0],text:null,options:{direction:void 0}});var t=new _StaveTie2({first_note:e.from,last_note:e.to,first_indices:e.first_indices,last_indices:e.last_indices},e.text);return e.options.direction&&t.setDirection(e.options.direction),t.setContext(this.context),this.renderQ.push(t),t}},{key:"StaveLine",value:function(e){e=setDefaults$1(e,{from:null,to:null,first_indices:[0],last_indices:[0],options:{}});var t=new _StaveLine({first_note:e.from,last_note:e.to,first_indices:e.first_indices,last_indices:e.last_indices});return e.options.text&&t.setText(e.options.text),e.options.font&&t.setFont(e.options.font),t.setContext(this.context),this.renderQ.push(t),t}},{key:"VibratoBracket",value:function(e){e=setDefaults$1(e,{from:null,to:null,options:{harsh:!1}});var t=new _VibratoBracket({start:e.from,stop:e.to});return e.options.line&&t.setLine(e.options.line),e.options.harsh&&t.setHarsh(e.options.harsh),t.setContext(this.context),this.renderQ.push(t),t}},{key:"TextBracket",value:function(e){e=setDefaults$1(e,{from:null,to:null,text:"",options:{superscript:"",position:1}});var t=new _TextBracket({start:e.from,stop:e.to,text:e.text,superscript:e.options.superscript,position:e.options.position});return e.options.line&&t.setLine(e.options.line),e.options.font&&t.setFont(e.options.font),t.setContext(this.context),this.renderQ.push(t),t}},{key:"System",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.factory=this;var t=new System(e).setContext(this.context);return this.systems.push(t),t}))},{key:"EasyScore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.factory=this,new _EasyScore(e)}},{key:"PedalMarking",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=setDefaults$1(e,{notes:[],options:{style:"mixed"}});var t=new _PedalMarking(e.notes);return t.setStyle(_PedalMarking.StylesString[e.options.style]),t.setContext(this.context),this.renderQ.push(t),t}},{key:"NoteSubGroup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=setDefaults$1(e,{notes:[],options:{}});var t=new NoteSubGroup$1(e.notes);return t.setContext(this.context),t}},{key:"draw",value:function(){var e=this;this.systems.forEach((function(t){return t.setContext(e.context).format()})),this.staves.forEach((function(t){return t.setContext(e.context).draw()})),this.voices.forEach((function(t){return t.setContext(e.context).draw()})),this.renderQ.forEach((function(t){t.isRendered()||t.setContext(e.context).draw()})),this.systems.forEach((function(t){return t.setContext(e.context).draw()})),this.reset()}}],[{key:"newFromElementId",value:function(t){return new e({renderer:{elementId:t,width:arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,height:arguments.length>2&&void 0!==arguments[2]?arguments[2]:200}})}}]),e}();function setDefaults(e,t){var n=t.options;return(e=Object.assign(t,e)).options=Object.assign(n,e.options),e}var System=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck2(this,n),(e=t.call(this)).setAttribute("type","System"),e.setOptions(r),e.parts=[],e}return _createClass2(n,[{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=setDefaults(e,{x:10,y:10,width:500,connector:null,spaceBetweenStaves:12,factory:null,debugFormatter:!1,formatIterations:0,options:{}}),this.factory=this.options.factory||new Factory({renderer:{el:null}})}},{key:"setContext",value:function(e){return _get(_getPrototypeOf2(n.prototype),"setContext",this).call(this,e),this.factory.setContext(e),this}},{key:"addConnector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"double";return this.connector=this.factory.StaveConnector({top_stave:this.parts[0].stave,bottom_stave:this.parts[this.parts.length-1].stave,type:e}),this.connector}},{key:"addStave",value:function(e){var t=this;return(e=setDefaults(e,{stave:null,voices:[],spaceAbove:0,spaceBelow:0,debugNoteMetrics:!1,options:{left_bar:!1}})).stave||(e.stave=this.factory.Stave({x:this.options.x,y:this.options.y,width:this.options.width,options:e.options})),e.voices.forEach((function(n){return n.setContext(t.context).setStave(e.stave).getTickables().forEach((function(t){return t.setStave(e.stave)}))})),this.parts.push(e),e.stave}},{key:"format",value:function(){var e=this,t=new _Formatter;this.formatter=t;var n=this.options.y,r=0,i=[],a=[];this.parts.forEach((function(o){n+=o.stave.space(o.spaceAbove),o.stave.setY(n),t.joinVoices(o.voices),n+=o.stave.space(o.spaceBelow),n+=o.stave.space(e.options.spaceBetweenStaves),o.debugNoteMetrics&&(a.push({y:n,voice:o.voices[0]}),n+=15),i=i.concat(o.voices),r=Math.max(r,o.stave.getNoteStartX())})),this.parts.forEach((function(e){return e.stave.setNoteStartX(r)}));var o=this.options.width-(r-this.options.x)-Note.STAVEPADDING;t.format(i,o);for(var s=0;s<this.options.formatIterations;s++)t.tune();this.startX=r,this.debugNoteMetricsYs=a,this.lastY=n}},{key:"draw",value:function(){var e=this.checkContext();this.setRendered(),this.options.debugFormatter&&_Formatter.plotDebugging(e,this.formatter,this.startX,this.options.y,this.lastY),this.debugNoteMetricsYs.forEach((function(t){t.voice.getTickables().forEach((function(n){return Note.plotMetrics(e,n,t.y)}))}))}}]),n}(Element$1);Vex.Flow=Flow,Vex.Flow.Element=Element$1,Vex.Flow.Fraction=Fraction,Vex.Flow.Renderer=Renderer,Vex.Flow.Formatter=_Formatter,Vex.Flow.Music=Music,Vex.Flow.Glyph=Glyph,Vex.Flow.Stave=_Stave2,Vex.Flow.StaveNote=_StaveNote3,Vex.Flow.StaveModifier=StaveModifier,Vex.Flow.StaveTempo=StaveTempo,Vex.Flow.Voice=Voice$1,Vex.Flow.Accidental=_Accidental,Vex.Flow.Beam=Beam$1,Vex.Flow.StaveTie=_StaveTie2,Vex.Flow.TabStave=_TabStave,Vex.Flow.TabNote=TabNote$1,Vex.Flow.Bend=Bend,Vex.Flow.Vibrato=Vibrato,Vex.Flow.VibratoBracket=_VibratoBracket,Vex.Flow.Note=Note,Vex.Flow.ModifierContext=_ModifierContext,Vex.Flow.MultiMeasureRest=_MultiMeasureRest,Vex.Flow.TickContext=_TickContext,Vex.Flow.Articulation=Articulation$1,Vex.Flow.Annotation=_Annotation,Vex.Flow.Barline=Barline,Vex.Flow.NoteHead=NoteHead,Vex.Flow.StaveConnector=_StaveConnector,Vex.Flow.ClefNote=_ClefNote,Vex.Flow.KeySignature=KeySignature,Vex.Flow.KeySigNote=_KeySigNote,Vex.Flow.TimeSignature=TimeSignature,Vex.Flow.TimeSigNote=_TimeSigNote,Vex.Flow.Stem=Stem,Vex.Flow.TabTie=TabTie,Vex.Flow.Clef=Clef,Vex.Flow.Dot=Dot,Vex.Flow.Modifier=Modifier,Vex.Flow.TabSlide=TabSlide,Vex.Flow.Tuplet=Tuplet$1,Vex.Flow.GraceNote=_GraceNote,Vex.Flow.GraceTabNote=GraceTabNote,Vex.Flow.Tuning=Tuning,Vex.Flow.KeyManager=KeyManager,Vex.Flow.StaveHairpin=StaveHairpin,Vex.Flow.BoundingBox=BoundingBox,Vex.Flow.Stroke=Stroke,Vex.Flow.TextNote=_TextNote,Vex.Flow.Curve=_Curve,Vex.Flow.TextDynamics=_TextDynamics,Vex.Flow.StaveLine=_StaveLine,Vex.Flow.Ornament=Ornament,Vex.Flow.PedalMarking=_PedalMarking,Vex.Flow.TextBracket=_TextBracket,Vex.Flow.FretHandFinger=FretHandFinger,Vex.Flow.Repetition=Repetition$1,Vex.Flow.BarNote=_BarNote,Vex.Flow.GhostNote=_GhostNote,Vex.Flow.NoteSubGroup=NoteSubGroup$1,Vex.Flow.GraceNoteGroup=_GraceNoteGroup,Vex.Flow.Tremolo=Tremolo,Vex.Flow.StringNumber=_StringNumber,Vex.Flow.Crescendo=Crescendo,Vex.Flow.Volta=Volta,Vex.Flow.Font=Font,Vex.Flow.System=System,Vex.Flow.Factory=Factory,Vex.Flow.Parser=Parser,Vex.Flow.EasyScore=_EasyScore,Vex.Flow.Registry=Registry;var SystemLinesEnum=function(e){return e[e.SingleThin=0]="SingleThin",e[e.DoubleThin=1]="DoubleThin",e[e.ThinBold=2]="ThinBold",e[e.BoldThinDots=3]="BoldThinDots",e[e.DotsThinBold=4]="DotsThinBold",e[e.DotsBoldBoldDots=5]="DotsBoldBoldDots",e[e.None=6]="None",e[e.Dotted=7]="Dotted",e[e.Dashed=8]="Dashed",e[e.Bold=9]="Bold",e[e.BoldThin=10]="BoldThin",e[e.DoubleBold=11]="DoubleBold",e[e.Tick=12]="Tick",e[e.Short=13]="Short",e}(SystemLinesEnum||{}),SystemLinesEnumHelper=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"xmlBarlineStyleToSystemLinesEnum",value:function(e){return"regular"===e?0:"dotted"===e?7:"dashed"===e?8:"heavy"===e?9:"light-light"===e?1:"light-heavy"===e?2:"heavy-light"===e?10:"heavy-heavy"===e?11:"tick"===e?12:"short"===e?13:"none"===e?6:0}}]),e}(),Matrix2D=function(){function e(){_classCallCheck2(this,e),this.matrix=[];for(var t=0;t<2;t++){this.matrix[t]=[];for(var n=0;n<2;n++)this.matrix[t][n]=0}}return _createClass2(e,[{key:"scalarMultiplication",value:function(e){for(var t=0;t<2;t++)for(var n=0;n<2;n++)this.matrix[t][n]*=e}},{key:"getTransposeMatrix",value:function(){for(var t=new e,n=0;n<2;n++)for(var r=0;r<2;r++)t.matrix[n][r]=this.matrix[r][n];return t}},{key:"vectorMultiplication",value:function(e){var t=new PointF2D;return t.x=e.x*this.matrix[0][0]+e.y*this.matrix[0][1],t.y=e.x*this.matrix[1][0]+e.y*this.matrix[1][1],t}}],[{key:"getRotationMatrix",value:function(t){var n=new e,r=Math.cos(t),i=Math.sin(t);return n.matrix[0][0]=r,n.matrix[0][1]=-i,n.matrix[1][0]=i,n.matrix[1][1]=r,n}}]),e}(),MusicSheetErrors=function(){function e(){_classCallCheck2(this,e),this.measureErrors={},this.errors=[],this.tempErrors=[]}return _createClass2(e,[{key:"finalizeMeasure",value:function(e){var t=this.measureErrors[e];t||(t=[]),this.measureErrors[e]=t.concat(this.tempErrors),this.tempErrors=[]}},{key:"pushMeasureError",value:function(e){this.tempErrors.push(e)}},{key:"push",value:function(e){this.errors.push(e)}}]),e}(),Arpeggio=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:7;_classCallCheck2(this,e),this.parentVoiceEntry=t,this.type=n,this.notes=[]}return _createClass2(e,[{key:"addNote",value:function(e){this.notes.push(e),e.Arpeggio=this}}]),e}(),ArpeggioType=function(e){return e[e.BRUSH_DOWN=1]="BRUSH_DOWN",e[e.BRUSH_UP=2]="BRUSH_UP",e[e.ROLL_DOWN=3]="ROLL_DOWN",e[e.ROLL_UP=4]="ROLL_UP",e[e.RASQUEDO_DOWN=5]="RASQUEDO_DOWN",e[e.RASQUEDO_UP=6]="RASQUEDO_UP",e[e.ARPEGGIO_DIRECTIONLESS=7]="ARPEGGIO_DIRECTIONLESS",e}(ArpeggioType||{}),Beam=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck2(this,e),this.notes=[],this.extendedNoteList=[],this.BeamNumberOffsetToXML=0,this.BeamNumber=t,this.BeamNumberOffsetToXML=n}return _createClass2(e,[{key:"Notes",get:function(){return this.notes},set:function(e){this.notes=e}},{key:"ExtendedNoteList",get:function(){return this.extendedNoteList},set:function(e){this.extendedNoteList=e}},{key:"addNoteToBeam",value:function(e){e&&(e.NoteBeam=this,this.notes.push(e),this.extendedNoteList.push(e))}}]),e}(),Voice=function(){function e(t,n){_classCallCheck2(this,e),this.voiceEntries=[],this.volume=1,this.parent=t,this.visible=!0,this.audible=!0,this.following=!0,this.voiceId=n,this.uniqueVoiceId="I:"+this.parent.Id+" V: "+this.voiceId}return _createClass2(e,[{key:"VoiceEntries",get:function(){return this.voiceEntries}},{key:"Parent",get:function(){return this.parent}},{key:"Visible",get:function(){return this.visible},set:function(e){this.visible=e}},{key:"Audible",get:function(){return this.audible},set:function(e){this.audible=e}},{key:"Following",get:function(){return this.following},set:function(e){this.following=e}},{key:"Solo",get:function(){return this.solo},set:function(e){this.solo=e}},{key:"VoiceId",get:function(){return this.voiceId}},{key:"Volume",get:function(){return this.volume},set:function(e){this.volume=e}},{key:"toString",value:function(){return this.uniqueVoiceId}}]),e}(),LinkedVoice=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r)).master=i,a}return _createClass2(n,[{key:"Master",get:function(){return this.master}}]),n}(Voice),Notehead=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;_classCallCheck2(this,e),this.sourceNote=t,this.setShapeFromXml(n,r)}return _createClass2(e,[{key:"setShapeFromXml",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.shape=e.ShapeTypeXmlToShape(t);var r=n;void 0===r&&(this.sourceNote?r=this.sourceNote.Length.Denominator>2:(loglevelExports.warn("notehead: sourceNote and filledXmlAttribute undefined."),r=!0)),this.filled=r}},{key:"SourceNote",get:function(){return this.sourceNote}},{key:"Shape",get:function(){return this.shape}},{key:"Filled",get:function(){return this.filled}}],[{key:"ShapeTypeXmlToShape",value:function(e){switch(e.toLowerCase()){case"normal":return 2;case"x":return 7;case"slash":return 4;case"diamond":return 1;case"square":case"la":return 5;case"do":case"triangle":return 6;case"rectangle":return 3;case"circle-x":return 0;default:return loglevelExports.info("unsupported/unhandled xml notehead '"+e+"'. Using normal notehead."),2}}}]),e}(),NoteHeadShape=function(e){return e[e.CIRCLEX=0]="CIRCLEX",e[e.DIAMOND=1]="DIAMOND",e[e.NORMAL=2]="NORMAL",e[e.RECTANGLE=3]="RECTANGLE",e[e.SLASH=4]="SLASH",e[e.SQUARE=5]="SQUARE",e[e.TRIANGLE=6]="TRIANGLE",e[e.X=7]="X",e}(NoteHeadShape||{}),ITextTranslation=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"translateText",value:function(e,t){if(!this.defaultTextTranslation)return t}}]),e}(),NoteType=function(e){return e[e.UNDEFINED=0]="UNDEFINED",e[e._1024th=1]="_1024th",e[e._512th=2]="_512th",e[e._256th=3]="_256th",e[e._128th=4]="_128th",e[e._64th=5]="_64th",e[e._32nd=6]="_32nd",e[e._16th=7]="_16th",e[e.EIGTH=8]="EIGTH",e[e.QUARTER=9]="QUARTER",e[e.HALF=10]="HALF",e[e.WHOLE=11]="WHOLE",e[e.BREVE=12]="BREVE",e[e.LONG=13]="LONG",e[e.MAXIMA=14]="MAXIMA",e}(NoteType||{}),NoteTypeHandler=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"NoteTypeToString",value:function(e){return this.NoteTypeXmlValues[e]}},{key:"StringToNoteType",value:function(e){var t=this.NoteTypeXmlValues.indexOf(e);return-1!==t?t:0}},{key:"getNoteDurationFromType",value:function(e){switch(e){case"1024th":return new Fraction$1(1,1024);case"512th":return new Fraction$1(1,512);case"256th":return new Fraction$1(1,256);case"128th":return new Fraction$1(1,128);case"64th":return new Fraction$1(1,64);case"32th":case"32nd":return new Fraction$1(1,32);case"16th":return new Fraction$1(1,16);case"eighth":return new Fraction$1(1,8);case"quarter":return new Fraction$1(1,4);case"half":return new Fraction$1(1,2);case"whole":return new Fraction$1(1,1);case"breve":return new Fraction$1(2,1);case"long":return new Fraction$1(4,1);case"maxima":return new Fraction$1(8,1);default:var t=ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid note duration.");throw new MusicSheetReadingException(t)}}}]),e}();NoteTypeHandler.NoteTypeXmlValues=["","1024th","512th","256th","128th","64th","32nd","16th","eigth","quarter","half","whole","breve","long","maxima"];var OrnamentContainer=function(){function e(t){_classCallCheck2(this,e),this.placement=PlacementEnum.Above,this.accidentalAbove=AccidentalEnum.NONE,this.accidentalBelow=AccidentalEnum.NONE,this.ornament=t}return _createClass2(e,[{key:"GetOrnament",get:function(){return this.ornament}},{key:"AccidentalAbove",get:function(){return this.accidentalAbove},set:function(e){this.accidentalAbove=e}},{key:"AccidentalBelow",get:function(){return this.accidentalBelow},set:function(e){this.accidentalBelow=e}}]),e}(),OrnamentEnum=function(e){return e[e.Trill=0]="Trill",e[e.Turn=1]="Turn",e[e.InvertedTurn=2]="InvertedTurn",e[e.DelayedTurn=3]="DelayedTurn",e[e.DelayedInvertedTurn=4]="DelayedInvertedTurn",e[e.Mordent=5]="Mordent",e[e.InvertedMordent=6]="InvertedMordent",e}(OrnamentEnum||{}),VerticalSourceStaffEntryContainer=function(){function e(t,n,r){_classCallCheck2(this,e),this.staffEntries=[],this.comments=[],this.timestamp=n,this.staffEntries=new Array(r),this.parentMeasure=t}return _createClass2(e,[{key:"$get$",value:function(e){return this.staffEntries[e]}},{key:"$set$",value:function(e,t){this.staffEntries[e]=t}},{key:"Timestamp",get:function(){return this.timestamp},set:function(e){this.timestamp=e}},{key:"StaffEntries",get:function(){return this.staffEntries},set:function(e){this.staffEntries=e}},{key:"Comments",get:function(){return this.comments},set:function(e){this.comments=e}},{key:"ParentMeasure",get:function(){return this.parentMeasure},set:function(e){this.parentMeasure=e}},{key:"getAbsoluteTimestamp",value:function(){return Fraction$1.plus(this.timestamp,this.parentMeasure.AbsoluteTimestamp)}}]),e}(),SourceStaffEntry=function(){function e(t,n){_classCallCheck2(this,e),this.voiceEntries=[],this.instructions=[],this.chordSymbolContainers=[],this.verticalContainerParent=t,this.parentStaff=n}return _createClass2(e,[{key:"ParentStaff",get:function(){return this.parentStaff}},{key:"VerticalContainerParent",get:function(){return this.verticalContainerParent}},{key:"Timestamp",get:function(){if(this.VerticalContainerParent)return this.VerticalContainerParent.Timestamp}},{key:"AbsoluteTimestamp",get:function(){if(this.VerticalContainerParent)return Fraction$1.plus(this.VerticalContainerParent.ParentMeasure.AbsoluteTimestamp,this.VerticalContainerParent.Timestamp)}},{key:"VoiceEntries",get:function(){return this.voiceEntries},set:function(e){this.voiceEntries=e}},{key:"Link",get:function(){return this.staffEntryLink},set:function(e){this.staffEntryLink=e}},{key:"Instructions",get:function(){return this.instructions},set:function(e){this.instructions=e}},{key:"ChordContainers",get:function(){return this.chordSymbolContainers},set:function(e){this.chordSymbolContainers=e}},{key:"removeAllInstructionsOfTypeClefInstruction",value:function(){for(var e=0,t=0;e<this.instructions.length;)this.instructions[e]instanceof ClefInstruction?(this.instructions.splice(e,1),t++):e++;return t}},{key:"removeFirstInstructionOfTypeClefInstruction",value:function(){for(var e=0;e<this.instructions.length;e++)if(this.instructions[e]instanceof ClefInstruction)return this.instructions.splice(e,1),!0;return!1}},{key:"removeAllInstructionsOfTypeKeyInstruction",value:function(){for(var e=0,t=0;e<this.instructions.length;)this.instructions[e]instanceof KeyInstruction?(this.instructions.splice(e,1),t++):e++;return t}},{key:"removeFirstInstructionOfTypeKeyInstruction",value:function(){for(var e=0;e<this.instructions.length;e++)if(this.instructions[e]instanceof KeyInstruction)return this.instructions.splice(e,1),!0;return!1}},{key:"removeAllInstructionsOfTypeRhythmInstruction",value:function(){for(var e=0,t=0;e<this.instructions.length;)this.instructions[e]instanceof RhythmInstruction?(this.instructions.splice(e,1),t++):e++;return t}},{key:"removeFirstInstructionOfTypeRhythmInstruction",value:function(){for(var e=0;e<this.instructions.length;e++)if(this.instructions[e]instanceof RhythmInstruction)return this.instructions.splice(e,1),!0;return!1}},{key:"calculateMinNoteLength",value:function(){for(var e=new Fraction$1(Number.MAX_VALUE,1),t=0,n=this.VoiceEntries.length;t<n;++t)for(var r=this.VoiceEntries[t],i=0,a=r.Notes.length;i<a;++i){var o=r.Notes[i];o.Length.lt(e)&&(e=o.Length)}return e}},{key:"calculateMaxNoteLength",value:function(){for(var e=new Fraction$1(0,1),t=0,n=this.VoiceEntries.length;t<n;++t)for(var r=this.VoiceEntries[t],i=0,a=r.Notes.length;i<a;++i){var o=r.Notes[i];if(o.NoteTie){var s,l=Fraction$1.createFromFraction(o.Length),u=!1,c=_createForOfIteratorHelper(o.NoteTie.Notes);try{for(c.s();!(s=c.n()).done;){var h=s.value;h!==o?u&&l.Add(h.Length):u=!0}}catch(err){c.e(err)}finally{c.f()}e.lt(l)&&(e=l)}else e.lt(o.Length)&&(e=o.Length)}return e}},{key:"hasNotes",value:function(){for(var e=0,t=this.VoiceEntries.length;e<t;++e){if(this.VoiceEntries[e].Notes.length>0)return!0}return!1}},{key:"hasTie",value:function(){for(var e=0,t=this.VoiceEntries.length;e<t;++e){if(this.VoiceEntries[e].hasTie())return!0}return!1}},{key:"findLinkedNotes",value:function(e){for(var t=0,n=this.voiceEntries.length;t<n;++t)for(var r=this.voiceEntries[t],i=0,a=r.Notes.length;i<a;++i){var o=r.Notes[i];o.ParentStaffEntry===this&&e.push(o)}}},{key:"hasOnlyRests",get:function(){var e,t=_createForOfIteratorHelper(this.voiceEntries);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.Notes);try{for(r.s();!(n=r.n()).done;){if(!n.value.isRest)return!1}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}return!0}}]),e}(),RepetitionInstructionComparer=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"Compare",value:function(e,t){if(void 0!==e.parentRepetition&&t.parentRepetition){if(1===e.alignment&&1===t.alignment){if(e.parentRepetition.StartIndex<t.parentRepetition.StartIndex)return 1;if(e.parentRepetition.StartIndex>t.parentRepetition.StartIndex)return-1}if(0===e.alignment&&0===t.alignment){if(e.parentRepetition.EndIndex<t.parentRepetition.EndIndex)return 1;if(e.parentRepetition.EndIndex>t.parentRepetition.EndIndex)return-1}}return 0}}]),e}(),RepetitionInstruction=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;_classCallCheck2(this,e),this.endingIndices=void 0,this.measureIndex=t,a&&(this.endingIndices=a.slice()),this.type=n,this.alignment=r,this.parentRepetition=i}return _createClass2(e,[{key:"CompareTo",value:function(e){var t=e;if(this.measureIndex>t.measureIndex)return 1;if(this.measureIndex<t.measureIndex)return-1;if(0===this.alignment){if(1===t.alignment)return-1;switch(this.type){case 3:return 1;case 0:return 3===t.type?-1:1;case 12:case 13:return 12===t.type?1:-1}}else{if(0===t.alignment)return 1;switch(this.type){case 3:return-1;case 6:case 7:return 3===t.type?1:-1;case 1:switch(t.type){case 3:case 6:case 7:return 1}return-1;case 8:case 9:case 10:case 11:case 4:case 5:case 2:return 1}}return 0}},{key:"equals",value:function(e){if(this.measureIndex!==e.measureIndex||this.type!==e.type||this.alignment!==e.alignment)return!1;if(this.endingIndices===e.endingIndices)return!0;if(!this.endingIndices||!e.endingIndices||this.endingIndices.length!==e.endingIndices.length)return!1;for(var t=0;t<this.endingIndices.length;t++)if(this.endingIndices[t]!==e.endingIndices[t])return!1;return!0}}]),e}(),RepetitionInstructionEnum=function(e){return e[e.StartLine=0]="StartLine",e[e.ForwardJump=1]="ForwardJump",e[e.BackJumpLine=2]="BackJumpLine",e[e.Ending=3]="Ending",e[e.DaCapo=4]="DaCapo",e[e.DalSegno=5]="DalSegno",e[e.Fine=6]="Fine",e[e.ToCoda=7]="ToCoda",e[e.DalSegnoAlFine=8]="DalSegnoAlFine",e[e.DaCapoAlFine=9]="DaCapoAlFine",e[e.DalSegnoAlCoda=10]="DalSegnoAlCoda",e[e.DaCapoAlCoda=11]="DaCapoAlCoda",e[e.Coda=12]="Coda",e[e.Segno=13]="Segno",e[e.None=14]="None",e}(RepetitionInstructionEnum||{}),AlignmentType=function(e){return e[e.Begin=0]="Begin",e[e.End=1]="End",e}(AlignmentType||{}),prevSourceMeasure=null,SourceMeasure=function(){function e(t,n){_classCallCheck2(this,e),this.printNewSystemXml=!1,this.printNewPageXml=!1,this.IsSystemStartMeasure=!1,this.hasLyrics=!1,this.hasMoodExpressions=!1,this.allRests=!1,this.isReducedToMultiRest=!1,this.multipleRestMeasureNumber=0,this.staffLinkedExpressions=[],this.tempoExpressions=[],this.verticalSourceStaffEntryContainers=[],this.graphicalMeasureErrors=[],this.firstRepetitionInstructions=[],this.lastRepetitionInstructions=[],this.metronomeNoteIndex=0,this.completeNumberOfStaves=t,this.implicitMeasure=!1,this.hasEndLine=!1,this.endingBarStyleXml="",this.endingBarStyleEnum=SystemLinesEnum.SingleThin,this.firstInstructionsStaffEntries=new Array(t),this.lastInstructionsStaffEntries=new Array(t),this.rules=n,this.TempoInBPM=0;for(var r=0;r<t;r++)this.graphicalMeasureErrors.push(!1),this.staffLinkedExpressions.push([])}return _createClass2(e,[{key:"MeasureNumber",get:function(){return this.measureNumber},set:function(e){this.measureNumber=e}},{key:"getPrintedMeasureNumber",value:function(){return this.rules.UseXMLMeasureNumbers&&Number.isInteger(this.MeasureNumberXML)?(this.MeasureNumberPrinted=this.MeasureNumberXML,this.MeasureNumberPrinted):(this.MeasureNumberPrinted=this.MeasureNumber,this.MeasureNumberPrinted)}},{key:"AbsoluteTimestamp",get:function(){return this.absoluteTimestamp},set:function(e){this.absoluteTimestamp=e}},{key:"CompleteNumberOfStaves",get:function(){return this.completeNumberOfStaves}},{key:"Duration",get:function(){return this.duration},set:function(e){this.duration=e}},{key:"ActiveTimeSignature",get:function(){return this.activeTimeSignature},set:function(e){this.activeTimeSignature=e}},{key:"ImplicitMeasure",get:function(){return this.implicitMeasure},set:function(e){this.implicitMeasure=e}},{key:"HasEndLine",get:function(){return this.hasEndLine},set:function(e){this.hasEndLine=e}},{key:"StaffLinkedExpressions",get:function(){return this.staffLinkedExpressions}},{key:"TempoExpressions",get:function(){return this.tempoExpressions}},{key:"VerticalSourceStaffEntryContainers",get:function(){return this.verticalSourceStaffEntryContainers}},{key:"FirstInstructionsStaffEntries",get:function(){return this.firstInstructionsStaffEntries}},{key:"LastInstructionsStaffEntries",get:function(){return this.lastInstructionsStaffEntries}},{key:"FirstRepetitionInstructions",get:function(){return this.firstRepetitionInstructions}},{key:"LastRepetitionInstructions",get:function(){return this.lastRepetitionInstructions}},{key:"getErrorInMeasure",value:function(e){return this.graphicalMeasureErrors[e]}},{key:"setErrorInGraphicalMeasure",value:function(e,t){this.graphicalMeasureErrors[e]=t}},{key:"getNextMeasure",value:function(e){return e[this.measureListIndex+1]}},{key:"getPreviousMeasure",value:function(e){if(this.measureListIndex>1)return e[this.measureListIndex-1]}},{key:"Rules",get:function(){return this.rules}},{key:"VerticalMeasureList",get:function(){return this.verticalMeasureList},set:function(e){this.verticalMeasureList=e}},{key:"TempoInBPM",get:function(){return this.tempoInBPM},set:function(e){this.tempoInBPM=e}},{key:"findOrCreateStaffEntry",value:function(e,t,n){var r,i,a=void 0,o=_createForOfIteratorHelper(this.verticalSourceStaffEntryContainers);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.Timestamp.Equals(e)){r=s;break}}}catch(err){o.e(err)}finally{o.f()}if(r)return r.StaffEntries[t]?a=r.StaffEntries[t]:(a=new SourceStaffEntry(r,n),r.StaffEntries[t]=a),{createdNewContainer:!1,staffEntry:a};var l=this.verticalSourceStaffEntryContainers[this.verticalSourceStaffEntryContainers.length-1];if(0===this.verticalSourceStaffEntryContainers.length||l.Timestamp.lt(e)){var u=new VerticalSourceStaffEntryContainer(this,e.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.push(u),a=new SourceStaffEntry(u,n),u.StaffEntries[t]=a}else for(var c=this.verticalSourceStaffEntryContainers.length-1;c>=0;c--){if(this.verticalSourceStaffEntryContainers[c].Timestamp.lt(e)){var h=new VerticalSourceStaffEntryContainer(this,e.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.splice(c+1,0,h),a=new SourceStaffEntry(h,n),h.StaffEntries[t]=a;break}if(0===c){var d=new VerticalSourceStaffEntryContainer(this,e.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.splice(c,0,d),a=new SourceStaffEntry(d,n),d.StaffEntries[t]=a;break}}return{createdNewContainer:!0,staffEntry:a}}},{key:"findOrCreateVoiceEntry",value:function(e,t){var n,r=void 0,i=!1,a=_createForOfIteratorHelper(e.VoiceEntries);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.ParentVoice===t){r=o;break}}}catch(err){a.e(err)}finally{a.f()}return r||(r=new VoiceEntry(e.Timestamp,t,e),i=!0),{createdVoiceEntry:i,voiceEntry:r}}},{key:"getPreviousSourceStaffEntryFromIndex",value:function(e,t){for(var n=t-1;n>=0;n--)if(this.verticalSourceStaffEntryContainers[n][e])return this.verticalSourceStaffEntryContainers[n][e]}},{key:"getVerticalContainerIndexByTimestamp",value:function(e){for(var t=0,n=this.VerticalSourceStaffEntryContainers.length;t<n;++t)if(this.VerticalSourceStaffEntryContainers[t].Timestamp.Equals(e))return t;return-1}},{key:"getVerticalContainerByTimestamp",value:function(e){for(var t=0,n=this.VerticalSourceStaffEntryContainers.length;t<n;++t){var r=this.VerticalSourceStaffEntryContainers[t];if(r.Timestamp.Equals(e))return r}}},{key:"checkForEmptyVerticalContainer",value:function(e){for(var t=0,n=0;n<this.completeNumberOfStaves;n++)this.verticalSourceStaffEntryContainers[e][n]||t++;t===this.completeNumberOfStaves&&this.verticalSourceStaffEntryContainers.splice(e,1)}},{key:"reverseCheck",value:function(e,t){for(var n=new Fraction$1(0,1),r=[],i=0;i<e.Instruments.length;i++){for(var a=new Fraction$1(0,1),o=e.getGlobalStaffIndexOfFirstStaff(e.Instruments[i]),s=0;s<e.Instruments[i].Staves.length;s++){var l=this.getLastSourceStaffEntryForInstrument(o+s);if(void 0!==l&&!l.hasTie())for(var u=this.verticalSourceStaffEntryContainers.indexOf(l.VerticalContainerParent)-1;u>=0;u--){var c=this.verticalSourceStaffEntryContainers[u][o+s];if(void 0!==c&&c.hasTie()&&a.lt(Fraction$1.plus(c.Timestamp,c.calculateMaxNoteLength()))){a=Fraction$1.plus(c.Timestamp,c.calculateMaxNoteLength());break}}}r.push(a)}for(var h=0,d=r.length;h<d;++h){var f=r[h];n.lt(f)&&(n=f)}return Fraction$1.max(n,t)}},{key:"calculateInstrumentsDuration",value:function(e,t){for(var n=[],r=0;r<e.Instruments.length;r++){for(var i=new Fraction$1(0,1),a=e.getGlobalStaffIndexOfFirstStaff(e.Instruments[r]),o=0;o<e.Instruments[r].Staves.length;o++){var s=this.getLastSourceStaffEntryForInstrument(a+o);void 0!==s&&s.Timestamp&&i.lt(Fraction$1.plus(s.Timestamp,s.calculateMaxNoteLength()))&&(i=Fraction$1.plus(s.Timestamp,s.calculateMaxNoteLength()))}i.lt(t[r])&&(i=t[r]),n.push(i)}return n}},{key:"getEntriesPerStaff",value:function(e){var t,n=[],r=_createForOfIteratorHelper(this.VerticalSourceStaffEntryContainers);try{for(r.s();!(t=r.n()).done;){var i=t.value.StaffEntries[e];i&&n.push(i)}}catch(err){r.e(err)}finally{r.f()}return n}},{key:"hasBeginInstructions",value:function(){for(var e=0,t=this.FirstInstructionsStaffEntries.length;e<t;e++){var n=this.FirstInstructionsStaffEntries[e];if(void 0!==n&&n.Instructions.length>0)return!0}return!1}},{key:"beginsWithLineRepetition",value:function(){for(var e=0,t=this.FirstRepetitionInstructions.length;e<t;++e){var n=this.FirstRepetitionInstructions[e];if(n.type===RepetitionInstructionEnum.StartLine)return!0;if(void 0!==n.parentRepetition&&n===n.parentRepetition.startMarker&&!n.parentRepetition.FromWords)return!0}return!1}},{key:"endsWithLineRepetition",value:function(){for(var e=0,t=this.LastRepetitionInstructions.length;e<t;++e){var n=this.LastRepetitionInstructions[e];if(n.type===RepetitionInstructionEnum.BackJumpLine)return!0;var r=n.parentRepetition;if(r&&!r.FromWords)for(var i=0,a=r.BackwardJumpInstructions.length;i<a;++i){if(n===r.BackwardJumpInstructions[i])return!0}}return!1}},{key:"beginsWithWordRepetition",value:function(){for(var e=0,t=this.FirstRepetitionInstructions.length;e<t;++e){var n=this.FirstRepetitionInstructions[e];if(void 0!==n.parentRepetition&&n===n.parentRepetition.startMarker&&n.parentRepetition.FromWords)return!0}return!1}},{key:"endsWithWordRepetition",value:function(){for(var e=0,t=this.LastRepetitionInstructions.length;e<t;++e){var n=this.LastRepetitionInstructions[e],r=n.parentRepetition;if(r&&r.FromWords){for(var i=0,a=r.BackwardJumpInstructions.length;i<a;++i){if(n===r.BackwardJumpInstructions[i])return!0}if(n===r.forwardJumpInstruction)return!0}}return!1}},{key:"beginsRepetitionEnding",value:function(){var e,t=_createForOfIteratorHelper(this.FirstRepetitionInstructions);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.type===RepetitionInstructionEnum.Ending&&n.alignment===AlignmentType.Begin)return!0}}catch(err){t.e(err)}finally{t.f()}return!1}},{key:"endsRepetitionEnding",value:function(){var e,t=_createForOfIteratorHelper(this.LastRepetitionInstructions);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.type===RepetitionInstructionEnum.Ending&&n.alignment===AlignmentType.End)return!0}}catch(err){t.e(err)}finally{t.f()}return!1}},{key:"getKeyInstruction",value:function(e){if(this.FirstInstructionsStaffEntries[e])for(var t=this.FirstInstructionsStaffEntries[e],n=0,r=t.Instructions.length;n<r;++n){var i=t.Instructions[n];if(i instanceof KeyInstruction)return i}}},{key:"getLastSourceStaffEntryForInstrument",value:function(e){for(var t,n=this.verticalSourceStaffEntryContainers.length-1;n>=0&&!(t=this.verticalSourceStaffEntryContainers[n].StaffEntries[e]);n--);return t}},{key:"canBeReducedToMultiRest",value:function(){var e,t,n,r,i,a,o,s,l,u=!0,c=!1,h=_createForOfIteratorHelper(this.verticalSourceStaffEntryContainers);try{for(h.s();!(l=h.n()).done;){var d=l.value;if(d){var f,p=_createForOfIteratorHelper(d.StaffEntries);try{for(p.s();!(f=p.n()).done;){var v=f.value;if(v&&v.ParentStaff.ParentInstrument.Visible){if(v.ChordContainers.length>0)return!1;if(v.ParentStaff.hasLyrics&&(c=!0),this.firstRepetitionInstructions.length>0||this.lastRepetitionInstructions.length>0)return!1;var m,g=_createForOfIteratorHelper(v.VoiceEntries);try{for(g.s();!(m=g.n()).done;){var y,b=_createForOfIteratorHelper(m.value.Notes);try{for(b.s();!(y=b.n()).done;){if(!y.value.isRest()){u=!1;break}}}catch(err){b.e(err)}finally{b.f()}if(!u)break}}catch(err){g.e(err)}finally{g.f()}}}}catch(err){p.e(err)}finally{p.f()}}}}catch(err){h.e(err)}finally{h.f()}if(!u||c||this.hasMoodExpressions||this.tempoExpressions.length>0)return!1;var A,S=_createForOfIteratorHelper(this.staffLinkedExpressions);try{for(S.s();!(A=S.n()).done;){if(A.value.length>0)return!1}}catch(err){S.e(err)}finally{S.f()}var x,w=_createForOfIteratorHelper(this.lastInstructionsStaffEntries);try{for(w.s();!(x=w.n()).done;)for(var _=x.value,E=0,k=null==_?void 0:_.Instructions.length;E<k;++E){if(_.Instructions[E]instanceof ClefInstruction)return!1}}catch(err){w.e(err)}finally{w.f()}return!prevSourceMeasure||(null===(e=prevSourceMeasure)||void 0===e||null===(t=e.ActiveTimeSignature)||void 0===t?void 0:t.Numerator)===(null===(n=this.ActiveTimeSignature)||void 0===n?void 0:n.Numerator)&&(null===(r=prevSourceMeasure)||void 0===r||null===(i=r.ActiveTimeSignature)||void 0===i?void 0:i.Denominator)===(null===(a=this.ActiveTimeSignature)||void 0===a?void 0:a.Denominator)?(prevSourceMeasure=this,(null===(o=this.Duration)||void 0===o?void 0:o.RealValue)===(null===(s=this.ActiveTimeSignature)||void 0===s?void 0:s.RealValue)):(prevSourceMeasure=this,!1)}}]),e}(),Staff=function(){function e(t,n){_classCallCheck2(this,e),this.isTab=!1,this.voices=[],this.volume=1,this.stafflineCount=5,this.hasLyrics=!1,this.openTieDict={},this.parentInstrument=t,this.id=n,this.audible=!0,this.following=!0}return _createClass2(e,[{key:"ParentInstrument",get:function(){return this.parentInstrument},set:function(e){this.parentInstrument=e}},{key:"Voices",get:function(){return this.voices}},{key:"Solo",get:function(){return this.solo},set:function(e){this.solo=e}},{key:"Id",get:function(){return this.id}},{key:"Volume",get:function(){return this.volume},set:function(e){this.volume=e}},{key:"StafflineCount",get:function(){return this.stafflineCount},set:function(e){this.stafflineCount=e}},{key:"toString",value:function(){return"Staff "+this.idInMusicSheet.toString()}}]),e}(),StaffEntryLink=function(){function e(t){_classCallCheck2(this,e),this.linkStaffEntries=[],this.voiceEntry=t}return _createClass2(e,[{key:"GetVoiceEntry",get:function(){return this.voiceEntry}},{key:"LinkStaffEntries",get:function(){return this.linkStaffEntries},set:function(e){this.linkStaffEntries=e}}]),e}(),Tie=function(){function e(t,n){_classCallCheck2(this,e),this.notes=[],this.TieNumber=1,this.TieDirection=PlacementEnum.NotYetDefined,this.NoteIndexToTieDirection={},this.AddNote(t),this.type=n}return _createClass2(e,[{key:"getTieDirection",value:function(e){if(!e)return this.TieDirection;for(var t=0;t<this.Notes.length;t++){if(this.Notes[t]===e){var n=this.NoteIndexToTieDirection[t];return n||this.TieDirection}}return loglevelExports.debug("tie.getTieDuration note not in tie.Notes"),this.TieDirection}},{key:"Notes",get:function(){return this.notes}},{key:"Type",get:function(){return this.type}},{key:"StartNote",get:function(){return this.notes[0]}},{key:"Duration",get:function(){var e,t=new Fraction$1,n=_createForOfIteratorHelper(this.notes);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.Add(r.Length)}}catch(err){n.e(err)}finally{n.f()}return t}},{key:"Pitch",get:function(){return this.StartNote.Pitch}},{key:"AddNote",value:function(e){this.notes.push(e),e.NoteTie=this}}]),e}(),Tuplet=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_classCallCheck2(this,e),this.PlacementFromXml=!1,this.notes=[],this.fractions=[],this.tupletLabelNumber=t,this.bracket=n}return _createClass2(e,[{key:"TupletLabelNumber",get:function(){return this.tupletLabelNumber},set:function(e){this.tupletLabelNumber=e}},{key:"Notes",get:function(){return this.notes},set:function(e){this.notes=e}},{key:"Fractions",get:function(){return this.fractions},set:function(e){this.fractions=e}},{key:"Bracket",get:function(){return this.bracket},set:function(e){this.bracket=e}},{key:"getNoteIndex",value:function(e){for(var t=this.notes.length-1;t>=0;t--)for(var n=0;n<this.notes[t].length;n++)if(e===this.notes[t][n])return t;return 0}}]),e}(),TechnicalInstructionType=function(e){return e[e.Fingering=0]="Fingering",e[e.String=1]="String",e}(TechnicalInstructionType||{}),TechnicalInstruction=_createClass2((function e(){_classCallCheck2(this,e)})),PlaybackNote=function(){function e(t,n){if(_classCallCheck2(this,e),this.parentEntry=t,this.parentNote=n,this.ParentNote.PlaybackNote=this,this.Length=this.ParentNote.Length,void 0!==n.Pitch){var r=this.ParentNote.ParentStaff.ParentInstrument.MidiInstrumentId===MidiInstrument.Percussion;this.MidiKey=r?e.noteToMidiDrumKey(n):n.Pitch.getHalfTone()+12}else this.MidiKey=0}return _createClass2(e,[{key:"setLength",value:function(){void 0!==this.ParentNote.NoteTie&&this.ParentNote.NoteTie.StartNote===this.ParentNote&&(this.Length=this.ParentNote.NoteTie.Duration)}},{key:"ParentEntry",get:function(){return this.parentEntry}},{key:"ParentNote",get:function(){return this.parentNote}}],[{key:"noteToMidiDrumKey",value:function(e){var t,n=e.Pitch.getHalfTone()-12,r=null===(t=e.Notehead)||void 0===t?void 0:t.Shape;switch(e.Pitch.Octave){case 1:switch(e.Pitch.FundamentalNote){case NoteEnum.D:return 44;case NoteEnum.E:return 35;case NoteEnum.F:return 36;case NoteEnum.G:return 41;case NoteEnum.A:return 43;case NoteEnum.B:return r===NoteHeadShape.TRIANGLE?54:47;default:return n}case 2:switch(e.Pitch.FundamentalNote){case NoteEnum.C:return r===NoteHeadShape.X?37:38;case NoteEnum.D:return r===NoteHeadShape.X?59:48;case NoteEnum.E:switch(r){case NoteHeadShape.X:return 42;case NoteHeadShape.CIRCLEX:return 46;case NoteHeadShape.TRIANGLE:return 56;default:return 50}case NoteEnum.F:return r===NoteHeadShape.DIAMOND?53:51;case NoteEnum.G:switch(r){case NoteHeadShape.CIRCLEX:case NoteHeadShape.DIAMOND:return 46;default:return 42}case NoteEnum.A:return 49;case NoteEnum.B:return 57;default:return n}case 3:return e.Pitch.FundamentalNote===NoteEnum.C?r===NoteHeadShape.CIRCLEX?52:55:n;default:return n}}}]),e}(),PlaybackEntry=function(){function e(t){_classCallCheck2(this,e),this.notes=[],this.TimestampShift=new Fraction$1,this.parentVoiceEntry=t;var n,r=_createForOfIteratorHelper(t.Notes);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.Notes.push(new PlaybackNote(this,i))}}catch(err){r.e(err)}finally{r.f()}}return _createClass2(e,[{key:"ParentVoiceEntry",get:function(){return this.parentVoiceEntry}},{key:"Notes",get:function(){return this.notes}},{key:"Length",get:function(){if(this.Notes.length>0)return this.Notes[0].Length},set:function(e){var t,n=_createForOfIteratorHelper(this.Notes);try{for(n.s();!(t=n.n()).done;){t.value.Length=e}}catch(err){n.e(err)}finally{n.f()}}},{key:"HasNotes",get:function(){return this.Notes.length>0}}]),e}(),VoiceEntry=function(){function e(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(_classCallCheck2(this,e),this.notes=[],this.graceVoiceEntriesBefore=[],this.graceVoiceEntriesAfter=[],this.articulations=[],this.playbackEntries=[],this.technicalInstructions=[],this.lyricsEntries=new Dictionary,this.wantedStemDirection=-1,this.stemDirectionXml=-1,this.stemDirection=-1,this.timestamp=t,this.parentVoice=n,this.parentSourceStaffEntry=r,this.isGrace=a,this.graceAfterMainNote=!1,this.graceNoteSlash=o,this.graceSlur=s,a||n.VoiceEntries.push(this),i&&void 0!==r){var l=r.VoiceEntries;-1===l.indexOf(this)&&l.push(this)}this.mainPlaybackEntry=new PlaybackEntry(this),this.PlaybackEntries.push(this.mainPlaybackEntry)}return _createClass2(e,[{key:"ParentSourceStaffEntry",get:function(){return this.parentSourceStaffEntry}},{key:"ParentVoice",get:function(){return this.parentVoice}},{key:"Timestamp",get:function(){return this.timestamp},set:function(e){this.timestamp=e}},{key:"Notes",get:function(){return this.notes}},{key:"addNote",value:function(e){this.notes.push(e),e.isRest()||void 0!==e.NoteTie&&e.NoteTie.StartNote!==e||this.MainPlaybackEntry.Notes.push(new PlaybackNote(this.MainPlaybackEntry,e))}},{key:"GraceVoiceEntriesBefore",get:function(){return this.graceVoiceEntriesBefore},set:function(e){this.graceVoiceEntriesBefore=e;var t,n=_createForOfIteratorHelper(this.graceVoiceEntriesBefore);try{for(n.s();!(t=n.n()).done;){t.value.parentSourceStaffEntry=this.ParentSourceStaffEntry}}catch(err){n.e(err)}finally{n.f()}}},{key:"GraceVoiceEntriesAfter",get:function(){return this.graceVoiceEntriesAfter},set:function(e){this.graceVoiceEntriesAfter=e;var t,n=_createForOfIteratorHelper(this.graceVoiceEntriesAfter);try{for(n.s();!(t=n.n()).done;){t.value.parentSourceStaffEntry=this.ParentSourceStaffEntry}}catch(err){n.e(err)}finally{n.f()}}},{key:"IsGrace",get:function(){return this.isGrace},set:function(e){this.isGrace=e}},{key:"GraceAfterMainNote",get:function(){return this.graceAfterMainNote},set:function(e){this.graceAfterMainNote=e}},{key:"GraceNoteSlash",get:function(){return this.graceNoteSlash},set:function(e){this.graceNoteSlash=e}},{key:"GraceSlur",get:function(){return this.graceSlur},set:function(e){this.graceSlur=e}},{key:"Articulations",get:function(){return this.articulations}},{key:"PlaybackEntries",get:function(){return this.playbackEntries}},{key:"Fermata",get:function(){return this.fermata}},{key:"MainPlaybackEntry",get:function(){return this.mainPlaybackEntry},set:function(e){this.mainPlaybackEntry=e}},{key:"removeMainPlaybackEntry",value:function(){void 0!==this.mainPlaybackEntry&&this.removePlaybackEntry(this.mainPlaybackEntry)}},{key:"removePlaybackEntry",value:function(e){this.mainPlaybackEntry===e&&(this.mainPlaybackEntry=void 0);var t=this.playbackEntries.indexOf(e);t>-1&&this.playbackEntries.splice(t,1)}},{key:"TechnicalInstructions",get:function(){return this.technicalInstructions}},{key:"LyricsEntries",get:function(){return this.lyricsEntries}},{key:"Arpeggio",get:function(){return this.arpeggio},set:function(e){this.arpeggio=e}},{key:"OrnamentContainer",get:function(){return this.ornamentContainer},set:function(e){this.ornamentContainer=e}},{key:"WantedStemDirection",get:function(){return this.wantedStemDirection},set:function(e){this.wantedStemDirection=e}},{key:"StemDirectionXml",get:function(){return this.stemDirectionXml},set:function(e){this.stemDirectionXml=e}},{key:"StemDirection",get:function(){return this.stemDirection},set:function(e){this.stemDirection=e}},{key:"StemColorXml",get:function(){return this.stemColorXml},set:function(e){this.stemColorXml=e}},{key:"StemColor",get:function(){return this.stemColor},set:function(e){this.stemColor=e}},{key:"VolumeModifier",get:function(){return this.volumeModifier},set:function(e){this.volumeModifier=e}},{key:"DurationModifier",get:function(){return this.durationModifier},set:function(e){this.durationModifier=e}},{key:"hasArticulation",value:function(e){var t,n=_createForOfIteratorHelper(this.articulations);try{for(n.s();!(t=n.n()).done;){if(t.value.Equals(e))return!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"hasTie",value:function(){for(var e=0,t=this.Notes.length;e<t;++e){if(this.Notes[e].NoteTie)return!0}return!1}},{key:"hasSlur",value:function(){for(var e=0,t=this.Notes.length;e<t;++e){if(this.Notes[e].NoteSlurs.length>0)return!0}return!1}},{key:"isStaccato",value:function(){var e,t=_createForOfIteratorHelper(this.Articulations);try{for(t.s();!(e=t.n()).done;){if(5===e.value.articulationEnum)return!0}}catch(err){t.e(err)}finally{t.f()}return!1}},{key:"isAccent",value:function(){var e,t=_createForOfIteratorHelper(this.Articulations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(0===n.articulationEnum||1===n.articulationEnum)return!0}}catch(err){t.e(err)}finally{t.f()}return!1}},{key:"getVerseNumberForLyricEntry",value:function(e){var t=1;return this.lyricsEntries.forEach((function(n,r){e===r&&(t=n)})),t}}],[{key:"isSupportedArticulation",value:function(e){switch(e){case 0:case 1:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 26:case 24:return!0;default:return!1}}}]),e}(),ArticulationEnum=function(e){return e[e.accent=0]="accent",e[e.strongaccent=1]="strongaccent",e[e.marcatoup=2]="marcatoup",e[e.marcatodown=3]="marcatodown",e[e.invertedstrongaccent=4]="invertedstrongaccent",e[e.staccato=5]="staccato",e[e.staccatissimo=6]="staccatissimo",e[e.spiccato=7]="spiccato",e[e.tenuto=8]="tenuto",e[e.fermata=9]="fermata",e[e.invertedfermata=10]="invertedfermata",e[e.breathmark=11]="breathmark",e[e.caesura=12]="caesura",e[e.lefthandpizzicato=13]="lefthandpizzicato",e[e.naturalharmonic=14]="naturalharmonic",e[e.snappizzicato=15]="snappizzicato",e[e.upbow=16]="upbow",e[e.downbow=17]="downbow",e[e.scoop=18]="scoop",e[e.plop=19]="plop",e[e.doit=20]="doit",e[e.falloff=21]="falloff",e[e.stress=22]="stress",e[e.unstress=23]="unstress",e[e.detachedlegato=24]="detachedlegato",e[e.otherarticulation=25]="otherarticulation",e[e.bend=26]="bend",e}(ArticulationEnum||{}),StemDirectionType=function(e){return e[e.Undefined=-1]="Undefined",e[e.Up=0]="Up",e[e.Down=1]="Down",e[e.None=2]="None",e[e.Double=3]="Double",e}(StemDirectionType||{}),SystemLinePosition=function(e){return e[e.MeasureBegin=0]="MeasureBegin",e[e.MeasureEnd=1]="MeasureEnd",e}(SystemLinePosition||{}),GraphicalLabel=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return _classCallCheck2(this,n),(o=t.call(this)).label=e,o.boundingBox=new BoundingBox$1(_assertThisInitialized2(o),s),o.label.fontHeight=r,o.label.textAlignment=i,o.rules=a,o.rules.MpatMode&&"TRIO"===o.label.text&&(o.label.fontFamily="Arial"),o}return _createClass2(n,[{key:"Label",get:function(){return this.label}},{key:"toString",value:function(){return"".concat(this.label.text," (").concat(this.boundingBox.RelativePosition.x,",").concat(this.boundingBox.RelativePosition.y,")")}},{key:"setLabelPositionAndShapeBorders",value:function(){var e,t;if(""!==this.Label.text.trim()){this.TextLines=[];for(var n=null!==(e=null===(t=this.rules)||void 0===t?void 0:t.LabelMarginBorderFactor)&&void 0!==e?e:.1,r=this.Label.text.split(/[\n\r]+/g),i=r.length,a=0,o=0;o<i;o++){var s=r[o].trim();if(s&&""!==s){var l=MusicSheetCalculator.TextMeasurer.computeTextWidthToHeightRatio(s,this.Label.font,this.Label.fontStyle,this.label.fontFamily),u=this.Label.fontHeight*l;a=Math.max(a,u),this.TextLines.push({text:s,xOffset:0,width:u})}}var c,h=_createForOfIteratorHelper(this.TextLines);try{for(h.s();!(c=h.n()).done;){var d=c.value,f=0;switch(this.Label.textAlignment){case TextAlignmentEnum.RightBottom:case TextAlignmentEnum.RightCenter:case TextAlignmentEnum.RightTop:f=a-d.width;break;case TextAlignmentEnum.CenterBottom:case TextAlignmentEnum.CenterCenter:case TextAlignmentEnum.CenterTop:f=(a-d.width)/2}d.xOffset=f}}catch(err){h.e(err)}finally{h.f()}var p=this.Label.fontHeight*i;this.rules.SpacingBetweenTextLines>0&&this.TextLines.length>1&&(p+=this.rules.SpacingBetweenTextLines*i/10);var v=this.PositionAndShape;switch(this.Label.textAlignment){case TextAlignmentEnum.CenterBottom:v.BorderTop=-p,v.BorderLeft=-a/2,v.BorderBottom=0,v.BorderRight=a/2;break;case TextAlignmentEnum.CenterCenter:v.BorderTop=-p/2,v.BorderLeft=-a/2,v.BorderBottom=p/2,v.BorderRight=a/2;break;case TextAlignmentEnum.CenterTop:v.BorderTop=0,v.BorderLeft=-a/2,v.BorderBottom=p,v.BorderRight=a/2;break;case TextAlignmentEnum.LeftBottom:v.BorderTop=-p,v.BorderLeft=0,v.BorderBottom=0,v.BorderRight=a;break;case TextAlignmentEnum.LeftCenter:v.BorderTop=-p/2,v.BorderLeft=0,v.BorderBottom=p/2,v.BorderRight=a;break;case TextAlignmentEnum.LeftTop:v.BorderTop=0,v.BorderLeft=0,v.BorderBottom=p,v.BorderRight=a;break;case TextAlignmentEnum.RightBottom:v.BorderTop=-p,v.BorderLeft=-a,v.BorderBottom=0,v.BorderRight=0;break;case TextAlignmentEnum.RightCenter:v.BorderTop=-p/2,v.BorderLeft=-a,v.BorderBottom=p/2,v.BorderRight=0;break;case TextAlignmentEnum.RightTop:v.BorderTop=0,v.BorderLeft=-a,v.BorderBottom=p,v.BorderRight=0}v.BorderMarginTop=v.BorderTop-p*n,v.BorderMarginLeft=v.BorderLeft-p*n,v.BorderMarginBottom=v.BorderBottom+p*n,v.BorderMarginRight=v.BorderRight+p*n}}}]),n}(Clickable),Label=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:TextAlignmentEnum.CenterBottom,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];_classCallCheck2(this,e),this.IsCreditLabel=!1,this.text=t,this.print=i,this.textAlignment=n,this.font=r,this.fontFamily=void 0}return _createClass2(e,[{key:"font",get:function(){return this.fontEnumValue},set:function(e){this.fontEnumValue=e,this.fontFamily=FontStringNames[e]}},{key:"ToString",value:function(){return this.text}}]),e}(),SpeedTag={Grava:40,Largo:46,Lento:52,Adagio:56,Larghetto:60,Andante:66,Anderato:69,Andantino:69,Moderato:88,Allegretto:108,"Allegro Moderato":108,Allegro:132,Vivace:152,Vivo:160,Vivacissimo:168,Presto:184,Prestissimo:208},SpecialMarks=["纯律","纯律结束"],HideWords=["跳过下一个","b","#","§","º","X"],GradientWords=["poco rit.","rall.","rit.","accel.","molto rit.","molto rall","lentando","poco accel.","calando"],GRADIENT_SPEED_CLOSE_TAG="结束范围速度",GRADIENT_SPEED_RESET_TAG="a tempo",SpecialWords=[GRADIENT_SPEED_CLOSE_TAG],SpeedKeyword="速度 ",SpeedHiddenKeyword="仅文本速度 ";function isSpeedKeyword(e){return 0===e.indexOf(SpeedKeyword)}function isSpeedHiddenKeyword(e){return 0===e.indexOf(SpeedHiddenKeyword)}function formatSpeedKeyword(e){return e.replace(SpeedHiddenKeyword,"").replace(SpeedKeyword,"")}function isGradientWords(e){return GradientWords.includes(e)}function isSpecialMark(e){return[].concat(_toConsumableArray2(Object.keys(SpeedTag)),SpecialMarks,SpecialWords,HideWords).map((function(e){return e.trim().toLocaleUpperCase()})).includes(e.toLocaleUpperCase().trim())}function isTopFont(e){return[TextAlignmentEnum.CenterTop,TextAlignmentEnum.RightTop].includes(e)}var MusicSymbol=function(e){return e[e.Unused_first_Symbol=0]="Unused_first_Symbol",e[e.BLACK_HEAD=1]="BLACK_HEAD",e[e.UPWARDS_TAIL=2]="UPWARDS_TAIL",e[e.DOWNWARDS_TAIL=3]="DOWNWARDS_TAIL",e[e.UPWARDS_DOUBLE_TAIL=4]="UPWARDS_DOUBLE_TAIL",e[e.DOWNWARDS_DOUBLE_TAIL=5]="DOWNWARDS_DOUBLE_TAIL",e[e.UPWARDS_TRIPLE_TAIL=6]="UPWARDS_TRIPLE_TAIL",e[e.DOWNWARDS_TRIPLE_TAIL=7]="DOWNWARDS_TRIPLE_TAIL",e[e.UPWARDS_QUAD_TAIL=8]="UPWARDS_QUAD_TAIL",e[e.DOWNWARDS_QUAD_TAIL=9]="DOWNWARDS_QUAD_TAIL",e[e.ROUND_HEAD=10]="ROUND_HEAD",e[e.WHITE_HEAD=11]="WHITE_HEAD",e[e.G_CLEF=12]="G_CLEF",e[e.F_CLEF=13]="F_CLEF",e[e.C_CLEF=14]="C_CLEF",e[e.BREVE=15]="BREVE",e[e.BREVE_REST=16]="BREVE_REST",e[e.COMMON_TIME=17]="COMMON_TIME",e[e.CUT_TIME=18]="CUT_TIME",e[e.WHOLE_REST=19]="WHOLE_REST",e[e.HALF_REST=20]="HALF_REST",e[e.QUARTER_REST=21]="QUARTER_REST",e[e.EIGHTH_REST=22]="EIGHTH_REST",e[e.SIXTEENTH_REST=23]="SIXTEENTH_REST",e[e.THIRTYSECOND_REST=24]="THIRTYSECOND_REST",e[e.SIXTYFOURTH_REST=25]="SIXTYFOURTH_REST",e[e.FLAT=26]="FLAT",e[e.SHARP=27]="SHARP",e[e.NATURAL=28]="NATURAL",e[e.DOUBLE_FLAT=29]="DOUBLE_FLAT",e[e.DOUBLE_SHARP=30]="DOUBLE_SHARP",e[e.ZERO=31]="ZERO",e[e.ONE=32]="ONE",e[e.TWO=33]="TWO",e[e.THREE=34]="THREE",e[e.FOUR=35]="FOUR",e[e.FIVE=36]="FIVE",e[e.SIX=37]="SIX",e[e.SEVEN=38]="SEVEN",e[e.EIGHT=39]="EIGHT",e[e.NINE=40]="NINE",e[e.DOT=41]="DOT",e[e.FERMATA=42]="FERMATA",e[e.INVERTED_FERMATA=43]="INVERTED_FERMATA",e[e.SPICCATO=44]="SPICCATO",e[e.TENUTO=45]="TENUTO",e[e.MARCATO=46]="MARCATO",e[e.MARCATISSIMO=47]="MARCATISSIMO",e[e.INVERTED_MARCATISSIMO=48]="INVERTED_MARCATISSIMO",e[e.P=49]="P",e[e.F=50]="F",e[e.S=51]="S",e[e.Z=52]="Z",e[e.M=53]="M",e[e.R=54]="R",e[e.SEGNO=55]="SEGNO",e[e.CODA=56]="CODA",e[e.DRUM_CLEF=57]="DRUM_CLEF",e[e.G_CLEF_SUB8=58]="G_CLEF_SUB8",e[e.G_CLEF_SUPER8=59]="G_CLEF_SUPER8",e[e.G_CLEF_SUB15=60]="G_CLEF_SUB15",e[e.G_CLEF_SUPER15=61]="G_CLEF_SUPER15",e[e.F_CLEF_SUB8=62]="F_CLEF_SUB8",e[e.F_CLEF_SUPER8=63]="F_CLEF_SUPER8",e[e.F_CLEF_SUB15=64]="F_CLEF_SUB15",e[e.F_CLEF_SUPER15=65]="F_CLEF_SUPER15",e[e.DOWN_BOW=66]="DOWN_BOW",e[e.MORDENT=67]="MORDENT",e[e.INVERTED_MORDENT=68]="INVERTED_MORDENT",e[e.TURN=69]="TURN",e[e.INVERTED_TURN=70]="INVERTED_TURN",e[e.LEFTHAND_PIZZICATO=71]="LEFTHAND_PIZZICATO",e[e.RELEASE_PED=72]="RELEASE_PED",e[e.ENGAGE_PED=73]="ENGAGE_PED",e[e.VA8=74]="VA8",e[e.VB8=75]="VB8",e[e.TRILL=76]="TRILL",e[e.MA15=77]="MA15",e[e.MB15=78]="MB15",e[e.HIGH=79]="HIGH",e[e.PLAY=80]="PLAY",e[e.MIC=81]="MIC",e[e.SNAP_PIZZICATO=82]="SNAP_PIZZICATO",e[e.NATURAL_HARMONIC=83]="NATURAL_HARMONIC",e[e.EditPen=84]="EditPen",e[e.PEDAL_BRACKET=85]="PEDAL_BRACKET",e[e.PEDAL_MIXED=86]="PEDAL_MIXED",e[e.PEDAL_SYMBOL=87]="PEDAL_SYMBOL",e}(MusicSymbol||{}),MusicSymbolDrawingStyle=function(e){return e[e.Normal=0]="Normal",e[e.Disabled=1]="Disabled",e[e.Selected=2]="Selected",e[e.Clickable=3]="Clickable",e[e.PlaybackSymbols=4]="PlaybackSymbols",e[e.FollowSymbols=5]="FollowSymbols",e[e.QFeedbackNotFound=6]="QFeedbackNotFound",e[e.QFeedbackOk=7]="QFeedbackOk",e[e.QFeedbackPerfect=8]="QFeedbackPerfect",e[e.Debug1=9]="Debug1",e[e.Debug2=10]="Debug2",e[e.Debug3=11]="Debug3",e}(MusicSymbolDrawingStyle||{}),PhonicScoreModes=function(e){return e[e.Following=0]="Following",e[e.Midi=1]="Midi",e[e.Manual=2]="Manual",e}(PhonicScoreModes||{}),LabelRenderSpecs=_createClass2((function e(){_classCallCheck2(this,e)})),MusicSheetDrawer=function(){function e(t,n){_classCallCheck2(this,e),this.drawableBoundingBoxElement="None",this.skyLineVisible=!1,this.bottomLineVisible=!1,this.phonicScoreMode=PhonicScoreModes.Manual,this.textMeasurer=t,this.splitScreenLineColor=-1,this.drawingParameters=n,this.rules=n.Rules}return _createClass2(e,[{key:"Mode",set:function(e){this.phonicScoreMode=e}},{key:"drawSheet",value:function(e){if(this.graphicalMusicSheet=e,this.rules=e.ParentMusicSheet.Rules,this.drawSplitScreenLine(),this.drawingParameters.drawCursors){var t,n=_createForOfIteratorHelper(e.Cursors);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r){var i=new BoundingBox$1(r);i.AbsolutePosition=r.Start,i.BorderBottom=r.End.y-r.Start.y,i.BorderRight=r.Width/2,i.BorderLeft=-r.Width/2,this.isVisible(i)&&this.drawLineAsVerticalRectangle(r,GraphicalLayers.Cursor)}}}catch(err){n.e(err)}finally{n.f()}}this.drawingParameters.drawScrollIndicator&&this.drawScrollIndicator();for(var a=Math.min(this.graphicalMusicSheet.MusicPages.length,this.rules.MaxPageToDrawNumber),o=0;o<a;o++){var s=this.graphicalMusicSheet.MusicPages[o];this.drawPage(s)}}},{key:"drawLineAsHorizontalRectangle",value:function(e,t){var n=new RectangleF2D(e.Start.x,e.End.y-e.Width/2,e.End.x-e.Start.x,e.Width);n=this.applyScreenTransformationForRect(n),this.renderRectangle(n,t,e.styleId,e.colorHex)}},{key:"drawLineAsVerticalRectangle",value:function(e,t){var n=e.Start,r=e.Width,i=new RectangleF2D(n.x-r/2,n.y,r,e.End.y-n.y);i=this.applyScreenTransformationForRect(i),this.renderRectangle(i,t,e.styleId)}},{key:"drawLineAsHorizontalRectangleWithOffset",value:function(e,t,n){var r=new PointF2D(e.Start.x+t.x,e.Start.y+t.y),i=new PointF2D(e.End.x+t.x,e.End.y+t.y),a=e.Width,o=new RectangleF2D(r.x,i.y-a/2,i.x-r.x,a);o=this.applyScreenTransformationForRect(o),this.renderRectangle(o,n,e.styleId)}},{key:"drawLineAsVerticalRectangleWithOffset",value:function(e,t,n){var r=new PointF2D(e.Start.x+t.x,e.Start.y+t.y),i=new PointF2D(e.End.x+t.x,e.End.y+t.y),a=e.Width,o=new RectangleF2D(r.x,r.y,a,i.y-r.y);o=this.applyScreenTransformationForRect(o),this.renderRectangle(o,n,e.styleId)}},{key:"drawRectangle",value:function(e,t){var n=e.PositionAndShape,r=new RectangleF2D(n.AbsolutePosition.x,n.AbsolutePosition.y,n.BorderRight,n.BorderBottom);r=this.applyScreenTransformationForRect(r),this.renderRectangle(r,t,e.style)}},{key:"drawLabel",value:function(e,t){var n,r,i,a=this.graphicalMusicSheet.GetNearestNote(e.PositionAndShape.AbsolutePosition);if(this.isVisible(e.PositionAndShape)){var o=e.Label;if(""!==o.text.trim()){var s=this.calculateLabel(e),l=this.applyScreenTransformation(e.PositionAndShape.AbsolutePosition),u=e.PositionAndShape.Parent.DataObject;if(this.rules.MetronomeMarksDrawn&&1===(null==u||null===(n=u.measures)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.MeasureNumber)&&0===(null==u||null===(i=u.ParentMusicSystem)||void 0===i?void 0:i.Id)&&isTopFont(e.Label.textAlignment)&&(s.ScreenPosition.y-=10),","===o.text){var c,h,d,f,p=0,v=(null===(c=this.graphicalMusicSheet)||void 0===c||null===(h=c.MusicPages)||void 0===h||null===(d=h[0])||void 0===d?void 0:d.MusicSystems)||[];try{for(var m=0;m<v.length;m++){var g=v[m];if(e.PositionAndShape.AbsolutePosition.x<10){console.log(e.PositionAndShape.AbsolutePosition.x);var y=this.graphicalMusicSheet.MeasureList[a.sourceNote.SourceMeasure.MeasureNumber-2];y&&y[0]&&(p=(f=y[0]).PositionAndShape.AbsolutePosition.y-f.PositionAndShape.Size.height/2);break}if(g.PositionAndShape.AbsolutePosition.y-10<e.PositionAndShape.AbsolutePosition.y&&e.PositionAndShape.AbsolutePosition.y<g.PositionAndShape.AbsolutePosition.y+10){for(var b,A,S=(null==g?void 0:g.GraphicalMeasures.map((function(e){return e[0]})).filter(Boolean))||[],x=[],w=!1,_=0;_<S.length;_++){var E,k,C,M=S[_];if(1===(null===(E=M.vfVoices)||void 0===E||null===(k=E[1])||void 0===k||null===(C=k.tickables)||void 0===C?void 0:C.length)&&M.PositionAndShape.AbsolutePosition.x<e.PositionAndShape.AbsolutePosition.x&&e.PositionAndShape.AbsolutePosition.x<M.PositionAndShape.AbsolutePosition.x+M.PositionAndShape.Size.width){f=M,w=!0;break}var P=M.PositionAndShape.AbsolutePosition.x+M.PositionAndShape.Size.width,I=e.PositionAndShape.AbsolutePosition.x;P-15<I&&I<P+15&&x.push({measure:M,x:Math.abs(I-P)})}if(w)break;f=null===(b=x.sort((function(e,t){return e.x-t.x})))||void 0===b||null===(A=b[0])||void 0===A?void 0:A.measure;break}}}catch(U){console.log("🚀 ~ error",U)}var T,B,R=0;if(f)R=(null===(T=f.stave)||void 0===T?void 0:T.end_x)||0;else R=(null===(B=a.sourceNote.SourceMeasure.VerticalMeasureList[0])||void 0===B?void 0:B.getVFStave()).end_x;s.ScreenPosition.x=R,s.ScreenPosition.y=0===p?10*(e.PositionAndShape.Parent.AbsolutePosition.y-3-0):10*p}var L=["C","G","D","A","E","B","F#","C#","G#","F","Bb","Eb","Ab","Db","Gb","Cb","Fb","D#","A#","E#"];L.includes(o.text)&&(s.ScreenPosition.y=10*(e.PositionAndShape.Parent.AbsolutePosition.y+e.PositionAndShape.Parent.BorderTop+e.PositionAndShape.Parent.BorderMarginTop)),["play","listen"].includes(o.text.toLocaleLowerCase())&&o.textAlignment===TextAlignmentEnum.LeftBottom&&(s.ScreenPosition.y=10*(e.PositionAndShape.Parent.AbsolutePosition.y-1+e.PositionAndShape.Parent.BorderBottom));["ffp","p-f","sfzp","szf"].includes(o.text)&&(o.fontStyle=3,"sfzp"===o.text&&(o.fontHeight=2.3)),"R"!=o.text&&"L"!=o.text||(s.ScreenPosition.x+=5),"r"!==o.text&&"l"!==o.text||(s.ScreenPosition.x+=6);var N=e.PositionAndShape.Size.width/2*10;if(l.x-N<e.PositionAndShape.RelativePosition.x&&(s.ScreenPosition.x=10*(e.PositionAndShape.RelativePosition.x+this.rules.PageLeftMargin)),isSpecialMark(e.Label.text||"")&&!L.includes(o.text)&&(e.Label.fontHeight=0),this.rules.MetronomeMarksDrawn&&e.Label.fontHeight>0&&(isTopFont(e.Label.textAlignment)||[TextAlignmentEnum.CenterBottom].includes(e.Label.textAlignment))){var F,D=-1,O=!1,V=_createForOfIteratorHelper((null==u?void 0:u.AbstractExpressions)||[]);try{for(V.s();!(F=V.n()).done;){var z,G,H=F.value;if(H.Label===e)D=null==H||null===(G=H.parentMeasure)||void 0===G?void 0:G.measureListIndex;else null!==(z=H.expression)&&void 0!==z&&z.TempoInBpm&&(O=H.expression.TempoInBpm>0);if(O&&D>-1){s.ScreenPosition.y-=40;break}}}catch(err){V.e(err)}finally{V.f()}}"jianpu"===this.rules.DYMusicScoreType?isNaN(parseInt(e.Label.text,10))&&this.renderLabel(e,t,s):this.renderLabel(e,t,s)}}}},{key:"calculateLabel",value:function(e){var t=new LabelRenderSpecs,n=e.Label,r=new BoundingBox$1(this);r.AbsolutePosition.x=e.PositionAndShape.AbsolutePosition.x,r.AbsolutePosition.y=e.PositionAndShape.AbsolutePosition.y||e.PositionAndShape.Parent.AbsolutePosition.y,t.ScreenPosition=this.applyScreenTransformation(r.AbsolutePosition),t.FontHeightInPixel=this.calculatePixelDistance(n.fontHeight);var i=this.calculatePixelDistance(e.PositionAndShape.Size.width);switch(t.BitmapWidth=Math.ceil(i),t.BitmapHeight=e.TextLines?Math.ceil(t.FontHeightInPixel*(.2+e.TextLines.length)):10,n.textAlignment){case TextAlignmentEnum.LeftTop:t.ScreenPosition.x-=t.BitmapWidth/2,t.ScreenPosition.y+=1.5*t.BitmapHeight;break;case TextAlignmentEnum.LeftCenter:t.ScreenPosition.y-=t.BitmapHeight/2;break;case TextAlignmentEnum.LeftBottom:t.ScreenPosition.y-=t.BitmapHeight;break;case TextAlignmentEnum.CenterTop:t.ScreenPosition.x-=t.BitmapWidth/2;break;case TextAlignmentEnum.CenterCenter:t.ScreenPosition.x-=t.BitmapWidth/2,t.ScreenPosition.y-=t.BitmapHeight/2;break;case TextAlignmentEnum.CenterBottom:t.ScreenPosition.x-=t.BitmapWidth/2,t.ScreenPosition.y-=t.BitmapHeight;break;case TextAlignmentEnum.RightTop:t.ScreenPosition.x-=t.BitmapWidth;break;case TextAlignmentEnum.RightCenter:t.ScreenPosition.x-=t.BitmapWidth,t.ScreenPosition.y-=t.BitmapHeight/2;break;case TextAlignmentEnum.RightBottom:t.ScreenPosition.x-=t.BitmapWidth,t.ScreenPosition.y-=t.BitmapHeight;break;default:throw new ArgumentOutOfRangeException("")}return t}},{key:"applyScreenTransformations",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(this.applyScreenTransformation(i))}}catch(err){r.e(err)}finally{r.f()}return n}},{key:"drawSplitScreenLine",value:function(){}},{key:"renderRectangle",value:function(e,t,n){throw new Error("not implemented")}},{key:"drawScrollIndicator",value:function(){}},{key:"drawSelectionStartSymbol",value:function(e){}},{key:"drawSelectionEndSymbol",value:function(e){}},{key:"renderLabel",value:function(e,t,n){throw new Error("not implemented")}},{key:"renderSystemToScreen",value:function(e,t,n){}},{key:"drawSkyLine",value:function(e){}},{key:"drawBottomLine",value:function(e){}},{key:"drawInstrumentBrace",value:function(e,t){}},{key:"drawGroupBracket",value:function(e,t){}},{key:"isVisible",value:function(e){return!0}},{key:"drawMusicSystem",value:function(e){var t=this.getSystemAbsBoundingRect(e),n=this.getSytemBoundingBoxInPixels(t);this.drawMusicSystemComponents(e,n,t)}},{key:"getSytemBoundingBoxInPixels",value:function(e){var t=this.applyScreenTransformationForRect(e);return t.x=Math.round(t.x),t.y=Math.round(t.y),t}},{key:"getSystemAbsBoundingRect",value:function(e){var t=e.PositionAndShape.BoundingRectangle;return new RectangleF2D(e.PositionAndShape.AbsolutePosition.x+e.PositionAndShape.BorderLeft-1,e.PositionAndShape.AbsolutePosition.y+e.PositionAndShape.BorderTop-1,t.width+6,t.height+2)}},{key:"drawMusicSystemComponents",value:function(e,t,n){var r=this.graphicalMusicSheet.SelectionStartSymbol,i=this.graphicalMusicSheet.SelectionEndSymbol;this.drawingParameters.drawSelectionStartSymbol&&void 0!==r&&this.isVisible(r.PositionAndShape)&&this.drawSelectionStartSymbol(r),this.drawingParameters.drawSelectionEndSymbol&&void 0!==i&&this.isVisible(i.PositionAndShape)&&this.drawSelectionEndSymbol(i);var a,o=_createForOfIteratorHelper(e.StaffLines);try{for(o.s();!(a=o.n()).done;){var s=a.value;this.drawStaffLine(s),this.rules.RenderLyrics&&(s.LyricsDashes.length>0&&this.drawDashes(s.LyricsDashes),s.LyricLines.length>0&&this.drawLyricLines(s.LyricLines,s))}}catch(err){o.e(err)}finally{o.f()}var l,u=_createForOfIteratorHelper(e.SystemLines);try{for(u.s();!(l=u.n()).done;){var c=l.value;this.drawSystemLineObject(c)}}catch(err){u.e(err)}finally{u.f()}if(e.Parent===e.Parent.Parent.MusicPages[0]){var h,d=_createForOfIteratorHelper(e.Labels);try{for(d.s();!(h=d.n()).done;){var f=h.value;f.SVGNode=this.drawLabel(f,GraphicalLayers.Notes)}}catch(err){d.e(err)}finally{d.f()}}var p,v=this.graphicalMusicSheet.ParentMusicSheet.Instruments,m=v.filter((function(e){return e.Visible})).length,g=_createForOfIteratorHelper(e.InstrumentBrackets);try{for(g.s();!(p=g.n()).done;){var y=p.value;this.drawInstrumentBrace(y,e)}}catch(err){g.e(err)}finally{g.f()}if(v.length>0)if(m>1){var b,A=_createForOfIteratorHelper(e.GroupBrackets);try{for(A.s();!(b=A.n()).done;){var S=b.value;this.drawGroupBracket(S,e)}}catch(err){A.e(err)}finally{A.f()}}else{var x,w=_createForOfIteratorHelper(e.GroupBrackets);try{for(w.s();!(x=w.n()).done;){x.value.Visible=!1}}catch(err){w.e(err)}finally{w.f()}}if(!this.leadSheet){var _,E=_createForOfIteratorHelper(e.MeasureNumberLabels);try{for(E.s();!(_=E.n()).done;){var k=_.value;k.SVGNode=this.drawLabel(k,GraphicalLayers.Notes)}}catch(err){E.e(err)}finally{E.f()}}var C,M=_createForOfIteratorHelper(e.StaffLines);try{for(M.s();!(C=M.n()).done;){var P=C.value;this.drawStaffLineSymbols(P)}}catch(err){M.e(err)}finally{M.f()}this.drawingParameters.drawMarkedAreas&&this.drawMarkedAreas(e)}},{key:"activateSystemRendering",value:function(e,t,n,r){return!0}},{key:"drawSystemLineObject",value:function(e){}},{key:"drawStaffLine",value:function(e){var t,n=_createForOfIteratorHelper(e.Measures);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.drawMeasure(r)}}catch(err){n.e(err)}finally{n.f()}this.rules.RenderLyrics&&e.LyricsDashes.length>0&&this.drawDashes(e.LyricsDashes),this.drawOctaveShifts(e),this.drawPedals(e),this.drawWavyLines(e),this.drawExpressions(e),this.skyLineVisible&&this.drawSkyLine(e),this.bottomLineVisible&&this.drawBottomLine(e)}},{key:"drawLyricLines",value:function(e,t){var n=this;t.LyricLines.forEach((function(e){e.Start.y+=t.PositionAndShape.AbsolutePosition.y,e.End.y+=t.PositionAndShape.AbsolutePosition.y,e.Start.x+=t.PositionAndShape.AbsolutePosition.x,e.End.x+=t.PositionAndShape.AbsolutePosition.x,n.drawGraphicalLine(e,n.rules.LyricUnderscoreLineWidth)}))}},{key:"drawExpressions",value:function(e){}},{key:"drawGraphicalLine",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"black";return this.drawLine(e.Start,e.End,n,t)}},{key:"drawLine",value:function(e,t){}},{key:"drawDashes",value:function(e){var t=this;e.forEach((function(e){return e.SVGNode=t.drawLabel(e,GraphicalLayers.Notes)}))}},{key:"drawOctaveShifts",value:function(e){}},{key:"drawStaffLines",value:function(e){if(e.StaffLines)for(var t=e.PositionAndShape.AbsolutePosition,n=0;n<5;n++)this.drawLineAsHorizontalRectangleWithOffset(e.StaffLines[n],t,GraphicalLayers.Notes)}},{key:"drawSymbol",value:function(e,t,n){arguments.length>4&&void 0!==arguments[4]||GraphicalLayers.Notes}},{key:"leadSheet",get:function(){return this.graphicalMusicSheet.LeadSheet},set:function(e){this.graphicalMusicSheet.LeadSheet=e}},{key:"drawPage",value:function(e){if(this.isVisible(e.PositionAndShape)){var t,n=_createForOfIteratorHelper(e.MusicSystems);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.isVisible(r.PositionAndShape)&&this.drawMusicSystem(r)}}catch(err){n.e(err)}finally{n.f()}if(e===e.Parent.MusicPages[0]){var i,a=_createForOfIteratorHelper(e.Labels);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.SVGNode=this.drawLabel(o,GraphicalLayers.Notes)}}catch(err){a.e(err)}finally{a.f()}}this.drawableBoundingBoxElement&&this.drawBoundingBoxes(e.PositionAndShape,0,this.drawableBoundingBoxElement)}}},{key:"drawBoundingBoxes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",i=e.DataObject.constructor.name,a=!1;"all"===r&&(a=!0),(a||i===r)&&this.drawBoundingBox(e,void 0,!0,i,n),n++,e.ChildElements.forEach((function(e){return t.drawBoundingBoxes(e,n,r)}))}},{key:"drawBoundingBox",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=new RectangleF2D(e.AbsolutePosition.x+e.BorderMarginLeft,e.AbsolutePosition.y+e.BorderMarginTop,e.BorderMarginRight-e.BorderMarginLeft,e.BorderMarginBottom-e.BorderMarginTop);n&&(this.drawLineAsHorizontalRectangle(new GraphicalLine(new PointF2D(e.AbsolutePosition.x-1,e.AbsolutePosition.y),new PointF2D(e.AbsolutePosition.x+1,e.AbsolutePosition.y),.1,OutlineAndFillStyleEnum.BaseWritingColor,t),i-1),this.drawLineAsVerticalRectangle(new GraphicalLine(new PointF2D(e.AbsolutePosition.x,e.AbsolutePosition.y-1),new PointF2D(e.AbsolutePosition.x,e.AbsolutePosition.y+1),.1,OutlineAndFillStyleEnum.BaseWritingColor,t),i-1)),a=this.applyScreenTransformationForRect(a);var o=this.renderRectangle(a,GraphicalLayers.Background,i,t,.5);if(r){var s=new Label(r),l=new LabelRenderSpecs;l.BitmapWidth=a.width,l.BitmapHeight=a.height,l.FontHeightInPixel=a.height,l.ScreenPosition=new PointF2D(a.x,a.y+12),this.renderLabel(new GraphicalLabel(s,.8,TextAlignmentEnum.CenterCenter,this.rules),i,l)}return o}},{key:"drawMarkedAreas",value:function(e){var t,n=_createForOfIteratorHelper(e.GraphicalMarkedAreas);try{for(n.s();!(t=n.n()).done;){var r=t.value;r&&(r.systemRectangle&&this.drawRectangle(r.systemRectangle,GraphicalLayers.Background),r.settings&&(r.settings.SVGNode=this.drawLabel(r.settings,GraphicalLayers.Comment)),r.labelRectangle&&this.drawRectangle(r.labelRectangle,GraphicalLayers.Background),r.label&&(r.label.SVGNode=this.drawLabel(r.label,GraphicalLayers.Comment)))}}catch(err){n.e(err)}finally{n.f()}}},{key:"drawStaffLineSymbols",value:function(e){var t=e.ParentStaff.ParentInstrument,n=e.PositionAndShape.AbsolutePosition.x,r=e.PositionAndShape.AbsolutePosition.y+2,i=e.PositionAndShape.BorderRight;t.highlight&&this.drawingParameters.drawHighlights&&this.drawLineAsHorizontalRectangle(new GraphicalLine(new PointF2D(n,r),new PointF2D(n+i,r),4,OutlineAndFillStyleEnum.Highlighted),GraphicalLayers.Highlight);var a=MusicSymbolDrawingStyle.Disabled,o=MusicSymbol.PLAY,s=this.drawingParameters.drawActivitySymbols;switch(this.phonicScoreMode){case PhonicScoreModes.Midi:o=MusicSymbol.PLAY,this.midiPlaybackAvailable&&e.ParentStaff.audible&&(a=MusicSymbolDrawingStyle.PlaybackSymbols);break;case PhonicScoreModes.Following:o=MusicSymbol.MIC,e.ParentStaff.following&&(a=MusicSymbolDrawingStyle.FollowSymbols);break;default:s=!1}if(s){var l=new PointF2D(n+i+2,r);this.drawSymbol(o,a,l)}if(this.drawingParameters.drawErrors){var u,c=_createForOfIteratorHelper(e.Measures);try{for(c.s();!(u=c.n()).done;){var h=u.value,d=h.PositionAndShape,f=d.AbsolutePosition.x,p=d.AbsolutePosition.y+2;h.hasError&&this.graphicalMusicSheet.ParentMusicSheet.DrawErroneousMeasures&&this.drawLineAsHorizontalRectangle(new GraphicalLine(new PointF2D(f,p),new PointF2D(f+d.BorderRight,p),4,OutlineAndFillStyleEnum.ErrorUnderlay),GraphicalLayers.MeasureError)}}catch(err){c.e(err)}finally{c.f()}}}}]),e}(),VexFlowTextMeasurer=function(){function e(t){_classCallCheck2(this,e),this.fontSize=20,this.fontSizeStandard=this.fontSize;var n=document.createElement("canvas");this.context=n.getContext("2d"),this.rules=t}return _createClass2(e,[{key:"computeTextWidthToHeightRatio",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.fontSize;return this.context.font=VexFlowConverter.font(i,n,t,this.rules,r),this.context.measureText(e).width/i}},{key:"setFontSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.fontSizeStandard;return this.fontSize=e,e}}]),e}(),AbstractGraphicalExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this)).expression=r,a.parentMeasure=i,a.boundingBox=new BoundingBox$1(_assertThisInitialized2(a),e.PositionAndShape),a.parentStaffLine=e,a.parentStaffLine.AbstractExpressions.push(_assertThisInitialized2(a)),a.rules=e.ParentMusicSystem.rules,a}return _createClass2(n,[{key:"Label",get:function(){return this.label}},{key:"ParentStaffLine",get:function(){return this.parentStaffLine}},{key:"SourceExpression",get:function(){return this.expression}},{key:"Placement",get:function(){return this.expression.Placement}}]),n}(GraphicalObject),GraphicalInstantaneousTempoExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,r.PositionAndShape.Parent.DataObject,e,e.parentMeasure)).label=r,i}return _createClass2(n,[{key:"GraphicalLabel",get:function(){return this.label}},{key:"updateSkyBottomLine",value:function(){}}]),n}(AbstractGraphicalExpression),GraphicalInstantaneousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,r,e,i.parentSourceMeasure)).mInstantaneousDynamicExpression=e,a.mMeasure=i,a}return _createClass2(n,[{key:"updateSkyBottomLine",value:function(){var e=this.parentStaffLine.SkyBottomLineCalculator,t=this.PositionAndShape.RelativePosition.x+this.PositionAndShape.BorderMarginLeft,n=this.PositionAndShape.RelativePosition.x+this.PositionAndShape.BorderMarginRight,r=0;switch(this.Placement){case PlacementEnum.Above:r=this.PositionAndShape.RelativePosition.y+this.PositionAndShape.BorderMarginTop,e.updateSkyLineInRange(t,n,r);break;case PlacementEnum.Below:r=this.PositionAndShape.RelativePosition.y+this.PositionAndShape.BorderMarginBottom,e.updateBottomLineInRange(t,n,r);break;default:loglevelExports.error("Placement for GraphicalInstantaneousDynamicExpression is unknown")}}}]),n}(AbstractGraphicalExpression),GraphicalContinuousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,r,e,i)).lines=[],a.isSplittedPart=!1,a.notToBeRemoved=!1,a}return _createClass2(n,[{key:"StartMeasure",get:function(){return this.startMeasure},set:function(e){this.startMeasure=e}},{key:"EndMeasure",get:function(){return this.endMeasure},set:function(e){this.endMeasure=e}},{key:"EndStaffLine",get:function(){return this.endMeasure?this.endMeasure.ParentStaffLine:void 0}},{key:"IsSplittedPart",get:function(){return this.isSplittedPart},set:function(e){this.isSplittedPart=e}},{key:"IsVerbal",get:function(){return this.ContinuousDynamic.Label&&this.ContinuousDynamic.Label.length>0}},{key:"NotToBeRemoved",get:function(){return this.notToBeRemoved},set:function(e){this.notToBeRemoved=e}},{key:"Lines",get:function(){return this.lines}},{key:"ContinuousDynamic",get:function(){return this.SourceExpression}},{key:"updateSkyBottomLine",value:function(){var e,t=this.parentStaffLine.SkyBottomLineCalculator,n=this.IsVerbal?this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginLeft:0,r=this.IsVerbal?this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginRight:0;(!this.IsVerbal&&this.lines.length<2&&loglevelExports.warn("Not enough lines for SkyBottomLine calculation"),this.IsVerbal)||this.ContinuousDynamic.DynamicType!==ContDynamicEnum.crescendo&&this.ContinuousDynamic.DynamicType!==ContDynamicEnum.diminuendo&&loglevelExports.warn("GraphicalContinuousDynamicExpression.updateSkyBottomLine(): unhandled continuous dynamic type. start measure: "+(null===(e=this.startMeasure)||void 0===e?void 0:e.MeasureNumber));switch(this.Placement){case PlacementEnum.Above:if(this.IsVerbal){var i=this.label.PositionAndShape.BorderMarginTop+this.label.PositionAndShape.RelativePosition.y;t.updateSkyLineInRange(n,r,i)}else this.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?t.updateSkyLineWithWedge(this.lines[0].Start,this.lines[0].End):this.ContinuousDynamic.DynamicType===ContDynamicEnum.diminuendo&&t.updateSkyLineWithWedge(this.lines[0].End,this.lines[0].Start);break;case PlacementEnum.Below:if(this.IsVerbal){var a=this.label.PositionAndShape.BorderMarginBottom+this.label.PositionAndShape.RelativePosition.y;t.updateBottomLineInRange(n,r,a)}else this.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?t.updateBottomLineWithWedge(this.lines[1].Start,this.lines[1].End):this.ContinuousDynamic.DynamicType===ContDynamicEnum.diminuendo&&t.updateBottomLineWithWedge(this.lines[1].End,this.lines[1].Start);break;default:loglevelExports.error("Placement for GraphicalContinuousDynamicExpression is unknown")}}},{key:"createCrescendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeLineWidth,a=new PointF2D(e,n),o=new PointF2D(t,n-r/2),s=new PointF2D(t,n+r/2);this.addWedgeLines(a,o,s,i)}},{key:"createFirstHalfCrescendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeMeasureEndOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeLineWidth,a=new PointF2D(e,n),o=new PointF2D(t,n-r/2),s=new PointF2D(t,n+r/2);this.addWedgeLines(a,o,s,i)}},{key:"createSecondHalfCrescendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeMeasureBeginOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeOpeningLength,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.rules.WedgeLineWidth,o=new PointF2D(e,n-r/2),s=new PointF2D(e,n+r/2),l=new PointF2D(t,n-i/2),u=new PointF2D(t,n+i/2);this.addDoubleLines(o,l,s,u,a)}},{key:"recalculateCrescendoLines",value:function(e,t,n){var r=Math.abs(this.lines[0].Start.y-this.lines[1].Start.y)>1e-4;this.lines.clear(),r?this.createSecondHalfCrescendoLines(e,t,n):this.isSplittedPart?this.createFirstHalfCrescendoLines(e,t,n):this.createCrescendoLines(e,t,n)}},{key:"createDiminuendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeLineWidth,a=new PointF2D(e,n-r/2),o=new PointF2D(e,n+r/2),s=new PointF2D(t,n);this.addWedgeLines(s,a,o,i)}},{key:"createFirstHalfDiminuendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeMeasureEndOpeningLength,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.rules.WedgeLineWidth,o=new PointF2D(e,n-r/2),s=new PointF2D(e,n+r/2),l=new PointF2D(t,n-i/2),u=new PointF2D(t,n+i/2);this.addDoubleLines(o,l,s,u,a)}},{key:"createSecondHalfDiminuendoLines",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.rules.WedgeMeasureBeginOpeningLength,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.rules.WedgeLineWidth,a=new PointF2D(e,n-r/2),o=new PointF2D(e,n+r/2),s=new PointF2D(t,n);this.addWedgeLines(s,a,o,i)}},{key:"recalculateDiminuendoLines",value:function(e,t,n){var r=Math.abs(this.lines[0].End.y-this.lines[1].End.y)>1e-4;this.lines.clear(),r?this.createFirstHalfDiminuendoLines(e,t,n):this.isSplittedPart?this.createSecondHalfDiminuendoLines(e,t,n):this.createDiminuendoLines(e,t,n)}},{key:"calcPsi",value:function(){this.IsVerbal?this.PositionAndShape.calculateBoundingBox():(this.PositionAndShape.RelativePosition=this.lines[0].Start,this.PositionAndShape.BorderMarginTop=this.lines[0].End.y-this.lines[0].Start.y,this.PositionAndShape.BorderMarginBottom=this.lines[1].End.y-this.lines[1].Start.y,this.PositionAndShape.Center.y=(this.PositionAndShape.BorderMarginTop+this.PositionAndShape.BorderMarginBottom)/2,this.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?(this.PositionAndShape.BorderMarginLeft=0,this.PositionAndShape.BorderMarginRight=this.lines[0].End.x-this.lines[0].Start.x):(this.PositionAndShape.BorderMarginLeft=this.lines[0].End.x-this.lines[0].Start.x,this.PositionAndShape.BorderMarginRight=0))}},{key:"cleanUp",value:function(){this.lines.clear()}},{key:"shiftYPosition",value:function(e){this.IsVerbal?(this.PositionAndShape.RelativePosition.y+=e,this.PositionAndShape.calculateBoundingBox()):(this.lines[0].Start.y+=e,this.lines[0].End.y+=e,this.lines[1].End.y+=e)}},{key:"squeeze",value:function(e){this.IsVerbal||(Math.abs(this.lines[0].End.x-this.lines[0].Start.x)<Math.abs(e)||(this.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?e>0?this.lines[0].Start.x+=e:(this.lines[0].End.x+=e,this.lines[1].End.x+=e):e<0?this.lines[0].Start.x+=e:(this.lines[0].End.x+=e,this.lines[1].End.x+=e),this.calcPsi()))}},{key:"addWedgeLines",value:function(e,t,n,r){var i=new GraphicalLine(e,t,r),a=new GraphicalLine(e,n,r);this.lines.push(i),this.lines.push(a)}},{key:"addDoubleLines",value:function(e,t,n,r,i){var a=new GraphicalLine(e,t,i),o=new GraphicalLine(n,r,i);this.lines.push(a),this.lines.push(o)}}]),n}(AbstractGraphicalExpression),GraphicalUnknownExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return _classCallCheck2(this,n),(o=t.call(this,e,new AbstractExpression(i),a)).label=r,o.sourceMultiExpression=s,o}return _createClass2(n,[{key:"updateSkyBottomLine",value:function(){var e=this.parentStaffLine.SkyBottomLineCalculator,t=this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginLeft,n=this.label.PositionAndShape.RelativePosition.x+this.label.PositionAndShape.BorderMarginRight;switch(this.Placement){case PlacementEnum.Above:var r=this.label.PositionAndShape.BorderMarginTop+this.label.PositionAndShape.RelativePosition.y;e.updateSkyLineInRange(t,n,r);break;case PlacementEnum.Below:var i=this.label.PositionAndShape.BorderMarginBottom+this.label.PositionAndShape.RelativePosition.y;e.updateBottomLineInRange(t,n,i);break;default:loglevelExports.error("Placement for GraphicalUnknownExpression is unknown")}}}]),n}(AbstractGraphicalExpression),unitInPixels=10,VexFlowMusicSheetDrawer=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new DrawingParameters;return _classCallCheck2(this,n),(e=t.call(this,new VexFlowTextMeasurer(r.Rules),r)).backends=[],e.zoom=1,e.pageIdx=0,e.getDotId=function(e,t){return t?String(e.Label.PositionAndShape.RelativePosition[t]):String(e.Label.PositionAndShape.RelativePosition.x)+String(e.Label.PositionAndShape.RelativePosition.y)},e.hasDot=function(e,t,n,r){var i,a=_createForOfIteratorHelper(t||Object.values(r));try{for(a.s();!(i=a.n()).done;){var o=i.value;if(n)return e.x===o.x&&e.y===o.y;if(e.x===o.x)return!0}}catch(err){a.e(err)}finally{a.f()}return!1},e}return _createClass2(n,[{key:"Zoom",get:function(){return this.zoom}},{key:"Backends",get:function(){return this.backends}},{key:"initializeBackendForPage",value:function(e){this.backend=this.backends[e.PageNumber-1]}},{key:"drawSheet",value:function(e){var t,r,i;"gonville"===this.rules.DefaultVexFlowNoteFont&&(Vex.Flow.DEFAULT_FONT_STACK=[null===(t=Vex.Flow.Fonts)||void 0===t?void 0:t.Gonville,null===(r=Vex.Flow.Fonts)||void 0===r?void 0:r.Bravura,null===(i=Vex.Flow.Fonts)||void 0===i?void 0:i.Custom]);Vex.Flow.STAVE_LINE_THICKNESS=this.rules.StaffLineWidth*unitInPixels,Vex.Flow.STEM_WIDTH=this.rules.StemWidth*unitInPixels,Vex.Flow.DEFAULT_NOTATION_FONT_SCALE=this.rules.VexFlowDefaultNotationFontScale,Vex.Flow.DEFAULT_TAB_FONT_SCALE=this.rules.VexFlowDefaultTabFontScale,this.pageIdx=0;var a,o=_createForOfIteratorHelper(e.MusicPages);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(s.PageNumber>this.rules.MaxPageToDrawNumber)break;var l=this.backends[this.pageIdx];l.graphicalMusicPage=s,l.scale(this.zoom),this.pageIdx+=1}}catch(err){o.e(err)}finally{o.f()}this.pageIdx=0,this.backend=this.backends[0],_get(_getPrototypeOf2(n.prototype),"drawSheet",this).call(this,e)}},{key:"drawPage",value:function(e){e&&(this.backend=this.backends[e.PageNumber-1],_get(_getPrototypeOf2(n.prototype),"drawPage",this).call(this,e),this.pageIdx+=1)}},{key:"clear",value:function(){var e,t=_createForOfIteratorHelper(this.backends);try{for(t.s();!(e=t.n()).done;){e.value.clear()}}catch(err){t.e(err)}finally{t.f()}}},{key:"setZoom",value:function(e){this.zoom=e}},{key:"calculatePixelDistance",value:function(e){return e*unitInPixels}},{key:"drawStaffLine",value:function(e){var t=this.backend.getContext().openGroup();t&&t.classList.add("staffline"),_get(_getPrototypeOf2(n.prototype),"drawStaffLine",this).call(this,e);var r=e.PositionAndShape.AbsolutePosition;this.rules.RenderSlurs&&this.drawSlurs(e,r),this.backend.getContext().closeGroup()}},{key:"drawSlurs",value:function(e,t){for(var n,r=this,i=null===(n=window.GYM)||void 0===n?void 0:n.vfcurveItem,a=function(n){var a=e.GraphicalSlurs[n];if(a.slur.isCrossed())return"continue";if(i&&i.length)try{var o,s,l,u=i.find((function(e,t){return(!e.index||e.index===n)&&e.MeasureNumberXML==a.staffEntries[a.staffEntries.length-1].parentMeasure.MeasureNumber}));if(u)a.bezierEndControlPt.y+=null!=u&&null!==(o=u.bezierEndControlPt)&&void 0!==o&&o.y?u.bezierEndControlPt.y:0,a.bezierEndPt.y+=null!=u&&null!==(s=u.bezierEndPt)&&void 0!==s&&s.y?u.bezierEndPt.y:0,a.bezierStartControlPt.y+=null!=u&&null!==(l=u.bezierStartControlPt)&&void 0!==l&&l.y?u.bezierStartControlPt.y:0}catch(c){console.log(c)}r.drawSlur(a,t)},o=0;o<e.GraphicalSlurs.length;o++)a(o)}},{key:"drawSlur",value:function(e,t){var n,r,i,a,o=[];"jianpu"===this.rules.DYMusicScoreType?((e.placement>0||e.bezierStartPt.y>0)&&(e.bezierStartPt.y=-.8,e.bezierStartControlPt.y=-2.5),n=new PointF2D(e.bezierStartPt.x+t.x,e.bezierStartPt.y+t.y),r=new PointF2D(e.bezierStartControlPt.x+t.x,e.bezierStartControlPt.y+t.y),i=new PointF2D(e.bezierEndControlPt.x+t.x,e.bezierStartControlPt.y+t.y),a=new PointF2D(e.bezierEndPt.x+t.x,e.bezierStartPt.y+t.y)):(n=new PointF2D(e.bezierStartPt.x+t.x,e.bezierStartPt.y+t.y),r=new PointF2D(e.bezierStartControlPt.x+t.x,e.bezierStartControlPt.y+t.y),i=new PointF2D(e.bezierEndControlPt.x+t.x,e.bezierEndControlPt.y+t.y),a=new PointF2D(e.bezierEndPt.x+t.x,e.bezierEndPt.y+t.y)),o.push(this.applyScreenTransformation(n)),o.push(this.applyScreenTransformation(r)),o.push(this.applyScreenTransformation(i)),o.push(this.applyScreenTransformation(a)),e.placement===PlacementEnum.Above?(n.y-=.05,r.y-=.3,i.y-=.3,a.y-=.05):(n.y+=.05,r.y+=.3,i.y+=.3,a.y+=.05),o.push(this.applyScreenTransformation(n)),o.push(this.applyScreenTransformation(r)),o.push(this.applyScreenTransformation(i)),o.push(this.applyScreenTransformation(a)),e.SVGElement=this.backend.renderCurve(o)}},{key:"drawMeasure",value:function(e){e.setAbsoluteCoordinates(e.PositionAndShape.AbsolutePosition.x*unitInPixels,e.PositionAndShape.AbsolutePosition.y*unitInPixels);var t=this.backend.getContext();try{e.draw(t)}catch(a){loglevelExports.warn("VexFlowMusicSheetDrawer.drawMeasure",a)}var n,r=_createForOfIteratorHelper(e.staffEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.drawStaffEntry(i)}}catch(err){r.e(err)}finally{r.f()}}},{key:"drawLine",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000FF",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.2;return e=this.applyScreenTransformation(e),t=this.applyScreenTransformation(t),this.backend.renderLine(e,t,n,r*unitInPixels)}},{key:"DrawOverlayLine",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#FF0000FF",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.2;if(!(!n.PageNumber||n.PageNumber>this.backends.length||n.PageNumber<1)){var a=n.PageNumber-1,o=this.backends[a];return e=this.applyScreenTransformation(e),t=this.applyScreenTransformation(t),o.renderLine(e,t,r,i*unitInPixels)}console.log("VexFlowMusicSheetDrawer.drawOverlayLine: invalid page number / music page number doesn't correspond to an existing backend.")}},{key:"drawSkyLine",value:function(e){var t=e.PositionAndShape.AbsolutePosition,n=e.PositionAndShape.Size.width;this.drawSampledLine(e.SkyLine,t,n)}},{key:"drawBottomLine",value:function(e){var t=new PointF2D(e.PositionAndShape.AbsolutePosition.x,e.PositionAndShape.AbsolutePosition.y),n=e.PositionAndShape.Size.width;this.drawSampledLine(e.BottomLine,t,n,"#0000FFFF")}},{key:"drawSampledLine",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#FF0000FF",i=[],a=0,o=0;o<e.length;o++)e[o]!==a&&(i.push(o),a=e[o]);var s=t;if(i.length>0){var l,u,c=this.rules.SamplingUnit,h=new PointF2D(s.x,s.y),d=new PointF2D(i[0]/c+s.x,s.y);this.drawLine(h,d,r),e[0]>=0&&(l=new PointF2D(i[0]/c+s.x,s.y),u=new PointF2D(i[0]/c+s.x,s.y+e[i[0]]),this.drawLine(l,u,r));for(var f=1;f<i.length;f++)h=new PointF2D(i[f-1]/c+s.x,s.y+e[i[f-1]]),d=new PointF2D(i[f]/c+s.x,s.y+e[i[f-1]]),this.drawLine(h,d,r),l=new PointF2D(i[f]/c+s.x,s.y+e[i[f-1]]),u=new PointF2D(i[f]/c+s.x,s.y+e[i[f]]),this.drawLine(l,u,r);i[i.length-1]<e.length?(h=new PointF2D(i[i.length-1]/c+s.x,s.y+e[i[i.length-1]]),d=new PointF2D(s.x+n,s.y+e[i[i.length-1]]),this.drawLine(h,d,r)):(h=new PointF2D(i[i.length-1]/c+s.x,s.y),d=new PointF2D(s.x+n,s.y),this.drawLine(h,d,r))}else{var p=new PointF2D(s.x,s.y),v=new PointF2D(s.x+n,s.y);this.drawLine(p,v,r)}}},{key:"drawStaffEntry",value:function(e){if(e.FingeringEntries.length>0){var t,n=_createForOfIteratorHelper(e.FingeringEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.SVGNode=this.drawLabel(r,GraphicalLayers.Notes)}}catch(err){n.e(err)}finally{n.f()}}if(void 0!==e.graphicalChordContainers&&e.graphicalChordContainers.length>0){var i,a=_createForOfIteratorHelper(e.graphicalChordContainers);try{for(a.s();!(i=a.n()).done;){var o=i.value.GraphicalLabel;o.SVGNode=this.drawLabel(o,GraphicalLayers.Notes)}}catch(err){a.e(err)}finally{a.f()}}this.rules.RenderLyrics&&e.LyricsEntries.length>0&&this.drawLyrics(e.LyricsEntries,GraphicalLayers.Notes)}},{key:"drawLyrics",value:function(e,t){var n=this;e.forEach((function(e){var r=e.GraphicalLabel;r.SVGNode=n.drawLabel(r,t)}))}},{key:"drawInstrumentBrace",value:function(e,t){e.draw(this.backend.getContext())}},{key:"drawGroupBracket",value:function(e,t){e.draw(this.backend.getContext())}},{key:"drawOctaveShifts",value:function(e){var t,n=_createForOfIteratorHelper(e.OctaveShifts);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r){var i=r,a=this.backend.getContext(),o=i.getTextBracket();o.setContext(a);try{o.draw()}catch(s){loglevelExports.warn(s)}}}}catch(err){n.e(err)}finally{n.f()}}},{key:"drawPedals",value:function(e){var t,n=_createForOfIteratorHelper(e.Pedals);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r){var i=r,a=this.backend.getContext(),o=i.getPedalMarking();o.setContext(a),o.draw()}}}catch(err){n.e(err)}finally{n.f()}}},{key:"drawWavyLines",value:function(e){var t,n=_createForOfIteratorHelper(e.WavyLines);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r){var i=r,a=this.backend.getContext(),o=i.getVibratoBracket();o.setContext(a),o.draw()}}}catch(err){n.e(err)}finally{n.f()}}},{key:"getMaxExpressionsYAndDots",value:function(e){var t,n=[],r=0,i=_createForOfIteratorHelper(e.measures);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a.measureNumber)}}catch(err){i.e(err)}finally{i.f()}var o,s={},l={},u={},c=_createForOfIteratorHelper(e.AbstractExpressions);try{for(c.s();!(o=c.n()).done;){var h=o.value;if(h instanceof GraphicalUnknownExpression&&n.includes(h.parentMeasure.MeasureNumber)){var d=this.getDotId(h),f=this.getDotId(h,"x");l[d]||(l[d]=[]),u[f]||(u[f]=[]),this.hasDot(h.Label.PositionAndShape.RelativePosition,l[d],!0)||(l[d].push(h.Label.PositionAndShape.RelativePosition),u[f].push(h.Label.PositionAndShape.RelativePosition)),s[d]=h.Label.PositionAndShape.RelativePosition}}}catch(err){c.e(err)}finally{c.f()}var p,v=0,m=_createForOfIteratorHelper(e.AbstractExpressions);try{for(m.s();!(p=m.n()).done;){var g,y=p.value,b=null===(g=y.parentMeasure)||void 0===g?void 0:g.MeasureNumber;if(y instanceof GraphicalUnknownExpression&&n.includes(b)){var A,S=null===(A=y.parentMeasure.verticalMeasureList[0])||void 0===A?void 0:A.stave,x=(null==S?void 0:S.end_x)-(null==S?void 0:S.x),w=this.getDotId(y,"x");if(1===(u[w]||[]).length&&v!==b){var _=y.Label.PositionAndShape.AbsolutePosition.y;r=0===r?_:Math.min(r,_)}1!==(u[w]||[]).length&&x/10<y.Label.PositionAndShape.MarginSize.width&&(v=b+1)}}}catch(err){m.e(err)}finally{m.f()}return{maxY:r,dots:s,dotsPoint:l,dotsPointByX:u}}},{key:"drawExpressions",value:function(e){var t,n={},r=[],i=this.getMaxExpressionsYAndDots(e),a=i.maxY,o=i.dotsPointByX,s=_createForOfIteratorHelper(e.AbstractExpressions);try{for(s.s();!(t=s.n()).done;){var l=t.value;if(l instanceof GraphicalInstantaneousDynamicExpression)this.drawInstantaneousDynamic(l);else if(l instanceof GraphicalInstantaneousTempoExpression){var u=l.GraphicalLabel;u.SVGNode=this.drawLabel(u,GraphicalLayers.Notes)}else if(l instanceof GraphicalContinuousDynamicExpression)this.drawContinuousDynamic(l);else if(l instanceof GraphicalUnknownExpression){var c=this.getDotId(l),h=this.getDotId(l,"x");if(1===(o[h]||[]).length);else{var d=l.Label.PositionAndShape.AbsolutePosition.y;n[h]?r.includes(c)||0===n[h]||(l.Label.PositionAndShape.AbsolutePosition.y=d-1):(n[h]=-Math.abs(a-d),l.Label.PositionAndShape.AbsolutePosition.y=d+n[h]),r.push(c)}var f=l.Label;f.SVGNode=this.drawLabel(f,GraphicalLayers.Notes)}else loglevelExports.warn("Unkown type of expression!")}}catch(err){s.e(err)}finally{s.f()}}},{key:"drawInstantaneousDynamic",value:function(e){var t=e.Label;t.SVGNode=this.drawLabel(t,GraphicalLayers.Notes)}},{key:"drawContinuousDynamic",value:function(e){if(e.IsVerbal){var t=e.Label;t.SVGNode=this.drawLabel(t,GraphicalLayers.Notes)}else{try{if(2===e.Lines.length&&Math.abs(e.Lines[0].Start.x-e.Lines[1].Start.x)>1){var n=Math.min.apply(Math,_toConsumableArray2(e.Lines.map((function(e){return e.Start.x}))));e.Lines[0].Start.x=n,e.Lines[1].Start.x=n;var r=[e.Lines[1].Start.y,e.Lines[0].Start.y];e.Lines[0].Start.y=r[0],e.Lines[1].Start.y=r[1],e.Lines[0].End.y+=this.rules.WedgeOpeningLength/2,e.Lines[1].End.y+=this.rules.WedgeOpeningLength}}catch(c){}var i=this.backend.getContext();i.openGroup("lineGroup");var a,o=_createForOfIteratorHelper(e.Lines);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=new PointF2D(e.ParentStaffLine.PositionAndShape.AbsolutePosition.x+s.Start.x,e.ParentStaffLine.PositionAndShape.AbsolutePosition.y+s.Start.y),u=new PointF2D(e.ParentStaffLine.PositionAndShape.AbsolutePosition.x+s.End.x,e.ParentStaffLine.PositionAndShape.AbsolutePosition.y+s.End.y);this.drawLine(l,u,"black",s.Width)}}catch(err){o.e(err)}finally{o.f()}i.closeGroup()}}},{key:"renderLabel",value:function(e,t,n){return this._renderLabel(e,n)}},{key:"_renderLabel",value:function(e,t){if(e.Label.print){var n,r=e.Label.fontHeight*unitInPixels,i=e.Label.font;this.rules.ColoringEnabled&&(n=e.Label.colorDefault,e.Label.color&&(n=e.Label.color.toString()),n||(n=this.rules.DefaultColorLabel));var a,o=e.Label,s=o.fontStyle,l=o.fontFamily;s||(s=this.rules.DefaultFontStyle),l||(l=this.rules.DefaultFontFamily);for(var u=0;u<(null===(c=e.TextLines)||void 0===c?void 0:c.length);u++){var c,h=e.TextLines[u],d=this.calculatePixelDistance(h.xOffset),f=new PointF2D(t.ScreenPosition.x+d,t.ScreenPosition.y),p=this.backend.renderText(r,s,i,h.text,t.FontHeightInPixel,f,n,e.Label.fontFamily);a?a.appendChild(p):a=p,t.ScreenPosition.y=t.ScreenPosition.y+t.FontHeightInPixel,e.TextLines.length>1&&(t.ScreenPosition.y+=this.rules.SpacingBetweenTextLines)}return a}}},{key:"renderRectangle",value:function(e,t,n,r,i){return this.backend.renderRectangle(e,n,r,i)}},{key:"applyScreenTransformation",value:function(e){return new PointF2D(e.x*unitInPixels,e.y*unitInPixels)}},{key:"applyScreenTransformationForRect",value:function(e){return new RectangleF2D(e.x*unitInPixels,e.y*unitInPixels,e.width*unitInPixels,e.height*unitInPixels)}}]),n}(MusicSheetDrawer),VF$c=Vex.Flow,_VexFlowConverter=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"durations",value:function(e,t){for(var n=[],r=e.clone();r.RealValue>0;){var i=r.RealValue;if(i>=2)n.push("1/2"),r.Sub(new Fraction$1(2,1));else if(i>=1)n.push("w"),r.Sub(new Fraction$1(1,1));else if(i<1&&i>=.5){if(t&&i>.5)return["w"];n.push("h"),r.Sub(new Fraction$1(1,2))}else if(i<.5&&i>=.25){if(t&&i>.25)return["h"];n.push("q"),r.Sub(new Fraction$1(1,4))}else if(i<.25&&i>=.125){if(t&&i>.125)return["q"];n.push("8"),r.Sub(new Fraction$1(1,8))}else if(i<.125&&i>=.0625){if(t&&i>.0625)return["8"];n.push("16"),r.Sub(new Fraction$1(1,16))}else if(i<.0625&&i>=.03125){if(t&&i>.03125)return["16"];n.push("32"),r.Sub(new Fraction$1(1,32))}else if(i<.03125&&i>=.015625){if(t&&i>.015625)return["32"];n.push("64"),r.Sub(new Fraction$1(1,64))}else{if(t)return["64"];n.push("128"),r.Sub(new Fraction$1(1,128))}}return n}},{key:"pitch",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=i;void 0===i&&(a=3),t&&void 0===i&&(a=0,n.ClefType===ClefEnum.F&&(a=2),n.ClefType===ClefEnum.C&&(a=2));var o=NoteEnum[e.FundamentalNote].toLowerCase(),s=Pitch.accidentalVexflow(e.Accidental),l=e.Octave-n.OctaveOffset+a,u="";return r&&(u=this.NoteHeadCode(r)),[o+"n/"+l+u,s,n]}},{key:"restToNotePitch",value:function(e,t){var n=e.Octave;switch(t){case ClefEnum.C:case ClefEnum.F:n+=2;case ClefEnum.G:}return new Pitch(e.FundamentalNote,n,AccidentalEnum.NONE)}},{key:"NoteHeadCode",value:function(e){var t=e.Filled?"2":"1";switch(e.Shape){case NoteHeadShape.NORMAL:return"";case NoteHeadShape.DIAMOND:return"/D"+t;case NoteHeadShape.TRIANGLE:return"/T"+t;case NoteHeadShape.X:return"/X"+t;case NoteHeadShape.CIRCLEX:return"/X3";case NoteHeadShape.RECTANGLE:return"/R"+t;case NoteHeadShape.SQUARE:return"/S"+t;case NoteHeadShape.SLASH:default:return""}}},{key:"GhostNotes",value:function(t){var n,r=[],i=_createForOfIteratorHelper(e.durations(t,!1));try{for(i.s();!(n=i.n()).done;){var a=n.value;r.push(new VF$c.GhostNote({duration:a}))}}catch(err){i.e(err)}finally{i.f()}return r}},{key:"StaveNote",value:function(t){var n,r;t.sortForVexflow();var i,a=t.notes,o=t.parentStaffEntry.parentMeasure.parentSourceMeasure.Rules,s=a[0],l=[],u=[],c=s.graphicalNoteLength,h=void 0!==s.sourceNote.NoteTuplet,d=e.durations(c,h)[0];void 0!==s.sourceNote.TypeLength&&s.sourceNote.TypeLength!==c&&0!==s.sourceNote.TypeLength.RealValue&&(d=e.durations(s.sourceNote.TypeLength,h)[0],s.numberOfDots=s.sourceNote.DotsXml);var f,p,v,m=void 0,g=s.numberOfDots,y=!1,b=0,A=!1,S=!1,x=_createForOfIteratorHelper(a);try{for(x.s();!(p=x.n()).done;){var w,_,E=p.value;if(g<E.numberOfDots&&(g=E.numberOfDots),E.sourceNote.isRest()){if(S=!0,E.sourceNote.Pitch){l=[E.vfpitch[0]];break}var k;l=["b/4"];var C=null===(k=E.parentVoiceEntry)||void 0===k?void 0:k.parentVoiceEntry;if(C){for(var M,P,I,T,B,R=null===(M=E.parentVoiceEntry)||void 0===M?void 0:M.parentStaffEntry.parentMeasure.staffEntries,L=void 0,N=void 0,F=-1,D=0;D<R.length;D++){var O;if((null===(O=R[D])||void 0===O?void 0:O.graphicalVoiceEntries[0].parentVoiceEntry)===C){F=D;break}}if(F>=1&&R.length-1>=F+1)if(L=null===(P=R[F-1])||void 0===P||null===(I=P.graphicalVoiceEntries[0])||void 0===I?void 0:I.parentVoiceEntry,N=null===(T=R[F+1])||void 0===T||null===(B=T.graphicalVoiceEntries[0])||void 0===B?void 0:B.parentVoiceEntry,L&&N){var V,z=L.Notes[0],G=N.Notes[0];if(null!==(V=z.NoteBeam)&&void 0!==V&&V.Notes.includes(G)&&1!==G.ParentStaffEntry.ParentStaff.StafflineCount){var H=L.Notes.last().Pitch,U=E.Clef(),j=e.pitch(e.restToNotePitch(H.getTransposedPitch(-2),U.ClefType),!1,U);4===H.FundamentalNote&&(l=[j[0]])}}}c.RealValue===E.sourceNote.SourceMeasure.ActiveTimeSignature.RealValue&&(l="staff"===o.DYMusicScoreType?["d/5"]:["R/5"],d="w",g=0,y=!0,b=o.WholeRestXShiftVexflow*unitInPixels);var Q=_toConsumableArray2(E.sourceNote.ParentStaff.Voices).filter((function(e){return 1!=(null==e?void 0:e.VoiceId)}));if(Q.length){var Y,W=E.parentVoiceEntry.parentStaffEntry.graphicalVoiceEntries,X=E.parentVoiceEntry.parentVoiceEntry.ParentVoice.VoiceId,K=void 0,J=void 0,$=_createForOfIteratorHelper(W);try{for($.s();!(Y=$.n()).done;){var q,Z=_createForOfIteratorHelper(Y.value.notes);try{for(Z.s();!(q=Z.n()).done;){var ee=q.value;if(ee!==E&&!ee.sourceNote.isRest()&&ee.sourceNote.PrintObject){var te=ee.parentVoiceEntry.parentVoiceEntry.WantedStemDirection,ne=1===X||5===X,re=ne?1:-1,ie=ee.sourceNote.Pitch.getHalfTone();(!K||1===re&&ie>K||-1===re&&ie<K)&&(K=ie,J=0,ne&&te===StemDirectionType.Up?J+=7:ne||te!==StemDirectionType.Down?J+=ne?1:2:J+=7,d.includes("8")||te===StemDirectionType.Up&&-1===re&&(J+=1),ee.sourceNote.NoteBeam&&(J+=1),d.includes("w")&&(J=3.5),J+=.5*Math.ceil(o.RestCollisionYPadding),J*=re,E.lineShift=J)}else E.lineShift=-2}}catch(err){Z.e(err)}finally{Z.f()}}}catch(err){$.e(err)}finally{$.f()}if(K>0){var ae=3,oe=E.Clef();switch(oe.ClefType){case ClefEnum.F:ae=5;break;case ClefEnum.C:ae=4}f=Pitch.fromHalftone(K),l=[e.pitch(f,!0,oe,void 0,ae)[0]]}}break}E.sourceNote.Notehead&&E.sourceNote.Notehead.Shape===NoteHeadShape.SLASH&&(A=!0);var se=E.vfpitch;if(null!==(w=se[2])&&void 0!==w&&null!==(_=w.Parent)&&void 0!==_&&_.Instructions)for(var le=0,ue=se[2].Parent.Instructions.length;le<ue;++le){var ce=se[2].Parent.Instructions[le];ce instanceof KeyInstruction&&(i=ce)}if(l.push(se[0]),u.push(se[1]),!m)m=e.Clef(se[2]).type;"percussion"===m&&1===E.sourceNote.ParentStaff.StafflineCount&&(l=["b/4"])}}catch(err){x.e(err)}finally{x.f()}if(!m)try{var he=e.Clef(t.notes[0].clef);"percussion"===(null==he?void 0:he.type)&&1===t.notes[0].sourceNote.ParentStaff.StafflineCount&&(l=["b/4"])}catch(tt){}for(var de=0,fe=g;de<fe;++de)d+="d";A&&(d+="s"),S&&(d+="r");var pe={align_center:y,auto_stem:!1,clef:m,duration:d,keys:l,stem_direction:1,slash:t.GraceSlash,note_size:20,DYMusicScoreType:o.DYMusicScoreType,keyString:e.keySignature(i)},ve=t.notes[0].sourceNote;ve.IsCueNote&&(pe.glyph_font_scale=VF$c.DEFAULT_NOTATION_FONT_SCALE*VF$c.GraceNote.SCALE,pe.stroke_px=VF$c.GraceNote.LEDGER_LINE_OFFSET),t.parentVoiceEntry.IsGrace||t.notes[0].sourceNote.IsCueNote?"jianpu"===o.DYMusicScoreType?(pe.ornament=!0,v=new _NumberedNote(pe)):v=new VF$c.GraceNote(pe):(v="jianpu"===o.DYMusicScoreType?new _NumberedNote(pe):new VF$c.StaveNote(pe)).stagger_same_whole_notes=o.StaggerSameWholeNotes;var me=t.notes[0].lineShift;0!==me&&(v.getKeyProps()[0].line+=me);var ge=t.notes[0].sourceNote.SourceMeasure.MeasureNumberXML;((null===(n=window.GYM)||void 0===n?void 0:n.drumSetMeasures)||[]).includes(ge)&&t.notes[0].sourceNote.isRest()&&1==t.notes[0].sourceNote.ParentVoiceEntry.ParentVoice.VoiceId&&(v.getKeyProps()[0].line=4.5);var ye=null===(r=window.GYM)||void 0===r?void 0:r.customBassDrum;if(ye&&v.isRest()&&("q"===v.getDuration()&&(v.getKeyProps()[0].line=ye),"h"===v.getDuration()&&(v.getKeyProps()[0].line=ye-1)),v.getKeyProps().forEach((function(e,n){var r=e.line;return t.notes[n].staffLine=r})),(o.LedgerLineWidth||o.LedgerLineStrokeStyle)&&(v.ledgerLineStyle||(v.ledgerLineStyle={}),o.LedgerLineWidth&&(v.ledgerLineStyle.lineWidth=o.LedgerLineWidth),o.LedgerLineStrokeStyle&&(v.ledgerLineStyle.strokeStyle=o.LedgerLineStrokeStyle)),o.ColoringEnabled){var be=o.DefaultColorStem,Ae=t.parentVoiceEntry.StemColor;!Ae&&be&&(Ae=be);var Se={fillStyle:Ae,strokeStyle:Ae};Ae&&(v.setStemStyle(Se),v.flag&&o.ColorFlags&&v.setFlagStyle(Se))}if(v.x_shift=b,t.parentVoiceEntry.IsGrace&&t.notes[0].sourceNote.NoteBeam&&(t.parentVoiceEntry.WantedStemDirection=t.notes[0].sourceNote.NoteBeam.Notes[0].ParentVoiceEntry.WantedStemDirection),t.parentVoiceEntry){var xe,we=t.parentVoiceEntry.WantedStemDirection,_e=(null===(xe=window.GYM)||void 0===xe?void 0:xe.stemDirectionNote)||[],Ee=null==_e?void 0:_e.find((function(e){return e.id===t.notes[0].sourceNote.NoteToGraphicalNoteObjectId}));switch(Ee&&"number"==typeof(null==Ee?void 0:Ee.direction)&&(we=Ee.direction),we){case StemDirectionType.Up:v.setStemDirection(VF$c.Stem.UP),t.parentVoiceEntry.StemDirection=StemDirectionType.Up;break;case StemDirectionType.Down:v.setStemDirection(VF$c.Stem.DOWN),t.parentVoiceEntry.StemDirection=StemDirectionType.Down}}for(var ke=0,Ce=a.length;ke<Ce;ke+=1){if(a[ke].setIndex(v,ke),u[ke]){if("###"===u[ke]){v.addAccidental(ke,new VF$c.Accidental("##")),v.addAccidental(ke,new VF$c.Accidental("#"));continue}if("bbs"===u[ke]){v.addAccidental(ke,new VF$c.Accidental("bb")),v.addAccidental(ke,new VF$c.Accidental("b"));continue}v.addAccidental(ke,new VF$c.Accidental(u[ke]))}var Me=a[ke].sourceNote.TremoloStrokes,Pe=a[ke].sourceNote.TremoloType;if(Me>0&&"single"===Pe){var Ie=new VF$c.Tremolo(Me);Ie.extra_stroke_scale=o.TremoloStrokeScale,Ie.y_spacing_scale=o.TremoloYSpacingScale,v&&"w"===v.duration&&v.stem.setExtension(-9),v.addModifier(ke,Ie)}if(Me>0&&"start"===Pe&&this.noteTremoloList.push(v),Me>0&&"stop"===Pe){this.noteTremoloList.push(v);var Te=new VF$c.Tremolo(Me,_toConsumableArray2(this.noteTremoloList));Te.extra_stroke_scale=1.2,Te.y_spacing_scale=1.2,Te.x_shift=-30,v.addModifier(ke,Te),this.noteTremoloList=[]}this.glissandoList.length&&(v.setVibrato(this.glissandoList[0].vfnote[0]),this.glissandoList=[]),"start"===a[ke].sourceNote.glissandoType&&this.glissandoList.push(a[ke])}if(this.slideNote){try{v.setSlideNote(this.slideNote)}catch(tt){console.error(tt)}this.slideNote=null}if("start"===t.notes[0].sourceNote.slideType&&(this.slideNote=v),.25===ve.Length.RealValue&&ve.Notehead&&!1===ve.Notehead.Filled)for(var Be=v.getKeyProps(),Re=0;Re<Be.length;Re++)Be[Re].code="v81";for(var Le=0,Ne=g;Le<Ne;++Le)v.addDotToAll();if(l.length>1){var Fe,De=v.getKeyProps().filter((function(e){return!e.code&&e.line>3}));(null===(Fe=window.GYM)||void 0===Fe?void 0:Fe.stemDirectionNote)||De.length!==l.length||v.setStemDirection(-1)}"jianpu"===o.DYMusicScoreType&&window&&window.sett&&window.sett.keySignature&&v.addAccidental(0,new VF$c.Accidental("#"));try{var Oe,Ve=["b","#","§","º","X"],ze={b:"b","#":"#","§":"n","º":"bb",X:"##"},Ge=_createForOfIteratorHelper(a);try{for(Ge.s();!(Oe=Ge.n()).done;){var He,Ue=Oe.value,je=Ue.sourceNote.voiceEntry.Timestamp,Qe=_createForOfIteratorHelper(Ue.sourceNote.SourceMeasure.StaffLinkedExpressions);try{for(Qe.s();!(He=Qe.n()).done;){var Ye,We=_createForOfIteratorHelper(He.value);try{for(We.s();!(Ye=We.n()).done;){var Xe=Ye.value,Ke=Fraction$1.Equal(je,Xe.Timestamp),Je=Xe.EntriesList.map((function(e){return e.label})).filter((function(e){return Ve.includes(e)})),$e=Je.map((function(e){return ze[e]}));if(Ke){var qe,Ze=_createForOfIteratorHelper($e);try{for(Ze.s();!(qe=Ze.n()).done;){var et=qe.value;et&&v.addAnnotation(0,new VF$c.Annotation(et))}}catch(err){Ze.e(err)}finally{Ze.f()}break}}}catch(err){We.e(err)}finally{We.f()}}}catch(err){Qe.e(err)}finally{Qe.f()}}}catch(err){Ge.e(err)}finally{Ge.f()}}catch(tt){}return v}},{key:"generateArticulations",value:function(e,t,n){if(e&&"GhostNote"!==e.getAttribute("type")){var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=VF$c.Modifier.Position.ABOVE;e.getStemDirection()===VF$c.Stem.UP&&(o=VF$c.Modifier.Position.BELOW);var s=void 0,l=a.articulationEnum;switch(n.ArticulationPlacementFromXML&&(a.placement===PlacementEnum.Above?o=VF$c.Modifier.Position.ABOVE:a.placement===PlacementEnum.Below&&(o=VF$c.Modifier.Position.BELOW)),l){case ArticulationEnum.accent:s=new VF$c.Articulation("a>");break;case ArticulationEnum.downbow:s=new VF$c.Articulation("am"),void 0===a.placement&&(o=VF$c.Modifier.Position.ABOVE);break;case ArticulationEnum.fermata:s=new VF$c.Articulation("a@a"),o=VF$c.Modifier.Position.ABOVE;break;case ArticulationEnum.marcatodown:s=new VF$c.Articulation("a|");break;case ArticulationEnum.marcatoup:s=new VF$c.Articulation("a^");break;case ArticulationEnum.invertedfermata:s=new VF$c.Articulation("a@u"),o=VF$c.Modifier.Position.BELOW;break;case ArticulationEnum.lefthandpizzicato:s=new VF$c.Articulation("a+");break;case ArticulationEnum.naturalharmonic:s=new VF$c.Articulation("ah");break;case ArticulationEnum.snappizzicato:s=new VF$c.Articulation("ao");break;case ArticulationEnum.staccatissimo:s=new VF$c.Articulation("av");break;case ArticulationEnum.staccato:s=new VF$c.Articulation("a.");break;case ArticulationEnum.tenuto:s=new VF$c.Articulation("a-");break;case ArticulationEnum.upbow:s=new VF$c.Articulation("a|"),void 0===a.placement&&(o=VF$c.Modifier.Position.ABOVE);break;case ArticulationEnum.strongaccent:s=new VF$c.Articulation("a^")}if(s){var u,c,h,d,f,p;if(!e.hasStem()&&!e.isRest()&&l==ArticulationEnum.accent&&e.getLineNumber()>=3)o=VF$c.Modifier.Position.ABOVE,null!=e&&null!==(h=e.modifiers)&&void 0!==h&&null!==(d=h.filter((function(e){return["TREMOLO"].includes(e.getCategory().toLocaleUpperCase())})))&&void 0!==d&&d.length&&s.setYShift(-16);if(l===ArticulationEnum.strongaccent)o=VF$c.Modifier.Position.ABOVE,(null===(f=window.GYM)||void 0===f?void 0:f.customArtPosition)&&(1===e.getStemDirection()?o=VF$c.Modifier.Position.ABOVE:(o=VF$c.Modifier.Position.BELOW,s=new VF$c.Articulation("a|")));if((null===(u=window.GYM)||void 0===u?void 0:u.customAccentItem)&&l===ArticulationEnum.accent&&(o=VF$c.Modifier.Position.ABOVE),!(null===(c=window.GYM)||void 0===c?void 0:c.customLefthandpizzicatoItem)||l!==ArticulationEnum.lefthandpizzicato&&l!==ArticulationEnum.naturalharmonic||(o=VF$c.Modifier.Position.ABOVE),l===ArticulationEnum.tenuto&&"w"===e.getDuration())(null===(p=window.GYM)||void 0===p?void 0:p.customTenutoItem)&&(o=VF$c.Modifier.Position.ABOVE);s.setPosition(o),e.addModifier(0,s)}}}catch(err){i.e(err)}finally{i.f()}}}},{key:"generateOrnaments",value:function(e,t){var n=VF$c.Modifier.Position.ABOVE;t.placement===PlacementEnum.Below&&(n=VF$c.Modifier.Position.BELOW);var r=void 0;switch(t.GetOrnament){case OrnamentEnum.DelayedInvertedTurn:(r=new VF$c.Ornament("turn_inverted")).setDelayed(!0);break;case OrnamentEnum.DelayedTurn:(r=new VF$c.Ornament("turn")).setDelayed(!0);break;case OrnamentEnum.InvertedMordent:(r=new VF$c.Ornament("mordent")).setDelayed(!1);break;case OrnamentEnum.InvertedTurn:(r=new VF$c.Ornament("turn_inverted")).setDelayed(!1);break;case OrnamentEnum.Mordent:(r=new VF$c.Ornament("mordent_inverted")).setDelayed(!1);break;case OrnamentEnum.Trill:(r=new VF$c.Ornament("tr")).setDelayed(!1);break;case OrnamentEnum.Turn:(r=new VF$c.Ornament("turn")).setDelayed(!1);break;default:return void loglevelExports.warn("unhandled OrnamentEnum type: "+t.GetOrnament)}r&&(t.AccidentalBelow!==AccidentalEnum.NONE&&r.setLowerAccidental(Pitch.accidentalVexflow(t.AccidentalBelow)),t.AccidentalAbove!==AccidentalEnum.NONE&&r.setUpperAccidental(Pitch.accidentalVexflow(t.AccidentalAbove)),r.setPosition(n),e.addModifier(0,r))}},{key:"StrokeTypeFromArpeggioType",value:function(e){switch(e){case ArpeggioType.ARPEGGIO_DIRECTIONLESS:return VF$c.Stroke.Type.ARPEGGIO_DIRECTIONLESS;case ArpeggioType.BRUSH_DOWN:return VF$c.Stroke.Type.BRUSH_UP;case ArpeggioType.BRUSH_UP:return VF$c.Stroke.Type.BRUSH_DOWN;case ArpeggioType.RASQUEDO_DOWN:return VF$c.Stroke.Type.RASQUEDO_UP;case ArpeggioType.RASQUEDO_UP:return VF$c.Stroke.Type.RASQUEDO_DOWN;case ArpeggioType.ROLL_DOWN:return VF$c.Stroke.Type.ROLL_UP;case ArpeggioType.ROLL_UP:return VF$c.Stroke.Type.ROLL_DOWN;default:return VF$c.Stroke.Type.ARPEGGIO_DIRECTIONLESS}}},{key:"CreateTabNote",value:function(t){var n,r=[],i=t.notes.reverse(),a=[],o=t.notes[0].graphicalNoteLength,s=void 0!==t.notes[0].sourceNote.NoteTuplet,l=e.durations(o,s)[0],u=0,c=_createForOfIteratorHelper(t.notes);try{var h=function(){var e=n.value,t=e.sourceNote,i={str:t.StringNumberTab,fret:t.FretNumber};r.push(i),t.BendArray&&t.BendArray.forEach((function(e){var t,n=e.bendalter-i.fret;t=n>1?"Full":1===n?"1/2":"1/4","up"===e.direction?a.push({type:VF$c.Bend.UP,text:t,width:10}):a.push({type:VF$c.Bend.DOWN,text:t,width:10})})),u<e.numberOfDots&&(u=e.numberOfDots)};for(c.s();!(n=c.n()).done;)h()}catch(err){c.e(err)}finally{c.f()}for(var d=0,f=u;d<f;++d)l+="d";for(var p=new VF$c.TabNote({duration:l,positions:r}),v=0,m=i.length;v<m;v+=1)i[v].setIndex(p,v);return a.forEach((function(e){e.type===VF$c.Bend.UP?p.addModifier(new VF$c.Bend(e.text,!1)):p.addModifier(new VF$c.Bend(e.text,!0))})),p}},{key:"Clef",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";switch("default"!==r&&"small"!==r&&(loglevelExports.warn('Invalid VexFlow clef size "'.concat(r,'" specified. Using "default".')),r="default"),e.ClefType){case ClefEnum.G:switch(e.Line){case 1:t="french";break;case 2:t="treble";break;default:t="treble",loglevelExports.error("Clef ".concat(ClefEnum[e.ClefType]," on line ").concat(e.Line,' not supported by VexFlow. Using default value "').concat(t,'".'))}break;case ClefEnum.F:switch(e.Line){case 4:t="bass";break;case 3:t="baritone-f";break;case 5:t="subbass";break;default:t="bass",loglevelExports.error("Clef ".concat(ClefEnum[e.ClefType]," on line ").concat(e.Line,' not supported by VexFlow. Using default value "').concat(t,'".'))}break;case ClefEnum.C:switch(e.Line){case 3:t="alto";break;case 4:t="tenor";break;case 1:t="soprano";break;case 2:t="mezzo-soprano";break;default:t="alto",loglevelExports.error("Clef ".concat(ClefEnum[e.ClefType]," on line ").concat(e.Line,' not supported by VexFlow. Using default value "').concat(t,'".'))}break;case ClefEnum.percussion:t="percussion";break;case ClefEnum.TAB:t="treble";break;default:loglevelExports.info("bad clef type: "+e.ClefType),t="treble"}return 1===e.OctaveOffset&&"bass"!==t?n="8va":-1===e.OctaveOffset&&(n="8vb"),{type:t,size:r,annotation:n}}},{key:"TimeSignature",value:function(e){var t;switch(e.SymbolEnum){case RhythmSymbolEnum.NONE:t=e.Rhythm.Numerator+"/"+e.Rhythm.Denominator;break;case RhythmSymbolEnum.COMMON:t="C";break;case RhythmSymbolEnum.CUT:t="C|"}return new VF$c.TimeSignature(t)}},{key:"keySignature",value:function(t){if(t){var n;switch(t.Mode){case KeyEnum.minor:n=e.minorMap[t.Key]+"m";break;case KeyEnum.major:case KeyEnum.none:n=e.majorMap[t.Key];break;default:n="C"}return n}}},{key:"line",value:function(e,t){switch(e){case SystemLinesEnum.SingleThin:return t===SystemLinePosition.MeasureBegin?VF$c.StaveConnector.type.SINGLE:VF$c.StaveConnector.type.SINGLE_RIGHT;case SystemLinesEnum.DoubleThin:return VF$c.StaveConnector.type.THIN_DOUBLE;case SystemLinesEnum.ThinBold:return VF$c.StaveConnector.type.BOLD_DOUBLE_RIGHT;case SystemLinesEnum.BoldThinDots:return VF$c.StaveConnector.type.BOLD_DOUBLE_LEFT;case SystemLinesEnum.DotsThinBold:case SystemLinesEnum.DotsBoldBoldDots:return VF$c.StaveConnector.type.BOLD_DOUBLE_RIGHT;case SystemLinesEnum.None:return VF$c.StaveConnector.type.NONE}}},{key:"font",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FontStyles.Regular,n=(arguments.length>2&&void 0!==arguments[2]||Fonts.TimesNewRoman,arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0),r="normal",i="normal",a="'".concat((arguments.length>3?arguments[3]:void 0).DefaultFontFamily,"'");switch(t){case FontStyles.Bold:i="bold";break;case FontStyles.Italic:r="italic";break;case FontStyles.BoldItalic:r="italic",i="bold";case FontStyles.Underlined:}return Fonts.Kokila,n&&"default"!==n&&(a="'".concat(n,"'")),r+" "+i+" "+Math.floor(e)+"px "+a}},{key:"fontStyle",value:function(e){switch(e){case FontStyles.Bold:return"bold";case FontStyles.Italic:return"italic";case FontStyles.BoldItalic:return"italic bold";default:return"normal"}}},{key:"style",value:function(e){return OUTLINE_AND_FILL_STYLE_DICT.getValue(e)}}]),e}(),VexFlowConverter=_VexFlowConverter;VexFlowConverter.majorMap={"-1":"F","-2":"Bb","-3":"Eb","-4":"Ab","-5":"Db","-6":"Gb","-7":"Cb","-8":"Fb",0:"C",1:"G",2:"D",3:"A",4:"E",5:"B",6:"F#",7:"C#",8:"G#"},VexFlowConverter.minorMap={"-1":"D","-2":"G","-3":"C","-4":"F","-5":"Bb","-6":"Eb","-7":"Ab","-8":"Db",0:"A",1:"E",2:"B",3:"F#",4:"C#",5:"G#",6:"D#",7:"A#",8:"E#"},VexFlowConverter.noteTremoloList=[],VexFlowConverter.glissandoList=[],VexFlowConverter.slideNote=null;var OctaveShift=function(){function e(t,n){_classCallCheck2(this,e),this.numberXml=1,this.setOctaveShiftValue(t,n)}return _createClass2(e,[{key:"Type",get:function(){return this.octaveValue},set:function(e){this.octaveValue=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"ParentStartMultiExpression",get:function(){return this.startMultiExpression},set:function(e){this.startMultiExpression=e}},{key:"ParentEndMultiExpression",get:function(){return this.endMultiExpression},set:function(e){this.endMultiExpression=e}},{key:"setOctaveShiftValue",value:function(e,t){this.octaveValue=1===t&&"down"===e?0:1===t&&"up"===e?1:2===t&&"down"===e?2:2===t&&"up"===e?3:4}}],[{key:"getPitchFromOctaveShift",value:function(e,t){if(e){var n=e.Octave;switch(t){case 0:n-=1;break;case 1:n+=1;break;case 2:n-=2;break;case 3:n+=2;break;default:n+=0}return new Pitch(e.FundamentalNote,n,e.Accidental)}}}]),e}(),OctaveEnum=function(e){return e[e.VA8=0]="VA8",e[e.VB8=1]="VB8",e[e.MA15=2]="MA15",e[e.MB15=3]="MB15",e[e.NONE=4]="NONE",e}(OctaveEnum||{}),AbstractTempoExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;return _classCallCheck2(this,n),(o=t.call(this,r)).label=e,o.staffNumber=i,o.parentMultiTempoExpression=a,o}return _createClass2(n,[{key:"Label",get:function(){return this.label},set:function(e){this.label=e}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"ParentMultiTempoExpression",get:function(){return this.parentMultiTempoExpression}}],[{key:"isStringInStringList",value:function(e,t){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(n.stringContainsSeparatedWord(t.toLowerCase().trim(),a.toLowerCase().trim()))return!0}}catch(err){i.e(err)}finally{i.f()}return!1}},{key:"stringContainsSeparatedWord",value:function(e,t){return e===t||-1!==e.indexOf(" "+t)||-1!==e.indexOf(t+" ")}}]),n}(AbstractExpression),_InstantaneousTempoExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a,o){var s;return _classCallCheck2(this,n),(s=t.call(this,e,r,i,o)).setTempoAndTempoType(a),s}return _createClass2(n,[{key:"Label",get:function(){return this.label},set:function(e){this.label=e}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"Enum",get:function(){return this.tempoEnum}},{key:"TempoInBpm",get:function(){return this.tempoInBpm},set:function(e){this.tempoInBpm=e}},{key:"ParentMultiTempoExpression",get:function(){return this.parentMultiTempoExpression}},{key:"getAbsoluteTimestamp",value:function(){return Fraction$1.plus(this.ParentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.ParentMultiTempoExpression.Timestamp)}},{key:"getAbsoluteFloatTimestamp",value:function(){return Fraction$1.plus(this.ParentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.ParentMultiTempoExpression.Timestamp).RealValue}},{key:"setTempoAndTempoType",value:function(e){return this.label?n.isStringInStringList(n.listInstantaneousTempoLarghissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(1)),this.tempoInBpm=e,void(this.tempoEnum=1)):n.isStringInStringList(n.listInstantaneousTempoGrave,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(2)),this.tempoInBpm=e,void(this.tempoEnum=2)):n.isStringInStringList(n.listInstantaneousTempoLento,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(3)),this.tempoInBpm=e,void(this.tempoEnum=3)):n.isStringInStringList(n.listInstantaneousTempoLargo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(4)),this.tempoInBpm=e,void(this.tempoEnum=4)):n.isStringInStringList(n.listInstantaneousTempoLarghetto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(5)),this.tempoInBpm=e,void(this.tempoEnum=5)):n.isStringInStringList(n.listInstantaneousTempoAdagio,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(6)),this.tempoInBpm=e,void(this.tempoEnum=6)):n.isStringInStringList(n.listInstantaneousTempoAdagietto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(7)),this.tempoInBpm=e,void(this.tempoEnum=7)):n.isStringInStringList(n.listInstantaneousTempoAndanteModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(8)),this.tempoInBpm=e,void(this.tempoEnum=8)):n.isStringInStringList(n.listInstantaneousTempoAndante,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(9)),this.tempoInBpm=e,void(this.tempoEnum=9)):n.isStringInStringList(n.listInstantaneousTempoAndantino,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(10)),this.tempoInBpm=e,void(this.tempoEnum=10)):n.isStringInStringList(n.listInstantaneousTempoModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(11)),this.tempoInBpm=e,void(this.tempoEnum=11)):n.isStringInStringList(n.listInstantaneousTempoAllegretto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(12)),this.tempoInBpm=e,void(this.tempoEnum=12)):n.isStringInStringList(n.listInstantaneousTempoAllegroModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(13)),this.tempoInBpm=e,void(this.tempoEnum=13)):n.isStringInStringList(n.listInstantaneousTempoAllegro,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(14)),this.tempoInBpm=e,void(this.tempoEnum=14)):n.isStringInStringList(n.listInstantaneousTempoVivace,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(15)),this.tempoInBpm=e,void(this.tempoEnum=15)):n.isStringInStringList(n.listInstantaneousTempoVivacissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(16)),this.tempoInBpm=e,void(this.tempoEnum=16)):n.isStringInStringList(n.listInstantaneousTempoAllegrissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(17)),this.tempoInBpm=e,void(this.tempoEnum=17)):n.isStringInStringList(n.listInstantaneousTempoPresto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(18)),this.tempoInBpm=e,void(this.tempoEnum=18)):n.isStringInStringList(n.listInstantaneousTempoPrestissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(19)),this.tempoInBpm=e,void(this.tempoEnum=19)):n.isStringInStringList(n.listInstantaneousTempoAddons,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=21)):n.isStringInStringList(n.listInstantaneousTempoChangesGeneral,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=22)):void 0:(this.tempoInBpm=e,void(this.tempoEnum=23))}}],[{key:"getDefaultValueForTempoType",value:function(e){switch(e){case 1:return 20;case 2:return 30;case 3:return 48;case 4:return 52;case 5:return 63;case 6:return 70;case 7:return 75;case 8:return 88;case 9:return 92;case 10:return 96;case 11:return 106;case 12:return 112;case 13:return 118;case 14:return 130;case 15:return 140;case 16:return 155;case 17:return 170;case 18:return 184;case 19:return 200;default:throw new ArgumentOutOfRangeException("tempoEnum")}}},{key:"isInputStringInstantaneousTempo",value:function(e){return!!e&&(n.isStringInStringList(n.listInstantaneousTempoLarghissimo,e)||n.isStringInStringList(n.listInstantaneousTempoGrave,e)||n.isStringInStringList(n.listInstantaneousTempoLento,e)||n.isStringInStringList(n.listInstantaneousTempoLargo,e)||n.isStringInStringList(n.listInstantaneousTempoLarghetto,e)||n.isStringInStringList(n.listInstantaneousTempoAdagio,e)||n.isStringInStringList(n.listInstantaneousTempoAdagietto,e)||n.isStringInStringList(n.listInstantaneousTempoAndanteModerato,e)||n.isStringInStringList(n.listInstantaneousTempoAndante,e)||n.isStringInStringList(n.listInstantaneousTempoAndantino,e)||n.isStringInStringList(n.listInstantaneousTempoModerato,e)||n.isStringInStringList(n.listInstantaneousTempoAllegretto,e)||n.isStringInStringList(n.listInstantaneousTempoAllegroModerato,e)||n.isStringInStringList(n.listInstantaneousTempoAllegro,e)||n.isStringInStringList(n.listInstantaneousTempoVivace,e)||n.isStringInStringList(n.listInstantaneousTempoVivacissimo,e)||n.isStringInStringList(n.listInstantaneousTempoAllegrissimo,e)||n.isStringInStringList(n.listInstantaneousTempoPresto,e)||n.isStringInStringList(n.listInstantaneousTempoPrestissimo,e)||n.isStringInStringList(n.listInstantaneousTempoChangesGeneral,e))}}]),n}(AbstractTempoExpression),InstantaneousTempoExpression=_InstantaneousTempoExpression;InstantaneousTempoExpression.listInstantaneousTempoLarghissimo=["Larghissimo","Sehr breit","very, very slow"],InstantaneousTempoExpression.listInstantaneousTempoGrave=["Grave","Schwer","slow and solemn"],InstantaneousTempoExpression.listInstantaneousTempoLento=["Lento","Lent","Langsam","slowly"],InstantaneousTempoExpression.listInstantaneousTempoLargo=["Largo","Breit","broadly"],InstantaneousTempoExpression.listInstantaneousTempoLarghetto=["Larghetto","Etwas breit","rather broadly"],InstantaneousTempoExpression.listInstantaneousTempoAdagio=["Adagio","Langsam","Ruhig","slow and stately"],InstantaneousTempoExpression.listInstantaneousTempoAdagietto=["Adagietto","Ziemlich ruhig","Ziemlich langsam","rather slow"],InstantaneousTempoExpression.listInstantaneousTempoAndanteModerato=["Andante moderato"],InstantaneousTempoExpression.listInstantaneousTempoAndante=["Andante","Gehend","Schreitend","at a walking pace"],InstantaneousTempoExpression.listInstantaneousTempoAndantino=["Andantino"],InstantaneousTempoExpression.listInstantaneousTempoModerato=["Moderato","Mäßig","Mod�r�","moderately"],InstantaneousTempoExpression.listInstantaneousTempoAllegretto=["Allegretto","fast"],InstantaneousTempoExpression.listInstantaneousTempoAllegroModerato=["Allegro moderato"],InstantaneousTempoExpression.listInstantaneousTempoAllegro=["Allegro","Rapide","Vite","Rasch","Schnell","Fr�hlich"],InstantaneousTempoExpression.listInstantaneousTempoVivace=["Vivace","Lebhaft","Lebendig","lively and fast"],InstantaneousTempoExpression.listInstantaneousTempoVivacissimo=["Vivacissimo","Sehr lebhaft","Sehr lebendig"],InstantaneousTempoExpression.listInstantaneousTempoAllegrissimo=["Allegrissimo","very fast"],InstantaneousTempoExpression.listInstantaneousTempoPresto=["Presto","Sehr schnell","Geschwind"],InstantaneousTempoExpression.listInstantaneousTempoPrestissimo=["Prestissimo","äußerst schnell"],InstantaneousTempoExpression.listInstantaneousTempoChangesGeneral=["tempo primo","a tempo","tempo i","rubato","doppio movimento"],InstantaneousTempoExpression.listInstantaneousTempoAddons=["assai","amoroso","cantabile","con brio","con dolore","con espressione","con fuoco","con moto","con spirito","spiritoso","espressivo","giocoso","giusto","grazioso","lesto","lugubre","maestoso","ma non troppo","marcato","molto","morendo","mosso","non tanto","piu","un poco","poco","quasi","risoluto","scherzando","sostenuto","teneramente","tempo giusto","tranquillo","sehr","lieblich","liebevoll","mit Leidenschaft","mit Liebe","amourös","gesanglich","mit Schwung","mit Feuer","mit Schmerz","mit Ausdruck","mit Bewegung","geistvoll","ausdrucksvoll","freudig","verspielt","angemessen","graziös","mit Grazie","flink","behände","traurig","klagend","majestätisch","aber nicht zu sehr","markant","gemäßigt","viel","sehr","ersterbend","bewegt","nicht zu sehr","mehr","ein wenig","gleichsam","entschlossen","zupackend","heiter","nachdrücklich","getragen","gewichtig","zart","zärtlich","im angemessenen Zeitmaß","ruhig","ein wenig","alla marcia","ad libitum","alla breve"];var TempoEnum=function(e){return e[e.none=0]="none",e[e.larghissimo=1]="larghissimo",e[e.grave=2]="grave",e[e.lento=3]="lento",e[e.largo=4]="largo",e[e.larghetto=5]="larghetto",e[e.adagio=6]="adagio",e[e.adagietto=7]="adagietto",e[e.andanteModerato=8]="andanteModerato",e[e.andante=9]="andante",e[e.andantino=10]="andantino",e[e.moderato=11]="moderato",e[e.allegretto=12]="allegretto",e[e.allegroModerato=13]="allegroModerato",e[e.allegro=14]="allegro",e[e.vivace=15]="vivace",e[e.vivacissimo=16]="vivacissimo",e[e.allegrissimo=17]="allegrissimo",e[e.presto=18]="presto",e[e.prestissimo=19]="prestissimo",e[e.lastRealTempo=20]="lastRealTempo",e[e.addon=21]="addon",e[e.changes=22]="changes",e[e.metronomeMark=23]="metronomeMark",e}(TempoEnum||{}),_MoodExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,r)).label=e,a.staffNumber=i,a.setMoodType(),a}return _createClass2(n,[{key:"Label",get:function(){return this.label},set:function(e){this.label=e}},{key:"Mood",get:function(){return this.moodType},set:function(e){this.moodType=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"setMoodType",value:function(){n.isStringInStringList(n.listMoodAffettuoso,this.label)?this.moodType=0:n.isStringInStringList(n.listMoodAgitato,this.label)?this.moodType=1:n.isStringInStringList(n.listMoodAnimato,this.label)?this.moodType=3:n.isStringInStringList(n.listMoodAppassionato,this.label)?this.moodType=2:n.isStringInStringList(n.listMoodBrillante,this.label)?this.moodType=4:n.isStringInStringList(n.listMoodCantabile,this.label)?this.moodType=5:n.isStringInStringList(n.listMoodDolce,this.label)?this.moodType=6:n.isStringInStringList(n.listMoodEnergico,this.label)?this.moodType=7:n.isStringInStringList(n.listMoodEroico,this.label)?this.moodType=8:n.isStringInStringList(n.listMoodEspressivo,this.label)?this.moodType=9:n.isStringInStringList(n.listMoodFurioso,this.label)?this.moodType=10:n.isStringInStringList(n.listMoodGiocoso,this.label)?this.moodType=11:n.isStringInStringList(n.listMoodGioioso,this.label)?this.moodType=12:n.isStringInStringList(n.listMoodGrandioso,this.label)?this.moodType=14:n.isStringInStringList(n.listMoodGrazioso,this.label)?this.moodType=15:n.isStringInStringList(n.listMoodLacrimoso,this.label)?this.moodType=13:n.isStringInStringList(n.listMoodLeggiero,this.label)?this.moodType=16:n.isStringInStringList(n.listMoodMaestoso,this.label)?this.moodType=17:n.isStringInStringList(n.listMoodMalinconico,this.label)?this.moodType=18:n.isStringInStringList(n.listMoodMarcato,this.label)?this.moodType=19:n.isStringInStringList(n.listMoodMarziale,this.label)?this.moodType=20:n.isStringInStringList(n.listMoodMesto,this.label)?this.moodType=21:n.isStringInStringList(n.listMoodMorendo,this.label)?this.moodType=22:n.isStringInStringList(n.listMoodNobilmente,this.label)?this.moodType=23:n.isStringInStringList(n.listMoodPatetico,this.label)?this.moodType=24:n.isStringInStringList(n.listMoodPesante,this.label)?this.moodType=25:n.isStringInStringList(n.listMoodSaltando,this.label)?this.moodType=27:n.isStringInStringList(n.listMoodSautille,this.label)?this.moodType=26:n.isStringInStringList(n.listMoodScherzando,this.label)?this.moodType=28:n.isStringInStringList(n.listMoodSostenuto,this.label)?this.moodType=29:n.isStringInStringList(n.listMoodSpiccato,this.label)?this.moodType=30:n.isStringInStringList(n.listMoodTenerezza,this.label)?this.moodType=31:n.isStringInStringList(n.listMoodTranquillamente,this.label)?this.moodType=32:n.isStringInStringList(n.listMoodTrionfante,this.label)&&(this.moodType=33)}}],[{key:"isInputStringMood",value:function(e){return!!e&&(n.isStringInStringList(n.listMoodAffettuoso,e)||n.isStringInStringList(n.listMoodAgitato,e)||n.isStringInStringList(n.listMoodAnimato,e)||n.isStringInStringList(n.listMoodAppassionato,e)||n.isStringInStringList(n.listMoodBrillante,e)||n.isStringInStringList(n.listMoodCantabile,e)||n.isStringInStringList(n.listMoodDolce,e)||n.isStringInStringList(n.listMoodEnergico,e)||n.isStringInStringList(n.listMoodEroico,e)||n.isStringInStringList(n.listMoodEspressivo,e)||n.isStringInStringList(n.listMoodFurioso,e)||n.isStringInStringList(n.listMoodGiocoso,e)||n.isStringInStringList(n.listMoodGioioso,e)||n.isStringInStringList(n.listMoodGrandioso,e)||n.isStringInStringList(n.listMoodGrazioso,e)||n.isStringInStringList(n.listMoodLacrimoso,e)||n.isStringInStringList(n.listMoodLeggiero,e)||n.isStringInStringList(n.listMoodMaestoso,e)||n.isStringInStringList(n.listMoodMalinconico,e)||n.isStringInStringList(n.listMoodMarcato,e)||n.isStringInStringList(n.listMoodMarziale,e)||n.isStringInStringList(n.listMoodMesto,e)||n.isStringInStringList(n.listMoodMorendo,e)||n.isStringInStringList(n.listMoodNobilmente,e)||n.isStringInStringList(n.listMoodPatetico,e)||n.isStringInStringList(n.listMoodPesante,e)||n.isStringInStringList(n.listMoodSaltando,e)||n.isStringInStringList(n.listMoodSautille,e)||n.isStringInStringList(n.listMoodScherzando,e)||n.isStringInStringList(n.listMoodSostenuto,e)||n.isStringInStringList(n.listMoodSpiccato,e)||n.isStringInStringList(n.listMoodTenerezza,e)||n.isStringInStringList(n.listMoodTranquillamente,e)||n.isStringInStringList(n.listMoodTrionfante,e))}}]),n}(AbstractExpression),MoodExpression=_MoodExpression;MoodExpression.listMoodAffettuoso=["affettuoso"],MoodExpression.listMoodAgitato=["agitato"],MoodExpression.listMoodAppassionato=["appassionato"],MoodExpression.listMoodAnimato=["animato","lively"],MoodExpression.listMoodBrillante=["brillante"],MoodExpression.listMoodCantabile=["cantabile"],MoodExpression.listMoodDolce=["dolce"],MoodExpression.listMoodEnergico=["energico"],MoodExpression.listMoodEroico=["eroico"],MoodExpression.listMoodEspressivo=["espressivo"],MoodExpression.listMoodFurioso=["furioso"],MoodExpression.listMoodGiocoso=["giocoso"],MoodExpression.listMoodGioioso=["gioioso"],MoodExpression.listMoodLacrimoso=["lacrimoso"],MoodExpression.listMoodGrandioso=["grandioso"],MoodExpression.listMoodGrazioso=["grazioso"],MoodExpression.listMoodLeggiero=["leggiero"],MoodExpression.listMoodMaestoso=["maestoso"],MoodExpression.listMoodMalinconico=["malinconico"],MoodExpression.listMoodMarcato=["marcato"],MoodExpression.listMoodMarziale=["marziale"],MoodExpression.listMoodMesto=["mesto"],MoodExpression.listMoodMorendo=["morendo"],MoodExpression.listMoodNobilmente=["nobilmente"],MoodExpression.listMoodPatetico=["patetico"],MoodExpression.listMoodPesante=["pesante"],MoodExpression.listMoodSautille=["sautille"],MoodExpression.listMoodSaltando=["saltando"],MoodExpression.listMoodScherzando=["scherzando"],MoodExpression.listMoodSostenuto=["sostenuto"],MoodExpression.listMoodSpiccato=["spiccato"],MoodExpression.listMoodTenerezza=["tenerezza"],MoodExpression.listMoodTranquillamente=["tranquillamente"],MoodExpression.listMoodTrionfante=["trionfante"];var UnknownExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;return _classCallCheck2(this,n),(o=t.call(this,r)).label=e,o.staffNumber=a,void 0===i&&(i=TextAlignmentEnum.LeftBottom),o.textAlignment=i,o}return _createClass2(n,[{key:"Label",get:function(){return this.label}},{key:"Placement",get:function(){return this.placement},set:function(e){this.placement=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"TextAlignment",get:function(){return this.textAlignment}}]),n}(AbstractExpression),MultiExpression=function(){function e(t,n){_classCallCheck2(this,e),this.unknownList=[],this.moodList=[],this.expressions=[],this.sourceMeasure=t,this.timestamp=n}return _createClass2(e,[{key:"SourceMeasureParent",get:function(){return this.sourceMeasure},set:function(e){this.sourceMeasure=e}},{key:"StaffNumber",get:function(){return this.staffNumber},set:function(e){this.staffNumber=e}},{key:"Timestamp",get:function(){return this.timestamp},set:function(e){this.timestamp=e}},{key:"AbsoluteTimestamp",get:function(){return Fraction$1.plus(this.timestamp,this.sourceMeasure.AbsoluteTimestamp)}},{key:"InstantaneousDynamic",get:function(){return this.instantaneousDynamic},set:function(e){this.instantaneousDynamic=e}},{key:"EndingContinuousDynamic",get:function(){return this.endingContinuousDynamic},set:function(e){this.endingContinuousDynamic=e}},{key:"StartingContinuousDynamic",get:function(){return this.startingContinuousDynamic},set:function(e){this.startingContinuousDynamic=e}},{key:"MoodList",get:function(){return this.moodList}},{key:"UnknownList",get:function(){return this.unknownList}},{key:"EntriesList",get:function(){return this.expressions}},{key:"OctaveShiftStart",get:function(){return this.octaveShiftStart},set:function(e){this.octaveShiftStart=e}},{key:"OctaveShiftEnd",get:function(){return this.octaveShiftEnd},set:function(e){this.octaveShiftEnd=e}},{key:"CombinedExpressionsText",get:function(){return this.combinedExpressionsText},set:function(e){this.combinedExpressionsText=e}},{key:"getPlacementOfFirstEntry",value:function(){var e=PlacementEnum.Above;return this.expressions.length>0&&(this.expressions[0].expression instanceof InstantaneousDynamicExpression||this.expressions[0].expression instanceof ContinuousDynamicExpression||this.expressions[0].expression instanceof MoodExpression||this.expressions[0].expression instanceof UnknownExpression)&&(e=this.expressions[0].expression.Placement),e}},{key:"getFontstyleOfFirstEntry",value:function(){var e=FontStyles.Regular;if(this.expressions.length>0)if(this.expressions[0].expression instanceof ContinuousDynamicExpression)e=FontStyles.Italic;else if(this.expressions[0].expression instanceof MoodExpression)e=FontStyles.Italic;else if(this.expressions[0].expression instanceof UnknownExpression){var t;e=null!==(t=this.expressions[0].expression.fontStyle)&&void 0!==t?t:FontStyles.Regular}return e}},{key:"addExpression",value:function(e,t){e instanceof InstantaneousDynamicExpression?(this.instantaneousDynamic&&this.removeExpressionFromEntryList(this.InstantaneousDynamic),this.instantaneousDynamic=e,this.instantaneousDynamic.ParentMultiExpression=this):e instanceof ContinuousDynamicExpression?this.startingContinuousDynamic=e:e instanceof MoodExpression?this.moodList.push(e):e instanceof UnknownExpression&&this.unknownList.push(e),this.addExpressionToEntryList(e,t)}},{key:"CompareTo",value:function(e){return this.Timestamp.RealValue>e.Timestamp.RealValue?1:this.Timestamp.RealValue<e.Timestamp.RealValue?-1:0}},{key:"addExpressionToEntryList",value:function(e,t){var n=new MultiExpressionEntry;n.prefix=t,n.expression=e,n.label=e instanceof ContinuousDynamicExpression||e instanceof MoodExpression||e instanceof UnknownExpression?e.Label:"",this.expressions.push(n)}},{key:"removeExpressionFromEntryList",value:function(e){for(var t=0,n=this.expressions.length;t<n;++t){if(this.expressions[t].expression===e){this.expressions.splice(t,1);break}}}}]),e}(),MultiExpressionEntry=_createClass2((function e(){_classCallCheck2(this,e)})),_ContinuousTempoExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;return _classCallCheck2(this,n),(o=t.call(this,e,r,i,a)).setTempoType(),o}return _createClass2(n,[{key:"TempoType",get:function(){return this.tempoType},set:function(e){this.tempoType=e}},{key:"StartTempo",get:function(){return this.startTempo},set:function(e){this.startTempo=e}},{key:"EndTempo",get:function(){return this.endTempo},set:function(e){this.endTempo=e}},{key:"AbsoluteEndTimestamp",get:function(){return this.absoluteEndTimestamp},set:function(e){this.absoluteEndTimestamp=e}},{key:"AbsoluteTimestamp",get:function(){return this.ParentMultiTempoExpression.AbsoluteTimestamp}},{key:"getAbsoluteFloatTimestamp",value:function(){return this.ParentMultiTempoExpression.AbsoluteTimestamp.RealValue}},{key:"getInterpolatedTempo",value:function(e){var t=Fraction$1.plus(this.parentMultiTempoExpression.SourceMeasureParent.AbsoluteTimestamp,this.parentMultiTempoExpression.Timestamp);if(e.lt(t))return-1;if(this.absoluteEndTimestamp.lt(e))return-2;var n=Fraction$1.minus(e,t).RealValue/Fraction$1.minus(this.absoluteEndTimestamp,t).RealValue;return Math.max(0,Math.min(250,this.startTempo+(this.endTempo-this.startTempo)*n))}},{key:"setTempoType",value:function(){n.isStringInStringList(n.listContinuousTempoFaster,this.label)?this.tempoType=0:n.isStringInStringList(n.listContinuousTempoSlower,this.label)&&(this.tempoType=9)}}],[{key:"isInputStringContinuousTempo",value:function(e){return!!e&&(n.isStringInStringList(n.listContinuousTempoFaster,e)||n.isStringInStringList(n.listContinuousTempoSlower,e))}},{key:"isIncreasingTempo",value:function(e){return e<=4}},{key:"isDecreasingTempo",value:function(e){return e>=5&&e<=12}}]),n}(AbstractTempoExpression),ContinuousTempoExpression=_ContinuousTempoExpression;ContinuousTempoExpression.listContinuousTempoFaster=["accelerando","piu mosso","poco piu","stretto"],ContinuousTempoExpression.listContinuousTempoSlower=["poco meno","meno mosso","piu lento","rallentando","ritardando","ritenuto","ritard.","ritard","riten.","riten"];var MultiTempoExpression=function(){function e(t,n){_classCallCheck2(this,e),this.expressions=[],this.sourceMeasure=t,this.timestamp=n}return _createClass2(e,[{key:"Timestamp",get:function(){return this.timestamp}},{key:"AbsoluteTimestamp",get:function(){return Fraction$1.plus(this.sourceMeasure.AbsoluteTimestamp,this.timestamp)}},{key:"SourceMeasureParent",get:function(){return this.sourceMeasure},set:function(e){this.sourceMeasure=e}},{key:"InstantaneousTempo",get:function(){return this.instantaneousTempo}},{key:"ContinuousTempo",get:function(){return this.continuousTempo}},{key:"EntriesList",get:function(){return this.expressions}},{key:"CombinedExpressionsText",get:function(){return this.combinedExpressionsText},set:function(e){this.combinedExpressionsText=e}},{key:"getPlacementOfFirstEntry",value:function(){var e=PlacementEnum.Above;return this.expressions.length>0&&(this.expressions[0].Expression instanceof InstantaneousTempoExpression||this.expressions[0].Expression instanceof ContinuousTempoExpression)&&(e=this.expressions[0].Expression.Placement),e}},{key:"getFontstyleOfFirstEntry",value:function(){var e=FontStyles.Regular;return this.expressions[0].Expression instanceof InstantaneousTempoExpression?e=FontStyles.Bold:this.expressions[0].Expression instanceof ContinuousTempoExpression&&(e=FontStyles.Italic),e}},{key:"addExpression",value:function(e,t){if(!this.checkIfAlreadyExists(e)){e instanceof InstantaneousTempoExpression?this.instantaneousTempo=e:e instanceof ContinuousTempoExpression&&(this.continuousTempo=e);var n=new TempoExpressionEntry;n.prefix=t,n.Expression=e,n.label=e.Label,this.expressions.push(n)}}},{key:"CompareTo",value:function(e){return this.Timestamp.RealValue>e.Timestamp.RealValue?1:this.Timestamp.RealValue<e.Timestamp.RealValue?-1:0}},{key:"checkIfAlreadyExists",value:function(e){var t,n=_createForOfIteratorHelper(this.expressions);try{for(n.s();!(t=n.n()).done;){if(t.value.label===e.Label)return!0}}catch(err){n.e(err)}finally{n.f()}return!1}}]),e}(),TempoExpressionEntry=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"Expression",get:function(){return this.expression},set:function(e){this.expression=e}}]),e}(),RehearsalExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,r)).label=e,i}return _createClass2(n)}(AbstractExpression),MusicSystemBuilder=function(){function e(){_classCallCheck2(this,e),this.musicSystems=[],this.globalSystemIndex=0,this.leadSheet=!1}return _createClass2(e,[{key:"initialize",value:function(e,t,n){this.leadSheet=e.LeadSheet,this.graphicalMusicSheet=e,this.rules=this.graphicalMusicSheet.ParentMusicSheet.Rules,this.measureList=t,this.numberOfVisibleStaffLines=n,this.activeRhythm=new Array(this.numberOfVisibleStaffLines),this.activeKeys=new Array(this.numberOfVisibleStaffLines),this.activeClefs=new Array(this.numberOfVisibleStaffLines),this.initializeActiveInstructions(this.measureList[0])}},{key:"buildMusicSystems",value:function(){var e=this.getFullPageSystemWidth(),t=!1;this.measureListIndex=0,this.currentSystemParams=new SystemBuildParameters,this.currentSystemParams.currentSystem=this.initMusicSystem();for(var n=0,r=0;this.measureListIndex<this.measureList.length;){var i,a,o=this.measureList[this.measureListIndex];if(o&&o[0]){for(var s=0,l=o.length;s<l;++s)o[s].resetLayout();var u=o[0].parentSourceMeasure,c=u.HasEndLine,h=c&&this.rules.NewPartAndSystemAfterFinalBarline,d=this.currentSystemParams.IsSystemStartMeasure();u.IsSystemStartMeasure=d;var f=u===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure(),p=this.rules.MeasureLeftMargin,v=0,m=this.getMeasureStartLine();if(p+=this.getLineWidth(o[0],m,d),!this.leadSheet){var g=!1;t&&this.rules.ShowRhythmAgainAfterPartEndOrFinalBarline&&(g=!0),p+=this.addBeginInstructions(o,d,f||g),v+=this.addEndInstructions(o)}for(var y=0,b=0;b<this.numberOfVisibleStaffLines;b++)y=Math.max(y,o[b].minimumStaffEntriesWidth);var A=this.getMeasureEndLine();v+=this.getLineWidth(o[0],A,d);var S=this.rules.MeasureLeftMargin;if(this.measureListIndex+1<this.measureList.length){var x,w,_=this.measureList[this.measureListIndex+1];null!==(w=null===(x=_[0])||void 0===x?void 0:x.parentSourceMeasure)&&void 0!==w&&w.hasBeginInstructions()&&(S+=this.addBeginInstructions(_,!1,!1))}var E=p+v+y;null!==(i=o[0])&&void 0!==i&&null!==(a=i.parentSourceMeasure)&&void 0!==a&&a.multipleRestMeasures&&(E=this.rules.MultipleRestMeasureDefaultWidth);var k=this.currentSystemParams.currentWidth+E+S<e;0===n&&(n=(n=Math.abs(Math.floor((e-p-v-S)/(E-p))))%2==0?n:n-1)<1&&(n=1);var C=this.rules.NewPageAtXMLNewPageAttribute&&u.printNewPageXml,M=C||this.rules.NewSystemAtXMLNewSystemAttribute&&u.printNewSystemXml;if((d||k&&!M)&&(this.rules.DYWorkSpecial||r<n)){if(this.addMeasureToSystem(o,m,A,E,p,y,v),this.updateActiveClefs(u,o),this.measureListIndex++,h){if(this.rules.MaxSystemToDrawNumber===this.musicSystems.length)return this.finalizeCurrentSystem(o,!this.rules.StretchLastSystemLine,!1),this.musicSystems;this.finalizeCurrentAndCreateNewSystem(o,!this.rules.StretchLastSystemLine,!1)}t=c}else{if(r=0,this.rules.MaxSystemToDrawNumber===this.musicSystems.length)return this.finalizeCurrentSystem(o,!1,!0,C),this.musicSystems;this.finalizeCurrentAndCreateNewSystem(o,!1,!0,C)}}else this.measureListIndex++}if(this.currentSystemParams.systemMeasures.length>0){if(this.rules.MaxSystemToDrawNumber===this.musicSystems.length)return this.finalizeCurrentSystem(this.measureList[this.measureList.length-1],!this.rules.StretchLastSystemLine,!1),this.musicSystems;this.finalizeCurrentAndCreateNewSystem(this.measureList[this.measureList.length-1],!this.rules.StretchLastSystemLine,!1)}return this.musicSystems}},{key:"calculateSystemYLayout",value:function(){var e,t=_createForOfIteratorHelper(this.musicSystems);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.optimizeDistanceBetweenStaffLines(n)}}catch(err){t.e(err)}finally{t.f()}this.calculateMusicSystemsRelativePositions()}},{key:"setMeasureWidth",value:function(e,t,n,r){for(var i=0,a=e.length;i<a;++i){var o=e[i];o.setWidth(t),n>0&&(o.beginInstructionsWidth=n),r>0&&(o.endInstructionsWidth=r)}}},{key:"finalizeCurrentAndCreateNewSystem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.finalizeCurrentSystem(e,t,n,r),this.currentSystemParams=new SystemBuildParameters,void 0!==e&&this.measureListIndex<this.measureList.length&&(this.currentSystemParams.currentSystem=this.initMusicSystem())}},{key:"finalizeCurrentSystem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentSystemParams.currentSystem.breaksPage=r,this.adaptRepetitionLineWithIfNeeded(),void 0!==e&&n&&this.checkAndCreateExtraInstructionMeasure(e),this.stretchMusicSystem(t)}},{key:"adaptRepetitionLineWithIfNeeded",value:function(){var e=this.currentSystemParams.systemMeasures;if(e.length>=1){var t=this.currentSystemParams.currentSystem.GraphicalMeasures[this.currentSystemParams.currentSystem.GraphicalMeasures.length-1],n=0,r=e[e.length-1];r.endLine===SystemLinesEnum.DotsBoldBoldDots&&(r.endLine=SystemLinesEnum.DotsThinBold,n=t[0].getLineWidth(SystemLinesEnum.DotsBoldBoldDots)/2-t[0].getLineWidth(SystemLinesEnum.DotsThinBold)),this.currentSystemParams.currentSystemFixWidth-=n;for(var i=0,a=t.length;i<a;++i){t[i].endInstructionsWidth-=n}}}},{key:"addMeasureToSystem",value:function(e,t,n,r,i,a,o){this.currentSystemParams.systemMeasures.push({beginLine:t,endLine:n}),this.setMeasureWidth(e,r,i,o),this.addStaveMeasuresToSystem(e),this.currentSystemParams.currentWidth+=r,this.currentSystemParams.currentSystemFixWidth+=i+o,this.currentSystemParams.currentSystemVarWidth+=a,this.currentSystemParams.systemMeasureIndex++}},{key:"initMusicSystem",value:function(){var e=MusicSheetCalculator.symbolFactory.createMusicSystem(this.globalSystemIndex++,this.rules);return this.musicSystems.push(e),this.layoutSystemStaves(e),e.createMusicSystemLabel(this.rules.InstrumentLabelTextHeight,this.rules.SystemLabelsRightMargin,this.rules.LabelMarginBorderFactor,1===this.musicSystems.length),e}},{key:"getFullPageSystemWidth",value:function(){return this.graphicalMusicSheet.ParentMusicSheet.pageWidth-this.rules.PageLeftMargin-this.rules.PageRightMargin-this.rules.SystemLeftMargin-this.rules.SystemRightMargin}},{key:"layoutSystemStaves",value:function(e){var t=this.getFullPageSystemWidth(),n=e.PositionAndShape;n.BorderLeft=0,n.BorderRight=t,n.BorderTop=0;for(var r=[],i=this.graphicalMusicSheet.ParentMusicSheet.Instruments,a=0,o=i.length;a<o;++a){var s=i[a];if(s.Visible&&0!==s.Voices.length)for(var l=0,u=s.Staves.length;l<u;++l){var c=s.Staves[l];r.push(c)}}var h=!1;if(this.leadSheet)for(var d=0,f=r.length;d<f;++d){if(r[d].ParentInstrument.LyricVersesNumbers.length>1){h=!0;break}}for(var p=0,v=0;v<r.length;v++)if(this.addStaffLineToMusicSystem(e,p,r[v]),p+=this.rules.StaffHeight,v+1<r.length){p+=this.leadSheet&&!h?2.5:r[v].ParentInstrument===r[v+1].ParentInstrument?this.rules.BetweenStaffDistance:this.rules.StaffDistance}n.BorderBottom=p}},{key:"addStaffLineToMusicSystem",value:function(e,t,n){if(e){var r=MusicSheetCalculator.symbolFactory.createStaffLine(e,n);e.StaffLines.push(r);var i=r.PositionAndShape,a=new PointF2D;a.x=0,i.BorderRight=e.PositionAndShape.Size.width,a.y=t,i.RelativePosition=a,i.BorderLeft=0,i.BorderTop=0,i.BorderBottom=this.rules.StaffHeight;for(var o=0;o<5;o++){var s=new PointF2D;s.x=0,s.y=o*this.rules.StaffHeight/4;var l=new PointF2D;l.x=r.PositionAndShape.Size.width,l.y=o*this.rules.StaffHeight/4,this.leadSheet&&(s.y=l.y=0),r.StaffLines[o]=new GraphicalLine(s,l,this.rules.StaffLineWidth)}}}},{key:"initializeActiveInstructions",value:function(e){var t=this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure();if(t){this.visibleStaffIndices=this.graphicalMusicSheet.getVisibleStavesIndicesFromSourceMeasure(e);for(var n=0,r=this.visibleStaffIndices.length;n<r;n++){var i=this.visibleStaffIndices[n],a=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(t,i);this.activeClefs[n]=t.FirstInstructionsStaffEntries[i].Instructions[0];var o=t.FirstInstructionsStaffEntries[i].Instructions[1];if(o){var s=KeyInstruction.copy(o);s=this.transposeKeyInstruction(s,a),this.activeKeys[n]=s}var l=t.FirstInstructionsStaffEntries[i].Instructions[2];this.activeRhythm[n]=l}}}},{key:"transposeKeyInstruction",value:function(e,t){var n=t.getTransposedHalftones();return n!==e.isTransposedBy&&t.ParentStaff.ParentInstrument.MidiInstrumentId!==MidiInstrument.Percussion&&void 0!==MusicSheetCalculator.transposeCalculator&&MusicSheetCalculator.transposeCalculator.transposeKey(e,n),e}},{key:"addBeginInstructions",value:function(e,t,n){var r=e.length;if(0===r)return 0;for(var i=0,a=e[0].parentSourceMeasure,o=0;o<r;++o){var s=e[o],l=this.visibleStaffIndices[o],u=a.FirstInstructionsStaffEntries[l],c=this.AddInstructionsAtMeasureBegin(u,s,o,n,t);i=Math.max(i,c)}return i}},{key:"addEndInstructions",value:function(e){var t=e.length;if(0===t)return 0;for(var n=.5,r=e[0].parentSourceMeasure,i=0;i<t;i++){var a=e[i],o=this.visibleStaffIndices[i],s=r.LastInstructionsStaffEntries[o],l=this.addInstructionsAtMeasureEnd(s,a,e);n=Math.max(n,l)}return n}},{key:"AddInstructionsAtMeasureBegin",value:function(e,t,n,r,i){var a,o=0,s=void 0,l=void 0,u=void 0;if(e)for(var c=0,h=e.Instructions.length;c<h;++c){var d=e.Instructions[c];d instanceof ClefInstruction?s=d:d instanceof KeyInstruction?l=d:d instanceof RhythmInstruction&&(u=d)}var f,p=null===(a=window.GYM)||void 0===a?void 0:a.multitrack;i&&(s||(s=this.activeClefs[n]),l||(l=KeyInstruction.copy(this.activeKeys[n])),!p||!l||null!==(f=l.AlteratedNotes)&&void 0!==f&&f.length||((l=KeyInstruction.copy(this.activeKeys[0])).PrintObject=!1),r&&!u&&(u=this.activeRhythm[n]));var v=!1,m=!1,g=!1;if(s?(t.addClefAtBegin(s),v=!0):s=this.activeClefs[n],l){l=this.transposeKeyInstruction(l,t);var y=i?void 0:this.activeKeys[n];if(t.addKeyAtBegin(l,y,s),p&&!l.PrintObject)try{var b,A,S;null===(b=t.stave)||void 0===b||null===(A=b.getModifiers(void 0,"keysignatures"))||void 0===A||null===(S=A[0])||void 0===S||S.setDrawState(!1)}catch(k){}m=!0}if(void 0!==u&&u.PrintObject&&this.rules.RenderTimeSignatures){var x=!0,w=t.MeasureNumber-1-this.rules.MinMeasureToDrawIndex;if(t.MeasureNumber-1>=0&&this.measureList[w]){var _,E=null===(_=this.measureList[w][0])||void 0===_?void 0:_.parentSourceMeasure;null!=E&&E.ImplicitMeasure&&null!=E&&E.RhythmPrinted&&(x=!1)}x&&(t.addRhythmAtBegin(u),t.parentSourceMeasure.RhythmPrinted=u,g=!0)}return(v||m||g)&&(o+=t.beginInstructionsWidth,g&&(o+=this.rules.RhythmRightMargin)),o}},{key:"addInstructionsAtMeasureEnd",value:function(e,t,n){if(!e||!e.Instructions||0===e.Instructions.length)return 0;for(var r=0,i=e.Instructions.length;r<i;++r){var a=e.Instructions[r];if(a instanceof ClefInstruction){var o=a;t.addClefAtEnd(o);var s,l=_createForOfIteratorHelper(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;u!==t&&u.addClefAtEnd(o,!1)}}catch(err){l.e(err)}finally{l.f()}}}return this.rules.MeasureRightMargin+t.endInstructionsWidth}},{key:"updateActiveClefs",value:function(e,t){for(var n=0,r=t.length;n<r;n++){var i=this.visibleStaffIndices[n],a=e.FirstInstructionsStaffEntries[i];if(a)for(var o=0,s=a.Instructions.length;o<s;++o){var l=a.Instructions[o];l instanceof ClefInstruction?this.activeClefs[n]=l:l instanceof KeyInstruction?this.activeKeys[n]=l:l instanceof RhythmInstruction&&(this.activeRhythm[n]=l)}for(var u=e.getEntriesPerStaff(i),c=0,h=u.length;c<h;++c){var d=u[c];if(d.Instructions)for(var f=0,p=d.Instructions.length;f<p;++f){var v=d.Instructions[f];v instanceof ClefInstruction&&(this.activeClefs[n]=v)}}var m=e.LastInstructionsStaffEntries[i];if(m)for(var g=m.Instructions,y=0,b=g.length;y<b;++y){var A=g[y];A instanceof ClefInstruction&&(this.activeClefs[n]=A)}}}},{key:"checkAndCreateExtraInstructionMeasure",value:function(e){for(var t=e[0].parentSourceMeasure.FirstInstructionsStaffEntries,n=[],r=0,i=e.length;r<i;++r){var a=e[r];n.push(t[a.ParentStaff.idInMusicSheet])}for(var o=0,s=0,l=n.length;s<l;++s){var u=n[s];if(u){for(var c=u.Instructions,h=void 0,d=void 0,f=0,p=c.length;f<p;++f){var v=c[f];v instanceof KeyInstruction&&v.Key!==this.activeKeys[s].Key&&(h=v),v instanceof RhythmInstruction&&v!==this.activeRhythm[s]&&(d=v)}if(void 0!==h||d){var m=this.addExtraInstructionMeasure(s,h,d);o=Math.max(o,m)}}}o>0&&(this.currentSystemParams.systemMeasures.push({beginLine:SystemLinesEnum.None,endLine:SystemLinesEnum.None}),this.currentSystemParams.currentWidth+=o,this.currentSystemParams.currentSystemFixWidth+=o)}},{key:"addExtraInstructionMeasure",value:function(e,t,n){var r=this.currentSystemParams.currentSystem,i=MusicSheetCalculator.symbolFactory.createExtraGraphicalMeasure(r.StaffLines[e]);t&&i.addKeyAtBegin(t,this.activeKeys[e],this.activeClefs[e]),void 0!==n&&n.PrintObject&&i.addRhythmAtBegin(n),i.PositionAndShape.BorderLeft=0,i.PositionAndShape.BorderTop=0,i.PositionAndShape.BorderBottom=this.rules.StaffHeight;var a=this.rules.MeasureLeftMargin+i.beginInstructionsWidth+this.rules.MeasureRightMargin;return i.PositionAndShape.BorderRight=a,r.StaffLines[e].Measures.push(i),a}},{key:"addStaveMeasuresToSystem",value:function(e){if(e[0]){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);for(var r=this.currentSystemParams.currentSystem,i=0;i<this.numberOfVisibleStaffLines;i++){var a=t[i];r.StaffLines[i].Measures.push(a),a.ParentStaffLine=r.StaffLines[i]}r.AddGraphicalMeasures(t)}}},{key:"getMeasureStartLine",value:function(){if(this.thisMeasureBeginsLineRepetition()){var e=this.currentSystemParams.IsSystemStartMeasure(),t=0===this.measureListIndex;if(this.previousMeasureEndsLineRepetition()&&!e)return SystemLinesEnum.DotsBoldBoldDots;if(!t)return SystemLinesEnum.BoldThinDots}return SystemLinesEnum.None}},{key:"getMeasureEndLine",value:function(){var e=void 0;try{if(e=this.measureList[this.measureListIndex][0].parentSourceMeasure,this.rules.RenderMultipleRestMeasures&&e.multipleRestMeasures>1){var t=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,e.measureListIndex+e.multipleRestMeasures-1);e=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t]}}finally{}var n,r,i=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures,a=i[this.measureListIndex],o=!1;a.allRests&&(o=null===(n=i[this.measureListIndex+a.multipleRestMeasures-1])||void 0===n||null===(r=n.endsWithLineRepetition)||void 0===r?void 0:r.call(n));return this.nextMeasureBeginsLineRepetition()&&this.thisMeasureEndsLineRepetition()?SystemLinesEnum.DotsBoldBoldDots:this.thisMeasureEndsLineRepetition()||o?SystemLinesEnum.DotsThinBold:this.nextMeasureHasKeyInstructionChange()||this.thisMeasureEndsWordRepetition()||this.nextMeasureBeginsWordRepetition()?SystemLinesEnum.DoubleThin:e&&void 0!==e.endingBarStyleEnum?e.endingBarStyleEnum:SystemLinesEnum.SingleThin}},{key:"getLineWidth",value:function(e,t,n){var r=e.getLineWidth(t);return t===SystemLinesEnum.DotsBoldBoldDots&&(r/=2),n&&t===SystemLinesEnum.BoldThinDots&&(r+=this.rules.DistanceBetweenLastInstructionAndRepetitionBarline),r}},{key:"previousMeasureEndsLineRepetition",value:function(){if(0===this.measureListIndex)return!1;for(var e=0,t=this.measureList[this.measureListIndex-1].length;e<t;++e){if(this.measureList[this.measureListIndex-1][e].endsWithLineRepetition())return!0}return!1}},{key:"thisMeasureBeginsLineRepetition",value:function(){for(var e=0,t=this.measureList[this.measureListIndex].length;e<t;++e){if(this.measureList[this.measureListIndex][e].beginsWithLineRepetition())return!0}return!1}},{key:"nextMeasureBeginsLineRepetition",value:function(){var e=this.measureListIndex+1;if(e>=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length||!this.measureList[e])return!1;for(var t=0,n=this.measureList[e].length;t<n;++t){if(this.measureList[e][t].beginsWithLineRepetition())return!0}return!1}},{key:"thisMeasureEndsLineRepetition",value:function(){for(var e=0,t=this.measureList[this.measureListIndex].length;e<t;++e){if(this.measureList[this.measureListIndex][e].endsWithLineRepetition())return!0}return!1}},{key:"nextMeasureBeginsWordRepetition",value:function(){var e=this.measureListIndex+1;if(e>=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length||e>this.measureList.length-1)return!1;for(var t=0,n=this.measureList[e].length;t<n;++t){if(this.measureList[e][t].beginsWithWordRepetition())return!0}return!1}},{key:"thisMeasureEndsWordRepetition",value:function(){for(var e=0,t=this.measureList[this.measureListIndex].length;e<t;++e){if(this.measureList[this.measureListIndex][e].endsWithWordRepetition())return!0}return!1}},{key:"nextMeasureHasKeyInstructionChange",value:function(){return void 0!==this.getNextMeasureKeyInstruction()}},{key:"getNextMeasureKeyInstruction",value:function(){if(this.measureListIndex<this.measureList.length-1)for(var e=0;e<this.measureList[this.measureListIndex].length;e++){var t,n=null===(t=this.measureList[this.measureListIndex+1][e])||void 0===t?void 0:t.parentSourceMeasure;if(!n)return;return n.getKeyInstruction(this.visibleStaffIndices[e])}}},{key:"calculateXScalingFactor",value:function(e,t){return Math.abs(t-0)<1e-5||Math.abs(e-0)<1e-5?1:(this.currentSystemParams.currentSystem.StaffLines[0].PositionAndShape.Size.width-e)/t}},{key:"stretchMusicSystem",value:function(e){var t=this.calculateXScalingFactor(this.currentSystemParams.currentSystemFixWidth,this.currentSystemParams.currentSystemVarWidth);e&&(t=Math.min(t,this.rules.LastSystemMaxScalingFactor));for(var n=this.currentSystemParams.currentSystem,r=0,i=n.StaffLines.length;r<i;++r)for(var a=n.StaffLines[r],o=0,s=0;s<a.Measures.length;s++){var l=a.Measures[s];l.setPositionInStaffline(o);var u=l.beginInstructionsWidth;if(l.setWidth(u+l.minimumStaffEntriesWidth*t+l.endInstructionsWidth),s<this.currentSystemParams.systemMeasures.length){var c=this.currentSystemParams.systemMeasures[s].beginLine,h=l.getLineWidth(SystemLinesEnum.BoldThinDots);if(c===SystemLinesEnum.BoldThinDots){var d=o;0===s&&(d=o+l.beginInstructionsWidth-h),n.createVerticalLineForMeasure(d,h,c,SystemLinePosition.MeasureBegin,s,l)}}if(l.staffEntriesScaleFactor=t,l.layoutSymbols(),!(s+1<this.currentSystemParams.systemMeasures.length&&this.currentSystemParams.systemMeasures[s+1].beginLine===SystemLinesEnum.BoldThinDots)){var f=SystemLinesEnum.SingleThin;s<this.currentSystemParams.systemMeasures.length&&(f=this.currentSystemParams.systemMeasures[s].endLine);var p=l.getLineWidth(f),v=l.PositionAndShape.RelativePosition.x+l.PositionAndShape.BorderRight-p;f===SystemLinesEnum.DotsBoldBoldDots&&(v-=p/2),n.createVerticalLineForMeasure(v,p,f,SystemLinePosition.MeasureEnd,s,l)}o=l.PositionAndShape.RelativePosition.x+l.PositionAndShape.BorderRight}e&&this.decreaseMusicSystemBorders()}},{key:"decreaseMusicSystemBorders",value:function(){for(var e=this.currentSystemParams.currentSystem,t=CollectionUtil.last(e.StaffLines[0].Measures).PositionAndShape,n=t.RelativePosition.x+t.Size.width,r=0,i=e.StaffLines.length;r<i;++r){var a=e.StaffLines[r];a.PositionAndShape.BorderRight=n;for(var o=0,s=a.StaffLines.length;o<s;++o){var l=a.StaffLines[o];l.End=new PointF2D(n,l.End.y)}}e.PositionAndShape.BorderRight=n+this.currentSystemParams.maxLabelLength+this.rules.SystemLabelsRightMargin}},{key:"updateStaffLinesRelativePosition",value:function(e,t,n){for(var r=t;r<e.StaffLines.length;r++)e.StaffLines[r].PositionAndShape.RelativePosition.y=n;e.PositionAndShape.BorderBottom+=n}},{key:"createMusicPage",value:function(){var e=new GraphicalMusicPage(this.graphicalMusicSheet);return this.graphicalMusicSheet.MusicPages.push(e),e.PageNumber=this.graphicalMusicSheet.MusicPages.length,e.PositionAndShape.BorderLeft=0,e.PositionAndShape.BorderRight=this.graphicalMusicSheet.ParentMusicSheet.pageWidth,e.PositionAndShape.BorderTop=0,e.PositionAndShape.BorderBottom=this.rules.PageHeight,e.PositionAndShape.RelativePosition=new PointF2D(0,0),e}},{key:"addSystemToPage",value:function(e,t){e.MusicSystems.push(t),t.Parent=e}},{key:"optimizeDistanceBetweenStaffLines",value:function(e){if(!e.checkStaffEntriesForStaffEntryLink())for(var t=0;t<e.StaffLines.length-1;t++){for(var n=e.StaffLines[t].BottomLine,r=e.StaffLines[t+1].SkyLine,i=0,a=0;a<n.length;a++){for(var o=n[a],s=Math.max(0,a-6),l=Math.min(r.length-1,a+6),u=0,c=s;c<=l;c++)u=Math.min(u,r[c]);var h=o-u;i=Math.max(h,i)}i+=this.rules.MinSkyBottomDistBetweenStaves;var d=(i=Math.max(i,this.rules.StaffHeight+this.rules.MinimumStaffLineDistance))+e.StaffLines[t].PositionAndShape.RelativePosition.y;this.updateStaffLinesRelativePosition(e,t+1,d)}var f=e.StaffLines[0];e.PositionAndShape.BorderTop=f.PositionAndShape.RelativePosition.y+f.PositionAndShape.BorderTop;var p=e.StaffLines[e.StaffLines.length-1];e.PositionAndShape.BorderBottom=p.PositionAndShape.RelativePosition.y+p.PositionAndShape.BorderBottom}},{key:"hasExpressionCounts",value:function(e){var t,n=0,r=!1,i=_createForOfIteratorHelper(e.GraphicalMeasures);try{for(i.s();!(t=i.n()).done;){var a,o=_createForOfIteratorHelper(t.value);try{for(o.s();!(a=o.n()).done;){var s,l=a.value,u=_createForOfIteratorHelper(l.parentSourceMeasure.TempoExpressions);try{for(u.s();!(s=u.n()).done;){var c;if((null===(c=s.value.InstantaneousTempo)||void 0===c?void 0:c.Enum)===TempoEnum.metronomeMark){r=!0;break}}}catch(err){u.e(err)}finally{u.f()}var h,d=_createForOfIteratorHelper(l.parentSourceMeasure.StaffLinkedExpressions);try{for(d.s();!(h=d.n()).done;){n+=h.value.length}}catch(err){d.e(err)}finally{d.f()}}}catch(err){o.e(err)}finally{o.f()}}}catch(err){i.e(err)}finally{i.f()}return{TempoCount:r?1:0,OtherCount:n}}},{key:"calculateMusicSystemsRelativePositions",value:function(){var e=this.createMusicPage(),t=0,n=this.musicSystems[0],r=0,i=0;if(this.musicSystems.length>1)for(var a=1;a<this.musicSystems.length;a++){var o=this.musicSystems[a-1],s=this.musicSystems[a],l=this.findRequiredDistanceWithSkyBottomLine(o,s);l>i&&(i=l)}for(var u=0;u<this.musicSystems.length;u++)if(n=this.musicSystems[u],0===e.MusicSystems.length){this.addSystemToPage(e,n),t=this.rules.CompactMode?this.rules.PageTopMarginNarrow:this.rules.PageTopMargin,1===this.graphicalMusicSheet.MusicPages.length&&this.rules.RenderTitle&&(t+=this.rules.TitleTopDistance+this.rules.SheetTitleHeight+this.rules.TitleBottomDistance);var c=new PointF2D(this.rules.PageLeftMargin+this.rules.SystemLeftMargin,t);n.PositionAndShape.RelativePosition=c,t+n.PositionAndShape.BorderBottom>this.rules.PageHeight-this.rules.PageBottomMargin&&++r<=4&&console.log("warning: could not fit a single system on page ".concat(e.PageNumber," and measure number ").concat(n.GraphicalMeasures[0][0].MeasureNumber,'.\n The PageFormat may be too small for this sheet."\n Will not give further warnings for all pages, only total.'))}else{var h,d,f=this.musicSystems[u-1],p=f.StaffLines[f.StaffLines.length-1],v=p.PositionAndShape,m=this.findRequiredDistanceWithSkyBottomLine(f,n);m=Math.max(i,m),m+=this.rules.MinSkyBottomDistBetweenSystems,"GYM"===(null===(h=window)||void 0===h||null===(d=h.appName)||void 0===d?void 0:d.toLocaleUpperCase())&&(m=m<16?16:m);var g=this.hasExpressionCounts(n);g.TempoCount>0&&this.rules.MetronomeMarksDrawn&&(m+=2),g.OtherCount>0&&this.rules.MetronomeMarksDrawn&&(m+=2),m=Math.max(m,this.rules.MinimumDistanceBetweenSystems+p.StaffHeight);var y=t+v.RelativePosition.y+m,b=y+n.PositionAndShape.BorderMarginBottom;if(this.rules.NewPageAtXMLNewPageAttribute&&f.breaksPage||!(b<this.rules.PageHeight-this.rules.PageBottomMargin)){e=this.createMusicPage(),u-=1;continue}this.addSystemToPage(e,n),t=y;var A=new PointF2D(this.rules.PageLeftMargin+this.rules.SystemLeftMargin,t);n.PositionAndShape.RelativePosition=A}r>0&&console.log("total amount of pages that couldn't fit a single music system: ".concat(r," of ").concat(e.PageNumber))}},{key:"findRequiredDistanceWithSkyBottomLine",value:function(e,t){for(var n=e.StaffLines[e.StaffLines.length-1],r=t.StaffLines[0],i=n.BottomLine,a=r.SkyLine,o=n.PositionAndShape,s=r.PositionAndShape,l=1/this.rules.SamplingUnit,u=0,c=0;c<i.length;c++){var h=i[c],d=c+Math.round((o.RelativePosition.x-s.RelativePosition.x)*l);if(!(d<0)){if(d>=a.length)break;for(var f=Math.max(0,d-6),p=Math.min(a.length-1,d+6),v=0,m=f;m<=p;m++)v=Math.min(v,a[m]);var g=h-v;u=Math.max(g,u)}}return 0===u&&(u=o.BorderBottom-s.BorderTop),u}}]),e}(),SystemBuildParameters=function(){function e(){_classCallCheck2(this,e),this.systemMeasures=[],this.systemMeasureIndex=0,this.currentWidth=0,this.currentSystemFixWidth=0,this.currentSystemVarWidth=0,this.maxLabelLength=0}return _createClass2(e,[{key:"IsSystemStartMeasure",value:function(){return 0===this.systemMeasureIndex}}]),e}(),OctaveShiftParams=_createClass2((function e(t,n,r){_classCallCheck2(this,e),this.getOpenOctaveShift=t,this.getAbsoluteStartTimestamp=n,this.getAbsoluteEndTimestamp=r})),AccidentalCalculator=function(){function e(){_classCallCheck2(this,e),this.keySignatureNoteAlterationsDict=new Dictionary,this.currentAlterationsComparedToKeyInstructionList=[],this.currentInMeasureNoteAlterationsDict=new Dictionary}return _createClass2(e,[{key:"ActiveKeyInstruction",get:function(){return this.activeKeyInstruction},set:function(e){this.activeKeyInstruction=e,this.reactOnKeyInstructionChange()}},{key:"doCalculationsAtEndOfMeasure",value:function(){this.currentInMeasureNoteAlterationsDict.clear(),this.currentAlterationsComparedToKeyInstructionList.clear();var e,t=_createForOfIteratorHelper(this.keySignatureNoteAlterationsDict.keys());try{for(t.s();!(e=t.n()).done;){var n=e.value;this.currentInMeasureNoteAlterationsDict.setValue(n,this.keySignatureNoteAlterationsDict.getValue(n))}}catch(err){t.e(err)}finally{t.f()}}},{key:"checkAccidental",value:function(e,t){if(t){var n=t.FundamentalNote+12*t.Octave,r=this.currentAlterationsComparedToKeyInstructionList.indexOf(n)>=0;if(this.currentInMeasureNoteAlterationsDict.containsKey(n)){if(r&&this.currentAlterationsComparedToKeyInstructionList.splice(this.currentAlterationsComparedToKeyInstructionList.indexOf(n),1),this.currentInMeasureNoteAlterationsDict.getValue(n)!==t.AccidentalHalfTones){this.keySignatureNoteAlterationsDict.containsKey(n)&&this.keySignatureNoteAlterationsDict.getValue(n)!==t.AccidentalHalfTones?(this.currentAlterationsComparedToKeyInstructionList.push(n),this.currentInMeasureNoteAlterationsDict.setValue(n,t.AccidentalHalfTones)):t.Accidental!==AccidentalEnum.NONE&&this.currentInMeasureNoteAlterationsDict.remove(n);var i=this.currentInMeasureNoteAlterationsDict.getValue(n);if(t.Accidental===AccidentalEnum.NONE&&(t=.5===Math.abs(i)?new Pitch(t.FundamentalNote,t.Octave,AccidentalEnum.NONE):new Pitch(t.FundamentalNote,t.Octave,AccidentalEnum.NATURAL)),this.isAlterAmbiguousAccidental(t.Accidental)&&!t.AccidentalXml)return;MusicSheetCalculator.symbolFactory.addGraphicalAccidental(e,t)}}else if(t.Accidental!==AccidentalEnum.NONE){if(r||this.currentAlterationsComparedToKeyInstructionList.push(n),this.currentInMeasureNoteAlterationsDict.setValue(n,t.AccidentalHalfTones),this.isAlterAmbiguousAccidental(t.Accidental)&&!t.AccidentalXml)return;MusicSheetCalculator.symbolFactory.addGraphicalAccidental(e,t)}else r&&(t=new Pitch(t.FundamentalNote,t.Octave,AccidentalEnum.NATURAL),this.currentAlterationsComparedToKeyInstructionList.splice(this.currentAlterationsComparedToKeyInstructionList.indexOf(n),1),MusicSheetCalculator.symbolFactory.addGraphicalAccidental(e,t))}}},{key:"isAlterAmbiguousAccidental",value:function(e){return e===AccidentalEnum.SLASHFLAT||e===AccidentalEnum.QUARTERTONEFLAT}},{key:"reactOnKeyInstructionChange",value:function(){var e,t=this.activeKeyInstruction.AlteratedNotes;e=this.activeKeyInstruction.Key>0?AccidentalEnum.SHARP:AccidentalEnum.FLAT,this.keySignatureNoteAlterationsDict.clear(),this.currentAlterationsComparedToKeyInstructionList.length=0;for(var n=-9;n<9;n++)for(var r=0;r<t.length;r++)this.keySignatureNoteAlterationsDict.setValue(t[r]+12*n,Pitch.HalfTonesFromAccidental(e));this.doCalculationsAtEndOfMeasure()}}]),e}(),JustifiedMusicSystemBuilder=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){return _classCallCheck2(this,n),t.apply(this,arguments)}return _createClass2(n,[{key:"buildMusicSystems",value:function(){this.currentSystemParams=new SystemBuildParameters;for(var e=[],t=0,n=-1,r=0,i=this.measureList.length;r<i;++r){this.measureListIndex=r;var a=this.measureList[r];if(a&&a[0]){for(var o=0,s=a.length;o<s;++o)a[o].resetLayout();var l=a[0].parentSourceMeasure,u=this.rules.NewPageAtXMLNewPageAttribute&&l.printNewPageXml;if((this.rules.NewSystemAtXMLNewSystemAttribute&&l.printNewSystemXml||u)&&r>0)n=r-1,e.push({startIndex:t,endIndex:n}),t=r;else l.HasEndLine&&this.rules.NewPartAndSystemAfterFinalBarline&&(n=r,e.push({startIndex:t,endIndex:n}),t=r+1)}}t<this.measureList.length&&n<t&&e.push({startIndex:t,endIndex:this.measureList.length-1});for(var c=[],h=[],d=[],f=[],p=0,v=e;p<v.length;p++){for(var m=v[p],g=0,y=m.startIndex;y<=m.endIndex;++y){this.measureListIndex=y;var b=this.measureList[y];if(b&&b[0]){for(var A=0,S=b.length;A<S;++A)b[A].resetLayout();var x=b[0].parentSourceMeasure===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure(),w=this.rules.MeasureLeftMargin,_=0,E=this.getMeasureStartLine();w+=this.getLineWidth(b[0],E,!1),this.leadSheet||(w+=this.addBeginInstructions(b,!1,x),_+=this.addEndInstructions(b));for(var k=0,C=0;C<this.numberOfVisibleStaffLines;C++){var M,P=((null===(M=b[C].vfVoices[1])||void 0===M?void 0:M.tickables.length)||1)*this.rules.DYMinNoteWidth;k=Math.max(k,b[C].minimumStaffEntriesWidth,P)}var I=this.getMeasureEndLine(),T=w+(_+=this.getLineWidth(b[0],I,!1))+k;d.push(T),f.push(g+T/2),g+=T}else d.push(0),f.push(0)}for(var B=g,R=this.getFullPageSystemWidth()-8,L=Math.ceil(B/R)*R/B,N=1,F=0,D=0,O=0,V=m.startIndex;V<=m.endIndex;++V){var z,G=f[V];if(0!==G){var H=d[V],U=d[V+1]||0,j=G*L/R;D+=H;var Q=(null===(z=window)||void 0===z?void 0:z.appName)||"";if("GYM"===(null==Q?void 0:Q.toLocaleUpperCase())){var Y,W=null===(Y=window.GYM)||void 0===Y?void 0:Y.wrapNum;O===(W=Number(W)>0?Number(W):6)||D+U>R&&O%2==0?(h.push(O),D=H,O=1):O++}else D>R?(h.push(O),D=H,O=1):O++;N===(j=H>R?V+1:Math.ceil(j))?F+=1:(c.push(F),N=j,F=1)}}c.push(F),h.push(O),h=h.filter(Boolean),console.log(h,c)}return this.buildPreparedMusicSystems(h)}},{key:"buildPreparedMusicSystems",value:function(e){var t=!1;this.currentSystemParams=new SystemBuildParameters,this.currentSystemParams.currentSystem=this.initMusicSystem();for(var n=0,r=this.measureList.length;n<r;++n){this.measureListIndex=n;var i=this.measureList[n];if(i&&i[0]){var a=this.rules.NewPageAtXMLNewPageAttribute&&i[0].parentSourceMeasure.printNewPageXml;this.currentSystemParams.currentSystem.GraphicalMeasures.length===e[this.musicSystems.length-1]&&this.finalizeCurrentAndCreateNewSystem(i,!1,!t,a);for(var o=0,s=i.length;o<s;++o)i[o].resetLayout();var l=i[0].parentSourceMeasure,u=l.HasEndLine,c=this.currentSystemParams.IsSystemStartMeasure(),h=l===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure(),d=this.rules.MeasureLeftMargin,f=0,p=this.getMeasureStartLine();if(d+=this.getLineWidth(i[0],p,c),!this.leadSheet){var v=!1;t&&this.rules.ShowRhythmAgainAfterPartEndOrFinalBarline&&(v=!0),d+=this.addBeginInstructions(i,c,h||v),f+=this.addEndInstructions(i)}for(var m=0,g=0;g<this.numberOfVisibleStaffLines;g++)m=Math.max(m,i[g].minimumStaffEntriesWidth);var y=this.getMeasureEndLine(),b=d+(f+=this.getLineWidth(i[0],y,c))+m;this.addMeasureToSystem(i,p,y,b,d,m,f),this.updateActiveClefs(l,i),t=u}}return this.finalizeCurrentAndCreateNewSystem(void 0,!1,!1),this.musicSystems}}]),n}(MusicSystemBuilder),metronomeMarks={},MusicSheetCalculator=function(){function e(){_classCallCheck2(this,e),this.staffEntriesWithGraphicalTies=[],this.staffEntriesWithOrnaments=[],this.staffEntriesWithChordSymbols=[],this.staffLinesWithLyricWords=[],this.graphicalLyricWords=[],this.abstractNotImplementedErrorMessage="abstract, not implemented",this.dynamicExpressionMap=new Map}return _createClass2(e,[{key:"leadSheet",get:function(){return this.graphicalMusicSheet.LeadSheet}},{key:"initialize",value:function(e){this.graphicalMusicSheet=e,this.rules=e.ParentMusicSheet.Rules,this.rules.clearMusicSheetObjects(),this.prepareGraphicalMusicSheet()}},{key:"prepareGraphicalMusicSheet",value:function(){var e=this.graphicalMusicSheet.ParentMusicSheet;this.staffEntriesWithGraphicalTies=[],this.staffEntriesWithOrnaments=[],this.staffEntriesWithChordSymbols=[],this.staffLinesWithLyricWords=[],this.graphicalMusicSheet.Initialize();for(var t=this.graphicalMusicSheet.MeasureList,n=this.createAccidentalCalculators(),r=this.graphicalMusicSheet.initializeActiveClefs(),i=[],a=e.getCompleteNumberOfStaves(),o=[],s=0;s<a;s++)o.push(void 0);for(var l=0,u=e.SourceMeasures.length;l<u;++l){var c=e.SourceMeasures[l],h=this.createGraphicalMeasuresForSourceMeasure(c,n,i,o,r);if(t.push(h),c.multipleRestMeasures>0&&this.rules.RenderMultipleRestMeasures){c.isReducedToMultiRest=!0,c.multipleRestMeasureNumber=1;var d=c.multipleRestMeasures-1;l+=d;for(var f=1;f<=d;f++){var p=e.SourceMeasures[c.MeasureNumber-1+f];p.multipleRestMeasureNumber=f+1,p.isReducedToMultiRest=!0,t.push([void 0])}}}if(this.rules.AutoGenerateMutipleRestMeasuresFromRestMeasures&&this.rules.RenderMultipleRestMeasures){for(var v=void 0,m=0,g=0,y=e.SourceMeasures.length;g<y;++g){var b=e.SourceMeasures[g];if(!b.isReducedToMultiRest&&b.canBeReducedToMultiRest())if(m>0){v.isReducedToMultiRest=!0,v.multipleRestMeasureNumber=1,m++,b.multipleRestMeasureNumber=m,b.isReducedToMultiRest=!0;for(var A=0;A<t[g].length;A++)t[g][A]=void 0}else v=b,m=1;else if(m>1){v.multipleRestMeasures=m;var S=this.createGraphicalMeasuresForSourceMeasure(v,n,i,o,r);t[v.measureListIndex]=S,m=0,v=void 0}else m=0,v=void 0}if(m>1){v.multipleRestMeasures=m,v.isReducedToMultiRest=!0;var x=this.createGraphicalMeasuresForSourceMeasure(v,n,i,o,r);t[v.measureListIndex]=x,m=0,v=void 0}}var w=r.map((function(e){return e.ClefType===ClefEnum.percussion}));this.handleStaffEntries(w),this.calculateVerticalContainersList(),this.setIndicesToVerticalGraphicalContainers()}},{key:"calculate",value:function(){this.musicSystems=[],this.clearSystemsAndMeasures(),this.clearRecreatedObjects(),this.createGraphicalTies(),this.calculateSheetLabelBoundingBoxes(),this.calculateXLayout(this.graphicalMusicSheet,this.maxInstrNameLabelLength()),this.graphicalMusicSheet.MusicPages.length=0,this.calculateMusicSystems(),GraphicalMusicSheet.transformRelativeToAbsolutePosition(this.graphicalMusicSheet)}},{key:"calculateXLayout",value:function(t,n){var r=0,i=this.rules.MaxInstructionsConstValue;if(this.graphicalMusicSheet.MeasureList.length>0){var a=this.graphicalMusicSheet.MeasureList[0],o=this.calculateMeasureXLayout(a);o=this.calculateMeasureWidthFromStaffEntries(a,o),e.setMeasuresMinStaffEntriesWidth(a,o),r=1.2*o+n+i;for(var s=1;s<this.graphicalMusicSheet.MeasureList.length;s++)a=this.graphicalMusicSheet.MeasureList[s],o=this.calculateMeasureXLayout(a),o=this.calculateMeasureWidthFromStaffEntries(a,o),e.setMeasuresMinStaffEntriesWidth(a,o),r=Math.max(r,1.2*o+i)}this.graphicalMusicSheet.MinAllowedSystemWidth=r}},{key:"calculateMeasureWidthFromStaffEntries",value:function(e,t){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"formatMeasures",value:function(){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateMeasureXLayout",value:function(e){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"initGraphicalMeasuresCreation",value:function(){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleBeam",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleTiedGraphicalNote",value:function(e,t,n,r,i,a,o,s){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleVoiceEntryLyrics",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleVoiceEntryOrnaments",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleVoiceEntryArticulations",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleVoiceEntryTechnicalInstructions",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"handleTuplet",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"layoutVoiceEntry",value:function(e,t,n,r){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"layoutStaffEntry",value:function(e){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"createGraphicalTie",value:function(e,t,n,r,i){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"updateStaffLineBorders",value:function(e){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateMeasureNumberPlacement",value:function(e){var t=e.StaffLines[0];if(t&&t.Measures[0])for(var n=t.Measures[0].MeasureNumber,r=0,i=0;i<t.Measures.length;i++){if(this.rules.RenderMeasureNumbersOnlyAtSystemStart&&i>0)return;var a=t.Measures[i];0!==a.MeasureNumber&&1!==a.MeasureNumber||(n=a.MeasureNumber),r=a!==t.Measures[0]&&this.rules.MeasureNumberLabelXOffset?this.rules.MeasureNumberLabelXOffset:0;var o=this.rules.UseXMLMeasureNumbers&&1===a.MeasureNumber&&1!==a.parentSourceMeasure.getPrintedMeasureNumber();((a.MeasureNumber===n||a.MeasureNumber>=n+this.rules.MeasureNumberLabelOffset)&&!a.parentSourceMeasure.ImplicitMeasure||o)&&((1!==a.MeasureNumber||1===a.MeasureNumber&&a!==t.Measures[0]||o)&&this.calculateSingleMeasureNumberPlacement(a,t,e,r),n=a.MeasureNumber)}else loglevelExports.warn("calculateMeasureNumberPlacement: measure undefined for system.Id "+e.Id)}},{key:"calculateSingleMeasureNumberPlacement",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=e.parentSourceMeasure.getPrintedMeasureNumber().toString(),a=new Label(i),o=new GraphicalLabel(a,this.rules.MeasureNumberLabelHeight,TextAlignmentEnum.LeftBottom,this.rules),s=t.SkyBottomLineCalculator;o.setLabelPositionAndShapeBorders(),o.PositionAndShape.Parent=n.PositionAndShape;var l,u=t.PositionAndShape.RelativePosition.x+e.PositionAndShape.RelativePosition.x-o.PositionAndShape.BorderMarginLeft+r,c=u,h=u-o.PositionAndShape.BorderLeft+o.PositionAndShape.BorderRight,d=(c-=t.PositionAndShape.RelativePosition.x)+.5,f=(h-=t.PositionAndShape.RelativePosition.x)-.5,p=s.getSkyLineMinInRange(d,f);if(e===t.Measures[0]){var v=0;if(n.GroupBrackets.length>0){var m,g=_createForOfIteratorHelper(n.GroupBrackets);try{for(g.s();!(m=g.n()).done;){var y=m.value;v=Math.min(v,y.PositionAndShape.BorderTop)}}catch(err){g.e(err)}finally{g.f()}}l=Math.min(p,v)}else l=p;l=Math.min(0,l),o.PositionAndShape.RelativePosition=new PointF2D(u,l),n.MeasureNumberLabels.push(o)}},{key:"calculateMeasureNumberSkyline",value:function(e){var t,n=e.StaffLines[0],r=_createForOfIteratorHelper(e.MeasureNumberLabels);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.PositionAndShape.RelativePosition.x,o=a-i.PositionAndShape.BorderLeft+i.PositionAndShape.BorderRight;a-=n.PositionAndShape.RelativePosition.x,o-=n.PositionAndShape.RelativePosition.x,n.SkyBottomLineCalculator.updateSkyLineInRange(a,o,i.PositionAndShape.RelativePosition.y+i.PositionAndShape.BorderMarginTop)}}catch(err){r.e(err)}finally{r.f()}}},{key:"layoutGraphicalTie",value:function(e,t,n){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateSingleStaffLineLyricsPosition",value:function(e,t){for(var n=0,r=this.rules.StaffHeight,i=[],a=e.SkyBottomLineCalculator,o=e.Measures.length,s=0;s<o;++s)for(var l=e.Measures[s],u=l.PositionAndShape.RelativePosition,c=l.staffEntries.length,h=0;h<c;++h){var d=l.staffEntries[h];if(d.LyricsEntries.length>0){i.push(d),n=Math.max(n,d.LyricsEntries.length);for(var f=d.PositionAndShape.RelativePosition.x+u.x,p=Number.MAX_VALUE,v=Number.MIN_VALUE,m=0;m<d.LyricsEntries.length;m++){var g=d.LyricsEntries[m].GraphicalLabel;p=Math.min(p,f+g.PositionAndShape.BorderMarginLeft),v=Math.max(v,f+g.PositionAndShape.BorderMarginRight)}var y=a.getBottomLineMaxInRange(p,v);r=Math.max(r,y)}}var b=0;o=i.length;for(var A=0,S=i;A<S.length;A++)for(var x=S[A],w=0;w<x.LyricsEntries.length;w++){var _=x.LyricsEntries[w],E=_.GraphicalLabel,k=_.LyricsEntry.VerseNumber,C=t.indexOf(k),M=r+this.rules.LyricsHeight+this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsYOffsetToStaffHeight+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*C;this.leadSheet&&(M=3.4+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*C);var P=E.PositionAndShape.RelativePosition.x;E.PositionAndShape.RelativePosition=new PointF2D(P,M),b=Math.max(b,M)}if(i.length>0){var I=e.PositionAndShape.Size.width,T=i[0].PositionAndShape.RelativePosition.x+i[0].PositionAndShape.BorderMarginLeft+i[0].parentMeasure.PositionAndShape.RelativePosition.x;T=T>I?I:T,a.updateBottomLineInRange(T,I,b)}return i}},{key:"calculateLyricsExtendsAndDashes",value:function(e){for(var t=0,n=e.length;t<n;++t)for(var r=e[t],i=0;i<r.LyricsEntries.length;i++){var a=r.LyricsEntries[i];a.ParentLyricWord&&a.ParentLyricWord.GraphicalLyricsEntries[a.ParentLyricWord.GraphicalLyricsEntries.length-1]!==a&&this.calculateSingleLyricWord(a),a.LyricsEntry.extend&&this.calculateLyricExtend(a)}}},{key:"calculateSingleOctaveShift",value:function(e,t,n,r){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateWordRepetitionInstruction",value:function(e,t){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateMoodAndUnknownExpression",value:function(e,t,n){var r=e.AbsoluteTimestamp,i=this.graphicalMusicSheet.MeasureList[t],a=new PointF2D;if(e.MoodList.length>0||e.UnknownList.length>0){for(var o,s="",l=0,u=e.EntriesList.length;l<u;++l){var c=e.EntriesList[l];""!==c.prefix&&(s+=""===s?c.prefix:" "+c.prefix),s+=""===s?c.label:" "+c.label}var h=i[n].ParentStaffLine;if(!h)return void loglevelExports.debug("MusicSheetCalculator.calculateMoodAndUnknownExpression: staffLine undefined. Returning.");a=this.getRelativePositionInStaffLineFromTimestamp(r,n,h,null==h?void 0:h.isPartOfMultiStaffInstrument()),Math.abs(a.x-0)<1e-4&&(a.x=i[n].beginInstructionsWidth+this.rules.RhythmRightMargin);var d=this.rules.UnknownTextHeight,f=e.getPlacementOfFirstEntry(),p=this.calculateLabel(h,a,s,e.getFontstyleOfFirstEntry(),f,d);new GraphicalUnknownExpression(h,p,f,null===(o=i[n])||void 0===o?void 0:o.parentSourceMeasure,e)}}},{key:"clearRecreatedObjects",value:function(){for(var e=0,t=this.staffEntriesWithGraphicalTies.length;e<t;++e){this.staffEntriesWithGraphicalTies[e].GraphicalTies.length=0}this.staffEntriesWithGraphicalTies.length=0}},{key:"handleStaffEntryLink",value:function(e,t){loglevelExports.debug("handleStaffEntryLink not implemented")}},{key:"calculateMusicSystems",value:function(){if(this.graphicalMusicSheet.MeasureList){var e=this.graphicalMusicSheet.MeasureList;if(e){this.rules.MinMeasureToDrawIndex>e.length-1&&(loglevelExports.debug("minimum measure to draw index out of range. resetting min measure index to limit."),this.rules.MinMeasureToDrawIndex=e.length-1);for(var t=[],n=this.rules.MinMeasureToDrawIndex,r=e.length;n<r&&n<=this.rules.MaxMeasureToDrawIndex;++n){for(var i=[],a=0,o=e[n].length;a<o;++a){var s=e[n][a];if(null!=s&&s.isVisible()&&(i.push(s),this.rules.ColoringEnabled)){var l,u=_createForOfIteratorHelper(s.staffEntries);try{for(u.s();!(l=u.n()).done;){var c,h=_createForOfIteratorHelper(l.value.graphicalVoiceEntries);try{for(h.s();!(c=h.n()).done;){c.value.color()}}catch(err){h.e(err)}finally{h.f()}}}catch(err){u.e(err)}finally{u.f()}}}t.push(i)}for(var d=0,f=0,p=t.length;f<p;++f){var v=t[f];d=Math.max(v.length,d);break}if(0!==d){var m;if((m=1===e.length||this.rules.RenderSingleHorizontalStaffline?new MusicSystemBuilder:new JustifiedMusicSystemBuilder).initialize(this.graphicalMusicSheet,t,d),this.musicSystems=m.buildMusicSystems(),this.formatMeasures(),this.leadSheet||(this.optimizeRestPlacement(),this.calculateStaffEntryArticulationMarks(),this.rules.RenderSlurs&&this.calculateTieCurves()),this.calculateSkyBottomLines(),this.calculateTupletNumbers(),this.rules.RenderMeasureNumbers)for(var g=0,y=this.musicSystems.length;g<y;++g){var b=this.musicSystems[g];this.calculateMeasureNumberPlacement(b)}if(this.calculateFingerings(),!this.leadSheet&&this.rules.RenderSlurs&&this.calculateSlurs(),this.rules.RenderMeasureNumbers)for(var A=0,S=this.musicSystems.length;A<S;++A){var x=this.musicSystems[A];this.calculateMeasureNumberSkyline(x)}this.leadSheet||this.calculateOrnaments(),this.calculateChordSymbols(),this.leadSheet||(this.calculateDynamicExpressions(),this.calculateMoodAndUnknownExpressions(),this.calculateExpressionAlignements(),this.calculateOctaveShifts(),this.calculatePedals(),this.calculateWavyLines(),this.calculateWordRepetitionInstructions()),this.calculateRepetitionEndings(),this.leadSheet||this.calculateTempoExpressions(),this.calculateRehearsalMarks(),this.calculateLyricsPosition();for(var w=0,_=this.musicSystems.length;w<_;++w)for(var E=this.musicSystems[w],k=0,C=E.StaffLines.length;k<C;++k){var M=E.StaffLines[k];this.updateStaffLineBorders(M)}m.calculateSystemYLayout(),this.calculateMarkedAreas();for(var P=0,I=this.graphicalMusicSheet.MusicPages.length;P<I;++P){for(var T=this.graphicalMusicSheet.MusicPages[P],B=0,R=T.MusicSystems.length;B<R;++B){var L=0===P&&0===B,N=T.MusicSystems[B];N.setMusicSystemLabelsYPosition(),this.leadSheet?N===N.Parent.MusicSystems[0]&&N.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,L):(N.setYPositionsToVerticalLineObjectsAndCreateLines(this.rules),N.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,L),N.createInstrumentBrackets(this.graphicalMusicSheet.ParentMusicSheet.Instruments,this.rules.StaffHeight),N.createGroupBrackets(this.graphicalMusicSheet.ParentMusicSheet.InstrumentalGroups,this.rules.StaffHeight,0),N.alignBeginInstructions()),N.calculateBorders(this.rules)}for(var F=T.MusicSystems[0].PositionAndShape.BorderTop,D=0,O=T.MusicSystems.length;D<O;++D){var V=T.MusicSystems[D];V.PositionAndShape.RelativePosition=new PointF2D(V.PositionAndShape.RelativePosition.x,V.PositionAndShape.RelativePosition.y-F)}for(var z=0,G=T.MusicSystems.length;z<G;++z)for(var H=T.MusicSystems[z],U=0,j=H.StaffLines.length;U<j;++U){H.StaffLines[U].addActivitySymbolClickArea()}T.PositionAndShape.calculateTopBottomBorders(),T===this.graphicalMusicSheet.MusicPages[0]&&this.calculatePageLabels(T),T.PositionAndShape.calculateTopBottomBorders()}}}}}},{key:"calculateMarkedAreas",value:function(){}},{key:"calculateChordSymbols",value:function(){var e,t=_createForOfIteratorHelper(this.musicSystems);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.StaffLines);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.SkyBottomLineCalculator,o=Number.MAX_SAFE_INTEGER;if(this.rules.ChordSymbolYAlignment&&"staffline"===this.rules.ChordSymbolYAlignmentScope){var s,l=[],u=_createForOfIteratorHelper(i.Measures);try{for(u.s();!(s=u.n()).done;){var c=s.value;l.push.apply(l,_toConsumableArray2(c.staffEntries))}}catch(err){u.e(err)}finally{u.f()}o=this.calculateAlignedChordSymbolsOffset(l,a)}var h,d=_createForOfIteratorHelper(i.Measures);try{for(d.s();!(h=d.n()).done;){var f=h.value;this.rules.ChordSymbolYAlignment&&"measure"===this.rules.ChordSymbolYAlignmentScope&&(o=this.calculateAlignedChordSymbolsOffset(f.staffEntries,a));var p,v=_createForOfIteratorHelper(f.staffEntries);try{for(v.s();!(p=v.n()).done;){var m=p.value;if(m.graphicalChordContainers&&0!==m.graphicalChordContainers.length)for(var g=0;g<m.graphicalChordContainers.length;g++){var y=m.graphicalChordContainers[g],b=m.PositionAndShape,A=y.PositionAndShape,S=A.BorderMarginLeft+b.AbsolutePosition.x,x=A.BorderMarginRight+b.AbsolutePosition.x;(!this.rules.ChordSymbolYAlignment||o>0)&&(o=a.getSkyLineMinInRange(S,x));var w=0;0===g?(w+=this.rules.ChordSymbolYOffset,w+=.1):w+=this.rules.ChordSymbolYPadding,w*=-1;var _=y.GraphicalLabel;_.PositionAndShape.RelativePosition.y=o+w,_.setLabelPositionAndShapeBorders(),_.PositionAndShape.calculateBoundingBox(),a.updateSkyLineInRange(S,x,o+_.PositionAndShape.BorderMarginTop)}}}catch(err){v.e(err)}finally{v.f()}}}catch(err){d.e(err)}finally{d.f()}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}},{key:"calculateAlignedChordSymbolsOffset",value:function(e,t){var n,r=Number.MAX_SAFE_INTEGER,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a,o=n.value,s=_createForOfIteratorHelper(o.graphicalChordContainers);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=o.PositionAndShape,c=l.PositionAndShape,h=c.BorderMarginLeft+u.AbsolutePosition.x,d=c.BorderMarginRight+u.AbsolutePosition.x;r=Math.min(r,t.getSkyLineMinInRange(h,d))}}catch(err){s.e(err)}finally{s.f()}}}catch(err){i.e(err)}finally{i.f()}return r}},{key:"layoutMeasureWithWholeRest",value:function(e,t,n){}},{key:"layoutBeams",value:function(e){}},{key:"layoutArticulationMarks",value:function(e,t,n){}},{key:"layoutOrnament",value:function(e,t,n){}},{key:"calculateRestNotePlacementWithinGraphicalBeam",value:function(e,t,n,r,i){}},{key:"calculateTupletNumbers",value:function(){}},{key:"calculateSlurs",value:function(){}},{key:"calculateDynamicExpressionsForMultiExpression",value:function(e,t,n){}},{key:"calculateGraphicalVerbalContinuousDynamic",value:function(e,t){var n,r=e.Label,i=t.x+r.PositionAndShape.BorderMarginLeft,a=t.x+r.PositionAndShape.BorderMarginRight,o=e.ContinuousDynamic.Placement,s=e.ParentStaffLine.SkyBottomLineCalculator;o===PlacementEnum.Below?(n=s.getBottomLineMaxInRange(i,a),r.PositionAndShape.RelativePosition=new PointF2D(t.x,n-r.PositionAndShape.BorderMarginTop)):(n=s.getSkyLineMinInRange(i,a),r.PositionAndShape.RelativePosition=new PointF2D(t.x,n-r.PositionAndShape.BorderMarginBottom))}},{key:"calculateGraphicalContinuousDynamic",value:function(e,t){var n,r,i=e.ParentStaffLine.ParentStaff.idInMusicSheet,a=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(e.ContinuousDynamic.EndMultiExpression.SourceMeasureParent,i);if(a){e.EndMeasure=a;var o=e.ParentStaffLine,s=a.ParentStaffLine,l=s&&o===s,u=!1;s?u=null==s?void 0:s.isPartOfMultiStaffInstrument():o&&(u=null==o?void 0:o.isPartOfMultiStaffInstrument());var c,h=Fraction$1.createFromFraction(e.ContinuousDynamic.EndMultiExpression.AbsoluteTimestamp),d=this.graphicalMusicSheet.GetVerticalContainerFromTimestamp(h),f=d.getFirstNonNullStaffEntry().parentMeasure,p=f.PositionAndShape.AbsolutePosition.x+f.PositionAndShape.BorderRight,v=new Fraction$1(0,0,0),m=_createForOfIteratorHelper(d.StaffEntries);try{for(m.s();!(c=m.n()).done;){var g,y=c.value,b=null==y||null===(g=y.sourceStaffEntry)||void 0===g?void 0:g.calculateMaxNoteLength();null!=b&&b.gt(v)&&(v=b)}}catch(err){m.e(err)}finally{m.f()}var A=this.getRelativePositionInStaffLineFromTimestamp(h,i,s,u,0),S=Fraction$1.plus(h,v),x=this.getRelativePositionInStaffLineFromTimestamp(S,i,s,u,0);x.x>A.x&&x.x<p?A.x+=(x.x-A.x)/this.rules.WedgeEndDistanceBetweenTimestampsFactor:A.x=p-this.rules.WedgeHorizontalMargin;var w=this.dynamicExpressionMap.get(e.ContinuousDynamic.StartMultiExpression.AbsoluteTimestamp.RealValue);w&&(t.x=w.RelativePosition.x+w.BorderMarginRight+this.rules.WedgeHorizontalMargin);var _=o.ParentMusicSystem,E=_.StaffLines.indexOf(o),k=o.SkyBottomLineCalculator,C=e.ContinuousDynamic.Placement,M=e.ContinuousDynamic.DynamicType;0!==M&&1!==M||(C=1);var P=void 0;l&&A.x-t.x<this.rules.WedgeMinLength&&(A.x=t.x+this.rules.WedgeMinLength);var I=t.x,T=s.Measures[0].beginInstructionsWidth-this.rules.WedgeHorizontalMargin-2,B=0,R=0;l?B=A.x:(B=o.PositionAndShape.Size.width,R=A.x,(P=new GraphicalContinuousDynamicExpression(e.ContinuousDynamic,s,a.parentSourceMeasure)).IsSplittedPart=!0,e.IsSplittedPart=!0);var L=0,N=0;if(C===PlacementEnum.Below){var F=0;if(E<_.StaffLines.length-1&&(F=E+1),F>E){var D=_.StaffLines[F].PositionAndShape.RelativePosition.y-o.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;L=this.rules.StaffHeight+D/2}else L=this.rules.WedgePlacementBelowY;L-=this.rules.WedgeOpeningLength/2,l||(N=L);var O=k.getBottomLineMaxInRange(I,B);if(O>L&&(L=O),E<_.StaffLines.length-1){var V=o.findClosestStaffEntry(B),z=o.findClosestStaffEntry(I);z&&V&&z.parentVerticalContainer}l||((O=s.SkyBottomLineCalculator.getBottomLineMaxInRange(T,R))>N&&(N=O),N+=this.rules.WedgeOpeningLength/2,N+=this.rules.WedgeVerticalMargin),L+=this.rules.WedgeOpeningLength/2,L+=this.rules.WedgeVerticalMargin}else if(C===PlacementEnum.Above){if(1===o.ParentStaff.ParentInstrument.Staves.length)L=this.rules.WedgePlacementAboveY;else{var G=0;E>0&&(G=E-1);var H=_.StaffLines[G];L=-(o.PositionAndShape.RelativePosition.y-H.PositionAndShape.RelativePosition.y-this.rules.StaffHeight)/2}L+=this.rules.WedgeOpeningLength/2,l||(N=L);var U=k.getSkyLineMinInRange(I,B);if(U<L&&(L=U),o.ParentStaff.ParentInstrument.Staves.length>1&&E>0){var j=o.findClosestStaffEntry(I),Q=o.findClosestStaffEntry(B);j&&Q&&j.parentVerticalContainer}l||((U=s.SkyBottomLineCalculator.getSkyLineMinInRange(T,R))<N&&(N=U),N-=this.rules.WedgeOpeningLength/2),L-=this.rules.WedgeOpeningLength/2,L-=this.rules.WedgeVerticalMargin,l||(N-=this.rules.WedgeVerticalMargin)}e.Lines.clear(),2===(null==e||null===(n=e.ParentStaffLine)||void 0===n||null===(r=n.ParentStaff)||void 0===r?void 0:r.StafflineCount)&&(L+=1,N+=3),e.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?l?(e.createCrescendoLines(I,B,L),e.calcPsi()):(e.createFirstHalfCrescendoLines(I,B,L),e.calcPsi(),P.createSecondHalfCrescendoLines(T,R,N),P.calcPsi()):e.ContinuousDynamic.DynamicType===ContDynamicEnum.diminuendo&&(l?(e.createDiminuendoLines(I,B,L),e.calcPsi()):(e.createFirstHalfDiminuendoLines(I,B,L),e.calcPsi(),P.createSecondHalfDiminuendoLines(T,R,N),P.calcPsi())),this.dynamicExpressionMap.set(h.RealValue,e.PositionAndShape)}else loglevelExports.warn("MusicSheetCalculator.calculateGraphicalContinuousDynamic: No endMeasure found")}},{key:"calculateGraphicalInstantaneousDynamicExpression",value:function(e,t,n){var r=e.ParentStaffLine;if(r){var i=t.x+e.PositionAndShape.BorderMarginLeft,a=t.x+e.PositionAndShape.BorderMarginRight,o=r.SkyBottomLineCalculator,s=0;if(e.Placement===PlacementEnum.Above){var l=o.getSkyLineMinInRange(i,a);if(r.isPartOfMultiStaffInstrument()&&r.ParentStaff!==r.ParentStaff.ParentInstrument.Staves[0]){var u=r.ParentMusicSystem.StaffLines[r.ParentMusicSystem.StaffLines.indexOf(r)-1],c=r.PositionAndShape.RelativePosition.y-u.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;s=l>-c/2?-c/2:l-e.PositionAndShape.BorderMarginBottom}else s=l-e.PositionAndShape.BorderMarginBottom;e.PositionAndShape.RelativePosition=new PointF2D(t.x,s)}else if(e.Placement===PlacementEnum.Below){var h=o.getBottomLineMaxInRange(i,a),d=r.ParentStaff.ParentInstrument.Staves[r.ParentStaff.ParentInstrument.Staves.length-1];if(r.isPartOfMultiStaffInstrument()&&r.ParentStaff!==d){var f=r.ParentMusicSystem.StaffLines[r.ParentMusicSystem.StaffLines.indexOf(r)+1].PositionAndShape.RelativePosition.y-r.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;s=h+e.PositionAndShape.BorderMarginBottom<this.rules.StaffHeight+f/2?this.rules.StaffHeight+f/2:h-e.PositionAndShape.BorderMarginTop}else s=h-e.PositionAndShape.BorderMarginTop;e.PositionAndShape.RelativePosition=new PointF2D(t.x,s)}e.updateSkyBottomLine()}}},{key:"calcGraphicalRepetitionEndingsRecursively",value:function(e){}},{key:"layoutSingleRepetitionEnding",value:function(e,t,n,r,i,a){}},{key:"calculateLabel",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:TextAlignmentEnum.CenterBottom,s=new Label(n,o);s.fontStyle=r,s.fontHeight=a;var l=new GraphicalLabel(s,a,s.textAlignment,this.rules,e.PositionAndShape),u=1.1;i===PlacementEnum.Below&&(l.Label.textAlignment=TextAlignmentEnum.LeftTop),l.setLabelPositionAndShapeBorders(),l.PositionAndShape.BorderMarginBottom*=u,l.PositionAndShape.BorderMarginTop*=u,l.PositionAndShape.BorderMarginLeft*=u,l.PositionAndShape.BorderMarginRight*=u;var c,h=t.x+l.PositionAndShape.BorderMarginLeft,d=t.x+l.PositionAndShape.BorderMarginRight;d>e.PositionAndShape.Size.width&&(h=(d=e.PositionAndShape.Size.width-this.rules.MeasureRightMargin)-l.PositionAndShape.MarginSize.width,t.x=h-l.PositionAndShape.BorderMarginLeft);var f=e.SkyBottomLineCalculator;return c=i===PlacementEnum.Below?f.getBottomLineMaxInRange(h,d):f.getSkyLineMinInRange(h,d),l.PositionAndShape.RelativePosition=new PointF2D(t.x,c),i===PlacementEnum.Below?f.updateBottomLineInRange(h,d,l.PositionAndShape.BorderMarginBottom+c):f.updateSkyLineInRange(h,d,l.PositionAndShape.BorderMarginTop+c),l}},{key:"calculateTempoExpressionsForMultiTempoExpression",value:function(e,t,n,r){metronomeMarks={};var i=Fraction$1.plus(e.AbsoluteTimestamp,t.Timestamp),a=this.graphicalMusicSheet.MeasureList[n],o=new PointF2D;if(t.ContinuousTempo||t.InstantaneousTempo){if(this.rules.MinMeasureToDrawIndex>0)return;if(!a[0])return;for(var s=a[0].ParentStaffLine,l=a[0].PositionAndShape.RelativePosition.x,u=0,c=0;c<a.length;c++)if(a[c].ParentStaffLine&&0!==a[c].ParentStaffLine.Measures.length&&a[c].ParentStaffLine.Measures.length>0){s=a[c].ParentStaffLine,l=a[c].PositionAndShape.RelativePosition.x,u=c;break}if(o=this.getRelativePositionInStaffLineFromTimestamp(i,u,s,s.isPartOfMultiStaffInstrument(),l),t.EntriesList.length>0&&t.EntriesList[0].Expression instanceof InstantaneousTempoExpression)if(t.EntriesList[0].Expression.Placement=PlacementEnum.Above,s.Measures[0].staffEntries.length>0&&0===Math.abs(o.x-s.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x)&&s.ParentMusicSystem===this.musicSystems[0]){var h=s.Measures[0].FirstInstructionStaffEntry;if(h){var d=h.GraphicalInstructions.last();o.x=d.PositionAndShape.RelativePosition.x}this.rules.CompactMode&&(o.x=s.PositionAndShape.RelativePosition.x+s.Measures[0].PositionAndShape.RelativePosition.x)}var f,p=_createForOfIteratorHelper(t.EntriesList);try{for(p.s();!(f=p.n()).done;){var v=f.value,m=TextAlignmentEnum.CenterBottom;this.rules.CompactMode&&(m=TextAlignmentEnum.LeftBottom);var g=this.calculateLabel(s,o,v.label,t.getFontstyleOfFirstEntry(),v.Expression.Placement,this.rules.UnknownTextHeight,m);if(v.Expression instanceof InstantaneousTempoExpression){var y,b=_createForOfIteratorHelper(s.AbstractExpressions);try{for(b.s();!(y=b.n()).done;){var A=y.value;A instanceof GraphicalInstantaneousTempoExpression&&(A.SourceExpression.Label,v.Expression.Label)}}catch(err){b.e(err)}finally{b.f()}new GraphicalInstantaneousTempoExpression(v.Expression,g).ParentStaffLine||loglevelExports.warn("Adding staffline didn't work"),v.Expression.Enum===TempoEnum.metronomeMark&&(metronomeMarks[n]=v.Expression)}else v.Expression;if(r===e.TempoExpressions.length-1)for(var S=0,x=Object.values(metronomeMarks);S<x.length;S++){var w=x[S];this.createMetronomeMark(w,n)}}}catch(err){p.e(err)}finally{p.f()}}}},{key:"createMetronomeMark",value:function(e,t){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"graphicalMeasureCreatedCalculations",value:function(e){}},{key:"clearSystemsAndMeasures",value:function(){for(var e=0,t=this.graphicalMusicSheet.MusicPages.length;e<t;++e){for(var n=this.graphicalMusicSheet.MusicPages[e],r=0,i=n.MusicSystems.length;r<i;++r){for(var a=n.MusicSystems[r],o=0,s=a.StaffLines.length;o<s;++o){for(var l=a.StaffLines[o],u=0,c=l.Measures.length;u<c;++u){var h=l.Measures[u];if(h.FirstInstructionStaffEntry){var d=h.PositionAndShape.ChildElements.indexOf(h.FirstInstructionStaffEntry.PositionAndShape);d>-1&&h.PositionAndShape.ChildElements.splice(d,1),h.FirstInstructionStaffEntry=void 0,h.beginInstructionsWidth=0}if(h.LastInstructionStaffEntry){var f=h.PositionAndShape.ChildElements.indexOf(h.LastInstructionStaffEntry.PositionAndShape);f>-1&&h.PositionAndShape.ChildElements.splice(f,1),h.LastInstructionStaffEntry=void 0,h.endInstructionsWidth=0}}l.Measures=[],l.PositionAndShape.ChildElements=[]}a.StaffLines.length=0,a.PositionAndShape.ChildElements=[]}n.MusicSystems=[],n.PositionAndShape.ChildElements=[]}this.graphicalMusicSheet.MusicPages=[]}},{key:"handleVoiceEntry",value:function(t,n,r,i,a,o,s,l,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:void 0,h=arguments.length>10&&void 0!==arguments[10]?arguments[10]:void 0;t.StemDirectionXml!==StemDirectionType.Undefined&&this.rules.SetWantedStemDirectionByXml&&void 0!==t.StemDirectionXml?t.WantedStemDirection=t.StemDirectionXml:this.calculateStemDirectionFromVoices(t);var d=n.findOrCreateGraphicalVoiceEntry(t);d.octaveShiftValue=l;var f,p=n.tabStaffEntry;p&&(f=p.findOrCreateGraphicalVoiceEntry(t));for(var v=0,m=t.Notes.length;v<m;++v){var g=t.Notes[v];if(g&&!(void 0!==h&&void 0!==h.Link&&void 0!==c&&c.indexOf(g)>-1)){var y=void 0;if(t.IsGrace?y=e.symbolFactory.createGraceNote(g,d,a,this.rules,l):(y=e.symbolFactory.createNote(g,d,a,l,this.rules,void 0),e.stafflineNoteCalculator.trackNote(y)),g.Pitch&&this.checkNoteForAccidental(y,r,a,l),this.resetYPositionForLeadSheet(y.PositionAndShape),n.addGraphicalNoteToListAtCorrectYPosition(d,y),y.PositionAndShape.calculateBoundingBox(),this.leadSheet||(void 0!==g.NoteBeam&&g.PrintObject&&this.handleBeam(y,g.NoteBeam,s),void 0!==g.NoteTuplet&&g.PrintObject&&this.handleTuplet(y,g.NoteTuplet,o)),f){var b=e.symbolFactory.createNote(g,f,a,l,this.rules,void 0);p.addGraphicalNoteToListAtCorrectYPosition(f,b),b.PositionAndShape.calculateBoundingBox(),this.leadSheet||g.NoteTuplet&&this.handleTuplet(b,g.NoteTuplet,o)}}}return t.Articulations.length>0&&this.handleVoiceEntryArticulations(t.Articulations,t,n),t.TechnicalInstructions.length>0&&this.handleVoiceEntryTechnicalInstructions(t.TechnicalInstructions,t,n),t.LyricsEntries.size()>0&&this.handleVoiceEntryLyrics(t,n,i),t.OrnamentContainer&&this.handleVoiceEntryOrnaments(t.OrnamentContainer,t,n),l}},{key:"resetYPositionForLeadSheet",value:function(e){this.leadSheet&&(e.RelativePosition=new PointF2D(e.RelativePosition.x,0))}},{key:"layoutVoiceEntries",value:function(e,t){if(e.PositionAndShape.RelativePosition=new PointF2D(0,0),!this.leadSheet){var n,r=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value.notes;if(0!==i.length){var a=i[0].sourceNote.ParentVoiceEntry,o=void 0!==i[0].sourceNote.Pitch;this.layoutVoiceEntry(a,i,e,o)}}}catch(err){r.e(err)}finally{r.f()}}}},{key:"maxInstrNameLabelLength",value:function(){var e,t=0,n=_createForOfIteratorHelper(this.graphicalMusicSheet.ParentMusicSheet.Instruments);try{for(n.s();!(e=n.n()).done;){var r,i=e.value;if(null!==(r=i.NameLabel)&&void 0!==r&&r.print&&i.Voices.length>0&&i.Voices[0].Visible){var a=i.NameLabel;this.rules.RenderPartNames||(a=new Label("",a.textAlignment,a.font));var o=new GraphicalLabel(a,this.rules.InstrumentLabelTextHeight,TextAlignmentEnum.LeftCenter,this.rules);o.setLabelPositionAndShapeBorders(),t=Math.max(t,o.PositionAndShape.MarginSize.width)}}}catch(err){n.e(err)}finally{n.f()}return this.rules.RenderPartNames?t:0}},{key:"calculateSheetLabelBoundingBoxes",value:function(){var e,t=this.graphicalMusicSheet.ParentMusicSheet,n=this.rules.DefaultColorTitle;if(void 0!==t.Title&&this.rules.RenderTitle){var r=new GraphicalLabel(t.Title,this.rules.SheetTitleHeight,TextAlignmentEnum.CenterBottom,this.rules);r.Label.IsCreditLabel=!0,r.Label.colorDefault=n,this.graphicalMusicSheet.Title=r,r.setLabelPositionAndShapeBorders()}else this.rules.RenderTitle||(this.graphicalMusicSheet.Title=void 0);if(void 0!==t.Subtitle&&this.rules.RenderSubtitle){var i=new GraphicalLabel(t.Subtitle,this.rules.SheetSubtitleHeight,TextAlignmentEnum.CenterCenter,this.rules);i.Label.IsCreditLabel=!0,i.Label.colorDefault=n,this.graphicalMusicSheet.Subtitle=i,i.setLabelPositionAndShapeBorders()}else this.rules.RenderSubtitle||(this.graphicalMusicSheet.Subtitle=void 0);if(void 0!==t.Composer&&this.rules.RenderComposer){var a=new GraphicalLabel(t.Composer,this.rules.SheetComposerHeight,TextAlignmentEnum.RightCenter,this.rules);a.Label.IsCreditLabel=!0,a.Label.colorDefault=n,this.graphicalMusicSheet.Composer=a,a.setLabelPositionAndShapeBorders()}else this.rules.RenderComposer||(this.graphicalMusicSheet.Composer=void 0);if(void 0!==t.Lyricist&&this.rules.RenderLyricist){var o=new GraphicalLabel(t.Lyricist,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules);o.Label.IsCreditLabel=!0,o.Label.colorDefault=n,this.graphicalMusicSheet.Lyricist=o,o.setLabelPositionAndShapeBorders()}else this.rules.RenderLyricist||(this.graphicalMusicSheet.Lyricist=void 0);var s=null===(e=this.graphicalMusicSheet.musicSheet.sourceMeasures)||void 0===e?void 0:e[0];if(s&&s.FirstInstructionsStaffEntries.length>0){for(var l,u,c=s.FirstInstructionsStaffEntries[0],h=0,d=c.Instructions.length;h<d;++h){var f=c.Instructions[h];f instanceof ClefInstruction||(f instanceof KeyInstruction?l=f:f instanceof RhythmInstruction&&(u=f))}if(l){t.CurrentKeyInstruction=l;var p=VexFlowConverter.keySignature(l),v=new Label("1="+p),m=new Label("".concat(u.Rhythm.Numerator,"\n\n").concat(u.Rhythm.Denominator)),g=new GraphicalLabel(v,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules),y=new GraphicalLabel(m,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules),b=new Label("ᅳ"),A=new GraphicalLabel(b,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules);v.fontFamily="Arial",v.IsCreditLabel=!0,v.colorDefault=n,m.fontFamily="Arial",m.IsCreditLabel=!0,m.colorDefault=n,b.fontFamily="Arial",b.IsCreditLabel=!0,b.colorDefault=n,this.graphicalMusicSheet.JianpuKeySignature=g,this.graphicalMusicSheet.jianpuTimeSignature=y,this.graphicalMusicSheet.jianpuLine=A,g.setLabelPositionAndShapeBorders(),y.setLabelPositionAndShapeBorders(),A.setLabelPositionAndShapeBorders()}}}},{key:"checkMeasuresForWholeRestNotes",value:function(){for(var e=0,t=this.musicSystems.length;e<t;++e)for(var n=this.musicSystems[e],r=0,i=n.StaffLines.length;r<i;++r)for(var a=n.StaffLines[r],o=0,s=a.Measures.length;o<s;++o){var l=a.Measures[o];if(1===l.staffEntries.length){var u=l.staffEntries[0];if(u.graphicalVoiceEntries.length>0&&1===u.graphicalVoiceEntries[0].notes.length){var c=u.graphicalVoiceEntries[0].notes[0];!c.sourceNote.Pitch&&new Fraction$1(1,2).lt(c.sourceNote.Length)&&this.layoutMeasureWithWholeRest(c,u,l)}}}}},{key:"optimizeRestNotePlacement",value:function(e,t){if(0!==e.graphicalVoiceEntries.length){var n=e.graphicalVoiceEntries[0].notes;if(0!==n.length){var r=n[0],i=r.sourceNote.isRest();if(2===e.graphicalVoiceEntries.length){var a=!1,o=e.graphicalVoiceEntries[1].notes;if(o.length>0)a=o[0].sourceNote.isRest();i&&a?this.calculateTwoRestNotesPlacementWithCollisionDetection(e):(i||a)&&this.calculateRestNotePlacementWithCollisionDetectionFromGraphicalNote(e)}else if(i&&e!==t.staffEntries[0]&&e!==t.staffEntries[t.staffEntries.length-1]){var s=t.staffEntries.indexOf(e),l=t.staffEntries[s-1],u=t.staffEntries[s+1];if(1===l.graphicalVoiceEntries.length){var c=l.graphicalVoiceEntries[0].notes[0];if(void 0!==c.sourceNote.NoteBeam&&1===u.graphicalVoiceEntries.length){var h=u.graphicalVoiceEntries[0].notes[0];void 0!==h.sourceNote.NoteBeam&&c.sourceNote.NoteBeam===h.sourceNote.NoteBeam&&(this.calculateRestNotePlacementWithinGraphicalBeam(e,r,c,u,h),e.PositionAndShape.calculateBoundingBox())}}}}}}},{key:"getRelativePositionInStaffLineFromTimestamp",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=new PointF2D,o=void 0,s=void 0,l=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length,u=this.graphicalMusicSheet.GetInterpolatedIndexInVerticalContainers(e),c=Math.min(Math.floor(u),l-1),h=Math.min(Math.ceil(u),l-1);if(c<0||t<0)return a;if(o=this.getFirstLeftNotNullStaffEntryFromContainer(c,t,r),s=this.getFirstRightNotNullStaffEntryFromContainer(h,t,r),o&&s){var d=o.parentMeasure.PositionAndShape.RelativePosition.x;i>0&&(d=i);var f=o.PositionAndShape.RelativePosition.x+d,p=s.PositionAndShape.RelativePosition.x+s.parentMeasure.PositionAndShape.RelativePosition.x;i>0&&(p=s.PositionAndShape.RelativePosition.x+d);var v=0;if(o!==s){var m=o.getAbsoluteTimestamp(),g=s.getAbsoluteTimestamp();v=Fraction$1.minus(e,m).RealValue/Fraction$1.minus(g,m).RealValue}o.parentMeasure.ParentStaffLine!==s.parentMeasure.ParentStaffLine&&(o.parentMeasure.ParentStaffLine===n?p=n.PositionAndShape.Size.width:f=n.PositionAndShape.RelativePosition.x),a=new PointF2D(f+(p-f)*v,0)}return a}},{key:"getRelativeXPositionFromTimestamp",value:function(e){var t=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length,n=this.graphicalMusicSheet.GetInterpolatedIndexInVerticalContainers(e),r=Math.max(0,Math.min(Math.round(n),t-1)),i=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[r].getFirstNonNullStaffEntry();return i.PositionAndShape.RelativePosition.x+i.parentMeasure.PositionAndShape.RelativePosition.x}},{key:"calculatePageLabels",value:function(e){this.rules.RenderSingleHorizontalStaffline&&(e.PositionAndShape.BorderRight=e.PositionAndShape.Size.width,e.PositionAndShape.calculateBoundingBox(),this.graphicalMusicSheet.ParentMusicSheet.pageWidth=e.PositionAndShape.Size.width);var t=10;if(e.MusicSystems.length>0){var n=e.MusicSystems[0];t=n.PositionAndShape.RelativePosition.y+n.PositionAndShape.BorderTop}if(this.graphicalMusicSheet.Title){var r=this.graphicalMusicSheet.Title;r.PositionAndShape.Parent=e.PositionAndShape;var i=new PointF2D;i.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth/2,i.y=this.rules.TitleTopDistance+this.rules.SheetTitleHeight,r.PositionAndShape.RelativePosition=i,e.Labels.push(r)}if(this.graphicalMusicSheet.Subtitle){var a=this.graphicalMusicSheet.Subtitle;a.PositionAndShape.Parent=e.PositionAndShape;var o=new PointF2D;o.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth/2,o.y=this.rules.TitleTopDistance+this.rules.SheetTitleHeight+this.rules.SheetMinimumDistanceBetweenTitleAndSubtitle,a.PositionAndShape.RelativePosition=o,e.Labels.push(a)}var s,l=this.graphicalMusicSheet.Composer;if(l){var u;l.PositionAndShape.Parent=e.PositionAndShape,l.setLabelPositionAndShapeBorders();var c=new PointF2D;c.x=this.graphicalMusicSheet.ParentMusicSheet.pageWidth-this.rules.PageRightMargin,c.y=t,c.y-=this.rules.SystemComposerDistance;var h=null===(u=l.TextLines)||void 0===u?void 0:u.length;h>1&&(c.y-=l.PositionAndShape.BorderBottom*(h-1)/h),s=c.y,l.PositionAndShape.RelativePosition=c,e.Labels.push(l)}var d=this.graphicalMusicSheet.Lyricist;if(d){var f;d.PositionAndShape.Parent=e.PositionAndShape,d.setLabelPositionAndShapeBorders();var p=new PointF2D;p.x=this.rules.PageLeftMargin,p.y=t,p.y+=d.PositionAndShape.BorderBottom,p.y=Math.min(p.y,null!==(f=s)&&void 0!==f?f:Number.MAX_SAFE_INTEGER),d.PositionAndShape.RelativePosition=p,e.Labels.push(d)}}},{key:"createGraphicalTies",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++)for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0;n<t.CompleteNumberOfStaves;n++)for(var r=0;r<t.VerticalSourceStaffEntryContainers.length;r++){var i=t.VerticalSourceStaffEntryContainers[r].StaffEntries[n];if(i){var a=this.graphicalMusicSheet.findGraphicalStaffEntryFromMeasureList(n,e,i);a&&(a.GraphicalTies.clear(),a.ties.clear());for(var o=0,s=i.VoiceEntries.length;o<s;++o)for(var l=i.VoiceEntries[o],u=0,c=l.Notes.length;u<c;++u){var h=l.Notes[u];if(h.NoteTie){var d=h.NoteTie;if(h===h.NoteTie.Notes.last())continue;var f,p=_createForOfIteratorHelper(a.GraphicalTies);try{for(p.s();!(f=p.n()).done;){f.value.Tie}}catch(err){p.e(err)}finally{p.f()}this.handleTie(d,a,n,e)}}this.setTieDirections(a)}}}},{key:"handleTie",value:function(e,t,n,r){if(t){t.ties.push(e);for(var i=t,a=void 0,o=void 0,s=void 0,l=1;l<e.Notes.length;l++)if(a=i.findTieGraphicalNoteFromNote(e.Notes[l-1]),o=this.graphicalMusicSheet.GetGraphicalFromSourceStaffEntry(e.Notes[l].ParentStaffEntry)){if(s=o.findTieGraphicalNoteFromNote(e.Notes[l]),void 0!==a&&void 0!==s&&o){if(!a.sourceNote.PrintObject||!s.sourceNote.PrintObject)continue;var u=this.createGraphicalTie(e,i,o,a,s);i.GraphicalTies.push(u),this.staffEntriesWithGraphicalTies.indexOf(i)>=0&&this.staffEntriesWithGraphicalTies.push(i)}i=o}}}},{key:"setTieDirections",value:function(e){if(e){var t=e.ties;if(t.length>1){var n,r=void 0,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value.Notes[0];(!r||a.Pitch.getHalfTone()>r.Pitch.getHalfTone())&&(r=a)}}catch(err){i.e(err)}finally{i.f()}var o,s=_createForOfIteratorHelper(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;l.TieDirection===PlacementEnum.NotYetDefined&&(l.Notes[0]===r?l.TieDirection=PlacementEnum.Above:l.TieDirection=PlacementEnum.Below)}}catch(err){s.e(err)}finally{s.f()}}}}},{key:"createAccidentalCalculators",value:function(){var e=[],t=this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure();if(t)for(var n=0;n<t.CompleteNumberOfStaves;n++){var r=new AccidentalCalculator;if(e.push(r),t.FirstInstructionsStaffEntries[n])for(var i=0,a=t.FirstInstructionsStaffEntries[n].Instructions.length;i<a;++i){var o=t.FirstInstructionsStaffEntries[n].Instructions[i];if(o instanceof KeyInstruction){var s=o;r.ActiveKeyInstruction=s}}}return e}},{key:"calculateVerticalContainersList",value:function(){for(var e=this.graphicalMusicSheet.MeasureList[0].length,t=0;t<this.graphicalMusicSheet.MeasureList.length;t++)for(var n=0;n<e;n++){var r=this.graphicalMusicSheet.MeasureList[t][n];if(r)for(var i=0,a=r.staffEntries.length;i<a;++i){var o=r.staffEntries[i],s=this.graphicalMusicSheet.getOrCreateVerticalContainer(o.getAbsoluteTimestamp());s&&(s.StaffEntries[n]=o,o.parentVerticalContainer=s)}}}},{key:"setIndicesToVerticalGraphicalContainers",value:function(){for(var e=0;e<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;e++)this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[e].Index=e}},{key:"createGraphicalMeasuresForSourceMeasure",value:function(e,t,n,r,i){this.initGraphicalMeasuresCreation();for(var a=[],o=[],s=[],l=[],u=!0,c=0;c<e.CompleteNumberOfStaves;c++){var h=this.createGraphicalMeasure(e,s,o,t[c],i,r,n,c,l);u=u&&h.hasOnlyRests,a.push(h)}return e.allRests=u,e.VerticalMeasureList=a,a}},{key:"createGraphicalMeasure",value:function(t,n,r,i,a,o,s,l,u){var c=this.graphicalMusicSheet.ParentMusicSheet.getStaffFromIndex(l),h=void 0;if(a[l].ClefType===ClefEnum.TAB)c.isTab=!0,h=e.symbolFactory.createTabStaffMeasure(t,c);else if(t.multipleRestMeasures&&this.rules.RenderMultipleRestMeasures)h=e.symbolFactory.createMultiRestMeasure(t,c);else{if(t.multipleRestMeasureNumber>1)return;h=e.symbolFactory.createGraphicalMeasure(t,c)}if(h.hasError=t.getErrorInMeasure(l),t.FirstInstructionsStaffEntries[l])for(var d=0,f=t.FirstInstructionsStaffEntries[l].Instructions.length;d<f;++d){var p=t.FirstInstructionsStaffEntries[l].Instructions[d];if(p instanceof KeyInstruction){var v=KeyInstruction.copy(p),m=h.getTransposedHalftones();0!==m&&h.ParentStaff.ParentInstrument.MidiInstrumentId!==MidiInstrument.Percussion&&e.transposeCalculator&&e.transposeCalculator.transposeKey(v,m),i.ActiveKeyInstruction=v}}for(var g=[],y=0,b=t.StaffLinkedExpressions[l].length;y<b;++y){var A=t.StaffLinkedExpressions[l][y];if(A.OctaveShiftStart){var S;g.push(A);var x=A.OctaveShiftStart,w=null==x||null===(S=x.ParentEndMultiExpression)||void 0===S?void 0:S.AbsoluteTimestamp;if(null==x||!x.ParentEndMultiExpression)w=Fraction$1.plus(t.AbsoluteTimestamp,t.Duration);o[l]=new OctaveShiftParams(x,null==A?void 0:A.AbsoluteTimestamp,w)}}for(var _=0;_<t.VerticalSourceStaffEntryContainers.length;_++){var E=t.VerticalSourceStaffEntryContainers[_].StaffEntries[l];if(E){for(var k,C=0,M=E.Instructions.length;C<M;++C){var P=E.Instructions[C];P instanceof ClefInstruction&&(a[l]=P)}var I=e.symbolFactory.createStaffEntry(E,h);_<h.staffEntries.length?h.addGraphicalStaffEntryAtTimestamp(I):h.addGraphicalStaffEntry(I);var T=[];E.Link&&(E.findLinkedNotes(T),this.handleStaffEntryLink(I,u));var B=OctaveEnum.NONE;if(o[l]&&o[l].getAbsoluteStartTimestamp.lte(E.AbsoluteTimestamp)&&E.AbsoluteTimestamp.lte(o[l].getAbsoluteEndTimestamp)&&(B=o[l].getOpenOctaveShift.Type),B===OctaveEnum.NONE){var R,L=_createForOfIteratorHelper(g);try{for(L.s();!(R=L.n()).done;){var N,F,D,O,V=R.value;if(null!==(N=V.OctaveShiftStart)&&void 0!==N&&null!==(F=N.ParentStartMultiExpression)&&void 0!==F&&F.AbsoluteTimestamp.lte(E.AbsoluteTimestamp)&&(null===(D=V.OctaveShiftStart)||void 0===D||null===(O=D.ParentEndMultiExpression)||void 0===O||!O.AbsoluteTimestamp.lt(E.AbsoluteTimestamp))){B=V.OctaveShiftStart.Type;break}}}catch(err){L.e(err)}finally{L.f()}}for(var z=0,G=E.VoiceEntries.length;z<G;++z){var H=E.VoiceEntries[z];B=this.handleVoiceEntry(H,I,i,s,a[l],n,r,B,l,T,E)}if(E.Instructions.length>0){var U=E.Instructions[0];e.symbolFactory.createInStaffClef(I,U)}this.rules.RenderChordSymbols&&(null===(k=E.ChordContainers)||void 0===k?void 0:k.length)>0&&(E.ParentStaff.ParentInstrument.HasChordSymbols=!0,e.symbolFactory.createChordSymbols(E,I,i.ActiveKeyInstruction,this.graphicalMusicSheet.ParentMusicSheet.Transpose))}}if(i.doCalculationsAtEndOfMeasure(),t.LastInstructionsStaffEntries[l])for(var j=t.LastInstructionsStaffEntries[l],Q=0,Y=j.Instructions.length;Q<Y;++Q){var W=j.Instructions[Q];W instanceof ClefInstruction&&(a[l]=W)}for(var X=0,K=t.StaffLinkedExpressions[l].length;X<K;++X){var J=t.StaffLinkedExpressions[l][X];void 0!==J.OctaveShiftEnd&&void 0!==o[l]&&J.OctaveShiftEnd===o[l].getOpenOctaveShift&&(o[l]=void 0)}var $,q=_createForOfIteratorHelper(h.staffEntries);try{for(q.s();!($=q.n()).done;){var Z,ee=_createForOfIteratorHelper($.value.graphicalVoiceEntries);try{for(ee.s();!(Z=ee.n()).done;){var te=Z.value;this.setBeamNotesWantedStemDirections(te.parentVoiceEntry)}}catch(err){ee.e(err)}finally{ee.f()}}}catch(err){q.e(err)}finally{q.f()}if(this.rules.FillEmptyMeasuresWithWholeRest>=1&&0===h.staffEntries.length){var ne=new SourceStaffEntry(new VerticalSourceStaffEntryContainer(h.parentSourceMeasure,h.parentSourceMeasure.AbsoluteTimestamp,h.parentSourceMeasure.CompleteNumberOfStaves),c),re=new VoiceEntry(new Fraction$1(0,1),c.Voices[0],ne),ie=new Note$1(re,ne,Fraction$1.createFromFraction(t.Duration),void 0,t);ie.PrintObject=this.rules.FillEmptyMeasuresWithWholeRest===FillEmptyMeasuresWithWholeRests.YesVisible,re.addNote(ie);var ae=e.symbolFactory.createStaffEntry(ne,h);h.addGraphicalStaffEntry(ae),ae.relInMeasureTimestamp=re.Timestamp;var oe=e.symbolFactory.createVoiceEntry(re,ae);ae.graphicalVoiceEntries.push(oe);var se=e.symbolFactory.createNote(ie,oe,new ClefInstruction,OctaveEnum.NONE,void 0);e.stafflineNoteCalculator.trackNote(se),oe.notes.push(se)}h.hasOnlyRests=!0;var le,ue=_createForOfIteratorHelper(h.staffEntries);try{for(ue.s();!(le=ue.n()).done;){var ce=le.value;if(h.hasOnlyRests=ce.hasOnlyRests(),!h.hasOnlyRests)break}}catch(err){ue.e(err)}finally{ue.f()}return h}},{key:"checkNoteForAccidental",value:function(e,t,n,r){var i=e.sourceNote.Pitch,a=e.parentVoiceEntry.parentStaffEntry.parentMeasure.getTransposedHalftones();0!==a&&e.sourceNote.ParentStaffEntry.ParentStaff.ParentInstrument.MidiInstrumentId!==MidiInstrument.Percussion&&(i=e.Transpose(t.ActiveKeyInstruction,n,a,r),e.sourceNote.TransposedPitch=i),e.sourceNote.halfTone=i.getHalfTone(),t.checkAccidental(e,i)}},{key:"handleStaffEntries",value:function(t){for(var n=0,r=this.graphicalMusicSheet.MeasureList.length;n<r;++n)for(var i=this.graphicalMusicSheet.MeasureList[n],a=0,o=i.length;a<o;++a){var s=i[a];if(s){void 0!==this.rules.PercussionOneLineCutoff&&0!==this.rules.PercussionOneLineCutoff&&t[a]&&(-1===this.rules.PercussionOneLineCutoff||(e.stafflineNoteCalculator.getStafflineUniquePositionCount(a),this.rules.PercussionOneLineCutoff));var l,u=_createForOfIteratorHelper(s.staffEntries);try{for(u.s();!(l=u.n()).done;){var c=l.value;void 0!==c.parentMeasure&&c.graphicalVoiceEntries.length>0&&c.graphicalVoiceEntries[0].notes.length>0&&(this.layoutVoiceEntries(c,a),this.layoutStaffEntry(c))}}catch(err){u.e(err)}finally{u.f()}this.graphicalMeasureCreatedCalculations(s)}}}},{key:"calculateSkyBottomLines",value:function(){var e,t=_createForOfIteratorHelper(this.musicSystems);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.StaffLines);try{for(r.s();!(n=r.n()).done;){n.value.SkyBottomLineCalculator.calculateLines()}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}},{key:"calculateExpressionAlignements",value:function(){}},{key:"calculateStaffEntryArticulationMarks",value:function(){for(var e=0,t=this.musicSystems.length;e<t;++e)for(var n=this.musicSystems[e],r=0,i=n.StaffLines.length;r<i;++r)for(var a=n.StaffLines[r],o=0,s=a.Measures.length;o<s;++o)for(var l=a.Measures[o],u=0,c=l.staffEntries.length;u<c;++u)for(var h=l.staffEntries[u],d=0,f=h.sourceStaffEntry.VoiceEntries.length;d<f;++d){var p=h.sourceStaffEntry.VoiceEntries[d];p.Articulations.length>0&&this.layoutArticulationMarks(p.Articulations,p,h)}}},{key:"calculateOrnaments",value:function(){for(var e=0,t=this.musicSystems.length;e<t;++e)for(var n=this.musicSystems[e],r=0,i=n.StaffLines.length;r<i;++r)for(var a=n.StaffLines[r],o=0,s=a.Measures.length;o<s;++o)for(var l=a.Measures[o],u=0,c=l.staffEntries.length;u<c;++u)for(var h=l.staffEntries[u],d=0,f=h.sourceStaffEntry.VoiceEntries.length;d<f;++d){var p=h.sourceStaffEntry.VoiceEntries[d];if(p.OrnamentContainer){if(p.hasTie()&&!h.relInMeasureTimestamp.Equals(p.Timestamp))continue;this.layoutOrnament(p.OrnamentContainer,p,h),-1===this.staffEntriesWithOrnaments.indexOf(h)&&this.staffEntriesWithOrnaments.push(h)}}}},{key:"calculateFingerings",value:function(){if(this.rules.FingeringPosition!==PlacementEnum.Left&&this.rules.FingeringPosition!==PlacementEnum.Right){var e,t=_createForOfIteratorHelper(this.musicSystems);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.StaffLines);try{for(r.s();!(n=r.n()).done;){var i,a=n.value,o=_createForOfIteratorHelper(a.Measures);try{for(o.s();!(i=o.n()).done;){var s,l=i.value,u=l.isUpperStaffOfInstrument()?PlacementEnum.Above:PlacementEnum.Below,c=_createForOfIteratorHelper(l.staffEntries);try{for(c.s();!(s=c.n()).done;){var h=s.value;h.FingeringEntries=[];var d,f=a.SkyBottomLineCalculator,p=h.PositionAndShape.RelativePosition.x+l.PositionAndShape.RelativePosition.x,v=[],m=_createForOfIteratorHelper(h.graphicalVoiceEntries);try{for(m.s();!(d=m.n()).done;){var g,y=_createForOfIteratorHelper(d.value.notes);try{for(y.s();!(g=y.n()).done;){var b=g.value.sourceNote;b.Fingering&&!b.IsGraceNote&&v.push(b.Fingering)}}catch(err){y.e(err)}finally{y.f()}}}catch(err){m.e(err)}finally{m.f()}u===PlacementEnum.Below&&v.reverse();for(var A=0;A<v.length;A++){var S=v[A],x=u===PlacementEnum.Above?TextAlignmentEnum.CenterBottom:TextAlignmentEnum.CenterTop,w=new Label(S.value,x),_=new GraphicalLabel(w,this.rules.FingeringTextSize,w.textAlignment,this.rules,a.PositionAndShape),E=p+_.PositionAndShape.BorderMarginLeft,k=p+_.PositionAndShape.BorderMarginRight,C=void 0;C=u===PlacementEnum.Above?f.getSkyLineMinInRange(E,k):f.getBottomLineMaxInRange(E,k);var M=0;0===A?(M+=this.rules.FingeringOffsetY,u===PlacementEnum.Above&&(M+=.1)):M+=this.rules.FingeringPaddingY,u===PlacementEnum.Above&&(M*=-1),_.PositionAndShape.RelativePosition.y+=C+M,_.PositionAndShape.RelativePosition.x=p,_.setLabelPositionAndShapeBorders(),_.PositionAndShape.calculateBoundingBox(),h.FingeringEntries.push(_);var P=_.PositionAndShape.RelativePosition.x+_.PositionAndShape.BorderLeft,I=P-_.PositionAndShape.BorderLeft+_.PositionAndShape.BorderRight;u===PlacementEnum.Above?f.updateSkyLineInRange(P,I,_.PositionAndShape.RelativePosition.y+_.PositionAndShape.BorderTop):u===PlacementEnum.Below&&f.updateBottomLineInRange(P,I,_.PositionAndShape.RelativePosition.y+_.PositionAndShape.BorderBottom)}}}catch(err){c.e(err)}finally{c.f()}}}catch(err){o.e(err)}finally{o.f()}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}}},{key:"optimizeRestPlacement",value:function(){for(var e=0,t=this.musicSystems.length;e<t;++e)for(var n=this.musicSystems[e],r=0,i=n.StaffLines.length;r<i;++r)for(var a=n.StaffLines[r],o=0,s=a.Measures.length;o<s;++o)for(var l=a.Measures[o],u=0,c=l.staffEntries.length;u<c;++u){var h=l.staffEntries[u];this.optimizeRestNotePlacement(h,l)}}},{key:"calculateTwoRestNotesPlacementWithCollisionDetection",value:function(e){var t=e.graphicalVoiceEntries[0].notes[0],n=e.graphicalVoiceEntries[1].notes[0];n.PositionAndShape.RelativePosition=new PointF2D(0,2.5),e.PositionAndShape.calculateAbsolutePositionsRecursiveWithoutTopelement(),t.PositionAndShape.computeNonOverlappingPositionWithMargin(e.PositionAndShape,ColDirEnum.Up,new PointF2D(0,n.PositionAndShape.RelativePosition.y));var r=t.PositionAndShape.RelativePosition;r.y-=1,t.PositionAndShape.RelativePosition=r,e.PositionAndShape.calculateBoundingBox()}},{key:"calculateRestNotePlacementWithCollisionDetectionFromGraphicalNote",value:function(e){var t,n;e.graphicalVoiceEntries[0].notes[0].sourceNote.isRest()?(t=e.graphicalVoiceEntries[0].notes[0],n=e.graphicalVoiceEntries[1].notes):(n=e.graphicalVoiceEntries[0].notes,t=e.graphicalVoiceEntries[1].notes[0]);var r=!1;e.PositionAndShape.calculateAbsolutePositionsRecursiveWithoutTopelement();for(var i=0,a=n.length;i<a;++i){var o=n[i];if(t.PositionAndShape.marginCollisionDetection(o.PositionAndShape)){r=!0;break}}if(r)if(t.sourceNote.ParentVoiceEntry.ParentVoice instanceof LinkedVoice){var s=n[0].PositionAndShape.BorderMarginBottom+n[0].PositionAndShape.RelativePosition.y;t.PositionAndShape.RelativePosition=new PointF2D(0,s-t.PositionAndShape.BorderMarginTop+.5)}else{var l=n[n.length-1],u=l.PositionAndShape.BorderMarginTop+l.PositionAndShape.RelativePosition.y;if(n[0].sourceNote.ParentVoiceEntry.ParentVoice instanceof LinkedVoice)t.PositionAndShape.RelativePosition=new PointF2D(0,u-t.PositionAndShape.BorderMarginBottom-.5);else{var c=n[0].PositionAndShape.BorderMarginBottom+n[0].PositionAndShape.RelativePosition.y;t.PositionAndShape.RelativePosition=new PointF2D(0,c<2?c-t.PositionAndShape.BorderMarginTop+.5:u-t.PositionAndShape.BorderMarginBottom-0)}}e.PositionAndShape.calculateBoundingBox()}},{key:"calculateTieCurves",value:function(){var e,t=_createForOfIteratorHelper(this.musicSystems);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.StaffLines);try{for(r.s();!(n=r.n()).done;){var i,a=_createForOfIteratorHelper(n.value.Measures);try{for(a.s();!(i=a.n()).done;){var o,s=i.value,l=_createForOfIteratorHelper(s.staffEntries);try{for(l.s();!(o=l.n()).done;){var u,c=o.value,h=_createForOfIteratorHelper(c.GraphicalTies);try{for(h.s();!(u=h.n()).done;){var d=u.value;if(void 0!==d.StartNote&&d.StartNote.parentVoiceEntry.parentStaffEntry===c){var f=d.StartNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine!==d.EndNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine;this.layoutGraphicalTie(d,f,s.ParentStaff.isTab)}}}catch(err){h.e(err)}finally{h.f()}}}catch(err){l.e(err)}finally{l.f()}}}catch(err){a.e(err)}finally{a.f()}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}},{key:"calculateLyricsPosition",value:function(){for(var e=new Dictionary,t=0,n=this.graphicalMusicSheet.ParentMusicSheet.Instruments.length;t<n;++t){var r=this.graphicalMusicSheet.ParentMusicSheet.Instruments[t];r.HasLyrics&&r.LyricVersesNumbers.length>0&&r.LyricVersesNumbers.sort()}for(var i=0,a=this.musicSystems.length;i<a;++i)for(var o=this.musicSystems[i],s=0,l=o.StaffLines.length;s<l;++s){var u=o.StaffLines[s],c=this.calculateSingleStaffLineLyricsPosition(u,u.ParentStaff.ParentInstrument.LyricVersesNumbers);e.setValue(u,c),this.calculateLyricsExtendsAndDashes(e.getValue(u))}for(var h=0,d=this.musicSystems.length;h<d;++h)for(var f=this.musicSystems[h],p=0,v=f.StaffLines.length;p<v;++p){var m=f.StaffLines[p];this.calculateLyricsExtendsAndDashes(e.getValue(m))}}},{key:"calculateSingleLyricWord",value:function(e){var t=e.ParentLyricWord,n=t.GraphicalLyricsEntries.indexOf(e),r=void 0;if(n>=0&&(r=t.GraphicalLyricsEntries[n+1]),r){var i=e.StaffEntryParent.parentMeasure.ParentStaffLine,a=r.StaffEntryParent.parentMeasure.ParentStaffLine,o=e.StaffEntryParent,s=r.StaffEntryParent;if(e.StaffEntryParent.parentMeasure.ParentStaffLine===r.StaffEntryParent.parentMeasure.ParentStaffLine){var l=o.parentMeasure.PositionAndShape.RelativePosition.x+o.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,u=s.parentMeasure.PositionAndShape.RelativePosition.x+s.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.RelativePosition.x+r.GraphicalLabel.PositionAndShape.BorderMarginLeft,c=e.GraphicalLabel.PositionAndShape.RelativePosition.y,h=1;u-l>3*this.rules.MinimumDistanceBetweenDashes&&(h=Math.floor((u-l)/this.rules.MinimumDistanceBetweenDashes)-1),1===h?this.calculateSingleDashForLyricWord(i,l,u,c):this.calculateDashes(i,l,u,c)}else{var d=o.parentMeasure.PositionAndShape.RelativePosition.x+o.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,f=i.Measures[i.Measures.length-1],p=f.PositionAndShape.RelativePosition.x+f.PositionAndShape.Size.width,v=e.GraphicalLabel.PositionAndShape.RelativePosition.y;if(this.calculateDashes(i,d,p,v),a&&a.Measures[0]&&s.parentMeasure.ParentStaffLine&&(s!==s.parentMeasure.staffEntries[0]||s.parentMeasure!==s.parentMeasure.ParentStaffLine.Measures[0])){var m=a.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x,g=s.parentMeasure.PositionAndShape.RelativePosition.x+s.PositionAndShape.RelativePosition.x+r.GraphicalLabel.PositionAndShape.BorderMarginLeft;v=r.GraphicalLabel.PositionAndShape.RelativePosition.y,this.calculateDashes(a,m,g,v)}}}}},{key:"calculateDashes",value:function(e,t,n,r){var i=n-t;if(i<3*this.rules.MinimumDistanceBetweenDashes)this.calculateSingleDashForLyricWord(e,t,n,r);else{var a=Math.floor(i/this.rules.MinimumDistanceBetweenDashes)-1,o=i/(a+1),s=0;for(t+=o,n-=o;s<=Math.floor(a/2)&&n>t;)i=this.calculateRightAndLeftDashesForLyricWord(e,t,n,r),t+=o,n-=o,s++;i>2*o&&this.calculateSingleDashForLyricWord(e,t,n,r)}}},{key:"calculateSingleDashForLyricWord",value:function(e,t,n,r){var i=new Label("-"),a=new GraphicalLabel(i,this.rules.LyricsHeight,TextAlignmentEnum.CenterBottom,this.rules);a.setLabelPositionAndShapeBorders(),e.LyricsDashes.push(a),-1===this.staffLinesWithLyricWords.indexOf(e)&&this.staffLinesWithLyricWords.push(e),a.PositionAndShape.Parent=e.PositionAndShape;var o=new PointF2D(t+(n-t)/2,r);a.PositionAndShape.RelativePosition=o}},{key:"calculateLyricExtend",value:function(e){for(var t=e.GraphicalLabel.PositionAndShape.RelativePosition.y,n=e.StaffEntryParent,r=n.parentMeasure.ParentStaffLine,i=void 0,a=void 0,o=n.parentMeasure.ParentStaff.idInMusicSheet,s=n.parentVerticalContainer.Index+1;s<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;++s){var l=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[s].StaffEntries[o];if(l){if(l.hasOnlyRests())break;if(l.LyricsEntries.length>0)break;(a=(i=l).parentMeasure.ParentStaffLine)||(a=n.parentMeasure.ParentStaffLine)}}if(i&&a)if(r===a&&i.parentMeasure.ParentStaffLine){var u=n.parentMeasure.PositionAndShape.RelativePosition.x+n.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,c=i.parentMeasure.PositionAndShape.RelativePosition.x+i.PositionAndShape.RelativePosition.x+i.PositionAndShape.BorderMarginRight;t-=e.GraphicalLabel.PositionAndShape.Size.height/4,this.calculateSingleLyricWordWithUnderscore(r,u,c,t)}else{var h=r.Measures[r.Measures.length-1].PositionAndShape,d=n.parentMeasure.PositionAndShape.RelativePosition.x+n.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,f=h.RelativePosition.x+h.Size.width;if(t-=e.GraphicalLabel.PositionAndShape.Size.height/4,this.calculateSingleLyricWordWithUnderscore(r,d,f,t),!i)return;if(i.parentMeasure.ParentStaffLine&&i.parentMeasure.staffEntries&&(i!==i.parentMeasure.staffEntries[0]||i.parentMeasure!==i.parentMeasure.ParentStaffLine.Measures[0])){var p=a.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x,v=i.parentMeasure.PositionAndShape.RelativePosition.x+i.PositionAndShape.RelativePosition.x+i.PositionAndShape.BorderMarginRight;this.calculateSingleLyricWordWithUnderscore(a,p,v,t)}}}},{key:"calculateSingleLyricWordWithUnderscore",value:function(e,t,n,r){var i=new PointF2D(t,r),a=new PointF2D(n,r),o=new GraphicalLine(i,a,this.rules.LyricUnderscoreLineWidth);e.LyricLines.push(o),-1===this.staffLinesWithLyricWords.indexOf(e)&&this.staffLinesWithLyricWords.push(e)}},{key:"calculateRightAndLeftDashesForLyricWord",value:function(e,t,n,r){var i=new Label("-"),a=new GraphicalLabel(i,this.rules.LyricsHeight,TextAlignmentEnum.CenterBottom,this.rules);a.setLabelPositionAndShapeBorders(),e.LyricsDashes.push(a),-1===this.staffLinesWithLyricWords.indexOf(e)&&this.staffLinesWithLyricWords.push(e),a.PositionAndShape.Parent=e.PositionAndShape;var o=new PointF2D(t,r);a.PositionAndShape.RelativePosition=o;var s=new Label("-"),l=new GraphicalLabel(s,this.rules.LyricsHeight,TextAlignmentEnum.CenterBottom,this.rules);l.setLabelPositionAndShapeBorders(),e.LyricsDashes.push(l),l.PositionAndShape.Parent=e.PositionAndShape;var u=new PointF2D(n,r);return l.PositionAndShape.RelativePosition=u,l.PositionAndShape.RelativePosition.x-a.PositionAndShape.RelativePosition.x}},{key:"calculateDynamicExpressions",value:function(){for(var e=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,this.rules.MaxMeasureToDrawIndex),t=Math.min(this.rules.MinMeasureToDrawIndex,this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length);t<=e;t++){var n=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t];this.dynamicExpressionMap.clear();for(var r=0;r<n.StaffLinkedExpressions.length;r++)if(this.graphicalMusicSheet.MeasureList[t]&&this.graphicalMusicSheet.MeasureList[t][r]&&this.graphicalMusicSheet.MeasureList[t][r].ParentStaff.ParentInstrument.Visible)for(var i=0;i<n.StaffLinkedExpressions[r].length;i++)(void 0!==n.StaffLinkedExpressions[r][i].InstantaneousDynamic||void 0!==n.StaffLinkedExpressions[r][i].StartingContinuousDynamic&&n.StaffLinkedExpressions[r][i].StartingContinuousDynamic.StartMultiExpression===n.StaffLinkedExpressions[r][i]&&0===n.StaffLinkedExpressions[r][i].UnknownList.length)&&this.calculateDynamicExpressionsForMultiExpression(n.StaffLinkedExpressions[r][i],t,r)}this.dynamicExpressionMap.clear()}},{key:"calculateOctaveShifts",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++)for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0;n<t.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[e]&&this.graphicalMusicSheet.MeasureList[e][n]&&this.graphicalMusicSheet.MeasureList[e][n].ParentStaff.ParentInstrument.Visible)for(var r=0;r<t.StaffLinkedExpressions[n].length;r++)t.StaffLinkedExpressions[n][r].OctaveShiftStart&&this.calculateSingleOctaveShift(t,t.StaffLinkedExpressions[n][r],e,n)}},{key:"calculatePedals",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++)for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0;n<t.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[e]&&this.graphicalMusicSheet.MeasureList[e][n]&&this.graphicalMusicSheet.MeasureList[e][n].ParentStaff.ParentInstrument.Visible)for(var r=0;r<t.StaffLinkedExpressions[n].length;r++)t.StaffLinkedExpressions[n][r].PedalStart&&this.calculateSinglePedal(t,t.StaffLinkedExpressions[n][r],e,n)}},{key:"calculateWavyLines",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++)for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0;n<t.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[e]&&this.graphicalMusicSheet.MeasureList[e][n]&&this.graphicalMusicSheet.MeasureList[e][n].ParentStaff.ParentInstrument.Visible)for(var r=0;r<t.StaffLinkedExpressions[n].length;r++)t.StaffLinkedExpressions[n][r].WavyLineStart&&this.calculateSingleWavyLine(t,t.StaffLinkedExpressions[n][r],e,n)}},{key:"getFirstLeftNotNullStaffEntryFromContainer",value:function(e,t,n){var r;if(null!==(r=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[e])&&void 0!==r&&r.StaffEntries[t])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[e].StaffEntries[t];for(var i=e-1;i>=0;i--){var a;if(null!==(a=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i])&&void 0!==a&&a.StaffEntries[t])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[t]}}},{key:"getFirstRightNotNullStaffEntryFromContainer",value:function(e,t,n){var r;if(null!==(r=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[e])&&void 0!==r&&r.StaffEntries[t])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[e].StaffEntries[t];for(var i=e+1;i<this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers.length;i++){var a;if(null!==(a=this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i])&&void 0!==a&&a.StaffEntries[t])return this.graphicalMusicSheet.VerticalGraphicalStaffEntryContainers[i].StaffEntries[t]}}},{key:"calculateWordRepetitionInstructions",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++){for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0,r=t.FirstRepetitionInstructions.length;n<r;++n){var i=t.FirstRepetitionInstructions[n];this.calculateWordRepetitionInstruction(i,e)}for(var a=0,o=t.LastRepetitionInstructions.length;a<o;++a){var s=t.LastRepetitionInstructions[a];this.calculateWordRepetitionInstruction(s,e)}}}},{key:"calculateRepetitionEndings",value:function(){for(var e=this.graphicalMusicSheet.ParentMusicSheet,t=0,n=e.Repetitions.length;t<n;++t){var r=e.Repetitions[t];this.calcGraphicalRepetitionEndingsRecursively(r)}}},{key:"calculateTempoExpressions",value:function(){for(var e=Math.min(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length-1,this.rules.MaxMeasureToDrawIndex),t=this.rules.MinMeasureToDrawIndex;t<=e;t++)for(var n=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[t],r=0;r<n.TempoExpressions.length;r++)this.calculateTempoExpressionsForMultiTempoExpression(n,n.TempoExpressions[r],t,r)}},{key:"calculateRehearsalMarks",value:function(){if(this.rules.RenderRehearsalMarks){var e,t=_createForOfIteratorHelper(this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.calculateRehearsalMark(n)}}catch(err){t.e(err)}finally{t.f()}}}},{key:"calculateRehearsalMark",value:function(e){throw new Error(this.abstractNotImplementedErrorMessage)}},{key:"calculateMoodAndUnknownExpressions",value:function(){for(var e=0;e<this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures.length;e++)for(var t=this.graphicalMusicSheet.ParentMusicSheet.SourceMeasures[e],n=0;n<t.StaffLinkedExpressions.length;n++)if(this.graphicalMusicSheet.MeasureList[e]&&this.graphicalMusicSheet.MeasureList[e][n]&&this.graphicalMusicSheet.MeasureList[e][n].ParentStaff.ParentInstrument.Visible)for(var r=0;r<t.StaffLinkedExpressions[n].length;r++)(t.StaffLinkedExpressions[n][r].MoodList.length>0||t.StaffLinkedExpressions[n][r].UnknownList.length>0)&&this.calculateMoodAndUnknownExpression(t.StaffLinkedExpressions[n][r],e,n)}},{key:"calculateStemDirectionFromVoices",value:function(e){if(void 0!==e.ParentSourceStaffEntry.Link)return e===e.ParentSourceStaffEntry.VoiceEntries[0]?void(e.WantedStemDirection=StemDirectionType.Up):void(e.WantedStemDirection=StemDirectionType.Down);e.ParentVoice instanceof LinkedVoice?e.WantedStemDirection=StemDirectionType.Down:e.ParentSourceStaffEntry.VoiceEntries.length>1&&(e.WantedStemDirection=StemDirectionType.Up)}},{key:"setBeamNotesWantedStemDirections",value:function(e){if(e.Notes.length>0){var t=e.Notes[0].NoteBeam;if(t){var n,r=_createForOfIteratorHelper(t.Notes);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.ParentVoiceEntry.WantedStemDirection!==StemDirectionType.Undefined&&i.ParentVoiceEntry.ParentSourceStaffEntry.ParentStaff.Id===e.ParentSourceStaffEntry.ParentStaff.Id){e.WantedStemDirection=i.ParentVoiceEntry.WantedStemDirection;break}}}catch(err){r.e(err)}finally{r.f()}}}}}],[{key:"TextMeasurer",get:function(){return e.textMeasurer},set:function(t){e.textMeasurer=t}},{key:"setMeasuresMinStaffEntriesWidth",value:function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];i&&(i.minimumStaffEntriesWidth=t)}}}]),e}(),ChordSymbolContainer=function(){function e(t,n,r,i,a){_classCallCheck2(this,e),this.rootPitch=t,this.chordKind=n,this.bassPitch=r,this.degrees=i,this.rules=a}return _createClass2(e,[{key:"RootPitch",get:function(){return this.rootPitch}},{key:"ChordKind",get:function(){return this.chordKind}},{key:"BassPitch",get:function(){return this.bassPitch}},{key:"ChordDegrees",get:function(){return this.degrees}},{key:"getTextFromChordKindEnum",value:function(e){var t;return null!==(t=this.rules.ChordSymbolLabelTexts.getValue(e))&&void 0!==t?t:""}}],[{key:"calculateChordText",value:function(e,t,n){var r=e.RootPitch;if(MusicSheetCalculator.transposeCalculator&&(r=MusicSheetCalculator.transposeCalculator.transposePitch(e.RootPitch,n,t)),31===e.ChordKind)return e.getTextFromChordKindEnum(e.ChordKind);var i=Pitch.getNoteEnumString(r.FundamentalNote);r.Accidental!==AccidentalEnum.NONE&&(i+=this.getTextForAccidental(r.Accidental));var a,o={adds:[],alts:[],subs:[]},s=_createForOfIteratorHelper(e.ChordDegrees);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l){var u="";switch(l.alteration!==AccidentalEnum.NONE&&(u+=this.getTextForAccidental(l.alteration)),u+=l.value,l.text){case 0:o.adds.push(u);break;case 1:o.alts.push(u);break;case 2:o.subs.push(u)}}}}catch(err){s.e(err)}finally{s.f()}var c,h=e.getTextFromChordKindEnum(e.ChordKind),d=["adds","alts","subs"],f=_createForOfIteratorHelper(e.rules.CustomChords);try{for(f.s();!(c=f.n()).done;){var p=c.value;if(p.chordKind===e.chordKind){var v,m=!0,g=_createForOfIteratorHelper(d);try{for(g.s();!(v=g.n()).done;){var y,b=v.value,A=_createForOfIteratorHelper(p.degrees[b]||[]);try{for(A.s();!(y=A.n()).done;){var S=y.value;if(o[b].indexOf(S)<0){m=!1;break}}}catch(err){A.e(err)}finally{A.f()}if(!m)break}}catch(err){g.e(err)}finally{g.f()}if(m){var x,w=_createForOfIteratorHelper(d);try{for(w.s();!(x=w.n()).done;){var _,E=x.value,k=_createForOfIteratorHelper(p.degrees[E]||[]);try{for(k.s();!(_=k.n()).done;){var C=_.value;o[E].splice(o[E].indexOf(C),1)}}catch(err){k.e(err)}finally{k.f()}}}catch(err){w.e(err)}finally{w.f()}h=p.alternateName}}}}catch(err){f.e(err)}finally{f.f()}if(i+=h,o.adds.length>0&&(i+="("+o.adds.join(",")+")"),o.alts.length>0&&(i+="(alt "+o.alts.join(",")+")"),o.subs.length>0&&(i+="(omit "+o.subs.join(",")+")"),e.BassPitch){var M=e.BassPitch;MusicSheetCalculator.transposeCalculator&&(M=MusicSheetCalculator.transposeCalculator.transposePitch(e.BassPitch,n,t)),i+="/",i+=Pitch.getNoteEnumString(M.FundamentalNote),i+=this.getTextForAccidental(M.Accidental)}return i}},{key:"getTextForAccidental",value:function(e){var t="";switch(e){case AccidentalEnum.DOUBLEFLAT:t+="bb";break;case AccidentalEnum.FLAT:t+="b";break;case AccidentalEnum.SHARP:t+="#";break;case AccidentalEnum.DOUBLESHARP:t+="x"}return t}}]),e}(),Degree=_createClass2((function e(t,n,r){_classCallCheck2(this,e),this.value=t,this.alteration=n,this.text=r})),CustomChord=function(){function e(t,n,r){_classCallCheck2(this,e),this.alternateName=t,this.chordKind=n,this.degrees=r}return _createClass2(e,null,[{key:"createCustomChord",value:function(t,n,r){return new e(t,n,r)}},{key:"renameCustomChord",value:function(e,t,n){var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.alternateName===e&&(a.alternateName=t)}}catch(err){i.e(err)}finally{i.f()}}}]),e}(),ChordDegreeText=function(e){return e[e.add=0]="add",e[e.alter=1]="alter",e[e.subtract=2]="subtract",e}(ChordDegreeText||{}),ChordSymbolEnum=function(e){return e[e.major=0]="major",e[e.minor=1]="minor",e[e.augmented=2]="augmented",e[e.diminished=3]="diminished",e[e.dominant=4]="dominant",e[e.majorseventh=5]="majorseventh",e[e.minorseventh=6]="minorseventh",e[e.diminishedseventh=7]="diminishedseventh",e[e.augmentedseventh=8]="augmentedseventh",e[e.halfdiminished=9]="halfdiminished",e[e.majorminor=10]="majorminor",e[e.majorsixth=11]="majorsixth",e[e.minorsixth=12]="minorsixth",e[e.dominantninth=13]="dominantninth",e[e.majorninth=14]="majorninth",e[e.minorninth=15]="minorninth",e[e.dominant11th=16]="dominant11th",e[e.major11th=17]="major11th",e[e.minor11th=18]="minor11th",e[e.dominant13th=19]="dominant13th",e[e.major13th=20]="major13th",e[e.minor13th=21]="minor13th",e[e.suspendedsecond=22]="suspendedsecond",e[e.suspendedfourth=23]="suspendedfourth",e[e.Neapolitan=24]="Neapolitan",e[e.Italian=25]="Italian",e[e.French=26]="French",e[e.German=27]="German",e[e.pedal=28]="pedal",e[e.power=29]="power",e[e.Tristan=30]="Tristan",e[e.none=31]="none",e}(ChordSymbolEnum||{}),GraphicalNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return _classCallCheck2(this,n),(a=t.call(this)).DrawnAccidental=AccidentalEnum.NONE,a.lineShift=0,a.sourceNote=e,a.parentVoiceEntry=r,a.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(a),r.PositionAndShape),a.graphicalNoteLength=o||e.Length,a.numberOfDots=a.calculateNumberOfNeededDots(a.graphicalNoteLength),a.rules=i,a.rules.addGraphicalNoteToNoteMap(e,_assertThisInitialized2(a)),a}return _createClass2(n,[{key:"Transpose",value:function(e,t,n,r){var i=this.sourceNote.Pitch;return MusicSheetCalculator.transposeCalculator&&(i=MusicSheetCalculator.transposeCalculator.transposePitch(this.sourceNote.Pitch,e,n)),i}},{key:"calculateNumberOfNeededDots",value:function(e){return this.sourceNote&&this.sourceNote.NoteTuplet?0:e.calculateNumberOfNeededDots()}},{key:"ParentMusicPage",get:function(){return this.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentMusicSystem.Parent}}],[{key:"FromNote",value:function(e,t){return t.NoteToGraphicalNoteMap.getValue(e.NoteToGraphicalNoteObjectId)}}]),n}(GraphicalObject),_EngravingRules=function(){function e(){_classCallCheck2(this,e),this.DYSlursStartingAtSameStaffEntryYOffset=0,this.DYMinNoteWidth=0,this.DYWorkId=0,this.DYWorkSpecial=!1,this.DYContainerId="osmdCanvasPage",this.DYSVGContainerId="osmdSvgPage",this.DYMusicScoreType="staff",this.NoteDistances=[1,1,1.3,1.6,2,2.5,3,4],this.NoteDistancesScalingFactors=[1,2,4,8,16,32,64,128],this.DurationDistanceDict={},this.DurationScalingDistanceDict={},this.NoteToGraphicalNoteMapObjectCount=0,this.PlayAlreadyStartedNotesFromCursorPosition=!1,this.PlaybackSkipNotesSafetyInterval=.02,this.UseDefaultVoiceInteractionListener=!0,this.loadDefaultValues()}return _createClass2(e,[{key:"loadDefaultValues",value:function(){this.SamplingUnit=3*e.unit,this.MpatMode=!0,this.SheetTitleHeight=4,this.SheetSubtitleHeight=2,this.SheetMinimumDistanceBetweenTitleAndSubtitle=1,this.SheetComposerHeight=2,this.SheetAuthorHeight=2,this.CompactMode=!1,this.PagePlacementEnum=PagePlacementEnum.Down,this.PageHeight=100001,this.PageTopMargin=5,this.PageTopMarginNarrow=0,this.PageBottomMargin=5,this.PageLeftMargin=5,this.PageRightMargin=5,this.TitleTopDistance=5,this.TitleBottomDistance=1,this.StaffDistance=7,this.BetweenStaffDistance=5,this.MinimumStaffLineDistance=4,this.MinSkyBottomDistBetweenStaves=1,this.StaffHeight=4,this.TabStaffInterlineHeight=1.1111,this.BetweenStaffLinesDistance=e.unit,this.SystemLeftMargin=0,this.SystemRightMargin=0,this.SystemLabelsRightMargin=2,this.SystemComposerDistance=2,this.InstrumentLabelTextHeight=2,this.MinimumDistanceBetweenSystems=7,this.MinSkyBottomDistBetweenSystems=5,this.LastSystemMaxScalingFactor=1.4,this.AutoBeamNotes=!1,this.AutoBeamOptions={beam_middle_rests_only:!1,beam_rests:!1,maintain_stem_directions:!1},this.AutoBeamTabs=!1,this.BeamWidth=e.unit/2,this.BeamSpaceWidth=e.unit/3,this.BeamForwardLength=1.25*e.unit,this.FlatBeams=!1,this.FlatBeamOffset=20,this.FlatBeamOffsetPerBeam=10,this.ClefLeftMargin=.5,this.ClefRightMargin=.75,this.PercussionOneLineCutoff=3,this.PercussionForceVoicesOneLineCutoff=1,this.PercussionUseXMLDisplayStep=!0,this.PercussionXMLDisplayStepNoteValueShift=0,this.PercussionOneLineXMLDisplayStepOctaveOffset=0,this.BetweenKeySymbolsDistance=.2,this.KeyRightMargin=.75,this.RhythmRightMargin=1.25,this.ShowRhythmAgainAfterPartEndOrFinalBarline=!0,this.NewPartAndSystemAfterFinalBarline=!1,this.InStaffClefScalingFactor=.8,this.DistanceBetweenNaturalAndSymbolWhenCancelling=.4,this.NoteHelperLinesOffset=.25,this.MeasureLeftMargin=.7,this.MeasureRightMargin=0,this.DistanceBetweenLastInstructionAndRepetitionBarline=1,this.ArpeggioDistance=.6,this.StaccatoShorteningFactor=2,this.IdealStemLength=3,this.StemNoteHeadBorderYOffset=.2,this.StemMargin=.2,this.StemMinLength=2.5,this.StemMaxLength=4.5,this.BeamSlopeMaxAngle=10,this.StemMinAllowedDistanceBetweenNoteHeadAndBeamLine=1,this.SetWantedStemDirectionByXml=!0,this.GraceNoteScalingFactor=.6,this.GraceNoteXOffset=.2,this.WedgeOpeningLength=1.2,this.WedgeMeasureEndOpeningLength=.75,this.WedgeMeasureBeginOpeningLength=.75,this.WedgePlacementAboveY=-1.5,this.WedgePlacementBelowY=1.5,this.WedgeHorizontalMargin=.6,this.WedgeVerticalMargin=.5,this.DistanceOffsetBetweenTwoHorizontallyCrossedWedges=.3,this.WedgeMinLength=2,this.WedgeEndDistanceBetweenTimestampsFactor=1.75,this.DistanceBetweenAdjacentDynamics=.75,this.TempoChangeMeasureValidity=4,this.TempoContinousFactor=.7,this.StaccatoScalingFactor=.8,this.BetweenDotsDistance=.8,this.OrnamentAccidentalScalingFactor=.65,this.ChordSymbolTextHeight=2,this.ChordSymbolTextAlignment=TextAlignmentEnum.LeftBottom,this.ChordSymbolRelativeXOffset=-1,this.ChordSymbolXSpacing=1,this.ChordOverlapAllowedIntoNextMeasure=0,this.ChordSymbolYOffset=.1,this.ChordSymbolYPadding=0,this.ChordSymbolYAlignment=!0,this.ChordSymbolYAlignmentScope="staffline",this.ChordSymbolLabelTexts=new Dictionary,this.resetChordSymbolLabelTexts(this.ChordSymbolLabelTexts),this.CustomChords=[],this.resetChordNames(),this.RepetitionSymbolsYOffset=0,this.RehearsalMarkXOffsetDefault=10,this.RehearsalMarkXOffset=0,this.RehearsalMarkXOffsetSystemStartMeasure=-20,this.RehearsalMarkYOffsetDefault=-15,this.RehearsalMarkYOffset=0,this.RehearsalMarkFontSize=10,this.MeasureNumberLabelHeight=1.5*e.unit,this.MeasureNumberLabelOffset=2,this.MeasureNumberLabelXOffset=-.5,this.TupletsRatioed=!1,this.TupletsBracketed=!1,this.TripletsBracketed=!1,this.TupletNumberLabelHeight=1.5*e.unit,this.TupletNumberYOffset=.5,this.LabelMarginBorderFactor=.1,this.TupletVerticalLineLength=.5,this.TupletNumbersInTabs=!1,this.SlurPlacementFromXML=!0,this.BezierCurveStepSize=1e3,this.calculateCurveParametersArrays(),this.TieGhostObjectWidth=.75,this.TieYPositionOffsetFactor=.3,this.MinimumNeededXspaceForTieGhostObject=1,this.TieHeightMinimum=.28,this.TieHeightMaximum=1.2,this.TieHeightInterpolationK=.0288,this.TieHeightInterpolationD=.136,this.SlurNoteHeadYOffset=.5,this.SlurStemXOffset=.3,this.SlurSlopeMaxAngle=15,this.SlurTangentMinAngle=30,this.SlurTangentMaxAngle=80,this.SlurHeightFactor=1,this.SlurHeightFlattenLongSlursFactorByWidth=.24,this.SlurHeightFlattenLongSlursFactorByAngle=.36,this.SlurHeightFlattenLongSlursCutoffAngle=47,this.SlurHeightFlattenLongSlursCutoffWidth=16,this.SlursStartingAtSameStaffEntryYOffset=.8,this.SlurMaximumYControlPointDistance=void 0,this.RepetitionEndingLabelHeight=2,this.RepetitionEndingLabelXOffset=.5,this.RepetitionEndingLabelYOffset=.3,this.RepetitionEndingLineYLowerOffset=.5,this.RepetitionEndingLineYUpperOffset=.3,this.VoltaOffset=2.5,this.LyricsAlignmentStandard=TextAlignmentEnum.LeftBottom,this.LyricsHeight=2,this.LyricsYOffsetToStaffHeight=0,this.VerticalBetweenLyricsDistance=.5,this.HorizontalBetweenLyricsDistance=.2,this.BetweenSyllableMaximumDistance=10,this.BetweenSyllableMinimumDistance=.5,this.LyricOverlapAllowedIntoNextMeasure=3.4,this.MinimumDistanceBetweenDashes=10,this.MaximumLyricsElongationFactor=2.5,this.InstantaneousTempoTextHeight=2.3,this.ContinuousDynamicTextHeight=2.3,this.MoodTextHeight=2.3,this.UnknownTextHeight=2,this.ContinuousTempoTextHeight=2.3,this.DynamicExpressionMaxDistance=2,this.DynamicExpressionSpacer=.5,this.VexFlowDefaultNotationFontScale=39,this.VexFlowDefaultTabFontScale=39,this.TremoloStrokeScale=1,this.TremoloYSpacingScale=1,this.StemWidth=.15,this.StaffLineWidth=.1,this.StaffLineColor=void 0,this.LedgerLineWidth=1,this.LedgerLineStrokeStyle=void 0,this.LedgerLineColorDefault="#000000",this.WedgeLineWidth=.12,this.TupletLineWidth=.12,this.LyricUnderscoreLineWidth=.12,this.SystemThinLineWidth=.12,this.SystemBoldLineWidth=e.unit/2,this.SystemRepetitionEndingLineWidth=.12,this.SystemDotWidth=e.unit/2,this.DistanceBetweenVerticalSystemLines=.35,this.DistanceBetweenDotAndLine=.7,this.RepeatEndStartPadding=2,this.OctaveShiftLineWidth=.12,this.OctaveShiftVerticalLineLength=e.unit,this.GraceLineWidth=this.StaffLineWidth*this.GraceNoteScalingFactor,this.MultipleRestMeasureDefaultWidth=4,this.MinimumCrossedBeamDifferenceMargin=1e-4,this.SheetMaximumWidth=32767,this.VoiceSpacingMultiplierVexflow=.85,this.VoiceSpacingAddendVexflow=3,this.PickupMeasureWidthMultiplier=1,this.DisplacedNoteMargin=.1,this.MinNoteDistance=2,this.SubMeasureXSpacingThreshold=35,this.MeasureDynamicsMaxScalingFactor=2.5,this.WholeRestXShiftVexflow=-1.5,this.MetronomeMarksDrawn=!0,this.MetronomeMarkXShift=-6,this.MetronomeMarkYShift=-.5,this.SoftmaxFactorVexFlow=15,this.StaggerSameWholeNotes=!0,this.AlignRests=AlignRestOption.Never,this.RestCollisionYPadding=0,this.FillEmptyMeasuresWithWholeRest=FillEmptyMeasuresWithWholeRests.No,this.ArpeggiosGoAcrossVoices=!1,this.RenderArpeggios=!0,this.RenderSlurs=!0,this.ColoringMode=ColoringModes.XML,this.ColoringEnabled=!0,this.ColorStemsLikeNoteheads=!1,this.ColorBeams=!0,this.ColorFlags=!0,this.applyDefaultColorMusic("#000000"),this.DefaultColorCursor="#33e02f",this.DefaultFontFamily="Times New Roman",this.DefaultFontStyle=FontStyles.Regular,this.DefaultVexFlowNoteFont="gonville",this.MaxMeasureToDrawIndex=Number.MAX_VALUE,this.MinMeasureToDrawIndex=0,this.MaxSystemToDrawNumber=Number.MAX_VALUE,this.MaxPageToDrawNumber=Number.MAX_VALUE,this.RenderComposer=!0,this.RenderTitle=!0,this.RenderSubtitle=!0,this.RenderLyricist=!0,this.RenderPartNames=!0,this.RenderPartAbbreviations=!0,this.RenderFingerings=!0,this.RenderMeasureNumbers=!0,this.RenderMeasureNumbersOnlyAtSystemStart=!1,this.UseXMLMeasureNumbers=!0,this.RenderLyrics=!0,this.RenderChordSymbols=!0,this.RenderMultipleRestMeasures=!0,this.AutoGenerateMutipleRestMeasuresFromRestMeasures=!0,this.RenderRehearsalMarks=!0,this.RenderClefsAtBeginningOfStaffline=!0,this.RenderKeySignatures=!0,this.RenderTimeSignatures=!0,this.ArticulationPlacementFromXML=!0,this.FingeringPosition=PlacementEnum.AboveOrBelow,this.FingeringPositionFromXML=!0,this.FingeringPositionGrace=PlacementEnum.Left,this.FingeringInsideStafflines=!1,this.FingeringLabelFontHeight=1.7,this.FingeringOffsetX=0,this.FingeringOffsetY=0,this.FingeringPaddingY=-.2,this.FingeringTextSize=1.5,this.RenderStringNumbersClassical=!0,this.StringNumberOffsetY=0,this.NewSystemAtXMLNewSystemAttribute=!1,this.NewPageAtXMLNewPageAttribute=!1,this.RestoreCursorAfterRerender=!0,this.StretchLastSystemLine=!1,e.FixStafflineBoundingBox=!1,this.PageFormat=PageFormat.UndefinedPageFormat,this.PageBackgroundColor=void 0,this.PerformanceMode=!1,this.RenderSingleHorizontalStaffline=!1,this.SpacingBetweenTextLines=0,this.NoteToGraphicalNoteMap=new Dictionary,this.NoteToGraphicalNoteMapObjectCount=0;try{this.MaxInstructionsConstValue=this.ClefLeftMargin+this.ClefRightMargin+this.KeyRightMargin+this.RhythmRightMargin+11}catch(t){loglevelExports.info("EngravingRules()",t)}this.MpatMode&&(this.NewPartAndSystemAfterFinalBarline=!0)}},{key:"applyDefaultColorMusic",value:function(e){this.DefaultColorMusic=e,this.DefaultColorNotehead=this.DefaultColorMusic,this.DefaultColorRest=this.DefaultColorNotehead,this.DefaultColorStem=this.DefaultColorNotehead,this.DefaultColorLabel=this.DefaultColorNotehead,this.DefaultColorTitle=this.DefaultColorNotehead,this.LedgerLineColorDefault=this.DefaultColorNotehead}},{key:"addGraphicalNoteToNoteMap",value:function(e,t){e.NoteToGraphicalNoteObjectId=this.NoteToGraphicalNoteMapObjectCount,this.NoteToGraphicalNoteMap.setValue(e.NoteToGraphicalNoteObjectId,t),this.NoteToGraphicalNoteMapObjectCount++}},{key:"GNote",value:function(e){return GraphicalNote.FromNote(e,this)}},{key:"clearMusicSheetObjects",value:function(){this.NoteToGraphicalNoteMap=new Dictionary,this.NoteToGraphicalNoteMapObjectCount=0}},{key:"setChordSymbolLabelText",value:function(e,t){this.ChordSymbolLabelTexts.setValue(e,t)}},{key:"resetChordSymbolLabelTexts",value:function(e){return e.setValue(ChordSymbolEnum.minor,"m"),e.setValue(ChordSymbolEnum.augmented,"aug"),e.setValue(ChordSymbolEnum.diminished,"dim"),e.setValue(ChordSymbolEnum.dominant,"7"),e.setValue(ChordSymbolEnum.majorseventh,"maj7"),e.setValue(ChordSymbolEnum.minorseventh,"m7"),e.setValue(ChordSymbolEnum.diminishedseventh,"dim7"),e.setValue(ChordSymbolEnum.augmentedseventh,"aug7"),e.setValue(ChordSymbolEnum.halfdiminished,"m7b5"),e.setValue(ChordSymbolEnum.majorminor,"m(maj7)"),e.setValue(ChordSymbolEnum.majorsixth,"maj6"),e.setValue(ChordSymbolEnum.minorsixth,"m6"),e.setValue(ChordSymbolEnum.dominantninth,"9"),e.setValue(ChordSymbolEnum.majorninth,"maj9"),e.setValue(ChordSymbolEnum.minorninth,"m9"),e.setValue(ChordSymbolEnum.dominant11th,"11"),e.setValue(ChordSymbolEnum.major11th,"maj11"),e.setValue(ChordSymbolEnum.minor11th,"m11"),e.setValue(ChordSymbolEnum.dominant13th,"13"),e.setValue(ChordSymbolEnum.major13th,"maj13"),e.setValue(ChordSymbolEnum.minor13th,"m13"),e.setValue(ChordSymbolEnum.suspendedsecond,"sus2"),e.setValue(ChordSymbolEnum.suspendedfourth,"sus4"),e.setValue(ChordSymbolEnum.power,"5"),e.setValue(ChordSymbolEnum.none,"N.C."),e}},{key:"addChordName",value:function(e,t,n,r,i){if(void 0!==ChordSymbolEnum[t]){var a={adds:n,alts:r,subs:i};this.CustomChords.push(CustomChord.createCustomChord(e,ChordSymbolEnum[t],a))}}},{key:"renameChord",value:function(e,t){CustomChord.renameCustomChord(e,t,this.CustomChords)}},{key:"resetChordNames",value:function(){this.addChordName("alt","major",["#5","b9","#9"],["b5"],[]),this.addChordName("7alt","dominant",["#5","b9","#9"],["b5"],[]),this.addChordName("7sus4","dominant",["4"],[],["3"]),this.addChordName("7sus4","suspendedfourth",["7"],[],[]),this.addChordName("9sus4","dominantninth",["4"],[],["3"]),this.addChordName("9sus4","suspendedfourth",["9"],[],[]),this.addChordName("11sus4","dominant11th",["4"],[],["3"]),this.addChordName("11sus4","suspendedfourth",["11"],[],[]),this.addChordName("13sus4","dominant13th",["4"],[],["3"]),this.addChordName("13sus4","suspendedfourth",["13"],[],[]),this.addChordName("7sus2","dominant",["2"],[],["3"]),this.addChordName("7sus2","suspendedsecond",["7"],[],[]),this.addChordName("m7b5","minorseventh",[],["b5"],[]),this.addChordName("9sus2","dominantninth",["2"],[],["3"]),this.addChordName("9sus2","suspendedsecond",["9"],[],[]),this.addChordName("11sus2","dominant11th",["2"],[],["3"]),this.addChordName("11sus2","suspendedsecond",["11"],[],[]),this.addChordName("13sus2","dominant13th",["2"],[],["3"]),this.addChordName("13sus2","suspendedsecond",["13"],[],[]),this.addChordName("m(maj9)","majorminor",["9"],[],[]),this.addChordName("m(maj11)","majorminor",["11"],[],[]),this.addChordName("m(maj13)","majorminor",["13"],[],[]),this.addChordName("69","majorsixth",["9"],[],[]),this.addChordName("mi69","minorsixth",["9"],[],[])}},{key:"calculateCurveParametersArrays",value:function(){this.TPower3=new Array(this.BezierCurveStepSize),this.OneMinusTPower3=new Array(this.BezierCurveStepSize),this.FactorOne=new Array(this.BezierCurveStepSize),this.FactorTwo=new Array(this.BezierCurveStepSize);for(var e=0;e<this.BezierCurveStepSize;e++){var t=e/this.BezierCurveStepSize;this.TPower3[e]=Math.pow(t,3),this.OneMinusTPower3[e]=Math.pow(1-t,3),this.FactorOne[e]=3*Math.pow(1-t,2)*t,this.FactorTwo[e]=3*(1-t)*Math.pow(t,2)}}}]),e}(),EngravingRules=_EngravingRules;EngravingRules.unit=1;var PageFormat=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"noIdStringGiven";_classCallCheck2(this,e),this.width=t,this.height=n,this.idString=r}return _createClass2(e,[{key:"aspectRatio",get:function(){return this.IsUndefined?0:this.width/this.height}},{key:"IsUndefined",get:function(){return void 0===this.width||void 0===this.height||0===this.height||0===this.width}},{key:"Equals",value:function(e){return!!e&&(e.width===this.width&&e.height===this.height)}}],[{key:"UndefinedPageFormat",get:function(){return new e(0,0)}}]),e}(),ColoringModes=function(e){return e[e.XML=0]="XML",e[e.AutoColoring=1]="AutoColoring",e[e.CustomColorSet=2]="CustomColorSet",e}(ColoringModes||{}),DrawingParametersEnum=function(e){return e.allon="allon",e.compact="compact",e.compacttight="compacttight",e.default="default",e.leadsheet="leadsheet",e.preview="preview",e.thumbnail="thumbnail",e}(DrawingParametersEnum||{}),DrawingParameters=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";_classCallCheck2(this,e),this.rules=new EngravingRules,this.drawCursors=!0,this.drawTitle=!0,this.drawSubtitle=!0,this.drawLyricist=!0,this.drawComposer=!0,this.drawCredits=!0,this.drawPartNames=!0,this.fingeringPosition=PlacementEnum.Left,this.drawHiddenNotes=!1,this.DrawingParametersEnum=t}return _createClass2(e,[{key:"DrawingParametersEnum",get:function(){return this.drawingParametersEnum},set:function(e){switch(this.drawingParametersEnum=e,e){case"allon":this.setForAllOn();break;case"thumbnail":this.setForThumbnail();break;case"leadsheet":this.setForLeadsheet();break;case"compact":this.setForCompactMode();break;case"compacttight":this.setForCompactTightMode();break;default:this.setForDefault()}}},{key:"setForAllOn",value:function(){this.drawHighlights=!0,this.drawErrors=!0,this.drawSelectionStartSymbol=!0,this.drawSelectionEndSymbol=!0,this.drawCursors=!0,this.drawActivitySymbols=!0,this.drawScrollIndicator=!0,this.drawAnnotations=!0,this.drawComments=!0,this.drawMarkedAreas=!0,this.DrawTitle=!0,this.DrawSubtitle=!0,this.DrawComposer=!0,this.DrawLyricist=!0,this.drawCredits=!0,this.DrawPartNames=!0,this.drawHiddenNotes=!0,this.rules.CompactMode=!1}},{key:"setForDefault",value:function(){this.rules.loadDefaultValues(),this.setForAllOn(),this.drawHiddenNotes=!1}},{key:"setForThumbnail",value:function(){this.drawHighlights=!1,this.drawErrors=!1,this.drawSelectionStartSymbol=!1,this.drawSelectionStartSymbol=!1,this.drawCursors=!1,this.drawActivitySymbols=!1,this.drawScrollIndicator=!1,this.drawAnnotations=!0,this.drawComments=!0,this.drawMarkedAreas=!0,this.drawHiddenNotes=!1}},{key:"setForCompactMode",value:function(){this.rules.CompactMode=!0,this.DrawCredits=!1,this.drawHiddenNotes=!1}},{key:"setForCompactTightMode",value:function(){this.setForCompactMode(),this.DrawPartNames=!1,this.rules.VoiceSpacingMultiplierVexflow=.65,this.rules.VoiceSpacingAddendVexflow=2,this.rules.MinSkyBottomDistBetweenStaves=1,this.rules.MinSkyBottomDistBetweenSystems=1,this.rules.BetweenStaffDistance=2.5,this.rules.StaffDistance=3.5,this.rules.MinimumDistanceBetweenSystems=1,this.rules.PageBottomMargin=0,this.rules.PageLeftMargin=2,this.rules.PageRightMargin=2}},{key:"setForLeadsheet",value:function(){this.drawHighlights=!1,this.drawErrors=!1,this.drawSelectionStartSymbol=!0,this.drawSelectionEndSymbol=!0,this.drawCursors=!0,this.drawActivitySymbols=!1,this.drawScrollIndicator=!0,this.drawAnnotations=!0,this.drawComments=!0,this.drawMarkedAreas=!0}},{key:"DrawCredits",get:function(){return this.drawCredits},set:function(e){this.drawCredits=e,this.DrawComposer=e,this.DrawTitle=e,this.DrawSubtitle=e,this.DrawLyricist=e}},{key:"DrawTitle",get:function(){return this.drawTitle},set:function(e){this.drawTitle=e,this.rules.RenderTitle=e,e||(this.DrawSubtitle=!1)}},{key:"DrawSubtitle",get:function(){return this.drawSubtitle},set:function(e){this.drawSubtitle=e,this.rules.RenderSubtitle=e,e&&(this.DrawTitle=!0)}},{key:"DrawComposer",get:function(){return this.drawComposer},set:function(e){this.drawComposer=e,this.rules.RenderComposer=e}},{key:"DrawLyricist",get:function(){return this.drawLyricist},set:function(e){this.drawLyricist=e,this.rules.RenderLyricist=e}},{key:"DrawPartNames",get:function(){return this.drawPartNames},set:function(e){this.drawPartNames=e,this.rules.RenderPartNames=e,this.rules.RenderPartNames||(this.rules.RenderPartAbbreviations=!1)}},{key:"FingeringPosition",get:function(){return this.fingeringPosition},set:function(e){this.fingeringPosition=e,this.rules.FingeringPosition=e}},{key:"Rules",get:function(){return this.rules},set:function(e){this.rules=e}}]),e}(),AlignRestOption=function(e){return e[e.Never=0]="Never",e[e.Always=1]="Always",e[e.Auto=2]="Auto",e}(AlignRestOption||{}),FillEmptyMeasuresWithWholeRests=function(e){return e[e.No=0]="No",e[e.YesVisible=1]="YesVisible",e[e.YesInvisible=2]="YesInvisible",e}(FillEmptyMeasuresWithWholeRests||{}),BackendType=function(e){return e[e.SVG=0]="SVG",e[e.Canvas=1]="Canvas",e}(BackendType||{}),OSMDOptions=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"OSMDOptionsStandard",value:function(){return{autoResize:!0,backend:"svg",drawingParameters:DrawingParametersEnum.default}}},{key:"BackendTypeFromString",value:function(e){return e&&"canvas"===e.toLowerCase()?1:0}}]),e}(),IXmlElement=function(){function e(t){if(_classCallCheck2(this,e),this.hasAttributes=!1,!t)throw new Error("IXmlElement: expected Element, got undefined");this.elem=t,this.name=t.nodeName.toLowerCase(),t.hasAttributes()&&(this.hasAttributes=!0,this.firstAttribute=t.attributes[0]),this.hasElements=t.hasChildNodes(),1===t.childNodes.length&&t.childNodes[0].nodeType===Node.TEXT_NODE?this.value=t.childNodes[0].nodeValue:this.value=""}return _createClass2(e,[{key:"attribute",value:function(e){return this.elem.attributes.getNamedItem(e)}},{key:"attributes",value:function(){if(!this.attrs){for(var e=this.elem.attributes,t=[],n=0;n<e.length;n+=1)t.push(e[n]);this.attrs=t}return this.attrs}},{key:"element",value:function(t){for(var n=this.elem.childNodes,r=0,i=n.length;r<i;r+=1){var a=n[r];if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName.toLowerCase()===t)return new e(a)}}},{key:"elements",value:function(t){var n=this.elem.childNodes,r=[],i=!t;i||(t=t.toLowerCase());for(var a=0;a<n.length;a+=1){var o=n[a];o.nodeType!==Node.ELEMENT_NODE||!i&&o.nodeName.toLowerCase()!==t||r.push(new e(o))}return r}}]),e}(),InstrumentalGroup=function(){function e(t,n,r){_classCallCheck2(this,e),this.instrumentalGroups=[],this.name=t,this.musicSheet=n,this.parent=r}return _createClass2(e,[{key:"InstrumentalGroups",get:function(){return this.instrumentalGroups}},{key:"Parent",get:function(){return this.parent}},{key:"Name",get:function(){return this.name},set:function(e){this.name=e}},{key:"GetMusicSheet",get:function(){return this.musicSheet}}]),e}(),Instrument=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;return _classCallCheck2(this,n),(o=t.call(this,void 0,i,a)).Transpose=0,o.voices=[],o.staves=[],o.hasLyrics=!1,o.hasChordSymbols=!1,o.playbackTranspose=0,o.lyricVersesNumbers=[],o.subInstruments=[],o.id=e,o.idString=r,o.nameLabel=new Label(r),o}return _createClass2(n,[{key:"Voices",get:function(){return this.voices}},{key:"Staves",get:function(){return this.staves}},{key:"NameLabel",get:function(){return this.nameLabel}},{key:"HasLyrics",get:function(){return this.hasLyrics},set:function(e){this.hasLyrics=e}},{key:"HasChordSymbols",get:function(){return this.hasChordSymbols},set:function(e){this.hasChordSymbols=e}},{key:"LyricVersesNumbers",get:function(){return this.lyricVersesNumbers},set:function(e){this.lyricVersesNumbers=e}},{key:"Name",get:function(){return this.nameLabel.text},set:function(e){this.nameLabel.text=e}},{key:"IdString",get:function(){return this.idString}},{key:"Id",get:function(){return this.id}},{key:"MidiInstrumentId",get:function(){return this.subInstruments[0].midiInstrumentID},set:function(e){this.subInstruments[0].midiInstrumentID=e}},{key:"Volume",get:function(){return this.subInstruments[0].volume},set:function(e){for(var t=0,n=this.subInstruments.length;t<n;++t){this.subInstruments[t].volume=e}}},{key:"PlaybackTranspose",get:function(){return this.playbackTranspose},set:function(e){this.playbackTranspose=e}},{key:"SubInstruments",get:function(){return this.subInstruments}},{key:"getSubInstrument",value:function(e){for(var t=0,n=this.subInstruments.length;t<n;++t){var r=this.subInstruments[t];if(r.idString===e)return r}}},{key:"PartAbbreviation",get:function(){return this.partAbbreviation},set:function(e){this.partAbbreviation=e}},{key:"Visible",get:function(){return this.voices.length>0&&this.Voices[0].Visible},set:function(e){for(var t=0,n=this.Voices.length;t<n;++t){this.Voices[t].Visible=e}}},{key:"Audible",get:function(){for(var e=!1,t=0,n=this.Voices.length;t<n;++t){var r=this.Voices[t];e=e||r.Audible}return e},set:function(e){for(var t=0,n=this.Voices.length;t<n;++t){this.Voices[t].Audible=e}for(var r=0,i=this.staves.length;r<i;++r){this.staves[r].audible=e}}},{key:"Solo",get:function(){for(var e=!1,t=0,n=this.Voices.length;t<n;++t){var r=this.Voices[t];e=e||r.Solo}return e},set:function(e){for(var t=0,n=this.Voices.length;t<n;++t){this.Voices[t].Solo=e}for(var r=0,i=this.Staves.length;r<i;++r){this.Staves[r].Solo=e}}},{key:"Following",get:function(){for(var e=!1,t=0,n=this.Voices.length;t<n;++t){var r=this.Voices[t];e=e||r.Following}return e},set:function(e){for(var t=0,n=this.Voices.length;t<n;++t){this.Voices[t].Following=e}for(var r=0,i=this.staves.length;r<i;++r){this.staves[r].following=e}}},{key:"SetVoiceAudible",value:function(e,t){for(var n=0,r=this.Voices.length;n<r;++n){var i=this.Voices[n];if(i.VoiceId===e){i.Audible=t;break}}}},{key:"SetVoiceFollowing",value:function(e,t){for(var n=0,r=this.Voices.length;n<r;++n){var i=this.Voices[n];if(i.VoiceId===e){i.Following=t;break}}}},{key:"SetStaffAudible",value:function(e,t){var n=this.staves[e-1];if(n.audible=t,t)for(var r=0,i=n.Voices.length;r<i;++r){n.Voices[r].Audible=!0}else for(var a=0,o=n.Voices.length;a<o;++a){for(var s=n.Voices[a],l=!1,u=0,c=this.Staves.length;u<c;++u){var h=this.Staves[u];if(h.Id!==e&&h.audible)for(var d=0,f=h.Voices.length;d<f;++d){h.Voices[d]===s&&(l=!0)}}l||(s.Audible=!1)}}},{key:"SetStaffFollow",value:function(e,t){var n=this.staves[e-1];if(n.following=t,t)for(var r=0,i=n.Voices.length;r<i;++r){n.Voices[r].Following=!0}else for(var a=0,o=n.Voices.length;a<o;++a){for(var s=n.Voices[a],l=!1,u=0,c=this.Staves.length;u<c;++u){var h=this.Staves[u];if(h.Id!==e&&h.following)for(var d=0,f=h.Voices.length;d<f;++d){h.Voices[d]===s&&(l=!0)}}l||(s.Following=!1)}}},{key:"areAllVoiceVisible",value:function(){var e,t=_createForOfIteratorHelper(this.Voices);try{for(t.s();!(e=t.n()).done;){if(!e.value.Visible)return!1}}catch(err){t.e(err)}finally{t.f()}return!0}},{key:"createStaves",value:function(e){for(var t=0;t<e;t++)this.staves.push(new Staff(this,t+1))}},{key:"toString",value:function(){return"".concat(this.Name," , id: ").concat(this.id,", idstring: ").concat(this.idString)}}]),n}(InstrumentalGroup),MusicSystem=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).needsToBeRedrawn=!0,r.staffLines=[],r.graphicalMeasures=[],r.labels=new _default,r.measureNumberLabels=[],r.objectsToRedraw=[],r.instrumentBrackets=[],r.groupBrackets=[],r.graphicalMarkedAreas=[],r.systemLines=[],r.breaksPage=!1,r.id=e,r.boundingBox=new BoundingBox$1(_assertThisInitialized2(r)),r.maxLabelLength=0,r}return _createClass2(n,[{key:"Parent",get:function(){return this.parent},set:function(e){if(this.parent){var t=this.parent.MusicSystems.indexOf(this,0);t>-1&&this.parent.MusicSystems.splice(t,1)}this.parent=e,this.boundingBox.Parent=e.PositionAndShape}},{key:"NextSystem",get:function(){var e=this.Parent.MusicSystems.indexOf(this);return e!==this.Parent.MusicSystems.length?this.Parent.MusicSystems[e+1]:void 0}},{key:"StaffLines",get:function(){return this.staffLines}},{key:"GraphicalMeasures",get:function(){return this.graphicalMeasures}},{key:"MeasureNumberLabels",get:function(){return this.measureNumberLabels}},{key:"Labels",get:function(){return this.labels.values()}},{key:"ObjectsToRedraw",get:function(){return this.objectsToRedraw}},{key:"InstrumentBrackets",get:function(){return this.instrumentBrackets}},{key:"GroupBrackets",get:function(){return this.groupBrackets}},{key:"GraphicalMarkedAreas",get:function(){return this.graphicalMarkedAreas}},{key:"SystemLines",get:function(){return this.systemLines}},{key:"Id",get:function(){return this.id}},{key:"createSystemLeftLine",value:function(e,t,n){var r=-e/2;n&&(r=this.maxLabelLength+t-e/2);var i=this.staffLines[0].Measures[0],a=void 0;this.staffLines.length>1&&(a=this.staffLines[this.staffLines.length-1].Measures[0]);var o=this.createSystemLine(r,e,SystemLinesEnum.SingleThin,SystemLinePosition.MeasureBegin,this,i,a);this.SystemLines.push(o),o.PositionAndShape.RelativePosition=new PointF2D(r,0),o.PositionAndShape.BorderLeft=0,o.PositionAndShape.BorderRight=e,o.PositionAndShape.BorderTop=0,o.PositionAndShape.BorderBottom=this.boundingBox.Size.height,this.createLinesForSystemLine(o)}},{key:"createVerticalLineForMeasure",value:function(e,t,n,r,i,a){var o=a.ParentStaffLine,s=new PointF2D(o.PositionAndShape.RelativePosition.x,o.PositionAndShape.RelativePosition.y),l=o.ParentStaff.ParentInstrument.Staves;if(o.ParentStaff===l[0]){var u=void 0;l.length>1&&(u=this.getBottomStaffLine(o).Measures[i]);var c=this.createSystemLine(e,t,n,r,this,a,u),h=s.x+e;c.PositionAndShape.RelativePosition=new PointF2D(h,0),c.PositionAndShape.BorderLeft=0,c.PositionAndShape.BorderRight=t,this.SystemLines.push(c)}}},{key:"setYPositionsToVerticalLineObjectsAndCreateLines",value:function(e){}},{key:"calculateBorders",value:function(e){}},{key:"alignBeginInstructions",value:function(){}},{key:"GetLeftBorderAbsoluteXPosition",value:function(){return this.StaffLines[0].PositionAndShape.AbsolutePosition.x+this.StaffLines[0].Measures[0].beginInstructionsWidth}},{key:"GetRightBorderAbsoluteXPosition",value:function(){return this.StaffLines[0].PositionAndShape.AbsolutePosition.x+this.StaffLines[0].StaffLines[0].End.x}},{key:"AddGraphicalMeasures",value:function(e){for(var t=0,n=e.length;t<n;++t){e[t].ParentMusicSystem=this}this.graphicalMeasures.push(e)}},{key:"GetSystemsFirstTimeStamp",value:function(){return this.graphicalMeasures[0][0].parentSourceMeasure.AbsoluteTimestamp}},{key:"GetSystemsLastTimeStamp",value:function(){var e=this.graphicalMeasures[this.graphicalMeasures.length-1][0].parentSourceMeasure;return Fraction$1.plus(e.AbsoluteTimestamp,e.Duration)}},{key:"createInstrumentBrackets",value:function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(i.Staves.length>1){for(var a=void 0,o=void 0,s=0,l=this.staffLines.length;s<l;++s){var u=this.staffLines[s];u.ParentStaff===i.Staves[0]&&(a=u),u.ParentStaff===i.Staves[i.Staves.length-1]&&(o=u)}a&&o&&this.createInstrumentBracket(a,o)}}}},{key:"createGroupBrackets",value:function(e,t,n){for(var r=0,i=e.length;r<i;++r){var a=e[r];if(!(a.InstrumentalGroups.length<1)){var o=this.findFirstVisibleInstrumentInInstrumentalGroup(a),s=this.findLastVisibleInstrumentInInstrumentalGroup(a);if(o&&s){for(var l=void 0,u=void 0,c=0,h=this.staffLines.length;c<h;++c){var d=this.staffLines[c];d.ParentStaff===o.Staves[0]&&(l=d),d.ParentStaff===s.Staves[0]&&(u=d)}l&&u&&this.createGroupBracket(l,u,n),a.InstrumentalGroups.length<1||this.createGroupBrackets(a.InstrumentalGroups,t,n+1)}}}}},{key:"createMusicSystemLabel",value:function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t,a=0,o=this.staffLines.length;a<o;++a){var s,l=this.staffLines[a].ParentStaff.ParentInstrument,u=void 0;if(r){var c;u=l.NameLabel,this.rules.RenderPartNames&&null!==(c=u)&&void 0!==c&&c.print||(u=new Label("",l.NameLabel.textAlignment,l.NameLabel.font),t=0)}else{if(!this.rules.RenderPartAbbreviations||!this.rules.RenderPartNames||1===this.staffLines.length||!l.PartAbbreviation||""===l.PartAbbreviation)return;var h=l.PartAbbreviation;u=new Label(h,l.NameLabel.textAlignment,l.NameLabel.font)}if(null!=l&&null!==(s=l.NameLabel)&&void 0!==s&&s.print){var d=new GraphicalLabel(u,e,TextAlignmentEnum.LeftCenter,this.rules,this.boundingBox);d.setLabelPositionAndShapeBorders(),this.labels.setValue(l,d)}else t=0}this.maxLabelLength=0;for(var f=this.labels.values(),p=0,v=f.length;p<v;++p){var m=f[p];m.Label.print&&(m.PositionAndShape.Size.width>this.maxLabelLength&&(this.maxLabelLength=m.PositionAndShape.Size.width,t=i))}this.updateMusicSystemStaffLineXPosition(t)}},{key:"setMusicSystemLabelsYPosition",value:function(){var e=this;this.labels.forEach((function(t,n){for(var r=0,i=0,a=0;a<e.staffLines.length;a++)if(e.staffLines[a].ParentStaff.ParentInstrument===t){for(var o=a;o<e.staffLines.length;o++){var s=e.staffLines[o];if(s.ParentStaff.ParentInstrument!==t)break;r+=s.PositionAndShape.RelativePosition.y,i++}break}i>0&&(n.PositionAndShape.RelativePosition=new PointF2D(0,r/i+2))}))}},{key:"checkStaffEntriesForStaffEntryLink",value:function(){for(var e=!1,t=!1,n=0;n<this.staffLines.length-1;n++){for(var r=0,i=this.staffLines[n].Measures.length;r<i;++r)for(var a=this.staffLines[n].Measures[r],o=0,s=a.staffEntries.length;o<s;++o){a.staffEntries[o].sourceStaffEntry.Link&&(e=!0)}for(var l=0,u=this.staffLines[n+1].Measures.length;l<u;++l)for(var c=this.staffLines[n+1].Measures[l],h=0,d=c.staffEntries.length;h<d;++h){c.staffEntries[h].sourceStaffEntry.Link&&(t=!0)}}return!(!e||!t)}},{key:"getBottomStaffLine",value:function(e){var t,n=e.ParentStaff.ParentInstrument.Staves,r=n[n.length-1],i=_createForOfIteratorHelper(e.ParentMusicSystem.staffLines);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.ParentStaff===r)return a}}catch(err){i.e(err)}finally{i.f()}}},{key:"createSystemLine",value:function(e,t,n,r,i,a){throw new Error("not implemented")}},{key:"createLinesForSystemLine",value:function(e){}},{key:"calcBracketsWidth",value:function(){for(var e=0,t=0,n=this.GroupBrackets.length;t<n;++t){var r=this.GroupBrackets[t];e=Math.max(e,r.PositionAndShape.Size.width)}for(var i=0,a=this.InstrumentBrackets.length;i<a;++i){var o=this.InstrumentBrackets[i];e=Math.max(e,o.PositionAndShape.Size.width)}return e}},{key:"createInstrumentBracket",value:function(e,t){}},{key:"createGroupBracket",value:function(e,t,n){}},{key:"findFirstVisibleInstrumentInInstrumentalGroup",value:function(e){for(var t=0,n=e.InstrumentalGroups.length;t<n;++t){var r=e.InstrumentalGroups[t];if(!(r instanceof Instrument))return this.findFirstVisibleInstrumentInInstrumentalGroup(r);if(!0===r.Visible)return r}}},{key:"findLastVisibleInstrumentInInstrumentalGroup",value:function(e){for(var t,n=e.InstrumentalGroups.length-1;n>=0;n--){if(!((t=e.InstrumentalGroups[n])instanceof Instrument))return this.findLastVisibleInstrumentInInstrumentalGroup(t);if(!0===t.Visible)return t}}},{key:"updateMusicSystemStaffLineXPosition",value:function(e){for(var t=0,n=this.StaffLines.length;t<n;++t){var r=this.StaffLines[t],i=r.PositionAndShape.RelativePosition;i.x=this.maxLabelLength+e,r.PositionAndShape.RelativePosition=i,r.PositionAndShape.BorderRight=this.boundingBox.Size.width-this.maxLabelLength-e;for(var a=0;a<r.StaffLines.length;a++){var o=new PointF2D(r.PositionAndShape.Size.width,r.StaffLines[a].End.y);r.StaffLines[a].End=o}}}}]),n}(GraphicalObject),SystemLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return _classCallCheck2(this,n),(o=t.call(this)).lineType=e,o.linePosition=r,o.parentMusicSystem=i,o.topMeasure=a,o.bottomMeasure=s,o.parentTopStaffLine=null==a?void 0:a.ParentStaffLine,o.boundingBox=new BoundingBox$1(_assertThisInitialized2(o),i.PositionAndShape),o}return _createClass2(n,null,[{key:"getObjectWidthForLineType",value:function(e,t){switch(t){case SystemLinesEnum.SingleThin:return e.SystemThinLineWidth;case SystemLinesEnum.DoubleThin:return 2*e.SystemThinLineWidth+e.DistanceBetweenVerticalSystemLines;case SystemLinesEnum.ThinBold:return e.SystemThinLineWidth+e.SystemBoldLineWidth+e.DistanceBetweenVerticalSystemLines;case SystemLinesEnum.BoldThinDots:case SystemLinesEnum.DotsThinBold:return e.SystemThinLineWidth+e.SystemBoldLineWidth+e.DistanceBetweenVerticalSystemLines+e.SystemDotWidth+e.DistanceBetweenDotAndLine;case SystemLinesEnum.DotsBoldBoldDots:return 2*e.SystemBoldLineWidth+2*e.SystemDotWidth+2*e.DistanceBetweenDotAndLine+e.DistanceBetweenVerticalSystemLines;default:return 0}}}]),n}(GraphicalObject),VF$b=Vex.Flow,VexFlowInstrumentBracket=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_classCallCheck2(this,n),(i=t.call(this)).Visible=!0,i.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),e.ParentMusicSystem.PositionAndShape);var o=e.Measures[0],s=r.Measures[0];return i.addConnector(o.getVFStave(),s.getVFStave(),VF$b.StaveConnector.type.BRACKET,a),i}return _createClass2(n,[{key:"draw",value:function(e){this.Visible&&this.vexflowConnector.setContext(e).draw();var t=this.vexflowConnector,n=t.top_stave.getYForLine(0),r=t.bottom_stave.getYForLine(t.bottom_stave.getNumLines()-1)+t.thickness;this.PositionAndShape.AbsolutePosition.x=(t.top_stave.getX()-2+t.x_shift)/unitInPixels,this.PositionAndShape.AbsolutePosition.y=n/unitInPixels,this.PositionAndShape.Size.height=(r-n)/unitInPixels,this.PositionAndShape.Size.width=12/unitInPixels}},{key:"addConnector",value:function(e,t,n,r){this.vexflowConnector=new VF$b.StaveConnector(e,t).setType(n).setXShift(-5*r)}}]),n}(GraphicalObject),VF$a=Vex.Flow,VexFlowInstrumentBrace=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck2(this,n),(i=t.call(this,e,r,a)).vexflowConnector.setType(VF$a.StaveConnector.type.BRACE),i}return _createClass2(n)}(VexFlowInstrumentBracket),VexFlowMusicSystem=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,e)).rules=r,i}return _createClass2(n,[{key:"calculateBorders",value:function(e){if(0!==this.staffLines.length){var t=this.calcBracketsWidth();this.boundingBox.BorderLeft=-t,this.boundingBox.BorderMarginLeft=-t,this.boundingBox.XBordersHaveBeenSet=!0;var n=this.staffLines[0].SkyBottomLineCalculator.getSkyLineMin();this.boundingBox.BorderTop=n,this.boundingBox.BorderMarginTop=n;var r=this.staffLines[this.staffLines.length-1],i=r.SkyBottomLineCalculator.getBottomLineMax()+r.PositionAndShape.RelativePosition.y;this.boundingBox.BorderBottom=i,this.boundingBox.BorderMarginBottom=i,this.boundingBox.XBordersHaveBeenSet=!0,this.boundingBox.YBordersHaveBeenSet=!0}}},{key:"createSystemLine",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,s=a,l=!1;if(o&&(l=!0,o.lineTo(a,VexFlowConverter.line(n,r)),o.addMeasureLine(n,r),n===SystemLinesEnum.DotsBoldBoldDots)){var u=o.ParentStaffLine.Measures.indexOf(o)+1,c=o.ParentStaffLine.Measures[u],h=a.ParentStaffLine.Measures[u];c&&h&&(c.lineTo(h,VexFlowConverter.line(SystemLinesEnum.BoldThinDots,r)),c.addMeasureLine(SystemLinesEnum.BoldThinDots,r))}return s&&s.addMeasureLine(n,r,l),new SystemLine(n,r,this,a,o)}},{key:"createInstrumentBracket",value:function(e,t){var n=new VexFlowInstrumentBrace(e,t);this.InstrumentBrackets.push(n)}},{key:"createGroupBracket",value:function(e,t,n){var r=e,i=t;if(0===n){var a=new VexFlowInstrumentBracket(r,i,n);this.GroupBrackets.push(a)}else{var o=new VexFlowInstrumentBrace(r,i,n);this.GroupBrackets.push(o)}}}]),n}(MusicSystem),GraphicalMeasure=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return _classCallCheck2(this,n),(e=t.call(this)).hasOnlyRests=!1,e.measureNumber=-1,e.ShowTimeSignature=!0,e.parentStaff=r,e.parentSourceMeasure=i,e.parentStaffLine=a,a?(e.parentStaff=a.ParentStaff,e.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(e),a.PositionAndShape)):e.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(e)),e.PositionAndShape.BorderBottom=4,e.parentSourceMeasure&&(e.measureNumber=e.parentSourceMeasure.MeasureNumber),e.staffEntries=[],e}return _createClass2(n,[{key:"ParentStaff",get:function(){return this.parentStaff}},{key:"ParentMusicSystem",get:function(){return this.parentMusicSystem},set:function(e){this.parentMusicSystem=e}},{key:"MeasureNumber",get:function(){return this.measureNumber}},{key:"FirstInstructionStaffEntry",get:function(){return this.firstInstructionStaffEntry},set:function(e){this.firstInstructionStaffEntry=e}},{key:"LastInstructionStaffEntry",get:function(){return this.lastInstructionStaffEntry},set:function(e){this.lastInstructionStaffEntry=e}},{key:"ParentStaffLine",get:function(){return this.parentStaffLine},set:function(e){this.parentStaffLine=e,this.parentStaffLine&&(this.PositionAndShape.Parent=this.parentStaffLine.PositionAndShape)}},{key:"resetLayout",value:function(){throw new Error("not implemented")}},{key:"getLineWidth",value:function(e){throw new Error("not implemented")}},{key:"addClefAtBegin",value:function(e){throw new Error("not implemented")}},{key:"addKeyAtBegin",value:function(e,t,n){throw new Error("not implemented")}},{key:"addRhythmAtBegin",value:function(e){throw new Error("not implemented")}},{key:"addClefAtEnd",value:function(e){throw new Error("not implemented")}},{key:"setPositionInStaffline",value:function(e){this.PositionAndShape.RelativePosition=new PointF2D(e,0)}},{key:"setWidth",value:function(e){this.PositionAndShape.BorderRight=e}},{key:"layoutSymbols",value:function(){throw new Error("not implemented")}},{key:"findGraphicalStaffEntryFromTimestamp",value:function(e){for(var t=0,n=this.staffEntries.length;t<n;++t){var r,i=this.staffEntries[t];if(null!==(r=i.relInMeasureTimestamp)&&void 0!==r&&r.Equals(e))return i}}},{key:"findGraphicalStaffEntryFromVerticalContainerTimestamp",value:function(e){for(var t=0,n=this.staffEntries.length;t<n;++t){var r=this.staffEntries[t];if(r.sourceStaffEntry.VerticalContainerParent.getAbsoluteTimestamp().Equals(e))return r}}},{key:"hasSameDurationWithSourceMeasureParent",value:function(){for(var e=new Fraction$1(0,1),t=0,n=this.staffEntries.length;t<n;++t){var r=this.staffEntries[t];e.Add(r.findStaffEntryMinNoteLength())}return e.Equals(this.parentSourceMeasure.Duration)}},{key:"hasMultipleVoices",value:function(){if(0===this.staffEntries.length)return!1;for(var e=[],t=0,n=this.staffEntries.length;t<n;++t)for(var r=this.staffEntries[t],i=0,a=r.sourceStaffEntry.VoiceEntries.length;i<a;++i){var o=r.sourceStaffEntry.VoiceEntries[i];e.indexOf(o.ParentVoice)<0&&e.push(o.ParentVoice)}return e.length>1}},{key:"isVisible",value:function(){return this.ParentStaff.ParentInstrument.Visible}},{key:"getGraphicalMeasureDurationFromStaffEntries",value:function(){for(var e=new Fraction$1(0,1),t=[],n=0,r=this.staffEntries.length;n<r;++n)for(var i=this.staffEntries[n],a=0,o=i.sourceStaffEntry.VoiceEntries.length;a<o;++a){var s=i.sourceStaffEntry.VoiceEntries[a];t.indexOf(s.ParentVoice)<0&&t.push(s.ParentVoice)}for(var l=0,u=t.length;l<u;++l){var c,h=t[l],d=new Fraction$1(0,1),f=_createForOfIteratorHelper(this.staffEntries);try{for(f.s();!(c=f.n()).done;){var p,v=_createForOfIteratorHelper(c.value.graphicalVoiceEntries);try{for(v.s();!(p=v.n()).done;){var m=p.value;m.parentVoiceEntry.ParentVoice===h&&m.notes.length>0&&d.Add(m.notes[0].graphicalNoteLength)}}catch(err){v.e(err)}finally{v.f()}}}catch(err){f.e(err)}finally{f.f()}e.lt(d)&&(e=Fraction$1.createFromFraction(d))}return e}},{key:"addGraphicalStaffEntry",value:function(e){this.staffEntries.push(e)}},{key:"addGraphicalStaffEntryAtTimestamp",value:function(e){if(e)if(0===this.staffEntries.length||this.staffEntries[this.staffEntries.length-1].relInMeasureTimestamp.lt(e.relInMeasureTimestamp))this.staffEntries.push(e);else for(var t=this.staffEntries.length-1;t>=0;t--){if(this.staffEntries[t].relInMeasureTimestamp.lt(e.relInMeasureTimestamp)){this.staffEntries.splice(t+1,0,e);break}0===t&&this.staffEntries.splice(t,0,e)}}},{key:"isPianoRightHand",value:function(){return this.isUpperStaffOfInstrument()}},{key:"isPianoLeftHand",value:function(){return this.isLowerStaffOfInstrument()}},{key:"isUpperStaffOfInstrument",value:function(){return 1===this.parentStaff.ParentInstrument.Staves.length||this.ParentStaff===this.parentStaff.ParentInstrument.Staves[0]}},{key:"isLowerStaffOfInstrument",value:function(){return 1!==this.parentStaff.ParentInstrument.Staves.length&&this.ParentStaff===this.ParentStaff.ParentInstrument.Staves.last()}},{key:"beginsWithLineRepetition",value:function(){var e=this.parentSourceMeasure;return!!e&&e.beginsWithLineRepetition()}},{key:"endsWithLineRepetition",value:function(){var e=this.parentSourceMeasure;return!!e&&e.endsWithLineRepetition()}},{key:"beginsWithWordRepetition",value:function(){var e=this.parentSourceMeasure;return!!e&&e.beginsWithWordRepetition()}},{key:"endsWithWordRepetition",value:function(){var e=this.parentSourceMeasure;return!!e&&e.endsWithWordRepetition()}},{key:"getTransposedHalftones",value:function(){return this.parentStaff.ParentInstrument.GetMusicSheet.Transpose+this.parentStaff.ParentInstrument.Transpose}}]),n}(GraphicalObject),VexFlowVoiceEntry=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){return _classCallCheck2(this,n),t.call(this,e,r)}return _createClass2(n,[{key:"applyBordersFromVexflow",value:function(){var e=this.vfStaveNote;if(e.getNoteHeadBeginX){var t=e.getBoundingBox(),n=e.getNoteHeadBeginX()-t.x;this.PositionAndShape.RelativePosition.y=t.y/unitInPixels,this.PositionAndShape.BorderTop=0,this.PositionAndShape.BorderBottom=t.h/unitInPixels,this.PositionAndShape.BorderLeft=-(n+e.width/2)/unitInPixels,this.PositionAndShape.BorderRight=(t.w-n)/unitInPixels}}},{key:"vfStaveNote",get:function(){return this.mVexFlowStaveNote},set:function(e){this.mVexFlowStaveNote=e}},{key:"color",value:function(){for(var e,t,n=this.rules.DefaultColorNotehead,r=this.rules.DefaultColorRest,i=this.rules.DefaultColorStem,a="#00000000",o=this.vfStaveNote,s=0;s<this.notes.length;s++){var l=this.notes[s];if(e=t=l.sourceNote.NoteheadColor,this.rules.ColoringMode===ColoringModes.AutoColoring||this.rules.ColoringMode===ColoringModes.CustomColorSet)if(l.sourceNote.isRest())e=this.rules.ColoringSetCurrent.getValue(-1);else{var u=l.sourceNote.Pitch.FundamentalNote;e=this.rules.ColoringSetCurrent.getValue(u)}if(l.sourceNote.PrintObject?e&&"#000000"!==e||(e=this.rules.DefaultColorNotehead):e=a,!t&&this.rules.ColoringMode===ColoringModes.XML&&l.sourceNote.PrintObject&&(!l.sourceNote.isRest()&&n?e=n:l.sourceNote.isRest()&&r&&(e=r)),e&&l.sourceNote.PrintObject)l.sourceNote.NoteheadColorCurrentlyRendered=e;else if(!e)continue;if(this.rules.ColoringEnabled&&l.sourceNote.NoteBeam&&this.rules.ColorBeams){for(var c,h=l.sourceNote.NoteBeam.Notes,d=!0,f=0;f<h.length;f++)h[f].NoteheadColorCurrentlyRendered!==e&&(d=!1);if(d)null!=o&&null!==(c=o.beam)&&void 0!==c&&c.setStyle&&o.beam.setStyle({fillStyle:e,strokeStyle:e})}if(o){if(o.note_heads){var p=o.note_heads[s];p&&p.setStyle({fillStyle:e,strokeStyle:e})}o.setLedgerLineStyle&&(e===a?o.setLedgerLineStyle({fillStyle:e,strokeStyle:e,lineWidth:this.rules.LedgerLineWidth}):o.setLedgerLineStyle({fillStyle:this.rules.LedgerLineColorDefault,lineWidth:this.rules.LedgerLineWidth,strokeStyle:this.rules.LedgerLineColorDefault}))}}var v=i,m=!1;this.rules.ColoringEnabled&&((v=this.parentVoiceEntry.StemColor)&&"#000000"!==v||(v=i),this.rules.ColorStemsLikeNoteheads&&e&&(v=e,m=!0));var g,y=!0,b=_createForOfIteratorHelper(this.parentVoiceEntry.Notes);try{for(b.s();!(g=b.n()).done;){if(g.value.PrintObject){y=!1;break}}}catch(err){b.e(err)}finally{b.f()}y&&(v=a);var A={fillStyle:v,strokeStyle:v};o&&o.setStemStyle&&(!y&&m&&(this.parentVoiceEntry.StemColor=v),o.setStemStyle(A),o.flag&&o.setFlagStyle&&this.rules.ColorFlags&&o.setFlagStyle(A))}}]),n}(GraphicalVoiceEntry),VF$9=Vex.Flow,NoteSubGroup=VF$9.NoteSubGroup,VexFlowMeasure=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return _classCallCheck2(this,n),(r=t.call(this,e,i,a)).isTabMeasure=!1,r.octaveOffset=3,r.vfVoices={},r.vfTies=[],r.vfRepetitionWords=[],r.connectors=[],r.beams={},r.tuplets={},r.vftuplets={},r.minimumStaffEntriesWidth=-1,a?r.rules=a.ParentMusicSystem.rules:i&&(r.rules=i.Rules),r.resetLayout(),r}return _createClass2(n,[{key:"setAbsoluteCoordinates",value:function(e,t){this.stave.setX(e).setY(t)}},{key:"resetLayout",value:function(){this.stave=new VF$9.Stave(0,0,0,{fill_style:this.rules.StaffLineColor,space_above_staff_ln:0,space_below_staff_ln:0,DYMusicScoreType:this.rules.DYMusicScoreType}),this.stave.MeasureNumber=this.MeasureNumber,this.ParentStaff&&this.setLineNumber(this.ParentStaff.StafflineCount),this.stave.setBegBarType(VF$9.Barline.type.NONE),this.parentSourceMeasure&&this.parentSourceMeasure.endingBarStyleEnum===SystemLinesEnum.None&&this.stave.setEndBarType(VF$9.Barline.type.NONE),this.updateInstructionWidth()}},{key:"clean",value:function(){this.vfTies.length=0,this.connectors=[],this.resetLayout()}},{key:"getLineWidth",value:function(e){switch(e){case SystemLinesEnum.SingleThin:case SystemLinesEnum.DoubleThin:case SystemLinesEnum.ThinBold:return 5/unitInPixels;case SystemLinesEnum.BoldThinDots:case SystemLinesEnum.DotsThinBold:return 10/unitInPixels;case SystemLinesEnum.DotsBoldBoldDots:return 10/unitInPixels+this.rules.RepeatEndStartPadding;default:return 0}}},{key:"addClefAtBegin",value:function(e){if(this.rules.RenderClefsAtBeginningOfStaffline){if(this.octaveOffset=e.OctaveOffset,"jianpu"!==this.rules.DYMusicScoreType)if(e.ClefType===ClefEnum.TAB)this.stave.addClef("tab",void 0,void 0,void 0);else{var t=VexFlowConverter.Clef(e,"default");this.stave.addClef(t.type,t.size,t.annotation,VF$9.StaveModifier.Position.BEGIN)}this.updateInstructionWidth()}}},{key:"setLineNumber",value:function(e){5!==e&&(0===e?(this.stave.setNumLines(0),this.stave.getBottomLineY=function(){return this.getYForLine(this.options.num_lines)}):1===e?(this.stave.options.line_config=[{visible:!1},{visible:!1},{visible:!0},{visible:!1},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(2)}):2===e?(this.stave.options.line_config=[{visible:!1},{visible:!1},{visible:!0},{visible:!0},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(3)}):3===e?(this.stave.options.line_config=[{visible:!1},{visible:!0},{visible:!0},{visible:!0},{visible:!1}],this.stave.getBottomLineY=function(){return this.getYForLine(2)}):(this.stave.setNumLines(e),this.stave.getBottomLineY=function(){return this.getYForLine(this.options.num_lines)}))}},{key:"addKeyAtBegin",value:function(e,t,n){this.rules.RenderKeySignatures&&(this.stave.setKeySignature(VexFlowConverter.keySignature(e),VexFlowConverter.keySignature(t),void 0),this.updateInstructionWidth())}},{key:"addRhythmAtBegin",value:function(e){var t=VexFlowConverter.TimeSignature(e);this.stave.addModifier(t,VF$9.StaveModifier.Position.BEGIN,{numerator:e.Rhythm.Numerator,denominator:e.Rhythm.Denominator}),this.ShowTimeSignature||t.setStyle({fillStyle:"#00000000"}),this.updateInstructionWidth()}},{key:"addClefAtEnd",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=VexFlowConverter.Clef(e,"small");if(t||!this.stave.endClef){this.stave.setEndClef(n.type,n.size,n.annotation);var r,i=_createForOfIteratorHelper(this.stave.getModifiers());try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t){var o=a.originalStrokeStyle,s=a.originalFillStyle;a.getStyle()&&(o&&s?(a.getStyle().strokeStyle=o,a.getStyle().fillStyle=s):(a.getStyle().strokeStyle=null,a.getStyle().fillStyle=null))}else if("clefs"===a.getCategory()&&a.getPosition()===VF$9.StaveModifier.Position.END&&a.type===n.type){var l="#12345600",u=a.getStyle();u&&(a.originalStrokeStyle=u.strokeStyle,a.originalFillStyle=u.fillStyle),a.setStyle({strokeStyle:l,fillStyle:l})}}}catch(err){i.e(err)}finally{i.f()}return this.parentSourceMeasure.hasEndClef=!0,this.updateInstructionWidth()}}},{key:"addMeasureLine",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];switch(t){case SystemLinePosition.MeasureBegin:if(e===SystemLinesEnum.BoldThinDots)n||(this.stave.modifiers[0].draw=function(e){switch(e.checkContext(),this.setRendered(),this.type){case VF$9.Barline.type.SINGLE:this.drawVerticalBar(e,this.x,!1);break;case VF$9.Barline.type.DOUBLE:this.drawVerticalBar(e,this.x,!0);break;case VF$9.Barline.type.END:this.drawVerticalEndBar(e,this.x);break;case VF$9.Barline.type.REPEAT_BEGIN:this.drawRepeatBar(e,this.x,!0);break;case VF$9.Barline.type.REPEAT_END:this.drawRepeatBar(e,this.x,!1);break;case VF$9.Barline.type.REPEAT_BOTH:this.drawRepeatBar(e,this.x,!1),this.drawRepeatBar(e,this.x,!0)}}),this.stave.setBegBarType(VF$9.Barline.type.REPEAT_BEGIN);break;case SystemLinePosition.MeasureEnd:switch(e){case SystemLinesEnum.DotsBoldBoldDots:this.stave.setEndBarType(VF$9.Barline.type.REPEAT_BOTH);break;case SystemLinesEnum.DotsThinBold:this.stave.setEndBarType(VF$9.Barline.type.REPEAT_END);break;case SystemLinesEnum.DoubleThin:this.stave.setEndBarType(VF$9.Barline.type.DOUBLE);break;case SystemLinesEnum.ThinBold:this.stave.setEndBarType(VF$9.Barline.type.END);break;case SystemLinesEnum.None:this.stave.setEndBarType(VF$9.Barline.type.NONE)}}}},{key:"addMeasureNumber",value:function(){var e=this.MeasureNumber.toString();this.stave.setText(e,3,{justification:1,shift_x:0,shift_y:0})}},{key:"addWordRepetition",value:function(e){var t=void 0,n=VF$9.StaveModifier.Position.END,r=this.beginInstructionsWidth;switch(e.type){case RepetitionInstructionEnum.Segno:t=VF$9.Repetition.type.SEGNO_LEFT,n=VF$9.StaveModifier.Position.LEFT;break;case RepetitionInstructionEnum.Coda:t=VF$9.Repetition.type.CODA_LEFT,n=VF$9.StaveModifier.Position.LEFT;break;case RepetitionInstructionEnum.DaCapo:t=VF$9.Repetition.type.DC;break;case RepetitionInstructionEnum.DalSegno:t=VF$9.Repetition.type.DS;break;case RepetitionInstructionEnum.Fine:t=VF$9.Repetition.type.FINE;break;case RepetitionInstructionEnum.ToCoda:t=VF$9.Repetition.type.TO_CODA;break;case RepetitionInstructionEnum.DaCapoAlFine:t=VF$9.Repetition.type.DC_AL_FINE;break;case RepetitionInstructionEnum.DaCapoAlCoda:t=VF$9.Repetition.type.DC_AL_CODA;break;case RepetitionInstructionEnum.DalSegnoAlFine:t=VF$9.Repetition.type.DS_AL_FINE;break;case RepetitionInstructionEnum.DalSegnoAlCoda:t=VF$9.Repetition.type.DS_AL_CODA}if(t){if(this.stave.getModifiers().find((function(e){return e.symbol_type===t})))return;var i=new VF$9.Repetition(t,r,-this.rules.RepetitionSymbolsYOffset);this.stave.addModifier(i,n)}else this.addVolta(e)}},{key:"addVolta",value:function(e){var t=VF$9.Volta.type.BEGIN;if(e.type===RepetitionInstructionEnum.Ending){switch(e.alignment){case AlignmentType.Begin:t=this.parentSourceMeasure.endsRepetitionEnding()?VF$9.Volta.type.BEGIN_END:VF$9.Volta.type.BEGIN;break;case AlignmentType.End:if(this.parentSourceMeasure.beginsRepetitionEnding())return;t=VF$9.Volta.type.END}var r=this.ParentStaffLine.SkyBottomLineCalculator,i=this.PositionAndShape.AbsolutePosition.x+this.PositionAndShape.BorderMarginLeft+.4,a=Math.max(this.PositionAndShape.AbsolutePosition.x+this.PositionAndShape.BorderMarginRight,i+.4),o=r.getSkyLineMinInRange(i,a)-2,s=-6.1+this.rules.VoltaOffset,l=this.rules.VoltaOffset;if(o<s)l+=o-s,s=o;for(var u=void 0,c=this.parentSourceMeasure.MeasureNumber,h=0;h<this.ParentStaffLine.Measures.length;h++){var d,f=this.ParentStaffLine.Measures[h];f instanceof n&&(f.MeasureNumber!==c-1&&f.MeasureNumber+(null===(d=f.parentSourceMeasure)||void 0===d?void 0:d.multipleRestMeasures)!==c||(u=f))}if(u)for(var p=u.stave.getModifiers(),v=0;v<p.length;v++){var m=p[v];if(m.hasOwnProperty("volta")){var g=u.ParentStaffLine.SkyBottomLineCalculator,y=u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginLeft+.4,b=Math.max(u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginRight,y+.4),A=g.getSkyLineMinInRange(y,b);if(A<=s)l+=A-s,s=A;else m.y_shift=l*unitInPixels,u.ParentStaffLine.SkyBottomLineCalculator.updateSkyLineInRange(y,b,s)}}l*=10,this.stave.setVoltaType(t,e.endingIndices[0],l),r.updateSkyLineInRange(i,a,s)}}},{key:"setWidth",value:function(e){_get(_getPrototypeOf2(n.prototype),"setWidth",this).call(this,e),this.stave.setWidth(e*unitInPixels)}},{key:"layoutSymbols",value:function(){}},{key:"draw",value:function(e){var t,n,r,i,a,o,s,l=e.openGroup();null==l||null===(t=l.classList)||void 0===t||t.add("vf-measure");var u=e.openGroup();null==u||null===(n=u.classList)||void 0===n||n.add("vf-stave"),null==u||u.setAttribute("id",null===(r=this.stave)||void 0===r||null===(i=r.attrs)||void 0===i?void 0:i.id),this.stave.setContext(e).draw(),e.closeGroup();var c=e.openGroup();for(var h in null==c||null===(a=c.classList)||void 0===a||a.add("vf-voices"),this.vfVoices)this.vfVoices.hasOwnProperty(h)&&(e.save(),this.vfVoices[h].draw(e,this.stave),e.restore());e.closeGroup();var d=e.openGroup();if(null==d||null===(o=d.classList)||void 0===o||o.add("vf-beams"),"jianpu"!==this.rules.DYMusicScoreType)for(var f in this.vfbeams)if(this.vfbeams.hasOwnProperty(f)){var p,v=_createForOfIteratorHelper(this.vfbeams[f]);try{for(v.s();!(p=v.n()).done;){p.value.setContext(e).draw()}}catch(err){v.e(err)}finally{v.f()}}if(this.autoVfBeams){var m,g=_createForOfIteratorHelper(this.autoVfBeams);try{for(g.s();!(m=g.n()).done;){m.value.setContext(e).draw()}}catch(err){g.e(err)}finally{g.f()}}if(!this.isTabMeasure||this.rules.TupletNumbersInTabs){if(this.autoTupletVfBeams){var y,b=_createForOfIteratorHelper(this.autoTupletVfBeams);try{for(b.s();!(y=b.n()).done;){y.value.setContext(e).draw()}}catch(err){b.e(err)}finally{b.f()}}for(var A in this.vftuplets)if(this.vftuplets.hasOwnProperty(A)){var S,x=_createForOfIteratorHelper(this.vftuplets[A]);try{for(x.s();!(S=x.n()).done;){var w=S.value;if("jianpu"===this.rules.DYMusicScoreType){var _=w.getNotes(),E=new VF$9.StaveTie({first_note:_[0],last_note:_[_.length-1]},_.length+"");this.vfTies.push(E),w.setTupletLocation(1)}else w.setContext(e).draw()}}catch(err){x.e(err)}finally{x.f()}}}e.closeGroup(),e.closeGroup();var k=e.openGroup();null==k||null===(s=k.classList)||void 0===s||s.add("vf-ties");var C,M=_createForOfIteratorHelper(this.vfTies);try{for(M.s();!(C=M.n()).done;){C.value.setContext(e).draw()}}catch(err){M.e(err)}finally{M.f()}e.closeGroup();var P,I=_createForOfIteratorHelper(this.connectors);try{for(I.s();!(P=I.n()).done;){P.value.setContext(e).draw()}}catch(err){I.e(err)}finally{I.f()}return this.correctNotePositions(),l}},{key:"format",value:function(){this.formatVoices&&this.formatVoices((this.PositionAndShape.Size.width-this.beginInstructionsWidth-this.endInstructionsWidth)*unitInPixels,this)}},{key:"correctNotePositions",value:function(){if(!this.isTabMeasure){var e,t=_createForOfIteratorHelper(this.getVoicesWithinMeasure());try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.VoiceEntries);try{for(r.s();!(n=r.n()).done;){var i,a=_createForOfIteratorHelper(n.value.Notes);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=this.rules.GNote(o);if(null==s||!s.vfnote)return;var l=s.vfnote[0],u=0;s.parentVoiceEntry.parentVoiceEntry.StemDirection===StemDirectionType.Up?u+=3.5:u+=.5,u+=-s.notehead(l).line+s.parentVoiceEntry.notes.last().notehead().line,s.PositionAndShape.RelativePosition.y=u}}catch(err){a.e(err)}finally{a.f()}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}}},{key:"getVoicesWithinMeasure",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.staffEntries);try{for(n.s();!(e=n.n()).done;){var r,i=_createForOfIteratorHelper(e.value.graphicalVoiceEntries);try{for(i.s();!(r=i.n()).done;){var a=r.value;-1===t.indexOf(a.parentVoiceEntry.ParentVoice)&&t.push(a.parentVoiceEntry.ParentVoice)}}catch(err){i.e(err)}finally{i.f()}}}catch(err){n.e(err)}finally{n.f()}return t}},{key:"getGraphicalVoiceEntriesPerVoice",value:function(e){var t,n=[],r=_createForOfIteratorHelper(this.staffEntries);try{for(r.s();!(t=r.n()).done;){var i,a=_createForOfIteratorHelper(t.value.graphicalVoiceEntries);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.parentVoiceEntry.ParentVoice===e&&n.push(o)}}catch(err){a.e(err)}finally{a.f()}}}catch(err){r.e(err)}finally{r.f()}return n}},{key:"getRestFilledVexFlowStaveNotesPerVoice",value:function(e){for(var t=void 0,n=this.getGraphicalVoiceEntriesPerVoice(e),r=0;r<n.length;r++){var i,a=n[r],o=a.notes[0].sourceNote.getAbsoluteTimestamp(),s=new Fraction$1,l=_createForOfIteratorHelper(a.notes);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=Fraction$1.plus(u.sourceNote.getAbsoluteTimestamp(),u.sourceNote.Length);s.lt(c)&&(s=c)}}catch(err){l.e(err)}finally{l.f()}if(t){var h=Fraction$1.minus(o,t);if(h.RealValue>0){var d;loglevelExports.trace("Ghost Found in between (measure ".concat(this.MeasureNumber,")"));var f=this.createGhostGves(h);(d=n).splice.apply(d,[r,0].concat(_toConsumableArray2(f))),r+=f.length}}else{var p=Fraction$1.minus(o,this.parentSourceMeasure.AbsoluteTimestamp);if(p.RealValue>0){var v;loglevelExports.trace("Ghost Found at start (measure ".concat(this.MeasureNumber,")"));var m=this.createGhostGves(p);(v=n).splice.apply(v,[0,0].concat(_toConsumableArray2(m))),r+=m.length}}t=s}var g=Fraction$1.plus(this.parentSourceMeasure.AbsoluteTimestamp,this.parentSourceMeasure.Duration),y=Fraction$1.minus(g,t);if(y.RealValue>0){loglevelExports.trace("Ghost Found at end (measure ".concat(this.MeasureNumber,")"));var b=this.createGhostGves(y);n=n.concat(b)}return n}},{key:"createGhostGves",value:function(e){var t,n=[],r=_createForOfIteratorHelper(VexFlowConverter.GhostNotes(e));try{for(r.s();!(t=r.n()).done;){var i=t.value,a=new VexFlowVoiceEntry(void 0,void 0);a.vfStaveNote=i,n.push(a)}}catch(err){r.e(err)}finally{r.f()}return n}},{key:"handleBeam",value:function(e,t){var n,r=e.sourceNote.ParentVoiceEntry.ParentVoice.VoiceId,i=this.beams[r];i||(i=this.beams[r]=[]);var a,o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;s[0]===t&&(n=s)}}catch(err){o.e(err)}finally{o.f()}n||(n=[t,[]],i.push(n));var l=e.parentVoiceEntry;n[1].indexOf(l)<0&&n[1].push(l)}},{key:"handleTuplet",value:function(e,t){var n=e.sourceNote.ParentVoiceEntry.ParentVoice.VoiceId;t=e.sourceNote.NoteTuplet;var r,i=this.tuplets[n];i||(i=this.tuplets[n]=[]);var a,o=_createForOfIteratorHelper(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;s[0]===t&&(r=s)}}catch(err){o.e(err)}finally{o.f()}r||(r=[t,[]],i.push(r));var l=e.parentVoiceEntry;r[1].indexOf(l)<0&&r[1].push(l)}},{key:"finalizeBeams",value:function(){this.vfbeams={};var e=[];for(var t in this.beams)if(this.beams.hasOwnProperty(t)){var n=this.vfbeams[t];n||(n=this.vfbeams[t]=[]);var r,i=_createForOfIteratorHelper(this.beams[t]);try{for(i.s();!(r=i.n()).done;){var a,o=r.value,s=!1,l=_createForOfIteratorHelper(o[0].Notes);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(u.Length.RealValue>=new Fraction$1(1,4).RealValue&&(!u.TypeLength||u.TypeLength.RealValue>.125)){s=!0;break}}}catch(err){l.e(err)}finally{l.f()}if(s)loglevelExports.debug("Beam between note >= quarter, likely tremolo, currently unsupported. continuing.");else{var c,h=[],d=o[0],f=o[1],p=!0,v=_createForOfIteratorHelper(f);try{for(v.s();!(c=v.n()).done;){var m=c.value;m.parentVoiceEntry.ParentVoice===d.Notes[0].ParentVoiceEntry.ParentVoice&&(p=m.parentVoiceEntry.WantedStemDirection===StemDirectionType.Undefined)}}catch(err){v.e(err)}finally{v.f()}var g,y=!1,b=void 0,A=[],S=_createForOfIteratorHelper(f);try{for(S.s();!(g=S.n()).done;){var x=g.value,w=x.vfStaveNote;w&&(h.push(w),e.push(w)),x.parentVoiceEntry.IsGrace&&(y=!0),x.parentVoiceEntry.StemColor&&this.rules.ColoringEnabled&&A.push(x.parentVoiceEntry.StemColor)}}catch(err){S.e(err)}finally{S.f()}if(h.length>1){var _=new VF$9.Beam(h,p);if(y&&(_.render_options.beam_width=3,_.render_options.partial_beam_length=4),A.length>=2&&this.rules.ColorBeams){b=A[0];var E,k=_createForOfIteratorHelper(A);try{for(k.s();!(E=k.n()).done;){if(E.value!==b){b=void 0;break}}}catch(err){k.e(err)}finally{k.f()}_.setStyle({fillStyle:b,strokeStyle:b})}this.rules.FlatBeams&&(_.render_options.flat_beams=!0,_.render_options.flat_beam_offset=this.rules.FlatBeamOffset,_.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),n.push(_)}else loglevelExports.debug("Warning! Beam with no notes!")}}}catch(err){i.e(err)}finally{i.f()}}this.rules.AutoBeamNotes&&this.autoBeamNotes(e)}},{key:"autoBeamNotes",value:function(e){if(this.rules.AutoBeamTabs||!this.isTabMeasure){var t,n=[],r=[],i=[];this.autoTupletVfBeams=[];var a=[];this.autoVfBeams=[];var o=this.parentSourceMeasure.ActiveTimeSignature;o||(o=this.parentSourceMeasure.Duration);var s,l=_createForOfIteratorHelper(this.staffEntries);try{for(l.s();!(s=l.n()).done;){var u,c=s.value,h=_createForOfIteratorHelper(c.graphicalVoiceEntries);try{for(h.s();!(u=h.n()).done;){var d=u.value,f=d.vfStaveNote,p=d.notes[0],v=c.relInMeasureTimestamp.isOnBeat(o),m=r.length>=2,g=p.sourceNote.Length.RealValue-new Fraction$1(1,4).RealValue>-Fraction$1.FloatInaccuracyTolerance,y=d.parentVoiceEntry.IsGrace||g||e.contains(f);if(y||v){if(m){var b,A=_createForOfIteratorHelper(r);try{for(A.s();!(b=A.n()).done;){var S=b.value;n.push(S)}}catch(err){A.e(err)}finally{A.f()}a.push(n.slice()),n=[]}if(r=[],y)continue}var x=d.notes[0].sourceNote.NoteTuplet;if(x){var w,_=!1,E=_createForOfIteratorHelper(x.Notes);try{for(E.s();!(w=E.n()).done;){var k,C=_createForOfIteratorHelper(w.value);try{for(C.s();!(k=C.n()).done;){var M=k.value;if(M.NoteTypeXml>=NoteType.QUARTER||M.ParentVoiceEntry.IsGrace||M.isRest()&&!this.rules.AutoBeamOptions.beam_rests){_=!0;break}}}catch(err){C.e(err)}finally{C.f()}if(_)break}}catch(err){E.e(err)}finally{E.f()}if(t){if(t!==x){if(i.length>1){var P=new VF$9.Beam(i,!0);this.rules.FlatBeams&&(P.render_options.flat_beams=!0,P.render_options.flat_beam_offset=this.rules.FlatBeamOffset,P.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoTupletVfBeams.push(P)}i=[],t=x}}else t=x;_||i.push(f)}else t=void 0,r.push(f)}}catch(err){h.e(err)}finally{h.f()}}}catch(err){l.e(err)}finally{l.f()}if(i.length>=2){var I=new VF$9.Beam(i,!0);this.rules.FlatBeams&&(I.render_options.flat_beams=!0,I.render_options.flat_beam_offset=this.rules.FlatBeamOffset,I.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoTupletVfBeams.push(I)}if(r.length>=2){var T,B=_createForOfIteratorHelper(r);try{for(B.s();!(T=B.n()).done;){var R=T.value;n.push(R)}}catch(err){B.e(err)}finally{B.f()}a.push(n)}var L=this.rules.AutoBeamOptions,N={beam_middle_only:L.beam_middle_rests_only,beam_rests:L.beam_rests,maintain_stem_directions:L.maintain_stem_directions};if(L.groups&&L.groups.length){var F,D=[],O=_createForOfIteratorHelper(L.groups);try{for(O.s();!(F=O.n()).done;){var V=F.value;D.push(new VF$9.Fraction(V[0],V[1]))}}catch(err){O.e(err)}finally{O.f()}N.groups=D}for(var z=0,G=a;z<G.length;z++){var H,U=G[z],j=_createForOfIteratorHelper(VF$9.Beam.generateBeams(U,N));try{for(j.s();!(H=j.n()).done;){var Q=H.value;this.rules.FlatBeams&&(Q.render_options.flat_beams=!0,Q.render_options.flat_beam_offset=this.rules.FlatBeamOffset,Q.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoVfBeams.push(Q)}}catch(err){j.e(err)}finally{j.f()}}}}},{key:"finalizeTuplets",value:function(){for(var e in this.vftuplets={},this.tuplets)if(this.tuplets.hasOwnProperty(e)){var t=this.vftuplets[e];t||(t=this.vftuplets[e]=[]);var n,r=_createForOfIteratorHelper(this.tuplets[e]);try{for(r.s();!(n=r.n()).done;){var i,a=n.value,o=[],s=_createForOfIteratorHelper(a[1]);try{for(s.s();!(i=s.n()).done;){var l=i.value;o.push(l.vfStaveNote)}}catch(err){s.e(err)}finally{s.f()}if(o.length>1){var u=a[0],c=u.Notes[0][0].NormalNotes,h=u.Bracket||3===u.TupletLabelNumber&&this.rules.TripletsBracketed||3!==u.TupletLabelNumber&&this.rules.TupletsBracketed,d=VF$9.Tuplet.LOCATION_TOP;u.tupletLabelNumberPlacement===PlacementEnum.Below&&(d=VF$9.Tuplet.LOCATION_BOTTOM),t.push(new VF$9.Tuplet(o,{bracketed:h,location:d,notes_occupied:c,num_notes:u.TupletLabelNumber,ratioed:this.rules.TupletsRatioed}))}else loglevelExports.debug("Warning! Tuplet with no notes! Trying to ignore, but this is a serious problem.")}}catch(err){r.e(err)}finally{r.f()}}}},{key:"layoutStaffEntry",value:function(e){}},{key:"graphicalMeasureCreatedCalculations",value:function(){var e,t,n=[],r=[],i=_createForOfIteratorHelper(this.staffEntries);try{for(i.s();!(t=i.n()).done;){var a=t.value;e=!1,n=[];var o,s=_createForOfIteratorHelper(a.graphicalVoiceEntries);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.parentVoiceEntry.IsGrace)n.push(l),r.push(l),e||(e=l.parentVoiceEntry.GraceSlur);else if(l.vfStaveNote=VexFlowConverter.StaveNote(l),n.length>0){for(var u=[],c=0;c<n.length;c++){var h=n[c];h.GraceSlash=h.parentVoiceEntry.GraceNoteSlash,c>0&&(h.GraceSlash=!1);var d=VexFlowConverter.StaveNote(h);h.vfStaveNote=d,u.push(d)}var f=new VF$9.GraceNoteGroup(u,e);l.vfStaveNote.addModifier(0,f),n=[]}}}catch(err){s.e(err)}finally{s.f()}}}catch(err){i.e(err)}finally{i.f()}if(n.length>0){var p,v=_createForOfIteratorHelper(n);try{for(v.s();!(p=v.n()).done;){var m=p.value;m.vfStaveNote=VexFlowConverter.StaveNote(m),m.parentVoiceEntry.GraceAfterMainNote=!0}}catch(err){v.e(err)}finally{v.f()}}this.finalizeBeams(),this.finalizeTuplets();var g=this.getVoicesWithinMeasure();if(this.rules.RenderFingerings){var y,b=_createForOfIteratorHelper(this.staffEntries);try{for(b.s();!(y=b.n()).done;){y.value.setModifierXOffsets()}}catch(err){b.e(err)}finally{b.f()}}var A,S=_createForOfIteratorHelper(g);try{for(S.s();!(A=S.n()).done;){var x=A.value;if(x){this.vfVoices[x.VoiceId]=new VF$9.Voice({beat_value:this.parentSourceMeasure.Duration.Denominator,num_beats:this.parentSourceMeasure.Duration.Numerator,resolution:VF$9.RESOLUTION}).setMode(VF$9.Voice.Mode.SOFT);var w,_=_createForOfIteratorHelper(this.getRestFilledVexFlowStaveNotesPerVoice(x));try{for(_.s();!(w=_.n()).done;){var E=w.value;if(!E.parentVoiceEntry||!E.parentVoiceEntry.IsGrace||E.parentVoiceEntry.GraceAfterMainNote){var k=E;if(0!==k.vfStaveNote.ticks.denominator)if(0!==E.notes.length&&E.notes[0]&&E.notes[0].sourceNote.PrintObject){var C=k.parentStaffEntry;if(C&&C.vfClefBefore){var M=new NoteSubGroup([C.vfClefBefore]);k.vfStaveNote.getCategory&&"stavenotes"===k.vfStaveNote.getCategory()&&k.vfStaveNote.addModifier(0,M)}E.parentVoiceEntry&&this.rules.RenderFingerings&&(this.rules.FingeringPosition!==PlacementEnum.Left&&this.rules.FingeringPosition!==PlacementEnum.Right||this.createFingerings(E),this.createStringNumber(E)),this.createArpeggio(E),this.vfVoices[x.VoiceId].addTickable(k.vfStaveNote)}else this.vfVoices[x.VoiceId].addTickable(k.vfStaveNote)}}}catch(err){_.e(err)}finally{_.f()}}}}catch(err){S.e(err)}finally{S.f()}this.setStemDirectionFromVexFlow();for(var P=0,I=r;P<I.length;P++){var T=I[P];this.createFingerings(T),this.createStringNumber(T),this.createArpeggio(T)}this.createArticulations(),this.createOrnaments()}},{key:"createArpeggio",value:function(e){if(e.parentVoiceEntry&&e.parentVoiceEntry.Arpeggio){var t=e.parentVoiceEntry.Arpeggio;if(e.notes&&e.notes.length>1){var n=VexFlowConverter.StrokeTypeFromArpeggioType(t.type),r=new VF$9.Stroke(n,{all_voices:this.rules.ArpeggiosGoAcrossVoices});this.rules.RenderArpeggios&&e.vfStaveNote.addStroke(0,r)}else loglevelExports.debug("[OSMD] arpeggio in measure ".concat(this.MeasureNumber," could not be drawn.\n voice entry had less than two notes, arpeggio is likely between voice entries, not currently supported in Vexflow."))}}},{key:"setStemDirectionFromVexFlow",value:function(){var e,t=_createForOfIteratorHelper(this.staffEntries);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.graphicalVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i,a=n.value,o=_createForOfIteratorHelper(a.notes);try{for(o.s();!(i=o.n()).done;){var s=i.value.vfnote;if(s&&s[0])switch(s[0].getStemDirection()){case VF$9.Stem.UP:a.parentVoiceEntry.StemDirection=StemDirectionType.Up;break;case VF$9.Stem.DOWN:a.parentVoiceEntry.StemDirection=StemDirectionType.Down}}}catch(err){o.e(err)}finally{o.f()}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}}},{key:"createArticulations",value:function(){for(var e=0,t=this.staffEntries.length;e<t;++e){var n,r=_createForOfIteratorHelper(this.staffEntries[e].graphicalVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.vfStaveNote;VexFlowConverter.generateArticulations(a,i.notes[0].sourceNote.ParentVoiceEntry.Articulations,this.rules)}}catch(err){r.e(err)}finally{r.f()}}}},{key:"createOrnaments",value:function(){for(var e=0,t=this.staffEntries.length;e<t;++e){var n=this.staffEntries[e].graphicalVoiceEntries;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r].vfStaveNote,a=n[r].notes[0].sourceNote.ParentVoiceEntry.OrnamentContainer;a&&VexFlowConverter.generateOrnaments(i,a)}}}},{key:"createFingerings",value:function(e){var t,n=e,r=0,i=_createForOfIteratorHelper(e.notes);try{for(i.s();!(t=i.n()).done;){t.value.sourceNote.Fingering&&r++}}catch(err){i.e(err)}finally{i.f()}var a,o=-1,s=_createForOfIteratorHelper(e.notes);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=l.sourceNote.Fingering;if(u){o++;var c=this.rules.FingeringPosition;this.rules.FingeringPositionGrace===PlacementEnum.AboveOrBelow&&(this.isUpperStaffOfInstrument()?c=PlacementEnum.Above:this.isLowerStaffOfInstrument()&&(c=PlacementEnum.Below)),u.placement!==PlacementEnum.NotYetDefined&&(c=u.placement);var h=this.rules.FingeringOffsetX,d=void 0;switch(c){default:case PlacementEnum.Left:d=VF$9.StaveModifier.Position.LEFT,h-=l.baseFingeringXOffset*unitInPixels;break;case PlacementEnum.Right:d=VF$9.StaveModifier.Position.RIGHT,h+=l.baseFingeringXOffset*unitInPixels;break;case PlacementEnum.Above:d=VF$9.StaveModifier.Position.ABOVE;break;case PlacementEnum.Below:d=VF$9.StaveModifier.Position.BELOW;break;case PlacementEnum.NotYetDefined:var f=e.parentStaffEntry.sourceStaffEntry.ParentStaff;e.notes.length>1||e.parentStaffEntry.graphicalVoiceEntries.length>1?d=VF$9.StaveModifier.Position.LEFT:0===f.idInMusicSheet?(d=VF$9.StaveModifier.Position.ABOVE,c=PlacementEnum.Above):(d=VF$9.StaveModifier.Position.BELOW,c=PlacementEnum.Below)}var p=new VF$9.FretHandFinger(u.value);if(p.setPosition(d),p.setOffsetX(h),c===PlacementEnum.Above||c===PlacementEnum.Below){var v=c===PlacementEnum.Above?-1:1,m=c===PlacementEnum.Above?o:r-1-o;if(this.rules.FingeringInsideStafflines&&r>1){var g=p.getWidth()/2,y=2.5*r;p.setOffsetY(v*(m+y)*g)}else if(!this.rules.FingeringInsideStafflines){var b=new VF$9.StringNumber(u.value);b.radius=0,b.setPosition(d),b.setOffsetY(v*m*b.getWidth()*2/3),n.vfStaveNote.addModifier(o,b);continue}}n.vfStaveNote.addModifier(o,p)}else o++}}catch(err){s.e(err)}finally{s.f()}}},{key:"createStringNumber",value:function(e){var t=this;if(this.rules.RenderStringNumbersClassical){var n=e;e.notes.forEach((function(r,i){var a=r.sourceNote.StringInstruction;if(a){var o=a.value;switch(o){case"1":o="I";break;case"2":o="II";break;case"3":o="III";break;case"4":o="IV";break;case"5":o="V";break;case"6":o="VI"}var s=new VF$9.StringNumber(o);s.radius=0;var l=-t.rules.StringNumberOffsetY;e.notes.length>1||e.parentStaffEntry.graphicalVoiceEntries.length>1?(s.setOffsetX(13*r.baseStringNumberXOffset),s.setPosition(VF$9.Modifier.Position.RIGHT)):s.setPosition(VF$9.Modifier.Position.ABOVE),s.setOffsetY(l),n.vfStaveNote.addModifier(i,s)}}))}}},{key:"lineTo",value:function(e,t){var n=new VF$9.StaveConnector(e.getVFStave(),this.stave);n.setType(t),this.connectors.push(n)}},{key:"getVFStave",value:function(){return this.stave}},{key:"updateInstructionWidth",value:function(){var e,t,n,r=0,i=0,a=_createForOfIteratorHelper(this.stave.getModifiers());try{for(a.s();!(n=a.n()).done;){var o=n.value;5===o.getPosition()?r+=o.getWidth()+o.getPadding(void 0):6===o.getPosition()&&(i+=o.getWidth()+o.getPadding(void 0))}}catch(err){a.e(err)}finally{a.f()}this.beginInstructionsWidth=(null!==(e=r)&&void 0!==e?e:0)/unitInPixels,this.endInstructionsWidth=(null!==(t=i)&&void 0!==t?t:0)/unitInPixels}},{key:"addStaveTie",value:function(e,t){this.vfTies.push(e),t.vfTie=e}}]),n}(GraphicalMeasure),GraphicalStaffEntry=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return _classCallCheck2(this,n),(r=t.call(this)).graphicalChordContainers=[],r.tabStaffEntry=void 0,r.MaxAccidentals=0,r.graphicalInstructions=[],r.ties=[],r.graphicalTies=[],r.lyricsEntries=[],r.parentMeasure=e,r.graphicalVoiceEntries=[],r.sourceStaffEntry=i,a?(r.staffEntryParent=a,r.parentVerticalContainer=a.parentVerticalContainer,r.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(r),a.PositionAndShape)):r.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(r),e.PositionAndShape),i&&(r.relInMeasureTimestamp=i.Timestamp),r.FingeringEntries=[],r}return _createClass2(n,[{key:"GraphicalInstructions",get:function(){return this.graphicalInstructions}},{key:"GraphicalTies",get:function(){return this.graphicalTies}},{key:"LyricsEntries",get:function(){return this.lyricsEntries},set:function(e){this.lyricsEntries=e}},{key:"getAbsoluteTimestamp",value:function(){var e=this.parentMeasure.parentSourceMeasure.AbsoluteTimestamp.clone();return this.relInMeasureTimestamp&&e.Add(this.relInMeasureTimestamp),e}},{key:"findTieGraphicalNoteFromNote",value:function(e){var t,n,r=(null===(t=window.GYM)||void 0===t?void 0:t.graceCustom)||!1,i=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(i.s();!(n=i.n()).done;){var a,o=_createForOfIteratorHelper(n.value.notes);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.sourceNote;if(r){if(e.NoteToGraphicalNoteObjectId==l.NoteToGraphicalNoteObjectId)return s}else if(!l.isRest()&&l.Pitch.FundamentalNote===e.Pitch.FundamentalNote&&l.Pitch.Octave===e.Pitch.Octave&&l.getAbsoluteTimestamp().Equals(e.getAbsoluteTimestamp()))return s}}catch(err){o.e(err)}finally{o.f()}}}catch(err){i.e(err)}finally{i.f()}}},{key:"findEndTieGraphicalNoteFromNoteWithStartingSlur",value:function(e,t){if(e){var n,r=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.parentVoiceEntry===e.ParentVoiceEntry){var a,o=_createForOfIteratorHelper(i.notes);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.sourceNote;if(l.NoteTie&&-1!==l.NoteSlurs.indexOf(t))return s}}catch(err){o.e(err)}finally{o.f()}}}}catch(err){r.e(err)}finally{r.f()}}}},{key:"findGraphicalNoteFromGraceNote",value:function(e){if(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.parentVoiceEntry===e.ParentVoiceEntry){var i,a=_createForOfIteratorHelper(r.notes);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.sourceNote===e)return o}}catch(err){a.e(err)}finally{a.f()}}}}catch(err){n.e(err)}finally{n.f()}}}},{key:"findGraphicalNoteFromNote",value:function(e){if(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.parentVoiceEntry===e.ParentVoiceEntry){var i,a=_createForOfIteratorHelper(r.notes);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(o.sourceNote===e&&this.getAbsoluteTimestamp().Equals(e.getAbsoluteTimestamp()))return o}}catch(err){a.e(err)}finally{a.f()}}}}catch(err){n.e(err)}finally{n.f()}}}},{key:"getGraphicalNoteDurationFromVoice",value:function(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.parentVoiceEntry.ParentVoice===e)return r.notes[0].graphicalNoteLength}}catch(err){n.e(err)}finally{n.f()}return new Fraction$1(0,1)}},{key:"findVoiceEntryGraphicalNotes",value:function(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.parentVoiceEntry===e)return r.notes}}catch(err){n.e(err)}finally{n.f()}}},{key:"isVoiceEntryPartOfLinkedVoiceEntry",value:function(e){if(this.sourceStaffEntry.Link)for(var t=0,n=this.sourceStaffEntry.Link.LinkStaffEntries.length;t<n;++t){var r=this.sourceStaffEntry.Link.LinkStaffEntries[t];if(-1!==r.VoiceEntries.indexOf(e)&&r!==this.sourceStaffEntry)return!0}return!1}},{key:"findStaffEntryMinNoteLength",value:function(){var e,t=new Fraction$1(Number.MAX_VALUE,1),n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(e=n.n()).done;){var r,i=_createForOfIteratorHelper(e.value.notes);try{for(i.s();!(r=i.n()).done;){var a=r.value.graphicalNoteLength;a.lt(t)&&a.GetExpandedNumerator()>0&&(t=a)}}catch(err){i.e(err)}finally{i.f()}}}catch(err){n.e(err)}finally{n.f()}return t}},{key:"findStaffEntryMaxNoteLength",value:function(){var e,t=new Fraction$1(0,1),n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(e=n.n()).done;){var r,i=_createForOfIteratorHelper(e.value.notes);try{for(i.s();!(r=i.n()).done;){var a=r.value.graphicalNoteLength;t.lt(a)&&a.GetExpandedNumerator()>0&&(t=a)}}catch(err){i.e(err)}finally{i.f()}}}catch(err){n.e(err)}finally{n.f()}return t}},{key:"findOrCreateGraphicalVoiceEntry",value:function(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.parentVoiceEntry===e)return r}}catch(err){n.e(err)}finally{n.f()}var i=MusicSheetCalculator.symbolFactory.createVoiceEntry(e,this);return this.graphicalVoiceEntries.push(i),i}},{key:"findOrCreateGraphicalVoiceEntryFromGraphicalNote",value:function(e){var t,n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r===e.parentVoiceEntry)return r}}catch(err){n.e(err)}finally{n.f()}var i=MusicSheetCalculator.symbolFactory.createVoiceEntry(e.sourceNote.ParentVoiceEntry,this);return this.graphicalVoiceEntries.push(i),i}},{key:"addGraphicalNoteToListAtCorrectYPosition",value:function(e,t){var n=e.notes;if(0===n.length||t.PositionAndShape.RelativePosition.y<CollectionUtil.last(n).PositionAndShape.RelativePosition.y)n.push(t);else for(var r=n.length-1;r>=0;r--){if(n[r].PositionAndShape.RelativePosition.y>t.PositionAndShape.RelativePosition.y){n.splice(r+1,0,t);break}if(0===r){n.splice(0,0,t);break}}}},{key:"hasOnlyRests",value:function(){var e,t=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.notes);try{for(r.s();!(n=r.n()).done;){if(!n.value.sourceNote.isRest())return!1}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}return!0}},{key:"getSkylineMin",value:function(){var e,t=null===(e=this.parentMeasure)||void 0===e?void 0:e.ParentStaffLine.SkyBottomLineCalculator;if(t){var n=_slicedToArray(this.getAbsoluteStartAndEnd(),2),r=n[0],i=n[1];return t.getSkyLineMinInRange(r,i)}}},{key:"getHighestYAtEntry",value:function(){return this.parentMeasure.ParentStaffLine.PositionAndShape.AbsolutePosition.y+this.getSkylineMin()}},{key:"getLowestYAtEntry",value:function(){return this.parentMeasure.ParentStaffLine.PositionAndShape.AbsolutePosition.y+this.getBottomlineMax()}},{key:"getBottomlineMax",value:function(){var e,t=null===(e=this.parentMeasure)||void 0===e?void 0:e.ParentStaffLine.SkyBottomLineCalculator;if(t){var n=_slicedToArray(this.getAbsoluteStartAndEnd(),2),r=n[0],i=n[1];return t.getBottomLineMaxInRange(r,i)}}},{key:"getAbsoluteStartAndEnd",value:function(){var e=this.PositionAndShape.AbsolutePosition.x;return[e-=this.parentMeasure.ParentStaffLine.PositionAndShape.AbsolutePosition.x,e+this.PositionAndShape.Size.width]}}]),n}(GraphicalObject),VF$8=Vex.Flow,VexFlowStaffEntry=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){return _classCallCheck2(this,n),t.call(this,e,r,i)}return _createClass2(n,[{key:"calculateXPosition",value:function(){var e,t=this.parentMeasure.getVFStave(),n=0,r=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.vfStaveNote){if(i.vfStaveNote.setStave(t),t&&t.getLines&&1===t.getLines()&&i.vfStaveNote.getStemDirection()<0&&(i.vfStaveNote.setStemDirection(VF$8.Stem.UP),i.parentVoiceEntry.StemDirection=StemDirectionType.Up),!i.vfStaveNote.preFormatted)continue;i.applyBordersFromVexflow(),this.parentMeasure.ParentStaff.isTab?this.PositionAndShape.RelativePosition.x=(i.vfStaveNote.getAbsoluteX()+i.vfStaveNote.glyph.getWidth())/unitInPixels:this.PositionAndShape.RelativePosition.x=i.vfStaveNote.getBoundingBox().getX()/unitInPixels;var a=i.notes[0].sourceNote;a.isRest()&&a.Length.RealValue===this.parentMeasure.parentSourceMeasure.ActiveTimeSignature.RealValue&&(this.PositionAndShape.RelativePosition.x+=this.parentMeasure.parentSourceMeasure.Rules.WholeRestXShiftVexflow-.1,i.PositionAndShape.BorderLeft=-.7,i.PositionAndShape.BorderRight=.7),i.PositionAndShape.BorderLeft<n&&(n=i.PositionAndShape.BorderLeft)}}}catch(err){r.e(err)}finally{r.f()}this.PositionAndShape.RelativePosition.x-=n,this.PositionAndShape.calculateBoundingBox()}},{key:"setMaxAccidentals",value:function(){var e,t=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(t.s();!(e=t.n()).done;){var n,r=_createForOfIteratorHelper(e.value.notes);try{for(r.s();!(n=r.n()).done;){if(n.value.DrawnAccidental!==AccidentalEnum.NONE)return this.MaxAccidentals=1}}catch(err){r.e(err)}finally{r.f()}}}catch(err){t.e(err)}finally{t.f()}return this.MaxAccidentals=0}},{key:"setModifierXOffsets",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.graphicalVoiceEntries);try{for(n.s();!(e=n.n()).done;){var r=e.value;t=t.concat(r.notes)}}catch(err){n.e(err)}finally{n.f()}var i=t.map((function(e){return e.staffLine})),a=this.calculateModifierXOffsets(i,1),o=this.calculateModifierXOffsets(i,.5);t.forEach((function(e,t){e.baseFingeringXOffset=o[t],e.baseStringNumberXOffset=a[t]}))}},{key:"calculateModifierXOffsets",value:function(e,t){for(var n=[],r=0;r<e.length;r++){for(var i=0,a=!0;a;)for(var o=r;o>=0;o--){if(Math.abs(e[r]-e[o])<=t&&i===n[o]){i++,a=!0;break}a=!1}n.push(i)}return n}}]),n}(GraphicalStaffEntry),VexFlowGraphicalNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:OctaveEnum.NONE,s=arguments.length>4?arguments[4]:void 0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;if(_classCallCheck2(this,n),(a=t.call(this,e,r,s,l)).clef=i,a.octaveShift=o,e.Pitch){var u=e.isRest()?e.Pitch:OctaveShift.getPitchFromOctaveShift(e.Pitch,o);a.vfpitch=VexFlowConverter.pitch(u,e.isRest(),a.clef,a.sourceNote.Notehead),a.vfpitch[1]=void 0}return a}return _createClass2(n,[{key:"setAccidental",value:function(e){var t=this.drawPitch(e);this.vfpitch=VexFlowConverter.pitch(t,this.sourceNote.isRest(),this.clef,this.sourceNote.Notehead),this.DrawnAccidental=t.Accidental}},{key:"drawPitch",value:function(e){return OctaveShift.getPitchFromOctaveShift(e,this.octaveShift)}},{key:"Transpose",value:function(e,t,r,i){var a=_get(_getPrototypeOf2(n.prototype),"Transpose",this).call(this,e,t,r,i),o=OctaveShift.getPitchFromOctaveShift(a,this.octaveShift);return this.vfpitch=VexFlowConverter.pitch(o,this.sourceNote.isRest(),this.clef,this.sourceNote.Notehead),this.vfpitch[1]=void 0,o}},{key:"setIndex",value:function(e,t){this.vfnote=[e,t],this.vfnoteIndex=t}},{key:"notehead",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;e||(e=this.vfnote[0]);var t=e.note_heads;return t&&t.length>this.vfnoteIndex&&t[this.vfnoteIndex]?e.note_heads[this.vfnoteIndex]:{line:0}}},{key:"Clef",value:function(){return this.clef}},{key:"getSVGId",value:function(){if(this.vfnote)return this.vfnote[0].getAttribute("id")}},{key:"getSVGGElement",value:function(){if(this.vfnote)return this.vfnote[0].getAttribute("el")}},{key:"getStemSVG",value:function(){return document.getElementById("vf-"+this.getSVGId()+"-stem")}},{key:"getBeamSVGs",value:function(){for(var e=[],t=0;;t++){var n=document.getElementById("vf-".concat(this.getSVGId(),"-beam").concat(t));if(!n)break;e.push(n)}return e}}]),n}(GraphicalNote),GraphicalChordSymbolContainer=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a,o,s){var l;return _classCallCheck2(this,n),(l=t.call(this)).chordSymbolContainer=e,l.boundingBox=new BoundingBox$1(_assertThisInitialized2(l),r),l.rules=s,l.calculateLabel(i,o,a),l}return _createClass2(n,[{key:"GetChordSymbolContainer",get:function(){return this.chordSymbolContainer}},{key:"GraphicalLabel",get:function(){return this.graphicalLabel}},{key:"calculateLabel",value:function(e,t,n){var r=ChordSymbolContainer.calculateChordText(this.chordSymbolContainer,t,n);this.graphicalLabel=new GraphicalLabel(new Label(r),e,this.rules.ChordSymbolTextAlignment,this.rules,this.boundingBox),this.graphicalLabel.PositionAndShape.RelativePosition=new PointF2D(this.rules.ChordSymbolRelativeXOffset,0),this.graphicalLabel.Label.colorDefault=this.rules.DefaultColorChordSymbol}}]),n}(GraphicalObject),VF$7=Vex.Flow,VexFlowTabMeasure=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return _classCallCheck2(this,n),(r=t.call(this,e,i,a)).isTabMeasure=!0,r}return _createClass2(n,[{key:"resetLayout",value:function(){var e,t=null!==(e=this.ParentStaff.StafflineCount)&&void 0!==e?e:6;this.stave=new VF$7.TabStave(0,0,0,{space_above_staff_ln:0,space_below_staff_ln:0,num_lines:t}),this.updateInstructionWidth()}},{key:"graphicalMeasureCreatedCalculations",value:function(){for(var e=0,t=this.staffEntries.length;e<t;++e){var n,r=_createForOfIteratorHelper(this.staffEntries[e].graphicalVoiceEntries);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.notes[0].sourceNote.isRest()?i.vfStaveNote=VexFlowConverter.GhostNotes(i.notes[0].sourceNote.Length)[0]:i.vfStaveNote=VexFlowConverter.CreateTabNote(i)}}catch(err){r.e(err)}finally{r.f()}}this.rules.TupletNumbersInTabs&&this.finalizeTuplets();var a,o=_createForOfIteratorHelper(this.getVoicesWithinMeasure());try{for(o.s();!(a=o.n()).done;){var s=a.value;if(s){this.vfVoices[s.VoiceId]=new VF$7.Voice({beat_value:this.parentSourceMeasure.Duration.Denominator,num_beats:this.parentSourceMeasure.Duration.Numerator,resolution:VF$7.RESOLUTION}).setMode(VF$7.Voice.Mode.SOFT);var l,u=_createForOfIteratorHelper(this.getRestFilledVexFlowStaveNotesPerVoice(s));try{for(u.s();!(l=u.n()).done;){var c=l.value;if(!c.parentVoiceEntry||!c.parentVoiceEntry.IsGrace||c.parentVoiceEntry.GraceAfterMainNote){var h=c;if(0!==c.notes.length&&c.notes[0]&&c.notes[0].sourceNote.PrintObject){if(c.parentVoiceEntry&&c.parentVoiceEntry.Arpeggio){var d=c.parentVoiceEntry.Arpeggio;if(c.notes&&c.notes.length>1){var f=VexFlowConverter.StrokeTypeFromArpeggioType(d.type),p=new VF$7.Stroke(f,{all_voices:this.rules.ArpeggiosGoAcrossVoices});this.rules.RenderArpeggios&&h.vfStaveNote.addStroke(0,p)}else loglevelExports.debug("[OSMD] arpeggio in measure ".concat(this.MeasureNumber," could not be drawn.\n voice entry had less than two notes, arpeggio is likely between voice entries, not currently supported in Vexflow."))}this.vfVoices[s.VoiceId].addTickable(h.vfStaveNote)}else this.vfVoices[s.VoiceId].addTickable(h.vfStaveNote)}}}catch(err){u.e(err)}finally{u.f()}}}}catch(err){o.e(err)}finally{o.f()}}}]),n}(VexFlowMeasure),StaffLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).measures=[],i.staffLines=new Array(5),i.octaveShifts=[],i.lyricLines=[],i.lyricsDashes=[],i.abstractExpressions=[],i.graphicalSlurs=[],i.Pedals=[],i.WavyLines=[],i.parentMusicSystem=e,i.parentStaff=r,i.boundingBox=new BoundingBox$1(_assertThisInitialized2(i),e.PositionAndShape),i.skyBottomLine=MusicSheetCalculator.symbolFactory.createSkyBottomLineCalculator(_assertThisInitialized2(i)),i.staffHeight=i.parentMusicSystem.rules.StaffHeight,i.topLineOffset=0,i.bottomLineOffset=4,i.calculateStaffLineOffsets(),i}return _createClass2(n,[{key:"calculateStaffLineOffsets",value:function(){if(this.ParentStaff.isTab)if(5===this.ParentStaff.StafflineCount)this.staffHeight=this.bottomLineOffset=6*this.ParentStaff.ParentInstrument.GetMusicSheet.Rules.TabStaffInterlineHeight;else this.staffHeight=this.bottomLineOffset=this.ParentStaff.ParentInstrument.GetMusicSheet.Rules.TabStaffInterlineHeight*this.ParentStaff.StafflineCount;else switch(this.ParentStaff.StafflineCount){case 4:this.bottomLineOffset=1;break;case 3:this.topLineOffset=1,this.bottomLineOffset=1;break;case 2:this.topLineOffset=2,this.bottomLineOffset=1;break;case 1:this.topLineOffset=2,this.bottomLineOffset=2}}},{key:"Measures",get:function(){return this.measures},set:function(e){this.measures=e}},{key:"StaffLines",get:function(){return this.staffLines},set:function(e){this.staffLines=e}},{key:"Index",get:function(){return this.parentMusicSystem.StaffLines.indexOf(this)}},{key:"NextStaffLine",get:function(){var e=this.Index;return e!==this.parentMusicSystem.StaffLines.length?this.parentMusicSystem.StaffLines[e+1]:void 0}},{key:"LyricLines",get:function(){return this.lyricLines},set:function(e){this.lyricLines=e}},{key:"AbstractExpressions",get:function(){return this.abstractExpressions},set:function(e){this.abstractExpressions=e}},{key:"LyricsDashes",get:function(){return this.lyricsDashes},set:function(e){this.lyricsDashes=e}},{key:"ParentMusicSystem",get:function(){return this.parentMusicSystem},set:function(e){this.parentMusicSystem=e}},{key:"ParentStaff",get:function(){return this.parentStaff},set:function(e){this.parentStaff=e}},{key:"SkyBottomLineCalculator",get:function(){return this.skyBottomLine}},{key:"SkyLine",get:function(){return this.skyBottomLine.SkyLine}},{key:"BottomLine",get:function(){return this.skyBottomLine.BottomLine}},{key:"OctaveShifts",get:function(){return this.octaveShifts},set:function(e){this.octaveShifts=e}},{key:"StaffHeight",get:function(){return this.staffHeight}},{key:"TopLineOffset",get:function(){return this.topLineOffset}},{key:"BottomLineOffset",get:function(){return this.bottomLineOffset}},{key:"GraphicalSlurs",get:function(){return this.graphicalSlurs}},{key:"addSlurToStaffline",value:function(e){this.graphicalSlurs.push(e)}},{key:"addActivitySymbolClickArea",value:function(){var e=new StaffLineActivitySymbol(this),t=this.PositionAndShape;e.PositionAndShape.RelativePosition=new PointF2D(t.RelativePosition.x+t.BorderRight+.5,t.RelativePosition.y+.5),e.PositionAndShape.Parent=this.parentMusicSystem.PositionAndShape}},{key:"isPartOfMultiStaffInstrument",value:function(){return this.parentStaff.ParentInstrument.Staves.length>1}},{key:"findClosestStaffEntry",value:function(e){for(var t=void 0,n=0,r=this.Measures.length;n<r;++n)for(var i=this.Measures[n],a=0,o=i.staffEntries.length;a<o;++a){var s=i.staffEntries[a];Math.abs(s.PositionAndShape.RelativePosition.x-e+i.PositionAndShape.RelativePosition.x)<10&&(t=s)}return t}}]),n}(GraphicalObject),VexFlowContinuousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a){var o;if(_classCallCheck2(this,n),(o=t.call(this,e,r,i)).IsVerbal){var s=new Label(e.Label);o.label=new GraphicalLabel(s,a||o.rules.ContinuousDynamicTextHeight,TextAlignmentEnum.LeftCenter,o.rules,o.PositionAndShape),o.label.Label.fontStyle=FontStyles.Italic,o.label.setLabelPositionAndShapeBorders(),o.PositionAndShape.calculateBoundingBox()}return o}return _createClass2(n)}(GraphicalContinuousDynamicExpression),AlignmentManager=function(){function e(t){_classCallCheck2(this,e),this.parentStaffline=t,this.rules=this.parentStaffline.ParentMusicSystem.rules}return _createClass2(e,[{key:"alignDynamicExpressions",value:function(){for(var e=[],t=new Array,n=0;n<this.parentStaffline.AbstractExpressions.length-1;n++){var r,i,a=this.parentStaffline.AbstractExpressions[n],o=this.parentStaffline.AbstractExpressions[n+1];if((null==a||null===(r=a.SourceExpression)||void 0===r?void 0:r.Placement)===(null==o||null===(i=o.SourceExpression)||void 0===i?void 0:i.Placement)){var s=this.getDistance(a.PositionAndShape,o.PositionAndShape);Math.abs(s.x)<this.rules.DynamicExpressionMaxDistance?(-1===t.indexOf(a)&&t.push(a),t.push(o)):(e.push(t),t=new Array)}}e.push(t);for(var l=0,u=e;l<u.length;l++){var c=u[l];if(c.length>0)for(var h,d,f=c.map((function(e){return e.PositionAndShape.Center.y})),p=Math.max.apply(Math,_toConsumableArray2(f)),v=(null===(h=window.GYM)||void 0===h?void 0:h.noNeedContinuousDynamic)||!1,m=(null===(d=window.GYM)||void 0===d?void 0:d.noNeedGraphicalContinuousDynamic)||!1,g=0;g<c.length;g++){var y=c[g],b=f[g]-p;if(y instanceof VexFlowContinuousDynamicExpression?v||(y.shiftYPosition(-b),y.calcPsi()):(m||(y.PositionAndShape.RelativePosition.y-=.8*b),y.PositionAndShape.calculateBoundingBox()),!v&&y.squeeze){var A=g<c.length-1?c[g+1]:void 0,S=g>0?c[g-1]:void 0;if(A){var x=this.getOverlap(y.PositionAndShape,A.PositionAndShape);y.squeeze(-(x.x+this.rules.DynamicExpressionSpacer))}if(S){var w=this.getOverlap(S.PositionAndShape,y.PositionAndShape);y.squeeze(w.x+this.rules.DynamicExpressionSpacer)}}}}}},{key:"getDistance",value:function(e,t){var n=e.RelativePosition.x+e.BorderMarginRight,r=t.RelativePosition.x+t.BorderMarginLeft,i=e.RelativePosition.y+e.BorderMarginBottom,a=t.RelativePosition.y+t.BorderMarginTop;return new PointF2D(r-n,a-i)}},{key:"getOverlap",value:function(e,t){return new PointF2D(e.RelativePosition.x+e.BorderMarginRight-(t.RelativePosition.x+t.BorderMarginLeft),e.RelativePosition.y+e.BorderMarginBottom-(t.RelativePosition.y+t.BorderMarginTop))}}]),e}(),VexFlowStaffLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,e,r)).slursInVFStaffLine=[],i.alignmentManager=new AlignmentManager(_assertThisInitialized2(i)),i}return _createClass2(n,[{key:"SlursInVFStaffLine",get:function(){return this.slursInVFStaffLine}},{key:"addVFSlurToVFStaffline",value:function(e){this.slursInVFStaffLine.push(e)}},{key:"AlignmentManager",get:function(){return this.alignmentManager}}]),n}(StaffLine),VF$6=Vex.Flow,VexFlowMultiRestMeasure=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return _classCallCheck2(this,n),(r=t.call(this,e,i,a)).minimumStaffEntriesWidth=-1,a?r.rules=a.ParentMusicSystem.rules:i&&(r.rules=i.Rules),r.resetLayout(),r.multiRestElement=new VF$6.MultiMeasureRest(i.multipleRestMeasures,{}),r}return _createClass2(n,[{key:"draw",value:function(e){var t,n,r,i,a,o=e.openGroup();null==o||null===(t=o.classList)||void 0===t||t.add("vf-measure");var s=e.openGroup();null==s||null===(n=s.classList)||void 0===n||n.add("vf-stave"),null==s||s.setAttribute("id",null===(r=this.stave)||void 0===r||null===(i=r.attrs)||void 0===i?void 0:i.id),this.stave.setContext(e).draw(),e.closeGroup();var l=e.openGroup();null==l||null===(a=l.classList)||void 0===a||a.add("vf-voices"),this.multiRestElement.setStave(this.stave),this.multiRestElement.setContext(e),this.multiRestElement.draw(),e.closeGroup();var u,c=_createForOfIteratorHelper(this.connectors);try{for(c.s();!(u=c.n()).done;){u.value.setContext(e).draw()}}catch(err){c.e(err)}finally{c.f()}return e.closeGroup(),o}},{key:"format",value:function(){}},{key:"getVoicesWithinMeasure",value:function(){return[]}},{key:"getGraphicalVoiceEntriesPerVoice",value:function(e){return[]}},{key:"getRestFilledVexFlowStaveNotesPerVoice",value:function(e){return[]}},{key:"handleBeam",value:function(e,t){}},{key:"handleTuplet",value:function(e,t){}},{key:"finalizeBeams",value:function(){}},{key:"finalizeTuplets",value:function(){}},{key:"layoutStaffEntry",value:function(e){}},{key:"graphicalMeasureCreatedCalculations",value:function(){}},{key:"createArticulations",value:function(){}},{key:"createOrnaments",value:function(){}},{key:"createFingerings",value:function(e){}},{key:"getVFStave",value:function(){return this.stave}}]),n}(VexFlowMeasure),VF$5=Vex.Flow,VexFlowBackend=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"getInnerElement",value:function(){return this.inner}},{key:"getCanvas",value:function(){return this.canvas}},{key:"getRenderElement",value:function(){var e=this.canvas;return this.getVexflowBackendType()===VF$5.Renderer.Backends.CANVAS&&(e=this.inner),e}},{key:"getRenderer",value:function(){return this.renderer}},{key:"removeAllChildrenFromContainer",value:function(e){for(;0!==e.children.length;)e.removeChild(e.children.item(0))}},{key:"removeFromContainer",value:function(e){for(var t=this.getRenderElement(),n=0;n<e.children.length;n++)if(e.children.item(n)===t){e.removeChild(t);break}}},{key:"resize",value:function(e,t){this.renderer.resize(e,t),this.width=e,this.height=t}}]),e}(),VF$4=Vex.Flow,CanvasVexFlowBackend=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).rules=e,r}return _createClass2(n,[{key:"getVexflowBackendType",value:function(){return VF$4.Renderer.Backends.CANVAS}},{key:"getOSMDBackendType",value:function(){return BackendType.Canvas}},{key:"getCanvasSize",value:function(){var e;return null===(e=document.getElementById(this.rules.DYContainerId+this.graphicalMusicPage.PageNumber))||void 0===e?void 0:e.offsetHeight}},{key:"initialize",value:function(e,t){this.zoom=t,this.canvas=document.createElement("canvas"),this.graphicalMusicPage||(this.graphicalMusicPage=new GraphicalMusicPage(void 0),this.graphicalMusicPage.PageNumber=1),this.canvas.id="osmdCanvasVexFlowBackendCanvas"+this.graphicalMusicPage.PageNumber,this.inner=document.createElement("div"),this.inner.id=this.rules.DYContainerId+this.graphicalMusicPage.PageNumber,this.inner.style.position="relative",this.canvas.style.zIndex="0",this.inner.appendChild(this.canvas),e.appendChild(this.inner),this.renderer=new VF$4.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext()}},{key:"initializeHeadless",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;this.graphicalMusicPage||(this.graphicalMusicPage=new GraphicalMusicPage(void 0),this.graphicalMusicPage.PageNumber=1),this.canvas=document.createElement("canvas"),this.canvas.width=e,this.canvas.height=t,this.renderer=new VF$4.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext()}},{key:"getContext",value:function(){return this.ctx}},{key:"clear",value:function(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.rules.PageBackgroundColor&&(this.ctx.save(),this.ctx.setFillStyle(this.rules.PageBackgroundColor),this.zoom=1,this.ctx.fillRect(0,0,this.canvas.width/this.zoom,this.canvas.height/this.zoom),this.ctx.restore())}},{key:"scale",value:function(e){this.ctx.scale(e,e)}},{key:"translate",value:function(e,t){this.CanvasRenderingCtx.translate(e,t)}},{key:"renderText",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0,l=this.CanvasRenderingCtx.font;this.CanvasRenderingCtx.save(),this.CanvasRenderingCtx.font=VexFlowConverter.font(e,t,n,this.rules,s),this.CanvasRenderingCtx.fillStyle=o,this.CanvasRenderingCtx.strokeStyle=o,this.CanvasRenderingCtx.fillText(r,a.x,a.y+i),this.CanvasRenderingCtx.restore(),this.CanvasRenderingCtx.font=l}},{key:"renderRectangle",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=this.CanvasRenderingCtx.fillStyle;this.CanvasRenderingCtx.fillStyle=n||VexFlowConverter.style(t),this.CanvasRenderingCtx.globalAlpha=r,this.ctx.fillRect(e.x,e.y,e.width,e.height),this.CanvasRenderingCtx.fillStyle=i,this.CanvasRenderingCtx.globalAlpha=1}},{key:"renderLine",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000FF",r=this.CanvasRenderingCtx.strokeStyle;this.CanvasRenderingCtx.strokeStyle=n,this.CanvasRenderingCtx.beginPath(),this.CanvasRenderingCtx.moveTo(e.x,e.y),this.CanvasRenderingCtx.lineTo(t.x,t.y),this.CanvasRenderingCtx.stroke(),this.CanvasRenderingCtx.strokeStyle=r}},{key:"renderCurve",value:function(e){this.ctx.beginPath(),this.ctx.moveTo(e[0].x,e[0].y),this.ctx.bezierCurveTo(e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y),this.ctx.lineTo(e[7].x,e[7].y),this.ctx.bezierCurveTo(e[6].x,e[6].y,e[5].x,e[5].y,e[4].x,e[4].y),this.ctx.lineTo(e[0].x,e[0].y),this.ctx.closePath(),this.ctx.fill()}},{key:"CanvasRenderingCtx",get:function(){return this.ctx.vexFlowCanvasContext}}]),n}(VexFlowBackend),VF$3=Vex.Flow,SvgVexFlowBackend=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).rules=e,r}return _createClass2(n,[{key:"getVexflowBackendType",value:function(){return VF$3.Renderer.Backends.SVG}},{key:"getOSMDBackendType",value:function(){return BackendType.SVG}},{key:"getCanvasSize",value:function(){var e;return null===(e=document.getElementById(this.rules.DYContainerId+this.graphicalMusicPage.PageNumber))||void 0===e?void 0:e.offsetHeight}},{key:"initialize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.zoom=t,this.canvas=document.createElement("div"),n||(n=this.graphicalMusicPage?this.graphicalMusicPage.PageNumber.toString():"1"),this.canvas.id=this.rules.DYContainerId+n,this.inner=this.canvas,this.inner.style.position="relative",this.canvas.style.zIndex="0",e.appendChild(this.inner),this.renderer=new Vex.Flow.Renderer(this.canvas,this.getVexflowBackendType()),this.ctx=this.renderer.getContext(),this.ctx.svg.id=this.rules.DYSVGContainerId+n}},{key:"getContext",value:function(){return this.ctx}},{key:"getSvgElement",value:function(){return this.ctx.svg}},{key:"removeNode",value:function(e){var t,n=null===(t=this.ctx)||void 0===t?void 0:t.svg;if(!n)return!1;try{n.removeChild(e)}catch(r){return loglevelExports.error(r),!1}return!0}},{key:"clear",value:function(){if(this.ctx){for(var e=this.ctx.svg;e.lastChild;)e.removeChild(e.lastChild);this.rules.PageBackgroundColor&&(this.ctx.svg.style["background-color"]=this.rules.PageBackgroundColor)}}},{key:"scale",value:function(e){this.ctx.scale(e,e)}},{key:"translate",value:function(e,t){}},{key:"renderText",value:function(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:void 0;this.ctx.save();var l=this.ctx.openGroup("text");o&&(this.ctx.attributes.fill=o,this.ctx.attributes.stroke=o);var u=s;s&&"default"!==s||(u=this.rules.DefaultFontFamily),this.ctx.setFont(u,e,VexFlowConverter.fontStyle(t)),this.ctx.attributes["font-size"]="".concat(e,"px"),this.ctx.state["font-size"]="".concat(e,"px");var c="normal",h="normal";switch(t){case FontStyles.Bold:c="bold";break;case FontStyles.Italic:h="italic";break;case FontStyles.BoldItalic:c="bold",h="italic";break;default:c="normal"}return this.ctx.attributes["font-weight"]=c,this.ctx.state["font-weight"]=c,this.ctx.attributes["font-style"]=h,this.ctx.state["font-style"]=h,this.ctx.fillText(r,a.x,a.y+i),this.ctx.closeGroup(),this.ctx.restore(),l}},{key:"renderRectangle",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.ctx.save();var i=this.ctx.openGroup("rect");return this.ctx.attributes.fill=n||VexFlowConverter.style(t),this.ctx.attributes["fill-opacity"]=r,this.ctx.fillRect(e.x,e.y,e.width,e.height),this.ctx.restore(),this.ctx.attributes["fill-opacity"]=1,this.ctx.closeGroup(),i}},{key:"renderLine",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000FF",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;this.ctx.save();var i=this.ctx.openGroup("line");return this.ctx.beginPath(),this.ctx.moveTo(e.x,e.y),this.ctx.lineTo(t.x,t.y),this.ctx.attributes.stroke=n,this.ctx.lineWidth=r,this.ctx.stroke(),this.ctx.closeGroup(),this.ctx.restore(),i}},{key:"renderCurve",value:function(e){var t=this.ctx.openGroup("curve");return this.ctx.beginPath(),this.ctx.moveTo(e[0].x,e[0].y),this.ctx.bezierCurveTo(e[1].x,e[1].y,e[2].x,e[2].y,e[3].x,e[3].y),this.ctx.lineTo(e[7].x,e[7].y),this.ctx.bezierCurveTo(e[6].x,e[6].y,e[5].x,e[5].y,e[4].x,e[4].y),this.ctx.lineTo(e[0].x,e[0].y),this.ctx.closePath(),this.ctx.fill(),this.ctx.closeGroup(),t}},{key:"export",value:function(){var e=this.ctx.svg.cloneNode(!0),t=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),n=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",t);n.replaceChild(e,n.documentElement);var r=(new XMLSerializer).serializeToString(n),i=document.createElement("a");i.href="data:image/svg+xml; charset=utf8, "+encodeURIComponent(r.replace(/></g,">\n\r<")),i.download="opensheetmusicdisplay_download.svg",i.innerHTML=window.location.href+"/download",document.body.appendChild(i)}}]),n}(VexFlowBackend),VexFlowInstantaneousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;_classCallCheck2(this,n),a=t.call(this,e,r,i);var o=new Label(a.Expression);return a.label=new GraphicalLabel(o,a.rules.ContinuousDynamicTextHeight,TextAlignmentEnum.CenterCenter,a.rules,a.PositionAndShape),a.label.Label.fontStyle=FontStyles.BoldItalic,a.label.setLabelPositionAndShapeBorders(),a.PositionAndShape.calculateBoundingBox(),a}return _createClass2(n,[{key:"InstantaneousDynamic",get:function(){return this.mInstantaneousDynamicExpression}},{key:"Expression",get:function(){return DynamicEnum[this.mInstantaneousDynamicExpression.DynEnum]}}]),n}(GraphicalInstantaneousDynamicExpression),GraphicalOctaveShift=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).getOctaveShift=e,i.setSymbol(),i.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),r),i}return _createClass2(n,[{key:"setSymbol",value:function(){switch(this.getOctaveShift.Type){case OctaveEnum.VA8:this.octaveSymbol=MusicSymbol.VA8;break;case OctaveEnum.VB8:this.octaveSymbol=MusicSymbol.VB8;break;case OctaveEnum.MA15:this.octaveSymbol=MusicSymbol.MA15;break;case OctaveEnum.MB15:this.octaveSymbol=MusicSymbol.MB15;break;default:throw new ArgumentOutOfRangeException("")}}}]),n}(GraphicalObject),VF$2=Vex.Flow,VexFlowOctaveShift=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;switch(_classCallCheck2(this,n),i=t.call(this,e,r),e.Type){case OctaveEnum.VA8:i.position=VF$2.TextBracket.Positions.TOP,i.supscript="va",i.text="8";break;case OctaveEnum.MA15:i.position=VF$2.TextBracket.Positions.TOP,i.supscript="ma",i.text="15";break;case OctaveEnum.VB8:i.position=VF$2.TextBracket.Positions.BOTTOM,i.supscript="vb",i.text="8";break;case OctaveEnum.MB15:i.position=VF$2.TextBracket.Positions.BOTTOM,i.supscript="mb",i.text="15";break;default:loglevelExports.error("Unknown or NONE octaveshift. This should not be called!")}return i}return _createClass2(n,[{key:"setStartNote",value:function(e){var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote)return this.startNote=r.vfStaveNote,!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"setEndNote",value:function(e){var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote)return this.endNote=r.vfStaveNote,!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"getTextBracket",value:function(){return new VF$2.TextBracket({position:this.position,start:this.startNote,stop:this.endNote,superscript:this.supscript,text:this.text})}}]),n}(GraphicalOctaveShift),VexflowStafflineNoteCalculator=function(){function e(t){_classCallCheck2(this,e),this.staffPitchListMapping=new Dictionary,this.baseLineNote=NoteEnum.B,this.baseLineOctave=1,this.rules=t}return _createClass2(e,[{key:"trackNote",value:function(t){if(t instanceof VexFlowGraphicalNote&&t.Clef().ClefType===ClefEnum.percussion&&!t.sourceNote.isRest()&&0!==this.rules.PercussionOneLineCutoff&&-1!==this.rules.PercussionForceVoicesOneLineCutoff){var n,r=t.parentVoiceEntry.parentStaffEntry.sourceStaffEntry.ParentStaff.idInMusicSheet;this.staffPitchListMapping.containsKey(r)||this.staffPitchListMapping.setValue(r,new Array),n=this.staffPitchListMapping.getValue(r);var i=t.sourceNote.Pitch;e.findOrInsert(n,i)}}},{key:"positionNote",value:function(t){var n=t.parentVoiceEntry.parentStaffEntry.sourceStaffEntry.ParentStaff.idInMusicSheet;if(!(t instanceof VexFlowGraphicalNote)||t.sourceNote.isRest()||!this.staffPitchListMapping.containsKey(n))return t;var r=this.staffPitchListMapping.getValue(n),i=this.rules.PercussionUseXMLDisplayStep&&void 0!==t.sourceNote.displayStepUnpitched;if(r.length>this.rules.PercussionOneLineCutoff&&!i)return t;var a=t,o=t.sourceNote.Pitch,s=this.baseLineNote,l=this.baseLineOctave;if(this.rules.PercussionUseXMLDisplayStep&&void 0!==t.sourceNote.displayStepUnpitched&&(s=t.sourceNote.displayStepUnpitched,l=t.sourceNote.displayOctaveUnpitched+this.rules.PercussionOneLineXMLDisplayStepOctaveOffset),r.length<=this.rules.PercussionForceVoicesOneLineCutoff)a.setAccidental(new Pitch(s,l,o.Accidental));else{var u=e.PitchIndexOf(r,o);if(u>-1){var c=Math.ceil(r.length/2);if(!this.rules.PercussionUseXMLDisplayStep)if(u>=c)switch(l=2,(u-c)%5){case 1:s=NoteEnum.E;break;case 2:s=NoteEnum.G;break;case 3:s=NoteEnum.B;break;case 4:s=NoteEnum.D,l=3;break;default:s=NoteEnum.C}else switch(u%5){case 1:s=NoteEnum.F;break;case 2:s=NoteEnum.D;break;case 3:s=NoteEnum.B,l=0;break;case 4:s=NoteEnum.G,l=0;break;default:s=NoteEnum.A}var h=new Pitch(s,l,o.Accidental);a.setAccidental(h);var d=a.parentVoiceEntry.parentVoiceEntry;!this.rules.SetWantedStemDirectionByXml&&d.Notes.length<2&&(h.Octave>this.baseLineOctave||h.FundamentalNote===this.baseLineNote&&h.Octave===this.baseLineOctave?a.parentVoiceEntry.parentVoiceEntry.WantedStemDirection=StemDirectionType.Up:a.parentVoiceEntry.parentVoiceEntry.WantedStemDirection=StemDirectionType.Down)}}return a}},{key:"getStafflineUniquePositionCount",value:function(e){return this.staffPitchListMapping.containsKey(e)?this.staffPitchListMapping.getValue(e).length:0}}],[{key:"PitchIndexOf",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>e.length-1)return-1;for(var r=n;r<e.length;r++){var i=e[r];if(t.OperatorEquals(i))return r}return-1}},{key:"findOrInsert",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t.OperatorEquals(r))return n;if(t.OperatorFundamentalLessThan(r))return e.splice(n,0,t),n}return e.push(t),e.length-1}}]),e}(),SkyBottomLineCalculator=function(){function e(t){_classCallCheck2(this,e),this.mStaffLineParent=t,this.mRules=t.ParentMusicSystem.rules}return _createClass2(e,[{key:"calculateLines",value:function(){var e=this,t=Math.max(Math.ceil(this.StaffLineParent.PositionAndShape.Size.width*this.SamplingUnit),1);this.mSkyLine=[],this.mBottomLine=[];var n,r=new CanvasVexFlowBackend(this.StaffLineParent.ParentMusicSystem.rules),i=_createForOfIteratorHelper(this.StaffLineParent.Measures);try{for(i.s();!(n=i.n()).done;){var a,o,s=n.value;s.PositionAndShape.calculateAbsolutePositionsRecursive(0,0);var l=s.getVFStave(),u=l.getWidth();if(u>0||s.IsExtraGraphicalMeasure||(loglevelExports.warn("SkyBottomLineCalculator: width not > 0 in measure "+s.MeasureNumber),u=50),u>=50||!s.IsExtraGraphicalMeasure){r.initializeHeadless(u);var c=r.getContext(),h=r.getCanvas();u=h.width;var d=h.height;"jianpu"===this.mRules.DYMusicScoreType?l.setY(l.y-50):l.setY(l.y+100);var f=l.getWidth();l.setWidth(u),s.format(),l.setWidth(f);try{s.draw(c)}catch(T){loglevelExports.warn("SkyBottomLineCalculator.calculateLines.draw",T)}for(var p=c.getImageData(0,0,u,d),v=Math.max(Math.ceil(s.PositionAndShape.Size.width*this.mRules.SamplingUnit),1),m=new Array(v),g=new Array(v),y=0;y<u;y++){for(var b=0;b<d;b++){var A=b*u*4+4*y;if(p.data[A+3]>0){m[y]=b;break}}for(var S=d;S>0;S--){var x=S*u*4+4*y;if(p.data[x+3]>0){g[y]=S;break}}}for(var w=0;w<m.length;w++)void 0===m[w]&&(m[w]=Math.max(this.findPreviousValidNumber(w,m),this.findNextValidNumber(w,m)));for(var _=0;_<g.length;_++)void 0===g[_]&&(g[_]=Math.max(this.findPreviousValidNumber(_,g),this.findNextValidNumber(_,g)));(a=this.mSkyLine).push.apply(a,m),(o=this.mBottomLine).push.apply(o,g),r.clear()}}}catch(err){i.e(err)}finally{i.f()}for(var E=this.mSkyLine.length/t,k=[],C=[],M=0;M<this.mSkyLine.length&&k.length!==t;M+=E){var P=Math.min(this.mSkyLine.length,M+E),I=this.mSkyLine.slice(M,P+1);k.push(Math.min.apply(Math,_toConsumableArray2(I))),I=this.mBottomLine.slice(M,P+1),C.push(Math.max.apply(Math,_toConsumableArray2(I)))}this.mSkyLine=k,this.mBottomLine=C,this.mSkyLine.length!==t&&loglevelExports.debug("SkyLine calculation was not correct (".concat(this.mSkyLine.length," instead of ").concat(t,")")),this.mSkyLine=this.mSkyLine.map((function(t){return(t-Math.max.apply(Math,_toConsumableArray2(e.mSkyLine)))/unitInPixels+e.StaffLineParent.TopLineOffset})),this.mBottomLine=this.mBottomLine.map((function(t){return(t-Math.min.apply(Math,_toConsumableArray2(e.mBottomLine)))/unitInPixels+e.StaffLineParent.BottomLineOffset}))}},{key:"findPreviousValidNumber",value:function(e,t){for(var n=e;n>=0;n--)if(!isNaN(t[n]))return t[n];return 0}},{key:"findNextValidNumber",value:function(e,t){if(e>=t.length)return t[e-1];for(var n=e;n<t.length;n++)if(!isNaN(t[n]))return t[n];return 0}},{key:"drawPixel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000FF",r=t.getContext(),i=r.fillStyle;r.fillStyle=n,r.fillRect(e.x,e.y,2,2),r.fillStyle=i}},{key:"updateSkyLineWithWedge",value:function(e,t){var n=Math.floor(e.x*this.SamplingUnit),r=Math.ceil(t.x*this.SamplingUnit),i=(t.y-e.y)/(t.x-e.x);r-n<=1&&(r++,i=0),n<0&&(n=0),n>=this.BottomLine.length&&(n=this.BottomLine.length-1),r<0&&(r=0),r>=this.BottomLine.length&&(r=this.BottomLine.length),this.SkyLine[n]=e.y;for(var a=n+1;a<Math.min(r,this.SkyLine.length);a++)this.SkyLine[a]=this.SkyLine[a-1]+i/this.SamplingUnit}},{key:"updateBottomLineWithWedge",value:function(e,t){var n=Math.floor(e.x*this.SamplingUnit),r=Math.ceil(t.x*this.SamplingUnit),i=(t.y-e.y)/(t.x-e.x);r-n<=1&&(r++,i=0),n<0&&(n=0),n>=this.BottomLine.length&&(n=this.BottomLine.length-1),r<0&&(r=0),r>=this.BottomLine.length&&(r=this.BottomLine.length),this.BottomLine[n]=e.y;for(var a=n+1;a<r;a++)this.BottomLine[a]=this.BottomLine[a-1]+i/this.SamplingUnit}},{key:"updateSkyLineInRange",value:function(e,t,n){this.updateInRange(this.mSkyLine,e,t,n)}},{key:"updateBottomLineInRange",value:function(e,t,n){this.updateInRange(this.BottomLine,e,t,n)}},{key:"resetSkyLineInRange",value:function(e,t){this.updateInRange(this.SkyLine,e,t)}},{key:"resetBottomLineInRange",value:function(e,t){this.setInRange(this.BottomLine,e,t)}},{key:"setSkyLineWithValue",value:function(e){this.SkyLine.forEach((function(t){return e}))}},{key:"setBottomLineWithValue",value:function(e){this.BottomLine.forEach((function(t){return e}))}},{key:"getLeftIndexForPointX",value:function(e,t){var n=Math.floor(e*this.SamplingUnit);return n<0?0:n>=t?t-1:n}},{key:"getRightIndexForPointX",value:function(e,t){var n=Math.ceil(e*this.SamplingUnit);return n<0?0:n>=t?t-1:n}},{key:"updateStaffLineBorders",value:function(){this.mStaffLineParent.PositionAndShape.BorderTop=this.getSkyLineMin(),this.mStaffLineParent.PositionAndShape.BorderMarginTop=this.getSkyLineMin(),this.mStaffLineParent.PositionAndShape.BorderBottom=this.getBottomLineMax(),this.mStaffLineParent.PositionAndShape.BorderMarginBottom=this.getBottomLineMax()}},{key:"getSkyLineMin",value:function(){return Math.min.apply(Math,_toConsumableArray2(this.SkyLine.filter((function(e){return!isNaN(e)}))))}},{key:"getSkyLineMinAtPoint",value:function(e){var t=Math.round(e*this.SamplingUnit);return this.mSkyLine[t]}},{key:"getSkyLineMinInRange",value:function(e,t){return this.getMinInRange(this.SkyLine,e,t)}},{key:"getBottomLineMax",value:function(){return Math.max.apply(Math,_toConsumableArray2(this.BottomLine.filter((function(e){return!isNaN(e)}))))}},{key:"getBottomLineMaxAtPoint",value:function(e){var t=Math.round(e*this.SamplingUnit);return this.mBottomLine[t]}},{key:"getBottomLineMaxInRange",value:function(e,t){return this.getMaxInRange(this.BottomLine,e,t)}},{key:"getBottomLineMaxInBoundingBox",value:function(e){var t=Math.floor(e.AbsolutePosition.x+e.BorderLeft),n=Math.ceil(e.AbsolutePosition.x+e.BorderRight);return this.getMaxInRange(this.mBottomLine,t,n)}},{key:"updateWithBoundingBoxRecursively",value:function(e){if(e.ChildElements&&e.ChildElements.length>0){var t,n=_createForOfIteratorHelper(e.ChildElements);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.updateWithBoundingBoxRecursively(r)}}catch(err){n.e(err)}finally{n.f()}}else{var i=e.BorderTop+e.AbsolutePosition.y,a=e.BorderBottom+e.AbsolutePosition.y;if(i<0){var o=Math.floor(e.AbsolutePosition.x+e.BorderLeft),s=Math.ceil(e.AbsolutePosition.x+e.BorderRight);this.updateInRange(this.mSkyLine,o,s,i)}else if(a>this.StaffLineParent.StaffHeight){var l=Math.floor(e.AbsolutePosition.x+e.BorderLeft),u=Math.ceil(e.AbsolutePosition.x+e.BorderRight);this.updateInRange(this.mBottomLine,l,u,a)}}}},{key:"updateInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t=Math.floor(t*this.SamplingUnit),(n=Math.ceil(n*this.SamplingUnit))<t)throw new Error("start index of line is greater than the end index");t<0&&(t=0),n>e.length&&(n=e.length);for(var i=t;i<n;i++)e[i]=Math.abs(r)>Math.abs(e[i])?r:e[i]}},{key:"setInRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t=Math.floor(t*this.SamplingUnit),(n=Math.ceil(n*this.SamplingUnit))<t)throw new Error("start index of line is greater then the end index");t<0&&(t=0),n>e.length&&(n=e.length);for(var i=t;i<n;i++)e[i]=r}},{key:"getMinInRange",value:function(e,t,n){return t=Math.floor(t*this.SamplingUnit),n=Math.ceil(n*this.SamplingUnit),e?(t<0&&(t=0),t>=e.length&&(t=e.length-1),n<0&&(n=0),n>=e.length&&(n=e.length),t>=0&&n<=e.length?Math.min.apply(Math,_toConsumableArray2(e.slice(t,n+1))):void 0):Number.MAX_VALUE}},{key:"getMaxInRange",value:function(e,t,n){return t=Math.floor(t*this.SamplingUnit),n=Math.ceil(n*this.SamplingUnit),e?(t<0&&(t=0),t>=e.length&&(t=e.length-1),n<0&&(n=0),n>=e.length&&(n=e.length),t>=0&&n<=e.length?Math.max.apply(Math,_toConsumableArray2(e.slice(t,n+1))):void 0):Number.MIN_VALUE}},{key:"SamplingUnit",get:function(){return this.mRules.SamplingUnit}},{key:"StaffLineParent",get:function(){return this.mStaffLineParent}},{key:"SkyLine",get:function(){return this.mSkyLine}},{key:"BottomLine",get:function(){return this.mBottomLine}}]),e}(),parserExports$1={},parser$2={get exports(){return parserExports$1},set exports(e){parserExports$1=e}};
  29. /*!
  30. * d-path-parser - v1.0.0
  31. * by Massimo Artizzu (MaxArt2501)
  32. *
  33. * https://github.com/MaxArt2501/d-path-parser
  34. *
  35. * Licensed under the MIT License
  36. * See LICENSE for details
  37. */
  38. !function(e,t){e.exports=function(e){for(var t={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},n={number:function(e){return+c("number",e)},"coordinate pair":function(e){var t=c("number",e);return null!==t||e?(c("comma"),{x:+t,y:+c("number",!0)}):null},"arc definition":function(e){var t=n["coordinate pair"](e);if(!t&&!e)return null;c("comma");var r=+c("number",!0);c("comma",!0);var i=!!+c("flag",!0);c("comma");var a=!!+c("flag",!0);return c("comma"),{radii:t,rotation:r,large:i,clockwise:a,end:n["coordinate pair"](!0)}}},r=0,i=[];r<e.length;){var a,o=c("command"),s=o.toUpperCase(),l=o!==s;switch(s){case"M":a=h("coordinate pair").map((function(e,t){return 1===t&&(o=l?"l":"L"),u({end:e})}));break;case"L":case"T":a=h("coordinate pair").map((function(e){return u({end:e})}));break;case"C":if((a=h("coordinate pair")).length%3)throw Error("Expected coordinate pair triplet at position "+r);a=a.reduce((function(e,t,n){var r=n%3;return r?e[e.length-1][1===r?"cp2":"end"]=t:e.push(u({cp1:t})),e}),[]);break;case"Q":case"S":if(1&(a=h("coordinate pair")).length)throw Error("Expected coordinate pair couple at position "+r);a=a.reduce((function(e,t,n){return 1&n?e[e.length-1].end=t:e.push(u({cp:t})),e}),[]);break;case"H":case"V":a=h("number").map((function(e){return u({value:e})}));break;case"A":a=h("arc definition").map(u);break;case"Z":a=[{code:"Z"}]}i.push.apply(i,a)}return i;function u(e){return e.code=o,e.relative=l,e}function c(n,i){t[n].lastIndex=r;var a=t[n].exec(e);if(!a||a.index!==r){if(!i)return null;throw Error("Expected "+n+" at position "+r)}return r=t[n].lastIndex,a[1]}function h(e){for(var t,r=[],i=!0;t=n[e](i);)r.push(t),i=!!c("comma");return r}}}(parser$2);var SkyBottomLineCalculatorSVG=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){return _classCallCheck2(this,n),t.apply(this,arguments)}return _createClass2(n,[{key:"recursiveUpdate",value:function(e,t,n,r){var i=e.getBBox(),a=i.y/unitInPixels,o=i.height/unitInPixels+a,s=_slicedToArray(r,2),l=s[0],u=s[1];if(a<t.top||o>t.bottom)switch(e.tagName.toLowerCase()){case"g":var c,h=_createForOfIteratorHelper(e.children);try{for(h.s();!(c=h.n()).done;){var d=c.value;this.recursiveUpdate(d,t,n,r)}}catch(err){h.e(err)}finally{h.f()}break;case"circle":case"rect":case"line":case"path":var f=Math.floor((i.x-n.x)/unitInPixels*this.mRules.SamplingUnit),p=f+Math.ceil(i.width/unitInPixels*this.mRules.SamplingUnit);if(e.parentElement.classList.contains("vf-beams")&&e.hasAttribute("d")){var v=parserExports$1(e.getAttribute("d"));if(5===v.length)for(var m=v[0],g=v[3],y=(g.end.y-m.end.y)/(g.end.x-m.end.x),b=m.end.y/unitInPixels;f<=p;f++)b<l[f]&&(l[f]=b),b>u[f]&&(u[f]=b),b+=y/this.mRules.SamplingUnit}else for(;f<=p;f++)a<l[f]&&(l[f]=a),o>u[f]&&(u[f]=o)}}},{key:"calculateLinesForMeasure",value:function(e,t){var n,r,i,a,o=t.getBBox(),s=Math.max(Math.round(e.PositionAndShape.Size.width*this.mRules.SamplingUnit),1),l=o.height/unitInPixels,u=t.getElementsByClassName("vf-stave")[0].getBBox(),c=(null==u?void 0:u.height)/unitInPixels,h=(null==u?void 0:u.y)/unitInPixels,d=e.getVFStave(),f=(null!==(n=d.options)&&void 0!==n&&n.num_lines?d.options.num_lines:5)-1,p=-1,v=0,m=[f],g=_createForOfIteratorHelper(null===(i=d.options)||void 0===i?void 0:i.line_config);try{for(g.s();!(a=g.n()).done;){a.value.visible?(-1===p&&(p=v),m.push(v)):f--,v++}}catch(err){g.e(err)}finally{g.f()}-1===p&&(p=0),f=m.pop()-p;var y=null===(r=d.options)||void 0===r?void 0:r.spacing_between_lines_px,b=f*y/unitInPixels;c-b>.2&&(c=b,h=p*y/unitInPixels);var A=h+c,S=new Array(s).fill(h),x=new Array(s).fill(A),w=[S,x];if(l>c){var _,E=_createForOfIteratorHelper(t.children);try{for(E.s();!(_=E.n()).done;){var k=_.value;this.recursiveUpdate(k,{top:h,bottom:A},o,[S,x])}}catch(err){E.e(err)}finally{E.f()}}return w}},{key:"calculateLines",value:function(){this.mSkyLine=[],this.mBottomLine=[];var e=document.createElement("div");document.body.append(e);var t=new SvgVexFlowBackend(this.mRules);t.initialize(e,1,"0");var n=t.getContext(),r=n.openGroup();r.classList.add("staffline");var i,a=_createForOfIteratorHelper(this.StaffLineParent.Measures);try{for(a.s();!(i=a.n()).done;){var o,s,l=i.value;l.PositionAndShape.calculateAbsolutePositionsRecursive(0,0),l.setAbsoluteCoordinates(l.PositionAndShape.AbsolutePosition.x*unitInPixels,l.PositionAndShape.AbsolutePosition.y*unitInPixels);var u=l.draw(n),c=_slicedToArray(this.calculateLinesForMeasure(l,u),2),h=c[0],d=c[1];(o=this.mSkyLine).push.apply(o,_toConsumableArray2(h)),(s=this.mBottomLine).push.apply(s,_toConsumableArray2(d))}}catch(err){a.e(err)}finally{a.f()}n.closeGroup();var f,p=_createForOfIteratorHelper(r.getElementsByClassName("vf-ties"));try{for(p.s();!(f=p.n()).done;){var v,m=_createForOfIteratorHelper(f.value.childNodes);try{for(m.s();!(v=m.n()).done;){var g=v.value;if("path"===g.nodeName.toLowerCase())for(var y=g.getBBox(),b=Math.floor(y.x/unitInPixels*this.mRules.SamplingUnit),A=b+Math.ceil(y.width/unitInPixels*this.mRules.SamplingUnit),S=y.y/unitInPixels,x=y.height/unitInPixels+S;b<=A;b++)S<this.mSkyLine[b]&&(this.mSkyLine[b]=S),x>this.mBottomLine[b]&&(this.mBottomLine[b]=x)}}catch(err){m.e(err)}finally{m.f()}}}catch(err){p.e(err)}finally{p.f()}t.clear(),e.remove()}}]),n}(SkyBottomLineCalculator),VF$1=Vex.Flow,VexFlowGraphicalSymbolFactory=function(){function e(){_classCallCheck2(this,e),this.hasBBox=!1,void 0!==document.createElementNS("http://www.w3.org/2000/svg","g").getBBox&&(this.hasBBox=!0)}return _createClass2(e,[{key:"createMusicSystem",value:function(e,t){return new VexFlowMusicSystem(e,t)}},{key:"createStaffLine",value:function(e,t){return new VexFlowStaffLine(e,t)}},{key:"createSkyBottomLineCalculator",value:function(e){return e.ParentMusicSystem.rules.PerformanceMode&&this.hasBBox?new SkyBottomLineCalculatorSVG(e):new SkyBottomLineCalculator(e)}},{key:"createGraphicalMeasure",value:function(e,t){return new VexFlowMeasure(t,e,void 0)}},{key:"createMultiRestMeasure",value:function(e,t,n){return new VexFlowMultiRestMeasure(t,e,n)}},{key:"createTabStaffMeasure",value:function(e,t){return new VexFlowTabMeasure(t,e)}},{key:"createExtraGraphicalMeasure",value:function(e){var t=new VexFlowMeasure(e.ParentStaff,void 0,e);return t.IsExtraGraphicalMeasure=!0,t.ExtraGraphicalMeasurePreviousMeasure=e.Measures.last(),t}},{key:"createStaffEntry",value:function(e,t){return new VexFlowStaffEntry(t,e,void 0)}},{key:"createVoiceEntry",value:function(e,t){return new VexFlowVoiceEntry(e,t)}},{key:"createNote",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:OctaveEnum.NONE;return new VexFlowGraphicalNote(e,t,n,r,arguments.length>4?arguments[4]:void 0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0)}},{key:"createGraceNote",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:OctaveEnum.NONE;return new VexFlowGraphicalNote(e,t,n,i,r)}},{key:"addGraphicalAccidental",value:function(e,t){e.setAccidental(t)}},{key:"addFermataAtTiedEndNote",value:function(e,t){}},{key:"createInStaffClef",value:function(e,t){var n=e,r=VexFlowConverter.Clef(t,"small");n.vfClefBefore=new VF$1.ClefNote(r.type,r.size,r.annotation)}},{key:"createChordSymbols",value:function(e,t,n,r){var i,a=t.parentMeasure.parentSourceMeasure.Rules,o=0,s=a.ChordSymbolXSpacing,l=_createForOfIteratorHelper(e.ChordContainers);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=new GraphicalChordSymbolContainer(u,t.PositionAndShape,a.ChordSymbolTextHeight,n,r,t.parentMeasure.parentSourceMeasure.Rules),h=c.GraphicalLabel;h.PositionAndShape.RelativePosition.y-=a.ChordSymbolYOffset,h.PositionAndShape.RelativePosition.x+=o,h.setLabelPositionAndShapeBorders(),c.PositionAndShape.calculateBoundingBox(),t.graphicalChordContainers.push(c),o+=h.PositionAndShape.Size.width+s}}catch(err){l.e(err)}finally{l.f()}}},{key:"createGraphicalTechnicalInstruction",value:function(e,t){}}]),e}(),GraphicalTie=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;_classCallCheck2(this,e),this.tie=t,this.startNote=n,this.endNote=r}return _createClass2(e,[{key:"SVGElement",get:function(){return this.vfTie.getAttribute("el")}},{key:"GetTie",get:function(){return this.tie}},{key:"StartNote",get:function(){return this.startNote},set:function(e){this.startNote=e}},{key:"Tie",get:function(){return this.tie}},{key:"EndNote",get:function(){return this.endNote},set:function(e){this.endNote=e}}]),e}(),GraphicalLyricEntry=function(){function e(t,n,r,i){_classCallCheck2(this,e),this.lyricsEntry=t,this.graphicalStaffEntry=n;var a=n.parentMeasure.parentSourceMeasure.Rules.LyricsAlignmentStandard;t.Text.length>=4&&t.Parent.Notes[0].Length.Denominator>4&&TextAlignmentEnum.LeftBottom;var o=new Label(t.Text);this.graphicalLabel=new GraphicalLabel(o,r,a,this.graphicalStaffEntry.parentMeasure.parentSourceMeasure.Rules,n.PositionAndShape),this.graphicalLabel.PositionAndShape.RelativePosition=new PointF2D(0,i),a===TextAlignmentEnum.LeftBottom&&(this.graphicalLabel.PositionAndShape.RelativePosition.x-=1)}return _createClass2(e,[{key:"LyricsEntry",get:function(){return this.lyricsEntry}},{key:"ParentLyricWord",get:function(){return this.graphicalLyricWord},set:function(e){this.graphicalLyricWord=e}},{key:"GraphicalLabel",get:function(){return this.graphicalLabel},set:function(e){this.graphicalLabel=e}},{key:"StaffEntryParent",get:function(){return this.graphicalStaffEntry},set:function(e){this.graphicalStaffEntry=e}}]),e}(),GraphicalLyricWord=function(){function e(t){_classCallCheck2(this,e),this.graphicalLyricsEntries=[],this.lyricWord=t,this.initialize()}return _createClass2(e,[{key:"GetLyricWord",get:function(){return this.lyricWord}},{key:"GraphicalLyricsEntries",get:function(){return this.graphicalLyricsEntries},set:function(e){this.graphicalLyricsEntries=e}},{key:"isFilled",value:function(){for(var e=0;e<this.graphicalLyricsEntries.length;e++)if(!this.graphicalLyricsEntries[e])return!1;return!0}},{key:"initialize",value:function(){for(var e=0;e<this.lyricWord.Syllables.length;e++)this.graphicalLyricsEntries.push(void 0)}}]),e}(),_GraphicalCurve=function(){function e(){_classCallCheck2(this,e),e.tPow3=new Array(e.bezierCurveStepSize),e.oneMinusTPow3=new Array(e.bezierCurveStepSize),e.bezierFactorOne=new Array(e.bezierCurveStepSize),e.bezierFactorTwo=new Array(e.bezierCurveStepSize);for(var t=0;t<e.bezierCurveStepSize;t++){var n=t/e.bezierCurveStepSize;e.tPow3[t]=Math.pow(n,3),e.oneMinusTPow3[t]=Math.pow(1-n,3),e.bezierFactorOne[t]=3*Math.pow(1-n,2)*n,e.bezierFactorTwo[t]=3*(1-n)*Math.pow(n,2)}}return _createClass2(e,[{key:"calculateCurvePointAtIndex",value:function(t){var n=Math.round(t*e.bezierCurveStepSize);return n<0||n>=e.bezierCurveStepSize?new PointF2D:new PointF2D(e.oneMinusTPow3[n]*this.bezierStartPt.x+e.bezierFactorOne[n]*this.bezierStartControlPt.x+e.bezierFactorTwo[n]*this.bezierEndControlPt.x+e.tPow3[n]*this.bezierEndPt.x,e.oneMinusTPow3[n]*this.bezierStartPt.y+e.bezierFactorOne[n]*this.bezierStartControlPt.y+e.bezierFactorTwo[n]*this.bezierEndControlPt.y+e.tPow3[n]*this.bezierEndPt.y)}}]),e}(),GraphicalCurve=_GraphicalCurve;GraphicalCurve.bezierCurveStepSize=1e3;var _GraphicalSlur=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).staffEntries=[],i.slur=e,i.rules=r,i}return _createClass2(n,[{key:"calculateCurve",value:function(e){var t=this.staffEntries[0],n=this.staffEntries[this.staffEntries.length-1],r=t.findGraphicalNoteFromNote(this.slur.StartNote);!r&&this.graceStart&&(r=t.findGraphicalNoteFromGraceNote(this.slur.StartNote)),r||(r=t.findEndTieGraphicalNoteFromNoteWithStartingSlur(this.slur.StartNote,this.slur));var i=n.findGraphicalNoteFromNote(this.slur.EndNote);!i&&this.graceEnd&&(i=n.findGraphicalNoteFromGraceNote(this.slur.EndNote));var a=t.parentMeasure.ParentStaffLine,o=a.SkyBottomLineCalculator;this.calculatePlacement(o,a);var s,l=this.calculateStartAndEnd(r,i,a,e,o),u=l.startX,c=l.endX,h=l.startY,d=l.endY,f=e.SlurTangentMinAngle,p=e.SlurTangentMaxAngle;if(this.placement===PlacementEnum.Above){h-=e.SlurNoteHeadYOffset,d-=e.SlurNoteHeadYOffset;var v=new PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,h);r?v.x+=this.staffEntries[0].PositionAndShape.BorderRight:v.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(v.x+=n.PositionAndShape.RelativePosition.x);var m=new PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,d);if(i?m.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:m.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&(m.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),0===(s=this.calculateTopPoints(v,m,a,o)).length){var g=new PointF2D((m.x-v.x)/2+v.x,(m.y-v.y)/2+v.y);s.push(g)}var y=Math.atan((d-h)/(c-u)),b=new PointF2D(0,0),A=new PointF2D(c-u,-(d-h)),S=Matrix2D.getRotationMatrix(y),x=S.getTransposeMatrix();A=S.vectorMultiplication(A);var w=this.calculateTranslatedAndRotatedPointListAbove(s,u,h,S),_=this.calculateMaxLeftSlope(w,b,A),E=this.calculateMaxRightSlope(w,b,A),k=b.y-b.x*_,C=A.y-A.x*E,M=new PointF2D,P=!1;Math.abs(Math.abs(_)-Math.abs(E))<1e-4?(M.x=A.x/2,M.y=0,P=!0):(M.x=(C-k)/(_-E),M.y=_*M.x+k);var I=this.calculateHeightWidthRatio(A.x,w),T=0,B=0;if(Math.abs(I)>.001){var R=Math.abs(_/(2*I)),L=Math.abs(_);_-=T=Math.max(0,L*(Math.min(10,R-1)/10));var N=Math.abs(E/(2*I)),F=Math.abs(E);E+=B=Math.max(0,F*(Math.min(10,N-1)/10))}var D=f,O=-f;if(!P){var V=this.calculateAngles(f,_,E,p);D=V.startAngle,O=V.endAngle}var z=this.calculateControlPoints(A.x,D,O,w,I,h,d),G=z.startControlPoint,H=z.endControlPoint;(G=x.vectorMultiplication(G)).x+=u,G.y=-G.y+h,(H=x.vectorMultiplication(H)).x+=u,H.y=-H.y+h,this.bezierStartPt=new PointF2D(u,h-T),this.bezierStartControlPt=new PointF2D(G.x,G.y-T),this.bezierEndControlPt=new PointF2D(H.x,H.y-B),this.bezierEndPt=new PointF2D(c,d-B);for(var U=a.SkyLine.length,j=o.getLeftIndexForPointX(this.bezierStartPt.x,U),Q=o.getLeftIndexForPointX(this.bezierEndPt.x,U),Y=this.bezierEndPt.x-this.bezierStartPt.x,W=o.SamplingUnit,X=j;X<Q;X++){var K=X/W-this.bezierStartPt.x,J=this.calculateCurvePointAtIndex(Math.abs(K)/Y),$=o.getLeftIndexForPointX(J.x,U);$>=j&&(a.SkyLine[$]=Math.min(a.SkyLine[$],J.y)),++$<U&&(a.SkyLine[$]=Math.min(a.SkyLine[$],J.y))}}else{h+=e.SlurNoteHeadYOffset,d+=e.SlurNoteHeadYOffset;var q=new PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,h);r?q.x+=this.staffEntries[0].PositionAndShape.BorderRight:q.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(q.x+=n.PositionAndShape.RelativePosition.x);var Z=new PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,d);if(i?Z.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:Z.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&(Z.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),0===(s=this.calculateBottomPoints(q,Z,a,o)).length){var ee=new PointF2D((Z.x-q.x)/2+q.x,(Z.y-q.y)/2+q.y);s.push(ee)}var te=Math.atan((d-h)/(c-u)),ne=new PointF2D(0,0),re=new PointF2D(c-u,d-h),ie=Matrix2D.getRotationMatrix(-te),ae=ie.getTransposeMatrix();re=ie.vectorMultiplication(re);var oe=this.calculateTranslatedAndRotatedPointListBelow(s,u,h,ie),se=this.calculateMaxLeftSlope(oe,ne,re),le=this.calculateMaxRightSlope(oe,ne,re),ue=ne.y-ne.x*se,ce=re.y-re.x*le,he=new PointF2D,de=!1;Math.abs(Math.abs(se)-Math.abs(le))<1e-4?(he.x=re.x/2,he.y=0,de=!0):(he.x=(ce-ue)/(se-le),he.y=se*he.x+ue);var fe=this.calculateHeightWidthRatio(re.x,oe),pe=0,ve=0;if(Math.abs(fe)>.001){var me=Math.abs(se/(2*fe)),ge=Math.abs(se);se-=pe=Math.max(0,ge*(Math.min(10,me-1)/10));var ye=Math.abs(le/(2*fe)),be=Math.abs(le);le+=ve=Math.max(0,be*(Math.min(10,ye-1)/10))}var Ae=f,Se=-f;if(!de){var xe=this.calculateAngles(f,se,le,p);Ae=xe.startAngle,Se=xe.endAngle}var we=this.calculateControlPoints(re.x,Ae,Se,oe,fe,h,d),_e=we.startControlPoint,Ee=we.endControlPoint;(_e=ae.vectorMultiplication(_e)).x+=u,_e.y+=h,(Ee=ae.vectorMultiplication(Ee)).x+=u,Ee.y+=h,this.bezierStartPt=new PointF2D(u,h+pe),this.bezierStartControlPt=new PointF2D(_e.x,_e.y+pe),this.bezierEndControlPt=new PointF2D(Ee.x,Ee.y+ve),this.bezierEndPt=new PointF2D(c,d+ve);for(var ke=a.BottomLine.length,Ce=o.getLeftIndexForPointX(this.bezierStartPt.x,ke),Me=o.getLeftIndexForPointX(this.bezierEndPt.x,ke),Pe=this.bezierEndPt.x-this.bezierStartPt.x,Ie=o.SamplingUnit,Te=Ce;Te<Me;Te++){var Be=Te/Ie-this.bezierStartPt.x,Re=this.calculateCurvePointAtIndex(Math.abs(Be)/Pe),Le=o.getLeftIndexForPointX(Re.x,ke);Le>=Ce&&(a.BottomLine[Le]=Math.max(a.BottomLine[Le],Re.y)),++Le<ke&&(a.BottomLine[Le]=Math.max(a.BottomLine[Le],Re.y))}}}},{key:"calculateStartAndEnd",value:function(e,t,n,r,i){var a=0,o=0,s=0,l=0;if(e){a=e.PositionAndShape.RelativePosition.x+e.parentVoiceEntry.parentStaffEntry.PositionAndShape.RelativePosition.x+e.parentVoiceEntry.parentStaffEntry.parentMeasure.PositionAndShape.RelativePosition.x,this.graceStart&&(a+=e.parentVoiceEntry.parentStaffEntry.staffEntryParent.PositionAndShape.RelativePosition.x);var u=e.parentVoiceEntry;o=this.placement===PlacementEnum.Above?u.PositionAndShape.RelativePosition.y+u.PositionAndShape.BorderTop:u.PositionAndShape.RelativePosition.y+u.PositionAndShape.BorderBottom,u.parentVoiceEntry.StemDirection===StemDirectionType.Down&&this.placement===PlacementEnum.Below&&(a-=.5),u.parentVoiceEntry.StemDirection===StemDirectionType.Up&&this.placement===PlacementEnum.Above&&(a+=.5)}else a=0;if(t){s=t.PositionAndShape.RelativePosition.x+t.parentVoiceEntry.parentStaffEntry.PositionAndShape.RelativePosition.x+t.parentVoiceEntry.parentStaffEntry.parentMeasure.PositionAndShape.RelativePosition.x,this.graceEnd&&(s+=t.parentVoiceEntry.parentStaffEntry.staffEntryParent.PositionAndShape.RelativePosition.x);var c=t.parentVoiceEntry;l=this.placement===PlacementEnum.Above?c.PositionAndShape.RelativePosition.y+c.PositionAndShape.BorderTop:c.PositionAndShape.RelativePosition.y+c.PositionAndShape.BorderBottom,c.parentVoiceEntry.StemDirection===StemDirectionType.Down&&this.placement===PlacementEnum.Below&&(s-=.5),c.parentVoiceEntry.StemDirection===StemDirectionType.Up&&this.placement===PlacementEnum.Above&&(s+=.5)}else s=n.PositionAndShape.Size.width;return e||t||(o=-1.5,l=-1.5),e||(o=this.placement===PlacementEnum.Above?l-1:l+1),t||(l=this.placement===PlacementEnum.Above?o-1:o+1),this.slur.startNoteHasMoreStartingSlurs()&&this.slur.isSlurLonger()&&(this.placement===PlacementEnum.Above?o-=r.SlursStartingAtSameStaffEntryYOffset:o+=r.SlursStartingAtSameStaffEntryYOffset),this.slur.endNoteHasMoreEndingSlurs()&&this.slur.isSlurLonger()&&(this.placement===PlacementEnum.Above?l-=r.SlursStartingAtSameStaffEntryYOffset:l+=r.SlursStartingAtSameStaffEntryYOffset),this.placement===PlacementEnum.Above?(o=Math.min(o,1.5),l=Math.min(l,1.5)):(o=Math.max(o,n.StaffHeight-1.5),l=Math.max(l,n.StaffHeight-1.5)),{startX:a,startY:o,endX:s,endY:l}}},{key:"calculatePlacement",value:function(e,t){if(this.rules.SlurPlacementFromXML)this.placement=this.slur.PlacementXml;else{for(var n=0,r=this.staffEntries.length;n<r;++n){if(this.staffEntries[n].parentMeasure.hasMultipleVoices())return void(this.slur.StartNote.ParentVoiceEntry.ParentVoice instanceof LinkedVoice||this.slur.EndNote.ParentVoiceEntry.ParentVoice instanceof LinkedVoice?this.placement=PlacementEnum.Below:this.placement=PlacementEnum.Above)}for(var i=0,a=this.staffEntries.length;i<a;++i){if(this.staffEntries[i].LyricsEntries.length>0)return void(this.placement=PlacementEnum.Above)}var o=this.staffEntries[0],s=this.staffEntries[this.staffEntries.length-1],l=o.graphicalVoiceEntries[0].parentVoiceEntry.StemDirection;if(l===s.graphicalVoiceEntries[0].parentVoiceEntry.StemDirection)this.placement=l===StemDirectionType.Up?PlacementEnum.Below:PlacementEnum.Above;else{var u=o.PositionAndShape.BorderLeft+o.PositionAndShape.RelativePosition.x+o.parentMeasure.PositionAndShape.RelativePosition.x,c=s.PositionAndShape.BorderRight+s.PositionAndShape.RelativePosition.x+s.parentMeasure.PositionAndShape.RelativePosition.x;this.graceStart&&(u+=s.PositionAndShape.RelativePosition.x),this.graceEnd&&(c+=s.staffEntryParent.PositionAndShape.RelativePosition.x);var h=-1*e.getSkyLineMinInRange(u,c),d=e.getBottomLineMaxInRange(u,c)-t.StaffHeight;this.placement=d>h?PlacementEnum.Above:PlacementEnum.Below}}}},{key:"calculateTopPoints",value:function(e,t,n,r){var i=[],a=r.getRightIndexForPointX(e.x,n.SkyLine.length),o=r.getLeftIndexForPointX(t.x,n.SkyLine.length);a<0&&(a=0),o>=n.SkyLine.length&&(o=n.SkyLine.length-1);for(var s=a;s<o;s++){var l=n.SkyLine[s];if(0!==l){var u=new PointF2D((.5+s)/r.SamplingUnit,l);i.push(u)}}return i}},{key:"calculateBottomPoints",value:function(e,t,n,r){var i=[],a=r.getRightIndexForPointX(e.x,n.BottomLine.length),o=r.getLeftIndexForPointX(t.x,n.BottomLine.length);a<0&&(a=0),o>=n.BottomLine.length&&(o=n.BottomLine.length-1);for(var s=a;s<o;s++){var l=n.BottomLine[s];if(0!==l){var u=new PointF2D((.5+s)/r.SamplingUnit,l);i.push(u)}}return i}},{key:"calculateMaxLeftSlope",value:function(e,t,n){for(var r=-Number.MAX_VALUE,i=t.x,a=t.y,o=0;o<e.length;o++)Math.abs(e[o].y-Number.MAX_VALUE)<1e-4||Math.abs(e[o].y- -Number.MAX_VALUE)<1e-4||(r=Math.max(r,(e[o].y-a)/(e[o].x-i)));return r=Math.max(r,Math.abs(n.y-a)/(n.x-i)),r=Math.min(r,5.6713)}},{key:"calculateMaxRightSlope",value:function(e,t,n){for(var r=Number.MAX_VALUE,i=n.x,a=n.y,o=0;o<e.length;o++)Math.abs(e[o].y-Number.MAX_VALUE)<1e-4||Math.abs(e[o].y- -Number.MAX_VALUE)<1e-4||(r=Math.min(r,(a-e[o].y)/(i-e[o].x)));return r=Math.min(r,(a-t.y)/(i-t.x)),r=Math.max(r,-5.6713)}},{key:"getPointListMaxY",value:function(e){for(var t=-Number.MAX_VALUE,n=0,r=e.length;n<r;++n){var i=e[n];Math.abs(i.y- -Number.MAX_VALUE)<1e-4||Math.abs(i.y-Number.MAX_VALUE)<1e-4||(t=Math.max(t,i.y))}return t}},{key:"calculateTranslatedAndRotatedPointListAbove",value:function(e,t,n,r){for(var i=[],a=0;a<e.length;a++)if(!(Math.abs(e[a].y-Number.MAX_VALUE)<1e-4||Math.abs(e[a].y- -Number.MAX_VALUE)<1e-4)){var o=new PointF2D(e[a].x-t,-(e[a].y-n));o=r.vectorMultiplication(o),i.push(o)}return i}},{key:"calculateTranslatedAndRotatedPointListBelow",value:function(e,t,n,r){for(var i=[],a=0;a<e.length;a++)if(!(Math.abs(e[a].y-Number.MAX_VALUE)<1e-4||Math.abs(e[a].y- -Number.MAX_VALUE)<1e-4)){var o=new PointF2D(e[a].x-t,e[a].y-n);o=r.vectorMultiplication(o),i.push(o)}return i}},{key:"calculateHeightWidthRatio",value:function(e,t){return 0===t.length?0:Math.max(0,this.getPointListMaxY(t))/e}},{key:"calculateControlPoints",value:function(e,t,r,i,a,o,s){var l=this.rules.SlurHeightFactor,u=1,c=this.rules.SlurHeightFlattenLongSlursCutoffAngle,h=this.rules.SlurHeightFlattenLongSlursCutoffWidth;t>c&&e>h&&(u+=e/70*this.rules.SlurHeightFlattenLongSlursFactorByWidth,l/=u*=1+t/30*this.rules.SlurHeightFlattenLongSlursFactorByAngle);var d=Math.min(.5,Math.max(.1,1.7*t/80*l*Math.pow(Math.max(a,.05),.4))),f=Math.min(.5,Math.max(.1,1.7*-r/80*l*Math.pow(Math.max(a,.05),.4))),p=new PointF2D;p.x=e*d*Math.cos(t*n.degreesToRadiansFactor),p.y=e*d*Math.sin(t*n.degreesToRadiansFactor);var v=new PointF2D;v.x=e-e*f*Math.cos(r*n.degreesToRadiansFactor),v.y=-e*f*Math.sin(r*n.degreesToRadiansFactor);for(var m=p.y-v.y;this.rules.SlurMaximumYControlPointDistance&&Math.abs(m)>this.rules.SlurMaximumYControlPointDistance;)m<0?(p.y+=1,v.y-=1):(p.y-=1,v.y+=1),m=p.y-v.y;return{startControlPoint:p,endControlPoint:v}}},{key:"calculateAngles",value:function(e,t,r,i){var a=Math.atan(t)/n.degreesToRadiansFactor;t>0?a+=20:a-=20;var o=Math.atan(r)/n.degreesToRadiansFactor;return r<0?o-=20:o+=20,{startAngle:Math.min(Math.max(e,a),i),endAngle:Math.max(Math.min(-e,o),-i)}}}],[{key:"Compare",value:function(e,t){if(e.staffEntries.length<1)return-1;if(t.staffEntries.length<1)return 1;var n=Fraction$1.minus(e.staffEntries[e.staffEntries.length-1].getAbsoluteTimestamp(),e.staffEntries[0].getAbsoluteTimestamp()),r=Fraction$1.minus(t.staffEntries[t.staffEntries.length-1].getAbsoluteTimestamp(),t.staffEntries[0].getAbsoluteTimestamp());return n.RealValue>r.RealValue?1:r.RealValue>n.RealValue?-1:0}}]),n}(GraphicalCurve),GraphicalSlur=_GraphicalSlur;GraphicalSlur.degreesToRadiansFactor=Math.PI/180;var GraphicalPedal=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).getPedal=e,i.setSymbol(),i.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),r),i}return _createClass2(n,[{key:"setSymbol",value:function(){!this.getPedal.IsLine&&this.getPedal.IsSign?this.pedalSymbol=MusicSymbol.PEDAL_SYMBOL:this.getPedal.IsLine&&this.getPedal.IsSign?this.pedalSymbol=MusicSymbol.PEDAL_MIXED:this.pedalSymbol=MusicSymbol.PEDAL_BRACKET}}]),n}(GraphicalObject),VexFlowPedal=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];switch(_classCallCheck2(this,n),(i=t.call(this,e,r)).vfStyle=Vex.Flow.PedalMarking.Styles.BRACKET,i.ChangeBegin=!1,i.ChangeEnd=!1,i.line=-3,i.EndSymbolPositionAndShape=void 0,i.ChangeBegin=e.ChangeBegin,i.ChangeEnd=e.ChangeEnd,i.pedalSymbol){case MusicSymbol.PEDAL_SYMBOL:i.vfStyle=Vex.Flow.PedalMarking.Styles.TEXT,i.EndSymbolPositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),r);break;case MusicSymbol.PEDAL_MIXED:i.vfStyle=a&&o?Vex.Flow.PedalMarking.Styles.BRACKET_OPEN_BOTH:a?Vex.Flow.PedalMarking.Styles.BRACKET_OPEN_BEGIN:o?Vex.Flow.PedalMarking.Styles.MIXED_OPEN_END:Vex.Flow.PedalMarking.Styles.MIXED;break;case MusicSymbol.PEDAL_BRACKET:default:i.vfStyle=a&&o?Vex.Flow.PedalMarking.Styles.BRACKET_OPEN_BOTH:a?Vex.Flow.PedalMarking.Styles.BRACKET_OPEN_BEGIN:o?Vex.Flow.PedalMarking.Styles.BRACKET_OPEN_END:Vex.Flow.PedalMarking.Styles.BRACKET}return i}return _createClass2(n,[{key:"setStartNote",value:function(e){if(!e)return!1;var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote)return this.startNote=r.vfStaveNote,this.startVfVoiceEntry=r,!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"setEndNote",value:function(e){if(!e)return!1;var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote)return this.endNote=r.vfStaveNote,this.endVfVoiceEntry=r,!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"setEndMeasure",value:function(e){this.endMeasure=e}},{key:"CalculateBoundingBox",value:function(){}},{key:"setLine",value:function(e){this.line=e}},{key:"getPedalMarking",value:function(){var e,t,n,r,i=new Vex.Flow.PedalMarking([this.startNote,this.endNote]);return this.endMeasure&&i.setEndStave(this.endMeasure.getVFStave()),i.setStyle(this.vfStyle),i.setLine(this.line),i.setCustomText(this.DepressText,this.ReleaseText),(null===(e=this.endVfVoiceEntry)||void 0===e?void 0:e.parentStaffEntry)!==(null===(t=this.endVfVoiceEntry)||void 0===t||null===(n=t.parentStaffEntry)||void 0===n||null===(r=n.parentMeasure)||void 0===r?void 0:r.staffEntries.last())&&this.endVfVoiceEntry||(i.EndsStave=!0),i.ChangeBegin=this.ChangeBegin,i.ChangeEnd=this.ChangeEnd,i}}]),n}(GraphicalPedal),GraphicalWavyLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this)).getWavyLine=e,i.PositionAndShape=new BoundingBox$1(_assertThisInitialized2(i),r),i}return _createClass2(n)}(GraphicalObject),VexflowVibratoBracket=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return _classCallCheck2(this,n),(i=t.call(this,e,r)).line=1,i.isVibrato=!1,i.toEndOfStopStave=!1,i.isVibrato=a,i}return _createClass2(n,[{key:"ToEndOfStopStave",get:function(){return this.toEndOfStopStave}},{key:"setStartNote",value:function(e){var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote)return this.startNote=r.vfStaveNote,this.startVfVoiceEntry=r,!0}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"setEndNote",value:function(e){var t,n=_createForOfIteratorHelper(e.graphicalVoiceEntries);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(null!=r&&r.vfStaveNote){this.endNote=r.vfStaveNote,this.endVfVoiceEntry=r;var i=this.endVfVoiceEntry.parentStaffEntry.parentMeasure.staffEntries,a=i[i.length-1];return this.toEndOfStopStave=a===this.endVfVoiceEntry.parentStaffEntry,!0}}}catch(err){n.e(err)}finally{n.f()}return!1}},{key:"CalculateBoundingBox",value:function(){var e=this.getVibratoBracket();this.boundingBox.Size.height=.2*e.render_options.wave_height}},{key:"getVibratoBracket",value:function(){var e=new Vex.Flow.VibratoBracket({start:this.startNote,stop:this.endNote,toEndOfStopStave:this.toEndOfStopStave});return e.setLine(this.line),this.isVibrato?e.render_options.vibrato_width=20:e.render_options.wave_girth=4,e}}]),n}(GraphicalWavyLine),VF=Vex.Flow,VexFlowMusicSheetCalculator=function(t){_inherits2(r,t);var n=_createSuper2(r);function r(e){var t,i,a,o,s,l;if(_classCallCheck2(this,r),(a=n.call(this)).beamsNeedUpdate=!1,a.isFirstZero=!1,a.rules=e,MusicSheetCalculator.symbolFactory=new VexFlowGraphicalSymbolFactory,MusicSheetCalculator.TextMeasurer=new VexFlowTextMeasurer(a.rules),MusicSheetCalculator.stafflineNoteCalculator=new VexflowStafflineNoteCalculator(a.rules),"gonville"===(null===(t=a.rules.DefaultVexFlowNoteFont)||void 0===t?void 0:t.toLowerCase()))Vex.Flow.DEFAULT_FONT_STACK=[null===(o=Vex.Flow.Fonts)||void 0===o?void 0:o.Gonville,null===(s=Vex.Flow.Fonts)||void 0===s?void 0:s.Bravura,null===(l=Vex.Flow.Fonts)||void 0===l?void 0:l.Custom];else if("petaluma"===(null===(i=a.rules.DefaultVexFlowNoteFont)||void 0===i?void 0:i.toLowerCase())){var u,c,h;Vex.Flow.DEFAULT_FONT_STACK=[null===(u=Vex.Flow.Fonts)||void 0===u?void 0:u.Petaluma,null===(c=Vex.Flow.Fonts)||void 0===c?void 0:c.Gonville,null===(h=Vex.Flow.Fonts)||void 0===h?void 0:h.Bravura]}return a}return _createClass2(r,[{key:"clearRecreatedObjects",value:function(){_get(_getPrototypeOf2(r.prototype),"clearRecreatedObjects",this).call(this),MusicSheetCalculator.stafflineNoteCalculator=new VexflowStafflineNoteCalculator(this.rules);var e,t=_createForOfIteratorHelper(this.graphicalMusicSheet.MeasureList);try{for(t.s();!(e=t.n()).done;){var n,i=_createForOfIteratorHelper(e.value);try{for(i.s();!(n=i.n()).done;){var a=n.value;null==a||a.clean()}}catch(err){i.e(err)}finally{i.f()}}}catch(err){t.e(err)}finally{t.f()}}},{key:"formatMeasures",value:function(){var e,t=_createForOfIteratorHelper(this.graphicalMusicSheet.MeasureList);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n&&n[0]){n[0].format();var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){var a,o=r.value,s=_createForOfIteratorHelper(o.staffEntries);try{for(s.s();!(a=s.n()).done;){a.value.calculateXPosition()}}catch(err){s.e(err)}finally{s.f()}o.finalizeBeams()}}catch(err){i.e(err)}finally{i.f()}}}}catch(err){t.e(err)}finally{t.f()}this.beamsNeedUpdate=!1}},{key:"calculateMeasureXLayout",value:function(e){var t,n=[],r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i&&n.push(i)}}catch(err){r.e(err)}finally{r.f()}if(0===n.length)return 0;e=n;var a,o=[],s=new VF.Formatter({softmaxFactor:this.rules.SoftmaxFactorVexFlow}),l=e[0].staffEntries.length,u=1,c=_createForOfIteratorHelper(e);try{for(c.s();!(a=c.n()).done;){var h=a.value;if(h){var d,f=0,p=_createForOfIteratorHelper(h.staffEntries);try{for(p.s();!(d=p.n()).done;){f+=d.value.setMaxAccidentals()}}catch(err){p.e(err)}finally{p.f()}h.parentSourceMeasure.ImplicitMeasure&&(l=Math.max(h.staffEntries.length,l),u=Math.max(h.staffEntries.length+f,u));var v=h.vfVoices,m=[];for(var g in v)v.hasOwnProperty(g)&&(m.push(v[g]),o.push(v[g]));0!==m.length?s.joinVoices(m):loglevelExports.debug("Found a measure with no voices. Continuing anyway.",v)}}}catch(err){c.e(err)}finally{c.f()}var y=12,b=e[0].parentSourceMeasure;if(o.length>0){y=s.preCalculateMinTotalWidth(o)/unitInPixels*this.rules.VoiceSpacingMultiplierVexflow+this.rules.VoiceSpacingAddendVexflow+.3*l,null!=b&&b.ImplicitMeasure&&(y=b.Duration.RealValue/b.ActiveTimeSignature.RealValue*y,l>1&&(y+=.3*u*1.5),y*=this.rules.PickupMeasureWidthMultiplier),MusicSheetCalculator.setMeasuresMinStaffEntriesWidth(e,y);var A,S=function(e,t){s.formatToStave(o,t.getVFStave())},x=function(e,t){s.formatToStave(o,t.getVFStave(),{align_rests:!0,context:void 0})},w=_createForOfIteratorHelper(e);try{for(w.s();!(A=w.n()).done;){var _=A.value;if(this.rules.AlignRests===AlignRestOption.Never)_.formatVoices=S;else if(this.rules.AlignRests===AlignRestOption.Always)_.formatVoices=x;else if(this.rules.AlignRests===AlignRestOption.Auto){var E,k=!1,C=_createForOfIteratorHelper(_.staffEntries);try{for(C.s();!(E=C.n()).done;){var M,P=E.value,I=0,T=0,B=_createForOfIteratorHelper(P.graphicalVoiceEntries);try{for(B.s();!(M=B.n()).done;){var R=M.value;if(R.parentVoiceEntry.IsGrace||R&&R.notes&&R.notes[0]&&R.notes[0].sourceNote&&R.notes[0].sourceNote.PrintObject&&I++,R&&R.notes&&R.notes[0]&&R.notes[0].sourceNote&&R.notes[0].sourceNote.isRest()&&R.notes[0].sourceNote.PrintObject&&T++,I>1&&T>=1){k=!0;break}}}catch(err){B.e(err)}finally{B.f()}if(k)break}}catch(err){C.e(err)}finally{C.f()}_.formatVoices=k?x:S}if(_===e[0]){var L=_;L.formatVoices(y*unitInPixels,L)}}}catch(err){w.e(err)}finally{w.f()}}var N,F=_createForOfIteratorHelper(e);try{for(F.s();!(N=F.n()).done;){var D=N.value;if(D){var O,V=_createForOfIteratorHelper(D.staffEntries);try{for(V.s();!(O=V.n()).done;){O.value.calculateXPosition()}}catch(err){V.e(err)}finally{V.f()}}}}catch(err){F.e(err)}finally{F.f()}var z,G=_createForOfIteratorHelper(e);try{for(G.s();!(z=G.n()).done;){var H=z.value;if(H){var U=H.vfVoices,j=[];for(var Q in U)U.hasOwnProperty(Q)&&j.push(U[Q]);0!==j.length?s.joinVoices(j):loglevelExports.debug("Found a measure with no voices. Continuing anyway.",U)}}}catch(err){G.e(err)}finally{G.f()}return y}},{key:"calculateElongationFactor",value:function(e,t,n,r,i,a,o,s){var l,u=i,c=0,h=_createForOfIteratorHelper(e);try{for(h.s();!(l=h.n()).done;){var d=l.value,f=d.GraphicalLabel.Label.textAlignment,p=o,v=s;if(d instanceof GraphicalLyricEntry&&d.ParentLyricWord){d.LyricsEntry.SyllableIndex>0&&(p=this.rules.BetweenSyllableMinimumDistance,TextAlignment.IsCenterAligned(f)&&(p+=1));var m=d.ParentLyricWord.GetLyricWord.Syllables;m.length>1&&d.LyricsEntry.SyllableIndex<m.length-1&&(void 0===this.dashSpace&&(this.dashSpace=1.5),v-=this.dashSpace)}var g=d instanceof GraphicalLyricEntry?d.GraphicalLabel.PositionAndShape:d.PositionAndShape,y=g.Size.width,b=t.PositionAndShape.RelativePosition.x+g.BorderMarginLeft;void 0!==n[c]&&n[c].extend;var A=void 0,S=void 0;n[c]&&(S=b-n[c].xPosition);var x=void 0,w=void 0,_=r*i;TextAlignment.IsCenterAligned(f)?(x=_-b,w=y/2-(v/=4),n[c]&&(A=n[c].labelWidth/2+y/2+p)):TextAlignment.IsLeft(f)&&(x=_-b,w=y-v,n[c]&&(A=n[c].labelWidth+p));var E,k=w/x,C=1;if(d instanceof GraphicalLyricEntry&&d.LyricsEntry){if(n[c]){var M=n[c].sourceNoteDuration;C=A/S,M.Denominator>4&&(C*=1.1)}}else n[c]&&(C=A/S);E=Math.max(k,C),u=Math.max(u,E);var P=Math.max(A-S||0,0);n[c]&&(P+=n[c].cumulativeOverlap),n[c]={cumulativeOverlap:P,extend:d instanceof GraphicalLyricEntry&&d.LyricsEntry.extend,labelWidth:y,measureNumber:a,sourceNoteDuration:d instanceof GraphicalLyricEntry&&(d.LyricsEntry&&d.LyricsEntry.Parent.Notes[0].Length),text:d instanceof GraphicalLyricEntry?d.LyricsEntry.Text:d.GraphicalLabel.Label.text,xPosition:b},c++}}catch(err){h.e(err)}finally{h.f()}return u}},{key:"calculateElongationFactorFromStaffEntries",value:function(e,t,n,r){var i,a=n,o={},s={},l=_createForOfIteratorHelper(e);try{for(l.s();!(i=l.n()).done;){var u=i.value;u.LyricsEntries.length>0&&(a=this.calculateElongationFactor(u.LyricsEntries,u,o,t,a,r,this.rules.HorizontalBetweenLyricsDistance,this.rules.LyricOverlapAllowedIntoNextMeasure)),u.graphicalChordContainers.length>0&&(a=this.calculateElongationFactor(u.graphicalChordContainers,u,s,t,a,r,this.rules.ChordSymbolXSpacing,this.rules.ChordOverlapAllowedIntoNextMeasure))}}catch(err){l.e(err)}finally{l.f()}return a}},{key:"calculateMeasureWidthFromStaffEntries",value:function(e,t){var n,r=1;if(!(null===(n=window.GYM)||void 0===n?void 0:n.multitrack)){var i,a=_createForOfIteratorHelper(e);try{for(a.s();!(i=a.n()).done;){var o=i.value;o&&0!==o.staffEntries.length&&(r=this.calculateElongationFactorFromStaffEntries(o.staffEntries,t,r,o.MeasureNumber),r=1)}}catch(err){a.e(err)}finally{a.f()}}return t*(r=Math.min(r,this.rules.MaximumLyricsElongationFactor))}},{key:"createGraphicalTie",value:function(e,t,n,r,i){return new GraphicalTie(e,r,i)}},{key:"updateStaffLineBorders",value:function(e){e.SkyBottomLineCalculator.updateStaffLineBorders()}},{key:"graphicalMeasureCreatedCalculations",value:function(e){e.rules=this.rules,e.graphicalMeasureCreatedCalculations()}},{key:"layoutVoiceEntry",value:function(e,t,n,r){for(var i=0;i<t.length;i++)t[i]=MusicSheetCalculator.stafflineNoteCalculator.positionNote(t[i])}},{key:"layoutStaffEntry",value:function(e){e.parentMeasure.layoutStaffEntry(e)}},{key:"initGraphicalMeasuresCreation",value:function(){}},{key:"layoutArticulationMarks",value:function(e,t,n){}},{key:"layoutGraphicalTie",value:function(e,t,n){var r=e.StartNote,i=e.EndNote,a=void 0,o=0;r&&r.vfnote&&r.vfnote.length>=2&&(a=r.vfnote[0],o=r.vfnote[1]);var s=void 0,l=0;if(i&&i.vfnote&&i.vfnote.length>=2&&(s=i.vfnote[0],l=i.vfnote[1]),t){if(a){var u=new VF.StaveTie({first_indices:[o],first_note:a}),c=r.parentVoiceEntry.parentStaffEntry.parentMeasure;if(s){var h,d,f;"w"===s.getDuration()&&(null===(h=s.keyProps)||void 0===h||null===(d=h[0])||void 0===d?void 0:d.line)>=3&&s.setStemDirection(-1);var p,v,m=(null===(f=window.GYM)||void 0===f?void 0:f.tieDirection)||0;if(1===Math.abs(m))(null===(p=s.keyProps)||void 0===p||null===(v=p[0])||void 0===v?void 0:v.line)>=3?s.setStemDirection(-m):s.setStemDirection(m);null==u||u.setDirection(s.getStemDirection())}if(c.vfTies.length>0){var g=c.vfTies[0].direction;null==u||u.setDirection(g?-g:1)}c.addStaveTie(u,e)}if(s){var y=new VF.StaveTie({last_indices:[l],last_note:s}),b=i.parentVoiceEntry.parentStaffEntry.parentMeasure;if(b.vfTies.length>0){var A=b.vfTies[0].direction;null==y||y.setDirection(A?-A:1)}b.addStaveTie(y,e)}}else if(a||s){var S,x;if(n)if("S"===e.Tie.Type){var w=e.StartNote.sourceNote,_=e.EndNote.sourceNote,E=1;w.FretNumber>_.FretNumber&&(E=-1),x=new VF.TabSlide({first_indices:[o],first_note:a,last_indices:[l],last_note:s},E)}else x=new VF.TabTie({first_indices:[o],first_note:a,last_indices:[l],last_note:s},e.Tie.Type);else{x=new VF.StaveTie({first_indices:[o],first_note:a,last_indices:[l],last_note:s});var k=e.Tie.getTieDirection(r.sourceNote);k===PlacementEnum.Below?x.setDirection(1):k===PlacementEnum.Above&&x.setDirection(-1);try{var C,M;Math.abs((null===(C=a)||void 0===C?void 0:C.getTieRightX())-(null===(M=s)||void 0===M?void 0:M.getTieLeftX()))<10&&(x.render_options.first_x_shift=-3,x.render_options.last_x_shift=3)}catch(T){console.log(T)}}var P=i.parentVoiceEntry.parentStaffEntry.parentMeasure,I=(null===(S=window.GYM)||void 0===S?void 0:S.graceCustom)||!1;I&&x.setDirection(I.direction),P.addStaveTie(x,e)}}},{key:"calculateDynamicExpressionsForMultiExpression",value:function(t,n,r){if(!(n<this.rules.MinMeasureToDrawIndex||n>this.rules.MaxMeasureToDrawIndex)){var i=t.AbsoluteTimestamp,a=this.graphicalMusicSheet.MeasureList[n],o=a[r].ParentStaffLine,s=a[r];if(o){var l=this.getRelativePositionInStaffLineFromTimestamp(i,r,o,null==o?void 0:o.isPartOfMultiStaffInstrument());if(l.x<=0&&(l.x=s.beginInstructionsWidth+this.rules.RhythmRightMargin),t.InstantaneousDynamic){var u=new VexFlowInstantaneousDynamicExpression(t.InstantaneousDynamic,o,s);this.calculateGraphicalInstantaneousDynamicExpression(u,l,i),this.dynamicExpressionMap.set(i.RealValue,u.PositionAndShape)}if(t.StartingContinuousDynamic){var c=t.StartingContinuousDynamic,h=new VexFlowContinuousDynamicExpression(t.StartingContinuousDynamic,o,s.parentSourceMeasure);if(h.StartMeasure=s,!h.IsVerbal&&c.EndMultiExpression)try{this.calculateGraphicalContinuousDynamic(h,l),h.updateSkyBottomLine()}catch(e){}else h.IsVerbal?this.calculateGraphicalVerbalContinuousDynamic(h,l):loglevelExports.warn("This continuous dynamic is not covered. measure"+t.SourceMeasureParent.MeasureNumber)}}}}},{key:"createMetronomeMark",value:function(e,t){var n,r,i,a=Math.max(e.ParentMultiTempoExpression.SourceMeasureParent.MeasureNumber-1,0),o=t||a,s=Math.max(e.StaffNumber-1,0),l=this.graphicalMusicSheet.MeasureList[o][s].getVFStave(),u="q";if(e.beatUnit){var c=NoteTypeHandler.getNoteDurationFromType(e.beatUnit);u=VexFlowConverter.durations(c,!1)[0]}var h=this.rules.MetronomeMarkYShift,d=!1,f=[];if(e.parentMeasure){var p,v=_createForOfIteratorHelper(e.parentMeasure.StaffLinkedExpressions);try{for(v.s();!(p=v.n()).done;){var m,g=_createForOfIteratorHelper(p.value);try{for(g.s();!(m=g.n()).done;){var y=m.value;y&&y instanceof UnknownExpression&&f.push(y)}}catch(err){g.e(err)}finally{g.f()}}}catch(err){v.e(err)}finally{v.f()}var b,A=_createForOfIteratorHelper(e.parentMeasure.TempoExpressions);try{for(A.s();!(b=A.n()).done;){var S,x=b.value,w=(null===(S=x.InstantaneousTempo)||void 0===S?void 0:S.Enum)===TempoEnum.metronomeMark;if(!e.beatUnit&&x.InstantaneousTempo.beatUnit){var _=NoteTypeHandler.getNoteDurationFromType(e.beatUnit);u=VexFlowConverter.durations(_,!1)[0]}if(x.getPlacementOfFirstEntry()===PlacementEnum.Above&&!w){d=!0;break}}}catch(err){A.e(err)}finally{A.f()}}d&&(h-=1.4);var E,k=null===(n=this.graphicalMusicSheet.MeasureList[0][0].ParentStaffLine)||void 0===n?void 0:n.SkyLine,C=e.TempoInBpm,M="",P="",I="",T=_createForOfIteratorHelper(this.graphicalMusicSheet.MeasureList[o][s].parentSourceMeasure.TempoExpressions);try{for(T.s();!(E=T.n()).done;){var B=E.value;if(P=B.CombinedExpressionsText,isSpecialMark(B.CombinedExpressionsText)){M=B.CombinedExpressionsText;break}if(isSpeedKeyword(B.CombinedExpressionsText)||isSpeedHiddenKeyword(B.CombinedExpressionsText)){M=formatSpeedKeyword(B.CombinedExpressionsText),C=B.sourceMeasure.TempoInBPM,isSpeedKeyword(B.CombinedExpressionsText)&&(I=u);break}}}catch(err){T.e(err)}finally{T.f()}var R={bpm:e.TempoInBpm,dots:e.dotted,duration:u,name:M};M&&(R.bpm=C/(R.dots?1.5:1),isSpeedKeyword(P)?R.duration=I:C!==SpeedTag[M]&&SpeedTag[M]||(R.duration=""));var L=(null===(r=this.graphicalMusicSheet.MeasureList[o][s].vfVoices)||void 0===r||null===(i=r[1])||void 0===i?void 0:i.boundingBox.y)||0;if(this.rules.MetronomeMarksDrawn){if(k){var N,F,D=(null===(N=this.graphicalMusicSheet.MeasureList[0])||void 0===N||null===(F=N[s])||void 0===F?void 0:F.ParentStaffLine).Measures.map((function(e){return e.MeasureNumber-1}));if(L&&D.includes(o)&&(isSpeedKeyword(P)||isSpeedHiddenKeyword(P))){var O=k.slice(0,9),V=Math.min.apply(Math,_toConsumableArray2(O));h+=V=V<0?V-1:V}D.includes(o)&&f.length?k[0]=Math.min(k[0],-4.5+h-4):k[0]=Math.min(k[0],-4.5+h)}l.options.line_config.reduce((function(e,t){return t.visible&&e++,e}),0)<5&&(h-=2),l.setTempo(R,h*unitInPixels);var z=0;try{var G,H,U;z+=(null===(G=this.graphicalMusicSheet.MeasureList[o][s])||void 0===G||null===(H=G.vfVoices)||void 0===H||null===(U=H[1])||void 0===U?void 0:U.getTickables())[e.parentMeasure.metronomeNoteIndex].getBoundingBox().getX()-l.getNoteStartX()}catch(j){}l.getModifiers()[l.getModifiers().length-1].setShiftX(z)}}},{key:"calculateRehearsalMark",value:function(e){var t,n,r=e.rehearsalExpression;if(this.isFirstZero||0!==e.MeasureNumber||(this.isFirstZero=!0),r){var i=this.graphicalMusicSheet.MeasureList[0][0].MeasureNumber,a=Math.max(e.measureListIndex+1-i,0),o=null===(t=this.graphicalMusicSheet.MeasureList[a][0])||void 0===t?void 0:t.getVFStave();if(o){var s=-this.rules.RehearsalMarkYOffsetDefault-this.rules.RehearsalMarkYOffset,l=this.rules.RehearsalMarkXOffsetDefault+this.rules.RehearsalMarkXOffset;e.IsSystemStartMeasure&&(l+=this.rules.RehearsalMarkXOffsetSystemStartMeasure);var u=this.rules.RehearsalMarkFontSize,c=o.getModifiers(),h=c.find((function(e){return"repetitions"===e.getCategory().toLocaleLowerCase()}));if(h&&h.setShiftY(h.y_shift-10),this.isFirstZero?o.setSection(e.MeasureNumberXML+1+"",s,l,u):o.setSection(r.label,s,l,u),null!==(n=this.graphicalMusicSheet.MeasureList[a][0])&&void 0!==n&&n.ParentStaffLine.AbstractExpressions){var d,f,p,v,m=c.find((function(e){return"stavesection"===e.getCategory().toLocaleLowerCase()})),g=_createForOfIteratorHelper((null==e||null===(d=e.VerticalMeasureList)||void 0===d||null===(f=d[0])||void 0===f||null===(p=f.ParentStaffLine)||void 0===p?void 0:p.AbstractExpressions)||[]);try{for(g.s();!(v=g.n()).done;){var y=v.value;y instanceof GraphicalUnknownExpression&&(m&&(y.Label.PositionAndShape.RelativePosition.y-=.5),h&&(y.Label.PositionAndShape.RelativePosition.y-=1.7))}}catch(err){g.e(err)}finally{g.f()}}}}}},{key:"calculateSingleOctaveShift",value:function(e,t,n,r){var i,a=t.OctaveShiftStart,o=a.ParentStartMultiExpression.Timestamp,s=null===(i=a.ParentEndMultiExpression)||void 0===i?void 0:i.Timestamp,l=this.rules.MinMeasureToDrawIndex,u=this.rules.MaxMeasureToDrawIndex,c=this.graphicalMusicSheet.MeasureList[n][r].ParentStaffLine;c||(c=this.graphicalMusicSheet.MeasureList[l][r].ParentStaffLine);var h=void 0;(h=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentEndMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0)).MeasureNumber>u+1&&(h=this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0));var d=void 0;if((d=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.MeasureList[l][r]).MeasureNumber<l+1&&(d=this.graphicalMusicSheet.MeasureList[l][r]),!(d.parentSourceMeasure.measureListIndex<l||d.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var f=h.ParentStaffLine;if(f||(f=c),h&&c&&f){var p=new VexFlowOctaveShift(a,c.PositionAndShape);if(!p.startNote){var v,m,g=_createForOfIteratorHelper(d.staffEntries);try{for(g.s();!(m=g.n()).done;){var y=m.value;if(y){v=y;break}}}catch(err){g.e(err)}finally{g.f()}if(!v)return;if(p.setStartNote(v),!p.startNote)return}if(!p.endNote){for(var b,A=h.staffEntries.length-1;A>=0;A++)if(h.staffEntries[A]){b=h.staffEntries[A];break}if(p.setEndNote(b),!p.endNote)return}var S=d.findGraphicalStaffEntryFromTimestamp(o);S||(S=d.staffEntries[0]);var x=h.findGraphicalStaffEntryFromTimestamp(s);if(x||(x=h.staffEntries[h.staffEntries.length-1]),p.setStartNote(S),f!==c){p.endsOnDifferentStaffLine=!0;var w=c.Measures[c.Measures.length-1];void 0===w&&(w=h);var _=w.staffEntries[w.staffEntries.length-1];p.setEndNote(_);var E=f.ParentMusicSystem.Id-c.ParentMusicSystem.Id;if(E>0)for(var k=c.ParentMusicSystem.Id;k<f.ParentMusicSystem.Id;k++){var C=k+1,M=this.musicSystems[C].StaffLines[r],P=M.Measures[0],I=new VexFlowOctaveShift(a,P.PositionAndShape);k<E&&(I.endsOnDifferentStaffLine=!0);var T=M.Measures[M.Measures.length-1];T.IsExtraGraphicalMeasure&&(T=M.Measures[M.Measures.length-2]);var B=P.staffEntries[0],R=T.staffEntries[T.staffEntries.length-1];h.ParentStaffLine===M&&(T=h,R=x);var L="VexFlowMusicSheetCalculator.calculateSingleOctaveShift: ";B||loglevelExports.warn(L+"no firstNote found"),R||loglevelExports.warn(L+"no lastNote found"),I.setStartNote(B),I.setEndNote(R),M.OctaveShifts.push(I),this.calculateOctaveShiftSkyBottomLine(B,R,I,M)}this.calculateOctaveShiftSkyBottomLine(S,_,p,c)}else p.setEndNote(x),this.calculateOctaveShiftSkyBottomLine(S,x,p,c);c.OctaveShifts.push(p)}else loglevelExports.warn("End measure or staffLines for octave shift are undefined! This should not happen!")}}},{key:"calculateSinglePedal",value:function(e,t,n,r){var i,a=t.PedalStart,o=a.ParentStartMultiExpression.Timestamp,s=null===(i=a.ParentEndMultiExpression)||void 0===i?void 0:i.Timestamp,l=this.rules.MinMeasureToDrawIndex,u=this.rules.MaxMeasureToDrawIndex,c=this.graphicalMusicSheet.MeasureList[n][r].ParentStaffLine;c||(c=this.graphicalMusicSheet.MeasureList[l][r].ParentStaffLine);var h=void 0;(h=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentEndMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0))||(h=a.ParentStartMultiExpression.SourceMeasureParent.VerticalMeasureList[r]),h.MeasureNumber>u+1&&(h=this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0));var d=void 0;if(a.ParentEndMultiExpression?d=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):(d=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r))||(d=this.graphicalMusicSheet.MeasureList[l][r]),d.MeasureNumber<l+1&&(d=this.graphicalMusicSheet.MeasureList[l][r]),!(d.parentSourceMeasure.measureListIndex<l||d.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var f=h.ParentStaffLine;if(f||(f=c),h&&c&&f){var p=!1;c!==f&&(p=!0);var v=new VexFlowPedal(a,c.PositionAndShape,!1,p),m=d.findGraphicalStaffEntryFromTimestamp(o);m||(m=d.staffEntries[0]);var g=h.findGraphicalStaffEntryFromTimestamp(s);if(g||(g=h.staffEntries[h.staffEntries.length-1]),!v.setStartNote(m))return;if(f!==c)if(v.pedalSymbol===MusicSymbol.PEDAL_SYMBOL){v.setEndNote(g),v.setEndMeasure(h),v.ReleaseText=" ",v.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(v.startVfVoiceEntry,v.endVfVoiceEntry,v,c);var y=f.Measures[0],b=new VexFlowPedal(a,y.PositionAndShape),A=y.staffEntries[0];if(!b.setStartNote(A))return;b.setEndNote(g),v.setEndMeasure(h),f.Pedals.push(b),b.CalculateBoundingBox(),b.DepressText=" ",this.calculatePedalSkyBottomLine(b.startVfVoiceEntry,b.endVfVoiceEntry,b,f)}else{var S=c.Measures[c.Measures.length-1];void 0===S&&(S=h);var x=S.staffEntries[S.staffEntries.length-1];v.setEndNote(x),v.setEndMeasure(h),v.ChangeEnd=!1;var w=f.ParentMusicSystem.Id-c.ParentMusicSystem.Id;if(w>0)for(var _=1,E=c.ParentMusicSystem.Id;E<f.ParentMusicSystem.Id;E++){var k=this.musicSystems[E+1].StaffLines[r],C=k.Measures[0],M=!1,P=!1;_<w?M=!0:P=!0,_++;var I=new VexFlowPedal(a,C.PositionAndShape,!0,M);I.ChangeBegin=!1,I.ChangeEnd=!!P&&a.ChangeEnd;var T=k.Measures[k.Measures.length-1],B=C.staffEntries[0],R=T.staffEntries[T.staffEntries.length-1];if(h.ParentStaffLine===k&&(T=h,R=g),!I.setStartNote(B))break;I.setEndNote(R),v.setEndMeasure(h),k.Pedals.push(I),I.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(I.startVfVoiceEntry,I.endVfVoiceEntry,I,k)}v.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(v.startVfVoiceEntry,v.endVfVoiceEntry,v,c)}else v.setEndNote(g),v.setEndMeasure(h),v.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(v.startVfVoiceEntry,v.endVfVoiceEntry,v,c);c.Pedals.push(v)}else loglevelExports.warn("End measure or staffLines for pedal are undefined! This should not happen!")}}},{key:"calculateSingleWavyLine",value:function(e,t,n,r){var i,a=t.WavyLineStart,o=a.ParentStartMultiExpression.Timestamp,s=null===(i=a.ParentEndMultiExpression)||void 0===i?void 0:i.Timestamp,l=this.rules.MinMeasureToDrawIndex,u=this.rules.MaxMeasureToDrawIndex,c=this.graphicalMusicSheet.MeasureList[n][r].ParentStaffLine;c||(c=this.graphicalMusicSheet.MeasureList[l][r].ParentStaffLine);var h=void 0;(h=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentEndMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0)).MeasureNumber>u+1&&(h=this.graphicalMusicSheet.getLastGraphicalMeasureFromIndex(r,!0));var d=void 0;if((d=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.MeasureList[l][r]).MeasureNumber<l+1&&(d=this.graphicalMusicSheet.MeasureList[l][r]),!(d.parentSourceMeasure.measureListIndex<l||d.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var f=h.ParentStaffLine;if(f||(f=c),h&&c&&f){var p=new VexflowVibratoBracket(a,c.PositionAndShape,d.ParentStaff.isTab),v=d.findGraphicalStaffEntryFromTimestamp(o);v||(v=d.staffEntries[0]);var m=h.findGraphicalStaffEntryFromTimestamp(s);if(m||(m=h.staffEntries[h.staffEntries.length-1]),p.setStartNote(v),f!==c){var g=c.Measures[c.Measures.length-1];void 0===g&&(g=h);var y=g.staffEntries[g.staffEntries.length-1];if(p.setEndNote(y),f.ParentMusicSystem.Id-c.ParentMusicSystem.Id>0)for(var b=c.ParentMusicSystem.Id;b<f.ParentMusicSystem.Id;b++){var A,S=this.musicSystems[b+1].StaffLines[r],x=null==S||null===(A=S.Measures)||void 0===A?void 0:A[0];if(!x)return;var w=new VexflowVibratoBracket(a,x.PositionAndShape,S.ParentStaff.isTab),_=S.Measures[S.Measures.length-1],E=x.staffEntries[0],k=_.staffEntries[_.staffEntries.length-1];h.ParentStaffLine===S&&(_=h,k=m),w.setStartNote(E),w.setEndNote(k),S.WavyLines.push(w),w.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(w.startVfVoiceEntry,w.endVfVoiceEntry,w,S)}p.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(p.startVfVoiceEntry,p.endVfVoiceEntry,p,c)}else p.setEndNote(m),p.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(p.startVfVoiceEntry,p.endVfVoiceEntry,p,c);c.WavyLines.push(p)}else loglevelExports.warn("End measure or staffLines for wavy line are undefined! This should not happen!")}}},{key:"calculateWavyLineSkyBottomLine",value:function(e,t,n,r){var i,a,o=n.startNote.getStave(),s=n.endNote.getStave(),l=Math.max(o.options.top_text_position,s.options.top_text_position);o.options.top_text_position=l,s.options.top_text_position=l;var u=-l,c=0,h=0,d=1/0,f=1/0,p=e.PositionAndShape.AbsolutePosition.x+e.PositionAndShape.BorderLeft;(null===(i=e.parentVoiceEntry)||void 0===i||null===(a=i.OrnamentContainer)||void 0===a?void 0:a.GetOrnament)===OrnamentEnum.Trill&&(c=p,h=p+=2,f=(d=r.SkyBottomLineCalculator.getSkyLineMinInRange(c,h))+1.85);var v=void 0;if(n.ToEndOfStopStave)v=t.parentStaffEntry.parentMeasure.PositionAndShape.AbsolutePosition.x+t.parentStaffEntry.parentMeasure.PositionAndShape.BorderRight-1;else{v=t.PositionAndShape.AbsolutePosition.x+t.PositionAndShape.BorderRight;var m=t.parentStaffEntry.vfClefBefore;if(m)v+=m.getWidth()/10}(u=r.SkyBottomLineCalculator.getSkyLineMinInRange(p,v))!==1/0&&(u<d?(o.options.top_text_position=-u,s.options.top_text_position=-u,r.SkyBottomLineCalculator.updateSkyLineInRange(c,h,u-1.85)):(n.line=-f,u=f),u-=n.PositionAndShape.Size.height,r.SkyBottomLineCalculator.updateSkyLineInRange(p,v,u))}},{key:"calculatePedalSkyBottomLine",value:function(e,t,n,r){var i=null==t?void 0:t.PositionAndShape;i||(i=n.endMeasure.PositionAndShape);var a=Vex.Flow.PedalMarking.Styles,o=n.getPedalMarking(),s=o.line+3+(r.StaffLines.length-1),l=o.render_options.text_margin_right/10,u=e.PositionAndShape.AbsolutePosition.x-l;o.style!==a.MIXED&&o.style!==a.MIXED_OPEN_END&&o.style!==a.TEXT||(u-=1);var c,h=void 0,d=r.StaffLines.length-1,f=_createForOfIteratorHelper(r.Pedals);try{for(f.s();!(c=f.n()).done;){var p=c.value.getPedalMarking().line+3+(r.StaffLines.length-1);d=Math.max(p,d)}}catch(err){f.e(err)}finally{f.f()}if(n.EndSymbolPositionAndShape){var v=o.render_options.glyph_point_size/20;h=u+3.4;var m=i.AbsolutePosition.x-l,g=m+1.5;d=Math.max(r.SkyBottomLineCalculator.getBottomLineMaxInRange(u,h),d),d=Math.max(s+2*v,d);var y=r.SkyBottomLineCalculator.getBottomLineMaxInRange(m,g);n.DepressText||(d=Math.max(d,y)),n.setLine(d-3-(r.StaffLines.length-1)),r.SkyBottomLineCalculator.updateBottomLineInRange(u,h,d+v),r.SkyBottomLineCalculator.updateBottomLineInRange(m,g,d+v)}else{var b,A=o.render_options.bracket_height/10;if(o.EndsStave)h=t?t.parentStaffEntry.parentMeasure.PositionAndShape.AbsolutePosition.x+t.parentStaffEntry.parentMeasure.PositionAndShape.Size.width-l:i.AbsolutePosition.x+i.Size.width;else switch(o.style){case a.BRACKET_OPEN_END:case a.BRACKET_OPEN_BOTH:case a.MIXED_OPEN_END:h=i.AbsolutePosition.x+i.BorderRight-l;break;default:h=i.AbsolutePosition.x+i.BorderLeft-l}var S=null==t||null===(b=t.parentStaffEntry)||void 0===b?void 0:b.vfClefBefore;if(S)h+=S.getWidth()/10;if((d=Math.max(r.SkyBottomLineCalculator.getBottomLineMaxInRange(u,h),d))===1/0)return;if(d=Math.max(d,s+A),n.setLine(d-3-(r.StaffLines.length-1)),u>h){var x=h;h=u,u=x}r.SkyBottomLineCalculator.updateBottomLineInRange(u,h,d+A)}var w,_=_createForOfIteratorHelper(r.Pedals);try{for(_.s();!(w=_.n()).done;){var E=w.value,k=E.getPedalMarking();if(d>k.line+3+(r.StaffLines.length-1)){var C,M=k.render_options.text_margin_right/10,P=E.startVfVoiceEntry.PositionAndShape.AbsolutePosition.x-M,I=void 0;E.setLine(d-3-(r.StaffLines.length-1));var T=null===(C=E.endVfVoiceEntry)||void 0===C?void 0:C.PositionAndShape;if(T||(T=E.endMeasure.PositionAndShape),E.EndSymbolPositionAndShape){var B=o.render_options.glyph_point_size/20;I=P+3.4;var R=T.AbsolutePosition.x-M,L=R+1.5;r.SkyBottomLineCalculator.updateBottomLineInRange(P,I,d+B),r.SkyBottomLineCalculator.updateBottomLineInRange(R,L,d+B)}else{var N,F,D=k.render_options.bracket_height/10;if(k.EndsStave)I=T.AbsolutePosition.x+T.Size.width-M;else switch(o.style){case a.BRACKET_OPEN_END:case a.BRACKET_OPEN_BOTH:case a.MIXED_OPEN_END:I=T.AbsolutePosition.x+T.BorderRight-M;break;default:I=T.AbsolutePosition.x+T.BorderLeft-M}var O=null===(N=E.endVfVoiceEntry)||void 0===N||null===(F=N.parentStaffEntry)||void 0===F?void 0:F.vfClefBefore;if(O)I+=O.getWidth()/10;if(P>I){var V=P;P=I,I=V}r.SkyBottomLineCalculator.updateBottomLineInRange(P,I,d+D)}}}}catch(err){_.e(err)}finally{_.f()}}},{key:"calculateOctaveShiftSkyBottomLine",value:function(e,t,n,r){if(t){var i=e.PositionAndShape.Size.width,a=t.PositionAndShape.Size.width;e.hasOnlyRests()?i=-i:i/=2,t.hasOnlyRests()?a*=2:a/=2,e===t&&(a*=2);var o=e.PositionAndShape.AbsolutePosition.x-i,s=t.PositionAndShape.AbsolutePosition.x+a;n.PositionAndShape.Size.width=o-s;var l=n.getTextBracket(),u=l.font.size/10;if(l.position===VF.TextBracket.Positions.TOP){var c=Math.ceil(r.SkyBottomLineCalculator.getSkyLineMinInRange(o,s));if(c===1/0)return;l.start.getStave().options.top_text_position=Math.abs(c),r.SkyBottomLineCalculator.updateSkyLineInRange(o,s,c-2*u)}else{var h=r.SkyBottomLineCalculator.getBottomLineMaxInRange(o,s);if(h===1/0)return;l.start.getStave().options.bottom_text_position=h,e.parentMeasure!==t.parentMeasure&&(l.stop.getStave().options.bottom_text_position=h),r.SkyBottomLineCalculator.updateBottomLineInRange(o,s,h+1.5*u)}}else loglevelExports.warn("octaveshift: no endStaffEntry")}},{key:"calculateWordRepetitionInstruction",value:function(e,t){for(var n=void 0,r=this.graphicalMusicSheet.MeasureList[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o&&o.ParentStaffLine&&o.ParentStaff.ParentInstrument.Visible){n=o;break}}n&&n.addWordRepetition(e)}},{key:"calculateExpressionAlignements",value:function(){var t,n=_createForOfIteratorHelper(this.musicSystems);try{for(n.s();!(t=n.n()).done;){var r,i=_createForOfIteratorHelper(t.value.StaffLines);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a.AlignmentManager.alignDynamicExpressions(),a.AbstractExpressions.forEach((function(e){e.updateSkyBottomLine()}))}catch(e){}}}catch(err){i.e(err)}finally{i.f()}}}catch(err){n.e(err)}finally{n.f()}}},{key:"handleTiedGraphicalNote",value:function(e,t,n,r,i,a,o,s){}},{key:"handleBeam",value:function(e,t,n){e.parentVoiceEntry.parentStaffEntry.parentMeasure.handleBeam(e,t)}},{key:"handleVoiceEntryLyrics",value:function(e,t,n){var r=this;e.LyricsEntries.forEach((function(e,i){var a=new GraphicalLyricEntry(i,t,r.rules.LyricsHeight,r.rules.StaffHeight);if(t.LyricsEntries.push(a),a.GraphicalLabel.setLabelPositionAndShapeBorders(),i.Word){var o=i.Word.Syllables.indexOf(i),s=n.indexOf(i.Word);if(-1===s&&(n.push(i.Word),s=n.indexOf(i.Word)),0===r.graphicalLyricWords.length||s>r.graphicalLyricWords.length-1){var l=new GraphicalLyricWord(i.Word);a.ParentLyricWord=l,l.GraphicalLyricsEntries[o]=a,r.graphicalLyricWords.push(l)}else{var u=r.graphicalLyricWords[s];a.ParentLyricWord=u,u.GraphicalLyricsEntries[o]=a,u.isFilled()&&(n.splice(s,1),r.graphicalLyricWords.splice(r.graphicalLyricWords.indexOf(u),1))}}}))}},{key:"handleVoiceEntryOrnaments",value:function(e,t,n){}},{key:"handleVoiceEntryArticulations",value:function(e,t,n){}},{key:"handleVoiceEntryTechnicalInstructions",value:function(e,t,n){}},{key:"handleTuplet",value:function(e,t,n){e.parentVoiceEntry.parentStaffEntry.parentMeasure.handleTuplet(e,t)}},{key:"findIndexGraphicalSlurFromSlur",value:function(e,t){for(var n=0;n<e.length;n++)if(e[n].slur===t)return n;return-1}},{key:"calculateSlurs",value:function(){var e,t={},n=_createForOfIteratorHelper(this.graphicalMusicSheet.MeasureList[0]);try{for(n.s();!(e=n.n()).done;){t[e.value.ParentStaff.idInMusicSheet]=[]}}catch(err){n.e(err)}finally{n.f()}var r,i=_createForOfIteratorHelper(this.musicSystems);try{for(i.s();!(r=i.n()).done;){var a,o=_createForOfIteratorHelper(r.value.StaffLines);try{for(o.s();!(a=o.n()).done;){for(var s=a.value,l=t[s.ParentStaff.idInMusicSheet],u=0;u<l.length;u++){var c=l[u],h=new GraphicalSlur(c.slur,this.rules);s.addSlurToStaffline(h),l[u]=h}var d,f=_createForOfIteratorHelper(s.Measures);try{for(f.s();!(d=f.n()).done;){var p,v=_createForOfIteratorHelper(d.value.staffEntries);try{for(v.s();!(p=v.n()).done;){var m,g=p.value,y=_createForOfIteratorHelper(g.graphicalVoiceEntries);try{for(y.s();!(m=y.n()).done;){var b,A=_createForOfIteratorHelper(m.value.notes);try{for(A.s();!(b=A.n()).done;){var S,x=b.value,w=_createForOfIteratorHelper(x.sourceNote.NoteSlurs);try{for(w.s();!(S=w.n()).done;){var _=S.value;if(_.EndNote&&_.StartNote){if(_.StartNote===x.sourceNote){var E=new GraphicalSlur(_,this.rules);l.push(E),s.addSlurToStaffline(E)}if(_.EndNote===x.sourceNote){var k=this.findIndexGraphicalSlurFromSlur(l,_);if(k>=0){var C=l[k];-1===C.staffEntries.indexOf(g)&&C.staffEntries.push(g),l.splice(k,1)}}}}}catch(err){w.e(err)}finally{w.f()}}}catch(err){A.e(err)}finally{A.f()}}}catch(err){y.e(err)}finally{y.f()}var M,P=_createForOfIteratorHelper(l);try{for(P.s();!(M=P.n()).done;){var I=M.value;-1===I.staffEntries.indexOf(g)&&I.staffEntries.push(g)}}catch(err){P.e(err)}finally{P.f()}}}catch(err){v.e(err)}finally{v.f()}}}catch(err){f.e(err)}finally{f.f()}}}catch(err){o.e(err)}finally{o.f()}}}catch(err){i.e(err)}finally{i.f()}var T,B=_createForOfIteratorHelper(this.musicSystems);try{for(B.s();!(T=B.n()).done;){var R,L=_createForOfIteratorHelper(T.value.StaffLines);try{for(L.s();!(R=L.n()).done;){var N,F=_createForOfIteratorHelper(R.value.GraphicalSlurs.sort(GraphicalSlur.Compare));try{for(F.s();!(N=F.n()).done;){var D=N.value;D.slur.isCrossed()||D.calculateCurve(this.rules)}}catch(err){F.e(err)}finally{F.f()}}}catch(err){L.e(err)}finally{L.f()}}}catch(err){B.e(err)}finally{B.f()}}}]),r}(MusicSheetCalculator),MusicPartManager=function(){function e(t){_classCallCheck2(this,e),this.musicSheet=t}return _createClass2(e,[{key:"reInit",value:function(){this.init()}},{key:"init",value:function(){this.parts=this.musicSheet.Repetitions.slice(),this.sheetStart=this.musicSheet.SelectionStart=new Fraction$1(0,1),this.sheetEnd=this.musicSheet.SelectionEnd=this.musicSheet.SheetEndTimestamp,this.calcMapping()}},{key:"getCurrentRepetitionTimestampTransform",value:function(e){for(var t=void 0,n=this.timestamps.length-1;n>=0;n--)if(t=this.timestamps[n],e.gte(t.from))return t;return this.timestamps[0]}},{key:"absoluteEnrolledToSheetTimestamp",value:function(e){if(0===this.timestamps.length)return e;var t=this.getCurrentRepetitionTimestampTransform(e);return Fraction$1.plus(e,Fraction$1.minus(t.to,t.from))}},{key:"Parts",get:function(){return this.parts}},{key:"MusicSheet",get:function(){return this.musicSheet}},{key:"getIterator",value:function(e){return e?new MusicPartManagerIterator(this.musicSheet,e,void 0):new MusicPartManagerIterator(this.musicSheet,this.musicSheet.SelectionStart,this.musicSheet.SelectionEnd)}},{key:"setSelectionStart",value:function(e){this.musicSheet.SelectionStart=e,this.musicSheet.SelectionEnd=void 0}},{key:"setSelectionRange",value:function(e,t){this.musicSheet.SelectionStart=null!=e?e:this.sheetStart,this.musicSheet.SelectionEnd=null!=t?t:this.sheetEnd}},{key:"calcMapping",value:function(){this.timestamps=[];var e=this.getIterator(),t=e.CurrentRepetition,n=new TimestampTransform(e.CurrentEnrolledTimestamp.clone(),e.CurrentSourceTimestamp.clone(),void 0,0);for(this.timestamps.push(n);!e.EndReached;){if(e.JumpOccurred||t!==e.CurrentRepetition){if(t=e.CurrentRepetition,e.backJumpOccurred){var r=e.JumpResponsibleRepetition;n.nextBackJump=e.CurrentEnrolledTimestamp,n.curRepetition=r,n.curRepetitionIteration=e.CurrentJumpResponsibleRepetitionIterationBeforeJump;for(var i=this.timestamps.length-2;i>=0&&(!r.AbsoluteTimestamp.gt(this.timestamps[i].to)&&!this.timestamps[i].curRepetition);i--)this.timestamps[i].nextBackJump=n.nextBackJump,this.timestamps[i].curRepetition=r,this.timestamps[i].curRepetitionIteration=n.curRepetitionIteration}n=new TimestampTransform(e.CurrentEnrolledTimestamp.clone(),e.CurrentSourceTimestamp.clone(),void 0,0),this.timestamps.push(n)}e.moveToNext()}}}]),e}(),TimestampTransform=_createClass2((function e(t,n,r,i){_classCallCheck2(this,e),this.from=t,this.to=n,this.curRepetition=r,this.curRepetitionIteration=i,this.nextBackJump=void 0,this.nextForwardJump=void 0})),PartListEntry=function(){function e(t){_classCallCheck2(this,e),this.enrolledTimestamps=[],this.visible=!0,this.musicSheet=t}return _createClass2(e,[{key:"Visible",get:function(){return this.visible},set:function(e){this.visible=e}},{key:"getFirstSourceMeasure",value:function(){return this.musicSheet.SourceMeasures[this.startIndex]}},{key:"getLastSourceMeasure",value:function(){return this.musicSheet.SourceMeasures[this.endIndex]}}]),e}(),SourceMusicPart=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e)).musicSheet=e,a.startIndex=r,a.endIndex=i,a}return _createClass2(n,[{key:"MeasuresCount",get:function(){return this.endIndex-this.startIndex+1}},{key:"StartIndex",get:function(){return this.startIndex}},{key:"EndIndex",get:function(){return this.endIndex}},{key:"ParentRepetition",get:function(){return this.parentRepetition},set:function(e){this.parentRepetition=e}},{key:"AbsoluteTimestamp",get:function(){return Fraction$1.createFromFraction(this.musicSheet.SourceMeasures[this.startIndex].AbsoluteTimestamp)}},{key:"setStartIndex",value:function(e){this.startIndex=e}},{key:"setEndIndex",value:function(e){this.endIndex=e}}]),n}(PartListEntry),Repetition=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _classCallCheck2(this,n),(r=t.call(this,e)).backwardJumpInstructions=[],r.endingParts=[],r.endingIndexDict={},r.userNumberOfRepetitions=0,r.visibles=[],r.fromWords=!1,r.repetitonIterationOrder=[],r.numberOfEndings=1,r.musicSheet2=e,r.virtualOverallRepetition=i,r}return _createClass2(n,[{key:"BackwardJumpInstructions",get:function(){return this.backwardJumpInstructions}},{key:"EndingIndexDict",get:function(){return this.endingIndexDict}},{key:"EndingParts",get:function(){return this.endingParts}},{key:"Visibles",get:function(){return this.visibles},set:function(e){this.visibles=e}},{key:"DefaultNumberOfRepetitions",get:function(){var e=2;return this.virtualOverallRepetition&&(e=1),Math.max(e,Object.keys(this.endingIndexDict).length,this.checkRepetitionForMultipleLyricVerses())}},{key:"UserNumberOfRepetitions",get:function(){return this.userNumberOfRepetitions},set:function(e){this.userNumberOfRepetitions=e,this.repetitonIterationOrder=[];for(var t=this.userNumberOfRepetitions-this.NumberOfEndings,n=1;n<=this.userNumberOfRepetitions;n++)n<=t?this.repetitonIterationOrder.push(1):this.repetitonIterationOrder.push(n-t)}},{key:"getForwardJumpTargetForIteration",value:function(e){var t=this.repetitonIterationOrder[e-1];return this.endingIndexDict[t]?this.endingIndexDict[t].part.StartIndex:-1}},{key:"getBackwardJumpTarget",value:function(){return this.startMarker.measureIndex}},{key:"setEndingsStartIndex",value:function(e,t){var n=new RepetitionEndingPart(new SourceMusicPart(this.musicSheet2,t,t));this.endingParts.push(n);var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{this.endingIndexDict[a]=n,n.endingIndices.push(a),this.numberOfEndings<a&&(this.numberOfEndings=a)}catch(err){loglevelExports.error("Repetition: Exception.",err)}}}catch(err){i.e(err)}finally{i.f()}}},{key:"setEndingStartIndex",value:function(e,t){var n=new RepetitionEndingPart(new SourceMusicPart(this.musicSheet2,t,t));this.EndingIndexDict[e]=n,this.endingParts.push(n),n.endingIndices.push(e),this.numberOfEndings<e&&(this.numberOfEndings=e)}},{key:"setEndingEndIndex",value:function(e,t){this.endingIndexDict[e]&&this.endingIndexDict[e].part.setEndIndex(t)}},{key:"NumberOfEndings",get:function(){return this.numberOfEndings}},{key:"FromWords",get:function(){return this.fromWords},set:function(e){this.fromWords=e}},{key:"AbsoluteTimestamp",get:function(){return Fraction$1.createFromFraction(this.musicSheet2.SourceMeasures[this.startMarker.measureIndex].AbsoluteTimestamp)}},{key:"StartIndex",get:function(){return this.startMarker.measureIndex}},{key:"EndIndex",get:function(){if(0===this.BackwardJumpInstructions.length)return this.StartIndex;var e=this.backwardJumpInstructions[this.backwardJumpInstructions.length-1].measureIndex;return this.endingIndexDict[this.NumberOfEndings]&&(e=Math.max(this.endingIndexDict[this.NumberOfEndings].part.EndIndex,e)),e}},{key:"checkRepetitionForMultipleLyricVerses",value:function(){for(var e=0,t=this.StartIndex,n=this.EndIndex,r=t;r<=n;r++)for(var i=this.musicSheet2.SourceMeasures[r],a=0;a<i.CompleteNumberOfStaves;a++)if(i.VerticalSourceStaffEntryContainers[a]){var o,s=_createForOfIteratorHelper(i.VerticalSourceStaffEntryContainers[a].StaffEntries);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l){var u,c=0,h=_createForOfIteratorHelper(l.VoiceEntries);try{for(h.s();!(u=h.n()).done;){c+=u.value.LyricsEntries.keys.length}}catch(err){h.e(err)}finally{h.f()}e=Math.max(e,c)}}}catch(err){s.e(err)}finally{s.f()}}return e}},{key:"FirstSourceMeasureNumber",get:function(){return this.getFirstSourceMeasure().MeasureNumber}},{key:"LastSourceMeasureNumber",get:function(){return this.getLastSourceMeasure().MeasureNumber}},{key:"coversIdenticalMeasures",value:function(e){return this.StartIndex===e.StartIndex&&this.EndIndex===e.EndIndex}},{key:"removeFromRepetitionInstructions",value:function(){void 0!==this.startMarker&&(this.startMarker.parentRepetition=void 0),void 0!==this.endMarker&&(this.endMarker.parentRepetition=void 0);var e,t=_createForOfIteratorHelper(this.BackwardJumpInstructions);try{for(t.s();!(e=t.n()).done;){e.value.parentRepetition=void 0}}catch(err){t.e(err)}finally{t.f()}}}]),n}(PartListEntry),RepetitionEndingPart=function(){function e(t){_classCallCheck2(this,e),this.endingIndices=[],this.part=t}return _createClass2(e,[{key:"ToString",value:function(){return this.endingIndices.join(", ")}}]),e}(),PlaybackSettings=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Fraction$1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck2(this,e),this.rhythm=t,this.beatsPerMinute=n,this.beatLengthInMilliseconds=6e4/n,this.beatRealValue=1/4}return _createClass2(e,[{key:"BeatsPerMinute",get:function(){return this.beatsPerMinute},set:function(e){this.beatsPerMinute=e,this.beatLengthInMilliseconds=6e4/this.beatsPerMinute}},{key:"Rhythm",get:function(){return this.rhythm},set:function(e){this.rhythm=e}},{key:"BeatRealValue",get:function(){return this.beatRealValue}},{key:"BeatLengthInMilliseconds",get:function(){return this.beatLengthInMilliseconds}},{key:"getDurationInMilliseconds",value:function(e){return("number"==typeof e?e:e.RealValue)*this.BeatLengthInMilliseconds/this.beatRealValue}},{key:"getDurationAsNoteDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,n=e/this.BeatLengthInMilliseconds,r=Math.floor(n),i=new Fraction$1(r,4),a=n-r;return 0===(r=Math.round(a/(1/t)/4))&&e>0&&(r=1),i.Add(new Fraction$1(r,t)),i}}],[{key:"createFrom",value:function(t){return new e(t.Rhythm,t.BeatsPerMinute)}}]),e}(),MusicSheet=function(){function e(){_classCallCheck2(this,e),this.idString="random idString, not initialized",this.sourceMeasures=[],this.repetitions=[],this.dynListStaves=[],this.timestampSortedDynamicExpressionsList=[],this.timestampSortedTempoExpressionsList=[],this.instrumentalGroups=[],this.instruments=[],this.musicPartManager=void 0,this.musicSheetErrors=new MusicSheetErrors,this.staves=[],this.playbackDataDict=new Dictionary,this.transpose=0,this.defaultStartTempoInBpm=0,this.drawErroneousMeasures=!1,this.hasBeenOpenedForTheFirstTime=!1,this.currentEnrolledPosition=new Fraction$1(0,1),this.soundTempos=new Map,this.playbackSettings=new PlaybackSettings,this.playbackSettings.rhythm=new Fraction$1(4,4,0,!1),this.userStartTempoInBPM=100,this.pageWidth=120,this.MusicPartManager=new MusicPartManager(this),this.hasBPMInfo=!1}return _createClass2(e,[{key:"SoundTempos",get:function(){return this.soundTempos},set:function(e){this.soundTempos=e}},{key:"CurrentKeyInstruction",get:function(){return this.currentKeyInstruction},set:function(e){this.currentKeyInstruction=e}},{key:"SourceMeasures",get:function(){return this.sourceMeasures},set:function(e){this.sourceMeasures=e}},{key:"Repetitions",get:function(){return this.repetitions},set:function(e){this.repetitions=e}},{key:"DynListStaves",get:function(){return this.dynListStaves}},{key:"TimestampSortedTempoExpressionsList",get:function(){return this.timestampSortedTempoExpressionsList}},{key:"TimestampSortedDynamicExpressionsList",get:function(){return this.timestampSortedDynamicExpressionsList}},{key:"InstrumentalGroups",get:function(){return this.instrumentalGroups}},{key:"Parts",get:function(){return this.instruments}},{key:"Instruments",get:function(){return this.instruments}},{key:"SheetPlaybackSetting",get:function(){return this.playbackSettings},set:function(e){this.playbackSettings=e}},{key:"DrawErroneousMeasures",get:function(){return this.drawErroneousMeasures},set:function(e){this.drawErroneousMeasures=e}},{key:"HasBeenOpenedForTheFirstTime",get:function(){return this.hasBeenOpenedForTheFirstTime},set:function(e){this.hasBeenOpenedForTheFirstTime=e}},{key:"InitializeStartTempoInBPM",value:function(e){this.playbackSettings.BeatsPerMinute=e,this.userStartTempoInBPM=e}},{key:"DefaultStartTempoInBpm",get:function(){return this.defaultStartTempoInBpm},set:function(e){this.defaultStartTempoInBpm=e,this.InitializeStartTempoInBPM(e)}},{key:"Path",get:function(){return this.path},set:function(e){this.path=e}},{key:"Staves",get:function(){return this.staves}},{key:"TitleString",get:function(){return this.title?this.title.text:""},set:function(e){this.Title=new Label(e)}},{key:"SubtitleString",get:function(){return this.subtitle?this.subtitle.text:""},set:function(e){this.Subtitle=new Label(e)}},{key:"ComposerString",get:function(){return this.composer?this.composer.text:""},set:function(e){this.Composer=new Label(e)}},{key:"LyricistString",get:function(){return this.lyricist?this.lyricist.text:""},set:function(e){this.Lyricist=new Label(e)}},{key:"Title",get:function(){return this.title},set:function(e){this.title=e}},{key:"Subtitle",get:function(){return this.subtitle},set:function(e){this.subtitle=e}},{key:"Composer",get:function(){return this.composer},set:function(e){this.composer=e}},{key:"Lyricist",get:function(){return this.lyricist},set:function(e){this.lyricist=e}},{key:"Rules",get:function(){return this.rules||(loglevelExports.debug("warning: sheet.Rules was undefined. Creating new EngravingRules."),this.rules=new EngravingRules),this.rules},set:function(e){this.rules=e}},{key:"SheetErrors",get:function(){return this.musicSheetErrors}},{key:"PlaybackDataDict",get:function(){return this.playbackDataDict}},{key:"SelectionStart",get:function(){return this.selectionStart},set:function(e){this.selectionStart=e.clone(),this.currentEnrolledPosition=e.clone()}},{key:"SelectionEnd",get:function(){return this.selectionEnd},set:function(e){this.selectionEnd=e}},{key:"HasBPMInfo",get:function(){return this.hasBPMInfo},set:function(e){this.hasBPMInfo=e}},{key:"addMeasure",value:function(e){this.sourceMeasures.push(e),e.measureListIndex=this.sourceMeasures.length-1}},{key:"checkForInstrumentWithNoVoice",value:function(){for(var e=0,t=this.instruments.length;e<t;++e){var n=this.instruments[e];if(0===n.Voices.length){var r=new Voice(n,1);n.Voices.push(r)}}}},{key:"getStaffFromIndex",value:function(e){return this.staves[e]}},{key:"fillStaffList",value:function(){for(var e=0,t=0,n=this.instruments.length;t<n;++t)for(var r=this.instruments[t],i=0,a=r.Staves.length;i<a;++i){var o=r.Staves[i];o.idInMusicSheet=e,this.staves.push(o),e++}}},{key:"MusicPartManager",get:function(){return this.musicPartManager},set:function(e){this.musicPartManager=e}},{key:"getCompleteNumberOfStaves",value:function(){for(var e=0,t=0,n=this.instruments.length;t<n;++t){e+=this.instruments[t].Staves.length}return e}},{key:"getListOfMeasuresFromIndeces",value:function(e,t){for(var n=[],r=e;r<=t;r++)n.push(this.sourceMeasures[r]);return n}},{key:"getNextSourceMeasure",value:function(e){var t=this.sourceMeasures.indexOf(e);return t===this.sourceMeasures.length-1?e:this.sourceMeasures[t+1]}},{key:"getFirstSourceMeasure",value:function(){return this.sourceMeasures[0]}},{key:"getLastSourceMeasure",value:function(){return this.sourceMeasures[this.sourceMeasures.length-1]}},{key:"resetAllNoteStates",value:function(){for(var e=this.MusicPartManager.getIterator();!e.EndReached&&e.CurrentVoiceEntries;){for(var t=0,n=e.CurrentVoiceEntries.length;t<n;++t)for(var r=e.CurrentVoiceEntries[t],i=0,a=r.Notes.length;i<a;++i){r.Notes[i].state=NoteState.Normal}e.moveToNext()}}},{key:"getMusicSheetInstrumentIndex",value:function(e){return this.Instruments.indexOf(e)}},{key:"getGlobalStaffIndexOfFirstStaff",value:function(e){for(var t=this.getMusicSheetInstrumentIndex(e),n=0,r=0;r<t;r++)n+=this.Instruments[r].Staves.length;return n}},{key:"setRepetitionNewUserNumberOfRepetitions",value:function(e,t){for(var n=0,r=0;r<this.repetitions.length;r++)if(this.repetitions[r]instanceof Repetition){if(e===n){this.repetitions[r].UserNumberOfRepetitions=t;break}n++}}},{key:"getRepetitionByIndex",value:function(e){for(var t=0,n=0;n<this.repetitions.length;n++)if(this.repetitions[n]instanceof Repetition){if(e===t)return this.repetitions[n];t++}}},{key:"CompareTo",value:function(e){return this.Title.text.localeCompare(e.Title.text)}},{key:"getExpressionsStartTempoInBPM",value:function(){if(this.TimestampSortedTempoExpressionsList.length>0){var e=this.TimestampSortedTempoExpressionsList[0];if(e.InstantaneousTempo)return e.InstantaneousTempo.TempoInBpm;if(e.ContinuousTempo)return e.ContinuousTempo.StartTempo}return this.userStartTempoInBPM}},{key:"Errors",get:function(){return this.musicSheetErrors.measureErrors}},{key:"FirstMeasureNumber",get:function(){try{return this.getFirstSourceMeasure().MeasureNumber}catch(e){return loglevelExports.info("MusicSheet.FirstMeasureNumber: ",e),0}}},{key:"LastMeasureNumber",get:function(){try{return this.getLastSourceMeasure().MeasureNumber}catch(e){return loglevelExports.info("MusicSheet.LastMeasureNumber: ",e),0}}},{key:"CurrentEnrolledPosition",get:function(){return this.currentEnrolledPosition.clone()},set:function(e){this.currentEnrolledPosition=e.clone()}},{key:"Transpose",get:function(){return this.transpose},set:function(e){this.transpose=e}},{key:"FullNameString",get:function(){return this.ComposerString+" "+this.TitleString}},{key:"IdString",get:function(){return this.idString},set:function(e){this.idString=e}},{key:"getEnrolledSelectionStartTimeStampWorkaround",value:function(){var e=this.MusicPartManager.getIterator(this.SelectionStart);return Fraction$1.createFromFraction(e.CurrentEnrolledTimestamp)}},{key:"SheetEndTimestamp",get:function(){var e=this.getLastSourceMeasure();return Fraction$1.plus(e.AbsoluteTimestamp,e.Duration)}},{key:"getSourceMeasureFromTimeStamp",value:function(e){for(var t=0,n=this.sourceMeasures.length;t<n;++t)for(var r=this.sourceMeasures[t],i=0,a=r.VerticalSourceStaffEntryContainers.length;i<a;++i){var o=r.VerticalSourceStaffEntryContainers[i];if(e.Equals(o.getAbsoluteTimestamp()))return r}return this.findSourceMeasureFromTimeStamp(e)}},{key:"findSourceMeasureFromTimeStamp",value:function(e){var t,n=_createForOfIteratorHelper(this.sourceMeasures);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.AbsoluteTimestamp.lte(e)&&e.lt(Fraction$1.plus(r.AbsoluteTimestamp,r.Duration)))return r}}catch(err){n.e(err)}finally{n.f()}}},{key:"getVisibleInstruments",value:function(){for(var e=[],t=0,n=this.Instruments.length;t<n;++t){var r=this.Instruments[t];r.Voices.length>0&&r.Voices[0].Visible&&e.push(r)}return e}}],[{key:"getIndexFromStaff",value:function(e){return e.idInMusicSheet}}]),e}();MusicSheet.defaultTitle="[no title given]";var LyricWord=function(){function e(){_classCallCheck2(this,e),this.syllables=[]}return _createClass2(e,[{key:"Syllables",get:function(){return this.syllables}},{key:"containsVoiceEntry",value:function(e){for(var t=0,n=this.Syllables.length;t<n;++t){if(this.Syllables[t].Parent===e)return!0}return!1}},{key:"findLyricEntryInVoiceEntry",value:function(e){for(var t=0,n=this.Syllables.length;t<n;++t){var r=this.Syllables[t];if(r.Parent===e)return r}}}]),e}(),LyricsEntry=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;_classCallCheck2(this,e),this.text=t,this.word=r,this.parent=i,this.verseNumber=n,a>=0&&(this.syllableIndex=a)}return _createClass2(e,[{key:"Text",get:function(){return this.text},set:function(e){this.text=e}},{key:"Word",get:function(){return this.word}},{key:"Parent",get:function(){return this.parent},set:function(e){this.parent=e}},{key:"VerseNumber",get:function(){return this.verseNumber}},{key:"SyllableIndex",get:function(){return this.syllableIndex}}]),e}(),LyricsReader=function(){function e(t){_classCallCheck2(this,e),this.openLyricWords={},this.musicSheet=t}return _createClass2(e,[{key:"addLyricEntry",value:function(e,t){if(e){for(var n=e,r=0,i=n.length;r<i;++r){var a=n[r];try{var o="single";if(a.element("text")){var s=a.element("text");if(a.element("syllabic")&&(o=a.element("syllabic").value),s){var l,u="",c=_createForOfIteratorHelper(a.elements());try{for(c.s();!(l=c.n()).done;){var h=l.value;"text"!==h.name&&"elision"!==h.name||(u+=h.value)}}catch(err){c.e(err)}finally{c.f()}if(u=u.replace(" "," "),void 0!==a.element("elision")&&"-"===u){for(var d=a.elements(),f=0,p=0;p<d.length;p++){if("elision"===d[p].name){f=p;break}}var v=void 0,m=void 0;if(f>0)for(var g=f;g<d.length;g++){var y=d[g];"text"===y.name&&(v=y),"syllabic"===y.name&&(m=y)}void 0!==v&&m&&(s=v,o="middle")}var b=1,A=!1;if(void 0!==a.attributes()&&a.attribute("number")){try{b=parseInt(a.attribute("number").value,10)}catch(err){A=!0}if(A=A||isNaN(b))try{var S=a.attribute("number").value.toLowerCase().split("verse");S.length>1&&(b=parseInt(S[1],10))}catch(err){var x=ITextTranslation.translateText("ReaderErrorMessages/LyricVerseNumberError","Invalid lyric verse number");this.musicSheet.SheetErrors.pushMeasureError(x);continue}}var w=void 0;if("single"===o||"end"===o){if(this.openLyricWords[b]){this.currentLyricWord=this.openLyricWords[b];var _=this.currentLyricWord.Syllables.length;w=new LyricsEntry(u,b,this.currentLyricWord,t,_),this.currentLyricWord.Syllables.push(w),delete this.openLyricWords[b],this.currentLyricWord=void 0}else w=new LyricsEntry(u,b,void 0,t);w.extend=void 0!==a.element("extend")}else if("begin"===o)this.openLyricWords[b]&&(delete this.openLyricWords[b],this.currentLyricWord=void 0),this.currentLyricWord=new LyricWord,this.openLyricWords[b]=this.currentLyricWord,w=new LyricsEntry(u,b,this.currentLyricWord,t,0),this.currentLyricWord.Syllables.push(w);else if("middle"===o)if(this.openLyricWords[b]){this.currentLyricWord=this.openLyricWords[b];var E=this.currentLyricWord.Syllables.length;w=new LyricsEntry(u,b,this.currentLyricWord,t,E),this.currentLyricWord.Syllables.push(w)}else w=new LyricsEntry(u,b,void 0,t);if(w){var k,C;if(!t.LyricsEntries[b])t.LyricsEntries.setValue(b,w),null!==(k=t.ParentSourceStaffEntry)&&void 0!==k&&null!==(C=k.VerticalContainerParent)&&void 0!==C&&C.ParentMeasure&&(t.ParentSourceStaffEntry.VerticalContainerParent.ParentMeasure.hasLyrics=!0);t.ParentVoice.Parent.LyricVersesNumbers[b]||t.ParentVoice.Parent.LyricVersesNumbers.push(b)}}}}catch(err){var M=ITextTranslation.translateText("ReaderErrorMessages/LyricError","Error while reading lyric entry.");this.musicSheet.SheetErrors.pushMeasureError(M);continue}}t.ParentVoice.Parent.LyricVersesNumbers=t.ParentVoice.Parent.LyricVersesNumbers.filter((function(e,t,n){return n.indexOf(e)===t}))}}}]),e}(),Articulation=function(){function e(t,n){_classCallCheck2(this,e),this.articulationEnum=t,this.placement=n}return _createClass2(e,[{key:"Equals",value:function(e){return e.articulationEnum===this.articulationEnum&&e.placement===this.placement}}]),e}(),ArticulationReader=function(){function e(t){_classCallCheck2(this,e),this.rules=t}return _createClass2(e,[{key:"getAccEnumFromString",value:function(e){switch(e){case"sharp":return AccidentalEnum.SHARP;case"flat":return AccidentalEnum.FLAT;case"natural":return AccidentalEnum.NATURAL;case"double-sharp":case"sharp-sharp":return AccidentalEnum.DOUBLESHARP;case"double-flat":case"flat-flat":return AccidentalEnum.DOUBLEFLAT;case"triple-sharp":return AccidentalEnum.TRIPLESHARP;case"triple-flat":return AccidentalEnum.TRIPLEFLAT;case"quarter-sharp":return AccidentalEnum.QUARTERTONESHARP;case"quarter-flat":return AccidentalEnum.QUARTERTONEFLAT;case"three-quarters-sharp":return AccidentalEnum.THREEQUARTERSSHARP;case"three-quarters-flat":return AccidentalEnum.THREEQUARTERSFLAT;case"slash-quarter-sharp":return AccidentalEnum.SLASHQUARTERSHARP;case"slash-sharp":return AccidentalEnum.SLASHSHARP;case"double-slash-flat":return AccidentalEnum.DOUBLESLASHFLAT;case"sori":return AccidentalEnum.SORI;case"koron":return AccidentalEnum.KORON;default:return AccidentalEnum.NONE}}},{key:"addArticulationExpression",value:function(e,t){if(void 0!==e&&e.elements().length>0)for(var n=e.elements(),r=0,i=n.length;r<i;++r){var a=n[r],o=a.name;try{o=o.replace("-","");var s=ArticulationEnum[o];if(VoiceEntry.isSupportedArticulation(s)){var l,u=PlacementEnum.NotYetDefined,c=null===(l=a.attribute("placement"))||void 0===l?void 0:l.value;"above"===c?u=PlacementEnum.Above:"below"===c&&(u=PlacementEnum.Below);var h=new Articulation(s,u);if("staccato"===o&&t.Articulations.length>0&&t.Articulations[0].articulationEnum!==ArticulationEnum.staccato&&t.Articulations.splice(0,0,h),"strongaccent"===o){var d,f=null==a||null===(d=a.attribute("type"))||void 0===d?void 0:d.value;"up"===f?h.articulationEnum=ArticulationEnum.marcatoup:"down"===f&&(h.articulationEnum=ArticulationEnum.marcatodown)}if("detachedlegato"===o){var p,v=new Articulation(ArticulationEnum.staccato,u),m=new Articulation(ArticulationEnum.tenuto,u);(p=t.Articulations).push.apply(p,[v,m])}if(!t.hasArticulation(h))switch(t.Articulations.push(h),h.articulationEnum){case ArticulationEnum.staccato:case ArticulationEnum.staccatissimo:t.DurationModifier=h;break;case ArticulationEnum.accent:case ArticulationEnum.strongaccent:t.VolumeModifier=h}}}catch(g){return void loglevelExports.debug("addArticulationExpression","Invalid note articulation.",g)}}}},{key:"addFermata",value:function(e,t){var n,r=ArticulationEnum.fermata;e.attributes().length>0&&e.attribute("type")&&"inverted"===e.attribute("type").value&&(r=ArticulationEnum.invertedfermata);var i=PlacementEnum.Above;"below"===(null===(n=e.attribute("placement"))||void 0===n?void 0:n.value)&&(i=PlacementEnum.Below),t.Articulations.push(new Articulation(r,i))}},{key:"addTechnicalArticulations",value:function(e,t,n){var r={bend:ArticulationEnum.bend,"down-bow":ArticulationEnum.downbow,"open-string":ArticulationEnum.naturalharmonic,"snap-pizzicato":ArticulationEnum.snappizzicato,stopped:ArticulationEnum.lefthandpizzicato,"up-bow":ArticulationEnum.upbow};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i],o=e.element(i);if(o){var s,l,u=void 0;"above"===(null===(s=o.attribute("placement"))||void 0===s?void 0:s.value)&&(u=PlacementEnum.Above),"below"===(null===(l=o.attribute("placement"))||void 0===l?void 0:l.value)&&(u=PlacementEnum.Below);var c=new Articulation(a,u);t.hasArticulation(c)||t.Articulations.push(c)}}var h=e.element("fingering");if(h){var d=this.createTechnicalInstruction(h,n);d.type=TechnicalInstructionType.Fingering,n.Fingering=d,t.TechnicalInstructions.push(d)}var f=e.element("string");if(f){var p=this.createTechnicalInstruction(f,n);p.type=TechnicalInstructionType.String,n.StringInstruction=p,t.TechnicalInstructions.push(p)}}},{key:"createTechnicalInstruction",value:function(e,t){var n=new TechnicalInstruction;n.sourceNote=t,n.value=e.value;var r=e.attribute("placement");return this.rules.FingeringPositionFromXML&&(n.placement=this.getPlacement(r)),n}},{key:"getPlacement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PlacementEnum.NotYetDefined;if(t!==PlacementEnum.NotYetDefined)return t;if(!e)return PlacementEnum.NotYetDefined;switch(e.value){case"above":return PlacementEnum.Above;case"below":return PlacementEnum.Below;case"left":return PlacementEnum.Left;case"right":return PlacementEnum.Right;default:return PlacementEnum.NotYetDefined}}},{key:"addOrnament",value:function(e,t){if(e){var n=void 0,r={"delayed-inverted-turn":OrnamentEnum.DelayedInvertedTurn,"delayed-turn":OrnamentEnum.DelayedTurn,"inverted-mordent":OrnamentEnum.InvertedMordent,"inverted-turn":OrnamentEnum.InvertedTurn,mordent:OrnamentEnum.Mordent,"trill-mark":OrnamentEnum.Trill,turn:OrnamentEnum.Turn};for(var i in r)if(r.hasOwnProperty(i)){var a=e.element(i);if(a){n=new OrnamentContainer(r[i]);var o=a.attribute("placement");if(o)"below"===o.value&&(n.placement=PlacementEnum.Below)}}if(n){var s=e.elements("accidental-mark");if(s)for(var l=PlacementEnum.Below,u=AccidentalEnum.NONE,c=s,h=0,d=c.length;h<d;++h){var f=c[h],p=f.value;u=this.getAccEnumFromString(p);var v=f.attribute("placement");f.hasAttributes&&v&&("above"===(p=v.value)?l=PlacementEnum.Above:"below"===p&&(l=PlacementEnum.Below)),l===PlacementEnum.Above?n.AccidentalAbove=u:l===PlacementEnum.Below&&(n.AccidentalBelow=u)}t.OrnamentContainer=n}}}}]),e}(),TabNote=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r,i,a,o,s,l,u){var c;return _classCallCheck2(this,n),(c=t.call(this,e,r,i,a,o)).stringNumberTab=s,c.fretNumber=l,c.bendArray=u,c}return _createClass2(n,[{key:"StringNumberTab",get:function(){return this.stringNumberTab}},{key:"FretNumber",get:function(){return this.fretNumber}},{key:"BendArray",get:function(){return this.bendArray}}]),n}(Note$1),VoiceGenerator=function(){function t(e,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;_classCallCheck2(this,t),this.openBeams=[],this.beamNumberOffset=0,this.currentOctaveShift=0,this.tupletDict={},this.openTupletNumber=0,this.currMeasureVoiceEntries=[],this.graceVoiceEntriesTempList=[],this.staff=n,this.instrument=n.ParentInstrument,this.musicSheet=this.instrument.GetMusicSheet,this.slurReader=i,this.pluginManager=e,this.voice=a?new LinkedVoice(this.instrument,r,a):new Voice(this.instrument,r),this.instrument.Voices.push(this.voice),this.staff.Voices.push(this.voice),this.lyricsReader=new LyricsReader(this.musicSheet),this.articulationReader=new ArticulationReader(this.musicSheet.Rules)}return _createClass2(t,[{key:"openTieDict",get:function(){return this.staff.openTieDict}},{key:"GetVoice",get:function(){return this.voice}},{key:"OctaveShift",get:function(){return this.currentOctaveShift},set:function(e){this.currentOctaveShift=e}},{key:"createVoiceEntry",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.activeKey=n,this.activeRhythm=r,this.currentVoiceEntry=new VoiceEntry(Fraction$1.createFromFraction(e),this.voice,t,!0,i,a,o),i?this.graceVoiceEntriesTempList.push(this.currentVoiceEntry):(this.currentNormalVoiceEntry=this.currentVoiceEntry,this.currMeasureVoiceEntries.push(this.currentNormalVoiceEntry),this.graceVoiceEntriesTempList.length>0&&(this.currentVoiceEntry.GraceVoiceEntriesBefore=this.graceVoiceEntriesTempList,this.graceVoiceEntriesTempList=[]))}},{key:"finalizeReadingMeasure",value:function(){this.graceVoiceEntriesTempList.length>0&&void 0!==this.currentNormalVoiceEntry&&this.currentNormalVoiceEntry.GraceVoiceEntriesAfter.concat(this.graceVoiceEntriesTempList),this.graceVoiceEntriesTempList=[],this.pluginManager.processVoiceMeasureReadPlugins(this.currMeasureVoiceEntries,this.activeKey,this.activeRhythm),this.currMeasureVoiceEntries.length=0,this.openBeams.length>1&&this.handleOpenBeam()}},{key:"read",value:function(e,t,n,r,i,a,o,s,l,u,c,h,d,f,p,v,m,g,y,b,A,S,x){this.currentStaffEntry=o,this.currentMeasure=s;try{this.currentNote=a?this.addRestNote(e.element("rest"),t,r,i,d,f,y):this.addSingleNote(e,t,r,n,i,c,h,d,f,p,v,m,g,y,A,S,x),this.currentNote.DotsXml=b;var w=e.elements("lyric");void 0!==this.lyricsReader&&w&&(this.lyricsReader.addLyricEntry(w,this.currentVoiceEntry),this.voice.Parent.HasLyrics=!0);var _=!1,E=e.element("notations");if(E){this.articulationReader&&this.readArticulations(E,this.currentVoiceEntry,this.currentNote);var k=E.elements("slur");void 0!==this.slurReader&&k.length>0&&!this.currentNote.ParentVoiceEntry.IsGrace&&this.slurReader.addSlur(k,this.currentNote);var C=E.elements("tuplet");C.length>0&&(this.openTupletNumber=this.addTuplet(e,C),_=!0);var M=E.element("arpeggiate");if(void 0!==M){var P;if(this.currentVoiceEntry.Arpeggio)P=this.currentVoiceEntry.Arpeggio;else{var I,T=!1,B=_createForOfIteratorHelper(this.currentStaffEntry.VoiceEntries);try{for(B.s();!(I=B.n()).done;){var R=I.value;if(R.Arpeggio){T=!0,P=R.Arpeggio;break}}}catch(err){B.e(err)}finally{B.f()}if(!T){var L=ArpeggioType.ARPEGGIO_DIRECTIONLESS,N=M.attribute("direction");if(N)switch(N.value){case"up":L=ArpeggioType.ROLL_UP;break;case"down":L=ArpeggioType.ROLL_DOWN;break;default:L=ArpeggioType.ARPEGGIO_DIRECTIONLESS}P=new Arpeggio(this.currentVoiceEntry,L),this.currentVoiceEntry.Arpeggio=P}}P.addNote(this.currentNote)}var F=E.elements("tied");F.length>0&&this.addTie(F,l,u,TieTypes.SIMPLE);var D=E.elements("slide");D.length>0&&this.addTie(D,l,u,TieTypes.SLIDE);var O=E.element("technical");if(O){var V=O.elements("hammer-on");V.length>0&&this.addTie(V,l,u,TieTypes.HAMMERON);var z=O.elements("pull-off");z.length>0&&this.addTie(z,l,u,TieTypes.PULLOFF)}}void 0===e.element("time-modification")||_||this.handleTimeModificationNode(e)}catch(err){loglevelExports.warn(err);var G=ITextTranslation.translateText("ReaderErrorMessages/NoteError","Ignored erroneous Note.");this.musicSheet.SheetErrors.pushMeasureError(G),this.musicSheet.SheetErrors.pushMeasureError(err)}return this.currentNote}},{key:"checkForStaffEntryLink",value:function(e,t,n,r){var i=new StaffEntryLink(this.currentVoiceEntry);i.LinkStaffEntries.push(n),n.Link=i;var a=this.currentVoiceEntry.Timestamp.clone(),o=r.getVerticalContainerByTimestamp(a);return(n=o.StaffEntries[e])||(n=new SourceStaffEntry(o,t),o.StaffEntries[e]=n),n.VoiceEntries.push(this.currentVoiceEntry),i.LinkStaffEntries.push(n),n.Link=i,n}},{key:"checkForOpenBeam",value:function(){this.openBeams.length>0&&this.currentNote&&this.handleOpenBeam()}},{key:"checkOpenTies",value:function(){var e=this.openTieDict;for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];Fraction$1.plus(n.StartNote.ParentStaffEntry.Timestamp,n.Duration).lt(n.StartNote.SourceMeasure.Duration)&&delete e[t]}}},{key:"hasVoiceEntry",value:function(){return void 0!==this.currentVoiceEntry}},{key:"readArticulations",value:function(e,t,n){var r=e.element("articulations");r&&this.articulationReader.addArticulationExpression(r,t);var i=e.element("fermata");i&&this.articulationReader.addFermata(i,t);var a=e.element("technical");a&&this.articulationReader.addTechnicalArticulations(a,t,n);var o=e.element("ornaments");o&&this.articulationReader.addOrnament(o,t)}},{key:"addSingleNote",value:function(e,t,n,r,i,a,o,s,l,u,c,h,d,f,p,v,m){for(var g,y=0,b=AccidentalEnum.NONE,A=NoteEnum.C,S=NoteEnum.C,x=0,w=0,_=void 0,E=void 0,k=void 0,C=e.elements(),M=0,P=C.length;M<P;++M){var I=C[M];try{if("pitch"===I.name)for(var T=I.elements(),B=0,R=T.length;B<R;++B){var L=T[B];E=void 0,k=void 0;try{if("step"===L.name){if(void 0===(A=NoteEnum[L.value])){var N=ITextTranslation.translateText("ReaderErrorMessages/NotePitchError","Invalid pitch while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(N),new MusicSheetReadingException(N,void 0)}}else if("alter"===L.name){if(y=parseFloat(L.value),isNaN(y)){var F=ITextTranslation.translateText("ReaderErrorMessages/NoteAlterationError","Invalid alteration while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(F),new MusicSheetReadingException(F,void 0)}b=Pitch.AccidentalFromHalfTones(y)}else if("octave"===L.name&&(x=parseInt(L.value,10),isNaN(x))){var D=ITextTranslation.translateText("ReaderErrorMessages/NoteOctaveError","Invalid octave value while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(D),new MusicSheetReadingException(D,void 0)}}catch(q){loglevelExports.info("VoiceGenerator.addSingleNote read Step: ",q.message)}}else if("accidental"===I.name)"natural"===(g=I.value)?b=AccidentalEnum.NATURAL:"slash-flat"===g?b=AccidentalEnum.SLASHFLAT:"slash-quarter-sharp"===g?b=AccidentalEnum.SLASHQUARTERSHARP:"slash-sharp"===g?b=AccidentalEnum.SLASHSHARP:"double-slash-flat"===g?b=AccidentalEnum.DOUBLESLASHFLAT:"sori"===g?b=AccidentalEnum.SORI:"koron"===g&&(b=AccidentalEnum.KORON);else if("unpitched"===I.name){var O=I.element("display-step"),V=I.element("display-octave");if(V&&(w=(x=parseInt(V.value,10))-3,o&&(x+=1),1===this.instrument.Staves[0].StafflineCount&&(w+=1)),O){A=NoteEnum[O.value.toUpperCase()];var z=this.musicSheet.Rules.PercussionXMLDisplayStepNoteValueShift;1===this.instrument.Staves[0].StafflineCount&&(z-=3);var G=_slicedToArray(Pitch.lineShiftFromNoteEnum(A,z),2);S=G[0],w+=G[1]}}else"instrument"===I.name?I.firstAttribute&&(_=I.firstAttribute.value):"notehead"===I.name&&(E=I.value,I.attribute("filled")&&(k="yes"===I.attribute("filled").value))}catch(q){loglevelExports.info("VoiceGenerator.addSingleNote: ",q)}}x-=Pitch.OctaveXmlDifference;var H=new Pitch(A,x,b,g),U=Fraction$1.createFromFraction(t),j=void 0,Q=-1,Y=-1,W=[],X=e.element("notations");if(X){var K=X.element("technical");if(K){var J=K.element("string");J&&(Q=parseInt(J.value,10));var $=K.element("fret");$&&(Y=parseInt($.value,10)),K.elements("bend").forEach((function(e){var t=e.element("bend-alter");void 0!==e.element("release")?W.push({bendalter:parseInt(t.value,10),direction:"down"}):W.push({bendalter:parseInt(t.value,10),direction:"up"})}))}}return j=Q<0||Y<0?new Note$1(this.currentVoiceEntry,this.currentStaffEntry,U,H,this.currentMeasure):new TabNote(this.currentVoiceEntry,this.currentStaffEntry,U,H,this.currentMeasure,Q,Y,W),this.addNoteInfo(j,n,s,l,i,S,w,f,f),j.TypeLength=r,j.IsGraceNote=u,j.StemDirectionXml=c,j.TremoloStrokes=h,j.PlaybackInstrumentId=_,(void 0!==E&&"normal"!==E||void 0!==k)&&(j.Notehead=new Notehead(j,E,k)),j.NoteheadColorXml=f,j.NoteheadColor=f,j.PlaybackInstrumentId=_,j.TremoloType=p,j.glissandoType=v,j.slideType=m,this.currentVoiceEntry.addNote(j),c===StemDirectionType.None&&(d="#00000000"),this.currentVoiceEntry.StemDirectionXml=c,d&&(this.currentVoiceEntry.StemColorXml=d,this.currentVoiceEntry.StemColor=d,j.StemColorXml=d),e.elements("beam")&&!a&&this.createBeam(e,j),j}},{key:"addRestNote",value:function(e,t,n,r,i,a,o){var s,l,u=Fraction$1.createFromFraction(t),c=e.element("display-step"),h=e.element("display-octave"),d=void 0;c&&h&&(s=NoteEnum[c.value.toUpperCase()],l=parseInt(h.value,10),d=new Pitch(s,l,AccidentalEnum.NONE));var f=new Note$1(this.currentVoiceEntry,this.currentStaffEntry,u,d,this.currentMeasure,!0);return this.addNoteInfo(f,n,i,a,r,s,l,o,o),this.currentVoiceEntry.Notes.push(f),this.openBeams.length>0&&this.openBeams.last().ExtendedNoteList.push(f),f}},{key:"addNoteInfo",value:function(e,t,n,r,i,a,o,s,l){e.NoteTypeXml=t,e.PrintObject=n,e.IsCueNote=r,e.NormalNotes=i,e.displayStepUnpitched=a,e.displayOctaveUnpitched=o,e.NoteheadColorXml=s,e.NoteheadColor=s}},{key:"createBeam",value:function(t,n){try{var r=t.element("beam"),i=void 0;if(void 0!==r&&r.hasAttributes&&(i=r.attribute("number")),i){var a,o=parseInt(i.value,10),s=t.elements("beam"),l=s[0].value;if(s)if("begin"===l)o===(null===(a=this.openBeams.last())||void 0===a?void 0:a.BeamNumber)?(this.beamNumberOffset++,o+=this.beamNumberOffset):this.openBeams.last()&&this.handleOpenBeam(),this.openBeams.push(new Beam(o,this.beamNumberOffset));else o+=this.beamNumberOffset;var u=!1;if(!(o>0&&o<=this.openBeams.length&&this.openBeams[o-1]))return void loglevelExports.debug("[OSMD] invalid beamnumber");for(var c=0,h=this.openBeams[o-1].Notes.length;c<h;++c){var d=this.openBeams[o-1].Notes[c];this.currentVoiceEntry===d.ParentVoiceEntry&&(u=!0)}if(!u)this.openBeams[o-1].addNoteToBeam(n),"end"===l&&this.endBeam()}}catch(e){var f=ITextTranslation.translateText("ReaderErrorMessages/BeamError","Error while reading beam.");throw this.musicSheet.SheetErrors.pushMeasureError(f),new MusicSheetReadingException("",e)}}},{key:"endBeam",value:function(){this.openBeams.pop(),this.beamNumberOffset=Math.max(0,this.beamNumberOffset-1)}},{key:"handleOpenBeam",value:function(){var e=this.openBeams.last();if(0!==e.Notes.length){if(1===e.Notes.length)return e.Notes[0].NoteBeam=void 0,void this.endBeam();if(this.currentNote===CollectionUtil.last(e.Notes))this.endBeam();else{var t=CollectionUtil.last(e.Notes).ParentStaffEntry,n=this.currentMeasure.getVerticalContainerIndexByTimestamp(t.Timestamp),r=t.VerticalContainerParent.StaffEntries.indexOf(t);if(n<this.currentMeasure.VerticalSourceStaffEntryContainers.length-1){var i=this.currentMeasure.VerticalSourceStaffEntryContainers[n+1].StaffEntries[r];if(i)for(var a=0,o=i.VoiceEntries.length;a<o;++a){var s=i.VoiceEntries[a];if(s.ParentVoice===this.voice){var l=s.Notes[0];l.Length.lte(new Fraction$1(1,8))?(this.openBeams.last().addNoteToBeam(l),this.endBeam()):this.endBeam()}}}else this.endBeam()}}else this.endBeam()}},{key:"addTuplet",value:function(e,t){var n=!1;if(void 0!==t&&t.length>1){var r=e.element("time-modification");r&&(r=r.element("actual-notes"));for(var i=t,a=0,o=i.length;a<o;++a){var s=i[a];if(void 0!==s&&s.attributes()){var l=s.attribute("bracket");l&&"yes"===l.value&&(n=!0);var u=s.attribute("type");if(u&&"start"===u.value){var c=1;s.attribute("number")&&(c=parseInt(s.attribute("number").value,10));var h=0;if(r&&(h=parseInt(r.value,10),isNaN(h))){var d=ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(d),new MusicSheetReadingException(d,void 0)}var f=new Tuplet(h,n);f.tupletLabelNumberPlacement=PlacementEnum.Above;var p=s.attribute("placement");p&&("below"===p.value&&(f.tupletLabelNumberPlacement=PlacementEnum.Below),f.PlacementFromXml=!0),this.tupletDict[c]&&(delete this.tupletDict[c],0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--),this.tupletDict[c]=f;var v=[];v.push(this.currentNote),f.Notes.push(v),f.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=f,this.openTupletNumber=c}else if("stop"===u.value){var m=1;s.attribute("number")&&(m=parseInt(s.attribute("number").value,10));var g=this.tupletDict[m];if(g){var y=s.attribute("placement");y&&("below"===y.value?g.tupletLabelNumberPlacement=PlacementEnum.Below:g.tupletLabelNumberPlacement=PlacementEnum.Above,g.PlacementFromXml=!0);var b=[];if(b.push(this.currentNote),g.Notes.push(b),!g.PlacementFromXml){var A,S=!1,x=_createForOfIteratorHelper(g.Notes);try{for(x.s();!(A=x.n()).done;){var w,_=_createForOfIteratorHelper(A.value);try{for(_.s();!(w=_.n()).done;){var E=w.value;if(!E.isRest()){E.StemDirectionXml===StemDirectionType.Down?g.tupletLabelNumberPlacement=PlacementEnum.Below:g.tupletLabelNumberPlacement=PlacementEnum.Above,S=!0;break}}}catch(err){_.e(err)}finally{_.f()}if(S)break}}catch(err){x.e(err)}finally{x.f()}}g.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=g,delete this.tupletDict[m],0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--}}}}}else if(t[0]){var k=t[0];if(k.hasAttributes){var C=k.attribute("type").value,M=1;k.attribute("number")&&(M=parseInt(k.attribute("number").value,10));var P=isNaN(M),I=k.attribute("bracket");if(I&&"yes"===I.value&&(n=!0),"start"===C){var T=0,B=e.element("time-modification");if(B&&(B=B.element("actual-notes")),B&&(T=parseInt(B.value,10),isNaN(T))){var R=ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(R),new MusicSheetReadingException(R)}P&&(this.openTupletNumber++,M=this.openTupletNumber);var L=this.tupletDict[M];L||((L=this.tupletDict[M]=new Tuplet(T,n)).tupletLabelNumberPlacement=PlacementEnum.Above);var N=k.attribute("placement");N&&("below"===N.value?L.tupletLabelNumberPlacement=PlacementEnum.Below:L.tupletLabelNumberPlacement=PlacementEnum.Above,L.PlacementFromXml=!0);var F=[];F.push(this.currentNote),L.Notes.push(F),L.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=L,this.openTupletNumber=M}else if("stop"===C){P&&(M=this.openTupletNumber);var D=this.tupletDict[this.openTupletNumber];if(D){var O=k.attribute("placement");O&&("below"===O.value?D.tupletLabelNumberPlacement=PlacementEnum.Below:D.tupletLabelNumberPlacement=PlacementEnum.Above,D.PlacementFromXml=!0);var V=[];if(V.push(this.currentNote),D.Notes.push(V),!D.PlacementFromXml){var z,G=!1,H=_createForOfIteratorHelper(D.Notes);try{for(H.s();!(z=H.n()).done;){var U,j=_createForOfIteratorHelper(z.value);try{for(j.s();!(U=j.n()).done;){var Q=U.value;if(!Q.isRest()){Q.StemDirectionXml===StemDirectionType.Down?D.tupletLabelNumberPlacement=PlacementEnum.Below:D.tupletLabelNumberPlacement=PlacementEnum.Above,G=!0;break}}}catch(err){j.e(err)}finally{j.f()}if(G)break}}catch(err){H.e(err)}finally{H.f()}}D.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=D,0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--,delete this.tupletDict[M]}}}}return this.openTupletNumber}},{key:"handleTimeModificationNode",value:function(e){if(this.tupletDict[this.openTupletNumber])try{var t,n=this.tupletDict[this.openTupletNumber],r=CollectionUtil.last(n.Notes);r[0].ParentVoiceEntry.Timestamp.Equals(this.currentVoiceEntry.Timestamp)?t=r:(t=[],n.Notes.push(t),n.Fractions.push(this.getTupletNoteDurationFromType(e))),t.push(this.currentNote),this.currentNote.NoteTuplet=n}catch(s){var i=ITextTranslation.translateText("ReaderErrorMessages/TupletNumberError","Invalid tuplet number.");throw this.musicSheet.SheetErrors.pushMeasureError(i),s}else if(this.currentVoiceEntry.Notes.length>0){var a=this.currentVoiceEntry.Notes[0];if(a.NoteTuplet){var o=a.NoteTuplet;CollectionUtil.last(o.Notes).push(this.currentNote),this.currentNote.NoteTuplet=o}}}},{key:"addTie",value:function(e,t,n,r){if(e)if(1===e.length){var i=e[0];if(void 0!==i&&i.attributes()){var a=this.getTieDirection(i),o=i.attribute("type").value;try{if("start"===o){var s=this.findCurrentNoteInTieDict(this.currentNote);s<0&&delete this.openTieDict[s];var l=this.getNextAvailableNumberForTie(),u=new Tie(this.currentNote,r);this.openTieDict[l]=u,u.TieNumber=l,u.TieDirection=a}else if("stop"===o){var c=this.findCurrentNoteInTieDict(this.currentNote),h=this.openTieDict[c];h&&(h.AddNote(this.currentNote),delete this.openTieDict[c])}}catch(err){var d=ITextTranslation.translateText("ReaderErrorMessages/TieError","Error while reading tie.");this.musicSheet.SheetErrors.pushMeasureError(d)}}}else if(2===e.length){var f=this.findCurrentNoteInTieDict(this.currentNote);if(f>=0){var p=this.openTieDict[f];p.AddNote(this.currentNote);var v,m=_createForOfIteratorHelper(e);try{for(m.s();!(v=m.n()).done;){var g=v.value;if("start"===g.attribute("type").value){var y=this.getTieDirection(g);p.NoteIndexToTieDirection[p.Notes.length-1]=y}}}catch(err){m.e(err)}finally{m.f()}}}}},{key:"getTieDirection",value:function(e){var t=PlacementEnum.NotYetDefined,n=e.attribute("placement");n&&("above"===n.value?t=PlacementEnum.Above:"below"===n.value&&(t=PlacementEnum.Below));var r=e.attribute("orientation");return r&&("over"===r.value?t=PlacementEnum.Above:"under"===r.value&&(t=PlacementEnum.Below)),t}},{key:"getNextAvailableNumberForTie",value:function(){var e=Object.keys(this.openTieDict);if(0===e.length)return 1;e.sort((function(e,t){return+e-+t}));for(var t=0;t<e.length;t++)if(""+(t+1)!==e[t])return t+1;return+e[e.length-1]+1}},{key:"findCurrentNoteInTieDict",value:function(e){var t=this.openTieDict;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],i=r.Notes[0],a=e;if(r.Pitch.FundamentalNote===e.Pitch.FundamentalNote&&r.Pitch.Octave===e.Pitch.Octave)return parseInt(n,10);if(void 0!==i.StringNumberTab&&i.StringNumberTab===a.StringNumberTab)return parseInt(n,10)}return-1}},{key:"getTupletNoteDurationFromType",value:function(t){if(t.element("type")){var n=t.element("type");if(n){var r=n.value;try{return NoteTypeHandler.getNoteDurationFromType(r)}catch(e){var i=ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(i),new MusicSheetReadingException("",e)}}}}}]),t}(),ChordSymbolReader=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"readChordSymbol",value:function(e,t,n){var r=e.element("root"),i=e.element("kind"),a=i.attribute("text");if(r&&i){var o=r.element("root-step"),s=r.element("root-alter");if(o){var l;try{l=NoteEnum[o.value.trim()]}catch(D){var u=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(u),void loglevelExports.debug("InstrumentReader.readChordSymbol",u,D)}var c=AccidentalEnum.NONE;if(s)try{c=Pitch.AccidentalFromHalfTones(parseInt(s.value,10))}catch(D){var h=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");t.SheetErrors.pushMeasureError(h),loglevelExports.debug("InstrumentReader.readChordSymbol",h,D)}var d,f=new Pitch(l,1,c),p=i.value.trim().replace("-","");if(a)switch(a.value){case"aug":p="augmented";break;case"dim":p="diminished"}try{d=ChordSymbolEnum[p]}catch(D){var v=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(v),void loglevelExports.debug("InstrumentReader.readChordSymbol",v,D)}var m=void 0,g=e.element("bass");if(g){var y=g.element("bass-step"),b=g.element("bass-alter"),A=NoteEnum.C;if(y)try{A=NoteEnum[y.value.trim()]}catch(D){var S=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(S),void loglevelExports.debug("InstrumentReader.readChordSymbol",S,D)}var x=AccidentalEnum.NONE;if(b)try{x=Pitch.AccidentalFromHalfTones(parseInt(b.value,10))}catch(D){var w=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");t.SheetErrors.pushMeasureError(w),loglevelExports.debug("InstrumentReader.readChordSymbol",w,D)}m=new Pitch(A,1,x)}var _,E=[],k=_createForOfIteratorHelper(e.elements("degree"));try{for(k.s();!(_=k.n()).done;){var C=_.value;if(C){var M=C.element("degree-value"),P=C.element("degree-alter"),I=C.element("degree-type");if(!M||!P||!I)return;var T=void 0;try{T=parseInt(M.value.trim(),10)}catch(D){var B=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(B),void loglevelExports.debug("InstrumentReader.readChordSymbol",B,D)}var R=void 0;try{R=Pitch.AccidentalFromHalfTones(parseInt(P.value,10))}catch(D){var L=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(L),void loglevelExports.debug("InstrumentReader.readChordSymbol",L,D)}var N=void 0;try{N=ChordDegreeText[I.value.trim().toLowerCase()]}catch(D){var F=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(F),void loglevelExports.debug("InstrumentReader.readChordSymbol",F,D)}E.push(new Degree(T,R,N))}}}catch(err){k.e(err)}finally{k.f()}return new ChordSymbolContainer(f,d,m,E,t.Rules)}}}}]),e}(),Pedal=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classCallCheck2(this,e),this.ChangeEnd=!1,this.ChangeBegin=!1,this.line=t,this.sign=n}return _createClass2(e,[{key:"IsLine",get:function(){return this.line}},{key:"IsSign",get:function(){return this.sign}}]),e}(),WavyLine=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){return _classCallCheck2(this,n),t.call(this,e)}return _createClass2(n)}(AbstractExpression),ExpressionReader=function(){function e(t,n,r){_classCallCheck2(this,e),this.openContinuousDynamicExpressions=[],this.musicSheet=t,this.staffNumber=r,this.globalStaffIndex=t.getGlobalStaffIndexOfFirstStaff(n)+(r-1),this.initialize()}return _createClass2(e,[{key:"readExpressionParameters",value:function(e,t,n,r,i,a,o){this.initialize();var s=e.element("offset");if(void 0!==s&&!o)try{this.offsetDivisions=parseInt(s.value,10)}catch(w){var l="ReaderErrorMessages/ExpressionOffsetError, Invalid expression offset -> set to default.";loglevelExports.debug("ExpressionReader.readExpressionParameters",l,w),this.musicSheet.SheetErrors.pushMeasureError(l),this.offsetDivisions=0}this.directionTimestamp=Fraction$1.createFromFraction(r);var u=new Fraction$1(Math.abs(this.offsetDivisions),4*n);this.offsetDivisions>0?r.RealValue>0?(u=Fraction$1.multiply(Fraction$1.minus(r,i),u),this.directionTimestamp=Fraction$1.plus(u,r)):this.directionTimestamp=Fraction$1.createFromFraction(u):this.offsetDivisions<0&&(r.RealValue>0?(u=Fraction$1.multiply(Fraction$1.minus(r,i),u),this.directionTimestamp=Fraction$1.minus(r,u)):this.directionTimestamp=Fraction$1.createFromFraction(u));var c=e.attribute("placement");if(c)try{var h=c.value;"below"===h?this.placement=PlacementEnum.Below:"above"===h&&(this.placement=PlacementEnum.Above)}catch(w){var d=ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");loglevelExports.debug("ExpressionReader.readExpressionParameters",d,w),this.musicSheet.SheetErrors.pushMeasureError(d),this.placement=PlacementEnum.Below}if(this.placement===PlacementEnum.NotYetDefined)try{var f=e.element("direction-type");if(f){var p=f.element("dynamics");if(p){var v=p.attribute("default-y");v&&this.readExpressionPlacement(v,"read dynamics y pos")}var m=f.element("wedge");if(m){var g=m.attribute("default-y");g&&this.readExpressionPlacement(g,"read wedge y pos")}var y=f.element("words");if(y){var b=y.attribute("default-y");b&&this.readExpressionPlacement(b,"read words y pos")}var A=f.element("rehearsal");if(A){var S=A.attribute("default-y");S&&this.readExpressionPlacement(S,"read rehearsal pos")}}}catch(w){var x=ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");loglevelExports.debug("ExpressionReader.readExpressionParameters",x,w),this.musicSheet.SheetErrors.pushMeasureError(x),this.placement=PlacementEnum.Below}this.placement===PlacementEnum.NotYetDefined&&(t.Staves.length>1?this.placement=PlacementEnum.Below:t.HasLyrics?this.placement=PlacementEnum.Above:this.placement=PlacementEnum.Below)}},{key:"read",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=!1,o=!1,s=e.element("sound");if(s){var l=s.attribute("tempo"),u=s.attribute("dynamics");if(l){var c=l.value.match(/^(\d+)(\.\d+)?$/);(null==c?void 0:c.length)>0?this.soundTempo=Math.round(Number.parseFloat(l.value)):(loglevelExports.info("invalid xml tempo: "+l.value),this.soundTempo=100),t.TempoInBPM=this.soundTempo,0===this.musicSheet.DefaultStartTempoInBpm&&(this.musicSheet.DefaultStartTempoInBpm=this.soundTempo),this.musicSheet.HasBPMInfo=!0,a=!0}if(u){var h=u.value.match(/\d+/);this.soundDynamic=void 0!==h?parseInt(h[0],10):100,o=!0}}var d=e.element("direction-type");if(d){var f=d.element("metronome");if(f){t.metronomeNoteIndex=i;var p=f.element("beat-unit"),v=void 0!==f.element("beat-unit-dot"),m=f.element("per-minute");if(void 0!==p&&m){f.hasAttributes&&void 0!==f.attribute("default-x")&&(this.directionTimestamp=Fraction$1.createFromFraction(n));var g=parseFloat(m.value);this.createNewTempoExpressionIfNeeded(t);var y=new InstantaneousTempoExpression(void 0,this.placement,this.staffNumber,g,this.currentMultiTempoExpression,!0);y.parentMeasure=t,this.soundTempo=g,t.TempoInBPM=this.soundTempo*(v?1.5:1),0===this.musicSheet.DefaultStartTempoInBpm&&(this.musicSheet.DefaultStartTempoInBpm=this.soundTempo),1===t.MeasureNumberXML&&0===this.musicSheet.SourceMeasures.length&&(this.musicSheet.DefaultStartTempoInBpm=this.soundTempo),this.musicSheet.HasBPMInfo=!0,y.dotted=v,y.beatUnit=p.value,this.currentMultiTempoExpression.addExpression(y,""),this.currentMultiTempoExpression.CombinedExpressionsText="test"}}else if(f=d.element("dynamics")){var b=void 0!==e.element("notations");this.interpretInstantaneousDynamics(f,t,n,b)}else if(f=d.element("words")){var A,S="",x=_createForOfIteratorHelper(d.elements("words"));try{for(x.s();!(A=x.n()).done;){S+=A.value.value}}catch(err){x.e(err)}finally{x.f()}if(f.value=S,a||isSpeedKeyword(f.value)||isSpeedHiddenKeyword(f.value)){this.createNewTempoExpressionIfNeeded(t),this.currentMultiTempoExpression.CombinedExpressionsText=f.value,(isSpeedKeyword(f.value)||isSpeedHiddenKeyword(f.value))&&(f.value=void 0);var w=new InstantaneousTempoExpression(f.value,this.placement,this.staffNumber,this.soundTempo,this.currentMultiTempoExpression);this.currentMultiTempoExpression.addExpression(w,"")}else o||this.interpretWords(f,t,n)}else(f=d.element("wedge"))?this.interpretWedge(f,t,r,t.MeasureNumber):(f=d.element("rehearsal"))&&this.interpretRehearsalMark(f,t,n,t.MeasureNumber)}}},{key:"closeOpenExpressions",value:function(e,t){var n,r=_createForOfIteratorHelper(this.openContinuousDynamicExpressions);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.createNewMultiExpressionIfNeeded(e,i.NumberXml,t),this.closeOpenContinuousDynamic(i,e,t)}}catch(err){r.e(err)}finally{r.f()}this.openContinuousTempoExpression&&this.closeOpenContinuousTempo(Fraction$1.plus(e.AbsoluteTimestamp,t))}},{key:"addOctaveShift",value:function(e,t,n){var r=1,i=e.element("staff");if(i)try{r=parseInt(i.value,10)}catch(m){var a=ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftStaffError","Invalid octave shift staff number -> set to default");this.musicSheet.SheetErrors.pushMeasureError(a),r=1,loglevelExports.debug("ExpressionReader.addOctaveShift",a,m)}var o=e.element("direction-type");if(o){var s=o.element("octave-shift"),l=this.readPlacement(e);if(void 0!==s&&s.hasAttributes)try{var u=this.readNumber(s);if(s.attribute("size")){var c,h=parseInt(s.attribute("size").value,10),d=0;8===h?d=1:15===h&&(d=2);var f=null===(c=s.attribute("type"))||void 0===c?void 0:c.value;if(f||(l===PlacementEnum.Above?f="down":l===PlacementEnum.Below&&(f="up")),"up"===f||"down"===f){var p=new OctaveShift(f,d);p.StaffNumber=r,this.getMultiExpression=this.createNewMultiExpressionIfNeeded(t,u),this.getMultiExpression.OctaveShiftStart=p,p.ParentStartMultiExpression=this.getMultiExpression,this.openOctaveShift=p}else if("stop"===f){if(this.openOctaveShift)this.getMultiExpression=this.createNewMultiExpressionIfNeeded(t,this.openOctaveShift.numberXml,n),this.getMultiExpression.OctaveShiftEnd=this.openOctaveShift,this.openOctaveShift.ParentEndMultiExpression=this.getMultiExpression,this.openOctaveShift=void 0}else f||loglevelExports.debug("octave-shift missing type in xml")}}catch(m){var v=ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftError","Error while reading octave shift.");this.musicSheet.SheetErrors.pushMeasureError(v),loglevelExports.debug("ExpressionReader.addOctaveShift",v,m)}}}},{key:"addPedalMarking",value:function(e,t,n){var r=e.element("direction-type");if(r){var i=r.element("pedal");if(void 0!==i&&i.hasAttributes){var a=!1,o=!1;try{var s,l,u,c;switch("yes"===(null===(s=i.attribute("line"))||void 0===s?void 0:s.value)?o=!0:"no"===(null===(l=i.attribute("line"))||void 0===l?void 0:l.value)&&(o=!1,a=!0),"yes"===(null===(u=i.attribute("sign"))||void 0===u?void 0:u.value)?a=!0:"no"===(null===(c=i.attribute("sign"))||void 0===c?void 0:c.value)&&(a=!1,o=!0),i.attribute("type").value){case"start":this.openPedal&&this.openPedal.IsLine&&this.endOpenPedal(t),this.createNewMultiExpressionIfNeeded(t,-1),this.openPedal=new Pedal(o,a),this.getMultiExpression.PedalStart=this.openPedal,this.openPedal.ParentStartMultiExpression=this.getMultiExpression;break;case"stop":this.openPedal&&this.endOpenPedal(t);break;case"change":this.openPedal&&this.openPedal.IsLine&&(this.openPedal.ChangeEnd=!0,this.createNewMultiExpressionIfNeeded(t,-1),this.getMultiExpression.PedalEnd=this.openPedal,this.openPedal.ParentEndMultiExpression=this.getMultiExpression,this.createNewMultiExpressionIfNeeded(t,-1),this.openPedal=new Pedal(o,a),this.openPedal.ChangeBegin=!0,this.getMultiExpression.PedalStart=this.openPedal,this.openPedal.ParentStartMultiExpression=this.getMultiExpression)}}catch(d){var h=ITextTranslation.translateText("ReaderErrorMessages/PedalError","Error while reading pedal.");this.musicSheet.SheetErrors.pushMeasureError(h),loglevelExports.debug("ExpressionReader.addPedalMarking",h,d)}}}}},{key:"endOpenPedal",value:function(e){this.createNewMultiExpressionIfNeeded(e,-1),this.getMultiExpression.PedalEnd=this.openPedal,this.openPedal.ParentEndMultiExpression=this.getMultiExpression,this.openPedal=void 0}},{key:"addWavyLine",value:function(e,t,n,r){if(e&&e.hasAttributes)try{switch(e.attribute("type").value){case"start":this.createNewMultiExpressionIfNeeded(t,-1),this.openWavyLine=new WavyLine(this.placement),this.getMultiExpression.WavyLineStart=this.openWavyLine,this.openWavyLine.ParentStartMultiExpression=this.getMultiExpression;break;case"stop":this.openWavyLine&&(this.createNewMultiExpressionIfNeeded(t,-1,n),this.getMultiExpression.WavyLineEnd=this.openWavyLine,this.openWavyLine.ParentEndMultiExpression=this.getMultiExpression,this.openWavyLine=void 0)}}catch(a){var i=ITextTranslation.translateText("ReaderErrorMessages/WavyLineError","Error while reading wavy-line.");this.musicSheet.SheetErrors.pushMeasureError(i),loglevelExports.debug("ExpressionReader.addWavyLine",i,a)}}},{key:"initialize",value:function(){this.placement=PlacementEnum.NotYetDefined,this.soundTempo=0,this.soundDynamic=0,this.offsetDivisions=0}},{key:"readPlacement",value:function(e){var t,n=null===(t=e.attribute("placement"))||void 0===t?void 0:t.value;return"above"===n?PlacementEnum.Above:"below"===n?PlacementEnum.Below:PlacementEnum.NotYetDefined}},{key:"readExpressionPlacement",value:function(e,t){try{var n=parseInt(e.value,10);n<0?this.placement=PlacementEnum.Below:n>0&&(this.placement=PlacementEnum.Above)}catch(r){loglevelExports.debug("ExpressionReader.readExpressionParameters",t,r)}}},{key:"interpretInstantaneousDynamics",value:function(e,t,n,r){if(e.hasElements){e.hasAttributes&&e.attribute("default-x")&&(this.directionTimestamp=Fraction$1.createFromFraction(n));var i=this.readNumber(e),a=e.elements()[0].name;if("other-dynamics"===a&&(a=e.elements()[0].value),a){r?this.createNewMultiExpressionIfNeeded(t,i,Fraction$1.createFromFraction(n)):this.createNewMultiExpressionIfNeeded(t,i);var o=new InstantaneousDynamicExpression(a,this.soundDynamic,this.placement,this.staffNumber,t);o.InMeasureTimestamp=n.clone(),this.getMultiExpression.addExpression(o,""),this.initialize(),this.activeInstantaneousDynamic?this.activeInstantaneousDynamic.DynEnum=o.DynEnum:this.activeInstantaneousDynamic=new InstantaneousDynamicExpression(a,0,PlacementEnum.NotYetDefined,1,t)}}}},{key:"interpretWords",value:function(e,t,n){var r,i=e.value,a=e.attribute("font-style");a&&("italic"===a.value&&(r=FontStyles.Italic));if(i.length>0){if(e.hasAttributes&&e.attribute("default-x")&&(this.directionTimestamp=Fraction$1.createFromFraction(n)),this.checkIfWordsNodeIsRepetitionInstruction(i))return;this.fillMultiOrTempoExpression(i,t,n,r),this.initialize()}}},{key:"readNumber",value:function(e){var t,n=1,r=null===(t=e.attribute("number"))||void 0===t?void 0:t.value;return r&&(n=Number.parseInt(r,10)),n}},{key:"interpretWedge",value:function(e,t,n,r){var i,a;void 0!==e&&e.hasAttributes&&e.attribute("default-x")&&(this.directionTimestamp=Fraction$1.createFromFraction(n));var o=this.readNumber(e);"stop"===(null===(i=e.attribute("type"))||void 0===i||null===(a=i.value)||void 0===a?void 0:a.toLowerCase())?this.createNewMultiExpressionIfNeeded(t,o,n):this.createNewMultiExpressionIfNeeded(t,o),this.addWedge(e,t,n),this.initialize()}},{key:"interpretRehearsalMark",value:function(e,t,n,r){t.rehearsalExpression=new RehearsalExpression(e.value,this.placement)}},{key:"createNewMultiExpressionIfNeeded",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;n||(n=this.directionTimestamp);var r=this.getMultiExpression;return(!r||r&&(r.SourceMeasureParent!==e||r.numberXml!==t||r.SourceMeasureParent===e&&r.Timestamp!==n))&&(this.getMultiExpression=r=new MultiExpression(e,Fraction$1.createFromFraction(n)),e.StaffLinkedExpressions[this.globalStaffIndex].push(r)),r}},{key:"createNewTempoExpressionIfNeeded",value:function(e){this.currentMultiTempoExpression&&this.currentMultiTempoExpression.SourceMeasureParent===e&&this.currentMultiTempoExpression.Timestamp===this.directionTimestamp||(this.currentMultiTempoExpression=new MultiTempoExpression(e,Fraction$1.createFromFraction(this.directionTimestamp)),e.TempoExpressions.push(this.currentMultiTempoExpression))}},{key:"addWedge",value:function(e,t,n){if(void 0!==e&&e.hasAttributes){var r=this.readNumber(e),i=e.attribute("type").value.toLowerCase();try{if("crescendo"===i||"diminuendo"===i){var a=new ContinuousDynamicExpression(ContDynamicEnum[i],this.placement,this.staffNumber,t,this.activeInstantaneousDynamic,r);this.openContinuousDynamicExpressions.push(a);var o=this.getMultiExpression;o||(o=this.createNewMultiExpressionIfNeeded(t,r)),o.StartingContinuousDynamic=a,a.StartMultiExpression=o,void 0!==this.activeInstantaneousDynamic&&this.activeInstantaneousDynamic.StaffNumber===a.StaffNumber&&(this.activeInstantaneousDynamic=void 0)}else if("stop"===i){var s,l=_createForOfIteratorHelper(this.openContinuousDynamicExpressions);try{for(l.s();!(s=l.n()).done;){var u=s.value;u.NumberXml===r&&u.NumberXml===r&&this.closeOpenContinuousDynamic(u,t,n)}}catch(err){l.e(err)}finally{l.f()}}}catch(h){var c="ReaderErrorMessages/WedgeError, Error while reading Crescendo / Diminuendo.";this.musicSheet.SheetErrors.pushMeasureError(c),loglevelExports.debug("ExpressionReader.addWedge",c,h)}}}},{key:"fillMultiOrTempoExpression",value:function(e,t,n,r){if(e){var i=e.trim();this.createExpressionFromString("",i,t,n,e,r)}}},{key:"createExpressionFromString",value:function(e,t,n,r,i,a){if(InstantaneousTempoExpression.isInputStringInstantaneousTempo(t)||ContinuousTempoExpression.isInputStringContinuousTempo(t)){if(n.TempoExpressions.length>0)for(var o=0,s=n.TempoExpressions.length;o<s;++o){var l=n.TempoExpressions[o];if(l.Timestamp===this.directionTimestamp&&void 0!==l.InstantaneousTempo&&-1!==l.InstantaneousTempo.Label.indexOf(t))return!1}if(this.createNewTempoExpressionIfNeeded(n),this.currentMultiTempoExpression.CombinedExpressionsText=i,InstantaneousTempoExpression.isInputStringInstantaneousTempo(t)){var u=new InstantaneousTempoExpression(t,this.placement,this.staffNumber,this.soundTempo,this.currentMultiTempoExpression);return this.currentMultiTempoExpression.addExpression(u,e),!0}if(ContinuousTempoExpression.isInputStringContinuousTempo(t)){var c=new ContinuousTempoExpression(t,this.placement,this.staffNumber,this.currentMultiTempoExpression);return this.currentMultiTempoExpression.addExpression(c,e),!0}}if(ContinuousDynamicExpression.isInputStringContinuousDynamic(t)){var h=new ContinuousDynamicExpression(void 0,this.placement,this.staffNumber,n,this.activeInstantaneousDynamic,-1,t),d=this.getMultiExpression;return d&&this.closeOpenContinuousDynamic(d.StartingContinuousDynamic,n,r),this.createNewMultiExpressionIfNeeded(n,-1),void 0!==this.activeInstantaneousDynamic&&this.activeInstantaneousDynamic.StaffNumber===h.StaffNumber&&(this.activeInstantaneousDynamic=void 0),this.openContinuousDynamicExpressions.push(h),h.StartMultiExpression=this.getMultiExpression,this.getMultiExpression.addExpression(h,e),!0}if(MoodExpression.isInputStringMood(t)){var f=this.createNewMultiExpressionIfNeeded(n,-1);n.hasMoodExpressions=!0;var p=new MoodExpression(t,this.placement,this.staffNumber);return p.fontStyle=a,f.addExpression(p,e),!0}var v=this.createNewMultiExpressionIfNeeded(n,-1);if(n.TempoExpressions.length>0)for(var m=0,g=n.TempoExpressions.length;m<g;++m){var y=n.TempoExpressions[m];if(y.Timestamp===this.directionTimestamp&&void 0!==y.InstantaneousTempo&&y.EntriesList.length>0&&!this.hasDigit(t)&&this.globalStaffIndex>0){if(y.EntriesList[0].label.indexOf(t)>=0)return!1;break}}var b=TextAlignmentEnum.CenterBottom;this.musicSheet.Rules.CompactMode&&(b=TextAlignmentEnum.LeftBottom);var A=new UnknownExpression(t,this.placement,b,this.staffNumber);return A.fontStyle=a,v.addExpression(A,e),!1}},{key:"closeOpenContinuousDynamic",value:function(e,t,n){if(e){var r=e.NumberXml;e.EndMultiExpression=this.createNewMultiExpressionIfNeeded(t,r,n),e.StartMultiExpression.EndingContinuousDynamic=e,this.openContinuousDynamicExpressions=this.openContinuousDynamicExpressions.filter((function(t){return t!==e}))}}},{key:"closeOpenContinuousTempo",value:function(e){this.openContinuousTempoExpression.AbsoluteEndTimestamp=e,this.openContinuousTempoExpression=void 0}},{key:"checkIfWordsNodeIsRepetitionInstruction",value:function(e){return"coda"===(e=e.trim().toLowerCase())||"tocoda"===e||"to coda"===e||"fine"===e||"d.c."===e||"dacapo"===e||"da capo"===e||"d.s."===e||"dalsegno"===e||"dal segno"===e||"d.c. al fine"===e||"d.s. al fine"===e||"d.c. al coda"===e||"d.s. al coda"===e}},{key:"hasDigit",value:function(e){return/\d/.test(e)}}]),e}(),Slur=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"StartNote",get:function(){return this.startNote},set:function(e){this.startNote=e}},{key:"EndNote",get:function(){return this.endNote},set:function(e){this.endNote=e}},{key:"startNoteHasMoreStartingSlurs",value:function(){if(!this.startNote)return!1;for(var e=0,t=this.startNote.NoteSlurs.length;e<t;++e){var n=this.startNote.NoteSlurs[e];if(n!==this&&n.StartNote===this.startNote)return!0}return!1}},{key:"endNoteHasMoreEndingSlurs",value:function(){if(!this.endNote)return!1;for(var e=0,t=this.endNote.NoteSlurs.length;e<t;++e){var n=this.endNote.NoteSlurs[e];if(n!==this&&n.EndNote===this.endNote)return!0}return!1}},{key:"isCrossed",value:function(){return this.startNote.ParentStaffEntry.ParentStaff!==this.endNote.ParentStaffEntry.ParentStaff}},{key:"isSlurLonger",value:function(){if(!this.endNote||!this.startNote)return!1;for(var e=Fraction$1.minus(this.endNote.getAbsoluteTimestamp(),this.startNote.getAbsoluteTimestamp()),t=0,n=this.startNote.NoteSlurs.length;t<n;++t){var r=this.startNote.NoteSlurs[t];if(r!==this&&void 0!==r.EndNote&&void 0!==r.StartNote&&-1===Fraction$1.minus(r.EndNote.getAbsoluteTimestamp(),r.StartNote.getAbsoluteTimestamp()).CompareTo(e))return!0}for(var i=0,a=this.endNote.NoteSlurs.length;i<a;++i){var o=this.endNote.NoteSlurs[i];if(o!==this&&void 0!==o.EndNote&&void 0!==o.StartNote&&Fraction$1.minus(o.EndNote.getAbsoluteTimestamp(),o.StartNote.getAbsoluteTimestamp()).CompareTo(e))return!0}return!1}}]),e}(),SlurReader=function(){function e(t){_classCallCheck2(this,e),this.openSlurDict={},this.musicSheet=t}return _createClass2(e,[{key:"addSlur",value:function(e,t){try{if(e){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.attributes().length>0){var a=i.attribute("type").value,o=1;try{i.attribute("number")&&(o=parseInt(i.attribute("number").value,10))}catch(f){loglevelExports.debug("VoiceGenerator.addSlur number: ",f)}var s=PlacementEnum.NotYetDefined,l=i.attribute("placement");l&&l.value&&("above"===l.value?s=PlacementEnum.Above:"below"===l.value&&(s=PlacementEnum.Below));var u=i.attribute("orientation");if(u&&u.value&&("over"===u.value?s=PlacementEnum.Above:"under"===u.value&&(s=PlacementEnum.Below)),"start"===a){var c=this.openSlurDict[o];c||(c=new Slur,this.openSlurDict[o]=c),c.StartNote=t,c.PlacementXml=s}else if("stop"===a){var h=this.openSlurDict[o];if(h){if(h.EndNote=t,!t.checkForDoubleSlur(h))t.NoteSlurs.push(h),h.StartNote.NoteSlurs.push(h);delete this.openSlurDict[o]}}}}}catch(err){r.e(err)}finally{r.f()}}}catch(err){var d=ITextTranslation.translateText("ReaderErrorMessages/SlurError","Error while reading slur.");this.musicSheet.SheetErrors.pushMeasureError(d)}}}]),e}(),InstrumentReader=function(){function t(e,n,r,i){_classCallCheck2(this,t),this.voiceGeneratorsDict={},this.staffMainVoiceGeneratorDict={},this.divisions=0,this.currentClefNumber=1,this.currentXmlMeasureIndex=0,this.activeKeyHasBeenInitialized=!1,this.abstractInstructions=[],this.openChordSymbolContainers=[],this.soundTempos=new Map,this.xmlNotes=[],this.repetitionInstructionReader=n,this.xmlMeasureList=r,this.musicSheet=i.GetMusicSheet,this.instrument=i,this.activeClefs=new Array(i.Staves.length),this.activeClefsHaveBeenInitialized=new Array(i.Staves.length);for(var a=0;a<i.Staves.length;a++)this.activeClefsHaveBeenInitialized[a]=!1;this.createExpressionGenerators(i.Staves.length),this.slurReader=new SlurReader(this.musicSheet),this.pluginManager=e}return _createClass2(t,[{key:"SoundTempos",get:function(){return this.soundTempos}},{key:"ActiveKey",get:function(){return this.activeKey}},{key:"MaxTieNoteFraction",get:function(){return this.maxTieNoteFraction}},{key:"ActiveRhythm",get:function(){return this.activeRhythm},set:function(e){this.activeRhythm=e}},{key:"readNextXmlMeasure",value:function(t,n,r){var i=this;if(this.currentXmlMeasureIndex>=this.xmlMeasureList.length)return!1;this.currentMeasure=t,this.followingMultirestMeasures=Math.max(this.followingMultirestMeasures-1,0),this.inSourceMeasureInstrumentIndex=this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.instrument),this.repetitionInstructionReader&&this.repetitionInstructionReader.prepareReadingMeasure(t,this.currentXmlMeasureIndex);var a=new Fraction$1(0,1),o=new Fraction$1(0,1),s=!1;this.maxTieNoteFraction=new Fraction$1(0,1);var l=!1,u=[];try{var c,h=this.xmlMeasureList[this.currentXmlMeasureIndex],d=h.elements();if(t.Rules.UseXMLMeasureNumbers&&!Number.isInteger(t.MeasureNumberXML)){var f,p=parseInt(null===(f=h.attribute("number"))||void 0===f?void 0:f.value,10);Number.isInteger(p)&&(t.MeasureNumberXML=p)}for(var v=0;v<d.length;v++){var m=d[v];if(v>0&&(c=d[v-1]),"print"===m.name){var g=m.attribute("new-system");"yes"===(null==g?void 0:g.value)&&(t.printNewSystemXml=!0);var y=m.attribute("new-page");"yes"===(null==y?void 0:y.value)&&(t.printNewPageXml=!0)}else if("note"===m.name){var b;m.element("grace")||(this.xmlNotes.push(m),u.push(m));var A=!0;"no"===(null===(b=m.attribute("print-object"))||void 0===b?void 0:b.value)&&(A=!1);var S=1;this.instrument.Staves.length>1&&m.element("staff")&&(S=parseInt(m.element("staff").value,10),isNaN(S)&&(loglevelExports.debug("InstrumentReader.readNextXmlMeasure.get staff number"),S=1)),this.currentStaff=this.instrument.Staves[S-1];var x=void 0!==m.element("chord");if(m.element("voice")){var w=parseInt(m.element("voice").value,10);this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(w,S-1)}else x&&this.currentVoiceGenerator||(this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(1,S-1));var _=0,E=new Fraction$1(0,1),k=2,C=void 0,M=!1;if(m.element("duration")){if(_=parseInt(m.element("duration").value,10),isNaN(_)){var P=ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid Note Duration.");this.musicSheet.SheetErrors.pushMeasureError(P),loglevelExports.debug("InstrumentReader.readNextXmlMeasure",P);continue}if(E=new Fraction$1(_,4*this.divisions),0===_?E=this.getNoteDurationFromTypeNode(m):C=this.getNoteDurationFromTypeNode(m),m.element("time-modification")){E=this.getNoteDurationForTuplet(m);var I=m.element("time-modification");null!=I&&I.element("normal-notes")&&(k=parseInt(I.element("normal-notes").value,10)),M=!0}}var T=void 0!==m.element("rest"),B=m.element("notations"),R=void 0!==m.element("grace")||0===_||x&&l,L=!1,N=!1;if(R){var F=m.element("duration"),D=m.element("grace");if(D&&D.attributes())if(D.attribute("slash"))"yes"===D.attribute("slash").value&&(L=!0);F||(E=this.getNoteDurationFromTypeNode(m));var O=m.element("notations");O&&O.element("slur")&&(N=!0)}var V=!1;m.element("cue")&&(V=!0);var z=m.element("type"),G=NoteType.UNDEFINED;if(z){var H=z.attribute("size");"cue"===(null==H?void 0:H.value)&&(V=!0),G=NoteTypeHandler.StringToNoteType(z.value)}var U=StemDirectionType.Undefined,j=void 0,Q=m.element("stem");if(Q){switch(Q.value){case"down":U=StemDirectionType.Down;break;case"up":U=StemDirectionType.Up;break;case"double":U=StemDirectionType.Double;break;case"none":U=StemDirectionType.None;break;default:U=StemDirectionType.Undefined}var Y=Q.attribute("color");Y&&(j=this.parseXmlColor(Y.value))}var W=0,X="",K="",J="";if(B){var $=B.element("ornaments");if($){var q=$.element("tremolo");if(q){var Z=q.attribute("type");if(X=Z.value,Z){var ee=parseInt(q.value,10);ee>0&&(W=ee),"start"!==Z.value&&"stop"!==Z.value||(E=new Fraction$1(parseInt(m.element("duration").value,10),4*this.divisions))}}var te=$.elements("wavy-line");if(void 0!==te){var ne,re=_createForOfIteratorHelper(te);try{for(re.s();!(ne=re.n()).done;){var ie=ne.value,ae=this.expressionReaders[this.readExpressionStaffNumber(m)-1];ae&&(ae.readExpressionParameters(ie,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!1),ae.addWavyLine(ie,this.currentMeasure,a,o))}}catch(err){re.e(err)}finally{re.f()}}}B.elements("glissando").find((function(e){return"start"===e.attribute("type").value}))&&(K="start"),B.elements("slide").find((function(e){return"start"===e.attribute("type").value}))&&(J="start")}var oe=void 0,se=m.element("notehead");if(se){var le=se.attribute("color");le&&(oe=this.parseXmlColor(le.value))}var ue=void 0,ce=m.attribute("color");ce&&(ue=this.parseXmlColor(ce.value),oe||(oe=ue),j||(j=ue));var he=a.clone();x&&(he=o.clone()),this.currentStaffEntry=this.currentMeasure.findOrCreateStaffEntry(he,this.inSourceMeasureInstrumentIndex+S-1,this.currentStaff).staffEntry,(!this.currentVoiceGenerator.hasVoiceEntry()||!x&&!R&&!l||R&&!l||R&&!x||!R&&l)&&this.currentVoiceGenerator.createVoiceEntry(he,this.currentStaffEntry,this.activeKey,this.ActiveRhythm,R,L,N),R||x||(o=a.clone(),a.Add(E)),x&&void 0!==this.currentStaffEntry&&this.currentStaffEntry.ParentStaff!==this.currentStaff&&(this.currentStaffEntry=this.currentVoiceGenerator.checkForStaffEntryLink(this.inSourceMeasureInstrumentIndex+S-1,this.currentStaff,this.currentStaffEntry,this.currentMeasure));var de=void 0!==this.currentStaffEntry&&void 0!==this.currentStaffEntry.Timestamp&&this.currentStaffEntry.Timestamp.Equals(new Fraction$1(0,1))&&!this.currentStaffEntry.hasNotes();this.saveAbstractInstructionList(this.instrument.Staves.length,de),0!==this.openChordSymbolContainers.length&&(this.currentStaffEntry.ChordContainers=this.openChordSymbolContainers,this.openChordSymbolContainers=[]),this.activeRhythm,M||R||(E=new Fraction$1(_,4*this.divisions));var fe=m.elements("dot").length;if(this.currentVoiceGenerator.read(m,E,C,G,k,T,this.currentStaffEntry,this.currentMeasure,n,this.maxTieNoteFraction,x,r,A,V,R,U,W,j,oe,fe,X,K,J),void 0!==B&&B.element("dynamics")){var pe=this.expressionReaders[this.readExpressionStaffNumber(m)-1];pe&&(pe.readExpressionParameters(m,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!1),pe.read(m,this.currentMeasure,o,void 0,u.length))}l=R}else if("attributes"===m.name){var ve=m.element("divisions");if(ve&&(this.divisions=parseInt(ve.value,10),isNaN(this.divisions))){var me=ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(loglevelExports.debug("InstrumentReader.readNextXmlMeasure",me),this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw s=!0,new MusicSheetReadingException(me+this.instrument.Name);this.musicSheet.SheetErrors.push(me+this.instrument.Name)}if(!m.element("divisions")&&0===this.divisions&&0===this.currentXmlMeasureIndex){var ge=ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw s=!0,new MusicSheetReadingException(ge+this.instrument.Name);this.musicSheet.SheetErrors.push(ge+this.instrument.Name)}this.addAbstractInstruction(m,r,c,a.clone()),a.Equals(new Fraction$1(0,1))&&this.isAttributesNodeAtBeginOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],m)&&this.saveAbstractInstructionList(this.instrument.Staves.length,!0),this.isAttributesNodeAtEndOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],m)&&this.saveClefInstructionAtEndOfMeasure();var ye,be=_createForOfIteratorHelper(m.elements("staff-details"));try{for(be.s();!(ye=be.n()).done;){var Ae=ye.value,Se=Ae.element("staff-lines");if(Se){var xe=1,we=Ae.attribute("number");we&&(xe=parseInt(we.value,10)),this.instrument.Staves[xe-1].StafflineCount=parseInt(Se.value,10)}}}catch(err){be.e(err)}finally{be.f()}var _e=m.element("measure-style");if(_e){var Ee=_e.element("multiple-rest");if(Ee){var ke=Ee.value,Ce=0;try{Ce=Number.parseInt(ke,10),void 0!==t.multipleRestMeasures&&Ce!==t.multipleRestMeasures?t.multipleRestMeasures=0:(t.multipleRestMeasures=Ce,this.currentMultirestStartMeasure=t,this.followingMultirestMeasures=Ce+1)}catch(e){console.log("multirest parse error: "+e)}}}}else if("forward"===m.name){var Me=parseInt(m.element("duration").value,10);a.Add(new Fraction$1(Me,4*this.divisions))}else if("backup"===m.name){var Pe=parseInt(m.element("duration").value,10);a.Sub(new Fraction$1(Pe,4*this.divisions)),a.IsNegative()&&(a=new Fraction$1(0,1)),o.Sub(new Fraction$1(Pe,4*this.divisions)),o.IsNegative()&&(o=new Fraction$1(0,1))}else if("direction"===m.name){var Ie=m.elements("direction-type"),Te=m.element("direction-type"),Be=Math.min(1,a.RealValue);void 0!==this.activeRhythm&&this.activeRhythm.Rhythm&&(Be/=this.activeRhythm.Rhythm.RealValue);var Re=!1;if(this.repetitionInstructionReader&&(Re=this.repetitionInstructionReader.handleRepetitionInstructionsFromWordsOrSymbols(Te,Be)),!Re){var Le=this.expressionReaders[0],Ne=this.readExpressionStaffNumber(m)-1;if(Ne<this.expressionReaders.length&&(Le=this.expressionReaders[Ne]),Le){var Fe;Te.element("octave-shift")&&(Le.readExpressionParameters(m,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!0),Le.addOctaveShift(m,this.currentMeasure,o.clone())),Te.element("pedal")&&(Le.readExpressionParameters(m,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!0),Le.addPedalMarking(m,this.currentMeasure,o.clone()));var De=Te.element("words");if(De){var Oe,Ve,ze,Ge,He;if(GradientWords.map((function(e){return null==e?void 0:e.toLocaleLowerCase()})).includes(null===(Oe=De.value)||void 0===Oe?void 0:Oe.toLocaleLowerCase()))this.currentGradualChangeMeasure=this.currentMeasure,this.currentMeasure.speedInfo={startWord:null===(He=De.value)||void 0===He?void 0:He.toLocaleLowerCase(),startXmlNoteIndex:u.length,endXmlNoteIndex:0,resetXmlNoteIndex:0,startMeasureListIndex:this.currentXmlMeasureIndex,endMeasureListIndex:0,resetMeasureListIndex:0},this.xmlNotes=[];if(De.value.startsWith(GRADIENT_SPEED_CLOSE_TAG)&&null!==(Ve=this.currentGradualChangeMeasure)&&void 0!==Ve&&Ve.speedInfo&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread(_objectSpread({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:this.xmlNotes.length,endMeasureListIndex:this.currentXmlMeasureIndex})),(null===(ze=De.value)||void 0===ze?void 0:ze.toLocaleLowerCase())==="a tempo".toLocaleLowerCase()&&null!==(Ge=this.currentGradualChangeMeasure)&&void 0!==Ge&&Ge.speedInfo){var Ue=this.currentGradualChangeMeasure.speedInfo,je=Ue.endXmlNoteIndex,Qe=Ue.resetXmlNoteIndex,Ye=Ue.endMeasureListIndex;0===Qe&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread(_objectSpread({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:je||this.xmlNotes.length,endMeasureListIndex:Ye||this.currentXmlMeasureIndex,resetXmlNoteIndex:this.xmlNotes.length,resetMeasureListIndex:this.currentXmlMeasureIndex})),this.xmlNotes=[]}}if(Ie.find((function(e){return e.element("metronome")}))&&null!==(Fe=this.currentGradualChangeMeasure)&&void 0!==Fe&&Fe.speedInfo){var We=this.currentGradualChangeMeasure.speedInfo,Xe=We.endXmlNoteIndex,Ke=We.resetXmlNoteIndex,Je=We.endMeasureListIndex;0===Ke&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread(_objectSpread({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:Xe||this.xmlNotes.length,endMeasureListIndex:Je||this.currentXmlMeasureIndex,resetXmlNoteIndex:this.xmlNotes.length,resetMeasureListIndex:this.currentXmlMeasureIndex})),this.xmlNotes=[]}Le.readExpressionParameters(m,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!1),Le.read(m,this.currentMeasure,a,o.clone(),u.length)}}}else if("barline"===m.name){if(this.repetitionInstructionReader)this.repetitionInstructionReader.handleLineRepetitionInstructions(m)&&(this.currentMeasure.HasEndLine=!0);var $e=m.attribute("location");if(v===d.length-1||$e&&"right"===$e.value){var qe,Ze,et=null===(qe=m.element("bar-style"))||void 0===qe?void 0:qe.value;if(et)if(this.currentMeasure.endingBarStyleXml=et,this.currentMeasure.endingBarStyleEnum=SystemLinesEnumHelper.xmlBarlineStyleToSystemLinesEnum(et),null!==(Ze=this.currentGradualChangeMeasure)&&void 0!==Ze&&Ze.speedInfo){var tt=this.currentGradualChangeMeasure.speedInfo,nt=tt.endXmlNoteIndex,rt=tt.resetXmlNoteIndex,it=tt.endMeasureListIndex;0===rt&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread(_objectSpread({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:nt||this.xmlNotes.length,endMeasureListIndex:it||this.currentXmlMeasureIndex,resetXmlNoteIndex:this.xmlNotes.length,resetMeasureListIndex:this.currentXmlMeasureIndex})),this.currentGradualChangeMeasure=void 0,this.xmlNotes=[]}}}else if("sound"===m.name)try{if(m.attribute("tempo")){var at=parseFloat(m.attribute("tempo").value);m.element("offset")&&(this.soundTempos.has(this.currentXmlMeasureIndex)||this.soundTempos.set(this.currentXmlMeasureIndex,[]),this.soundTempos.get(this.currentXmlMeasureIndex).push(at)),0===this.currentXmlMeasureIndex&&(this.musicSheet.DefaultStartTempoInBpm=at,this.musicSheet.HasBPMInfo=!0)}}catch(e){loglevelExports.debug("InstrumentReader.readTempoInstruction",e)}else"harmony"===m.name&&this.openChordSymbolContainers.push(ChordSymbolReader.readChordSymbol(m,this.musicSheet,this.activeKey))}for(var ot in this.voiceGeneratorsDict){if(this.voiceGeneratorsDict.hasOwnProperty(ot))this.voiceGeneratorsDict[ot].checkForOpenBeam()}if(this.currentXmlMeasureIndex===this.xmlMeasureList.length-1){for(var st=0;st<this.instrument.Staves.length;st++)this.activeClefsHaveBeenInitialized[st]||this.createDefaultClefInstruction(this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.instrument)+st);this.activeKeyHasBeenInitialized||this.createDefaultKeyInstruction();for(var lt=0;lt<this.expressionReaders.length;lt++){var ut=this.expressionReaders[lt];ut&&ut.closeOpenExpressions(this.currentMeasure,a)}}Object.keys(this.voiceGeneratorsDict).forEach((function(e){i.voiceGeneratorsDict[e].finalizeReadingMeasure()})),this.musicSheet.HasBPMInfo?0===t.TempoInBPM&&this.previousMeasure&&(this.currentMeasure.TempoInBPM=this.previousMeasure.TempoInBPM):this.currentMeasure.TempoInBPM=120,this.currentMeasure.TempoInBPM||(this.currentMeasure.TempoInBPM=this.musicSheet.DefaultStartTempoInBpm)}catch(e){if(s)throw new MusicSheetReadingException(e.Message);var ct=ITextTranslation.translateText("ReaderErrorMessages/MeasureError","Error while reading Measure.");this.musicSheet.SheetErrors.pushMeasureError(ct),loglevelExports.debug("InstrumentReader.readNextXmlMeasure",ct,e)}return this.previousMeasure=this.currentMeasure,this.currentXmlMeasureIndex+=1,!0}},{key:"parseXmlColor",value:function(e){if(e)return 7===e.length?e:9===e.length?"#"+e.substr(3):void 0}},{key:"doCalculationsAfterDurationHasBeenSet",value:function(){for(var e in this.voiceGeneratorsDict)this.voiceGeneratorsDict.hasOwnProperty(e)&&this.voiceGeneratorsDict[e].checkOpenTies()}},{key:"getOrCreateVoiceGenerator",value:function(e,t){var n=this.instrument.Staves[t],r=this.voiceGeneratorsDict[e];if(r)-1===n.Voices.indexOf(r.GetVoice)&&n.Voices.push(r.GetVoice);else{var i=this.staffMainVoiceGeneratorDict[t];i?(r=new VoiceGenerator(this.pluginManager,n,e,this.slurReader,i.GetVoice),n.Voices.push(r.GetVoice),this.voiceGeneratorsDict[e]=r):(r=new VoiceGenerator(this.pluginManager,n,e,this.slurReader),n.Voices.push(r.GetVoice),this.voiceGeneratorsDict[e]=r,this.staffMainVoiceGeneratorDict[t]=r)}return r}},{key:"createExpressionGenerators",value:function(e){this.expressionReaders=new Array(e);for(var t=0;t<e;t++)this.expressionReaders[t]=new ExpressionReader(this.musicSheet,this.instrument,t+1)}},{key:"createDefaultClefInstruction",value:function(e){var t;t=this.musicSheet.SourceMeasures.length>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure;var n,r=new ClefInstruction(ClefEnum.G,0,2);t.FirstInstructionsStaffEntries[e]?(n=t.FirstInstructionsStaffEntries[e]).removeFirstInstructionOfTypeClefInstruction():(n=new SourceStaffEntry(void 0,void 0),t.FirstInstructionsStaffEntries[e]=n),r.Parent=n,n.Instructions.splice(0,0,r)}},{key:"createDefaultKeyInstruction",value:function(){var e;e=this.musicSheet.SourceMeasures.length>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure;for(var t=new KeyInstruction(void 0,0,KeyEnum.major),n=this.inSourceMeasureInstrumentIndex;n<this.inSourceMeasureInstrumentIndex+this.instrument.Staves.length;n++)if(e.FirstInstructionsStaffEntries[n]){var r=e.FirstInstructionsStaffEntries[n];t.Parent=r,r.removeFirstInstructionOfTypeKeyInstruction(),r.Instructions[0]instanceof ClefInstruction?r.Instructions.splice(1,0,t):r.Instructions.splice(0,0,t)}else{var i=new SourceStaffEntry(void 0,void 0);e.FirstInstructionsStaffEntries[n]=i,t.Parent=i,i.Instructions.push(t)}}},{key:"isAttributesNodeAtBeginOfMeasure",value:function(e,t){var n=e.elements(),r=n.indexOf(t);if(r>0&&"backup"===n[r-1].name)return!0;for(var i=-1,a=0;a<n.length;a++)if("note"===n[a].name){i=a;break}return r<i&&i>0||i<0}},{key:"isAttributesNodeAtEndOfMeasure",value:function(e,t){for(var n=e.elements().slice(),r=0,i=0;i<n.length;i++)if(n[i]===t){r=i;break}for(var a=0,o=r;o<n.length;o++)if("note"===n[o].name){a=o;break}return r>a}},{key:"getNoteDurationFromTypeNode",value:function(e){var t=e.element("type");if(t){var n=t.value;return NoteTypeHandler.getNoteDurationFromType(n)}return new Fraction$1(0,4*this.divisions)}},{key:"addAbstractInstruction",value:function(t,n,r,i){if(!t.element("divisions")||1!==t.elements().length){var a=t.element("transpose");if(a){var o=a.element("chromatic");o&&(this.instrument.PlaybackTranspose=parseInt(o.value,10))}var s,l=t.elements("clef");if(l.length>0)for(var u=0,c=l.length;u<c;++u){var h=l[u],d=ClefEnum.G,f=2,p=1,v=0,m=h.element("line");if(m)try{f=parseInt(m.value,10)}catch($){s=ITextTranslation.translateText("ReaderErrorMessages/ClefLineError","Invalid clef line given -> using default clef line."),this.musicSheet.SheetErrors.pushMeasureError(s),f=2,loglevelExports.debug("InstrumentReader.addAbstractInstruction",s,$)}var g=h.element("sign");if(g)try{d=ClefEnum[g.value],ClefInstruction.isSupportedClef(d)||(s=ITextTranslation.translateText("ReaderErrorMessages/ClefError","Unsupported clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),d=ClefEnum.G,f=2),d===ClefEnum.TAB&&(v=-1)}catch(e){s=ITextTranslation.translateText("ReaderErrorMessages/ClefError","Invalid clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),d=ClefEnum.G,f=2,loglevelExports.debug("InstrumentReader.addAbstractInstruction",s,e)}var y=h.element("clef-octave-change");if(y)try{v=parseInt(y.value,10)}catch(e){s=ITextTranslation.translateText("ReaderErrorMessages/ClefOctaveError","Invalid clef octave found -> using default clef octave."),this.musicSheet.SheetErrors.pushMeasureError(s),v=0}if(h.hasAttributes&&h.attribute("number"))try{(p=parseInt(h.attribute("number").value,10))>this.currentClefNumber&&(p=this.currentClefNumber),this.currentClefNumber=p+1}catch(err){s=ITextTranslation.translateText("ReaderErrorMessages/ClefError","Invalid clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),p=1,this.currentClefNumber=p+1}var b=new ClefInstruction(d,v,f);this.abstractInstructions.push([p,b,i])}if(void 0!==t.element("key")&&this.instrument.MidiInstrumentId!==MidiInstrument.Percussion){var A=0,S=t.element("key").element("fifths");if(S)try{A=parseInt(S.value,10)}catch($){s=ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),A=0,loglevelExports.debug("InstrumentReader.addAbstractInstruction",s,$)}var x=KeyEnum.none,w=t.element("key");if(w&&(w=w.element("mode")),w)try{x=KeyEnum[w.value]}catch($){s=ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),x=KeyEnum.major,loglevelExports.debug("InstrumentReader.addAbstractInstruction",s,$)}var _=new KeyInstruction(void 0,A,x);this.abstractInstructions.push([1,_,i])}if(t.element("time")){var E=t.element("time"),k=RhythmSymbolEnum.NONE,C=!0;if(void 0!==E&&E.hasAttributes){var M=E.attribute("symbol");M&&("common"===M.value?k=RhythmSymbolEnum.COMMON:"cut"===M.value&&(k=RhythmSymbolEnum.CUT));var P=E.attribute("print-object");P&&"no"===P.value&&(C=!1)}for(var I=0,T=0,B=E&&void 0!==E.element("senza-misura"),R=t.elements("time"),L=[],N=[],F=0,D=R.length;F<D;++F){var O=R[F];L.push.apply(L,O.elements("beats")),N.push.apply(N,O.elements("beat-type"))}if(B)this.abstractInstructions.push([1,new RhythmInstruction(new Fraction$1(4,4,0,!1),RhythmSymbolEnum.NONE),i]);else{try{if(void 0!==L&&L.length>0&&void 0!==N&&L.length===N.length){for(var V=L.length,z=new Array(V),G=0,H=0;H<V;H++){var U,j=L[H].value,Q=0;if(-1!==j.indexOf("+"))for(var Y=j.split("+"),W=0,X=Y.length;W<X;++W)Q+=parseInt(Y[W],10);else Q=parseInt(j,10);U=parseInt(N[H].value,10),G=Math.max(G,U),z[H]=new Fraction$1(Q,U,0,!1)}for(var K=0;K<V;K++)z[K].Denominator===G?I+=z[K].Numerator:I+=G/z[K].Denominator*z[K].Numerator;T=G}else I=parseInt(t.element("time").element("beats").value,10),T=parseInt(t.element("time").element("beat-type").value,10)}catch($){s=ITextTranslation.translateText("ReaderErrorMessages/RhythmError","Invalid rhythm found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),I=4,T=4,loglevelExports.debug("InstrumentReader.addAbstractInstruction",s,$)}var J=new RhythmInstruction(new Fraction$1(I,T,0,!1),k);J.PrintObject=C,this.abstractInstructions.push([1,J,i])}}}}},{key:"saveAbstractInstructionList",value:function(e,t){for(var n=this.abstractInstructions.length-1;n>=0;n--){var r=this.abstractInstructions[n],i=r[0],a=r[1],o=r[2];if(a instanceof ClefInstruction){var s=a;if(0===this.currentXmlMeasureIndex||i<=this.activeClefs.length&&s!==this.activeClefs[i-1])if(t||void 0===this.currentStaffEntry||this.currentStaffEntry.hasNotes()||i-1!==this.instrument.Staves.indexOf(this.currentStaffEntry.ParentStaff))if(t){if(0!==o.RealValue)continue;var l=void 0;if(this.currentMeasure){var u=s,c=this.inSourceMeasureInstrumentIndex+i-1,h=this.currentMeasure.FirstInstructionsStaffEntries[c];if(0===this.currentXmlMeasureIndex)if(h)if(void 0===this.currentMeasure.FirstInstructionsStaffEntries[c]||h.Instructions[0]instanceof ClefInstruction){var d=new SourceStaffEntry(void 0,void 0);this.currentMeasure.LastInstructionsStaffEntries[c]=d,u.Parent=d,d.Instructions.push(u)}else l=h,u.Parent=l,l.removeFirstInstructionOfTypeClefInstruction(),l.Instructions.splice(0,0,u),this.activeClefsHaveBeenInitialized[i-1]=!0;else l=new SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[c]=l,u.Parent=l,l.Instructions.push(u),this.activeClefsHaveBeenInitialized[i-1]=!0;else if(this.activeClefsHaveBeenInitialized[i-1]){var f=this.previousMeasure;this.followingMultirestMeasures>0&&this.currentMeasure.Rules.RenderMultipleRestMeasures&&(f=this.currentMultirestStartMeasure);var p=new SourceStaffEntry(void 0,void 0);f.LastInstructionsStaffEntries[c]=p,u.Parent=p,p.Instructions.push(u)}else{var v=this.musicSheet.SourceMeasures[0];v.FirstInstructionsStaffEntries[c]?(l=v.FirstInstructionsStaffEntries[c]).removeFirstInstructionOfTypeClefInstruction():l=new SourceStaffEntry(void 0,void 0),u.Parent=l,l.Instructions.splice(0,0,u),this.activeClefsHaveBeenInitialized[i-1]=!0}this.activeClefs[i-1]=s,this.abstractInstructions.splice(n,1)}}else{var m=void 0,g=this.activeRhythm.Rhythm;g.RealValue>0&&o.RealValue/g.RealValue>.9&&(this.currentMeasure.LastInstructionsStaffEntries[i-1]||(this.currentMeasure.LastInstructionsStaffEntries[i-1]=new SourceStaffEntry(void 0,this.instrument.Staves[i-1])),m=this.currentMeasure.LastInstructionsStaffEntries[i-1]),m&&(s.Parent=m,m.Instructions.push(s),this.activeClefs[i-1]=s,this.abstractInstructions.splice(n,1))}else{var y=s,b=this.currentStaffEntry;if(o&&Math.abs(o.RealValue-b.Timestamp.RealValue)>.01)continue;y.Parent=b,b.removeFirstInstructionOfTypeClefInstruction(),b.Instructions.push(y),this.activeClefs[i-1]=s,this.abstractInstructions.splice(n,1)}else i<=this.activeClefs.length&&s===this.activeClefs[i-1]&&this.abstractInstructions.splice(n,1)}if(a instanceof KeyInstruction){var A=a;if(this.activeKey&&this.activeKey.Key===A.Key)this.abstractInstructions.splice(n,1);else{this.activeKey=A,this.abstractInstructions.splice(n,1);var S=void 0;if(this.activeKeyHasBeenInitialized?S=this.currentMeasure:(this.activeKeyHasBeenInitialized=!0,S=this.currentXmlMeasureIndex>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure),S)for(var x=this.inSourceMeasureInstrumentIndex;x<this.inSourceMeasureInstrumentIndex+e;x++){var w=A;if(S.FirstInstructionsStaffEntries[x]){var _=S.FirstInstructionsStaffEntries[x];w.Parent=_,_.removeFirstInstructionOfTypeKeyInstruction(),0===_.Instructions.length?_.Instructions.push(w):_.Instructions[0]instanceof ClefInstruction?_.Instructions.splice(1,0,w):_.Instructions.splice(0,0,w)}else{var E=new SourceStaffEntry(void 0,void 0);S.FirstInstructionsStaffEntries[x]=E,w.Parent=E,E.Instructions.push(w)}}}}if(a instanceof RhythmInstruction){var k=a;if(this.activeRhythm&&this.activeRhythm===k)this.abstractInstructions.splice(n,1);else if(this.activeRhythm=k,this.abstractInstructions.splice(n,1),this.currentMeasure)for(var C=this.inSourceMeasureInstrumentIndex;C<this.inSourceMeasureInstrumentIndex+e;C++){var M=k,P=void 0;this.currentMeasure.FirstInstructionsStaffEntries[C]?(P=this.currentMeasure.FirstInstructionsStaffEntries[C]).removeFirstInstructionOfTypeRhythmInstruction():(P=new SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[C]=P),M.Parent=P,P.Instructions.push(M)}}}}},{key:"saveClefInstructionAtEndOfMeasure",value:function(){for(var e=this.abstractInstructions.length-1;e>=0;e--){var t=this.abstractInstructions[e][0],n=this.abstractInstructions[e][1];if(n instanceof ClefInstruction){var r=n;if(!this.activeClefs[t-1]||r.ClefType!==this.activeClefs[t-1].ClefType||r.ClefType===this.activeClefs[t-1].ClefType&&r.Line!==this.activeClefs[t-1].Line){var i=new SourceStaffEntry(void 0,void 0);this.currentMeasure.LastInstructionsStaffEntries[this.inSourceMeasureInstrumentIndex+t-1]=i;var a=r;a.Parent=i,i.Instructions.push(a),this.activeClefs[t-1]=r,this.abstractInstructions.splice(e,1)}}}}},{key:"getNoteDurationForTuplet",value:function(e){var t=new Fraction$1(0,1),n=this.getNoteDurationFromTypeNode(e);if(e.element("time-modification")){var r=e.element("time-modification");if(r&&void 0!==r.element("actual-notes")&&r.element("normal-notes")){var i=r.element("actual-notes"),a=r.element("normal-notes");if(void 0!==i&&a){var o=parseInt(i.value,10),s=parseInt(a.value,10);t=new Fraction$1(s*n.Numerator,o*n.Denominator)}}}return t}},{key:"readExpressionStaffNumber",value:function(e){var t=1;if(e.element("staff")){var n=e.element("staff");if(n)try{t=parseInt(n.value,10)}catch(i){var r=ITextTranslation.translateText("ReaderErrorMessages/ExpressionStaffError","Invalid Expression staff number -> set to default.");this.musicSheet.SheetErrors.pushMeasureError(r),t=1,loglevelExports.debug("InstrumentReader.readExpressionStaffNumber",r,i)}}return t}},{key:"readDivisionsFromNotes",value:function(){for(var e=0,t=this.currentXmlMeasureIndex,n=!1;!n;){for(var r=this.xmlMeasureList[t].elements(),i=0,a=r.length;i<a;++i){var o=r[i];if("note"===o.name&&!o.element("time-modification")){var s=o.element("duration"),l=o.element("type");if(void 0!==s&&l){var u=l.value,c=0;try{c=parseInt(s.value,10)}catch(d){loglevelExports.debug("InstrumentReader.readDivisionsFromNotes",d);continue}switch(u){case"1024th":e=c/4*1024;break;case"512th":e=c/4*512;break;case"256th":e=c/4*256;break;case"128th":e=c/4*128;break;case"64th":e=c/4*64;break;case"32nd":e=c/4*32;break;case"16th":e=c/4*16;break;case"eighth":e=c/4*8;break;case"quarter":e=c/4*4;break;case"half":e=c/4*2;break;case"whole":e=c/4;break;case"breve":e=c/4/2;break;case"long":e=c/4/4;break;case"maxima":e=c/4/8}}}if(e>0){n=!0;break}}if(0===e&&++t===this.xmlMeasureList.length){var h=ITextTranslation.translateText("ReaderErrorMEssages/DivisionsError","Invalid divisions value at Instrument: ");throw new MusicSheetReadingException(h+this.instrument.Name)}}return e}}]),t}(),_SubInstrument=function(){function t(e){_classCallCheck2(this,t),this.parentInstrument=e,this.fixedKey=-1,this.name=this.parseMidiInstrument(this.parentInstrument.Name),this.midiInstrumentID=t.midiInstrument[this.name],this.volume=1}return _createClass2(t,[{key:"ParentInstrument",get:function(){return this.parentInstrument}},{key:"setMidiInstrument",value:function(e){this.midiInstrumentID=t.midiInstrument[this.parseMidiInstrument(e)]}},{key:"parseMidiInstrument",value:function(n){try{if(n){var r=n.toLowerCase().trim();for(var i in r=r.replace(/\s+/g,"_"),t.midiInstrument)if(-1!==r.indexOf(i))return i}if(this.parentInstrument.Name){var a=this.parentInstrument.Name.toLowerCase().trim();for(var o in a=a.replace(/\s+/g,"_"),t.midiInstrument)if(-1!==a.indexOf(o))return o}}catch(e){loglevelExports.error("Error parsing MIDI Instrument. Default to Grand Piano.")}return"unnamed"}}],[{key:"isPianoInstrument",value:function(e){return e===MidiInstrument.Acoustic_Grand_Piano||e===MidiInstrument.Bright_Acoustic_Piano||e===MidiInstrument.Electric_Grand_Piano||e===MidiInstrument.Electric_Piano_1||e===MidiInstrument.Electric_Piano_2}}]),t}(),SubInstrument=_SubInstrument;SubInstrument.midiInstrument={alto_saxophone:MidiInstrument.Alto_Sax,baritone_saxophone:MidiInstrument.Baritone_Sax,horn_in_f:MidiInstrument.French_Horn,english_horn:MidiInstrument.English_Horn,euphonium:MidiInstrument.Euphonium,clarinet_in_bb:MidiInstrument.clarinet_in_bb,clarinet_in_eb:MidiInstrument.clarinet_in_eb,clarinet:MidiInstrument.Clarinet,alto_clarinet:MidiInstrument.Alto_Clarinet,bass_clarinet:MidiInstrument.Bass_Clarinet,bassoon:MidiInstrument.Bassoon,bass_trombone:MidiInstrument.Bass_Trombone,alt:MidiInstrument.Synth_Voice,alto:MidiInstrument.Synth_Voice,banjo:MidiInstrument.Banjo,bariton:MidiInstrument.Synth_Voice,baritone:MidiInstrument.Synth_Voice,bass:MidiInstrument.Synth_Voice,"blockflöte":MidiInstrument.Recorder,brass:MidiInstrument.Trombone,bratsche:MidiInstrument.Viola,cello:MidiInstrument.Cello,contrabass:MidiInstrument.Contrabass,drums:MidiInstrument.Percussion,flute:MidiInstrument.Flute,"flöte":MidiInstrument.Flute,frenchhorn:MidiInstrument.French_Horn,gitarre:MidiInstrument.Acoustic_Guitar_nylon,guitar:MidiInstrument.Acoustic_Guitar_nylon,harfe:MidiInstrument.Orchestral_Harp,harp:MidiInstrument.Orchestral_Harp,klarinette:MidiInstrument.Clarinet,klavier:MidiInstrument.Acoustic_Grand_Piano,kontrabass:MidiInstrument.Contrabass,oboe:MidiInstrument.Oboe,organ:MidiInstrument.Church_Organ,orgel:MidiInstrument.Church_Organ,orgue:MidiInstrument.Church_Organ,percussion:MidiInstrument.Synth_Drum,"小军鼓":MidiInstrument.Synth_Drum,snare_drum:MidiInstrument.Synth_Drum,bass_drum:MidiInstrument.Synth_Drum,side_drum:MidiInstrument.Synth_Drum,piano:MidiInstrument.Acoustic_Grand_Piano,piccolo:MidiInstrument.Piccolo,posaune:MidiInstrument.Trombone,recorder:MidiInstrument.Recorder,sax:MidiInstrument.Tenor_Sax,schlagwerk:MidiInstrument.Percussion,schlagzeug:MidiInstrument.Percussion,sopran:MidiInstrument.Synth_Voice,steeldrum:MidiInstrument.Steel_Drums,streicher:MidiInstrument.String_Ensemble_1,strings:MidiInstrument.String_Ensemble_1,tenor:MidiInstrument.Synth_Voice,tpt:MidiInstrument.Trumpet,trombone:MidiInstrument.Trombone,trompete:MidiInstrument.Trumpet,trumpet:MidiInstrument.Trumpet,tuba:MidiInstrument.Tuba,unnamed:MidiInstrument.Acoustic_Grand_Piano,viola:MidiInstrument.Viola,violin:MidiInstrument.Violin,"violon-c":MidiInstrument.Cello,"violon.":MidiInstrument.Violin,voice:MidiInstrument.Synth_Voice,woodblock:MidiInstrument.Woodblock,alto_clarinet_in_eb:MidiInstrument.AltoClarinetInEb,trumpet_in_bb:MidiInstrument.TrumpetInBb,tenor_saxophone:MidiInstrument.TenorSaxophone};var StringUtil=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"StringContainsSeparatedWord",value:function(e,t){return new RegExp("( |^)"+t+"([ .]|$)",arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":void 0).test(e)}}]),e}(),RepetitionInstructionReader=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"MusicSheet",set:function(e){this.musicSheet=e,this.xmlMeasureList=new Array(this.musicSheet.Instruments.length),this.repetitionInstructions=[]}},{key:"prepareReadingMeasure",value:function(e,t){this.currentMeasureIndex=t}},{key:"handleLineRepetitionInstructions",value:function(e){var t=!1;if(e.elements().length>0){var n="",r=!1,i="",a="",o="",s=[],l=e.element("bar-style");l&&(o=l.value),n=e.attributes().length>0&&e.attribute("location")?e.attribute("location").value:"right";for(var u=e.elements(),c=0,h=u.length;c<h;++c){var d=u[c];if("repeat"===d.name&&d.hasAttributes)r=!0,i=d.attribute("direction").value;else if("ending"===d.name&&d.hasAttributes&&void 0!==d.attribute("type")&&d.attribute("number")){a=d.attribute("type").value;for(var f=d.attribute("number").value.split("[,+]"),p=0,v=f.length;p<v;++p){var m=f[p],g=m.match("[0-9]");if(-1!==m.search("-")&&2===g.length)for(var y=parseInt(g[0],10),b=parseInt(g[1],10),A=y;A<=b;A++)s.push(A);else for(var S=0,x=g.length;S<x;++S){var w=g[S];s.push(parseInt(w,10))}}}}if("light-heavy"!==o||0!==s.length||r||(t=!0),r||s.length>0)if("left"===n){if("start"===a){var _=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Ending,AlignmentType.Begin,void 0,s);this.addInstruction(this.repetitionInstructions,_)}if("forward"===i){var E=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.StartLine);this.addInstruction(this.repetitionInstructions,E)}}else{if("stop"===a){var k=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Ending,AlignmentType.End,void 0,s);this.addInstruction(this.repetitionInstructions,k)}if("backward"===i){var C=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.BackJumpLine);this.addInstruction(this.repetitionInstructions,C)}}}return t}},{key:"handleRepetitionInstructionsFromWordsOrSymbols",value:function(e,t){var n=e.element("words"),r=this.currentMeasureIndex;if(n){var i="d\\s?\\.s\\.",a=n.value.trim().toLowerCase();if(StringUtil.StringContainsSeparatedWord(a,i+" al fine",!0)){var o=new RepetitionInstruction(r,RepetitionInstructionEnum.DalSegnoAlFine);return this.addInstruction(this.repetitionInstructions,o),!0}if(StringUtil.StringContainsSeparatedWord(a,i+" al coda",!0)){var s=new RepetitionInstruction(r,RepetitionInstructionEnum.DalSegnoAlCoda);return this.addInstruction(this.repetitionInstructions,s),!0}var l,u="d\\.\\s?c\\.";if(StringUtil.StringContainsSeparatedWord(a,u+" al fine",!0)){var c=new RepetitionInstruction(r,RepetitionInstructionEnum.DaCapoAlFine);return this.addInstruction(this.repetitionInstructions,c),!0}if(StringUtil.StringContainsSeparatedWord(a,u+" al coda",!0)){var h=new RepetitionInstruction(r,RepetitionInstructionEnum.DaCapoAlCoda);return this.addInstruction(this.repetitionInstructions,h),!0}if(StringUtil.StringContainsSeparatedWord(a,u)||StringUtil.StringContainsSeparatedWord(a,"da\\s?capo",!0)){var d=new RepetitionInstruction(r,RepetitionInstructionEnum.DaCapo);return this.addInstruction(this.repetitionInstructions,d),!0}if(StringUtil.StringContainsSeparatedWord(a,i,!0)||StringUtil.StringContainsSeparatedWord(a,"dal\\s?segno",!0))return l=StringUtil.StringContainsSeparatedWord(a,"al\\s?coda",!0)?new RepetitionInstruction(r,RepetitionInstructionEnum.DalSegnoAlCoda):new RepetitionInstruction(r,RepetitionInstructionEnum.DalSegno),this.addInstruction(this.repetitionInstructions,l),!0;if(StringUtil.StringContainsSeparatedWord(a,"to\\s?coda",!0)||StringUtil.StringContainsSeparatedWord(a,"a (la )?coda",!0)){var f=new RepetitionInstruction(r,RepetitionInstructionEnum.ToCoda);return this.addInstruction(this.repetitionInstructions,f),!0}if(StringUtil.StringContainsSeparatedWord(a,"fine",!0)){var p=new RepetitionInstruction(r,RepetitionInstructionEnum.Fine);return this.addInstruction(this.repetitionInstructions,p),!0}if(StringUtil.StringContainsSeparatedWord(a,"coda",!0)){var v=new RepetitionInstruction(r,RepetitionInstructionEnum.Coda);return this.addInstruction(this.repetitionInstructions,v),!0}if(StringUtil.StringContainsSeparatedWord(a,"segno",!0)){var m=new RepetitionInstruction(r,RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,m),!0}}else{if(e.element("segno")){var g=new RepetitionInstruction(r,RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,g),!0}if(e.element("coda")){var y=new RepetitionInstruction(r,RepetitionInstructionEnum.Coda);return this.addInstruction(this.repetitionInstructions,y),!0}}return!1}},{key:"removeRedundantInstructions",value:function(){for(var e=0,t=0,n=0,r=0,i=0;i<this.repetitionInstructions.length;i++){var a=this.repetitionInstructions[i];switch(a.type){case RepetitionInstructionEnum.Coda:n>0&&this.findInstructionInPreviousMeasure(i,a.measureIndex,RepetitionInstructionEnum.ToCoda)&&(a.type=RepetitionInstructionEnum.None),0===t&&0===n&&(a.type=RepetitionInstructionEnum.ToCoda,a.alignment=AlignmentType.End,a.measureIndex--);break;case RepetitionInstructionEnum.Segno:if(e-r>0){for(var o=!1,s=0,l=this.repetitionInstructions.length;s<l;++s){var u=this.repetitionInstructions[s];if(a.measureIndex-u.measureIndex==1)switch(u.type){case RepetitionInstructionEnum.BackJumpLine:u.type=n-t>0?RepetitionInstructionEnum.DalSegnoAlCoda:RepetitionInstructionEnum.DalSegno,a.type=RepetitionInstructionEnum.None,o=!0;break;case RepetitionInstructionEnum.DalSegno:case RepetitionInstructionEnum.DalSegnoAlFine:case RepetitionInstructionEnum.DalSegnoAlCoda:a.type=RepetitionInstructionEnum.None,o=!0}if(o)break}if(o)break;a.type=n-t>0?RepetitionInstructionEnum.DalSegnoAlCoda:RepetitionInstructionEnum.DalSegno,a.alignment=AlignmentType.End,a.measureIndex--}}if(this.backwardSearchForPreviousIdenticalInstruction(i,a)||a.type===RepetitionInstructionEnum.None)this.repetitionInstructions.splice(i,1),i--;else switch(a.type){case RepetitionInstructionEnum.Fine:break;case RepetitionInstructionEnum.ToCoda:n++;break;case RepetitionInstructionEnum.Coda:t++;break;case RepetitionInstructionEnum.Segno:e++;break;case RepetitionInstructionEnum.DalSegnoAlFine:case RepetitionInstructionEnum.DalSegnoAlCoda:r++}}this.repetitionInstructions.sort(RepetitionInstructionComparer.Compare)}},{key:"findInstructionInPreviousMeasure",value:function(e,t,n){for(var r=e-1;r>=0;r--){var i=this.repetitionInstructions[r];if(t-i.measureIndex==1&&i.type===n)return!0}return!1}},{key:"backwardSearchForPreviousIdenticalInstruction",value:function(e,t){for(var n=e-1;n>=0;n--){if(this.repetitionInstructions[n].equals(t))return!0}return!1}},{key:"addInstruction",value:function(e,t){for(var n=!0,r=0,i=e.length;r<i;++r){var a=e[r];if(t.equals(a)){n=!1;break}}n&&e.push(t)}}]),e}(),RepetitionCalculator=function(){function e(){_classCallCheck2(this,e),this.repetitionInstructions=[],this.openRepetitions=[],this.lastRepetitionCommonPartStartIndex=0}return _createClass2(e,[{key:"calculateRepetitions",value:function(e,t){this.musicSheet=e,this.repetitionInstructions=t,this.openRepetitions.length=0,this.lastRepetitionCommonPartStartIndex=0;var n,r=this.musicSheet.SourceMeasures,i=_createForOfIteratorHelper(this.repetitionInstructions);try{for(i.s();!(n=i.n()).done;){var a=n.value;this.currentMeasureIndex=a.measureIndex;try{this.currentMeasure=r[this.currentMeasureIndex],this.handleRepetitionInstructions(a)}catch(w){loglevelExports.error("RepetitionCalculator: calculateRepetitions",w)}}}catch(err){i.e(err)}finally{i.f()}for(;this.openRepetitions.length>0;)try{var o=this.openRepetitions.last();if(o.RepetitonUnderConstruction.FromWords){if(o.WaitingForCoda){var s=o.RepetitonUnderConstruction.BackwardJumpInstructions.last().measureIndex+1;s>=this.musicSheet.SourceMeasures.length&&(s=-1),o.RepetitonUnderConstruction.setEndingStartIndex(2,s)}else if(0===o.RepetitonUnderConstruction.BackwardJumpInstructions.length){this.openRepetitions.splice(this.openRepetitions.length-1,1);continue}}else if(0===o.RepetitonUnderConstruction.BackwardJumpInstructions.length){var l=r.length-1,u=new RepetitionInstruction(l,RepetitionInstructionEnum.BackJumpLine,AlignmentType.End,o.RepetitonUnderConstruction);o.RepetitonUnderConstruction.BackwardJumpInstructions.push(u),r[l].LastRepetitionInstructions.push(u)}this.finalizeRepetition(this.openRepetitions.last())}catch(err){try{var c,h=this.openRepetitions.last().RepetitonUnderConstruction,d=_createForOfIteratorHelper(this.repetitionInstructions);try{for(d.s();!(c=d.n()).done;){var f=c.value;f.parentRepetition===h&&(f.parentRepetition=void 0)}}catch(err){d.e(err)}finally{d.f()}this.openRepetitions.splice(this.openRepetitions.length-1,1)}catch(w){loglevelExports.error("RepetitionCalculator: calculateRepetitions2",w)}}var p,v=!1,m=this.musicSheet.SourceMeasures.length-1,g=_createForOfIteratorHelper(this.musicSheet.Repetitions);try{for(g.s();!(p=g.n()).done;){var y=p.value;if(0===y.StartIndex&&y.EndIndex===m){v=!0;break}}}catch(err){g.e(err)}finally{g.f()}if(!v){var b=new Repetition(this.musicSheet,!0);b.FromWords=!0,b.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.StartLine),b.startMarker.parentRepetition=b,this.musicSheet.SourceMeasures[0].FirstRepetitionInstructions.push(b.startMarker),b.endMarker=new RepetitionInstruction(m,RepetitionInstructionEnum.BackJumpLine),b.endMarker.parentRepetition=b,b.BackwardJumpInstructions.push(b.endMarker),b.UserNumberOfRepetitions=b.DefaultNumberOfRepetitions,this.musicSheet.Repetitions.push(b)}for(var A=0,S=this.musicSheet.SourceMeasures.length;A<S;++A){var x=this.musicSheet.SourceMeasures[A];x.FirstRepetitionInstructions.length>1&&x.FirstRepetitionInstructions.sort(RepetitionInstructionComparer.Compare),x.LastRepetitionInstructions.length>1&&x.LastRepetitionInstructions.sort(RepetitionInstructionComparer.Compare)}}},{key:"handleRepetitionInstructions",value:function(e){var t;switch(e.type){case RepetitionInstructionEnum.StartLine:t=this.createNewRepetition(this.currentMeasureIndex),e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.FromWords=!1,t.RepetitonUnderConstruction.startMarker=e,this.currentMeasure.FirstRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.BackJumpLine:t=this.getOrCreateCurrentRepetition2(!1),e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e),0===t.RepetitonUnderConstruction.EndingParts.length&&this.finalizeRepetition(t);break;case RepetitionInstructionEnum.Ending:if(t=this.getOrCreateCurrentRepetition(),e.parentRepetition=t.RepetitonUnderConstruction,e.endingIndices.contains(1)&&e.alignment===AlignmentType.Begin){if(t.RepetitonUnderConstruction.BackwardJumpInstructions.length>0||t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)){t=void 0;for(var n=this.openRepetitions.length-1;n>=0;n--){var r=this.openRepetitions[n];if(0===r.RepetitonUnderConstruction.BackwardJumpInstructions.length)for(t=r;this.openRepetitions.length-1>n;){var i=this.openRepetitions.last();this.finalizeRepetition(i)}}void 0===t&&((t=this.createNewRepetition(0)).RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None))}void 0===t.RepetitonUnderConstruction.forwardJumpInstruction&&(t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(this.currentMeasureIndex-1,RepetitionInstructionEnum.ForwardJump,AlignmentType.End,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[this.currentMeasureIndex-1].LastRepetitionInstructions.push(t.RepetitonUnderConstruction.forwardJumpInstruction))}if(e.alignment===AlignmentType.Begin)t.RepetitonUnderConstruction.setEndingsStartIndex(e.endingIndices,this.currentMeasureIndex),this.currentMeasure.FirstRepetitionInstructions.push(e);else for(var a=0,o=e.endingIndices.length;a<o;++a){var s=e.endingIndices[a];t.RepetitonUnderConstruction.setEndingEndIndex(s,this.currentMeasureIndex),this.currentMeasure.LastRepetitionInstructions.push(e)}break;case RepetitionInstructionEnum.Segno:if(void 0!==(t=this.getCurrentRepetition(!0))&&t.SegnoFound&&t.RepetitonUnderConstruction.BackwardJumpInstructions.length>0&&Math.abs(t.RepetitonUnderConstruction.BackwardJumpInstructions.last().measureIndex-this.currentMeasureIndex)<=1)break;if(this.openRepetitions.length&&this.openRepetitions.find((function(e){return e.RepetitonUnderConstruction.startMarker.type===RepetitionInstructionEnum.StartLine})).RepetitonUnderConstruction.StartIndex===this.currentMeasureIndex)break;t=this.createNewRepetition(this.currentMeasureIndex),e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.FromWords=!0,t.SegnoFound=!0,t.RepetitonUnderConstruction.startMarker=e,this.currentMeasure.FirstRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.Fine:if(0===this.openRepetitions.length)break;if(void 0===(t=this.getCurrentRepetition(!0)))break;e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.FromWords=!0,void 0===t.RepetitonUnderConstruction.forwardJumpInstruction?(t.FineFound=!0,t.RepetitonUnderConstruction.forwardJumpInstruction=e,t.RepetitonUnderConstruction.setEndingStartIndex(2,-2),this.currentMeasure.LastRepetitionInstructions.push(e)):this.currentMeasure.LastRepetitionInstructions.push(new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Fine,AlignmentType.End,void 0));break;case RepetitionInstructionEnum.ToCoda:if(0===this.openRepetitions.length)break;if(void 0===(t=this.getCurrentRepetition(!0)))break;void 0===t.RepetitonUnderConstruction.forwardJumpInstruction&&(e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.FromWords=!0,t.ToCodaFound=!0,t.RepetitonUnderConstruction.forwardJumpInstruction=e,this.currentMeasure.LastRepetitionInstructions.push(e));break;case RepetitionInstructionEnum.Coda:if(0===this.openRepetitions.length)break;t=this.getOrCreateCurrentRepetition2(!0),e.parentRepetition=t.RepetitonUnderConstruction,t.WaitingForCoda?(t.CodaFound=!0,t.RepetitonUnderConstruction.setEndingStartIndex(2,this.currentMeasureIndex),this.currentMeasure.LastRepetitionInstructions.push(e),this.finalizeRepetition(t),this.currentMeasureIndex>0&&(this.musicSheet.SourceMeasures[this.currentMeasureIndex-1].printNewSystemXml=!0)):t.ToCodaFound||(0===t.RepetitonUnderConstruction.BackwardJumpInstructions.length?(t.ToCodaFound=!0,t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.ToCoda,AlignmentType.End,t.RepetitonUnderConstruction),this.currentMeasure.LastRepetitionInstructions.push(t.RepetitonUnderConstruction.forwardJumpInstruction)):this.currentMeasure.LastRepetitionInstructions.push(new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Coda,AlignmentType.Begin,void 0)));break;case RepetitionInstructionEnum.DaCapo:(t=this.getOrCreateCurrentRepetition()).RepetitonUnderConstruction.BackwardJumpInstructions.length>0&&this.finalizeRepetition(t),0!==t.RepetitonUnderConstruction.StartIndex&&(t=this.createNewRepetition(0)),e.parentRepetition=t.RepetitonUnderConstruction,t.RepetitonUnderConstruction.FromWords=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e),0===t.RepetitonUnderConstruction.EndingParts.length&&this.finalizeRepetition(t);break;case RepetitionInstructionEnum.DalSegno:if((t=this.getOrCreateCurrentRepetition2(!0)).RepetitonUnderConstruction.BackwardJumpInstructions.length>0&&(this.finalizeRepetition(t),(t=this.createNewRepetition(0)).RepetitonUnderConstruction.FromWords=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None,AlignmentType.Begin,t.RepetitonUnderConstruction)),e.parentRepetition=t.RepetitonUnderConstruction,!t.SegnoFound){var l=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Segno,e.measureIndex);l>=0&&(t.SegnoFound=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(l,RepetitionInstructionEnum.Segno,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[l].FirstRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.startMarker))}t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)&&t.RepetitonUnderConstruction.setEndingEndIndex(1,this.currentMeasureIndex),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.DalSegnoAlFine:if(0===this.openRepetitions.length)break;if(t=this.getOrCreateCurrentRepetition2(!0),e.parentRepetition=t.RepetitonUnderConstruction,!t.SegnoFound){var u=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Segno,e.measureIndex);u>=0&&(t.SegnoFound=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(u,RepetitionInstructionEnum.Segno,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[u].FirstRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.startMarker))}if(!t.FineFound){var c=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Fine,e.measureIndex);c>=0&&(t.FineFound=!0,t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(c,RepetitionInstructionEnum.Fine,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.setEndingStartIndex(2,-2),this.musicSheet.SourceMeasures[c].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction))}t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)||t.RepetitonUnderConstruction.setEndingEndIndex(1,this.currentMeasureIndex),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.DaCapoAlFine:if((t=this.getOrCreateCurrentRepetition()).RepetitonUnderConstruction.BackwardJumpInstructions.length>0&&(this.finalizeRepetition(t),t=this.createNewRepetition(0)),void 0!==t.RepetitonUnderConstruction.startMarker&&0!==t.RepetitonUnderConstruction.StartIndex&&(t=this.createNewRepetition(0)),t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.FromWords=!0,e.parentRepetition=t.RepetitonUnderConstruction,!t.FineFound){var h=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Fine,e.measureIndex);h>=0&&(t.FineFound=!0,t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(h,RepetitionInstructionEnum.Fine,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.setEndingStartIndex(2,-2),this.musicSheet.SourceMeasures[h].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction))}t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)||t.RepetitonUnderConstruction.setEndingEndIndex(1,this.currentMeasureIndex),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.DalSegnoAlCoda:if(0===this.openRepetitions.length)break;if(t=this.getOrCreateCurrentRepetition2(!0),e.parentRepetition=t.RepetitonUnderConstruction,!t.SegnoFound){var d=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Segno,e.measureIndex);d>=0&&(t.SegnoFound=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(d,RepetitionInstructionEnum.Segno,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[d].FirstRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.startMarker))}if(!t.ToCodaFound){var f=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.ToCoda,e.measureIndex);if(f>=0)t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(f,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[f].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction),t.ToCodaFound=!0;else{var p=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Coda,e.measureIndex);p>=0&&(t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(p,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[p].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction),t.ToCodaFound=!0)}}t.ToCodaFound&&(t.WaitingForCoda=!0),t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)||t.RepetitonUnderConstruction.setEndingEndIndex(1,this.currentMeasureIndex),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.DaCapoAlCoda:if(((t=this.getOrCreateCurrentRepetition()).RepetitonUnderConstruction.BackwardJumpInstructions.length>0||0===t.RepetitonUnderConstruction.EndingParts.length)&&(this.finalizeRepetition(t),t=this.createNewRepetition(0)),void 0!==t.RepetitonUnderConstruction.startMarker&&0!==t.RepetitonUnderConstruction.StartIndex&&(t=this.createNewRepetition(0)),t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.FromWords=!0,e.parentRepetition=t.RepetitonUnderConstruction,!t.ToCodaFound){var v=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.ToCoda,e.measureIndex);if(v>=0)t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(v,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[v].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction),t.ToCodaFound=!0;else{var m=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Coda,e.measureIndex);m>=0&&(t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(m,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[m].LastRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.forwardJumpInstruction),t.ToCodaFound=!0)}}t.ToCodaFound&&(t.WaitingForCoda=!0),t.RepetitonUnderConstruction.EndingIndexDict.hasOwnProperty(1)||t.RepetitonUnderConstruction.setEndingEndIndex(1,this.currentMeasureIndex),t.RepetitonUnderConstruction.BackwardJumpInstructions.push(e),this.currentMeasure.LastRepetitionInstructions.push(e);break;case RepetitionInstructionEnum.None:break;default:throw new ArgumentOutOfRangeException("currentRepetitionInstruction")}return!0}},{key:"findInstructionInMainListBackwards",value:function(e,t){for(var n=this.repetitionInstructions.length-1;n>=0;n--){var r=this.repetitionInstructions[n];if(r.measureIndex<=t&&r.type===e)return r.measureIndex}return-1}},{key:"finalizeRepetition",value:function(e){var t=e.RepetitonUnderConstruction;if(t.BackwardJumpInstructions.length>0){var n=!0,r=this.getLastFinalizedRepetition();if(void 0!==r&&t.coversIdenticalMeasures(r)){if(t.NumberOfEndings>r.NumberOfEndings){var i=this.musicSheet.Repetitions.indexOf(r,0);i>-1&&this.musicSheet.Repetitions.splice(i,1),r.removeFromRepetitionInstructions(),this.musicSheet.Repetitions.push(t)}n=!1,t.removeFromRepetitionInstructions()}else this.musicSheet.Repetitions.push(t);n&&(t.startMarker.type===RepetitionInstructionEnum.None&&this.musicSheet.SourceMeasures[t.StartIndex].FirstRepetitionInstructions.push(t.startMarker),t.UserNumberOfRepetitions=t.DefaultNumberOfRepetitions)}this.openRepetitions.splice(this.openRepetitions.length-1,1)}},{key:"getCurrentRepetition",value:function(e){for(var t=void 0,n=this.openRepetitions.length-1;n>=0;n--)if(this.openRepetitions[n].RepetitonUnderConstruction.FromWords===e){for(t=this.openRepetitions[n];n<this.openRepetitions.length-1;)this.finalizeRepetition(this.openRepetitions.last());return t}return t}},{key:"getOrCreateCurrentRepetition",value:function(){if(this.openRepetitions.length>0)return this.openRepetitions.last();var e=this.createNewRepetition(0);return e.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(0,RepetitionInstructionEnum.None,AlignmentType.Begin,e.RepetitonUnderConstruction),e}},{key:"getOrCreateCurrentRepetition2",value:function(e){var t=void 0;if(this.openRepetitions.length&&this.openRepetitions.last().RepetitonUnderConstruction.EndingParts.length<2)for(var n=this.openRepetitions.length-1;n>=0;n--)if((t=this.openRepetitions[n]).RepetitonUnderConstruction.FromWords===e){for(;n<this.openRepetitions.length-1;)this.finalizeRepetition(this.openRepetitions.last());return t}return(t=this.createNewRepetition(this.lastRepetitionCommonPartStartIndex)).RepetitonUnderConstruction.startMarker=new RepetitionInstruction(this.lastRepetitionCommonPartStartIndex,RepetitionInstructionEnum.None,AlignmentType.Begin,t.RepetitonUnderConstruction),t.RepetitonUnderConstruction.FromWords=e,t}},{key:"createNewRepetition",value:function(e){if(this.openRepetitions.length>0){var t=this.openRepetitions.last(),n=t.RepetitonUnderConstruction;if(n.BackwardJumpInstructions.length>0){var r=Object.keys(n.EndingIndexDict);(0===r.length||n.EndingIndexDict[r[r.length-1]].part.EndIndex>=0)&&this.finalizeRepetition(t)}}var i=new RepetitionBuildingContainer(this.musicSheet);return this.lastRepetitionCommonPartStartIndex=e,this.openRepetitions.push(i),i}},{key:"getLastFinalizedRepetition",value:function(){if(this.musicSheet.Repetitions.length>0)return this.musicSheet.Repetitions.last()}}]),e}(),RepetitionBuildingContainer=_createClass2((function e(t){_classCallCheck2(this,e),this.RepetitonUnderConstruction=new Repetition(t)})),MusicSymbolModuleFactory=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"createRepetitionInstructionReader",value:function(){return new RepetitionInstructionReader}},{key:"createRepetitionCalculator",value:function(){return new RepetitionCalculator}}]),e}(),ReaderPluginManager=function(){function e(){_classCallCheck2(this,e),this.voiceMeasureReadPlugins=[]}return _createClass2(e,[{key:"addVoiceMeasureReadPlugin",value:function(e){this.voiceMeasureReadPlugins.push(e)}},{key:"processVoiceMeasureReadPlugins",value:function(e,t,n){var r,i=_createForOfIteratorHelper(this.voiceMeasureReadPlugins);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a.measureReadCalculations(e,t,n)}catch(o){loglevelExports.info("VoiceGenerator.addSingleNote: ",o)}}}catch(err){i.e(err)}finally{i.f()}}}]),e}(),MusicSheetReader=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new EngravingRules;_classCallCheck2(this,t),this.completeNumberOfStaves=0,this.pluginManager=new ReaderPluginManager,this.afterSheetReadingModules=e||[],this.repetitionInstructionReader=MusicSymbolModuleFactory.createRepetitionInstructionReader(),this.repetitionCalculator=MusicSymbolModuleFactory.createRepetitionCalculator(),this.rules=n}return _createClass2(t,[{key:"PluginManager",get:function(){return this.pluginManager}},{key:"CompleteNumberOfStaves",get:function(){return this.completeNumberOfStaves}},{key:"createMusicSheet",value:function(t,n){try{return this._createMusicSheet(t,n)}catch(e){return void loglevelExports.error("MusicSheetReader.CreateMusicSheet",e)}}},{key:"_removeFromArray",value:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},{key:"trimString",value:function(e){return e.replace(/^\s+|\s+$/g,"")}},{key:"_lastElement",value:function(e){return e[e.length-1]}},{key:"_createMusicSheet",value:function(n,r){var i=[],a=0;if(this.musicSheet=new MusicSheet,this.musicSheet.Path=r,this.musicSheet.Rules=this.rules,!n)throw new MusicSheetReadingException("Undefined root element");this.pushSheetLabels(n,r);var o=n.element("part-list");if(!o)throw new MusicSheetReadingException("Undefined partListNode");var s=n.elements("part"),l=o.elements();this.initializeReading(l,s,i);var u=!0;this.currentFraction=new Fraction$1(0,1);var c=!1,h=n.element("identification");for(h&&(h=h.element("encoding")),h&&(h=h.element("software")),void 0!==h&&"Guitar Pro 5"===h.value&&(c=!0);u;){void 0!==this.currentMeasure&&this.currentMeasure.HasEndLine&&this.rules.NewPartAndSystemAfterFinalBarline&&(a=0),this.currentMeasure=new SourceMeasure(this.completeNumberOfStaves,this.musicSheet.Rules);var d,f,p=_createForOfIteratorHelper(i);try{for(p.s();!(d=p.n()).done;){var v=d.value;try{u=u&&v.readNextXmlMeasure(this.currentMeasure,this.currentFraction,c)}catch(e){var m=ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading instruments.");throw new MusicSheetReadingException(m,e)}}}catch(err){p.e(err)}finally{p.f()}if(u)this.musicSheet.addMeasure(this.currentMeasure),this.checkIfRhythmInstructionsAreSetAndEqual(i),this.checkSourceMeasureForNullEntries(),a=this.setSourceMeasureDuration(i,a),t.doCalculationsAfterDurationHasBeenSet(i),this.currentMeasure.AbsoluteTimestamp=this.currentFraction.clone(),this.musicSheet.SheetErrors.finalizeMeasure(this.currentMeasure.MeasureNumber),this.currentFraction.Add(this.currentMeasure.Duration),this.previousMeasure=this.currentMeasure,this.musicSheet.SoundTempos=null===(f=i[0])||void 0===f?void 0:f.SoundTempos}this.repetitionInstructionReader&&(this.repetitionInstructionReader.removeRedundantInstructions(),this.repetitionCalculator&&this.repetitionCalculator.calculateRepetitions(this.musicSheet,this.repetitionInstructionReader.repetitionInstructions)),0===this.musicSheet.DefaultStartTempoInBpm&&(this.musicSheet.DefaultStartTempoInBpm=100),this.musicSheet.checkForInstrumentWithNoVoice(),this.musicSheet.fillStaffList();for(var g=0,y=this.afterSheetReadingModules.length;g<y;++g){this.afterSheetReadingModules[g].calculate(this.musicSheet)}return this.musicSheet.userStartTempoInBPM=this.musicSheet.userStartTempoInBPM||this.musicSheet.DefaultStartTempoInBpm,this.musicSheet.InitializeStartTempoInBPM(this.musicSheet.userStartTempoInBPM),this.musicSheet.MusicPartManager.init(),this.musicSheet}},{key:"initializeReading",value:function(e,t,n){var r=this.createInstrumentGroups(e);this.completeNumberOfStaves=this.getCompleteNumberOfStavesFromXml(t),0!==t.length&&(this.repetitionInstructionReader.MusicSheet=this.musicSheet,this.currentFraction=new Fraction$1(0,1),this.currentMeasure=void 0,this.previousMeasure=void 0);var i,a=0,o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;){var s=i.value,l=s.attribute("id");if(l){var u=r[l.value],c=s.elements("measure"),h=1;try{h=this.getInstrumentNumberOfStavesFromXml(s)}catch(err){var d=ITextTranslation.translateText("ReaderErrorMessages/InstrumentStavesNumberError","Invalid number of staves at instrument: ");this.musicSheet.SheetErrors.push(d+u.Name);continue}u.createStaves(h),n.push(new InstrumentReader(this.pluginManager,this.repetitionInstructionReader,c,u)),this.repetitionInstructionReader&&(this.repetitionInstructionReader.xmlMeasureList[a]=c),a++}}}catch(err){o.e(err)}finally{o.f()}}},{key:"checkIfRhythmInstructionsAreSetAndEqual",value:function(e){for(var t=[],n=0;n<this.completeNumberOfStaves;n++)if(this.currentMeasure.FirstInstructionsStaffEntries[n]){var r=this.currentMeasure.FirstInstructionsStaffEntries[n].Instructions[this.currentMeasure.FirstInstructionsStaffEntries[n].Instructions.length-1];r instanceof RhythmInstruction&&t.push(r)}for(var i=0,a=-1,o=0,s=t.length;o<s;++o){var l=t[o];if(l.Rhythm.RealValue>i){if(this.areRhythmInstructionsMixed(t)&&l.SymbolEnum!==RhythmSymbolEnum.NONE)continue;i=l.Rhythm.RealValue,a=t.indexOf(l)}}if(t.length>0&&t.length<this.completeNumberOfStaves){for(var u=t[a].clone(),c=0;c<this.completeNumberOfStaves;c++)void 0===this.currentMeasure.FirstInstructionsStaffEntries[c]||this._lastElement(this.currentMeasure.FirstInstructionsStaffEntries[c].Instructions)instanceof RhythmInstruction||(this.currentMeasure.FirstInstructionsStaffEntries[c].removeAllInstructionsOfTypeRhythmInstruction(),this.currentMeasure.FirstInstructionsStaffEntries[c].Instructions.push(u.clone())),this.currentMeasure.FirstInstructionsStaffEntries[c]||(this.currentMeasure.FirstInstructionsStaffEntries[c]=new SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[c].Instructions.push(u.clone()));for(var h=0,d=e.length;h<d;++h){e[h].ActiveRhythm=u}}if(0===t.length&&this.currentMeasure===this.musicSheet.SourceMeasures[0]){for(var f=new RhythmInstruction(new Fraction$1(4,4,0,!1),RhythmSymbolEnum.NONE),p=0;p<this.completeNumberOfStaves;p++)this.currentMeasure.FirstInstructionsStaffEntries[p]?this.currentMeasure.FirstInstructionsStaffEntries[p].removeAllInstructionsOfTypeRhythmInstruction():this.currentMeasure.FirstInstructionsStaffEntries[p]=new SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[p].Instructions.push(f);for(var v=0,m=e.length;v<m;++v){e[v].ActiveRhythm=f}}for(var g=0,y=t.length;g<y;++g){var b=t[g];if(b.Rhythm.RealValue<i&&this._lastElement(this.currentMeasure.FirstInstructionsStaffEntries[t.indexOf(b)].Instructions)instanceof RhythmInstruction){var A=this.currentMeasure.FirstInstructionsStaffEntries[t.indexOf(b)].Instructions;A[A.length-1]=t[a].clone()}Math.abs(b.Rhythm.RealValue-i)<1e-6&&b.SymbolEnum!==RhythmSymbolEnum.NONE&&this.areRhythmInstructionsMixed(t)&&(b.SymbolEnum=RhythmSymbolEnum.NONE)}}},{key:"areRhythmInstructionsMixed",value:function(e){for(var t=1;t<e.length;t++)if(Math.abs(e[t].Rhythm.RealValue-e[0].Rhythm.RealValue)<1e-6&&e[t].SymbolEnum!==e[0].SymbolEnum)return!0;return!1}},{key:"setSourceMeasureDuration",value:function(e,t){var n,r=new Fraction$1(0,1),i=[],a=_createForOfIteratorHelper(e);try{for(a.s();!(n=a.n()).done;){var o=n.value;i.push(o.MaxTieNoteFraction);var s=o.ActiveRhythm.Rhythm;r.lt(s)&&(r=new Fraction$1(s.Numerator,s.Denominator,0,!1))}}catch(err){a.e(err)}finally{a.f()}var l,u=this.currentMeasure.calculateInstrumentsDuration(this.musicSheet,i),c=new Fraction$1(0,1),h=_createForOfIteratorHelper(u);try{for(h.s();!(l=h.n()).done;){var d=l.value;c.lt(d)&&(c=d)}}catch(err){h.e(err)}finally{h.f()}Fraction$1.Equal(c,r)?this.checkFractionsForEquivalence(c,r):c.lt(r)&&(c=this.currentMeasure.reverseCheck(this.musicSheet,c),this.checkFractionsForEquivalence(c,r)),this.currentMeasure.ImplicitMeasure=this.checkIfMeasureIsImplicit(c,r),this.currentMeasure.ImplicitMeasure||t++,this.currentMeasure.Duration=c,this.currentMeasure.ActiveTimeSignature=r,this.currentMeasure.MeasureNumber=t;for(var f=0;f<u.length;f++){var p=u[f];if(this.currentMeasure.ImplicitMeasure&&p!==c||!Fraction$1.Equal(p,r)&&!this.allInstrumentsHaveSameDuration(u,c))for(var v=this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.musicSheet.Instruments[f]),m=0;m<this.musicSheet.Instruments[f].Staves.length;m++)if(!this.graphicalMeasureIsEmpty(v+m)){this.currentMeasure.setErrorInGraphicalMeasure(v+m,!0);var g=ITextTranslation.translateText("ReaderErrorMessages/MissingNotesError","Given Notes don't correspond to measure duration.");this.musicSheet.SheetErrors.pushMeasureError(g)}}return t}},{key:"checkFractionsForEquivalence",value:function(e,t){if(t.Denominator>e.Denominator){var n=t.Denominator/e.Denominator;e.expand(n)}}},{key:"checkIfMeasureIsImplicit",value:function(e,t){return!(this.previousMeasure||!e.lt(t))||!!this.previousMeasure&&Fraction$1.plus(this.previousMeasure.Duration,e).Equals(t)}},{key:"allInstrumentsHaveSameDuration",value:function(e,t){for(var n=0,r=0,i=e.length;r<i;++r){e[r].Equals(t)&&n++}return n===e.length&&t!==new Fraction$1(0,1)}},{key:"graphicalMeasureIsEmpty",value:function(e){for(var t=0,n=0;n<this.currentMeasure.VerticalSourceStaffEntryContainers.length;n++)this.currentMeasure.VerticalSourceStaffEntryContainers[n].StaffEntries[e]||t++;return t===this.currentMeasure.VerticalSourceStaffEntryContainers.length}},{key:"checkSourceMeasureForNullEntries",value:function(){for(var e=this.currentMeasure.VerticalSourceStaffEntryContainers.length-1;e>=0;e--)for(var t=this.currentMeasure.VerticalSourceStaffEntryContainers[e].StaffEntries.length-1;t>=0;t--){var n=this.currentMeasure.VerticalSourceStaffEntryContainers[e].StaffEntries[t];if(n)for(var r=n.VoiceEntries.length-1;r>=0;r--){var i=n.VoiceEntries[r];0===i.Notes.length&&(this._removeFromArray(i.ParentVoice.VoiceEntries,i),this._removeFromArray(n.VoiceEntries,i))}void 0!==n&&0===n.VoiceEntries.length&&(this.currentMeasure.VerticalSourceStaffEntryContainers[e].StaffEntries[t]=void 0)}for(var a=this.currentMeasure.VerticalSourceStaffEntryContainers.length-1;a>=0;a--){for(var o=0,s=0,l=this.currentMeasure.VerticalSourceStaffEntryContainers[a].StaffEntries.length;s<l;++s){this.currentMeasure.VerticalSourceStaffEntryContainers[a].StaffEntries[s]||o++}o===this.currentMeasure.VerticalSourceStaffEntryContainers[a].StaffEntries.length&&this._removeFromArray(this.currentMeasure.VerticalSourceStaffEntryContainers,this.currentMeasure.VerticalSourceStaffEntryContainers[a])}}},{key:"pushSheetLabels",value:function(e,t){this.readComposer(e),this.readTitle(e);try{this.musicSheet.Title&&this.musicSheet.Composer||this.readTitleAndComposerFromCredits(e)}catch(i){loglevelExports.info("MusicSheetReader.pushSheetLabels","readTitleAndComposerFromCredits",i)}try{if(!this.musicSheet.Title){var n=Math.max(0,t.lastIndexOf("/"),t.lastIndexOf("\\")),r=t.substr(n).split(".",1);this.musicSheet.Title=new Label(r[0])}}catch(i){loglevelExports.info("MusicSheetReader.pushSheetLabels","read title from file name",i)}}},{key:"presentAttrsWithValue",value:function(e,t){var n,r=_createForOfIteratorHelper(e.attributes());try{for(r.s();!(n=r.n()).done;){if(n.value.value===t)return!0}}catch(err){r.e(err)}finally{r.f()}return!1}},{key:"readComposer",value:function(e){var t=e.element("identification");if(t)for(var n=t.elements("creator"),r=0,i=n.length;r<i;++r){var a=n[r];if(a.hasAttributes){if(this.presentAttrsWithValue(a,"composer")){this.musicSheet.Composer=new Label(this.trimString(a.value));continue}(this.presentAttrsWithValue(a,"lyricist")||this.presentAttrsWithValue(a,"poet"))&&(this.musicSheet.Lyricist=new Label(this.trimString(a.value)))}}}},{key:"readTitleAndComposerFromCredits",value:function(e){var t=this.computeSystemYCoordinates(e);if(0!==t){for(var n=1,r=void 0,i=0,a=void 0,o=void 0,s=e.elements("credit"),l=0,u=s.length;l<u;++l){var c=s[l];if(!c.attribute("page"))return;if("1"===c.attribute("page").value){var h=void 0;if(c){var d,f;if(!(h=c.element("credit-words")).attribute("justify"))break;var p=null===(d=h.attribute("justify"))||void 0===d?void 0:d.value,v=null===(f=h.attribute("default-y"))||void 0===f?void 0:f.value,m=null!=v,g=m?parseFloat(v):Number.MIN_VALUE;if(m&&g>t){if(!this.musicSheet.Title){var y=h.attribute("font-size").value,b=parseFloat(y);n<b&&(n=b,r=h.value)}if(this.musicSheet.Subtitle||"right"!==p&&"left"!==p&&i<g&&(i=g,o?(a=o,o=h.value):o=h.value),void 0===this.musicSheet.Composer||!this.musicSheet.Lyricist)switch(p){case"right":this.musicSheet.Composer=new Label(this.trimString(h.value));break;case"left":this.musicSheet.Lyricist=new Label(this.trimString(h.value))}}}}}!this.musicSheet.Title&&r&&(this.musicSheet.Title=new Label(this.trimString(r))),!this.musicSheet.Subtitle&&a&&(this.musicSheet.Subtitle=new Label(this.trimString(a)))}}},{key:"computeSystemYCoordinates",value:function(t){if(!t.element("defaults"))return 0;var n=0,r=0;try{var i=t.element("defaults").element("page-layout").element("page-height").value;n=parseFloat(i)}catch(e){return loglevelExports.info("MusicSheetReader.computeSystemYCoordinates(): couldn't find page height, not reading title/composer."),0}for(var a=!1,o=t.elements("part"),s=0,l=o.length;s<l;++s){for(var u=o[s].elements("measure"),c=0,h=u.length;c<h;++c){var d=u[c];if(d.element("print")){for(var f=d.element("print").elements("system-layout"),p=0,v=f.length;p<v;++p){var m=f[p];if(m.element("top-system-distance")){var g=m.element("top-system-distance").value;r=parseFloat(g),a=!0;break}}break}}if(a)break}if(t.element("defaults").element("system-layout")&&t.element("defaults").element("system-layout").element("top-system-distance")){var y=t.element("defaults").element("system-layout").element("top-system-distance").value;r=parseFloat(y)}return 0===r?0:n-r}},{key:"readTitle",value:function(e){var t=e.element("work"),n=void 0;t&&(n=t.element("work-title"))&&n.value&&(this.musicSheet.Title=new Label(this.trimString(n.value)));var r=e.element("movement-title"),i="";if(r&&(this.musicSheet.Title?i=this.trimString(r.value):this.musicSheet.Title=new Label(this.trimString(r.value))),t){var a=t.element("work-number");if(a){var o=a.value;o&&(i=""===i?o:i+", "+o)}}i&&(this.musicSheet.Subtitle=new Label(i))}},{key:"createInstrumentGroups",value:function(t){var n,r=0,i={};try{for(var a=t,o=0,s=a.length;o<s;++o){var l=a[o];if("score-part"===l.name){var u=l.attribute("id").value,c=new Instrument(r,u,this.musicSheet,n);r++;for(var h=l.elements(),d=0,f=h.length;d<f;++d){var p=h[d];try{if("part-name"===p.name)c.Name=p.value,p.attribute("print-object")&&"no"===p.attribute("print-object").value&&(c.NameLabel.print=!1);else if("part-abbreviation"===p.name)c.PartAbbreviation=p.value;else if("score-instrument"===p.name){var v=new SubInstrument(c);v.idString=p.firstAttribute.value,c.SubInstruments.push(v);var m=p.element("instrument-name");m&&(v.name=m.value,v.setMidiInstrument(m.value))}else if("midi-instrument"===p.name){for(var g=c.getSubInstrument(p.firstAttribute.value),y=0,b=c.SubInstruments.length;y<b;++y){var A=c.SubInstruments[y];if(A.idString===p.value){g=A;break}}for(var S=p.elements(),x=0,w=S.length;x<w;++x){var _=S[x];try{if("midi-channel"===_.name)10===parseInt(_.value,10)&&(c.MidiInstrumentId=MidiInstrument.Percussion);else if("midi-program"===_.name)c.SubInstruments.length>0&&c.MidiInstrumentId!==MidiInstrument.Percussion&&(g.midiInstrumentID=Math.max(0,parseInt(_.value,10)-1));else if("midi-unpitched"===_.name)g.fixedKey=Math.max(0,parseInt(_.value,10));else if("volume"===_.name)try{var E=parseFloat(_.value);g.volume=E/127}catch(L){loglevelExports.debug("ExpressionReader.readExpressionParameters","read volume",L)}else if("pan"===_.name)try{var k=parseFloat(_.value);g.pan=k/64}catch(L){loglevelExports.debug("ExpressionReader.readExpressionParameters","read pan",L)}}catch(L){loglevelExports.info("MusicSheetReader.createInstrumentGroups midi settings: ",L)}}}}catch(L){loglevelExports.info("MusicSheetReader.createInstrumentGroups: ",L)}}if(0===c.SubInstruments.length){var C=new SubInstrument(c);c.SubInstruments.push(C)}i[u]=c,n?(n.InstrumentalGroups.push(c),this.musicSheet.Instruments.push(c)):(this.musicSheet.InstrumentalGroups.push(c),this.musicSheet.Instruments.push(c))}else if("part-group"===l.name&&"start"===l.attribute("type").value){var M=new InstrumentalGroup("group",this.musicSheet,n);n?n.InstrumentalGroups.push(M):this.musicSheet.InstrumentalGroups.push(M),n=M}else if("part-group"===l.name&&"stop"===l.attribute("type").value&&n){if(1===n.InstrumentalGroups.length){var P=n.InstrumentalGroups[0];n.Parent?(n.Parent.InstrumentalGroups.push(P),this._removeFromArray(n.Parent.InstrumentalGroups,n)):(this.musicSheet.InstrumentalGroups.push(P),this._removeFromArray(this.musicSheet.InstrumentalGroups,n))}n=n.Parent}}}catch(e){var I=ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading Instruments");throw new MusicSheetReadingException(I,e)}for(var T=0,B=this.musicSheet.Instruments.length;T<B;++T){var R=this.musicSheet.Instruments[T];R.Name||(R.Name="Instr. "+R.IdString)}return i}},{key:"getCompleteNumberOfStavesFromXml",value:function(e){var t,n=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.elements("measure");if(i.length>0){var a=i[0];if(a){var o=a.element("attributes");o&&(o=o.element("staves")),o?n+=parseInt(o.value,10):n++}}}}catch(err){r.e(err)}finally{r.f()}if(isNaN(n)||n<=0){var s=ITextTranslation.translateText("ReaderErrorMessages/StaffError","Invalid number of staves.");throw new MusicSheetReadingException(s)}return n}},{key:"getInstrumentNumberOfStavesFromXml",value:function(e){var t=0,n=e.element("measure");if(n){var r=n.element("attributes"),i=void 0;r&&(i=r.element("staves")),t=r&&i?parseInt(i.value,10):1}if(isNaN(t)||t<=0){var a=ITextTranslation.translateText("ReaderErrorMessages/StaffError","Invalid number of Staves.");throw new MusicSheetReadingException(a)}return t}}],[{key:"doCalculationsAfterDurationHasBeenSet",value:function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){t.value.doCalculationsAfterDurationHasBeenSet()}}catch(err){n.e(err)}finally{n.f()}}}]),t}();function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jszip_minExports={},jszip_min={get exports(){return jszip_minExports},set exports(e){jszip_minExports=e}};
  39. /*!
  40. JSZip v3.7.1 - A JavaScript class for generating and reading zip files
  41. <http://stuartk.com/jszip>
  42. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  43. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
  44. JSZip uses the library pako released under the MIT license :
  45. https://github.com/nodeca/pako/blob/master/LICENSE
  46. */
  47. !function(e,t){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof commonjsRequire&&commonjsRequire;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof commonjsRequire&&commonjsRequire,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){var r=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,o,s,l,u,c=[],h=0,d=e.length,f=d,p="string"!==r.getTypeOf(e);h<e.length;)f=d-h,i=p?(t=e[h++],n=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),n=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,c.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return c.join("")},n.decode=function(e){var t,n,r,o,s,l,u=0,c=0,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<e.length;)t=a.indexOf(e.charAt(u++))<<2|(o=a.indexOf(e.charAt(u++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e("./utils"),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,c){var h,d,f=e.file,p=e.compression,v=c!==s.utf8encode,m=a.transformTo("string",c(f.name)),g=a.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=a.transformTo("string",c(y)),A=a.transformTo("string",s.utf8encode(y)),S=g.length!==f.name.length,x=A.length!==y.length,w="",_="",E="",k=f.dir,C=f.date,M={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(M.crc32=e.crc32,M.compressedSize=e.compressedSize,M.uncompressedSize=e.uncompressedSize);var P=0;t&&(P|=8),v||!S&&!x||(P|=2048);var I=0,T=0;k&&(I|=16),"UNIX"===o?(T=798,I|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,k)):(T=20,I|=function(e){return 63&(e||0)}(f.dosPermissions)),h=C.getUTCHours(),h<<=6,h|=C.getUTCMinutes(),h<<=5,h|=C.getUTCSeconds()/2,d=C.getUTCFullYear()-1980,d<<=4,d|=C.getUTCMonth()+1,d<<=5,d|=C.getUTCDate(),S&&(_=r(1,1)+r(l(m),4)+g,w+="up"+r(_.length,2)+_),x&&(E=r(1,1)+r(l(b),4)+A,w+="uc"+r(E.length,2)+E);var B="";return B+="\n\0",B+=r(P,2),B+=p.magic,B+=r(h,2),B+=r(d,2),B+=r(M.crc32,4),B+=r(M.compressedSize,4),B+=r(M.uncompressedSize,4),B+=r(m.length,2),B+=r(w.length,2),{fileRecord:u.LOCAL_FILE_HEADER+B+m+w,dirRecord:u.CENTRAL_FILE_HEADER+r(T,2)+B+r(b.length,2)+"\0\0\0\0"+r(I,4)+r(i,4)+m+w+b}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo("string",o(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.7.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new o(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(u(r[a]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,a=0;a<i.length;a++){var o=i[a];n.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e("readable-stream").Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}e("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=v(e)),s.createFolders&&(r=p(e))&&m.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var g=null;g=t instanceof u||t instanceof o?t:d.isNode&&d.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new c(e,g,s);this.files[e]=y}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},v=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=v(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,n),this;if(g(e)){var i=e;return this.filter((function(e,t){return!t.dir&&i.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(g(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";t=h.generateWorker(this,n,r)}catch(e){(t=new o("error")).error(e)}return new s(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e("./Uint8ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e("./DataReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e("./ArrayReader");function i(e){r.call(this,e)}e("../utils").inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new a(r.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,n){var r=e("./GenericWorker"),i=e("../utils");function a(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e("./GenericWorker"),i=e("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t){return new l.Promise((function(n,i){var a=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,n){a.push(e),t&&t(n)})).on("error",(function(e){a=[],i(e)})).on("end",(function(){try{var e=function(e,t,n){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),n);case"base64":return o.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,a),u);n(e)}catch(e){i(e)}a=[]})).resume()}))}function h(e,t,n){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}h.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var n=this;return"data"===e?this._worker.on(e,(function(e){t.call(n,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=0===i.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,n,r,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,a,o=e.length,l=new Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)l[n++]=i;else if(4<(a=s[i]))l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,o),u.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function u(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}n.newBlob=function(t,r){n.checkSupport("blob");try{return new Blob([t],{type:r})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(r)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function h(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=c.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=h;var f={};f.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,a.allocBuffer(e.length))}},f.array={string:h,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:h,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:h,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:l},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return f[r][e](t)},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&a.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r="";for(n=0;n<(e||"").length;n++)r+="\\x"+((t=e.charCodeAt(n))<16?"0":"")+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){o((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,o,l){return s.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var c=n.getTypeOf(t);return c?("arraybuffer"===c?t=n.transformTo("uint8array",t):"string"===c&&(l?t=i.decode(t):a&&!0!==o&&(t=function(e){return u(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=c;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;for(var n=u.length;n;){for(t=u,u=[],e=-1;++e<n;)t[e]();n=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||n()}}).call(this,void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){var r=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return a.reject(e,r)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==_typeof2(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=p((function(){t(i,r)}));"error"===o.status&&r(o.value)}function p(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=p(d,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return a.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,l=-1,u=new this(i);++l<n;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(u,o))}),(function(e){r||(r=!0,a.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,l=new this(i);++s<n;)o=e[s],t.resolve(o).then((function(e){r||(r=!0,a.resolve(l,e))}),(function(e){r||(r=!0,a.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==u)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(o[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(e,t){var n,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,o))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(e,t){var n,s,l,u,h,d,f=this.strm,p=this.options.chunkSize,v=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&v&&(d="string"==typeof v?a.string2buf(v):"[object ArrayBuffer]"===c.call(v)?new Uint8Array(v):v,n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),u=f.next_out-l,h=a.buf2string(f.output,l),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=_typeof2(n))throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),a=o=0;o<l;a++)55296==(64512&(n=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if(4<(a=o[i]))u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,h=0,d=-2,f=-1,p=4,v=2,m=8,g=9,y=286,b=30,A=19,S=2*y+1,x=15,w=3,_=258,E=_+w+1,k=42,C=113,M=1,P=2,I=3,T=4;function B(e,t){return e.msg=l[t],t}function R(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function N(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function F(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function D(e,t){e.pending_buf[e.pending++]=t}function O(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function V(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-E?e.strstart-(e.w_size-E):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+_,f=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<d);if(r=_-(d-a),a=d-_,o<r){if(e.match_start=t,s<=(o=r))break;f=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function z(e){var t,n,r,a,l,u,c,h,d,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-E)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,h=e.strstart+e.lookahead,f=void 0,(d=a)<(f=u.avail_in)&&(f=d),n=0===f?0:(u.avail_in-=f,i.arraySet(c,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=o(u.adler,c,f,h):2===u.state.wrap&&(u.adler=s(u.adler,c,f,h)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=w)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+w-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<w)););}while(e.lookahead<E&&0!==e.strm.avail_in)}function G(e,t){for(var n,r;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===u)return M;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-E&&(e.match_length=V(e,n)),e.match_length>=w)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(F(e,!1),0===e.strm.avail_out))return M}return e.insert=e.strstart<w-1?e.strstart:w-1,t===c?(F(e,!0),0===e.strm.avail_out?I:T):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?M:P}function H(e,t){for(var n,r,i;;){if(e.lookahead<E){if(z(e),e.lookahead<E&&t===u)return M;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=w-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-E&&(e.match_length=V(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===w&&4096<e.strstart-e.match_start)&&(e.match_length=w-1)),e.prev_length>=w&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-w,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=w-1,e.strstart++,r&&(F(e,!1),0===e.strm.avail_out))return M}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&F(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return M}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<w-1?e.strstart:w-1,t===c?(F(e,!0),0===e.strm.avail_out?I:T):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?M:P}function U(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*S),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*A+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=v,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?k:C,e.adler=2===t.wrap?0:1,t.last_flush=u,a._tr_init(t),h):B(e,d)}function Y(e){var t=Q(e);return t===h&&function(e){e.window_size=2*e.w_size,L(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=w-1,e.match_available=0,e.ins_h=0}(e.state),t}function W(e,t,n,r,a,o){if(!e)return d;var s=1;if(t===f&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||g<a||n!==m||r<8||15<r||t<0||9<t||o<0||p<o)return B(e,d);8===r&&(r=9);var l=new j;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+w-1)/w),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=n,Y(e)}r=[new U(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===u)return M;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,F(e,!1),0===e.strm.avail_out))return M;if(e.strstart-e.block_start>=e.w_size-E&&(F(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===c?(F(e,!0),0===e.strm.avail_out?I:T):(e.strstart>e.block_start&&(F(e,!1),e.strm.avail_out),M)})),new U(4,4,8,4,G),new U(4,5,16,8,G),new U(4,6,32,32,G),new U(4,4,16,16,H),new U(8,16,32,32,H),new U(8,16,128,128,H),new U(8,32,128,256,H),new U(32,128,258,1024,H),new U(32,258,258,4096,H)],n.deflateInit=function(e,t){return W(e,t,m,15,8,0)},n.deflateInit2=W,n.deflateReset=Y,n.deflateResetKeep=Q,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,h):d},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5<t||t<0)return e?B(e,d):d;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==c)return B(e,0===e.avail_out?-5:d);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===k)if(2===i.wrap)e.adler=0,D(i,31),D(i,139),D(i,8),i.gzhead?(D(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),D(i,255&i.gzhead.time),D(i,i.gzhead.time>>8&255),D(i,i.gzhead.time>>16&255),D(i,i.gzhead.time>>24&255),D(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),D(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(D(i,255&i.gzhead.extra.length),D(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(D(i,0),D(i,0),D(i,0),D(i,0),D(i,0),D(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),D(i,3),i.status=C);else{var f=m+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=C,O(i,f),0!==i.strstart&&(O(i,e.adler>>>16),O(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending!==i.pending_buf_size));)D(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,D(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),N(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,D(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(D(i,255&e.adler),D(i,e.adler>>8&255),e.adler=0,i.status=C)):i.status=C),0!==i.pending){if(N(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&R(t)<=R(n)&&t!==c)return B(e,-5);if(666===i.status&&0!==e.avail_in)return B(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===u)return M;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(F(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===c?(F(e,!0),0===e.strm.avail_out?I:T):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?M:P}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=_){if(z(e),e.lookahead<=_&&t===u)return M;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=w&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+_;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=_-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(n=a._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(F(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===c?(F(e,!0),0===e.strm.avail_out?I:T):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?M:P}(i,t):r[i.level].func(i,t);if(p!==I&&p!==T||(i.status=666),p===M||p===I)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===P&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(L(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),0===e.avail_out))return i.last_flush=-1,h}return t!==c?h:i.wrap<=0?1:(2===i.wrap?(D(i,255&e.adler),D(i,e.adler>>8&255),D(i,e.adler>>16&255),D(i,e.adler>>24&255),D(i,255&e.total_in),D(i,e.total_in>>8&255),D(i,e.total_in>>16&255),D(i,e.total_in>>24&255)):(O(i,e.adler>>>16),O(i,65535&e.adler)),N(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==k&&69!==t&&73!==t&&91!==t&&103!==t&&t!==C&&666!==t?B(e,d):(e.state=null,t===C?B(e,-3):h):d},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,u,c,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==k||n.lookahead)return d;for(1===s&&(e.adler=o(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(n);n.lookahead>=w;){for(r=n.strstart,a=n.lookahead-(w-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+w-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=w-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=w-1,n.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,n){t.exports=function(e,t){var n,r,i,a,o,s,l,u,c,h,d,f,p,v,m,g,y,b,A,S,x,w,_,E,k;n=e.state,r=e.next_in,E=e.input,i=r+(e.avail_in-5),a=e.next_out,k=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,v=n.lencode,m=n.distcode,g=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(f+=E[r++]<<p,p+=8,f+=E[r++]<<p,p+=8),b=v[f&g];t:for(;;){if(f>>>=A=b>>>24,p-=A,0==(A=b>>>16&255))k[a++]=65535&b;else{if(!(16&A)){if(0==(64&A)){b=v[(65535&b)+(f&(1<<A)-1)];continue t}if(32&A){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}S=65535&b,(A&=15)&&(p<A&&(f+=E[r++]<<p,p+=8),S+=f&(1<<A)-1,f>>>=A,p-=A),p<15&&(f+=E[r++]<<p,p+=8,f+=E[r++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=A=b>>>24,p-=A,!(16&(A=b>>>16&255))){if(0==(64&A)){b=m[(65535&b)+(f&(1<<A)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&b,p<(A&=15)&&(f+=E[r++]<<p,(p+=8)<A&&(f+=E[r++]<<p,p+=8)),l<(x+=f&(1<<A)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=A,p-=A,(A=a-o)<x){if(c<(A=x-A)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=d,(w=0)===h){if(w+=u-A,A<S){for(S-=A;k[a++]=d[w++],--A;);w=a-x,_=k}}else if(h<A){if(w+=u+h-A,(A-=h)<S){for(S-=A;k[a++]=d[w++],--A;);if(w=0,h<S){for(S-=A=h;k[a++]=d[w++],--A;);w=a-x,_=k}}}else if(w+=h-A,A<S){for(S-=A;k[a++]=d[w++],--A;);w=a-x,_=k}for(;2<S;)k[a++]=_[w++],k[a++]=_[w++],k[a++]=_[w++],S-=3;S&&(k[a++]=_[w++],1<S&&(k[a++]=_[w++]))}else{for(w=a-x;k[a++]=k[w++],k[a++]=k[w++],k[a++]=k[w++],2<(S-=3););S&&(k[a++]=k[w++],1<S&&(k[a++]=k[w++]))}break}}break}}while(r<i&&a<s);r-=S=p>>3,f&=(1<<(p-=S<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){var r=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,u=2,c=0,h=-2,d=1,f=852,p=592;function v(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(f),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,c):h}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):h}function b(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?h:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):h}function A(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=b(e,t))!==c&&(e.state=null),n):h}var S,x,w=!0;function _(e){if(w){var t;for(S=new r.Buf32(512),x=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,S,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,x,0,e.work,{bits:5}),w=!1}e.lencode=S,e.lenbits=9,e.distcode=x,e.distbits=5}function E(e,t,n,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=g,n.inflateInit=function(e){return A(e,15)},n.inflateInit2=A,n.inflate=function(e,t){var n,f,p,m,g,y,b,A,S,x,w,k,C,M,P,I,T,B,R,L,N,F,D,O,V=0,z=new r.Buf8(4),G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return h;12===(n=e.state).mode&&(n.mode=13),g=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,f=e.input,y=e.avail_in,A=n.hold,S=n.bits,x=y,w=b,F=c;e:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;S<16;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(2&n.wrap&&35615===A){z[n.check=0]=255&A,z[1]=A>>>8&255,n.check=a(n.check,z,2,0),S=A=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&A)<<8)+(A>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&A)){e.msg="unknown compression method",n.mode=30;break}if(S-=4,N=8+(15&(A>>>=4)),0===n.wbits)n.wbits=N;else if(N>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<N,e.adler=n.check=1,n.mode=512&A?10:12,S=A=0;break;case 2:for(;S<16;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(n.flags=A,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=A>>8&1),512&n.flags&&(z[0]=255&A,z[1]=A>>>8&255,n.check=a(n.check,z,2,0)),S=A=0,n.mode=3;case 3:for(;S<32;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.head&&(n.head.time=A),512&n.flags&&(z[0]=255&A,z[1]=A>>>8&255,z[2]=A>>>16&255,z[3]=A>>>24&255,n.check=a(n.check,z,4,0)),S=A=0,n.mode=4;case 4:for(;S<16;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.head&&(n.head.xflags=255&A,n.head.os=A>>8),512&n.flags&&(z[0]=255&A,z[1]=A>>>8&255,n.check=a(n.check,z,2,0)),S=A=0,n.mode=5;case 5:if(1024&n.flags){for(;S<16;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.length=A,n.head&&(n.head.extra_len=A),512&n.flags&&(z[0]=255&A,z[1]=A>>>8&255,n.check=a(n.check,z,2,0)),S=A=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(k=n.length)&&(k=y),k&&(n.head&&(N=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,m,k,N)),512&n.flags&&(n.check=a(n.check,f,k,m)),y-=k,m+=k,n.length-=k),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(k=0;N=f[m+k++],n.head&&N&&n.length<65536&&(n.head.name+=String.fromCharCode(N)),N&&k<y;);if(512&n.flags&&(n.check=a(n.check,f,k,m)),y-=k,m+=k,N)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break e;for(k=0;N=f[m+k++],n.head&&N&&n.length<65536&&(n.head.comment+=String.fromCharCode(N)),N&&k<y;);if(512&n.flags&&(n.check=a(n.check,f,k,m)),y-=k,m+=k,N)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;S<16;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(A!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}S=A=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;S<32;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}e.adler=n.check=v(A),S=A=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=A,n.bits=S,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){A>>>=7&S,S-=7&S,n.mode=27;break}for(;S<3;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}switch(n.last=1&A,S-=1,3&(A>>>=1)){case 0:n.mode=14;break;case 1:if(_(n),n.mode=20,6!==t)break;A>>>=2,S-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}A>>>=2,S-=2;break;case 14:for(A>>>=7&S,S-=7&S;S<32;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if((65535&A)!=(A>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&A,S=A=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(k=n.length){if(y<k&&(k=y),b<k&&(k=b),0===k)break e;r.arraySet(p,f,m,k,g),y-=k,m+=k,b-=k,g+=k,n.length-=k;break}n.mode=12;break;case 17:for(;S<14;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(n.nlen=257+(31&A),A>>>=5,S-=5,n.ndist=1+(31&A),A>>>=5,S-=5,n.ncode=4+(15&A),A>>>=4,S-=4,286<n.nlen||30<n.ndist){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;S<3;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.lens[G[n.have++]]=7&A,A>>>=3,S-=3}for(;n.have<19;)n.lens[G[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},F=s(0,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,F){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(V=n.lencode[A&(1<<n.lenbits)-1])>>>16&255,T=65535&V,!((P=V>>>24)<=S);){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(T<16)A>>>=P,S-=P,n.lens[n.have++]=T;else{if(16===T){for(O=P+2;S<O;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(A>>>=P,S-=P,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}N=n.lens[n.have-1],k=3+(3&A),A>>>=2,S-=2}else if(17===T){for(O=P+3;S<O;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}S-=P,N=0,k=3+(7&(A>>>=P)),A>>>=3,S-=3}else{for(O=P+7;S<O;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}S-=P,N=0,k=11+(127&(A>>>=P)),A>>>=7,S-=7}if(n.have+k>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;k--;)n.lens[n.have++]=N}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,D={bits:n.lenbits},F=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,F){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},F=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,F){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=y&&258<=b){e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=A,n.bits=S,o(e,w),g=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,f=e.input,y=e.avail_in,A=n.hold,S=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(V=n.lencode[A&(1<<n.lenbits)-1])>>>16&255,T=65535&V,!((P=V>>>24)<=S);){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(I&&0==(240&I)){for(B=P,R=I,L=T;I=(V=n.lencode[L+((A&(1<<B+R)-1)>>B)])>>>16&255,T=65535&V,!(B+(P=V>>>24)<=S);){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}A>>>=B,S-=B,n.back+=B}if(A>>>=P,S-=P,n.back+=P,n.length=T,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(O=n.extra;S<O;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.length+=A&(1<<n.extra)-1,A>>>=n.extra,S-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(V=n.distcode[A&(1<<n.distbits)-1])>>>16&255,T=65535&V,!((P=V>>>24)<=S);){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(0==(240&I)){for(B=P,R=I,L=T;I=(V=n.distcode[L+((A&(1<<B+R)-1)>>B)])>>>16&255,T=65535&V,!(B+(P=V>>>24)<=S);){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}A>>>=B,S-=B,n.back+=B}if(A>>>=P,S-=P,n.back+=P,64&I){e.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(O=n.extra;S<O;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}n.offset+=A&(1<<n.extra)-1,A>>>=n.extra,S-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break e;if(k=w-b,n.offset>k){if((k=n.offset-k)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}C=k>n.wnext?(k-=n.wnext,n.wsize-k):n.wnext-k,k>n.length&&(k=n.length),M=n.window}else M=p,C=g-n.offset,k=n.length;for(b<k&&(k=b),b-=k,n.length-=k;p[g++]=M[C++],--k;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[g++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;S<32;){if(0===y)break e;y--,A|=f[m++]<<S,S+=8}if(w-=b,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?a(n.check,p,w,g-w):i(n.check,p,w,g-w)),w=b,(n.flags?A:v(A))!==n.check){e.msg="incorrect data check",n.mode=30;break}S=A=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;S<32;){if(0===y)break e;y--,A+=f[m++]<<S,S+=8}if(A!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}S=A=0}n.mode=29;case 29:F=1;break e;case 30:F=-3;break e;case 31:return-4;default:return h}return e.next_out=g,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=A,n.bits=S,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&E(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,w-=e.avail_out,e.total_in+=x,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?a(n.check,p,w,e.next_out-w):i(n.check,p,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==x&&0===w||4===t)&&F===c&&(F=-5),F)},n.inflateEnd=function(e){if(!e||!e.state)return h;var t=e.state;return t.window&&(t.window=null),e.state=null,c},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?h:((n.head=t).done=!1,c):h},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,t,r,0)!==n.check?-3:E(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,c):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,n,l,u,c,h,d){var f,p,v,m,g,y,b,A,S,x=d.bits,w=0,_=0,E=0,k=0,C=0,M=0,P=0,I=0,T=0,B=0,R=null,L=0,N=new r.Buf16(16),F=new r.Buf16(16),D=null,O=0;for(w=0;w<=15;w++)N[w]=0;for(_=0;_<l;_++)N[t[n+_]]++;for(C=x,k=15;1<=k&&0===N[k];k--);if(k<C&&(C=k),0===k)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(E=1;E<k&&0===N[E];E++);for(C<E&&(C=E),w=I=1;w<=15;w++)if(I<<=1,(I-=N[w])<0)return-1;if(0<I&&(0===e||1!==k))return-1;for(F[1]=0,w=1;w<15;w++)F[w+1]=F[w]+N[w];for(_=0;_<l;_++)0!==t[n+_]&&(h[F[t[n+_]]++]=_);if(y=0===e?(R=D=h,19):1===e?(R=i,L-=257,D=a,O-=257,256):(R=o,D=s,-1),w=E,g=c,P=_=B=0,v=-1,m=(T=1<<(M=C))-1,1===e&&852<T||2===e&&592<T)return 1;for(;;){for(b=w-P,S=h[_]<y?(A=0,h[_]):h[_]>y?(A=D[O+h[_]],R[L+h[_]]):(A=96,0),f=1<<w-P,E=p=1<<M;u[g+(B>>P)+(p-=f)]=b<<24|A<<16|S|0,0!==p;);for(f=1<<w-1;B&f;)f>>=1;if(0!==f?(B&=f-1,B+=f):B=0,_++,0==--N[w]){if(w===k)break;w=t[n+h[_]]}if(C<w&&(B&m)!==v){for(0===P&&(P=C),g+=E,I=1<<(M=w-P);M+P<k&&!((I-=N[M+P])<=0);)M++,I<<=1;if(T+=1<<M,1===e&&852<T||2===e&&592<T)return 1;u[v=B&m]=C<<24|M<<16|g-c|0}}return 0!==B&&(u[g+B]=w-P<<24|64<<16|0),d.bits=C,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,n){var r=e("../utils/common"),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,u=256,c=u+1+l,h=30,d=19,f=2*c+1,p=15,v=16,m=7,g=256,y=16,b=17,A=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(c+2));o(E);var k=new Array(2*h);o(k);var C=new Array(512);o(C);var M=new Array(256);o(M);var P=new Array(l);o(P);var I,T,B,R=new Array(h);function L(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function N(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function F(e){return e<256?C[e]:C[256+(e>>>7)]}function D(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function O(e,t,n){e.bi_valid>v-n?(e.bi_buf|=t<<e.bi_valid&65535,D(e,e.bi_buf),e.bi_buf=t>>v-e.bi_valid,e.bi_valid+=n-v):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function V(e,t,n){O(e,n[2*t],n[2*t+1])}function z(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function G(e,t,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=z(a[s]++,s))}}function H(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*g]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function U(e){8<e.bi_valid?D(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function j(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function Q(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&j(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!j(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function Y(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?V(e,i,t):(V(e,(a=M[i])+u+1,t),0!==(o=S[a])&&O(e,i-=P[a],o),V(e,a=F(--r),n),0!==(o=x[a])&&O(e,r-=R[a],o)),s<e.last_lit;);V(e,g,t)}function W(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)Q(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,Q(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(a=0;a<=p;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)m<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=m,g++),l[2*r+1]=a,u<r||(e.bl_count[a]++,o=0,v<=r&&(o=d[r-v]),s=l[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==g){do{for(a=m-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(a=m;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),G(a,u,e.bl_count)}function X(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*A]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function K(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<u)for(;V(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(V(e,i,e.bl_tree),s--),V(e,y,e.bl_tree),O(e,s-3,2)):s<=10?(V(e,b,e.bl_tree),O(e,s-3,3)):(V(e,A,e.bl_tree),O(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}o(R);var J=!1;function $(e,t,n,i){O(e,(s<<1)+(i?1:0),3),function(e,t,n,i){U(e),i&&(D(e,n),D(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){J||(function(){var e,t,n,r,i,a=new Array(p+1);for(r=n=0;r<l-1;r++)for(P[r]=n,e=0;e<1<<S[r];e++)M[n++]=r;for(M[n-1]=r,r=i=0;r<16;r++)for(R[r]=i,e=0;e<1<<x[r];e++)C[i++]=r;for(i>>=7;r<h;r++)for(R[r]=i<<7,e=0;e<1<<x[r]-7;e++)C[256+i++]=r;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)E[2*e+1]=8,e++,a[8]++;for(;e<=255;)E[2*e+1]=9,e++,a[9]++;for(;e<=279;)E[2*e+1]=7,e++,a[7]++;for(;e<=287;)E[2*e+1]=8,e++,a[8]++;for(G(E,c+1,a),e=0;e<h;e++)k[2*e+1]=5,k[2*e]=z(e,5);I=new L(E,S,u+1,c,p),T=new L(k,x,0,h,p),B=new L(new Array(0),w,0,d,m)}(),J=!0),e.l_desc=new N(e.dyn_ltree,I),e.d_desc=new N(e.dyn_dtree,T),e.bl_desc=new N(e.bl_tree,B),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=$,n._tr_flush_block=function(e,t,n,r){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return a;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return a;return i}(e)),W(e,e.l_desc),W(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),W(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*_[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==t?$(e,t,n,r):4===e.strategy||s===o?(O(e,2+(r?1:0),3),Y(e,E,k)):(O(e,4+(r?1:0),3),function(e,t,n,r){var i;for(O(e,t-257,5),O(e,n-1,5),O(e,r-4,4),i=0;i<r;i++)O(e,e.bl_tree[2*_[i]+1],3);K(e,e.dyn_ltree,t-1),K(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),Y(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&U(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(M[n]+u+1)]++,e.dyn_dtree[2*F(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){O(e,2,3),V(e,g,E),function(e){16===e.bi_valid?(D(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,n){t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}(jszip_min);var MXLHelper=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"MXLtoIXmlElement",value:function(e){var t=new jszip_minExports;return t.loadAsync(e).then((function(e){return t.file("META-INF/container.xml").async("text")}),(function(e){throw e})).then((function(e){var n=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("rootfile")[0].getAttribute("full-path");return t.file(n).async("text")}),(function(e){throw e})).then((function(e){var t=(new DOMParser).parseFromString(e,"text/xml"),n=new IXmlElement(t.documentElement);return Promise.resolve(n)}),(function(e){throw e})).then((function(e){return e}),(function(e){throw new Error("extractSheetFromMxl: "+e.message)}))}},{key:"MXLtoXMLstring",value:function(e){var t=new jszip_minExports;return t.loadAsync(e).then((function(e){return t.file("META-INF/container.xml").async("text")}),(function(e){throw loglevelExports.error(e),e})).then((function(e){var n=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("rootfile")[0].getAttribute("full-path");return t.file(n).async("text")}),(function(e){throw e}))}}]),e}(),PlaybackNoteGenerator=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"calculate",value:function(e){for(var t=new MusicPartManagerIterator(e);!t.EndReached;){var n,r=t.CurrentEnrolledTimestamp,i=_createForOfIteratorHelper(t.CurrentAudibleVoiceEntries());try{for(i.s();!(n=i.n()).done;){var a=n.value;this.handleVoiceEntry(e,a,r)}}catch(err){i.e(err)}finally{i.f()}t.moveToNext()}}},{key:"handleVoiceEntry",value:function(t,n,r){if(!n.IsGrace){var i,a=n.ParentVoice;t.PlaybackDataDict.containsKey(a)?i=t.PlaybackDataDict.getValue(a):(i=[],t.PlaybackDataDict.setValue(a,i));var o,s=_createForOfIteratorHelper(n.PlaybackEntries);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.HasNotes){var u,c=_createForOfIteratorHelper(l.Notes);try{for(c.s();!(u=c.n()).done;){u.value.setLength()}}catch(err){c.e(err)}finally{c.f()}var h=Fraction$1.plus(r,l.TimestampShift);e.addEntrySorted(i,l,h)}}}catch(err){s.e(err)}finally{s.f()}}}}],[{key:"addEntrySorted",value:function(e,t,n){if(0===e.length)e.push({enrolledTimestamp:n,playbackEntry:t});else for(var r=e.length-1;r>=0;r--){var i=e[r];if(n.RealValue>i.enrolledTimestamp.RealValue){if(r===e.length-1){e.push({enrolledTimestamp:n,playbackEntry:t});break}e.splice(r+1,0,{enrolledTimestamp:n,playbackEntry:t});break}}}}]),e}(),ScreenViewingRegion=function(){function e(t,n,r,i){_classCallCheck2(this,e),this.psi=new BoundingBox$1(void 0),this.displaySizeInPixel=t,this.RelativeDisplaySize=n,this.RelativeDisplayPosition=r,this.WidthInUnits=i}return _createClass2(e,[{key:"UpperLeftPositionInUnits",get:function(){return this.psi.AbsolutePosition},set:function(e){this.psi.AbsolutePosition=e}},{key:"DisplaySizeInPixel",get:function(){return this.displaySizeInPixel},set:function(e){this.displaySizeInPixel=e,this.regionSizeInPixel=new SizeF2D(this.displaySizeInPixel.width*this.relativeRegionSize.width,this.displaySizeInPixel.height*this.relativeRegionSize.height),this.recalculateDependentVariables()}},{key:"RelativeDisplaySize",get:function(){return this.relativeRegionSize},set:function(e){this.relativeRegionSize=e,this.regionSizeInPixel=new SizeF2D(this.displaySizeInPixel.width*this.relativeRegionSize.width,this.displaySizeInPixel.height*this.relativeRegionSize.height),this.recalculateDependentVariables()}},{key:"RegionSizeInPixel",get:function(){return this.regionSizeInPixel}},{key:"WidthInUnits",get:function(){return this.psi.BorderRight},set:function(e){this.psi.BorderRight=e,this.recalculateDependentVariables()}},{key:"ViewRegionInUnits",get:function(){return new SizeF2D(this.psi.BorderRight,this.psi.BorderBottom)}},{key:"isVisible",value:function(e,t){var n=this.psi.collisionDetection(e);return this.psi.liesInsideBorders(e),n}},{key:"isInsideDisplayArea",value:function(e,t){return this.RelativeDisplayPosition.x<=e&&e<=this.RelativeDisplayPosition.x+this.RelativeDisplaySize.width&&this.RelativeDisplayPosition.y<=t&&t<=this.RelativeDisplayPosition.y+this.RelativeDisplaySize.height}},{key:"transformToUnitCoordinates",value:function(e){return new PointF2D(this.UpperLeftPositionInUnits.x+this.ViewRegionInUnits.width*((e.x-this.RelativeDisplayPosition.x)/this.RelativeDisplaySize.width),this.UpperLeftPositionInUnits.y+this.ViewRegionInUnits.height*((e.y-this.RelativeDisplayPosition.y)/this.RelativeDisplaySize.height))}},{key:"transformLengthXToUnitCoordinates",value:function(e){return e/this.horizontalUnitToPixelRatio}},{key:"transformLengthYToUnitCoordinates",value:function(e){return e/this.verticalUnitToPixelRatio}},{key:"recalculateDependentVariables",value:function(){var e=this.regionSizeInPixel.width/this.regionSizeInPixel.height;this.psi.BorderBottom=this.psi.BorderRight/e,this.horizontalUnitToPixelRatio=this.regionSizeInPixel.width/this.ViewRegionInUnits.width,this.verticalUnitToPixelRatio=this.regionSizeInPixel.height/this.ViewRegionInUnits.height}}],[{key:"createWithRelativeDefaults",value:function(t,n){return new e(t,new SizeF2D(1,1),new PointF2D(0,0),n)}},{key:"createWithDefaults",value:function(){return new e(new SizeF2D(1,1),new SizeF2D(1,1),new PointF2D(0,0),1)}}]),e}(),AbstractZoomView=function(){function e(t){_classCallCheck2(this,e),this.aspectRatio=1,this.zoomViews=[],this.mouseZoomMode=!1,this.autoScrollY=!0,this.displayInteractionManager=t,this.displayInteractionManager.addListener(this),this.offsetXMin=Number.MIN_VALUE,this.offsetYMin=Number.MIN_VALUE,this.rangeXMin=1,this.rangeYMin=1,this.offsetXMax=Number.MAX_VALUE,this.offsetYMax=Number.MAX_VALUE,this.rangeXMax=1e9,this.rangeYMax=1e9,this.XScrollingEnabled=!1,this.YScrollingEnabled=!0}return _createClass2(e,[{key:"positionTouched",value:function(e,t){if(this.convertToUnitsReady()){var n=this.getPositionInUnits(e,t);this.unitPosTouched(n,e,t)}}},{key:"TouchActive",get:function(){return this.displayInteractionManager.TouchActive}},{key:"TouchMoving",get:function(){return this.displayInteractionManager.TouchMoving}},{key:"positionDoubleTouched",value:function(e,t){if(this.convertToUnitsReady()){var n=this.getPositionInUnits(e,t);this.unitPosDoubleTouched(n,e,t)}}},{key:"UsesManuallyControlledZoomMode",get:function(){return this.usesManuallyControlledZoomMode},set:function(e){this.usesManuallyControlledZoomMode=e}},{key:"mouseDown",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.convertToUnitsReady()){this.selectScrollControllerY(!1),this.lastRangeX=Math.max(1,this.RangeX),this.lastRangeY=Math.max(1,this.RangeY),this.lastOffsetX=this.OffsetX,this.lastOffsetY=this.OffsetY;var r=this.getPositionInUnits(e,t);this.unitPosTouchDown(r,e,t),this.usesManuallyControlledZoomMode||(this.mouseZoomMode=!!n)}}},{key:"mouseUp",value:function(e,t){var n=this.getPositionInUnits(e,t);this.unitPosTouchUp(n,e,t)}},{key:"mouseMove",value:function(e,t,n,r){this.mouseZoomMode?(Math.abs(n-0)>1e-8&&(this.RangeX=Math.abs(this.lastRangeX/(1+n))),!this.lockRanges&&Math.abs(r-0)>1e-8&&(this.RangeY=Math.abs(this.lastRangeY/(1-r)))):(Math.abs(n-0)>1e-8&&(this.OffsetX=this.lastOffsetX-n*this.RangeX),Math.abs(r-0)>1e-8&&(this.OffsetY=this.lastOffsetY-r*this.RangeY));var i=this.getPositionInUnits(e,t);this.unitPosMove(i,e,t)}},{key:"zoom",value:function(e){this.RangeX=Math.abs(this.lastRangeX/e)}},{key:"addZoomView",value:function(e){this.zoomViews.push(e)}},{key:"OffsetX",get:function(){return this.offsetX},set:function(e){this.offsetX=Math.min(this.offsetXMax,Math.max(this.offsetXMin,e));var t,n=_createForOfIteratorHelper(this.zoomViews);try{for(n.s();!(t=n.n()).done;){t.value.viewportXChanged(this.offsetX,this.RangeX)}}catch(err){n.e(err)}finally{n.f()}}},{key:"OffsetY",get:function(){return this.offsetY},set:function(e){this.offsetY=e,this.offsetY>this.offsetYMax?this.offsetY=this.offsetYMax:this.offsetY<this.offsetYMin&&(this.offsetY=this.offsetYMin);var t,n=_createForOfIteratorHelper(this.zoomViews);try{for(n.s();!(t=n.n()).done;){t.value.viewportYChanged(this.offsetY,this.RangeY)}}catch(err){n.e(err)}finally{n.f()}}},{key:"RangeX",get:function(){return this.rangeX},set:function(e){if(this.rangeX=Math.min(this.rangeXMax,Math.max(this.rangeXMin,e)),this.lockRanges){this.RangeY=this.RangeX/this.aspectRatio;var t,n=_createForOfIteratorHelper(this.zoomViews);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.viewportXChanged(this.OffsetX,this.RangeX),r.viewportYChanged(this.OffsetY,this.RangeY)}}catch(err){n.e(err)}finally{n.f()}}else{var i,a=_createForOfIteratorHelper(this.zoomViews);try{for(a.s();!(i=a.n()).done;){i.value.viewportXChanged(this.OffsetX,this.RangeX)}}catch(err){a.e(err)}finally{a.f()}}}},{key:"RangeY",get:function(){return this.rangeY},set:function(e){this.rangeY=Math.min(this.rangeYMax,Math.max(this.rangeYMin,e));var t,n=_createForOfIteratorHelper(this.zoomViews);try{for(n.s();!(t=n.n()).done;){t.value.viewportYChanged(this.OffsetY,this.RangeY)}}catch(err){n.e(err)}finally{n.f()}}},{key:"AspectRatio",set:function(e){this.aspectRatio=e}},{key:"initialize",value:function(e,t,n,r){this.setVerticalViewport(n,r),this.setHorizontalViewport(e,t)}},{key:"setHorizontalViewport",value:function(e,t){this.RangeX=t,this.OffsetX=e,this.lastRangeX=this.RangeX,this.lastOffsetX=this.OffsetX}},{key:"setVerticalViewport",value:function(e,t){this.RangeY=t,this.OffsetY=e,this.lastRangeY=this.RangeY,this.lastOffsetY=this.OffsetY}},{key:"viewSizeChanged",value:function(e,t){this.lockRanges&&(this.aspectRatio=e/t,this.RangeY=this.RangeX/this.aspectRatio,this.lastRangeY=this.RangeY)}},{key:"outputChanged",value:function(e,t,n){this.OffsetY=t}},{key:"setOffsetXValueOnly",value:function(e){this.offsetX=Math.min(this.offsetXMax,Math.max(this.offsetXMin,e))}},{key:"setXOffset",value:function(e,t){!this.displayInteractionManager.TouchActive&&this.XScrollingEnabled}},{key:"setOffsetYValueOnly",value:function(e){this.offsetY=Math.min(this.offsetYMax,Math.max(this.offsetYMin,e))}},{key:"setYOffset",value:function(e,t){!this.displayInteractionManager.TouchActive&&this.YScrollingEnabled&&t&&this.selectScrollControllerY(!0)}},{key:"selectScrollControllerY",value:function(e){this.autoScrollY!==e&&(this.autoScrollY=e)}},{key:"displaySizeChanged",value:function(e,t){throw new Error("Method not implemented.")}}]),e}(),InteractionType=function(e){return e[e.SingleTouch=0]="SingleTouch",e[e.DoubleTouch=1]="DoubleTouch",e[e.TouchUp=2]="TouchUp",e[e.TouchDown=3]="TouchDown",e[e.Move=4]="Move",e}(InteractionType||{}),VoiceEntryInteractionListener=function(){function e(t){_classCallCheck2(this,e),this.renderingManager=t}return _createClass2(e,[{key:"userDisplayInteraction",value:function(e,t,n){switch(n){case InteractionType.TouchDown:case InteractionType.SingleTouch:case InteractionType.DoubleTouch:var r,i,a=this.renderingManager.GraphicalMusicSheet.GetNearestVoiceEntry(t);if(a)if(void 0!==a.parentStaffEntry.parentVerticalContainer)if(void 0!==(null===(r=a.notes[0])||void 0===r?void 0:r.sourceNote.Pitch))null===(i=this.renderingManager.PlaybackManager)||void 0===i||i.playVoiceEntry(a.parentVoiceEntry)}}}]),e}(),SheetRenderingManager=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e,r){var i;return _classCallCheck2(this,n),(i=t.call(this,e)).mainViewingRegion=ScreenViewingRegion.createWithDefaults(),i.tryAgainToRenderCount=0,i.yOffsetMouseDown=Number.MIN_VALUE,i.unlockCursorDistancePixel=50,i.relativeTopPosition=.06,i.internalPreviewImageScale=3,i.listeners=[],i.LockDisplayToCursor=!0,i.ZoomActive=!1,i.rules=r,i.addZoomView(_assertThisInitialized2(i)),i.lockRanges=!0,i.TopBarHeightInPixel=70,i.BottomBarHeightInPixel=0,i.rules.UseDefaultVoiceInteractionListener&&i.listeners.push(new VoiceEntryInteractionListener(_assertThisInitialized2(i))),i}return _createClass2(n,[{key:"addListener",value:function(e){this.listeners.push(e)}},{key:"Listeners",get:function(){return this.listeners}},{key:"convertToUnitsReady",value:function(){return void 0!==this.graphicalMusicSheet}},{key:"unitPosTouched",value:function(e,t,n){if(!this.SingleTouchDisabled){var r=new PointF2D(t,n);this.handleUserDisplayInteraction(r,e,InteractionType.SingleTouch)}}},{key:"unitPosDoubleTouched",value:function(e,t,n){if(!this.DoubleTouchDisabled){var r=new PointF2D(t,n);this.handleUserDisplayInteraction(r,e,InteractionType.DoubleTouch)}}},{key:"unitPosTouchDown",value:function(e,t,n){var r=new PointF2D(t,n);this.handleUserDisplayInteraction(r,e,InteractionType.TouchDown),this.yOffsetMouseDown=e.y}},{key:"unitPosTouchUp",value:function(e,t,n){var r=new PointF2D(t,n);this.handleUserDisplayInteraction(r,e,InteractionType.TouchUp),!1===this.displayInteractionManager.WasZoomGestureActive&&this.unlockFromCursorIfNecessary(e),this.yOffsetMouseDown=Number.MIN_VALUE}},{key:"unitPosMove",value:function(e,t,n){var r=new PointF2D(t,n);this.handleUserDisplayInteraction(r,e,InteractionType.Move),this.unlockFromCursorIfNecessary(e)}},{key:"MainViewingRegion",get:function(){return this.mainViewingRegion}},{key:"setMusicSheet",value:function(e){this.graphicalMusicSheet=e,this.adaptDisplayLimitsToSheet(),this.setYOffset(0,!0)}},{key:"viewportXChanged",value:function(e,t){void 0!==this.graphicalMusicSheet&&this.horizontalViewportChanged(e,t)}},{key:"viewportYChanged",value:function(e,t){void 0!==this.graphicalMusicSheet&&(this.yOffsetMouseDown<=Number.MIN_VALUE+.5&&(this.yOffsetMouseDown=e),this.verticalViewportChanged(e,t))}},{key:"displaySizeChanged",value:function(e,t){_get(_getPrototypeOf2(n.prototype),"viewSizeChanged",this).call(this,e,t),Math.abs(e-0)<1e-7||Math.abs(t-0)<1e-7||(void 0!==this.graphicalMusicSheet&&this.graphicalMusicSheet.EnforceRedrawOfMusicSystems(),this.mainViewingRegion.DisplaySizeInPixel=new SizeF2D(e,t),this.adaptDisplayLimitsToSheet())}},{key:"calcDisplayYPosition",value:function(e){return e.PositionAndShape.AbsolutePosition.y+e.PositionAndShape.BorderMarginTop-this.topBarHeightInUnits()-this.relativeTopPosition*this.heightWithoutTopBottomBarsInUnits()}},{key:"yPositionForLastSystem",value:function(e){return e.PositionAndShape.AbsolutePosition.y+e.PositionAndShape.BorderMarginBottom-this.topBarHeightInUnits()-(1-this.relativeTopPosition)*this.heightWithoutTopBottomBarsInUnits()}},{key:"scorePositionChanged",value:function(e,t,n,r,i,a){var o=this.calcDisplayYPosition(r);this.setYPosition(o,a)}},{key:"setXPosition",value:function(e,t){this.LockDisplayToCursor&&this.setXOffset(e,t)}},{key:"setYPosition",value:function(e,t){this.LockDisplayToCursor&&this.setYOffset(e,t)}},{key:"DrawingParameters",get:function(){return this.musicSheetDrawer.drawingParameters}},{key:"topBarHeightInUnits",value:function(){return this.mainViewingRegion.transformLengthYToUnitCoordinates(this.TopBarHeightInPixel)}},{key:"bottomBarHeightInUnits",value:function(){return this.mainViewingRegion.transformLengthYToUnitCoordinates(this.BottomBarHeightInPixel)}},{key:"heightWithoutTopBottomBarsInUnits",value:function(){return this.mainViewingRegion.ViewRegionInUnits.height-this.topBarHeightInUnits()-this.bottomBarHeightInUnits()}},{key:"activePositionToBottomBarHeight",value:function(){return(this.mainViewingRegion.ViewRegionInUnits.height-this.topBarHeightInUnits()-this.bottomBarHeightInUnits())*(1-2*this.relativeTopPosition)}},{key:"getClickPosition",value:function(e,t){return this.mainViewingRegion.transformToUnitCoordinates(new PointF2D(e,t))}},{key:"graphicalObjectIsVisible",value:function(e){return this.mainViewingRegion.isVisible(e,!1)}},{key:"adaptDisplayLimitsToSheet",value:function(){if(void 0!==this.graphicalMusicSheet&&0!==this.graphicalMusicSheet.MusicPages.length&&0!==this.graphicalMusicSheet.MusicPages[0].MusicSystems.length){this.offsetXMin=0,this.rangeXMin=this.graphicalMusicSheet.MinAllowedSystemWidth,this.rangeXMax=300,this.offsetYMin=-.3*this.RangeY;var e=this.graphicalMusicSheet.MusicPages.last().PositionAndShape;this.offsetYMax=Math.max(0,e.BorderMarginBottom-.7*this.RangeY),this.OffsetY>this.offsetYMax&&this.setYOffset(this.offsetYMax,!0)}}},{key:"horizontalViewportChanged",value:function(e,t){this.mainViewingRegion.WidthInUnits!==t&&(this.mainViewingRegion.WidthInUnits=t)}},{key:"verticalViewportChanged",value:function(e,t){this.mainViewingRegion.UpperLeftPositionInUnits=new PointF2D(this.mainViewingRegion.UpperLeftPositionInUnits.x,e)}},{key:"unlockFromCursorIfNecessary",value:function(e){!1===this.LockDisplayToCursor||this.ZoomActive||(this.displayInteractionManager.ZoomGestureActive||this.displayInteractionManager.WasZoomGestureActive||Math.abs((e.y-this.yOffsetMouseDown)*this.mainViewingRegion.RegionSizeInPixel.height/this.mainViewingRegion.ViewRegionInUnits.height)>this.unlockCursorDistancePixel&&(this.LockDisplayToCursor=!1))}},{key:"getPositionInUnits",value:function(e,t){return this.mainViewingRegion.transformToUnitCoordinates(new PointF2D(e,t))}},{key:"handleUserDisplayInteraction",value:function(e,t,n){var r=this;switch(n){case InteractionType.TouchDown:case InteractionType.SingleTouch:case InteractionType.DoubleTouch:var i=this.graphicalMusicSheet.GetNearestVoiceEntry(t);if(i){var a=new CustomEvent("note-click",{detail:_objectSpread(_objectSpread({},i),{},{setAvtivePlay:function(){if(void 0!==i.parentStaffEntry.parentVerticalContainer){var e,t,n=i.parentStaffEntry.parentVerticalContainer.AbsoluteTimestamp;if(r.setStartPosition(n),void 0!==(null===(e=i.notes[0])||void 0===e?void 0:e.sourceNote.Pitch))console.log("playback clicked note",i.parentVoiceEntry),null===(t=r.PlaybackManager)||void 0===t||t.playVoiceEntry(i.parentVoiceEntry)}}})});window.dispatchEvent(a)}case InteractionType.TouchUp:case InteractionType.TouchDown:case InteractionType.Move:var o,s=_createForOfIteratorHelper(this.listeners);try{for(s.s();!(o=s.n()).done;){o.value.userDisplayInteraction(e,t,n)}}catch(err){s.e(err)}finally{s.f()}break;default:throw new Error("type")}}},{key:"setStartPosition",value:function(e){var t;void 0!==this.graphicalMusicSheet&&(this.graphicalMusicSheet.ParentMusicSheet.SelectionStart=e,null===(t=this.PlaybackManager)||void 0===t||t.reset())}},{key:"GraphicalMusicSheet",get:function(){return this.graphicalMusicSheet}}]),n}(AbstractZoomView),WebSheetRenderingManager=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(){return _classCallCheck2(this,n),t.apply(this,arguments)}return _createClass2(n,[{key:"mouseMove",value:function(e,t,n,r){var i=this.getPositionInUnits(e,t);this.unitPosMove(i,e,t)}}]),n}(SheetRenderingManager),AbstractDisplayInteractionManager=function(){function e(){_classCallCheck2(this,e),this.listeners=[],this.zoomGestureActive=!1,this.touchCount=0,this.touchActive=!1,this.touchMoving=!1,this.displayWidth=1,this.displayHeight=1,this.displayDpi=96,this.maxNumerOfFingers=2,this.movementThreshInch=.075,this.interactionWasZoomGesture=!1}return _createClass2(e,[{key:"addListener",value:function(e){this.listeners.push(e)}},{key:"ZoomGestureActive",get:function(){return this.zoomGestureActive}},{key:"WasZoomGestureActive",get:function(){return this.interactionWasZoomGesture}},{key:"displaySizeChanged",value:function(e,t){this.displayWidth=e,this.displayHeight=t;var n,r=_createForOfIteratorHelper(this.listeners);try{for(r.s();!(n=r.n()).done;){n.value.displaySizeChanged(this.displayWidth,this.displayHeight)}}catch(err){r.e(err)}finally{r.f()}}},{key:"Dispose",value:function(){this.dispose()}},{key:"Initialize",value:function(){this.initialize()}},{key:"DisplayDpi",get:function(){return this.displayDpi}},{key:"TouchActive",get:function(){return this.touchActive}},{key:"TouchMoving",get:function(){return this.touchMoving}},{key:"touchDown",value:function(e,t,n){this.interactionWasZoomGesture=!1;var r=e/this.displayWidth,i=t/this.displayHeight;this.lastRelPosX=r,this.lastRelPosY=i,this.lastPixelX=e,this.lastPixelY=t,this.touchActive=!0,this.touchMoving=!1,this.touchCount=Math.min(this.touchCount+1,this.maxNumerOfFingers);var a,o=_createForOfIteratorHelper(this.listeners);try{for(o.s();!(a=o.n()).done;){a.value.mouseDown(r,i,!n)}}catch(err){o.e(err)}finally{o.f()}}},{key:"move",value:function(e,t){if(this.touchActive&&!this.zoomGestureActive){var n=e/this.displayWidth,r=t/this.displayHeight,i=n-this.lastRelPosX,a=r-this.lastRelPosY;this.touchMoving=!0;var o,s=_createForOfIteratorHelper(this.listeners);try{for(s.s();!(o=s.n()).done;){o.value.mouseMove(n,r,i,a)}}catch(err){s.e(err)}finally{s.f()}}}},{key:"zoomGestureStarted",value:function(){this.zoomGestureActive=!0}},{key:"zoomGestureCompleted",value:function(){this.zoomGestureActive=!1,this.interactionWasZoomGesture=!0}},{key:"zoomGestureMove",value:function(e){this.zoomGestureActive&&this.listeners.forEach((function(t){t.zoom(e)}))}},{key:"touchUp",value:function(e,t){this.touchActive=!1,this.touchMoving=!1,this.touchCount=Math.max(0,this.touchCount-1);var n,r=e/this.displayWidth,i=t/this.displayHeight,a=_createForOfIteratorHelper(this.listeners);try{for(a.s();!(n=a.n()).done;){n.value.mouseUp(r,i)}}catch(err){a.e(err)}finally{a.f()}}},{key:"click",value:function(e,t){if(!this.mouseDidMove(this.lastPixelX,e,this.lastPixelY,t)&&!this.ZoomGestureActive){var n,r=e/this.displayWidth,i=t/this.displayHeight,a=_createForOfIteratorHelper(this.listeners);try{for(a.s();!(n=a.n()).done;){n.value.positionTouched(r,i)}}catch(err){a.e(err)}finally{a.f()}}}},{key:"doubleClick",value:function(e,t){if(!this.mouseDidMove(this.lastPixelX,e,this.lastPixelY,t)&&!this.ZoomGestureActive){var n,r=e/this.displayWidth,i=t/this.displayHeight,a=_createForOfIteratorHelper(this.listeners);try{for(a.s();!(n=a.n()).done;){n.value.positionDoubleTouched(r,i)}}catch(err){a.e(err)}finally{a.f()}}}},{key:"mouseDidMove",value:function(e,t,n,r){var i=Math.abs(e-t)/this.displayDpi,a=Math.abs(n-r)/this.displayDpi;return i>this.movementThreshInch||a>this.movementThreshInch}}]),e}(),WebDisplayInteractionManager=function(e){_inherits2(n,e);var t=_createSuper2(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this)).fullOffsetLeft=0,r.fullOffsetTop=0,r.fullScrollTop=0,r.fullScrollLeft=0,r.parentScrollMap=new Map,r.scrollCallbackMap=new Map,r.timeout=void 0,r.resizeObserver=void 0,r.EventCallbackMap=new Dictionary,r.DOUBLE_CLICK_WINDOW=200,r.lastClick=0,r.osmdSheetMusicContainer=e,r.listenForInteractions(),r}return _createClass2(n,[{key:"FullOffsetTop",get:function(){return this.fullOffsetTop}},{key:"FullScrollTop",get:function(){return this.fullScrollTop}},{key:"FullOffsetLeft",get:function(){return this.fullOffsetLeft}},{key:"FullScrollLeft",get:function(){return this.fullScrollLeft}},{key:"registerScrollOffsets",value:function(){var e=this.osmdSheetMusicContainer;this.fullScrollTop=0,this.fullScrollLeft=0;for(var t=this;e&&e!==document.documentElement;){if(this.parentScrollMap.set(e,[e.scrollTop,e.scrollLeft]),this.fullScrollLeft+=e.scrollLeft,this.fullScrollTop+=e.scrollTop,e.scrollHeight>e.clientHeight){var n=function(e){var n=t.parentScrollMap.get(this),r=n[0],i=n[1];t.fullScrollTop=t.fullScrollTop-r+this.scrollTop,t.fullScrollLeft=t.fullScrollLeft-i+this.scrollLeft,t.parentScrollMap.set(this,[this.scrollTop,this.scrollLeft])};this.scrollCallbackMap.set(e,n),e.addEventListener("scroll",n)}e=e.parentElement}}},{key:"deregisterScrollOffsets",value:function(){var e,t=_createForOfIteratorHelper(this.scrollCallbackMap.keys());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.removeEventListener("scroll",this.scrollCallbackMap.get(n))}}catch(err){t.e(err)}finally{t.f()}this.scrollCallbackMap.clear()}},{key:"initialize",value:function(){this.fullOffsetLeft=0,this.fullOffsetTop=0;var e=this.osmdSheetMusicContainer,t=[],r=this;for(window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){n.resizeCallback(e,r)})));e;)this.fullOffsetLeft+=e.offsetLeft,this.fullOffsetTop+=e.offsetTop,this.resizeObserver?this.resizeObserver.observe(e):t.push(e),e=e.offsetParent;if(this.resizeObserver)this.disposeResizeListener=function(){r.resizeObserver.disconnect(),r.resizeObserver=void 0};else{var i=function(){n.resizeCallback(t,r)};window.addEventListener("resize",i),this.disposeResizeListener=function(){window.removeEventListener("resize",i),i=void 0}}r.registerScrollOffsets()}},{key:"dispose",value:function(){this.disposeResizeListener();var e,t=_createForOfIteratorHelper(this.EventCallbackMap.keys());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=this.EventCallbackMap.getValue(n);r[0].removeEventListener(n,r[1])}}catch(err){t.e(err)}finally{t.f()}this.EventCallbackMap.clear(),this.deregisterScrollOffsets(),this.scrollCallbackMap.clear(),this.parentScrollMap.clear()}},{key:"isTouch",value:function(){if("ontouchstart"in window||window.DocumentTouch)return!0;if(!window.matchMedia)return!1;var e=["(",["-webkit-","-moz-","-o-","-ms-"].join("touch-enabled),("),"heartz",")"].join("");return window.matchMedia(e).matches}},{key:"downEventName",get:function(){return this.isTouch()?"touchstart":"mousedown"}},{key:"moveEventName",get:function(){return this.isTouch()?"touchmove":"mousemove"}},{key:"listenForInteractions",value:function(){var e=this.downEventListener.bind(this),t=this.touchEndEventListener.bind(this),n=this.moveEventListener.bind(this);this.osmdSheetMusicContainer.addEventListener("mousedown",e),this.osmdSheetMusicContainer.addEventListener("touchend",t),document.addEventListener(this.moveEventName,n),this.EventCallbackMap.setValue("mousedown",[this.osmdSheetMusicContainer,e]),this.EventCallbackMap.setValue("touchend",[this.osmdSheetMusicContainer,t]),this.EventCallbackMap.setValue(this.moveEventName,[document,n])}},{key:"downEventListener",value:function(e){var t=(new Date).getTime(),n=t-this.lastClick;clearTimeout(this.clickTimeout);var r=0,i=0;this.isTouch()&&e instanceof TouchEvent?(r=e.touches[0].pageX,i=e.touches[0].pageY):e instanceof MouseEvent&&(r=e.pageX,i=e.pageY);var a=this.getOffsetCoordinates(r,i);if(n<this.DOUBLE_CLICK_WINDOW&&n>0)this.doubleClick(a.x,a.y);else{var o=this;this.clickTimeout=setTimeout((function(){clearTimeout(this.clickTimeout),o.isTouch()?o.touchDown(a.x,a.y,void 0):o.click(a.x,a.y)}),this.DOUBLE_CLICK_WINDOW)}this.lastClick=t}},{key:"moveEventListener",value:function(e){var t=0,n=0;if(this.isTouch()&&e instanceof TouchEvent){var r,i,a=void 0;e.touches&&e.touches.length>0?a=e.touches[0]:e.changedTouches&&e.changedTouches.length>0&&(a=e.changedTouches[0]),t=null===(r=a)||void 0===r?void 0:r.clientX,n=null===(i=a)||void 0===i?void 0:i.clientY}else e instanceof MouseEvent&&(t=e.clientX,n=e.clientY);var o=this.getOffsetCoordinates(t,n);this.move(o.x,o.y)}},{key:"touchEndEventListener",value:function(e){var t,n,r=void 0;e.touches&&e.touches.length>0?r=e.touches[0]:e.changedTouches&&e.changedTouches.length>0&&(r=e.changedTouches[0]);var i=this.getOffsetCoordinates(null===(t=r)||void 0===t?void 0:t.pageX,null===(n=r)||void 0===n?void 0:n.pageY);this.touchUp(i.x,i.y)}},{key:"resizeEventListener",value:function(){this.displaySizeChanged(this.osmdSheetMusicContainer.clientWidth,this.osmdSheetMusicContainer.clientHeight)}},{key:"getOffsetCoordinates",value:function(e,t){var n=e-this.fullOffsetLeft+this.fullScrollLeft,r=t-this.fullOffsetTop+this.fullScrollTop;return new PointF2D(n,r)}}],[{key:"resizeCallback",value:function(e,t){clearTimeout(t.timeout),t.timeout=setTimeout((function(){t.fullOffsetLeft=0,t.fullOffsetTop=0;for(var e=t.osmdSheetMusicContainer;e;)t.fullOffsetLeft+=e.offsetLeft,t.fullOffsetTop+=e.offsetTop,e=e.offsetParent;t.resizeEventListener(),t.deregisterScrollOffsets(),t.registerScrollOffsets()}),500)}}]),n}(AbstractDisplayInteractionManager),DynamicsCalculator=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,[{key:"calculate",value:function(t){e.fillDynamicExpressions(t)}}],[{key:"fillDynamicsList",value:function(e,t,n){for(var r=0;r<t.StaffLinkedExpressions.length;r++)for(var i=0,a=t.StaffLinkedExpressions[r].length;i<a;++i){var o=t.StaffLinkedExpressions[r][i];if(void 0!==o.InstantaneousDynamic||void 0!==o.StartingContinuousDynamic){if(o.StaffNumber=r,void 0!==o.StartingContinuousDynamic&&o.StartingContinuousDynamic.isWedge()&&void 0!==o.StartingContinuousDynamic.EndMultiExpression){var s=o.AbsoluteTimestamp,l=o.StartingContinuousDynamic.EndMultiExpression.AbsoluteTimestamp;if(s.Equals(l))continue}if(void 0!==o.InstantaneousDynamic){n[r].push(new DynamicsContainer(o.InstantaneousDynamic,o.StaffNumber));var u=this.getOtherStaffIndexIfLinkedStavesAreDetected(e,r,o.InstantaneousDynamic.Placement);u>=0&&n[u].push(new DynamicsContainer(o.InstantaneousDynamic,u))}if(void 0!==o.StartingContinuousDynamic){n[r].push(new DynamicsContainer(o.StartingContinuousDynamic,o.StaffNumber));var c=this.getOtherStaffIndexIfLinkedStavesAreDetected(e,r,o.StartingContinuousDynamic.Placement);c>=0&&n[c].push(new DynamicsContainer(o.StartingContinuousDynamic,c))}}}}},{key:"getOtherStaffIndexIfLinkedStavesAreDetected",value:function(e,t,n){var r=e.getStaffFromIndex(t),i=r.ParentInstrument.Staves.indexOf(r),a=r.ParentInstrument.Staves.length;return a>1&&0===i&&n===PlacementEnum.Below?t+1:a>1&&1===i&&n===PlacementEnum.Above?t-1:-1}},{key:"fillDynamicExpressions",value:function(t){for(var n=t.DynListStaves,r=t.getCompleteNumberOfStaves(),i=t.TimestampSortedDynamicExpressionsList,a=0;a<r;a++)n.push([]);for(var o=0,s=t.SourceMeasures.length;o<s;++o){var l=t.SourceMeasures[o];e.fillDynamicsList(t,l,n)}for(var u=0;u<n.length;u++)for(var c=0,h=n[u].length;c<h;++c){var d=n[u][c];(void 0===d.instantaneousDynamicExpression||InstantaneousDynamicExpression.dynamicToRelativeVolumeDict.containsKey(d.instantaneousDynamicExpression.DynEnum))&&i.push(d)}i.sort(DynamicsContainer.Compare)}}]),e}(),_OpenSheetMusicDisplay=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:OSMDOptions.OSMDOptionsStandard(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new EngravingRules;if(_classCallCheck2(this,e),this.version="1.4.5-audio-extended",this.cursorsOptions=[],this.cursors=[],this.zoom=1,this.zoomUpdated=!1,this.loadUrlTimeout=5e3,this.rules=r,"string"==typeof t?this.container=document.getElementById(t):t&&"appendChild"in t&&(this.container=t),!this.container)throw new Error("Please pass a valid div container to OpenSheetMusicDisplay");void 0===n.autoResize&&(n.autoResize=!0),this.backendType=BackendType.SVG,this.setOptions(n),this.interactionManager=new WebDisplayInteractionManager(this.container),this.renderingManager=new WebSheetRenderingManager(this.interactionManager,this.rules)}return _createClass2(e,[{key:"cursor",get:function(){return this.cursors[0]}},{key:"RenderingManager",get:function(){return this.renderingManager}},{key:"PlaybackManager",get:function(){var e;return null===(e=this.renderingManager)||void 0===e?void 0:e.PlaybackManager},set:function(e){this.renderingManager&&(this.renderingManager.PlaybackManager=e)}},{key:"isUrl",value:function(e){return e.length<2083}},{key:"isMxl",value:function(e){return"PK"===e.substr(0,4)}},{key:"processMxl",value:function(e,t,n){var r=this;MXLHelper.MXLtoXMLstring(e).then((function(e){t(r.processStringXml(e))}),(function(e){loglevelExports.error(new Error("[OSMD] Invalid MXL file: "+e)),n(new Error("[OSMD] Invalid MXL file: "+e))}))}},{key:"processStringXml",value:function(e){var t=new DOMParser;if(""===e.substr(0,3))return loglevelExports.debug("[OSMD] UTF with BOM detected, truncate first three bytes and pass along: "+e),t.parseFromString(e.substr(3),"application/xml");if(e.substr(0,6).includes("<?xml")){var n=this.OnXMLRead(e);return loglevelExports.debug("[OSMD] Finally parsing XML content, length: "+n.length),t.parseFromString(n,"application/xml")}}},{key:"load",value:function(e,t){this.reset();var n=this;return new Promise((function(t,r){new Promise((function(t,r){if("string"==typeof e){var i=e.trim();if(n.isMxl(i))loglevelExports.debug("[OSMD] This is a zip file, unpack it first: "+i),n.processMxl(i,t,r);else{var a=n.processStringXml(i);if(a)t(a);else if(n.isUrl(i))AJAX.ajax(i).then((function(e){n.isMxl(e)?n.processMxl(e,t,r):t(n.processStringXml(e))}),(function(e){throw r(e),e}));else{var o=new Error("[OSMD] osmd.load(string): Could not process string. Did not find <?xml at beginning.");console.error(o.message),r(o)}}}else if(e instanceof Document)t(e);else{var s=new Error("[OSMD] osmd.load(): content is not string or Document. Could not load.");console.error(s.message),r(s)}})).then((function(e){e&&e.nodeName||r(new Error("OpenSheetMusicDisplay: The document which was provided is invalid"));var i,a=e.childNodes;loglevelExports.debug("[OSMD] load(), Document url: "+e.URL);for(var o=0,s=a.length;o<s;o+=1){var l=a[o];if(l.nodeType===Node.ELEMENT_NODE&&"score-partwise"===l.nodeName.toLowerCase()){i=l;break}}i||(console.error("Could not parse MusicXML, no valid partwise element found"),r(new Error("OpenSheetMusicDisplay: Document is not a valid 'partwise' MusicXML")));var u=new IXmlElement(i),c=new DynamicsCalculator,h=new PlaybackNoteGenerator,d=new MusicSheetReader([c,h],n.rules);n.sheet=d.createMusicSheet(u,"Untitled Score"),void 0===n.sheet&&r(new Error("given music sheet was incomplete or could not be loaded.")),loglevelExports.info("[OSMD] Loaded sheet ".concat(n.sheet.TitleString," successfully.")),n.needBackendUpdate=!0,n.updateGraphic(),t()})).catch((function(e){loglevelExports.debug("Content XML Promise was rejected"),r(e)}))}))}},{key:"updateGraphic",value:function(){var e=this,t=new VexFlowMusicSheetCalculator(this.rules);this.graphic=new GraphicalMusicSheet(this.sheet,t),this.drawingParameters.drawCursors&&this.cursors.forEach((function(t){t.init(e.sheet.MusicPartManager,e.graphic)})),this.renderingManager.setMusicSheet(this.graphic),this.interactionManager.Initialize()}},{key:"render",value:function(){var e;if(!this.graphic)throw new Error("OpenSheetMusicDisplay: Before rendering a music sheet, please load a MusicXML file");null===(e=this.drawer)||void 0===e||e.clear();var t=this.container.offsetWidth;this.rules.RenderSingleHorizontalStaffline&&(t=this.rules.SheetMaximumWidth),this.sheet.pageWidth=t/this.zoom/10,this.renderingManager.MainViewingRegion.WidthInUnits=this.sheet.pageWidth,this.rules.PageFormat&&!this.rules.PageFormat.IsUndefined?(this.rules.PageHeight=this.sheet.pageWidth/this.rules.PageFormat.aspectRatio,loglevelExports.debug("[OSMD] PageHeight: "+this.rules.PageHeight)):(loglevelExports.debug("[OSMD] endless/undefined pageformat, id: "+this.rules.PageFormat.idString),this.rules.PageHeight=100001),this.graphic.reCalculate(),this.drawingParameters.drawCursors&&(this.graphic.Cursors.length=0),this.createOrRefreshRenderBackend(),this.needBackendUpdate=!1,this.drawer.setZoom(this.zoom),this.drawer.drawSheet(this.graphic),this.enableOrDisableCursors(this.drawingParameters.drawCursors),this.drawingParameters.drawCursors&&this.cursors.forEach((function(e){e.update()})),this.zoomUpdated=!1,this.interactionManager.displaySizeChanged(this.container.clientWidth,this.container.clientHeight)}},{key:"createOrRefreshRenderBackend",value:function(){this.drawer&&this.drawer.Backends&&(this.drawer.Backends[0]&&this.drawer.Backends[0].removeAllChildrenFromContainer(this.container),this.drawer.Backends.clear()),this.drawingParameters.Rules=this.rules,this.drawer=new VexFlowMusicSheetDrawer(this.drawingParameters),this.drawer.drawableBoundingBoxElement=this.DrawBoundingBox,this.drawer.bottomLineVisible=this.drawBottomLine,this.drawer.skyLineVisible=this.drawSkyLine;var e,t=this.container.offsetWidth;this.rules.RenderSingleHorizontalStaffline&&(t=10*this.graphic.MusicPages[0].PositionAndShape.Size.width*this.zoom);var n,r=32767,i=_createForOfIteratorHelper(this.graphic.MusicPages);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.PageNumber>this.rules.MaxPageToDrawNumber)break;var o=this.createBackend(this.backendType,a),s=" exceeds CanvasBackend limit of 32767. Cutting off score.";o.getOSMDBackendType()===BackendType.Canvas&&t>r&&(loglevelExports.warn("[OSMD] Warning: width of "+t+s),t=r),this.rules.PageFormat&&!this.rules.PageFormat.IsUndefined?e=t/this.rules.PageFormat.aspectRatio:(e=a.PositionAndShape.Size.height,e+=this.rules.PageBottomMargin,e+=this.rules.CompactMode?this.rules.PageTopMarginNarrow:this.rules.PageTopMargin,this.rules.RenderTitle&&(e+=this.rules.TitleTopDistance),e*=10*this.zoom),o.getOSMDBackendType()===BackendType.Canvas&&e>r&&(loglevelExports.warn("[OSMD] Warning: height of "+e+s),e=Math.min(e,r)),o.resize(t,e),o.clear(),this.drawer.Backends.push(o),this.graphic.drawer=this.drawer}}catch(err){i.e(err)}finally{i.f()}}},{key:"exportSVG",value:function(){var e,t,n=_createForOfIteratorHelper(null===(e=this.drawer)||void 0===e?void 0:e.Backends);try{for(n.s();!(t=n.n()).done;){var r=t.value;r instanceof SvgVexFlowBackend&&r.export()}}catch(err){n.e(err)}finally{n.f()}}},{key:"IsReadyToRender",value:function(){return void 0!==this.graphic}},{key:"clear",value:function(){var e;null===(e=this.drawer)||void 0===e||e.clear(),this.reset()}},{key:"dispose",value:function(){this.disposeResizeListener&&this.disposeResizeListener(),this.InteractionManager&&this.InteractionManager.Dispose()}},{key:"setOptions",value:function(e){if(this.rules||(this.rules=new EngravingRules),this.drawingParameters||(this.drawingParameters=new DrawingParameters,this.drawingParameters.Rules=this.rules),null!=e){this.OnXMLRead=function(e){return e},e.onXMLRead&&(this.OnXMLRead=e.onXMLRead),e.drawingParameters&&(this.drawingParameters.DrawingParametersEnum=DrawingParametersEnum[e.drawingParameters.toLowerCase()]);var t=!this.drawer||!this.drawer.Backends||this.drawer.Backends.length<1;if(void 0!==e.backend){var n=OSMDOptions.BackendTypeFromString(e.backend);t=t||this.backendType!==n,this.backendType=n}this.needBackendUpdate=t,void 0!==e.autoBeam&&(this.rules.AutoBeamNotes=e.autoBeam);var r=e.autoBeamOptions;if(r&&(void 0===r.maintain_stem_directions&&(r.maintain_stem_directions=!1),this.rules.AutoBeamOptions=r,r.groups&&r.groups.length)){var i,a=_createForOfIteratorHelper(r.groups);try{for(a.s();!(i=a.n()).done;){if(2!==i.value.length)throw new Error("Each fraction in autoBeamOptions.groups must be of length 2, e.g. [3,4] for beaming three fourths")}}catch(err){a.e(err)}finally{a.f()}}void 0!==e.percussionOneLineCutoff&&(this.rules.PercussionOneLineCutoff=e.percussionOneLineCutoff),0!==this.rules.PercussionOneLineCutoff&&void 0!==e.percussionForceVoicesOneLineCutoff&&(this.rules.PercussionForceVoicesOneLineCutoff=e.percussionForceVoicesOneLineCutoff),void 0!==e.alignRests&&(this.rules.AlignRests=e.alignRests),void 0!==e.coloringMode&&this.setColoringMode(e),void 0!==e.coloringEnabled&&(this.rules.ColoringEnabled=e.coloringEnabled),void 0!==e.colorStemsLikeNoteheads&&(this.rules.ColorStemsLikeNoteheads=e.colorStemsLikeNoteheads),e.disableCursor&&(this.drawingParameters.drawCursors=!1),e.drawHiddenNotes&&(this.drawingParameters.drawHiddenNotes=!0),void 0!==e.drawCredits&&(this.drawingParameters.DrawCredits=e.drawCredits),void 0!==e.drawComposer&&(this.drawingParameters.DrawComposer=e.drawComposer),void 0!==e.drawTitle&&(this.drawingParameters.DrawTitle=e.drawTitle),void 0!==e.drawSubtitle&&(this.drawingParameters.DrawSubtitle=e.drawSubtitle),void 0!==e.drawLyricist&&(this.drawingParameters.DrawLyricist=e.drawLyricist),void 0!==e.drawMetronomeMarks&&(this.rules.MetronomeMarksDrawn=e.drawMetronomeMarks),void 0!==e.drawPartNames&&(this.drawingParameters.DrawPartNames=e.drawPartNames,e.drawPartAbbreviations||(this.rules.RenderPartAbbreviations=e.drawPartNames)),void 0!==e.drawPartAbbreviations&&(this.rules.RenderPartAbbreviations=e.drawPartAbbreviations),!1===e.drawFingerings&&(this.rules.RenderFingerings=!1),void 0!==e.drawMeasureNumbers&&(this.rules.RenderMeasureNumbers=e.drawMeasureNumbers),e.drawMeasureNumbersOnlyAtSystemStart&&(this.rules.RenderMeasureNumbersOnlyAtSystemStart=e.drawMeasureNumbersOnlyAtSystemStart),void 0!==e.drawLyrics&&(this.rules.RenderLyrics=e.drawLyrics),void 0!==e.drawTimeSignatures&&(this.rules.RenderTimeSignatures=e.drawTimeSignatures),void 0!==e.drawSlurs&&(this.rules.RenderSlurs=e.drawSlurs),void 0!==e.measureNumberInterval&&(this.rules.MeasureNumberLabelOffset=e.measureNumberInterval),void 0!==e.useXMLMeasureNumbers&&(this.rules.UseXMLMeasureNumbers=e.useXMLMeasureNumbers),void 0!==e.fingeringPosition&&(this.rules.FingeringPosition=AbstractExpression.PlacementEnumFromString(e.fingeringPosition)),void 0!==e.fingeringInsideStafflines&&(this.rules.FingeringInsideStafflines=e.fingeringInsideStafflines),void 0!==e.newSystemFromXML&&(this.rules.NewSystemAtXMLNewSystemAttribute=e.newSystemFromXML),void 0!==e.newPageFromXML&&(this.rules.NewPageAtXMLNewPageAttribute=e.newPageFromXML),void 0!==e.fillEmptyMeasuresWithWholeRest&&(this.rules.FillEmptyMeasuresWithWholeRest=e.fillEmptyMeasuresWithWholeRest),void 0!==e.followCursor&&(this.FollowCursor=e.followCursor),void 0!==e.setWantedStemDirectionByXml&&(this.rules.SetWantedStemDirectionByXml=e.setWantedStemDirectionByXml),e.darkMode?(this.rules.applyDefaultColorMusic("#FFFFFF"),this.rules.PageBackgroundColor="#000000"):!1===e.darkMode&&(this.rules.applyDefaultColorMusic("#000000"),this.rules.PageBackgroundColor=void 0),e.defaultColorMusic&&this.rules.applyDefaultColorMusic(e.defaultColorMusic),e.defaultColorNotehead&&(this.rules.DefaultColorNotehead=e.defaultColorNotehead),e.defaultColorRest&&(this.rules.DefaultColorRest=e.defaultColorRest),e.defaultColorStem&&(this.rules.DefaultColorStem=e.defaultColorStem),e.defaultColorLabel&&(this.rules.DefaultColorLabel=e.defaultColorLabel),e.defaultColorTitle&&(this.rules.DefaultColorTitle=e.defaultColorTitle),e.defaultFontFamily&&(this.rules.DefaultFontFamily=e.defaultFontFamily),e.defaultFontStyle&&(this.rules.DefaultFontStyle=e.defaultFontStyle),e.drawUpToMeasureNumber&&(this.rules.MaxMeasureToDrawIndex=e.drawUpToMeasureNumber-1),e.drawFromMeasureNumber&&(this.rules.MinMeasureToDrawIndex=e.drawFromMeasureNumber-1),e.drawUpToPageNumber&&(this.rules.MaxPageToDrawNumber=e.drawUpToPageNumber),e.drawUpToSystemNumber&&(this.rules.MaxSystemToDrawNumber=e.drawUpToSystemNumber),e.tupletsRatioed&&(this.rules.TupletsRatioed=!0),e.tupletsBracketed&&(this.rules.TupletsBracketed=!0),e.tripletsBracketed&&(this.rules.TripletsBracketed=!0),e.autoResize?(this.resizeHandlerAttached||this.autoResize(),this.autoResizeEnabled=!0):!1===e.autoResize&&(this.autoResizeEnabled=!1),void 0!==e.pageFormat&&this.setPageFormat(e.pageFormat),void 0!==e.pageBackgroundColor&&(this.rules.PageBackgroundColor=e.pageBackgroundColor),void 0!==e.performanceMode&&(this.rules.PerformanceMode=e.performanceMode),void 0!==e.renderSingleHorizontalStaffline&&(this.rules.RenderSingleHorizontalStaffline=e.renderSingleHorizontalStaffline),void 0!==e.spacingFactorSoftmax&&(this.rules.SoftmaxFactorVexFlow=e.spacingFactorSoftmax),void 0!==e.spacingBetweenTextLines&&(this.rules.SpacingBetweenTextLines=e.spacingBetweenTextLines),void 0!==e.stretchLastSystemLine&&(this.rules.StretchLastSystemLine=e.stretchLastSystemLine),void 0!==e.autoGenerateMutipleRestMeasuresFromRestMeasures&&(this.rules.AutoGenerateMutipleRestMeasuresFromRestMeasures=e.autoGenerateMutipleRestMeasuresFromRestMeasures),void 0!==e.cursorsOptions?this.cursorsOptions=e.cursorsOptions:this.cursorsOptions=[{type:0,color:this.EngravingRules.DefaultColorCursor,alpha:.5,follow:!0}]}else loglevelExports.warn("warning: osmd.setOptions() called without an options parameter, has no effect.\nexample usage: osmd.setOptions({drawCredits: false, drawPartNames: false})")}},{key:"setColoringMode",value:function(e){if(e.coloringMode!==ColoringModes.XML){var t,n=[NoteEnum.C,NoteEnum.D,NoteEnum.E,NoteEnum.F,NoteEnum.G,NoteEnum.A,NoteEnum.B,-1];if(e.coloringMode===ColoringModes.CustomColorSet){if(!e.coloringSetCustom||8!==e.coloringSetCustom.length)throw new Error("Invalid amount of colors: With coloringModes.customColorSet, you have to provide a coloringSetCustom parameter with 8 strings (C to B, rest note).");var r,i=_createForOfIteratorHelper(e.coloringSetCustom);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!/^\#[0-9a-fA-F]{6}$/.test(a))throw new Error("One of the color strings in options.coloringSetCustom was not a valid HTML Hex color:\n"+a)}}catch(err){i.e(err)}finally{i.f()}t=e.coloringSetCustom}else if(e.coloringMode===ColoringModes.AutoColoring){t=[];for(var o=Object.keys(AutoColorSet),s=0;s<o.length;s++)t.push(AutoColorSet[o[s]])}for(var l=new Dictionary,u=0;u<n.length;u++)l.setValue(n[u],t[u]);l.setValue(-1,t[7]),this.rules.ColoringSetCurrent=l,this.rules.ColoringMode=e.coloringMode}else this.rules.ColoringMode=ColoringModes.XML}},{key:"setLogLevel",value:function(e){switch(e){case"trace":loglevelExports.setLevel(loglevelExports.levels.TRACE);break;case"debug":loglevelExports.setLevel(loglevelExports.levels.DEBUG);break;case"info":loglevelExports.setLevel(loglevelExports.levels.INFO);break;case"warn":loglevelExports.setLevel(loglevelExports.levels.WARN);break;case"error":loglevelExports.setLevel(loglevelExports.levels.ERROR);break;case"silent":loglevelExports.setLevel(loglevelExports.levels.SILENT);break;default:loglevelExports.warn("Could not set log level to ".concat(e,". Using warn instead.")),loglevelExports.setLevel(loglevelExports.levels.WARN)}}},{key:"getLogLevel",value:function(){return loglevelExports.getLevel()}},{key:"reset",value:function(){this.drawingParameters.drawCursors&&this.cursors.forEach((function(e){e.hide()})),this.sheet=void 0,this.graphic=void 0,this.zoom=1}},{key:"autoResize",value:function(){var e=this,t=this;this.handleResize((function(){}),(function(){var n;(null===(n=e.graphic)||void 0===n?void 0:n.GetCalculator)instanceof VexFlowMusicSheetCalculator&&(e.graphic.GetCalculator.beamsNeedUpdate=!0),t.IsReadyToRender()&&t.render()}))}},{key:"handleResize",value:function(e,t){var n,r=this,i=void 0,a=200,o=this;function s(){o.AutoResizeEnabled&&(n=(new Date).getTime(),i||(e(),n=(new Date).getTime(),i=window.setTimeout(l,a)))}function l(){i=void 0,window.clearTimeout(i),(new Date).getTime()-n<a?i=window.setTimeout(l,a):t()}window.attachEvent?window.attachEvent("onresize",s):window.addEventListener("resize",s),this.disposeResizeListener=function(){window.detachEvent?window.detachEvent("onresize",s):window.removeEventListener("resize",s),r.resizeHandlerAttached=!1},this.resizeHandlerAttached=!0,window.setTimeout(e,0),window.setTimeout(t,1)}},{key:"enableOrDisableCursors",value:function(e){if(this.drawingParameters.drawCursors=e,e){for(var t,n=0;n<this.cursorsOptions.length;n++){var r,i,a,o,s,l=null!==(r=null===(i=this.cursors[n])||void 0===i?void 0:i.Hidden)&&void 0!==r&&r,u=null===(a=this.cursors[n])||void 0===a?void 0:a.Iterator;null===(o=this.cursors[n])||void 0===o||o.hide();var c=null===(s=this.drawer)||void 0===s?void 0:s.Backends[0];if(c&&this.rules.RestoreCursorAfterRerender&&this.cursors[n]){var h=this.cursors[n].updateCurrentPage();c=this.drawer.Backends[h-1]}c&&c.getRenderElement()&&(this.cursors[n]=new Cursor(c.getRenderElement(),this,this.cursorsOptions[n])),this.sheet&&this.graphic&&this.cursors[n]&&this.cursors[n].init(this.sheet.MusicPartManager,this.graphic),this.rules.RestoreCursorAfterRerender&&(u&&(this.cursors[n].iterator=u),l?this.cursors[n].hide():this.cursors[n].show())}null===(t=this.renderingManager.PlaybackManager)||void 0===t||t.addListener(this.cursor)}else this.cursors.forEach((function(e){e.hide()}))}},{key:"createBackend",value:function(e,t){var n;return(n=void 0===e||e===BackendType.SVG?new SvgVexFlowBackend(this.rules):new CanvasVexFlowBackend(this.rules)).graphicalMusicPage=t,n.initialize(this.container,this.zoom),n.getContext().setFillStyle(this.rules.DefaultColorMusic),n.getContext().setStrokeStyle(this.rules.DefaultColorMusic),n}},{key:"setPageFormat",value:function(t){var n=e.StringToPageFormat(t);this.needBackendUpdate=!n.Equals(this.rules.PageFormat),this.rules.PageFormat=n}},{key:"setCustomPageFormat",value:function(e,t){if(e>0&&t>0){var n=new PageFormat(e,t);this.rules.PageFormat=n}}},{key:"DrawSkyLine",get:function(){return this.drawer.skyLineVisible},set:function(e){this.drawSkyLine=e,this.drawer&&(this.drawer.skyLineVisible=e)}},{key:"DrawBottomLine",get:function(){return this.drawer.bottomLineVisible},set:function(e){this.drawBottomLine=e,this.drawer&&(this.drawer.bottomLineVisible=e)}},{key:"DrawBoundingBox",get:function(){return this.drawBoundingBox},set:function(e){this.setDrawBoundingBox(e,!0)}},{key:"setDrawBoundingBox",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.drawBoundingBox=e,this.drawer&&(this.drawer.drawableBoundingBoxElement=e),t&&this.render()}},{key:"AutoResizeEnabled",get:function(){return this.autoResizeEnabled},set:function(e){this.autoResizeEnabled=e}},{key:"Zoom",get:function(){return this.zoom},set:function(e){var t;this.zoom=e,this.zoomUpdated=!0,(null===(t=this.graphic)||void 0===t?void 0:t.GetCalculator)instanceof VexFlowMusicSheetCalculator&&(this.graphic.GetCalculator.beamsNeedUpdate=this.zoomUpdated)}},{key:"FollowCursor",get:function(){return this.followCursor},set:function(e){this.followCursor=e}},{key:"TransposeCalculator",get:function(){return MusicSheetCalculator.transposeCalculator},set:function(e){MusicSheetCalculator.transposeCalculator=e}},{key:"Sheet",get:function(){return this.sheet}},{key:"Drawer",get:function(){return this.drawer}},{key:"GraphicSheet",get:function(){return this.graphic}},{key:"DrawingParameters",get:function(){return this.drawingParameters}},{key:"EngravingRules",get:function(){return this.rules}},{key:"InteractionManager",get:function(){return this.interactionManager}},{key:"Version",get:function(){return this.version}}],[{key:"StringToPageFormat",value:function(t){var n=PageFormat.UndefinedPageFormat;if(t.match("^[0-9]+x[0-9]+$")){var r=t.split("x"),i=Number.parseInt(r[0],10),a=Number.parseInt(r[1],10);i>0&&i<32768&&a>0&&a<32768&&(n=new PageFormat(i,a,"customPageFormat".concat(t)))}return t=(t=(t=t.replace(" ","_")).replace("Landscape","L")).replace("Portrait","P"),e.PageFormatStandards.hasOwnProperty(t)?n=e.PageFormatStandards[t]:n}}]),e}(),OpenSheetMusicDisplay=_OpenSheetMusicDisplay;OpenSheetMusicDisplay.PageFormatStandards={A3_L:new PageFormat(420,297,"A3_L"),A3_P:new PageFormat(297,420,"A3_P"),A4_L:new PageFormat(297,210,"A4_L"),A4_P:new PageFormat(210,297,"A4_P"),A5_L:new PageFormat(210,148,"A5_L"),A5_P:new PageFormat(148,210,"A5_P"),A6_L:new PageFormat(148,105,"A6_L"),A6_P:new PageFormat(105,148,"A6_P"),Endless:PageFormat.UndefinedPageFormat,Letter_L:new PageFormat(279.4,215.9,"Letter_L"),Letter_P:new PageFormat(215.9,279.4,"Letter_P")};var handlebarsExports={},handlebars={get exports(){return handlebarsExports},set exports(e){handlebarsExports=e}},handlebars_runtimeExports={},handlebars_runtime={get exports(){return handlebars_runtimeExports},set exports(e){handlebars_runtimeExports=e}},base$1={},utils={__esModule:!0};utils.extend=extend,utils.indexOf=indexOf,utils.escapeExpression=escapeExpression,utils.isEmpty=isEmpty,utils.createFrame=createFrame,utils.blockParams=blockParams,utils.appendContextPath=appendContextPath;var escape$1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},badChars=/[&<>"'`=]/g,possible=/[&<>"'`=]/;function escapeChar(e){return escape$1[e]}function extend(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var toString=Object.prototype.toString;utils.toString=toString;var isFunction=function(e){return"function"==typeof e};isFunction(/x/)&&(utils.isFunction=isFunction=function(e){return"function"==typeof e&&"[object Function]"===toString.call(e)}),utils.isFunction=isFunction;var isArray=Array.isArray||function(e){return!(!e||"object"!==_typeof2(e))&&"[object Array]"===toString.call(e)};function indexOf(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function escapeExpression(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return possible.test(e)?e.replace(badChars,escapeChar):e}function isEmpty(e){return!e&&0!==e||!(!isArray(e)||0!==e.length)}function createFrame(e){var t=extend({},e);return t._parent=e,t}function blockParams(e,t){return e.path=t,e}function appendContextPath(e,t){return(e?e+".":"")+t}utils.isArray=isArray;var exceptionExports={},exception={get exports(){return exceptionExports},set exports(e){exceptionExports=e}};!function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var i=t&&t.loc,a=void 0,o=void 0,s=void 0,l=void 0;i&&(a=i.start.line,o=i.end.line,s=i.start.column,l=i.end.column,e+=" - "+a+":"+s);for(var u=Error.prototype.constructor.call(this,e),c=0;c<n.length;c++)this[n[c]]=u[n[c]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=a,this.endLineNumber=o,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=s,this.endColumn=l))}catch(h){}}r.prototype=new Error,t.default=r,e.exports=t.default}(exception,exceptionExports);var helpers$1={},blockHelperMissingExports={},blockHelperMissing={get exports(){return blockHelperMissingExports},set exports(e){blockHelperMissingExports=e}};!function(e,t){t.__esModule=!0;var n=utils;t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,r){var i=r.inverse,a=r.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(n.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):i(this);if(r.data&&r.ids){var o=n.createFrame(r.data);o.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:o}}return a(t,r)}))},e.exports=t.default}(blockHelperMissing,blockHelperMissingExports);var eachExports={},each={get exports(){return eachExports},set exports(e){eachExports=e}};!function(e,t){t.__esModule=!0;var n,r=utils,i=(n=exceptionExports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n,a=t.fn,o=t.inverse,s=0,l="",u=void 0,c=void 0;function h(t,n,i){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!i,c&&(u.contextPath=c+t)),l+=a(e[t],{data:u,blockParams:r.blockParams([e[t],t],[c+t,null])})}if(t.data&&t.ids&&(c=r.appendContextPath(t.data.contextPath,t.ids[0])+"."),r.isFunction(e)&&(e=e.call(this)),t.data&&(u=r.createFrame(t.data)),e&&"object"===_typeof2(e))if(r.isArray(e))for(var d=e.length;s<d;s++)s in e&&h(s,s,s===e.length-1);else if(commonjsGlobal.Symbol&&e[commonjsGlobal.Symbol.iterator]){for(var f=[],p=e[commonjsGlobal.Symbol.iterator](),v=p.next();!v.done;v=p.next())f.push(v.value);for(d=(e=f).length;s<d;s++)h(s,s,s===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&h(n,s-1),n=e,s++})),void 0!==n&&h(n,s-1,!0);return 0===s&&(l=o(this)),l}))},e.exports=t.default}(each,eachExports);var helperMissingExports={},helperMissing={get exports(){return helperMissingExports},set exports(e){helperMissingExports=e}};!function(e,t){t.__esModule=!0;var n,r=(n=exceptionExports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new r.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default}(helperMissing,helperMissingExports);var _ifExports={},_if={get exports(){return _ifExports},set exports(e){_ifExports=e}};!function(e,t){t.__esModule=!0;var n,r=utils,i=(n=exceptionExports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default}(_if,_ifExports);var logExports={},log$1={get exports(){return logExports},set exports(e){logExports=e}};!function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default}(log$1,logExports);var lookupExports={},lookup={get exports(){return lookupExports},set exports(e){lookupExports=e}};!function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default}(lookup,lookupExports);var _withExports={},_with={get exports(){return _withExports},set exports(e){_withExports=e}};function _interopRequireDefault$6(e){return e&&e.__esModule?e:{default:e}}!function(e,t){t.__esModule=!0;var n,r=utils,i=(n=exceptionExports)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");r.isFunction(e)&&(e=e.call(this));var n=t.fn;if(r.isEmpty(e))return t.inverse(this);var a=t.data;return t.data&&t.ids&&((a=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:a,blockParams:r.blockParams([e],[a&&a.contextPath])})}))},e.exports=t.default}(_with,_withExports),helpers$1.__esModule=!0,helpers$1.registerDefaultHelpers=registerDefaultHelpers,helpers$1.moveHelperToHooks=moveHelperToHooks;var _helpersBlockHelperMissing=blockHelperMissingExports,_helpersBlockHelperMissing2=_interopRequireDefault$6(_helpersBlockHelperMissing),_helpersEach=eachExports,_helpersEach2=_interopRequireDefault$6(_helpersEach),_helpersHelperMissing=helperMissingExports,_helpersHelperMissing2=_interopRequireDefault$6(_helpersHelperMissing),_helpersIf=_ifExports,_helpersIf2=_interopRequireDefault$6(_helpersIf),_helpersLog=logExports,_helpersLog2=_interopRequireDefault$6(_helpersLog),_helpersLookup=lookupExports,_helpersLookup2=_interopRequireDefault$6(_helpersLookup),_helpersWith=_withExports,_helpersWith2=_interopRequireDefault$6(_helpersWith);function registerDefaultHelpers(e){_helpersBlockHelperMissing2.default(e),_helpersEach2.default(e),_helpersHelperMissing2.default(e),_helpersIf2.default(e),_helpersLog2.default(e),_helpersLookup2.default(e),_helpersWith2.default(e)}function moveHelperToHooks(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])}var decorators={},inlineExports={},inline={get exports(){return inlineExports},set exports(e){inlineExports=e}};function _interopRequireDefault$5(e){return e&&e.__esModule?e:{default:e}}!function(e,t){t.__esModule=!0;var n=utils;t.default=function(e){e.registerDecorator("inline",(function(e,t,r,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var o=r.partials;r.partials=n.extend({},o,t.partials);var s=e(i,a);return r.partials=o,s}),t.partials[i.args[0]]=i.fn,a}))},e.exports=t.default}(inline,inlineExports),decorators.__esModule=!0,decorators.registerDefaultDecorators=registerDefaultDecorators;var _decoratorsInline=inlineExports,_decoratorsInline2=_interopRequireDefault$5(_decoratorsInline);function registerDefaultDecorators(e){_decoratorsInline2.default(e)}var loggerExports={},logger$1={get exports(){return loggerExports},set exports(e){loggerExports=e}};!function(e,t){t.__esModule=!0;var n=utils,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=n.indexOf(r.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=r.lookupLevel(e),"undefined"!=typeof console&&r.lookupLevel(r.level)<=e){var t=r.methodMap[e];console[t]||(t="log");for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];console[t].apply(console,i)}}};t.default=r,e.exports=t.default}(logger$1,loggerExports);var protoAccess={},createNewLookupObject$1={__esModule:!0};createNewLookupObject$1.createNewLookupObject=createNewLookupObject;var _utils$4=utils;function createNewLookupObject(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return _utils$4.extend.apply(void 0,[Object.create(null)].concat(t))}function _interopRequireWildcard$2(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}protoAccess.__esModule=!0,protoAccess.createProtoAccessControl=createProtoAccessControl,protoAccess.resultIsAllowed=resultIsAllowed,protoAccess.resetLoggedProperties=resetLoggedProperties;var _createNewLookupObject=createNewLookupObject$1,_logger$1=loggerExports,logger=_interopRequireWildcard$2(_logger$1),loggedProperties=Object.create(null);function createProtoAccessControl(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:_createNewLookupObject.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:_createNewLookupObject.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function resultIsAllowed(e,t,n){return checkWhiteList("function"==typeof e?t.methods:t.properties,n)}function checkWhiteList(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(logUnexpecedPropertyAccessOnce(t),!1)}function logUnexpecedPropertyAccessOnce(e){!0!==loggedProperties[e]&&(loggedProperties[e]=!0,logger.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}function resetLoggedProperties(){Object.keys(loggedProperties).forEach((function(e){delete loggedProperties[e]}))}function _interopRequireDefault$4(e){return e&&e.__esModule?e:{default:e}}base$1.__esModule=!0,base$1.HandlebarsEnvironment=HandlebarsEnvironment;var _utils$3=utils,_exception$3=exceptionExports,_exception2$3=_interopRequireDefault$4(_exception$3),_helpers$2=helpers$1,_decorators=decorators,_logger=loggerExports,_logger2=_interopRequireDefault$4(_logger),_internalProtoAccess$1=protoAccess,VERSION="4.7.7";base$1.VERSION=VERSION;var COMPILER_REVISION=8;base$1.COMPILER_REVISION=COMPILER_REVISION;var LAST_COMPATIBLE_COMPILER_REVISION=7;base$1.LAST_COMPATIBLE_COMPILER_REVISION=LAST_COMPATIBLE_COMPILER_REVISION;var REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};base$1.REVISION_CHANGES=REVISION_CHANGES;var objectType="[object Object]";function HandlebarsEnvironment(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},_helpers$2.registerDefaultHelpers(this),_decorators.registerDefaultDecorators(this)}HandlebarsEnvironment.prototype={constructor:HandlebarsEnvironment,logger:_logger2.default,log:_logger2.default.log,registerHelper:function(e,t){if(_utils$3.toString.call(e)===objectType){if(t)throw new _exception2$3.default("Arg not supported with multiple helpers");_utils$3.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(_utils$3.toString.call(e)===objectType)_utils$3.extend(this.partials,e);else{if(void 0===t)throw new _exception2$3.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(_utils$3.toString.call(e)===objectType){if(t)throw new _exception2$3.default("Arg not supported with multiple decorators");_utils$3.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){_internalProtoAccess$1.resetLoggedProperties()}};var log=_logger2.default.log;base$1.log=log,base$1.createFrame=_utils$3.createFrame,base$1.logger=_logger2.default;var safeStringExports={},safeString={get exports(){return safeStringExports},set exports(e){safeStringExports=e}};!function(e,t){function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default}(safeString,safeStringExports);var runtime={},wrapHelper$1={};function wrapHelper(e,t){if("function"!=typeof e)return e;return function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}function _interopRequireDefault$3(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard$1(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}wrapHelper$1.__esModule=!0,wrapHelper$1.wrapHelper=wrapHelper,runtime.__esModule=!0,runtime.checkRevision=checkRevision,runtime.template=template,runtime.wrapProgram=wrapProgram,runtime.resolvePartial=resolvePartial,runtime.invokePartial=invokePartial,runtime.noop=noop;var _utils$2=utils,Utils=_interopRequireWildcard$1(_utils$2),_exception$2=exceptionExports,_exception2$2=_interopRequireDefault$3(_exception$2),_base=base$1,_helpers$1=helpers$1,_internalWrapHelper=wrapHelper$1,_internalProtoAccess=protoAccess;function checkRevision(e){var t=e&&e[0]||1,n=_base.COMPILER_REVISION;if(!(t>=_base.LAST_COMPATIBLE_COMPILER_REVISION&&t<=_base.COMPILER_REVISION)){if(t<_base.LAST_COMPATIBLE_COMPILER_REVISION){var r=_base.REVISION_CHANGES[n],i=_base.REVISION_CHANGES[t];throw new _exception2$2.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new _exception2$2.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function template(e,t){if(!t)throw new _exception2$2.default("No environment passed to template");if(!e||!e.main)throw new _exception2$2.default("Unknown template object: "+_typeof2(e));e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0];var r={strict:function(e,t,n){if(!e||!(t in e))throw new _exception2$2.default('"'+t+'" not defined in '+e,{loc:n});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||_internalProtoAccess.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,i=0;i<n;i++){if(null!=(e[i]&&r.lookupProperty(e[i],t)))return e[i][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:Utils.escapeExpression,invokePartial:function(n,r,i){i.hash&&(r=Utils.extend({},r,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,i);var a=Utils.extend({},i,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),o=t.VM.invokePartial.call(this,n,r,a);if(null==o&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),o=i.partials[i.name](r,a)),null!=o){if(i.indent){for(var s=o.split("\n"),l=0,u=s.length;l<u&&(s[l]||l+1!==u);l++)s[l]=i.indent+s[l];o=s.join("\n")}return o}throw new _exception2$2.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var a=this.programs[e],o=this.fn(e);return t||i||r||n?a=wrapProgram(this,e,o,t,n,r,i):a||(a=this.programs[e]=wrapProgram(this,e,o)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=Utils.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=n.data;i._setup(n),!n.partial&&e.useData&&(a=initData(t,a));var o=void 0,s=e.useBlockParams?[]:void 0;function l(t){return""+e.main(r,t,r.helpers,r.partials,a,s,o)}return e.useDepths&&(o=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=executeDecorators(e.main,l,r,n.depths||[],a,s))(t,n)}return i.isTop=!0,i._setup=function(i){if(i.partial)r.protoAccessControl=i.protoAccessControl,r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators,r.hooks=i.hooks;else{var a=Utils.extend({},t.helpers,i.helpers);wrapHelpersToPassLookupProperty(a,r),r.helpers=a,e.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Utils.extend({},t.decorators,i.decorators)),r.hooks={},r.protoAccessControl=_internalProtoAccess.createProtoAccessControl(i);var o=i.allowCallsToHelperMissing||n;_helpers$1.moveHelperToHooks(r,"helperMissing",o),_helpers$1.moveHelperToHooks(r,"blockHelperMissing",o)}},i._child=function(t,n,i,a){if(e.useBlockParams&&!i)throw new _exception2$2.default("must pass block params");if(e.useDepths&&!a)throw new _exception2$2.default("must pass parent depths");return wrapProgram(r,t,e[t],n,0,i,a)},i}function wrapProgram(e,t,n,r,i,a,o){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o;return!o||t==o[0]||t===e.nullContext&&null===o[0]||(s=[t].concat(o)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),s)}return(s=executeDecorators(n,s,e,o,r,a)).program=t,s.depth=o?o.length:0,s.blockParams=i||0,s}function resolvePartial(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e}function invokePartial(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;if(n.fn&&n.fn!==noop&&function(){n.data=_base.createFrame(n.data);var e=n.fn;i=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=_base.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=Utils.extend({},n.partials,e.partials))}(),void 0===e&&i&&(e=i),void 0===e)throw new _exception2$2.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function noop(){return""}function initData(e,t){return t&&"root"in t||((t=t?_base.createFrame(t):{}).root=e),t}function executeDecorators(e,t,n,r,i,a){if(e.decorator){var o={};t=e.decorator(t,o,n,r&&r[0],i,a,r),Utils.extend(t,o)}return t}function wrapHelpersToPassLookupProperty(e,t){Object.keys(e).forEach((function(n){var r=e[n];e[n]=passLookupPropertyOption(r,t)}))}function passLookupPropertyOption(e,t){var n=t.lookupProperty;return _internalWrapHelper.wrapHelper(e,(function(e){return Utils.extend({lookupProperty:n},e)}))}var noConflictExports={},noConflict={get exports(){return noConflictExports},set exports(e){noConflictExports=e}};!function(e,t){t.__esModule=!0,t.default=function(e){var t=void 0!==commonjsGlobal?commonjsGlobal:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default}(noConflict,noConflictExports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=r(base$1),a=n(safeStringExports),o=n(exceptionExports),s=r(utils),l=r(runtime),u=n(noConflictExports);function c(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=o.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=l,e.template=function(t){return l.template(t,e)},e}var h=c();h.create=c,u.default(h),h.default=h,t.default=h,e.exports=t.default}(handlebars_runtime,handlebars_runtimeExports);var astExports={},ast={get exports(){return astExports},set exports(e){astExports=e}};!function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n,e.exports=t.default}(ast,astExports);var base={},parserExports={},parser$1={get exports(){return parserExports},set exports(e){parserExports=e}};!function(e,t){t.__esModule=!0;var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=r.prepareProgram(a[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=a[s];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(a[s]),strip:r.stripFlags(a[s],a[s]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[s],value:a[s],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(a[s-2],a[s-1],a[s],this._$);break;case 12:this.$={path:a[s-3],params:a[s-2],hash:a[s-1]};break;case 13:this.$=r.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!1,this._$);break;case 14:this.$=r.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!0,this._$);break;case 15:this.$={open:a[s-5],path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:r.stripFlags(a[s-5],a[s])};break;case 16:case 17:this.$={path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:r.stripFlags(a[s-5],a[s])};break;case 18:this.$={strip:r.stripFlags(a[s-1],a[s-1]),program:a[s]};break;case 19:var l=r.prepareBlock(a[s-2],a[s-1],a[s],a[s],!1,this._$),u=r.prepareProgram([l],a[s-1].loc);u.chained=!0,this.$={strip:a[s-2].strip,program:u,chain:!0};break;case 21:this.$={path:a[s-1],strip:r.stripFlags(a[s-2],a[s])};break;case 22:case 23:this.$=r.prepareMustache(a[s-3],a[s-2],a[s-1],a[s-4],r.stripFlags(a[s-4],a[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[s-3],params:a[s-2],hash:a[s-1],indent:"",strip:r.stripFlags(a[s-4],a[s]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(a[s-2],a[s-1],a[s],this._$);break;case 26:this.$={path:a[s-3],params:a[s-2],hash:a[s-1],strip:r.stripFlags(a[s-4],a[s])};break;case 29:this.$={type:"SubExpression",path:a[s-3],params:a[s-2],hash:a[s-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[s],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(a[s-2]),value:a[s],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(a[s-1]);break;case 35:this.$={type:"StringLiteral",value:a[s],original:a[s],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[s]),original:Number(a[s]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[s],original:"true"===a[s],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,a[s],this._$);break;case 43:this.$=r.preparePath(!1,a[s],this._$);break;case 44:a[s-2].push({part:r.id(a[s]),original:a[s],separator:a[s-1]}),this.$=a[s-2];break;case 45:this.$=[{part:r.id(a[s]),original:a[s]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:a[s-1].push(a[s]);break;case 98:case 100:this.$=[a[s]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var u=this.lexer.yylloc;i.push(u);var c=this.lexer.options&&this.lexer.options.ranges;function h(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,f,p,v,m,g,y,b,A={};;){if(f=n[n.length-1],this.defaultActions[f]?p=this.defaultActions[f]:(null==d&&(d=h()),p=a[f]&&a[f][d]),void 0===p||!p.length||!p[0]){var S="";for(m in b=[],a[f])this.terminals_[m]&&m>2&&b.push("'"+this.terminals_[m]+"'");S=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[d]||d)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(S,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:u,expected:b})}if(p[0]instanceof Array&&p.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+d);switch(p[0]){case 1:n.push(d),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(p[1]),d=null,l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,u=this.lexer.yylloc;break;case 2:if(g=this.productions_[p[1]][1],A.$=r[r.length-g],A._$={first_line:i[i.length-(g||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(g||1)].first_column,last_column:i[i.length-1].last_column},c&&(A._$.range=[i[i.length-(g||1)].range[0],i[i.length-1].range[1]]),void 0!==(v=this.performAction.call(A,o,l,s,this.yy,p[1],r,i)))return v;g&&(n=n.slice(0,-1*g*2),r=r.slice(0,-1*g),i=i.slice(0,-1*g)),n.push(this.productions_[p[1]][0]),r.push(A.$),i.push(A._$),y=a[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),o=0;o<a.length&&(!(n=this._input.match(this.rules[a[o]]))||t&&!(n[0].length>t[0].length)||(t=n,r=o,this.options.flex));o++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.default=n,e.exports=t.default}(parser$1,parserExports);var whitespaceControlExports={},whitespaceControl={get exports(){return whitespaceControlExports},set exports(e){whitespaceControlExports=e}},visitorExports={},visitor={get exports(){return visitorExports},set exports(e){visitorExports=e}};!function(e,t){t.__esModule=!0;var n,r=(n=exceptionExports)&&n.__esModule?n:{default:n};function i(){this.parents=[]}function a(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){a.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function s(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}i.prototype={constructor:i,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!i.prototype[n.type])throw new r.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new r.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new r.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:a,Decorator:a,BlockStatement:o,DecoratorBlock:o,PartialStatement:s,PartialBlockStatement:function(e){s.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=i,e.exports=t.default}(visitor,visitorExports),function(e,t){t.__esModule=!0;var n,r=(n=visitorExports)&&n.__esModule?n:{default:n};function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function a(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],i=e[t-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function o(e,t,n){void 0===t&&(t=-1);var r=e[t+1],i=e[t+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function s(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function l(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}i.prototype=new r.default,i.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,u=r.length;i<u;i++){var c=r[i],h=this.accept(c);if(h){var d=a(r,i,n),f=o(r,i,n),p=h.openStandalone&&d,v=h.closeStandalone&&f,m=h.inlineStandalone&&d&&f;h.close&&s(r,i,!0),h.open&&l(r,i,!0),t&&m&&(s(r,i),l(r,i)&&"PartialStatement"===c.type&&(c.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&p&&(s((c.program||c.inverse).body),l(r,i)),t&&v&&(s(r,i),l((c.inverse||c.program).body))}}return e},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var u={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:a((r||t).body)};if(e.openStrip.close&&s(t.body,null,!0),n){var c=e.inverseStrip;c.open&&l(t.body,null,!0),c.close&&s(r.body,null,!0),e.closeStrip.open&&l(i.body,null,!0),!this.options.ignoreStandalone&&a(t.body)&&o(r.body)&&(l(t.body),s(r.body))}else e.closeStrip.open&&l(t.body,null,!0);return u},i.prototype.Decorator=i.prototype.MustacheStatement=function(e){return e.strip},i.prototype.PartialStatement=i.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=i,e.exports=t.default}(whitespaceControl,whitespaceControlExports);var helpers={};function _interopRequireDefault$2(e){return e&&e.__esModule?e:{default:e}}helpers.__esModule=!0,helpers.SourceLocation=SourceLocation,helpers.id=id,helpers.stripFlags=stripFlags,helpers.stripComment=stripComment,helpers.preparePath=preparePath,helpers.prepareMustache=prepareMustache,helpers.prepareRawBlock=prepareRawBlock,helpers.prepareBlock=prepareBlock,helpers.prepareProgram=prepareProgram,helpers.preparePartialBlock=preparePartialBlock;var _exception$1=exceptionExports,_exception2$1=_interopRequireDefault$2(_exception$1);function validateClose(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new _exception2$1.default(e.path.original+" doesn't match "+t,n)}}function SourceLocation(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function id(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function stripFlags(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}}function stripComment(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function preparePath(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",i=[],a=0,o=0,s=t.length;o<s;o++){var l=t[o].part,u=t[o].original!==l;if(r+=(t[o].separator||"")+l,u||".."!==l&&"."!==l&&"this"!==l)i.push(l);else{if(i.length>0)throw new _exception2$1.default("Invalid path: "+r,{loc:n});".."===l&&a++}}return{type:"PathExpression",data:e,depth:a,parts:i,original:r,loc:n}}function prepareMustache(e,t,n,r,i,a){var o=r.charAt(3)||r.charAt(2),s="{"!==o&&"&"!==o;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:s,strip:i,loc:this.locInfo(a)}}function prepareRawBlock(e,t,n,r){validateClose(e,n);var i={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function prepareBlock(e,t,n,r,i,a){r&&r.path&&validateClose(e,r);var o=/\*/.test(e.open);t.blockParams=e.blockParams;var s=void 0,l=void 0;if(n){if(o)throw new _exception2$1.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),l=n.strip,s=n.program}return i&&(i=s,s=t,t=i),{type:o?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:s,openStrip:e.strip,inverseStrip:l,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function prepareProgram(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function preparePartialBlock(e,t,n,r){return validateClose(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function _interopRequireDefault$1(e){return e&&e.__esModule?e:{default:e}}base.__esModule=!0,base.parseWithoutProcessing=parseWithoutProcessing,base.parse=parse$2;var _parser=parserExports,_parser2=_interopRequireDefault$1(_parser),_whitespaceControl=whitespaceControlExports,_whitespaceControl2=_interopRequireDefault$1(_whitespaceControl),_helpers=helpers,Helpers=_interopRequireWildcard(_helpers),_utils$1=utils;base.parser=_parser2.default;var yy={};function parseWithoutProcessing(e,t){return"Program"===e.type?e:(_parser2.default.yy=yy,yy.locInfo=function(e){return new yy.SourceLocation(t&&t.srcName,e)},_parser2.default.parse(e))}function parse$2(e,t){var n=parseWithoutProcessing(e,t);return new _whitespaceControl2.default(t).accept(n)}_utils$1.extend(yy,Helpers);var compiler={};function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}compiler.__esModule=!0,compiler.Compiler=Compiler,compiler.precompile=precompile,compiler.compile=compile;var _exception=exceptionExports,_exception2=_interopRequireDefault(_exception),_utils=utils,_ast=astExports,_ast2=_interopRequireDefault(_ast),slice=[].slice;function Compiler(){}function precompile(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new _exception2.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)}function compile(e,t,n){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new _exception2.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=_utils.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function i(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),a=(new n.JavaScriptCompiler).compile(i,t,void 0,!0);return n.template(a)}function a(e,t){return r||(r=i()),r.call(this,e,t)}return a._setup=function(e){return r||(r=i()),r._setup(e)},a._child=function(e,t,n,a){return r||(r=i()),r._child(e,t,n,a)},a}function argEquals(e,t){if(e===t)return!0;if(_utils.isArray(e)&&_utils.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!argEquals(e[n],t[n]))return!1;return!0}}function transformLiteralToPath(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}Compiler.prototype={compiler:Compiler,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||!argEquals(r.args,i.args))return!1}t=this.children.length;for(n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=_utils.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[n]=t,this.useDepths=this.useDepths||t.useDepths,n},accept:function(e){if(!this[e.type])throw new _exception2.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;r<n;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){transformLiteralToPath(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new _exception2.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){transformLiteralToPath(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],a=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),i=e.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new _exception2.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,_ast2.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=_ast2.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:slice.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=_ast2.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&_ast2.default.helpers.helperExpression(e),i=!n&&(r||t);if(i&&!r){var a=e.path.parts[0],o=this.options;o.knownHelpers[a]?r=!0:o.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||_ast2.default.helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var r=this.options.blockParams[t],i=r&&_utils.indexOf(r,e);if(r&&i>=0)return[t,i]}}};var javascriptCompilerExports={},javascriptCompiler={get exports(){return javascriptCompilerExports},set exports(e){javascriptCompilerExports=e}},codeGenExports={},codeGen={get exports(){return codeGenExports},set exports(e){codeGenExports=e}},sourceMap={},sourceMapGenerator={},base64Vlq={},base64$1={},hasRequiredBase64,hasRequiredBase64Vlq;function requireBase64(){if(hasRequiredBase64)return base64$1;hasRequiredBase64=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return base64$1.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},base64$1.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},base64$1}function requireBase64Vlq(){if(hasRequiredBase64Vlq)return base64Vlq;hasRequiredBase64Vlq=1;var e=requireBase64();return base64Vlq.encode=function(t){var n,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(t);do{n=31&i,(i>>>=5)>0&&(n|=32),r+=e.encode(n)}while(i>0);return r},base64Vlq.decode=function(t,n,r){var i,a,o,s,l=t.length,u=0,c=0;do{if(n>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=e.decode(t.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+t.charAt(n-1));i=!!(32&a),u+=(a&=31)<<c,c+=5}while(i);r.value=(s=(o=u)>>1,1==(1&o)?-s:s),r.rest=n},base64Vlq}var util={},hasRequiredUtil;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(t){var n=t,a=r(t);if(a){if(!a.path)return t;n=a.path}for(var o,s=e.isAbsolute(n),l=n.split(/\/+/),u=0,c=l.length-1;c>=0;c--)"."===(o=l[c])?l.splice(c,1):".."===o?u++:u>0&&(""===o?(l.splice(c+1,u),u=0):(l.splice(c,2),u--));return""===(n=l.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),s=r(e);if(s&&(e=s.path||"/"),o&&!o.scheme)return s&&(o.scheme=s.scheme),i(o);if(o||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,i(s)):l}e.urlParse=r,e.urlGenerate=i,e.normalize=a,e.join=o,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function c(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=s?l:function(e){return u(e)?"$"+e:e},e.fromSetString=s?l:function(e){return u(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=c(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:c(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=c(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:c(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=c(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:c(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var s=r(n);if(!s)throw new Error("sourceMapURL could not be parsed");if(s.path){var l=s.path.lastIndexOf("/");l>=0&&(s.path=s.path.substring(0,l+1))}t=o(i(s),t)}return a(t)}}(util)),util}var arraySet={},hasRequiredArraySet;function requireArraySet(){if(hasRequiredArraySet)return arraySet;hasRequiredArraySet=1;var e=requireUtil(),t=Object.prototype.hasOwnProperty,n="undefined"!=typeof Map;function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(r,i){var a=n?r:e.toSetString(r),o=n?this.has(r):t.call(this._set,a),s=this._array.length;o&&!i||this._array.push(r),o||(n?this._set.set(r,s):this._set[a]=s)},r.prototype.has=function(r){if(n)return this._set.has(r);var i=e.toSetString(r);return t.call(this._set,i)},r.prototype.indexOf=function(r){if(n){var i=this._set.get(r);if(i>=0)return i}else{var a=e.toSetString(r);if(t.call(this._set,a))return this._set[a]}throw new Error('"'+r+'" is not in the set.')},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},r.prototype.toArray=function(){return this._array.slice()},arraySet.ArraySet=r,arraySet}var mappingList={},hasRequiredMappingList,hasRequiredSourceMapGenerator;function requireMappingList(){if(hasRequiredMappingList)return mappingList;hasRequiredMappingList=1;var e=requireUtil();function t(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return t.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},t.prototype.add=function(t){var n,r,i,a,o,s;n=this._last,r=t,i=n.generatedLine,a=r.generatedLine,o=n.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||e.compareByGeneratedPositionsInflated(n,r)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},t.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},mappingList.MappingList=t,mappingList}function requireSourceMapGenerator(){if(hasRequiredSourceMapGenerator)return sourceMapGenerator;hasRequiredSourceMapGenerator=1;var e=requireBase64Vlq(),t=requireUtil(),n=requireArraySet().ArraySet,r=requireMappingList().MappingList;function i(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(e){var n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping((function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=n&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)})),e.sources.forEach((function(i){var a=i;null!==n&&(a=t.relative(n,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);null!=o&&r.setSourceContent(i,o)})),r},i.prototype.addMapping=function(e){var n=t.getArg(e,"generated"),r=t.getArg(e,"original",null),i=t.getArg(e,"source",null),a=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,i,a),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:i,name:a})},i.prototype.setSourceContent=function(e,n){var r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,r,i){var a=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=e.file}var o=this._sourceRoot;null!=o&&(a=t.relative(o,a));var s=new n,l=new n;this._mappings.unsortedForEach((function(n){if(n.source===a&&null!=n.originalLine){var r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=i&&(n.source=t.join(i,n.source)),null!=o&&(n.source=t.relative(o,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}var u=n.source;null==u||s.has(u)||s.add(u);var c=n.name;null==c||l.has(c)||l.add(c)}),this),this._sources=s,this._names=l,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=i&&(n=t.join(i,n)),null!=o&&(n=t.relative(o,n)),this.setSourceContent(n,r))}),this)},i.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},i.prototype._serializeMappings=function(){for(var n,r,i,a,o=0,s=1,l=0,u=0,c=0,h=0,d="",f=this._mappings.toArray(),p=0,v=f.length;p<v;p++){if(n="",(r=f[p]).generatedLine!==s)for(o=0;r.generatedLine!==s;)n+=";",s++;else if(p>0){if(!t.compareByGeneratedPositionsInflated(r,f[p-1]))continue;n+=","}n+=e.encode(r.generatedColumn-o),o=r.generatedColumn,null!=r.source&&(a=this._sources.indexOf(r.source),n+=e.encode(a-h),h=a,n+=e.encode(r.originalLine-1-u),u=r.originalLine-1,n+=e.encode(r.originalColumn-l),l=r.originalColumn,null!=r.name&&(i=this._names.indexOf(r.name),n+=e.encode(i-c),c=i)),d+=n}return d},i.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));var r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},i.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},sourceMapGenerator.SourceMapGenerator=i,sourceMapGenerator}var sourceMapConsumer={},binarySearch={},hasRequiredBinarySearch;function requireBinarySearch(){return hasRequiredBinarySearch||(hasRequiredBinarySearch=1,function(e){function t(n,r,i,a,o,s){var l=Math.floor((r-n)/2)+n,u=o(i,a[l],!0);return 0===u?l:u>0?r-l>1?t(l,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:l:l-n>1?t(n,l,i,a,o,s):s==e.LEAST_UPPER_BOUND?l:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,i,a){if(0===r.length)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o}}(binarySearch)),binarySearch}var quickSort={},hasRequiredQuickSort,hasRequiredSourceMapConsumer;function requireQuickSort(){if(hasRequiredQuickSort)return quickSort;function e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function t(n,r,i,a){if(i<a){var o=i-1;e(n,(c=i,h=a,Math.round(c+Math.random()*(h-c))),a);for(var s=n[a],l=i;l<a;l++)r(n[l],s)<=0&&e(n,o+=1,l);e(n,o+1,l);var u=o+1;t(n,r,i,u-1),t(n,r,u+1,a)}var c,h}return hasRequiredQuickSort=1,quickSort.quickSort=function(e,n){t(e,n,0,e.length-1)},quickSort}function requireSourceMapConsumer(){if(hasRequiredSourceMapConsumer)return sourceMapConsumer;hasRequiredSourceMapConsumer=1;var e=requireUtil(),t=requireBinarySearch(),n=requireArraySet().ArraySet,r=requireBase64Vlq(),i=requireQuickSort().quickSort;function a(t,n){var r=t;return"string"==typeof t&&(r=e.parseSourceMapInput(t)),null!=r.sections?new l(r,n):new o(r,n)}function o(t,r){var i=t;"string"==typeof t&&(i=e.parseSourceMapInput(t));var a=e.getArg(i,"version"),o=e.getArg(i,"sources"),s=e.getArg(i,"names",[]),l=e.getArg(i,"sourceRoot",null),u=e.getArg(i,"sourcesContent",null),c=e.getArg(i,"mappings"),h=e.getArg(i,"file",null);if(a!=this._version)throw new Error("Unsupported version: "+a);l&&(l=e.normalize(l)),o=o.map(String).map(e.normalize).map((function(t){return l&&e.isAbsolute(l)&&e.isAbsolute(t)?e.relative(l,t):t})),this._names=n.fromArray(s.map(String),!0),this._sources=n.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(t){return e.computeSourceURL(l,t,r)})),this.sourceRoot=l,this.sourcesContent=u,this._mappings=c,this._sourceMapURL=r,this.file=h}function s(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function l(t,r){var i=t;"string"==typeof t&&(i=e.parseSourceMapInput(t));var o=e.getArg(i,"version"),s=e.getArg(i,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new n,this._names=new n;var l={line:-1,column:0};this._sections=s.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var n=e.getArg(t,"offset"),i=e.getArg(n,"line"),o=e.getArg(n,"column");if(i<l.line||i===l.line&&o<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new a(e.getArg(t,"map"),r)}}))}return a.fromSourceMap=function(e,t){return o.fromSourceMap(e,t)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},a.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(t,n,r){var i,o=n||null;switch(r||a.GENERATED_ORDER){case a.GENERATED_ORDER:i=this._generatedMappings;break;case a.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var s=this.sourceRoot;i.map((function(t){var n=null===t.source?null:this._sources.at(t.source);return{source:n=e.computeSourceURL(s,n,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,o)},a.prototype.allGeneratedPositionsFor=function(n){var r=e.getArg(n,"line"),i={source:e.getArg(n,"source"),originalLine:r,originalColumn:e.getArg(n,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===n.column)for(var l=s.originalLine;s&&s.originalLine===l;)a.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var u=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==u;)a.push({line:e.getArg(s,"generatedLine",null),column:e.getArg(s,"generatedColumn",null),lastColumn:e.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},sourceMapConsumer.SourceMapConsumer=a,o.prototype=Object.create(a.prototype),o.prototype.consumer=a,o.prototype._findSourceIndex=function(t){var n,r=t;if(null!=this.sourceRoot&&(r=e.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==t)return n;return-1},o.fromSourceMap=function(t,r){var a=Object.create(o.prototype),l=a._names=n.fromArray(t._names.toArray(),!0),u=a._sources=n.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=r,a._absoluteSources=a._sources.toArray().map((function(t){return e.computeSourceURL(a.sourceRoot,t,r)}));for(var c=t._mappings.toArray().slice(),h=a.__generatedMappings=[],d=a.__originalMappings=[],f=0,p=c.length;f<p;f++){var v=c[f],m=new s;m.generatedLine=v.generatedLine,m.generatedColumn=v.generatedColumn,v.source&&(m.source=u.indexOf(v.source),m.originalLine=v.originalLine,m.originalColumn=v.originalColumn,v.name&&(m.name=l.indexOf(v.name)),d.push(m)),h.push(m)}return i(a.__originalMappings,e.compareByOriginalPositions),a},o.prototype._version=3,Object.defineProperty(o.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),o.prototype._parseMappings=function(t,n){for(var a,o,l,u,c,h=1,d=0,f=0,p=0,v=0,m=0,g=t.length,y=0,b={},A={},S=[],x=[];y<g;)if(";"===t.charAt(y))h++,y++,d=0;else if(","===t.charAt(y))y++;else{for((a=new s).generatedLine=h,u=y;u<g&&!this._charIsMappingSeparator(t,u);u++);if(l=b[o=t.slice(y,u)])y+=o.length;else{for(l=[];y<u;)r.decode(t,y,A),c=A.value,y=A.rest,l.push(c);if(2===l.length)throw new Error("Found a source, but no line and column");if(3===l.length)throw new Error("Found a source and line, but no column");b[o]=l}a.generatedColumn=d+l[0],d=a.generatedColumn,l.length>1&&(a.source=v+l[1],v+=l[1],a.originalLine=f+l[2],f=a.originalLine,a.originalLine+=1,a.originalColumn=p+l[3],p=a.originalColumn,l.length>4&&(a.name=m+l[4],m+=l[4])),x.push(a),"number"==typeof a.originalLine&&S.push(a)}i(x,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,i(S,e.compareByOriginalPositions),this.__originalMappings=S},o.prototype._findMapping=function(e,n,r,i,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return t.search(e,n,a,o)},o.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},o.prototype.originalPositionFor=function(t){var n={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(t,"bias",a.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var o=e.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=e.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=e.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:e.getArg(i,"originalLine",null),column:e.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},o.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},o.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i,a=t;if(null!=this.sourceRoot&&(a=e.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=e.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(n)return null;throw new Error('"'+a+'" is not in the SourceMap.')},o.prototype.generatedPositionFor=function(t){var n=e.getArg(t,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(t,"bias",a.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:e.getArg(o,"generatedLine",null),column:e.getArg(o,"generatedColumn",null),lastColumn:e.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},sourceMapConsumer.BasicSourceMapConsumer=o,l.prototype=Object.create(a.prototype),l.prototype.constructor=a,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(n){var r={generatedLine:e.getArg(n,"line"),generatedColumn:e.getArg(n,"column")},i=t.search(r,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:n.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer._findSourceIndex(e.getArg(t,"source"))){var i=r.consumer.generatedPositionFor(t);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var a=this._sections[r],o=a.consumer._generatedMappings,s=0;s<o.length;s++){var l=o[s],u=a.consumer._sources.at(l.source);u=e.computeSourceURL(a.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var c=null;l.name&&(c=a.consumer._names.at(l.name),this._names.add(c),c=this._names.indexOf(c));var h={source:u,generatedLine:l.generatedLine+(a.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(a.generatedOffset.generatedLine===l.generatedLine?a.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:c};this.__generatedMappings.push(h),"number"==typeof h.originalLine&&this.__originalMappings.push(h)}i(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),i(this.__originalMappings,e.compareByOriginalPositions)},sourceMapConsumer.IndexedSourceMapConsumer=l,sourceMapConsumer}var sourceNode={},hasRequiredSourceNode,hasRequiredSourceMap;function requireSourceNode(){if(hasRequiredSourceNode)return sourceNode;hasRequiredSourceNode=1;var e=requireSourceMapGenerator().SourceMapGenerator,t=requireUtil(),n=/(\r?\n)/,r="$$$isSourceNode$$$";function i(e,t,n,i,a){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==a?null:a,this[r]=!0,null!=i&&this.add(i)}return i.fromStringWithSourceMap=function(e,r,a){var o=new i,s=e.split(n),l=0,u=function(){return e()+(e()||"");function e(){return l<s.length?s[l++]:void 0}},c=1,h=0,d=null;return r.eachMapping((function(e){if(null!==d){if(!(c<e.generatedLine)){var t=(n=s[l]||"").substr(0,e.generatedColumn-h);return s[l]=n.substr(e.generatedColumn-h),h=e.generatedColumn,f(d,t),void(d=e)}f(d,u()),c++,h=0}for(;c<e.generatedLine;)o.add(u()),c++;if(h<e.generatedColumn){var n=s[l]||"";o.add(n.substr(0,e.generatedColumn)),s[l]=n.substr(e.generatedColumn),h=e.generatedColumn}d=e}),this),l<s.length&&(d&&f(d,u()),o.add(s.splice(l).join(""))),r.sources.forEach((function(e){var n=r.sourceContentFor(e);null!=n&&(null!=a&&(e=t.join(a,e)),o.setSourceContent(e,n))})),o;function f(e,n){if(null===e||void 0===e.source)o.add(n);else{var r=a?t.join(a,e.source):e.source;o.add(new i(e.originalLine,e.originalColumn,r,n,e.name))}}},i.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},i.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},i.prototype.walk=function(e){for(var t,n=0,i=this.children.length;n<i;n++)(t=this.children[n])[r]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},i.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[r]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},i.prototype.setSourceContent=function(e,n){this.sourceContents[t.toSetString(e)]=n},i.prototype.walkSourceContents=function(e){for(var n=0,i=this.children.length;n<i;n++)this.children[n][r]&&this.children[n].walkSourceContents(e);var a=Object.keys(this.sourceContents);for(n=0,i=a.length;n<i;n++)e(t.fromSetString(a[n]),this.sourceContents[a[n]])},i.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},i.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new e(t),i=!1,a=null,o=null,s=null,l=null;return this.walk((function(e,t){n.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(a===t.source&&o===t.line&&s===t.column&&l===t.name||r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),a=t.source,o=t.line,s=t.column,l=t.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),a=null,i=!1);for(var u=0,c=e.length;u<c;u++)10===e.charCodeAt(u)?(n.line++,n.column=0,u+1===c?(a=null,i=!1):i&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:n.code,map:r}},sourceNode.SourceNode=i,sourceNode}function requireSourceMap(){return hasRequiredSourceMap||(hasRequiredSourceMap=1,sourceMap.SourceMapGenerator=requireSourceMapGenerator().SourceMapGenerator,sourceMap.SourceMapConsumer=requireSourceMapConsumer().SourceMapConsumer,sourceMap.SourceNode=requireSourceNode().SourceNode),sourceMap}!function(e,t){t.__esModule=!0;var n=utils,r=void 0;try{var i=requireSourceMap();r=i.SourceNode}catch(err){}function a(e,t,r){if(n.isArray(e)){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t.wrap(e[a],r));return i}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}r||((r=function(e,t,n,r){this.src="",r&&this.add(r)}).prototype={add:function(e){n.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){n.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new r(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof r?e:(e=a(e,this,t),new r(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,n=[];Object.keys(e).forEach((function(r){var i=a(e[r],t);"undefined"!==i&&n.push([t.quotedString(r),":",i])}));var r=this.generateList(n);return r.prepend("{"),r.add("}"),r},generateList:function(e){for(var t=this.empty(),n=0,r=e.length;n<r;n++)n&&t.add(","),t.add(a(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}(codeGen,codeGenExports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=base$1,i=n(exceptionExports),a=utils,o=n(codeGenExports);function s(e){this.value=e}function l(){}l.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=r.COMPILER_REVISION;return[e,r.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return a.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var a=e.opcodes,o=void 0,s=void 0,l=void 0,u=void 0;for(l=0,u=a.length;l<u;l++)o=a[l],this.source.currentLocation=o.loc,s=s||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=s,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new i.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var c=this.createFunctionContext(r);if(this.isChild)return c;var h={compiler:this.compilerInfo(),main:c};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,f=d.programs,p=d.decorators;for(l=0,u=f.length;l<u;l++)f[l]&&(h[l]=f[l],p[l]&&(h[l+"_d"]=p[l],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),r?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),t.srcName?(h=h.toStringWithSourceMap({file:t.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new o.default(this.options.srcName),this.decorators=new o.default(this.options.srcName)},createFunctionContext:function(e){var t=this,n="",r=this.stackVars.concat(this.registers.list);r.length>0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+e,r.children[0]="alias"+i)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var o=this.mergeSource(n);return e?(a.push(o),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,a=void 0,o=void 0;return this.source.each((function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,o=e):(a&&(i?a.prepend("buffer += "):r=!0,o.add(";"),a=o=void 0),i=!0,t||(n=!1))})),n?a?(a.prepend("return "),o.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r){var i=t.popStack(),a=0,o=n.length;e&&o--;for(;a<o;a++)i=t.nameLookup(i,n[a],r);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[a]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&i,this,t,e));else for(var o=t.length;n<o;n++)this.replaceStack((function(i){var o=a.nameLookup(i,t[n],e);return r?[" && ",o]:[" != null ? ",o," : ",i]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),i=this.setupHelper(e,t),a=[];n&&a.push(i.name),a.push(r),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var o=["(",this.itemsSeparatedBy(a,"||"),")"],s=this.source.functionCall(o,"call",i.callParams);this.push(s)},itemsSeparatedBy:function(e,t){var n=[];n.push(e[0]);for(var r=1;r<e.length;r++)n.push(t,e[r]);return n},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",n,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],i=this.setupParams(t,1,r);e&&(t=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),r&&(a.types[e]=r),i&&(a.ids[e]=i),a.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:l,compileChildren:function(e,t){for(var n=e.children,r=void 0,i=void 0,a=0,o=n.length;a<o;a++){r=n[a],i=new this.compiler;var s=this.matchExistingProgram(r);if(null==s){this.context.programs.push("");var l=this.context.programs.length;r.index=l,r.name="program"+l,this.context.programs[l]=i.compile(r,t,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=s.index,r.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof s||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new s(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,r=void 0,a=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var o=this.popStack(!0);if(o instanceof s)t=["(",n=[o.value]],a=!0;else{r=!0;var l=this.incrStack();t=["((",this.push(l)," = ",o,")"],n=this.topStack()}var u=e.call(this,n);a||this.popStack(),r&&this.stackSlot--,this.push(t.concat(u,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r instanceof s)this.compileStack.push(r);else{var i=this.incrStack();this.pushSource([i," = ",r,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof s)return n.value;if(!t){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof s?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,n),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,n){var r={},i=[],a=[],o=[],s=!n,l=void 0;s&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var u=this.popStack(),c=this.popStack();(c||u)&&(r.fn=c||"container.noop",r.inverse=u||"container.noop");for(var h=t;h--;)l=this.popStack(),n[h]=l,this.trackIds&&(o[h]=this.popStack()),this.stringParams&&(a[h]=this.popStack(),i[h]=this.popStack());return s&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(o)),this.stringParams&&(r.types=this.source.generateArray(a),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var i=this.setupParams(e,t,n);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=l.RESERVED_WORDS={},n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),l.isValidJavaScriptVariableName=function(e){return!l.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=l,e.exports=t.default}(javascriptCompiler,javascriptCompilerExports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(handlebars_runtimeExports),i=n(astExports),a=base,o=compiler,s=n(javascriptCompilerExports),l=n(visitorExports),u=n(noConflictExports),c=r.default.create;function h(){var e=c();return e.compile=function(t,n){return o.compile(t,n,e)},e.precompile=function(t,n){return o.precompile(t,n,e)},e.AST=i.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=s.default,e.Parser=a.parser,e.parse=a.parse,e.parseWithoutProcessing=a.parseWithoutProcessing,e}var d=h();d.create=h,u.default(d),d.Visitor=l.default,d.default=d,t.default=d,e.exports=t.default}(handlebars,handlebarsExports);var createIsSecureContext=function(e){return null!==e&&e.isSecureContext},createNativeAudioBufferConstructor=function(e){return null===e?null:e.hasOwnProperty("AudioBuffer")?e.AudioBuffer:null},createNativeAudioContextConstructor=function(e){return null===e?null:e.hasOwnProperty("AudioContext")?e.AudioContext:e.hasOwnProperty("webkitAudioContext")?e.webkitAudioContext:null},createNativeAudioWorkletNodeConstructor=function(e){return null===e?null:e.hasOwnProperty("AudioWorkletNode")?e.AudioWorkletNode:null},createNativeOfflineAudioContextConstructor=function(e){return null===e?null:e.hasOwnProperty("OfflineAudioContext")?e.OfflineAudioContext:e.hasOwnProperty("webkitOfflineAudioContext")?e.webkitOfflineAudioContext:null},createWindow=function(){return"undefined"==typeof window?null:window},window$1=createWindow();createNativeOfflineAudioContextConstructor(window$1),createNativeAudioContextConstructor(window$1),createNativeAudioWorkletNodeConstructor(window$1),createNativeAudioBufferConstructor(window$1),createIsSecureContext(window$1);var libExports$2={},lib$2={get exports(){return libExports$2},set exports(e){libExports$2=e}},libExports$1={},lib$1={get exports(){return libExports$1},set exports(e){libExports$1=e}};function b64ToUint6(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0}function decode(e,t){for(var n,r,i=e.replace(/[^A-Za-z0-9\+\/]/g,""),a=i.length,o=t?Math.ceil((3*a+1>>2)/t)*t:3*a+1>>2,s=new Uint8Array(o),l=0,u=0,c=0;c<a;c++)if(r=3&c,l|=b64ToUint6(i.charCodeAt(c))<<18-6*r,3===r||a-c==1){for(n=0;n<3&&u<o;n++,u++)s[u]=l>>>(16>>>n&24)&255;l=0}return s}var base64={decode:decode},fetch$1=function(e,t){return new Promise((function(n,r){var i=new XMLHttpRequest;t&&(i.responseType=t),i.open("GET",e),i.onload=function(){200===i.status?n(i.response):r(Error(i.statusText))},i.onerror=function(){r(Error("Network Error"))},i.send()}))};!function(e){var t=base64,n=fetch$1;function r(e){return function(t){return"string"==typeof t&&e.test(t)}}function i(e,t){return"string"==typeof e?e+t:"function"==typeof e?e(t):t}function a(e,t,n,r){var i=t instanceof ArrayBuffer?o:s(t)?l:function(e){return e&&"function"==typeof e.then}(t)?u:c(t)?h:function(e){return e&&"object"===_typeof2(e)}(t)?d:f(t)?p:v(t)?m:g(t)?y:null;return i?i(e,t,n||{}):r?Promise.resolve(r):Promise.reject("Source not valid ("+t+")")}function o(e,t,n){return new Promise((function(n,r){e.decodeAudioData(t,(function(e){n(e)}),(function(){r("Can't decode audio data ("+t.slice(0,30)+"...)")}))}))}a.fetch=n;var s=r(/\.(mp3|wav|ogg)(\?.*)?$/i);function l(e,t,n){var r=i(n.from,t);return a(e,a.fetch(r,"arraybuffer"),n)}function u(e,t,n){return t.then((function(t){return a(e,t,n)}))}var c=Array.isArray;function h(e,t,n){return Promise.all(t.map((function(t){return a(e,t,n,t)})))}function d(e,t,n){var r={},i=Object.keys(t).map((function(i){if(n.only&&-1===n.only.indexOf(i))return null;var o=t[i];return a(e,o,n,o).then((function(e){r[i]=e}))}));return Promise.all(i).then((function(){return r}))}var f=r(/\.json(\?.*)?$/i);function p(e,t,n){var r=i(n.from,t);return a(e,a.fetch(r,"text").then(JSON.parse),n)}var v=r(/^data:audio/);function m(e,n,r){var i=n.indexOf(",");return a(e,t.decode(n.slice(i+1)).buffer,r)}var g=r(/\.js(\?.*)?$/i);function y(e,t,n){var r=i(n.from,t);return a(e,a.fetch(r,"text").then(b),n)}function b(e){var t=e.indexOf("MIDI.Soundfont.");if(t<0)throw Error("Invalid MIDI.js Soundfont format");t=e.indexOf("=",t)+2;var n=e.lastIndexOf(",");return JSON.parse(e.slice(t,n)+"}")}e.exports&&(e.exports=a),"undefined"!=typeof window&&(window.loadAudio=a)}(lib$1);var libExports={},lib={get exports(){return libExports},set exports(e){libExports=e}},adsr=ADSR$1;function ADSR$1(e){var t=e.createGain(),n=t._voltage=getVoltage(e),r=scale(n),i=scale(n),a=scale(n);return t._startAmount=scale(i),t._endAmount=scale(a),t._multiplier=scale(r),t._multiplier.connect(t),t._startAmount.connect(t),t._endAmount.connect(t),t.value=r.gain,t.startValue=i.gain,t.endValue=a.gain,t.startValue.value=0,t.endValue.value=0,Object.defineProperties(t,props),t}var props={attack:{value:0,writable:!0},decay:{value:0,writable:!0},sustain:{value:1,writable:!0},release:{value:0,writable:!0},getReleaseDuration:{value:function(){return this.release}},start:{value:function(e){var t=this._multiplier.gain,n=this._startAmount.gain,r=this._endAmount.gain;this._voltage.start(e),this._decayFrom=this._decayFrom=e+this.attack,this._startedAt=e;var i=this.sustain;t.cancelScheduledValues(e),n.cancelScheduledValues(e),r.cancelScheduledValues(e),r.setValueAtTime(0,e),this.attack?(t.setValueAtTime(0,e),t.linearRampToValueAtTime(1,e+this.attack),n.setValueAtTime(1,e),n.linearRampToValueAtTime(0,e+this.attack)):(t.setValueAtTime(1,e),n.setValueAtTime(0,e)),this.decay&&t.setTargetAtTime(i,this._decayFrom,getTimeConstant(this.decay))}},stop:{value:function(e,t){t&&(e-=this.release);var n=e+this.release;if(this.release){var r=this._multiplier.gain,i=this._startAmount.gain,a=this._endAmount.gain;r.cancelScheduledValues(e),i.cancelScheduledValues(e),a.cancelScheduledValues(e);var o=getTimeConstant(this.release);if(this.attack&&e<this._decayFrom){var s=getValue(0,1,this._startedAt,this._decayFrom,e);r.linearRampToValueAtTime(s,e),i.linearRampToValueAtTime(1-s,e),i.setTargetAtTime(0,e,o)}a.setTargetAtTime(1,e,o),r.setTargetAtTime(0,e,o)}return this._voltage.stop(n),n}},onended:{get:function(){return this._voltage.onended},set:function(e){this._voltage.onended=e}}},flat=new Float32Array([1,1]);function getVoltage(e){var t=e.createBufferSource(),n=e.createBuffer(1,2,e.sampleRate);return n.getChannelData(0).set(flat),t.buffer=n,t.loop=!0,t}function scale(e){var t=e.context.createGain();return e.connect(t),t}function getTimeConstant(e){return Math.log(e+1)/Math.log(100)}function getValue(e,t,n,r,i){var a=e+(i-n)/(r-n)*(t-e);return a<=e&&(a=e),a>=t&&(a=t),a}var ADSR=adsr,EMPTY={},DEFAULTS={gain:1,attack:.01,decay:.1,sustain:.9,release:.3,loop:!1,cents:0,loopStart:0,loopEnd:0};function SamplePlayer(e,t,n){var r=!1,i=0,a={},o=e.createGain();o.gain.value=1;var s=Object.assign({},DEFAULTS,n),l={context:e,out:o,opts:s};return t instanceof AudioBuffer?l.buffer=t:l.buffers=t,l.start=function(t,n,o){if(l.buffer&&null!==t)return l.start(null,t,n);var s=t?l.buffers[t]:l.buffer;if(s){if(r){var c=o||EMPTY;n=Math.max(e.currentTime,n||0),l.emit("start",n,t,c);var h=u(t,s,c);return h.id=function(t,n){return n.id=i++,a[n.id]=n,n.source.onended=function(){var t=e.currentTime;n.source.disconnect(),n.env.disconnect(),n.disconnect(),l.emit("ended",t,n.id,n)},n.id}(0,h),h.env.start(n),h.source.start(n),l.emit("started",n,h.id,h),c.duration&&h.stop(n+c.duration),h}console.warn("SamplePlayer not connected to any node.")}else console.warn("Buffer "+t+" not found.")},l.play=function(e,t,n){return l.start(e,t,n)},l.stop=function(e,t){var n;return(t=t||Object.keys(a)).map((function(t){return(n=a[t])?(n.stop(e),n.id):null}))},l.connect=function(e){return r=!0,o.connect(e),l},l.emit=function(e,t,n,r){l.onevent&&l.onevent(e,t,n,r);var i=l["on"+e];i&&i(t,n,r)},l;function u(t,n,r){var i=e.createGain();return i.gain.value=0,i.connect(o),i.env=envelope(e,r,s),i.env.connect(i.gain),i.source=e.createBufferSource(),i.source.buffer=n,i.source.connect(i),i.source.loop=r.loop||s.loop,i.source.playbackRate.value=centsToRate(r.cents||s.cents),i.source.loopStart=r.loopStart||s.loopStart,i.source.loopEnd=r.loopEnd||s.loopEnd,i.stop=function(n){var r=n||e.currentTime;l.emit("stop",r,t);var a=i.env.stop(r);i.source.stop(a)},i}}function isNum$1(e){return"number"==typeof e}var PARAMS=["attack","decay","sustain","release"];function envelope(e,t,n){var r=ADSR(e),i=t.adsr||n.adsr;return PARAMS.forEach((function(e,a){r[e]=i?i[a]:t[e]||n[e]})),r.value.value=isNum$1(t.gain)?t.gain:isNum$1(n.gain)?n.gain:1,r}function centsToRate(e){return e?Math.pow(2,e/1200):1}var player=SamplePlayer,events=function(e){return e.on=function(t,n){if(1===arguments.length&&"function"==typeof t)return e.on("event",t);var r="on"+t,i=e[r];return e[r]=i?chain(i,n):n,e},e};function chain(e,t){return function(n,r,i,a){e(n,r,i,a),t(n,r,i,a)}}var REGEX$1=/^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;function regex$1(){return REGEX$1}var SEMITONES$1=[0,2,4,5,7,9,11];function parse$1(e,t,n){if("string"!=typeof e)return null;var r=REGEX$1.exec(e);if(!r||!t&&r[4])return null;var i={letter:r[1].toUpperCase(),acc:r[2].replace(/x/g,"##")};return i.pc=i.letter+i.acc,i.step=(i.letter.charCodeAt(0)+3)%7,i.alt="b"===i.acc[0]?-i.acc.length:i.acc.length,i.chroma=SEMITONES$1[i.step]+i.alt,r[3]&&(i.oct=+r[3],i.midi=i.chroma+12*(i.oct+1),i.freq=midiToFreq$1(i.midi,n)),t&&(i.tonicOf=r[4]),i}function midiToFreq$1(e,t){return Math.pow(2,(e-69)/12)*(t||440)}var parser={parse:parse$1,regex:regex$1,midiToFreq:midiToFreq$1},FNS=["letter","acc","pc","step","alt","chroma","oct","midi","freq"];FNS.forEach((function(e){parser[e]=function(t){var n=parse$1(t);return n&&void 0!==n[e]?n[e]:null}}));var noteParser$1=parser,note=noteParser$1,isMidi=function(e){return null!==e&&e!==[]&&e>=0&&e<129},toMidi=function(e){return isMidi(e)?+e:note.midi(e)},notes=function(e){if(e.buffers){var t=e.opts.map,n="function"==typeof t?t:toMidi,r=function(e){return e?n(e)||e:null};e.buffers=mapBuffers(e.buffers,r);var i=e.start;e.start=function(e,t,n){var a=r(e),o=a%1;return o&&(a=Math.floor(a),n=Object.assign(n||{},{cents:Math.floor(100*o)})),i(a,t,n)}}return e};function mapBuffers(e,t){return Object.keys(e).reduce((function(n,r){return n[t(r)]=e[r],n}),{})}var isArr=Array.isArray,isObj=function(e){return e&&"object"===_typeof2(e)},OPTS={},scheduler=function(e){return e.schedule=function(t,n){var r,i,a,o,s=e.context.currentTime,l=t<s?s:t;return e.emit("schedule",l,n),n.map((function(t){return t?(isArr(t)?(r=t[0],i=t[1]):(r=t.time,i=t),isObj(i)?(a=i.name||i.key||i.note||i.midi||null,o=i):(a=i,o=OPTS),e.start(a,l+(r||0),o)):null}))},e},index_minExports={},index_min={get exports(){return index_minExports},set exports(e){index_minExports=e}};!function(e,t){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof commonjsRequire&&commonjsRequire;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){var n=t[o][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof commonjsRequire&&commonjsRequire,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){function t(e){if(this._event=e,this._data=e.data,this.receivedTime=e.receivedTime,this._data&&this._data.length<2)console.warn("Illegal MIDI message of length",this._data.length);else switch(this._messageCode=240&e.data[0],this.channel=15&e.data[0],this._messageCode){case 128:this.messageType="noteoff",this.key=127&e.data[1],this.velocity=127&e.data[2];break;case 144:this.messageType="noteon",this.key=127&e.data[1],this.velocity=127&e.data[2];break;case 160:this.messageType="keypressure",this.key=127&e.data[1],this.pressure=127&e.data[2];break;case 176:this.messageType="controlchange",this.controllerNumber=127&e.data[1],this.controllerValue=127&e.data[2],120===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="allsoundoff":121===this.controllerNumber?this.channelModeMessage="resetallcontrollers":122===this.controllerNumber?0===this.controllerValue?this.channelModeMessage="localcontroloff":this.channelModeMessage="localcontrolon":123===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="allnotesoff":124===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="omnimodeoff":125===this.controllerNumber&&0===this.controllerValue?this.channelModeMessage="omnimodeon":126===this.controllerNumber?this.channelModeMessage="monomodeon":127===this.controllerNumber&&(this.channelModeMessage="polymodeon");break;case 192:this.messageType="programchange",this.program=e.data[1];break;case 208:this.messageType="channelpressure",this.pressure=127&e.data[1];break;case 224:this.messageType="pitchbendchange";var t=127&e.data[2],n=127&e.data[1];this.pitchBend=(t<<8)+n}}return new t(e)},t.exports=n.default},{}]},{},[1])(1)}(index_min);var midimessage=index_minExports,midi$1=function(e){return e.listenToMidi=function(t,n){var r={},i=n||{},a=i.gain||function(e){return e/127};return t.onmidimessage=function(t){var n=t.messageType?t:midimessage(t);if("noteon"===n.messageType&&0===n.velocity&&(n.messageType="noteoff"),!i.channel||n.channel===i.channel)switch(n.messageType){case"noteon":r[n.key]=e.play(n.key,0,{gain:a(n.velocity)});break;case"noteoff":r[n.key]&&(r[n.key].stop(),delete r[n.key])}},e},e};function fillStr(e,t){return Array(t+1).join(e)}function isNum(e){return"number"==typeof e}function isStr(e){return"string"==typeof e}function isDef(e){return void 0!==e}function midiToFreq(e,t){return Math.pow(2,(e-69)/12)*(t||440)}!function(e){var t=player,n=events,r=notes,i=scheduler,a=midi$1;function o(e,o,s){return a(i(r(n(t(e,o,s)))))}e.exports&&(e.exports=o),"undefined"!=typeof window&&(window.SamplePlayer=o)}(lib);var REGEX=/^([a-gA-G])(#{1,}|b{1,}|x{1,}|)(-?\d*)\s*(.*)\s*$/;function regex(){return REGEX}var SEMITONES=[0,2,4,5,7,9,11];function parse(e,t,n){if("string"!=typeof e)return null;var r=REGEX.exec(e);if(!r||!t&&r[4])return null;var i={letter:r[1].toUpperCase(),acc:r[2].replace(/x/g,"##")};i.pc=i.letter+i.acc,i.step=(i.letter.charCodeAt(0)+3)%7,i.alt="b"===i.acc[0]?-i.acc.length:i.acc.length;var a=SEMITONES[i.step]+i.alt;return i.chroma=a<0?12+a:a%12,r[3]&&(i.oct=+r[3],i.midi=a+12*(i.oct+1),i.freq=midiToFreq(i.midi,n)),t&&(i.tonicOf=r[4]),i}var LETTERS="CDEFGAB";function accStr(e){return isNum(e)?e<0?fillStr("b",-e):fillStr("#",e):""}function octStr(e){return isNum(e)?""+e:""}function build(e,t,n){return null==e?null:e.step?build(e.step,e.alt,e.oct):e<0||e>6?null:LETTERS.charAt(e)+accStr(t)+octStr(n)}function midi(e){if((isNum(e)||isStr(e))&&e>=0&&e<128)return+e;var t=parse(e);return t&&isDef(t.midi)?t.midi:null}function freq(e,t){var n=midi(e);return null===n?null:midiToFreq(n,t)}function letter(e){return(parse(e)||{}).letter}function acc(e){return(parse(e)||{}).acc}function pc(e){return(parse(e)||{}).pc}function step(e){return(parse(e)||{}).step}function alt(e){return(parse(e)||{}).alt}function chroma(e){return(parse(e)||{}).chroma}function oct(e){return(parse(e)||{}).oct}var noteParser=Object.freeze(Object.defineProperty({__proto__:null,acc:acc,alt:alt,build:build,chroma:chroma,freq:freq,letter:letter,midi:midi,oct:oct,parse:parse,pc:pc,regex:regex,step:step},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(noteParser),legacy,hasRequiredLegacy;function requireLegacy(){if(hasRequiredLegacy)return legacy;hasRequiredLegacy=1;var e=require$$0;function t(e,n){if(console.warn("new Soundfont() is deprected"),console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"),!(this instanceof t))return new t(e);this.nameToUrl=n||t.nameToUrl,this.ctx=e,this.instruments={},this.promises=[]}function n(t,n){return n=n||{},function(r,i,a,o){console.warn("The oscillator player is deprecated."),console.log("Starting with version 0.9.0 you will have to wait until the soundfont is loaded to play sounds.");var s=r>0&&r<129?+r:e.midi(r),l=s?e.midiToFreq(s,440):null;if(l){a=a||.2;var u=(o=o||{}).destination||n.destination||t.destination,c=o.vcoType||n.vcoType||"sine",h=o.gain||n.gain||.4,d=t.createOscillator();d.type=c,d.frequency.value=l;var f=t.createGain();return f.gain.value=h,d.connect(f),f.connect(u),d.start(i),a>0&&d.stop(i+a),d}}}return t.prototype.onready=function(e){console.warn("deprecated API"),console.log("Please use Promise.all(Soundfont.instrument(), Soundfont.instrument()).then() instead of new Soundfont().onready()"),Promise.all(this.promises).then(e)},t.prototype.instrument=function(e,r){console.warn("new Soundfont().instrument() is deprecated."),console.log("Please use Soundfont.instrument() instead.");var i=this.ctx;if((e=e||"default")in this.instruments)return this.instruments[e];var a={name:e,play:n(i,r)};if(this.instruments[e]=a,"default"!==e){var o=t.instrument(i,e,r).then((function(e){return a.play=e.play,a}));this.promises.push(o),a.onready=function(e){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),o.then(e)}}else a.onready=function(e){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),e()};return a},t.loadBuffers=function(e,n,r){return console.warn("Soundfont.loadBuffers is deprecate."),console.log("Use Soundfont.instrument(..) and get buffers properties from the result."),t.instrument(e,n,r).then((function(e){return e.buffers}))},t.noteToMidi=e.midi,legacy=t}!function(e){var t=libExports$1,n=libExports;function r(e){return/\.js(\?.*)?$/i.test(e)}function i(e,t,n){return"https://gleitz.github.io/midi-js-soundfonts/"+(t="FluidR3_GM"===t?t:"MusyngKite")+"/"+e+"-"+(n="ogg"===n?n:"mp3")+".js"}var a=requireLegacy();a.instrument=function e(a,o,s){if(1===arguments.length)return function(t,n){return e(a,t,n)};var l=s||{},u=l.isSoundfontURL||r,c=l.nameToUrl||i,h=u(o)?o:c(o,l.soundfont,l.format);return t(a,h,{only:l.only||l.notes}).then((function(e){var t=n(a,e,l).connect(l.destination?l.destination:a.destination);return t.url=h,t.name=o,t}))},a.nameToUrl=i,e.exports&&(e.exports=a),"undefined"!=typeof window&&(window.Soundfont=a)}(lib$2),NoteEnum.C,NoteEnum.D,NoteEnum.E,NoteEnum.F,NoteEnum.G,NoteEnum.A,NoteEnum.B;var speedInfo={"rall.":1.333333333,"poco rit.":1.333333333,"rit.":1.333333333,"molto rit.":1.333333333,"molto rall":1.333333333,molto:1.333333333,lentando:1.333333333,allargando:1.333333333,morendo:1.333333333,"accel.":.8,calando:2,"poco accel.":.8,"gradually slowing":1.333333333,slowing:1.333333333,slow:1.333333333,slowly:1.333333333,faster:1.333333333},getNextNote=function(e,t){for(var n=0,r=e.closest(t),i=r,a=null==r?void 0:r.closest("measure"),o=null;!o&&n<((null==a?void 0:a.childNodes.length)||50);){var s,l,u,c;if(n++,"note"===(null===(s=i)||void 0===s||null===(l=s.nextElementSibling)||void 0===l?void 0:l.tagName))o=null===(c=i)||void 0===c?void 0:c.nextElementSibling;i=null===(u=i)||void 0===u?void 0:u.nextElementSibling}return o},getGradualLengthByXml=function(e){for(var t=(new DOMParser).parseFromString(e,"text/xml"),n=Array.from(t.querySelectorAll("measure")),r=Array.from(t.querySelectorAll("note")),i=Array.from(t.querySelectorAll("words")),a=Array.from(t.querySelectorAll("metronome")),o=[],s=function(){var e=u[l],t=getNextNote(e,"direction");if(t){for(var i=null==t?void 0:t.closest("measure"),a=Array.from(i.querySelectorAll("note")),s=Array.from(i.childNodes).filter((function(e){return"note"===e.nodeName})).findIndex((function(e){return e===t})),c=0,h=0,d=0;d<a.length;d++){var f;c+=+((null===(f=a[d].querySelector("duration"))||void 0===f?void 0:f.textContent)||"0"),d<s&&(h=c)}o.push({ele:e,index:r.indexOf(t),noteInMeasureIndex:s,textContent:e.textContent,measureIndex:n.indexOf(i),type:e.tagName,allDuration:c,leftDuration:h})}},l=0,u=[].concat(i,a);l<u.length;l++)s();o.push({ele:r[r.length-1],index:r.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:n.length});var c=[];o.sort((function(e,t){return e.index-t.index}));for(var h=Object.keys(speedInfo).map((function(e){return e.toLocaleLowerCase()})),d=function(){var e,t,n=p[f],r=!1,i=0,a=null===(e=n.textContent)||void 0===e?void 0:e.toLocaleLowerCase().trim();n===o[o.length-1]&&(1===(null===(t=c[c.length-1])||void 0===t?void 0:t.length)&&(r=!0));var s=h.find((function(e){var t=e.split(" ");return a&&t.includes(a)}));if("metronome"===n.type||"words"===n.type&&(a.startsWith("a tempo")||s)||r){var l,u=c.findIndex((function(e){return 1===e.length}));u>-1&&n.index>(null===(l=c[u])||void 0===l?void 0:l[0].start)&&(i=-1,c[u][1]={start:n.index,measureIndex:n.measureIndex,closedMeasureIndex:n.measureIndex,noteInMeasureIndex:n.noteInMeasureIndex,allDuration:n.allDuration,leftDuration:n.leftDuration,type:a})}"words"===n.type&&s&&c.push([{start:n.index,measureIndex:n.measureIndex,closedMeasureIndex:n.measureIndex+i,noteInMeasureIndex:n.noteInMeasureIndex,allDuration:n.allDuration,leftDuration:n.leftDuration,type:a}])},f=0,p=o;f<p.length;f++)d();return c},browserInfo=browser();dayjs.extend(duration);var getFixTime=function(e){var t=getDuration(state$1.osmd),n=t.numerator||0,r=t.denominator||4,i=t.beatUnit||"quarter";return state$1.repeatedBeats&&(n=2===n?4:n),state$1.isOpenMetronome?60/e*formatBeatUnit(i)*(n/r):0},retain=function(e){return Math.ceil(1e6*e)/1e6},formatLyricsEntries=function(e){var t,n,r=[],i=_createForOfIteratorHelper((null===(t=e.parentStaffEntry)||void 0===t?void 0:t.voiceEntries)||[]);try{for(i.s();!(n=i.n()).done;){var a,o=n.value;if(null!==(a=o.lyricsEntries)&&void 0!==a&&a.table)for(var s=Object.values(o.lyricsEntries.table),l=0,u=s;l<u.length;l++){var c=u[l];r.push(null==c?void 0:c.value.text)}}}catch(err){i.e(err)}finally{i.f()}return r},createSpeedInfo=function(e,t){var n;if(e&&speedInfo[null===(n=e.startWord)||void 0===n?void 0:n.toLocaleLowerCase()]){for(var r,i=Math.max(e.endXmlNoteIndex,3),a=[],o=t,s=t/speedInfo[null===(r=e.startWord)||void 0===r?void 0:r.toLocaleLowerCase()],l=0;l<i;l++){var u=o+(s-o)/i*(l+1);a.push(u)}return a}},tranTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n=e.split(":");return 1===n.length?t="00:".concat(n[0],":00"):2===n.length&&(t="00:".concat(n[0],":").concat(n[1])),"1970-01-01 00:".concat(t,"0")},getDuration=function(e){if(e){var t,n=null===(t=e.GraphicSheet.MeasureList[0][0])||void 0===t?void 0:t.parentSourceMeasure,r=n.Duration,i=n.TempoInBPM,a=n.ActiveTimeSignature,o=n.TempoExpressions;if(r){var s,l="quarter",u=_createForOfIteratorHelper(o);try{for(u.s();!(s=u.n()).done;){l=s.value.InstantaneousTempo.beatUnit||"quarter"}}catch(err){u.e(err)}finally{u.f()}return _objectSpread(_objectSpread({},formatDuration(a)),{},{TempoInBPM:i,beatUnit:l})}}return _objectSpread(_objectSpread({},new Fraction$1),{},{TempoInBPM:90,beatUnit:"quarter"})};function formatDuration(e,t){return e}function formatBeatUnit(e){var t=4;switch(e){case"1024th":t=1024;break;case"512th":t=512;break;case"256th":t=256;break;case"128th":t=128;break;case"64th":t=64;break;case"32nd":t=32;break;case"16th":t=16;break;case"eighth":t=8;break;case"quarter":t=4;break;case"half":t=2;break;case"whole":t=1;break;case"breve":t=.5;break;case"long":t=.25;break;case"maxima":t=.125}return t}function getTimeByBeatUnit(e,t,n){return n/formatBeatUnit(e)*t}var setElementNoteBefore=function(e,t,n){var r=0;if(t){for(var i=0;i<t.childNodes.length;i++){var a=t.childNodes[i];if("note"===a.nodeName&&r++,a===e)break}if(0===r&&n)n.insertBefore(e,n.childNodes[0]);else if(n&&n.childNodes.length>0){var o=0,s=Array.from(n.childNodes).filter((function(e){return"note"===e.nodeName})),l=s[s.length-1];if(r>=s.length&&l)return void n.insertBefore(e,n.childNodes[Array.from(n.childNodes).indexOf(l)]);for(var u=0;u<s.length;u++){var c=s[u];if("note"===c.nodeName&&(o+=1)===r){n.insertBefore(e,c);break}}}}},isRepeatWord=function(e){if(e){var t=e.toLocaleLowerCase(),n="d\\s?\\.s\\.",r="d\\.\\s?c\\.";return"@"===t||StringUtil.StringContainsSeparatedWord(t,n+" al fine",!0)||StringUtil.StringContainsSeparatedWord(t,n+" al coda",!0)||StringUtil.StringContainsSeparatedWord(t,r+" al fine",!0)||StringUtil.StringContainsSeparatedWord(t,r+" al coda",!0)||StringUtil.StringContainsSeparatedWord(t,r)||StringUtil.StringContainsSeparatedWord(t,"da\\s?capo",!0)||StringUtil.StringContainsSeparatedWord(t,n,!0)||StringUtil.StringContainsSeparatedWord(t,"dal\\s?segno",!0)||StringUtil.StringContainsSeparatedWord(t,"al\\s?coda",!0)||StringUtil.StringContainsSeparatedWord(t,"to\\s?coda",!0)||StringUtil.StringContainsSeparatedWord(t,"a (la )?coda",!0)||StringUtil.StringContainsSeparatedWord(t,"fine",!0)||StringUtil.StringContainsSeparatedWord(t,"coda",!0)||StringUtil.StringContainsSeparatedWord(t,"segno",!0)}return!1},onlyVisible=function(e,t){var n,r,i,a,o,s,l,u,c;if(!e)return"";var h=state$1.examSongId+"",d=(new DOMParser).parseFromString(e,"text/xml"),f=(null===(n=d.getElementsByTagName("part-list"))||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getElementsByTagName("score-part"))||[],p=Array.from(f).map((function(e){var t;return(null===(t=e.getElementsByTagName("part-name"))||void 0===t?void 0:t[0].textContent)||""})),v=d.getElementsByTagName("part"),m=_toConsumableArray2(null===(i=v[0])||void 0===i?void 0:i.getElementsByTagName("measure")),g=_toConsumableArray2(null===(a=v[0])||void 0===a?void 0:a.getElementsByTagName("metronome")),y=_toConsumableArray2(null===(o=v[0])||void 0===o?void 0:o.getElementsByTagName("words")),b=_toConsumableArray2(null===(s=v[0])||void 0===s?void 0:s.getElementsByTagName("coda")),A=_toConsumableArray2(null===(l=v[0])||void 0===l?void 0:l.getElementsByTagName("rehearsal"));"COMMON"===(null===(u=p[0])||void 0===u||null===(c=u.toLocaleUpperCase)||void 0===c?void 0:c.call(u))&&(t++,p.shift());var S=f[t];if(state$1.partListNames=p,S){var x=S.getAttribute("id");Array.from(v).forEach((function(e){var t;if(e&&e.getAttribute("id")!==x)null===(t=e.parentNode)||void 0===t||t.removeChild(e);else if(e&&"P1"!==e.getAttribute("id")){for(var n={},r=0;r<g.length;r++){var i,a,o=g[r],s=null===(i=o.parentElement)||void 0===i||null===(a=i.parentElement)||void 0===a?void 0:a.parentElement;if(s)n[m.indexOf(s)]=o}Object.values(n).forEach((function(t){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.parentElement,i=null==r?void 0:r.parentElement,a=_toConsumableArray2((null==i?void 0:i.childNodes)||[]),o=r?a.indexOf(r):-1;if(i&&o>-1){var s=m.indexOf(i),l=e.getElementsByTagName("measure")[s];setElementNoteBefore(r,i,l)}})),y.forEach((function(t){var n=t.textContent||"";if((isSpecialMark(n=["cresc."].includes(n)?"":n)||isSpeedKeyword(n)||isGradientWords(n)||isRepeatWord(n)||GRADIENT_SPEED_RESET_TAG)&&n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.parentElement,a=null==i?void 0:i.parentElement,o=_toConsumableArray2((null==a?void 0:a.childNodes)||[]),s=i?o.indexOf(i):-1;if(i&&a&&s>-1){var l=m.indexOf(a),u=e.getElementsByTagName("measure")[l];0===Array.from((null==u?void 0:u.getElementsByTagName("words"))||[]).reduce((function(e,t){var r;return null!==(r=t.textContent)&&void 0!==r&&r.includes(n)&&e++,e}),0)&&(["12280"].includes(h)?null==u||u.insertBefore(i.cloneNode(!0),null==u?void 0:u.childNodes[s]):setElementNoteBefore(i,a,u))}}})),b.forEach((function(t){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.parentElement,i=null==r?void 0:r.parentElement,a=_toConsumableArray2((null==i?void 0:i.childNodes)||[]),o=r?a.indexOf(r):-1;if(r&&i&&o>-1){var s=m.indexOf(i),l=e.getElementsByTagName("measure")[s];["12280"].includes(h)?null==l||l.insertBefore(r.cloneNode(!0),null==l?void 0:l.childNodes[o]):setElementNoteBefore(r,i,l)}})),A.forEach((function(t){var n,r=null===(n=t.parentElement)||void 0===n?void 0:n.parentElement,i=null==r?void 0:r.parentElement;if(i){var a,o=m.indexOf(i);null===(a=e.getElementsByTagName("measure")[o])||void 0===a||a.appendChild(r.cloneNode(!0))}}))}else y.forEach((function(e){var t=e.textContent||"";if(isSpeedKeyword(t)&&t){var n,r,i=null===(n=e.parentElement)||void 0===n||null===(r=n.parentElement)||void 0===r?void 0:r.parentElement;if(i&&i.firstElementChild&&i.firstElementChild!==e){var a,o=null===(a=e.parentElement)||void 0===a?void 0:a.parentElement,s=i.firstElementChild;i.insertBefore(o,s)}}}));if(e&&e.getAttribute("id")===x){var l,u,c=e.getElementsByTagName("barline"),d=null===(l=c[c.length-1])||void 0===l?void 0:l.parentElement;if("barline"!==(null==d||null===(u=d.lastElementChild)||void 0===u?void 0:u.tagName)){var f,p=_createForOfIteratorHelper((null==d?void 0:d.children)||[]);try{for(p.s();!(f=p.n()).done;){var v=f.value;if("barline"===v.tagName){null==d||d.appendChild(v);break}}}catch(err){p.e(err)}finally{p.f()}}}})),Array.from(f).forEach((function(e){var t;e&&e.getAttribute("id")!==x&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e))}))}return(new XMLSerializer).serializeToString(appoggianceFormate(d))},appoggianceFormate=function(e){if(!e)return e;var t=e.querySelectorAll("grace");if(!t.length)return e;var n,r=function e(t){return t.querySelector("grace")?e(null==t?void 0:t.nextElementSibling):t},i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a,o=n.value,s=null===(a=o.parentElement)||void 0===a?void 0:a.querySelector("notations");if(s&&s.querySelectorAll("slur").length>1){var l,u=r(null===(l=o.parentElement)||void 0===l?void 0:l.nextElementSibling);if(u&&u.querySelectorAll("slur").length>0){var c,h,d=Array.from((null===(c=u.querySelector("notations"))||void 0===c?void 0:c.children)||[]).map((function(e){return e.getAttribute("number")})),f=_createForOfIteratorHelper(s.querySelectorAll("slur"));try{for(f.s();!(h=f.n()).done;){var p,v=h.value;if(!d.includes(v.getAttribute("number")))null===(p=u.querySelector("notations"))||void 0===p||p.appendChild(v)}}catch(err){f.e(err)}finally{f.f()}}}}}catch(err){i.e(err)}finally{i.f()}return e},formatXML=function(e){if(!e)return"";for(var t=(new DOMParser).parseFromString(e,"text/xml"),n=-1,r=-1,i=0,a=Array.from(t.getElementsByTagName("measure"));i<a.length;i++){var o,s=a[i];-1===n&&s.getElementsByTagName("beats").length&&(n=parseInt(s.getElementsByTagName("beats")[0].textContent||"4")),-1===r&&s.getElementsByTagName("beat-type").length&&(r=parseInt(s.getElementsByTagName("beat-type")[0].textContent||"4"));var l=parseInt((null===(o=s.getElementsByTagName("divisions")[0])||void 0===o?void 0:o.textContent)||"256");if(0===s.getElementsByTagName("note").length){var u,c=null===(u=s.getElementsByTagName("forward")[0])||void 0===u?void 0:u.getElementsByTagName("duration")[0];c&&(c.textContent="0"),s.innerHTML=s.innerHTML+'\n <note>\n <rest measure="yes"/>\n <duration>'.concat(l*n,"</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>")}}return(new XMLSerializer).serializeToString(t)},formateTimes=exports("bd",(function(e){var t=customData.customNoteRealValue,n=customData.customNoteCurrentTime,r=state$1.examSongId+"";state$1.partIndex;var i=browserInfo.huawei?.08:0,a=[],o=[],s=[],l=state$1.originSpeed;if(!e.cursor)return[];var u=e.cursor.Iterator;console.time("音符跑完时间");var c,h,d=0,f=0,p=[],v=[],m=0,g=0,y=0,b="quarter",A=0,S=0,x=0,w=[];state$1.gradualTimes&&console.log("合奏速度",state$1.gradual,state$1.gradualTimes);for(var _=u.currentTimeStamp.RealValue,E=[],k=!1,C=0;!u.EndReached;){var M,P,I,T=null!==(M=u.CurrentVoiceEntries)&&void 0!==M&&M[0]?[null===(P=u.CurrentVoiceEntries)||void 0===P?void 0:P[0]]:[],B=[];B=state$1.multitrack>0?_toConsumableArray2(u.CurrentVoiceEntries):_toConsumableArray2(u.CurrentVoiceEntries).filter((function(e){var t;return e&&1!=(null==e||null===(t=e.ParentVoice)||void 0===t?void 0:t.VoiceId)}));var R=0,L=!1,N=!1;if(B.length&&!k){var F,D,O;L=!0;var V=_toConsumableArray2(u.CurrentVoiceEntries).reduce((function(e,t){return e.push.apply(e,_toConsumableArray2(t.Notes)),e}),[]);if(R=(null===(F=V=V.sort((function(e,t){var n,r;return(null==e||null===(n=e.length)||void 0===n?void 0:n.realValue)-(null==t||null===(r=t.length)||void 0===r?void 0:r.realValue)})))||void 0===F||null===(D=F[0])||void 0===D||null===(O=D.length)||void 0===O?void 0:O.realValue)||0,state$1.multitrack>0&&2===B.length){var z,G,H,U,j=(null===(z=V[0])||void 0===z||null===(G=z.length)||void 0===G?void 0:G.realValue)||0;k=0!==(C=((null===(H=V[V.length-1])||void 0===H||null===(U=H.length)||void 0===U?void 0:U.realValue)||0)-j)}}null!==(I=w[w.length-1])&&void 0!==I&&I.isDouble&&!B.length&&(N=!0),state$1.multitrack>0&&!L&&k&&(L=!0,R=C,k=!1,C=0),E.push(u.currentTimeStamp.realValue-_),_=u.currentTimeStamp.realValue;for(var Q=0,Y=T;Q<Y.length;Q++){var W,X,K=Y[Q].notes[0];if(K.IsGraceNote){var J=K.parentStaffEntry.voiceEntries.find((function(e){return!e.isGrace}));K=J.notes[0]}if(K.fixedKey=K.ParentVoiceEntry.ParentVoice.Parent.SubInstruments[0].fixedKey||0,null!==(W=K)&&void 0!==W&&null!==(X=W.voiceEntry)&&void 0!==X&&X.isGrace){var $,q,Z,ee,te,ne;L=!0;var re=_toConsumableArray2(u.currentVoiceEntries).reduce((function(e,t){return e.push.apply(e,_toConsumableArray2(t.notes)),e}),[]);re=re.sort((function(e,t){var n,r;return(null==t||null===(n=t.length)||void 0===n?void 0:n.realValue)-(null==e||null===(r=e.length)||void 0===r?void 0:r.realValue)})),R=0!=R?Math.min(null===($=re)||void 0===$||null===(q=$[0])||void 0===q||null===(Z=q.length)||void 0===Z?void 0:Z.realValue,R):null===(ee=re)||void 0===ee||null===(te=ee[0])||void 0===te||null===(ne=te.length)||void 0===ne?void 0:ne.realValue}state$1.multitrack>0&&R>K.length.realValue&&(R=K.length.realValue),w.push({note:K,iterator:_objectSpread({},u),currentTime:R,isDouble:L,isMutileSubject:N})}u.moveToNextVisibleVoiceEntry(!1)}for(var ie=function(){var u=oe[ae],w=u.note,_=u.iterator,k=u.currentTime,C=u.isDouble,M=u.isMutileSubject;if(w){var P,I,T,B,R,L,N,F,D,O,V;if(0===f&&s.push(w.sourceMeasure),0===f&&state$1.isSpecialBookCategory){var z,G,H=_createForOfIteratorHelper(null===(z=w.sourceMeasure)||void 0===z?void 0:z.TempoExpressions);try{for(H.s();!(G=H.n()).done;){var U,j=G.value;null!=j&&null!==(U=j.InstantaneousTempo)&&void 0!==U&&U.beatUnit&&(b=j.InstantaneousTempo.beatUnit)}}catch(err){H.e(err)}finally{H.f()}}var Q,Y=w.sourceMeasure.tempoInBPM,W=_.currentMeasure.metronomeNoteIndex;if(0!==W&&W>f)Y=(null===(Q=a[a.length-1])||void 0===Q?void 0:Q.speed)||100;var X=[null===(P=w.sourceMeasure.verticalMeasureList)||void 0===P?void 0:P[0]],K=_.currentTimeStamp.realValue,J=formatDuration(_.currentMeasure.activeTimeSignature,_.currentMeasure.duration),$=J.RealValue,q=J.Denominator,Z=w.length,ee=Z.wholeValue,te=Z.numerator,ne=Z.denominator,re=Z.realValue;t[d]&&(re=t[d]),C&&k>0&&k!=re&&(console.log("小节 ".concat(w.sourceMeasure.MeasureNumberXML," 替换: noteLength: ").concat(re,", 最小: ").concat(k)),re=k),n&&M&&E[d+1]>0&&re>E[d+1]&&(re=E[d+1]);var ie=g,se=(state$1.isSpecialBookCategory?Y:l)||1;0===d&&(i+=getFixTime(se),state$1.fixtime=i,console.log("🚀 ~ fixtime:",i,se,"state.isSpecialBookCategory",state$1.isSpecialBookCategory));var le=0,ue=(state$1.isSpecialBookCategory?Y:l)||1;h=_.currentMeasure.speedInfo||h,(!(c=(null===(I=e.Sheet.SoundTempos)||void 0===I?void 0:I.get(w.sourceMeasure.measureListIndex))||c)||c.length<2)&&(c=createSpeedInfo(h,ue));var ce=_.currentMeasure.measureListIndex;if(state$1.gradualTimes&&Object.keys(state$1.gradualTimes).length>0){var he=state$1.gradual.find((function(e,t){var n,r=state$1.gradual[t+1];return e[0].measureIndex<=ce&&(null===(n=e[1])||void 0===n?void 0:n.measureIndex)>=ce&&(!r||(null==r?void 0:r[0].measureIndex)!==ce)})),de=_slicedToArray(he||[],2),fe=de[0],pe=de[1];if(fe&&pe){var ve=pe.measureIndex-fe.measureIndex,me=fe.closedMeasureIndex==ce&&f>=fe.noteInMeasureIndex,ge=pe.closedMeasureIndex===ce&&f<pe.noteInMeasureIndex,ye=fe.closedMeasureIndex!==ce&&pe.closedMeasureIndex!==ce;if(me||ge||ye){var be=state$1.gradualTimes[fe.measureIndex],Ae=state$1.gradualTimes[pe.measureIndex];if(be&&Ae)le=re/$/(ve-fe.leftDuration/fe.allDuration+pe.leftDuration/pe.allDuration)*dayjs(tranTime(Ae)).diff(dayjs(tranTime(be)),"millisecond")/1e3}}}else if("GYM"===state$1.appName&&h&&c&&(h.startXmlNoteIndex===f||A>0)){var Se=c[0]-(c[1]-c[0]),xe=h,we=xe.resetXmlNoteIndex,_e=xe.endXmlNoteIndex,Ee=(c[c.length-1]-Se)/_e;if(Ee=w.DotsXml?Ee/1.5:Ee,A<_e){var ke=Math.ceil(ue+Ee*A),Ce=getTimeByBeatUnit(b,ke,_.currentMeasure.activeTimeSignature.Denominator),Me=(ee+te/ne)*q*(60/Ce);ue+=Math.ceil(Ee*(A+1)),le=(Me+(ee+te/ne)*q*(60/(Ce=getTimeByBeatUnit(b,ue,_.currentMeasure.activeTimeSignature.Denominator))))/2}else if(we>A){var Pe;ue=null===(Pe=a[d-1])||void 0===Pe?void 0:Pe.speed}se=(state$1.isSpecialBookCategory?getTimeByBeatUnit(b,ue,_.currentMeasure.activeTimeSignature.Denominator):l)||1;var Ie=!(A<_e||we>A);A++,Ie&&(A=0,h=void 0,c=void 0,v=[])}var Te=re,Be=le||Math.min($,re)*formatBeatUnit(b)*(60/se),Re=$*q*(60/se);g+=Be,y+=Be;var Le=Be+ie,Ne=w.fixedKey||0,Fe=null===(T=X[0])||void 0===T||null===(B=T.vfVoices[1])||void 0===B?void 0:B.tickables[f];if(a.length&&a[a.length-1].relativeTime===ie)return"continue";if(0===d){var De,Oe,Ve=0;((null===(De=w.sourceMeasure.verticalMeasureList)||void 0===De||null===(Oe=De[0])||void 0===Oe?void 0:Oe.staffEntries)||[]).forEach((function(e){var t,n,r,i,a,o;null!=e&&null!==(t=e.sourceStaffEntry)&&void 0!==t&&null!==(n=t.voiceEntries)&&void 0!==n&&null!==(r=n[0])&&void 0!==r&&null!==(i=r.notes)&&void 0!==i&&null!==(a=i[0])&&void 0!==a&&null!==(o=a.length)&&void 0!==o&&o.realValue&&(Ve+=e.sourceStaffEntry.voiceEntries[0].notes[0].length.realValue)})),Ve<$&&(m=Re-Be),m>0&&(i+=m)}var ze=null===(R=X[0])||void 0===R?void 0:R.stave;!ze&&w.isRestFlag&&a.length,w.sourceMeasure.multipleRestMeasures&&(S=w.sourceMeasure.multipleRestMeasures,x=0),x<S?x++:(x=0,S=0);var Ge={isStaccato:w.voiceEntry.isStaccato(),isRestFlag:w.isRestFlag,noteId:w.NoteToGraphicalNoteObjectId,measureListIndex:w.sourceMeasure.measureListIndex,MeasureNumberXML:w.sourceMeasure.MeasureNumberXML,_noteLength:Te,svgElement:Fe,frequency:(null==w||null===(L=w.pitch)||void 0===L?void 0:L.frequency)||-1,nextFrequency:(null==w||null===(N=w.pitch)||void 0===N?void 0:N.nextFrequency)||-1,prevFrequency:(null==w||null===(F=w.pitch)||void 0===F?void 0:F.prevFrequency)||-1,difftime:m,octaveOffset:null===(D=X[0])||void 0===D?void 0:D.octaveOffset,speed:ue,beatSpeed:se,i:d,si:f,stepSpeeds:v,measureOpenIndex:s.length-1,measures:p,tempoInBPM:w.sourceMeasure.tempoInBPM,measureLength:Re,relaMeasureLength:y,id:null==Fe?void 0:Fe.attrs.id,note:w.halfTone+12,relativeTime:retain(ie),time:retain(ie+i),endtime:retain(Le+i),relaEndtime:retain(Le),realValue:K,halfTone:w.halfTone,noteElement:w,fixedKey:Ne,realKey:0,duration:0,formatLyricsEntries:formatLyricsEntries(w),stave:ze,firstVerticalMeasure:X[0],noteLength:1,osdmContext:e,speedbeatUnit:b,multipleRestMeasures:x};Ge.realKey=function(e,t){if("GYM"!==state$1.appName)return e;var n,i,o,s,l,u;if(["906"].includes(r))return(null===(n=t.measures[0])||void 0===n?void 0:n.realKey)||e;if(["782","784"].includes(r)&&[14,16,30,32].includes(null===(i=t.firstVerticalMeasure)||void 0===i?void 0:i.measureNumber))return(null===(o=a[a.length-1])||void 0===o?void 0:o.realKey)||e;return!["900","901","640","641","739","740","800","801","773","774","869","872","714","715"].includes(r)||3!==(null===(s=t.firstVerticalMeasure)||void 0===s?void 0:s.measureNumber)&&9!==(null===(l=t.firstVerticalMeasure)||void 0===l?void 0:l.measureNumber)?e:(null===(u=t.measures[0])||void 0===u?void 0:u.realKey)||e}(w.halfTone-12*Ne,Ge),Ge.duration=Ge.endtime-Ge.time;var He=(null===(O=X[0])||void 0===O||null===(V=O.vfVoices[1])||void 0===V?void 0:V.tickables)||[];[121].includes(state$1.subjectId)&&(He=w.sourceMeasure.verticalSourceStaffEntryContainers),Ge.noteLength=He.length||1,a.push(Ge),o.push(Ge.id),p.push(Ge),f<He.length-1?f++:(f=0,y=0,p=[])}d++},ae=0,oe=w;ae<oe.length;ae++)ie();var se=a.sort((function(e,t){return e.relativeTime-t.relativeTime})).map((function(e,t){return _objectSpread(_objectSpread({},e),{},{i:t})}));console.timeEnd("音符跑完时间");try{e.cursor.reset()}catch(le){}return state$1.activeMeasureIndex=se[0].MeasureNumberXML,se})),getNoteByMeasuresSlursStart=exports("aG",(function(e){var t,n=e;if(e.noteElement.tie&&e.noteElement.tie.StartNote&&(t=e.noteElement.tie.StartNote),n&&t&&t!==n.noteElement){var r,i=_createForOfIteratorHelper(state$1.times);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t===a.noteElement)return a}}catch(err){i.e(err)}finally{i.f()}}return n})),selectionContainer="_selectionContainer_1lvx1_1",position="_position_1lvx1_7",staveBox="_staveBox_1lvx1_10",leftStaveBox="_leftStaveBox_1lvx1_13",rightStaveBox="_rightStaveBox_1lvx1_27",centerStaveBox="_centerStaveBox_1lvx1_41",prepareStaveBox="_prepareStaveBox_1lvx1_66",disable="_disable_1lvx1_69",line="_line_1lvx1_72",scoreItem="_scoreItem_1lvx1_82",dotWrap="_dotWrap_1lvx1_119",noteFollow="_noteFollow_1lvx1_134",styles$1={selectionContainer:selectionContainer,position:position,staveBox:staveBox,leftStaveBox:leftStaveBox,rightStaveBox:rightStaveBox,centerStaveBox:centerStaveBox,prepareStaveBox:prepareStaveBox,disable:disable,line:line,scoreItem:scoreItem,dotWrap:dotWrap,noteFollow:noteFollow},Selection=defineComponent({name:"selection",setup:function(){var e=reactive({notes:[],staves:[]}),t=computed((function(){return state$1.sectionStatus||"practise"!==state$1.modeType})),n=computed((function(){return function(e){if(state$1.sectionStatus){if(1===state$1.section.length&&e.MeasureNumberXML==state$1.section[0].MeasureNumberXML)return styles$1.leftStaveBox;if(2===state$1.section.length){if(state$1.sectionFirst&&e.MeasureNumberXML===state$1.sectionFirst.MeasureNumberXML)return styles$1.prepareStaveBox;if(e.MeasureNumberXML>=state$1.section[0].MeasureNumberXML&&e.MeasureNumberXML<=state$1.section[1].MeasureNumberXML)return e.MeasureNumberXML==state$1.section[0].MeasureNumberXML&&e.MeasureNumberXML==state$1.section[1].MeasureNumberXML?styles$1.centerStaveBox:e.MeasureNumberXML==state$1.section[0].MeasureNumberXML?styles$1.leftStaveBox:e.MeasureNumberXML==state$1.section[1].MeasureNumberXML?styles$1.rightStaveBox:styles$1.staveBox}}else if(state$1.activeMeasureIndex==e.MeasureNumberXML&&!state$1.isReport)return styles$1.staveBox}}));return onMounted((function(){!function(){for(var t,n=(null===(t=document.getElementById("musicAndSelection"))||void 0===t?void 0:t.getBoundingClientRect())||{x:0,y:0},r=n.x||0,i=n.y||0,a=state$1.times,o=[],s=[],l=function(){var t=a[u],n=_objectSpread(_objectSpread({},t),{},{index:t.i,bbox:null,staveBox:null});if(!o.includes(t.noteId)){var l,c,h={};if(null!==(l=t.stave)&&void 0!==l&&null!==(c=l.attrs)&&void 0!==c&&c.id){var d,f,p,v=document.querySelector("#".concat(t.stave.attrs.id));h=(null==v||null===(d=v.parentElement)||void 0===d||null===(f=d.parentElement)||void 0===f||null===(p=f.getBoundingClientRect)||void 0===p?void 0:p.call(f))||{x:0,width:0}}if(t.svgElement){var m,g,y=document.querySelector("#vf-".concat(null===(m=t.svgElement)||void 0===m||null===(g=m.attrs)||void 0===g?void 0:g.id));if(y){var b,A=(null===(b=y.getBoundingClientRect)||void 0===b?void 0:b.call(y))||{x:0,width:0};n.bbox={left:A.x-r-A.width/4+"px",top:h.y-i+"px",width:1.5*A.width+"px",height:h.height+"px"}}e.notes.push(n),o.push(t.noteId)}}if(!s.includes(t.MeasureNumberXML))if(t.stave){var S,x;if(null!==(S=t.stave)&&void 0!==S&&null!==(x=S.attrs)&&void 0!==x&&x.id){var w,_=document.querySelector("#".concat(t.stave.attrs.id)),E=(null==_||null===(w=_.getBoundingClientRect)||void 0===w?void 0:w.call(_))||{x:0,width:0};n.staveBox={left:E.x-r+"px",top:((t.stave.y||0)-5)*state$1.zoom+"px",width:E.width+"px",height:50*state$1.zoom+"px"},e.staves.push(n)}s.push(t.MeasureNumberXML)}else if(t.multipleRestMeasures){var k=e.staves.find((function(e){return e.MeasureNumberXML===t.MeasureNumberXML-1}));null!=k&&k.staveBox&&(n.staveBox={left:k.staveBox.left,top:k.staveBox.top,width:k.staveBox.width},e.staves.push(n),s.push(t.MeasureNumberXML))}},u=0;u<a.length;u++)l()}()})),function(){return createVNode("div",{id:"selectionBox",class:styles$1.selectionContainer,onClick:function(e){return e.stopPropagation()}},[e.staves.map((function(e){var t,r=evaluatingData.evaluatings[e.measureListIndex];return createVNode(Fragment,null,[e.staveBox&&createVNode("div",{class:[styles$1.position,n.value(e),r?"scoreItemLeve".concat(r.leve):""],style:e.staveBox,onClick:function(){return handleSelection(e)}},[!state$1.isReport&&!e.isRestFlag&&metronomeData.lineShow&&e.MeasureNumberXML===(null===(t=metronomeData.activeMetro)||void 0===t?void 0:t.measureNumberXML)&&createVNode("div",{class:styles$1.line,style:{left:metronomeData.activeMetro.left}},null),!state$1.isReport&&!!e.multipleRestMeasures&&state$1.activeMeasureIndex==e.MeasureNumberXML&&createVNode("div",{class:styles$1.dotWrap},[e.multipleRestMeasures]),createVNode(Transition,{name:"centerTop",onAfterEnter:function(){r.show=!1}},{default:function(){var e,t;return[(null==r?void 0:r.show)&&createVNode("div",{class:styles$1.scoreItem,style:{color:(null===(e=leveByScoreMeasureIcons[r.leve])||void 0===e?void 0:e.color)||""}},[createVNode("img",{src:null===(t=leveByScoreMeasureIcons[r.leve])||void 0===t?void 0:t.icon},null),createVNode("span",null,[r.score])])]}})])])})),e.notes.map((function(e){return createVNode("div",{class:[styles$1.position,t.value&&styles$1.disable,styles$1.note],style:e.bbox,onClick:function(){return skipNotePlay(e.index)}},[createVNode("div",{class:styles$1.noteFollow,"data-vf":"vf"+e.id},[createVNode(Icon$1,{name:"success"},null),createVNode(Icon$1,{name:"cross"},null)])])}))])}}}),inGradualRange="_inGradualRange_i7l3l_19",styles={inGradualRange:inGradualRange},musicRenderTypeKey=exports("br","musicRenderType"),musicData=reactive({showSelection:!1,isRenderLoading:!0,score:""}),resetMusicScore=exports("b3",(function(){var e=document.querySelector("#osmdSvgPage1"),t=document.getElementById("osmdCanvasPage1");if(e&&t){var n=null==e?void 0:e.getAttribute("width");if(n=isNaN(Number(n))?0:Number(n)){var r,i=t.offsetWidth/n;null===(r=document.getElementById("musicAndSelection"))||void 0===r||r.style.setProperty("--music-zoom",i+"")}}})),resetRenderMusicScore=exports("bs",(function(){var e=queryString.parse(location.search),t=queryString.stringify(_objectSpread(_objectSpread({},e),{},{_t:Date.now()}));location.search="?"+t})),MusicScore=exports("b6",defineComponent({name:"music-score",emits:["rendered"],setup:function(e,t){var n=t.emit,r=function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t,n;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(state$1.xmlUrl).then((function(e){return e.text()}));case 2:t=e.sent,n=formatXML(t),musicData.score=onlyVisible(n,state$1.partIndex),state$1.gradualTimes&&(state$1.gradual=getGradualLengthByXml(n));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i=function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(){var t,r;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=document.getElementById("musicAndSelection"))&&musicData.score){e.next=3;break}return e.abrupt("return");case 3:return(r=new OpenSheetMusicDisplay(t,{drawTitle:!1,drawSubtitle:!1,autoResize:!1,followCursor:!1,drawPartNames:!1,drawComposer:!1})).EngravingRules.PageRightMargin=2,r.EngravingRules.PageTopMargin=3,r.EngravingRules.PageLeftMargin=2,r.EngravingRules.PageBottomMargin=2,r.EngravingRules.DYMusicScoreType="staff"===state$1.musicRenderType?"staff":"jianpu","fixedTone"===state$1.musicRenderType&&(window.sett={keySignature:!0}),e.next=12,r.load(musicData.score);case 12:r.zoom=state$1.zoom,r.render(),n("rendered",r),musicData.showSelection=!0;case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();onBeforeMount(_asyncToGenerator2(_regeneratorRuntime().mark((function e(){return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=void 0,t=sessionStorage.getItem(musicRenderTypeKey),state$1.musicRenderType=["staff","firstTone","fixedTone"].includes(t)?t:"staff",e.next=3,r();case 3:return e.next=5,i();case 5:musicData.isRenderLoading=!1;case 6:case"end":return e.stop()}var t}),e)}))));var a=computed((function(){var e,t,n=!1,r=(null===(e=state$1.times[state$1.activeNoteIndex])||void 0===e?void 0:e.measureListIndex)||-1,i=_createForOfIteratorHelper(state$1.gradual);try{for(i.s();!(t=i.n()).done;){var a=_slicedToArray(t.value,2),o=a[0],s=a[1];if(o&&s&&(n=o.measureIndex<=r&&r<s.measureIndex))break}}catch(err){i.e(err)}finally{i.f()}return n}));return function(){return createVNode("div",{id:"musicAndSelection",class:[a.value&&styles.inGradualRange]},[musicData.showSelection&&createVNode(Selection,null,null)])}}})),scriptRel="modulepreload",assetsURL=function(e,t){return new URL(e,t).href},seen={},__vitePreload=function(e,t,n){return e()},relationships={flute:{59:[27,26,25,15,24,22,17,20],60:[27,26,25,15,24,22,17,20],61:[27,26,25,15,24,22,17,21],62:[27,26,25,15,24,22,17],63:[27,26,25,15,24,22,17,19],64:[27,26,25,15,24,22,19],65:[27,26,25,15,24,19],66:[27,26,25,15,17,19],67:[27,26,25,15,19],68:[27,26,25,15,18,19],69:[27,26,15,19],70:[[27,14,19],[27,24,15,19]],71:[27,15,19],72:[27,19],73:[19],74:[26,25,24,22,17,15],75:[26,25,24,22,17,19,15],76:[27,26,25,15,24,22,19],77:[27,26,25,15,24,19],78:[27,26,25,15,17,19],79:[27,26,25,15,19],80:[27,26,25,15,18,19],81:[27,26,15,19],82:[[27,14,19],[27,24,15,19]],83:[27,15,19],84:[27,19],85:[19],86:[26,25,15,19],87:[27,26,25,15,24,22,17,18,19],88:[27,26,15,24,22,19],89:[27,25,24,15,19],90:[27,25,17,15,19],91:[27,26,25,19],92:[26,25,18,19],93:[26,24,15,19],94:[23,24,15,19],95:[27,25,15,16],96:[27,26,25,18,24,19]},clarinet:{52:[[3,4,6,8,9,11,14,18,20],[3,4,6,8,9,11,14,20]],53:[[3,4,6,8,9,11,12,20],[3,4,6,8,9,11,18,20]],54:[[3,4,6,8,9,11,13,18,20],[3,4,6,8,9,11,13,20],[3,4,6,8,9,11,15]],55:[3,4,6,8,9,11,20],56:[3,4,6,8,9,11,16,20],57:[3,4,6,8,9,20],58:[3,4,6,8,20],59:[[3,4,6,9,20],[3,4,6,8,10,20]],60:[3,4,6,20],61:[3,4,6,7,20],62:[3,4,20],63:[[3,4,20,24],[3,4,5,20],[3,8,20]],64:[3,20],65:[20],66:[[3],[20,23,24]],67:[],68:[2],69:[1],70:[1,19],71:[[3,4,6,8,9,11,14,18,19,20],[3,4,6,8,9,11,14,19,20]],72:[[3,4,6,8,9,11,12,19,20],[3,4,6,8,9,11,18,19,20]],73:[[3,4,6,8,9,11,13,19,20],[3,4,6,8,9,11,13,18,19,20],[3,4,6,8,9,11,15,19,20]],74:[3,4,6,8,9,11,19,20],75:[3,4,6,8,9,11,16,19,20],76:[3,4,6,8,9,19,20],77:[3,4,6,8,19,20],78:[[3,4,6,9,19,20],[3,4,6,8,10,19,20]],79:[3,4,6,19,20],80:[3,4,6,7,19,20],81:[3,4,19,20],82:[[3,4,19,20,24],[3,4,5,19,20],[3,4,8,19,20]],83:[3,19,20],84:[19,20],85:[4,6,8,9,19,20],86:[4,6,8,16,19,20],87:[[4,6,8,10,16,19,20],[4,6,9,16,19,20]],88:[4,6,16,19,20],89:[4,6,7,16,19,20]},trumpet:{0:[1,2,3],54:[4,5,6],55:[4,2,6],56:[1,5,6],57:[4,5,3],58:[4,2,3],59:[1,5,3],60:[1,2,3],61:[4,5,6],62:[4,2,6],63:[1,5,6],64:[4,5,3],65:[4,2,3],66:[1,5,3],67:[1,2,3],68:[1,5,6],69:[4,5,3],70:[4,2,3],71:[1,5,3],72:[1,2,3],73:[4,5,3],74:[4,2,3],75:[1,5,3],76:[1,2,3],77:[4,2,3],78:[1,4,3],79:[1,2,3],80:[1,5,6],81:[4,5,3],82:[4,2,3],83:[1,5,3],84:[1,2,3]},horn:{53:[1],54:[2],55:[],56:[2,3],57:[1,2],58:[1],59:[2],60:[],61:[1,2],62:[1],63:[2],64:[],65:[1],66:[2],67:[],68:[0,2,3],69:[0,1,2],70:[0,1],71:[0,2],72:[0],73:[0,2,3],74:[0,1,2],75:[0,1],76:[0,2],77:[0],78:[0,2],79:[0],80:[0,2,3],81:[0,1,2],82:[0,1],83:[0,2],84:[0]},"up-bass-horn":{0:[1,2,3],40:[4,5,6],41:[4,2,6],42:[1,5,6],43:[4,5,3],44:[4,2,3],45:[1,5,3],46:[1,2,3],47:[4,5,6],48:[4,2,6],49:[1,5,6],50:[4,5,3],51:[4,2,3],52:[1,5,3],53:[1,2,3],54:[1,5,6],55:[4,5,3],56:[4,2,3],57:[1,5,3],58:[1,2,3],59:[4,5,3],60:[4,2,3],61:[1,5,3],62:[1,2,3],63:[4,2,3],64:[1,5,3],65:[1,2,3],66:[1,5,6],67:[4,5,3],68:[4,2,3],69:[1,5,3],70:[1,2,3]},trombone:{0:[1],40:[22],41:[11],42:[5],43:[4],44:[3],45:[2],46:[1],47:[22],48:[11],49:[5],50:[4],51:[3],52:[2],53:[1],54:[5],55:[4],56:[3],57:[2],58:[1],59:[4],60:[3],61:[2],62:[1],63:[3],64:[2],65:[1],66:[5],67:[4],68:[3],69:[2],70:[1]},saxophone:{58:[2,4,5,13,17,18,19,23],59:[2,4,5,11,17,18,19,23],60:[2,4,5,17,18,19,23],61:[2,4,5,12,17,18,19,23],62:[2,4,5,17,18,19],63:[2,4,5,17,18,19,22],64:[2,4,5,17,18],65:[2,4,5,17],66:[[2,4,5,18],[2,4,5,17,21]],67:[2,4,5],68:[2,4,5,10],69:[2,4],70:[[2,4,16],[2,17],[2,3]],71:[2],72:[[4],[2,15]],73:[],74:[2,4,5,6,17,18,19],75:[2,4,5,6,17,18,19,22],76:[2,4,5,6,17,18],77:[2,4,5,6,17],78:[[2,4,5,6,18],[2,4,5,6,17,21]],79:[2,4,5,6],80:[2,4,5,6,10],81:[2,4,6],82:[[2,4,6,16],[2,6,17],[2,3,6]],83:[2,6],84:[[4,6],[2,6,15]],85:[6],86:[6,9],87:[6,7,8],88:[6,8,9,14],89:[[6,7,8,9,14],[1,4,6]]},tuba:{0:[1,2,3],28:[4,5,6],29:[4,2,6],30:[1,5,6],31:[4,5,3],32:[4,2,3],33:[4,2,6],34:[1,2,3],35:[4,5,6],36:[4,2,6],37:[1,5,6],38:[4,5,3],39:[4,2,3],40:[1,5,3],41:[1,2,3],42:[1,5,6],43:[4,5,3],44:[4,2,3],45:[1,5,3],46:[1,2,3],47:[4,5,3],48:[4,2,3],49:[1,5,3],50:[1,2,3],51:[4,2,3],52:[1,5,3],53:[1,2,3],54:[1,5,6],55:[4,5,3],56:[4,2,3],57:[1,5,3],58:[1,2,3]},piccolo:{72:[11,2,33,4,5,6,7,8],73:[11,2,33,4,5,6,7,88],74:[11,2,33,4,5,6,7],75:[11,2,33,4,5,6,77],76:[11,2,33,4,5,6],77:[11,2,33,4,5,7,8],78:[11,2,33,4,6,7],79:[11,2,33,4],80:[11,2,33,5,6,77],81:[11,2,33],82:[[11,2,4,5],[11,3,4,5]],83:[[11,2],[11,33,4]],84:[11,33],85:[[2,33],[11]],86:[33],87:[33,4,5,6,77],88:[1,2,33,4,5,6],89:[1,2,33,4,5,77],90:[1,2,33,4,6],91:[1,2,33,4],92:[1,2,33,5],93:[1,2,33],94:[1,2,33,5,6,77],95:[1,2,33,5,6],96:[1,2,5,6],97:[1,2,3,4,5,77,88],98:[1,2,4,5,77,8]},"small-drum":{0:["active","active-left","active-right"],64:["left","right"]}},mappingVoicePart=exports("ba",(function(e,t){if("GYM"===t)return e;if("COLEXIU"===t){return{Flute:2,Clarinet:4,Trombone:14,Tuba:17,Trumpet:12,Horn:13,AltoSaxophone:6,TenorSaxophone:6,Saxophone:6,UpBassHorn:15,Melodica:137,HulusiFlute:136,PanFlute:135,Ocarina:134,Recorder:120,Ukulele:130,Mouthorgan:140,Piano:150}[e]}if("ORCHESTRA"===t){return{1:23,2:2,3:5,4:4,5:12,6:14,7:13,8:15,9:17}[e]}return 0})),subjectFingering=exports("bc",(function(e){switch(e){case 2:return{name:"flute",direction:"transverse",height:"1.6rem"};case 4:return{name:"clarinet",direction:"vertical",width:"3rem"};case 5:case 6:return{name:"saxophone",direction:"vertical",width:"4.34rem"};case 12:return{name:"trumpet",direction:"transverse",height:"1.6rem"};case 13:return{name:"horn",direction:"vertical",width:"4.98rem"};case 14:return{name:"trombone",direction:"transverse",height:"1.6rem"};case 15:return{name:"up-bass-horn",direction:"vertical",width:"4.34rem"};case 17:return{name:"tuba",direction:"vertical",width:"4.34rem"};case 120:return{name:"piccolo",direction:"vertical",width:"3rem"};default:return{}}})),getFingeringConfig=exports("cA",function(){var e=_asyncToGenerator2(_regeneratorRuntime().mark((function e(t){var n,r,i,a,o,s,l,u,c,h;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="flute"===e.t0?3:"clarinet"===e.t0?7:"trumpet"===e.t0?11:"horn"===e.t0?15:"tuba"===e.t0?19:"piccolo"===e.t0?23:"up-bass-horn"===e.t0?27:"trombone"===e.t0?31:"saxophone"===e.t0?35:"small-drum"===e.t0?39:43;break;case 3:return e.next=5,__vitePreload((function(){return module.import("./index-legacy-7b572960.js")}),void 0,module.meta.url);case 5:return n=e.sent,e.abrupt("return",{json:n.default,relationship:relationships.flute,height:"60px",styles:{}});case 7:return e.next=9,__vitePreload((function(){return module.import("./index-legacy-2f3f702e.js")}),void 0,module.meta.url);case 9:return r=e.sent,e.abrupt("return",{json:r.default,relationship:relationships.clarinet,styles:{marginLeft:".4rem",marginRight:".7rem"}});case 11:return e.next=13,__vitePreload((function(){return module.import("./index-legacy-e410c79b.js")}),void 0,module.meta.url);case 13:return i=e.sent,e.abrupt("return",{json:i.default,relationship:relationships.trumpet});case 15:return e.next=17,__vitePreload((function(){return module.import("./index-legacy-80f1313c.js")}),void 0,module.meta.url);case 17:return a=e.sent,e.abrupt("return",{json:a.default,relationship:relationships.horn,height:"212px",width:"252px"});case 19:return e.next=21,__vitePreload((function(){return module.import("./index-legacy-3b93b893.js")}),void 0,module.meta.url);case 21:return o=e.sent,e.abrupt("return",{json:o.default,relationship:relationships.tuba});case 23:return e.next=25,__vitePreload((function(){return module.import("./index-legacy-a864cfbd.js")}),void 0,module.meta.url);case 25:return s=e.sent,e.abrupt("return",{json:s.default,relationship:relationships.piccolo});case 27:return e.next=29,__vitePreload((function(){return module.import("./index-legacy-305a615e.js")}),void 0,module.meta.url);case 29:return l=e.sent,e.abrupt("return",{json:l.default,relationship:relationships["up-bass-horn"]});case 31:return e.next=33,__vitePreload((function(){return module.import("./index-legacy-d3f5dd4a.js")}),void 0,module.meta.url);case 33:return u=e.sent,e.abrupt("return",{json:u.default,relationship:relationships.trombone});case 35:return e.next=37,__vitePreload((function(){return module.import("./index-legacy-f21ed266.js")}),void 0,module.meta.url);case 37:return c=e.sent,e.abrupt("return",{json:c.default,relationship:relationships.saxophone,styles:{marginLeft:".2rem",marginRight:".3rem"}});case 39:return e.next=41,__vitePreload((function(){return module.import("./index-legacy-f9a838a3.js")}),void 0,module.meta.url);case 41:return h=e.sent,e.abrupt("return",{json:h.default,relationship:relationships["up-bass-horn"],width:"180px"});case 43:return e.abrupt("return",null);case 44:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Notfind=exports("bl",defineComponent({name:"notfund",render:function(){var e=this;return createVNode(Empty,{image:"error",description:this.$route.path+" 路径不存在"},{default:function(){return[createVNode(Button,{type:"primary",onClick:function(){return e.$router.replace("/")}},{default:function(){return[createTextVNode("返回首页")]}})]}})}}))}}}))})();