App-legacy.e9a3d8ec.js 3.3 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. (function(){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 Error("failed to set property");return n}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get: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 _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf2(e)););return e}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 _createSuper(e){var t=_isNativeReflectConstruct();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"===_typeof3(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 _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=_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&&_setPrototypeOf2(i,n.prototype),i},_construct2.apply(null,arguments)}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 _isNativeFunction2(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _setPrototypeOf2(e,t){return _setPrototypeOf2=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf2(e,t)}function _getPrototypeOf2(e){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf2(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 _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)}))}}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){_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 _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(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=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(l){s=!0,i=l}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray2(e){return _arrayWithoutHoles2(e)||_iterableToArray2(e)||_unsupportedIterableToArray(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 _arrayLikeToArray(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,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 _typeof3(e){return _typeof3="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},_typeof3(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(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 _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}var __vite_style__=document.createElement("style");__vite_style__.innerHTML='@charset "UTF-8";/*!\n* animate.css - https://animate.style/\n* Version - 4.1.1\n* Licensed under the MIT license - http://opensource.org/licenses/MIT\n*\n* Copyright (c) 2020 Animate.css\n*/:root{--animate-duration: 1s;--animate-delay: 1s;--animate-repeat: 1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}.animate__animated.animate__infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.animate__animated.animate__repeat-1{-webkit-animation-iteration-count:1;animation-iteration-count:1;-webkit-animation-iteration-count:var(--animate-repeat);animation-iteration-count:var(--animate-repeat)}.animate__animated.animate__repeat-2{-webkit-animation-iteration-count:2;animation-iteration-count:2;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 2);animation-iteration-count:calc(var(--animate-repeat) * 2)}.animate__animated.animate__repeat-3{-webkit-animation-iteration-count:3;animation-iteration-count:3;-webkit-animation-iteration-count:calc(var(--animate-repeat) * 3);animation-iteration-count:calc(var(--animate-repeat) * 3)}.animate__animated.animate__delay-1s{-webkit-animation-delay:1s;animation-delay:1s;-webkit-animation-delay:var(--animate-delay);animation-delay:var(--animate-delay)}.animate__animated.animate__delay-2s{-webkit-animation-delay:2s;animation-delay:2s;-webkit-animation-delay:calc(var(--animate-delay) * 2);animation-delay:calc(var(--animate-delay) * 2)}.animate__animated.animate__delay-3s{-webkit-animation-delay:3s;animation-delay:3s;-webkit-animation-delay:calc(var(--animate-delay) * 3);animation-delay:calc(var(--animate-delay) * 3)}.animate__animated.animate__delay-4s{-webkit-animation-delay:4s;animation-delay:4s;-webkit-animation-delay:calc(var(--animate-delay) * 4);animation-delay:calc(var(--animate-delay) * 4)}.animate__animated.animate__delay-5s{-webkit-animation-delay:5s;animation-delay:5s;-webkit-animation-delay:calc(var(--animate-delay) * 5);animation-delay:calc(var(--animate-delay) * 5)}.animate__animated.animate__faster{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-duration:calc(var(--animate-duration) / 2);animation-duration:calc(var(--animate-duration) / 2)}.animate__animated.animate__fast{-webkit-animation-duration:.8s;animation-duration:.8s;-webkit-animation-duration:calc(var(--animate-duration) * .8);animation-duration:calc(var(--animate-duration) * .8)}.animate__animated.animate__slow{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2)}.animate__animated.animate__slower{-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-duration:calc(var(--animate-duration) * 3);animation-duration:calc(var(--animate-duration) * 3)}@media print,(prefers-reduced-motion: reduce){.animate__animated{-webkit-animation-duration:1ms!important;animation-duration:1ms!important;-webkit-transition-duration:1ms!important;transition-duration:1ms!important;-webkit-animation-iteration-count:1!important;animation-iteration-count:1!important}.animate__animated[class*=Out]{opacity:0}}@-webkit-keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.8rem,0) scaleY(1.1);transform:translate3d(0,-.8rem,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.4rem,0) scaleY(1.05);transform:translate3d(0,-.4rem,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.10667rem,0) scaleY(1.02);transform:translate3d(0,-.10667rem,0) scaleY(1.02)}}@keyframes bounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.8rem,0) scaleY(1.1);transform:translate3d(0,-.8rem,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-.4rem,0) scaleY(1.05);transform:translate3d(0,-.4rem,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.10667rem,0) scaleY(1.02);transform:translate3d(0,-.10667rem,0) scaleY(1.02)}}.animate__bounce{-webkit-animation-name:bounce;animation-name:bounce;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}.animate__flash{-webkit-animation-name:flash;animation-name:flash}@-webkit-keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes pulse{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__pulse{-webkit-animation-name:pulse;animation-name:pulse;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes rubberBand{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}30%{-webkit-transform:scale3d(1.25,.75,1);transform:scale3d(1.25,.75,1)}40%{-webkit-transform:scale3d(.75,1.25,1);transform:scale3d(.75,1.25,1)}50%{-webkit-transform:scale3d(1.15,.85,1);transform:scale3d(1.15,.85,1)}65%{-webkit-transform:scale3d(.95,1.05,1);transform:scale3d(.95,1.05,1)}75%{-webkit-transform:scale3d(1.05,.95,1);transform:scale3d(1.05,.95,1)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__rubberBand{-webkit-animation-name:rubberBand;animation-name:rubberBand}@-webkit-keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-.26667rem,0,0);transform:translate3d(-.26667rem,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(.26667rem,0,0);transform:translate3d(.26667rem,0,0)}}@keyframes shakeX{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(-.26667rem,0,0);transform:translate3d(-.26667rem,0,0)}20%,40%,60%,80%{-webkit-transform:translate3d(.26667rem,0,0);transform:translate3d(.26667rem,0,0)}}.animate__shakeX{-webkit-animation-name:shakeX;animation-name:shakeX}@-webkit-keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-.26667rem,0);transform:translate3d(0,-.26667rem,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,.26667rem,0);transform:translate3d(0,.26667rem,0)}}@keyframes shakeY{0%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}10%,30%,50%,70%,90%{-webkit-transform:translate3d(0,-.26667rem,0);transform:translate3d(0,-.26667rem,0)}20%,40%,60%,80%{-webkit-transform:translate3d(0,.26667rem,0);transform:translate3d(0,.26667rem,0)}}.animate__shakeY{-webkit-animation-name:shakeY;animation-name:shakeY}@-webkit-keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-.16rem) rotateY(-9deg);transform:translate(-.16rem) rotateY(-9deg)}18.5%{-webkit-transform:translateX(.13333rem) rotateY(7deg);transform:translate(.13333rem) rotateY(7deg)}31.5%{-webkit-transform:translateX(-.08rem) rotateY(-5deg);transform:translate(-.08rem) rotateY(-5deg)}43.5%{-webkit-transform:translateX(.05333rem) rotateY(3deg);transform:translate(.05333rem) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes headShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-.16rem) rotateY(-9deg);transform:translate(-.16rem) rotateY(-9deg)}18.5%{-webkit-transform:translateX(.13333rem) rotateY(7deg);transform:translate(.13333rem) rotateY(7deg)}31.5%{-webkit-transform:translateX(-.08rem) rotateY(-5deg);transform:translate(-.08rem) rotateY(-5deg)}43.5%{-webkit-transform:translateX(.05333rem) rotateY(3deg);transform:translate(.05333rem) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}.animate__headShake{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-name:headShake;animation-name:headShake}@-webkit-keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}@keyframes swing{20%{-webkit-transform:rotate3d(0,0,1,15deg);transform:rotate3d(0,0,1,15deg)}40%{-webkit-transform:rotate3d(0,0,1,-10deg);transform:rotate3d(0,0,1,-10deg)}60%{-webkit-transform:rotate3d(0,0,1,5deg);transform:rotate3d(0,0,1,5deg)}80%{-webkit-transform:rotate3d(0,0,1,-5deg);transform:rotate3d(0,0,1,-5deg)}to{-webkit-transform:rotate3d(0,0,1,0deg);transform:rotate3d(0,0,1,0)}}.animate__swing{-webkit-transform-origin:top center;transform-origin:top center;-webkit-animation-name:swing;animation-name:swing}@-webkit-keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes tada{0%{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}10%,20%{-webkit-transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{-webkit-transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__tada{-webkit-animation-name:tada;animation-name:tada}@-webkit-keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes wobble{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}15%{-webkit-transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{-webkit-transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{-webkit-transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{-webkit-transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{-webkit-transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__wobble{-webkit-animation-name:wobble;animation-name:wobble}@-webkit-keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes jello{0%,11.1%,to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}22.2%{-webkit-transform:skewX(-12.5deg) skewY(-12.5deg);transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{-webkit-transform:skewX(6.25deg) skewY(6.25deg);transform:skew(6.25deg) skewY(6.25deg)}44.4%{-webkit-transform:skewX(-3.125deg) skewY(-3.125deg);transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{-webkit-transform:skewX(1.5625deg) skewY(1.5625deg);transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{-webkit-transform:skewX(-.78125deg) skewY(-.78125deg);transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{-webkit-transform:skewX(.390625deg) skewY(.390625deg);transform:skew(.390625deg) skewY(.390625deg)}88.8%{-webkit-transform:skewX(-.1953125deg) skewY(-.1953125deg);transform:skew(-.1953125deg) skewY(-.1953125deg)}}.animate__jello{-webkit-animation-name:jello;animation-name:jello;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes heartBeat{0%{-webkit-transform:scale(1);transform:scale(1)}14%{-webkit-transform:scale(1.3);transform:scale(1.3)}28%{-webkit-transform:scale(1);transform:scale(1)}42%{-webkit-transform:scale(1.3);transform:scale(1.3)}70%{-webkit-transform:scale(1);transform:scale(1)}}.animate__heartBeat{-webkit-animation-name:heartBeat;animation-name:heartBeat;-webkit-animation-duration:1.3s;animation-duration:1.3s;-webkit-animation-duration:calc(var(--animate-duration) * 1.3);animation-duration:calc(var(--animate-duration) * 1.3);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}@-webkit-keyframes backInDown{0%{-webkit-transform:translateY(-32rem) scale(.7);transform:translateY(-32rem) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInDown{0%{-webkit-transform:translateY(-32rem) scale(.7);transform:translateY(-32rem) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInDown{-webkit-animation-name:backInDown;animation-name:backInDown}@-webkit-keyframes backInLeft{0%{-webkit-transform:translateX(-53.33333rem) scale(.7);transform:translate(-53.33333rem) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInLeft{0%{-webkit-transform:translateX(-53.33333rem) scale(.7);transform:translate(-53.33333rem) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInLeft{-webkit-animation-name:backInLeft;animation-name:backInLeft}@-webkit-keyframes backInRight{0%{-webkit-transform:translateX(53.33333rem) scale(.7);transform:translate(53.33333rem) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInRight{0%{-webkit-transform:translateX(53.33333rem) scale(.7);transform:translate(53.33333rem) scale(.7);opacity:.7}80%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInRight{-webkit-animation-name:backInRight;animation-name:backInRight}@-webkit-keyframes backInUp{0%{-webkit-transform:translateY(32rem) scale(.7);transform:translateY(32rem) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes backInUp{0%{-webkit-transform:translateY(32rem) scale(.7);transform:translateY(32rem) scale(.7);opacity:.7}80%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}.animate__backInUp{-webkit-animation-name:backInUp;animation-name:backInUp}@-webkit-keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(18.66667rem) scale(.7);transform:translateY(18.66667rem) scale(.7);opacity:.7}}@keyframes backOutDown{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(18.66667rem) scale(.7);transform:translateY(18.66667rem) scale(.7);opacity:.7}}.animate__backOutDown{-webkit-animation-name:backOutDown;animation-name:backOutDown}@-webkit-keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-53.33333rem) scale(.7);transform:translate(-53.33333rem) scale(.7);opacity:.7}}@keyframes backOutLeft{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(-53.33333rem) scale(.7);transform:translate(-53.33333rem) scale(.7);opacity:.7}}.animate__backOutLeft{-webkit-animation-name:backOutLeft;animation-name:backOutLeft}@-webkit-keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(53.33333rem) scale(.7);transform:translate(53.33333rem) scale(.7);opacity:.7}}@keyframes backOutRight{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateX(0) scale(.7);transform:translate(0) scale(.7);opacity:.7}to{-webkit-transform:translateX(53.33333rem) scale(.7);transform:translate(53.33333rem) scale(.7);opacity:.7}}.animate__backOutRight{-webkit-animation-name:backOutRight;animation-name:backOutRight}@-webkit-keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-18.66667rem) scale(.7);transform:translateY(-18.66667rem) scale(.7);opacity:.7}}@keyframes backOutUp{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}20%{-webkit-transform:translateY(0) scale(.7);transform:translateY(0) scale(.7);opacity:.7}to{-webkit-transform:translateY(-18.66667rem) scale(.7);transform:translateY(-18.66667rem) scale(.7);opacity:.7}}.animate__backOutUp{-webkit-animation-name:backOutUp;animation-name:backOutUp}@-webkit-keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}20%{-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}40%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}60%{opacity:1;-webkit-transform:scale3d(1.03,1.03,1.03);transform:scale3d(1.03,1.03,1.03)}80%{-webkit-transform:scale3d(.97,.97,.97);transform:scale3d(.97,.97,.97)}to{opacity:1;-webkit-transform:scale3d(1,1,1);transform:scaleZ(1)}}.animate__bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-80rem,0) scaleY(3);transform:translate3d(0,-80rem,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,.66667rem,0) scaleY(.9);transform:translate3d(0,.66667rem,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-.26667rem,0) scaleY(.95);transform:translate3d(0,-.26667rem,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,.13333rem,0) scaleY(.985);transform:translate3d(0,.13333rem,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,-80rem,0) scaleY(3);transform:translate3d(0,-80rem,0) scaleY(3)}60%{opacity:1;-webkit-transform:translate3d(0,.66667rem,0) scaleY(.9);transform:translate3d(0,.66667rem,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,-.26667rem,0) scaleY(.95);transform:translate3d(0,-.26667rem,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,.13333rem,0) scaleY(.985);transform:translate3d(0,.13333rem,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInDown{-webkit-animation-name:bounceInDown;animation-name:bounceInDown}@-webkit-keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-80rem,0,0) scaleX(3);transform:translate3d(-80rem,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(.66667rem,0,0) scaleX(1);transform:translate3d(.66667rem,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-.26667rem,0,0) scaleX(.98);transform:translate3d(-.26667rem,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(.13333rem,0,0) scaleX(.995);transform:translate3d(.13333rem,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(-80rem,0,0) scaleX(3);transform:translate3d(-80rem,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(.66667rem,0,0) scaleX(1);transform:translate3d(.66667rem,0,0) scaleX(1)}75%{-webkit-transform:translate3d(-.26667rem,0,0) scaleX(.98);transform:translate3d(-.26667rem,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(.13333rem,0,0) scaleX(.995);transform:translate3d(.13333rem,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInLeft{-webkit-animation-name:bounceInLeft;animation-name:bounceInLeft}@-webkit-keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(80rem,0,0) scaleX(3);transform:translate3d(80rem,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-.66667rem,0,0) scaleX(1);transform:translate3d(-.66667rem,0,0) scaleX(1)}75%{-webkit-transform:translate3d(.26667rem,0,0) scaleX(.98);transform:translate3d(.26667rem,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-.13333rem,0,0) scaleX(.995);transform:translate3d(-.13333rem,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(80rem,0,0) scaleX(3);transform:translate3d(80rem,0,0) scaleX(3)}60%{opacity:1;-webkit-transform:translate3d(-.66667rem,0,0) scaleX(1);transform:translate3d(-.66667rem,0,0) scaleX(1)}75%{-webkit-transform:translate3d(.26667rem,0,0) scaleX(.98);transform:translate3d(.26667rem,0,0) scaleX(.98)}90%{-webkit-transform:translate3d(-.13333rem,0,0) scaleX(.995);transform:translate3d(-.13333rem,0,0) scaleX(.995)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInRight{-webkit-animation-name:bounceInRight;animation-name:bounceInRight}@-webkit-keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,80rem,0) scaleY(5);transform:translate3d(0,80rem,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-.53333rem,0) scaleY(.9);transform:translate3d(0,-.53333rem,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,.26667rem,0) scaleY(.95);transform:translate3d(0,.26667rem,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.13333rem,0) scaleY(.985);transform:translate3d(0,-.13333rem,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;-webkit-transform:translate3d(0,80rem,0) scaleY(5);transform:translate3d(0,80rem,0) scaleY(5)}60%{opacity:1;-webkit-transform:translate3d(0,-.53333rem,0) scaleY(.9);transform:translate3d(0,-.53333rem,0) scaleY(.9)}75%{-webkit-transform:translate3d(0,.26667rem,0) scaleY(.95);transform:translate3d(0,.26667rem,0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-.13333rem,0) scaleY(.985);transform:translate3d(0,-.13333rem,0) scaleY(.985)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__bounceInUp{-webkit-animation-name:bounceInUp;animation-name:bounceInUp}@-webkit-keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}@keyframes bounceOut{20%{-webkit-transform:scale3d(.9,.9,.9);transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;-webkit-transform:scale3d(1.1,1.1,1.1);transform:scale3d(1.1,1.1,1.1)}to{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}}.animate__bounceOut{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:bounceOut;animation-name:bounceOut}@-webkit-keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,.26667rem,0) scaleY(.985);transform:translate3d(0,.26667rem,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-.53333rem,0) scaleY(.9);transform:translate3d(0,-.53333rem,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0) scaleY(3);transform:translate3d(0,53.33333rem,0) scaleY(3)}}@keyframes bounceOutDown{20%{-webkit-transform:translate3d(0,.26667rem,0) scaleY(.985);transform:translate3d(0,.26667rem,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,-.53333rem,0) scaleY(.9);transform:translate3d(0,-.53333rem,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0) scaleY(3);transform:translate3d(0,53.33333rem,0) scaleY(3)}}.animate__bounceOutDown{-webkit-animation-name:bounceOutDown;animation-name:bounceOutDown}@-webkit-keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(.53333rem,0,0) scaleX(.9);transform:translate3d(.53333rem,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0) scaleX(2);transform:translate3d(-53.33333rem,0,0) scaleX(2)}}@keyframes bounceOutLeft{20%{opacity:1;-webkit-transform:translate3d(.53333rem,0,0) scaleX(.9);transform:translate3d(.53333rem,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0) scaleX(2);transform:translate3d(-53.33333rem,0,0) scaleX(2)}}.animate__bounceOutLeft{-webkit-animation-name:bounceOutLeft;animation-name:bounceOutLeft}@-webkit-keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-.53333rem,0,0) scaleX(.9);transform:translate3d(-.53333rem,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0) scaleX(2);transform:translate3d(53.33333rem,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;-webkit-transform:translate3d(-.53333rem,0,0) scaleX(.9);transform:translate3d(-.53333rem,0,0) scaleX(.9)}to{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0) scaleX(2);transform:translate3d(53.33333rem,0,0) scaleX(2)}}.animate__bounceOutRight{-webkit-animation-name:bounceOutRight;animation-name:bounceOutRight}@-webkit-keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-.26667rem,0) scaleY(.985);transform:translate3d(0,-.26667rem,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,.53333rem,0) scaleY(.9);transform:translate3d(0,.53333rem,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0) scaleY(3);transform:translate3d(0,-53.33333rem,0) scaleY(3)}}@keyframes bounceOutUp{20%{-webkit-transform:translate3d(0,-.26667rem,0) scaleY(.985);transform:translate3d(0,-.26667rem,0) scaleY(.985)}40%,45%{opacity:1;-webkit-transform:translate3d(0,.53333rem,0) scaleY(.9);transform:translate3d(0,.53333rem,0) scaleY(.9)}to{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0) scaleY(3);transform:translate3d(0,-53.33333rem,0) scaleY(3)}}.animate__bounceOutUp{-webkit-animation-name:bounceOutUp;animation-name:bounceOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0);transform:translate3d(0,-53.33333rem,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0);transform:translate3d(0,-53.33333rem,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInDownBig{-webkit-animation-name:fadeInDownBig;animation-name:fadeInDownBig}@-webkit-keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeft{-webkit-animation-name:fadeInLeft;animation-name:fadeInLeft}@-webkit-keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0);transform:translate3d(-53.33333rem,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0);transform:translate3d(-53.33333rem,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInLeftBig{-webkit-animation-name:fadeInLeftBig;animation-name:fadeInLeftBig}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0);transform:translate3d(53.33333rem,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0);transform:translate3d(53.33333rem,0,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInRightBig{-webkit-animation-name:fadeInRightBig;animation-name:fadeInRightBig}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0);transform:translate3d(0,53.33333rem,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0);transform:translate3d(0,53.33333rem,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInUpBig{-webkit-animation-name:fadeInUpBig;animation-name:fadeInUpBig}@-webkit-keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopLeft{-webkit-animation-name:fadeInTopLeft;animation-name:fadeInTopLeft}@-webkit-keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInTopRight{-webkit-animation-name:fadeInTopRight;animation-name:fadeInTopRight}@-webkit-keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomLeft{-webkit-animation-name:fadeInBottomLeft;animation-name:fadeInBottomLeft}@-webkit-keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__fadeInBottomRight{-webkit-animation-name:fadeInBottomRight;animation-name:fadeInBottomRight}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.animate__fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0);transform:translate3d(0,53.33333rem,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,53.33333rem,0);transform:translate3d(0,53.33333rem,0)}}.animate__fadeOutDownBig{-webkit-animation-name:fadeOutDownBig;animation-name:fadeOutDownBig}@-webkit-keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__fadeOutLeft{-webkit-animation-name:fadeOutLeft;animation-name:fadeOutLeft}@-webkit-keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0);transform:translate3d(-53.33333rem,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(-53.33333rem,0,0);transform:translate3d(-53.33333rem,0,0)}}.animate__fadeOutLeftBig{-webkit-animation-name:fadeOutLeftBig;animation-name:fadeOutLeftBig}@-webkit-keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__fadeOutRight{-webkit-animation-name:fadeOutRight;animation-name:fadeOutRight}@-webkit-keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0);transform:translate3d(53.33333rem,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(53.33333rem,0,0);transform:translate3d(53.33333rem,0,0)}}.animate__fadeOutRightBig{-webkit-animation-name:fadeOutRightBig;animation-name:fadeOutRightBig}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0);transform:translate3d(0,-53.33333rem,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-53.33333rem,0);transform:translate3d(0,-53.33333rem,0)}}.animate__fadeOutUpBig{-webkit-animation-name:fadeOutUpBig;animation-name:fadeOutUpBig}@-webkit-keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,-100%,0);transform:translate3d(-100%,-100%,0)}}.animate__fadeOutTopLeft{-webkit-animation-name:fadeOutTopLeft;animation-name:fadeOutTopLeft}@-webkit-keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,-100%,0);transform:translate3d(100%,-100%,0)}}.animate__fadeOutTopRight{-webkit-animation-name:fadeOutTopRight;animation-name:fadeOutTopRight}@-webkit-keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(100%,100%,0);transform:translate3d(100%,100%,0)}}.animate__fadeOutBottomRight{-webkit-animation-name:fadeOutBottomRight;animation-name:fadeOutBottomRight}@-webkit-keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(-100%,100%,0);transform:translate3d(-100%,100%,0)}}.animate__fadeOutBottomLeft{-webkit-animation-name:fadeOutBottomLeft;animation-name:fadeOutBottomLeft}@-webkit-keyframes flip{0%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,4rem) rotate3d(0,1,0,-190deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(4rem) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,4rem) rotate3d(0,1,0,-170deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(4rem) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(10.66667rem) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(10.66667rem) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}@keyframes flip{0%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(0) rotateY(-360deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}40%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,4rem) rotate3d(0,1,0,-190deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(4rem) rotateY(-190deg);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}50%{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,4rem) rotate3d(0,1,0,-170deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(4rem) rotateY(-170deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}80%{-webkit-transform:perspective(10.66667rem) scale3d(.95,.95,.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(10.66667rem) scale3d(.95,.95,.95) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}to{-webkit-transform:perspective(10.66667rem) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);transform:perspective(10.66667rem) scaleZ(1) translateZ(0) rotateY(0);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}}.animate__animated.animate__flip{-webkit-backface-visibility:visible;backface-visibility:visible;-webkit-animation-name:flip;animation-name:flip}@-webkit-keyframes flipInX{0%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,90deg);transform:perspective(10.66667rem) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-20deg);transform:perspective(10.66667rem) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,10deg);transform:perspective(10.66667rem) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-5deg);transform:perspective(10.66667rem) rotateX(-5deg)}to{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}}@keyframes flipInX{0%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,90deg);transform:perspective(10.66667rem) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-20deg);transform:perspective(10.66667rem) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,10deg);transform:perspective(10.66667rem) rotateX(10deg);opacity:1}80%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-5deg);transform:perspective(10.66667rem) rotateX(-5deg)}to{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}}.animate__flipInX{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInX;animation-name:flipInX}@-webkit-keyframes flipInY{0%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,90deg);transform:perspective(10.66667rem) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-20deg);transform:perspective(10.66667rem) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,10deg);transform:perspective(10.66667rem) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-5deg);transform:perspective(10.66667rem) rotateY(-5deg)}to{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}}@keyframes flipInY{0%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,90deg);transform:perspective(10.66667rem) rotateY(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-20deg);transform:perspective(10.66667rem) rotateY(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,10deg);transform:perspective(10.66667rem) rotateY(10deg);opacity:1}80%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-5deg);transform:perspective(10.66667rem) rotateY(-5deg)}to{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}}.animate__flipInY{-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipInY;animation-name:flipInY}@-webkit-keyframes flipOutX{0%{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}30%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-20deg);transform:perspective(10.66667rem) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,90deg);transform:perspective(10.66667rem) rotateX(90deg);opacity:0}}@keyframes flipOutX{0%{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}30%{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,-20deg);transform:perspective(10.66667rem) rotateX(-20deg);opacity:1}to{-webkit-transform:perspective(10.66667rem) rotate3d(1,0,0,90deg);transform:perspective(10.66667rem) rotateX(90deg);opacity:0}}.animate__flipOutX{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-animation-name:flipOutX;animation-name:flipOutX;-webkit-backface-visibility:visible!important;backface-visibility:visible!important}@-webkit-keyframes flipOutY{0%{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}30%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-15deg);transform:perspective(10.66667rem) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,90deg);transform:perspective(10.66667rem) rotateY(90deg);opacity:0}}@keyframes flipOutY{0%{-webkit-transform:perspective(10.66667rem);transform:perspective(10.66667rem)}30%{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,-15deg);transform:perspective(10.66667rem) rotateY(-15deg);opacity:1}to{-webkit-transform:perspective(10.66667rem) rotate3d(0,1,0,90deg);transform:perspective(10.66667rem) rotateY(90deg);opacity:0}}.animate__flipOutY{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-duration:calc(var(--animate-duration) * .75);animation-duration:calc(var(--animate-duration) * .75);-webkit-backface-visibility:visible!important;backface-visibility:visible!important;-webkit-animation-name:flipOutY;animation-name:flipOutY}@-webkit-keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{-webkit-transform:translate3d(100%,0,0) skewX(-30deg);transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{-webkit-transform:skewX(20deg);transform:skew(20deg);opacity:1}80%{-webkit-transform:skewX(-5deg);transform:skew(-5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInRight{-webkit-animation-name:lightSpeedInRight;animation-name:lightSpeedInRight;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes lightSpeedInLeft{0%{-webkit-transform:translate3d(-100%,0,0) skewX(30deg);transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{-webkit-transform:skewX(-20deg);transform:skew(-20deg);opacity:1}80%{-webkit-transform:skewX(5deg);transform:skew(5deg)}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__lightSpeedInLeft{-webkit-animation-name:lightSpeedInLeft;animation-name:lightSpeedInLeft;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{-webkit-transform:translate3d(100%,0,0) skewX(30deg);transform:translate3d(100%,0,0) skew(30deg);opacity:0}}.animate__lightSpeedOutRight{-webkit-animation-name:lightSpeedOutRight;animation-name:lightSpeedOutRight;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{-webkit-transform:translate3d(-100%,0,0) skewX(-30deg);transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}.animate__lightSpeedOutLeft{-webkit-animation-name:lightSpeedOutLeft;animation-name:lightSpeedOutLeft;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}@-webkit-keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateIn{0%{-webkit-transform:rotate3d(0,0,1,-200deg);transform:rotate3d(0,0,1,-200deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateIn{-webkit-animation-name:rotateIn;animation-name:rotateIn;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownLeft{-webkit-animation-name:rotateInDownLeft;animation-name:rotateInDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInDownRight{-webkit-animation-name:rotateInDownRight;animation-name:rotateInDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpLeft{-webkit-animation-name:rotateInUpLeft;animation-name:rotateInUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{-webkit-transform:rotate3d(0,0,1,-90deg);transform:rotate3d(0,0,1,-90deg);opacity:0}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0);opacity:1}}.animate__rotateInUpRight{-webkit-animation-name:rotateInUpRight;animation-name:rotateInUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOut{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,200deg);transform:rotate3d(0,0,1,200deg);opacity:0}}.animate__rotateOut{-webkit-animation-name:rotateOut;animation-name:rotateOut;-webkit-transform-origin:center;transform-origin:center}@-webkit-keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,45deg);transform:rotate3d(0,0,1,45deg);opacity:0}}.animate__rotateOutDownLeft{-webkit-animation-name:rotateOutDownLeft;animation-name:rotateOutDownLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutDownRight{-webkit-animation-name:rotateOutDownRight;animation-name:rotateOutDownRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,-45deg);transform:rotate3d(0,0,1,-45deg);opacity:0}}.animate__rotateOutUpLeft{-webkit-animation-name:rotateOutUpLeft;animation-name:rotateOutUpLeft;-webkit-transform-origin:left bottom;transform-origin:left bottom}@-webkit-keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{-webkit-transform:rotate3d(0,0,1,90deg);transform:rotate3d(0,0,1,90deg);opacity:0}}.animate__rotateOutUpRight{-webkit-animation-name:rotateOutUpRight;animation-name:rotateOutUpRight;-webkit-transform-origin:right bottom;transform-origin:right bottom}@-webkit-keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,18.66667rem,0);transform:translate3d(0,18.66667rem,0);opacity:0}}@keyframes hinge{0%{-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}20%,60%{-webkit-transform:rotate3d(0,0,1,80deg);transform:rotate3d(0,0,1,80deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}40%,80%{-webkit-transform:rotate3d(0,0,1,60deg);transform:rotate3d(0,0,1,60deg);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;opacity:1}to{-webkit-transform:translate3d(0,18.66667rem,0);transform:translate3d(0,18.66667rem,0);opacity:0}}.animate__hinge{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-duration:calc(var(--animate-duration) * 2);animation-duration:calc(var(--animate-duration) * 2);-webkit-animation-name:hinge;animation-name:hinge;-webkit-transform-origin:top left;transform-origin:top left}@-webkit-keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes jackInTheBox{0%{opacity:0;-webkit-transform:scale(.1) rotate(30deg);transform:scale(.1) rotate(30deg);-webkit-transform-origin:center bottom;transform-origin:center bottom}50%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}70%{-webkit-transform:rotate(3deg);transform:rotate(3deg)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.animate__jackInTheBox{-webkit-animation-name:jackInTheBox;animation-name:jackInTheBox}@-webkit-keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes rollIn{0%{opacity:0;-webkit-transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__rollIn{-webkit-animation-name:rollIn;animation-name:rollIn}@-webkit-keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}.animate__rollOut{-webkit-animation-name:rollOut;animation-name:rollOut}@-webkit-keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}.animate__zoomIn{-webkit-animation-name:zoomIn;animation-name:zoomIn}@-webkit-keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-26.66667rem,0);transform:scale3d(.1,.1,.1) translate3d(0,-26.66667rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-26.66667rem,0);transform:scale3d(.1,.1,.1) translate3d(0,-26.66667rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInDown{-webkit-animation-name:zoomInDown;animation-name:zoomInDown}@-webkit-keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-26.66667rem,0,0);transform:scale3d(.1,.1,.1) translate3d(-26.66667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(.26667rem,0,0);transform:scale3d(.475,.475,.475) translate3d(.26667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInLeft{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(-26.66667rem,0,0);transform:scale3d(.1,.1,.1) translate3d(-26.66667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(.26667rem,0,0);transform:scale3d(.475,.475,.475) translate3d(.26667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInLeft{-webkit-animation-name:zoomInLeft;animation-name:zoomInLeft}@-webkit-keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(26.66667rem,0,0);transform:scale3d(.1,.1,.1) translate3d(26.66667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-.26667rem,0,0);transform:scale3d(.475,.475,.475) translate3d(-.26667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(26.66667rem,0,0);transform:scale3d(.1,.1,.1) translate3d(26.66667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-.26667rem,0,0);transform:scale3d(.475,.475,.475) translate3d(-.26667rem,0,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInRight{-webkit-animation-name:zoomInRight;animation-name:zoomInRight}@-webkit-keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,26.66667rem,0);transform:scale3d(.1,.1,.1) translate3d(0,26.66667rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,26.66667rem,0);transform:scale3d(.1,.1,.1) translate3d(0,26.66667rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomInUp{-webkit-animation-name:zoomInUp;animation-name:zoomInUp}@-webkit-keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.animate__zoomOut{-webkit-animation-name:zoomOut;animation-name:zoomOut}@-webkit-keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,53.33333rem,0);transform:scale3d(.1,.1,.1) translate3d(0,53.33333rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,-1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,53.33333rem,0);transform:scale3d(.1,.1,.1) translate3d(0,53.33333rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutDown{-webkit-animation-name:zoomOutDown;animation-name:zoomOutDown;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(1.12rem,0,0);transform:scale3d(.475,.475,.475) translate3d(1.12rem,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-53.33333rem,0,0);transform:scale(.1) translate3d(-53.33333rem,0,0)}}@keyframes zoomOutLeft{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(1.12rem,0,0);transform:scale3d(.475,.475,.475) translate3d(1.12rem,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(-53.33333rem,0,0);transform:scale(.1) translate3d(-53.33333rem,0,0)}}.animate__zoomOutLeft{-webkit-animation-name:zoomOutLeft;animation-name:zoomOutLeft;-webkit-transform-origin:left center;transform-origin:left center}@-webkit-keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-1.12rem,0,0);transform:scale3d(.475,.475,.475) translate3d(-1.12rem,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(53.33333rem,0,0);transform:scale(.1) translate3d(53.33333rem,0,0)}}@keyframes zoomOutRight{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(-1.12rem,0,0);transform:scale3d(.475,.475,.475) translate3d(-1.12rem,0,0)}to{opacity:0;-webkit-transform:scale(.1) translate3d(53.33333rem,0,0);transform:scale(.1) translate3d(53.33333rem,0,0)}}.animate__zoomOutRight{-webkit-animation-name:zoomOutRight;animation-name:zoomOutRight;-webkit-transform-origin:right center;transform-origin:right center}@-webkit-keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-53.33333rem,0);transform:scale3d(.1,.1,.1) translate3d(0,-53.33333rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutUp{40%{opacity:1;-webkit-transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);transform:scale3d(.475,.475,.475) translate3d(0,1.6rem,0);-webkit-animation-timing-function:cubic-bezier(.55,.055,.675,.19);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;-webkit-transform:scale3d(.1,.1,.1) translate3d(0,-53.33333rem,0);transform:scale3d(.1,.1,.1) translate3d(0,-53.33333rem,0);-webkit-animation-timing-function:cubic-bezier(.175,.885,.32,1);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}.animate__zoomOutUp{-webkit-animation-name:zoomOutUp;animation-name:zoomOutUp;-webkit-transform-origin:center bottom;transform-origin:center bottom}@-webkit-keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInDown{0%{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInDown{-webkit-animation-name:slideInDown;animation-name:slideInDown}@-webkit-keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInLeft{0%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInLeft{-webkit-animation-name:slideInLeft;animation-name:slideInLeft}@-webkit-keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInRight{0%{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInRight{-webkit-animation-name:slideInRight;animation-name:slideInRight}@-webkit-keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}@keyframes slideInUp{0%{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}}.animate__slideInUp{-webkit-animation-name:slideInUp;animation-name:slideInUp}@-webkit-keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.animate__slideOutDown{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}@-webkit-keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes slideOutLeft{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}.animate__slideOutLeft{-webkit-animation-name:slideOutLeft;animation-name:slideOutLeft}@-webkit-keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes slideOutRight{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}.animate__slideOutRight{-webkit-animation-name:slideOutRight;animation-name:slideOutRight}@-webkit-keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{0%{-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.animate__slideOutUp{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}*,*:after,*:before{box-sizing:border-box}:root{--primary-color: #ff8057;--van-primary-color: #ff8057;--van-padding-base: .05333rem;--van-padding-xs: .08rem;--van-padding-sm: .10667rem;--van-padding-md: .13333rem;--van-padding-lg: .16rem;--van-padding-xl: .18667rem;--van-font-size-xs: .10667rem;--van-font-size-sm: .13333rem;--van-font-size-md: .16rem;--van-font-size-lg: .18667rem;--van-font-weight-bold: 500;--van-line-height-xs: .16rem;--van-line-height-sm: .18667rem;--van-line-height-md: .21333rem;--van-line-height-lg: .24rem;--van-toast-text-min-width: .37333rem;--van-toast-default-width: 1.33333rem;--van-toast-default-min-height: 1.33333rem;--van-button-normal-padding: .10667rem;--van-button-default-height: .32rem;--van-empty-bottom-margin-top: .21333rem}.android{--header-padding-top: .26667rem!important}.van-button:active{opacity:.8}.van-button:active:before{opacity:0}.van-tabs--line .van-tabs__wrap{height:.58667rem}.van-tab{font-size:.18667rem}.van-tabs__line{background-color:var(--primary-color);width:.21333rem;height:.05333rem;border-radius:.02667rem}.van-tab--active>span{color:var(--primary-color)}.van-popup{overflow-y:initial}.van-notice-bar{height:.45333rem;font-size:.16rem}.van-notice-bar{padding:0 .16rem;color:#fead15}.van-notice-bar__left-icon,.van-notice-bar__right-icon{width:.18667rem;font-size:.18667rem;padding:0;min-width:.26667rem}.van-switch{font-size:.21333rem;overflow:hidden}.containerPopups{width:3.94667rem;height:4.05333rem;overflow:hidden;border-radius:.13333rem}.vf-StaveSection{display:none}:root{--osdm-zoom: .7;--eye-background-color: #fdf4e5;--eye-section-background-color: rgba(255, 206, 75, .28);--eye-section-border-color: #ff9f58;--section-background-color: rgba(255, 159, 88, .19);--section-border-color: #ff9f58;--cursor-background-color: rgba(255, 159, 88, .68);--eye-cursor-background-color: rgba(255, 98, 37, .6)}._speed-change_1vit3_1{padding:calc(.26667rem * var(--screen)) calc(.4rem * var(--screen))}._speed-change_1vit3_1 ._title_1vit3_4{color:#999;text-align:center;font-size:calc(.26667rem * var(--screen));font-weight:700}._speed-change_1vit3_1 ._title_1vit3_4 ._strong_1vit3_10{color:#454545}._speed-change_1vit3_1 .van-popup__close-icon{font-size:calc(.21333rem * var(--screen))!important}._speed-change_1vit3_1 .van-button{height:calc(.53333rem * var(--screen));line-height:calc(.53333rem * var(--screen))}._speed_1vit3_1,._background_1vit3_21{color:#454545;font-size:calc(10 * var(--screen));display:flex;align-items:center;justify-content:space-between;height:calc(90% - 1.73333rem);max-height:400PX}._speed_1vit3_1>span,._background_1vit3_21>span{margin-right:calc(.26667rem * var(--screen))}._speed_1vit3_1>div,._background_1vit3_21>div{flex:1;display:flex;align-items:center;flex-direction:column;justify-content:space-between}._speed_1vit3_1>div .van-button,._background_1vit3_21>div .van-button{min-width:calc(.32rem * var(--screen))!important;width:calc(.26667rem * var(--screen))!important;height:calc(.26667rem * var(--screen))}._speed_1vit3_1>div .van-button img,._background_1vit3_21>div .van-button img{width:calc(.32rem * var(--screen));height:calc(.32rem * var(--screen));margin-top:calc(.05333rem * var(--screen))}._speed_1vit3_1>div .van-button:first-child,._background_1vit3_21>div .van-button:first-child{margin-bottom:.13333rem}._speed_1vit3_1>div .van-button:nth-child(3),._background_1vit3_21>div .van-button:nth-child(3){margin-top:.13333rem}._speed_1vit3_1>div ._slider_1vit3_62,._background_1vit3_21>div ._slider_1vit3_62{height:calc(100vh - 1.06667rem - 1.73333rem - .53333rem - .53333rem);max-height:240PX;margin:calc(.26667rem * var(--screen)) 0;background-color:#01c1b5}._speed-button_1vit3_69{width:calc(4.26667rem * var(--screen));margin:auto;font-size:calc(.21333rem * var(--screen))}._custom-button_1vit3_74{width:calc(.66667rem * var(--screen));color:#000;font-weight:700;font-size:calc(.21333rem * var(--screen));height:calc(.42667rem * var(--screen));line-height:calc(.42667rem * var(--screen));text-align:center;background-color:#fff;border-radius:calc(2.66667rem * var(--screen));box-shadow:0 calc(.02667rem * var(--screen)) calc(.13333rem * var(--screen)) rgba(0,0,0,.1);position:relative}._custom-button_1vit3_74 ._title_1vit3_4{font-size:calc(.21333rem * var(--screen));width:calc(.8rem * var(--screen));position:absolute;top:calc(-1.06667rem * var(--screen));left:calc(-.26667rem * var(--screen));box-shadow:0 calc(.02667rem * var(--screen)) calc(.26667rem * var(--screen)) rgba(0,0,0,.1);height:calc(.8rem * var(--screen));line-height:calc(.8rem * var(--screen));border-radius:calc(.4rem * var(--screen));visibility:hidden;opacity:0;transition:all .2s}._custom-button_1vit3_74 ._title_1vit3_4:after{content:"";position:absolute;width:0;height:0;border-radius:calc(2.66667rem * var(--screen));border:calc(2.66667rem * var(--screen)) solid #fff;border-color:#fff transparent transparent transparent;bottom:calc(-.4rem * var(--screen));left:calc(.53333rem * var(--screen))}._custom-button_1vit3_74 ._title_1vit3_4._show_1vit3_112{visibility:visible;opacity:1}._close_1xean_1{position:absolute;right:-.18667rem;top:-.18667rem;width:.37333rem;height:.37333rem}._close_1xean_1 .van-icon__image{width:100%;height:100%}._bg_1xean_12{background-position:left 102%;background-size:100% .48rem;background-repeat:no-repeat}._title_184ej_1{margin:.21333rem 0;text-align:center;font-size:.18667rem;font-weight:500;color:#1a1a1a}._wrap_184ej_8{padding:.05333rem .32rem}._wrap_184ej_8 .van-divider{margin:.13333rem 0}._item_184ej_14{display:flex;align-items:center}._label_184ej_18{width:.85333rem;font-size:.16rem;font-weight:400;color:#666;line-height:.24rem}._container_la5im_1{height:auto!important;padding-bottom:.21333rem}._title_la5im_5{margin:.21333rem 0;text-align:center;font-size:.18667rem;font-weight:500;color:#1a1a1a}._practiseBtn_la5im_12{width:2.10667rem;height:.48rem;margin-top:.18667rem;background-image:url(/orchestra-music-score/assets/practise.dcd2b4c4.png);background-size:100% 100%;background-repeat:no-repeat;border:none}._wrap_la5im_21{height:1.86667rem;overflow-y:auto}._wrap_la5im_21 .van-radio-group{display:flex;flex-direction:column;justify-content:center;align-items:center}._wrap_la5im_21 .van-radio__icon{display:none}._wrap_la5im_21 .van-radio{width:2.85333rem;height:.53333rem;line-height:.53333rem;background:#f8f8f8;border-radius:.08rem;border:.01333rem solid #f8f8f8;margin-bottom:.16rem;justify-content:center}._wrap_la5im_21 .van-radio__label{margin:0;font-size:.16rem;color:#999}._wrap_la5im_21 .van-radio[aria-checked=true]{border-color:var(--primary-color);background:#e2fff9}._wrap_la5im_21 .van-radio[aria-checked=true] .van-checkbox__label{color:var(--primary-color)}._box_1vhbp_1{position:relative;height:100vh;display:flex;align-items:center;justify-content:center;box-sizing:border-box}._bg_1vhbp_9{position:absolute;width:100%;height:100%;z-index:0;display:block}._button_1vhbp_16{position:absolute;top:.24rem;left:.45333rem;width:.61333rem;height:.61333rem;padding:0;border:none;background-color:transparent;font-size:0}._button_1vhbp_16 img{width:.61333rem;height:.61333rem;display:block;margin:auto}._iconSound_1vhbp_33{position:absolute;left:1.28rem;top:1.28rem;width:7.25333rem}._skepBtn_1vhbp_39{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:.42667rem;color:#fff}._skepBtn_1vhbp_39>img{display:block;width:100%;margin-bottom:4Px}._wrap_1vhbp_53{position:relative;width:4.90667rem;box-sizing:border-box;z-index:1}._wrapContainer_1vhbp_59{display:flex;flex-direction:column;align-items:center;padding-top:1.33333rem}._top_1vhbp_65{position:relative;display:flex;align-items:center;width:100%;height:0}._top_1vhbp_65 ._title_1vhbp_72{position:absolute;left:50%;top:-.93333rem;font-size:.18667rem;color:#fff;font-weight:700;z-index:1;transform:translate(-60%)}._top_1vhbp_65 ._num_1vhbp_82{font-size:.48rem;color:#fff79e}._top_1vhbp_65 ._txt_1vhbp_86{font-size:.24rem}._top_1vhbp_65 ._iconLeft_1vhbp_89{width:.96rem;height:1.06667rem}._top_1vhbp_65 ._iconTop_1vhbp_93{position:absolute;top:-1.46667rem;width:100%}._evaluatWrap_1vhbp_98{position:relative;width:4.37333rem;height:.93333rem;box-sizing:border-box;z-index:1;box-shadow:0 .02667rem .05333rem rgba(255,207,147,.28)}._evaluatWrap_1vhbp_98 .van-grid{align-items:center;width:100%;border-radius:.16rem;overflow:hidden;background-color:#fff}._evaluatWrap_1vhbp_98 .van-grid-item{flex:1;padding:0}._evaluatWrap_1vhbp_98 .van-grid-item__content{padding:0;height:.93333rem}._evaluatWrap_1vhbp_98 .van-grid:after,._evaluatWrap_1vhbp_98 .van-grid-item__content:after{display:none}._evaluatWrap_1vhbp_98 .van-badge__wrapper>div{display:flex;align-items:center}._evaluatWrap_1vhbp_98 ._evaluatTitle_1vhbp_129{font-size:.16rem;color:#1a1a1a;font-weight:500}._evaluatWrap_1vhbp_98 ._evaluatIcon_1vhbp_134{width:.26667rem;height:.26667rem;margin-right:.05333rem;vertical-align:text-bottom}._evaluatWrap_1vhbp_98 ._fraction_1vhbp_140{color:#ff6729;font-size:.21333rem}._evaluatWrap_1vhbp_98 ._fraction_1vhbp_140>span{font-size:.16rem}._evaluatWrap_1vhbp_98 ._line_1vhbp_147{width:.01333rem;height:.64rem;background-color:#f2f2f2}._tips_1vhbp_152{position:relative;padding:.16rem .26667rem;width:100%;font-size:.16rem;color:#333;line-height:.24rem;box-sizing:border-box;z-index:1;background:#fef7e4;border-radius:.32rem}._btns_1vhbp_164{display:flex;justify-content:space-between;padding:.16rem 0 .10667rem}._btns_1vhbp_164 .van-button{width:1.28rem;height:.45333rem;padding:0;margin:0;border:none;background:none}._btns_1vhbp_164 ._btnIcon_1vhbp_177{width:1.28rem;display:block}._rigthBtns_1vhbp_181{position:absolute;right:-.85333rem;top:0;width:.42667rem;height:100%;display:flex;flex-direction:column;justify-content:center}._confirm_1vhbp_191{width:3.25333rem;height:1.97333rem;border-radius:.24rem;background-color:#fff}._confirm_1vhbp_191 ._iconTitle_1vhbp_197{width:1.22667rem;height:.4rem;margin-top:-.06667rem}._confirm_1vhbp_191 ._footer_1vhbp_202{display:flex;align-items:center;justify-content:space-evenly}._confirm_1vhbp_191 ._footer_1vhbp_202 img{width:1.44rem;height:.45333rem;display:block}._confirm_1vhbp_191 .van-dialog{overflow:auto}._confirm_1vhbp_191 .van-dialog__header{padding:0;line-height:0}._confirm_1vhbp_191 .van-hairline--top:after{display:none}._confirm_1vhbp_191 .van-dialog__message{padding:0;height:1.01333rem;color:gray;font-size:.16rem;display:flex;align-items:center;justify-content:center}._sbtn_1vhbp_231{width:.53333rem;height:.26667rem;font-size:.16rem;padding:0;margin-right:.05333rem}._headerButton_1vhbp_238{position:absolute;right:-1.6rem;top:-.69333rem;display:flex;justify-content:space-between;align-items:center;padding:.16rem;z-index:1}._headerButton_1vhbp_238 ._headBtn_1vhbp_248{background-color:#fff;border-radius:.32rem;height:.32rem;line-height:.32rem;font-size:.16rem;color:var(--van-primary-color);padding:0 .16rem;text-align:center}._headerButton_1vhbp_238 ._headBtn_1vhbp_248+._headBtn_1vhbp_248{margin-left:.21333rem}._headerButton_1vhbp_238 ._headBtn_1vhbp_248:active{opacity:.8}.eyeProtection ._container_1w91u_1{background:var(--eye-background-color)!important}._container_1w91u_1{position:fixed;z-index:9;top:0;right:0;left:0;display:flex;align-items:center;justify-content:center;height:.74667rem;box-sizing:border-box;padding:0 .42667rem;background:#fff;transition:transform .3s ease-out}._outUp_1w91u_19{transform:translateY(-100%)}._moreButton_1w91u_22{display:flex;justify-content:flex-end}._moreButton_1w91u_22 ._button_1w91u_26{margin:0}._centerButton_1w91u_29{display:flex;align-items:center;justify-content:center;margin:0 auto}._leftButton_1w91u_35{display:flex;align-items:center}._leftButton_1w91u_35 ._titleWrap_1w91u_39{margin-left:.16rem}._leftButton_1w91u_35 ._title_1w91u_39{max-width:20vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.26667rem;color:#985131;font-weight:700}._leftButton_1w91u_35 ._album_1w91u_51{font-size:.16rem;color:#ab7f6a}._button_1w91u_26{height:auto;line-height:normal;padding:0;margin:0;border:none;background:none;font-size:0;position:relative}._button_1w91u_26._hasText_1w91u_65{color:#777;font-size:.13333rem;padding:0 .12rem;white-space:nowrap}._button_1w91u_26._hasText_1w91u_65 img{width:.34667rem;height:.34667rem;display:block}._button_1w91u_26._hasText_1w91u_65 .van-button__text{display:flex;align-items:center;flex-direction:column}._button_1w91u_26._minPadding_1w91u_81{padding:0 .05333rem}._button_1w91u_26._bigIcon_1w91u_84 img{width:.66667rem;height:.37333rem;display:block;margin:auto;margin-bottom:.02667rem}._button_1w91u_26 ._iconContent_1w91u_91{position:relative}._button_1w91u_26 ._iconContent_1w91u_91 ._arrowIcon_1w91u_94{position:absolute;left:50%;top:14PX;transform:translate(-8PX);width:0;height:0;border-bottom:8PX solid rgba(33,33,33,.56);border-right:8PX solid transparent;border-left:8PX solid transparent;z-index:2}._button_1w91u_26 ._iconContent_1w91u_91 ._botton-tips_1w91u_106{position:absolute;left:-70PX;top:22PX;background:rgba(33,33,33,.56);font-size:14PX;font-weight:500;color:#fff;padding:3PX 10PX;word-break:keep-all;z-index:1;border-radius:20PX;z-index:9}._button_1w91u_26 ._iconContent_1w91u_91 ._botton-tips_1w91u_106._tipSpec_1w91u_120{left:-40PX}._evaluatBtn_1w91u_123{width:1.44rem}._start_1w91u_126{width:2rem;height:2rem;background-color:transparent;background-size:100%;background-position:center;color:#fff;border-radius:100%;position:fixed;top:50%;left:50%;margin-top:10vh;transform:translate(-50%,-50%);font-size:.32rem}._evaluatStartBtn_1w91u_141{position:fixed;top:calc(50% - 1rem);left:calc(50% - 1rem);width:2rem;height:2rem;background-size:100%;background-position:center;z-index:10}._icon_1w91u_91{width:100%}._onShow_1w91u_154{transform:translateY(0)}._popover_1w91u_157 .van-popover__content{border-radius:.08rem!important}._popover_1w91u_157 .van-popover__arrow{bottom:.08rem;border-width:.10667rem!important}._backbtn_1w91u_164{width:.4rem;height:.4rem}._speed_1w91u_168{display:block}._speed_1w91u_168>div{padding:.05333rem}._speed_1w91u_168 .van-slider__button-wrapper{background:#ffe8b1;border-radius:.53333rem;border:.02667rem solid #ffffff;padding:.05333rem .10667rem}._speed_1w91u_168 .van-slider__button-wrapper>div{background-color:transparent!important}._speed_1w91u_168 .van-slider__button-wrapper span{color:#f67146!important}._speed_1w91u_168 .van-slider{background-color:#ffd571!important;margin-top:.05333rem!important;margin-bottom:.05333rem!important;min-height:35vh}._speed_1w91u_168 .van-button{width:.26667rem!important;height:.26667rem!important;background-color:transparent!important;border:none!important;margin-left:0!important}._speed_1w91u_168 .van-button:last-child{margin-top:.10667rem}._speed_1w91u_168 .van-button__icon,._speed_1w91u_168 img{width:.26667rem!important;height:.26667rem!important}._schedule_1w91u_207{position:relative}._schedule_1w91u_207 circle{display:block}._schedule_1w91u_207 ._ring_1w91u_213{position:absolute;left:0;top:0;transform-origin:center;transform:rotate(-90deg);display:flex;width:100%;height:100%;pointer-events:none}._speedButton_1w91u_224{position:relative}._speedButton_1w91u_224 ._label_1w91u_227{position:absolute;font-size:.10667rem;padding:0 .05333rem;color:var(--primary-color);background:#ffe8b1;border-radius:.26667rem;border:.01333rem solid #ffffff;right:0;top:0}._player_1w91u_238{position:fixed;z-index:8;bottom:.26667rem;right:.42667rem;display:inline-block;z-index:9}._fullbtn_1w91u_246 .van-button__text{width:.53333rem;height:.53333rem}._fullbtn_1w91u_246 .van-button__text>div,._fullbtn_1w91u_246 .van-button__text img{width:.53333rem;height:.53333rem}._finish_1w91u_255{background-color:transparent;background-size:100%;background-position:center;background-repeat:no-repeat;width:1.70667rem;height:.53333rem;border-radius:.32rem;border:none;color:#6f4900;font-size:.24rem}.start-enter-active,.start-leave-active{transition:all .5s ease-out}.start-enter-from{opacity:0}.start-enter-to,.start-leave-from{opacity:1}.start-leave-to{margin-top:-2.66667rem;margin-left:-.8rem;opacity:0;transform:scale(.1);border-radius:0}.finish-enter-active,.finish-leave-active{transition:all .5s ease-out}.finish-enter-from{transform:scale(.1);opacity:0}.finish-enter-to{opacity:1;transform:scale(1)}.finish-leave-from{opacity:1}.finish-leave-to{opacity:0;transform:scale(.1)}._dialogueBox_1w91u_306{position:fixed;bottom:-.02667rem;right:0;z-index:9;display:flex;flex-direction:column;align-items:flex-end}._dialogueBox_1w91u_306 ._dialogue_1w91u_306{position:fixed;bottom:1.6rem}._dialogueBox_1w91u_306 ._dialogue_1w91u_306>div{width:2.56rem;height:.85333rem;background:url(/orchestra-music-score/assets/task-bg.ef76e421.png) no-repeat center;background-size:100% 100%;margin-right:.26667rem;color:#fff;font-size:.16rem;line-height:.21333rem;padding:.10667rem;box-sizing:border-box}._dialogueBox_1w91u_306 ._dialogueIcon_1w91u_331,._dialogueBox_1w91u_306 ._inRadioIcon_1w91u_336{width:1.76rem;height:1.92rem;margin-right:.16rem}._inRadio_1w91u_336{width:.85333rem;height:.37333rem;font-size:.16rem;background:linear-gradient(180deg,#ff975b,#ff6a3a);border-radius:.18667rem;border:.02667rem solid #ffffff;color:#fff;line-height:.32rem;box-sizing:border-box;text-align:center;position:fixed;bottom:.12rem;right:1.2rem;z-index:9}._animation_1w91u_357{width:2.13333rem;height:1.78667rem;margin-right:0}._btnMusicList_1w91u_362{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:10;margin:0;width:1.06667rem}._btnMusicList_1w91u_362 img{width:100%}._toggleMusicType_1w91u_374 .van-popover__content{padding:.10667rem 0;border-radius:.21333rem}._toggleMusicType_1w91u_374 .van-popover__action{width:1.6rem;height:.42667rem;padding:0 .16rem}._toggleMusicType_1w91u_374 .van-popover__action>img{width:.37333rem;margin-right:.21333rem}._toggleMusicType_1w91u_374 .action-text{flex:1;font-size:.21333rem;text-align:justify;text-align-last:justify;text-justify:distribute-all-lines}._toggleMusicType_1w91u_374 .action-text:before,._toggleMusicType_1w91u_374 .action-text:after{display:inline-block;content:"";width:100%;height:0;visibility:hidden}._toggleMusicType_1w91u_374 .action-active{color:var(--primary-color)}._slider_1w91u_407{width:.53333rem;color:#fff;font-size:.21333rem;line-height:.26667rem;text-align:center;background-color:var(--van-primary-color);border-radius:2.66667rem}.van-popup.van-popover.cameraPopover{width:3.73333rem}.van-popup.van-popover.cameraPopover .van-popover__arrow{right:.16rem;border-width:.10667rem}.van-popup.van-popover.cameraPopover .cameraOpacity .van-cell__value{flex:2;overflow:visible}._followEndBtn_1w91u_427{background-color:transparent;background-size:100%;background-position:center;color:#fff}body .van-toast--text{min-width:fit-content}._setting_kd176_1{width:3.94667rem;height:70vh;max-height:70vh;overflow:hidden;border-radius:.21333rem;--van-switch-background-color: #fff;--van-switch-on-background-color: linear-gradient(180deg, #39f3d0 0%, #2dc7aa 100%);--van-switch-border: .00267rem solid #2dc7aa}._setting_kd176_1 .van-tabs{height:100%}._setting_kd176_1 .van-tabs__content{height:calc(100% - .58667rem);overflow-y:auto}._setting_kd176_1 .van-tab__pane{height:100%}._setting_kd176_1 .van-tab__pane>div{height:100%}._setting_kd176_1 .van-switch{background:url(/orchestra-music-score/assets/off.a9b6351b.svg) no-repeat center;background-size:cover;border-radius:0;background-color:transparent!important;border:none!important;width:.64rem;height:.32rem}._setting_kd176_1 .van-switch .van-switch__node{display:none}._setting_kd176_1 .van-switch--on{background-image:url(/orchestra-music-score/assets/on.7f9bf846.svg);background-size:cover}._setting_kd176_1 .van-tabs__content>.van-tab__pane>div{overflow:hidden;box-sizing:border-box}._sliderWrap_kd176_44{height:.8rem;display:flex;align-items:center}._sliderWrap_kd176_44 .cell__title{font-size:.16rem;color:#666;font-weight:400;width:30%}._sliderWrap_kd176_44 .van-slider{flex:1;margin-right:.26667rem}._slider_kd176_44{width:.64rem;color:#fff;font-size:.16rem;line-height:.32rem;text-align:center;background-color:var(--van-primary-color);border-radius:.53333rem}._noticebar_kd176_68{margin:.08rem .18667rem 0;height:.45333rem;border-radius:.13333rem}._groupBox_kd176_74{padding:.10667rem .32rem;overflow:hidden;overflow-y:auto;height:100%;box-sizing:border-box}._groupBox_kd176_74 .van-cell{padding:0;line-height:.29333rem}._groupBox_kd176_74 .van-cell__title{font-size:.16rem;color:#666;font-weight:400}._groupBox_kd176_74 .van-divider{margin:.08rem 0}._btnsbar_kd176_93{margin:.10667rem auto .21333rem;box-sizing:border-box;position:absolute;bottom:0;display:flex;width:100%;justify-content:center}._btnsbar_kd176_93 ._btn_kd176_93{width:40%;height:.42667rem;background:#fff6e8;border-radius:.10667rem;display:flex;align-items:center;justify-content:center;font-size:.16rem;color:#904c24;margin:0 .05333rem}._btnsbar_kd176_93 ._btn_kd176_93 ._iconBtn_kd176_115{width:.26667rem;height:.26667rem;margin-right:.05333rem}._radioGroup_kd176_120{display:flex;justify-content:space-evenly;align-items:center;padding:.05333rem;border-radius:.10667rem;background:var(--primary-color);margin-left:auto}._radioGroup_kd176_120 .van-radio__icon{display:none}._radioGroup_kd176_120 .van-radio__label{margin:0;font-size:.16rem;color:#fff;line-height:normal;white-space:nowrap}._radioGroup_kd176_120 .van-radio{flex:1;display:flex;align-items:center;justify-content:center;border-radius:.05333rem;padding:.02667rem}._radioGroup_kd176_120 .van-radio[aria-checked=true]{background:#fff}._radioGroup_kd176_120 .van-radio[aria-checked=true] .van-radio__label{color:var(--primary-color)}.van-switch{background:url(/orchestra-music-score/assets/off.a9b6351b.svg) no-repeat center;background-size:cover;border-radius:0;background-color:transparent!important;border:none!important;width:.64rem;height:.32rem}.van-switch .van-switch__node{display:none}.van-switch.van-switch--on{background-image:url(/orchestra-music-score/assets/on.7f9bf846.svg);background-size:cover}._tabs_e40bs_1{height:100%;display:flex;flex-direction:column}._tabs_e40bs_1 .van-tabs__content{flex:1}._tabs_e40bs_1 .van-tab__pane,._tabs_e40bs_1 iframe{width:100%;height:100%;border:none;margin:0}._feedback_buyji_1{width:4.8rem;height:80vh;max-height:4.26667rem;overflow:hidden;overflow-y:auto;border-radius:.13333rem}._title_buyji_9{margin-bottom:.10667rem;text-align:center;font-size:.18667rem;font-weight:500;color:#1a1a1a}._wrap_buyji_16{display:flex;flex-direction:column;padding:.21333rem;height:100%}._btns_buyji_22{display:flex;justify-content:center;align-items:center;margin-top:.21333rem}._sub_buyji_28{font-size:.16rem;font-weight:400;color:#666;margin-bottom:.16rem}._group_buyji_34{display:flex;flex-wrap:wrap}._group_buyji_34 .van-radio__icon{display:none}._group_buyji_34 .van-radio__label{margin:0;color:#999;line-height:inherit}._group_buyji_34 .van-radio{height:.32rem;justify-content:center;border-radius:.08rem;background:#f8f8f8;font-size:.16rem;margin-bottom:.10667rem;border:.01333rem solid #f8f8f8}._group_buyji_34 .van-radio[aria-checked=true]{border-color:var(--primary-color)}._group_buyji_34 .van-radio[aria-checked=true] .van-radio__label{color:var(--primary-color)}._text_buyji_61{flex:1;background:#f8f8f8;font-size:.16rem;padding:.10667rem;border-radius:.08rem;line-height:1.2}._text_buyji_61 textarea::-webkit-input-placeholder{color:#999}._text_buyji_61:after{display:none}._text_buyji_61 .van-field__word-limit{font-size:.16rem;line-height:.21333rem;color:#ccc;margin-top:0}._submit_buyji_81{width:1.97333rem}._iconToggle_8ao41_1{position:fixed;left:0;bottom:20%;transform:scaleX(-1);z-index:10;margin:0;background:rgba(0,0,0,.24);border-radius:.13333rem 0 0 .13333rem;padding:.18667rem .08rem}._popup_8ao41_12{border-radius:.10667rem;overflow:hidden}._container_1nzf5_1{display:flex;flex-direction:column;width:50vw;height:80vh;max-height:13.33333rem;background-color:#fff;overflow:hidden}._container_1nzf5_1 ._top_1nzf5_10{display:flex;align-items:center;justify-content:space-between;padding:.21333rem .26667rem;position:relative;font-size:14Px}._container_1nzf5_1 ._top_1nzf5_10:before{content:"";position:absolute;left:.10667rem;top:50%;height:30%;transform:translateY(-50%);width:.05333rem;background-color:var(--van-primary-color);border-radius:.05333rem}._container_1nzf5_1 ._picker_1nzf5_29{flex:1}._container_1nzf5_1 ._button_1nzf5_32{width:50%;height:40Px;margin:10Px auto}._box_eceij_1{position:fixed;top:0;left:0;width:100vw;height:100vh;background-image:url(/orchestra-music-score/assets/bg-sound-effect.fee62004.png);background-size:100% 100%;background-repeat:no-repeat;padding-top:.66667rem;box-sizing:border-box;z-index:1000}._button_eceij_14{position:absolute;top:.24rem;left:.45333rem;width:.61333rem;height:.61333rem;padding:0;border:none;background-color:transparent;font-size:0}._button_eceij_14 img{width:.61333rem;height:.61333rem;display:block;margin:auto}._iconSound_eceij_31{position:absolute;left:1.28rem;top:1.28rem;width:7.25333rem}._skepBtn_eceij_37{position:absolute;top:.21333rem;right:.45333rem;width:1.38667rem;height:.45333rem;border-radius:.24rem;border:none;padding:0;display:flex;align-items:center;justify-content:center}._skepBtn_eceij_37 .van-button__text{font-size:.18667rem;font-weight:500;color:#000}._skepBtn_eceij_37 .van-icon{font-size:.16rem;margin-top:.05333rem}._skepItems_eceij_59{position:absolute;top:.82667rem!important;right:.53333rem!important;left:auto!important;width:1.2rem}._skepItems_eceij_59 .van-popover__arrow{border-width:.08rem}._skepItems_eceij_59 .van-popover__content{border-radius:.10667rem}._skepItems_eceij_59 .van-popover__action{width:100%;height:.4rem;padding:0;font-size:.16rem}._bottom_eceij_78{position:absolute;bottom:0;left:.69333rem;width:2.34667rem;height:2.21333rem}._wrap_eceij_85{display:flex;flex-direction:column;width:7.73333rem;height:4.53333rem;margin:0 auto;background-image:url(/orchestra-music-score/assets/icon-heiban.9a942080.png);background-repeat:no-repeat;background-size:100%;padding-top:.74667rem;align-items:center;box-sizing:border-box}._staff_eceij_98{width:2.45333rem;height:1.01333rem}._staff_eceij_98 #cursorImg-1{display:none}._staff_eceij_98 svg path,._staff_eceij_98 svg rect,._staff_eceij_98 svg g{stroke:#fff;fill:#fff}._des_eceij_111{font-size:.16rem;color:#dde6f9;margin-top:.26667rem}._lampWrap_eceij_116{display:flex;padding:.26667rem 0}._lampWrap_eceij_116 ._lamp_eceij_116{width:.29333rem;height:.29333rem;margin:0 .10667rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAA5xJREFUSEu1lr9uG0cQxr+5I++OPMkULTuNcIAaIbADOAHSJoXhwlWqwHa6AHoIdzEEd4YfIGXKFO4MA0bgB7A7AwaSIta/I+mjREuiFDEUySNvg2+jIY4UCbnxAgSWu7fz25n5Zu4El4xGo/F1lmX3AXwvIl8aY6oikgJoGmPeOY7zhzHmWRRFR/NMybyNJEm+HY1GT40xty+7CIAugF/DMHy8vLz8z/TzFyDGGKnVao9E5BcALg+ICHzfh1cswnEca2M4HKI/GCBN6dR41LMse7C6uvo6vzgBIaBer/8G4Gc+RIOLi4souC7+7XQwSFNkxqBYLMJ1XZR8H0XPQ6fTQffsTO2eiciPURS91IUJSBzHT0TkITc9z8PVpSXst1ro9fv2v3rFeZZl9j+9K5dKdn7YbsMYw2nXdd3vVlZW3tozSms0GneyLHvFNYYmLJXwodm0xnjzeRA+y3DS22KhgI+Hhwr6u9/v31pbW+tbyMbGhrO+vv4OwFeu46BSqWBnd9caZ8gIyEMKhYKFB0GAcrls7zkajWyeYAyO2m31+mEURU8tJI7jH0TkOedXq1UcHBwgHQ6tAcaeRgnUwTUapRfc42CY+gxroYD2yYmdG2P2tre3Iwup1Wq/A/iJh5cqFbzf3MTCwgJKpdIYQGMMC40phGCF07Ner2c9d0Vs2M7HXQup1+v7xpgvFsIQp6enOD45sZAwDMeQvCeE0RPNF8GUMtc5ykGAvVbL7ovIE2k2m9fTNG1xc7latWqiTPOe0AveUD1RCEF5oNYQFdc+PrYhE5EXEsfxTRH5k5Dr165hN45tOBSiIeGaQjTRhOicz9EjrlFlp6ydbpdn3kiSJDeGw+FfCtnc2rIhYhEy8SpfQnhTGuKPSlIIz1IEXGde6MkEZDpce/v7YDkxH0w8IYTO80TDpaFiHi6EazrxZ72ebRP0RNVFSF6q0zmx9XHe47gXeN5k4i9I+MoVvN/amlAXCzEvYd6aodLE8/YMlZWv686W8HQxHh4d2ZhP14kWHQ3RMCE0rBCuB74/VtZEMU63lWq1iiRJ4Pm+vZnmRdWlbYXG82IggGsz2wpvON0gtaB421m967zb2ktwTgATPrdBav3PavUMHcVAEI3Rm3yrZ01Q6ibLLm/15/Ge+dLyPc8W1mAw+L+VeB4cqigIrCDYij75paWgz/r6HfdygIn/fB8SeRDnOzs737iuey//ScTvCBFJPvWT6D9cJW2Lx33GagAAAABJRU5ErkJggg==) no-repeat 100%/100%}._lampWrap_eceij_116 ._lamp_eceij_116>img{width:100%;height:100%;display:block}._flickerAnimate_eceij_131{animation:_flicker_eceij_131 1s cubic-bezier(.075,.82,.165,1) infinite}@keyframes _flicker_eceij_131{0%{opacity:0}50%{opacity:1}to{opacity:0}}._container_ajal8_1 img{width:100%;margin:auto;display:block}._changeIndex_ajal8_6{font-size:.16rem;position:absolute;left:.64rem;bottom:.53333rem;z-index:10;width:.4rem;height:.4rem;border-radius:100%;background-color:#01c1b5;line-height:.4rem;text-align:center;color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05)}.transverse ._changeIndex_ajal8_6{bottom:.26667rem;left:.02667rem}.flute ._changeIndex_ajal8_6{left:.32rem!important}.piccolo ._changeIndex_ajal8_6{left:1.5vw;bottom:.53333rem}.clarinet ._changeIndex_ajal8_6{left:0!important}.horn ._changeIndex_ajal8_6{left:1vw;top:1vh}.up-bass-horn ._changeIndex_ajal8_6{left:1vw}.tuba ._changeIndex_ajal8_6{right:inherit;left:1vw;bottom:.53333rem}.saxophone ._changeIndex_ajal8_6{left:1vw}.trombone ._changeIndex_ajal8_6{left:.32rem!important}@keyframes _activeopacity_ajal8_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_ajal8_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_ajal8_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_ajal8_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_ajal8_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_ajal8_1 .5s;transform-origin:0 0}._container_1fzyz_1 svg{overflow:visible}._container_1fzyz_1 #custom-cursor-hint{background-color:var(--cursor-background-color)}._container_1fzyz_1 #custom-cursor-bg-hint{background-color:var(--section-background-color)}._container_1fzyz_1 img{min-height:calc(80PX * var(--osdm-zoom));margin:auto;aspect-ratio:unset;margin-top:calc(-20PX * var(--osdm-zoom));content:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);background-color:var(--cursor-background-color);background-repeat:repeat-y;background-position-x:calc(15PX * var(--osdm-zoom));width:2PX!important;transform:translate(calc(13PX * var(--osdm-zoom)));border-radius:calc(4PX * var(--osdm-zoom));overflow:hidden}.hideCursor ._container_1fzyz_1 img{opacity:0}.eyeProtection ._container_1fzyz_1 #custom-cursor-hint{background-color:var(--eye-cursor-background-color)!important}.eyeProtection ._container_1fzyz_1 #custom-cursor-bg-hint{background-color:var(--eye-section-background-color)!important}.eyeProtection ._container_1fzyz_1 img{background-color:var(--eye-cursor-background-color)}._container_1fzyz_1._eyeProtection_1fzyz_27{background-color:#fff0d6}._section_fyemo_1 ._measure_fyemo_1{transition:.5s all;position:relative}._section_fyemo_1 ._measure_fyemo_1._dontTransition_fyemo_5 ._after_fyemo_5{display:none}._section_fyemo_1 ._measure_fyemo_1 ._after_fyemo_5{transform:translateY(-.8rem) scale(.75);top:0;opacity:0;transition:.5s all;content:"";position:absolute;display:flex;align-items:center;width:160PX;height:100%;left:0;margin-left:-32PX}._section_fyemo_1 ._measure_fyemo_1 ._after_fyemo_5 ._img_fyemo_22{display:block;background-repeat:no-repeat;background-position:right;background-size:cover;height:100%;width:130PX}._section_fyemo_1 ._measure_fyemo_1 ._after_fyemo_5 ._font_fyemo_30{font-size:.48rem;font-family:Roboto,sans-serif;font-weight:700}._section_fyemo_1 ._bad_fyemo_35{background-color:rgba(255,142,142,.32);color:#ee4c6a}._section_fyemo_1 ._bad_fyemo_35 ._after_fyemo_5 ._img_fyemo_22{background-image:url(/orchestra-music-score/assets/bad.d9395829.png?inline);background-position:20PX}._section_fyemo_1 ._good_fyemo_43{background-color:rgba(1,193,181,.2);color:#ff958b}._section_fyemo_1 ._good_fyemo_43 ._after_fyemo_5 ._img_fyemo_22{background-image:url(/orchestra-music-score/assets/good.79181f8b.png?inline);background-position:5PX}._section_fyemo_1 ._great_fyemo_51{background-color:rgba(255,178,82,.37);color:#ff8e5a}._section_fyemo_1 ._great_fyemo_51 ._after_fyemo_5 ._img_fyemo_22{background-image:url(/orchestra-music-score/assets/great.39cb6b25.png?inline)}._section_fyemo_1 ._perfect_fyemo_58{background-color:rgba(255,220,64,.4);color:#516aff}._section_fyemo_1 ._perfect_fyemo_58 ._after_fyemo_5 ._img_fyemo_22{background-image:url(/orchestra-music-score/assets/perfect.ab44b0e5.png?inline)}._section_fyemo_1 .list-enter-active,._section_fyemo_1 .list-enter-active ._after_fyemo_5{opacity:1}._section_fyemo_1 .list-enter-from{opacity:0}._section_fyemo_1 .list-enter-from ._after_fyemo_5{left:50%;opacity:1;transform:translateY(0) scale(1);margin-left:-65PX}._noteWrap_fyemo_80{display:flex;flex-direction:column;justify-content:center;align-items:center}._noteBase_fyemo_86{display:none}.follow-success>._noteRight_fyemo_89{display:block}.follow-error>._noteError_fyemo_92{display:block}.dotWrap{position:absolute;display:flex;justify-content:flex-end;transform:translateY(-10%)}.dotWrap .dot{display:flex;justify-content:center;align-items:center;width:20PX;height:20PX;border-radius:50%;background-color:#ff9100;color:#fff;font-weight:700;font-size:14Px}.lineHide,._lineHide_fyemo_113{display:none!important}._lineTEST_fyemo_119{position:absolute;min-height:56PX;margin-top:-14PX;background-color:var(--cursor-background-color);width:2PX!important;border-radius:calc(4PX * var(--osdm-zoom));transform:translate(3PX)}@keyframes _flash_fyemo_139{0%{opacity:0}50%{opacity:1}to{opacity:0}}._flash_fyemo_139{animation:_flash_fyemo_139 1.2s infinite ease-in-out}._restFlag_fyemo_142{position:absolute;left:.53333rem;top:.53333rem;display:flex;align-items:center}._restFlag_fyemo_142 div{width:10PX;height:10PX;border-radius:50%;background-color:#ff9100;margin:0 1PX}._restFlagActive_fyemo_156{animation:_flicker_fyemo_1 1s ease infinite}._restFlagActive_fyemo_156 div{background-color:#2dc7aa}@keyframes _flicker_fyemo_1{0%{opacity:1}50%{opacity:.2}to{opacity:1}}._popup_6gl7n_1{background:transparent;width:3.25333rem;border-radius:.24rem}._wrap_6gl7n_6{background:#fff;text-align:center;border-radius:0 0 .24rem .24rem}._image_6gl7n_11{width:100%;display:block;margin-bottom:-.10667rem}._title_6gl7n_16{font-size:.21333rem;font-weight:500;color:#1a1a1a;line-height:.32rem;padding:.26667rem 0 .08rem}._andTitle_6gl7n_23{font-size:13Px}._sub_6gl7n_26{font-size:.16rem;font-weight:400;color:gray;margin-bottom:.21333rem}._andSub_6gl7n_32{font-size:12Px}._btnWrap_6gl7n_35{display:flex;align-items:center;justify-content:space-evenly;padding-bottom:.21333rem}._btn_6gl7n_35{width:1.62667rem;height:.45333rem;background-color:transparent;border:none;background-size:100% 100%;background-repeat:no-repeat}._cancelBtn_6gl7n_49{background-image:url(/orchestra-music-score/assets/no-confirm-btn.5ed39ffd.svg)}._confirmBtn_6gl7n_52{background-image:url(/orchestra-music-score/assets/confirm-btn.a36604ec.svg)}._tryoutBtn_6gl7n_55{background-image:url(/orchestra-music-score/assets/tryout-btn.891d6395.svg)}._discounts_6gl7n_58{position:relative}._discounts_6gl7n_58:after{width:.66667rem;height:.21333rem;line-height:.21333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.10667rem .10667rem .10667rem 0;content:"\\4e13\\5c5e\\4f18\\60e0";font-size:.13333rem;color:#fff;top:-.16rem;position:absolute;left:.16rem}._membershipBtn_6gl7n_74{background-image:url(/orchestra-music-score/assets/membership-btn.6c4804e5.svg)}._demandBtn_6gl7n_77{background-image:url(/orchestra-music-score/assets/demand-btn.56c792ce.svg)}._demandBtnFree_6gl7n_80{background-image:url(/orchestra-music-score/assets/demand-btn-free.c8a03b7c.svg)}._earphoneBtn_6gl7n_83{background-image:url(/orchestra-music-score/assets/earphone-btn.1f36474b.png)}._closeBtn_6gl7n_86{position:absolute;right:-30Px;top:20Px}._item_6tre7_1{display:flex;align-items:center;margin:0 .18667rem;padding:.18667rem .26667rem .18667rem .21333rem;border-radius:.10667rem}._item_6tre7_1.active{background-color:#edfffc}._item_6tre7_1.active>p{color:#2dc7aa}._item_6tre7_1.active:after{content:"\\5f53\\524d";font-size:.18667rem;color:#2dc7aa;display:inline-block;padding-left:.08rem}._item_6tre7_1 ._tag_6tre7_23{height:.24rem;line-height:.24rem;border-radius:.08rem;text-align:center;display:block;margin-right:.10667rem;--van-tag-plain-background-color: transparent}._item_6tre7_1 ._tag_6tre7_23:after{border-radius:.10667rem}._item_6tre7_1 ._tag_6tre7_23:before{display:none}._item_6tre7_1 ._tag_6tre7_23.VIP{--van-tag-default-color: #cd863e;--van-gray-3: #cd863e}._item_6tre7_1 ._tag_6tre7_23.CHARGE{--van-tag-default-color: #3591ce;--van-gray-3: #3591ce}._item_6tre7_1 ._tag_6tre7_23.FREE{--van-tag-default-color: #01b84f;--van-gray-3: #01b84f}._item_6tre7_1>p{color:#333;font-size:.18667rem;margin:0;line-height:.26667rem;white-space:pre;overflow:hidden;flex:1;text-overflow:ellipsis}._tabs_6tre7_60{height:100vh;display:flex;flex-direction:column;--van-tab-text-color: #999999;--van-tab-active-text-color: #333;--van-tabs-bottom-bar-color: #2dc7aa;--van-tabs-bottom-bar-width: .34667rem;--van-tabs-bottom-bar-height: .05333rem}._tabs_6tre7_60 .van-tabs__line{width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background-color:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}._tabs_6tre7_60 .van-tab>span{color:var(--van-tab-active-text-color)!important}._tabs_6tre7_60 .van-tabs__wrap{height:.88rem!important;position:relative}._tabs_6tre7_60 .van-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #e8e8e8;transform:scale(.5);border-bottom-width:.02667rem}._tabs_6tre7_60 .van-tabs__wrap .van-tabs__line{bottom:.5rem!important}._tabs_6tre7_60 .van-tabs__content{height:calc(100vh - .88rem)}._tabs_6tre7_60 .van-tab__pane{height:100%}._list_6tre7_105{padding:.21333rem 0}._tab_6tre7_60{box-sizing:border-box;overflow:hidden;height:100%;overflow-y:auto}._dot_1cv1i_1{background-color:silver;display:inline-block;margin-right:10PX;width:10PX;height:10PX;border-radius:100%}._dot_1cv1i_1._active_1cv1i_9{background-color:var(--van-primary-color)}._container_1cv1i_12{padding-top:.26667rem;padding-bottom:.4rem;margin:auto}._tickWrap_1ouif_1{--van-popup-close-icon-margin: .42667rem}._container_hiwv0_1 img{width:100%;margin:auto;display:block}._changeIndex_hiwv0_6{font-size:.16rem;position:absolute;left:.64rem;bottom:.53333rem;z-index:10;width:.4rem;height:.4rem;border-radius:100%;background-color:#01c1b5;line-height:.4rem;text-align:center;color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05)}.transverse ._changeIndex_hiwv0_6{bottom:.26667rem;left:.02667rem}.flute ._changeIndex_hiwv0_6{left:.32rem!important}.piccolo ._changeIndex_hiwv0_6{left:1.5vw;bottom:.53333rem}.clarinet ._changeIndex_hiwv0_6{left:0!important}.horn ._changeIndex_hiwv0_6{left:1vw;top:1vh}.up-bass-horn ._changeIndex_hiwv0_6{left:1vw}.tuba ._changeIndex_hiwv0_6{right:inherit;left:1vw;bottom:.53333rem}.saxophone ._changeIndex_hiwv0_6{left:1vw}.trombone ._changeIndex_hiwv0_6{left:.32rem!important}@keyframes _activeopacity_hiwv0_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_hiwv0_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_hiwv0_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_hiwv0_1 .5s;transform-origin:0 0}.piccolo{margin-top:0}.piano .right101 #b101,.piano .right102 #b102,.piano .right103 #b103,.piano .right103 #b103,.piano .right104 #b104,.piano .right105 #b105,.piano .right106 #b106,.piano .right107 #b107,.piano .right108 #b108,.piano .right109 #b109,.piano .right110 #b110,.piano .right111 #b111,.piano .right112 #b112,.piano .right113 #b113,.piano .right114 #b114,.piano .right115 #b115,.piano .right116 #b116,.piano .right117 #b117,.piano .right118 #b118,.piano .right119 #b119,.piano .right120 #b120,.piano .right121 #b121,.piano .right122 #b122,.piano .right123 #b123,.piano .right124 #b124,.piano .right125 #b125,.piano .right126 #b126,.piano .right127 #b127,.piano .right128 #b128,.piano .right129 #b129,.piano .right130 #b130,.piano .right131 #b131,.piano .right132 #b132,.piano .right133 #b133,.piano .right134 #b134,.piano .right135 #b135,.piano .right136 #b136,.piano .right137 #b137,.piano .right138 #b138,.piano .right139 #b139,.piano .right140 #b140,.piano .right141 #b141,.piano .right142 #b142,.piano .right143 #b143,.piano .right144 #b144,.piano .right145 #b145,.piano .right146 #b146,.piano .right147 #b147,.piano .right148 #b148,.piano .right149 #b149,.piano .right150 #b150,.piano .right151 #b151,.piano .right152 #b152{fill:#9fb9f9;stroke:#3f6ee0}.piano .right1 #h1>path:first-child,.piano .right2 #h2>path:first-child,.piano .right3 #h3>path:first-child,.piano .right3 #h3>path:first-child,.piano .right4 #h4>path:first-child,.piano .right5 #h5>path:first-child,.piano .right6 #h6>path:first-child,.piano .right7 #h7>path:first-child,.piano .right8 #h8>path:first-child,.piano .right9 #h9>path:first-child,.piano .right10 #h10>path:first-child,.piano .right11 #h11>path:first-child,.piano .right12 #h12>path:first-child,.piano .right13 #h13>path:first-child,.piano .right14 #h14>path:first-child,.piano .right15 #h15>path:first-child,.piano .right16 #h16>path:first-child,.piano .right17 #h17>path:first-child,.piano .right18 #h18>path:first-child,.piano .right19 #h19>path:first-child,.piano .right20 #h20>path:first-child,.piano .right21 #h21>path:first-child,.piano .right22 #h22>path:first-child,.piano .right23 #h23>path:first-child,.piano .right24 #h24>path:first-child,.piano .right25 #h25>path:first-child,.piano .right26 #h26>path:first-child,.piano .right27 #h27>path:first-child,.piano .right28 #h28>path:first-child,.piano .right29 #h29>path:first-child,.piano .right30 #h30>path:first-child,.piano .right31 #h31>path:first-child,.piano .right32 #h32>path:first-child,.piano .right33 #h33>path:first-child,.piano .right34 #h34>path:first-child,.piano .right35 #h35>path:first-child,.piano .right36 #h36>path:first-child{fill:url(#linearGradient-2)}.piano .left101 #b101,.piano .left102 #b102,.piano .left103 #b103,.piano .left103 #b103,.piano .left104 #b104,.piano .left105 #b105,.piano .left106 #b106,.piano .left107 #b107,.piano .left108 #b108,.piano .left109 #b109,.piano .left110 #b110,.piano .left111 #b111,.piano .left112 #b112,.piano .left113 #b113,.piano .left114 #b114,.piano .left115 #b115,.piano .left116 #b116,.piano .left117 #b117,.piano .left118 #b118,.piano .left119 #b119,.piano .left120 #b120,.piano .left121 #b121,.piano .left122 #b122,.piano .left123 #b123,.piano .left124 #b124,.piano .left125 #b125,.piano .left126 #b126,.piano .left127 #b127,.piano .left128 #b128,.piano .left129 #b129,.piano .left130 #b130,.piano .left131 #b131,.piano .left132 #b132,.piano .left133 #b133,.piano .left134 #b134,.piano .left135 #b135,.piano .left136 #b136,.piano .left137 #b137,.piano .left138 #b138,.piano .left139 #b139,.piano .left140 #b140,.piano .left141 #b141,.piano .left142 #b142,.piano .left143 #b143,.piano .left144 #b144,.piano .left145 #b145,.piano .left146 #b146,.piano .left147 #b147,.piano .left148 #b148,.piano .left149 #b149,.piano .left150 #b150,.piano .left151 #b151,.piano .left152 #b152{fill:#ffc046;stroke:#ff6f38}.piano .left1 #h1>path:first-child,.piano .left2 #h2>path:first-child,.piano .left3 #h3>path:first-child,.piano .left3 #h3>path:first-child,.piano .left4 #h4>path:first-child,.piano .left5 #h5>path:first-child,.piano .left6 #h6>path:first-child,.piano .left7 #h7>path:first-child,.piano .left8 #h8>path:first-child,.piano .left9 #h9>path:first-child,.piano .left10 #h10>path:first-child,.piano .left11 #h11>path:first-child,.piano .left12 #h12>path:first-child,.piano .left13 #h13>path:first-child,.piano .left14 #h14>path:first-child,.piano .left15 #h15>path:first-child,.piano .left16 #h16>path:first-child,.piano .left17 #h17>path:first-child,.piano .left18 #h18>path:first-child,.piano .left19 #h19>path:first-child,.piano .left20 #h20>path:first-child,.piano .left21 #h21>path:first-child,.piano .left22 #h22>path:first-child,.piano .left23 #h23>path:first-child,.piano .left24 #h24>path:first-child,.piano .left25 #h25>path:first-child,.piano .left26 #h26>path:first-child,.piano .left27 #h27>path:first-child,.piano .left28 #h28>path:first-child,.piano .left29 #h29>path:first-child,.piano .left30 #h30>path:first-child,.piano .left31 #h31>path:first-child,.piano .left32 #h32>path:first-child,.piano .left33 #h33>path:first-child,.piano .left34 #h34>path:first-child,.piano .left35 #h35>path:first-child,.piano .left36 #h36>path:first-child{fill:url(#linearGradient-3)}._fingering_y2dbu_1{position:fixed;bottom:0;left:0;right:0;padding:.13333rem;box-sizing:border-box;z-index:10;padding-top:0}._fingering_y2dbu_1.vertical{box-shadow:none!important}._fingering_y2dbu_1.vertical{top:.93333rem;left:0;right:initial}._fingering_y2dbu_1.vertical:before{display:none}._fingering_y2dbu_1.transverse>div{max-width:60%;margin:auto}._fingering_y2dbu_1 .substituteFinger{background:url(/orchestra-music-score/assets/substituteFinger.5d97109d.svg) no-repeat center;background-size:contain;left:0;color:transparent}._wrap_1a32j_1{position:fixed;left:0;bottom:0;z-index:1000}._wrap_1a32j_1 ._wrapItem_1a32j_7>span{margin-right:.05333rem}._wrap_1a32j_1 .van-cell-group{display:flex;background-color:rgba(0,0,0,.5);backdrop-filter:blur(.10667rem);border-radius:.05333rem;overflow:hidden}._wrap_1a32j_1 .van-cell{width:auto;padding:.10667rem;line-height:.16rem;background-color:transparent;color:#fff}._wrap_1a32j_1 ._clearItem_1a32j_24,._wrap_1a32j_1 ._saveItem_1a32j_25{border-left:.02667rem solid #fff}._wrap_1a32j_1 ._clearItem_1a32j_24:hover,._wrap_1a32j_1 ._saveItem_1a32j_25:hover{background-color:#000}._wrap_1a32j_1 ._clearItem_1a32j_24 .van-cell__title{color:#fffc00}._wrap_1a32j_1 ._saveItem_1a32j_25 .van-cell__title{color:#62ff62}._container_gkw8f_1{--header-padding-top: .00267rem;position:relative;box-sizing:border-box;height:100vh;background-size:cover}._headTitle_gkw8f_8{font-size:.32rem;font-weight:700;text-align:center;padding:.18667rem 0 0;margin:auto 0 auto auto}.openCamera{opacity:.7}.eyeProtection ._musicSheet_gkw8f_18{background:var(--eye-background-color)!important}.eyeProtection._container_gkw8f_1:before{background-image:none}.noVip .van-dialog__header{font-size:18Px}.noVip .van-dialog__message{font-size:14Px;padding:16Px 0}.van-popup--center{margin-left:var(--popup-loading)}._musicSheet_gkw8f_18{z-index:1;position:relative;width:100%;height:100vh;background-color:#fff;padding-top:.74667rem;overflow:hidden;overflow-y:auto;box-sizing:border-box}._musicSheet_gkw8f_18::-webkit-scrollbar{width:0}._skeleton_gkw8f_48 .van-skeleton__content .van-skeleton__title,._skeleton_gkw8f_48 .van-skeleton__content .van-skeleton__row{margin:.26667rem auto;height:.42667rem}._skeleton_gkw8f_48 .van-skeleton__content .van-skeleton__row{width:80%!important}._tips_gkw8f_56{top:calc(1.28rem + var(--header-padding-top))!important;width:auto!important}._tips_gkw8f_56>img{width:.93333rem!important}._tips_gkw8f_56 .van-notice-bar{margin-top:.4rem!important;background:linear-gradient(180deg,#ffcd43 0%,#feaf17 100%)!important;color:#fff!important;border:none!important;margin-left:1vw!important;width:40vw!important;min-width:7.46667rem!important}._tips_gkw8f_56 .van-notice-bar:before{border:none!important;margin-left:-.18667rem!important;background:#febe2e!important}._tips_gkw8f_56 .van-swipe-item{font-size:.37333rem!important}._errorWrap_gkw8f_80{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:1000;background:#fff;display:flex;align-items:center;justify-content:center}._partName_gkw8f_92{text-align:center;font-size:14Px;margin:auto 0 auto auto}._tipsContainer_1tygt_1{background:transparent;width:100vw;height:100vh;margin-left:0}._backBtn_1tygt_7{position:absolute;left:.64rem;top:.32rem;padding:.10667rem .26667rem;border-radius:.53333rem;border:.02667rem solid #ffffff;font-size:.16rem;color:#fff;text-align:center}._backBtn_1tygt_7:active{opacity:.8}._content_1tygt_21{position:relative;width:100%;height:100%}._parent_1tygt_26{position:absolute;padding:.10667rem;background:#f8f9ed;border-radius:.53333rem;animation:_myscale_1tygt_1 1.5s infinite}._parent_1tygt_26 img{width:100%;height:100%}._item_1tygt_37{position:absolute;width:3.41333rem;z-index:10}._item_1tygt_37 ._img_1tygt_42{position:absolute;width:100%}._item_1tygt_37 ._iconHead_1tygt_46{position:absolute;left:.8rem;width:.4rem;height:.56rem}._item_1tygt_37 ._btns_1tygt_52{position:absolute;display:flex;width:100%;padding:0 .32rem}._item_1tygt_37 ._btns_1tygt_52 ._btn_1tygt_52{width:1.36rem;height:.42667rem;line-height:.42667rem;padding:0}@keyframes _myscale_1tygt_1{0%{transform:scale(.9)}50%{transform:scale(1)}to{transform:scale(.9)}}._modelWraper_xj35j_1{position:fixed;left:0;right:0;bottom:0;z-index:100}._modelWraper_xj35j_1 ._wrap_xj35j_8{padding:.26667rem 0;display:flex;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.5) 0%,#ffffff 100%)}._modelWraper_xj35j_1 ._wrap_xj35j_8 img{width:1.92rem;height:.74667rem;margin:0 .32rem}.green .vf-notehead>path{fill:green}._follow_1hnxg_4{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10}._title_1hnxg_12{margin-top:1.06667rem;font-size:.32rem}._endBtns_1hnxg_16{position:fixed;top:1.06667rem;right:.26667rem}._button_1hnxg_21{height:.61333rem;padding:0;margin:0;border:none;background:none;font-size:0}._button_1hnxg_21._hasText_1hnxg_29{height:.72rem;border-radius:.10667rem;font-size:.13333rem;margin-right:.26667rem}._button_1hnxg_21._hasText_1hnxg_29 img{width:.4rem;height:.37333rem;display:block;margin:auto;margin-bottom:.02667rem}._button_1hnxg_21._hasText_1hnxg_29 .van-button__text{display:flex;font-size:.13333rem;color:#828282;flex-direction:column}._button_1hnxg_21._hasText_1hnxg_29 .van-button__text>span{display:block;margin-top:.05333rem}._button_1hnxg_21._bigIcon_1hnxg_52 img{width:.66667rem;height:.37333rem;display:block;margin:auto;margin-bottom:.02667rem}._start_1hnxg_59{width:2rem;height:2rem;background-repeat:no-repeat;background-position:center;background-size:100%;border-radius:100%;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.32rem;color:#fff}\n',document.head.appendChild(__vite_style__),System.register([],(function(exports,module){"use strict";return{execute:function execute(){var _window$webkit,_window$webkit$messag;exports({N:reactive,T:Toast,W:mergeProps,_:nextTick,a4:Dialog,a6:startRun,aA:callInterceptor,aC:mountComponent,aD:usePopupState,ab:createNamespace,ac:isDef$1,ad:addUnit,ae:withDirectives,af:resolveDirective,ah:withInstall,aj:svgtopng,am:cancelRaf,an:raf$2,ao:getSizeStyle,ap:isObject$1,aq:useTouch,as:preventDefault,at:clamp,aw:useWindowSize,ax:useExpose,ay:pick,b8:resolveComponent,bc:isVNode,bo:useChildren,bp:useScrollParent,bq:useClickAway,br:useEventListener,bt:useParent,bv:getZIndexStyle,d:defineComponent,g:createTextVNode,r:ref,t:toRefs,w:watch});var __glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,get getImage(){return getImage}},Symbol.toStringTag,{value:"Module"})),p$3=function(){var e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){var t,n=_createForOfIteratorHelper(document.querySelectorAll('link[rel="modulepreload"]'));try{for(n.s();!(t=n.n()).done;){r(t.value)}}catch(i){n.e(i)}finally{n.f()}new MutationObserver((function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;if("childList"===a.type){var o,s=_createForOfIteratorHelper(a.addedNodes);try{for(s.s();!(o=s.n()).done;){var l=o.value;"LINK"===l.tagName&&"modulepreload"===l.rel&&r(l)}}catch(i){s.e(i)}finally{s.f()}}}}catch(i){n.e(i)}finally{n.f()}})).observe(document,{childList:!0,subtree:!0})}function r(e){if(!e.ep){e.ep=!0;var t=function(e){var t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}};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]}}var specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||""===e}function normalizeStyle(e){if(isArray$5(e)){for(var t={},n=0;n<e.length;n++){var r=e[n],i=isString(r)?parseStringStyle(r):normalizeStyle(r);if(i)for(var a in i)t[a]=i[a]}return t}return isString(e)||isObject$4(e)?e:void 0}var listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:(.+)/;function parseStringStyle(e){var t={};return e.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(e))t=e;else if(isArray$5(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 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$2=Object.prototype.hasOwnProperty,hasOwn=function(e,t){return hasOwnProperty$2.call(e,t)},isArray$5=Array.isArray,isMap=function(e){return"[object Map]"===toTypeString(e)},isSet=function(e){return"[object Set]"===toTypeString(e)},isFunction$4=function(e){return"function"==typeof e},isString=function(e){return"string"==typeof e},isSymbol=function(e){return"symbol"===_typeof3(e)},isObject$4=function(e){return null!==e&&"object"===_typeof3(e)},isPromise$1=function(e){return isObject$4(e)&&isFunction$4(e.then)&&isFunction$4(e.catch)},objectToString$1=Object.prototype.toString,toTypeString=function(e){return objectToString$1.call(e)},toRawType=function(e){return toTypeString(e).slice(8,-1)},isPlainObject$2=function(e){return"[object Object]"===toTypeString(e)},isIntegerKey=function(e){return isString(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$1=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})},toNumber=function(e){var t=parseFloat(e);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.active=!0,this.effects=[],this.cleanups=[],!t&&activeEffectScope&&(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}return _createClass2(e,[{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.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}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)}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$1(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$5(e))o.forEach((function(e,t){("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(o.get(n)),t){case"add":isArray$5(e)?isIntegerKey(n)&&s.push(o.get("length")):(s.push(o.get(ITERATE_KEY)),isMap(e)&&s.push(o.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$5(e)||(s.push(o.get(ITERATE_KEY)),isMap(e)&&s.push(o.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&s.push(o.get(ITERATE_KEY))}if(1===s.length)s[0]&&triggerEffects(s[0]);else{var l,u=[],c=_createForOfIteratorHelper(s);try{for(c.s();!(l=c.n()).done;){var h=l.value;h&&u.push.apply(u,_toConsumableArray2(h))}}catch(f){c.e(f)}finally{c.f()}triggerEffects(createDep(u))}}}function triggerEffects(e,t){var n,r=_createForOfIteratorHelper(isArray$5(e)?e:_toConsumableArray2(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;(i!==activeEffect||i.allowRecurse)&&(i.scheduler?i.scheduler():i.run())}}catch(a){r.e(a)}finally{r.f()}}var isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).map((function(e){return Symbol[e]})).filter(isSymbol)),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 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$5(n);if(!e&&a&&hasOwn(arrayInstrumentations,r))return Reflect.get(arrayInstrumentations,r,i);var o=Reflect.get(n,r,i);return(isSymbol(r)?builtInSymbols.has(r):isNonTrackableKeys(r))?o:(e||track(n,"get",r),t?o:isRef(o)?!a||!isIntegerKey(r)?o.value:o:isObject$4(o)?e?readonly(o):reactive(o):o)}}var set=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&&!isReadonly(r)&&(isShallow(r)||(r=toRaw(r),a=toRaw(a)),!isArray$5(t)&&isRef(a)&&!isRef(r)))return a.value=r,!0;var o=isArray$5(t)&&isIntegerKey(n)?Number(n)<t.length:hasOwn(t,n),s=Reflect.set(t,n,r,i);return t===toRaw(i)&&(o?hasChanged(r,a)&&trigger$1(t,"set",n,r):trigger$1(t,"add",n,r)),s}}function deleteProperty(e,t){var n=hasOwn(e,t);e[t];var r=Reflect.deleteProperty(e,t);return r&&n&&trigger$1(e,"delete",t,void 0),r}function has$3(e,t){var n=Reflect.has(e,t);return isSymbol(t)&&builtInSymbols.has(t)||track(e,"has",t),n}function ownKeys(e){return track(e,"iterate",isArray$5(e)?"length":ITERATE_KEY),Reflect.ownKeys(e)}var mutableHandlers={get:get$1,set:set,deleteProperty:deleteProperty,has:has$3,ownKeys:ownKeys},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=function(e){return Reflect.getPrototypeOf(e)};function get$1$1(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);t!==a&&!n&&track(i,"get",t),!n&&track(i,"get",a);var o=getProto(i),s=o.has,l=r?toShallow:n?toReadonly:toReactive;return s.call(i,t)?l(e.get(t)):s.call(i,a)?l(e.get(a)):void(e!==i&&e.get(t))}function has$1$1(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=toRaw(n),i=toRaw(e);return e!==i&&!t&&track(r,"has",e),!t&&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(t).has.call(t,e)||(t.add(e),trigger$1(t,"add",e,e)),this}function set$1(e,t){t=toRaw(t);var n=toRaw(this),r=getProto(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$1(n,"set",e,t):trigger$1(n,"add",e,t),this}function deleteEntry(e){var t=toRaw(this),n=getProto(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$1(t,"delete",e,void 0),o}function clear(){var e=toRaw(this),t=0!==e.size,n=e.clear();return t&&trigger$1(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(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$1$1(this,e)},get size(){return size(this)},has:has$1$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!1)},t={get:function(e){return get$1$1(this,e,!1,!0)},get size(){return size(this)},has:has$1$1,add:add,set:set$1,delete:deleteEntry,clear:clear,forEach:createForEach(!1,!0)},n={get:function(e){return get$1$1(this,e,!0)},get size(){return size(this,!0)},has:function(e){return has$1$1.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$1$1(this,e,!0,!0)},get size(){return size(this,!0)},has:function(e){return has$1$1.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(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){(e=toRaw(e)).dep&&triggerEffects(e.dep)}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){e=this.__v_isShallow?e:toRaw(e),hasChanged(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?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$5(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}}]),e}();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._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$4(e);a?(n=e,r=NOOP):(n=e.get,r=e.set);var o=new ComputedRefImpl(n,r,a||!r,i);return o}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$4(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)}var isFlushing=!1,isFlushPending=!1,queue$2=[],flushIndex=0,pendingPreFlushCbs=[],activePreFlushCbs=null,preFlushIndex=0,pendingPostFlushCbs=[],activePostFlushCbs=null,postFlushIndex=0,resolvedPromise=Promise.resolve(),currentFlushPromise=null,currentPreFlushParentJob=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$2.length;t<n;){var r=t+n>>>1;getId(queue$2[r])<e?t=r+1:n=r}return t}function queueJob(e){queue$2.length&&queue$2.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex)||e===currentPreFlushParentJob||(null==e.id?queue$2.push(e):queue$2.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){isFlushing||isFlushPending||(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){var t=queue$2.indexOf(e);t>flushIndex&&queue$2.splice(t,1)}function queueCb(e,t,n,r){isArray$5(e)?n.push.apply(n,_toConsumableArray2(e)):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=t,activePreFlushCbs=_toConsumableArray2(new Set(pendingPreFlushCbs)),pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndex<activePreFlushCbs.length;preFlushIndex++)activePreFlushCbs[preFlushIndex]();activePreFlushCbs=null,preFlushIndex=0,currentPreFlushParentJob=null,flushPreFlushCbs(e,t)}}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};function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue$2.sort((function(e,t){return getId(e)-getId(t)}));try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){var t=queue$2[flushIndex];t&&!1!==t.active&&callWithErrorHandling(t,null,14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPreFlushCbs.length||pendingPostFlushCbs.length)&&flushJobs(e)}}function emit$1(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="".concat("modelValue"===u?"model":u,"Modifiers"),h=n[c]||EMPTY_OBJ,f=h.number,d=h.trim;d?s=i.map((function(e){return e.trim()})):f&&(s=i.map(toNumber))}var p=n[o=toHandlerKey(t)]||n[o=toHandlerKey(camelize$1(t))];!p&&l&&(p=n[o=toHandlerKey(hyphenate(t))]),p&&callWithAsyncErrorHandling(p,e,6,s);var m=n[o+"Once"];if(m){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,callWithAsyncErrorHandling(m,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$4(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$5(a)?a.forEach((function(e){return o[e]=null})):extend$3(o,a),r.set(e,o),o):(r.set(e,null),null)}function isEmitListener(e,t){return!(!e||!isOn(t))&&(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}var currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){var t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}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=setCurrentRenderingInstance(t),i=e.apply(void 0,arguments);return setCurrentRenderingInstance(r),n._d&&setBlockTracking(1),i};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,f=e.render,d=e.renderCache,p=e.data,m=e.setupState,g=e.ctx,v=e.inheritAttrs,y=setCurrentRenderingInstance(e);try{if(4&i.shapeFlag){var b=o||a;t=normalizeVNode(f.call(b,b,d,s,m,p,g)),n=c}else{var S=r;0,t=normalizeVNode(S.length>1?S(s,{attrs:c,slots:u,emit:h}):S(s,null)),n=r.props?c:getFunctionalFallthrough(c)}}catch(k){blockStack.length=0,handleError(k,e,1),t=createVNode(Comment)}var x=t;if(n&&!1!==v){var w=Object.keys(n),_=x.shapeFlag;w.length&&7&_&&(l&&w.some(isModelListener)&&(n=filterModelListeners(n,l)),x=cloneVNode(x,n))}return i.dirs&&(x.dirs=x.dirs?x.dirs.concat(i.dirs):i.dirs),i.transition&&(x.transition=i.transition),t=x,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 f=c[h];if(o[f]!==r[f]&&!isEmitListener(u,f))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$5(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$4(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,currentInstance),u=!1,c=!1;if(isRef(e)?(n=function(){return e.value},u=isShallow(e)):isReactive(e)?(n=function(){return e},o=!0):isArray$5(e)?(c=!0,u=e.some(isReactive),n=function(){return e.map((function(e){return isRef(e)?e.value:isReactive(e)?traverse(e):isFunction$4(e)?callWithErrorHandling(e,l,2):void 0}))}):n=isFunction$4(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 f=function(e){r=m.onStop=function(){callWithErrorHandling(e,l,4)}};if(isInSSRComponentSetup)return f=NOOP,t?a&&callWithAsyncErrorHandling(t,l,3,[n(),c?[]:void 0,f]):n(),NOOP;var d=c?[]:INITIAL_WATCHER_VALUE,p=function(){if(m.active)if(t){var e=m.run();(o||u||(c?e.some((function(e,t){return hasChanged(e,d[t])})):hasChanged(e,d)))&&(r&&r(),callWithAsyncErrorHandling(t,l,3,[e,d===INITIAL_WATCHER_VALUE?void 0:d,f]),d=e)}else m.run()};p.allowRecurse=!!t;var m=new ReactiveEffect(n,"sync"===s?p:"post"===s?function(){return queuePostRenderEffect(p,l&&l.suspense)}:function(){!l||l.isMounted?queuePreFlushCb(p):p()});return t?a?p():d=m.run():"post"===s?queuePostRenderEffect(m.run.bind(m),l&&l.suspense):m.run(),function(){m.stop(),l&&l.scope&&remove$7(l.scope.effects,m)}}function instanceWatch(e,t,n){var r,i=this.proxy,a=isString(e)?e.includes(".")?createPathGetter(i,e):function(){return i[e]}:e.bind(i,i);isFunction$4(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$5(e))for(var n=0;n<e.length;n++)traverse(e[n],t);else if(isSet(e)||isMap(e))e.forEach((function(e){traverse(e,t)}));else if(isPlainObject$2(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(S){l.e(S)}finally{l.f()}}var c=toRaw(e),h=c.mode;if(a.isLeaving)return emptyPlaceholder(o);var f=getKeepAliveChild(o);if(!f)return emptyPlaceholder(o);var d=resolveTransitionHooks(f,c,a,i);setTransitionHooks(f,d);var p=i.subTree,m=p&&getKeepAliveChild(p),g=!1,v=f.type.getTransitionKey;if(v){var y=v();void 0===n?n=y:y!==n&&(n=y,g=!0)}if(m&&m.type!==Comment&&(!isSameVNodeType(f,m)||g)){var b=resolveTransitionHooks(m,c,a,i);if(setTransitionHooks(m,b),"out-in"===h)return a.isLeaving=!0,b.afterLeave=function(){a.isLeaving=!1,i.update()},emptyPlaceholder(o);"in-out"===h&&f.type!==Comment&&(b.delayLeave=function(e,t,n){getLeavingNodesForType(a,m)[String(m.key)]=m,e._leaveCb=function(){t(),e._leaveCb=void 0,delete d.delayedLeave},d.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,f=t.onBeforeLeave,d=t.onLeave,p=t.onAfterLeave,m=t.onLeaveCancelled,g=t.onBeforeAppear,v=t.onAppear,y=t.onAfterAppear,b=t.onAppearCancelled,S=String(e.key),x=getLeavingNodesForType(n,e),w=function(e,t){e&&callWithAsyncErrorHandling(e,r,9,t)},_={mode:a,persisted:s,beforeEnter:function(t){var r=l;if(!n.isMounted){if(!i)return;r=g||l}t._leaveCb&&t._leaveCb(!0);var a=x[S];a&&isSameVNodeType(e,a)&&a.el._leaveCb&&a.el._leaveCb(),w(r,[t])},enter:function(e){var t=u,r=c,a=h;if(!n.isMounted){if(!i)return;t=v||u,r=y||c,a=b||h}var o=!1,s=e._enterCb=function(t){o||(o=!0,w(t?a:r,[e]),_.delayedLeave&&_.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave:function(t,r){var i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(f,[t]);var a=!1,o=t._leaveCb=function(n){a||(a=!0,r(),w(n?m:p,[t]),t._leaveCb=void 0,x[i]===e&&delete x[i])};x[i]=e,d?(d(t,o),d.length<=1&&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$4(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){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:currentInstance;return(!isInSSRComponentSetup||"sp"===e)&&injectHook(e,t,n)}},onBeforeMount=createHook("bm"),onMounted=exports("o",createHook("m")),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=exports("aa",createHook("bum")),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:currentInstance;injectHook("ec",e,t)}var 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,f=t.mounted,d=t.beforeUpdate,p=t.updated,m=t.activated,g=t.deactivated,v=(t.beforeDestroy,t.beforeUnmount),y=(t.destroyed,t.unmounted),b=t.render,S=t.renderTracked,x=t.renderTriggered,w=t.errorCaptured,_=t.serverPrefetch,k=t.expose,A=t.inheritAttrs,E=t.components,C=t.directives;t.filters;if(u&&resolveInjections(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(var P in o){var T=o[P];isFunction$4(T)&&(r[P]=T.bind(n))}if(i){var M=i.call(n,n);isObject$4(M)&&(e.data=reactive(M))}if(shouldCacheAccess=!0,a){var I=function(e){var t=a[e],i=isFunction$4(t)?t.bind(n,n):isFunction$4(t.get)?t.get.bind(n,n):NOOP,o=!isFunction$4(t)&&isFunction$4(t.set)?t.set.bind(n):NOOP,s=computed({get:i,set:o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){return s.value},set:function(e){return s.value=e}})};for(var R in a)I(R)}if(s)for(var N in s)createWatcher(s[N],r,n,N);if(l){var L=isFunction$4(l)?l.call(n):l;Reflect.ownKeys(L).forEach((function(e){provide(e,L[e])}))}function D(e,t){isArray$5(t)?t.forEach((function(t){return e(t.bind(n))})):t&&e(t.bind(n))}if(c&&callHook$1(c,e,"c"),D(onBeforeMount,h),D(onMounted,f),D(onBeforeUpdate,d),D(onUpdated,p),D(onActivated,m),D(onDeactivated,g),D(onErrorCaptured,w),D(onRenderTracked,S),D(onRenderTriggered,x),D(onBeforeUnmount,v),D(onUnmounted,y),D(onServerPrefetch,_),isArray$5(k))if(k.length){var B=e.exposed||(e.exposed={});k.forEach((function(e){Object.defineProperty(B,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!=A&&(e.inheritAttrs=A),E&&(e.components=E),C&&(e.directives=C)}function resolveInjections(e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];isArray$5(e)&&(e=normalizeInject(e));var r=function(r){var i=e[r],a=void 0;isRef(a=isObject$4(i)?"default"in i?inject(i.from||r,i.default,!0):inject(i.from||r):inject(i))&&n?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:function(){return a.value},set:function(e){return a.value=e}}):t[r]=a};for(var i in e)r(i)}function callHook$1(e,t,n){callWithAsyncErrorHandling(isArray$5(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(e)){var a=t[e];isFunction$4(a)&&watch(i,a)}else if(isFunction$4(e))watch(i,e.bind(n));else if(isObject$4(e))if(isArray$5(e))e.forEach((function(e){return createWatcher(e,t,n,r)}));else{var o=isFunction$4(e.handler)?e.handler.bind(n):t[e.handler];isFunction$4(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,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$4(e)?e.call(this,this):e,isFunction$4(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray$5(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(t,h)||(c=hyphenate(h))!==h&&hasOwn(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 f in a)t&&hasOwn(t,f)||(delete a[f],u=!0)}else if(8&o)for(var d=e.vnode.dynamicProps,p=0;p<d.length;p++){var m=d[p];if(!isEmitListener(e.emitsOptions,m)){var g=t[m];if(l)if(hasOwn(a,m))g!==a[m]&&(a[m]=g,u=!0);else{var v=camelize$1(m);i[v]=resolvePropValue(l,s,v,g,e,!1)}else g!==a[m]&&(a[m]=g,u=!0)}}u&&trigger$1(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(o,h=camelize$1(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 f=toRaw(n),d=i||EMPTY_OBJ,p=0;p<s.length;p++){var m=s[p];n[m]=resolvePropValue(o,f,m,d[m],e,!hasOwn(d,m))}return l}function resolvePropValue(e,t,n,r,i,a){var o=e[n];if(null!=o){var s=hasOwn(o,"default");if(s&&void 0===r){var l=o.default;if(o.type!==Function&&isFunction$4(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$4(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 r.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$5(a))for(var c=0;c<a.length;c++){var h=camelize$1(a[c]);validatePropName(h)&&(o[h]=EMPTY_OBJ)}else if(a)for(var f in a){var d=camelize$1(f);if(validatePropName(d)){var p=a[f],m=o[d]=isArray$5(p)||isFunction$4(p)?{type:p}:p;if(m){var g=getTypeIndex(Boolean,m.type),v=getTypeIndex(String,m.type);m[0]=g>-1,m[1]=v<0||g<v,(g>-1||hasOwn(m,"default"))&&s.push(d)}}}var y=[o,s];return r.set(e,y),y}function validatePropName(e){return"$"!==e[0]}function getType(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray$5(t)?t.findIndex((function(t){return isSameType(t,e)})):isFunction$4(t)&&isSameType(t,e)?0:-1}var isInternalKey=function(e){return"_"===e[0]||"$stable"===e},normalizeSlotValue=function(e){return isArray$5(e)?e.map(normalizeVNode):[normalizeVNode(e)]},normalizeSlot$1=function(e,t,n){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;for(var i in e)if(!isInternalKey(i)){var a=e[i];isFunction$4(a)?t[i]=normalizeSlot$1(i,a,r):null!=a&&function(){var e=normalizeSlotValue(a);t[i]=function(){return e}}()}},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 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;isFunction$4(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())}}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=0;function createAppAPI(e,t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;isFunction$4(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++,_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$4(e.install)?(a.add(e),e.install.apply(e,[s].concat(n))):isFunction$4(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$5(e))e.forEach((function(e,a){return setRef(e,t&&(isArray$5(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(u)?(c[u]=null,hasOwn(h,u)&&(h[u]=null)):isRef(u)&&(u.value=null)),isFunction$4(l))callWithErrorHandling(l,s,12,[o,c]);else{var f=isString(l),d=isRef(l);if(f||d){var p=function(){if(e.f){var t=f?c[l]:l.value;i?isArray$5(t)&&remove$7(t,a):isArray$5(t)?t.includes(a)||t.push(a):f?(c[l]=[a],hasOwn(h,l)&&(h[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else f?(c[l]=o,hasOwn(h,l)&&(h[l]=o)):isRef(l)&&(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,f=e.parentNode,d=e.nextSibling,p=e.setScopeId,m=void 0===p?NOOP:p,g=e.cloneNode,v=e.insertStaticContent,y=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=W(e),G(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:b(e,t,n,r);break;case Comment:S(e,t,n,r);break;case Static:null==e&&x(t,n,r,o);break;case Fragment:M(e,t,n,r,i,a,o,s,l);break;default:1&h?_(e,t,n,r,i,a,o,s,l):6&h?I(e,t,n,r,i,a,o,s,l):(64&h||128&h)&&u.process(e,t,n,r,i,a,o,s,l,X)}null!=c&&i&&setRef(c,e&&e.ref,a,t||e,!t)}},b=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)}},S=function(e,t,n,r){null==e?i(t.el=u(t.children||""),n,r):t.el=e.el},x=function(e,t,n,r){var i=_slicedToArray(v(e.children,t,n,r,e.el,e.anchor),2);e.el=i[0],e.anchor=i[1]},w=function(e,t,n){for(var r,a=e.el,o=e.anchor;a&&a!==o;)r=d(a),i(a,t,n),a=r;i(o,t,n)},_=function(e,t,n,r,i,a,o,s,l){o=o||"svg"===t.type,null==e?k(t,n,r,i,a,o,s,l):C(e,t,i,a,o,s,l)},k=function(e,t,n,r,a,l,u,c){var f,d,p=e.type,m=e.props,v=e.shapeFlag,y=e.transition,b=e.patchFlag,S=e.dirs;if(e.el&&void 0!==g&&-1===b)f=e.el=g(e.el);else{if(f=e.el=s(e.type,l,m&&m.is,m),8&v?h(f,e.children):16&v&&E(e.children,f,null,r,a,l&&"foreignObject"!==p,u,c),S&&invokeDirectiveHook(e,null,r,"created"),m){for(var x in m)"value"===x||isReservedProp(x)||o(f,x,null,m[x],l,e.children,r,a,j);"value"in m&&o(f,"value",null,m.value),(d=m.onVnodeBeforeMount)&&invokeVNodeHook(d,r,e)}A(f,e,e.scopeId,u,r)}S&&invokeDirectiveHook(e,null,r,"beforeMount");var w=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(f),i(f,t,n),((d=m&&m.onVnodeMounted)||w||S)&&queuePostRenderEffect((function(){d&&invokeVNodeHook(d,r,e),w&&y.enter(f),S&&invokeDirectiveHook(e,null,r,"mounted")}),a)},A=function e(t,n,r,i,a){if(r&&m(t,r),i)for(var o=0;o<i.length;o++)m(t,i[o]);if(a&&n===a.subTree){var s=a.vnode;e(t,s,s.scopeId,s.slotScopeIds,a.parent)}},E=function(e,t,n,r,i,a,o,s){for(var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=l;u<e.length;u++){var c=e[u]=s?cloneIfMounted(e[u]):normalizeVNode(e[u]);y(null,c,t,n,r,i,a,o,s)}},C=function(e,t,n,r,i,a,s){var l=t.el=e.el,u=t.patchFlag,c=t.dynamicChildren,f=t.dirs;u|=16&e.patchFlag;var d,p=e.props||EMPTY_OBJ,m=t.props||EMPTY_OBJ;n&&toggleRecurse(n,!1),(d=m.onVnodeBeforeUpdate)&&invokeVNodeHook(d,n,t,e),f&&invokeDirectiveHook(t,e,n,"beforeUpdate"),n&&toggleRecurse(n,!0);var g=i&&"foreignObject"!==t.type;if(c?P(e.dynamicChildren,c,l,n,r,g,a):s||B(e,t,l,null,n,r,g,a,!1),u>0){if(16&u)T(l,t,p,m,n,r,i);else if(2&u&&p.class!==m.class&&o(l,"class",null,m.class,i),4&u&&o(l,"style",p.style,m.style,i),8&u)for(var v=t.dynamicProps,y=0;y<v.length;y++){var b=v[y],S=p[b],x=m[b];x===S&&"value"!==b||o(l,b,S,x,i,e.children,n,r,j)}1&u&&e.children!==t.children&&h(l,t.children)}else s||null!=c||T(l,t,p,m,n,r,i);((d=m.onVnodeUpdated)||f)&&queuePostRenderEffect((function(){d&&invokeVNodeHook(d,n,t,e),f&&invokeDirectiveHook(t,e,n,"updated")}),r)},P=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)?f(l.el):n;y(l,u,c,null,r,i,a,o,!0)}},T=function(e,t,n,r,i,a,s){if(n!==r){for(var l in r)if(!isReservedProp(l)){var u=r[l],c=n[l];u!==c&&"value"!==l&&o(e,l,c,u,s,t.children,i,a,j)}if(n!==EMPTY_OBJ)for(var h in n)isReservedProp(h)||h in r||o(e,h,n[h],null,s,t.children,i,a,j);"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(""),f=t.anchor=e?e.anchor:l(""),d=t.patchFlag,p=t.dynamicChildren,m=t.slotScopeIds;m&&(u=u?u.concat(m):m),null==e?(i(h,n,r),i(f,n,r),E(t.children,n,f,a,o,s,u,c)):d>0&&64&d&&p&&e.dynamicChildren?(P(e.dynamicChildren,p,n,a,o,s,u),(null!=t.key||a&&t===a.subTree)&&traverseStaticChildren(e,t,!0)):B(e,t,n,f,a,o,s,u,c)},I=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):R(t,n,r,i,a,o,l):N(e,t,l)},R=function(e,t,n,r,i,a,o){var s=e.component=createComponentInstance(e,r,i);if(isKeepAlive(e)&&(s.ctx.renderer=X),setupComponent(s),s.asyncDep){if(i&&i.registerDep(s,L),!e.el){var l=s.subTree=createVNode(Comment);S(null,l,t,n)}}else L(s,e,t,n,i,a,o)},N=function(e,t,n){var r=t.component=e.component;if(shouldUpdateComponent(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void D(r,t,n);r.next=t,invalidateJob(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},L=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,d=e.parent,p=e.vnode,m=u;toggleRecurse(e,!1),u?(u.el=p.el,D(e,u,s)):u=p,c&&invokeArrayFns(c),(l=u.props&&u.props.onVnodeBeforeUpdate)&&invokeVNodeHook(l,d,u,p),toggleRecurse(e,!0);var g=renderComponentRoot(e),v=e.subTree;e.subTree=g,y(v,g,f(v.el),W(v),e,a,o),u.el=g.el,null===m&&updateHOCHostEl(e,g.el),h&&queuePostRenderEffect(h,a),(l=u.props&&u.props.onVnodeUpdated)&&queuePostRenderEffect((function(){return invokeVNodeHook(l,d,u,p)}),a)}else{var b,S=t,x=S.el,w=S.props,_=e.bm,k=e.m,A=e.parent,E=isAsyncWrapper(t);if(toggleRecurse(e,!1),_&&invokeArrayFns(_),!E&&(b=w&&w.onVnodeBeforeMount)&&invokeVNodeHook(b,A,t),toggleRecurse(e,!0),x&&r){var C=function(){e.subTree=renderComponentRoot(e),r(x,e.subTree,e,a,null)};E?t.type.__asyncLoader().then((function(){return!e.isUnmounted&&C()})):C()}else{var P=e.subTree=renderComponentRoot(e);y(null,P,n,i,e,a,o),t.el=P.el}if(k&&queuePostRenderEffect(k,a),!E&&(b=w&&w.onVnodeMounted)){var T=t;queuePostRenderEffect((function(){return invokeVNodeHook(b,A,T)}),a)}256&t.shapeFlag&&e.a&&queuePostRenderEffect(e.a,a),e.isMounted=!0,t=n=i=null}}),(function(){return queueJob(e.update)}),e.scope),u=e.update=l.run.bind(l);u.id=e.uid,toggleRecurse(e,!0),u()},D=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(void 0,e.update),resetTracking()},B=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,f=t.children,d=t.patchFlag,p=t.shapeFlag;if(d>0){if(128&d)return void O(u,f,n,r,i,a,o,s,l);if(256&d)return void F(u,f,n,r,i,a,o,s,l)}8&p?(16&c&&j(u,i,a),f!==u&&h(n,f)):16&c?16&p?O(u,f,n,r,i,a,o,s,l):j(u,i,a,!0):(8&c&&h(n,""),16&p&&E(f,n,r,i,a,o,s,l))},F=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,f=Math.min(c,h);for(u=0;u<f;u++){var d=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);y(e[u],d,n,null,i,a,o,s,l)}c>h?j(e,i,a,!0,!1,f):E(t,n,r,i,a,o,s,l,f)},O=function(e,t,n,r,i,a,o,s,l){for(var u=0,c=t.length,h=e.length-1,f=c-1;u<=h&&u<=f;){var d=e[u],p=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);if(!isSameVNodeType(d,p))break;y(d,p,n,null,i,a,o,s,l),u++}for(;u<=h&&u<=f;){var m=e[h],g=t[f]=l?cloneIfMounted(t[f]):normalizeVNode(t[f]);if(!isSameVNodeType(m,g))break;y(m,g,n,null,i,a,o,s,l),h--,f--}if(u>h){if(u<=f)for(var v=f+1,b=v<c?t[v].el:r;u<=f;)y(null,t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]),n,b,i,a,o,s,l),u++}else if(u>f)for(;u<=h;)G(e[u],i,a,!0),u++;else{var S,x=u,w=u,_=new Map;for(u=w;u<=f;u++){var k=t[u]=l?cloneIfMounted(t[u]):normalizeVNode(t[u]);null!=k.key&&_.set(k.key,u)}var A=0,E=f-w+1,C=!1,P=0,T=new Array(E);for(u=0;u<E;u++)T[u]=0;for(u=x;u<=h;u++){var M=e[u];if(A>=E)G(M,i,a,!0);else{var I=void 0;if(null!=M.key)I=_.get(M.key);else for(S=w;S<=f;S++)if(0===T[S-w]&&isSameVNodeType(M,t[S])){I=S;break}void 0===I?G(M,i,a,!0):(T[I-w]=u+1,I>=P?P=I:C=!0,y(M,t[I],n,null,i,a,o,s,l),A++)}}var R=C?getSequence(T):EMPTY_ARR;for(S=R.length-1,u=E-1;u>=0;u--){var N=w+u,L=t[N],D=N+1<c?t[N+1].el:r;0===T[u]?y(null,L,n,D,i,a,o,s,l):C&&(S<0||u!==R[S]?V(L,n,D,2):S--)}}},V=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,X);else if(l!==Fragment)if(l!==Static){var f=2!==a&&1&h&&u;if(f)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,m=u.afterLeave,g=function(){return i(s,n,r)},v=function(){d(s,(function(){g(),m&&m()}))};p?p(s,g,v):v()}else i(s,n,r)}else w(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)}},G=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,f=e.dirs;if(null!=s&&setRef(s,null,n,e,!0),256&c)t.ctx.deactivate(e);else{var d,p=1&c&&f,m=!isAsyncWrapper(e);if(m&&(d=o&&o.onVnodeBeforeUnmount)&&invokeVNodeHook(d,t,e),6&c)H(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,X,r):u&&(a!==Fragment||h>0&&64&h)?j(u,t,n,!1,!0):(a===Fragment&&384&h||!i&&16&c)&&j(l,t,n),r&&z(e)}(m&&(d=o&&o.onVnodeUnmounted)||p)&&queuePostRenderEffect((function(){d&&invokeVNodeHook(d,t,e),p&&invokeDirectiveHook(e,null,t,"unmounted")}),n)}},z=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=d(n),a(n),n=t;a(r)}(e);else U(n,r)},U=function(e,t){for(var n;e!==t;)n=d(e),a(e),e=n;a(t)},H=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,G(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())},j=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,o=a;o<e.length;o++)G(e[o],t,n,r,i)},W=function e(t){return 6&t.shapeFlag?e(t.component.subTree):128&t.shapeFlag?t.suspense.next():d(t.anchor||t.el)},q=function(e,t,n){null==e?t._vnode&&G(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),flushPostFlushCbs(),t._vnode=e},X={p:y,um:G,m:V,r:z,mt:R,mc:E,pc:B,pbc:P,n:W,o:e};if(t){var Y=_slicedToArray(t(X),2);n=Y[0],r=Y[1]}return{render:q,hydrate:n,createApp:createAppAPI(q,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$5(r)&&isArray$5(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))}}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(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,f=u.pbc,d=u.o,p=d.insert,m=d.querySelector,g=d.createText,v=(d.createComment,isTeleportDisabled(t.props)),y=t.shapeFlag,b=t.children,S=t.dynamicChildren;if(null==e){var x=t.el=g(""),w=t.anchor=g("");p(x,n,r),p(w,n,r);var _=t.target=resolveTarget(t.props,m),k=t.targetAnchor=g("");_&&(p(k,_),o=o||isTargetSVG(_));var A=function(e,t){16&y&&c(b,e,t,i,a,o,s,l)};v?A(n,w):_&&A(_,k)}else{t.el=e.el;var E=t.anchor=e.anchor,C=t.target=e.target,P=t.targetAnchor=e.targetAnchor,T=isTeleportDisabled(e.props),M=T?n:C,I=T?E:P;if(o=o||isTargetSVG(C),S?(f(e.dynamicChildren,S,M,i,a,o,s),traverseStaticChildren(e,t,!0)):l||h(e,t,M,I,i,a,o,s,!1),v)T||moveTeleport(t,n,E,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){var R=t.target=resolveTarget(t.props,m);R&&moveTeleport(t,R,null,u,0)}else T&&moveTeleport(t,C,P,u,1)}},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,f=e.target,d=e.props;if(f&&s(h),(a||!isTeleportDisabled(d))&&(s(c),16&l))for(var p=0;p<u.length;p++){var m=u[p];o(m,t,n,!0,!!m.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,f=2===o;if(f&&i(s,t,n),(!f||isTeleportDisabled(h))&&16&u)for(var d=0;d<c.length;d++)a(c[d],t,n,2);f&&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,f=t.target=resolveTarget(t.props,h);if(f){var d=f._lpa||f.firstChild;16&t.shapeFlag&&(isTeleportDisabled(t.props)?(t.anchor=s(u(e),t,c(e),n,r,i,a),t.targetAnchor=d):(t.anchor=u(e),t.targetAnchor=s(d,t,f,n,r,i,a)),f._lpa=t.targetAnchor&&u(t.targetAnchor))}return t.anchor&&u(t.anchor)}var Teleport=exports("bu",TeleportImpl),COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(e,t){return resolveAsset(COMPONENTS,e,!0,t)||e}var NULL_DYNAMIC_COMPONENT=Symbol();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);if(a&&(a===t||a===camelize$1(t)||a===capitalize(camelize$1(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$1(t)]||e[capitalize(camelize$1(t))])}var Fragment=exports("F",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 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(t)||isRef(t)||isFunction$4(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};return s?(normalizeChildren(l,n),128&a&&e.normalize(l)):n&&(l.shapeFlag|=isString(n)?8:16),isBlockTreeEnabled>0&&!o&&currentBlock&&(l.patchFlag>0||6&a)&&32!==l.patchFlag&&currentBlock.push(l),l}var createVNode=exports("a",_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),o}if(isClassComponent(e)&&(e=e.__vccOpts),t){var s=t=guardReactiveProps(t),l=s.class,u=s.style;l&&!isString(l)&&(t.class=normalizeClass(l)),isObject$4(u)&&(isProxy(u)&&!isArray$5(u)&&(u=extend$3({},u)),t.style=normalizeStyle(u))}var c=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction$4(e)?2:0;return createBaseVNode(e,t,n,r,i,c,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,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&normalizeKey(s),ref:t&&t.ref?n&&i?isArray$5(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};return l}function createTextVNode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return createVNode(Text,null,e,t)}function normalizeVNode(e){return null==e||"boolean"==typeof e?createVNode(Comment):isArray$5(e)?createVNode(Fragment,null,e.slice()):"object"===_typeof3(e)?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return null===e.el||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){var n=0,r=e.shapeFlag;if(null==t)t=null;else if(isArray$5(t))n=16;else if("object"===_typeof3(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$4(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$5(i)&&i.includes(a)||(e[r]=i?[].concat(i,a):a)}else""!==r&&(e[r]=n[r])}return e}function invokeVNodeHook(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;callWithAsyncErrorHandling(e,t,7,[n,r])}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 function(){return queueJob(e.update)}},$nextTick:function(e){return nextTick.bind(e.proxy)},$watch:function(e){return instanceWatch.bind(e)}}),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(a!==EMPTY_OBJ&&hasOwn(a,t))return l[t]=1,a[t];if(o!==EMPTY_OBJ&&hasOwn(o,t))return l[t]=2,o[t];if((n=r.propsOptions[0])&&hasOwn(n,t))return l[t]=3,s[t];if(i!==EMPTY_OBJ&&hasOwn(i,t))return l[t]=4,i[t];shouldCacheAccess&&(l[t]=0)}}var f,d,p=publicPropertiesMap[t];return p?("$attrs"===t&&track(r,"get",t),p(r)):(f=u.__cssModules)&&(f=f[t])?f:i!==EMPTY_OBJ&&hasOwn(i,t)?(l[t]=4,i[t]):(d=c.config.globalProperties,hasOwn(d,t)?d[t]:void 0)},set:function(e,t,n){var r=e._,i=r.data,a=r.setupState,o=r.ctx;return a!==EMPTY_OBJ&&hasOwn(a,t)?(a[t]=n,!0):i!==EMPTY_OBJ&&hasOwn(i,t)?(i[t]=n,!0):!hasOwn(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(i,t)||a!==EMPTY_OBJ&&hasOwn(a,t)||(n=u[0])&&hasOwn(n,t)||hasOwn(s,t)||hasOwn(publicPropertiesMap,t)||hasOwn(l.config.globalProperties,t)},defineProperty:function(e,t,n){return null!=n.get?e._.accessCache[t]=0:hasOwn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},emptyAppContext=createAppContext(),uid$1=0;function createComponentInstance(e,t,n){var r=e.type,i=(t?t.appContext:e.appContext)||emptyAppContext,a={uid:uid$1++,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$1.bind(null,a),e.ce&&e.ce(a),a}var currentInstance=null,getCurrentInstance=exports("a8",(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$4(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;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}}))}function getComponentName(e){return isFunction$4(e)&&e.displayName||e.name}function isClassComponent(e){return isFunction$4(e)&&"__vccOpts"in e}var computed=exports("X",(function(e,t){return computed$1(e,t,isInSSRComponentSetup)}));function h$3(e,t,n){var r=arguments.length;return 2===r?isObject$4(t)&&!isArray$5(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 version="3.2.33",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,"")},cloneNode:function(e){var t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),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(n);if(n&&!i){for(var a in n)setStyle(r,a,n[a]);if(t&&!isString(t))for(var o in t)null==n[o]&&setStyle(r,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$5(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$1(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(t,n,r,i,a,o,s){if("innerHTML"===n||"textContent"===n)return i&&s(i,a,o),void(t[n]=null==r?"":r);if("value"===n&&"PROGRESS"!==t.tagName&&!t.tagName.includes("-")){t._value=r;var l=null==r?"":r;return t.value===l&&"OPTION"!==t.tagName||(t.value=l),void(null==r&&t.removeAttribute(n))}var u=!1;if(""===r||null==r){var c=_typeof3(t[n]);"boolean"===c?r=includeBooleanAttr(r):null==r&&"string"===c?(r="",u=!0):"number"===c&&(r=0,u=!0)}try{t[n]=r}catch(e){}u&&t.removeAttribute(n)}var _ref22=function(){var e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=function(){return performance.now()});var n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]}(),_ref23=_slicedToArray(_ref22,2),_getNow=_ref23[0],skipTimestampCheck=_ref23[1],cachedNow=0,p$2=Promise.resolve(),reset$1=function(){cachedNow=0},getNow=function(){return cachedNow||(p$2.then(reset$1),cachedNow=_getNow())};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=parseName(t),l=_slicedToArray(s,2),u=l[0],c=l[1];if(r){var h=a[t]=createInvoker(r,i);addEventListener(e,u,h,c)}else o&&(removeEventListener(e,u,o,c),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[hyphenate(e.slice(2)),t]}function createInvoker(e,t){var n=function e(n){var r=n.timeStamp||_getNow();(skipTimestampCheck||r>=e.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(n,e.value),t,5,[n])};return n.value=e,n.attached=getNow(),n}function patchStopImmediatePropagation(e,t){if(isArray$5(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$4(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!nativeOnRE.test(t)||!isString(n))&&t in e))))}var TRANSITION="transition",ANIMATION="animation",Transition=function(e,t){var n=t.slots;return h$3(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$5(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$5(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,f=void 0===h?"".concat(i,"-enter-to"):h,d=e.appearFromClass,p=void 0===d?l:d,m=e.appearActiveClass,g=void 0===m?c:m,v=e.appearToClass,y=void 0===v?f:v,b=e.leaveFromClass,S=void 0===b?"".concat(i,"-leave-from"):b,x=e.leaveActiveClass,w=void 0===x?"".concat(i,"-leave-active"):x,_=e.leaveToClass,k=void 0===_?"".concat(i,"-leave-to"):_,A=normalizeDuration(o),E=A&&A[0],C=A&&A[1],P=t.onBeforeEnter,T=t.onEnter,M=t.onEnterCancelled,I=t.onLeave,R=t.onLeaveCancelled,N=t.onBeforeAppear,L=void 0===N?P:N,D=t.onAppear,B=void 0===D?T:D,F=t.onAppearCancelled,O=void 0===F?M:F,V=function(e,t,n){removeTransitionClass(e,t?y:f),removeTransitionClass(e,t?g:c),n&&n()},G=function(e,t){removeTransitionClass(e,k),removeTransitionClass(e,w),t&&t()},z=function(e){return function(t,n){var r=e?B:T,i=function(){return V(t,e,n)};callHook(r,[t,i]),nextFrame((function(){removeTransitionClass(t,e?p:l),addTransitionClass(t,e?y:f),hasExplicitCallback(r)||whenTransitionEnds(t,a,E,i)}))}};return extend$3(t,{onBeforeEnter:function(e){callHook(P,[e]),addTransitionClass(e,l),addTransitionClass(e,c)},onBeforeAppear:function(e){callHook(L,[e]),addTransitionClass(e,p),addTransitionClass(e,g)},onEnter:z(!1),onAppear:z(!0),onLeave:function(e,t){var n=function(){return G(e,t)};addTransitionClass(e,S),forceReflow(),addTransitionClass(e,w),nextFrame((function(){removeTransitionClass(e,S),addTransitionClass(e,k),hasExplicitCallback(I)||whenTransitionEnds(e,a,C,n)})),callHook(I,[e,n])},onEnterCancelled:function(e){V(e,!1),callHook(M,[e])},onAppearCancelled:function(e){V(e,!0),callHook(O,[e])},onLeaveCancelled:function(e){G(e),callHook(R,[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(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,f=function(){e.removeEventListener(c,d),a()},d=function(t){t.target===e&&++h>=u&&f()};setTimeout((function(){h<u&&f()}),l+1),e.addEventListener(c,d)}function getTransitionInfo(e,t){var n=window.getComputedStyle(e),r=function(e){return(n[e]||"").split(", ")},i=r(TRANSITION+"Delay"),a=r(TRANSITION+"Duration"),o=getTimeout(i,a),s=r(ANIMATION+"Delay"),l=r(ANIMATION+"Duration"),u=getTimeout(s,l),c=null,h=0,f=0;return t===TRANSITION?o>0&&(c=TRANSITION,h=o,f=a.length):t===ANIMATION?u>0&&(c=ANIMATION,h=u,f=l.length):f=(c=(h=Math.max(o,u))>0?o>u?TRANSITION:ANIMATION:null)?c===TRANSITION?a.length:l.length:0,{type:c,timeout:h,propCount:f,hasTransform:c===TRANSITION&&/\b(transform|all)(,|$)/.test(n[TRANSITION+"Property"])}}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 f=n[h];setTransitionHooks(f,resolveTransitionHooks(f,s,o,a)),positionMap.set(f,f.el.getBoundingClientRect())}return createVNode(l,null,r)}}},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 vShow=exports("bw",{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("c",(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$4(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(e)?document.querySelector(e):e}var commonjsGlobal$2="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=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}function commonjsRequire$1(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 queryString=exports("Z",{}),strictUriEncode=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))},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=Object.keys(t),a=0;a<i.length;a++){var o=i[a];e=e.replace(new RegExp(o,"g"),t[o])}return e}var decodeUriComponent=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+_typeof3(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}},splitOnFirst=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]},filterObj=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),a=0;a<r.length;a++){var o=r[a],s=e[o];(i?-1!==t.indexOf(o):t(o,s,e))&&(n[o]=s)}return n};!function(e){var t=strictUriEncode,n=decodeUriComponent,r=splitOnFirst,i=filterObj;function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function o(e,n){return n.encode?n.strict?t(e):encodeURIComponent(e):e}function s(e,t){return t.decode?n(e):e}function l(e){return Array.isArray(e)?e.sort():"object"===_typeof3(e)?l(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function u(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function c(e){var t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(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 f(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(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(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&&s(n,e).includes(e.arrayFormatSeparator);n=a?s(n,e):n;var o=i||a?n.split(e.arrayFormatSeparator).map((function(t){return s(t,e)})):null===n?n:s(n,e);r[t]=o};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var o,u=_createForOfIteratorHelper(e.split("&"));try{for(u.s();!(o=u.n()).done;){var c=o.value;if(""!==c){var f=_slicedToArray(r(t.decode?c.replace(/\+/g," "):c,"="),2),d=f[0],p=f[1];p=void 0===p?null:["comma","separator"].includes(t.arrayFormat)?p:s(p,t),n(s(d,t),p,i)}}}catch(w){u.e(w)}finally{u.f()}for(var m=0,g=Object.keys(i);m<g.length;m++){var v=g[m],y=i[v];if("object"===_typeof3(y)&&null!==y)for(var b=0,S=Object.keys(y);b<S.length;b++){var x=S[b];y[x]=h(y[x],t)}else i[v]=h(y,t)}return!1===t.sort?i:(!0===t.sort?Object.keys(i).sort():Object.keys(i).sort(t.sort)).reduce((function(e,t){var n=i[t];return Boolean(n)&&"object"===_typeof3(n)&&!Array.isArray(n)?e[t]=l(n):e[t]=n,e}),Object.create(null))}e.extract=c,e.parse=f,e.stringify=function(e,t){if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var n=function(n){return t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n]},r=function(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?[[o(t,e),"[",i,"]"].join("")]:[[o(t,e),"[",o(i,e),"]=",o(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?[[o(t,e),"[]"].join("")]:[[o(t,e),"[]=",o(r,e)].join("")])}};case"comma":case"separator":return function(t){return function(n,r){return null==r||0===r.length?n:0===n.length?[[o(t,e),"=",o(r,e)].join("")]:[[n,o(r,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?[o(t,e)]:[[o(t,e),"=",o(r,e)].join("")])}}}}(t),i={},s=0,l=Object.keys(e);s<l.length;s++){var u=l[s];n(u)||(i[u]=e[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?o(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):o(n,t)+"="+o(i,t)})).filter((function(e){return e.length>0})).join("&")},e.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=_slicedToArray(r(e,"#"),2),i=n[0],a=n[1];return Object.assign({url:i.split("?")[0]||"",query:f(c(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:s(a,t)}:{})},e.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var r=u(t.url).split("?")[0]||"",i=e.extract(t.url),a=e.parse(i,{sort:!1}),s=Object.assign(a,t.query),l=e.stringify(s,n);l&&(l="?".concat(l));var c=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(t.url);return t.fragmentIdentifier&&(c="#".concat(o(t.fragmentIdentifier,n))),"".concat(r).concat(l).concat(c)},e.pick=function(t,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var a=e.parseUrl(t,r),o=a.url,s=a.query,l=a.fragmentIdentifier;return e.stringifyUrl({url:o,query:i(s,n),fragmentIdentifier:l},r)},e.exclude=function(t,n,r){var i=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return e.pick(t,i,r)}}(queryString);var state$4=exports("s",reactive({modular:{teaching:!1,follow:!1,fingering:!1,switch:!1,speed:!1,evaluating:!1,excerpts:!1,recording:!1},modularDetail:{teaching:{name:"大雅金唐教材",desc:"同步乐团学习教材,让孩子在专业系统的训练下提升演奏水平",images:["./static/teaching/1.jpg","./static/teaching/2.jpg","./static/teaching/3.jpg"]},follow:{name:"五线谱跟播",desc:"将教材转化成五线谱,并支持音符根据播放进度高亮显示,增强孩子演奏乐感",images:["./static/follow/1.jpg"]},fingering:{name:"演奏指法跟播",desc:"根据音符时值展现演奏指法,培养孩子良好的演奏习惯",images:["./static/fingering/1.jpg","./static/fingering/2.jpg","./static/fingering/3.jpg"]},switch:{name:"原声/伴奏切换",desc:"为不同声部学员提供专业伴奏,支持伴奏与原音切换,声临其境的感受乐曲",images:["./static/switch/1.jpg","./static/switch/2.jpg"]},speed:{name:"播放速度调整",desc:"播放速度课根据个人练习情况调整,循序渐进的掌握每首曲目的演奏",images:["./static/speed/1.jpg","./static/speed/2.jpg"]},evaluating:{name:"智能评测",desc:"为孩子的演奏提供专业、标准的点评",images:["./static/evaluating/1.jpg","./static/evaluating/2.jpg","./static/evaluating/3.jpg"]},excerpts:{name:"五线谱选段播放",desc:"根据练习情况选择重难点小节循环练习,帮助孩子突破难关",images:["./static/excerpts/1.jpg"]},recording:{name:"边录边播",desc:"打开摄像头,可以在练习时看到自己的演奏状态,还可以录制演奏的视频或音频",images:[]}},openKey:"",user:null,subjectId:0,subjectLoading:!1,origanSubjectId:0,subjectOptions:[{value:0,text:"全部声部"}],chinesePartName:{},MusicalInstrumentClassification:{},tenantId:null,organId:null,extSubjectIds:[],clintNmae:"orchestra"})),assign$2=make_assign(),create$1=make_create(),trim$1=make_trim(),Global$5="undefined"!=typeof window?window:commonjsGlobal$2,util$h={assign:assign$2,create:create$1,trim:trim$1,bind:bind$1,slice:slice$2,each:each$8,map:map,pluck:pluck$1,isList:isList$1,isFunction:isFunction$3,isObject:isObject$3,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$2(arguments,1);return assign$2.apply(this,[Object.create(e)].concat(i))};var e=function(){};return function(t,n,r,i){var a=slice$2(arguments,1);return e.prototype=t,assign$2.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$1(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function slice$2(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$3(e){return e&&"[object Object]"==={}.toString.call(e)}var util$g=util$h,slice$1=util$g.slice,pluck=util$g.pluck,each$7=util$g.each,bind=util$g.bind,create=util$g.create,isList=util$g.isList,isFunction$2=util$g.isFunction,isObject$2=util$g.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;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function _createStore(t,n,r){r||(r=""),t&&!isList(t)&&(t=[t]),n&&!isList(n)&&(n=[n]);var i=r?"__storejs_"+r+"_":"",a=r?new RegExp("^"+i):null;if(!/^[a-zA-Z0-9_\-]*$/.test(r))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var o={_namespacePrefix:i,_namespaceRegexp:a,_testStorage:function(t){try{var n="__storejs__test__";t.write(n,n);var r=t.read(n)===n;return t.remove(n),r}catch(e){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=slice$1(arguments,0),r=this;function i(){if(n)return each$7(arguments,(function(e,n){t[n]=e})),n.apply(r,t)}var a=[i].concat(t);return e.apply(r,a)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(t,n){if(!t)return n;var r="";try{r=JSON.parse(t)}catch(e){r=t}return void 0!==r?r:n},_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$2(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)}},s=create(o,storeAPI,{plugins:[]});return s.raw={},each$7(s,(function(e,t){isFunction$2(e)&&(s.raw[t]=bind(s,e))})),each$7(t,(function(e){s._addStorage(e)})),each$7(n,(function(e){s._addPlugin(e)})),s}var util$f=util$h,Global$4=util$f.Global,localStorage_1={name:"localStorage",read:read$6,write:write$6,each:each$6,remove:remove$6,clearAll:clearAll$5};function localStorage$1(){return Global$4.localStorage}function read$6(e){return localStorage$1().getItem(e)}function write$6(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$6(n),n)}}function remove$6(e){return localStorage$1().removeItem(e)}function clearAll$5(){return localStorage$1().clear()}var util$e=util$h,Global$3=util$e.Global,oldFFGlobalStorage={name:"oldFF-globalStorage",read:read$5,write:write$5,each:each$5,remove:remove$5,clearAll:clearAll$4},globalStorage=Global$3.globalStorage;function read$5(e){return globalStorage[e]}function write$5(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$d=util$h,Global$2=util$d.Global,oldIEUserDataStorage={name:"oldIE-userDataStorage",write:write$4,read:read$4,each:each$4,remove:remove$4,clearAll:clearAll$3},storageName="storejs",doc$1=Global$2.document,_withStorageEl=_makeIEStorageElFunction(),disable=(Global$2.navigator?Global$2.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function write$4(e,t){if(!disable){var n=fixKey(e);_withStorageEl((function(e){e.setAttribute(n,t),e.save(storageName)}))}}function read$4(e){if(!disable){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 t,n,r;try{(n=new ActiveXObject("htmlfile")).open(),n.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),n.close(),t=n.w.frames[0].document,r=t.createElement("div")}catch(e){r=doc$1.createElement("div"),t=doc$1.body}return function(e){var n=[].slice.call(arguments,0);n.unshift(r),t.appendChild(r),r.addBehavior("#default#userData"),r.load(storageName),e.apply(this,n),t.removeChild(r)}}var util$c=util$h,Global$1=util$c.Global,trim=util$c.trim,cookieStorage={name:"cookieStorage",read:read$3,write:write$3,each:each$3,remove:remove$3,clearAll:clearAll$2},doc=Global$1.document;function read$3(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$3(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$b=util$h,Global=util$b.Global,sessionStorage_1={name:"sessionStorage",read:read$2,write:write$2,each:each$2,remove:remove$2,clearAll:clearAll$1};function sessionStorage$1(){return Global.sessionStorage}function read$2(e){return sessionStorage$1().getItem(e)}function write$2(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$2(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$1,write:write$1,each:each$1,remove:remove$1,clearAll:clearAll},memoryStorage={};function read$1(e){return memoryStorage[e]}function write$1(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];"object"!==("undefined"==typeof JSON?"undefined":_typeof3(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"===_typeof3(l)&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),_typeof3(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"===_typeof3(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"!==_typeof3(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"===_typeof3(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")})}();var json2=json2Plugin;function json2Plugin(){return{}}var engine=storeEngine,storages=all,plugins=[json2],store_legacy=exports("O",engine.createStore(storages,plugins)),saveSetting=store_legacy.get("setting"),initState={sett:{eyeProtection:!1,tuning:!1,camera:!1,opacity:70,loop:!0,fingering:!0,hertz:442,scoreSize:"middle",type:"staff",keySignature:!1},eva:{difficulty:"ADVANCED",save:!1,mute:!0,reactionTimeMs:0}};saveSetting&&(initState.eva=_objectSpread2(_objectSpread2({},initState.eva),saveSetting.eva),initState.sett=_objectSpread2(_objectSpread2({},initState.sett),saveSetting.sett),window.sett=initState.sett);var state$3=exports("k",reactive(initState));watch(state$3,(function(){store_legacy.set("setting",state$3)}));var getDevelopment=function(){return/(192\.168|localhost)/gi.test(location.host)},addZero=function(e){return e<10?"0"+e:e},formatTime=function(e){var t=e%60,n=e/60;return addZero(Math.floor(n))+":"+addZero(Math.floor(t))},browser=exports("b",(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/),android:e.indexOf("ORCHESTRAAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("ORCHESTRAAPPI")>-1,isApp:e.indexOf("ORCHESTRAAPPI")>-1||e.indexOf("ORCHESTRAAPPA")>-1,isTeacher:e.indexOf("ORCHESTRATEACHER")>-1,isStudent:e.indexOf("ORCHESTRASTUDENT")>-1,isSchool:e.indexOf("ORCHESTRASCHOOL")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}})),getRequestHostname=exports("a5",(function(){var e,t="";try{t=queryString.parse(location.search)}catch(r){}if(null!==(e=t)&&void 0!==e&&e.client)return"student"===t.client?"/api-student":"teacher"===t.client?"/api-teacher":"/api-backend";var n=browser();return n.isStudent?"/api-student":n.isTeacher?"/api-teacher":"/api-backend"})),getRandomKey=exports("ak",(function(){return""+(new Date).getTime()+Math.floor(1e6*Math.random())})),toNext=exports("bz",(function(e,t){var n=function(e){return e?"?"+e:""},r=queryString.stringify(_objectSpread2(_objectSpread2({},queryString.parse(location.search)),{},{_t:(new Date).getTime()})),i=queryString.stringify(t);return location.origin+location.pathname+n(r)+e+n(i)})),noop$4=exports("be",(function(){})),setTongjiTag=exports("al",(function(e){window._czc&&window._czc.push(e)})),getPlatform=function(){var e=browser();return e.ios?"IOS":e.android?"ANDROID":"WEB"},formatZoom=exports("f",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={small:.5,middle:.7,large:1},n=t[state$3.sett.scoreSize];return e*n})),getVoiceChinesName=exports("J",(function(e){var t=e||"";if(e){var n=state$4.chinesePartName[e];if(n)t=n;else for(var r=0,i=Object.keys(state$4.chinesePartName);r<i.length;r++){var a=i[r];if(e.match(a)){t=e.replace(a,state$4.chinesePartName[a]);break}}}return t?e+(e!==t?" ("+t+")":""):""})),isEncoded=function(e){return(e=e||"")!==decodeURI(e)},animate="",app="",base$3="",state$2=exports("j",reactive({sectionStatus:!1,maskStatus:!1,section:[],times:[],sectionBoundingBoxs:[],activeTick:-1,activeTickRepeat:1,showTick:!1,isSpecialShapedScreen:!1,notchHeight:0,fixedKey:0,renderLoading:!1,evaluatings:{},isPauseRecording:!1,feeShow:!1,vipShow:!1,mode:"contact",subjectId:0,activeSpeed:90,baseSpeed:90,activeDetail:null,needTick:!1,skipTick:!1,repeatedBeats:!1,sectionFlash:!1,befireSection:null,isPercussion:!1,enableEvaluation:!0,isAppPlay:!1,partListNames:[],partIndex:0,partName:"",midiPlayIniting:!1,isSpecialBookCategory:!1,code:"",frozenMode:!1,initRendered:!1,setting:null,activeNote:"",freeRate:.1,zoom:1,renderType:"native",gradual:[],gradualTimes:null,multitrack:0,gradualVersion:0,isNeedRefreshSection:!1,isLessonTrain:!1,isHideEvaluatReportSaveBtn:!1})),isRhythmicExercises=exports("a0",(function(e){var t;return(e||((null==state$2||null===(t=state$2.activeDetail)||void 0===t?void 0:t.musicSheetName)||"")).indexOf("节奏练习")>-1}));function noop$3(){}var extend$2=exports("aB",Object.assign),inBrowser$1=exports("a9","undefined"!=typeof window),unknownProp=exports("av",null),truthProp=exports("a7",{type:Boolean,default:!0});function get(e,t){var n=t.split("."),r=e;return n.forEach((function(e){var t;r=null!=(t=r[e])?t:""})),r}function pick(e,t,n){return t.reduce((function(t,r){return n&&void 0===e[r]||(t[r]=e[r]),t}),{})}function gen(e,t){return t?"string"==typeof t?" "+e+"--"+t:Array.isArray(t)?t.reduce((function(t,n){return t+gen(e,n)}),""):Object.keys(t).reduce((function(n,r){return n+(t[r]?gen(e,r):"")}),""):""}function createBEM(e){return function(t,n){return t&&"string"!=typeof t&&(n=t,t=""),""+(t=t?e+"__"+t:e)+gen(t,n)}}var camelizeRE=/-(\w)/g;function camelize(e){return e.replace(camelizeRE,(function(e,t){return t.toUpperCase()}))}function isDef$1(e){return null!=e}function isFunction$1(e){return"function"==typeof e}function isObject$1(e){return null!==e&&"object"===_typeof3(e)}function isPromise(e){return isObject$1(e)&&isFunction$1(e.then)&&isFunction$1(e.catch)}function isNumeric(e){return"number"==typeof e||/^\d+(\.\d+)?$/.test(e)}function isIOS$1(){return!!inBrowser$1&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase())}var hasOwnProperty$1=Object.prototype.hasOwnProperty;function assignKey(e,t,n){var r=t[n];isDef$1(r)&&(hasOwnProperty$1.call(e,n)&&isObject$1(r)?e[n]=deepAssign(Object(e[n]),t[n]):e[n]=r)}function deepAssign(e,t){return Object.keys(t).forEach((function(n){assignKey(e,t,n)})),e}var defaultMessages={name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(e,t){return e+"年"+t+"月"},rangePrompt:function(e){return"选择天数不能超过 "+e+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(e){return e+"折"},condition:function(e){return"满"+e+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(e){return e+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}},lang=ref("zh-CN"),_messages=reactive({"zh-CN":defaultMessages}),Locale={messages:function(){return _messages[lang.value]},use:function(e,t){lang.value=e,this.add(_defineProperty2({},e,t))},add:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};deepAssign(_messages,e)}},locale=Locale,rootFontSize;function createTranslate(e){var t=camelize(e)+".";return function(e){for(var n=locale.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$1(r)?r.apply(void 0,a):r}}function createNamespace(e){var t="van-"+e;return[t,createBEM(t),createTranslate(t)]}function withInstall(e){return e.install=function(t){var n=e.name;t.component(n,e),t.component(camelize("-"+n),e)},e}function addUnit(e){if(isDef$1(e))return isNumeric(e)?e+"px":String(e)}function getSizeStyle(e){if(isDef$1(e)){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,""))*window.innerWidth/100}function convertVh(e){return+(e=e.replace(/vh/g,""))*window.innerHeight/100}function unitToPx(e){if("number"==typeof e)return e;if(inBrowser$1){if(e.includes("rem"))return convertRem(e);if(e.includes("vw"))return convertVw(e);if(e.includes("vh"))return convertVh(e)}return parseFloat(e)}function clamp(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}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}function stopPropagation(e){e.stopPropagation()}function preventDefault(e,t){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault(),t&&stopPropagation(e)}function trigger(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function isWindow$1(e){return e===window}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(isWindow$1(e))return 0;var n=t?getScrollTop(t):getRootScrollTop();return e.getBoundingClientRect().top+n}function getVisibleHeight(e){return isWindow$1(e)?e.innerHeight:e.getBoundingClientRect().height}function getVisibleTop(e){return isWindow$1(e)?0:e.getBoundingClientRect().top}var isIOS=isIOS$1();function resetScroll(){isIOS&&setRootScrollTop(getRootScrollTop())}var inBrowser="undefined"!=typeof window;function raf$2(e){return inBrowser?requestAnimationFrame(e):-1}function cancelRaf(e){inBrowser&&cancelAnimationFrame(e)}function doubleRaf(e){raf$2((function(){return raf$2(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("bs",(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)})),width,height;function useToggle(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=ref(e),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!t.value;t.value=e};return[t,n]}function useParent(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)&&e(n.component.subTree.children),n.children&&e(n.children))}))}(e),t}function sortChildren(e,t,n){var r=flattenVNodes(e.subTree.children);n.sort((function(e,t){return r.indexOf(e.vnode)-r.indexOf(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(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(inBrowser){var r,i=n.target,a=void 0===i?window:i,o=n.passive,s=void 0!==o&&o,l=n.capture,u=void 0!==l&&l,c=function(n){var i=unref(n);i&&!r&&(i.addEventListener(e,t,{capture:u,passive:s}),r=!0)},h=function(n){var i=unref(n);i&&r&&(i.removeEventListener(e,t,u),r=!1)};onUnmounted((function(){return h(a)})),onDeactivated((function(){return h(a)})),onMountedOrActivated((function(){return c(a)})),isRef(a)&&watch(a,(function(e,t){h(t),c(e)}))}}function useClickAway(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(inBrowser){var r=n.eventName,i=void 0===r?"click":r,a=function(n){var r=unref(e);r&&!r.contains(n.target)&&t(n)};useEventListener(i,a,{target:document})}}function useWindowSize(){if(!width&&(width=ref(0),height=ref(0),inBrowser)){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/i,defaultRoot=inBrowser?window:void 0,visibility;function isElement$1(e){return"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType}function getScrollParent$1(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),i=r.overflowY;if(overflowScrollReg.test(i))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$1(e.value,t))})),n}function usePageVisibility(){if(!visibility&&(visibility=ref("visible"),inBrowser)){var e=function(){visibility.value=document.hidden?"hidden":"visible"};e(),window.addEventListener("visibilitychange",e)}return visibility}var _createNamespace=createNamespace("action-bar"),_createNamespace2=_slicedToArray(_createNamespace,2),name$A=_createNamespace2[0],bem$A=_createNamespace2[1],ACTION_BAR_KEY=Symbol(name$A),_ActionBar=defineComponent({name:name$A,props:{safeAreaInsetBottom:truthProp},setup:function(e,t){var n=t.slots;return(0,useChildren(ACTION_BAR_KEY).linkChildren)(),function(){return createVNode("div",{class:bem$A({unfit:!e.safeAreaInsetBottom})},[null==n.default?void 0:n.default()])}}}),ActionBar=withInstall(_ActionBar);function useExpose(e){var t=getCurrentInstance();t&&extend$2(t.proxy,e)}var routeProps={to:[String,Object],url:String,replace:Boolean};function route(e){var t=e.$router,n=e.to,r=e.url,i=e.replace;n&&t?t[i?"replace":"push"](n):r&&(i?location.replace(r):location.href=r)}function useRoute(){var e=getCurrentInstance().proxy;return function(){return route(e)}}var BORDER="van-hairline",BORDER_TOP=BORDER+"--top",BORDER_LEFT=BORDER+"--left",BORDER_BOTTOM=BORDER+"--bottom",BORDER_SURROUND=BORDER+"--surround",BORDER_TOP_BOTTOM=BORDER+"--top-bottom",BORDER_UNSET_TOP_BOTTOM=BORDER+"-unset--top-bottom",_createNamespace3=createNamespace("badge"),_createNamespace4=_slicedToArray(_createNamespace3,2),name$z=_createNamespace4[0],bem$z=_createNamespace4[1],_Badge=defineComponent({name:name$z,props:{dot:Boolean,max:[Number,String],color:String,offset:Array,content:[Number,String],showZero:truthProp,tag:{type:String,default:"div"}},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)},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?i+"+":a},a=function(){if(r()||e.dot){var t={background:e.color};if(e.offset){var a=_slicedToArray(e.offset,2),o=a[0],s=a[1];n.default?(t.top=addUnit(s),t.right="-"+addUnit(o)):(t.marginTop=addUnit(s),t.marginLeft=addUnit(o))}return createVNode("div",{class:bem$z({dot:e.dot,fixed:!!n.default}),style:t},[i()])}};return function(){if(n.default){var t=e.tag;return createVNode(t,{class:bem$z("wrapper")},{default:function(){return[n.default(),a()]}})}return a()}}}),Badge=withInstall(_Badge),_createNamespace5=createNamespace("icon"),_createNamespace6=_slicedToArray(_createNamespace5,2),name$y=_createNamespace6[0],bem$y=_createNamespace6[1];function isImage(e){return!!e&&e.includes("/")}var _Icon=defineComponent({name:name$y,props:{dot:Boolean,name:String,size:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:bem$y()}},setup:function(e,t){var n=t.slots;return function(){var t=e.tag,r=e.dot,i=e.name,a=e.size,o=e.badge,s=e.color,l=e.classPrefix,u=isImage(i);return createVNode(Badge,{dot:r,tag:t,content:o,class:[l,u?"":l+"-"+i],style:{color:s,fontSize:addUnit(a)}},{default:function(){return[null==n.default?void 0:n.default(),u&&createVNode("img",{class:bem$y("image"),src:i},null)]}})}}}),Icon=exports("ag",withInstall(_Icon)),_createNamespace7=createNamespace("loading"),_createNamespace8=_slicedToArray(_createNamespace7,2),name$x=_createNamespace8[0],bem$x=_createNamespace8[1],SpinIcon=Array(12).fill(createVNode("i",null,null)),CircularIcon=createVNode("svg",{class:bem$x("circular"),viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),_Loading=defineComponent({name:name$x,props:{size:[Number,String],color:String,vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},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$x("text"),style:{fontSize:addUnit(e.textSize),color:null!=(t=e.textColor)?t:e.color}},[n.default()])};return function(){var t=e.type,n=e.vertical;return createVNode("div",{class:bem$x([t,{vertical:n}])},[createVNode("span",{class:bem$x("spinner",t),style:r.value},["spinner"===t?SpinIcon:CircularIcon]),i()])}}}),Loading=exports("au",withInstall(_Loading)),_createNamespace9=createNamespace("button"),_createNamespace10=_slicedToArray(_createNamespace9,2),name$w=_createNamespace10[0],bem$w=_createNamespace10[1],_Button=defineComponent({name:name$w,props:extend$2({},routeProps,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,loadingSize:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},nativeType:{type:String,default:"button"},iconPosition:{type:String,default:"left"}}),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,{size:e.loadingSize,type:e.loadingType,class:bem$w("loading")},null):r.icon?createVNode("div",{class:bem$w("icon")},[r.icon()]):e.icon?createVNode(Icon,{name:e.icon,class:bem$w("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$w("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?t.preventDefault():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,f=e.loading,d=e.disabled,p=e.hairline,m=e.nativeType,g=e.iconPosition,v=[bem$w([n,r,{plain:c,block:i,round:u,square:h,loading:f,disabled:d,hairline:p}]),_defineProperty2({},BORDER_SURROUND,p)];return createVNode(t,{type:m,class:v,style:s(),disabled:d,onClick:l},{default:function(){return[createVNode("div",{class:bem$w("content")},["left"===g&&a(),o(),"right"===g&&a()])]}})}}}),Button=exports("B",withInstall(_Button)),_createNamespace11=createNamespace("action-bar-button"),_createNamespace12=_slicedToArray(_createNamespace11,2),name$v=_createNamespace12[0],bem$v=_createNamespace12[1],_ActionBarButton=defineComponent({name:name$v,props:extend$2({},routeProps,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),setup:function(e,t){var n=t.slots,r=useRoute(),i=useParent(ACTION_BAR_KEY),a=i.parent,o=i.index,s=computed((function(){if(a){var e=a.children[o.value-1];return!(e&&"isButton"in e)}})),l=computed((function(){if(a){var e=a.children[o.value+1];return!(e&&"isButton"in e)}}));return useExpose({isButton:!0}),function(){var t=e.type,i=e.icon,a=e.text,o=e.color,u=e.loading,c=e.disabled;return createVNode(Button,{class:bem$v([t,{last:l.value,first:s.value}]),size:"large",type:t,icon:i,color:o,loading:u,disabled:c,onClick:r},{default:function(){return[n.default?n.default():a]}})}}}),ActionBarButton=withInstall(_ActionBarButton),popupSharedProps={show:Boolean,zIndex:[Number,String],overlay:truthProp,duration:[Number,String],teleport:[String,Object],lockScroll:truthProp,lazyRender:truthProp,overlayStyle:Object,overlayClass:unknownProp,transitionAppear:Boolean,closeOnClickOverlay:truthProp},popupSharedPropKeys=Object.keys(popupSharedProps),MIN_DISTANCE=10;function getDirection(e,t){return e>t&&e>MIN_DISTANCE?"horizontal":t>e&&t>MIN_DISTANCE?"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||(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$1(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(){t()&&a()};onMountedOrActivated((function(){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 POPUP_TOGGLE_KEY=Symbol();function onPopupReopen(e){var t=inject(POPUP_TOGGLE_KEY,null);t&&watch(t,(function(t){t&&e()}))}var _createNamespace13=createNamespace("overlay"),_createNamespace14=_slicedToArray(_createNamespace13,2),name$u=_createNamespace14[0],bem$u=_createNamespace14[1],_Overlay=defineComponent({name:name$u,props:{show:Boolean,zIndex:[Number,String],duration:[Number,String],className:unknownProp,lockScroll:truthProp,customStyle:Object},setup:function(e,t){var n=t.slots,r=useLazyRender((function(){return e.show})),i=function(e){preventDefault(e,!0)},a=r((function(){var t=extend$2(getZIndexStyle(e.zIndex),e.customStyle);return isDef$1(e.duration)&&(t.animationDuration=e.duration+"s"),withDirectives(createVNode("div",{style:t,class:[bem$u(),e.className],onTouchmove:e.lockScroll?i:noop$3},[null==n.default?void 0:n.default()]),[[vShow,e.show]])}));return function(){return createVNode(Transition,{name:"van-fade"},{default:function(){return[a()]}})}}}),Overlay=withInstall(_Overlay),_createNamespace15=createNamespace("popup"),_createNamespace16=_slicedToArray(_createNamespace15,2),name$t=_createNamespace16[0],bem$t=_createNamespace16[1],globalZIndex=2e3,_Popup=defineComponent({name:name$t,inheritAttrs:!1,props:extend$2({},popupSharedProps,{round:Boolean,closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,safeAreaInsetBottom:Boolean,position:{type:String,default:"center"},closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"}}),emits:["open","close","click","opened","closed","update:show","click-overlay","click-close-icon"],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"]=e.duration+"s");return t})),h=function(){n||(void 0!==e.zIndex&&(globalZIndex=+e.zIndex),n=!0,s.value=++globalZIndex)},f=function(){n&&(n=!1,i("update:show",!1))},d=function(t){i("click-overlay",t),e.closeOnClickOverlay&&f()},p=function(){if(e.overlay)return createVNode(Overlay,{show:e.show,class:e.overlayClass,zIndex:s.value,duration:e.duration,customStyle:e.overlayStyle,onClick:d},{default:o["overlay-content"]})},m=function(e){i("click-close-icon",e),f()},g=function(){if(e.closeable)return createVNode(Icon,{role:"button",tabindex:0,name:e.closeIcon,class:bem$t("close-icon",e.closeIconPosition),classPrefix:e.iconPrefix,onClick:m},null)},v=function(e){return i("click",e)},y=function(){return i("opened")},b=function(){return i("closed")},S=u((function(){var t,n=e.round,r=e.position,i=e.safeAreaInsetBottom;return withDirectives(createVNode("div",mergeProps({ref:l,style:c.value,class:bem$t((t={round:n},_defineProperty2(t,r,r),_defineProperty2(t,"safe-area-inset-bottom",i),t)),onClick:v},a),[null==o.default?void 0:o.default(),g()]),[[vShow,e.show]])})),x=function(){var t=e.position,n=e.transition,r=e.transitionAppear;return createVNode(Transition,{name:n||("center"===t?"van-fade":"van-popup-slide-"+t),appear:r,onAfterEnter:y,onAfterLeave:b},{default:function(){return[S()]}})};return watch((function(){return e.show}),(function(e){e?(h(),i("open")):(f(),i("close"))})),useExpose({popupRef:l}),useLockScroll(l,(function(){return e.show&&e.lockScroll})),useEventListener("popstate",(function(){e.closeOnPopstate&&(f(),r=!1)})),onMounted((function(){e.show&&h()})),onActivated((function(){r&&(i("update:show",!0),r=!1)})),onDeactivated((function(){e.show&&(f(),r=!0)})),provide(POPUP_TOGGLE_KEY,(function(){return e.show})),function(){return e.teleport?createVNode(Teleport,{to:e.teleport},{default:function(){return[p(),x()]}}):createVNode(Fragment,null,[p(),x()])}}}),Popup=exports("P",withInstall(_Popup));function deepClone(e){if(!isDef$1(e))return e;if(Array.isArray(e))return e.map((function(e){return deepClone(e)}));if("object"===_typeof3(e)){var t={};return Object.keys(e).forEach((function(n){t[n]=deepClone(e[n])})),t}return e}var DEFAULT_DURATION=200,MOMENTUM_LIMIT_TIME=300,MOMENTUM_LIMIT_DISTANCE=15,_createNamespace17=createNamespace("picker-column"),_createNamespace18=_slicedToArray(_createNamespace17,2),name$s=_createNamespace18[0],bem$s=_createNamespace18[1];function getElementTranslateY(e){var t=window.getComputedStyle(e),n=t.transform||t.webkitTransform,r=n.slice(7,n.length-1).split(", ")[5];return Number(r)}var PICKER_KEY=Symbol(name$s);function isOptionDisabled(e){return isObject$1(e)&&e.disabled}var Column=defineComponent({name:name$s,props:{readonly:Boolean,allowHtml:Boolean,className:unknownProp,textKey:{type:String,required:!0},itemHeight:{type:Number,required:!0},swipeDuration:{type:[Number,String],required:!0},visibleItemCount:{type:[Number,String],required:!0},defaultIndex:{type:Number,default:0},initialOptions:{type:Array,default:function(){return[]}}},emits:["change"],setup:function(e,t){var n,r,i,a,o,s=t.emit,l=t.slots,u=ref(),c=reactive({index:e.defaultIndex,offset:0,duration:0,options:deepClone(e.initialOptions)}),h=useTouch(),f=function(){return c.options.length},d=function(){return e.itemHeight*(+e.visibleItemCount-1)/2},p=function(t,r){t=function(e){for(var t=e=clamp(e,0,f());t<f();t++)if(!isOptionDisabled(c.options[t]))return t;for(var n=e-1;n>=0;n--)if(!isOptionDisabled(c.options[n]))return n}(t)||0;var i=-t*e.itemHeight,a=function(){t!==c.index&&(c.index=t,r&&s("change",t))};n&&i!==c.offset?o=a:a(),c.offset=i},m=function(t){JSON.stringify(t)!==JSON.stringify(c.options)&&(c.options=deepClone(t),p(e.defaultIndex))},g=function(t){return isObject$1(t)&&e.textKey in t?t[e.textKey]:t},v=function(t){return clamp(Math.round(-t/e.itemHeight),0,f()-1)},y=function(){n=!1,c.duration=0,o&&(o(),o=null)},b=function(t){if(!e.readonly){if(h.start(t),n){var s=getElementTranslateY(u.value);c.offset=Math.min(0,s-d()),r=c.offset}else r=c.offset;c.duration=0,i=Date.now(),a=r,o=null}},S=function(t){if(!e.readonly){h.move(t),h.isVertical()&&(n=!0,preventDefault(t,!0)),c.offset=clamp(r+h.deltaY.value,-f()*e.itemHeight,e.itemHeight);var o=Date.now();o-i>MOMENTUM_LIMIT_TIME&&(i=o,a=c.offset)}},x=function(){if(!e.readonly){var t=c.offset-a,r=Date.now()-i;if(r<MOMENTUM_LIMIT_TIME&&Math.abs(t)>MOMENTUM_LIMIT_DISTANCE)!function(t,n){var r=Math.abs(t/n);t=c.offset+r/.003*(t<0?-1:1);var i=v(t);c.duration=+e.swipeDuration,p(i,!0)}(t,r);else{var o=v(c.offset);c.duration=DEFAULT_DURATION,p(o,!0),setTimeout((function(){n=!1}),0)}}},w=function(){var t={height:e.itemHeight+"px"};return c.options.map((function(r,i){var a=g(r),s=isOptionDisabled(r),u={role:"button",style:t,tabindex:s?-1:0,class:bem$s("item",{disabled:s,selected:i===c.index}),onClick:function(){return function(t){n||e.readonly||(o=null,c.duration=DEFAULT_DURATION,p(t,!0))}(i)}},h=_defineProperty2({class:"van-ellipsis"},e.allowHtml?"innerHTML":"textContent",a);return createVNode("li",u,[l.option?l.option(r):createVNode("div",h,null)])}))};return p(c.index),useParent(PICKER_KEY),useExpose({state:c,setIndex:p,getValue:function(){return c.options[c.index]},setValue:function(e){for(var t=c.options,n=0;n<t.length;n++)if(g(t[n])===e)return p(n)},setOptions:m,stopMomentum:y}),watch((function(){return e.initialOptions}),m),watch((function(){return e.defaultIndex}),(function(e){p(e)})),function(){var t={transform:"translate3d(0, "+(c.offset+d())+"px, 0)",transitionDuration:c.duration+"ms",transitionProperty:c.duration?"all":"none"};return createVNode("div",{class:[bem$s(),e.className],onTouchstart:b,onTouchmove:S,onTouchend:x,onTouchcancel:x},[createVNode("ul",{ref:u,style:t,class:bem$s("wrapper"),onTransitionend:y},[w()])])}}}),_createNamespace19=createNamespace("picker"),_createNamespace20=_slicedToArray(_createNamespace19,3),name$r=_createNamespace20[0],bem$r=_createNamespace20[1],t$5=_createNamespace20[2],pickerProps={title:String,loading:Boolean,readonly:Boolean,allowHtml:Boolean,showToolbar:truthProp,cancelButtonText:String,confirmButtonText:String,itemHeight:{type:[Number,String],default:44},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},_Picker=defineComponent({name:name$r,props:extend$2({},pickerProps,{columnsFieldNames:Object,columns:{type:Array,default:function(){return[]}},defaultIndex:{type:[Number,String],default:0},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),emits:["confirm","cancel","change"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref([]),a=extend$2({text:e.valueKey,values:"values",children:"children"},e.columnsFieldNames),o=a.text,s=a.values,l=a.children,u=useChildren(PICKER_KEY),c=u.children;(0,u.linkChildren)();var h=computed((function(){return unitToPx(e.itemHeight)})),f=computed((function(){var t=e.columns[0];if(t&&"string"!=typeof t){if(l in t)return"cascade";if(s in t)return"object"}return"plain"})),d=function(){return c.map((function(e){return e.state.index}))},p=function(e,t){var n=c[e];n&&n.setOptions(t)},m=function(t){for(var n=_defineProperty2({},l,e.columns),r=d(),i=0;i<=t;i++)n=n[l][r[i]];for(;n&&n[l];)t++,p(t,n[l]),n=n[l][n.defaultIndex||0]},g=function(e){return c[e]},v=function(e){var t=g(e);if(t)return t.getValue()},y=function(e,t){var n=g(e);n&&(n.setValue(t),"cascade"===f.value&&m(e))},b=function(e){var t=g(e);if(t)return t.state.index},S=function(e,t){var n=g(e);n&&(n.setIndex(t),"cascade"===f.value&&m(e))},x=function(){return c.map((function(e){return e.getValue()}))},w=function(e){"plain"===f.value?n(e,v(0),b(0)):n(e,x(),d())},_=function(){c.forEach((function(e){return e.stopMomentum()})),w("confirm")},k=function(){return w("cancel")},A=function(){var t=e.cancelButtonText||t$5("cancel");return createVNode("button",{type:"button",class:bem$r("cancel"),onClick:k},[r.cancel?r.cancel():t])},E=function(){var t=e.confirmButtonText||t$5("confirm");return createVNode("button",{type:"button",class:bem$r("confirm"),onClick:_},[r.confirm?r.confirm():t])},C=function(){if(e.showToolbar)return createVNode("div",{class:bem$r("toolbar")},[r.default?r.default():[A(),r.title?r.title():e.title?createVNode("div",{class:[bem$r("title"),"van-ellipsis"]},[e.title]):void 0,E()]])},P=function(){return i.value.map((function(t,i){var a;return createVNode(Column,{textKey:o,readonly:e.readonly,allowHtml:e.allowHtml,className:t.className,itemHeight:h.value,defaultIndex:null!=(a=t.defaultIndex)?a:+e.defaultIndex,swipeDuration:e.swipeDuration,initialOptions:t[s],visibleItemCount:e.visibleItemCount,onChange:function(){return function(e){"cascade"===f.value&&m(e),"plain"===f.value?n("change",v(0),b(0)):n("change",x(),e)}(i)}},{option:r.option})}))};return watch((function(){return e.columns}),(function(){var t=e.columns;"plain"===f.value?i.value=[_defineProperty2({},s,t)]:"cascade"===f.value?function(){for(var t=[],n=_defineProperty2({},l,e.columns);n&&n[l];){for(var r,a,o=n[l],u=null!=(a=n.defaultIndex)?a:+e.defaultIndex;o[u]&&o[u].disabled;){if(!(u<o.length-1)){u=0;break}u++}t.push((_defineProperty2(r={},s,n[l]),_defineProperty2(r,"className",n.className),_defineProperty2(r,"defaultIndex",u),r)),n=o[u]}i.value=t}():i.value=t}),{immediate:!0}),useExpose({confirm:_,getValues:x,setValues:function(e){e.forEach((function(e,t){y(t,e)}))},getIndexes:d,setIndexes:function(e){e.forEach((function(e,t){S(t,e)}))},getColumnIndex:b,setColumnIndex:S,getColumnValue:v,setColumnValue:y,getColumnValues:function(e){var t=g(e);if(t)return t.state.options},setColumnValues:p}),function(){var t,n,i,a,o,s;return createVNode("div",{class:bem$r()},["top"===e.toolbarPosition?C():null,e.loading?createVNode(Loading,{class:bem$r("loading")},null):null,null==(t=r["columns-top"])?void 0:t.call(r),(i=h.value*+e.visibleItemCount,a={height:h.value+"px"},o={height:i+"px"},s={backgroundSize:"100% "+(i-h.value)/2+"px"},createVNode("div",{class:bem$r("columns"),style:o,onTouchmove:preventDefault},[P(),createVNode("div",{class:bem$r("mask"),style:s},null),createVNode("div",{class:[BORDER_UNSET_TOP_BOTTOM,bem$r("frame")],style:a},null)])),null==(n=r["columns-bottom"])?void 0:n.call(r),"bottom"===e.toolbarPosition?C():null])}}}),Picker=exports("bn",withInstall(_Picker)),_createNamespace21=createNamespace("cell"),_createNamespace22=_slicedToArray(_createNamespace21,2),name$q=_createNamespace22[0],bem$q=_createNamespace22[1],cellProps={icon:String,size:String,title:[Number,String],value:[Number,String],label:[Number,String],center:Boolean,isLink:Boolean,border:truthProp,required:Boolean,iconPrefix:String,valueClass:unknownProp,labelClass:unknownProp,titleClass:unknownProp,titleStyle:null,arrowDirection:String,clickable:{type:Boolean,default:null}},_Cell=defineComponent({name:name$q,props:extend$2({},cellProps,routeProps),setup:function(e,t){var n=t.slots,r=useRoute(),i=function(){if(n.label||isDef$1(e.label))return createVNode("div",{class:[bem$q("label"),e.labelClass]},[n.label?n.label():e.label])},a=function(){if(n.title||isDef$1(e.title))return createVNode("div",{class:[bem$q("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():createVNode("span",null,[e.title]),i()])},o=function(){if(n.default||isDef$1(e.value)){var t=n.title||isDef$1(e.title);return createVNode("div",{class:[bem$q("value",{alone:!t}),e.valueClass]},[n.default?n.default():createVNode("span",null,[e.value])])}},s=function(){if(n["right-icon"])return n["right-icon"]();if(e.isLink){var t=e.arrowDirection?"arrow-"+e.arrowDirection:"arrow";return createVNode(Icon,{name:t,class:bem$q("right-icon")},null)}};return function(){var t,i=e.size,l=e.center,u=e.border,c=e.isLink,h=e.required,f=null!=(t=e.clickable)?t:c,d={center:l,required:h,clickable:f,borderless:!u};return i&&(d[i]=!!i),createVNode("div",{class:bem$q(d),role:f?"button":void 0,tabindex:f?0:void 0,onClick:r},[n.icon?n.icon():e.icon?createVNode(Icon,{name:e.icon,class:bem$q("left-icon"),classPrefix:e.iconPrefix},null):void 0,a(),o(),s(),null==n.extra?void 0:n.extra()])}}}),Cell=exports("aZ",withInstall(_Cell));function isEmptyValue(e){return Array.isArray(e)?!e.length:0!==e&&!e}function runSyncRule(e,t){return(!t.required||!isEmptyValue(e))&&!(t.pattern&&!t.pattern.test(String(e)))}function runRuleValidator(e,t){return new Promise((function(n){var r=t.validator(e,t);if(isPromise(r))return r.then(n);n(r)}))}function getRuleMessage(e,t){var n=t.message;return isFunction$1(n)?n(e,t):n||""}function startComposing(e){e.target.composing=!0}function endComposing(e){var t=e.target;t.composing&&(t.composing=!1,trigger(t,"input"))}function resizeTextarea(e,t){e.style.height="auto";var n=e.scrollHeight;if(isObject$1(t)){var r=t.maxHeight,i=t.minHeight;void 0!==r&&(n=Math.min(n,r)),void 0!==i&&(n=Math.max(n,i))}n&&(e.style.height=n+"px")}function mapInputType(e){return"number"===e?{type:"text",inputmode:"decimal"}:"digit"===e?{type:"tel",inputmode:"numeric"}:{type:e}}var FORM_KEY=Symbol("van-form"),FIELD_KEY=Symbol("van-field");function useLinkField(e){var t=inject(FIELD_KEY,null);t&&!t.childFieldValue.value&&(t.childFieldValue.value=e,watch(e,(function(){t.resetValidation(),t.validateWithTrigger("onChange")})))}var _createNamespace23=createNamespace("field"),_createNamespace24=_slicedToArray(_createNamespace23,2),name$p=_createNamespace24[0],bem$p=_createNamespace24[1],fieldProps=exports("bx",{formatter:Function,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:[Number,String],inputAlign:String,placeholder:String,errorMessage:String,error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},clearIcon:{type:String,default:"clear"},modelValue:{type:[Number,String],default:""},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),_Field=defineComponent({name:name$p,props:extend$2({},cellProps,fieldProps,{rows:[Number,String],name:String,rules:Array,autosize:[Boolean,Object],labelWidth:[Number,String],labelClass:unknownProp,labelAlign:String,autocomplete:String,showWordLimit:Boolean,errorMessageAlign:String,type:{type:String,default:"text"},colon:{type:Boolean,default:null}}),emits:["blur","focus","clear","keypress","click-input","click-left-icon","click-right-icon","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,i=reactive({focused:!1,validateFailed:!1,validateMessage:""}),a=ref(),o=ref(),s=useParent(FORM_KEY).parent,l=function(){var t;return String(null!=(t=e.modelValue)?t:"")},u=function(t){return isDef$1(e[t])?e[t]:s&&isDef$1(s.props[t])?s.props[t]:void 0},c=computed((function(){var t=u("readonly");if(e.clearable&&!t){var n=""!==l(),r="always"===e.clearTrigger||"focus"===e.clearTrigger&&i.focused;return n&&r}return!1})),h=computed((function(){return o.value&&r.input?o.value():e.modelValue})),f=function(e){return e.reduce((function(e,t){return e.then((function(){if(!i.validateFailed){var e=h.value;return t.formatter&&(e=t.formatter(e,t)),runSyncRule(e,t)?t.validator?runRuleValidator(e,t).then((function(n){n&&"string"==typeof n?(i.validateFailed=!0,i.validateMessage=n):!1===n&&(i.validateFailed=!0,i.validateMessage=getRuleMessage(e,t))})):void 0:(i.validateFailed=!0,void(i.validateMessage=getRuleMessage(e,t)))}}))}),Promise.resolve())},d=function(){i.validateFailed&&(i.validateFailed=!1,i.validateMessage="")},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.rules;return new Promise((function(n){d(),t?f(t).then((function(){i.validateFailed?n({name:e.name,message:i.validateMessage}):n()})):n()}))},m=function(t){if(s&&e.rules){var n=s.props.validateTrigger===t,r=e.rules.filter((function(e){return e.trigger?e.trigger===t:n}));r.length&&p(r)}},g=function(t){var n=e.maxlength;if(isDef$1(n)&&t.length>n){var r=l();return r&&r.length===+n?r:t.slice(0,+n)}return t},v=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"onChange";if(t=g(t),"number"===e.type||"digit"===e.type){var i="number"===e.type;t=formatNumber(t,i,i)}e.formatter&&r===e.formatTrigger&&(t=e.formatter(t)),a.value&&a.value.value!==t&&(a.value.value=t),t!==e.modelValue&&n("update:modelValue",t)},y=function(e){e.target.composing||v(e.target.value)},b=function(){var e;return null==(e=a.value)?void 0:e.blur()},S=function(e){i.focused=!0,n("focus",e),u("readonly")&&b()},x=function(e){i.focused=!1,v(l(),"onBlur"),n("blur",e),m("onBlur"),resetScroll()},w=function(e){return n("click-input",e)},_=function(e){return n("click-left-icon",e)},k=function(e){return n("click-right-icon",e)},A=function(e){preventDefault(e),n("update:modelValue",""),n("clear",e)},E=computed((function(){return"boolean"==typeof e.error?e.error:!!(s&&s.props.showError&&i.validateFailed)||void 0})),C=computed((function(){var e=u("labelWidth");if(e)return{width:addUnit(e)}})),P=function(t){13===t.keyCode&&(s&&s.props.submitOnEnter||"textarea"===e.type||preventDefault(t),"search"===e.type&&b());n("keypress",t)},T=function(){var t=a.value;"textarea"===e.type&&e.autosize&&t&&resizeTextarea(t,e.autosize)},M=function(){var t=u("inputAlign");if(r.input)return createVNode("div",{class:bem$p("control",[t,"custom"]),onClick:w},[r.input()]);var n={ref:a,name:e.name,rows:void 0!==e.rows?+e.rows:void 0,class:bem$p("control",t),value:e.modelValue,disabled:u("disabled"),readonly:u("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,onBlur:x,onFocus:S,onInput:y,onClick:w,onChange:endComposing,onKeypress:P,onCompositionend:endComposing,onCompositionstart:startComposing};return"textarea"===e.type?createVNode("textarea",n,null):createVNode("input",mergeProps(mapInputType(e.type),n),null)},I=function(){var t=r["right-icon"];if(e.rightIcon||t)return createVNode("div",{class:bem$p("right-icon"),onClick:k},[t?t():createVNode(Icon,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},R=function(){if(e.showWordLimit&&e.maxlength){var t=l().length;return createVNode("div",{class:bem$p("word-limit")},[createVNode("span",{class:bem$p("word-num")},[t]),createTextVNode("/"),e.maxlength])}},N=function(){if(!s||!1!==s.props.showErrorMessage){var t=e.errorMessage||i.validateMessage;if(t){var n=u("errorMessageAlign");return createVNode("div",{class:bem$p("error-message",n)},[t])}}};return useExpose({blur:b,focus:function(){var e;return null==(e=a.value)?void 0:e.focus()},validate:p,formValue:h,resetValidation:d}),provide(FIELD_KEY,{childFieldValue:o,resetValidation:d,validateWithTrigger:m}),watch((function(){return e.modelValue}),(function(){v(l()),d(),m("onChange"),nextTick(T)})),onMounted((function(){v(l(),e.formatTrigger),nextTick(T)})),function(){var t,n,i=u("disabled"),a=u("labelAlign"),o=(n=u("colon")?":":"",r.label?[r.label(),n]:e.label?createVNode("span",null,[e.label+n]):void 0),s=function(){var t=r["left-icon"];if(e.leftIcon||t)return createVNode("div",{class:bem$p("left-icon"),onClick:_},[t?t():createVNode(Icon,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])}();return createVNode(Cell,{size:e.size,icon:e.leftIcon,class:bem$p((t={error:E.value,disabled:i},_defineProperty2(t,"label-"+a,a),_defineProperty2(t,"min-height","textarea"===e.type&&!e.autosize),t)),center:e.center,border:e.border,isLink:e.isLink,required:e.required,clickable:e.clickable,titleStyle:C.value,valueClass:bem$p("value"),titleClass:[bem$p("label",a),e.labelClass],arrowDirection:e.arrowDirection},{default:function(){return[createVNode("div",{class:bem$p("body")},[M(),c.value&&createVNode(Icon,{name:e.clearIcon,class:bem$p("clear"),onTouchstart:A},null),I(),r.button&&createVNode("div",{class:bem$p("button")},[r.button()])]),R(),N()]},icon:s?function(){return s}:null,title:o?function(){return o}:null,extra:r.extra})}}}),Field=exports("aE",withInstall(_Field));function usePopupState(){var e=reactive({show:!1}),t=function(t){e.show=t},n=function(n){extend$2(e,n),nextTick((function(){return 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 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 _createNamespace25=createNamespace("toast"),_createNamespace26=_slicedToArray(_createNamespace25,2),name$o=_createNamespace26[0],bem$o=_createNamespace26[1],VanToast=defineComponent({name:name$o,props:{icon:String,show:Boolean,overlay:Boolean,message:[Number,String],iconSize:[Number,String],className:unknownProp,iconPrefix:String,loadingType:String,forbidClick:Boolean,overlayClass:unknownProp,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,type:{type:String,default:"text"},duration:{type:Number,default:2e3},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"}},emits:["update:show"],setup:function(e,t){var n,r=t.emit,i=!1,a=function(){var t=e.show&&e.forbidClick;i!==t&&lockClick(i=t)},o=function(e){return r("update:show",e)},s=function(){e.closeOnClick&&o(!1)},l=function(){clearTimeout(n)},u=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,{name:t||n,size:r,class:bem$o("icon"),classPrefix:i},null):"loading"===n?createVNode(Loading,{class:bem$o("loading"),size:r,type:a},null):void 0},c=function(){var t=e.type,n=e.message;if(isDef$1(n)&&""!==n)return"html"===t?createVNode("div",{class:bem$o("text"),innerHTML:String(n)},null):createVNode("div",{class:bem$o("text")},[n])};return watch((function(){return[e.show,e.forbidClick]}),a),watch((function(){return[e.show,e.type,e.message,e.duration]}),(function(){l(),e.show&&e.duration>0&&(n=setTimeout((function(){o(!1)}),e.duration))})),onMounted(a),onUnmounted(a),function(){return createVNode(Popup,mergeProps({show:e.show,class:[bem$o([e.position,_defineProperty2({},e.type,!e.icon)]),e.className],overlay:e.overlay,lockScroll:!1,transition:e.transition,overlayClass:e.overlayClass,overlayStyle:e.overlayStyle,closeOnClickOverlay:e.closeOnClickOverlay,onClick:s,onClosed:l},{"onUpdate:show":o}),{default:function(){return[u(),c()]}})}}}),defaultOptions={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$1=[],allowMultiple=!1,currentOptions=extend$2({},defaultOptions),defaultOptionsMap={};function parseOptions(e){return isObject$1(e)?e:{message:e}}function createInstance(){var e=mountComponent({setup:function(){var e=ref(""),r=usePopupState(),i=r.open,a=r.state,o=r.close,s=r.toggle,l=function(){allowMultiple&&(queue$1=queue$1.filter((function(e){return e!==t})),n())};return getCurrentInstance().render=function(){var t={onClosed:l,"onUpdate:show":s};return e.value&&(t.message=e.value),createVNode(VanToast,mergeProps(a,t),null)},{open:i,clear:o,message:e}}}),t=e.instance,n=e.unmount;return t}function getInstance(){if(!queue$1.length||allowMultiple){var e=createInstance();queue$1.push(e)}return queue$1[queue$1.length-1]}function Toast(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!inBrowser$1)return{};var t=getInstance(),n=parseOptions(e);return t.open(extend$2({},currentOptions,defaultOptionsMap[n.type||currentOptions.type],n)),t}var createMethod=function(e){return function(t){return Toast(extend$2({type:e},parseOptions(t)))}};function setDefaultOptions(e,t){"string"==typeof e?defaultOptionsMap[e]=t:extend$2(currentOptions,e)}function callInterceptor(e){var t=e.interceptor,n=e.args,r=e.done,i=e.canceled;if(t){var a=t.apply(null,n||[]);isPromise(a)?a.then((function(e){e?r():i&&i()})).catch(noop$3):a?r():i&&i()}else r()}Toast.loading=createMethod("loading"),Toast.success=createMethod("success"),Toast.fail=createMethod("fail"),Toast.clear=function(e){queue$1.length&&(e?(queue$1.forEach((function(e){e.clear()})),queue$1=[]):allowMultiple?queue$1.shift().clear():queue$1[0].clear())},Toast.setDefaultOptions=setDefaultOptions,Toast.resetDefaultOptions=function(e){"string"==typeof e?defaultOptionsMap[e]=null:(currentOptions=extend$2({},defaultOptions),defaultOptionsMap={})},Toast.allowMultiple=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];allowMultiple=e},Toast.install=function(e){e.use(withInstall(VanToast)),e.config.globalProperties.$toast=Toast};var _createNamespace27=createNamespace("dialog"),_createNamespace28=_slicedToArray(_createNamespace27,3),name$n=_createNamespace28[0],bem$n=_createNamespace28[1],t$4=_createNamespace28[2],popupKeys=[].concat(_toConsumableArray2(popupSharedPropKeys),["transition","closeOnPopstate"]),VanDialog=defineComponent({name:name$n,props:extend$2({},popupSharedProps,{title:String,theme:String,width:[Number,String],message:[String,Function],callback:Function,allowHtml:Boolean,className:unknownProp,beforeClose:Function,messageAlign:String,closeOnPopstate:truthProp,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:truthProp,closeOnClickOverlay:Boolean,transition:{type:String,default:"van-dialog-bounce"}}),emits:["confirm","cancel","update:show"],setup:function(e,t){var n=t.emit,r=t.slots,i=reactive({confirm:!1,cancel:!1}),a=function(e){return n("update:show",e)},o=function(t){a(!1),e.callback&&e.callback(t)},s=function(t){return function(){e.show&&(n(t),e.beforeClose?(i[t]=!0,callInterceptor({interceptor:e.beforeClose,args:[t],done:function(){o(t),i[t]=!1},canceled:function(){i[t]=!1}})):o(t))}},l=s("cancel"),u=s("confirm"),c=function(){var t=r.title?r.title():e.title;if(t)return createVNode("div",{class:bem$n("header",{isolated:!e.message&&!r.default})},[t])},h=function(t){var n=e.message,r=e.allowHtml,i=e.messageAlign,a=bem$n("message",_defineProperty2({"has-title":t},i,i)),o=isFunction$1(n)?n():n;return r&&"string"==typeof o?createVNode("div",{class:a,innerHTML:o},null):createVNode("div",{class:a},[o])},f=function(){if(r.default)return createVNode("div",{class:bem$n("content")},[r.default()]);var t=e.title,n=e.message,i=e.allowHtml;if(n){var a=!(!t&&!r.title);return createVNode("div",{key:i?1:0,class:bem$n("content",{isolated:!a})},[h(a)])}},d=function(){return r.footer?r.footer():"round-button"===e.theme?createVNode(ActionBar,{class:bem$n("footer")},{default:function(){return[e.showCancelButton&&createVNode(ActionBarButton,{type:"warning",text:e.cancelButtonText||t$4("cancel"),class:bem$n("cancel"),color:e.cancelButtonColor,loading:i.cancel,onClick:l},null),e.showConfirmButton&&createVNode(ActionBarButton,{type:"danger",text:e.confirmButtonText||t$4("confirm"),class:bem$n("confirm"),color:e.confirmButtonColor,loading:i.confirm,onClick:u},null)]}}):createVNode("div",{class:[BORDER_TOP,bem$n("footer")]},[e.showCancelButton&&createVNode(Button,{size:"large",text:e.cancelButtonText||t$4("cancel"),class:bem$n("cancel"),style:{color:e.cancelButtonColor},loading:i.cancel,onClick:l},null),e.showConfirmButton&&createVNode(Button,{size:"large",text:e.confirmButtonText||t$4("confirm"),class:[bem$n("confirm"),_defineProperty2({},BORDER_LEFT,e.showCancelButton)],style:{color:e.confirmButtonColor},loading:i.confirm,onClick:u},null)])};return function(){var t=e.width,n=e.title,r=e.theme,i=e.message,o=e.className;return createVNode(Popup,mergeProps({role:"dialog",class:[bem$n([r]),o],style:{width:addUnit(t)},"aria-labelledby":n||i},pick(e,popupKeys),{"onUpdate:show":a}),{default:function(){return[c(),f(),d()]}})}}}),instance$1;function initInstance(){var e={setup:function(){var e=usePopupState(),t=e.state,n=e.toggle;return function(){return createVNode(VanDialog,mergeProps(t,{"onUpdate:show":n}),null)}}},t=mountComponent(e);instance$1=t.instance}function Dialog(e){return inBrowser$1?new Promise((function(t,n){instance$1||initInstance(),instance$1.open(extend$2({},Dialog.currentOptions,e,{callback:function(e){("confirm"===e?t:n)(e)}}))})):Promise.resolve()}Dialog.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},Dialog.currentOptions=extend$2({},Dialog.defaultOptions),Dialog.alert=Dialog,Dialog.confirm=function(e){return Dialog(extend$2({showCancelButton:!0},e))},Dialog.close=function(){instance$1&&instance$1.toggle(!1)},Dialog.setDefaultOptions=function(e){extend$2(Dialog.currentOptions,e)},Dialog.resetDefaultOptions=function(){Dialog.currentOptions=extend$2({},Dialog.defaultOptions)},Dialog.install=function(e){e.use(withInstall(VanDialog)),e.config.globalProperties.$dialog=Dialog},Dialog.Component=withInstall(VanDialog);var _createNamespace29=createNamespace("switch"),_createNamespace30=_slicedToArray(_createNamespace29,2),name$m=_createNamespace30[0],bem$m=_createNamespace30[1],_Switch=defineComponent({name:name$m,props:{size:[Number,String],loading:Boolean,disabled:Boolean,modelValue:unknownProp,activeColor:String,inactiveColor:String,activeValue:{type:unknownProp,default:!0},inactiveValue:{type:unknownProp,default:!1}},emits:["change","update:modelValue"],setup:function(e,t){var n=t.emit,r=function(){return e.modelValue===e.activeValue},i=function(){if(!e.disabled&&!e.loading){var t=r()?e.inactiveValue:e.activeValue;n("update:modelValue",t),n("change",t)}},a=function(){if(e.loading){var t=r()?e.activeColor:e.inactiveColor;return createVNode(Loading,{class:bem$m("loading"),color:t},null)}};return useLinkField((function(){return e.modelValue})),function(){var t=e.size,n=e.loading,o=e.disabled,s=e.activeColor,l=e.inactiveColor,u=r(),c={fontSize:addUnit(t),backgroundColor:u?s:l};return createVNode("div",{role:"switch",class:bem$m({on:u,loading:n,disabled:o}),style:c,"aria-checked":u,onClick:i},[createVNode("div",{class:bem$m("node")},[a()])])}}}),Switch=exports("a_",withInstall(_Switch)),_createNamespace31=createNamespace("radio-group"),_createNamespace32=_slicedToArray(_createNamespace31,2),name$l=_createNamespace32[0],bem$l=_createNamespace32[1],RADIO_KEY=Symbol(name$l),props$4={disabled:Boolean,iconSize:[Number,String],direction:String,modelValue:unknownProp,checkedColor:String},_RadioGroup=defineComponent({name:name$l,props:props$4,emits:["change","update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,i=useChildren(RADIO_KEY).linkChildren;return watch((function(){return e.modelValue}),(function(e){return n("change",e)})),i({props:e,updateValue:function(e){return n("update:modelValue",e)}}),useLinkField((function(){return e.modelValue})),function(){return createVNode("div",{class:bem$l([e.direction]),role:"radiogroup"},[null==r.default?void 0:r.default()])}}}),RadioGroup=withInstall(_RadioGroup),_createNamespace33=createNamespace("tag"),_createNamespace34=_slicedToArray(_createNamespace33,2),name$k=_createNamespace34[0],bem$k=_createNamespace34[1],_Tag=defineComponent({name:name$k,props:{size:String,mark:Boolean,show:truthProp,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},emits:["close"],setup:function(e,t){var n=t.slots,r=t.emit,i=function(e){e.stopPropagation(),r("close",e)},a=function(){var t=e.type,r=e.mark,a=e.plain,o=e.round,s=e.size,l=e.closeable,u={mark:r,plain:a,round:o};s&&(u[s]=s);var c=l&&createVNode(Icon,{name:"cross",class:bem$k("close"),onClick:i},null);return createVNode("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:bem$k([u,t])},[null==n.default?void 0:n.default(),c])};return function(){return createVNode(Transition,{name:e.closeable?"van-fade":void 0},{default:function(){return[e.show?a():null]}})}}}),Tag=withInstall(_Tag),checkerProps={name:unknownProp,disabled:Boolean,iconSize:[Number,String],modelValue:unknownProp,checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"}},Checker=defineComponent({props:extend$2({},checkerProps,{role:String,parent:Object,checked:Boolean,bindGroup:truthProp,bem:{type:Function,required:!0}}),emits:["click","toggle"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref(),a=function(t){if(e.parent&&e.bindGroup)return e.parent.props[t]},o=computed((function(){return a("disabled")||e.disabled})),s=computed((function(){return a("direction")})),l=computed((function(){var t=e.checkedColor||a("checkedColor");if(t&&e.checked&&!o.value)return{borderColor:t,backgroundColor:t}})),u=function(t){var r=t.target,a=i.value,s=a===r||a.contains(r);o.value||!s&&e.labelDisabled||n("toggle"),n("click",t)},c=function(){var t=e.bem,n=e.shape,s=e.checked,u=e.iconSize||a("iconSize");return createVNode("div",{ref:i,class:t("icon",[n,{disabled:o.value,checked:s}]),style:{fontSize:addUnit(u)}},[r.icon?r.icon({checked:s,disabled:o.value}):createVNode(Icon,{name:"success",style:l.value},null)])},h=function(){if(r.default)return createVNode("span",{class:e.bem("label",[e.labelPosition,{disabled:o.value}])},[r.default()])};return function(){var t=[c()];return"left"===e.labelPosition?t.unshift(h()):t.push(h()),createVNode("div",{role:e.role,class:e.bem([{disabled:o.value,"label-disabled":e.labelDisabled},s.value]),tabindex:o.value?-1:0,"aria-checked":e.checked,onClick:u},[t])}}}),_createNamespace35=createNamespace("radio"),_createNamespace36=_slicedToArray(_createNamespace35,2),name$j=_createNamespace36[0],bem$j=_createNamespace36[1],_Radio=defineComponent({name:name$j,props:checkerProps,emits:["update:modelValue"],setup:function(e,t){var n=t.emit,r=t.slots,i=useParent(RADIO_KEY).parent,a=function(){i?i.updateValue(e.name):n("update:modelValue",e.name)};return function(){return createVNode(Checker,mergeProps({bem:bem$j,role:"radio",parent:i,checked:(i?i.props.modelValue:e.modelValue)===e.name,onToggle:a},e),pick(r,["default","icon"]))}}}),Radio=withInstall(_Radio),rafId;function useRefs(){var e=ref([]);onBeforeUpdate((function(){e.value=[]}));return[e,function(t){return function(n){e.value[t]=n}}]}function scrollLeftTo(e,t,n){cancelRaf(rafId);var r=0,i=e.scrollLeft,a=0===n?1:Math.round(1e3*n/16);!function n(){e.scrollLeft+=(t-i)/a,++r<a&&(rafId=raf$2(n))}()}function scrollTopTo(e,t,n,r){var i=getScrollTop(e),a=i<t,o=0===n?1:Math.round(1e3*n/16),s=(t-i)/o;!function n(){i+=s,(a&&i>t||!a&&i<t)&&(i=t),setScrollTop(e,i),a&&i<t||!a&&i>t?raf$2(n):r&&raf$2(r)}()}function useVisibilityChange(e,t){if(inBrowser$1&&window.IntersectionObserver){var n=new IntersectionObserver((function(e){t(e[0].intersectionRatio>0)}),{root:document.body}),r=function(){e.value&&n.unobserve(e.value)};onDeactivated(r),onBeforeUnmount(r),onMountedOrActivated((function(){e.value&&n.observe(e.value)}))}}var _createNamespace37=createNamespace("sticky"),_createNamespace38=_slicedToArray(_createNamespace37,2),name$i=_createNamespace38[0],bem$i=_createNamespace38[1],_Sticky=defineComponent({name:name$i,props:{zIndex:[Number,String],container:Object,offsetTop:{type:[Number,String],default:0},offsetBottom:{type:[Number,String],default:0},position:{type:String,default:"top"}},emits:["scroll","change"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref(),a=useScrollParent(i),o=reactive({fixed:!1,width:0,height:0,transform:0}),s=computed((function(){return unitToPx("top"===e.position?e.offsetTop:e.offsetBottom)})),l=computed((function(){var e=o.fixed,t=o.height,n=o.width;if(e)return{width:n+"px",height:t+"px"}})),u=computed((function(){if(o.fixed){var t=extend$2(getZIndexStyle(e.zIndex),_defineProperty2({width:o.width+"px",height:o.height+"px"},e.position,s.value+"px"));return o.transform&&(t.transform="translate3d(0, "+o.transform+"px, 0)"),t}})),c=function(){if(i.value&&!isHidden(i)){var t=e.container,r=e.position,a=useRect(i),l=getScrollTop(window);if(o.width=a.width,o.height=a.height,"top"===r)if(t){var u=useRect(t),c=u.bottom-s.value-o.height;o.fixed=s.value>a.top&&u.bottom>0,o.transform=c<0?c:0}else o.fixed=s.value>a.top;else{var h=document.documentElement.clientHeight;if(t){var f=useRect(t),d=h-f.top-s.value-o.height;o.fixed=h-s.value<a.bottom&&h>f.top,o.transform=d<0?-d:0}else o.fixed=h-s.value<a.bottom}!function(e){n("scroll",{scrollTop:e,isFixed:o.fixed})}(l)}};return watch((function(){return o.fixed}),(function(e){return n("change",e)})),useEventListener("scroll",c,{target:a}),useVisibilityChange(i,c),function(){return createVNode("div",{ref:i,style:l.value},[createVNode("div",{class:bem$i({fixed:o.fixed}),style:u.value},[null==r.default?void 0:r.default()])])}}}),Sticky=exports("bA",withInstall(_Sticky)),_createNamespace39=createNamespace("tab"),_createNamespace40=_slicedToArray(_createNamespace39,2),name$h=_createNamespace40[0],bem$h=_createNamespace40[1],TabsTitle=defineComponent({name:name$h,props:{dot:Boolean,type:String,color:String,title:String,badge:[Number,String],isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,renderTitle:Function,inactiveColor:String},setup:function(e){var t=computed((function(){var t={},n=e.type,r=e.color,i=e.disabled,a=e.isActive,o=e.activeColor,s=e.inactiveColor;r&&"card"===n&&(t.borderColor=r,i||(a?t.backgroundColor=r:t.color=r));var l=a?o:s;return l&&(t.color=l),t})),n=function(){var t=createVNode("span",{class:bem$h("text",{ellipsis:!e.scrollable})},[e.renderTitle?e.renderTitle():e.title]);return e.dot||isDef$1(e.badge)&&""!==e.badge?createVNode(Badge,{dot:e.dot,content:e.badge},{default:function(){return[t]}}):t};return function(){return createVNode("div",{role:"tab",class:[bem$h({active:e.isActive,disabled:e.disabled})],style:t.value,"aria-selected":e.isActive},[n()])}}}),_createNamespace41=createNamespace("swipe"),_createNamespace42=_slicedToArray(_createNamespace41,2),name$g=_createNamespace42[0],bem$g=_createNamespace42[1],SWIPE_KEY=Symbol(name$g),props$3={loop:truthProp,width:[Number,String],height:[Number,String],vertical:Boolean,touchable:truthProp,lazyRender:Boolean,indicatorColor:String,showIndicators:truthProp,stopPropagation:truthProp,autoplay:{type:[Number,String],default:0},duration:{type:[Number,String],default:500},initialSwipe:{type:[Number,String],default:0}},_Swipe=defineComponent({name:name$g,props:props$3,emits:["change"],setup:function(e,t){var n,r,i=t.emit,a=t.slots,o=ref(),s=reactive({rect:null,width:0,height:0,offset:0,active:0,swiping:!1}),l=useTouch(),u=useWindowSize(),c=useChildren(SWIPE_KEY),h=c.children,f=c.linkChildren,d=computed((function(){return h.length})),p=computed((function(){return s[e.vertical?"height":"width"]})),m=computed((function(){return e.vertical?l.deltaY.value:l.deltaX.value})),g=computed((function(){return s.rect?(e.vertical?s.rect.height:s.rect.width)-p.value*d.value:0})),v=computed((function(){return Math.ceil(Math.abs(g.value)/p.value)})),y=computed((function(){return d.value*p.value})),b=computed((function(){return(s.active+d.value)%d.value})),S=computed((function(){var t=e.vertical?"vertical":"horizontal";return l.direction.value===t})),x=computed((function(){var t={transitionDuration:(s.swiping?0:e.duration)+"ms",transform:"translate"+(e.vertical?"Y":"X")+"("+s.offset+"px)"};if(p.value){var n=e.vertical?"height":"width",r=e.vertical?"width":"height";t[n]=y.value+"px",t[r]=e[r]?e[r]+"px":""}return t})),w=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t*p.value;e.loop||(r=Math.min(r,-g.value));var i=n-r;return e.loop||(i=clamp(i,g.value,0)),i},_=function(t){var n=t.pace,r=void 0===n?0:n,a=t.offset,o=void 0===a?0:a,l=t.emitChange;if(!(d.value<=1)){var u=s.active,c=function(t){var n=s.active;return t?e.loop?clamp(n+t,-1,d.value):clamp(n+t,0,v.value):n}(r),f=w(c,o);if(e.loop){if(h[0]&&f!==g.value){var p=f<g.value;h[0].setOffset(p?y.value:0)}if(h[d.value-1]&&0!==f){var m=f>0;h[d.value-1].setOffset(m?-y.value:0)}}s.active=c,s.offset=f,l&&c!==u&&i("change",b.value)}},k=function(){s.swiping=!0,s.active<=-1?_({pace:d.value}):s.active>=d.value&&_({pace:-d.value})},A=function(){k(),l.reset(),doubleRaf((function(){s.swiping=!1,_({pace:1,emitChange:!0})}))},E=function(){return clearTimeout(n)},C=function t(){E(),e.autoplay>0&&d.value>1&&(n=setTimeout((function(){A(),t()}),+e.autoplay))},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:+e.initialSwipe;if(o.value){if(!isHidden(o)){var n,r,i={width:o.value.offsetWidth,height:o.value.offsetHeight};s.rect=i,s.width=+(null!=(n=e.width)?n:i.width),s.height=+(null!=(r=e.height)?r:i.height)}d.value&&(t=Math.min(d.value-1,t)),s.active=t,s.swiping=!0,s.offset=w(t),h.forEach((function(e){e.setOffset(0)}))}},T=function(){return P(s.active)},M=function(t){e.touchable&&(l.start(t),r=Date.now(),E(),k())},I=function(t){e.touchable&&s.swiping&&(l.move(t),S.value&&(preventDefault(t,e.stopPropagation),_({offset:m.value})))},R=function(){if(e.touchable&&s.swiping){var t=Date.now()-r,n=m.value/t;if((Math.abs(n)>.25||Math.abs(m.value)>p.value/2)&&S.value){var i=e.vertical?l.offsetY.value:l.offsetX.value,a=0;a=e.loop?i>0?m.value>0?-1:1:0:-Math[m.value>0?"ceil":"floor"](m.value/p.value),_({pace:a,emitChange:!0})}else m.value&&_({pace:0});s.swiping=!1,C()}},N=function(t,n){var r=n===b.value,i=r?{backgroundColor:e.indicatorColor}:void 0;return createVNode("i",{style:i,class:bem$g("indicator",{active:r})},null)};return useExpose({prev:function(){k(),l.reset(),doubleRaf((function(){s.swiping=!1,_({pace:-1,emitChange:!0})}))},next:A,state:s,resize:T,swipeTo:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(),l.reset(),doubleRaf((function(){var r;r=e.loop&&t===d.value?0===s.active?0:t:t%d.value,n.immediate?doubleRaf((function(){s.swiping=!1})):s.swiping=!1,_({pace:r-s.active,emitChange:!0})}))}}),f({size:p,props:e,count:d,activeIndicator:b}),watch((function(){return e.initialSwipe}),(function(e){return P(+e)})),watch(d,(function(){return P(s.active)})),watch([d,function(){return e.autoplay}],C),watch([u.width,u.height],T),watch(usePageVisibility(),(function(e){"visible"===e?C():E()})),onMounted(P),onActivated((function(){return P(s.active)})),onPopupReopen((function(){return P(s.active)})),onDeactivated(E),onBeforeUnmount(E),function(){return createVNode("div",{ref:o,class:bem$g()},[createVNode("div",{style:x.value,class:bem$g("track",{vertical:e.vertical}),onTouchstart:M,onTouchmove:I,onTouchend:R,onTouchcancel:R},[null==a.default?void 0:a.default()]),a.indicator?a.indicator({active:b.value}):e.showIndicators&&d.value>1?createVNode("div",{class:bem$g("indicators",{vertical:e.vertical})},[Array(d.value).fill("").map(N)]):void 0])}}}),Swipe=exports("az",withInstall(_Swipe)),_createNamespace43=createNamespace("tabs"),_createNamespace44=_slicedToArray(_createNamespace43,2),name$f=_createNamespace44[0],bem$f=_createNamespace44[1],TabsContent=defineComponent({name:name$f,props:{inited:Boolean,animated:Boolean,swipeable:Boolean,lazyRender:Boolean,count:{type:Number,required:!0},duration:{type:[Number,String],required:!0},currentIndex:{type:Number,required:!0}},emits:["change"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref(),a=function(e){return n("change",e)},o=function(){var t=null==r.default?void 0:r.default();return e.animated||e.swipeable?createVNode(Swipe,{ref:i,loop:!1,class:bem$f("track"),duration:1e3*+e.duration,touchable:e.swipeable,lazyRender:e.lazyRender,showIndicators:!1,onChange:a},{default:function(){return[t]}}):t},s=function(t){var n=i.value;n&&n.state.active!==t&&n.swipeTo(t,{immediate:!e.inited})};return watch((function(){return e.currentIndex}),s),onMounted((function(){s(e.currentIndex)})),function(){return createVNode("div",{class:bem$f("content",{animated:e.animated||e.swipeable})},[o()])}}}),_createNamespace45=createNamespace("tabs"),_createNamespace46=_slicedToArray(_createNamespace45,2),name$e=_createNamespace46[0],bem$e=_createNamespace46[1],TABS_KEY=Symbol(name$e),props$2={color:String,border:Boolean,sticky:Boolean,animated:Boolean,ellipsis:truthProp,swipeable:Boolean,scrollspy:Boolean,background:String,lazyRender:truthProp,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},swipeThreshold:{type:[Number,String],default:5}},_Tabs=defineComponent({name:name$e,props:props$2,emits:["click","change","scroll","disabled","rendered","update:active"],setup:function(e,t){var n,r,i,a=t.emit,o=t.slots,s=ref(),l=ref(),u=ref(),c=useWindowSize(),h=useScrollParent(s),f=_slicedToArray(useRefs(),2),d=f[0],p=f[1],m=useChildren(TABS_KEY),g=m.children,v=m.linkChildren,y=reactive({inited:!1,position:"",lineStyle:{},currentIndex:-1}),b=computed((function(){return g.length>e.swipeThreshold||!e.ellipsis})),S=computed((function(){return{borderColor:e.color,background:e.background}})),x=function(e,t){var n;return null!=(n=e.name)?n:t},w=computed((function(){var e=g[y.currentIndex];if(e)return x(e,y.currentIndex)})),_=computed((function(){return unitToPx(e.offsetTop)})),k=computed((function(){return e.sticky?_.value+n:0})),A=function(t){var n=l.value,r=d.value;if(b.value&&n&&r&&r[y.currentIndex]){var i=r[y.currentIndex].$el;scrollLeftTo(n,i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2,t?0:+e.duration)}},E=function(){var t=y.inited;nextTick((function(){var n=d.value;if(n&&n[y.currentIndex]&&"line"===e.type&&!isHidden(s.value)){var r=n[y.currentIndex].$el,i=e.lineWidth,a=e.lineHeight,o=r.offsetLeft+r.offsetWidth/2,l={width:addUnit(i),backgroundColor:e.color,transform:"translateX("+o+"px) translateX(-50%)"};if(t&&(l.transitionDuration=e.duration+"s"),isDef$1(a)){var u=addUnit(a);l.height=u,l.borderRadius=u}y.lineStyle=l}}))},C=function(t){var n=function(e){for(var t=e<y.currentIndex?-1:1;e>=0&&e<g.length;){if(!g[e].disabled)return e;e+=t}}(t);if(isDef$1(n)){var r=g[n],i=x(r,n),o=null!==y.currentIndex;y.currentIndex=n,i!==e.active&&(a("update:active",i),o&&a("change",i,r.title))}},P=function(e){var t=g.find((function(t,n){return x(t,n)===e})),n=t?g.indexOf(t):0;C(n)},T=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e.scrollspy){var n=g[y.currentIndex].$el;if(n&&h.value){var i=getElementTop(n,h.value)-k.value;r=!0,scrollTopTo(h.value,i,t?0:+e.duration,(function(){r=!1}))}}},M=function(e){i=e.isFixed,a("scroll",e)},I=function(){return g.map((function(t,n){return createVNode(TabsTitle,{ref:p(n),dot:t.dot,type:e.type,badge:t.badge,title:t.title,color:e.color,style:t.titleStyle,class:t.titleClass,isActive:n===y.currentIndex,disabled:t.disabled,scrollable:b.value,renderTitle:t.$slots.title,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,onClick:function(){!function(t,n){var r=g[n],i=r.title,o=r.disabled,s=x(g[n],n);o?a("disabled",s,i):(callInterceptor({interceptor:e.beforeChange,args:[s],done:function(){C(n),T()}}),a("click",s,i),route(t))}(t,n)}},null)}))},R=function(){var t,n,r=e.type,i=e.border;return createVNode("div",{ref:u,class:[bem$e("wrap",{scrollable:b.value}),_defineProperty2({},BORDER_TOP_BOTTOM,"line"===r&&i)]},[createVNode("div",{ref:l,role:"tablist",class:bem$e("nav",[r,{complete:b.value}]),style:S.value},[null==(t=o["nav-left"])?void 0:t.call(o),I(),"line"===r&&createVNode("div",{class:bem$e("line"),style:y.lineStyle},null),null==(n=o["nav-right"])?void 0:n.call(o)])])};watch([function(){return e.color},c.width],E),watch((function(){return e.active}),(function(e){e!==w.value&&P(e)})),watch((function(){return g.length}),(function(){y.inited&&(P(e.active),E(),nextTick((function(){A(!0)})))})),watch((function(){return y.currentIndex}),(function(){A(),E(),i&&!e.scrollspy&&setRootScrollTop(Math.ceil(getElementTop(s.value)-_.value))}));return useExpose({resize:E,scrollTo:function(e){nextTick((function(){P(e),T(!0)}))}}),onActivated(E),onPopupReopen(E),onMountedOrActivated((function(){P(e.active),nextTick((function(){y.inited=!0,n=getVisibleHeight(u.value),A(!0)}))})),useEventListener("scroll",(function(){if(e.scrollspy&&!r){var t=function(){for(var e=0;e<g.length;e++)if(getVisibleTop(g[e].$el)>k.value)return 0===e?0:e-1;return g.length-1}();C(t)}}),{target:h}),v({props:e,setLine:E,onRendered:function(e,t){return a("rendered",e,t)},currentName:w,scrollIntoView:A}),function(){return createVNode("div",{ref:s,class:bem$e([e.type])},[e.sticky?createVNode(Sticky,{container:s.value,offsetTop:_.value,onScroll:M},{default:function(){return[R()]}}):R(),createVNode(TabsContent,{count:g.length,inited:y.inited,animated:e.animated,duration:e.duration,swipeable:e.swipeable,lazyRender:e.lazyRender,currentIndex:y.currentIndex,onChange:C},{default:function(){return[null==o.default?void 0:o.default()]}})])}}}),TAB_STATUS_KEY=Symbol();function useTabStatus(){return inject(TAB_STATUS_KEY,null)}var _createNamespace47=createNamespace("swipe-item"),_createNamespace48=_slicedToArray(_createNamespace47,2),name$d=_createNamespace48[0],bem$d=_createNamespace48[1],_SwipeItem=defineComponent({name:name$d,setup:function(e,t){var n,r=t.slots,i=reactive({offset:0,inited:!1,mounted:!1}),a=useParent(SWIPE_KEY),o=a.parent,s=a.index;if(o){var l=computed((function(){var e={},t=o.props.vertical;return o.size.value&&(e[t?"height":"width"]=o.size.value+"px"),i.offset&&(e.transform="translate"+(t?"Y":"X")+"("+i.offset+"px)"),e})),u=computed((function(){var e=o.props,t=e.loop;if(!e.lazyRender||n)return!0;if(!i.mounted)return!1;var r=o.activeIndicator.value,a=o.count.value-1,l=0===r&&t?a:r-1,u=r===a&&t?0:r+1;return n=s.value===r||s.value===l||s.value===u}));return onMounted((function(){nextTick((function(){i.mounted=!0}))})),useExpose({setOffset:function(e){i.offset=e}}),function(){return createVNode("div",{class:bem$d(),style:l.value},[u.value?null==r.default?void 0:r.default():null])}}}}),SwipeItem=exports("ar",withInstall(_SwipeItem)),_createNamespace49=createNamespace("tab"),_createNamespace50=_slicedToArray(_createNamespace49,2),name$c=_createNamespace50[0],bem$c=_createNamespace50[1],_Tab=defineComponent({name:name$c,props:extend$2({},routeProps,{dot:Boolean,name:[Number,String],badge:[Number,String],title:String,disabled:Boolean,titleClass:unknownProp,titleStyle:[String,Object]}),setup:function(e,t){var n=t.slots,r=ref(!1),i=useParent(TABS_KEY),a=i.parent,o=i.index;if(a){var s=function(){var t;return null!=(t=e.name)?t:o.value},l=computed((function(){var t=s()===a.currentName.value;return t&&!r.value&&(r.value=!0,a.props.lazyRender&&nextTick((function(){a.onRendered(s(),e.title)}))),t}));return watch((function(){return e.title}),(function(){a.setLine(),a.scrollIntoView()})),provide(TAB_STATUS_KEY,l),function(){var e=a.props,t=e.animated,i=e.swipeable,o=e.scrollspy,s=e.lazyRender;if(n.default||t){var u=o||l.value;if(t||i)return createVNode(SwipeItem,{role:"tabpanel","aria-hidden":!l.value,class:bem$c("pane-wrapper",{inactive:!l.value})},{default:function(){return[createVNode("div",{class:bem$c("pane")},[null==n.default?void 0:n.default()])]}});var c=r.value||o||!s?null==n.default?void 0:n.default():null;return withDirectives(createVNode("div",{role:"tabpanel",class:bem$c("pane")},[c]),[[vShow,u]])}}}}}),Tab=exports("aG",withInstall(_Tab)),Tabs=exports("aF",withInstall(_Tabs)),_createNamespace51=createNamespace("cell-group"),_createNamespace52=_slicedToArray(_createNamespace51,2),name$b=_createNamespace52[0],bem$b=_createNamespace52[1],_CellGroup=defineComponent({name:name$b,inheritAttrs:!1,props:{title:String,inset:Boolean,border:truthProp},setup:function(e,t){var n=t.slots,r=t.attrs,i=function(){return createVNode("div",mergeProps({class:[bem$b({inset:e.inset}),_defineProperty2({},BORDER_TOP_BOTTOM,e.border&&!e.inset)]},r),[null==n.default?void 0:n.default()])};return function(){return e.title||n.title?createVNode(Fragment,null,[createVNode("div",{class:bem$b("title",{inset:e.inset})},[n.title?n.title():e.title]),i()]):i()}}}),CellGroup=exports("bb",withInstall(_CellGroup)),_createNamespace53=createNamespace("row"),_createNamespace54=_slicedToArray(_createNamespace53,2),name$a=_createNamespace54[0],bem$a=_createNamespace54[1],ROW_KEY=Symbol(name$a),_Row=defineComponent({name:name$a,props:{wrap:truthProp,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},setup:function(e,t){var n=t.slots,r=useChildren(ROW_KEY),i=r.children,a=r.linkChildren,o=computed((function(){var e=[[]],t=0;return i.forEach((function(n,r){(t+=Number(n.span))>24?(e.push([r]),t-=24):e[e.length-1].push(r)})),e})),s=computed((function(){var t=Number(e.gutter),n=[];return t?(o.value.forEach((function(e){var r=t*(e.length-1)/e.length;e.forEach((function(e,i){if(0===i)n.push({right:r});else{var a=t-n[e-1].right,o=r-a;n.push({left:a,right:o})}}))})),n):n}));return a({spaces:s}),function(){var t,r=e.tag,i=e.wrap,a=e.align,o=e.justify;return createVNode(r,{class:bem$a((t={},_defineProperty2(t,"align-"+a,a),_defineProperty2(t,"justify-"+o,o),_defineProperty2(t,"nowrap",!i),t))},{default:function(){return[null==n.default?void 0:n.default()]}})}}}),_createNamespace55=createNamespace("col"),_createNamespace56=_slicedToArray(_createNamespace55,2),name$9=_createNamespace56[0],bem$9=_createNamespace56[1],_Col=defineComponent({name:name$9,props:{offset:[Number,String],tag:{type:String,default:"div"},span:{type:[Number,String],default:0}},setup:function(e,t){var n=t.slots,r=useParent(ROW_KEY),i=r.parent,a=r.index,o=computed((function(){if(i){var e=i.spaces;if(e&&e.value&&e.value[a.value]){var t=e.value[a.value],n=t.left,r=t.right;return{paddingLeft:n?n+"px":null,paddingRight:r?r+"px":null}}}}));return function(){var t,r=e.tag,i=e.span,a=e.offset;return createVNode(r,{style:o.value,class:bem$9((t={},_defineProperty2(t,i,i),_defineProperty2(t,"offset-"+a,a),t))},{default:function(){return[null==n.default?void 0:n.default()]}})}}}),Col=withInstall(_Col),_createNamespace57=createNamespace("divider"),_createNamespace58=_slicedToArray(_createNamespace57,2),name$8=_createNamespace58[0],bem$8=_createNamespace58[1],_Divider=defineComponent({name:name$8,props:{dashed:Boolean,hairline:truthProp,contentPosition:{type:String,default:"center"}},setup:function(e,t){var n=t.slots;return function(){return createVNode("div",{role:"separator",class:bem$8(_defineProperty2({dashed:e.dashed,hairline:e.hairline},"content-"+e.contentPosition,!!n.default))},[null==n.default?void 0:n.default()])}}}),Divider=withInstall(_Divider),prefix="van-empty-network-",renderStop=function(e,t,n){return createVNode("stop",{"stop-color":e,offset:t+"%","stop-opacity":n},null)},Network=createVNode("svg",{viewBox:"0 0 160 160"},[createVNode("defs",null,[createVNode("linearGradient",{id:prefix+"1",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"},[renderStop("#FFF",0,.5),renderStop("#F2F3F5",100)]),createVNode("linearGradient",{id:prefix+"2",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"},[renderStop("#EBEDF0",0),renderStop("#DCDEE0",100,0)]),createVNode("linearGradient",{id:prefix+"3",x1:"100%",y1:"0%",x2:"100%",y2:"100%"},[renderStop("#EAEDF0",0),renderStop("#DCDEE0",100)]),createVNode("linearGradient",{id:prefix+"4",x1:"100%",y1:"100%",x2:"100%",y2:"0%"},[renderStop("#EAEDF0",0),renderStop("#DCDEE0",100)]),createVNode("linearGradient",{id:prefix+"5",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"},[renderStop("#EAEDF0",0),renderStop("#DCDEE0",100)]),createVNode("linearGradient",{id:prefix+"6",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"},[renderStop("#EAEDF0",0),renderStop("#DCDEE0",100)]),createVNode("radialGradient",{id:prefix+"7",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"},[renderStop("#EBEDF0",0),renderStop("#FFF",100,0)])]),createVNode("g",{fill:"none","fill-rule":"evenodd"},[createVNode("g",{opacity:".8"},[createVNode("path",{d:"M0 124V46h20v20h14v58H0z",fill:"url(#"+prefix+"1)",transform:"matrix(-1 0 0 1 36 7)"},null),createVNode("path",{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#"+prefix+"1)",transform:"translate(2 7)"},null)]),createVNode("path",{fill:"url(#"+prefix+"7)",d:"M0 139h160v21H0z"},null),createVNode("path",{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#"+prefix+"2)","fill-rule":"nonzero",transform:"translate(43 36)"},null),createVNode("g",{opacity:".6","stroke-linecap":"round","stroke-width":"7"},[createVNode("path",{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+prefix+"3)",transform:"translate(43 36)"},null),createVNode("path",{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+prefix+"3)",transform:"translate(43 36)"},null),createVNode("path",{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#"+prefix+"4)",transform:"rotate(-180 76.483 42.257)"},null),createVNode("path",{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#"+prefix+"4)",transform:"rotate(-180 89.791 42.146)"},null)]),createVNode("g",{transform:"translate(31 105)","fill-rule":"nonzero"},[createVNode("rect",{fill:"url(#"+prefix+"5)",width:"98",height:"34",rx:"2"},null),createVNode("rect",{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"},null),createVNode("rect",{fill:"url(#"+prefix+"6)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"},null)])])]),_createNamespace59=createNamespace("empty"),_createNamespace60=_slicedToArray(_createNamespace59,2),name$7=_createNamespace60[0],bem$7=_createNamespace60[1],PRESET_IMAGES=["error","search","default"],_Empty=defineComponent({name:name$7,props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},setup:function(e,t){var n=t.slots,r=function(){if(n.image)return n.image();var t=e.image;return"network"===t?Network:(PRESET_IMAGES.includes(t)&&(t="https://img.yzcdn.cn/vant/empty-image-"+t+".png"),createVNode("img",{src:t},null))},i=function(){var t=n.description?n.description():e.description;if(t)return createVNode("p",{class:bem$7("description")},[t])},a=function(){if(n.default)return createVNode("div",{class:bem$7("bottom")},[n.default()])};return function(){return createVNode("div",{class:bem$7()},[createVNode("div",{class:bem$7("image"),style:getSizeStyle(e.imageSize)},[r()]),i(),a()])}}}),Empty$1=exports("K",withInstall(_Empty)),_createNamespace61=createNamespace("grid"),_createNamespace62=_slicedToArray(_createNamespace61,2),name$6=_createNamespace62[0],bem$6=_createNamespace62[1],GRID_KEY=Symbol(name$6),props$1={square:Boolean,center:truthProp,border:truthProp,gutter:[Number,String],reverse:Boolean,iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4}},_Grid=defineComponent({name:name$6,props:props$1,setup:function(e,t){var n=t.slots;return(0,useChildren(GRID_KEY).linkChildren)({props:e}),function(){return createVNode("div",{style:{paddingLeft:addUnit(e.gutter)},class:[bem$6(),_defineProperty2({},BORDER_TOP,e.border&&!e.gutter)]},[null==n.default?void 0:n.default()])}}}),Grid=exports("G",withInstall(_Grid)),_createNamespace63=createNamespace("grid-item"),_createNamespace64=_slicedToArray(_createNamespace63,2),name$5=_createNamespace64[0],bem$5=_createNamespace64[1],_GridItem=defineComponent({name:name$5,props:extend$2({},routeProps,{dot:Boolean,text:String,icon:String,badge:[Number,String],iconPrefix:String,iconColor:String}),setup:function(e,t){var n=t.slots,r=useParent(GRID_KEY),i=r.parent,a=r.index,o=useRoute();if(i){var s=computed((function(){var e=i.props,t=e.square,n=e.gutter,r=e.columnNum,o=100/+r+"%",s={flexBasis:o};if(t)s.paddingTop=o;else if(n){var l=addUnit(n);s.paddingRight=l,a.value>=r&&(s.marginTop=l)}return s})),l=computed((function(){var e=i.props,t=e.square,n=e.gutter;if(t&&n){var r=addUnit(n);return{right:r,bottom:r,height:"auto"}}}));return function(){var t=i.props,r=t.center,a=t.border,u=t.square,c=t.gutter,h=t.reverse,f=t.direction,d=t.clickable,p=[bem$5("content",[f,{center:r,square:u,reverse:h,clickable:d,surround:a&&c}]),_defineProperty2({},BORDER,a)];return createVNode("div",{class:[bem$5({square:u})],style:s.value},[createVNode("div",{role:d?"button":void 0,class:p,style:l.value,tabindex:d?0:void 0,onClick:o},[n.default?n.default():[n.icon?createVNode(Badge,{dot:e.dot,content:e.badge},{default:function(){return[n.icon()]}}):e.icon?createVNode(Icon,{dot:e.dot,name:e.icon,size:i.props.iconSize,badge:e.badge,class:bem$5("icon"),classPrefix:e.iconPrefix,color:e.iconColor},null):void 0,n.text?n.text():e.text?createVNode("span",{class:bem$5("text")},[e.text]):void 0]])])}}}}),GridItem=exports("e",withInstall(_GridItem)),_createNamespace65=createNamespace("list"),_createNamespace66=_slicedToArray(_createNamespace65,3),name$4=_createNamespace66[0],bem$4=_createNamespace66[1],t$1=_createNamespace66[2],_List=defineComponent({name:name$4,props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:truthProp,offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},emits:["load","update:error","update:loading"],setup:function(e,t){var n=t.emit,r=t.slots,i=ref(!1),a=ref(),o=ref(),s=useTabStatus(),l=useScrollParent(a),u=function(){nextTick((function(){if(!(i.value||e.finished||e.error||!1===(null==s?void 0:s.value))){var t=e.offset,r=e.direction,u=useRect(l);if(u.height&&!isHidden(a)){var c=useRect(o);("up"===r?u.top-c.top<=t:c.bottom-u.bottom<=t)&&(i.value=!0,n("update:loading",!0),n("load"))}}}))},c=function(){if(e.finished){var t=r.finished?r.finished():e.finishedText;if(t)return createVNode("div",{class:bem$4("finished-text")},[t])}},h=function(){n("update:error",!1),u()},f=function(){if(e.error){var t=r.error?r.error():e.errorText;if(t)return createVNode("div",{class:bem$4("error-text"),onClick:h},[t])}},d=function(){if(i.value&&!e.finished)return createVNode("div",{class:bem$4("loading")},[r.loading?r.loading():createVNode(Loading,{class:bem$4("loading-icon")},{default:function(){return[e.loadingText||t$1("loading")]}})])};return watch([function(){return e.loading},function(){return e.finished},function(){return e.error}],u),onUpdated((function(){i.value=e.loading})),onMounted((function(){e.immediateCheck&&u()})),useExpose({check:u}),useEventListener("scroll",u,{target:l}),function(){var t=null==r.default?void 0:r.default(),n=createVNode("div",{ref:o,class:bem$4("placeholder")},null);return createVNode("div",{ref:a,role:"feed",class:bem$4(),"aria-busy":i.value},["down"===e.direction?t:n,d(),c(),f(),"up"===e.direction?t:n])}}}),List$1=exports("ba",withInstall(_List)),_createNamespace67=createNamespace("notice-bar"),_createNamespace68=_slicedToArray(_createNamespace67,2),name$3=_createNamespace68[0],bem$3=_createNamespace68[1],_NoticeBar=defineComponent({name:name$3,props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:60}},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,{name:t,class:bem$3("right-icon"),onClick:c},null):void 0},f=function(){u.offset=a,u.duration=0,raf$2((function(){doubleRaf((function(){u.offset=-o,u.duration=(o+a)/+e.speed,r("replay")}))}))},d=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(d),onMountedOrActivated(d),useEventListener("pageshow",d),watch((function(){return[e.text,e.scrollable]}),d),function(){var t,n,r=e.color,a=e.wrapable,o=e.background;return withDirectives(createVNode("div",{role:"alert",class:bem$3({wrapable:a}),style:{color:r,background:o}},[i["left-icon"]?i["left-icon"]():e.leftIcon?createVNode(Icon,{class:bem$3("left-icon"),name:e.leftIcon},null):void 0,(t=!1===e.scrollable&&!e.wrapable,n={transform:u.offset?"translateX("+u.offset+"px)":"",transitionDuration:u.duration+"s"},createVNode("div",{ref:s,role:"marquee",class:bem$3("wrap")},[createVNode("div",{ref:l,style:n,class:[bem$3("content"),{"van-ellipsis":t}],onTransitionend:f},[i.default?i.default():e.text])])),h()]),[[vShow,u.show]])}}}),NoticeBar=exports("Q",withInstall(_NoticeBar));function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?getHTMLElementScroll(e):getWindowScroll(e)}function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isScrollParent(e){var t=getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),a=isHTMLElement(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(o=getNodeScroll(t)),isHTMLElement(t)?((s=getBoundingClientRect(t)).x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=getWindowScrollBarX(r))),{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=getWindow(r),o=i?[a].concat(a.visualViewport||[],isScrollParent(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(listScrollParents(getParentNode(o)))}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle(n).position)?t:n||getContainingBlock(e)||t}var top$2="top",bottom$1="bottom",right="right",left="left",auto="auto",basePlacements=[top$2,bottom$1,right,left],start$3="start",end="end",placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start$3,t+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function order(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function debounce(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function getBasePlacement(e){return e.split("-")[0]}function mergeByName(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var round=Math.round;function getVariation(e){return e.split("-")[1]}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?getBasePlacement(i):null,o=i?getVariation(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case top$2:t={x:s,y:n.y-r.height};break;case bottom$1:t={x:s,y:n.y+n.height};break;case right:t={x:n.x+n.width,y:l};break;case left:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?getMainAxisFromPlacement(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case start$3:t[u]=t[u]-(n[c]/2-r[c]/2);break;case end:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function popperGenerator(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?DEFAULT_OPTIONS:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:i,setOptions:function(n){u(),i.options=Object.assign({},a,i.options,n),i.scrollParents={reference:isElement(e)?listScrollParents(e):e.contextElement?listScrollParents(e.contextElement):[],popper:listScrollParents(t)};var s=orderModifiers(mergeByName([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"==typeof a){var s=a({state:i,name:t,instance:l,options:r}),u=function(){};o.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(areValidElements(t,n)){i.rects={reference:getCompositeRect(t,getOffsetParent(n),"fixed"===i.options.strategy),popper:getLayoutRect(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,u=a.options,c=void 0===u?{}:u,h=a.name;"function"==typeof o&&(i=o({state:i,options:c,name:h,instance:l})||i)}else i.reset=!1,r=-1}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!areValidElements(e,t))return l;function u(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var passive={passive:!0};function effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=getWindow(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,passive)})),s&&l.addEventListener("resize",n.update,passive),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,passive)})),s&&l.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect,data:{}};function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}},unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:round(round(t*r)/r)||0,y:round(round(n*r)/r)||0}}function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,c=!0===u?roundOffsetsByDPR(a):"function"==typeof u?u(a):a,h=c.x,f=void 0===h?0:h,d=c.y,p=void 0===d?0:d,m=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),v=left,y=top$2,b=window;if(l){var S=getOffsetParent(n),x="clientHeight",w="clientWidth";S===getWindow(n)&&"static"!==getComputedStyle(S=getDocumentElement(n)).position&&(x="scrollHeight",w="scrollWidth"),i===top$2&&(y=bottom$1,p-=S[x]-r.height,p*=s?1:-1),i===left&&(v=right,f-=S[w]-r.width,f*=s?1:-1)}var _,k=Object.assign({position:o},l&&unsetSides);return s?Object.assign({},k,((_={})[y]=g?"0":"",_[v]=m?"0":"",_.transform=(b.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",_)):Object.assign({},k,((t={})[y]=g?p+"px":"",t[v]=m?f+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))}function effect$1(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$1,requires:["computeStyles"]},defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper=popperGenerator({defaultModifiers:defaultModifiers});function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[left,top$2].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[left,right].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=placements.reduce((function(e,n){return e[n]=distanceAndSkiddingToXY(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset},_createNamespace69=createNamespace("popover"),_createNamespace70=_slicedToArray(_createNamespace69,2),name$2=_createNamespace70[0],bem$2=_createNamespace70[1],popupProps=["show","overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],_Popover=defineComponent({name:name$2,props:{show:Boolean,overlay:Boolean,duration:[Number,String],iconPrefix:String,overlayClass:unknownProp,overlayStyle:Object,closeOnClickAction:truthProp,closeOnClickOverlay:truthProp,closeOnClickOutside:truthProp,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},trigger:{type:String,default:"click"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},teleport:{type:[String,Object],default:"body"}},emits:["select","touchstart","update:show"],setup:function(e,t){var n,r=t.emit,i=t.slots,a=t.attrs,o=ref(),s=ref(),l=function(){nextTick((function(){e.show&&(n?n.setOptions({placement:e.placement}):n=createPopper(o.value,s.value.popupRef.value,{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},extend$2({},offset$1,{options:{offset:e.offset}})]}))}))},u=function(e){return r("update:show",e)},c=function(){"click"===e.trigger&&u(!e.show)},h=function(e){e.stopPropagation(),r("touchstart",e)},f=function(t,n){var i=t.icon,a=t.text,o=t.color,s=t.disabled,l=t.className;return createVNode("div",{role:"menuitem",class:[bem$2("action",{disabled:s,"with-icon":i}),l],style:{color:o},onClick:function(){return function(t,n){t.disabled||(r("select",t,n),e.closeOnClickAction&&u(!1))}(t,n)}},[i&&createVNode(Icon,{name:i,classPrefix:e.iconPrefix,class:bem$2("action-icon")},null),createVNode("div",{class:[bem$2("action-text"),BORDER_BOTTOM]},[a])])};return onMounted(l),onBeforeUnmount((function(){n&&(n.destroy(),n=null)})),watch((function(){return[e.show,e.placement]}),l),useClickAway(o,(function(){!e.closeOnClickOutside||e.overlay&&!e.closeOnClickOverlay||u(!1)}),{eventName:"touchstart"}),function(){return createVNode(Fragment,null,[createVNode("span",{ref:o,class:bem$2("wrapper"),onClick:c},[null==i.reference?void 0:i.reference()]),createVNode(Popup,mergeProps({ref:s,class:bem$2([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,onTouchstart:h},a,pick(e,popupProps),{"onUpdate:show":u}),{default:function(){return[createVNode("div",{class:bem$2("arrow")},null),createVNode("div",{role:"menu",class:bem$2("content")},[i.default?i.default():e.actions.map(f)])]}})])}}}),Popover=exports("aK",withInstall(_Popover)),Row=withInstall(_Row),_createNamespace71=createNamespace("skeleton"),_createNamespace72=_slicedToArray(_createNamespace71,2),name$1=_createNamespace72[0],bem$1=_createNamespace72[1],DEFAULT_ROW_WIDTH="100%",DEFAULT_LAST_ROW_WIDTH="60%",_Skeleton=defineComponent({name:name$1,props:{title:Boolean,round:Boolean,avatar:Boolean,loading:truthProp,animate:truthProp,avatarSize:[Number,String],titleWidth:[Number,String],row:{type:[Number,String],default:0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:DEFAULT_ROW_WIDTH}},setup:function(e,t){var n=t.slots,r=function(){if(e.avatar)return createVNode("div",{class:bem$1("avatar",e.avatarShape),style:getSizeStyle(e.avatarSize)},null)},i=function(){if(e.title)return createVNode("h3",{class:bem$1("title"),style:{width:addUnit(e.titleWidth)}},null)},a=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(){return e.loading?createVNode("div",{class:bem$1({animate:e.animate,round:e.round})},[r(),createVNode("div",{class:bem$1("content")},[i(),Array(e.row).fill("").map((function(e,t){return createVNode("div",{class:bem$1("row"),style:{width:addUnit(a(t))}},null)}))])]):null==n.default?void 0:n.default()}}}),Skeleton=exports("S",withInstall(_Skeleton)),_createNamespace73=createNamespace("slider"),_createNamespace74=_slicedToArray(_createNamespace73,2),name=_createNamespace74[0],bem=_createNamespace74[1],_Slider=defineComponent({name:name,props:{range:Boolean,disabled:Boolean,readonly:Boolean,vertical:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup:function(e,t){var n,r,i,a=t.emit,o=t.slots,s=ref(),l=ref(),u=useTouch(),c=computed((function(){return Number(e.max)-Number(e.min)})),h=computed((function(){var t=e.vertical?"width":"height";return _defineProperty2({background:e.inactiveColor},t,addUnit(e.barHeight))})),f=function(t){return!!e.range&&Array.isArray(t)},d=function(){var t=e.modelValue,n=e.min;return f(t)?100*(t[0]-Number(n))/c.value+"%":"0%"},p=computed((function(){var t,n,r;return _defineProperty2(t={},e.vertical?"height":"width",(n=e.modelValue,r=e.min,f(n)?100*(n[1]-n[0])/c.value+"%":100*(n-Number(r))/c.value+"%")),_defineProperty2(t,"left",e.vertical?void 0:d()),_defineProperty2(t,"top",e.vertical?d():void 0),_defineProperty2(t,"background",e.activeColor),_defineProperty2(t,"transition",l.value?"none":void 0),t})),m=function(t){var n=+e.min,r=+e.max,i=+e.step;return t=clamp(t,n,r),addNumber(n,Math.round((t-n)/i)*i)},g=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},v=function(t,n){t=f(t)?function(e){return e[0]>e[1]?e.slice(0).reverse():e}(t).map(m):m(t),g(t,e.modelValue)||a("update:modelValue",t),n&&!g(t,r)&&a("change",t)},y=function(t){if(t.stopPropagation(),!e.disabled&&!e.readonly){var n=e.min,r=e.vertical,i=e.modelValue,a=useRect(s),o=r?t.clientY-a.top:t.clientX-a.left,l=r?a.height:a.width,u=Number(n)+o/l*c.value;if(f(i)){var h=_slicedToArray(i,2),d=h[0],p=h[1];v(u<=(d+p)/2?[u,p]:[d,u],!0)}else v(u,!0)}},b=function(t){e.disabled||e.readonly||(u.start(t),i=e.modelValue,r=f(i)?i.map(m):m(i),l.value="start")},S=function(t){if(!e.disabled&&!e.readonly){"start"===l.value&&a("drag-start"),preventDefault(t,!0),u.move(t),l.value="draging";var o=useRect(s),h=(e.vertical?u.deltaY.value:u.deltaX.value)/(e.vertical?o.height:o.width)*c.value;f(r)?i[n]=r[n]+h:i=r+h,v(i)}},x=function(){e.disabled||e.readonly||("draging"===l.value&&(v(i,!0),a("drag-end")),l.value="")},w=function(t){var r="number"==typeof t?e.modelValue[t]:e.modelValue;return createVNode("div",{role:"slider",class:bem(function(){if("number"==typeof t){return"button-wrapper-"+["left","right"][t]}return"button-wrapper"}()),tabindex:e.disabled||e.readonly?-1:0,"aria-valuemin":+e.min,"aria-valuenow":r,"aria-valuemax":+e.max,"aria-orientation":e.vertical?"vertical":"horizontal",onTouchstart:function(e){"number"==typeof t&&(n=t),b(e)},onTouchmove:S,onTouchend:x,onTouchcancel:x,onClick:stopPropagation},[o.button?o.button():createVNode("div",{class:bem("button"),style:getSizeStyle(e.buttonSize)},null)])};return v(e.modelValue),useLinkField((function(){return e.modelValue})),function(){return createVNode("div",{ref:s,style:h.value,class:bem({vertical:e.vertical,disabled:e.disabled}),onClick:y},[createVNode("div",{class:bem("bar"),style:p.value},[e.range?[w(0),w(1)]:w()])])}}}),Slider=withInstall(_Slider),lodash$1=exports("by",{exports:{}});
  2. /**
  3. * @license
  4. * Lodash <https://lodash.com/>
  5. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  6. * Released under MIT license <https://lodash.com/license>
  7. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  8. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  9. */
  10. !function(t,n){(function(){var r,i="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,l=32,u=64,c=128,h=256,f=1/0,d=9007199254740991,p=NaN,m=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",u],["rearg",h]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",S="[object Date]",x="[object Error]",w="[object Function]",_="[object GeneratorFunction]",k="[object Map]",A="[object Number]",E="[object Object]",C="[object Promise]",P="[object RegExp]",T="[object Set]",M="[object String]",I="[object Symbol]",R="[object WeakMap]",N="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",V="[object Int32Array]",G="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",j=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,Q=RegExp(X.source),K=RegExp(Y.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.source),ae=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Me="[\\ud800-\\udfff]",Ie="["+Pe+"]",Re="["+_e+"]",Ne="\\d+",Le="[\\u2700-\\u27bf]",De="["+Ae+"]",Be="[^\\ud800-\\udfff"+Pe+Ne+ke+Ae+Ee+"]",Fe="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ee+"]",Ue="(?:"+De+"|"+Be+")",He="(?:"+ze+"|"+Be+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Re+"|"+Fe+")"+"?",Xe="[\\ufe0e\\ufe0f]?",Ye=Xe+qe+("(?:\\u200d(?:"+[Oe,Ve,Ge].join("|")+")"+Xe+qe+")*"),Qe="(?:"+[Le,Ve,Ge].join("|")+")"+Ye,Ke="(?:"+[Oe+Re+"?",Re,Ve,Ge,Me].join("|")+")",Ze=RegExp(Te,"g"),Je=RegExp(Re,"g"),$e=RegExp(Fe+"(?="+Fe+")|"+Ke+Ye,"g"),et=RegExp([ze+"?"+De+"+"+je+"(?="+[Ie,ze,"$"].join("|")+")",He+"+"+We+"(?="+[Ie,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+je,ze+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Qe].join("|"),"g"),tt=RegExp("[\\u200d\\ud800-\\udfff"+_e+Ce+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[D]=at[B]=at[F]=at[O]=at[V]=at[G]=at[z]=at[U]=at[H]=!0,at[v]=at[y]=at[N]=at[b]=at[L]=at[S]=at[x]=at[w]=at[k]=at[A]=at[E]=at[P]=at[T]=at[M]=at[R]=!1;var ot={};ot[v]=ot[y]=ot[N]=ot[L]=ot[b]=ot[S]=ot[D]=ot[B]=ot[F]=ot[O]=ot[V]=ot[k]=ot[A]=ot[E]=ot[P]=ot[T]=ot[M]=ot[I]=ot[G]=ot[z]=ot[U]=ot[H]=!0,ot[x]=ot[w]=ot[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,ct="object"==_typeof3(commonjsGlobal$2)&&commonjsGlobal$2&&commonjsGlobal$2.Object===Object&&commonjsGlobal$2,ht="object"==("undefined"==typeof self?"undefined":_typeof3(self))&&self&&self.Object===Object&&self,ft=ct||ht||Function("return this")(),dt=n&&!n.nodeType&&n,pt=dt&&t&&!t.nodeType&&t,mt=pt&&pt.exports===dt,gt=mt&&ct.process,vt=function(){try{var t=pt&&pt.require&&pt.require("util").types;return t||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),yt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,St=vt&&vt.isMap,xt=vt&&vt.isRegExp,wt=vt&&vt.isSet,_t=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Mt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=jt("length");function Ot(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Vt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Ut,n)}function zt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:p}function jt(e){return function(t){return null==t?r:t[e]}}function Wt(e){return function(t){return null==e?r:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Xt(e,t){for(var n,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,pn(e)+1).replace(ae,""):e}function Kt(e){return function(t){return e(t)}}function Zt(e,t){return Rt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function $t(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var nn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+st[e]}function on(e){return tt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return on(e)?function(e){var t=$e.lastIndex=0;for(;$e.test(e);)++t;return t}(e):Ft(e)}function dn(e){return on(e)?function(e){return e.match($e)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var mn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function t(n){var oe=(n=null==n?ft:gn.defaults(ft.Object(),n,gn.pick(ft,rt))).Array,_e=n.Date,ke=n.Error,Ae=n.Function,Ee=n.Math,Ce=n.Object,Pe=n.RegExp,Te=n.String,Me=n.TypeError,Ie=oe.prototype,Re=Ae.prototype,Ne=Ce.prototype,Le=n["__core-js_shared__"],De=Re.toString,Be=Ne.hasOwnProperty,Fe=0,Oe=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ve=Ne.toString,Ge=De.call(Ce),ze=ft._,Ue=Pe("^"+De.call(Be).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=mt?n.Buffer:r,je=n.Symbol,We=n.Uint8Array,qe=He?He.allocUnsafe:r,Xe=ln(Ce.getPrototypeOf,Ce),Ye=Ce.create,Qe=Ne.propertyIsEnumerable,Ke=Ie.splice,$e=je?je.isConcatSpreadable:r,tt=je?je.iterator:r,st=je?je.toStringTag:r,ct=function(){try{var t=da(Ce,"defineProperty");return t({},"",{}),t}catch(e){}}(),ht=n.clearTimeout!==ft.clearTimeout&&n.clearTimeout,dt=_e&&_e.now!==ft.Date.now&&_e.now,pt=n.setTimeout!==ft.setTimeout&&n.setTimeout,gt=Ee.ceil,vt=Ee.floor,Ft=Ce.getOwnPropertySymbols,Wt=He?He.isBuffer:r,vn=n.isFinite,yn=Ie.join,bn=ln(Ce.keys,Ce),Sn=Ee.max,xn=Ee.min,wn=_e.now,_n=n.parseInt,kn=Ee.random,An=Ie.reverse,En=da(n,"DataView"),Cn=da(n,"Map"),Pn=da(n,"Promise"),Tn=da(n,"Set"),Mn=da(n,"WeakMap"),In=da(Ce,"create"),Rn=Mn&&new Mn,Nn={},Ln=Ga(En),Dn=Ga(Cn),Bn=Ga(Pn),Fn=Ga(Tn),On=Ga(Mn),Vn=je?je.prototype:r,Gn=Vn?Vn.valueOf:r,zn=Vn?Vn.toString:r;function Un(e){if(is(e)&&!Xo(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Be.call(e,"__wrapped__"))return za(e)}return new Wn(e)}var Hn=function(){function e(){}return function(t){if(!rs(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function jn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Jn(e,t){var n=Xo(e),r=!n&&qo(e),i=!n&&!r&&Zo(e),a=!n&&!r&&!i&&fs(e),o=n||r||i||a,s=o?Yt(e.length,Te):[],l=s.length;for(var u in e)!t&&!Be.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Sa(u,l))||s.push(u);return s}function $n(e){var t=e.length;return t?e[Kr(0,t-1)]:r}function er(e,t){return Fa(Ii(e),ur(t,0,e.length))}function tr(e){return Fa(Ii(e))}function nr(e,t,n){(n!==r&&!Ho(e[t],n)||n===r&&!(t in e))&&sr(e,t,n)}function rr(e,t,n){var i=e[t];Be.call(e,t)&&Ho(i,n)&&(n!==r||t in e)||sr(e,t,n)}function ir(e,t){for(var n=e.length;n--;)if(Ho(e[n][0],t))return n;return-1}function ar(e,t,n,r){return pr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function or(e,t){return e&&Ri(t,Ls(t),e)}function sr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var n=-1,i=t.length,a=oe(i),o=null==e;++n<i;)a[n]=o?r:Ts(e,t[n]);return a}function ur(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function cr(e,t,n,i,a,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=a?n(e,i,a,o):n(e)),s!==r)return s;if(!rs(e))return e;var h=Xo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ii(e,s)}else{var f=ga(e),d=f==w||f==_;if(Zo(e))return Ai(e,l);if(f==E||f==v||d&&!a){if(s=u||d?{}:ya(e),!l)return u?function(e,t){return Ri(e,ma(e),t)}(e,function(e,t){return e&&Ri(t,Ds(t),e)}(s,e)):function(e,t){return Ri(e,pa(e),t)}(e,or(s,e))}else{if(!ot[f])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case N:return Ei(e);case b:case S:return new r(+e);case L:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case B:case F:case O:case V:case G:case z:case U:case H:return Ci(e,n);case k:return new r;case A:case M:return new r(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case I:return i=e,Gn?Ce(Gn.call(i)):{}}var i}(e,f,l)}}o||(o=new Zn);var p=o.get(e);if(p)return p;o.set(e,s),us(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,o))})):as(e)&&e.forEach((function(r,i){s.set(i,cr(r,t,n,i,e,o))}));var m=h?r:(c?u?oa:aa:u?Ds:Ls)(e);return Et(m||e,(function(r,i){m&&(r=e[i=r]),rr(s,i,cr(r,t,n,i,e,o))})),s}function hr(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ce(e);i--;){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Me(i);return Na((function(){e.apply(r,n)}),t)}function dr(e,t,n,r){var i=-1,a=Mt,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Rt(t,Kt(n))),r?(a=It,o=!1):t.length>=200&&(a=Jt,o=!1,t=new Kn(t));e:for(;++i<s;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,o&&h==h){for(var f=u;f--;)if(t[f]===h)continue e;l.push(c)}else a(t,h,r)||l.push(c)}return l}Un.templateSettings={escape:Z,evaluate:J,interpolate:$,variable:"",imports:{_:Un}},Un.prototype=jn.prototype,Un.prototype.constructor=Un,Wn.prototype=Hn(jn.prototype),Wn.prototype.constructor=Wn,qn.prototype=Hn(jn.prototype),qn.prototype.constructor=qn,Xn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Xn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Xn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===a?r:n}return Be.call(t,e)?t[e]:r},Xn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==r:Be.call(t,e)},Xn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===r?a:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=ir(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=ir(t,e);return n<0?r:t[n][1]},Yn.prototype.has=function(e){return ir(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Xn,map:new(Cn||Yn),string:new Xn}},Qn.prototype.delete=function(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return ha(this,e).get(e)},Qn.prototype.has=function(e){return ha(this,e).has(e)},Qn.prototype.set=function(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var pr=Di(wr),mr=Di(_r,!0);function gr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===r?s==s&&!hs(s):n(s,l)))var l=s,u=o}return u}function yr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function br(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=ba),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?br(s,t-1,n,r,i):Nt(i,s):r||(i[i.length]=s)}return i}var Sr=Bi(),xr=Bi(!0);function wr(e,t){return e&&Sr(e,t,Ls)}function _r(e,t){return e&&xr(e,t,Ls)}function kr(e,t){return Tt(t,(function(t){return es(e[t])}))}function Ar(e,t){for(var n=0,i=(t=xi(t,e)).length;null!=e&&n<i;)e=e[Va(t[n++])];return n&&n==i?e:r}function Er(e,t,n){var r=t(e);return Xo(e)?r:Nt(r,n(e))}function Cr(t){return null==t?t===r?"[object Undefined]":"[object Null]":st&&st in Ce(t)?function(t){var n=Be.call(t,st),i=t[st];try{t[st]=r;var a=!0}catch(e){}var o=Ve.call(t);a&&(n?t[st]=i:delete t[st]);return o}(t):function(e){return Ve.call(e)}(t)}function Pr(e,t){return e>t}function Tr(e,t){return null!=e&&Be.call(e,t)}function Mr(e,t){return null!=e&&t in Ce(e)}function Ir(e,t,n){for(var i=n?It:Mt,a=e[0].length,o=e.length,s=o,l=oe(o),u=1/0,c=[];s--;){var h=e[s];s&&t&&(h=Rt(h,Kt(t))),u=xn(h.length,u),l[s]=!n&&(t||a>=120&&h.length>=120)?new Kn(s&&h):r}h=e[0];var f=-1,d=l[0];e:for(;++f<a&&c.length<u;){var p=h[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(d?Jt(d,m):i(c,m,n))){for(s=o;--s;){var g=l[s];if(!(g?Jt(g,m):i(e[s],m,n)))continue e}d&&d.push(m),c.push(p)}}return c}function Rr(e,t,n){var i=null==(e=Ta(e,t=xi(t,e)))?e:e[Va(Ja(t))];return null==i?r:kt(i,e,n)}function Nr(e){return is(e)&&Cr(e)==v}function Lr(e,t,n,i,a){return e===t||(null==e||null==t||!is(e)&&!is(t)?e!=e&&t!=t:function(e,t,n,i,a,o){var s=Xo(e),l=Xo(t),u=s?y:ga(e),c=l?y:ga(t),h=(u=u==v?E:u)==E,f=(c=c==v?E:c)==E,d=u==c;if(d&&Zo(e)){if(!Zo(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Zn),s||fs(e)?ra(e,t,n,i,a,o):function(e,t,n,r,i,a,o){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case S:case A:return Ho(+e,+t);case x:return e.name==t.name&&e.message==t.message;case P:case M:return e==t+"";case k:var s=sn;case T:var l=1&r;if(s||(s=cn),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=ra(s(e),s(t),r,i,a,o);return o.delete(e),c;case I:if(Gn)return Gn.call(e)==Gn.call(t)}return!1}(e,t,u,n,i,a,o);if(!(1&n)){var p=h&&Be.call(e,"__wrapped__"),m=f&&Be.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,w=m?t.value():t;return o||(o=new Zn),a(g,w,n,i,o)}}if(!d)return!1;return o||(o=new Zn),function(e,t,n,i,a,o){var s=1&n,l=aa(e),u=l.length,c=aa(t).length;if(u!=c&&!s)return!1;var h=u;for(;h--;){var f=l[h];if(!(s?f in t:Be.call(t,f)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);var g=s;for(;++h<u;){var v=e[f=l[h]],y=t[f];if(i)var b=s?i(y,v,f,t,e,o):i(v,y,f,e,t,o);if(!(b===r?v===y||a(v,y,n,i,o):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,i,a,o)}(e,t,n,i,Lr,a))}function Dr(e,t,n,i){var a=n.length,o=a,s=!i;if(null==e)return!o;for(e=Ce(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=n[a])[0],c=e[u],h=l[1];if(s&&l[2]){if(c===r&&!(u in e))return!1}else{var f=new Zn;if(i)var d=i(c,h,u,e,t,f);if(!(d===r?Lr(h,c,3,i,f):d))return!1}}return!0}function Br(e){return!(!rs(e)||(t=e,Oe&&Oe in t))&&(es(e)?Ue:ve).test(Ga(e));var t}function Fr(e){return"function"==typeof e?e:null==e?ol:"object"==_typeof3(e)?Xo(e)?Hr(e[0],e[1]):Ur(e):ml(e)}function Or(e){if(!Aa(e))return bn(e);var t=[];for(var n in Ce(e))Be.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Vr(e){if(!rs(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Aa(e),n=[];for(var r in e)("constructor"!=r||!t&&Be.call(e,r))&&n.push(r);return n}function Gr(e,t){return e<t}function zr(e,t){var n=-1,r=Qo(e)?oe(e.length):[];return pr(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function Ur(e){var t=fa(e);return 1==t.length&&t[0][2]?Ca(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Hr(e,t){return wa(e)&&Ea(t)?Ca(Va(e),t):function(n){var i=Ts(n,e);return i===r&&i===t?Ms(n,e):Lr(t,i,3)}}function jr(e,t,n,i,a){e!==t&&Sr(t,(function(o,s){if(a||(a=new Zn),rs(o))!function(e,t,n,i,a,o,s){var l=Ia(e,n),u=Ia(t,n),c=s.get(u);if(c)return void nr(e,n,c);var h=o?o(l,u,n+"",e,t,s):r,f=h===r;if(f){var d=Xo(u),p=!d&&Zo(u),m=!d&&!p&&fs(u);h=u,d||p||m?Xo(l)?h=l:Ko(l)?h=Ii(l):p?(f=!1,h=Ai(u,!0)):m?(f=!1,h=Ci(u,!0)):h=[]:ss(u)||qo(u)?(h=l,qo(l)?h=Ss(l):rs(l)&&!es(l)||(h=ya(u))):f=!1}f&&(s.set(u,h),a(h,u,i,o,s),s.delete(u));nr(e,n,h)}(e,t,s,n,jr,i,a);else{var l=i?i(Ia(e,s),o,s+"",e,t,a):r;l===r&&(l=o),nr(e,s,l)}}),Ds)}function Wr(e,t){var n=e.length;if(n)return Sa(t+=t<0?n:0,n)?e[t]:r}function qr(e,t,n){t=t.length?Rt(t,(function(e){return Xo(e)?function(t){return Ar(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=Rt(t,Kt(ca()));var i=zr(e,(function(e,n,i){var a=Rt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=Pi(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Xr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ar(e,o);n(s,o)&&ti(a,xi(o,e),s)}return a}function Yr(e,t,n,r){var i=r?zt:Gt,a=-1,o=t.length,s=e;for(e===t&&(t=Ii(t)),n&&(s=Rt(e,Kt(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Sa(i)?Ke.call(e,i,1):di(e,i)}}return e}function Kr(e,t){return e+vt(kn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return La(Pa(e,t,ol),e+"")}function $r(e){return $n(Hs(e))}function ei(e,t){var n=Hs(e);return Fa(n,ur(t,0,n.length))}function ti(e,t,n,i){if(!rs(e))return e;for(var a=-1,o=(t=xi(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var u=Va(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var h=l[u];(c=i?i(h,u,l):r)===r&&(c=rs(h)?h:Sa(t[a+1])?[]:{})}rr(l,u,c),l=l[u]}return e}var ni=Rn?function(e,t){return Rn.set(e,t),e}:ol,ri=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:rl(t),writable:!0})}:ol;function ii(e){return Fa(Hs(e))}function ai(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=oe(i);++r<i;)a[r]=e[r+t];return a}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!hs(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return li(e,t,ol,n)}function li(e,t,n,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,u=hs(t),c=t===r;a<o;){var h=vt((a+o)/2),f=n(e[h]),d=f!==r,p=null===f,m=f==f,g=hs(f);if(s)var v=i||m;else v=c?m&&(i||d):l?m&&d&&(i||!p):u?m&&d&&!p&&(i||!g):!p&&!g&&(i?f<=t:f<t);v?a=h+1:o=h}return xn(o,4294967294)}function ui(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Ho(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ci(e){return"number"==typeof e?e:hs(e)?p:+e}function hi(e){if("string"==typeof e)return e;if(Xo(e))return Rt(e,hi)+"";if(hs(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,i=Mt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=It;else if(a>=200){var u=t?null:Zi(e);if(u)return cn(u);o=!1,i=Jt,l=new Kn}else l=t?[]:s;e:for(;++r<a;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var f=l.length;f--;)if(l[f]===h)continue e;t&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}function di(e,t){return null==(e=Ta(e,t=xi(t,e)))||delete e[Va(Ja(t))]}function pi(e,t,n,r){return ti(e,t,n(Ar(e,t)),r)}function mi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ai(e,r?0:a,r?a+1:i):ai(e,r?a+1:0,r?i:a)}function gi(e,t){var n=e;return n instanceof qn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function vi(e,t,n){var r=e.length;if(r<2)return r?fi(e[0]):[];for(var i=-1,a=oe(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=dr(a[i]||o,e[s],t,n));return fi(br(a,1),t,n)}function yi(e,t,n){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:r;n(s,e[i],l)}return s}function bi(e){return Ko(e)?e:[]}function Si(e){return"function"==typeof e?e:ol}function xi(e,t){return Xo(e)?e:wa(e,t)?[e]:Oa(xs(e))}var wi=Jr;function _i(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ai(e,t,n)}var ki=ht||function(e){return ft.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ci(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Pi(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,o=hs(e),s=t!==r,l=null===t,u=t==t,c=hs(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!u)return-1}return 0}function Ti(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,u=Sn(a-o,0),c=oe(l+u),h=!r;++s<l;)c[s]=t[s];for(;++i<o;)(h||i<a)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function Mi(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,u=t.length,c=Sn(a-s,0),h=oe(c+u),f=!r;++i<c;)h[i]=e[i];for(var d=i;++l<u;)h[d+l]=t[l];for(;++o<s;)(f||i<a)&&(h[d+n[o]]=e[i++]);return h}function Ii(e,t){var n=-1,r=e.length;for(t||(t=oe(r));++n<r;)t[n]=e[n];return t}function Ri(e,t,n,i){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),a?sr(n,l,u):rr(n,l,u)}return n}function Ni(e,t){return function(n,r){var i=Xo(n)?At:ar,a=t?t():{};return i(n,e,ca(r,2),a)}}function Li(e){return Jr((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(a--,o):r,s&&xa(n[0],n[1],s)&&(o=a<3?r:o,a=1),t=Ce(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t}))}function Di(e,t){return function(n,r){if(null==n)return n;if(!Qo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ce(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Bi(e){return function(t,n,r){for(var i=-1,a=Ce(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Fi(e){return function(t){var n=on(t=xs(t))?dn(t):r,i=n?n[0]:t.charAt(0),a=n?_i(n,1).join(""):t.slice(1);return i[e]()+a}}function Oi(e){return function(t){return Lt(el(qs(t).replace(Ze,"")),e,"")}}function Vi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return rs(r)?r:n}}function Gi(e){return function(t,n,i){var a=Ce(t);if(!Qo(t)){var o=ca(n,3);t=Ls(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function zi(e){return ia((function(t){var n=t.length,a=n,o=Wn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Me(i);if(o&&!l&&"wrapper"==la(s))var l=new Wn([],!0)}for(a=l?a:n;++a<n;){var u=la(s=t[a]),c="wrapper"==u?sa(s):r;l=c&&_a(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[la(c[0])].apply(l,c[3]):1==s.length&&_a(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Xo(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function Ui(e,t,n,i,a,o,s,l,u,h){var f=t&c,d=1&t,p=2&t,m=24&t,g=512&t,v=p?r:Vi(e);return function r(){for(var c=arguments.length,y=oe(c),b=c;b--;)y[b]=arguments[b];if(m)var S=ua(r),x=tn(y,S);if(i&&(y=Ti(y,i,a,m)),o&&(y=Mi(y,o,s,m)),c-=x,m&&c<h){var w=un(y,S);return Qi(e,t,Ui,r.placeholder,n,y,w,l,u,h-c)}var _=d?n:this,k=p?_[e]:e;return c=y.length,l?y=Ma(y,l):g&&c>1&&y.reverse(),f&&u<c&&(y.length=u),this&&this!==ft&&this instanceof r&&(k=v||Vi(k)),k.apply(_,y)}}function Hi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function ji(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=hi(n),i=hi(i)):(n=ci(n),i=ci(i)),a=e(n,i)}return a}}function Wi(e){return ia((function(t){return t=Rt(t,Kt(ca())),Jr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function qi(e,t){var n=(t=t===r?" ":hi(t)).length;if(n<2)return n?Zr(t,e):t;var i=Zr(t,gt(e/fn(t)));return on(t)?_i(dn(i),0,e).join(""):i.slice(0,e)}function Xi(e){return function(t,n,i){return i&&"number"!=typeof i&&xa(t,n,i)&&(n=i=r),t=gs(t),n===r?(n=t,t=0):n=gs(n),function(e,t,n,r){for(var i=-1,a=Sn(gt((t-e)/(n||1)),0),o=oe(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,n,i=i===r?t<n?1:-1:gs(i),e)}}function Yi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bs(t),n=bs(n)),e(t,n)}}function Qi(e,t,n,i,a,o,s,c,h,f){var d=8&t;t|=d?l:u,4&(t&=~(d?u:l))||(t&=-4);var p=[e,t,a,d?o:r,d?s:r,d?r:o,d?r:s,c,h,f],m=n.apply(r,p);return _a(e)&&Ra(m,p),m.placeholder=i,Da(m,e,t)}function Ki(e){var t=Ee[e];return function(e,n){if(e=bs(e),(n=null==n?0:xn(vs(n),292))&&vn(e)){var r=(xs(e)+"e").split("e");return+((r=(xs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Zi=Tn&&1/cn(new Tn([,-0]))[1]==f?function(e){return new Tn(e)}:hl;function Ji(e){return function(t){var n=ga(t);return n==k?sn(t):n==T?hn(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $i(e,t,n,a,f,d,p,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Me(i);var v=a?a.length:0;if(v||(t&=-97,a=f=r),p=p===r?p:Sn(vs(p),0),m=m===r?m:vs(m),v-=f?f.length:0,t&u){var y=a,b=f;a=f=r}var S=g?r:sa(e),x=[e,t,n,a,f,y,b,d,p,m];if(S&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==c&&8==n||r==c&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Ti(u,l,t[4]):l,e[4]=u?un(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Mi(u,l,t[6]):l,e[6]=u?un(e[5],o):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:xn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,S),e=x[0],t=x[1],n=x[2],a=x[3],f=x[4],!(m=x[9]=x[9]===r?g?0:e.length:Sn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==s?function(e,t,n){var i=Vi(e);return function a(){for(var o=arguments.length,s=oe(o),l=o,u=ua(a);l--;)s[l]=arguments[l];var c=o<3&&s[0]!==u&&s[o-1]!==u?[]:un(s,u);return(o-=c.length)<n?Qi(e,t,Ui,a.placeholder,r,s,c,r,r,n-o):kt(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,m):t!=l&&33!=t||f.length?Ui.apply(r,x):function(e,t,n,r){var i=1&t,a=Vi(e);return function t(){for(var o=-1,s=arguments.length,l=-1,u=r.length,c=oe(u+s),h=this&&this!==ft&&this instanceof t?a:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++o];return kt(h,i?n:this,c)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=Vi(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Da((S?ni:Ra)(w,x),e,t)}function ea(e,t,n,i){return e===r||Ho(e,Ne[n])&&!Be.call(i,n)?t:e}function ta(e,t,n,i,a,o){return rs(e)&&rs(t)&&(o.set(t,e),jr(e,t,r,ta,o),o.delete(t)),e}function na(e){return ss(e)?r:e}function ra(e,t,n,i,a,o){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),h=o.get(t);if(c&&h)return c==t&&h==e;var f=-1,d=!0,p=2&n?new Kn:r;for(o.set(e,t),o.set(t,e);++f<l;){var m=e[f],g=t[f];if(i)var v=s?i(g,m,f,t,e,o):i(m,g,f,e,t,o);if(v!==r){if(v)continue;d=!1;break}if(p){if(!Bt(t,(function(e,t){if(!Jt(p,t)&&(m===e||a(m,e,n,i,o)))return p.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ia(e){return La(Pa(e,r,Xa),e+"")}function aa(e){return Er(e,Ls,pa)}function oa(e){return Er(e,Ds,ma)}var sa=Rn?function(e){return Rn.get(e)}:hl;function la(e){for(var t=e.name+"",n=Nn[t],r=Be.call(Nn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function ua(e){return(Be.call(Un,"placeholder")?Un:e).placeholder}function ca(){var e=Un.iteratee||sl;return e=e===sl?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function ha(e,t){var n,r,i=e.__data__;return("string"==(r=_typeof3(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function fa(e){for(var t=Ls(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Ea(i)]}return t}function da(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Br(n)?n:r}var pa=Ft?function(e){return null==e?[]:(e=Ce(e),Tt(Ft(e),(function(t){return Qe.call(e,t)})))}:yl,ma=Ft?function(e){for(var t=[];e;)Nt(t,pa(e)),e=Xe(e);return t}:yl,ga=Cr;function va(e,t,n){for(var r=-1,i=(t=xi(t,e)).length,a=!1;++r<i;){var o=Va(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&ns(i)&&Sa(o,i)&&(Xo(e)||qo(e))}function ya(e){return"function"!=typeof e.constructor||Aa(e)?{}:Hn(Xe(e))}function ba(e){return Xo(e)||qo(e)||!!($e&&e&&e[$e])}function Sa(e,t){var n=_typeof3(e);return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function xa(e,t,n){if(!rs(n))return!1;var r=_typeof3(t);return!!("number"==r?Qo(n)&&Sa(t,n.length):"string"==r&&t in n)&&Ho(n[t],e)}function wa(e,t){if(Xo(e))return!1;var n=_typeof3(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!hs(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ce(t))}function _a(e){var t=la(e),n=Un[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=sa(n);return!!r&&e===r[0]}(En&&ga(new En(new ArrayBuffer(1)))!=L||Cn&&ga(new Cn)!=k||Pn&&ga(Pn.resolve())!=C||Tn&&ga(new Tn)!=T||Mn&&ga(new Mn)!=R)&&(ga=function(e){var t=Cr(e),n=t==E?e.constructor:r,i=n?Ga(n):"";if(i)switch(i){case Ln:return L;case Dn:return k;case Bn:return C;case Fn:return T;case On:return R}return t});var ka=Le?es:bl;function Aa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Ea(e){return e==e&&!rs(e)}function Ca(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ce(n)))}}function Pa(e,t,n){return t=Sn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Sn(r.length-t,0),o=oe(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=oe(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),kt(e,this,s)}}function Ta(e,t){return t.length<2?e:Ar(e,ai(t,0,-1))}function Ma(e,t){for(var n=e.length,i=xn(t.length,n),a=Ii(e);i--;){var o=t[i];e[i]=Sa(o,n)?a[o]:r}return e}function Ia(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ra=Ba(ni),Na=pt||function(e,t){return ft.setTimeout(e,t)},La=Ba(ri);function Da(e,t,n){var r=t+"";return La(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(r),n)))}function Ba(e){var t=0,n=0;return function(){var i=wn(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Fa(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var o=Kr(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Oa=function(e){var t=Fo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,i){t.push(r?i.replace(fe,"$1"):n||e)})),t}));function Va(e){if("string"==typeof e||hs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ga(t){if(null!=t){try{return De.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function za(e){if(e instanceof qn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Ii(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Jr((function(e,t){return Ko(e)?dr(e,br(t,1,Ko,!0)):[]})),Ha=Jr((function(e,t){var n=Ja(t);return Ko(n)&&(n=r),Ko(e)?dr(e,br(t,1,Ko,!0),ca(n,2)):[]})),ja=Jr((function(e,t){var n=Ja(t);return Ko(n)&&(n=r),Ko(e)?dr(e,br(t,1,Ko,!0),r,n):[]}));function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=Sn(r+i,0)),Vt(e,ca(t,3),i)}function qa(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=vs(n),a=n<0?Sn(i+a,0):xn(a,i-1)),Vt(e,ca(t,3),a,!0)}function Xa(e){return(null==e?0:e.length)?br(e,1):[]}function Ya(e){return e&&e.length?e[0]:r}var Qa=Jr((function(e){var t=Rt(e,bi);return t.length&&t[0]===e[0]?Ir(t):[]})),Ka=Jr((function(e){var t=Ja(e),n=Rt(e,bi);return t===Ja(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Ir(n,ca(t,2)):[]})),Za=Jr((function(e){var t=Ja(e),n=Rt(e,bi);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,r,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:r}var $a=Jr(eo);function eo(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var to=ia((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Qr(e,Rt(t,(function(e){return Sa(e,n)?+e:e})).sort(Pi)),r}));function no(e){return null==e?e:An.call(e)}var ro=Jr((function(e){return fi(br(e,1,Ko,!0))})),io=Jr((function(e){var t=Ja(e);return Ko(t)&&(t=r),fi(br(e,1,Ko,!0),ca(t,2))})),ao=Jr((function(e){var t=Ja(e);return t="function"==typeof t?t:r,fi(br(e,1,Ko,!0),r,t)}));function oo(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ko(e))return t=Sn(e.length,t),!0})),Yt(t,(function(t){return Rt(e,jt(t))}))}function so(e,t){if(!e||!e.length)return[];var n=oo(e);return null==t?n:Rt(n,(function(e){return kt(t,r,e)}))}var lo=Jr((function(e,t){return Ko(e)?dr(e,t):[]})),uo=Jr((function(e){return vi(Tt(e,Ko))})),co=Jr((function(e){var t=Ja(e);return Ko(t)&&(t=r),vi(Tt(e,Ko),ca(t,2))})),ho=Jr((function(e){var t=Ja(e);return t="function"==typeof t?t:r,vi(Tt(e,Ko),r,t)})),fo=Jr(oo);var po=Jr((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,so(e,n)}));function mo(e){var t=Un(e);return t.__chain__=!0,t}function go(e,t){return t(e)}var vo=ia((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof qn&&Sa(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:go,args:[a],thisArg:r}),new Wn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)}));var yo=Ni((function(e,t,n){Be.call(e,n)?++e[n]:sr(e,n,1)}));var bo=Gi(Wa),So=Gi(qa);function xo(e,t){return(Xo(e)?Et:pr)(e,ca(t,3))}function wo(e,t){return(Xo(e)?Ct:mr)(e,ca(t,3))}var _o=Ni((function(e,t,n){Be.call(e,n)?e[n].push(t):sr(e,n,[t])}));var ko=Jr((function(e,t,n){var r=-1,i="function"==typeof t,a=Qo(e)?oe(e.length):[];return pr(e,(function(e){a[++r]=i?kt(t,e,n):Rr(e,t,n)})),a})),Ao=Ni((function(e,t,n){sr(e,n,t)}));function Eo(e,t){return(Xo(e)?Rt:zr)(e,ca(t,3))}var Co=Ni((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Po=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xa(e,t[0],t[1])?t=[]:n>2&&xa(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,br(t,1),[])})),To=dt||function(){return ft.Date.now()};function Mo(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,$i(e,c,r,r,r,r,t)}function Io(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ro=Jr((function(e,t,n){var r=1;if(n.length){var i=un(n,ua(Ro));r|=l}return $i(e,r,t,n,i)})),No=Jr((function(e,t,n){var r=3;if(n.length){var i=un(n,ua(No));r|=l}return $i(t,r,e,n,i)}));function Lo(e,t,n){var a,o,s,l,u,c,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Me(i);function m(t){var n=a,i=o;return a=o=r,h=t,l=e.apply(i,n)}function g(e){return h=e,u=Na(y,t),f?m(e):l}function v(e){var n=e-c;return c===r||n>=t||n<0||d&&e-h>=s}function y(){var e=To();if(v(e))return b(e);u=Na(y,function(e){var n=t-(e-c);return d?xn(n,s-(e-h)):n}(e))}function b(e){return u=r,p&&a?m(e):(a=o=r,l)}function S(){var e=To(),n=v(e);if(a=arguments,o=this,c=e,n){if(u===r)return g(c);if(d)return ki(u),u=Na(y,t),m(c)}return u===r&&(u=Na(y,t)),l}return t=bs(t)||0,rs(n)&&(f=!!n.leading,s=(d="maxWait"in n)?Sn(bs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),S.cancel=function(){u!==r&&ki(u),h=0,a=c=o=u=r},S.flush=function(){return u===r?l:b(To())},S}var Do=Jr((function(e,t){return fr(e,1,t)})),Bo=Jr((function(e,t,n){return fr(e,bs(t)||0,n)}));function Fo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);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)||a,o};return n.cache=new(Fo.Cache||Qn),n}function Oo(e){if("function"!=typeof e)throw new Me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fo.Cache=Qn;var Vo=wi((function(e,t){var n=(t=1==t.length&&Xo(t[0])?Rt(t[0],Kt(ca())):Rt(br(t,1),Kt(ca()))).length;return Jr((function(r){for(var i=-1,a=xn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Go=Jr((function(e,t){var n=un(t,ua(Go));return $i(e,l,r,t,n)})),zo=Jr((function(e,t){var n=un(t,ua(zo));return $i(e,u,r,t,n)})),Uo=ia((function(e,t){return $i(e,h,r,r,r,t)}));function Ho(e,t){return e===t||e!=e&&t!=t}var jo=Yi(Pr),Wo=Yi((function(e,t){return e>=t})),qo=Nr(function(){return arguments}())?Nr:function(e){return is(e)&&Be.call(e,"callee")&&!Qe.call(e,"callee")},Xo=oe.isArray,Yo=yt?Kt(yt):function(e){return is(e)&&Cr(e)==N};function Qo(e){return null!=e&&ns(e.length)&&!es(e)}function Ko(e){return is(e)&&Qo(e)}var Zo=Wt||bl,Jo=bt?Kt(bt):function(e){return is(e)&&Cr(e)==S};function $o(e){if(!is(e))return!1;var t=Cr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ss(e)}function es(e){if(!rs(e))return!1;var t=Cr(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ts(e){return"number"==typeof e&&e==vs(e)}function ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function rs(e){var t=_typeof3(e);return null!=e&&("object"==t||"function"==t)}function is(e){return null!=e&&"object"==_typeof3(e)}var as=St?Kt(St):function(e){return is(e)&&ga(e)==k};function os(e){return"number"==typeof e||is(e)&&Cr(e)==A}function ss(e){if(!is(e)||Cr(e)!=E)return!1;var t=Xe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ge}var ls=xt?Kt(xt):function(e){return is(e)&&Cr(e)==P};var us=wt?Kt(wt):function(e){return is(e)&&ga(e)==T};function cs(e){return"string"==typeof e||!Xo(e)&&is(e)&&Cr(e)==M}function hs(e){return"symbol"==_typeof3(e)||is(e)&&Cr(e)==I}var fs=_t?Kt(_t):function(e){return is(e)&&ns(e.length)&&!!at[Cr(e)]};var ds=Yi(Gr),ps=Yi((function(e,t){return e<=t}));function ms(e){if(!e)return[];if(Qo(e))return cs(e)?dn(e):Ii(e);if(tt&&e[tt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tt]());var t=ga(e);return(t==k?sn:t==T?cn:Hs)(e)}function gs(e){return e?(e=bs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t==t?n?t-n:t:0}function ys(e){return e?ur(vs(e),0,m):0}function bs(e){if("number"==typeof e)return e;if(hs(e))return p;if(rs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=rs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):me.test(e)?p:+e}function Ss(e){return Ri(e,Ds(e))}function xs(e){return null==e?"":hi(e)}var ws=Li((function(e,t){if(Aa(t)||Qo(t))Ri(t,Ls(t),e);else for(var n in t)Be.call(t,n)&&rr(e,n,t[n])})),_s=Li((function(e,t){Ri(t,Ds(t),e)})),ks=Li((function(e,t,n,r){Ri(t,Ds(t),e,r)})),As=Li((function(e,t,n,r){Ri(t,Ls(t),e,r)})),Es=ia(lr);var Cs=Jr((function(e,t){e=Ce(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&xa(t[0],t[1],a)&&(i=1);++n<i;)for(var o=t[n],s=Ds(o),l=-1,u=s.length;++l<u;){var c=s[l],h=e[c];(h===r||Ho(h,Ne[c])&&!Be.call(e,c))&&(e[c]=o[c])}return e})),Ps=Jr((function(e){return e.push(r,ta),kt(Fs,r,e)}));function Ts(e,t,n){var i=null==e?r:Ar(e,t);return i===r?n:i}function Ms(e,t){return null!=e&&va(e,t,Mr)}var Is=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),rl(ol)),Rs=Hi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Be.call(e,t)?e[t].push(n):e[t]=[n]}),ca),Ns=Jr(Rr);function Ls(e){return Qo(e)?Jn(e):Or(e)}function Ds(e){return Qo(e)?Jn(e,!0):Vr(e)}var Bs=Li((function(e,t,n){jr(e,t,n)})),Fs=Li((function(e,t,n,r){jr(e,t,n,r)})),Os=ia((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=xi(t,e),r||(r=t.length>1),t})),Ri(e,oa(e),n),r&&(n=cr(n,7,na));for(var i=t.length;i--;)di(n,t[i]);return n}));var Vs=ia((function(e,t){return null==e?{}:function(e,t){return Xr(e,t,(function(t,n){return Ms(e,n)}))}(e,t)}));function Gs(e,t){if(null==e)return{};var n=Rt(oa(e),(function(e){return[e]}));return t=ca(t),Xr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Ji(Ls),Us=Ji(Ds);function Hs(e){return null==e?[]:Zt(e,Ls(e))}var js=Oi((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return $s(xs(e).toLowerCase())}function qs(e){return(e=xs(e))&&e.replace(Se,nn).replace(Je,"")}var Xs=Oi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ys=Oi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=Fi("toLowerCase");var Ks=Oi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Zs=Oi((function(e,t,n){return e+(n?" ":"")+$s(t)}));var Js=Oi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$s=Fi("toUpperCase");function el(e,t,n){return e=xs(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Jr((function(t,n){try{return kt(t,r,n)}catch(e){return $o(e)?e:new ke(e)}})),nl=ia((function(e,t){return Et(t,(function(t){t=Va(t),sr(e,t,Ro(e[t],e))})),e}));function rl(e){return function(){return e}}var il=zi(),al=zi(!0);function ol(e){return e}function sl(e){return Fr("function"==typeof e?e:cr(e,1))}var ll=Jr((function(e,t){return function(n){return Rr(n,e,t)}})),ul=Jr((function(e,t){return function(n){return Rr(e,n,t)}}));function cl(e,t,n){var r=Ls(t),i=kr(t,r);null!=n||rs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,Ls(t)));var a=!(rs(n)&&"chain"in n&&!n.chain),o=es(e);return Et(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Ii(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function hl(){}var fl=Wi(Rt),dl=Wi(Pt),pl=Wi(Bt);function ml(e){return wa(e)?jt(Va(e)):function(e){return function(t){return Ar(t,e)}}(e)}var gl=Xi(),vl=Xi(!0);function yl(){return[]}function bl(){return!1}var Sl=ji((function(e,t){return e+t}),0),xl=Ki("ceil"),wl=ji((function(e,t){return e/t}),1),_l=Ki("floor");var kl,Al=ji((function(e,t){return e*t}),1),El=Ki("round"),Cl=ji((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Mo,Un.assign=ws,Un.assignIn=_s,Un.assignInWith=ks,Un.assignWith=As,Un.at=Es,Un.before=Io,Un.bind=Ro,Un.bindAll=nl,Un.bindKey=No,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Xo(e)?e:[e]},Un.chain=mo,Un.chunk=function(e,t,n){t=(n?xa(e,t,n):t===r)?1:Sn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=oe(gt(i/t));a<i;)s[o++]=ai(e,a,a+=t);return s},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Xo(n)?Ii(n):[n],br(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=ca();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Me(i);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Ls(e);return function(n){return hr(n,e,t)}}(cr(e,1))},Un.constant=rl,Un.countBy=yo,Un.create=function(e,t){var n=Hn(e);return null==t?n:or(n,t)},Un.curry=function e(t,n,i){var a=$i(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Un.curryRight=function e(t,n,i){var a=$i(t,s,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Un.debounce=Lo,Un.defaults=Cs,Un.defaultsDeep=Ps,Un.defer=Do,Un.delay=Bo,Un.difference=Ua,Un.differenceBy=Ha,Un.differenceWith=ja,Un.drop=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,(t=n||t===r?1:vs(t))<0?0:t,i):[]},Un.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,0,(t=i-(t=n||t===r?1:vs(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?mi(e,ca(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?mi(e,ca(t,3),!0):[]},Un.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&xa(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=vs(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:vs(i))<0&&(i+=a),i=n>i?0:ys(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Un.filter=function(e,t){return(Xo(e)?Tt:yr)(e,ca(t,3))},Un.flatMap=function(e,t){return br(Eo(e,t),1)},Un.flatMapDeep=function(e,t){return br(Eo(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===r?1:vs(n),br(Eo(e,t),n)},Un.flatten=Xa,Un.flattenDeep=function(e){return(null==e?0:e.length)?br(e,f):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?br(e,t=t===r?1:vs(t)):[]},Un.flip=function(e){return $i(e,512)},Un.flow=il,Un.flowRight=al,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:kr(e,Ls(e))},Un.functionsIn=function(e){return null==e?[]:kr(e,Ds(e))},Un.groupBy=_o,Un.initial=function(e){return(null==e?0:e.length)?ai(e,0,-1):[]},Un.intersection=Qa,Un.intersectionBy=Ka,Un.intersectionWith=Za,Un.invert=Is,Un.invertBy=Rs,Un.invokeMap=ko,Un.iteratee=sl,Un.keyBy=Ao,Un.keys=Ls,Un.keysIn=Ds,Un.map=Eo,Un.mapKeys=function(e,t){var n={};return t=ca(t,3),wr(e,(function(e,r,i){sr(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=ca(t,3),wr(e,(function(e,r,i){sr(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(cr(e,1))},Un.matchesProperty=function(e,t){return Hr(e,cr(t,1))},Un.memoize=Fo,Un.merge=Bs,Un.mergeWith=Fs,Un.method=ll,Un.methodOf=ul,Un.mixin=cl,Un.negate=Oo,Un.nthArg=function(e){return e=vs(e),Jr((function(t){return Wr(t,e)}))},Un.omit=Os,Un.omitBy=function(e,t){return Gs(e,Oo(ca(t)))},Un.once=function(e){return Io(2,e)},Un.orderBy=function(e,t,n,i){return null==e?[]:(Xo(t)||(t=null==t?[]:[t]),Xo(n=i?r:n)||(n=null==n?[]:[n]),qr(e,t,n))},Un.over=fl,Un.overArgs=Vo,Un.overEvery=dl,Un.overSome=pl,Un.partial=Go,Un.partialRight=zo,Un.partition=Co,Un.pick=Vs,Un.pickBy=Gs,Un.property=ml,Un.propertyOf=function(e){return function(t){return null==e?r:Ar(e,t)}},Un.pull=$a,Un.pullAll=eo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ca(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,r,n):e},Un.pullAt=to,Un.range=gl,Un.rangeRight=vl,Un.rearg=Uo,Un.reject=function(e,t){return(Xo(e)?Tt:yr)(e,Oo(ca(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ca(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Qr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Me(i);return Jr(e,t=t===r?t:vs(t))},Un.reverse=no,Un.sampleSize=function(e,t,n){return t=(n?xa(e,t,n):t===r)?1:vs(t),(Xo(e)?er:ei)(e,t)},Un.set=function(e,t,n){return null==e?e:ti(e,t,n)},Un.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ti(e,t,n,i)},Un.shuffle=function(e){return(Xo(e)?tr:ii)(e)},Un.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xa(e,t,n)?(t=0,n=i):(t=null==t?0:vs(t),n=n===r?i:vs(n)),ai(e,t,n)):[]},Un.sortBy=Po,Un.sortedUniq=function(e){return e&&e.length?ui(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?ui(e,ca(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&xa(e,t,n)&&(t=n=r),(n=n===r?m:n>>>0)?(e=xs(e))&&("string"==typeof t||null!=t&&!ls(t))&&!(t=hi(t))&&on(e)?_i(dn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:Sn(vs(t),0),Jr((function(n){var r=n[t],i=_i(n,0,t);return r&&Nt(i,r),kt(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ai(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ai(e,0,(t=n||t===r?1:vs(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ai(e,(t=i-(t=n||t===r?1:vs(t)))<0?0:t,i):[]},Un.takeRightWhile=function(e,t){return e&&e.length?mi(e,ca(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?mi(e,ca(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Me(i);return rs(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Lo(e,t,{leading:r,maxWait:t,trailing:a})},Un.thru=go,Un.toArray=ms,Un.toPairs=zs,Un.toPairsIn=Us,Un.toPath=function(e){return Xo(e)?Rt(e,Va):hs(e)?[e]:Ii(Oa(xs(e)))},Un.toPlainObject=Ss,Un.transform=function(e,t,n){var r=Xo(e),i=r||Zo(e)||fs(e);if(t=ca(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:rs(e)&&es(a)?Hn(Xe(e)):{}}return(i?Et:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Mo(e,1)},Un.union=ro,Un.unionBy=io,Un.unionWith=ao,Un.uniq=function(e){return e&&e.length?fi(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fi(e,ca(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?fi(e,r,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=oo,Un.unzipWith=so,Un.update=function(e,t,n){return null==e?e:pi(e,t,Si(n))},Un.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:pi(e,t,Si(n),i)},Un.values=Hs,Un.valuesIn=function(e){return null==e?[]:Zt(e,Ds(e))},Un.without=lo,Un.words=el,Un.wrap=function(e,t){return Go(Si(t),e)},Un.xor=uo,Un.xorBy=co,Un.xorWith=ho,Un.zip=fo,Un.zipObject=function(e,t){return yi(e||[],t||[],rr)},Un.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Un.zipWith=po,Un.entries=zs,Un.entriesIn=Us,Un.extend=_s,Un.extendWith=ks,cl(Un,Un),Un.add=Sl,Un.attempt=tl,Un.camelCase=js,Un.capitalize=Ws,Un.ceil=xl,Un.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=bs(n))==n?n:0),t!==r&&(t=(t=bs(t))==t?t:0),ur(bs(e),t,n)},Un.clone=function(e){return cr(e,4)},Un.cloneDeep=function(e){return cr(e,5)},Un.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:r)},Un.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:r)},Un.conformsTo=function(e,t){return null==t||hr(e,t,Ls(t))},Un.deburr=qs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=wl,Un.endsWith=function(e,t,n){e=xs(e),t=hi(t);var i=e.length,a=n=n===r?i:ur(vs(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},Un.eq=Ho,Un.escape=function(e){return(e=xs(e))&&K.test(e)?e.replace(Y,rn):e},Un.escapeRegExp=function(e){return(e=xs(e))&&ie.test(e)?e.replace(re,"\\$&"):e},Un.every=function(e,t,n){var i=Xo(e)?Pt:gr;return n&&xa(e,t,n)&&(t=r),i(e,ca(t,3))},Un.find=bo,Un.findIndex=Wa,Un.findKey=function(e,t){return Ot(e,ca(t,3),wr)},Un.findLast=So,Un.findLastIndex=qa,Un.findLastKey=function(e,t){return Ot(e,ca(t,3),_r)},Un.floor=_l,Un.forEach=xo,Un.forEachRight=wo,Un.forIn=function(e,t){return null==e?e:Sr(e,ca(t,3),Ds)},Un.forInRight=function(e,t){return null==e?e:xr(e,ca(t,3),Ds)},Un.forOwn=function(e,t){return e&&wr(e,ca(t,3))},Un.forOwnRight=function(e,t){return e&&_r(e,ca(t,3))},Un.get=Ts,Un.gt=jo,Un.gte=Wo,Un.has=function(e,t){return null!=e&&va(e,t,Tr)},Un.hasIn=Ms,Un.head=Ya,Un.identity=ol,Un.includes=function(e,t,n,r){e=Qo(e)?e:Hs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=Sn(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=Sn(r+i,0)),Gt(e,t,i)},Un.inRange=function(e,t,n){return t=gs(t),n===r?(n=t,t=0):n=gs(n),function(e,t,n){return e>=xn(t,n)&&e<Sn(t,n)}(e=bs(e),t,n)},Un.invoke=Ns,Un.isArguments=qo,Un.isArray=Xo,Un.isArrayBuffer=Yo,Un.isArrayLike=Qo,Un.isArrayLikeObject=Ko,Un.isBoolean=function(e){return!0===e||!1===e||is(e)&&Cr(e)==b},Un.isBuffer=Zo,Un.isDate=Jo,Un.isElement=function(e){return is(e)&&1===e.nodeType&&!ss(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Qo(e)&&(Xo(e)||"string"==typeof e||"function"==typeof e.splice||Zo(e)||fs(e)||qo(e)))return!e.length;var t=ga(e);if(t==k||t==T)return!e.size;if(Aa(e))return!Or(e).length;for(var n in e)if(Be.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Lr(e,t)},Un.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Lr(e,t,r,n):!!i},Un.isError=$o,Un.isFinite=function(e){return"number"==typeof e&&vn(e)},Un.isFunction=es,Un.isInteger=ts,Un.isLength=ns,Un.isMap=as,Un.isMatch=function(e,t){return e===t||Dr(e,t,fa(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Dr(e,t,fa(t),n)},Un.isNaN=function(e){return os(e)&&e!=+e},Un.isNative=function(e){if(ka(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Br(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=os,Un.isObject=rs,Un.isObjectLike=is,Un.isPlainObject=ss,Un.isRegExp=ls,Un.isSafeInteger=function(e){return ts(e)&&e>=-9007199254740991&&e<=d},Un.isSet=us,Un.isString=cs,Un.isSymbol=hs,Un.isTypedArray=fs,Un.isUndefined=function(e){return e===r},Un.isWeakMap=function(e){return is(e)&&ga(e)==R},Un.isWeakSet=function(e){return is(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":yn.call(e,t)},Un.kebabCase=Xs,Un.last=Ja,Un.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=vs(n))<0?Sn(i+a,0):xn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Vt(e,Ut,a,!0)},Un.lowerCase=Ys,Un.lowerFirst=Qs,Un.lt=ds,Un.lte=ps,Un.max=function(e){return e&&e.length?vr(e,ol,Pr):r},Un.maxBy=function(e,t){return e&&e.length?vr(e,ca(t,2),Pr):r},Un.mean=function(e){return Ht(e,ol)},Un.meanBy=function(e,t){return Ht(e,ca(t,2))},Un.min=function(e){return e&&e.length?vr(e,ol,Gr):r},Un.minBy=function(e,t){return e&&e.length?vr(e,ca(t,2),Gr):r},Un.stubArray=yl,Un.stubFalse=bl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Al,Un.nth=function(e,t){return e&&e.length?Wr(e,vs(t)):r},Un.noConflict=function(){return ft._===this&&(ft._=ze),this},Un.noop=hl,Un.now=To,Un.pad=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(vt(i),n)+e+qi(gt(i),n)},Un.padEnd=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;return t&&r<t?e+qi(t-r,n):e},Un.padStart=function(e,t,n){e=xs(e);var r=(t=vs(t))?fn(e):0;return t&&r<t?qi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(xs(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xa(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=gs(e),t===r?(t=e,e=0):t=gs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=kn();return xn(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=Xo(e)?Lt:qt,i=arguments.length<3;return r(e,ca(t,4),n,i,pr)},Un.reduceRight=function(e,t,n){var r=Xo(e)?Dt:qt,i=arguments.length<3;return r(e,ca(t,4),n,i,mr)},Un.repeat=function(e,t,n){return t=(n?xa(e,t,n):t===r)?1:vs(t),Zr(xs(e),t)},Un.replace=function(){var e=arguments,t=xs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var i=-1,a=(t=xi(t,e)).length;for(a||(a=1,e=r);++i<a;){var o=null==e?r:e[Va(t[i])];o===r&&(i=a,o=n),e=es(o)?o.call(e):o}return e},Un.round=El,Un.runInContext=t,Un.sample=function(e){return(Xo(e)?$n:$r)(e)},Un.size=function(e){if(null==e)return 0;if(Qo(e))return cs(e)?fn(e):e.length;var t=ga(e);return t==k||t==T?e.size:Or(e).length},Un.snakeCase=Ks,Un.some=function(e,t,n){var i=Xo(e)?Bt:oi;return n&&xa(e,t,n)&&(t=r),i(e,ca(t,3))},Un.sortedIndex=function(e,t){return si(e,t)},Un.sortedIndexBy=function(e,t,n){return li(e,t,ca(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&Ho(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return si(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return li(e,t,ca(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(Ho(e[n],t))return n}return-1},Un.startCase=Zs,Un.startsWith=function(e,t,n){return e=xs(e),n=null==n?0:ur(vs(n),0,e.length),t=hi(t),e.slice(n,n+t.length)==t},Un.subtract=Cl,Un.sum=function(e){return e&&e.length?Xt(e,ol):0},Un.sumBy=function(e,t){return e&&e.length?Xt(e,ca(t,2)):0},Un.template=function(e,t,n){var i=Un.templateSettings;n&&xa(e,t,n)&&(t=r),e=xs(e),t=ks({},t,i,ea);var a,o,s=ks({},t.imports,i.imports,ea),l=Ls(s),u=Zt(s,l),c=0,h=t.interpolate||xe,f="__p += '",d=Pe((t.escape||xe).source+"|"+h.source+"|"+(h===$?de:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),p="//# sourceURL="+(Be.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(we,an),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Be.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(j,""):f).replace(W,"$1").replace(q,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=tl((function(){return Ae(l,p+"return "+f).apply(r,u)}));if(g.source=f,$o(g))throw g;return g},Un.times=function(e,t){if((e=vs(e))<1||e>d)return[];var n=m,r=xn(e,m);t=ca(t),e-=m;for(var i=Yt(r,t);++n<e;)t(n);return i},Un.toFinite=gs,Un.toInteger=vs,Un.toLength=ys,Un.toLower=function(e){return xs(e).toLowerCase()},Un.toNumber=bs,Un.toSafeInteger=function(e){return e?ur(vs(e),-9007199254740991,d):0===e?e:0},Un.toString=xs,Un.toUpper=function(e){return xs(e).toUpperCase()},Un.trim=function(e,t,n){if((e=xs(e))&&(n||t===r))return Qt(e);if(!e||!(t=hi(t)))return e;var i=dn(e),a=dn(t);return _i(i,$t(i,a),en(i,a)+1).join("")},Un.trimEnd=function(e,t,n){if((e=xs(e))&&(n||t===r))return e.slice(0,pn(e)+1);if(!e||!(t=hi(t)))return e;var i=dn(e);return _i(i,0,en(i,dn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=xs(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=hi(t)))return e;var i=dn(e);return _i(i,$t(i,dn(t))).join("")},Un.truncate=function(e,t){var n=30,i="...";if(rs(t)){var a="separator"in t?t.separator:a;n="length"in t?vs(t.length):n,i="omission"in t?hi(t.omission):i}var o=(e=xs(e)).length;if(on(e)){var s=dn(e);o=s.length}if(n>=o)return e;var l=n-fn(i);if(l<1)return i;var u=s?_i(s,0,l).join(""):e.slice(0,l);if(a===r)return u+i;if(s&&(l+=u.length-l),ls(a)){if(e.slice(l).search(a)){var c,h=u;for(a.global||(a=Pe(a.source,xs(pe.exec(a))+"g")),a.lastIndex=0;c=a.exec(h);)var f=c.index;u=u.slice(0,f===r?l:f)}}else if(e.indexOf(hi(a),l)!=l){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+i},Un.unescape=function(e){return(e=xs(e))&&Q.test(e)?e.replace(X,mn):e},Un.uniqueId=function(e){var t=++Fe;return xs(e)+t},Un.upperCase=Js,Un.upperFirst=$s,Un.each=xo,Un.eachRight=wo,Un.first=Ya,cl(Un,(kl={},wr(Un,(function(e,t){Be.call(Un.prototype,t)||(kl[t]=e)})),kl),{chain:!1}),Un.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Et(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===r?1:Sn(vs(n),0);var i=this.__filtered__&&!t?new qn(this):this.clone();return i.__filtered__?i.__takeCount__=xn(n,i.__takeCount__):i.__views__.push({size:xn(n,m),type:e+(i.__dir__<0?"Right":"")}),i},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ca(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ol)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Rr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Oo(ca(e)))},qn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(m)},wr(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Un[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof qn,u=s[0],c=l||Xo(t),h=function(e){var t=a.apply(Un,Nt([e],s));return i&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=l&&!d;if(!o&&c){t=m?t:new qn(this);var g=e.apply(t,s);return g.__actions__.push({func:go,args:[h],thisArg:r}),new Wn(g,f)}return p&&m?e.apply(this,s):(g=this.thru(h),p?i?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Xo(i)?i:[],e)}return this[n]((function(n){return t.apply(Xo(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Be.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Ui(r,2).name]=[{name:"wrapper",func:r}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Xo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=xn(t,e+o);break;case"takeRight":e=Sn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,h=c.length,f=0,d=xn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return gi(e,this.__actions__);var p=[];e:for(;l--&&f<d;){for(var m=-1,g=e[u+=t];++m<h;){var v=c[m],y=v.iteratee,b=v.type,S=y(g);if(2==b)g=S;else if(!S){if(1==b)continue e;break e}}p[f++]=g}return p},Un.prototype.at=vo,Un.prototype.chain=function(){return mo(this)},Un.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===r&&(this.__values__=ms(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var i=za(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:go,args:[no],thisArg:r}),new Wn(t,this.__chain__)}return this.thru(no)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,tt&&(Un.prototype[tt]=function(){return this}),Un}();pt?((pt.exports=gn)._=gn,dt._=gn):ft._=gn}).call(commonjsGlobal$2)}(lodash$1,lodash$1.exports);var SectionHint=function(){function e(){_classCallCheck2(this,e),this.currentNote=null,this.el=document.createElement("div"),this.span=document.createElement("span"),this.init()}return _createClass2(e,[{key:"init",value:function(){this.el.id="section-hint"+Math.floor(1e5*Math.random()),this.hide()}},{key:"showForElement",value:function(e){if(this.currentNote!==e){this.el||(this.el=document.createElement("div"),this.init(),this.show()),this.currentNote=e;var t=getBoundingBoxByverticalNote(e),n=document.querySelector("#osmdSvgPage1");if(t){var r,i=t.x,a=t.y,o=t.width,s=t.height;this.el.id="custom-cursor-bg-hint",this.el.style.position="absolute",this.el.style.top=formatZoom(a)+"px",this.el.style.left=formatZoom(i)+"px",this.el.style.width=formatZoom(o)+"px",this.el.style.height=formatZoom(s)+"px",this.el.style.zIndex="-1",null==n||null===(r=n.parentNode)||void 0===r||r.appendChild(this.el)}}}},{key:"hide",value:function(){this.el.style.display="none"}},{key:"show",value:function(){this.el.style.display=""}},{key:"destroy",value:function(){this.currentNote=null,this.hide()}}]),e}(),hasSymbol="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.toStringTag),PolySymbol=function(e){return hasSymbol?Symbol(e):"_vr_"+e},matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser="undefined"!=typeof window;
  11. /*!
  12. * vue-router v4.0.4
  13. * (c) 2021 Eduardo San Martin Morote
  14. * @license MIT
  15. */function isESModule(e){return e.__esModule||hasSymbol&&"Module"===e[Symbol.toStringTag]}var assign$1=Object.assign;function applyToParams(e,t){var n={};for(var r in t){var i=t[r];n[r]=Array.isArray(i)?i.map(e):e(i)}return n}var noop$2=function(){},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("#",s>-1?s:0);return s>-1&&(n=t.slice(0,s),i=e(a=t.slice(s+1,l>-1?l:t.length))),l>-1&&(n=n||t.slice(0,l),o=t.slice(l,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().indexOf(t.toLowerCase())?e:e.slice(t.length)||"/"}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 Array.isArray(e)?isEquivalentArray(e,t):Array.isArray(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return Array.isArray(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],1!==o&&"."!==r){if(".."!==r)break;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;if(e.indexOf("#")>-1){var a=i.slice(1);return"/"!==a[0]&&(a="/"+a),stripBase(a,"")}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$1({},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>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?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$1({},a.value,n.state,{forward:e,scroll:computeScrollPosition()});o(r.current,r,!0),o(e,assign$1({},buildState(i.value,e,null),{position:r.position+1},t),!1),i.value=e},replace:function(e,t){o(e,assign$1({},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$1({location:"",base:e,go:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t||n.pauseListeners(),history.go(e)},createHref:createHref.bind(null,e)},t,n);return Object.defineProperty(r,"location",{get:function(){return t.location.value}}),Object.defineProperty(r,"state",{get:function(){return t.state.value}}),r}function createWebHashHistory(e){return(e=location.host?e||location.pathname+location.search:"").indexOf("#")<0&&(e+="#"),createWebHistory(e)}function isRouteLocation(e){return"string"==typeof e||e&&"object"===_typeof3(e)}function isRouteName(e){return"string"==typeof e||"symbol"===_typeof3(e)}var START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf"),NavigationFailureType;function createRouterError(e,t){return assign$1(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$1({},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],f=40+(r.sensitive?.25:0);if(0===h.type)c||(a+="/"),a+=h.value.replace(REGEX_CHARS_RE,"\\$&"),f+=40;else if(1===h.type){var d=h.value,p=h.repeatable,m=h.optional,g=h.regexp;o.push({name:d,repeatable:p,optional:m});var v=g||BASE_PARAM_PATTERN;if(v!==BASE_PARAM_PATTERN){f+=10;try{new RegExp("(".concat(v,")"))}catch(x){throw new Error('Invalid custom RegExp for param "'.concat(d,'" (').concat(v,"): ")+x.message)}}var y=p?"((?:".concat(v,")(?:/(?:").concat(v,"))*)"):"(".concat(v,")");c||(y=m&&l.length<2?"(?:/".concat(y,")"):"/"+y),m&&(y+="?"),a+=y,f+=20,m&&(f+=-8),p&&(f+=-20),".*"===v&&(f+=-50)}u.push(f)}i.push(u)}}catch(x){s.e(x)}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 S=new RegExp(a,r.sensitive?"":"i");return{re:S,score:i,keys:o,parse:function(e){var t=e.match(S),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,f=u.optional,d=c in t?t[c]:"";if(Array.isArray(d)&&!h)throw new Error('Provided param "'.concat(c,'" is an array but it is not repeatable (* or + modifiers)'));var p=Array.isArray(d)?d.join("/"):d;if(!p){if(!f)throw new Error('Missing required param "'.concat(c,'"'));o.length<2&&(r.endsWith("/")?r=r.slice(0,-1):i=!0)}r+=p}}}catch(x){l.e(x)}finally{l.f()}}}catch(x){a.e(x)}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++}return i.length-r.length}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 f(){u+=s}for(;l<e.length;)if("\\"!==(s=e[l++])||2===r)switch(r){case 0:"/"===s?(u&&h(),o()):":"===s?(h(),r=1):f();break;case 4:f(),r=i;break;case 1:"("===s?r=2:VALID_PARAM_RE.test(s)?f():(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$1(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),f=[l];if("alias"in e){var d,p=_createForOfIteratorHelper("string"==typeof e.alias?[e.alias]:e.alias);try{for(p.s();!(d=p.n()).done;){var m=d.value;f.push(assign$1({},l,{components:r?r.record.components:l.components,path:m,aliasOf:r?r.record:l}))}}catch(k){p.e(k)}finally{p.f()}}for(var g=0,v=f;g<v.length;g++){var y=v[g],b=y.path;if(n&&"/"!==b[0]){var S=n.record.path,x="/"===S[S.length-1]?"":"/";y.path=n.record.path+(b&&x+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)),"children"in l)for(var w=l.children,_=0;_<w.length;_++)i(w[_],u,r&&r.children[_]);r=r||u,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;)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$1(paramsFromLocation(t.params,i.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}))),e.params),a=i.stringify(s)}else if("path"in e)a=e.path,i=n.find((function(e){return e.re.test(a)})),i&&(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)})),!i)throw createRouterError(1,{location:e,currentLocation:t});o=i.record.name,s=assign$1({},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||{}:{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$1(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}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 encodePath(e).replace(SLASH_RE,"%2F")}function decode$3(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$3(a<0?i:i.slice(0,a)),s=a<0?null:decode$3(i.slice(a+1));if(o in t){var l=t[o];Array.isArray(l)||(l=t[o]=[l]),l.push(s)}else t[o]=s}return t}function stringifyQuery(e){var t="";for(var n in e){t.length&&(t+="&");var r=e[n];if(n=encodeQueryKey(n),null!=r)for(var i=Array.isArray(r)?r.map((function(e){return e&&encodeQueryValue(e)})):[r&&encodeQueryValue(r)],a=0;a<i.length;a++)t+=(a?"&":"")+n,null!=i[a]&&(t+="="+i[a]);else void 0!==r&&(t+=n)}return t}function normalizeQuery(e){var t={};for(var n in e){var r=e[n];void 0!==r&&(t[n]=Array.isArray(r)?r.map((function(e){return null==e?null:""+e})):null==r?r:""+r)}return t}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();l=l.catch(console.error),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"===_typeof3(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(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return guardEvent(n)?t[unref(e.replace)?"replace":"push"](unref(e.to)):Promise.resolve()}}}var RouterLinkImpl=defineComponent({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},setup:function(e,t){var n=t.slots,r=t.attrs,i=reactive(useLink(e)),a=inject(routerKey).options,o=computed((function(){var t;return _defineProperty2(t={},getLinkClass(e.activeClass,a.linkActiveClass,"router-link-active"),i.isActive),_defineProperty2(t,getLinkClass(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active"),i.isExactActive),t}));return function(){var t=n.default&&n.default(i);return e.custom?t:h$3("a",assign$1({"aria-current":i.isExactActive?e.ariaCurrentValue:null,onClick:i.navigate,href:i.href},r,{class:o.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(n){var r=t[n],i=e[n];if("string"==typeof r){if(r!==i)return{v:!1}}else if(!Array.isArray(i)||i.length!==r.length||r.some((function(e,t){return e!==i[t]})))return{v:!1}};for(var r in t){var i=n(r);if("object"===_typeof3(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},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(){return a.value.matched[o]}));provide(viewDepthKey,o+1),provide(matchedRouteKey,s),provide(routerViewLocationKey,a);var l=ref();return watch((function(){return[l.value,s.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=l.leaveGuards,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=s.value,o=i&&i.components[e.name],u=e.name;if(!o)return normalizeSlot(r.default,{Component:o,route:t});var c=i.props[e.name],h=c?!0===c?t.params:"function"==typeof c?c(t):c:null,f=h$3(o,assign$1({},h,n,{onVnodeUnmounted:function(e){e.component.isUnmounted&&(i.instances[u]=null)},ref:l}));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=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})),f=applyToParams.bind(null,encodeParam),d=applyToParams.bind(null,decode$3);function p(e,a){if(a=assign$1({},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$1(o,s,{params:d(s.params),hash:decode$3(o.hash),redirectedFrom:void 0,href:u})}var c;"path"in e?c=assign$1({},e,{path:parseURL(n,e.path,a.path).path}):(c=assign$1({},e,{params:f(e.params)}),a.params=f(a.params));var p=t.resolve(c,a),m=e.hash||"";p.params=h(d(p.params));var g=stringifyURL(r,assign$1({},e,{hash:encodeHash(m),path:p.path})),v=i.createHref(g);return assign$1({fullPath:g,hash:m,query:r===stringifyQuery?normalizeQuery(e.query):e.query},p,{redirectedFrom:void 0,href:v})}function m(e){return"string"==typeof e?parseURL(n,e,l.value.path):assign$1({},e)}function g(e,t){if(u!==e)return createRouterError(8,{from:t,to:e})}function v(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.indexOf("?")>-1||r.indexOf("#")>-1?r=m(r):{path:r}),assign$1({query:e.query,hash:e.hash,params: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$1(m(c),{state:a,force:o,replace:s}),t||n);var h,f=n;return f.redirectedFrom=t,!o&&isSameRouteLocation(r,i,n)&&(h=createRouterError(16,{to:f,from:i}),T(i,i,!0,!1)),(h?Promise.resolve(h):x(f,i)).catch((function(e){return isNavigationFailure(e)?e:C(e)})).then((function(e){if(e){if(isNavigationFailure(e,2))return b(assign$1(m(e.to),{state:a,force:o,replace:s}),t||f)}else e=_(f,i,!0,s,a);return w(f,i,e),e}))}function S(e,t){var n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function x(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(f){c.e(f)}finally{c.f()}var h=S.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(f){i.e(f)}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(f){i.e(f)}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.indexOf(a)<0)if(Array.isArray(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(f){s.e(f)}finally{s.f()}}else n.push(guardToPromiseFn(a.beforeEnter,e,t))}}catch(f){i.e(f)}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(f){i.e(f)}finally{i.f()}return n.push(h),runGuardQueue(n)})).catch((function(e){return isNavigationFailure(e,8)?e:Promise.reject(e)}))}function w(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 _(e,t,n,r,a){var o=g(e,t);if(o)return o;var s=t===START_LOCATION_NORMALIZED,u=isBrowser?history.state:{};n&&(r||s?i.replace(e.fullPath,assign$1({scroll:s&&u&&u.scroll},a)):i.push(e.fullPath,a)),l.value=e,T(e,t,n,s),P()}var k,A=useCallbacks(),E=useCallbacks();function C(e){return P(e),E.list().forEach((function(t){return t(e)})),Promise.reject(e)}function P(e){k||(k=!0,c=i.listen((function(e,t,n){var r=p(e),a=y(r);if(a)b(assign$1(a,{replace:!0}),r).catch(noop$2);else{u=r;var o=l.value;isBrowser&&saveScrollPosition(getScrollKey(o.fullPath,n.delta),computeScrollPosition()),x(r,o).catch((function(e){return isNavigationFailure(e,12)?e:isNavigationFailure(e,2)?(b(e.to,r).catch(noop$2),Promise.reject()):(n.delta&&i.go(-n.delta,!1),C(e))})).then((function(e){(e=e||_(r,o,!1))&&n.delta&&i.go(-n.delta,!1),w(r,o,e)})).catch(noop$2)}})),A.list().forEach((function(t){var n=_slicedToArray(t,2),r=n[0],i=n[1];return e?i(e):r()})),A.reset())}function T(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(C)}var M,I=function(e){return i.go(e)},R=new Set,N={currentRoute:l,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:v,replace:function(e){return v(assign$1(m(e),{replace:!0}))},go:I,back:function(){return I(-1)},forward:function(){return I(1)},beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:E.add,isReady:function(){return k&&l.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((function(e,t){A.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",{get:function(){return unref(l)}}),isBrowser&&!M&&l.value===START_LOCATION_NORMALIZED&&(M=!0,v(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;R.add(e),e.unmount=function(){R.delete(e),R.size<1&&(c(),l.value=START_LOCATION_NORMALIZED,M=!1,k=!1),a.call(this,arguments)}}};return N}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=0;o<a;o++){var s=t.matched[o];s&&(e.matched.indexOf(s)<0?n.push(s):r.push(s));var l=e.matched[o];l&&t.matched.indexOf(l)<0&&i.push(l)}return[n,r,i]}var scriptRel="modulepreload",seen={},base$2="/orchestra-music-score/",__vitePreload=exports("bf",(function(e,t){return e()})),pMinDelay$2={exports:{}},yoctodelay=function(e){return new Promise((function(t){return setTimeout(t,e)}))},delay=yoctodelay,pMinDelay=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,r){var i,a,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=_objectSpread2({delayRejection:!0},r)).delayRejection&&(t=t.catch((function(e){i=e}))),e.next=4,Promise.all([t,delay(n)]);case 4:return a=e.sent,o=_slicedToArray(a,1),s=o[0],e.abrupt("return",i?Promise.reject(i):s);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();pMinDelay$2.exports=pMinDelay,pMinDelay$2.exports.default=pMinDelay;var pMinDelay$1=pMinDelay$2.exports,el=document.getElementById("loading"),close$2=exports("D",_asyncToGenerator(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pMinDelay$1(Promise.resolve(),300);case 2:null==el||el.classList.remove("show"),null===(t=document.getElementById("update"))||void 0===t||t.classList.remove("show");case 4:case"end":return e.stop()}}),e)})))),open$1=function(){null==el||el.classList.add("show")};function __variableDynamicImportRuntime0__(e){switch(e){case"../src/pages/baseClass/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.ab4577b8.js")}),void 0);case"../src/pages/classify/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.93fd0b9f.js")}),void 0);case"../src/pages/detail/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.60426bd4.js")}),void 0);case"../src/pages/list/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.f01e58c3.js")}),void 0);case"../src/pages/notfund/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.1cb0bd46.js")}),void 0);case"../src/pages/render-test/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.419659e9.js")}),void 0);case"../src/pages/report/index.tsx":return __vitePreload((function(){return module.import("./index-legacy.8dd361e0.js").then((function(e){return e.i}))}),void 0);default:return new Promise((function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))}))}}var getRouterComponent=function(e){return _asyncToGenerator(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=setTimeout((function(){open$1()}),300),r=Promise.resolve(null),t.prev=2,t.next=5,__variableDynamicImportRuntime0__("../src/pages/".concat(e,"/index.tsx"));case 5:r=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),r=Promise.reject();case 11:return clearTimeout(n),close$2(),t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,null,[[2,8]])})))},routes=[{path:"/",component:getRouterComponent("baseClass")},{path:"/classify",component:getRouterComponent("classify")},{path:"/list/:id",component:getRouterComponent("list"),meta:{keepAlive:!0}},{path:"/detail/:id",component:getRouterComponent("detail")},{path:"/evaluating/:id",component:getRouterComponent("detail")},{path:"/report",component:getRouterComponent("report")},{path:"/report/:id",component:getRouterComponent("report")},{path:"/render-test",component:getRouterComponent("render-test")},{path:"/vexflow-test",component:__vitePreload((function(){return module.import("./index-legacy.51c2c984.js")}),void 0)},{path:"/:pathMatch(.*)*",component:getRouterComponent("notfund"),meta:{title:"404 Not Fund"}}];createRouter({history:createWebHashHistory(),routes:routes});var tock="SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjI5LjEwMAAAAAAAAAAAAAAA//tQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAGAAAKmwA6Ojo6Ojo6Ojo6Ojo6Ojo6YmJiYmJiYmJiYmJiYmJiYmKJiYmJiYmJiYmJiYmJiYmJsbGxsbGxsbGxsbGxsbGxsbHY2NjY2NjY2NjY2NjY2NjY2P////////////////////8AAAAATGF2YzU4LjU0AAAAAAAAAAAAAAAAJAQUAAAAAAAACpv9GcQ9AAAAAAAAAAAAAAAAAAAAAP/7kGQAAALJHFAdPeAAMs13wKAUABOVWUYZ2gAA1UIigwBQAAAAUlDQQxklOcnZOydj1iYIxFj1oWbgRwYhdwAgBMLA1q+Ech0QS2HREhx5GBklTjJq98QImWB5q9/SmXkQa8gJAxrBDlDn/l/D5d9cH9pd/D/Ln+H+XP8P////////////kIQhCf6EIz////5z8hCf//////85CEqc5zkqcPh8Ph8DgAAAABwOBwUIYigkYzAOBgVYUoT0xxC8ypKoLAmYGA34OAo4Ukoel04PoEw+AY5KXwIIcD4SwNeeCwQnPAyAEDKEQAQwphNGfC10AQCF6hESOSROeGNRFBPYnkVxbUW+KTH8ZQZcmyCUWWj/HPJ8iBBy2SxPrRrRr/lYqlcnidNieLpsuvXr/5eMTIvHThkdMDIz///8wUmYIJoIHzRj6ALf/8Ahz/////////////09fPP/f++v91/qp///0FCCor/MeqOQV9OtjKwvETiP///4gLFJ///+PYKZAAAJSMgAAwRYCBMBIAIRYAFgJiRgCoBwYDiBGGAvgP/7kmQPjfQJHkZXfqAANq14YOAUAE0JqxIN/oiIvTZhgACj2SxgDYAkYBOAeGAtgzRh5IwEZAKX5HH4nhRqcw/qYc4EGmBlAeBgu4K8BuRvgZYEQGQRwBjkZDiS0cxRbUuZOZHpixkiipJJ1OpaqzJIe4kJfb////////6heitNxprnDpIJ//////////+/r+tfuy37W7+d1rTu37oi36V//p/RGntSvLdowxnDgeONKh1jhpihwTMDCAwcPO8CRICfmLS0OAAxDCIU1kuNRoDAEATswDwKMME9IWzYyOJsxDwZfMBUCPDAYwSEwHACiA8jwD2hwLkAGpwxG//9///t/q//////7+////+r/////99mu7qqdT6Dp6KtS3WmpaJso5oG//zU/y9j4VkE5l+sBkvmkX+v///acWnV2trA0mrZlJKphkD4zD4UYeaLigSkDKVVAAAABoOjRLAYlW2pbW0TjAQPMMiYxoNTLhlNAqA29QTCARHAylZ+yMpzCeDB0ANUwLUBKIgHkGugOHwNbgAFkXS1+v/V/p/6/9f+3/7/+5JkJojzkmvFa5+akiqtWGAAJfZPNa0MDn6KSMy2IUAAm6HV66am7/9qv9JO3S/1f/7dPr7V1/1/QrqtqWt9StPTTTSQrNUm/8ud1+NUvMOdbX4+j4aaz6f//rVfa9U1dtasIILnUYQ4o4wTDo87xIDzyBiBbaW9wIQKKCAVG5gEUGSwkaiBx005mGcAmRt6ItsZhME5GFGgZpglAD8YFGA6gce2BpnwGLRgAECDP//6////////11dkWu1S67La+tnr2t1UPo9f1vt//71alvXrqRmSlo60EkkVLTdzxdQLhmeLyRqo+ZmhaOQf9f/FXojkaky22YJvJz9bAcF9zk0p8v/+X752Zmbu+7Tqr5l8j+aexVdmLCHIEz0WejhSGgDmLY5Yp0A4ATFgDgwCcAEMAVATgCBZmAuAwRgoIoKaUNEAmBeh/5rCvGZViZSMxjwUGPQOGEgiDcJ////3/////+/9P0k8taNNRqKfI7qhlYqGY7/ZPyVb9v+vfVDEkVkKZHrOwgVhUUQa6iRRrChlDwrFFDwkOFwoTKKEfr/5//uSZECP8/BswoP8KyAurYhgACb2TnWxCg38qoi3NiGAAJvZyyeZe+GTlsyDkIzns5w///+v+3z/7fmPsPpsRc5J09lTsJmEllkDIC0CMKkQLax/q7iyphogZAOmcI5pr0cF/mCYhxRiJDJgY4CESGCQAW5gMoCIYAgAAg0AAMAMABzABwAAtiH///////////911rt5im0a6NR1t6satH2VVWyp1///+nofRUZHQimYpSmHWZw8cYoTYCDxgmIi6CqIv/TvkZdRYEQDg7m7Uuyzf0qz//////63ds8PL1uNTm7nWYRtHt0hJrgT3SKaqWg5c/2AGAUAwBgATARAbMDQCwwIASzEfGVMWUpU75zHTcSLAMIYFQweADDBFAnA4/AWYG2ABAMv//////////9er32U7V2vruldDdWvVZaqkEXe9f7W/+/f60ek6DpqVRQSRSpsiipA4UCfNjExMjxoXlLSNCZMhf//////////9P/17cln97tv9GIhOVro9PTf//9U19ao0qO5FTUGEDmO4CcoYUgyiwoZVQEcAAABCv/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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",b64toBlob=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:512,r=atob(e),i=[],a=0;a<r.length;a+=n){for(var o=r.slice(a,a+n),s=new Array(o.length),l=0;l<o.length;l++)s[l]=o.charCodeAt(l);var u=new Uint8Array(s);i.push(u)}var c=new Blob(i,{type:t});return c},tickUrl=URL.createObjectURL(b64toBlob(tick,"audio/mpeg")),tockUrl=URL.createObjectURL(b64toBlob(tock,"audio/mpeg")),eventemitter3={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,a),!0;case 6:return c.fn.call(c.context,t,r,i,a,o),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,i);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(eventemitter3);var EventEmitter=exports("b6",eventemitter3.exports),howler={};
  16. /*!
  17. * howler.js v2.2.3
  18. * howlerjs.com
  19. *
  20. * (c) 2013-2020, James Simpson of GoldFire Studios
  21. * goldfirestudios.com
  22. *
  23. * MIT License
  24. */
  25. !function(t){!function(){var n=function(){this.init()};n.prototype={init:function(){var e=this||r;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||r;if(e=parseFloat(e),t.ctx||h(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[n]._soundById(i[a]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||r;t.ctx||h(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,r.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var i=t._howls[n]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[n]._soundById(i[a]);o&&o._node&&(o._node.muted=!!e||o._muted)}return t},stop:function(){for(var e=this||r,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||r,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,h()),e},codecs:function(e){return(this||r)._codecs[e.replace(/^x-/,"")]},_setup:function(){var t=this||r;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||r,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(c){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=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||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,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||r;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||r;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||r;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&r.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._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&&r.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 r=new n,i=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.")};i.prototype={init:function(e){var t=this;return r.ctx||h(),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=r.usingWebAudio&&!t._html5,void 0!==r.ctx&&r.ctx&&r.autoUnlock&&r._unlockAudio(),r._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(r.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var i,o;if(e._format&&e._format[n])i=e._format[n];else{if("string"!=typeof(o=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(i=/^data:audio\/([^;,]+);/i.exec(o))||(i=/\.([^.]+)$/.exec(o.split("?",1)[0])),i&&(i=i[1].toLowerCase())}if(i||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),i&&r.codecs(i)){t=e._src[n];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 a(e),e._webAudio&&s(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,i=null;if("number"==typeof e)i=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var a=0,o=0;o<n._sounds.length;o++)n._sounds[o]._paused&&!n._sounds[o]._ended&&(a++,i=n._sounds[o]._id);1===a?e=null:i=null}}var s=i?n._soundById(i):n._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var l=s._id;return n._queue.push({event:"play",action:function(){n.play(l)}}),l}if(i&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&r._autoResume();var u=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),c=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),h=1e3*c/Math.abs(s._rate),f=n._sprite[e][0]/1e3,d=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var p=function(){s._paused=!1,s._seek=u,s._start=f,s._stop=d,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(u>=d)){var m=s._node;if(n._webAudio){var g=function(){n._playLock=!1,p(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,r.ctx.currentTime),s._playStart=r.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):s._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),h!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===r.state&&"interrupted"!==r.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(s._id))}else{var v=function(){m.currentTime=u,m.muted=s._muted||n._muted||r._muted||m.muted,m.volume=s._volume*r.volume(),m.playbackRate=s._rate;try{var i=m.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,p(),i.then((function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._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||(n._playLock=!1,p(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._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?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(a){n._emit("playerror",s._id,a)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&r._navigator.isCocoonJS;if(m.readyState>=3||y)v();else{n._playLock=!0,n._state="loading";m.addEventListener(r._canPlayEvent,(function e(){n._state="loaded",v(),m.removeEventListener(r._canPlayEvent,e,!1)}),!1),n._clearTimer(s._id)}}return s._id}n._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 n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var i=n._getSoundIds(t),a=0;a<i.length;a++){var o=n._soundById(i[a]);o&&(o._muted=e,o._interval&&n._stopFade(o._id),n._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,r.ctx.currentTime):o._node&&(o._node.muted=!!r._muted||e),n._emit("mute",o._id))}return n},volume:function(){var e,t,n,i=this,a=arguments;if(0===a.length)return i._volume;if(1===a.length||2===a.length&&void 0===a[1]){var o=i._getSoundIds(),s=o.indexOf(a[0]);s>=0?t=parseInt(a[0],10):e=parseFloat(a[0])}else a.length>=2&&(e=parseFloat(a[0]),t=parseInt(a[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?i._soundById(t):i._sounds[0])?n._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 l=0;l<t.length;l++)(n=i._soundById(t[l]))&&(n._volume=e,a[2]||i._stopFade(t[l]),i._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,r.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*r.volume()),i._emit("volume",n._id));return i},fade:function(e,t,n,i){var a=this;if("loaded"!==a._state||a._playLock)return a._queue.push({event:"fade",action:function(){a.fade(e,t,n,i)}}),a;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),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=r.ctx.currentTime,c=u+n/1e3;l._volume=e,l._node.gain.setValueAtTime(e,u),l._node.gain.linearRampToValueAtTime(t,c)}a._startFadeInterval(l,e,t,n,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,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._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,n,i=this,a=arguments;if(0===a.length)t=i._sounds[0]._id;else if(1===a.length){var o=i._getSoundIds(),s=o.indexOf(a[0]);s>=0?t=parseInt(a[0],10):e=parseFloat(a[0])}else 2===a.length&&(e=parseFloat(a[0]),t=parseInt(a[1],10));if("number"!=typeof e)return(n=i._soundById(t))?n._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 l=0;l<t.length;l++)if(n=i._soundById(t[l])){i.playing(t[l])&&(n._rateSeek=i.seek(t[l]),n._playStart=i._webAudio?r.ctx.currentTime:n._playStart),n._rate=e,i._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,r.ctx.currentTime):n._node&&(n._node.playbackRate=e);var u=i.seek(t[l]),c=(i._sprite[n._sprite][0]+i._sprite[n._sprite][1])/1e3-u,h=1e3*c/Math.abs(n._rate);!i._endTimers[t[l]]&&n._paused||(i._clearTimer(t[l]),i._endTimers[t[l]]=setTimeout(i._ended.bind(i,n),h)),i._emit("rate",n._id)}return i},seek:function(){var e,t,n=this,i=arguments;if(0===i.length)n._sounds.length&&(t=n._sounds[0]._id);else if(1===i.length){var a=n._getSoundIds(),o=a.indexOf(i[0]);o>=0?t=parseInt(i[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(i[0]))}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var l=n.playing(t)?r.ctx.currentTime-s._playStart:0,u=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(u+l*Math.abs(s._rate))}return s._node.currentTime}var c=n.playing(t);c&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var h=function(){c&&n.play(t,!0),n._emit("seek",t)};if(c&&!n._webAudio){var f=function e(){n._playLock?setTimeout(e,0):h()};setTimeout(f,0)}else h()}return n},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,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(r._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),r._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var i=r._howls.indexOf(e);i>=0&&r._howls.splice(i,1);var a=!0;for(n=0;n<r._howls.length;n++)if(r._howls[n]._src===e._src||e._src.indexOf(r._howls[n]._src)>=0){a=!1;break}return o&&a&&delete o[e._src],r.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,n=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[n][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=r.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),r._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 a(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=r.ctx.createBufferSource(),e._node.bufferSource.buffer=o[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,r.ctx.currentTime),this},_cleanBuffer:function(t){var n=r._navigator&&r._navigator.vendor.indexOf("Apple")>=0;if(r._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),n))try{t.bufferSource.buffer=r._scratchBuffer}catch(e){}return t.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var a=function(e){this._parent=e,this.init()};a.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=++r._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=r._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),e._node.gain.setValueAtTime(n,r.ctx.currentTime),e._node.paused=!0,e._node.connect(r.masterGain)):r.noAudio||(e._node=r._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(r._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=n*r.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=++r._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(r._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 o={},s=function(e){var t=e._src;if(o[t])return e._duration=o[t].duration,void c(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);u(r.buffer,e)}else{var a=new XMLHttpRequest;a.open(e._xhr.method,t,!0),a.withCredentials=e._xhr.withCredentials,a.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){a.setRequestHeader(t,e._xhr.headers[t])})),a.onload=function(){var t=(a.status+"")[0];"0"===t||"2"===t||"3"===t?u(a.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+a.status+".")},a.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete o[t],e.load())},l(a)}},l=function(t){try{t.send()}catch(e){t.onerror()}},u=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},i=function(e){e&&t._sounds.length>0?(o[t._src]=e,c(t,e)):n()};"undefined"!=typeof Promise&&1===r.ctx.decodeAudioData.length?r.ctx.decodeAudioData(e).then(i).catch(n):r.ctx.decodeAudioData(e,i,n)},c=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())},h=function(){if(r.usingWebAudio){try{"undefined"!=typeof AudioContext?r.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch(e){r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),n=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=n?parseInt(n[1],10):null;if(t&&i&&i<9){var a=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!a&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=void 0===r.ctx.createGain?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};t.Howler=r,t.Howl=i,void 0!==commonjsGlobal$2?(commonjsGlobal$2.HowlerGlobal=n,commonjsGlobal$2.Howler=r,commonjsGlobal$2.Howl=i,commonjsGlobal$2.Sound=a):"undefined"!=typeof window&&(window.HowlerGlobal=n,window.Howler=r,window.Howl=i,window.Sound=a)}(),
  26. /*!
  27. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  28. *
  29. * howler.js v2.2.3
  30. * howlerjs.com
  31. *
  32. * (c) 2013-2020, James Simpson of GoldFire Studios
  33. * goldfirestudios.com
  34. *
  35. * MIT License
  36. */
  37. 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"!==_typeof3(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)}}()}(howler);var browserInfo$5=browser(),getTickTime=function(e){return(browserInfo$5.huawei?.2:.1)/e*1e3},htick=new howler.Howl({src:tickUrl,format:["mp3"]}),htock=new howler.Howl({src:tockUrl,format:["mp3"]}),Player=function(){function e(t,n){var r=this;_classCallCheck2(this,e),this.ticks=[],this.event=new EventEmitter,this.isRuning=!1,this.isNeedStop=!1,this.getTickByDots=function(e,t){return Array.from(Array(e)).map((function(e,n){return{time:"0:".concat(1.4*(t+n)),note:0===n?"C5":"c4",velocity:1,index:n+t}}))},this.formatTick=function(e,t){for(var n=[],i=0;i<t;i++)n.push.apply(n,_toConsumableArray2(r.getTickByDots(e,i*e)));return n},this.part=null}var t,n,r;return _createClass2(e,[{key:"startTick",value:(r=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,r,i){var a,o,s,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0,o=function(){var e=a%t.length==0?htick:htock;l.isNeedStop||(e.play(),console.log(e)),a<t.length-1&&s(),a<r*i&&l.event.emit("tick",a),a===r*i-1&&setTimeout((function(){var e;l.isRuning=!1,l.event.emit("stop"),console.log("tick stop"),null===(e=l.part)||void 0===e||e.clear()}),450/n),a++},s=function(){l.isNeedStop||setTimeout((function(){try{o()}catch(e){console.log("timeTickError",e)}}),666.6/n)},o();case 4:case"end":return e.stop()}}),e)}))),function(e,t,n,i){return r.apply(this,arguments)})},{key:"setAudioMode",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:1,e.next=3,nextTick();case 3:if(!this.isRuning){e.next=5;break}return e.abrupt("return");case 5:this.isRuning=!0,i=this.formatTick(t,r),this.startTick(i,n,t,r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"start",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=i.length>2&&void 0!==i[2]?i[2]:1,this.isNeedStop=!1,this.setAudioMode(t,n,r);case 3:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"destroy",value:function(){this.ticks=[],this.event.emit("destroy"),console.log("destroy"),state$2.activeTick=-1,state$2.activeTickRepeat=1,this.event.removeAllListeners(),this.isRuning=!1,this.isNeedStop=!0,this.part&&(this.part.clear(),this.part=null)}}]),e}();exports("aL",Player);var loop=function(){},calls={},browserInfo$4=browser();browserInfo$4.isApp&&window.addEventListener("message",(function(e){console.log("app回调",null==e?void 0:e.data);try{var t=function(){var t,n,r=e.data?"object"===_typeof3(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="object"===_typeof3(r.content)?r.content:JSON.parse(r.content))}catch(f){}if(!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(d){s.e(d)}finally{s.f()}return{v:void 0}}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)}();if("object"===_typeof3(t))return t.v}catch(n){console.error("通信消息解析错误",n)}}));var instance=window.ORCHESTRA||(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.ORCHESTRA),postMessage$1=exports("H",(function(e,t){if(browserInfo$4.isApp){var n=getRandomKey();calls[n]=t||loop,e.content=e.content?_objectSpread2(_objectSpread2({},e.content),{},{uuid:n}):{uuid:n},console.log("h5发送:",JSON.stringify(e)),instance.postMessage(JSON.stringify(e))}})),listenerMessage=exports("aW",(function(e,t){if(browserInfo$4.isApp){var n=e;calls[n]||(calls[n]=[]),calls[n].push(t||loop)}})),removeListenerMessage=exports("aX",(function(e,t){if(browserInfo$4.isApp){var n=e;if(Array.isArray(calls[n])){var r=calls[n].indexOf(t);calls[n].splice(r,1)}}})),promisefiyPostMessage=exports("$",(function(e){return new Promise((function(t){postMessage$1(e,(function(e){return t(e)}))}))})),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$4=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$4(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"!==_typeof3(n)){if(isArray$4(t))t.push(n);else{if(!t||"object"!==_typeof3(t))return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!has$2.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==_typeof3(t))return[t].concat(n);var i=t;return isArray$4(t)&&!isArray$4(n)&&(i=arrayToObject(t,r)),isArray$4(t)&&isArray$4(n)?(n.forEach((function(n,i){if(has$2.call(t,i)){var a=t[i];a&&"object"===_typeof3(a)&&n&&"object"===_typeof3(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"===_typeof3(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"===_typeof3(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"!==_typeof3(e))&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},combine=function(e,t){return[].concat(e,t)},maybeMap=function(e,t){if(isArray$4(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},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$3=Array.isArray,push=Array.prototype.push,pushToArray=function(e,t){push.apply(e,isArray$3(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"===_typeof3(e)||"bigint"==typeof e},stringify$1=function e(t,n,r,i,a,o,s,l,u,c,h,f,d,p){var m=t;if("function"==typeof s?m=s(n,m):m instanceof Date?m=c(m):"comma"===r&&isArray$3(m)&&(m=utils$2.maybeMap(m,(function(e){return e instanceof Date?c(e):e}))),null===m){if(i)return o&&!d?o(n,defaults$1.encoder,p,"key",h):n;m=""}if(isNonNullishPrimitive(m)||utils$2.isBuffer(m))return o?[f(d?n:o(n,defaults$1.encoder,p,"key",h))+"="+f(o(m,defaults$1.encoder,p,"value",h))]:[f(n)+"="+f(String(m))];var g,v=[];if(void 0===m)return v;if("comma"===r&&isArray$3(m))g=[{value:m.length>0?m.join(",")||null:void 0}];else if(isArray$3(s))g=s;else{var y=Object.keys(m);g=l?y.sort(l):y}for(var b=0;b<g.length;++b){var S=g[b],x="object"===_typeof3(S)&&void 0!==S.value?S.value:m[S];if(!a||null!==x){var w=isArray$3(m)?"function"==typeof r?r(n,S):n:n+(u?"."+S:"["+S+"]");pushToArray(v,e(x,w,r,i,a,o,s,l,u,c,h,f,d,p))}}return v},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$3(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$3(i.filter)&&(n=i.filter);var a,o=[];if("object"!==_typeof3(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];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var l=0;l<n.length;++l){var u=n[l];i.skipNulls&&null===r[u]||pushToArray(o,stringify$1(r[u],u,s,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))}var c=o.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),c.length>0?h+c:""},utils$1=utils$3,has=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,defaults={allowDots:!1,allowPrototypes:!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],f=h.indexOf("]="),d=-1===f?h.indexOf("="):f+1;-1===d?(u=t.decoder(h,defaults.decoder,l,"key"),c=t.strictNullHandling?null:""):(u=t.decoder(h.slice(0,d),defaults.decoder,l,"key"),c=utils$1.maybeMap(parseArrayValue(h.slice(d+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$2(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: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,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$5=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 utils$1.compact(i)},stringify=stringify_1,parse$4=parse$5,formats=formats$3,lib$4={formats:formats,parse:parse$4,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="";var t=this.headers.get("content-type");t?t.indexOf("json")>=0&&"string"!=typeof this._bodyInit&&(this._bodyInit=this._bodyText):"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"!==_typeof3(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 _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 defineProperty=_defineProperty;function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){defineProperty(e,t,n[t])}))}return e}var objectSpread=_objectSpread;function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}var arrayWithoutHoles=_arrayWithoutHoles;function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}var iterableToArray=_iterableToArray;function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var nonIterableSpread=_nonIterableSpread;function _toConsumableArray(e){return arrayWithoutHoles(e)||iterableToArray(e)||nonIterableSpread()}var toConsumableArray=_toConsumableArray;function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var classCallCheck=_classCallCheck$1;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}var createClass=_createClass;function createCommonjsModule$1(e,t){return e(t={exports:{}},t.exports),t.exports}var _typeof_1=createCommonjsModule$1((function(e){function t(e){return t="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)},t(e)}function n(r){return"function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?e.exports=n=function(e){return t(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":t(e)},n(r)}e.exports=n}));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)}}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_1(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,n=compose([].concat(toConsumableArray(this.middlewares),toConsumableArray(this.defaultMiddlewares),toConsumableArray(e.globalMiddlewares),toConsumableArray(e.coreMiddlewares)));return n(t)}}]),e}();function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Onion.globalMiddlewares=[],Onion.defaultGlobalMiddlewaresLength=0,Onion.coreMiddlewares=[],Onion.defaultCoreMiddlewaresLength=0;var assertThisInitialized=_assertThisInitialized;function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof_1(t)&&"function"!=typeof t?assertThisInitialized(e):t}var possibleConstructorReturn=_possibleConstructorReturn,getPrototypeOf=createCommonjsModule$1((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t})),setPrototypeOf=createCommonjsModule$1((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t}));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)}var inherits=_inherits;function _isNativeFunction(e){return-1!==Function.toString.call(e).indexOf("[native code]")}var isNativeFunction=_isNativeFunction,construct=createCommonjsModule$1((function(t){function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function r(e,i,a){return n()?t.exports=r=Reflect.construct:t.exports=r=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},r.apply(null,arguments)}t.exports=r})),wrapNativeSuper=createCommonjsModule$1((function(e){function t(n){var r="function"==typeof Map?new Map:void 0;return e.exports=t=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!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return construct(e,arguments,getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(t,e)},t(n)}e.exports=t})),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){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return classCallCheck(this,t),(r=possibleConstructorReturn(this,getPrototypeOf(t).call(this,e))).name="RequestError",r.request=n,r.type=i,r}return inherits(t,e),t}(wrapNativeSuper(Error)),ResponseError=function(e){function t(e,n,r,i){var a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return classCallCheck(this,t),(a=possibleConstructorReturn(this,getPrototypeOf(t).call(this,n||e.statusText))).name="ResponseError",a.data=r,a.response=e,a.request=i,a.type=o,a}return inherits(t,e),t}(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){return new Promise((function(n,r){setTimeout((function(){r(new RequestError("timeout of ".concat(e,"ms exceeded"),t,"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$1(e){return"object"===_typeof_1(e)&&"[object Array]"===Object.prototype.toString.call(e)}function isURLSearchParams(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function isDate(e){return"object"===_typeof_1(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isObject(e){return null!==e&&"object"===_typeof_1(e)}function forEach2ObjArr(e,t){if(e)if("object"!==_typeof_1(e)&&(e=[e]),isArray$1(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 objectSpread({},e,t,{headers:objectSpread({},e.headers,t.headers),params:objectSpread({},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.__umiRequestCoreType__,f=void 0===h?"normal":h,d=i.useCache,p=void 0!==d&&d,m=i.method,g=void 0===m?"get":m,v=i.params,y=i.ttl,b=i.validateCache,S=void 0===b?__defaultValidateCache:b;if("normal"!==f)return process&&process.env,t();var x=fetch;if(!x)throw new Error("Global fetch not exist!");var w,_="BROWSER"===getEnv(),k=S(o,i)&&p&&_;if(k){var A=s.get({url:o,params:v,method:g});if(A)return(A=A.clone()).useCache=!0,e.res=A,t()}return w=c>0?Promise.race([cancel2Throw(i),x(o,i),timeout2Throw(c,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(k&&200===n.status){var r=n.clone();r.useCache=!0,s.set({url:o,params:v,method:g},r,y)}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 f=s.throwErrIfParseFail,d=void 0!==f&&f,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,d,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=objectSpread({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},i.headers),i.body=JSON.stringify(l)):"form"===s&&(i.headers=objectSpread({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},i.headers),i.body=reqStringify(l)):(i.headers=objectSpread({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$1(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$1(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:r},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,t=new CancelToken((function(t){e=t}));return{token:t,cancel:e}};var request$1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Core(e),n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=mergeRequestOptions(t.initOptions,n);return t.request(e,r)};n.use=t.use.bind(t),n.fetchIndex=t.fetchIndex,n.interceptors={request:{use:Core.requestUse.bind(t)},response:{use:Core.responseUse.bind(t)}};var r=["get","post","delete","put","patch","head","options","rpc"];return r.forEach((function(e){n[e]=function(t,r){return n(t,objectSpread({},r,{method:e}))}})),n.Cancel=Cancel,n.CancelToken=CancelToken,n.isCancel=isCancel,n.extendOptions=t.extendOptions.bind(t),n.middlewares={instance:t.onion.middlewares,defaultInstance:t.onion.defaultMiddlewares,global:Onion.globalMiddlewares,core:Onion.coreMiddlewares},n},extend$1=function(e){return request$1(e)};request$1({parseResponse:!1});var request$1$1=exports("q",request$1({})),lodash_isempty={exports:{}};!function(t,n){var r=9007199254740991,i="[object Map]",a="[object Promise]",o="[object Set]",s="[object WeakMap]",l="[object DataView]",u=/^\[object .+?Constructor\]$/,c="object"==_typeof3(commonjsGlobal$2)&&commonjsGlobal$2&&commonjsGlobal$2.Object===Object&&commonjsGlobal$2,h="object"==("undefined"==typeof self?"undefined":_typeof3(self))&&self&&self.Object===Object&&self,f=c||h||Function("return this")(),d=n&&!n.nodeType&&n,p=d&&t&&!t.nodeType&&t,m=p&&p.exports===d;var g=Function.prototype,v=Object.prototype,y=f["__core-js_shared__"],b=function(){var e=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),S=g.toString,x=v.hasOwnProperty,w=v.toString,_=RegExp("^"+S.call(x).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=m?f.Buffer:void 0,A=v.propertyIsEnumerable,E=k?k.isBuffer:void 0,C=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),P=G(f,"DataView"),T=G(f,"Map"),M=G(f,"Promise"),I=G(f,"Set"),R=G(f,"WeakMap"),N=!A.call({valueOf:1},"valueOf"),L=U(P),D=U(T),B=U(M),F=U(I),O=U(R);function V(t){if(!Y(t)||(n=t,b&&b in n))return!1;var n,r=X(t)||function(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(e){}return n}(t)?_:u;return r.test(U(t))}function G(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return V(n)?n:void 0}var z=function(e){return w.call(e)};function U(t){if(null!=t){try{return S.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function H(e){return function(e){return function(e){return!!e&&"object"==_typeof3(e)}(e)&&W(e)}(e)&&x.call(e,"callee")&&(!A.call(e,"callee")||"[object Arguments]"==w.call(e))}(P&&z(new P(new ArrayBuffer(1)))!=l||T&&z(new T)!=i||M&&z(M.resolve())!=a||I&&z(new I)!=o||R&&z(new R)!=s)&&(z=function(e){var t=w.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?U(n):void 0;if(r)switch(r){case L:return l;case D:return i;case B:return a;case F:return o;case O:return s}return t});var j=Array.isArray;function W(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!X(e)}var q=E||function(){return!1};function X(e){var t=Y(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Y(e){var t=_typeof3(e);return!!e&&("object"==t||"function"==t)}t.exports=function(e){if(W(e)&&(j(e)||"string"==typeof e||"function"==typeof e.splice||q(e)||H(e)))return!e.length;var t=z(e);if(t==i||t==o)return!e.size;if(N||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||v)}(e))return!C(e).length;for(var n in e)if(x.call(e,n))return!1;return!0}}(lodash_isempty,lodash_isempty.exports);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"==_typeof3(e)}function isPlainObject$1(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$1,lodash_transform={exports:{}};!function(t,n){var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",h="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",S="[object ArrayBuffer]",x="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/,k=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,C=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[a]=T[o]=T[S]=T[s]=T[x]=T[l]=T[u]=T[c]=T[h]=T[f]=T[d]=T[m]=T[g]=T[v]=T[b]=!1;var M="object"==_typeof3(commonjsGlobal$2)&&commonjsGlobal$2&&commonjsGlobal$2.Object===Object&&commonjsGlobal$2,I="object"==("undefined"==typeof self?"undefined":_typeof3(self))&&self&&self.Object===Object&&self,R=M||I||Function("return this")(),N=n&&!n.nodeType&&n,L=N&&t&&!t.nodeType&&t,D=L&&L.exports===N&&M.process,B=function(){try{return D&&D.binding("util")}catch(e){}}(),F=B&&B.isTypedArray;function O(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function V(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function G(t){var n=!1;if(null!=t&&"function"!=typeof t.toString)try{n=!!(t+"")}catch(e){}return n}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function U(e,t){return function(n){return e(t(n))}}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var j=Array.prototype,W=Function.prototype,q=Object.prototype,X=R["__core-js_shared__"],Y=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=W.toString,K=q.hasOwnProperty,Z=q.toString,J=RegExp("^"+Q.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=R.Symbol,ee=R.Uint8Array,te=U(Object.getPrototypeOf,Object),ne=Object.create,re=q.propertyIsEnumerable,ie=j.splice,ae=U(Object.keys,Object),oe=Ve(R,"DataView"),se=Ve(R,"Map"),le=Ve(R,"Promise"),ue=Ve(R,"Set"),ce=Ve(R,"WeakMap"),he=Ve(Object,"create"),fe=Xe(oe),de=Xe(se),pe=Xe(le),me=Xe(ue),ge=Xe(ce),ve=$?$.prototype:void 0,ye=ve?ve.valueOf:void 0,be=ve?ve.toString:void 0;function Se(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 xe(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 we(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 _e(e){var t=-1,n=e?e.length:0;for(this.__data__=new we;++t<n;)this.add(e[t])}function ke(e){this.__data__=new xe(e)}function Ae(e,t){var n=Ze(e)||Ke(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&&!K.call(e,a)||i&&("length"==a||ze(a,r))||n.push(a);return n}function Ee(e,t){for(var n=e.length;n--;)if(Qe(e[n][0],t))return n;return-1}Se.prototype.clear=function(){this.__data__=he?he(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(he){var n=t[e];return n===r?void 0:n}return K.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return he?void 0!==t[e]:K.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=he&&void 0===t?r:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0)&&(n==t.length-1?t.pop():ie.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Ee(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},we.prototype.clear=function(){this.__data__={hash:new Se,map:new(se||xe),string:new Se}},we.prototype.delete=function(e){return Oe(this,e).delete(e)},we.prototype.get=function(e){return Oe(this,e).get(e)},we.prototype.has=function(e){return Oe(this,e).has(e)},we.prototype.set=function(e,t){return Oe(this,e).set(e,t),this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,r),this},_e.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new xe},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!se||r.length<199)return r.push([e,t]),this;n=this.__data__=new we(r)}return n.set(e,t),this};var Ce,Pe=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[Ce?o:++r];if(!1===t(i[s],s,i))break}return e};function Te(e,t){return e&&Pe(e,t,ot)}function Me(e,t){for(var n=0,r=(t=Ue(t,e)?[t]:Be(t)).length;null!=e&&n<r;)e=e[qe(t[n++])];return n&&n==r?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Re(e,t,n,r,i){return e===t||(null==e||null==t||!tt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var p=Ze(e),b=Ze(t),w=o,_=o;p||(w=(w=Ge(e))==a?d:w);b||(_=(_=Ge(t))==a?d:_);var k=w==d&&!G(e),A=_==d&&!G(t),E=w==_;if(E&&!k)return c||(c=new ke),p||at(e)?Fe(e,t,n,r,i,c):function(e,t,n,r,i,a,o){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!r(new ee(e),new ee(t)));case s:case l:case f:return Qe(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case h:var c=z;case g:var d=2&a;if(c||(c=H),e.size!=t.size&&!d)return!1;var p=o.get(e);if(p)return p==t;a|=1,o.set(e,t);var b=Fe(c(e),c(t),r,i,a,o);return o.delete(e),b;case y:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,w,n,r,i,c);if(!(2&i)){var C=k&&K.call(e,"__wrapped__"),P=A&&K.call(t,"__wrapped__");if(C||P){var T=C?e.value():e,M=P?t.value():t;return c||(c=new ke),n(T,M,r,i,c)}}if(!E)return!1;return c||(c=new ke),function(e,t,n,r,i,a){var o=2&i,s=ot(e),l=s.length,u=ot(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=s[c];if(!(o?h in t:K.call(t,h)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);var p=o;for(;++c<l;){var m=e[h=s[c]],g=t[h];if(r)var v=o?r(g,m,h,t,e,a):r(m,g,h,e,t,a);if(!(void 0===v?m===g||n(m,g,r,i,a):v)){d=!1;break}p||(p="constructor"==h)}if(d&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,i,c)}(e,t,Re,n,r,i))}function Ne(e){return!(!tt(e)||(t=e,Y&&Y in t))&&($e(e)||G(e)?J:C).test(Xe(e));var t}function Le(e){return"function"==typeof e?e:null==e?st:"object"==_typeof3(e)?Ze(e)?function(e,t){if(Ue(e)&&He(t))return je(qe(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Me(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=Ue(t,e)?[t]:Be(t);var r,i=-1,a=t.length;for(;++i<a;){var o=qe(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}if(r)return r;return!!(a=e?e.length:0)&&et(a)&&ze(o,a)&&(Ze(e)||Ke(e))}(e,t,Ie)}(n,e):Re(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ot(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,He(i)]}return t}(e);if(1==t.length&&t[0][2])return je(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,a=i,o=!r;if(null==e)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){var l=(s=n[i])[0],u=e[l],c=s[1];if(o&&s[2]){if(void 0===u&&!(l in e))return!1}else{var h=new ke;if(r)var f=r(u,c,l,e,t,h);if(!(void 0===f?Re(c,u,r,3,h):f))return!1}}return!0}(n,e,t)}}(e):Ue(t=e)?(n=qe(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Me(t,e)}}(t);var t,n}function De(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||q,t!==r)return ae(e);var t,n,r,i=[];for(var a in Object(e))K.call(e,a)&&"constructor"!=a&&i.push(a);return i}function Be(e){return Ze(e)?e:We(e)}function Fe(e,t,n,r,i,a){var o=2&i,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,h=!0,f=1&i?new _e:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var d=e[c],p=t[c];if(r)var m=o?r(p,d,c,t,e,a):r(d,p,c,e,t,a);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!V(t,(function(e,t){if(!f.has(t)&&(d===e||n(d,e,r,i,a)))return f.add(t)}))){h=!1;break}}else if(d!==p&&!n(d,p,r,i,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Oe(e,t){var n,r,i=e.__data__;return("string"==(r=_typeof3(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ne(n)?n:void 0}var Ge=function(e){return Z.call(e)};function ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e,t){if(Ze(e))return!1;var n=_typeof3(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!rt(e))||(_.test(e)||!w.test(e)||null!=t&&e in Object(t))}function He(e){return e==e&&!tt(e)}function je(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(oe&&Ge(new oe(new ArrayBuffer(1)))!=x||se&&Ge(new se)!=h||le&&Ge(le.resolve())!=p||ue&&Ge(new ue)!=g||ce&&Ge(new ce)!=b)&&(Ge=function(e){var t=Z.call(e),n=t==d?e.constructor:void 0,r=n?Xe(n):void 0;if(r)switch(r){case fe:return x;case de:return h;case pe:return p;case me:return g;case ge:return b}return t});var We=Ye((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(rt(e))return be?be.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return k.test(e)&&n.push(""),e.replace(A,(function(e,t,r,i){n.push(r?i.replace(E,"$1"):t||e)})),n}));function qe(e){if("string"==typeof e||rt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xe(t){if(null!=t){try{return Q.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ye(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(Ye.Cache||we),n}function Qe(e,t){return e===t||e!=e&&t!=t}function Ke(e){return function(e){return nt(e)&&Je(e)}(e)&&K.call(e,"callee")&&(!re.call(e,"callee")||Z.call(e)==a)}Ye.Cache=we;var Ze=Array.isArray;function Je(e){return null!=e&&et(e.length)&&!$e(e)}function $e(e){var t=tt(e)?Z.call(e):"";return t==c||"[object GeneratorFunction]"==t}function et(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function tt(e){var t=_typeof3(e);return!!e&&("object"==t||"function"==t)}function nt(e){return!!e&&"object"==_typeof3(e)}function rt(e){return"symbol"==_typeof3(e)||nt(e)&&Z.call(e)==y}var it,at=F?(it=F,function(e){return it(e)}):function(e){return nt(e)&&et(e.length)&&!!T[Z.call(e)]};function ot(e){return Je(e)?Ae(e):De(e)}function st(e){return e}t.exports=function(e,t,n){var r,i=Ze(e)||at(e);if(t=Le(t),null==n)if(i||tt(e)){var a=e.constructor;n=i?Ze(e)?new a:[]:$e(a)?tt(r=te(e))?ne(r):{}:{}}else n={};return(i?O:Te)(e,(function(e,r,i){return t(n,e,r,i)})),n}}(lodash_transform,lodash_transform.exports);var isEmpty$1=lodash_isempty.exports,isPlainObject=lodash_isplainobject,transform=lodash_transform.exports,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,f=void 0===h||h,d=n.NaNValues,p=void 0!==d&&d,m=n.nullValues,g=void 0===m||m,v=n.undefinedValues,y=void 0===v||v;return transform(t,(function(t,n,r){if(!i.includes(r)&&((Array.isArray(n)||isPlainObject(n))&&(n=e(n,{NaNValues:p,cleanKeys:i,cleanValues:o,emptyArrays:l,emptyObjects:c,emptyStrings:f,nullValues:g,undefinedValues:y})),!o.includes(n)&&!(c&&isPlainObject(n)&&isEmpty$1(n))&&(!l||!Array.isArray(n)||n.length)&&!(f&&""===n||p&&Number.isNaN(n)||g&&null===n||y&&void 0===n)))return Array.isArray(t)?t.push(n):void(t[r]=n)}))},isOpenLogin=!1,request=exports("l",extend$1({requestType:"json",timeout:1e4,prefix:getRequestHostname()}));request.use(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.req,e.next=3,n();case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),request.interceptors.request.use((function(e,t){var n=sessionStorage.getItem("Authorization")||"";return{url:e,options:_objectSpread2(_objectSpread2({},t),{},{params:src(t.params),headers:_objectSpread2(_objectSpread2({},t.headers),{},{Authorization:n})})}}),{global:!1}),request.interceptors.response.use(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(new URL(t.url),!(t.status>299||t.status<200)){e.next=5;break}throw Toast(r="服务器错误,状态码"+t.status),new Error(r);case 5:return e.next=7,t.clone().json();case 7:if(200===(i=e.sent).code||0===i.errCode){e.next=14;break}throw a=i.msg||i.message||"处理失败,请重试",403!==i.code&&401!==i.code&&Toast(a),o=browser(),403===i.code&&o.isApp&&!isOpenLogin&&(o.android?(postMessage$1({api:"login"}),window.DAYA.postMessage(JSON.stringify({api:"login"}))):o.iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"login"}))),new Error(a);case 14:return e.abrupt("return",t);case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{global:!1});var difficultyData={ONE:"BEGINNER",TWO:"ADVANCED",THREE:"PERFORMER",1:"BEGINNER",2:"ADVANCED",3:"PERFORMER"},unitTestData=reactive({isSelectMeasureMode:!1}),UnitTest=defineComponent({name:"unitTest",setup:function(){var e=ref({difficulty:""}),t=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(){var n,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=useOriginSearch()).questionId){t.next=3;break}return t.abrupt("return","");case 3:return t.prev=3,t.next=6,request.get("/examinationQuestion/detail?examinationQuestionId=".concat(n.questionId));case 6:a=t.sent,e.value=JSON.parse(null==a||null===(i=a.data)||void 0===i?void 0:i.questionExtendsInfo)||{},e.value.start=Number(e.value.start),e.value.end=Number(e.value.end),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),console.error("解析单元测验曲谱题目失败",t.t0);case 15:r();case 16:case"end":return t.stop()}}),t,null,[[3,12]])})));return function(){return t.apply(this,arguments)}}(),n=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(){var n,i,a,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=useOriginSearch()).lessonTrainingId){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,request.post("/studentLessonTraining/trainingRecord/".concat(n.courseScheduleId,"?userId=").concat(userInfo.id));case 6:a=t.sent,Array.isArray(null==a||null===(i=a.data)||void 0===i?void 0:i.trainingDetails)&&(o=a.data.trainingDetails.find((function(e){return e.materialId==n.materialId})),s=JSON.parse(o.trainingContent),e.value.start=Number(s.startSection),e.value.end=Number(s.endSection),e.value.speed=isNaN(s.speed)?0:Number(s.speed)),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error("解析课后训练曲谱题目失败",t.t0);case 13:r();case 14:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(){return t.apply(this,arguments)}}(),r=function(){var t=state$2.times.filter((function(t){return t.noteElement.sourceMeasure.MeasureNumberXML==e.value.start})),n=state$2.times.filter((function(t){return t.noteElement.sourceMeasure.MeasureNumberXML==e.value.end})),r=t[0],i=n[n.length-1];r&&i&&(unitTestData.isSelectMeasureMode=!0,state$2.sectionStatus=!0,state$2.section=[r,i],difficultyData[e.value.difficulty]&&(state$3.eva.difficulty=difficultyData[e.value.difficulty]),e.value.speed&&changeSpeed(e.value.speed),setSettionBackground())};return onMounted((function(){browser().isStudent&&(t(),n())})),watchEffect((function(){state$2.isNeedRefreshSection&&(r(),state$2.isNeedRefreshSection=!1)})),function(){return""}}}),accompaniment="/orchestra-music-score/assets/accompaniment.b83f0e6e.svg",__glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,default:accompaniment},Symbol.toStringTag,{value:"Module"})),back$1="/orchestra-music-score/assets/back.0e8784e6.svg",__glob_2_1=Object.freeze(Object.defineProperty({__proto__:null,default:back$1},Symbol.toStringTag,{value:"Module"})),backgroundClose="/orchestra-music-score/assets/background-close.292949ba.svg",__glob_2_2=Object.freeze(Object.defineProperty({__proto__:null,default:backgroundClose},Symbol.toStringTag,{value:"Module"})),background$1="/orchestra-music-score/assets/background.66e3a94f.svg",__glob_2_3=Object.freeze(Object.defineProperty({__proto__:null,default:background$1},Symbol.toStringTag,{value:"Module"})),camera="/orchestra-music-score/assets/camera.6735691d.svg",__glob_2_4=Object.freeze(Object.defineProperty({__proto__:null,default:camera},Symbol.toStringTag,{value:"Module"})),cursorIcon1="/orchestra-music-score/assets/cursor-icon-1.06996e35.svg",__glob_2_5=Object.freeze(Object.defineProperty({__proto__:null,default:cursorIcon1},Symbol.toStringTag,{value:"Module"})),cursorIcon2="/orchestra-music-score/assets/cursor-icon-2.8be21cd1.svg",__glob_2_6=Object.freeze(Object.defineProperty({__proto__:null,default:cursorIcon2},Symbol.toStringTag,{value:"Module"})),cursorIcon3="/orchestra-music-score/assets/cursor-icon-3.e8dc27ea.svg",__glob_2_7=Object.freeze(Object.defineProperty({__proto__:null,default:cursorIcon3},Symbol.toStringTag,{value:"Module"})),equilibrium="/orchestra-music-score/assets/equilibrium.f9043cf5.svg",__glob_2_8=Object.freeze(Object.defineProperty({__proto__:null,default:equilibrium},Symbol.toStringTag,{value:"Module"})),evaluating$1="/orchestra-music-score/assets/evaluating.9eb5cfac.svg",__glob_2_9=Object.freeze(Object.defineProperty({__proto__:null,default:evaluating$1},Symbol.toStringTag,{value:"Module"})),fingeringOff="/orchestra-music-score/assets/fingeringOff.356cc412.svg",__glob_2_10=Object.freeze(Object.defineProperty({__proto__:null,default:fingeringOff},Symbol.toStringTag,{value:"Module"})),fingeringOn="/orchestra-music-score/assets/fingeringOn.32644085.svg",__glob_2_11=Object.freeze(Object.defineProperty({__proto__:null,default:fingeringOn},Symbol.toStringTag,{value:"Module"})),gudingActive="/orchestra-music-score/assets/guding-active.ffb42216.svg",__glob_2_12=Object.freeze(Object.defineProperty({__proto__:null,default:gudingActive},Symbol.toStringTag,{value:"Module"})),guding="/orchestra-music-score/assets/guding.a3ea7233.svg",__glob_2_13=Object.freeze(Object.defineProperty({__proto__:null,default:guding},Symbol.toStringTag,{value:"Module"})),iconBack$1="/orchestra-music-score/assets/icon-back.c23f1b59.svg",__glob_2_14=Object.freeze(Object.defineProperty({__proto__:null,default:iconBack$1},Symbol.toStringTag,{value:"Module"})),iconStaffActive="/orchestra-music-score/assets/icon-staff-active.c1d6b682.svg",__glob_2_15=Object.freeze(Object.defineProperty({__proto__:null,default:iconStaffActive},Symbol.toStringTag,{value:"Module"})),iconStaff="/orchestra-music-score/assets/icon-staff.5a2b7c94.svg",__glob_2_16=Object.freeze(Object.defineProperty({__proto__:null,default:iconStaff},Symbol.toStringTag,{value:"Module"})),iconZhuanpu="/orchestra-music-score/assets/icon-zhuanpu.035ed1c0.svg",__glob_2_17=Object.freeze(Object.defineProperty({__proto__:null,default:iconZhuanpu},Symbol.toStringTag,{value:"Module"})),jia="/orchestra-music-score/assets/jia.362e133d.svg",__glob_2_18=Object.freeze(Object.defineProperty({__proto__:null,default:jia},Symbol.toStringTag,{value:"Module"})),jian="/orchestra-music-score/assets/jian.ce0820a8.svg",__glob_2_19=Object.freeze(Object.defineProperty({__proto__:null,default:jian},Symbol.toStringTag,{value:"Module"})),jianpu="/orchestra-music-score/assets/jianpu.70310e35.svg",__glob_2_20=Object.freeze(Object.defineProperty({__proto__:null,default:jianpu},Symbol.toStringTag,{value:"Module"})),model1$1="/orchestra-music-score/assets/model-1.5cdc3b59.svg",__glob_2_21=Object.freeze(Object.defineProperty({__proto__:null,default:model1$1},Symbol.toStringTag,{value:"Module"})),model2$1="/orchestra-music-score/assets/model-2.aedda1e7.svg",__glob_2_22=Object.freeze(Object.defineProperty({__proto__:null,default:model2$1},Symbol.toStringTag,{value:"Module"})),model3$1="/orchestra-music-score/assets/model-3.f6cc2e96.svg",__glob_2_23=Object.freeze(Object.defineProperty({__proto__:null,default:model3$1},Symbol.toStringTag,{value:"Module"})),modelType$1="/orchestra-music-score/assets/modelType.7dff5016.svg",__glob_2_24=Object.freeze(Object.defineProperty({__proto__:null,default:modelType$1},Symbol.toStringTag,{value:"Module"})),modelType1="/orchestra-music-score/assets/modelType1.e616d5d5.svg",__glob_2_25=Object.freeze(Object.defineProperty({__proto__:null,default:modelType1},Symbol.toStringTag,{value:"Module"})),modelType2="/orchestra-music-score/assets/modelType2.4364a0ba.svg",__glob_2_26=Object.freeze(Object.defineProperty({__proto__:null,default:modelType2},Symbol.toStringTag,{value:"Module"})),musicList="/orchestra-music-score/assets/music-list.8ad9f128.svg",__glob_2_27=Object.freeze(Object.defineProperty({__proto__:null,default:musicList},Symbol.toStringTag,{value:"Module"})),musicList1="/orchestra-music-score/assets/music-list1.16180b5c.svg",__glob_2_28=Object.freeze(Object.defineProperty({__proto__:null,default:musicList1},Symbol.toStringTag,{value:"Module"})),music="/orchestra-music-score/assets/music.855d26de.svg",__glob_2_29=Object.freeze(Object.defineProperty({__proto__:null,default:music},Symbol.toStringTag,{value:"Module"})),part="/orchestra-music-score/assets/part.7184ecd4.svg",__glob_2_30=Object.freeze(Object.defineProperty({__proto__:null,default:part},Symbol.toStringTag,{value:"Module"})),pause$1="/orchestra-music-score/assets/pause.1f3a158e.svg",__glob_2_31=Object.freeze(Object.defineProperty({__proto__:null,default:pause$1},Symbol.toStringTag,{value:"Module"})),play$1="/orchestra-music-score/assets/play.4cb46bbb.svg",__glob_2_32=Object.freeze(Object.defineProperty({__proto__:null,default:play$1},Symbol.toStringTag,{value:"Module"})),practice="/orchestra-music-score/assets/practice.a1fec217.svg",__glob_2_33=Object.freeze(Object.defineProperty({__proto__:null,default:practice},Symbol.toStringTag,{value:"Module"})),practise="/orchestra-music-score/assets/practise.cdd135b3.svg",__glob_2_34=Object.freeze(Object.defineProperty({__proto__:null,default:practise},Symbol.toStringTag,{value:"Module"})),record="/orchestra-music-score/assets/record.214e6a6d.svg",__glob_2_35=Object.freeze(Object.defineProperty({__proto__:null,default:record},Symbol.toStringTag,{value:"Module"})),resetShengyin="/orchestra-music-score/assets/reset-shengyin.af688c9a.svg",__glob_2_36=Object.freeze(Object.defineProperty({__proto__:null,default:resetShengyin},Symbol.toStringTag,{value:"Module"})),reset="/orchestra-music-score/assets/reset.c00c8122.svg",__glob_2_37=Object.freeze(Object.defineProperty({__proto__:null,default:reset},Symbol.toStringTag,{value:"Module"})),restore="/orchestra-music-score/assets/restore.3a4a6db3.svg",__glob_2_38=Object.freeze(Object.defineProperty({__proto__:null,default:restore},Symbol.toStringTag,{value:"Module"})),section$1="/orchestra-music-score/assets/section.e6286364.svg",__glob_2_39=Object.freeze(Object.defineProperty({__proto__:null,default:section$1},Symbol.toStringTag,{value:"Module"})),section1="/orchestra-music-score/assets/section1.fc48e73d.svg",__glob_2_40=Object.freeze(Object.defineProperty({__proto__:null,default:section1},Symbol.toStringTag,{value:"Module"})),section2="/orchestra-music-score/assets/section2.2194307f.svg",__glob_2_41=Object.freeze(Object.defineProperty({__proto__:null,default:section2},Symbol.toStringTag,{value:"Module"})),setting$1="/orchestra-music-score/assets/setting.d2c48eac.svg",__glob_2_42=Object.freeze(Object.defineProperty({__proto__:null,default:setting$1},Symbol.toStringTag,{value:"Module"})),shuodiaoActive="/orchestra-music-score/assets/shuodiao-active.6b157b93.svg",__glob_2_43=Object.freeze(Object.defineProperty({__proto__:null,default:shuodiaoActive},Symbol.toStringTag,{value:"Module"})),shuodiao="/orchestra-music-score/assets/shuodiao.da855d30.svg",__glob_2_44=Object.freeze(Object.defineProperty({__proto__:null,default:shuodiao},Symbol.toStringTag,{value:"Module"})),speed$2="/orchestra-music-score/assets/speed.256b84ef.svg",__glob_2_45=Object.freeze(Object.defineProperty({__proto__:null,default:speed$2},Symbol.toStringTag,{value:"Module"})),staff$1="/orchestra-music-score/assets/staff.f226ff22.svg",__glob_2_46=Object.freeze(Object.defineProperty({__proto__:null,default:staff$1},Symbol.toStringTag,{value:"Module"})),start$2="/orchestra-music-score/assets/start.7b27072b.svg",__glob_2_47=Object.freeze(Object.defineProperty({__proto__:null,default:start$2},Symbol.toStringTag,{value:"Module"})),stop="/orchestra-music-score/assets/stop.e36ceb44.svg",__glob_2_48=Object.freeze(Object.defineProperty({__proto__:null,default:stop},Symbol.toStringTag,{value:"Module"})),taskBg="/orchestra-music-score/assets/task-bg.9304b5bf.svg",__glob_2_49=Object.freeze(Object.defineProperty({__proto__:null,default:taskBg},Symbol.toStringTag,{value:"Module"})),tuning="/orchestra-music-score/assets/tuning.4b86afaf.svg",__glob_2_50=Object.freeze(Object.defineProperty({__proto__:null,default:tuning},Symbol.toStringTag,{value:"Module"})),volPlus="/orchestra-music-score/assets/vol-plus.8301fc70.svg",__glob_2_51=Object.freeze(Object.defineProperty({__proto__:null,default:volPlus},Symbol.toStringTag,{value:"Module"})),vol="/orchestra-music-score/assets/vol.4b3b0407.svg",__glob_2_52=Object.freeze(Object.defineProperty({__proto__:null,default:vol},Symbol.toStringTag,{value:"Module"})),____="/orchestra-music-score/assets/评测记录.5949e468.svg",__glob_2_53=Object.freeze(Object.defineProperty({__proto__:null,default:____},Symbol.toStringTag,{value:"Module"})),getAssetsHomeFile=function(e){var t,n="./icons/".concat(e,".svg");return null===(t={"./icons/accompaniment.svg":__glob_2_0,"./icons/back.svg":__glob_2_1,"./icons/background-close.svg":__glob_2_2,"./icons/background.svg":__glob_2_3,"./icons/camera.svg":__glob_2_4,"./icons/cursor-icon-1.svg":__glob_2_5,"./icons/cursor-icon-2.svg":__glob_2_6,"./icons/cursor-icon-3.svg":__glob_2_7,"./icons/equilibrium.svg":__glob_2_8,"./icons/evaluating.svg":__glob_2_9,"./icons/fingeringOff.svg":__glob_2_10,"./icons/fingeringOn.svg":__glob_2_11,"./icons/guding-active.svg":__glob_2_12,"./icons/guding.svg":__glob_2_13,"./icons/icon-back.svg":__glob_2_14,"./icons/icon-staff-active.svg":__glob_2_15,"./icons/icon-staff.svg":__glob_2_16,"./icons/icon-zhuanpu.svg":__glob_2_17,"./icons/jia.svg":__glob_2_18,"./icons/jian.svg":__glob_2_19,"./icons/jianpu.svg":__glob_2_20,"./icons/model-1.svg":__glob_2_21,"./icons/model-2.svg":__glob_2_22,"./icons/model-3.svg":__glob_2_23,"./icons/modelType.svg":__glob_2_24,"./icons/modelType1.svg":__glob_2_25,"./icons/modelType2.svg":__glob_2_26,"./icons/music-list.svg":__glob_2_27,"./icons/music-list1.svg":__glob_2_28,"./icons/music.svg":__glob_2_29,"./icons/part.svg":__glob_2_30,"./icons/pause.svg":__glob_2_31,"./icons/play.svg":__glob_2_32,"./icons/practice.svg":__glob_2_33,"./icons/practise.svg":__glob_2_34,"./icons/record.svg":__glob_2_35,"./icons/reset-shengyin.svg":__glob_2_36,"./icons/reset.svg":__glob_2_37,"./icons/restore.svg":__glob_2_38,"./icons/section.svg":__glob_2_39,"./icons/section1.svg":__glob_2_40,"./icons/section2.svg":__glob_2_41,"./icons/setting.svg":__glob_2_42,"./icons/shuodiao-active.svg":__glob_2_43,"./icons/shuodiao.svg":__glob_2_44,"./icons/speed.svg":__glob_2_45,"./icons/staff.svg":__glob_2_46,"./icons/start.svg":__glob_2_47,"./icons/stop.svg":__glob_2_48,"./icons/task-bg.svg":__glob_2_49,"./icons/tuning.svg":__glob_2_50,"./icons/vol-plus.svg":__glob_2_51,"./icons/vol.svg":__glob_2_52,"./icons/评测记录.svg":__glob_2_53}[n])||void 0===t?void 0:t.default},ButtonIcon=defineComponent({name:"ButtonIcon",props:{name:{type:String}},setup:function(e){return function(){return e.name?createVNode("img",{src:getAssetsHomeFile(e.name)},null):null}}}),classnames$1={exports:{}};
  38. /*!
  39. Copyright (c) 2017 Jed Watson.
  40. Licensed under the MIT License (MIT), see
  41. http://jedwatson.github.io/classnames
  42. */
  43. !function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=_typeof3(i);if("string"===a||"number"===a)e.push(i);else if(Array.isArray(i)&&i.length){var o=n.apply(null,i);o&&e.push(o)}else if("object"===a)for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(classnames$1);var classnames=exports("I",classnames$1.exports),title$7="_title_1vit3_4",strong="_strong_1vit3_10",speed$1="_speed_1vit3_1",background="_background_1vit3_21",slider$2="_slider_1vit3_62",show$1="_show_1vit3_112",styles$p={"speed-change":"_speed-change_1vit3_1",title:title$7,strong:strong,speed:speed$1,background:background,slider:slider$2,"speed-button":"_speed-button_1vit3_69","custom-button":"_custom-button_1vit3_74",show:show$1},iconMinus="/orchestra-music-score/assets/icon-minus.72e10fdd.svg",iconPlus="/orchestra-music-score/assets/icon-plus.3bda4d0d.svg",iconresetMinus="/orchestra-music-score/assets/icon-resetMinus.fb6d2ff3.svg",state$1=reactive({speed:90,showHint:!1}),Speed=exports("b5",defineComponent({name:"speed",props:{changed:{type:Function,default:function(e){}},updateSpeed:{type:Function,default:function(e){}},mode:{type:String},changeMode:{type:Function,default:function(e){}},lib:{type:Object}},setup:function(e){var t,n=toRefs(e).lib;state$1.speed=null===(t=n.value)||void 0===t?void 0:t.speed;var r=function(){state$1.showHint=!0},i=function(){state$1.showHint=!1},a=function(t){state$1.speed=t,e.changed(state$1.speed)},o=function(){state$1.speed=Math.max(state$1.speed-1,45),e.changed(state$1.speed)},s=function(){state$1.speed=Math.min(state$1.speed+1,270),e.changed(state$1.speed)};return function(){return createVNode("div",{class:styles$p["speed-change"]},[createVNode("div",{class:styles$p.speed},[createVNode("div",null,[createVNode(Button,{color:"#01C1B5",icon:iconPlus,type:"primary",size:"mini",round:!0,disabled:270==state$1.speed,onClick:s},null),createVNode(Slider,{class:styles$p.slider,max:270,min:45,barHeight:"3px",buttonSize:"18px",modelValue:315-state$1.speed,"onUpdate:modelValue":function(t){return function(t){state$1.speed=t,e.updateSpeed(state$1.speed)}(315-t)},step:"1",vertical:!0,activeColor:"#ebedf0",onChange:function(e){return a(315-e)},onDragStart:r,onDragEnd:i},{button:function(){return createVNode("div",{class:styles$p["custom-button"]},[createVNode("span",null,[state$1.speed]),createVNode("div",{class:classnames(styles$p.title)},[createVNode("span",{class:styles$p.strong},[state$1.speed])])])}}),createVNode(Button,{class:styles$p.min,color:"#01C1B5",icon:iconMinus,type:"primary",size:"mini",round:!0,disabled:45==state$1.speed,onClick:o},null),createVNode(Button,{class:styles$p.reset,color:"#01C1B5",icon:iconresetMinus,type:"primary",size:"mini",round:!0,onClick:function(){var e;state$2.activeDetail&&a(null===(e=state$2.activeDetail)||void 0===e?void 0:e.originalSpeed)}},null)])])])}},methods:{resetSpeed:function(){var e,t;state$1.speed=null===(e=this.lib)||void 0===e?void 0:e.speed,this.changed(null===(t=this.lib)||void 0===t?void 0:t.speed)},refUpdateSpeed:function(e){state$1.speed=e,this.updateSpeed(state$1.speed)}}})),close$1="_close_1xean_1",bg$2="_bg_1xean_12",styles$o={close:close$1,bg:bg$2},iconColse="/orchestra-music-score/assets/close.c15efc4b.svg",Popups=defineComponent({name:"ColexiuPopup",props:{data:{type:Object,default:function(){return null}},zIndex:{type:Number,default:void 0},closeable:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},style:{type:Object}},setup:function(e,t){var n=t.slots,r=t.expose,i=ref(!1),a=ref(!1),o=function(){i.value=!1},s=function(){a.value=!1};return r({show:i,close:function(){i.value=!1},onShow:function(){i.value=!0,a.value=!0},onClose:o,onClosed:s}),function(){return createVNode(Popup,{show:i.value,zIndex:e.zIndex,onClose:o,onClosed:s,teleport:"body",onClickOverlay:o,overlay:e.overlay,round:!0,closeable:!1,style:_objectSpread2({},e.style),class:styles$o.bg,lockScroll:!0},{default:function(){return[a.value&&n.default&&n.default(e),e.closeable&&createVNode(Icon,{class:styles$o.close,name:iconColse,onClick:o},null)]}})}}}),title$6="_title_184ej_1",wrap$7="_wrap_184ej_8",item$2="_item_184ej_14",label$1="_label_184ej_18",styles$n={title:title$6,wrap:wrap$7,item:item$2,label:label$1},sliderClass={"active-color":"#FFB871","inactive-color":"#EAEAEA","button-size":"14"},Equalizer=defineComponent({name:"ColexiuEqualizer",setup:function(){var e=ref(10);return function(){return createVNode("div",{class:"containerPopups"},[createVNode("div",{class:styles$n.title},[createTextVNode("均衡器")]),createVNode("div",{class:styles$n.wrap},[createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("节拍器")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)]),createVNode(Divider,null,null),createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("伴奏")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)]),createVNode(Divider,null,null),createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("长笛")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)]),createVNode(Divider,null,null),createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("萨克斯")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)]),createVNode(Divider,null,null),createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("单簧管")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)]),createVNode(Divider,null,null),createVNode("div",{class:styles$n.item},[createVNode("span",{class:styles$n.label},[createTextVNode("长号")]),createVNode(Slider,mergeProps({modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},sliderClass),null)])])])}}}),container$7="_container_la5im_1",title$5="_title_la5im_5",practiseBtn="_practiseBtn_la5im_12",wrap$6="_wrap_la5im_21",styles$m={container:container$7,title:title$5,practiseBtn:practiseBtn,wrap:wrap$6};function _isSlot$3(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var Part=defineComponent({name:"ColexiuPart",setup:function(){var e=useOriginSearch(),t=Number(e["part-index"])||0,n=ref(state$2.partListNames[t]),r=function(){var t=state$2.partListNames.indexOf(n.value);n.value=state$2.partListNames[t];var r=queryString.stringify(_objectSpread2(_objectSpread2({},e),{},{"part-index":t}));location.search=r};return function(){var e;return createVNode("div",{class:["containerPopups",styles$m.container]},[createVNode("div",{class:styles$m.title},[createTextVNode("声部选择")]),createVNode("div",{class:styles$m.wrap},[createVNode(RadioGroup,{modelValue:n.value,"onUpdate:modelValue":function(e){return n.value=e}},_isSlot$3(e=state$2.partListNames.map((function(e){return createVNode(Radio,{name:e},_isSlot$3(e)?e:{default:function(){return[e]}})})))?e:{default:function(){return[e]}})]),createVNode("div",{style:{display:"flex",justifyContent:"center"}},[createVNode(Button,{class:styles$m.practiseBtn,onClick:r},null)])])}}}),partPopup=ref(null),equalizerPopup=ref(null),FloatWraper=defineComponent({name:"ColuxiuFloatWraper",setup:function(){return function(){return createVNode(Fragment,null,[createVNode(Popups,{ref:partPopup,style:{borderRadius:"8px"}},{default:function(){return[createVNode(Part,null,null)]}}),createVNode(Popups,{ref:equalizerPopup,style:{borderRadius:"8px"}},{default:function(){return[createVNode(Equalizer,null,null)]}})])}}});function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function __decorate(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==("undefined"==typeof Reflect?"undefined":_typeof3(Reflect))&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o
  44. /**
  45. * @license
  46. * Copyright 2019 Google LLC
  47. * SPDX-License-Identifier: BSD-3-Clause
  48. */}var t$3=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,e$8=Symbol(),n$5=new Map,s$3=function(){function e(t,n){if(_classCallCheck2(this,e),this._$cssResult$=!0,n!==e$8)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}return _createClass2(e,[{key:"styleSheet",get:function(){var e=n$5.get(this.cssText);return t$3&&void 0===e&&(n$5.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}},{key:"toString",value:function(){return this.cssText}}]),e}(),o$5=function(e){return new s$3("string"==typeof e?e:e+"",e$8)},r$3=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];var i=1===e.length?e[0]:n.reduce((function(t,n,r){return t+function(e){if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")}(n)+e[r+1]}),e[0]);return new s$3(i,e$8)},i$3=function(e,t){t$3?e.adoptedStyleSheets=t.map((function(e){return e instanceof CSSStyleSheet?e:e.styleSheet})):t.forEach((function(t){var n=document.createElement("style"),r=window.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}))},S$1=t$3?function(e){return e}:function(e){return e instanceof CSSStyleSheet?function(e){var t,n="",r=_createForOfIteratorHelper(e.cssRules);try{for(r.s();!(t=r.n()).done;){n+=t.value.cssText}}catch(err){r.e(err)}finally{r.f()}return o$5(n)}(e):e}
  49. /**
  50. * @license
  51. * Copyright 2017 Google LLC
  52. * SPDX-License-Identifier: BSD-3-Clause
  53. */,s$2,e$7=window.trustedTypes,r$2=e$7?e$7.emptyScript:"",h$2$1=window.reactiveElementPolyfillSupport,o$4={toAttribute:function(e,t){switch(t){case Boolean:e=e?r$2:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute:function(e,t){var n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},n$4=function(e,t){return t!==e&&(t==t||e==e)},l$3={attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},a$1=function(e){_inherits2(r,e);var t,n=_createSuper(r);function r(){var e;return _classCallCheck2(this,r),(e=n.call(this))._$Et=new Map,e.isUpdatePending=!1,e.hasUpdated=!1,e._$Ei=null,e.o(),e}return _createClass2(r,[{key:"o",value:function(){var e,t=this;this._$Ep=new Promise((function(e){return t.enableUpdating=e})),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((function(e){return e(t)}))}},{key:"addController",value:function(e){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}},{key:"removeController",value:function(e){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}},{key:"_$Em",value:function(){var e=this;this.constructor.elementProperties.forEach((function(t,n){e.hasOwnProperty(n)&&(e._$Et.set(n,e[n]),delete e[n])}))}},{key:"createRenderRoot",value:function(){var e,t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return i$3(t,this.constructor.elementStyles),t}},{key:"connectedCallback",value:function(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}},{key:"enableUpdating",value:function(e){}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._$Eg)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}},{key:"attributeChangedCallback",value:function(e,t,n){this._$AK(e,n)}},{key:"_$ES",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l$3,a=this.constructor._$Eh(e,i);if(void 0!==a&&!0===i.reflect){var o=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:o$4.toAttribute)(t,i.type);this._$Ei=e,null==o?this.removeAttribute(a):this.setAttribute(a,o),this._$Ei=null}}},{key:"_$AK",value:function(e,t){var n,r,i,a=this.constructor,o=a._$Eu.get(e);if(void 0!==o&&this._$Ei!==o){var s=a.getPropertyOptions(o),l=s.converter,u=null!==(i=null!==(r=null===(n=l)||void 0===n?void 0:n.fromAttribute)&&void 0!==r?r:"function"==typeof l?l:null)&&void 0!==i?i:o$4.fromAttribute;this._$Ei=o,this[o]=u(t,s.type),this._$Ei=null}}},{key:"requestUpdate",value:function(e,t,n){var r=!0;void 0!==e&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||n$4)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===n.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,n))):r=!1),!this.isUpdatePending&&r&&(this._$Ep=this._$E_())}},{key:"_$E_",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isUpdatePending=!0,e.prev=1,e.next=4,this._$Ep;case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),Promise.reject(e.t0);case 9:if(t=this.scheduleUpdate(),e.t1=null!=t,!e.t1){e.next=14;break}return e.next=14,t;case 14:return e.abrupt("return",!this.isUpdatePending);case 15:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return t.apply(this,arguments)})},{key:"scheduleUpdate",value:function(){return this.performUpdate()}},{key:"performUpdate",value:function(){var e,t=this;if(this.isUpdatePending){this.hasUpdated,this._$Et&&(this._$Et.forEach((function(e,n){return t[n]=e})),this._$Et=void 0);var n=!1,r=this._$AL;try{(n=this.shouldUpdate(r))?(this.willUpdate(r),null===(e=this._$Eg)||void 0===e||e.forEach((function(e){var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(r)):this._$EU()}catch(e){throw n=!1,this._$EU(),e}n&&this._$AE(r)}}},{key:"willUpdate",value:function(e){}},{key:"_$AE",value:function(e){var t;null===(t=this._$Eg)||void 0===t||t.forEach((function(e){var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}},{key:"_$EU",value:function(){this._$AL=new Map,this.isUpdatePending=!1}},{key:"updateComplete",get:function(){return this.getUpdateComplete()}},{key:"getUpdateComplete",value:function(){return this._$Ep}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._$EC&&(this._$EC.forEach((function(e,n){return t._$ES(n,t[n],e)})),this._$EC=void 0),this._$EU()}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}}],[{key:"addInitializer",value:function(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this.elementProperties.forEach((function(n,r){var i=e._$Eh(r,n);void 0!==i&&(e._$Eu.set(i,r),t.push(i))})),t}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l$3;if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"==_typeof3(e)?Symbol():"__"+e,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}}},{key:"getPropertyDescriptor",value:function(e,t,n){return{get:function(){return this[t]},set:function(r){var i=this[e];this[t]=r,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(e){return this.elementProperties.get(e)||l$3}},{key:"finalize",value:function(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;var e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){var t,n=this.properties,r=_createForOfIteratorHelper([].concat(_toConsumableArray2(Object.getOwnPropertyNames(n)),_toConsumableArray2(Object.getOwnPropertySymbols(n))));try{for(r.s();!(t=r.n()).done;){var i=t.value;this.createProperty(i,n[i])}}catch(err){r.e(err)}finally{r.f()}}return this.elementStyles=this.finalizeStyles(this.styles),!0}},{key:"finalizeStyles",value:function(e){var t=[];if(Array.isArray(e)){var n,r=_createForOfIteratorHelper(new Set(e.flat(1/0).reverse()));try{for(r.s();!(n=r.n()).done;){var i=n.value;t.unshift(S$1(i))}}catch(err){r.e(err)}finally{r.f()}}else void 0!==e&&t.push(S$1(e));return t}},{key:"_$Eh",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}}]),r}(_wrapNativeSuper2(HTMLElement)),t$2;a$1.finalized=!0,a$1.elementProperties=new Map,a$1.elementStyles=[],a$1.shadowRootOptions={mode:"open"},null==h$2$1||h$2$1({ReactiveElement:a$1}),(null!==(s$2=globalThis.reactiveElementVersions)&&void 0!==s$2?s$2:globalThis.reactiveElementVersions=[]).push("1.3.1");var i$2=globalThis.trustedTypes,s$1=i$2?i$2.createPolicy("lit-html",{createHTML:function(e){return e}}):void 0,e$6="lit$".concat((Math.random()+"").slice(9),"$"),o$3="?"+e$6,n$3="<".concat(o$3,">"),l$2=document,h$1$1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l$2.createComment(e)},r$1=function(e){return null===e||"object"!=_typeof3(e)&&"function"!=typeof e},d=Array.isArray,u$1=function(e){var t;return d(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},c$2=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v$3=/-->/g,a$2=/>/g,f$1=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,_$1=/'/g,m$2=/"/g,g=/^(?:script|style|textarea|title)$/i,p$1=function(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return{_$litType$:e,strings:t,values:r}}},$=p$1(1),b=Symbol.for("lit-noChange"),w$2=Symbol.for("lit-nothing"),T$1=new WeakMap,x=function(e,t,n){var r,i,a=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:t,o=a._$litPart$;if(void 0===o){var s=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:null;a._$litPart$=o=new N$1(t.insertBefore(h$1$1(),s),s,void 0,null!=n?n:{})}return o._$AI(e),o},A=l$2.createTreeWalker(l$2,129,null,!1),C=function(e,t){for(var n,r=e.length-1,i=[],a=2===t?"<svg>":"",o=c$2,s=0;s<r;s++){for(var l=e[s],u=void 0,c=void 0,h=-1,f=0;f<l.length&&(o.lastIndex=f,null!==(c=o.exec(l)));)f=o.lastIndex,o===c$2?"!--"===c[1]?o=v$3:void 0!==c[1]?o=a$2:void 0!==c[2]?(g.test(c[2])&&(n=RegExp("</"+c[2],"g")),o=f$1):void 0!==c[3]&&(o=f$1):o===f$1?">"===c[0]?(o=null!=n?n:c$2,h=-1):void 0===c[1]?h=-2:(h=o.lastIndex-c[2].length,u=c[1],o=void 0===c[3]?f$1:'"'===c[3]?m$2:_$1):o===m$2||o===_$1?o=f$1:o===v$3||o===a$2?o=c$2:(o=f$1,n=void 0);var d=o===f$1&&e[s+1].startsWith("/>")?" ":"";a+=o===c$2?l+n$3:h>=0?(i.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+e$6+d):l+e$6+(-2===h?(i.push(void 0),s):d)}var p=a+(e[r]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s$1?s$1.createHTML(p):p,i]},E=function(){function e(t,n){var r,i=t.strings,a=t._$litType$;_classCallCheck2(this,e),this.parts=[];var o=0,s=0,l=i.length-1,u=this.parts,c=_slicedToArray(C(i,a),2),h=c[0],f=c[1];if(this.el=e.createElement(h,n),A.currentNode=this.el.content,2===a){var d=this.el.content,p=d.firstChild;p.remove(),d.append.apply(d,_toConsumableArray2(p.childNodes))}for(;null!==(r=A.nextNode())&&u.length<l;){if(1===r.nodeType){if(r.hasAttributes()){var m,v=[],y=_createForOfIteratorHelper(r.getAttributeNames());try{for(y.s();!(m=y.n()).done;){var b=m.value;if(b.endsWith("$lit$")||b.startsWith(e$6)){var x=f[s++];if(v.push(b),void 0!==x){var w=r.getAttribute(x.toLowerCase()+"$lit$").split(e$6),_=/([.?@])?(.*)/.exec(x);u.push({type:1,index:o,name:_[2],strings:w,ctor:"."===_[1]?M:"?"===_[1]?H:"@"===_[1]?I:S})}else u.push({type:6,index:o})}}}catch(err){y.e(err)}finally{y.f()}for(var k=0,E=v;k<E.length;k++){var P=E[k];r.removeAttribute(P)}}if(g.test(r.tagName)){var T=r.textContent.split(e$6),R=T.length-1;if(R>0){r.textContent=i$2?i$2.emptyScript:"";for(var N=0;N<R;N++)r.append(T[N],h$1$1()),A.nextNode(),u.push({type:2,index:++o});r.append(T[R],h$1$1())}}}else if(8===r.nodeType)if(r.data===o$3)u.push({type:2,index:o});else for(var L=-1;-1!==(L=r.data.indexOf(e$6,L+1));)u.push({type:7,index:o}),L+=e$6.length-1;o++}}return _createClass2(e,null,[{key:"createElement",value:function(e,t){var n=l$2.createElement("template");return n.innerHTML=e,n}}]),e}();function P(e,t){var n,r,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,s=arguments.length>3?arguments[3]:void 0;if(t===b)return t;var l=void 0!==s?null===(n=o._$Cl)||void 0===n?void 0:n[s]:o._$Cu,u=r$1(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===u?l=void 0:(l=new u(e))._$AT(e,o,s),void 0!==s?(null!==(i=(a=o)._$Cl)&&void 0!==i?i:a._$Cl=[])[s]=l:o._$Cu=l),void 0!==l&&(t=P(e,l._$AS(e,t.values),l,s)),t}var V=function(){function e(t,n){_classCallCheck2(this,e),this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=n}return _createClass2(e,[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"p",value:function(e){var t,n=this._$AD,r=n.el.content,i=n.parts,a=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:l$2).importNode(r,!0);A.currentNode=a;for(var o=A.nextNode(),s=0,l=0,u=i[0];void 0!==u;){if(s===u.index){var c=void 0;2===u.type?c=new N$1(o,o.nextSibling,this,e):1===u.type?c=new u.ctor(o,u.name,u.strings,this,e):6===u.type&&(c=new L$k(o,this,e)),this.v.push(c),u=i[++l]}s!==(null==u?void 0:u.index)&&(o=A.nextNode(),s++)}return a}},{key:"m",value:function(e){var t,n=0,r=_createForOfIteratorHelper(this.v);try{for(r.s();!(t=r.n()).done;){var i=t.value;void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,n),n+=i.strings.length-2):i._$AI(e[n])),n++}}catch(err){r.e(err)}finally{r.f()}}}]),e}(),N$1=function(){function e(t,n,r,i){var a;_classCallCheck2(this,e),this.type=2,this._$AH=w$2,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=r,this.options=i,this._$Cg=null===(a=null==i?void 0:i.isConnected)||void 0===a||a}return _createClass2(e,[{key:"_$AU",get:function(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}},{key:"parentNode",get:function(){var e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;e=P(this,e,t),r$1(e)?e===w$2||null==e||""===e?(this._$AH!==w$2&&this._$AR(),this._$AH=w$2):e!==this._$AH&&e!==b&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):u$1(e)?this.S(e):this.$(e)}},{key:"A",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._$AB;return this._$AA.parentNode.insertBefore(e,t)}},{key:"k",value:function(e){this._$AH!==e&&(this._$AR(),this._$AH=this.A(e))}},{key:"$",value:function(e){this._$AH!==w$2&&r$1(this._$AH)?this._$AA.nextSibling.data=e:this.k(l$2.createTextNode(e)),this._$AH=e}},{key:"T",value:function(e){var t,n=e.values,r=e._$litType$,i="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=E.createElement(r.h,this.options)),r);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===i)this._$AH.m(n);else{var a=new V(i,this),o=a.p(this.options);a.m(n),this.k(o),this._$AH=a}}},{key:"_$AC",value:function(e){var t=T$1.get(e.strings);return void 0===t&&T$1.set(e.strings,t=new E(e)),t}},{key:"S",value:function(t){d(this._$AH)||(this._$AH=[],this._$AR());var n,r,i=this._$AH,a=0,o=_createForOfIteratorHelper(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;a===i.length?i.push(n=new e(this.A(h$1$1()),this.A(h$1$1()),this,this.options)):n=i[a],n._$AI(s),a++}}catch(err){o.e(err)}finally{o.f()}a<i.length&&(this._$AR(n&&n._$AB.nextSibling,a),i.length=a)}},{key:"_$AR",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,n=arguments.length>1?arguments[1]:void 0;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,n);t&&t!==this._$AB;){var r=t.nextSibling;t.remove(),t=r}}},{key:"setConnected",value:function(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}]),e}(),S=function(){function e(t,n,r,i,a){_classCallCheck2(this,e),this.type=1,this._$AH=w$2,this._$AN=void 0,this.element=t,this.name=n,this._$AM=i,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=w$2}return _createClass2(e,[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=this.strings,a=!1;if(void 0===i)e=P(this,e,t,0),(a=!r$1(e)||e!==this._$AH&&e!==b)&&(this._$AH=e);else{var o,s,l=e;for(e=i[0],o=0;o<i.length-1;o++)(s=P(this,l[n+o],t,o))===b&&(s=this._$AH[o]),a||(a=!r$1(s)||s!==this._$AH[o]),s===w$2?e=w$2:e!==w$2&&(e+=(null!=s?s:"")+i[o+1]),this._$AH[o]=s}a&&!r&&this.C(e)}},{key:"C",value:function(e){e===w$2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}]),e}(),M=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck2(this,n),(e=t.apply(this,arguments)).type=3,e}return _createClass2(n,[{key:"C",value:function(e){this.element[this.name]=e===w$2?void 0:e}}]),n}(S),k=i$2?i$2.emptyScript:"",H=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck2(this,n),(e=t.apply(this,arguments)).type=4,e}return _createClass2(n,[{key:"C",value:function(e){e&&e!==w$2?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}]),n}(S),I=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i,a,o){var s;return _classCallCheck2(this,n),(s=t.call(this,e,r,i,a,o)).type=5,s}return _createClass2(n,[{key:"_$AI",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;if((e=null!==(t=P(this,e,n,0))&&void 0!==t?t:w$2)!==b){var r=this._$AH,i=e===w$2&&r!==w$2||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,a=e!==w$2&&(r===w$2||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}}},{key:"handleEvent",value:function(e){var t,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==n?n:this.element,e):this._$AH.handleEvent(e)}}]),n}(S),L$k=function(){function e(t,n,r){_classCallCheck2(this,e),this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=r}return _createClass2(e,[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(e){P(this,e)}}]),e}(),z=window.litHtmlPolyfillSupport,l$1,o$2;null==z||z(E,N$1),(null!==(t$2=globalThis.litHtmlVersions)&&void 0!==t$2?t$2:globalThis.litHtmlVersions=[]).push("2.2.1");var s$4=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck2(this,n),(e=t.apply(this,arguments)).renderOptions={host:_assertThisInitialized2(e)},e._$Dt=void 0,e}return _createClass2(n,[{key:"createRenderRoot",value:function(){var e,t,r=_get(_getPrototypeOf2(n.prototype),"createRenderRoot",this).call(this);return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=r.firstChild),r}},{key:"update",value:function(e){var t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),_get(_getPrototypeOf2(n.prototype),"update",this).call(this,e),this._$Dt=x(t,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;_get(_getPrototypeOf2(n.prototype),"connectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;_get(_getPrototypeOf2(n.prototype),"disconnectedCallback",this).call(this),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return b}}]),n}(a$1);s$4.finalized=!0,s$4._$litElement$=!0,null===(l$1=globalThis.litElementHydrateSupport)||void 0===l$1||l$1.call(globalThis,{LitElement:s$4});var n$2=globalThis.litElementPolyfillSupport;null==n$2||n$2({LitElement:s$4}),(null!==(o$2=globalThis.litElementVersions)&&void 0!==o$2?o$2:globalThis.litElementVersions=[]).push("3.2.0");
  54. /**
  55. * @license
  56. * Copyright 2017 Google LLC
  57. * SPDX-License-Identifier: BSD-3-Clause
  58. */
  59. var n$1=function(e){return function(t){return"function"==typeof t?function(e,t){return window.customElements.define(e,t),t}(e,t):function(e,t){return{kind:t.kind,elements:t.elements,finisher:function(t){window.customElements.define(e,t)}}}(e,t)}}
  60. /**
  61. * @license
  62. * Copyright 2017 Google LLC
  63. * SPDX-License-Identifier: BSD-3-Clause
  64. */,i$1$1=function(e,t){return"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?_objectSpread2(_objectSpread2({},t),{},{finisher:function(n){n.createProperty(t.key,e)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer:function(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher:function(n){n.createProperty(t.key,e)}}};function e$5(e){return function(t,n){return void 0!==n?function(e,t,n){t.constructor.createProperty(n,e)}(e,t,n):i$1$1(e,t)};
  65. /**
  66. * @license
  67. * Copyright 2017 Google LLC
  68. * SPDX-License-Identifier: BSD-3-Clause
  69. */}
  70. /**
  71. * @license
  72. * Copyright 2017 Google LLC
  73. * SPDX-License-Identifier: BSD-3-Clause
  74. */var o$1=function(e){var t=e.finisher,n=e.descriptor;return function(e,r){var i;if(void 0===r){var a=null!==(i=e.originalKey)&&void 0!==i?i:e.key,o=null!=n?{kind:"method",placement:"prototype",key:a,descriptor:n(e.key)}:_objectSpread2(_objectSpread2({},e),{},{key:a});return null!=t&&(o.finisher=function(e){t(e,a)}),o}var s=e.constructor;void 0!==n&&Object.defineProperty(e,r,n(r)),null==t||t(s,r)}}
  75. /**
  76. * @license
  77. * Copyright 2017 Google LLC
  78. * SPDX-License-Identifier: BSD-3-Clause
  79. */,n$6;
  80. /**
  81. * @license
  82. * Copyright 2017 Google LLC
  83. * SPDX-License-Identifier: BSD-3-Clause
  84. */function i$4(e,t){return o$1({descriptor:function(n){var r={get:function(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var i="symbol"==_typeof3(n)?Symbol():"__"+n;r.get=function(){var t,n;return void 0===this[i]&&(this[i]=null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==n?n:null),this[i]}}return r}})}
  85. /**
  86. * @license
  87. * Copyright 2021 Google LLC
  88. * SPDX-License-Identifier: BSD-3-Clause
  89. */null===(n$6=window.HTMLSlotElement)||void 0===n$6||n$6.prototype.assignedElements;var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return commonjsRequire(e,null==t?n.path:t)}},n.exports),n.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var lottie_svg=createCommonjsModule((function(module,exports){"undefined"!=typeof navigator&&function(e,t){module.exports=t()}(0,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var r,i,a,o,s,l,u,c;switch(l=n*(1-t),u=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),c=n*(1-(1-s)*t),o%6){case 0:r=n,i=c,a=l;break;case 1:r=u,i=n,a=l;break;case 2:r=l,i=n,a=c;break;case 3:r=l,i=u,a=n;break;case 4:r=c,i=l,a=n;break;case 5:r=n,i=l,a=u}return[r,i,a]}function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function o(){t||((t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var o,s,l,u,c,f,d=i.length;for(s=0;s<d;s+=1)if("ks"in(o=i[s])&&!o.completed){if(o.completed=!0,o.tt&&(i[s-1].td=o.tt),o.hasMask){var p=o.masksProperties;for(u=p.length,l=0;l<u;l+=1)if(p[l].pt.k.i)r(p[l].pt.k);else for(f=p[l].pt.k.length,c=0;c<f;c+=1)p[l].pt.k[c].s&&r(p[l].pt.k[c].s[0]),p[l].pt.k[c].e&&r(p[l].pt.k[c].e[0])}0===o.ty?(o.layers=t(o.refId,a),e(o.layers,a)):4===o.ty?n(o.shapes):5===o.ty&&h(o)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,i,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;i<a;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var a,o=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(void 0,r=(n=e[t]).t.d,n.t.d={k:[{s:r,t:0}]})}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,a=n.assets.length;for(r=0;r<a;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),s=(a=[4,7,99],function(e){if(e.chars&&!i(a,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(n(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,n,r=e.length;for(t=0;t<r;t+=1)5===e[t].ty&&(n=void 0,"number"==typeof(n=e[t].t.p).a&&(n.a={a:0,k:n.a}),"number"==typeof n.p&&(n.p={a:0,k:n.p}),"number"==typeof n.r&&(n.r={a:0,k:n.r}))}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,a=n.assets.length;for(r=0;r<a;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),u=function(){var e=[4,1,9];function t(e){var n,r,i,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,a,o,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(a=u.length,i=0;i<a;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,o=0;o<s;o+=1)u[i].pt.k[o].s&&(u[i].pt.k[o].s[0].c=u[i].cl),u[i].pt.k[o].e&&(u[i].pt.k[o].e[0].c=u[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function h(e){0===e.t.a.length&&e.t.p}var f={completeData:function(n){n.__complete||(u(n),o(n),s(n),l(n),c(n),e(n.layers,n.assets),function(n,r){if(n){var i=0,a=n.length;for(i=0;i<a;i+=1)1===n[i].t&&(n[i].data.layers=t(n[i].data.refId,r),e(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return f.checkColors=u,f.checkChars=s,f.checkPathProperties=l,f.checkShapes=c,f.completeLayers=e,f}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(e){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),r(a);else try{a=e(o),r(a)}catch(e){i&&i(e)}};try{o.open("GET",t,!0)}catch(e){o.open("GET",n+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))}))).onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var a={img:i,assetData:t};return a},createImageData:function(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[r].cm)}catch(n){try{a.payload=e(t[r].cm)}catch(e){a.payload={name:t[r]}}}n.push(a)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return(_typeof$4="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==a,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,o=a.length;for(n=0;n<o;n+=1)for(t=0;t<i;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":case"drawnFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,a=!0,o=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||c()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new AnimationItem;return h(a,e),a.setData(e,n),a}function u(){i+=1,p()}function c(){i-=1}function h(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",u),e.addEventListener("_idle",c),t.push({elem:n,animation:e}),r+=1}function f(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!o?window.requestAnimationFrame(f):a=!0}function d(e){n=e,window.requestAnimationFrame(f)}function p(){!o&&i&&a&&(window.requestAnimationFrame(d),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return h(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)},e.setDirection=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(r=0;r<a;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===a){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,i){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,i)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,p()},e.setVolume=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,i,a){var o=a||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new l([e,n,r,i]);return t[o]=s,s}},t={},n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function a(e){return 3*e}function o(e,t,n){return((r(t,n)*e+i(t,n))*e+a(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+a(t)}function l(e){this._p=e,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:o(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<11;++n)this._mSampleValues[n]=o(.1*n,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],r=this._mSampleValues,i=0,a=1;10!==a&&r[a]<=e;++a)i+=.1;var l=i+(e-r[--a])/(r[a+1]-r[a])*.1,u=s(l,t,n);return u>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=s(t,n,r);if(0===a)return t;t-=(o(t,n,r)-e)/a}return t}(e,l,t,n):0===u?l:function(e,t,n,r,i){var a,s,l=0;do{(a=o(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++l<10);return s}(e,i,i+.1,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,a=createSizedArray(i);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===i&&(a=pooling.double(a),i*=2),n&&n(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,i,a){var o=e*r+t*i+n*a-i*r-a*e-n*t;return o>-.001&&o<.001}var n=function(e,t,n,r){var i,a,o,s,l,u,c=getDefaultCurveSegments(),h=0,f=[],d=[],p=bezierLengthPool.newElement();for(o=n.length,i=0;i<c;i+=1){for(l=i/(c-1),u=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*n[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*t[a],f[a]=s,null!==d[a]&&(u+=bmPow(f[a]-d[a],2)),d[a]=f[a];u&&(h+=u=bmSqrt(u)),p.percents[i]=l,p.lengths[i]=h}return p.addedLength=h,p};function r(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var a,o=(a={},function(e,n,o,s){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var u,c,h,f,d,p,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(g=2);var b=new r(g);for(h=o.length,u=0;u<g;u+=1){for(m=createSizedArray(h),d=u/(g-1),p=0,c=0;c<h;c+=1)f=bmPow(1-d,3)*e[c]+3*bmPow(1-d,2)*d*(e[c]+o[c])+3*(1-d)*bmPow(d,2)*(n[c]+s[c])+bmPow(d,3)*n[c],m[c]=f,null!==y&&(p+=bmPow(m[c]-y[c],2));v+=p=bmSqrt(p),b.points[u]=new i(p,m),y=m}b.segmentLength=v,a[l]=b}return a[l]});function s(e,t){var n=t.percents,r=t.lengths,i=n.length,a=bmFloor((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===r[a])return n[a];for(var l=r[a]>o?-1:1,u=!0;u;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),u=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];u=!1}return n[a]+(n[a+1]-n[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,u=r.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=n(a[t],a[t+1],o[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=n(a[t],a[0],o[t],s[0]),c+=u[t].addedLength),r.totalLength=c,r},getNewSegment:function(t,n,r,i,a,o,u){a<0?a=0:a>1&&(a=1);var c,h=s(a,u),f=s(o=o>1?1:o,u),d=t.length,p=1-h,m=1-f,g=p*p*p,v=h*p*p*3,y=h*h*p*3,b=h*h*h,S=p*p*m,x=h*p*m+p*h*m+p*p*f,w=h*h*m+p*h*f+h*p*f,_=h*h*f,k=p*m*m,A=h*m*m+p*f*m+p*m*f,E=h*f*m+p*f*f+h*m*f,C=h*f*f,P=m*m*m,T=f*m*m+m*f*m+m*m*f,M=f*f*m+m*f*f+f*m*f,I=f*f*f;for(c=0;c<d;c+=1)l[4*c]=e.round(1e3*(g*t[c]+v*r[c]+y*i[c]+b*n[c]))/1e3,l[4*c+1]=e.round(1e3*(S*t[c]+x*r[c]+w*i[c]+_*n[c]))/1e3,l[4*c+2]=e.round(1e3*(k*t[c]+A*r[c]+E*i[c]+C*n[c]))/1e3,l[4*c+3]=e.round(1e3*(P*t[c]+T*r[c]+M*i[c]+I*n[c]))/1e3;return l},getPointInSegment:function(t,n,r,i,a,o){var l=s(a,o),u=1-l;return[e.round(1e3*(u*u*u*t[0]+(l*u*u+u*l*u+u*u*l)*r[0]+(l*l*u+u*l*l+l*u*l)*i[0]+l*l*l*n[0]))/1e3,e.round(1e3*(u*u*u*t[1]+(l*u*u+u*l*u+u*u*l)*r[1]+(l*l*u+u*l*l+l*u*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(n,r,i,a,o,s,l,u,c){if(0===i&&0===s&&0===c)return t(n,r,a,o,l,u);var h,f=e.sqrt(e.pow(a-n,2)+e.pow(o-r,2)+e.pow(s-i,2)),d=e.sqrt(e.pow(l-n,2)+e.pow(u-r,2)+e.pow(c-i,2)),p=e.sqrt(e.pow(l-a,2)+e.pow(u-o,2)+e.pow(c-s,2));return(h=f>d?f>p?f-d-p:p-d-f:p>d?p-d-f:d-f-p)>-1e-4&&h<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,o,s,l,u,c,h,f,d,p=t.lastIndex,m=p,g=this.keyframes.length-1,v=!0;v;){if(a=this.keyframes[m],o=this.keyframes[m+1],m===g-1&&e>=o.t-i){a.h&&(a=o),p=0;break}if(o.t-i>e){p=m;break}m<g-1?m+=1:(p=0,v=!1)}s=this.keyframesMetadata[m]||{};var y,b=o.t-i,S=a.t-i;if(a.to){s.bezierData||(s.bezierData=bez.buildBezierData(a.s,o.s||a.e,a.to,a.ti));var x=s.bezierData;if(e>=b||e<S){var w=e>=b?x.points.length-1:0;for(u=x.points[w].point.length,l=0;l<u;l+=1)n[l]=x.points[w].point[l]}else{s.__fnct?d=s.__fnct:(d=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,s.__fnct=d),c=d((e-S)/(b-S));var _,k=x.segmentLength*c,A=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastAddedLength:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastPoint:0,v=!0,h=x.points.length;v;){if(A+=x.points[f].partialLength,0===k||0===c||f===x.points.length-1){for(u=x.points[f].point.length,l=0;l<u;l+=1)n[l]=x.points[f].point[l];break}if(k>=A&&k<A+x.points[f+1].partialLength){for(_=(k-A)/x.points[f+1].partialLength,u=x.points[f].point.length,l=0;l<u;l+=1)n[l]=x.points[f].point[l]+(x.points[f+1].point[l]-x.points[f].point[l])*_;break}f<h-1?f+=1:v=!1}t._lastPoint=f,t._lastAddedLength=A-x.points[f].partialLength,t._lastKeyframeIndex=m}}else{var E,C,P,T,M;if(g=a.s.length,y=o.s||a.e,this.sh&&1!==a.h)e>=b?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=S?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):function(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=Math.atan2(2*r*a-2*n*i,1-2*r*r-2*i*i),s=Math.asin(2*n*r+2*i*a),l=Math.atan2(2*n*a-2*r*i,1-2*n*n-2*i*i);e[0]=o/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}(n,function(e,t,n){var r,i,a,o,s,l=[],u=e[0],c=e[1],h=e[2],f=e[3],d=t[0],p=t[1],m=t[2],g=t[3];return(i=u*d+c*p+h*m+f*g)<0&&(i=-i,d=-d,p=-p,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),o=Math.sin((1-n)*r)/a,s=Math.sin(n*r)/a):(o=1-n,s=n),l[0]=o*u+s*d,l[1]=o*c+s*p,l[2]=o*h+s*m,l[3]=o*f+s*g,l}(r(a.s),r(y),(e-S)/(b-S)));else for(m=0;m<g;m+=1)1!==a.h&&(e>=b?c=1:e<S?c=0:(a.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?d=s.__fnct[m]:(E=void 0===a.o.x[m]?a.o.x[0]:a.o.x[m],C=void 0===a.o.y[m]?a.o.y[0]:a.o.y[m],P=void 0===a.i.x[m]?a.i.x[0]:a.i.x[m],T=void 0===a.i.y[m]?a.i.y[0]:a.i.y[m],d=BezierFactory.getBezierEasing(E,C,P,T).get,s.__fnct[m]=d)):s.__fnct?d=s.__fnct:(E=a.o.x,C=a.o.y,P=a.i.x,T=a.i.y,d=BezierFactory.getBezierEasing(E,C,P,T).get,a.keyframeMetadata=d),c=d((e-S)/(b-S)))),y=o.s||a.e,M=1===a.h?a.s[m]:a.s[m]+(y[m]-a.s[m])*c,"multidimensional"===this.propType?n[m]=M:n=M}return t.lastIndex=p,n}function r(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2);return[s*l*o+i*a*u,s*a*o+i*l*u,i*l*o-s*a*u,i*a*o-s*l*u]}function i(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function a(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=o,this.setVValue=a,this.addEffect=s}function u(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=o,this.setVValue=a,this.addEffect=s}function c(t,r,l,u){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=l||1,this.elem=t,this.container=u,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=o,this.setVValue=a,this.interpolateValue=n,this.effectsSequence=[i.bind(this)],this.addEffect=s}function h(t,r,l,u){var c;this.propType="multidimensional";var h,f,d,p,m=r.k.length;for(c=0;c<m-1;c+=1)r.k[c].to&&r.k[c].s&&r.k[c+1]&&r.k[c+1].s&&(h=r.k[c].s,f=r.k[c+1].s,d=r.k[c].to,p=r.k[c].ti,(2===h.length&&(h[0]!==f[0]||h[1]!==f[1])&&bez.pointOnLine2D(h[0],h[1],f[0],f[1],h[0]+d[0],h[1]+d[1])&&bez.pointOnLine2D(h[0],h[1],f[0],f[1],f[0]+p[0],f[1]+p[1])||3===h.length&&(h[0]!==f[0]||h[1]!==f[1]||h[2]!==f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],f[0],f[1],f[2],h[0]+d[0],h[1]+d[1],h[2]+d[2])&&bez.pointOnLine3D(h[0],h[1],h[2],f[0],f[1],f[2],f[0]+p[0],f[1]+p[1],f[2]+p[2]))&&(r.k[c].to=null,r.k[c].ti=null),h[0]===f[0]&&h[1]===f[1]&&0===d[0]&&0===d[1]&&0===p[0]&&0===p[1]&&(2===h.length||h[2]===f[2]&&0===d[2]&&0===p[2])&&(r.k[c].to=null,r.k[c].ti=null));this.effectsSequence=[i.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=u,this.comp=t.comp,this.getValue=o,this.setVValue=a,this.interpolateValue=n,this.frameId=-1;var g=r.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),c=0;c<g;c+=1)this.v[c]=e,this.pv[c]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=s}return{getProp:function(e,t,n,r,i){var a;if(t.k.length)if("number"==typeof t.k[0])a=new u(e,t,r,i);else switch(n){case 0:a=new c(e,t,r,i);break;case 1:a=new h(e,t,r,i)}else a=new l(e,t,r,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(i,a,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function e(e,t,n){var r,i,a,o,s,l,u,c,h,f=n.lastIndex,d=this.keyframes;if(e<d[0].t-this.offsetTime)r=d[0].s[0],a=!0,f=0;else if(e>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var p,m,g,v=f,y=d.length-1,b=!0;b&&(p=d[v],!((m=d[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},f=v,!(a=1===p.h)){if(e>=m.t-this.offsetTime)c=1;else if(e<p.t-this.offsetTime)c=0;else{var S;g.__fnct?S=g.__fnct:(S=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,g.__fnct=S),c=S((e-(p.t-this.offsetTime))/(m.t-this.offsetTime-(p.t-this.offsetTime)))}i=m.s?m.s[0]:p.e[0]}r=p.s[0]}for(l=t._length,u=r.i[0].length,n.lastIndex=f,o=0;o<l;o+=1)for(s=0;s<u;s+=1)h=a?r.i[o][s]:r.i[o][s]+(i.i[o][s]-r.i[o][s])*c,t.i[o][s]=h,h=a?r.o[o][s]:r.o[o][s]+(i.o[o][s]-r.o[o][s])*c,t.o[o][s]=h,h=a?r.v[o][s]:r.v[o][s]+(i.v[o][s]-r.v[o][s])*c,t.v[o][s]=h}function t(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return-999999!==r&&(r<t&&e<t||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function s(e,r,i){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===i?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=n,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[t.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=i,a.prototype.setVValue=r,a.prototype.addEffect=o,s.prototype.getValue=i,s.prototype.interpolateShape=e,s.prototype.setVValue=r,s.prototype.addEffect=o;var l=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-i,o.v[1][0]=a?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+i,o.v[3][0]=a?t-r:t+r,o.v[3][1]=n,o.i[0][0]=a?t-r*e:t+r*e,o.i[0][1]=n-i,o.i[1][0]=a?t+r:t-r,o.i[1][1]=n-i*e,o.i[2][0]=a?t+r*e:t-r*e,o.i[2][1]=n+i,o.i[3][0]=a?t-r:t+r,o.i[3][1]=n+i*e,o.o[0][0]=a?t+r*e:t-r*e,o.o[0][1]=n-i,o.o[1][0]=a?t+r:t-r,o.o[1][1]=n+i*e,o.o[2][0]=a?t-r*e:t+r*e,o.o[2][1]=n+i,o.o[3][0]=a?t-r:t+r,o.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),u=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,h=2*Math.PI*s/(2*i),f=2*Math.PI*l/(2*i),d=-Math.PI/2;d+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=o?u:c,r=o?h:f;var m=(t=o?s:l)*Math.cos(d),g=t*Math.sin(d),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*p,g-y*r*n*p,m+v*r*n*p,g+y*r*n*p,e,!0),o=!o,d+=a*p}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,a=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(o),u=r*Math.sin(o),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),h=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*a*i*s,u-h*a*i*s,l+c*a*i*s,u+h*a*i*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-a,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+a,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+a,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-a,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+a,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+a,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-a,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],e),e}(),h={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new s(e,t,n):new a(e,t,n):5===n?r=new c(e,t):6===n?r=new l(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return s}};return h}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(n(e),n(t))}function h(r,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function f(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function d(e,t,n,r,i,a,o,s,l,u,c,h,f,d,p,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=h,this.props[12]=f,this.props[13]=d,this.props[14]=p,this.props[15]=m,this}function p(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,a,o,s,l,u,c,h,f,d,p,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===a&&0===o&&0===s&&0===l&&0===u&&1===c&&0===h)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*c+g[15]*p,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],S=g[3],x=g[4],w=g[5],_=g[6],k=g[7],A=g[8],E=g[9],C=g[10],P=g[11],T=g[12],M=g[13],I=g[14],R=g[15];return g[0]=v*e+y*i+b*l+S*f,g[1]=v*t+y*a+b*u+S*d,g[2]=v*n+y*o+b*c+S*p,g[3]=v*r+y*s+b*h+S*m,g[4]=x*e+w*i+_*l+k*f,g[5]=x*t+w*a+_*u+k*d,g[6]=x*n+w*o+_*c+k*p,g[7]=x*r+w*s+_*h+k*m,g[8]=A*e+E*i+C*l+P*f,g[9]=A*t+E*a+C*u+P*d,g[10]=A*n+E*o+C*c+P*p,g[11]=A*r+E*s+C*h+P*m,g[12]=T*e+M*i+I*l+R*f,g[13]=T*t+M*a+I*u+R*d,g[14]=T*n+M*o+I*c+R*p,g[15]=T*r+M*s+I*h+R*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function y(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function x(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function w(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function _(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function E(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=A(e[t]);return r}function C(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];r[0]=e[0]*i+e[1]*o+l,r[1]=e[0]*a+e[1]*s+u,r[2]=t[0]*i+t[1]*o+l,r[3]=t[0]*a+t[1]*s+u,r[4]=n[0]*i+n[1]*o+l,r[5]=n[0]*a+n[1]*s+u}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function M(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function R(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=u,this.scale=f,this.setTransform=d,this.translate=p,this.transform=m,this.applyToPoint=S,this.applyToX=x,this.applyToY=w,this.applyToZ=_,this.applyToPointArray=P,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=M,this.to2dCSS=R,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=E,this.inversePoint=A,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}var lottie={},standalone="__[STANDALONE]__",queryString;function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}if(lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.1",standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src.replace(/^[^\?]+\??/,""),getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],u=a.length;for(o=0;o<u;o+=1){var c,h;(s=a[o]).e*i<r||s.s*i>r+n||(c=s.s*i<=r?0:(s.s*i-r)/n,h=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([c,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,u,c,h,f=this.shapes.length,d=0;if(n===t)for(i=0;i<f;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<f;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var p,m,g=[];for(i=0;i<f;i+=1)if((p=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=p.shape.paths)._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(u=this.releasePathsData(p.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(r.shapes[s]),u.push(c),h+=c.totalLength;p.totalShapeLength=h,p.pathsData=u}d+=h,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var v,y=t,b=n,S=0;for(i=f-1;i>=0;i-=1)if((p=this.shapes[i]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&f>1?(v=this.calculateShapeEdges(t,n,p.totalShapeLength,S,d),S+=p.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:p.totalShapeLength*y,e:p.totalShapeLength*b}):y>=1?g.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(b-1)}):(g.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(b-1)}));var x=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var w=x.pop();this.addPaths(x,m),x=this.addShapes(p,g[1],w)}else this.addPaths(x,m),x=this.addShapes(p,g[1]);this.addPaths(x,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(n[0],n[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,a,o,s,l,u,c,h=e.pathsData,f=e.shape.paths.shapes,d=e.shape.paths._length,p=0,m=[],g=!0;for(n?(s=n._length,c=n._length):(n=shapePool.newElement(),s=0,c=0),m.push(n),r=0;r<d;r+=1){for(l=h[r].lengths,n.c=f[r].c,a=f[r].c?l.length:l.length+1,i=1;i<a;i+=1)if(p+(o=l[i-1]).addedLength<t.s)p+=o.addedLength,n.c=!1;else{if(p>t.e){n.c=!1;break}t.s<=p&&t.e>=p+o.addedLength?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[i],f[r].v[i],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[i],f[r].o[i-1],f[r].i[i],(t.s-p)/o.addedLength,(t.e-p)/o.addedLength,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1),p+=o.addedLength,s+=1}if(f[r].c&&l.length){if(o=l[i-1],p<=t.e){var v=l[i-1].addedLength;t.s<=p&&t.e>=p+v?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[0],f[r].v[0],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[0],f[r].o[i-1],f[r].i[0],(t.s-p)/v,(t.e-p)/v,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1)}else n.c=!1;p+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>t.e)break;r<d-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=i,r[1]/=i;var o,s,l,u,c,h,f=shapePool.newElement();for(f.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(r[0]-e.v[a][0])*n,s=e.v[a][1]+(r[1]-e.v[a][1])*n,l=e.o[a][0]+(r[0]-e.o[a][0])*-n,u=e.o[a][1]+(r[1]-e.o[a][1])*-n,c=e.i[a][0]+(r[0]-e.i[a][0])*-n,h=e.i[a][1]+(r[1]-e.i[a][1])*-n,f.setTripleAt(o,s,l,u,c,h,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*o*i,r.p.v[1]*o*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/s:s,a?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}a+=1}this._currentCopies=l;var f=this.o.v,d=f%1,p=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,S=0;if(f>0){for(;S<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),S+=d)}else if(f<0){for(;S>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),S-=d)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==S){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];S+=1,a-=1,r+=i}}else for(a=this._currentCopies,r=0,i=1;a;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=i;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var i,a,o,s,l,u,c,h,f,d,p,m,g=e._length,v=0;for(n=0;n<g;n+=1)i=e.v[n],o=e.o[n],a=e.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(s[0]-i[0])*u,h=m=i[1]-(i[1]-s[1])*u,f=c-(c-i[0])*roundCorner,d=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,f,d,p,m,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=f=i[0]+(s[0]-i[0])*u,h=d=i[1]+(s[1]-i[1])*u,p=c-(c-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,f,d,p,m,v),v+=1):(r.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function i(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}(e)+", "+t,{node:r,w:i,parent:n}}function a(e,t){var n=createNS("text");n.style.fontSize="100px";var r=getFontProperties(t);return n.setAttribute("font-family",t.fFamily),n.setAttribute("font-style",r.style),n.setAttribute("font-weight",r.weight),n.textContent="1",t.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",t.fClass)):n.style.fontFamily=t.fFamily,e.appendChild(n),createTag("canvas").getContext("2d").font=t.fWeight+" "+t.fStyle+" 100px "+t.fFamily,n}var o=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return o.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},o.isZeroWidthJoiner=function(e,t){return t?e===r[0]&&t===r[1]:e===r[1]},o.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},o.prototype={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);var n,r=e.list,o=r.length,s=o;for(n=0;n<o;n+=1){var l,u,c=!0;if(r[n].loaded=!1,r[n].monoCase=i(r[n].fFamily,"monospace"),r[n].sansCase=i(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<l.length;u+=1)-1!==l[u].href.indexOf(r[n].fPath)&&(c=!1);if(c){var f=createTag("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.type="text/css",f.rel="stylesheet",f.href=r[n].fPath,document.body.appendChild(f)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<l.length;u+=1)r[n].fPath===l[u].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",r[n].fPath),t.appendChild(d)}}}else r[n].loaded=!0,s-=1;r[n].helper=a(t,r[n]),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),i=e.charCodeAt(0);if(!r.cache[i+1]){var a=r.helper;if(" "===e){a.textContent="|"+e+"|";var o=a.getComputedTextLength();a.textContent="||";var s=a.getComputedTextLength();r.cache[i+1]=(o-s)/100}else a.textContent=e,r.cache[i+1]=a.getComputedTextLength()/100}return r.cache[i+1]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,i=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},o}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i;i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var a="unidimensional"===n?new Number(i):Object.assign({},i);return a.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===n?i[0]:i,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,a=new Number(i);return a.value=i,n(a,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,a.value!==i&&((a=new Number(i)).value=i,n(a,t,"unidimensional")),a}}(i):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",i),o=createTypedArray("float32",i);return a.value=o,n(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)o[t]=e.v[t]*r,a[t]=o[t];return a}}(i):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,i,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(u){var c;function h(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=o,h.applyPoint=a,h.toWorld=n,h.toWorldVec=t,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=s,h.sampleImage=l,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u;var f=getDescriptor(c=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=0===u.data.ty?u.data.h:100,h.width=0===u.data.ty?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=function(e){h.mask=new MaskManagerInterface(e,u)},h.registerEffectsInterface=function(e){h.effect=e},h}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,i,a){function o(e){for(var t=n.ef,r=0,i=t.length;r<i;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?u[r]:u[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(o,i),u=[],c=n.ef.length;for(s=0;s<c;s+=1)5===n.ef[s].ty?u.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,a)):u.push(t(r.effectElements[s],n.ef[s].ty,a,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(o,"color",{get:function(){return u[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),o.enabled=0!==n.en,o.active=o.enabled,o}function t(e,t,n,r){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,i=[],a=t.data.ef,o=t.effectsManager.effectElements.length;for(r=0;r<o;r+=1)i.push(e(a[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,o=s.length;r<o;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},ShapePathInterface=function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var a=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function e(e,o,f){var d,p=[],m=e?e.length:0;for(d=0;d<m;d+=1)"gr"===e[d].ty?p.push(t(e[d],o[d],f)):"fl"===e[d].ty?p.push(n(e[d],o[d],f)):"st"===e[d].ty?p.push(i(e[d],o[d],f)):"tm"===e[d].ty?p.push(a(e[d],o[d],f)):"tr"===e[d].ty||("el"===e[d].ty?p.push(s(e[d],o[d],f)):"sr"===e[d].ty?p.push(l(e[d],o[d],f)):"sh"===e[d].ty?p.push(ShapePathInterface(e[d],o[d],f)):"rc"===e[d].ty?p.push(u(e[d],o[d],f)):"rd"===e[d].ty?p.push(c(e[d],o[d],f)):"rp"===e[d].ty?p.push(h(e[d],o[d],f)):"gf"===e[d].ty?p.push(r(e[d],o[d],f)):p.push((e[d],o[d],function(){return null})));return p}function t(t,n,r){var i=function e(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return e.content;default:return e.transform}};i.propertyGroup=propertyGroupFactory(i,r);var a=function(t,n,r){var i,a=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};a.propertyGroup=propertyGroupFactory(a,r),i=e(t.it,n.it,a.propertyGroup),a.numProperties=i.length;var s=o(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,n,i.propertyGroup),s=o(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=a,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(e,t,n){var r,i=propertyGroupFactory(u,n),a=propertyGroupFactory(l,i);function o(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)o(r),t.d.dataProps[r].p.setGroupProperty(a);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function a(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function o(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function s(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",i)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),a.pt.setGroupProperty(PropertyInterface("Points",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",i)),a.s.setGroupProperty(PropertyInterface("Size",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",i)),a.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return r})),i=e(t,n,a.propertyGroup),a.numProperties=i.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return void 0!==n&&(e.textProperty.currentData.t=void 0,(t=new String(n)).value=n||new String(n)),t}}),n},getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var i,a=r.length;for(n=0;n<a;n+=1)i=new GroupEffect(r[n],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return(_typeof$2="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,a[n].ty){case 0:r=new SliderEffect(a[n],t,this);break;case 1:r=new AngleEffect(a[n],t,this);break;case 2:r=new ColorEffect(a[n],t,this);break;case 3:r=new PointEffect(a[n],t,this);break;case 4:case 7:r=new CheckboxEffect(a[n],t,this);break;case 10:r=new LayerIndexEffect(a[n],t,this);break;case 11:r=new MaskIndexEffect(a[n],t,this);break;case 5:r=new EffectsManager(a[n],t);break;default:r=new NoValueEffect(a[n])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof$2(n=n[e])?r:n;var i=e.indexOf(t);if(-1!==i){var a=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(n=n[a])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,u,c,h,f,d=this.masksProperties,p=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<o;r+=1)if(("a"!==d[r].mode&&"n"!==d[r].mode||d[r].inv||100!==d[r].o.k||d[r].o.x)&&(v="mask",y="mask"),"s"!==d[r].mode&&"i"!==d[r].mode||0!==p?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===d[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),elem:i,lastPath:""},a.appendChild(i);else{var b;if(p+=1,i.setAttribute("fill","s"===d[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==d[r].x.k?(v="mask",y="mask",f=PropertyFactory.getProp(this.element,d[r].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),c.appendChild(h),a.appendChild(c),i.setAttribute("stroke","s"===d[r].mode?"#000000":"#ffffff")):(h=null,f=null),this.storedData[r]={elem:i,x:f,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===d[r].mode){l=m.length;var S=createNS("g");for(s=0;s<l;s+=1)S.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+p),x.appendChild(i),a.appendChild(x),S.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+p+")"),m.length=0,m.push(S)}else m.push(i);d[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),invRect:u},this.viewData[r].prop.k||this.drawPath(d[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);p>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this.audio.volume(e)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var a,o=t.length;for(n=0;n<o;n+=1)a=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",o)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(t={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}},t),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),t;function SVGTintFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");if(n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result","f2"),e.appendChild(n),this.matrixFilter=n,100!==t.effectElements[2].p.v||t.effectElements[2].p.k){var r,i=createNS("feMerge");e.appendChild(i),(r=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),i.appendChild(r),(r=createNS("feMergeNode")).setAttribute("in","f2"),i.appendChild(r)}}function SVGFillFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(e,t){this.initialized=!1,this.filterManager=t,this.elem=e,this.paths=[]}function SVGTritoneFilter(e,t){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),e.appendChild(n);var r=createNS("feComponentTransfer");r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),this.matrixFilter=r;var i=createNS("feFuncR");i.setAttribute("type","table"),r.appendChild(i),this.feFuncR=i;var a=createNS("feFuncG");a.setAttribute("type","table"),r.appendChild(a),this.feFuncG=a;var o=createNS("feFuncB");o.setAttribute("type","table"),r.appendChild(o),this.feFuncB=o}function SVGProLevelsFilter(e,t){this.filterManager=t;var n=this.filterManager.effectElements,r=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",r)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",r)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",r)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",r)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),r=createNS("feComponentTransfer")),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&(r.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(r),this.feFuncRComposed=this.createFeFunc("feFuncR",r),this.feFuncGComposed=this.createFeFunc("feFuncG",r),this.feFuncBComposed=this.createFeFunc("feFuncB",r))}function SVGDropShadowEffect(e,t){var n=t.container.globalData.renderConfig.filterSize;e.setAttribute("x",n.x),e.setAttribute("y",n.y),e.setAttribute("width",n.width),e.setAttribute("height",n.height),this.filterManager=t;var r=createNS("feGaussianBlur");r.setAttribute("in","SourceAlpha"),r.setAttribute("result","drop_shadow_1"),r.setAttribute("stdDeviation","0"),this.feGaussianBlur=r,e.appendChild(r);var i=createNS("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOffset=i,e.appendChild(i);var a=createNS("feFlood");a.setAttribute("flood-color","#00ff00"),a.setAttribute("flood-opacity","1"),a.setAttribute("result","drop_shadow_3"),this.feFlood=a,e.appendChild(a);var o=createNS("feComposite");o.setAttribute("in","drop_shadow_3"),o.setAttribute("in2","drop_shadow_2"),o.setAttribute("operator","in"),o.setAttribute("result","drop_shadow_4"),e.appendChild(o);var s,l=createNS("feMerge");e.appendChild(l),s=createNS("feMergeNode"),l.appendChild(s),(s=createNS("feMergeNode")).setAttribute("in","SourceGraphic"),this.feMergeNode=s,this.feMerge=l,this.originalNodeAdded=!1,l.appendChild(s)}SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a="0 0 0 "+l*o+" ";var u,c=l*(s-o),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/h);for(u=0;u<f;u+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],a=r[1]+" "+n[1]+" "+t[1],o=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var a,o,s=0,l=Math.min(e,t),u=Math.max(e,t),c=Array.call(null,{length:256}),h=0,f=i-r,d=t-e;s<=256;)o=(a=s/256)<=l?d<0?i:r:a>=u?d<0?r:i:r+f*Math.pow((a-e)/d,1/n),c[h]=o,h+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");e.appendChild(n),this.feGaussianBlur=n}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;a<=o-2&&(r=i[a+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),i.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+n),r.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,i=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};var registeredEffects={};function SVGEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0,i=createElementID(),a=filtersFactory.createFilter(i,!0),o=0;for(this.filters=[],t=0;t<r;t+=1){n=null;var s=e.data.ef[t].ty;registeredEffects[s]&&(n=new registeredEffects[s].effect(a,e.effectsManager.effectElements[t],e),registeredEffects[s].countsAsEffect&&(o+=1)),20===e.data.ef[t].ty?(o+=1,n=new SVGTintFilter(a,e.effectsManager.effectElements[t])):21===e.data.ef[t].ty?(o+=1,n=new SVGFillFilter(a,e.effectsManager.effectElements[t])):22===e.data.ef[t].ty?n=new SVGStrokeEffect(e,e.effectsManager.effectElements[t]):23===e.data.ef[t].ty?(o+=1,n=new SVGTritoneFilter(a,e.effectsManager.effectElements[t])):24===e.data.ef[t].ty?(o+=1,n=new SVGProLevelsFilter(a,e.effectsManager.effectElements[t])):25===e.data.ef[t].ty?(o+=1,n=new SVGDropShadowEffect(a,e.effectsManager.effectElements[t])):28===e.data.ef[t].ty?n=new SVGMatte3Effect(a,e.effectsManager.effectElements[t],e):29===e.data.ef[t].ty&&(o+=1,n=new SVGGaussianBlurEffect(a,e.effectsManager.effectElements[t])),n&&this.filters.push(n)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,n){registeredEffects[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),r=n,i.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var o=createNS("g");a.appendChild(o),e=createElementID(),t=filtersFactory.createFilter(e);var s=createNS("feComponentTransfer");s.setAttribute("in","SourceGraphic"),t.appendChild(s);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),s.appendChild(l),this.globalData.defs.appendChild(t);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),o.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),o.appendChild(u),o.appendChild(this.layerElement),r=o,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),o.appendChild(u),n.appendChild(this.layerElement),r=n,o.appendChild(n)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var f=createElementID();if(c.setAttribute("id",f),c.appendChild(h),this.globalData.defs.appendChild(c),this.checkMasks()){var d=createNS("g");d.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")"),d.appendChild(this.layerElement),this.transformedElement=d,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,o=t.length||0;for(i=0;i<o;i+=1)a=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=createNS("stop"),r.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),c.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=c,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[i][0],o[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function i(n,r,i){var a,o,s,l,u,c,h,f,d,p,m,g=r.styles.length,v=r.lvl;for(c=0;c<g;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<v){for(f=t.reset(),p=v-r.styles[c].lvl,m=r.transformers.length-1;!l&&p>0;)l=r.transformers[m].mProps._mdf||l,p-=1,m-=1;if(l)for(p=v-r.styles[c].lvl,m=r.transformers.length-1;p>0;)d=r.transformers[m].mProps.v.props,f.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),p-=1,m-=1}else f=e;if(o=(h=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(u=h.shapes[a])&&u._length&&(s+=buildShapeString(u,u._length,u.c,f));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function a(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function o(e,t,n){s(e,t,n),l(e,t,n)}function s(e,t,n){var r,i,a,o,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,h=t.e.v;if(t.o._mdf||n){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||n){var d=1===e.t?"x1":"cx",p="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(p,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(d,c[0]),t.of.setAttribute(p,c[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(a=r.length,i=0;i<a;i+=1)(o=r[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||n)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=r[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",h[0]),t.of.setAttribute("y2",h[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var v=Math.atan2(h[1]-c[1],h[0]-c[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,S=Math.cos(v+t.a.v)*b+c[0],x=Math.sin(v+t.a.v)*b+c[1];l.setAttribute("fx",S),l.setAttribute("fy",x),u&&!t.g._collapsable&&(t.of.setAttribute("fx",S),t.of.setAttribute("fy",x))}}function l(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return s;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(n=0;n<a;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,a,o){var s,l,u,c,h,f,d=[].concat(a),p=e.length-1,m=[],g=[];for(s=p;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=n[f-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(u=t[s].it.length,l=0;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,d,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],r)),c=t[s].transform,d.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],d,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty?(f?(h=t[s]).closed=!1:((h=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===e[s].ty&&(f?(h=t[s]).closed=!0:(h=ShapeModifiers.getModifier(e[s].ty),t[s]=h,h.init(this,e,s,t),this.shapeModifiers.push(h),o=!1),g.push(h));this.addProcessedElement(e[s],s+1)}for(p=m.length,s=0;s<p;s+=1)m[s].closed=!0;for(p=g.length,s=0;s<p;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)a=n!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,o=!1;i<a;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(i):t>=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),o=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,n)?(o=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),o=!0):r.push(e.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,o,s,l=this.elem.globalData.fontManager,u=this.data,c=[],h=0,f=u.m.g,d=0,p=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),S=0,x=getFontProperties(b);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var w,_=e.tr/1e3*e.finalSize;if(e.sz)for(var k,A,E=!0,C=e.sz[0],P=e.sz[1];E;){k=0,v=0,n=(A=this.buildFinalText(e.t)).length,_=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)w=A[t].charCodeAt(0),r=!1," "===A[t]?T=t:13!==w&&3!==w||(v=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(A[t],b.fStyle,b.fFamily),S=r?0:s.w*e.finalSize/100):S=l.measureText(A[t],e.f,e.finalSize),v+S>C&&" "!==A[t]?(-1===T?n+=1:t=T,k+=e.finalLineHeight||1.2*e.finalSize,A.splice(t,T===t?1:0,"\r"),T=-1,v=0):(v+=S,v+=_);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=A,n=e.finalText.length,E=!1)}v=-_,S=0;var M,I=0;for(t=0;t<n;t+=1)if(r=!1,13===(w=(M=e.finalText[t]).charCodeAt(0))||3===w?(I=0,g.push(v),y=v>y?v:y,v=-2*_,i="",r=!0,m+=1):i=M,l.chars?(s=l.getCharData(M,b.fStyle,l.getFontByName(e.f).fFamily),S=r?0:s.w*e.finalSize/100):S=l.measureText(i,e.f,e.finalSize)," "===M?I+=S+_:(v+=S+_+I,I=0),c.push({l:S,an:S,add:d,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==f){if(d+=S,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(d-=S);p<=t;)c[p].an=d,c[p].ind=h,c[p].extra=S,p+=1;h+=1,d=0}}else if(3==f){if(d+=S,""===i||t===n-1){for(""===i&&(d-=S);p<=t;)c[p].an=d,c[p].ind=h,c[p].extra=S,p+=1;d=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(e.l=c,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var R,N,L,D,B=u.a;o=B.length;var F=[];for(a=0;a<o;a+=1){for((R=B[a]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),D=0,L=R.s.b,t=0;t<n;t+=1)(N=c[t]).anIndexes[a]=D,(1==L&&""!==N.val||2==L&&""!==N.val&&" "!==N.val||3==L&&(N.n||" "==N.val||t==n-1)||4==L&&(N.n||t==n-1))&&(1===R.s.rn&&F.push(D),D+=1);u.a[a].s.totalChars=D;var O,V=-1;if(1===R.s.rn)for(t=0;t<n;t+=1)V!=(N=c[t]).anIndexes[a]&&(V=N.anIndexes[a],O=F.splice(Math.floor(Math.random()*F.length),1)[0]),N.anIndexes[a]=O}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,o,s).get,u=0,c=this.finalS,h=this.finalE,f=this.data.sh;if(2===f)u=l(u=h===c?r>=h?1:0:e(0,t(.5/(h-c)+(r-c)/(h-c),1)));else if(3===f)u=l(u=h===c?r>=h?0:1:1-e(0,t(.5/(h-c)+(r-c)/(h-c),1)));else if(4===f)h===c?u=0:(u=e(0,t(.5/(h-c)+(r-c)/(h-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===f){if(h===c)u=0;else{var d=h-c,p=-d/2+(r=t(e(0,r+.5-c),h-c)),m=d/2;u=Math.sqrt(1-p*p/(m*m))}u=l(u)}else 6===f?(h===c?u=0:(r=t(e(0,r+.5-c),h-c),u=(1+Math.cos(Math.PI+2*Math.PI*r/(h-c)))/2),u=l(u)):(r>=n(c)&&(u=e(0,t(r-c<0?t(h,1)-(c-r):h-r,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u<v?u=0:(u=(u-v)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,n):r,rx:a.rx?i(e,a.rx,0,degToRads,n):r,ry:a.ry?i(e,a.ry,0,degToRads,n):r,sk:a.sk?i(e,a.sk,0,degToRads,n):r,sa:a.sa?i(e,a.sa,0,degToRads,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,a,o,s,l,u,c,h,f,d,p,m,g,v,y,b,S,x=this._moreOptions.alignment.v,w=this._animatorsData,_=this._textData,k=this.mHelper,A=this._renderType,E=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(S=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=S.v;for(this._pathData.r.v&&(T=T.reverse()),o={tLength:0,segments:[]},a=T._length-1,v=0,i=0;i<a;i+=1)P=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength;i=a,S.v.c&&(P=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,f=0,h=1,u=0,c=!0,m=o.segments,s<0&&S.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),h=(p=m[f=m.length-1].points).length-1;s<0;)s+=p[h].partialLength,(h-=1)<0&&(h=(p=m[f-=1].points).length-1);d=(p=m[f].points)[h-1],g=(l=p[h]).partialLength}a=C.length,n=0,r=0;var M,I,R,N,L,D=1.2*e.finalSize*.714,B=!0;R=w.length;var F,O,V,G,z,U,H,j,W,q,X,Y,Q=-1,K=s,Z=f,J=h,$=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ie=2===e.j?-.5:-1,ae=0,oe=!0;for(i=0;i<a;i+=1)if(C[i].n){for(ne&&(ne+=re);ae<i;)C[ae].animatorJustifyOffset=ne,ae+=1;ne=0,oe=!0}else{for(I=0;I<R;I+=1)(M=w[I].a).t.propType&&(oe&&2===e.j&&(re+=M.t.v*ie),(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?ne+=M.t.v*L[0]*ie:ne+=M.t.v*L*ie);oe=!1}for(ne&&(ne+=re);ae<i;)C[ae].animatorJustifyOffset=ne,ae+=1}for(i=0;i<a;i+=1){if(k.reset(),G=1,C[i].n)n=0,r+=e.yOffset,r+=B?1:0,s=K,B=!1,this._hasMaskedPath&&(h=J,d=(p=m[f=Z].points)[h-1],g=(l=p[h]).partialLength,u=0),ee="",X="",W="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==C[i].line){switch(e.j){case 1:s+=v-e.lineWidths[C[i].line];break;case 2:s+=(v-e.lineWidths[C[i].line])/2}$=C[i].line}Q!==C[i].ind&&(C[Q]&&(s+=C[Q].extra),s+=C[i].an/2,Q=C[i].ind),s+=x[0]*C[i].an*.005;var se=0;for(I=0;I<R;I+=1)(M=w[I].a).p.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?se+=M.p.v[0]*L[0]:se+=M.p.v[0]*L),M.a.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?se+=M.a.v[0]*L[0]:se+=M.a.v[0]*L);for(c=!0,this._pathData.a.v&&(s=.5*C[0].an+(v-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*Q/(a-1),s+=this._pathData.f.v);c;)u+g>=s+se||!p?(y=(s+se-u)/l.partialLength,O=d.point[0]+(l.point[0]-d.point[0])*y,V=d.point[1]+(l.point[1]-d.point[1])*y,k.translate(-x[0]*C[i].an*.005,-x[1]*D*.01),c=!1):p&&(u+=l.partialLength,(h+=1)>=p.length&&(h=0,m[f+=1]?p=m[f].points:S.v.c?(h=0,p=m[f=0].points):(u-=l.partialLength,p=null)),p&&(d=l,g=(l=p[h]).partialLength));F=C[i].an/2-C[i].add,k.translate(-F,0,0)}else F=C[i].an/2-C[i].add,k.translate(-F,0,0),k.translate(-x[0]*C[i].an*.005,-x[1]*D*.01,0);for(I=0;I<R;I+=1)(M=w[I].a).t.propType&&(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?L.length?s+=M.t.v*L[0]:s+=M.t.v*L:L.length?n+=M.t.v*L[0]:n+=M.t.v*L));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(z=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<R;I+=1)(M=w[I].a).a.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?k.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):k.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(I=0;I<R;I+=1)(M=w[I].a).s.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?k.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):k.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(I=0;I<R;I+=1){if(M=w[I].a,L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),M.sk.propType&&(L.length?k.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):k.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?k.rotateZ(-M.r.v*L[2]):k.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?k.rotateY(M.ry.v*L[1]):k.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?k.rotateX(M.rx.v*L[0]):k.rotateX(M.rx.v*L)),M.o.propType&&(L.length?G+=(M.o.v*L[0]-G)*L[0]:G+=(M.o.v*L-G)*L),e.strokeWidthAnim&&M.sw.propType&&(L.length?U+=M.sw.v*L[0]:U+=M.sw.v*L),e.strokeColorAnim&&M.sc.propType)for(j=0;j<3;j+=1)L.length?z[j]+=(M.sc.v[j]-z[j])*L[0]:z[j]+=(M.sc.v[j]-z[j])*L;if(e.fillColorAnim&&e.fc){if(M.fc.propType)for(j=0;j<3;j+=1)L.length?H[j]+=(M.fc.v[j]-H[j])*L[0]:H[j]+=(M.fc.v[j]-H[j])*L;M.fh.propType&&(H=L.length?addHueToRGB(H,M.fh.v*L[0]):addHueToRGB(H,M.fh.v*L)),M.fs.propType&&(H=L.length?addSaturationToRGB(H,M.fs.v*L[0]):addSaturationToRGB(H,M.fs.v*L)),M.fb.propType&&(H=L.length?addBrightnessToRGB(H,M.fb.v*L[0]):addBrightnessToRGB(H,M.fb.v*L))}}for(I=0;I<R;I+=1)(M=w[I].a).p.propType&&(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),this._hasMaskedPath?L.length?k.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):k.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?k.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):k.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(e.strokeWidthAnim&&(W=U<0?0:U),e.strokeColorAnim&&(q="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),e.fillColorAnim&&e.fc&&(X="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,x[1]*D*.01+r,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(O,V,0),s-=x[0]*C[i].an*.005,C[i+1]&&Q!==C[i+1].ind&&(s+=C[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line]),0,0);break;case 2:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line])/2,0,0)}k.translate(0,-e.ls),k.translate(F,0,0),k.translate(x[0]*C[i].an*.005,x[1]*D*.01,0),n+=C[i].l+.001*e.tr*e.finalSize}"html"===A?ee=k.toCSS():"svg"===A?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],Y=G}E<=i?(N=new LetterProps(Y,W,q,X,ee,te),this.renderedLetters.push(N),E+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[i],this.lettersChangedFlag=N.update(Y,W,q,X,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,a="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,a+=buildShapeString(r,r.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"}},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,c=this.data.singleShape,h=0,f=0,d=!0,p=.001*n.tr*n.finalSize;if(!c||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!c||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var v=createNS("g");o.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(u.reset(),u.scale(n.finalSize/100,n.finalSize/100),c&&(s[e].n&&(h=-p,f+=n.yOffset,f+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,h,f),h+=s[e].l||0,h+=p),l){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=m.data),y=new SVGShapeElement(b,this.globalData,this)}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var S=this.textContainer,x="start";switch(n.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}S.setAttribute("text-anchor",x),S.setAttribute("letter-spacing",p);var w=this.buildTextContents(n.finalText);for(t=w.length,f=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=w[e],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",S.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,f+=n.finalLineHeight;this.layerElement.appendChild(S)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=a[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?n.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(n)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier);var Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e}();function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}function seedRandom(e,t){var n=this,r=t.pow(256,6),i=t.pow(2,52),a=2*i;function o(e){var t,n=e.length,r=this,i=0,a=r.i=r.j=0,o=r.S=[];for(n||(e=[n++]);i<256;)o[i]=i++;for(i=0;i<256;i++)o[i]=o[a=255&a+e[i%n]+(t=o[i])],o[a]=t;r.g=function(e){for(var t,n=0,i=r.i,a=r.j,o=r.S;e--;)t=o[i=255&i+1],n=256*n+o[255&(o[i]=o[a=255&a+t])+(o[a]=t)];return r.i=i,r.j=a,n}}function s(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function l(e,t){for(var n,r=e+"",i=0;i<r.length;)t[255&i]=255&(n^=19*t[255&i])+r.charCodeAt(i++);return u(t)}function u(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(c,h,f){var d=[],p=l(function e(t,n){var r,i=[],a=_typeof$1(t);if(n&&"object"==a)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==a?t:t+"\0"}((h=!0===h?{entropy:!0}:h||{}).entropy?[c,u(e)]:null===c?function(){try{var t=new Uint8Array(256);return(n.crypto||n.msCrypto).getRandomValues(t),u(t)}catch(t){var r=n.navigator,i=r&&r.plugins;return[+new Date,n,i,n.screen,u(e)]}}():c,3),d),m=new o(d),g=function(){for(var e=m.g(6),t=r,n=0;e<i;)e=256*(e+n),t*=256,n=m.g(1);for(;e>=a;)e/=2,t/=2,n>>>=1;return(e+n)/t};return g.int32=function(){return 0|m.g(4)},g.quick=function(){return m.g(4)/4294967296},g.double=g,l(u(m.S),e),(h.pass||f||function(e,n,r,i){return i&&(i.S&&s(i,m),e.state=function(){return s(m,{})}),r?(t.random=e,n):e})(g,p,"global"in h?h.global:this==t,h.state)},l(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==_typeof3(Symbol.iterator)?function(e){return _typeof3(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof3(e)})(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof(e),r=_typeof(t);if("string"===n||"string"===r)return e+t;if(isNumerable(n,e)&&isNumerable(r,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof(e),r=_typeof(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var n,r,i,a=_typeof(e),o=_typeof(t);if(isNumerable(a,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,a=_typeof(e),o=_typeof(t);if(isNumerable(a,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],a=e[2],o=Math.max(r,i,a),s=Math.min(r,i,a),l=(o+s)/2;if(o===s)t=0,n=0;else{var u=o-s;switch(n=l>.5?u/(2-o-s):u/(o+s),o){case r:t=(i-a)/u+(i<a?6:0);break;case i:t=(a-r)/u+2;break;case a:t=(r-i)/u+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],a=e[1],o=e[2];if(0===a)t=o,r=o,n=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;t=hue2rgb(l,s,i+1/3),n=hue2rgb(l,s,i),r=hue2rgb(l,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return r;if(e>=n)return i;var o,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var l=r.length,u=createTypedArray("float32",l);for(o=0;o<l;o+=1)u[o]=r[o]+(i[o]-r[o])*s;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),a=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+a*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,a=e.length,o=shapePool.newElement();o.setPathData(!!r,a);var s,l,u=[0,0];for(i=0;i<a;i+=1)s=t&&t[i]?t[i]:u,l=n&&n[i]?n[i]:u,o.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,i=this.pv.length?this.pv.length:1,a=createTypedArray("float32",i),o=Math.floor(5*time);for(n=0,r=0;n<o;){for(r=0;r<i;r+=1)a[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),u=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)u[r]=this.pv[r]+a[r]+(-t+2*t*BMMath.random())*l;return u}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,a){void 0===i?(i=n,a=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=(a[s]-i[s])*o+i[s];return u}return(a-i)*o+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind;elem.hierarchy&&elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!elem.hierarchy||!elem.hierarchy.length)&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var i;for(i=0;i<t.length;i+=1)r+=Math.pow(n[i]-t[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=this.getValueAtTime(e),i=this.getValueAtTime(e+-.001);if(r.length)for(t=createTypedArray("float32",r.length),n=0;n<r.length;n+=1)t[n]=(i[n]-r[n])/-.001;else t=(i-r)/-.001;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[u.length-1].t;if(l<=c)return this.pv;if(n?i=c-(r=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>u.length-1)&&(t=u.length-1),r=c-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),p=Math.floor((l-i)/r);if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=(f[a]-h[a])*p+d[a];return s}return(f-h)*p+d}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[0].t;if(l>=c)return this.pv;if(n?i=c+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>u.length-1)&&(t=u.length-1),r=(i=u[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),p=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(f[a]-h[a])*p;return s}return d-(f-h)*p}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*(c-l)/.001;return s}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,a=i-e,o=t>1?(i+e-a)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var d=this.pz.getValueAtTime(e);t.translate(h*this.px.mult,f*this.py.mult,-d*this.pz.mult)}else t.translate(h*this.px.mult,f*this.py.mult,0)}else{var p=this.p.getValueAtTime(e);t.translate(p[0]*this.p.mult,p[1]*this.p.mult,-p[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var o=a(e,t,n);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=i.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,a,s,l){var u=o(r,i,a,s,l);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=n,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,i,u),u.k&&l.addDynamicProperty(u),u};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,a=r[e],o=r.v,s=createSizedArray(i);for(n=0;n<i;n+=1)s[n]="i"===e||"o"===e?[a[n][0]-o[n][0],a[n][1]-o[n][1]]:[a[n][0],a[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,a=i.lengths,o=i.totalLength*e,s=0,l=a.length,u=0;s<l;){if(u+a[s].addedLength>o){var c=s,h=n.c&&s===l-1?0:s+1,f=(o-u)/a[s].addedLength;r=bez.getPointInSegment(n.v[c],n.v[h],n.o[c],n.i[h],f,a[s]);break}u+=a[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-r[0],o=i[1]-r[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===n?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],s),extendPrototype([u],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var a=c(e,t,n,r,i);return a.propertyIndex=t.ix,a.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,a):4===n&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}return setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie}))})),jszip=createCommonjsModule((function(e,t){
  90. /*!
  91. JSZip v3.10.0 - A JavaScript class for generating and reading zip files
  92. <http://stuartk.com/jszip>
  93. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  94. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
  95. JSZip uses the library pako released under the MIT license :
  96. https://github.com/nodeca/pako/blob/main/LICENSE
  97. */
  98. 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,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,p?(t=e[h++],n=h<f?e[h++]:0,i=h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,i=h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,l=d>1?(15&n)<<2|i>>6:64,u=d>2?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;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var h,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(h=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++))),h[c++]=t,64!==s&&(h[c++]=n),64!==l&&(h[c++]=r);return h}},{"./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){var r=e("../utils"),i=e("../stream/GenericWorker"),a=e("../utf8"),o=e("../crc32"),s=e("../signature"),l=function(e,t){var n,r="";for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r},u=function(e,t,n,i,u,c){var h,f,d=e.file,p=e.compression,m=c!==a.utf8encode,g=r.transformTo("string",c(d.name)),v=r.transformTo("string",a.utf8encode(d.name)),y=d.comment,b=r.transformTo("string",c(y)),S=r.transformTo("string",a.utf8encode(y)),x=v.length!==d.name.length,w=S.length!==y.length,_="",k="",A="",E=d.dir,C=d.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!x&&!w||(T|=2048);var M,I,R=0,N=0;E&&(R|=16),"UNIX"===u?(N=798,R|=(I=M=d.unixPermissions,M||(I=E?16893:33204),(65535&I)<<16)):(N=20,R|=63&(d.dosPermissions||0)),h=C.getUTCHours(),h<<=6,h|=C.getUTCMinutes(),h<<=5,h|=C.getUTCSeconds()/2,f=C.getUTCFullYear()-1980,f<<=4,f|=C.getUTCMonth()+1,f<<=5,f|=C.getUTCDate(),x&&(k=l(1,1)+l(o(g),4)+v,_+="up"+l(k.length,2)+k),w&&(A=l(1,1)+l(o(b),4)+S,_+="uc"+l(A.length,2)+A);var L="";return L+="\n\0",L+=l(T,2),L+=p.magic,L+=l(h,2),L+=l(f,2),L+=l(P.crc32,4),L+=l(P.compressedSize,4),L+=l(P.uncompressedSize,4),L+=l(g.length,2),L+=l(_.length,2),{fileRecord:s.LOCAL_FILE_HEADER+L+g+_,dirRecord:s.CENTRAL_FILE_HEADER+l(N,2)+L+l(b.length,2)+"\0\0\0\0"+l(R,4)+l(i,4)+g+_+b}},c=function(e){return s.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4)};function h(e,t,n,r){i.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=[]}r.inherits(h,i),h.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,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},h.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=u(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=u(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:c(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},h.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,a){var o=r.transformTo("string",a(i));return s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(n,4)+l(o.length,2)+o}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.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},h.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(e){var t=this._sources;if(!i.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(e){}return!0},h.prototype.lock=function(){i.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=h},{"../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"),r.prototype.loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.0",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 i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(n.comment=i.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,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){var r=e("./utf8"),i=e("./utils"),a=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),s=e("./defaults"),l=e("./compressedObject"),u=e("./zipObject"),c=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),d=function(e,t,n){var r,o=i.getTypeOf(t),c=i.extend(n||{},s);c.date=c.date||new Date,null!==c.compression&&(c.compression=c.compression.toUpperCase()),"string"==typeof c.unixPermissions&&(c.unixPermissions=parseInt(c.unixPermissions,8)),c.unixPermissions&&16384&c.unixPermissions&&(c.dir=!0),c.dosPermissions&&16&c.dosPermissions&&(c.dir=!0),c.dir&&(e=m(e)),c.createFolders&&(r=p(e))&&g.call(this,r,!0);var d="string"===o&&!1===c.binary&&!1===c.base64;n&&void 0!==n.binary||(c.binary=!d),(t instanceof l&&0===t.uncompressedSize||c.dir||!t||0===t.length)&&(c.base64=!1,c.binary=!0,t="",c.compression="STORE",o="string");var v=null;v=t instanceof l||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):i.prepareContent(e,t,c.binary,c.optimizedBinaryString,c.base64);var y=new u(e,v,c);this.files[e]=y},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:s.createFolders,e=m(e),this.files[e]||d.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(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){if(v(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,d.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.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=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.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.");i.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 s=n.comment||this.comment||"";t=c.generateWorker(this,n,s)}catch(e){(t=new a("error")).error(e)}return new o(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;a>=0;--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;this.isPaused=!1;var e=!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]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?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),o=0,a=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,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(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(n=0,t=0;t<o;)if((i=e[t++])<128)l[n++]=i;else if((a=s[i])>4)l[n++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&t<o;)i=i<<6|63&e[t++],a--;a>1?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;n>=0&&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("./external");function s(e){return e}function l(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e("setimmediate"),n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={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 c(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=c;var f={};f.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},f.array={string:c,array:s,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 c(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:c,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:c,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:s},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.resolve=function(e){for(var t=e.split("/"),n=[],r=0;r<t.length;r++){var i=t[r];"."===i||""===i&&0!==r&&r!==t.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},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){setImmediate((function(){e.apply(n||null,t||[])}))},n.inherits=function(e,t){var n=function(){};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,s,u){return o.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 o.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,h=n.getTypeOf(t);return h?("arraybuffer"===h?t=n.transformTo("uint8array",t):"string"===h&&(u?t=i.decode(t):a&&!0!==s&&(t=l(c=t,r.uint8array?new Uint8Array(c.length):new Array(c.length)))),t):o.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,setimmediate: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),this.disksCount>1)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(r>0)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){var r=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),s=e("./stream/GenericWorker"),l=function(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}};l.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&i&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new r(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 o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof s?this._data:new i(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++)l.prototype[u[h]]=c;t.exports=l},{"./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$1?commonjsGlobal$1:"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&&d(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(t){return a.reject(e,t)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"==_typeof3(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(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,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(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(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;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&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(0!==n)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?a.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(o[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}u.prototype.push=function(e,t){var n,o,s=this.strm,u=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(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,o))&&0!==n)return this.onEnd(n),this.ended=!0,!1;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((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==o||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("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=u,n.deflate=c,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,c(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&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&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 f(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,f,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(f="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),u=d.next_out-l,h=a.buf2string(d.output,l),d.next_out=u,d.avail_out=p-u,u&&i.arraySet(d.output,d.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.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),d.avail_out=0,!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=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./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"!=_typeof3(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(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),i=0,t=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]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?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),o=0,a=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,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(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(r=0,n=0;n<s;)if((i=e[n++])<128)u[r++]=i;else if((a=o[i])>4)u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;a>1&&n<s;)i=i<<6|63&e[n++],a--;a>1?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;n>=0&&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;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--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");function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(e>4?9:0)}function h(e){for(var t=e.length;--t>=0;)e[t]=0}function f(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 d(e,t){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(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-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+258,d=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]===d&&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<f);if(r=258-(f-a),a=f-258,r>o){if(e.match_start=t,o=r,r>=s)break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function v(e){var t,n,r,a,l,u,c,h,f,d,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){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;do{r=e.head[--t],e.head[t]=r>=p?r-p:0}while(--n);t=n=p;do{r=e.prev[--t],e.prev[t]=r>=p?r-p:0}while(--n);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,h=e.strstart+e.lookahead,f=a,d=void 0,(d=u.avail_in)>f&&(d=f),n=0===d?0:(u.avail_in-=d,i.arraySet(c,u.input,u.next_in,d,h),1===u.state.wrap?u.adler=o(u.adler,c,d,h):2===u.state.wrap&&(u.adler=s(u.adler,c,d,h)),u.next_in+=d,u.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=3)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+3-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<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function y(e,t){for(var n,r;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-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-262&&(e.match_length=g(e,n)),e.match_length>=3)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(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&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function b(e,t){for(var n,r,i;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-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=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=g(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(d(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&d(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}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<2?e.strstart:2,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}function S(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 x(){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=8,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(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),h(this.dyn_ltree),h(this.dyn_dtree),h(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),h(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),h(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 w(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):u(e,-2)}function _(e){var t=w(e);return 0===t&&function(e){e.window_size=2*e.w_size,h(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=2,e.match_available=0,e.ins_h=0}(e.state),t}function k(e,t,n,r,a,o){if(!e)return-2;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>9||8!==n||r<8||r>15||t<0||t>9||o<0||o>4)return u(e,-2);8===r&&(r=9);var l=new x;return e.state=l,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+3-1)/3),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,_(e)}r=[new S(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(v(e),0===e.lookahead&&0===t)return 1;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,d(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(d(e,!1),e.strm.avail_out),1)})),new S(4,4,8,4,y),new S(4,5,16,8,y),new S(4,6,32,32,y),new S(4,4,16,16,b),new S(8,16,32,32,b),new S(8,16,128,128,b),new S(8,32,128,256,b),new S(32,128,258,1024,b),new S(32,258,258,4096,b)],n.deflateInit=function(e,t){return k(e,t,8,15,8,0)},n.deflateInit2=k,n.deflateReset=_,n.deflateResetKeep=w,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||t>5||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(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)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(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):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),p(i,3),i.status=113);else{var g=8+(i.w_bits-8<<4)<<8;g|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=32),g+=31-g%31,i.status=113,m(i,g),0!==i.strstart&&(m(i,e.adler>>>16),m(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)),f(e),o=i.pending,i.pending!==i.pending_buf_size));)p(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)),f(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,p(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)),f(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,p(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&&f(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(f(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(n)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var y=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+258;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=258-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a._tr_tally(e,1,e.match_length-3),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&&(d(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(d(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(d(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==y&&4!==y||(i.status=666),1===y||3===y)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(h(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),f(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),f(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},n.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,u,c,f,d=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=o(e.adler,t,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(h(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,t,d-n.w_size,n.w_size,0),t=f,d=n.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=d,e.next_in=0,e.input=t,v(n);n.lookahead>=3;){r=n.strstart,a=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--a);n.strstart=r,n.lookahead=2,v(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,n.wrap=s,0},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,f,d,p,m,g,v,y,b,S,x,w,_,k,A,E;n=e.state,r=e.next_in,A=e.input,i=r+(e.avail_in-5),a=e.next_out,E=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,f=n.window,d=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),b=m[d&v];t:for(;;){if(d>>>=S=b>>>24,p-=S,0==(S=b>>>16&255))E[a++]=65535&b;else{if(!(16&S)){if(0==(64&S)){b=m[(65535&b)+(d&(1<<S)-1)];continue t}if(32&S){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(S&=15)&&(p<S&&(d+=A[r++]<<p,p+=8),x+=d&(1<<S)-1,d>>>=S,p-=S),p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),b=g[d&y];n:for(;;){if(d>>>=S=b>>>24,p-=S,!(16&(S=b>>>16&255))){if(0==(64&S)){b=g[(65535&b)+(d&(1<<S)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&b,p<(S&=15)&&(d+=A[r++]<<p,(p+=8)<S&&(d+=A[r++]<<p,p+=8)),(w+=d&(1<<S)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=S,p-=S,w>(S=a-o)){if((S=w-S)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(_=0,k=f,0===h){if(_+=u-S,S<x){x-=S;do{E[a++]=f[_++]}while(--S);_=a-w,k=E}}else if(h<S){if(_+=u+h-S,(S-=h)<x){x-=S;do{E[a++]=f[_++]}while(--S);if(_=0,h<x){x-=S=h;do{E[a++]=f[_++]}while(--S);_=a-w,k=E}}}else if(_+=h-S,S<x){x-=S;do{E[a++]=f[_++]}while(--S);_=a-w,k=E}for(;x>2;)E[a++]=k[_++],E[a++]=k[_++],E[a++]=k[_++],x-=3;x&&(E[a++]=k[_++],x>1&&(E[a++]=k[_++]))}else{_=a-w;do{E[a++]=E[_++],E[a++]=E[_++],E[a++]=E[_++],x-=3}while(x>2);x&&(E[a++]=E[_++],x>1&&(E[a++]=E[_++]))}break}}break}}while(r<i&&a<s);r-=x=p>>3,d&=(1<<(p-=x<<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=d,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");function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){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 c(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=1,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(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function f(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||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):-2}function d(e,t){var n,r;return e?(r=new u,e.state=r,r.window=null,0!==(n=f(e,t))&&(e.state=null),n):-2}var p,m,g=!0;function v(e){if(g){var t;for(p=new r.Buf32(512),m=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(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}function y(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):((a=o.wsize-o.wnext)>i&&(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=h,n.inflateReset2=f,n.inflateResetKeep=c,n.inflateInit=function(e){return d(e,15)},n.inflateInit2=d,n.inflate=function(e,t){var n,u,c,h,f,d,p,m,g,b,S,x,w,_,k,A,E,C,P,T,M,I,R,N,L=0,D=new r.Buf8(4),B=[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-2;12===(n=e.state).mode&&(n.mode=13),f=e.next_out,c=e.output,p=e.avail_out,h=e.next_in,u=e.input,d=e.avail_in,m=n.hold,g=n.bits,b=d,S=p,I=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;g<16;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(2&n.wrap&&35615===m){n.check=0,D[0]=255&m,D[1]=m>>>8&255,n.check=a(n.check,D,2,0),m=0,g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(g-=4,M=8+(15&(m>>>=4)),0===n.wbits)n.wbits=M;else if(M>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<M,e.adler=n.check=1,n.mode=512&m?10:12,m=0,g=0;break;case 2:for(;g<16;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(n.flags=m,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=m>>8&1),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=a(n.check,D,2,0)),m=0,g=0,n.mode=3;case 3:for(;g<32;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.head&&(n.head.time=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,D[2]=m>>>16&255,D[3]=m>>>24&255,n.check=a(n.check,D,4,0)),m=0,g=0,n.mode=4;case 4:for(;g<16;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=a(n.check,D,2,0)),m=0,g=0,n.mode=5;case 5:if(1024&n.flags){for(;g<16;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(D[0]=255&m,D[1]=m>>>8&255,n.check=a(n.check,D,2,0)),m=0,g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((x=n.length)>d&&(x=d),x&&(n.head&&(M=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,u,h,x,M)),512&n.flags&&(n.check=a(n.check,u,x,h)),d-=x,h+=x,n.length-=x),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===d)break e;x=0;do{M=u[h+x++],n.head&&M&&n.length<65536&&(n.head.name+=String.fromCharCode(M))}while(M&&x<d);if(512&n.flags&&(n.check=a(n.check,u,x,h)),d-=x,h+=x,M)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===d)break e;x=0;do{M=u[h+x++],n.head&&M&&n.length<65536&&(n.head.comment+=String.fromCharCode(M))}while(M&&x<d);if(512&n.flags&&(n.check=a(n.check,u,x,h)),d-=x,h+=x,M)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;g<16;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}m=0,g=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(;g<32;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}e.adler=n.check=l(m),m=0,g=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=f,e.avail_out=p,e.next_in=h,e.avail_in=d,n.hold=m,n.bits=g,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&g,g-=7&g,n.mode=27;break}for(;g<3;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}switch(n.last=1&m,g-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6===t){m>>>=2,g-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,g-=2;break;case 14:for(m>>>=7&g,g-=7&g;g<32;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,m=0,g=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(x=n.length){if(x>d&&(x=d),x>p&&(x=p),0===x)break e;r.arraySet(c,u,h,x,f),d-=x,h+=x,p-=x,f+=x,n.length-=x;break}n.mode=12;break;case 17:for(;g<14;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(n.nlen=257+(31&m),m>>>=5,g-=5,n.ndist=1+(31&m),m>>>=5,g-=5,n.ncode=4+(15&m),m>>>=4,g-=4,n.nlen>286||n.ndist>30){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(;g<3;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.lens[B[n.have++]]=7&m,m>>>=3,g-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,I){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(;A=(L=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,E=65535&L,!((k=L>>>24)<=g);){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(E<16)m>>>=k,g-=k,n.lens[n.have++]=E;else{if(16===E){for(N=k+2;g<N;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(m>>>=k,g-=k,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}M=n.lens[n.have-1],x=3+(3&m),m>>>=2,g-=2}else if(17===E){for(N=k+3;g<N;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}g-=k,M=0,x=3+(7&(m>>>=k)),m>>>=3,g-=3}else{for(N=k+7;g<N;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}g-=k,M=0,x=11+(127&(m>>>=k)),m>>>=7,g-=7}if(n.have+x>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=M}}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,R={bits:n.lenbits},I=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,I){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},I=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,I){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(d>=6&&p>=258){e.next_out=f,e.avail_out=p,e.next_in=h,e.avail_in=d,n.hold=m,n.bits=g,o(e,S),f=e.next_out,c=e.output,p=e.avail_out,h=e.next_in,u=e.input,d=e.avail_in,m=n.hold,g=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;A=(L=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,E=65535&L,!((k=L>>>24)<=g);){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(A&&0==(240&A)){for(C=k,P=A,T=E;A=(L=n.lencode[T+((m&(1<<C+P)-1)>>C)])>>>16&255,E=65535&L,!(C+(k=L>>>24)<=g);){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}m>>>=C,g-=C,n.back+=C}if(m>>>=k,g-=k,n.back+=k,n.length=E,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(N=n.extra;g<N;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,g-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(L=n.distcode[m&(1<<n.distbits)-1])>>>16&255,E=65535&L,!((k=L>>>24)<=g);){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(0==(240&A)){for(C=k,P=A,T=E;A=(L=n.distcode[T+((m&(1<<C+P)-1)>>C)])>>>16&255,E=65535&L,!(C+(k=L>>>24)<=g);){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}m>>>=C,g-=C,n.back+=C}if(m>>>=k,g-=k,n.back+=k,64&A){e.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(N=n.extra;g<N;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,g-=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===p)break e;if(x=S-p,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}x>n.wnext?(x-=n.wnext,w=n.wsize-x):w=n.wnext-x,x>n.length&&(x=n.length),_=n.window}else _=c,w=f-n.offset,x=n.length;x>p&&(x=p),p-=x,n.length-=x;do{c[f++]=_[w++]}while(--x);0===n.length&&(n.mode=21);break;case 26:if(0===p)break e;c[f++]=n.length,p--,n.mode=21;break;case 27:if(n.wrap){for(;g<32;){if(0===d)break e;d--,m|=u[h++]<<g,g+=8}if(S-=p,e.total_out+=S,n.total+=S,S&&(e.adler=n.check=n.flags?a(n.check,c,S,f-S):i(n.check,c,S,f-S)),S=p,(n.flags?m:l(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}m=0,g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;g<32;){if(0===d)break e;d--,m+=u[h++]<<g,g+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}m=0,g=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;default:return-2}return e.next_out=f,e.avail_out=p,e.next_in=h,e.avail_in=d,n.hold=m,n.bits=g,(n.wsize||S!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&y(e,e.output,e.next_out,S-e.avail_out)?(n.mode=31,-4):(b-=e.avail_in,S-=e.avail_out,e.total_in+=b,e.total_out+=S,n.total+=S,n.wrap&&S&&(e.adler=n.check=n.flags?a(n.check,c,S,e.next_out-S):i(n.check,c,S,e.next_out-S)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===b&&0===S||4===t)&&0===I&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},n.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,t,r,0)!==n.check?-3:y(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},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,f){var d,p,m,g,v,y,b,S,x,w=f.bits,_=0,k=0,A=0,E=0,C=0,P=0,T=0,M=0,I=0,R=0,N=null,L=0,D=new r.Buf16(16),B=new r.Buf16(16),F=null,O=0;for(_=0;_<=15;_++)D[_]=0;for(k=0;k<l;k++)D[t[n+k]]++;for(C=w,E=15;E>=1&&0===D[E];E--);if(C>E&&(C=E),0===E)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(A=1;A<E&&0===D[A];A++);for(C<A&&(C=A),M=1,_=1;_<=15;_++)if(M<<=1,(M-=D[_])<0)return-1;if(M>0&&(0===e||1!==E))return-1;for(B[1]=0,_=1;_<15;_++)B[_+1]=B[_]+D[_];for(k=0;k<l;k++)0!==t[n+k]&&(h[B[t[n+k]]++]=k);if(0===e?(N=F=h,y=19):1===e?(N=i,L-=257,F=a,O-=257,y=256):(N=o,F=s,y=-1),R=0,k=0,_=A,v=c,P=C,T=0,m=-1,g=(I=1<<C)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){b=_-T,h[k]<y?(S=0,x=h[k]):h[k]>y?(S=F[O+h[k]],x=N[L+h[k]]):(S=96,x=0),d=1<<_-T,A=p=1<<P;do{u[v+(R>>T)+(p-=d)]=b<<24|S<<16|x|0}while(0!==p);for(d=1<<_-1;R&d;)d>>=1;if(0!==d?(R&=d-1,R+=d):R=0,k++,0==--D[_]){if(_===E)break;_=t[n+h[k]]}if(_>C&&(R&g)!==m){for(0===T&&(T=C),v+=A,M=1<<(P=_-T);P+T<E&&!((M-=D[P+T])<=0);)P++,M<<=1;if(I+=1<<P,1===e&&I>852||2===e&&I>592)return 1;u[m=R&g]=C<<24|P<<16|v-c|0}}return 0!==R&&(u[v+R]=_-T<<24|64<<16|0),f.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");function i(e){for(var t=e.length;--t>=0;)e[t]=0}var a=[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],o=[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],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var c=new Array(60);i(c);var h=new Array(512);i(h);var f=new Array(256);i(f);var d=new Array(29);i(d);var p,m,g,v=new Array(30);function y(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 b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?h[e]:h[256+(e>>>7)]}function x(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function w(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function _(e,t,n){w(e,n[2*t],n[2*t+1])}function k(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function A(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=15;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]=k(a[s]++,s))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function C(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(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 T(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function M(e,t,n){var r,i,s,l,u=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===r?_(e,i,t):(_(e,(s=f[i])+256+1,t),0!==(l=a[s])&&w(e,i-=d[s],l),_(e,s=S(--r),n),0!==(l=o[s])&&w(e,r-=v[s],l))}while(u<e.last_lit);_(e,256,t)}function I(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=573,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;n>=1;n--)T(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],T(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++,T(e,a,1)}while(e.heap_len>=2);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,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,m++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,r>=d&&(o=f[r-d]),s=l[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>u||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),A(a,u,e.bl_count)}function R(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[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function N(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)do{_(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==a&&(_(e,i,e.bl_tree),s--),_(e,16,e.bl_tree),w(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),w(e,s-3,3)):(_(e,18,e.bl_tree),w(e,s-11,7));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}i(v);var L=!1;function D(e,t,n,i){w(e,0+(i?1:0),3),function(e,t,n,i){C(e),i&&(x(e,n),x(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){L||(function(){var e,t,n,r,i,l=new Array(16);for(n=0,r=0;r<28;r++)for(d[r]=n,e=0;e<1<<a[r];e++)f[n++]=r;for(f[n-1]=r,i=0,r=0;r<16;r++)for(v[r]=i,e=0;e<1<<o[r];e++)h[i++]=r;for(i>>=7;r<30;r++)for(v[r]=i<<7,e=0;e<1<<o[r]-7;e++)h[256+i++]=r;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(A(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=k(e,5);p=new y(u,a,257,286,15),m=new y(c,o,0,30,15),g=new y(new Array(0),s,0,19,7)}(),L=!0),e.l_desc=new b(e.dyn_ltree,p),e.d_desc=new b(e.dyn_dtree,m),e.bl_desc=new b(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,E(e)},n._tr_stored_block=D,n._tr_flush_block=function(e,t,n,r){var i,a,o=0;e.level>0?(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 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),o=function(e){var t;for(R(e,e.dyn_ltree,e.l_desc.max_code),R(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?D(e,t,n,r):4===e.strategy||a===i?(w(e,2+(r?1:0),3),M(e,u,c)):(w(e,4+(r?1:0),3),function(e,t,n,r){var i;for(w(e,t-257,5),w(e,n-1,5),w(e,r-4,4),i=0;i<r;i++)w(e,e.bl_tree[2*l[i]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),M(e,e.dyn_ltree,e.dyn_dtree)),E(e),r&&C(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*(f[n]+256+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){w(e,2,3),_(e,256,u),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(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){(function(e){!function(e,t){if(!e.setImmediate){var n,r,i,a,o,s=1,l={},u=!1,c=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(a="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(a+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return l[s]=i,n(s),s++},h.clearImmediate=f}function f(e){delete l[e]}function d(e){if(u)setTimeout(d,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==commonjsGlobal$1?commonjsGlobal$1:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})),_templateObject$1,styles$l=r$3(_templateObject$1||(_templateObject$1=_taggedTemplateLiteral(["\n * {\n box-sizing: border-box;\n }\n\n :host {\n --lottie-player-toolbar-height: 35px;\n --lottie-player-toolbar-background-color: transparent;\n --lottie-player-toolbar-icon-color: #999;\n --lottie-player-toolbar-icon-hover-color: #222;\n --lottie-player-toolbar-icon-active-color: #555;\n --lottie-player-seeker-track-color: #ccc;\n --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);\n --lottie-player-seeker-display: block;\n\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .main {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n }\n\n .animation {\n width: 100%;\n height: 100%;\n display: flex;\n }\n .animation.controls {\n height: calc(100% - 35px);\n }\n\n .toolbar {\n display: flex;\n align-items: center;\n justify-items: center;\n background-color: var(--lottie-player-toolbar-background-color);\n margin: 0 5px;\n height: 35px;\n }\n\n .toolbar button {\n cursor: pointer;\n fill: var(--lottie-player-toolbar-icon-color);\n display: flex;\n background: none;\n border: 0;\n padding: 0;\n outline: none;\n height: 100%;\n }\n\n .toolbar button:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button.active {\n fill: var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button.active:hover {\n fill: var(--lottie-player-toolbar-icon-hover-color);\n }\n\n .toolbar button:focus {\n outline: 1px dotted var(--lottie-player-toolbar-icon-active-color);\n }\n\n .toolbar button svg {\n }\n\n .toolbar button.disabled svg {\n display: none;\n }\n\n .seeker {\n -webkit-appearance: none;\n width: 95%;\n outline: none;\n background-color: var(--lottie-player-toolbar-background-color);\n display: var(--lottie-player-seeker-display);\n }\n\n .seeker::-webkit-slider-runnable-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-webkit-slider-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n -webkit-appearance: none;\n margin-top: -5px;\n }\n .seeker:focus::-webkit-slider-runnable-track {\n background: #999;\n }\n .seeker::-moz-range-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-moz-range-thumb {\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker::-ms-track {\n width: 100%;\n height: 5px;\n cursor: pointer;\n background: transparent;\n border-color: transparent;\n color: transparent;\n }\n .seeker::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n border-radius: 3px;\n }\n .seeker::-ms-thumb {\n border: 0;\n height: 15px;\n width: 15px;\n border-radius: 50%;\n background: var(--lottie-player-seeker-thumb-color);\n cursor: pointer;\n }\n .seeker:focus::-ms-fill-lower {\n background: var(--lottie-player-seeker-track-color);\n }\n .seeker:focus::-ms-fill-upper {\n background: var(--lottie-player-seeker-track-color);\n }\n\n .error {\n display: flex;\n justify-content: center;\n height: 100%;\n align-items: center;\n }\n"]))),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,PlayerState,PlayMode,PlayerEvents,t;function fetchPath(e){return new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.send(),r.onreadystatechange=function(){4==r.readyState&&200==r.status&&jszip.loadAsync(r.response).then((function(e){e.file("manifest.json").async("string").then((function(n){var r=JSON.parse(n);if(!("animations"in r))throw new Error("Manifest not found");if(0===r.animations.length)throw new Error("No animations listed in the manifest");var i=r.animations[0];e.file("animations/".concat(i.id,".json")).async("string").then((function(n){var r=JSON.parse(n);"assets"in r&&Promise.all(r.assets.map((function(t){if(t.p&&null!=e.file("images/".concat(t.p)))return new Promise((function(n){var r=t.p.split(".").pop();e.file("images/".concat(t.p)).async("base64").then((function(e){t.p="svg"===r||"svg+xml"===r?"data:image/svg+xml;base64,"+e:"data:;base64,"+e,t.e=1,n()}))}))}))).then((function(){t(r)}))}))}))})).catch((function(e){n(e)}))}}))}t=PlayerState||(PlayerState={}),t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error",function(e){e.Normal="normal",e.Bounce="bounce"}(PlayMode||(PlayMode={})),function(e){e.Load="load",e.Error="error",e.Ready="ready",e.Play="play",e.Pause="pause",e.Stop="stop",e.Freeze="freeze",e.Loop="loop",e.Complete="complete",e.Frame="frame"}(PlayerEvents||(PlayerEvents={}));var DotLottiePlayer=function(e){_inherits2(i,e);var t,n,r=_createSuper(i);function i(){var e;return _classCallCheck2(this,i),(e=r.apply(this,arguments)).mode=PlayMode.Normal,e.autoplay=!1,e.background="transparent",e.controls=!1,e.direction=1,e.hover=!1,e.loop=!1,e.renderer="svg",e.speed=1,e.currentState=PlayerState.Loading,e.intermission=1,e._counter=0,e}return _createClass2(i,[{key:"_onVisibilityChange",value:function(){document.hidden&&this.currentState===PlayerState.Playing?this.freeze():this.currentState===PlayerState.Frozen&&this.play()}},{key:"_handleSeekChange",value:function(e){if(this._lottie&&!isNaN(e.target.value)){var t=e.target.value/100*this._lottie.totalFrames;this.seek(t)}}},{key:"load",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.shadowRoot){e.next=2;break}return e.abrupt("return");case 2:return n={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}},e.prev=3,e.next=6,fetchPath(t);case 6:r=e.sent,this._lottie&&this._lottie.destroy(),this._lottie=lottie_svg.loadAnimation(Object.assign(Object.assign({},n),{animationData:r})),e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",(this.currentState=PlayerState.Error,void this.dispatchEvent(new CustomEvent(PlayerEvents.Error))));case 13:this._lottie&&(this._lottie.addEventListener("enterFrame",(function(){i.seeker=i._lottie.currentFrame/i._lottie.totalFrames*100,i.dispatchEvent(new CustomEvent(PlayerEvents.Frame,{detail:{frame:i._lottie.currentFrame,seeker:i.seeker}}))})),this._lottie.addEventListener("complete",(function(){i.currentState===PlayerState.Playing?!i.loop||i.count&&i._counter>=i.count?i.dispatchEvent(new CustomEvent(PlayerEvents.Complete)):i.mode===PlayMode.Bounce?(i.count&&(i._counter+=.5),setTimeout((function(){i.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),i.currentState===PlayerState.Playing&&(i._lottie.setDirection(-1*i._lottie.playDirection),i._lottie.play())}),i.intermission)):(i.count&&(i._counter+=1),window.setTimeout((function(){i.dispatchEvent(new CustomEvent(PlayerEvents.Loop)),i.currentState===PlayerState.Playing&&(i._lottie.stop(),i._lottie.play())}),i.intermission)):i.dispatchEvent(new CustomEvent(PlayerEvents.Complete))})),this._lottie.addEventListener("DOMLoaded",(function(){i.dispatchEvent(new CustomEvent(PlayerEvents.Ready))})),this._lottie.addEventListener("data_ready",(function(){i.dispatchEvent(new CustomEvent(PlayerEvents.Load))})),this._lottie.addEventListener("data_failed",(function(){i.currentState=PlayerState.Error,i.dispatchEvent(new CustomEvent(PlayerEvents.Error))})),this.container.addEventListener("mouseenter",(function(){i.hover&&i.currentState!==PlayerState.Playing&&i.play()})),this.container.addEventListener("mouseleave",(function(){i.hover&&i.currentState===PlayerState.Playing&&i.stop()})),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&this.play());case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return n.apply(this,arguments)})},{key:"getLottie",value:function(){return this._lottie}},{key:"play",value:function(){this._lottie&&(this._lottie.play(),this.currentState=PlayerState.Playing,this.dispatchEvent(new CustomEvent(PlayerEvents.Play)))}},{key:"pause",value:function(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Paused,this.dispatchEvent(new CustomEvent(PlayerEvents.Pause)))}},{key:"stop",value:function(){this._lottie&&(this._counter=0,this._lottie.stop(),this.currentState=PlayerState.Stopped,this.dispatchEvent(new CustomEvent(PlayerEvents.Stop)))}},{key:"seek",value:function(e){if(this._lottie){var t=e.toString().match(/^([0-9]+)(%?)$/);if(t){var n="%"===t[2]?this._lottie.totalFrames*Number(t[1])/100:t[1];this.seeker=n,this.currentState===PlayerState.Playing?this._lottie.goToAndPlay(n,!0):(this._lottie.goToAndStop(n,!0),this._lottie.pause())}}}},{key:"snapshot",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.shadowRoot){var t=this.shadowRoot.querySelector(".animation svg"),n=(new XMLSerializer).serializeToString(t);if(e){var r=document.createElement("a");r.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(n),r.download="download_"+this.seeker+".svg",document.body.appendChild(r),r.click(),document.body.removeChild(r)}return n}}},{key:"freeze",value:function(){this._lottie&&(this._lottie.pause(),this.currentState=PlayerState.Frozen,this.dispatchEvent(new CustomEvent(PlayerEvents.Freeze)))}},{key:"setSpeed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}},{key:"setDirection",value:function(e){this._lottie&&this._lottie.setDirection(e)}},{key:"setLooping",value:function(e){this._lottie&&(this.loop=e,this._lottie.loop=e)}},{key:"togglePlay",value:function(){return this.currentState===PlayerState.Playing?this.pause():this.play()}},{key:"toggleLooping",value:function(){this.setLooping(!this.loop)}},{key:"firstUpdated",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("IntersectionObserver"in window&&(this._io=new IntersectionObserver((function(e){e[0].isIntersecting?t.currentState===PlayerState.Frozen&&t.play():t.currentState===PlayerState.Playing&&t.freeze()})),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",(function(){return t._onVisibilityChange()})),e.t0=this.src,!e.t0){e.next=6;break}return e.next=6,this.load(this.src);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){var e=this;this._io&&(this._io.disconnect(),this._io=void 0),document.removeEventListener("visibilitychange",(function(){return e._onVisibilityChange()}))}},{key:"renderControls",value:function(){var e=this,t=this.currentState===PlayerState.Playing,n=this.currentState===PlayerState.Paused,r=this.currentState===PlayerState.Stopped;return $(_templateObject||(_templateObject=_taggedTemplateLiteral(['\n <div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">\n <button\n id="lottie-play-button"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="play-pause"\n >\n ','\n </button>\n <button\n id="lottie-stop-button"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="stop"\n >\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path d="M6 6h12v12H6V6z" />\n </svg>\n </button>\n <input\n id="lottie-seeker-input"\n class="seeker"\n type="range"\n min="0"\n step="1"\n max="100"\n .value=',"\n @input=","\n @mousedown=","\n @mouseup=",'\n aria-valuemin="1"\n aria-valuemax="100"\n role="slider"\n aria-valuenow=','\n tabindex="0"\n aria-label="lottie-seek-input"\n />\n <button\n id="lottie-loop-toggle"\n @click=',"\n class=",'\n style="align-items:center;"\n tabindex="0"\n aria-label="loop-toggle"\n >\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path\n d="M17.016 17.016v-4.031h1.969v6h-12v3l-3.984-3.984 3.984-3.984v3h10.031zM6.984 6.984v4.031H5.015v-6h12v-3l3.984 3.984-3.984 3.984v-3H6.984z"\n />\n </svg>\n </button>\n </div>\n '])),this.togglePlay,t||n?"active":"",$(t?_templateObject2||(_templateObject2=_taggedTemplateLiteral(['\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />\n </svg>\n '])):_templateObject3||(_templateObject3=_taggedTemplateLiteral(['\n <svg width="24" height="24" aria-hidden="true" focusable="false">\n <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />\n </svg>\n ']))),this.stop,r?"active":"",this.seeker,this._handleSeekChange,(function(){e._prevState=e.currentState,e.freeze()}),(function(){e._prevState===PlayerState.Playing&&e.play()}),this.seeker,this.toggleLooping,this.loop?"active":"")}},{key:"render",value:function(){var e=this.controls?"main controls":"main",t=this.controls?"animation controls":"animation";return $(_templateObject4||(_templateObject4=_taggedTemplateLiteral(['\n <div id="animation-container" class=',' lang="en" role="img">\n <div id="animation" class=',' style="background:',';">\n ',"\n </div>\n ","\n </div>\n "])),e,t,this.background,this.currentState===PlayerState.Error?$(_templateObject5||(_templateObject5=_taggedTemplateLiteral(['\n <div class="error">⚠️</div>\n ']))):void 0,this.controls?this.renderControls():void 0)}}],[{key:"styles",get:function(){return styles$l}}]),i}(s$4);__decorate([i$4(".animation")],DotLottiePlayer.prototype,"container",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0})],DotLottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],DotLottiePlayer.prototype,"count",void 0),__decorate([e$5({type:Number})],DotLottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],DotLottiePlayer.prototype,"hover",void 0),__decorate([e$5({type:Boolean,reflect:!0})],DotLottiePlayer.prototype,"loop",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"renderer",void 0),__decorate([e$5({type:Number})],DotLottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"src",void 0),__decorate([e$5({type:String})],DotLottiePlayer.prototype,"currentState",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"seeker",void 0),__decorate([e$5()],DotLottiePlayer.prototype,"intermission",void 0),DotLottiePlayer=__decorate([n$1("dotlottie-player")],DotLottiePlayer);var Image1$1="/orchestra-music-score/assets/5.d8bfbf51.png",Image2$1="/orchestra-music-score/assets/4.cfa387c7.png",Image3$1="/orchestra-music-score/assets/3.d02c685a.png",Image4$1="/orchestra-music-score/assets/2.5c4c2ef5.png",Image5$1="/orchestra-music-score/assets/1.a0d5037d.png",IconBad="/orchestra-music-score/assets/bad.d9395829.png",IconGood="/orchestra-music-score/assets/good.b0fbfb32.png",IconGreat="/orchestra-music-score/assets/great.55272f0a.png",IconPerfect="/orchestra-music-score/assets/perfect.ab44b0e5.png",icons={1:{icon:IconBad,text:"bad"},2:{icon:IconGood,text:"good"},3:{icon:IconGreat,text:"great"},4:{icon:IconPerfect,text:"perfect"}},constant={1:{img:Image1$1,tips:"你的演奏不太好,再练一练吧~",mome:"敢于尝试"},2:{img:Image2$1,tips:"你的演奏还不熟练,加紧训练才能有好成绩哦~",mome:"还要加油哦~"},3:{img:Image3$1,tips:"你的演奏还不流畅,科学的练习才能更完美哦~",mome:"突破自我"},4:{img:Image4$1,tips:"你的演奏还不错,继续加油吧,离完美就差一步啦~",mome:"崭露头角"},5:{img:Image5$1,tips:"你的演奏完美无缺,继续努力吧~",mome:"你很棒"}},getLeveByScoreId=function(e){if(!e&&"number"!=typeof e)return{};var t=1;return e>20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t},getLeveByScore=exports("aY",(function(e){if(!e&&"number"!=typeof e)return{};var t=getLeveByScoreId(e);return constant[t]})),getLeveByScoreMeasure=exports("C",(function(e){if(!e&&"number"!=typeof e)return{};var t=1;return e>=40&&e<70?t=2:e>=70&&e<90?t=3:e>=90&&(t=4),icons[t]})),box$1="_box_1vhbp_1",bg$1="_bg_1vhbp_9",button$4="_button_1vhbp_16",iconSound$2="_iconSound_1vhbp_33",skepBtn$1="_skepBtn_1vhbp_39",wrap$5="_wrap_1vhbp_53",wrapContainer="_wrapContainer_1vhbp_59",top$1="_top_1vhbp_65",title$4="_title_1vhbp_72",num="_num_1vhbp_82",txt="_txt_1vhbp_86",iconLeft="_iconLeft_1vhbp_89",iconTop="_iconTop_1vhbp_93",evaluatWrap="_evaluatWrap_1vhbp_98",evaluatTitle="_evaluatTitle_1vhbp_129",evaluatIcon="_evaluatIcon_1vhbp_134",fraction="_fraction_1vhbp_140",line="_line_1vhbp_147",tips$1="_tips_1vhbp_152",btns$2="_btns_1vhbp_164",btnIcon="_btnIcon_1vhbp_177",rigthBtns="_rigthBtns_1vhbp_181",confirm="_confirm_1vhbp_191",iconTitle$1="_iconTitle_1vhbp_197",footer="_footer_1vhbp_202",sbtn="_sbtn_1vhbp_231",headerButton="_headerButton_1vhbp_238",headBtn="_headBtn_1vhbp_248",evastyles={box:box$1,bg:bg$1,button:button$4,iconSound:iconSound$2,skepBtn:skepBtn$1,wrap:wrap$5,wrapContainer:wrapContainer,top:top$1,title:title$4,num:num,txt:txt,iconLeft:iconLeft,iconTop:iconTop,evaluatWrap:evaluatWrap,evaluatTitle:evaluatTitle,evaluatIcon:evaluatIcon,fraction:fraction,line:line,tips:tips$1,btns:btns$2,btnIcon:btnIcon,rigthBtns:rigthBtns,confirm:confirm,iconTitle:iconTitle$1,footer:footer,sbtn:sbtn,headerButton:headerButton,headBtn:headBtn},iconTitle="/orchestra-music-score/assets/title.bea4c09d.svg",iconCancel$1="/orchestra-music-score/assets/cancel.948b4df9.png",iconConfirm$1="/orchestra-music-score/assets/confirm.8f41729f.png",iconBack="/orchestra-music-score/assets/back.ad4ed6fc.png",iconLianxi="/orchestra-music-score/assets/icon-lianxi.fcc30d94.png",iconReport="/orchestra-music-score/assets/icon-report.6db8af00.png",TryIcon="/orchestra-music-score/assets/icon-try.6f9f730c.png",IntegrityIcon="/orchestra-music-score/assets/integrity.f311836f.svg",IntonationIcon="/orchestra-music-score/assets/intonation.64e00f66.svg",CadenceIcon="/orchestra-music-score/assets/cadence.18a7a60b.svg",Image1="/orchestra-music-score/assets/5.602e43c1.png",Image2="/orchestra-music-score/assets/4.7cd4aa5f.png",Image3="/orchestra-music-score/assets/3.f804efc6.png",Image4="/orchestra-music-score/assets/2.3014e96e.png",Image5="/orchestra-music-score/assets/1.916612fa.png",scoreInfos={1:{img:Image1,tips:"你的演奏不太好,再练一练吧~",mome:"敢于尝试"},2:{img:Image2,tips:"你的演奏还不熟练,加紧训练才能有好成绩哦~",mome:"还要加油哦"},3:{img:Image3,tips:"你的演奏还不流畅,科学的练习才能更完美哦~",mome:"突破自我"},4:{img:Image4,tips:"你的演奏还不错,继续加油吧,离完美就差一步啦~",mome:"崭露头角"},5:{img:Image5,tips:"你的演奏非常不错,完整性把握的很好~",mome:"你很棒"}},Content$1=defineComponent({name:"ColexiuEvaluatingContent",props:{data:{type:Object,default:function(){return null}}},emits:["restart","upload"],setup:function(e,t){var n=t.emit,r=useOriginSearch(),i=!!r.unitId,a=ref(!1),o=ref(""),s=toRefs(e).data,l=location.pathname,u=function(){var e,t,n,i,a,o,u,c,h,f={id:null===(e=s.value)||void 0===e?void 0:e.recordId,musicId:r.id,name:(null===(t=state$4.user)||void 0===t?void 0:t.username)||"",subjectName:((null===(n=state$4.user)||void 0===n?void 0:n.subjectName)||"").split(",")[0]||"",avatar:encodeURIComponent((null===(i=state$4.user)||void 0===i?void 0:i.avatar)||""),score:(null===(a=s.value)||void 0===a?void 0:a.score)||0,examSongName:(null===(o=state$2.activeDetail)||void 0===o?void 0:o.examSongName)||""};state$2.isPercussion||(f.intonation=null===(u=s.value)||void 0===u?void 0:u.intonation,f.cadence=null===(c=s.value)||void 0===c?void 0:c.cadence,f.integrity=null===(h=s.value)||void 0===h?void 0:h.integrity);return"".concat(location.origin).concat(l,"/share-colexiu-evaluating/index.html?").concat(queryString.stringify(f))},c=function(e){var t=e.target;t&&(t.contentWindow.setPng=function(e){o.value=e})},h=function(){o.value&&postMessage$1({api:"shareAchievements",content:{title:"分享我的乐器练习进度,一起见证我的成长!",desc:"晒一下我的评测分数,快来“小酷AI”上和我PK一下吧!",image:o.value,video:"",type:"image",button:["copy"],url:u()}},(function(e){var t,n,r;(null!=e&&null!==(t=e.content)&&void 0!==t&&t.status&&(a.value=!1),null!=e&&null!==(n=e.content)&&void 0!==n&&n.message)&&Toast(null==e||null===(r=e.content)||void 0===r?void 0:r.message)}))},f=function(){var e;postMessage$1({api:"openWebView",content:{url:"".concat(location.origin).concat(l,"colexiu-report.html?source=evaluation&musicId=").concat(r.id,"&id=").concat(null===(e=s.value)||void 0===e?void 0:e.recordIdStr),orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){var e,t,r=getLeveByScoreId(null===(e=s.value)||void 0===e?void 0:e.score);return createVNode("div",null,[createVNode("div",{class:evastyles.box},[createVNode("div",{class:evastyles.wrap},[createVNode("div",{class:evastyles.wrapContainer},[createVNode("div",{class:evastyles.top},[createVNode("div",{class:evastyles.title},[createVNode("div",{style:{position:"relative",zIndex:1,"white-space":"nowrap"}},[createVNode("span",{class:evastyles.num},[null===(t=s.value)||void 0===t?void 0:t.score]),createVNode("span",{class:evastyles.txt},[createTextVNode("分 "),scoreInfos[r].mome])]),createVNode("div",{class:evastyles.line},null)]),createVNode("img",{class:evastyles.iconTop,src:scoreInfos[r].img},null)]),state$2.isPercussion?null:createVNode("div",{class:evastyles.evaluatWrap},[createVNode(Grid,null,{default:function(){return[createVNode(GridItem,null,{icon:function(){return createVNode("div",null,[createVNode("img",{class:evastyles.evaluatIcon,src:IntonationIcon},null),createVNode("span",{class:evastyles.evaluatTitle},[createTextVNode("音准")])])},text:function(){var e;return createVNode("span",{class:evastyles.fraction},[null===(e=s.value)||void 0===e?void 0:e.intonation,createVNode("span",null,[createTextVNode("分")])])}}),createVNode("div",{class:evastyles.line},null),createVNode(GridItem,null,{icon:function(){return createVNode("div",null,[createVNode("img",{class:evastyles.evaluatIcon,src:CadenceIcon},null),createVNode("span",{class:evastyles.evaluatTitle},[createTextVNode("节奏")])])},text:function(){var e;return createVNode("span",{class:evastyles.fraction},[null===(e=s.value)||void 0===e?void 0:e.cadence,createVNode("span",null,[createTextVNode("分")])])}}),createVNode("div",{class:evastyles.line},null),createVNode(GridItem,null,{icon:function(){return createVNode("div",null,[createVNode("img",{class:evastyles.evaluatIcon,src:IntegrityIcon},null),createVNode("span",{class:evastyles.evaluatTitle},[createTextVNode("完整性")])])},text:function(){var e;return createVNode("span",{class:evastyles.fraction},[null===(e=s.value)||void 0===e?void 0:e.integrity,createVNode("span",null,[createTextVNode("分")])])}})]}})]),createVNode("div",{class:evastyles.tips},[createVNode("div",{style:state$2.isPercussion?{height:"45px",fontSize:"15px"}:""},[scoreInfos[r].tips]),createVNode("div",{class:evastyles.btns,style:{justifyContent:i?"center":""}},[state$2.frozenMode||i?null:createVNode(Button,{onClick:function(){state.evaluatingStatus=!1,state$2.evaluatings={},evaluatingShow.value=!1,onChangeModelType("practice")}},{default:function(){return[createVNode("img",{class:evastyles.btnIcon,src:iconLianxi},null)]}}),createVNode(Button,{style:{margin:"0 4px"},onClick:function(){state$2.evaluatings={},n("restart")}},{default:function(){return[createVNode("img",{class:evastyles.btnIcon,src:TryIcon},null)]}}),i?null:createVNode(Button,{onClick:f},{default:function(){return[createVNode("img",{class:evastyles.btnIcon,src:iconReport,alt:"查看报告"},null)]}})])])]),i||state$2.isHideEvaluatReportSaveBtn?null:createVNode("div",{class:evastyles.headerButton},[createVNode("div",{class:[evastyles.headBtn],onClick:function(){return n("upload")}},[createTextVNode("保存演奏")])])]),createVNode(Popup,{teleport:"body",show:a.value,style:{background:"transparent"}},{default:function(){return[createVNode("div",{style:{textAlign:"right"}},[createVNode(Button,{class:evastyles.sbtn,onClick:h,round:!0,type:"primary",color:"#2DC7AA"},{default:function(){return[createTextVNode("分享")]}}),createVNode(Button,{class:evastyles.sbtn,onClick:function(){return a.value=!1},round:!0},{default:function(){return[createTextVNode("关闭")]}})]),createVNode("iframe",{style:{width:"50vw",border:"none",height:"70vh",marginTop:"1vh"},src:u(),onLoad:c},null)]}}),createVNode(Button,{class:evastyles.button,icon:iconBack,onClick:function(){state$2.evaluatings={},n("restart")}},null)])])}}}),evaluatingShow=ref(!1),open=ref(!1),api_openAdjustRecording=function(e){postMessage$1({api:"openAdjustRecording",content:e})},Evaluating$1=defineComponent({name:"ColexiuEvaluating",props:{data:{type:Object,default:function(){return null}}},emits:["restart"],setup:function(e){var t=ref(!1),n=function(t){var n,r;postMessage$1({api:"proxyServiceMessage",content:{header:{commond:"videoUpload",status:200,type:"SOUND_COMPARE"},body:{filePath:null==t||null===(n=t.content)||void 0===n?void 0:n.filePath,recordId:null===(r=e.data)||void 0===r?void 0:r.recordIdStr}}})},r=function(){state$3.sett.camera&&state$3.eva.save?postMessage$1({api:"videoUpdate"},(function(e){if(console.log("保存视频",e),t.value=!1,null!=e&&e.content){if("error"===e.content.type)return void Toast(e.content.message);n(e)}})):(t.value=!1,n(),Toast.success("上传成功"))},i=function(){var n,r,i,a,o=browser();state$2.isAppPlay||!o.isStudent?t.value=!0:null!==(n=e.data)&&void 0!==n&&n.recordIdStr&&api_openAdjustRecording({recordId:String(null===(r=e.data)||void 0===r?void 0:r.recordIdStr),title:(null===(i=state$2.activeDetail)||void 0===i?void 0:i.musicSheetName)||"曲谱演奏",coverImg:(null===(a=state$2.activeDetail)||void 0===a?void 0:a.titleImg)||""})};return function(){return createVNode("div",null,[createVNode(Popup,{position:"bottom",show:evaluatingShow.value,"onUpdate:show":function(e){return evaluatingShow.value=e},onOpen:function(){return open.value=!0},onClosed:function(){return open.value=!1},teleport:"body",style:{backgroundColor:"transparent"}},{default:function(){return[open&&createVNode(Content$1,{data:e.data,onUpload:i,onRestart:function(){return evaluatingShow.value=!1}},null)]}}),createVNode(Dialog.Component,{teleport:"body",class:evastyles.confirm,style:{overflow:"initial"},show:t.value,"onUpdate:show":function(e){return t.value=e},message:"评测".concat(state$3.sett.camera&&state$3.eva.save?"音视频":"音频","是否保存演奏?")},{title:function(){return createVNode("img",{class:evastyles.iconTitle,src:iconTitle},null)},footer:function(){return createVNode("div",{class:evastyles.footer},[createVNode("img",{src:iconCancel$1,onClick:function(){return t.value=!1}},null),createVNode("img",{src:iconConfirm$1,onClick:r},null)])}})])}}}),container$6="_container_1w91u_1",outUp="_outUp_1w91u_19",moreButton="_moreButton_1w91u_22",button$3="_button_1w91u_26",centerButton="_centerButton_1w91u_29",leftButton="_leftButton_1w91u_35",titleWrap="_titleWrap_1w91u_39",title$3="_title_1w91u_39",album="_album_1w91u_51",hasText$1="_hasText_1w91u_65",minPadding="_minPadding_1w91u_81",bigIcon$1="_bigIcon_1w91u_84",iconContent="_iconContent_1w91u_91",arrowIcon="_arrowIcon_1w91u_94",tipSpec="_tipSpec_1w91u_120",evaluatBtn="_evaluatBtn_1w91u_123",start$1="_start_1w91u_126",evaluatStartBtn="_evaluatStartBtn_1w91u_141",icon="_icon_1w91u_91",onShow="_onShow_1w91u_154",popover="_popover_1w91u_157",backbtn="_backbtn_1w91u_164",speed="_speed_1w91u_168",schedule="_schedule_1w91u_207",ring="_ring_1w91u_213",speedButton="_speedButton_1w91u_224",label="_label_1w91u_227",player$1="_player_1w91u_238",fullbtn="_fullbtn_1w91u_246",finish="_finish_1w91u_255",dialogueBox="_dialogueBox_1w91u_306",dialogue="_dialogue_1w91u_306",dialogueIcon="_dialogueIcon_1w91u_331",inRadioIcon="_inRadioIcon_1w91u_336",inRadio="_inRadio_1w91u_336",animation="_animation_1w91u_357",btnMusicList="_btnMusicList_1w91u_362",toggleMusicType="_toggleMusicType_1w91u_374",slider$1="_slider_1w91u_407",followEndBtn="_followEndBtn_1w91u_427",styles$k={container:container$6,outUp:outUp,moreButton:moreButton,button:button$3,centerButton:centerButton,leftButton:leftButton,titleWrap:titleWrap,title:title$3,album:album,hasText:hasText$1,minPadding:minPadding,bigIcon:bigIcon$1,iconContent:iconContent,arrowIcon:arrowIcon,"botton-tips":"_botton-tips_1w91u_106",tipSpec:tipSpec,evaluatBtn:evaluatBtn,start:start$1,evaluatStartBtn:evaluatStartBtn,icon:icon,onShow:onShow,popover:popover,backbtn:backbtn,speed:speed,schedule:schedule,ring:ring,speedButton:speedButton,label:label,player:player$1,fullbtn:fullbtn,finish:finish,dialogueBox:dialogueBox,dialogue:dialogue,dialogueIcon:dialogueIcon,inRadioIcon:inRadioIcon,inRadio:inRadio,animation:animation,btnMusicList:btnMusicList,toggleMusicType:toggleMusicType,slider:slider$1,followEndBtn:followEndBtn},lottie={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n<i;n+=1)for(var a in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var n,r=0,i=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)i.push(n);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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$6(e)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var r,i,a,o,s,l,u,c;switch(l=n*(1-t),u=n*(1-(s=6*e-(o=Math.floor(6*e)))*t),c=n*(1-(1-s)*t),o%6){case 0:r=n,i=c,a=l;break;case 1:r=u,i=n,a=l;break;case 2:r=l,i=n,a=c;break;case 3:r=l,i=u,a=n;break;case 4:r=c,i=l,a=n;break;case 5:r=n,i=l,a=u}return[r,i,a]}function RGBtoHSV(e,t,n){var r,i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,s=0===i?0:o/i,l=i/255;switch(i){case a:r=0;break;case e:r=t-n+o*(t<n?6:0),r/=6*o;break;case t:r=n-e+2*o,r/=6*o;break;case n:r=e-t+4*o,r/=6*o}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var o,s,l,u,c,f,d=i.length;for(s=0;s<d;s+=1)if("ks"in(o=i[s])&&!o.completed){if(o.completed=!0,o.tt&&(i[s-1].td=o.tt),o.hasMask){var p=o.masksProperties;for(u=p.length,l=0;l<u;l+=1)if(p[l].pt.k.i)r(p[l].pt.k);else for(f=p[l].pt.k.length,c=0;c<f;c+=1)p[l].pt.k[c].s&&r(p[l].pt.k[c].s[0]),p[l].pt.k[c].e&&r(p[l].pt.k[c].e[0])}0===o.ty?(o.layers=t(o.refId,a),e(o.layers,a)):4===o.ty?n(o.shapes):5===o.ty&&h(o)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,i,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;i<a;i+=1)e[t].ks.k[i].s&&r(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&r(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var a,o=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(r=void 0,r=(n=e[t]).t.d,n.t.d={k:[{s:r,t:0}]})}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,a=n.assets.length;for(r=0;r<a;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),s=(a=[4,7,99],function(e){if(e.chars&&!i(a,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var o=e.chars[t];o.data&&o.data.shapes&&(n(o.data.shapes),o.data.ip=0,o.data.op=99999,o.data.st=0,o.data.sr=1,o.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(o.data.shapes.push({ty:"no"}),o.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,n,r=e.length;for(t=0;t<r;t+=1)5===e[t].ty&&(n=void 0,"number"==typeof(n=e[t].t.p).a&&(n.a={a:0,k:n.a}),"number"==typeof n.p&&(n.p={a:0,k:n.p}),"number"==typeof n.r&&(n.r={a:0,k:n.r}))}return function(n){if(i(e,n.v)&&(t(n.layers),n.assets)){var r,a=n.assets.length;for(r=0;r<a;r+=1)n.assets[r].layers&&t(n.assets[r].layers)}}}(),u=function(){var e=[4,1,9];function t(e){var n,r,i,a=e.length;for(n=0;n<a;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(i=e[n].c.k.length,r=0;r<i;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var n,r,i;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r<i;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,i,a,o,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var u=n.masksProperties;for(a=u.length,i=0;i<a;i+=1)if(u[i].pt.k.i)u[i].pt.k.c=u[i].cl;else for(s=u[i].pt.k.length,o=0;o<s;o+=1)u[i].pt.k[o].s&&(u[i].pt.k[o].s[0].c=u[i].cl),u[i].pt.k[o].e&&(u[i].pt.k[o].e[0].c=u[i].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(i(e,t.v)&&(n(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function h(e){0===e.t.a.length&&e.t.p}var f={completeData:function(n){n.__complete||(u(n),o(n),s(n),l(n),c(n),e(n.layers,n.assets),function(n,r){if(n){var i=0,a=n.length;for(i=0;i<a;i+=1)1===n[i].t&&(n[i].data.layers=t(n[i].data.refId,r),e(n[i].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return f.checkColors=u,f.checkChars=s,f.checkPathProperties=l,f.checkShapes=c,f.completeLayers=e,f}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,n,r,i){var a,o=new XMLHttpRequest;try{o.responseType="json"}catch(err){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)a=e(o),r(a);else try{a=e(o),r(a)}catch(err){i&&i(err)}};try{o.open("GET",t,!0)}catch(s){o.open("GET",n+"/"+t,!0)}o.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,(function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){a.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,n=t.id,i=r[n];r[n]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function s(e,t){var i="processId_"+(n+=1);return r[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,n,r){o();var i=s(n,r);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=t+i}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function i(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.src=n;var a={img:i,assetData:t};return a},createImageData:function(t){var n=r(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var a={img:i,assetData:t};return a},imageLoaded:t,footageLoaded:n,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],r=0;r<n.length;r+=1)n[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},i=0,a=0;a<n.length;a+=1)2===(t=n[a].split(":")).length&&(r[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var i=t[r],a={time:i.tm,duration:i.dr};try{a.payload=JSON.parse(t[r].cm)}catch(_){try{a.payload=e(t[r].cm)}catch(o){a.payload={name:t[r].cm}}}n.push(a)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="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$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==a,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,o=a.length;for(n=0;n<o;n+=1)for(t=0;t<i;){if(r[t].id===a[n].id){r[t]=a[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch(r){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,r=0,i=0,a=!0,o=!1;function s(e){for(var n=0,i=e.target;n<r;)t[n].animation===i&&(t.splice(n,1),n-=1,r-=1,i.isPaused||c()),n+=1}function l(e,n){if(!e)return null;for(var i=0;i<r;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var a=new AnimationItem;return h(a,e),a.setData(e,n),a}function u(){i+=1,p()}function c(){i-=1}function h(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",u),e.addEventListener("_idle",c),t.push({elem:n,animation:e}),r+=1}function f(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,i&&!o?window.requestAnimationFrame(f):a=!0}function d(e){n=e,window.requestAnimationFrame(f)}function p(){!o&&i&&a&&(window.requestAnimationFrame(d),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return h(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setSpeed(e,n)},e.setDirection=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=i.length;for(r=0;r<a;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],e);if(t&&0===a){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",n),o.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,i){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,n,i)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,p()},e.setVolume=function(e,n){var i;for(i=0;i<r;i+=1)t[i].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,i,a){var o=a||("bez_"+e+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(t[o])return t[o];var s=new u([e,n,r,i]);return t[o]=s,s}},t={},n=.1,r="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function o(e){return 3*e}function s(e,t,n){return((i(t,n)*e+a(t,n))*e+o(t))*e}function l(e,t,n){return 3*i(t,n)*e*e+2*a(t,n)*e+o(t)}function u(e){this._p=e,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===n&&r===i?e:0===e?0:1===e?1:s(this._getTForX(e),n,i)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],r=0;r<11;++r)this._mSampleValues[r]=s(r*n,e,t)},_getTForX:function(e){for(var t=this._p[0],r=this._p[2],i=this._mSampleValues,a=0,o=1;10!==o&&i[o]<=e;++o)a+=n;var u=a+(e-i[--o])/(i[o+1]-i[o])*n,c=l(u,t,r);return c>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=l(t,n,r);if(0===a)return t;t-=(s(t,n,r)-e)/a}return t}(e,u,t,r):0===c?u:function(e,t,n,r,i){var a,o,l=0;do{(a=s(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++l<10);return o}(e,a,a+n,t,r)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,a=createSizedArray(i);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===i&&(a=pooling.double(a),i*=2),n&&n(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,n,r,i,a){var o=e*r+t*i+n*a-i*r-a*e-n*t;return o>-.001&&o<.001}var n=function(e,t,n,r){var i,a,o,s,l,u,c=getDefaultCurveSegments(),h=0,f=[],d=[],p=bezierLengthPool.newElement();for(o=n.length,i=0;i<c;i+=1){for(l=i/(c-1),u=0,a=0;a<o;a+=1)s=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*n[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*t[a],f[a]=s,null!==d[a]&&(u+=bmPow(f[a]-d[a],2)),d[a]=f[a];u&&(h+=u=bmSqrt(u)),p.percents[i]=l,p.lengths[i]=h}return p.addedLength=h,p};function r(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var a,o=(a={},function(e,n,o,s){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!a[l]){var u,c,h,f,d,p,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+o[0],e[1]+o[1])&&t(e[0],e[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(g=2);var b=new r(g);for(h=o.length,u=0;u<g;u+=1){for(m=createSizedArray(h),d=u/(g-1),p=0,c=0;c<h;c+=1)f=bmPow(1-d,3)*e[c]+3*bmPow(1-d,2)*d*(e[c]+o[c])+3*(1-d)*bmPow(d,2)*(n[c]+s[c])+bmPow(d,3)*n[c],m[c]=f,null!==y&&(p+=bmPow(m[c]-y[c],2));v+=p=bmSqrt(p),b.points[u]=new i(p,m),y=m}b.segmentLength=v,a[l]=b}return a[l]});function s(e,t){var n=t.percents,r=t.lengths,i=n.length,a=bmFloor((i-1)*e),o=e*t.addedLength,s=0;if(a===i-1||0===a||o===r[a])return n[a];for(var l=r[a]>o?-1:1,u=!0;u;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),u=!1):a+=l,a<0||a>=i-1){if(a===i-1)return n[a];u=!1}return n[a]+(n[a+1]-n[a])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,l=e._length,u=r.lengths,c=0;for(t=0;t<l-1;t+=1)u[t]=n(a[t],a[t+1],o[t],s[t+1]),c+=u[t].addedLength;return i&&l&&(u[t]=n(a[t],a[0],o[t],s[0]),c+=u[t].addedLength),r.totalLength=c,r},getNewSegment:function(t,n,r,i,a,o,u){a<0?a=0:a>1&&(a=1);var c,h=s(a,u),f=s(o=o>1?1:o,u),d=t.length,p=1-h,m=1-f,g=p*p*p,v=h*p*p*3,y=h*h*p*3,b=h*h*h,S=p*p*m,x=h*p*m+p*h*m+p*p*f,w=h*h*m+p*h*f+h*p*f,_=h*h*f,k=p*m*m,A=h*m*m+p*f*m+p*m*f,E=h*f*m+p*f*f+h*m*f,C=h*f*f,P=m*m*m,T=f*m*m+m*f*m+m*m*f,M=f*f*m+m*f*f+f*m*f,I=f*f*f;for(c=0;c<d;c+=1)l[4*c]=e.round(1e3*(g*t[c]+v*r[c]+y*i[c]+b*n[c]))/1e3,l[4*c+1]=e.round(1e3*(S*t[c]+x*r[c]+w*i[c]+_*n[c]))/1e3,l[4*c+2]=e.round(1e3*(k*t[c]+A*r[c]+E*i[c]+C*n[c]))/1e3,l[4*c+3]=e.round(1e3*(P*t[c]+T*r[c]+M*i[c]+I*n[c]))/1e3;return l},getPointInSegment:function(t,n,r,i,a,o){var l=s(a,o),u=1-l;return[e.round(1e3*(u*u*u*t[0]+(l*u*u+u*l*u+u*u*l)*r[0]+(l*l*u+u*l*l+l*u*l)*i[0]+l*l*l*n[0]))/1e3,e.round(1e3*(u*u*u*t[1]+(l*u*u+u*l*u+u*u*l)*r[1]+(l*l*u+u*l*l+l*u*l)*i[1]+l*l*l*n[1]))/1e3]},buildBezierData:o,pointOnLine2D:t,pointOnLine3D:function(n,r,i,a,o,s,l,u,c){if(0===i&&0===s&&0===c)return t(n,r,a,o,l,u);var h,f=e.sqrt(e.pow(a-n,2)+e.pow(o-r,2)+e.pow(s-i,2)),d=e.sqrt(e.pow(l-n,2)+e.pow(u-r,2)+e.pow(c-i,2)),p=e.sqrt(e.pow(l-a,2)+e.pow(u-o,2)+e.pow(c-s,2));return(h=f>d?f>p?f-d-p:p-d-f:p>d?p-d-f:d-f-p)>-1e-4&&h<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,o,s,l,u,c,h,f,d,p=t.lastIndex,m=p,g=this.keyframes.length-1,v=!0;v;){if(a=this.keyframes[m],o=this.keyframes[m+1],m===g-1&&e>=o.t-i){a.h&&(a=o),p=0;break}if(o.t-i>e){p=m;break}m<g-1?m+=1:(p=0,v=!1)}s=this.keyframesMetadata[m]||{};var y,b,S,x,w,_,k,A,E,C,P=o.t-i,T=a.t-i;if(a.to){s.bezierData||(s.bezierData=bez.buildBezierData(a.s,o.s||a.e,a.to,a.ti));var M=s.bezierData;if(e>=P||e<T){var I=e>=P?M.points.length-1:0;for(u=M.points[I].point.length,l=0;l<u;l+=1)n[l]=M.points[I].point[l]}else{s.__fnct?d=s.__fnct:(d=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,s.__fnct=d),c=d((e-T)/(P-T));var R,N=M.segmentLength*c,L=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastAddedLength:0;for(f=t.lastFrame<e&&t._lastKeyframeIndex===m?t._lastPoint:0,v=!0,h=M.points.length;v;){if(L+=M.points[f].partialLength,0===N||0===c||f===M.points.length-1){for(u=M.points[f].point.length,l=0;l<u;l+=1)n[l]=M.points[f].point[l];break}if(N>=L&&N<L+M.points[f+1].partialLength){for(R=(N-L)/M.points[f+1].partialLength,u=M.points[f].point.length,l=0;l<u;l+=1)n[l]=M.points[f].point[l]+(M.points[f+1].point[l]-M.points[f].point[l])*R;break}f<h-1?f+=1:v=!1}t._lastPoint=f,t._lastAddedLength=L-M.points[f].partialLength,t._lastKeyframeIndex=m}}else{var D,B,F,O,V;if(g=a.s.length,y=o.s||a.e,this.sh&&1!==a.h)if(e>=P)n[0]=y[0],n[1]=y[1],n[2]=y[2];else if(e<=T)n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2];else{var G=r(a.s),z=r(y);b=n,S=function(e,t,n){var r,i,a,o,s,l=[],u=e[0],c=e[1],h=e[2],f=e[3],d=t[0],p=t[1],m=t[2],g=t[3];return(i=u*d+c*p+h*m+f*g)<0&&(i=-i,d=-d,p=-p,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),o=Math.sin((1-n)*r)/a,s=Math.sin(n*r)/a):(o=1-n,s=n),l[0]=o*u+s*d,l[1]=o*c+s*p,l[2]=o*h+s*m,l[3]=o*f+s*g,l}(G,z,(e-T)/(P-T)),x=S[0],w=S[1],_=S[2],k=S[3],A=Math.atan2(2*w*k-2*x*_,1-2*w*w-2*_*_),E=Math.asin(2*x*w+2*_*k),C=Math.atan2(2*x*k-2*w*_,1-2*x*x-2*_*_),b[0]=A/degToRads,b[1]=E/degToRads,b[2]=C/degToRads}else for(m=0;m<g;m+=1)1!==a.h&&(e>=P?c=1:e<T?c=0:(a.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[m]?d=s.__fnct[m]:(D=void 0===a.o.x[m]?a.o.x[0]:a.o.x[m],B=void 0===a.o.y[m]?a.o.y[0]:a.o.y[m],F=void 0===a.i.x[m]?a.i.x[0]:a.i.x[m],O=void 0===a.i.y[m]?a.i.y[0]:a.i.y[m],d=BezierFactory.getBezierEasing(D,B,F,O).get,s.__fnct[m]=d)):s.__fnct?d=s.__fnct:(D=a.o.x,B=a.o.y,F=a.i.x,O=a.i.y,d=BezierFactory.getBezierEasing(D,B,F,O).get,a.keyframeMetadata=d),c=d((e-T)/(P-T)))),y=o.s||a.e,V=1===a.h?a.s[m]:a.s[m]+(y[m]-a.s[m])*c,"multidimensional"===this.propType?n[m]=V:n=V}return t.lastIndex=p,n}function r(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,i=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),u=Math.sin(r/2);return[s*l*o+i*a*u,s*a*o+i*l*u,i*l*o-s*a*u,i*a*o-s*l*u]}function i(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<n&&t<n))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function a(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=e[r]*this.mult,t(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=o,this.setVValue=a,this.addEffect=s}function u(e,t,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=o,this.setVValue=a,this.addEffect=s}function c(t,r,l,u){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=l||1,this.elem=t,this.container=u,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=o,this.setVValue=a,this.interpolateValue=n,this.effectsSequence=[i.bind(this)],this.addEffect=s}function h(t,r,l,u){var c;this.propType="multidimensional";var h,f,d,p,m=r.k.length;for(c=0;c<m-1;c+=1)r.k[c].to&&r.k[c].s&&r.k[c+1]&&r.k[c+1].s&&(h=r.k[c].s,f=r.k[c+1].s,d=r.k[c].to,p=r.k[c].ti,(2===h.length&&(h[0]!==f[0]||h[1]!==f[1])&&bez.pointOnLine2D(h[0],h[1],f[0],f[1],h[0]+d[0],h[1]+d[1])&&bez.pointOnLine2D(h[0],h[1],f[0],f[1],f[0]+p[0],f[1]+p[1])||3===h.length&&(h[0]!==f[0]||h[1]!==f[1]||h[2]!==f[2])&&bez.pointOnLine3D(h[0],h[1],h[2],f[0],f[1],f[2],h[0]+d[0],h[1]+d[1],h[2]+d[2])&&bez.pointOnLine3D(h[0],h[1],h[2],f[0],f[1],f[2],f[0]+p[0],f[1]+p[1],f[2]+p[2]))&&(r.k[c].to=null,r.k[c].ti=null),h[0]===f[0]&&h[1]===f[1]&&0===d[0]&&0===d[1]&&0===p[0]&&0===p[1]&&(2===h.length||h[2]===f[2]&&0===d[2]&&0===p[2])&&(r.k[c].to=null,r.k[c].ti=null));this.effectsSequence=[i.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=u,this.comp=t.comp,this.getValue=o,this.setVValue=a,this.interpolateValue=n,this.frameId=-1;var g=r.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),c=0;c<g;c+=1)this.v[c]=e,this.pv[c]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=s}var f={getProp:function(e,t,n,r,i){var a;if(t.k.length)if("number"==typeof t.k[0])a=new u(e,t,r,i);else switch(n){case 0:a=new c(e,t,r,i);break;case 1:a=new h(e,t,r,i)}else a=new l(e,t,r,i);return a.effectsSequence.length&&i.addDynamicProperty(a),a}};return f}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,r,i){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(i,a,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a<s;a+=1)e.setTripleAt(t[o][0],t[o][1],r[o][0],r[o][1],n[o][0],n[o][1],a,!1),o-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,n){var r,i,a,o,s,l,u,c,h,f=n.lastIndex,d=this.keyframes;if(e<d[0].t-this.offsetTime)r=d[0].s[0],a=!0,f=0;else if(e>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var p,m,g,v=f,y=d.length-1,b=!0;b&&(p=d[v],!((m=d[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},f=v,!(a=1===p.h)){if(e>=m.t-this.offsetTime)c=1;else if(e<p.t-this.offsetTime)c=0;else{var S;g.__fnct?S=g.__fnct:(S=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,g.__fnct=S),c=S((e-(p.t-this.offsetTime))/(m.t-this.offsetTime-(p.t-this.offsetTime)))}i=m.s?m.s[0]:p.e[0]}r=p.s[0]}for(l=t._length,u=r.i[0].length,n.lastIndex=f,o=0;o<l;o+=1)for(s=0;s<u;s+=1)h=a?r.i[o][s]:r.i[o][s]+(i.i[o][s]-r.i[o][s])*c,t.i[o][s]=h,h=a?r.o[o][s]:r.o[o][s]+(i.o[o][s]-r.o[o][s])*c,t.o[o][s]=h,h=a?r.v[o][s]:r.v[o][s]+(i.v[o][s]-r.v[o][s])*c,t.v[o][s]=h}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<n&&t<n||i>r&&t>r)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(e,t,n){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}o.prototype.interpolateShape=t,o.prototype.getValue=a,o.prototype.setVValue=i,o.prototype.addEffect=s,l.prototype.getValue=a,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=s;var u=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,a=3!==this.d,o=this.v;o.v[0][0]=t,o.v[0][1]=n-i,o.v[1][0]=a?t+r:t-r,o.v[1][1]=n,o.v[2][0]=t,o.v[2][1]=n+i,o.v[3][0]=a?t-r:t+r,o.v[3][1]=n,o.i[0][0]=a?t-r*e:t+r*e,o.i[0][1]=n-i,o.i[1][0]=a?t+r:t-r,o.i[1][1]=n-i*e,o.i[2][0]=a?t+r*e:t-r*e,o.i[2][1]=n+i,o.i[3][0]=a?t-r:t+r,o.i[3][1]=n+i*e,o.o[0][0]=a?t+r*e:t-r*e,o.o[0][1]=n-i,o.o[1][0]=a?t+r:t-r,o.o[1][1]=n+i*e,o.o[2][0]=a?t-r*e:t+r*e,o.o[2][1]=n+i,o.o[3][0]=a?t-r:t+r,o.o[3][1]=n-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,n,r,i=2*Math.floor(this.pt.v),a=2*Math.PI/i,o=!0,s=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,h=2*Math.PI*s/(2*i),f=2*Math.PI*l/(2*i),d=-Math.PI/2;d+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){n=o?u:c,r=o?h:f;var m=(t=o?s:l)*Math.cos(d),g=t*Math.sin(d),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*n*p,g-y*r*n*p,m+v*r*n*p,g+y*r*n*p,e,!0),o=!o,d+=a*p}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,i=this.os.v,a=2*Math.PI*r/(4*t),o=.5*-Math.PI,s=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(o),u=r*Math.sin(o),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),h=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*a*i*s,u-h*a*i*s,l+c*a*i*s,u+h*a*i*s,e,!0),o+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=bmMin(n,r,this.r.v),a=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+i,e+n,t-r+a,0,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-a,e+n,t+r-i,1,!0),0!==i?(this.v.setTripleAt(e+n-i,t+r,e+n-i,t+r,e+n-a,t+r,2,!0),this.v.setTripleAt(e-n+i,t+r,e-n+a,t+r,e-n+i,t+r,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-i,e-n,t+r-a,4,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+a,e-n,t-r+i,5,!0),this.v.setTripleAt(e-n+i,t-r,e-n+i,t-r,e-n+a,t-r,6,!0),this.v.setTripleAt(e+n-i,t-r,e+n-a,t-r,e+n-i,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+a,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+a,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+i,e+n,t-r+a,e+n,t-r+i,0,!0),0!==i?(this.v.setTripleAt(e+n-i,t-r,e+n-i,t-r,e+n-a,t-r,1,!0),this.v.setTripleAt(e-n+i,t-r,e-n+a,t-r,e-n+i,t-r,2,!0),this.v.setTripleAt(e-n,t-r+i,e-n,t-r+i,e-n,t-r+a,3,!0),this.v.setTripleAt(e-n,t+r-i,e-n,t+r-a,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n+i,t+r,e-n+i,t+r,e-n+a,t+r,5,!0),this.v.setTripleAt(e+n-i,t+r,e+n-a,t+r,e+n-i,t+r,6,!0),this.v.setTripleAt(e+n,t+r-i,e+n,t+r-i,e+n,t+r-a,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+a,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-a,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-a,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),f={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new o(e,t,n):5===n?r=new h(e,t):6===n?r=new u(e,t):7===n&&(r=new c(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return o},getKeyframedConstructorFunction:function(){return l}};return f}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),i=t(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(n(e),n(t))}function h(r,i){var a=e(i),o=t(i);return this._t(a,o,0,0,-o,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-o,0,0,o,a,0,0,0,0,1,0,0,0,0,1)}function f(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function d(e,t,n,r,i,a,o,s,l,u,c,h,f,d,p,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=a,this.props[6]=o,this.props[7]=s,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=h,this.props[12]=f,this.props[13]=d,this.props[14]=p,this.props[15]=m,this}function p(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,i,a,o,s,l,u,c,h,f,d,p,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===i&&1===a&&0===o&&0===s&&0===l&&0===u&&1===c&&0===h)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*c+g[15]*p,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],S=g[3],x=g[4],w=g[5],_=g[6],k=g[7],A=g[8],E=g[9],C=g[10],P=g[11],T=g[12],M=g[13],I=g[14],R=g[15];return g[0]=v*e+y*i+b*l+S*f,g[1]=v*t+y*a+b*u+S*d,g[2]=v*n+y*o+b*c+S*p,g[3]=v*r+y*s+b*h+S*m,g[4]=x*e+w*i+_*l+k*f,g[5]=x*t+w*a+_*u+k*d,g[6]=x*n+w*o+_*c+k*p,g[7]=x*r+w*s+_*h+k*m,g[8]=A*e+E*i+C*l+P*f,g[9]=A*t+E*a+C*u+P*d,g[10]=A*n+E*o+C*c+P*p,g[11]=A*r+E*s+C*h+P*m,g[12]=T*e+M*i+I*l+R*f,g[13]=T*t+M*a+I*u+R*d,g[14]=T*n+M*o+I*c+R*p,g[15]=T*r+M*s+I*h+R*m,this._identityCalculated=!1,this}function g(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function y(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function S(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function x(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function w(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function _(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,i=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=n,s.props[4]=r,s.props[5]=i,s.props[12]=a,s.props[13]=o,s}function A(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function E(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=A(e[t]);return r}function C(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],a=this.props[1],o=this.props[4],s=this.props[5],l=this.props[12],u=this.props[13];r[0]=e[0]*i+e[1]*o+l,r[1]=e[0]*a+e[1]*s+u,r[2]=t[0]*i+t[1]*o+l,r[3]=t[0]*a+t[1]*s+u,r[4]=n[0]*i+n[1]*o+l,r[5]=n[0]*a+n[1]*s+u}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function M(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function R(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=u,this.scale=f,this.setTransform=d,this.translate=p,this.transform=m,this.applyToPoint=S,this.applyToX=x,this.applyToY=w,this.applyToZ=_,this.applyToPointArray=P,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=M,this.to2dCSS=R,this.clone=y,this.cloneFromProps=b,this.equals=v,this.inversePoints=E,this.inversePoint=A,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,r,i){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,l=[],u=a.length;for(o=0;o<u;o+=1){var c,h;(s=a[o]).e*i<r||s.s*i>r+n||(c=s.s*i<=r?0:(s.s*i-r)/n,h=s.e*i>=r+n?1:(s.e*i-r)/n,l.push([c,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,i;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,u,c,h,f=this.shapes.length,d=0;if(n===t)for(i=0;i<f;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(i=0;i<f;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var p,m,g=[];for(i=0;i<f;i+=1)if((p=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=p.shape.paths)._length,h=0,!p.shape._mdf&&p.pathsData.length)h=p.totalShapeLength;else{for(u=this.releasePathsData(p.pathsData),s=0;s<l;s+=1)c=bez.getSegmentsLength(r.shapes[s]),u.push(c),h+=c.totalLength;p.totalShapeLength=h,p.pathsData=u}d+=h,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var v,y=t,b=n,S=0;for(i=f-1;i>=0;i-=1)if((p=this.shapes[i]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&f>1?(v=this.calculateShapeEdges(t,n,p.totalShapeLength,S,d),S+=p.totalShapeLength):v=[[y,b]],l=v.length,s=0;s<l;s+=1){y=v[s][0],b=v[s][1],g.length=0,b<=1?g.push({s:p.totalShapeLength*y,e:p.totalShapeLength*b}):y>=1?g.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(b-1)}):(g.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(b-1)}));var x=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var w=x.pop();this.addPaths(x,m),x=this.addShapes(p,g[1],w)}else this.addPaths(x,m),x=this.addShapes(p,g[1]);this.addPaths(x,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,i,a,o){i.setXYAt(t[0],t[1],"o",a),i.setXYAt(n[0],n[1],"i",a+1),o&&i.setXYAt(e[0],e[1],"v",a),i.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,i,a,o,s,l,u,c,h=e.pathsData,f=e.shape.paths.shapes,d=e.shape.paths._length,p=0,m=[],g=!0;for(n?(s=n._length,c=n._length):(n=shapePool.newElement(),s=0,c=0),m.push(n),r=0;r<d;r+=1){for(l=h[r].lengths,n.c=f[r].c,a=f[r].c?l.length:l.length+1,i=1;i<a;i+=1)if(p+(o=l[i-1]).addedLength<t.s)p+=o.addedLength,n.c=!1;else{if(p>t.e){n.c=!1;break}t.s<=p&&t.e>=p+o.addedLength?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[i],f[r].v[i],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[i],f[r].o[i-1],f[r].i[i],(t.s-p)/o.addedLength,(t.e-p)/o.addedLength,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1),p+=o.addedLength,s+=1}if(f[r].c&&l.length){if(o=l[i-1],p<=t.e){var v=l[i-1].addedLength;t.s<=p&&t.e>=p+v?(this.addSegment(f[r].v[i-1],f[r].o[i-1],f[r].i[0],f[r].v[0],n,s,g),g=!1):(u=bez.getNewSegment(f[r].v[i-1],f[r].v[0],f[r].o[i-1],f[r].i[0],(t.s-p)/v,(t.e-p)/v,l[i-1]),this.addSegmentFromArray(u,n,s,g),g=!1,n.c=!1)}else n.c=!1;p+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[c][0],n.v[c][1],"i",c),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>t.e)break;r<d-1&&(n=shapePool.newElement(),g=!0,m.push(n),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,r=[0,0],i=e._length,a=0;for(a=0;a<i;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=i,r[1]/=i;var o,s,l,u,c,h,f=shapePool.newElement();for(f.c=e.c,a=0;a<i;a+=1)o=e.v[a][0]+(r[0]-e.v[a][0])*n,s=e.v[a][1]+(r[1]-e.v[a][1])*n,l=e.o[a][0]+(r[0]-e.o[a][0])*-n,u=e.o[a][1]+(r[1]-e.o[a][1])*-n,c=e.i[a][0]+(r[0]-e.i[a][0])*-n,h=e.i[a][1]+(r[1]-e.i[a][1])*-n,f.setTripleAt(o,s,l,u,c,h,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,i=t.or.k.length;for(r=0;r<i;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a<i;a+=1)switch(t[a].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,r,i,a){var o=a?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);e.translate(r.p.v[0]*o*i,r.p.v[1]*o*i,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*o*i),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(a?1/s:s,a?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,i,a,o=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(s=a<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var c=this.elemsData[r].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}a+=1}this._currentCopies=l;var f=this.o.v,d=f%1,p=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,S=0;if(f>0){for(;S<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),S+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),S+=d)}else if(f<0){for(;S>p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),S-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),S-=d)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==S){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)n[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)n[y]=this.matrix.props[y];S+=1,a-=1,r+=i}}else for(a=this._currentCopies,r=0,i=1;a;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=i;return o},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,r=shapePool.newElement();r.c=e.c;var i,a,o,s,l,u,c,h,f,d,p,m,g=e._length,v=0;for(n=0;n<g;n+=1)i=e.v[n],o=e.o[n],a=e.i[n],i[0]===o[0]&&i[1]===o[1]&&i[0]===a[0]&&i[1]===a[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(s[0]-i[0])*u,h=m=i[1]-(i[1]-s[1])*u,f=c-(c-i[0])*roundCorner,d=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,f,d,p,m,v),v+=1,s=n===g-1?e.v[0]:e.v[n+1],u=(l=Math.sqrt(Math.pow(i[0]-s[0],2)+Math.pow(i[1]-s[1],2)))?Math.min(l/2,t)/l:0,c=f=i[0]+(s[0]-i[0])*u,h=d=i[1]+(s[1]-i[1])*u,p=c-(c-i[0])*roundCorner,m=h-(h-i[1])*roundCorner,r.setTripleAt(c,h,f,d,p,m,v),v+=1):(r.setTripleAt(i[0],i[1],o[0],o[1],a[0],a[1],v),v+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,i,a,o,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(o=(a=this.shapes[n]).localShapeCollection,a.shape._mdf||this._mdf||e)for(o.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,i=a.shape.paths._length,r=0;r<i;r+=1)o.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function i(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,i=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&i.push(n[t]);return i.join(",")}(e)+", "+t,{node:r,w:i,parent:n}}function a(e,t){var n,r=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",i.style),a.setAttribute("font-weight",i.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),n=a}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=i.style+" "+i.weight+" 100px "+e.fFamily,n=o}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}var o=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};o.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==n.indexOf(r)},o.isZeroWidthJoiner=function(e,t){return t?e===r[0]&&t===r[1]:e===r[1]},o.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var s={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,i=e.length,a=this.chars.length;for(t=0;t<i;t+=1){for(n=0,r=!1;n<a;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=a(e),e.cache={}})),void(this.fonts=e.list);var n,r=e.list,o=r.length,s=o;for(n=0;n<o;n+=1){var l,u,c=!0;if(r[n].loaded=!1,r[n].monoCase=i(r[n].fFamily,"monospace"),r[n].sansCase=i(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<l.length;u+=1)-1!==l[u].href.indexOf(r[n].fPath)&&(c=!1);if(c){var f=createTag("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.type="text/css",f.rel="stylesheet",f.href=r[n].fPath,document.body.appendChild(f)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<l.length;u+=1)r[n].fPath===l[u].src&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",r[n].fPath),t.appendChild(d)}}}else r[n].loaded=!0,s-=1;r[n].helper=a(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var i=0,a=this.chars.length;i<a;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),i=e.charCodeAt(0);if(!r.cache[i+1]){var a=r.helper;if(" "===e){var o=a.measureText("|"+e+"|"),s=a.measureText("||");r.cache[i+1]=(o-s)/100}else r.cache[i+1]=a.measureText(e)/100}return r.cache[i+1]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,i=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return o.prototype=s,o}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,r=createSizedArray(t.viewData.length),i=t.viewData.length;for(n=0;n<i;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<i;){if(t.masksProperties[n].nm===e)return r[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var a="unidimensional"===n?new Number(i):Object.assign({},i);return a.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===n?i[0]:i,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,i=t.pv*r,a=new Number(i);return a.value=i,n(a,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*r,a.value!==i&&((a=new Number(i)).value=i,n(a,t,"unidimensional")),a}}(i):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,i=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",i),o=createTypedArray("float32",i);return a.value=o,n(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)o[t]=e.v[t]*r,a[t]=o[t];return a}}(i):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,r,i,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),r(),i?i():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function i(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function o(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(u){var c;function h(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=e,h.invertPoint=o,h.applyPoint=a,h.toWorld=n,h.toWorldVec=t,h.fromWorld=i,h.fromWorldVec=r,h.toComp=n,h.fromComp=s,h.sampleImage=l,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u;var f=getDescriptor(c=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=0===u.data.ty?u.data.h:100,h.width=0===u.data.ty?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=function(e){h.mask=new MaskManagerInterface(e,u)},h.registerEffectsInterface=function(e){h.effect=e},h}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,n){if(e.effectsManager){var r,i=[],a=e.data.ef,o=e.effectsManager.effectElements.length;for(r=0;r<o;r+=1)i.push(t(a[r],e.effectsManager.effectElements[r],n,e));var s=e.data.ef||[],l=function(e){for(r=0,o=s.length;r<o;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return i[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,r,i,a){function o(t){for(var n=e.ef,r=0,i=n.length;r<i;){if(t===n[r].nm||t===n[r].mn||t===n[r].ix)return 5===n[r].ty?u[r]:u[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(o,i),u=[],c=e.ef.length;for(s=0;s<c;s+=1)5===e.ef[s].ty?u.push(t(e.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,a)):u.push(n(r.effectElements[s],e.ef[s].ty,a,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(o,"color",{get:function(){return u[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),o.enabled=0!==e.en,o.active=o.enabled,o}function n(e,t,n,r){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):i()}}return e}(),CompExpressionInterface=function(e){function t(t){for(var n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t},ShapePathInterface=function(e,t,n){var r=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var a=propertyGroupFactory(i,n);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(i,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),i},ShapeExpressionInterface=function(){function e(e,o,f){var d,p=[],m=e?e.length:0;for(d=0;d<m;d+=1)"gr"===e[d].ty?p.push(t(e[d],o[d],f)):"fl"===e[d].ty?p.push(n(e[d],o[d],f)):"st"===e[d].ty?p.push(i(e[d],o[d],f)):"tm"===e[d].ty?p.push(a(e[d],o[d],f)):"tr"===e[d].ty||("el"===e[d].ty?p.push(s(e[d],o[d],f)):"sr"===e[d].ty?p.push(l(e[d],o[d],f)):"sh"===e[d].ty?p.push(ShapePathInterface(e[d],o[d],f)):"rc"===e[d].ty?p.push(u(e[d],o[d],f)):"rd"===e[d].ty?p.push(c(e[d],o[d],f)):"rp"===e[d].ty?p.push(h(e[d],o[d],f)):"gf"===e[d].ty?p.push(r(e[d],o[d],f)):p.push((e[d],o[d],function(){return null})));return p}function t(t,n,r){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,r);var a=function(t,n,r){var i,a=function(e){for(var t=0,n=i.length;t<n;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};a.propertyGroup=propertyGroupFactory(a,r),i=e(t.it,n.it,a.propertyGroup),a.numProperties=i.length;var s=o(t.it[t.it.length-1],n.it[n.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,n,i.propertyGroup),s=o(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.content=a,i.transform=s,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function i(e,t,n){var r,i=propertyGroupFactory(u,n),a=propertyGroupFactory(l,i);function o(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)o(r),t.d.dataProps[r].p.setGroupProperty(a);function u(e){return"Color"===e||"color"===e?u.color:"Opacity"===e||"opacity"===e?u.opacity:"Stroke Width"===e||"stroke width"===e?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),u}function a(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var i=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function o(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var i=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function s(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var i=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",i)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),a.pt.setGroupProperty(PropertyInterface("Points",i)),a.p.setGroupProperty(PropertyInterface("Position",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var i=propertyGroupFactory(r,n),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",i)),a.s.setGroupProperty(PropertyInterface("Size",i)),a.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var i=propertyGroupFactory(r,n),a=t;return r.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",i)),a.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var i;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:i[e-1];for(var t=0,n=i.length;t<n;){if(i[t]._name===e)return i[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return r})),i=e(t,n,a.propertyGroup),a.numProperties=i.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t,n;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return r!==t&&(e.textProperty.currentData.t=t,(n=new String(r)).value=r||new String(r)),n}}),r},getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var i,a=r.length;for(n=0;n<a;n+=1)i=new GroupEffect(r[n],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="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$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,a=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,a[n].ty){case 0:r=new SliderEffect(a[n],t,this);break;case 1:r=new AngleEffect(a[n],t,this);break;case 2:r=new ColorEffect(a[n],t,this);break;case 3:r=new PointEffect(a[n],t,this);break;case 4:case 7:r=new CheckboxEffect(a[n],t,this);break;case 10:r=new LayerIndexEffect(a[n],t,this);break;case 11:r=new MaskIndexEffect(a[n],t,this);break;case 5:r=new EffectsManager(a[n],t);break;default:r=new NoValueEffect(a[n])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof$2(n=n[e])?r:n;var i=e.indexOf(t);if(-1!==i){var a=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(n=n[a])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,a=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var s,l,u,c,h,f,d=this.masksProperties,p=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<o;r+=1)if(("a"!==d[r].mode&&"n"!==d[r].mode||d[r].inv||100!==d[r].o.k||d[r].o.x)&&(v="mask",y="mask"),"s"!==d[r].mode&&"i"!==d[r].mode||0!==p?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),i=createNS("path"),"n"===d[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),elem:i,lastPath:""},a.appendChild(i);else{var b;if(p+=1,i.setAttribute("fill","s"===d[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==d[r].x.k?(v="mask",y="mask",f=PropertyFactory.getProp(this.element,d[r].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),c.appendChild(h),a.appendChild(c),i.setAttribute("stroke","s"===d[r].mode?"#000000":"#ffffff")):(h=null,f=null),this.storedData[r]={elem:i,x:f,expan:h,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===d[r].mode){l=m.length;var S=createNS("g");for(s=0;s<l;s+=1)S.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+p),x.appendChild(i),a.appendChild(x),S.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+p+")"),m.length=0,m.push(S)}else m.push(i);d[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),invRect:u},this.viewData[r].prop.k||this.drawPath(d[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),o=m.length,r=0;r<o;r+=1)this.maskElement.appendChild(m[r]);p>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,r=e.length,i=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<i;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var r=this.elements,i=this.layers,a=0,o=i.length;a<o;)i[a].ind==t&&(r[a]&&!0!==r[a]?(n.push(r[a]),r[a].setAsParent(),void 0!==i[a].parent?this.buildElementParenting(e,i[a].parent,n):e.setHierarchy(n)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)e=this.hierarchy[n].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):r=!1;var a,o=t.length;for(n=0;n<o;n+=1)a=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var r,i,a=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,r=1;r<i;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&i>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",o)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],t=0;t<i;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(n=new(0,registeredEffects[l].effect)(o,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,n){registeredEffects[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e,t,n,r=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),r=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(this.layerElement),r=n,i.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var o=createNS("g");a.appendChild(o),e=createElementID(),t=filtersFactory.createFilter(e);var s=createNS("feComponentTransfer");s.setAttribute("in","SourceGraphic"),t.appendChild(s);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),s.appendChild(l),this.globalData.defs.appendChild(t);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),o.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),o.appendChild(u),o.appendChild(this.layerElement),r=o,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),o.appendChild(u),n.appendChild(this.layerElement),r=n,o.appendChild(n)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),r=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),h=createNS("path");h.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var f=createElementID();if(c.setAttribute("id",f),c.appendChild(h),this.globalData.defs.appendChild(c),this.checkMasks()){var d=createNS("g");d.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")"),d.appendChild(this.layerElement),this.transformedElement=d,r?r.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,i=e.length;r<i;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,r){var i;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,o=t.length||0;for(i=0;i<o;i+=1)a=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=a.k||this.k,this.dataProps[i]={n:t[i].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,r,i=4*this.data.p;for(t=0;t<i;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,a,o,s=[];for(o=4*t.g.p,a=0;a<o;a+=4)i=createNS("stop"),r.appendChild(i),s.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,a=createNS("mask"),o=createNS("path");a.appendChild(o);var s=createElementID(),l=createElementID();a.setAttribute("id",l);var u=createNS(1===e.t?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(r=4*e.g.p;r<i;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),c.push(n);o.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=c,this.maskId=l,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var i,a=e.o,o=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(i=1;i<t;i+=1)l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[i][0],o[i][1])+" "+r.applyToPointStringified(s[i][0],s[i][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(a[i-1][0],a[i-1][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:function(e){switch(e.ty){case"fl":return o;case"gf":return l;case"gs":return s;case"st":return u;case"sh":case"el":case"rc":case"sr":return a;case"tr":return r;case"no":return i;default:return null}}};function r(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function a(n,r,i){var a,o,s,l,u,c,h,f,d,p,m,g=r.styles.length,v=r.lvl;for(c=0;c<g;c+=1){if(l=r.sh._mdf||i,r.styles[c].lvl<v){for(f=t.reset(),p=v-r.styles[c].lvl,m=r.transformers.length-1;!l&&p>0;)l=r.transformers[m].mProps._mdf||l,p-=1,m-=1;if(l)for(p=v-r.styles[c].lvl,m=r.transformers.length-1;p>0;)d=r.transformers[m].mProps.v.props,f.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),p-=1,m-=1}else f=e;if(o=(h=r.sh.paths)._length,l){for(s="",a=0;a<o;a+=1)(u=h.shapes[a])&&u._length&&(s+=buildShapeString(u,u._length,u.c,f));r.caches[c]=s}else s=r.caches[c];r.styles[c].d+=!0===n.hd?"":s,r.styles[c]._mdf=l||r.styles[c]._mdf}}function o(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,n){l(e,t,n),u(0,t,n)}function l(e,t,n){var r,i,a,o,s,l=t.gf,u=t.g._hasOpacity,c=t.s.v,h=t.e.v;if(t.o._mdf||n){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||n){var d=1===e.t?"x1":"cx",p="x1"===d?"y1":"cy";l.setAttribute(d,c[0]),l.setAttribute(p,c[1]),u&&!t.g._collapsable&&(t.of.setAttribute(d,c[0]),t.of.setAttribute(p,c[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(a=r.length,i=0;i<a;i+=1)(o=r[i]).setAttribute("offset",m[4*i]+"%"),o.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(u&&(t.g._omdf||n)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,i=0;i<a;i+=1)o=r[i],t.g._collapsable||o.setAttribute("offset",g[2*i]+"%"),o.setAttribute("stop-opacity",g[2*i+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),u&&!t.g._collapsable&&(t.of.setAttribute("x2",h[0]),t.of.setAttribute("y2",h[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",s),u&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.e._mdf||t.h._mdf||t.a._mdf||n){s||(s=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var v=Math.atan2(h[1]-c[1],h[0]-c[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=s*y,S=Math.cos(v+t.a.v)*b+c[0],x=Math.sin(v+t.a.v)*b+c[1];l.setAttribute("fx",S),l.setAttribute("fy",x),u&&!t.g._collapsable&&(t.of.setAttribute("fx",S),t.of.setAttribute("fy",x))}}function u(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return n}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(n=0;n<a;n+=1){for(r=this.stylesList[n],s=!1,o.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(o.push(t),s=t._isAnimated||s);o.length>1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),i=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var i=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,r,i,a,o){var s,l,u,c,h,f,d=[].concat(a),p=e.length-1,m=[],g=[];for(s=p;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=n[f-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)f?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)for(u=t[s].it.length,l=0;l<u;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,i+1,d,o),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],r)),c=t[s].transform,d.push(c)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],d,i)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty?(f?(h=t[s]).closed=!1:((h=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===e[s].ty&&(f?(h=t[s]).closed=!0:(h=ShapeModifiers.getModifier(e[s].ty),t[s]=h,h.init(this,e,s,t),this.shapeModifiers.push(h),o=!1),g.push(h));this.addProcessedElement(e[s],s+1)}for(p=m.length,s=0;s<p;s+=1)m[s].closed=!0;for(p=g.length,s=0;s<p;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,r,i,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,o=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,o=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)a=n!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,o=!1;i<a;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?r[r.length-1]+=e.charAt(i):t>=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),o=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,n)?(o=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),o=!0):r.push(e.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,o,s,l=this.elem.globalData.fontManager,u=this.data,c=[],h=0,f=u.m.g,d=0,p=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),S=0,x=getFontProperties(b);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var w,_=e.tr/1e3*e.finalSize;if(e.sz)for(var k,A,E=!0,C=e.sz[0],P=e.sz[1];E;){k=0,v=0,n=(A=this.buildFinalText(e.t)).length,_=e.tr/1e3*e.finalSize;var T=-1;for(t=0;t<n;t+=1)w=A[t].charCodeAt(0),r=!1," "===A[t]?T=t:13!==w&&3!==w||(v=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(A[t],b.fStyle,b.fFamily),S=r?0:s.w*e.finalSize/100):S=l.measureText(A[t],e.f,e.finalSize),v+S>C&&" "!==A[t]?(-1===T?n+=1:t=T,k+=e.finalLineHeight||1.2*e.finalSize,A.splice(t,T===t?1:0,"\r"),T=-1,v=0):(v+=S,v+=_);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=A,n=e.finalText.length,E=!1)}v=-_,S=0;var M,I=0;for(t=0;t<n;t+=1)if(r=!1,13===(w=(M=e.finalText[t]).charCodeAt(0))||3===w?(I=0,g.push(v),y=v>y?v:y,v=-2*_,i="",r=!0,m+=1):i=M,l.chars?(s=l.getCharData(M,b.fStyle,l.getFontByName(e.f).fFamily),S=r?0:s.w*e.finalSize/100):S=l.measureText(i,e.f,e.finalSize)," "===M?I+=S+_:(v+=S+_+I,I=0),c.push({l:S,an:S,add:d,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==f){if(d+=S,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(d-=S);p<=t;)c[p].an=d,c[p].ind=h,c[p].extra=S,p+=1;h+=1,d=0}}else if(3==f){if(d+=S,""===i||t===n-1){for(""===i&&(d-=S);p<=t;)c[p].an=d,c[p].ind=h,c[p].extra=S,p+=1;d=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(e.l=c,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var R,N,L,D,B=u.a;o=B.length;var F=[];for(a=0;a<o;a+=1){for((R=B[a]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),D=0,L=R.s.b,t=0;t<n;t+=1)(N=c[t]).anIndexes[a]=D,(1==L&&""!==N.val||2==L&&""!==N.val&&" "!==N.val||3==L&&(N.n||" "==N.val||t==n-1)||4==L&&(N.n||t==n-1))&&(1===R.s.rn&&F.push(D),D+=1);u.a[a].s.totalChars=D;var O,V=-1;if(1===R.s.rn)for(t=0;t<n;t+=1)V!=(N=c[t]).anIndexes[a]&&(V=N.anIndexes[a],O=F.splice(Math.floor(Math.random()*F.length),1)[0]),N.anIndexes[a]=O}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,a=0,o=1,s=1;this.ne.v>0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,a,o,s).get,u=0,c=this.finalS,h=this.finalE,f=this.data.sh;if(2===f)u=l(u=h===c?r>=h?1:0:e(0,t(.5/(h-c)+(r-c)/(h-c),1)));else if(3===f)u=l(u=h===c?r>=h?0:1:1-e(0,t(.5/(h-c)+(r-c)/(h-c),1)));else if(4===f)h===c?u=0:(u=e(0,t(.5/(h-c)+(r-c)/(h-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===f){if(h===c)u=0;else{var d=h-c,p=-d/2+(r=t(e(0,r+.5-c),h-c)),m=d/2;u=Math.sqrt(1-p*p/(m*m))}u=l(u)}else 6===f?(h===c?u=0:(r=t(e(0,r+.5-c),h-c),u=(1+Math.cos(Math.PI+2*Math.PI*r/(h-c)))/2),u=l(u)):(r>=n(c)&&(u=e(0,t(r-c<0?t(h,1)-(c-r):h-r,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;u<v?u=0:(u=(u-v)/g)>1&&(u=1)}return u*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,n):r,rx:a.rx?i(e,a.rx,0,degToRads,n):r,ry:a.ry?i(e,a.ry,0,degToRads,n):r,sk:a.sk?i(e,a.sk,0,degToRads,n):r,sa:a.sa?i(e,a.sa,0,degToRads,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,a,o,s,l,u,c,h,f,d,p,m,g,v,y,b,S,x=this._moreOptions.alignment.v,w=this._animatorsData,_=this._textData,k=this.mHelper,A=this._renderType,E=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(S=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=S.v;for(this._pathData.r.v&&(T=T.reverse()),o={tLength:0,segments:[]},a=T._length-1,v=0,i=0;i<a;i+=1)P=bez.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength;i=a,S.v.c&&(P=bez.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),o.tLength+=P.segmentLength,o.segments.push(P),v+=P.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,s=this._pathData.f.v,f=0,h=1,u=0,c=!0,m=o.segments,s<0&&S.v.c)for(o.tLength<Math.abs(s)&&(s=-Math.abs(s)%o.tLength),h=(p=m[f=m.length-1].points).length-1;s<0;)s+=p[h].partialLength,(h-=1)<0&&(h=(p=m[f-=1].points).length-1);d=(p=m[f].points)[h-1],g=(l=p[h]).partialLength}a=C.length,n=0,r=0;var M,I,R,N,L,D=1.2*e.finalSize*.714,B=!0;R=w.length;var F,O,V,G,z,U,H,j,W,q,X,Y,Q=-1,K=s,Z=f,J=h,$=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,ie=2===e.j?-.5:-1,ae=0,oe=!0;for(i=0;i<a;i+=1)if(C[i].n){for(ne&&(ne+=re);ae<i;)C[ae].animatorJustifyOffset=ne,ae+=1;ne=0,oe=!0}else{for(I=0;I<R;I+=1)(M=w[I].a).t.propType&&(oe&&2===e.j&&(re+=M.t.v*ie),(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?ne+=M.t.v*L[0]*ie:ne+=M.t.v*L*ie);oe=!1}for(ne&&(ne+=re);ae<i;)C[ae].animatorJustifyOffset=ne,ae+=1}for(i=0;i<a;i+=1){if(k.reset(),G=1,C[i].n)n=0,r+=e.yOffset,r+=B?1:0,s=K,B=!1,this._hasMaskedPath&&(h=J,d=(p=m[f=Z].points)[h-1],g=(l=p[h]).partialLength,u=0),ee="",X="",W="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if($!==C[i].line){switch(e.j){case 1:s+=v-e.lineWidths[C[i].line];break;case 2:s+=(v-e.lineWidths[C[i].line])/2}$=C[i].line}Q!==C[i].ind&&(C[Q]&&(s+=C[Q].extra),s+=C[i].an/2,Q=C[i].ind),s+=x[0]*C[i].an*.005;var se=0;for(I=0;I<R;I+=1)(M=w[I].a).p.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?se+=M.p.v[0]*L[0]:se+=M.p.v[0]*L),M.a.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?se+=M.a.v[0]*L[0]:se+=M.a.v[0]*L);for(c=!0,this._pathData.a.v&&(s=.5*C[0].an+(v-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*Q/(a-1),s+=this._pathData.f.v);c;)u+g>=s+se||!p?(y=(s+se-u)/l.partialLength,O=d.point[0]+(l.point[0]-d.point[0])*y,V=d.point[1]+(l.point[1]-d.point[1])*y,k.translate(-x[0]*C[i].an*.005,-x[1]*D*.01),c=!1):p&&(u+=l.partialLength,(h+=1)>=p.length&&(h=0,m[f+=1]?p=m[f].points:S.v.c?(h=0,p=m[f=0].points):(u-=l.partialLength,p=null)),p&&(d=l,g=(l=p[h]).partialLength));F=C[i].an/2-C[i].add,k.translate(-F,0,0)}else F=C[i].an/2-C[i].add,k.translate(-F,0,0),k.translate(-x[0]*C[i].an*.005,-x[1]*D*.01,0);for(I=0;I<R;I+=1)(M=w[I].a).t.propType&&(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?L.length?s+=M.t.v*L[0]:s+=M.t.v*L:L.length?n+=M.t.v*L[0]:n+=M.t.v*L));for(e.strokeWidthAnim&&(U=e.sw||0),e.strokeColorAnim&&(z=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(H=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<R;I+=1)(M=w[I].a).a.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?k.translate(-M.a.v[0]*L[0],-M.a.v[1]*L[1],M.a.v[2]*L[2]):k.translate(-M.a.v[0]*L,-M.a.v[1]*L,M.a.v[2]*L));for(I=0;I<R;I+=1)(M=w[I].a).s.propType&&((L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars)).length?k.scale(1+(M.s.v[0]-1)*L[0],1+(M.s.v[1]-1)*L[1],1):k.scale(1+(M.s.v[0]-1)*L,1+(M.s.v[1]-1)*L,1));for(I=0;I<R;I+=1){if(M=w[I].a,L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),M.sk.propType&&(L.length?k.skewFromAxis(-M.sk.v*L[0],M.sa.v*L[1]):k.skewFromAxis(-M.sk.v*L,M.sa.v*L)),M.r.propType&&(L.length?k.rotateZ(-M.r.v*L[2]):k.rotateZ(-M.r.v*L)),M.ry.propType&&(L.length?k.rotateY(M.ry.v*L[1]):k.rotateY(M.ry.v*L)),M.rx.propType&&(L.length?k.rotateX(M.rx.v*L[0]):k.rotateX(M.rx.v*L)),M.o.propType&&(L.length?G+=(M.o.v*L[0]-G)*L[0]:G+=(M.o.v*L-G)*L),e.strokeWidthAnim&&M.sw.propType&&(L.length?U+=M.sw.v*L[0]:U+=M.sw.v*L),e.strokeColorAnim&&M.sc.propType)for(j=0;j<3;j+=1)L.length?z[j]+=(M.sc.v[j]-z[j])*L[0]:z[j]+=(M.sc.v[j]-z[j])*L;if(e.fillColorAnim&&e.fc){if(M.fc.propType)for(j=0;j<3;j+=1)L.length?H[j]+=(M.fc.v[j]-H[j])*L[0]:H[j]+=(M.fc.v[j]-H[j])*L;M.fh.propType&&(H=L.length?addHueToRGB(H,M.fh.v*L[0]):addHueToRGB(H,M.fh.v*L)),M.fs.propType&&(H=L.length?addSaturationToRGB(H,M.fs.v*L[0]):addSaturationToRGB(H,M.fs.v*L)),M.fb.propType&&(H=L.length?addBrightnessToRGB(H,M.fb.v*L[0]):addBrightnessToRGB(H,M.fb.v*L))}}for(I=0;I<R;I+=1)(M=w[I].a).p.propType&&(L=w[I].s.getMult(C[i].anIndexes[I],_.a[I].s.totalChars),this._hasMaskedPath?L.length?k.translate(0,M.p.v[1]*L[0],-M.p.v[2]*L[1]):k.translate(0,M.p.v[1]*L,-M.p.v[2]*L):L.length?k.translate(M.p.v[0]*L[0],M.p.v[1]*L[1],-M.p.v[2]*L[2]):k.translate(M.p.v[0]*L,M.p.v[1]*L,-M.p.v[2]*L));if(e.strokeWidthAnim&&(W=U<0?0:U),e.strokeColorAnim&&(q="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),e.fillColorAnim&&e.fc&&(X="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,x[1]*D*.01+r,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(O,V,0),s-=x[0]*C[i].an*.005,C[i+1]&&Q!==C[i+1].ind&&(s+=C[i].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line]),0,0);break;case 2:k.translate(C[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[i].line])/2,0,0)}k.translate(0,-e.ls),k.translate(F,0,0),k.translate(x[0]*C[i].an*.005,x[1]*D*.01,0),n+=C[i].l+.001*e.tr*e.finalSize}"html"===A?ee=k.toCSS():"svg"===A?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],Y=G}E<=i?(N=new LetterProps(Y,W,q,X,ee,te),this.renderedLetters.push(N),E+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[i],this.lettersChangedFlag=N.update(Y,W,q,X,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var n,r,i=t.length,a="";for(n=0;n<i;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,a+=buildShapeString(r,r.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,r,i){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var r=createNS("title"),i=createElementID();r.setAttribute("id",i),r.textContent=t.title,this.svgElement.appendChild(r),n+=i}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,i=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(i=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var o,s=n.length;for(i=0;i<s;i+=1)n[i].closed||(o={transforms:r.addTransformSequence(n[i].transforms),trNodes:[]},this.styledShapes.push(o),n[i].elements.push(o))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||""},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,a=e.ks.or.k.length;for(i=0;i<a;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,r=[],i="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(i),i=""):i+=e[t],t+=1;return r.push(i),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var o,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var u=this.mHelper,c=this.data.singleShape,h=0,f=0,d=!0,p=.001*n.tr*n.finalSize;if(!c||l||n.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!c||0===e){if(o=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,l){var v=createNS("g");o.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(u.reset(),c&&(s[e].n&&(h=-p,f+=n.yOffset,f+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,u,s[e].line,h,f),h+=s[e].l||0,h+=p),l){var y;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var S=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(S.layerElement),S.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,w="start";switch(n.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}x.setAttribute("text-anchor",w),x.setAttribute("letter-spacing",p);var _=this.buildTextContents(n.finalText);for(t=_.length,f=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(o=this.textSpans[e].span||createNS("tspan")).textContent=_[e],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",x.appendChild(o),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=o,f+=n.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,r,i,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(t=o.length,e=0;e<t;e+=1)o[e].n||(n=a[e],r=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=createElementID();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var n=this.createItem(this.layers[e]);t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?n.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(n)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var n=0;for(n=this._length;n<e;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var i=this.sequences[r];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var n,r=0,i=e.transforms.length,a=t;r<i&&!t;){if(e.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(e.finalTransform.reset(),r=i-1;r>=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,i=this.element.finalTransform.mat,a=this.element.canvasContext,o=this.masksProperties.length;for(a.beginPath(),e=0;e<o;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[e].v,t=i.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(t[0],t[1]);var l=r._length;for(s=1;s<l;s+=1)n=i.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),a.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=i.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),a.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);r.d=i,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,i){var a,o,s,l,u,c,h=e.length-1,f=[],d=[],p=[].concat(i);for(a=h;a>=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=n[l-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],p),f.push(t[a].style);else if("gr"===e[a].ty){if(l)for(s=t[a].it.length,o=0;o<s;o+=1)t[a].prevViewData[o]=t[a].it[o];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,r,p)}else"tr"===e[a].ty?(l||(c=this.createTransformElement(e[a]),t[a]=c),p.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?l||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty?(l?(u=t[a]).closed=!1:((u=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=u,this.shapeModifiers.push(u)),d.push(u)):"rp"===e[a].ty&&(l?(u=t[a]).closed=!0:(u=ShapeModifiers.getModifier(e[a].ty),t[a]=u,u.init(this,e,a,t),this.shapeModifiers.push(u),r=!1),d.push(u));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),h=d.length,a=0;a<h;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,r,i,a,o,s,l,u=this.stylesList.length,c=this.globalData.renderer,h=this.globalData.canvasContext;for(e=0;e<u;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),a=l.elements,"st"===s||"gs"===s?(h.strokeStyle="st"===s?l.co:l.grd,h.lineWidth=l.wi,h.lineCap=l.lc,h.lineJoin=l.lj,h.miterLimit=l.ml||0):h.fillStyle="fl"===s?l.co:l.grd,c.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&h.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),n=a.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(h.beginPath(),l.da&&(h.setLineDash(l.da),h.lineDashOffset=l.do)),i=(o=a[t].trNodes).length,r=0;r<i;r+=1)"m"===o[r].t?h.moveTo(o[r].p[0],o[r].p[1]):"c"===o[r].t?h.bezierCurveTo(o[r].pts[0],o[r].pts[1],o[r].pts[2],o[r].pts[3],o[r].pts[4],o[r].pts[5]):h.closePath();"st"!==s&&"gs"!==s||(h.stroke(),l.da&&h.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&h.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var i,a;for(a=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(a=n[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],a):"st"===t[i].ty?this.renderStroke(t[i],n[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,a=e.trNodes,o=t.paths,s=o._length;a.length=0;var l=e.transforms.finalTransform;for(i=0;i<s;i+=1){var u=o.shapes[i];if(u&&u.v){for(r=u._length,n=1;n<r;n+=1)1===n&&a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(u.o[n-1],u.i[n],u.v[n])});1===r&&a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&r&&(a.push({t:"c",pts:l.applyToTriplePoints(u.o[n-1],u.i[0],u.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var a,o=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)r=o.createLinearGradient(s[0],s[1],l[0],l[1]);else{var u=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),c=Math.atan2(l[1]-s[1],l[0]-s[0]),h=t.h.v;h>=1?h=.99:h<=-1&&(h=-.99);var f=u*h,d=Math.cos(c+t.a.v)*f+s[0],p=Math.sin(c+t.a.v)*f+s[1];r=o.createRadialGradient(d,p,0,s[0],s[1],u)}var m=e.g.p,g=t.g.c,v=1;for(a=0;a<m;a+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*a+1]),r.addColorStop(g[4*a]/100,"rgba("+g[4*a+1]+","+g[4*a+2]+","+g[4*a+3]+","+v+")");i.grd=r}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(r.da=i.dashArray,r.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,i,a,o,s,l,u,c,h,f,d,p,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,S=0,x=0,w=!0,_=0;for(r=0;r<i;r+=1){o=(a=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},v.reset(),y&&g[r].n&&(S=-b,x+=e.yOffset,x+=w?1:0,w=!1),h=(u=o.shapes?o.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,S,x),d=createSizedArray(h-1);var k=0;for(c=0;c<h;c+=1)if("sh"===u[c].ty){for(l=u[c].ks.k.i.length,f=u[c].ks.k,p=[],s=1;s<l;s+=1)1===s&&p.push(v.applyToX(f.v[0][0],f.v[0][1],0),v.applyToY(f.v[0][0],f.v[0][1],0)),p.push(v.applyToX(f.o[s-1][0],f.o[s-1][1],0),v.applyToY(f.o[s-1][0],f.o[s-1][1],0),v.applyToX(f.i[s][0],f.i[s][1],0),v.applyToY(f.i[s][0],f.i[s][1],0),v.applyToX(f.v[s][0],f.v[s][1],0),v.applyToY(f.v[s][0],f.v[s][1],0));p.push(v.applyToX(f.o[s-1][0],f.o[s-1][1],0),v.applyToY(f.o[s-1][0],f.o[s-1][1],0),v.applyToX(f.i[0][0],f.i[0][1],0),v.applyToY(f.i[0][0],f.i[0][1],0),v.applyToX(f.v[0][0],f.v[0][1],0),v.applyToY(f.v[0][0],f.v[0][1],0)),d[k]=p,k+=1}y&&(S+=g[r].l,S+=b),this.textSpans[_]?this.textSpans[_].elem=d:this.textSpans[_]={elem:d},_+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,i,a,o=this.canvasContext;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,l=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;t=u.length;var c,h,f=null,d=null,p=null;for(e=0;e<t;e+=1)if(!u[e].n){if((s=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?f!==s.fc&&(f=s.fc,o.fillStyle=s.fc):f!==this.values.fill&&(f=this.values.fill,o.fillStyle=this.values.fill),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(h=c[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?p!==s.sw&&(p=s.sw,o.lineWidth=s.sw):p!==this.values.sWidth&&(p=this.values.sWidth,o.lineWidth=this.values.sWidth),s&&s.sc?d!==s.sc&&(d=s.sc,o.strokeStyle=s.sc):d!==this.values.stroke&&(d=this.values.stroke,o.strokeStyle=this.values.stroke),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(a=(h=c[n]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),i=2;i<a;i+=6)this.globalData.canvasContext.bezierCurveTo(h[i],h[i+1],h[i+2],h[i+3],h[i+4],h[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,r=e.getContext("2d"),i=this.img.width,a=this.img.height,o=i/a,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>s&&"xMidYMid slice"===l||o<s&&"xMidYMid slice"!==l?t=(n=a)*s:n=(t=i)/s,r.drawImage(this.img,(i-t)/2,(a-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,n=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var r=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)r[t]=n[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,n=this.contextData.saved[this.contextData.cArrPos],r=this.contextData.cTr.props;for(t=0;t<16;t+=1)r[t]=n[t];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var e,t,n,r;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),a=i[1]||"meet",o=i[0]||"xMidYMid",s=o.substr(0,4),l=o.substr(4);n=e/t,(r=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===a||r<n&&"slice"===a?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===s&&(r<n&&"meet"===a||r>n&&"slice"===a)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(r<n&&"meet"===a||r>n&&"slice"===a)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(r>n&&"meet"===a||r<n&&"slice"===a)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(r>n&&"meet"===a||r<n&&"slice"===a)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n<r;n+=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,i,a,o,s=e.sh.v,l=e.transformers,u=s._length;if(!(u<=1)){for(n=0;n<u-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),a=this.getTransformedPoint(l,s.i[n+1]),o=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,i,a,o,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),i=this.getTransformedPoint(l,s.o[n]),a=this.getTransformedPoint(l,s.i[0]),o=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,i,a,o,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,i){this.getBoundsOfCurve(e,t,n,r);var a=this.shapeBoundingBox;i.x=bmMin(a.left,i.x),i.xMax=bmMax(a.right,i.xMax),i.y=bmMin(a.top,i.y),i.yMax=bmMax(a.bottom,i.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,r){for(var i,a,o,s,l,u,c,h=[[e[0],r[0]],[e[1],r[1]]],f=0;f<2;++f)a=6*e[f]-12*t[f]+6*n[f],i=-3*e[f]+9*t[f]-9*n[f]+3*r[f],o=3*t[f]-3*e[f],a|=0,o|=0,0==(i|=0)&&0===a||(0===i?(s=-o/a)>0&&s<1&&h[f].push(this.calculateF(s,e,t,n,r,f)):(l=a*a-4*o*i)>=0&&((u=(-a+bmSqrt(l))/(2*i))>0&&u<1&&h[f].push(this.calculateF(u,e,t,n,r,f)),(c=(-a-bmSqrt(l))/(2*i))>0&&c<1&&h[f].push(this.calculateF(c,e,t,n,r,f))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var i=e.keyframes[r].s;i>n&&(n=i)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=i,r.webkitTransform=i}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,i,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var o=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=o}var l,u,c,h=e.l;i=h.length;var f,d=this.mHelper,p="",m=0;for(r=0;r<i;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(u=this.textSpans[m]).children[0]:((u=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(u)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],l=this.textPaths[m]):(styleDiv(u=createTag("span")),styleDiv(l=createTag("span")),u.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[r],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,d.reset(),g&&g.shapes&&g.shapes.length&&(f=g.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),p=this.createPathShape(d,f),l.setAttribute("d",p)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(u),g&&g.shapes){document.body.appendChild(c);var y=c.getBBox();c.setAttribute("width",y.width+2),c.setAttribute("height",y.height+2),c.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=c.style,S="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=S,b.webkitTransform=S,h[r].yOffset=y.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);u.appendChild(c)}}else if(l.textContent=h[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(u);var x=l.style,w="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=w,x.webkitTransform=w}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=u,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,r,i,a,o,s=0,l=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(r=u.length,n=0;n<r;n+=1)u[n].n?s+=1:(a=this.textSpans[n],o=this.textPaths[n],i=l[s],s+=1,i._mdf.m&&(this.isMasked?a.setAttribute("transform",i.m):(a.style.webkitTransform=i.m,a.style.transform=i.m)),a.style.opacity=i.o,i.sw&&i._mdf.sw&&o.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&o.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(o.setAttribute("fill",i.fc),o.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var a=this.pe.v+"px",o="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=a,n.webkitPerspective=a,r.transformOrigin=o,r.mozTransformOrigin=o,r.webkitTransformOrigin=o,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),o=[i[0]/a,i[1]/a,i[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],s),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var h,f,d;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(h=this.comp.threeDElements[e]).type){if(c){var p=this.mat.toCSS();(d=h.container.style).transform=p,d.webkitTransform=p}this.pe._mdf&&((f=h.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var i,a,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement&&(a=this.elements[o],i=(this.layers[o].ddd?this.getThreeDContainerByPos(o):a.getBaseElement())||i),o+=1;i?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,i):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=s,r.webkitTransform=s}i.appendChild(a);var l={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var i,a=this.threeDElements[n].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a].getBaseElement()),a+=1;i?this.threeDElements[n].container.insertBefore(e,i):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var a=createNS("defs");i.appendChild(a),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,r,i=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,o=i/a;this.globalData.compSize.w/this.globalData.compSize.h>o?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t],r,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,n=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="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$1(e)}function seedRandom(t,n){var r=this,i=256,a=n.pow(i,6),o=n.pow(2,52),s=2*o,l=255;function u(e){var t,n=e.length,r=this,a=0,o=r.i=r.j=0,s=r.S=[];for(n||(e=[n++]);a<i;)s[a]=a++;for(a=0;a<i;a++)s[a]=s[o=l&o+e[a%n]+(t=s[a])],s[o]=t;r.g=function(e){for(var t,n=0,a=r.i,o=r.j,s=r.S;e--;)t=s[a=l&a+1],n=n*i+s[l&(s[a]=s[o=l&o+t])+(s[o]=t)];return r.i=a,r.j=o,n}}function c(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function h(t,n){var r,i=[],a=_typeof$1(t);if(n&&"object"==a)for(r in t)try{i.push(h(t[r],n-1))}catch(e){}return i.length?i:"string"==a?t:t+"\0"}function f(e,t){for(var n,r=e+"",i=0;i<r.length;)t[l&i]=l&(n^=19*t[l&i])+r.charCodeAt(i++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}n.seedrandom=function(l,p,m){var g=[],v=f(h((p=!0===p?{entropy:!0}:p||{}).entropy?[l,d(t)]:null===l?function(){try{var n=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(n),d(n)}catch(e){var a=r.navigator,o=a&&a.plugins;return[+new Date,r,o,r.screen,d(t)]}}():l,3),g),y=new u(g),b=function(){for(var e=y.g(6),t=a,n=0;e<o;)e=(e+n)*i,t*=i,n=y.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,f(d(y.S),t),(p.pass||m||function(e,t,r,i){return i&&(i.S&&c(i,y),e.state=function(){return c(y,{})}),r?(n.random=e,t):e})(b,v,"global"in p?p.global:this==n,p.state)},f(n.random(),t)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};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)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;n<r;n+=1)i[n]=-e[n];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof(e),r=_typeof(t);if("string"===n||"string"===r)return e+t;if(isNumerable(n,e)&&isNumerable(r,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]+t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof(e),r=_typeof(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,a=e.length,o=t.length,s=[];i<a||i<o;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?s[i]=e[i]-t[i]:s[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return s}return 0}function mul(e,t){var n,r,i,a=_typeof(e),o=_typeof(t);if(isNumerable(a,e)&&isNumerable(o,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]*t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,i,a=_typeof(e),o=_typeof(t);if(isNumerable(a,e)&&isNumerable(o,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(o,t)){for(i=e.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e[r]/t;return n}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,n=createTypedArray("float32",i),r=0;r<i;r+=1)n[r]=e/t[r];return n}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n<r;n+=1)i+=Math.pow(t[n]-e[n],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],i=e[1],a=e[2],o=Math.max(r,i,a),s=Math.min(r,i,a),l=(o+s)/2;if(o===s)t=0,n=0;else{var u=o-s;switch(n=l>.5?u/(2-o-s):u/(o+s),o){case r:t=(i-a)/u+(i<a?6:0);break;case i:t=(a-r)/u+2;break;case a:t=(r-i)/u+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],a=e[1],o=e[2];if(0===a)t=o,r=o,n=o;else{var s=o<.5?o*(1+a):o+a-o*a,l=2*o-s;t=hue2rgb(l,s,i+1/3),n=hue2rgb(l,s,i),r=hue2rgb(l,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return r;if(e>=n)return i;var o,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var l=r.length,u=createTypedArray("float32",l);for(o=0;o<l;o+=1)u[o]=r[o]+(i[o]-r[o])*s;return u}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var n,r=t.length;e||(e=createTypedArray("float32",r));var i=createTypedArray("float32",r),a=BMMath.random();for(n=0;n<r;n+=1)i[n]=e[n]+a*(t[n]-e[n]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var i,a=e.length,o=shapePool.newElement();o.setPathData(!!r,a);var s,l,u=[0,0];for(i=0;i<a;i+=1)s=t&&t[i]?t[i]:u,l=n&&n[i]?n[i]:u,o.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],s[0]+e[i][0],s[1]+e[i][1],i,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var n,r,i=this.pv.length?this.pv.length:1,a=createTypedArray("float32",i),o=Math.floor(5*time);for(n=0,r=0;n<o;){for(r=0;r<i;r+=1)a[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),u=createTypedArray("float32",i);if(i>1){for(r=0;r<i;r+=1)u[r]=this.pv[r]+a[r]+(-t+2*t*BMMath.random())*l;return u}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,i){return applyEase(easeOutBez,e,t,n,r,i)}function easeIn(e,t,n,r,i){return applyEase(easeInBez,e,t,n,r,i)}function ease(e,t,n,r,i){return applyEase(easeInOutBez,e,t,n,r,i)}function applyEase(e,t,n,r,i,a){void 0===i?(i=n,a=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(i)){var s,l=i.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=(a[s]-i[s])*o+i[s];return u}return(a-i)*o+i}function nearestKey(e){var t,n,r,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){n=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;n<r;n+=1)t[n]=i[n],t.value[n]=i[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var i;for(i=0;i<t.length;i+=1)r+=Math.pow(n[i]-t[i],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,i=this.getValueAtTime(e),a=this.getValueAtTime(e+r);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(a[n]-i[n])/r;else t=(a-i)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[u.length-1].t;if(l<=c)return this.pv;if(n?i=c-(r=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>u.length-1)&&(t=u.length-1),r=c-(i=u[u.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/r)%2!=0)return this.getValueAtTime((r-(l-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(i/this.comp.globalData.frameRate,0),f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0),p=Math.floor((l-i)/r);if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=(f[a]-h[a])*p+d[a];return s}return(f-h)*p+d}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*((l-c)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-i)%r+i)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,i,a,o,s,l=this.comp.renderedFrame,u=this.keyframes,c=u[0].t;if(l>=c)return this.pv;if(n?i=c+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>u.length-1)&&(t=u.length-1),r=(i=u[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),f=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),p=Math.floor((c-l)/r)+1;if(this.pv.length){for(o=(s=new Array(h.length)).length,a=0;a<o;a+=1)s[a]=d[a]-(f[a]-h[a])*p;return s}return d-(f-h)*p}if("continue"===e){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(o=(s=new Array(m.length)).length,a=0;a<o;a+=1)s[a]=m[a]+(m[a]-g[a])*(c-l)/.001;return s}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,i=this.comp.renderedFrame/this.comp.globalData.frameRate,a=i-e,o=t>1?(i+e-a)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(a+s*o),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var o=this.r.getValueAtTime(e);t.rotate(-o*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),u=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var d=this.pz.getValueAtTime(e);t.translate(h*this.px.mult,f*this.py.mult,-d*this.pz.mult)}else t.translate(h*this.px.mult,f*this.py.mult,0)}else{var p=this.p.getValueAtTime(e);t.translate(p[0]*this.p.mult,p[1]*this.p.mult,-p[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var o=a(e,t,n);return o.dynamicProperties.length?o.getValueAtTime=r.bind(o):o.getValueAtTime=i.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(r,i,a,s,l){var u=o(r,i,a,s,l);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=e,u.loopIn=t,u.smooth=n,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===i.a?i.k.length:0,u.propertyIndex=i.ix;var c=0;return 0!==a&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,i,u),u.k&&l.addDynamicProperty(u),u};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(e,t){this.k&&this.getValue();var n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var i=r._length,a=r[e],o=r.v,s=createSizedArray(i);for(n=0;n<i;n+=1)s[n]="i"===e||"o"===e?[a[n][0]-o[n][0],a[n][1]-o[n][1]]:[a[n][0],a[n][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,i=this._segmentsLength,a=i.lengths,o=i.totalLength*e,s=0,l=a.length,u=0;s<l;){if(u+a[s].addedLength>o){var c=s,h=n.c&&s===l-1?0:s+1,f=(o-u)/a[s].addedLength;r=bez.getPointInSegment(n.v[c],n.v[h],n.o[c],n.i[h],f,a[s]);break}u+=a[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-r[0],o=i[1]-r[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===n?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],s),extendPrototype([u],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,n,r,i){var a=c(e,t,n,r,i);return a.propertyIndex=t.ix,a.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,a):4===n&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,n,r,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(r,[i,r+"_tint_1",r+"_tint_2"]);e.appendChild(o)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",r),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(i);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var s=createNS("feFuncG");s.setAttribute("type","table"),a.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var i=this.filterManager.effectElements,a=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,n,r,i){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(c);var h=this.createMergeNode(r,[r+"_drop_shadow_4",i]);e.appendChild(h)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,r,i=createNS("feMerge");for(i.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),i.appendChild(n),i.appendChild(n);return i}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+o+")");i[0];)s.appendChild(i[0]);this.elem.layerElement.appendChild(s),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,r,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a="0 0 0 "+l*o+" ";var u,c=l*(s-o),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/h);for(u=0;u<f;u+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,i=r[0]+" "+n[0]+" "+t[0],a=r[1]+" "+n[1]+" "+t[1],o=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,i){for(var a,o,s=0,l=Math.min(e,t),u=Math.max(e,t),c=Array.call(null,{length:256}),h=0,f=i-r,d=t-e;s<=256;)o=(a=s/256)<=l?d<0?i:r:a>=u?d<0?r:i:r+f*Math.pow((a-e)/d,1/n),c[h]=o,h+=1,s+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,i=n.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;a<=o-2&&(r=i[a+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(r);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),i.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+n),r.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,i=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+i);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())})(lottie,lottie.exports);var Lottie=lottie.exports,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},lodash={exports:{}};
  99. /**
  100. * @license
  101. * Lodash <https://lodash.com/>
  102. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  103. * Released under MIT license <https://lodash.com/license>
  104. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  105. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  106. */
  107. !function(t,n){(function(){var r,i="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,l=32,u=64,c=128,h=256,f=1/0,d=9007199254740991,p=NaN,m=4294967295,g=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",u],["rearg",h]],v="[object Arguments]",y="[object Array]",b="[object Boolean]",S="[object Date]",x="[object Error]",w="[object Function]",_="[object GeneratorFunction]",k="[object Map]",A="[object Number]",E="[object Object]",C="[object Promise]",P="[object RegExp]",T="[object Set]",M="[object String]",I="[object Symbol]",R="[object WeakMap]",N="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",O="[object Int16Array]",V="[object Int32Array]",G="[object Uint8Array]",z="[object Uint8ClampedArray]",U="[object Uint16Array]",H="[object Uint32Array]",j=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,Q=RegExp(X.source),K=RegExp(Y.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(re.source),ae=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Me="[\\ud800-\\udfff]",Ie="["+Pe+"]",Re="["+_e+"]",Ne="\\d+",Le="[\\u2700-\\u27bf]",De="["+Ae+"]",Be="[^\\ud800-\\udfff"+Pe+Ne+ke+Ae+Ee+"]",Fe="\\ud83c[\\udffb-\\udfff]",Oe="[^\\ud800-\\udfff]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ge="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ee+"]",Ue="(?:"+De+"|"+Be+")",He="(?:"+ze+"|"+Be+")",je="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Re+"|"+Fe+")"+"?",Xe="[\\ufe0e\\ufe0f]?",Ye=Xe+qe+("(?:\\u200d(?:"+[Oe,Ve,Ge].join("|")+")"+Xe+qe+")*"),Qe="(?:"+[Le,Ve,Ge].join("|")+")"+Ye,Ke="(?:"+[Oe+Re+"?",Re,Ve,Ge,Me].join("|")+")",Ze=RegExp(Te,"g"),Je=RegExp(Re,"g"),$e=RegExp(Fe+"(?="+Fe+")|"+Ke+Ye,"g"),et=RegExp([ze+"?"+De+"+"+je+"(?="+[Ie,ze,"$"].join("|")+")",He+"+"+We+"(?="+[Ie,ze+Ue,"$"].join("|")+")",ze+"?"+Ue+"+"+je,ze+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,Qe].join("|"),"g"),tt=RegExp("[\\u200d\\ud800-\\udfff"+_e+Ce+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,at={};at[D]=at[B]=at[F]=at[O]=at[V]=at[G]=at[z]=at[U]=at[H]=!0,at[v]=at[y]=at[N]=at[b]=at[L]=at[S]=at[x]=at[w]=at[k]=at[A]=at[E]=at[P]=at[T]=at[M]=at[R]=!1;var ot={};ot[v]=ot[y]=ot[N]=ot[L]=ot[b]=ot[S]=ot[D]=ot[B]=ot[F]=ot[O]=ot[V]=ot[k]=ot[A]=ot[E]=ot[P]=ot[T]=ot[M]=ot[I]=ot[G]=ot[z]=ot[U]=ot[H]=!0,ot[x]=ot[w]=ot[R]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,ct="object"==_typeof3(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ht="object"==("undefined"==typeof self?"undefined":_typeof3(self))&&self&&self.Object===Object&&self,ft=ct||ht||Function("return this")(),dt=n&&!n.nodeType&&n,pt=dt&&t&&!t.nodeType&&t,mt=pt&&pt.exports===dt,gt=mt&&ct.process,vt=function(){try{var t=pt&&pt.require&&pt.require("util").types;return t||gt&&gt.binding&&gt.binding("util")}catch(e){}}(),yt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,St=vt&&vt.isMap,xt=vt&&vt.isRegExp,wt=vt&&vt.isSet,_t=vt&&vt.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function Et(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Pt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function Mt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Nt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function Dt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=jt("length");function Ot(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Vt(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Vt(e,Ut,n)}function zt(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Ut(e){return e!=e}function Ht(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:p}function jt(e){return function(t){return null==t?r:t[e]}}function Wt(e){return function(t){return null==e?r:e[t]}}function qt(e,t,n,r,i){return i(e,(function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)})),n}function Xt(e,t){for(var n,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,dn(e)+1).replace(ae,""):e}function Kt(e){return function(t){return e(t)}}function Zt(e,t){return Rt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function $t(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function en(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var nn=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Wt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+st[e]}function on(e){return tt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[i++]=n)}return a}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){return on(e)?function(e){var t=$e.lastIndex=0;for(;$e.test(e);)++t;return t}(e):Ft(e)}function fn(e){return on(e)?function(e){return e.match($e)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pn=Wt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var mn=function t(n){var oe=(n=null==n?ft:mn.defaults(ft.Object(),n,mn.pick(ft,rt))).Array,_e=n.Date,ke=n.Error,Ae=n.Function,Ee=n.Math,Ce=n.Object,Pe=n.RegExp,Te=n.String,Me=n.TypeError,Ie=oe.prototype,Re=Ae.prototype,Ne=Ce.prototype,Le=n["__core-js_shared__"],De=Re.toString,Be=Ne.hasOwnProperty,Fe=0,Oe=function(){var e=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ve=Ne.toString,Ge=De.call(Ce),ze=ft._,Ue=Pe("^"+De.call(Be).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=mt?n.Buffer:r,je=n.Symbol,We=n.Uint8Array,qe=He?He.allocUnsafe:r,Xe=ln(Ce.getPrototypeOf,Ce),Ye=Ce.create,Qe=Ne.propertyIsEnumerable,Ke=Ie.splice,$e=je?je.isConcatSpreadable:r,tt=je?je.iterator:r,st=je?je.toStringTag:r,ct=function(){try{var t=fa(Ce,"defineProperty");return t({},"",{}),t}catch(e){}}(),ht=n.clearTimeout!==ft.clearTimeout&&n.clearTimeout,dt=_e&&_e.now!==ft.Date.now&&_e.now,pt=n.setTimeout!==ft.setTimeout&&n.setTimeout,gt=Ee.ceil,vt=Ee.floor,Ft=Ce.getOwnPropertySymbols,Wt=He?He.isBuffer:r,gn=n.isFinite,vn=Ie.join,yn=ln(Ce.keys,Ce),bn=Ee.max,Sn=Ee.min,xn=_e.now,wn=n.parseInt,_n=Ee.random,kn=Ie.reverse,An=fa(n,"DataView"),En=fa(n,"Map"),Cn=fa(n,"Promise"),Pn=fa(n,"Set"),Tn=fa(n,"WeakMap"),Mn=fa(Ce,"create"),In=Tn&&new Tn,Rn={},Nn=Ua(An),Ln=Ua(En),Dn=Ua(Cn),Bn=Ua(Pn),Fn=Ua(Tn),On=je?je.prototype:r,Vn=On?On.valueOf:r,Gn=On?On.toString:r;function zn(e){if(os(e)&&!Qo(e)&&!(e instanceof Wn)){if(e instanceof jn)return e;if(Be.call(e,"__wrapped__"))return Ha(e)}return new jn(e)}var Un=function(){function e(){}return function(t){if(!as(t))return{};if(Ye)return Ye(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Hn(){}function jn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Xn(e);this.size=t.size}function Zn(e,t){var n=Qo(e),r=!n&&Yo(e),i=!n&&!r&&$o(e),a=!n&&!r&&!i&&ps(e),o=n||r||i||a,s=o?Yt(e.length,Te):[],l=s.length;for(var u in e)!t&&!Be.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ba(u,l))||s.push(u);return s}function Jn(e){var t=e.length;return t?e[Qr(0,t-1)]:r}function $n(e,t){return Ba(Mi(e),lr(t,0,e.length))}function er(e){return Ba(Mi(e))}function tr(e,t,n){(n!==r&&!Wo(e[t],n)||n===r&&!(t in e))&&or(e,t,n)}function nr(e,t,n){var i=e[t];Be.call(e,t)&&Wo(i,n)&&(n!==r||t in e)||or(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Wo(e[n][0],t))return n;return-1}function ir(e,t,n,r){return dr(e,(function(e,i,a){t(r,e,n(e),a)})),r}function ar(e,t){return e&&Ii(t,Bs(t),e)}function or(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=oe(i),o=null==e;++n<i;)a[n]=o?r:Is(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ur(e,t,n,i,a,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=a?n(e,i,a,o):n(e)),s!==r)return s;if(!as(e))return e;var h=Qo(e);if(h){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Mi(e,s)}else{var f=ma(e),d=f==w||f==_;if($o(e))return ki(e,l);if(f==E||f==v||d&&!a){if(s=u||d?{}:va(e),!l)return u?function(e,t){return Ii(e,pa(e),t)}(e,function(e,t){return e&&Ii(t,Fs(t),e)}(s,e)):function(e,t){return Ii(e,da(e),t)}(e,ar(s,e))}else{if(!ot[f])return a?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case N:return Ai(e);case b:case S:return new r(+e);case L:return function(e,t){var n=t?Ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case B:case F:case O:case V:case G:case z:case U:case H:return Ei(e,n);case k:return new r;case A:case M:return new r(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case I:return i=e,Vn?Ce(Vn.call(i)):{}}var i}(e,f,l)}}o||(o=new Kn);var p=o.get(e);if(p)return p;o.set(e,s),hs(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,o))})):ss(e)&&e.forEach((function(r,i){s.set(i,ur(r,t,n,i,e,o))}));var m=h?r:(c?u?aa:ia:u?Fs:Bs)(e);return Et(m||e,(function(r,i){m&&(r=e[i=r]),nr(s,i,ur(r,t,n,i,e,o))})),s}function cr(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ce(e);i--;){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s))return!1}return!0}function hr(e,t,n){if("function"!=typeof e)throw new Me(i);return Ra((function(){e.apply(r,n)}),t)}function fr(e,t,n,r){var i=-1,a=Mt,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Rt(t,Kt(n))),r?(a=It,o=!1):t.length>=200&&(a=Jt,o=!1,t=new Qn(t));e:for(;++i<s;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,o&&h==h){for(var f=u;f--;)if(t[f]===h)continue e;l.push(c)}else a(t,h,r)||l.push(c)}return l}zn.templateSettings={escape:Z,evaluate:J,interpolate:$,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,jn.prototype=Un(Hn.prototype),jn.prototype.constructor=jn,Wn.prototype=Un(Hn.prototype),Wn.prototype.constructor=Wn,qn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===a?r:n}return Be.call(t,e)?t[e]:r},qn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==r:Be.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===r?a:t,this},Xn.prototype.clear=function(){this.__data__=[],this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Xn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?r:t[n][1]},Xn.prototype.has=function(e){return rr(this.__data__,e)>-1},Xn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(En||Xn),string:new qn}},Yn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return ca(this,e).get(e)},Yn.prototype.has=function(e){return ca(this,e).has(e)},Yn.prototype.set=function(e,t){var n=ca(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,a),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Xn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Xn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var dr=Li(xr),pr=Li(wr,!0);function mr(e,t){var n=!0;return dr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===r?s==s&&!ds(s):n(s,l)))var l=s,u=o}return u}function vr(e,t){var n=[];return dr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=ya),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Nt(i,s):r||(i[i.length]=s)}return i}var br=Di(),Sr=Di(!0);function xr(e,t){return e&&br(e,t,Bs)}function wr(e,t){return e&&Sr(e,t,Bs)}function _r(e,t){return Tt(t,(function(t){return ns(e[t])}))}function kr(e,t){for(var n=0,i=(t=Si(t,e)).length;null!=e&&n<i;)e=e[za(t[n++])];return n&&n==i?e:r}function Ar(e,t,n){var r=t(e);return Qo(e)?r:Nt(r,n(e))}function Er(t){return null==t?t===r?"[object Undefined]":"[object Null]":st&&st in Ce(t)?function(t){var n=Be.call(t,st),i=t[st];try{t[st]=r;var a=!0}catch(e){}var o=Ve.call(t);a&&(n?t[st]=i:delete t[st]);return o}(t):function(e){return Ve.call(e)}(t)}function Cr(e,t){return e>t}function Pr(e,t){return null!=e&&Be.call(e,t)}function Tr(e,t){return null!=e&&t in Ce(e)}function Mr(e,t,n){for(var i=n?It:Mt,a=e[0].length,o=e.length,s=o,l=oe(o),u=1/0,c=[];s--;){var h=e[s];s&&t&&(h=Rt(h,Kt(t))),u=Sn(h.length,u),l[s]=!n&&(t||a>=120&&h.length>=120)?new Qn(s&&h):r}h=e[0];var f=-1,d=l[0];e:for(;++f<a&&c.length<u;){var p=h[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(d?Jt(d,m):i(c,m,n))){for(s=o;--s;){var g=l[s];if(!(g?Jt(g,m):i(e[s],m,n)))continue e}d&&d.push(m),c.push(p)}}return c}function Ir(e,t,n){var i=null==(e=Pa(e,t=Si(t,e)))?e:e[za(eo(t))];return null==i?r:kt(i,e,n)}function Rr(e){return os(e)&&Er(e)==v}function Nr(e,t,n,i,a){return e===t||(null==e||null==t||!os(e)&&!os(t)?e!=e&&t!=t:function(e,t,n,i,a,o){var s=Qo(e),l=Qo(t),u=s?y:ma(e),c=l?y:ma(t),h=(u=u==v?E:u)==E,f=(c=c==v?E:c)==E,d=u==c;if(d&&$o(e)){if(!$o(t))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new Kn),s||ps(e)?na(e,t,n,i,a,o):function(e,t,n,r,i,a,o){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case N:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case b:case S:case A:return Wo(+e,+t);case x:return e.name==t.name&&e.message==t.message;case P:case M:return e==t+"";case k:var s=sn;case T:var l=1&r;if(s||(s=cn),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=2,o.set(e,t);var c=na(s(e),s(t),r,i,a,o);return o.delete(e),c;case I:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,u,n,i,a,o);if(!(1&n)){var p=h&&Be.call(e,"__wrapped__"),m=f&&Be.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,w=m?t.value():t;return o||(o=new Kn),a(g,w,n,i,o)}}if(!d)return!1;return o||(o=new Kn),function(e,t,n,i,a,o){var s=1&n,l=ia(e),u=l.length,c=ia(t).length;if(u!=c&&!s)return!1;var h=u;for(;h--;){var f=l[h];if(!(s?f in t:Be.call(t,f)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);var g=s;for(;++h<u;){var v=e[f=l[h]],y=t[f];if(i)var b=s?i(y,v,f,t,e,o):i(v,y,f,e,t,o);if(!(b===r?v===y||a(v,y,n,i,o):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var S=e.constructor,x=t.constructor;S==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof x&&x instanceof x||(m=!1)}return o.delete(e),o.delete(t),m}(e,t,n,i,a,o)}(e,t,n,i,Nr,a))}function Lr(e,t,n,i){var a=n.length,o=a,s=!i;if(null==e)return!o;for(e=Ce(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=n[a])[0],c=e[u],h=l[1];if(s&&l[2]){if(c===r&&!(u in e))return!1}else{var f=new Kn;if(i)var d=i(c,h,u,e,t,f);if(!(d===r?Nr(h,c,3,i,f):d))return!1}}return!0}function Dr(e){return!(!as(e)||(t=e,Oe&&Oe in t))&&(ns(e)?Ue:ve).test(Ua(e));var t}function Br(e){return"function"==typeof e?e:null==e?ll:"object"==_typeof3(e)?Qo(e)?Ur(e[0],e[1]):zr(e):vl(e)}function Fr(e){if(!ka(e))return yn(e);var t=[];for(var n in Ce(e))Be.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Or(e){if(!as(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=ka(e),n=[];for(var r in e)("constructor"!=r||!t&&Be.call(e,r))&&n.push(r);return n}function Vr(e,t){return e<t}function Gr(e,t){var n=-1,r=Zo(e)?oe(e.length):[];return dr(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function zr(e){var t=ha(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function Ur(e,t){return xa(e)&&Aa(t)?Ea(za(e),t):function(n){var i=Is(n,e);return i===r&&i===t?Rs(n,e):Nr(t,i,3)}}function Hr(e,t,n,i,a){e!==t&&br(t,(function(o,s){if(a||(a=new Kn),as(o))!function(e,t,n,i,a,o,s){var l=Ma(e,n),u=Ma(t,n),c=s.get(u);if(c)return void tr(e,n,c);var h=o?o(l,u,n+"",e,t,s):r,f=h===r;if(f){var d=Qo(u),p=!d&&$o(u),m=!d&&!p&&ps(u);h=u,d||p||m?Qo(l)?h=l:Jo(l)?h=Mi(l):p?(f=!1,h=ki(u,!0)):m?(f=!1,h=Ei(u,!0)):h=[]:us(u)||Yo(u)?(h=l,Yo(l)?h=ws(l):as(l)&&!ns(l)||(h=va(u))):f=!1}f&&(s.set(u,h),a(h,u,i,o,s),s.delete(u));tr(e,n,h)}(e,t,s,n,Hr,i,a);else{var l=i?i(Ma(e,s),o,s+"",e,t,a):r;l===r&&(l=o),tr(e,s,l)}}),Fs)}function jr(e,t){var n=e.length;if(n)return ba(t+=t<0?n:0,n)?e[t]:r}function Wr(e,t,n){t=t.length?Rt(t,(function(e){return Qo(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[ll];var r=-1;return t=Rt(t,Kt(ua())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Gr(e,(function(e,n,i){return{criteria:Rt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;for(;++r<o;){var l=Ci(i[r],a[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=kr(e,o);n(s,o)&&ei(a,Si(o,e),s)}return a}function Xr(e,t,n,r){var i=r?zt:Gt,a=-1,o=t.length,s=e;for(e===t&&(t=Mi(t)),n&&(s=Rt(e,Kt(n)));++a<o;)for(var l=0,u=t[a],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ba(i)?Ke.call(e,i,1):fi(e,i)}}return e}function Qr(e,t){return e+vt(_n()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Na(Ca(e,t,ll),e+"")}function Jr(e){return Jn(Ws(e))}function $r(e,t){var n=Ws(e);return Ba(n,lr(t,0,n.length))}function ei(e,t,n,i){if(!as(e))return e;for(var a=-1,o=(t=Si(t,e)).length,s=o-1,l=e;null!=l&&++a<o;){var u=za(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=s){var h=l[u];(c=i?i(h,u,l):r)===r&&(c=as(h)?h:ba(t[a+1])?[]:{})}nr(l,u,c),l=l[u]}return e}var ti=In?function(e,t){return In.set(e,t),e}:ll,ni=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:al(t),writable:!0})}:ll;function ri(e){return Ba(Ws(e))}function ii(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=oe(i);++r<i;)a[r]=e[r+t];return a}function ai(e,t){var n;return dr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function oi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var a=r+i>>>1,o=e[a];null!==o&&!ds(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return si(e,t,ll,n)}function si(e,t,n,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,u=ds(t),c=t===r;a<o;){var h=vt((a+o)/2),f=n(e[h]),d=f!==r,p=null===f,m=f==f,g=ds(f);if(s)var v=i||m;else v=c?m&&(i||d):l?m&&d&&(i||!p):u?m&&d&&!p&&(i||!g):!p&&!g&&(i?f<=t:f<t);v?a=h+1:o=h}return Sn(o,4294967294)}function li(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Wo(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function ui(e){return"number"==typeof e?e:ds(e)?p:+e}function ci(e){if("string"==typeof e)return e;if(Qo(e))return Rt(e,ci)+"";if(ds(e))return Gn?Gn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function hi(e,t,n){var r=-1,i=Mt,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=It;else if(a>=200){var u=t?null:Ki(e);if(u)return cn(u);o=!1,i=Jt,l=new Qn}else l=t?[]:s;e:for(;++r<a;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,o&&h==h){for(var f=l.length;f--;)if(l[f]===h)continue e;t&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}function fi(e,t){return null==(e=Pa(e,t=Si(t,e)))||delete e[za(eo(t))]}function di(e,t,n,r){return ei(e,t,n(kr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?ii(e,r?0:a,r?a+1:i):ii(e,r?a+1:0,r?i:a)}function mi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function gi(e,t,n){var r=e.length;if(r<2)return r?hi(e[0]):[];for(var i=-1,a=oe(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=fr(a[i]||o,e[s],t,n));return hi(yr(a,1),t,n)}function vi(e,t,n){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:r;n(s,e[i],l)}return s}function yi(e){return Jo(e)?e:[]}function bi(e){return"function"==typeof e?e:ll}function Si(e,t){return Qo(e)?e:xa(e,t)?[e]:Ga(_s(e))}var xi=Zr;function wi(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ii(e,t,n)}var _i=ht||function(e){return ft.clearTimeout(e)};function ki(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Ai(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ei(e,t){var n=t?Ai(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,o=ds(e),s=t!==r,l=null===t,u=t==t,c=ds(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!u)return-1}return 0}function Pi(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,l=t.length,u=bn(a-o,0),c=oe(l+u),h=!r;++s<l;)c[s]=t[s];for(;++i<o;)(h||i<a)&&(c[n[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function Ti(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,l=-1,u=t.length,c=bn(a-s,0),h=oe(c+u),f=!r;++i<c;)h[i]=e[i];for(var d=i;++l<u;)h[d+l]=t[l];for(;++o<s;)(f||i<a)&&(h[d+n[o]]=e[i++]);return h}function Mi(e,t){var n=-1,r=e.length;for(t||(t=oe(r));++n<r;)t[n]=e[n];return t}function Ii(e,t,n,i){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),a?or(n,l,u):nr(n,l,u)}return n}function Ri(e,t){return function(n,r){var i=Qo(n)?At:ir,a=t?t():{};return i(n,e,ua(r,2),a)}}function Ni(e){return Zr((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(a--,o):r,s&&Sa(n[0],n[1],s)&&(o=a<3?r:o,a=1),t=Ce(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t}))}function Li(e,t){return function(n,r){if(null==n)return n;if(!Zo(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Ce(n);(t?a--:++a<i)&&!1!==r(o[a],a,o););return n}}function Di(e){return function(t,n,r){for(var i=-1,a=Ce(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function Bi(e){return function(t){var n=on(t=_s(t))?fn(t):r,i=n?n[0]:t.charAt(0),a=n?wi(n,1).join(""):t.slice(1);return i[e]()+a}}function Fi(e){return function(t){return Lt(nl(Ys(t).replace(Ze,"")),e,"")}}function Oi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return as(r)?r:n}}function Vi(e){return function(t,n,i){var a=Ce(t);if(!Zo(t)){var o=ua(n,3);t=Bs(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function Gi(e){return ra((function(t){var n=t.length,a=n,o=jn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Me(i);if(o&&!l&&"wrapper"==sa(s))var l=new jn([],!0)}for(a=l?a:n;++a<n;){var u=sa(s=t[a]),c="wrapper"==u?oa(s):r;l=c&&wa(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[sa(c[0])].apply(l,c[3]):1==s.length&&wa(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Qo(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}}))}function zi(e,t,n,i,a,o,s,l,u,h){var f=t&c,d=1&t,p=2&t,m=24&t,g=512&t,v=p?r:Oi(e);return function r(){for(var c=arguments.length,y=oe(c),b=c;b--;)y[b]=arguments[b];if(m)var S=la(r),x=tn(y,S);if(i&&(y=Pi(y,i,a,m)),o&&(y=Ti(y,o,s,m)),c-=x,m&&c<h){var w=un(y,S);return Yi(e,t,zi,r.placeholder,n,y,w,l,u,h-c)}var _=d?n:this,k=p?_[e]:e;return c=y.length,l?y=Ta(y,l):g&&c>1&&y.reverse(),f&&u<c&&(y.length=u),this&&this!==ft&&this instanceof r&&(k=v||Oi(k)),k.apply(_,y)}}function Ui(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,a){t(r,n(e),i,a)})),r}(n,e,t(r),{})}}function Hi(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=ci(n),i=ci(i)):(n=ui(n),i=ui(i)),a=e(n,i)}return a}}function ji(e){return ra((function(t){return t=Rt(t,Kt(ua())),Zr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Wi(e,t){var n=(t=t===r?" ":ci(t)).length;if(n<2)return n?Kr(t,e):t;var i=Kr(t,gt(e/hn(t)));return on(t)?wi(fn(i),0,e).join(""):i.slice(0,e)}function qi(e){return function(t,n,i){return i&&"number"!=typeof i&&Sa(t,n,i)&&(n=i=r),t=ys(t),n===r?(n=t,t=0):n=ys(n),function(e,t,n,r){for(var i=-1,a=bn(gt((t-e)/(n||1)),0),o=oe(a);a--;)o[r?a:++i]=e,e+=n;return o}(t,n,i=i===r?t<n?1:-1:ys(i),e)}}function Xi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=xs(t),n=xs(n)),e(t,n)}}function Yi(e,t,n,i,a,o,s,c,h,f){var d=8&t;t|=d?l:u,4&(t&=~(d?u:l))||(t&=-4);var p=[e,t,a,d?o:r,d?s:r,d?r:o,d?r:s,c,h,f],m=n.apply(r,p);return wa(e)&&Ia(m,p),m.placeholder=i,La(m,e,t)}function Qi(e){var t=Ee[e];return function(e,n){if(e=xs(e),(n=null==n?0:Sn(bs(n),292))&&gn(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ki=Pn&&1/cn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:dl;function Zi(e){return function(t){var n=ma(t);return n==k?sn(t):n==T?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Rt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ji(e,t,n,a,f,d,p,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Me(i);var v=a?a.length:0;if(v||(t&=-97,a=f=r),p=p===r?p:bn(bs(p),0),m=m===r?m:bs(m),v-=f?f.length:0,t&u){var y=a,b=f;a=f=r}var S=g?r:oa(e),x=[e,t,n,a,f,y,b,d,p,m];if(S&&function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=r==c&&8==n||r==c&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Pi(u,l,t[4]):l,e[4]=u?un(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Ti(u,l,t[6]):l,e[6]=u?un(e[5],o):t[6]);(l=t[7])&&(e[7]=l);r&c&&(e[8]=null==e[8]?t[8]:Sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,S),e=x[0],t=x[1],n=x[2],a=x[3],f=x[4],!(m=x[9]=x[9]===r?g?0:e.length:bn(x[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==s?function(e,t,n){var i=Oi(e);return function a(){for(var o=arguments.length,s=oe(o),l=o,u=la(a);l--;)s[l]=arguments[l];var c=o<3&&s[0]!==u&&s[o-1]!==u?[]:un(s,u);return(o-=c.length)<n?Yi(e,t,zi,a.placeholder,r,s,c,r,r,n-o):kt(this&&this!==ft&&this instanceof a?i:e,this,s)}}(e,t,m):t!=l&&33!=t||f.length?zi.apply(r,x):function(e,t,n,r){var i=1&t,a=Oi(e);return function t(){for(var o=-1,s=arguments.length,l=-1,u=r.length,c=oe(u+s),h=this&&this!==ft&&this instanceof t?a:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++o];return kt(h,i?n:this,c)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,i=Oi(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return La((S?ti:Ia)(w,x),e,t)}function $i(e,t,n,i){return e===r||Wo(e,Ne[n])&&!Be.call(i,n)?t:e}function ea(e,t,n,i,a,o){return as(e)&&as(t)&&(o.set(t,e),Hr(e,t,r,ea,o),o.delete(t)),e}function ta(e){return us(e)?r:e}function na(e,t,n,i,a,o){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),h=o.get(t);if(c&&h)return c==t&&h==e;var f=-1,d=!0,p=2&n?new Qn:r;for(o.set(e,t),o.set(t,e);++f<l;){var m=e[f],g=t[f];if(i)var v=s?i(g,m,f,t,e,o):i(m,g,f,e,t,o);if(v!==r){if(v)continue;d=!1;break}if(p){if(!Bt(t,(function(e,t){if(!Jt(p,t)&&(m===e||a(m,e,n,i,o)))return p.push(t)}))){d=!1;break}}else if(m!==g&&!a(m,g,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function ra(e){return Na(Ca(e,r,Qa),e+"")}function ia(e){return Ar(e,Bs,da)}function aa(e){return Ar(e,Fs,pa)}var oa=In?function(e){return In.get(e)}:dl;function sa(e){for(var t=e.name+"",n=Rn[t],r=Be.call(Rn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function la(e){return(Be.call(zn,"placeholder")?zn:e).placeholder}function ua(){var e=zn.iteratee||ul;return e=e===ul?Br:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var n,r,i=e.__data__;return("string"==(r=_typeof3(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ha(e){for(var t=Bs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Aa(i)]}return t}function fa(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Dr(n)?n:r}var da=Ft?function(e){return null==e?[]:(e=Ce(e),Tt(Ft(e),(function(t){return Qe.call(e,t)})))}:Sl,pa=Ft?function(e){for(var t=[];e;)Nt(t,da(e)),e=Xe(e);return t}:Sl,ma=Er;function ga(e,t,n){for(var r=-1,i=(t=Si(t,e)).length,a=!1;++r<i;){var o=za(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&is(i)&&ba(o,i)&&(Qo(e)||Yo(e))}function va(e){return"function"!=typeof e.constructor||ka(e)?{}:Un(Xe(e))}function ya(e){return Qo(e)||Yo(e)||!!($e&&e&&e[$e])}function ba(e,t){var n=_typeof3(e);return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function Sa(e,t,n){if(!as(n))return!1;var r=_typeof3(t);return!!("number"==r?Zo(n)&&ba(t,n.length):"string"==r&&t in n)&&Wo(n[t],e)}function xa(e,t){if(Qo(e))return!1;var n=_typeof3(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ds(e))||(te.test(e)||!ee.test(e)||null!=t&&e in Ce(t))}function wa(e){var t=sa(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=oa(n);return!!r&&e===r[0]}(An&&ma(new An(new ArrayBuffer(1)))!=L||En&&ma(new En)!=k||Cn&&ma(Cn.resolve())!=C||Pn&&ma(new Pn)!=T||Tn&&ma(new Tn)!=R)&&(ma=function(e){var t=Er(e),n=t==E?e.constructor:r,i=n?Ua(n):"";if(i)switch(i){case Nn:return L;case Ln:return k;case Dn:return C;case Bn:return T;case Fn:return R}return t});var _a=Le?ns:xl;function ka(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Aa(e){return e==e&&!as(e)}function Ea(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ce(n)))}}function Ca(e,t,n){return t=bn(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=bn(r.length-t,0),o=oe(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=oe(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),kt(e,this,s)}}function Pa(e,t){return t.length<2?e:kr(e,ii(t,0,-1))}function Ta(e,t){for(var n=e.length,i=Sn(t.length,n),a=Mi(e);i--;){var o=t[i];e[i]=ba(o,n)?a[o]:r}return e}function Ma(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ia=Da(ti),Ra=pt||function(e,t){return ft.setTimeout(e,t)},Na=Da(ni);function La(e,t,n){var r=t+"";return Na(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ue):[]}(r),n)))}function Da(e){var t=0,n=0;return function(){var i=xn(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Ba(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var o=Qr(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Fa,Oa,Va,Ga=(Fa=function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,n,r,i){t.push(r?i.replace(fe,"$1"):n||e)})),t},Oa=Vo(Fa,(function(e){return 500===Va.size&&Va.clear(),e})),Va=Oa.cache,Oa);function za(e){if("string"==typeof e||ds(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ua(t){if(null!=t){try{return De.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ha(e){if(e instanceof Wn)return e.clone();var t=new jn(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ja=Zr((function(e,t){return Jo(e)?fr(e,yr(t,1,Jo,!0)):[]})),Wa=Zr((function(e,t){var n=eo(t);return Jo(n)&&(n=r),Jo(e)?fr(e,yr(t,1,Jo,!0),ua(n,2)):[]})),qa=Zr((function(e,t){var n=eo(t);return Jo(n)&&(n=r),Jo(e)?fr(e,yr(t,1,Jo,!0),r,n):[]}));function Xa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:bs(n);return i<0&&(i=bn(r+i,0)),Vt(e,ua(t,3),i)}function Ya(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=bs(n),a=n<0?bn(i+a,0):Sn(a,i-1)),Vt(e,ua(t,3),a,!0)}function Qa(e){return(null==e?0:e.length)?yr(e,1):[]}function Ka(e){return e&&e.length?e[0]:r}var Za=Zr((function(e){var t=Rt(e,yi);return t.length&&t[0]===e[0]?Mr(t):[]})),Ja=Zr((function(e){var t=eo(e),n=Rt(e,yi);return t===eo(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Mr(n,ua(t,2)):[]})),$a=Zr((function(e){var t=eo(e),n=Rt(e,yi);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Mr(n,r,t):[]}));function eo(e){var t=null==e?0:e.length;return t?e[t-1]:r}var to=Zr(no);function no(e,t){return e&&e.length&&t&&t.length?Xr(e,t):e}var ro=ra((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Yr(e,Rt(t,(function(e){return ba(e,n)?+e:e})).sort(Ci)),r}));function io(e){return null==e?e:kn.call(e)}var ao=Zr((function(e){return hi(yr(e,1,Jo,!0))})),oo=Zr((function(e){var t=eo(e);return Jo(t)&&(t=r),hi(yr(e,1,Jo,!0),ua(t,2))})),so=Zr((function(e){var t=eo(e);return t="function"==typeof t?t:r,hi(yr(e,1,Jo,!0),r,t)}));function lo(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Jo(e))return t=bn(e.length,t),!0})),Yt(t,(function(t){return Rt(e,jt(t))}))}function uo(e,t){if(!e||!e.length)return[];var n=lo(e);return null==t?n:Rt(n,(function(e){return kt(t,r,e)}))}var co=Zr((function(e,t){return Jo(e)?fr(e,t):[]})),ho=Zr((function(e){return gi(Tt(e,Jo))})),fo=Zr((function(e){var t=eo(e);return Jo(t)&&(t=r),gi(Tt(e,Jo),ua(t,2))})),po=Zr((function(e){var t=eo(e);return t="function"==typeof t?t:r,gi(Tt(e,Jo),r,t)})),mo=Zr(lo);var go=Zr((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,uo(e,n)}));function vo(e){var t=zn(e);return t.__chain__=!0,t}function yo(e,t){return t(e)}var bo=ra((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&ba(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:yo,args:[a],thisArg:r}),new jn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)}));var So=Ri((function(e,t,n){Be.call(e,n)?++e[n]:or(e,n,1)}));var xo=Vi(Xa),wo=Vi(Ya);function _o(e,t){return(Qo(e)?Et:dr)(e,ua(t,3))}function ko(e,t){return(Qo(e)?Ct:pr)(e,ua(t,3))}var Ao=Ri((function(e,t,n){Be.call(e,n)?e[n].push(t):or(e,n,[t])}));var Eo=Zr((function(e,t,n){var r=-1,i="function"==typeof t,a=Zo(e)?oe(e.length):[];return dr(e,(function(e){a[++r]=i?kt(t,e,n):Ir(e,t,n)})),a})),Co=Ri((function(e,t,n){or(e,n,t)}));function Po(e,t){return(Qo(e)?Rt:Gr)(e,ua(t,3))}var To=Ri((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Mo=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Sa(e,t[0],t[1])?t=[]:n>2&&Sa(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])})),Io=dt||function(){return ft.Date.now()};function Ro(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Ji(e,c,r,r,r,r,t)}function No(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=bs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Lo=Zr((function(e,t,n){var r=1;if(n.length){var i=un(n,la(Lo));r|=l}return Ji(e,r,t,n,i)})),Do=Zr((function(e,t,n){var r=3;if(n.length){var i=un(n,la(Do));r|=l}return Ji(t,r,e,n,i)}));function Bo(e,t,n){var a,o,s,l,u,c,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Me(i);function m(t){var n=a,i=o;return a=o=r,h=t,l=e.apply(i,n)}function g(e){return h=e,u=Ra(y,t),f?m(e):l}function v(e){var n=e-c;return c===r||n>=t||n<0||d&&e-h>=s}function y(){var e=Io();if(v(e))return b(e);u=Ra(y,function(e){var n=t-(e-c);return d?Sn(n,s-(e-h)):n}(e))}function b(e){return u=r,p&&a?m(e):(a=o=r,l)}function S(){var e=Io(),n=v(e);if(a=arguments,o=this,c=e,n){if(u===r)return g(c);if(d)return _i(u),u=Ra(y,t),m(c)}return u===r&&(u=Ra(y,t)),l}return t=xs(t)||0,as(n)&&(f=!!n.leading,s=(d="maxWait"in n)?bn(xs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),S.cancel=function(){u!==r&&_i(u),h=0,a=c=o=u=r},S.flush=function(){return u===r?l:b(Io())},S}var Fo=Zr((function(e,t){return hr(e,1,t)})),Oo=Zr((function(e,t,n){return hr(e,xs(t)||0,n)}));function Vo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);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)||a,o};return n.cache=new(Vo.Cache||Yn),n}function Go(e){if("function"!=typeof e)throw new Me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Vo.Cache=Yn;var zo=xi((function(e,t){var n=(t=1==t.length&&Qo(t[0])?Rt(t[0],Kt(ua())):Rt(yr(t,1),Kt(ua()))).length;return Zr((function(r){for(var i=-1,a=Sn(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Uo=Zr((function(e,t){var n=un(t,la(Uo));return Ji(e,l,r,t,n)})),Ho=Zr((function(e,t){var n=un(t,la(Ho));return Ji(e,u,r,t,n)})),jo=ra((function(e,t){return Ji(e,h,r,r,r,t)}));function Wo(e,t){return e===t||e!=e&&t!=t}var qo=Xi(Cr),Xo=Xi((function(e,t){return e>=t})),Yo=Rr(function(){return arguments}())?Rr:function(e){return os(e)&&Be.call(e,"callee")&&!Qe.call(e,"callee")},Qo=oe.isArray,Ko=yt?Kt(yt):function(e){return os(e)&&Er(e)==N};function Zo(e){return null!=e&&is(e.length)&&!ns(e)}function Jo(e){return os(e)&&Zo(e)}var $o=Wt||xl,es=bt?Kt(bt):function(e){return os(e)&&Er(e)==S};function ts(e){if(!os(e))return!1;var t=Er(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!us(e)}function ns(e){if(!as(e))return!1;var t=Er(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function rs(e){return"number"==typeof e&&e==bs(e)}function is(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function as(e){var t=_typeof3(e);return null!=e&&("object"==t||"function"==t)}function os(e){return null!=e&&"object"==_typeof3(e)}var ss=St?Kt(St):function(e){return os(e)&&ma(e)==k};function ls(e){return"number"==typeof e||os(e)&&Er(e)==A}function us(e){if(!os(e)||Er(e)!=E)return!1;var t=Xe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ge}var cs=xt?Kt(xt):function(e){return os(e)&&Er(e)==P};var hs=wt?Kt(wt):function(e){return os(e)&&ma(e)==T};function fs(e){return"string"==typeof e||!Qo(e)&&os(e)&&Er(e)==M}function ds(e){return"symbol"==_typeof3(e)||os(e)&&Er(e)==I}var ps=_t?Kt(_t):function(e){return os(e)&&is(e.length)&&!!at[Er(e)]};var ms=Xi(Vr),gs=Xi((function(e,t){return e<=t}));function vs(e){if(!e)return[];if(Zo(e))return fs(e)?fn(e):Mi(e);if(tt&&e[tt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tt]());var t=ma(e);return(t==k?sn:t==T?cn:Ws)(e)}function ys(e){return e?(e=xs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function bs(e){var t=ys(e),n=t%1;return t==t?n?t-n:t:0}function Ss(e){return e?lr(bs(e),0,m):0}function xs(e){if("number"==typeof e)return e;if(ds(e))return p;if(as(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=as(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ge.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):me.test(e)?p:+e}function ws(e){return Ii(e,Fs(e))}function _s(e){return null==e?"":ci(e)}var ks=Ni((function(e,t){if(ka(t)||Zo(t))Ii(t,Bs(t),e);else for(var n in t)Be.call(t,n)&&nr(e,n,t[n])})),As=Ni((function(e,t){Ii(t,Fs(t),e)})),Es=Ni((function(e,t,n,r){Ii(t,Fs(t),e,r)})),Cs=Ni((function(e,t,n,r){Ii(t,Bs(t),e,r)})),Ps=ra(sr);var Ts=Zr((function(e,t){e=Ce(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&Sa(t[0],t[1],a)&&(i=1);++n<i;)for(var o=t[n],s=Fs(o),l=-1,u=s.length;++l<u;){var c=s[l],h=e[c];(h===r||Wo(h,Ne[c])&&!Be.call(e,c))&&(e[c]=o[c])}return e})),Ms=Zr((function(e){return e.push(r,ea),kt(Vs,r,e)}));function Is(e,t,n){var i=null==e?r:kr(e,t);return i===r?n:i}function Rs(e,t){return null!=e&&ga(e,t,Tr)}var Ns=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),e[t]=n}),al(ll)),Ls=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ve.call(t)),Be.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Ds=Zr(Ir);function Bs(e){return Zo(e)?Zn(e):Fr(e)}function Fs(e){return Zo(e)?Zn(e,!0):Or(e)}var Os=Ni((function(e,t,n){Hr(e,t,n)})),Vs=Ni((function(e,t,n,r){Hr(e,t,n,r)})),Gs=ra((function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,(function(t){return t=Si(t,e),r||(r=t.length>1),t})),Ii(e,aa(e),n),r&&(n=ur(n,7,ta));for(var i=t.length;i--;)fi(n,t[i]);return n}));var zs=ra((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Rs(e,n)}))}(e,t)}));function Us(e,t){if(null==e)return{};var n=Rt(aa(e),(function(e){return[e]}));return t=ua(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var Hs=Zi(Bs),js=Zi(Fs);function Ws(e){return null==e?[]:Zt(e,Bs(e))}var qs=Fi((function(e,t,n){return t=t.toLowerCase(),e+(n?Xs(t):t)}));function Xs(e){return tl(_s(e).toLowerCase())}function Ys(e){return(e=_s(e))&&e.replace(Se,nn).replace(Je,"")}var Qs=Fi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Fi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Zs=Bi("toLowerCase");var Js=Fi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $s=Fi((function(e,t,n){return e+(n?" ":"")+tl(t)}));var el=Fi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),tl=Bi("toUpperCase");function nl(e,t,n){return e=_s(e),(t=n?r:t)===r?function(e){return nt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var rl=Zr((function(t,n){try{return kt(t,r,n)}catch(e){return ts(e)?e:new ke(e)}})),il=ra((function(e,t){return Et(t,(function(t){t=za(t),or(e,t,Lo(e[t],e))})),e}));function al(e){return function(){return e}}var ol=Gi(),sl=Gi(!0);function ll(e){return e}function ul(e){return Br("function"==typeof e?e:ur(e,1))}var cl=Zr((function(e,t){return function(n){return Ir(n,e,t)}})),hl=Zr((function(e,t){return function(n){return Ir(e,n,t)}}));function fl(e,t,n){var r=Bs(t),i=_r(t,r);null!=n||as(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=_r(t,Bs(t)));var a=!(as(n)&&"chain"in n&&!n.chain),o=ns(e);return Et(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Mi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function dl(){}var pl=ji(Rt),ml=ji(Pt),gl=ji(Bt);function vl(e){return xa(e)?jt(za(e)):function(e){return function(t){return kr(t,e)}}(e)}var yl=qi(),bl=qi(!0);function Sl(){return[]}function xl(){return!1}var wl=Hi((function(e,t){return e+t}),0),_l=Qi("ceil"),kl=Hi((function(e,t){return e/t}),1),Al=Qi("floor");var El,Cl=Hi((function(e,t){return e*t}),1),Pl=Qi("round"),Tl=Hi((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=bs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ro,zn.assign=ks,zn.assignIn=As,zn.assignInWith=Es,zn.assignWith=Cs,zn.at=Ps,zn.before=No,zn.bind=Lo,zn.bindAll=il,zn.bindKey=Do,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Qo(e)?e:[e]},zn.chain=vo,zn.chunk=function(e,t,n){t=(n?Sa(e,t,n):t===r)?1:bn(bs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=oe(gt(i/t));a<i;)s[o++]=ii(e,a,a+=t);return s},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nt(Qo(n)?Mi(n):[n],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Rt(e,(function(e){if("function"!=typeof e[1])throw new Me(i);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Bs(e);return function(n){return cr(n,e,t)}}(ur(e,1))},zn.constant=al,zn.countBy=So,zn.create=function(e,t){var n=Un(e);return null==t?n:ar(n,t)},zn.curry=function e(t,n,i){var a=Ji(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},zn.curryRight=function e(t,n,i){var a=Ji(t,s,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},zn.debounce=Bo,zn.defaults=Ts,zn.defaultsDeep=Ms,zn.defer=Fo,zn.delay=Oo,zn.difference=ja,zn.differenceBy=Wa,zn.differenceWith=qa,zn.drop=function(e,t,n){var i=null==e?0:e.length;return i?ii(e,(t=n||t===r?1:bs(t))<0?0:t,i):[]},zn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ii(e,0,(t=i-(t=n||t===r?1:bs(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?pi(e,ua(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?pi(e,ua(t,3),!0):[]},zn.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Sa(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=bs(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:bs(i))<0&&(i+=a),i=n>i?0:Ss(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},zn.filter=function(e,t){return(Qo(e)?Tt:vr)(e,ua(t,3))},zn.flatMap=function(e,t){return yr(Po(e,t),1)},zn.flatMapDeep=function(e,t){return yr(Po(e,t),f)},zn.flatMapDepth=function(e,t,n){return n=n===r?1:bs(n),yr(Po(e,t),n)},zn.flatten=Qa,zn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===r?1:bs(t)):[]},zn.flip=function(e){return Ji(e,512)},zn.flow=ol,zn.flowRight=sl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},zn.functions=function(e){return null==e?[]:_r(e,Bs(e))},zn.functionsIn=function(e){return null==e?[]:_r(e,Fs(e))},zn.groupBy=Ao,zn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},zn.intersection=Za,zn.intersectionBy=Ja,zn.intersectionWith=$a,zn.invert=Ns,zn.invertBy=Ls,zn.invokeMap=Eo,zn.iteratee=ul,zn.keyBy=Co,zn.keys=Bs,zn.keysIn=Fs,zn.map=Po,zn.mapKeys=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,i){or(n,t(e,r,i),e)})),n},zn.mapValues=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,i){or(n,r,t(e,r,i))})),n},zn.matches=function(e){return zr(ur(e,1))},zn.matchesProperty=function(e,t){return Ur(e,ur(t,1))},zn.memoize=Vo,zn.merge=Os,zn.mergeWith=Vs,zn.method=cl,zn.methodOf=hl,zn.mixin=fl,zn.negate=Go,zn.nthArg=function(e){return e=bs(e),Zr((function(t){return jr(t,e)}))},zn.omit=Gs,zn.omitBy=function(e,t){return Us(e,Go(ua(t)))},zn.once=function(e){return No(2,e)},zn.orderBy=function(e,t,n,i){return null==e?[]:(Qo(t)||(t=null==t?[]:[t]),Qo(n=i?r:n)||(n=null==n?[]:[n]),Wr(e,t,n))},zn.over=pl,zn.overArgs=zo,zn.overEvery=ml,zn.overSome=gl,zn.partial=Uo,zn.partialRight=Ho,zn.partition=To,zn.pick=zs,zn.pickBy=Us,zn.property=vl,zn.propertyOf=function(e){return function(t){return null==e?r:kr(e,t)}},zn.pull=to,zn.pullAll=no,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,ua(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Xr(e,t,r,n):e},zn.pullAt=ro,zn.range=yl,zn.rangeRight=bl,zn.rearg=jo,zn.reject=function(e,t){return(Qo(e)?Tt:vr)(e,Go(ua(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;for(t=ua(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Yr(e,i),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Me(i);return Zr(e,t=t===r?t:bs(t))},zn.reverse=io,zn.sampleSize=function(e,t,n){return t=(n?Sa(e,t,n):t===r)?1:bs(t),(Qo(e)?$n:$r)(e,t)},zn.set=function(e,t,n){return null==e?e:ei(e,t,n)},zn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ei(e,t,n,i)},zn.shuffle=function(e){return(Qo(e)?er:ri)(e)},zn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Sa(e,t,n)?(t=0,n=i):(t=null==t?0:bs(t),n=n===r?i:bs(n)),ii(e,t,n)):[]},zn.sortBy=Mo,zn.sortedUniq=function(e){return e&&e.length?li(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?li(e,ua(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&Sa(e,t,n)&&(t=n=r),(n=n===r?m:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!cs(t))&&!(t=ci(t))&&on(e)?wi(fn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:bn(bs(t),0),Zr((function(n){var r=n[t],i=wi(n,0,t);return r&&Nt(i,r),kt(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===r?1:bs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ii(e,(t=i-(t=n||t===r?1:bs(t)))<0?0:t,i):[]},zn.takeRightWhile=function(e,t){return e&&e.length?pi(e,ua(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?pi(e,ua(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Me(i);return as(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Bo(e,t,{leading:r,maxWait:t,trailing:a})},zn.thru=yo,zn.toArray=vs,zn.toPairs=Hs,zn.toPairsIn=js,zn.toPath=function(e){return Qo(e)?Rt(e,za):ds(e)?[e]:Mi(Ga(_s(e)))},zn.toPlainObject=ws,zn.transform=function(e,t,n){var r=Qo(e),i=r||$o(e)||ps(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:as(e)&&ns(a)?Un(Xe(e)):{}}return(i?Et:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ro(e,1)},zn.union=ao,zn.unionBy=oo,zn.unionWith=so,zn.uniq=function(e){return e&&e.length?hi(e):[]},zn.uniqBy=function(e,t){return e&&e.length?hi(e,ua(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?hi(e,r,t):[]},zn.unset=function(e,t){return null==e||fi(e,t)},zn.unzip=lo,zn.unzipWith=uo,zn.update=function(e,t,n){return null==e?e:di(e,t,bi(n))},zn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:di(e,t,bi(n),i)},zn.values=Ws,zn.valuesIn=function(e){return null==e?[]:Zt(e,Fs(e))},zn.without=co,zn.words=nl,zn.wrap=function(e,t){return Uo(bi(t),e)},zn.xor=ho,zn.xorBy=fo,zn.xorWith=po,zn.zip=mo,zn.zipObject=function(e,t){return vi(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return vi(e||[],t||[],ei)},zn.zipWith=go,zn.entries=Hs,zn.entriesIn=js,zn.extend=As,zn.extendWith=Es,fl(zn,zn),zn.add=wl,zn.attempt=rl,zn.camelCase=qs,zn.capitalize=Xs,zn.ceil=_l,zn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=xs(n))==n?n:0),t!==r&&(t=(t=xs(t))==t?t:0),lr(xs(e),t,n)},zn.clone=function(e){return ur(e,4)},zn.cloneDeep=function(e){return ur(e,5)},zn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:r)},zn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:r)},zn.conformsTo=function(e,t){return null==t||cr(e,t,Bs(t))},zn.deburr=Ys,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=kl,zn.endsWith=function(e,t,n){e=_s(e),t=ci(t);var i=e.length,a=n=n===r?i:lr(bs(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},zn.eq=Wo,zn.escape=function(e){return(e=_s(e))&&K.test(e)?e.replace(Y,rn):e},zn.escapeRegExp=function(e){return(e=_s(e))&&ie.test(e)?e.replace(re,"\\$&"):e},zn.every=function(e,t,n){var i=Qo(e)?Pt:mr;return n&&Sa(e,t,n)&&(t=r),i(e,ua(t,3))},zn.find=xo,zn.findIndex=Xa,zn.findKey=function(e,t){return Ot(e,ua(t,3),xr)},zn.findLast=wo,zn.findLastIndex=Ya,zn.findLastKey=function(e,t){return Ot(e,ua(t,3),wr)},zn.floor=Al,zn.forEach=_o,zn.forEachRight=ko,zn.forIn=function(e,t){return null==e?e:br(e,ua(t,3),Fs)},zn.forInRight=function(e,t){return null==e?e:Sr(e,ua(t,3),Fs)},zn.forOwn=function(e,t){return e&&xr(e,ua(t,3))},zn.forOwnRight=function(e,t){return e&&wr(e,ua(t,3))},zn.get=Is,zn.gt=qo,zn.gte=Xo,zn.has=function(e,t){return null!=e&&ga(e,t,Pr)},zn.hasIn=Rs,zn.head=Ka,zn.identity=ll,zn.includes=function(e,t,n,r){e=Zo(e)?e:Ws(e),n=n&&!r?bs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),fs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Gt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:bs(n);return i<0&&(i=bn(r+i,0)),Gt(e,t,i)},zn.inRange=function(e,t,n){return t=ys(t),n===r?(n=t,t=0):n=ys(n),function(e,t,n){return e>=Sn(t,n)&&e<bn(t,n)}(e=xs(e),t,n)},zn.invoke=Ds,zn.isArguments=Yo,zn.isArray=Qo,zn.isArrayBuffer=Ko,zn.isArrayLike=Zo,zn.isArrayLikeObject=Jo,zn.isBoolean=function(e){return!0===e||!1===e||os(e)&&Er(e)==b},zn.isBuffer=$o,zn.isDate=es,zn.isElement=function(e){return os(e)&&1===e.nodeType&&!us(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Zo(e)&&(Qo(e)||"string"==typeof e||"function"==typeof e.splice||$o(e)||ps(e)||Yo(e)))return!e.length;var t=ma(e);if(t==k||t==T)return!e.size;if(ka(e))return!Fr(e).length;for(var n in e)if(Be.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Nr(e,t)},zn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Nr(e,t,r,n):!!i},zn.isError=ts,zn.isFinite=function(e){return"number"==typeof e&&gn(e)},zn.isFunction=ns,zn.isInteger=rs,zn.isLength=is,zn.isMap=ss,zn.isMatch=function(e,t){return e===t||Lr(e,t,ha(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Lr(e,t,ha(t),n)},zn.isNaN=function(e){return ls(e)&&e!=+e},zn.isNative=function(e){if(_a(e))throw new ke("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=ls,zn.isObject=as,zn.isObjectLike=os,zn.isPlainObject=us,zn.isRegExp=cs,zn.isSafeInteger=function(e){return rs(e)&&e>=-9007199254740991&&e<=d},zn.isSet=hs,zn.isString=fs,zn.isSymbol=ds,zn.isTypedArray=ps,zn.isUndefined=function(e){return e===r},zn.isWeakMap=function(e){return os(e)&&ma(e)==R},zn.isWeakSet=function(e){return os(e)&&"[object WeakSet]"==Er(e)},zn.join=function(e,t){return null==e?"":vn.call(e,t)},zn.kebabCase=Qs,zn.last=eo,zn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=bs(n))<0?bn(i+a,0):Sn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Vt(e,Ut,a,!0)},zn.lowerCase=Ks,zn.lowerFirst=Zs,zn.lt=ms,zn.lte=gs,zn.max=function(e){return e&&e.length?gr(e,ll,Cr):r},zn.maxBy=function(e,t){return e&&e.length?gr(e,ua(t,2),Cr):r},zn.mean=function(e){return Ht(e,ll)},zn.meanBy=function(e,t){return Ht(e,ua(t,2))},zn.min=function(e){return e&&e.length?gr(e,ll,Vr):r},zn.minBy=function(e,t){return e&&e.length?gr(e,ua(t,2),Vr):r},zn.stubArray=Sl,zn.stubFalse=xl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Cl,zn.nth=function(e,t){return e&&e.length?jr(e,bs(t)):r},zn.noConflict=function(){return ft._===this&&(ft._=ze),this},zn.noop=dl,zn.now=Io,zn.pad=function(e,t,n){e=_s(e);var r=(t=bs(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(vt(i),n)+e+Wi(gt(i),n)},zn.padEnd=function(e,t,n){e=_s(e);var r=(t=bs(t))?hn(e):0;return t&&r<t?e+Wi(t-r,n):e},zn.padStart=function(e,t,n){e=_s(e);var r=(t=bs(t))?hn(e):0;return t&&r<t?Wi(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(_s(e).replace(ae,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Sa(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=ys(e),t===r?(t=e,e=0):t=ys(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=_n();return Sn(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Qr(e,t)},zn.reduce=function(e,t,n){var r=Qo(e)?Lt:qt,i=arguments.length<3;return r(e,ua(t,4),n,i,dr)},zn.reduceRight=function(e,t,n){var r=Qo(e)?Dt:qt,i=arguments.length<3;return r(e,ua(t,4),n,i,pr)},zn.repeat=function(e,t,n){return t=(n?Sa(e,t,n):t===r)?1:bs(t),Kr(_s(e),t)},zn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var i=-1,a=(t=Si(t,e)).length;for(a||(a=1,e=r);++i<a;){var o=null==e?r:e[za(t[i])];o===r&&(i=a,o=n),e=ns(o)?o.call(e):o}return e},zn.round=Pl,zn.runInContext=t,zn.sample=function(e){return(Qo(e)?Jn:Jr)(e)},zn.size=function(e){if(null==e)return 0;if(Zo(e))return fs(e)?hn(e):e.length;var t=ma(e);return t==k||t==T?e.size:Fr(e).length},zn.snakeCase=Js,zn.some=function(e,t,n){var i=Qo(e)?Bt:ai;return n&&Sa(e,t,n)&&(t=r),i(e,ua(t,3))},zn.sortedIndex=function(e,t){return oi(e,t)},zn.sortedIndexBy=function(e,t,n){return si(e,t,ua(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=oi(e,t);if(r<n&&Wo(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return oi(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return si(e,t,ua(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=oi(e,t,!0)-1;if(Wo(e[n],t))return n}return-1},zn.startCase=$s,zn.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:lr(bs(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},zn.subtract=Tl,zn.sum=function(e){return e&&e.length?Xt(e,ll):0},zn.sumBy=function(e,t){return e&&e.length?Xt(e,ua(t,2)):0},zn.template=function(e,t,n){var i=zn.templateSettings;n&&Sa(e,t,n)&&(t=r),e=_s(e),t=Es({},t,i,$i);var a,o,s=Es({},t.imports,i.imports,$i),l=Bs(s),u=Zt(s,l),c=0,h=t.interpolate||xe,f="__p += '",d=Pe((t.escape||xe).source+"|"+h.source+"|"+(h===$?de:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),p="//# sourceURL="+(Be.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(d,(function(t,n,r,i,s,l){return r||(r=i),f+=e.slice(c,l).replace(we,an),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Be.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new ke("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(j,""):f).replace(W,"$1").replace(q,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=rl((function(){return Ae(l,p+"return "+f).apply(r,u)}));if(g.source=f,ts(g))throw g;return g},zn.times=function(e,t){if((e=bs(e))<1||e>d)return[];var n=m,r=Sn(e,m);t=ua(t),e-=m;for(var i=Yt(r,t);++n<e;)t(n);return i},zn.toFinite=ys,zn.toInteger=bs,zn.toLength=Ss,zn.toLower=function(e){return _s(e).toLowerCase()},zn.toNumber=xs,zn.toSafeInteger=function(e){return e?lr(bs(e),-9007199254740991,d):0===e?e:0},zn.toString=_s,zn.toUpper=function(e){return _s(e).toUpperCase()},zn.trim=function(e,t,n){if((e=_s(e))&&(n||t===r))return Qt(e);if(!e||!(t=ci(t)))return e;var i=fn(e),a=fn(t);return wi(i,$t(i,a),en(i,a)+1).join("")},zn.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===r))return e.slice(0,dn(e)+1);if(!e||!(t=ci(t)))return e;var i=fn(e);return wi(i,0,en(i,fn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===r))return e.replace(ae,"");if(!e||!(t=ci(t)))return e;var i=fn(e);return wi(i,$t(i,fn(t))).join("")},zn.truncate=function(e,t){var n=30,i="...";if(as(t)){var a="separator"in t?t.separator:a;n="length"in t?bs(t.length):n,i="omission"in t?ci(t.omission):i}var o=(e=_s(e)).length;if(on(e)){var s=fn(e);o=s.length}if(n>=o)return e;var l=n-hn(i);if(l<1)return i;var u=s?wi(s,0,l).join(""):e.slice(0,l);if(a===r)return u+i;if(s&&(l+=u.length-l),cs(a)){if(e.slice(l).search(a)){var c,h=u;for(a.global||(a=Pe(a.source,_s(pe.exec(a))+"g")),a.lastIndex=0;c=a.exec(h);)var f=c.index;u=u.slice(0,f===r?l:f)}}else if(e.indexOf(ci(a),l)!=l){var d=u.lastIndexOf(a);d>-1&&(u=u.slice(0,d))}return u+i},zn.unescape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(X,pn):e},zn.uniqueId=function(e){var t=++Fe;return _s(e)+t},zn.upperCase=el,zn.upperFirst=tl,zn.each=_o,zn.eachRight=ko,zn.first=Ka,fl(zn,(El={},xr(zn,(function(e,t){Be.call(zn.prototype,t)||(El[t]=e)})),El),{chain:!1}),zn.VERSION="2.4.0",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===r?1:bn(bs(n),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=Sn(n,i.__takeCount__):i.__views__.push({size:Sn(n,m),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ll)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Go(ua(e)))},Wn.prototype.slice=function(e,t){e=bs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=bs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=zn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Wn,u=s[0],c=l||Qo(t),h=function(e){var t=a.apply(zn,Nt([e],s));return i&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=l&&!d;if(!o&&c){t=m?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:yo,args:[h],thisArg:r}),new jn(g,f)}return p&&m?e.apply(this,s):(g=this.thru(h),p?i?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Qo(i)?i:[],e)}return this[n]((function(n){return t.apply(Qo(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Be.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[zi(r,2).name]=[{name:"wrapper",func:r}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Qo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Sn(t,e+o);break;case"takeRight":e=bn(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=r?s:o-1,c=this.__iteratees__,h=c.length,f=0,d=Sn(l,this.__takeCount__);if(!n||!r&&i==l&&d==l)return mi(e,this.__actions__);var p=[];e:for(;l--&&f<d;){for(var m=-1,g=e[u+=t];++m<h;){var v=c[m],y=v.iteratee,b=v.type,S=y(g);if(2==b)g=S;else if(!S){if(1==b)continue e;break e}}p[f++]=g}return p},zn.prototype.at=bo,zn.prototype.chain=function(){return vo(this)},zn.prototype.commit=function(){return new jn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===r&&(this.__values__=vs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var i=Ha(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:yo,args:[io],thisArg:r}),new jn(t,this.__chain__)}return this.thru(io)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,tt&&(zn.prototype[tt]=function(){return this}),zn}();pt?((pt.exports=mn)._=mn,dt._=mn):ft._=mn}).call(commonjsGlobal)}(lodash,lodash.exports);var _export_sfc=function(e,t){var n,r=e.__vccOpts||e,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=_slicedToArray(n.value,2),o=a[0],s=a[1];r[o]=s}}catch(err){i.e(err)}finally{i.f()}return r},_sfc_main=defineComponent({props:{animationData:{type:Object,default:function(){return{}}},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:function(){return{}}}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup:function(e,t){var n=t.emit,r=ref(null),i=ref(""),a=1,o=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(i){var o,s,l,u,c,h;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.autoPlay,e.playOnHover&&(o=!1),s={},!1===lodash.exports.isEqual(e.animationData,{})&&(s=lodash.exports.cloneDeep(e.animationData)),""==e.animationLink){t.next=19;break}return t.prev=5,t.next=8,fetch(e.animationLink);case 8:return l=t.sent,t.next=11,l.json();case 11:u=t.sent,s=u,t.next=19;break;case 15:return t.prev=15,t.t0=t.catch(5),console.error(t.t0),t.abrupt("return");case 19:"number"==typeof(c=e.loop)&&c>0&&(c-=1),e.delay>0&&(o=!1),h={container:i,renderer:e.renderer,loop:c,autoplay:o,animationData:s},!1===lodash.exports.isEqual(e.rendererSettings,{})&&(h.rendererSettings=e.rendererSettings),r=Lottie.loadAnimation(h),setTimeout((function(){o=e.autoPlay,e.playOnHover?r.pause():o?r.play():r.pause(),n("onAnimationLoaded")}),e.delay),r.setSpeed(e.speed),"reverse"===e.direction&&r.setDirection(-1),"normal"===e.direction&&r.setDirection(1),(e.pauseAnimation||e.playOnHover)&&r.pause(),r.addEventListener("loopComplete",(function(){"alternate"===e.direction&&(r.stop(),a*=-1,r.setDirection(a),r.play()),n("onLoopComplete")})),r.addEventListener("complete",(function(){n("onComplete")})),r.addEventListener("enterFrame",(function(){n("onEnterFrame")})),r.addEventListener("segmentStart",(function(){n("onSegmentStart")}));case 34:case"end":return t.stop()}}),t,null,[[5,15]])})));return function(e){return t.apply(this,arguments)}}(),s=computed((function(){var t=e.width,n=e.height;return"number"==typeof e.width&&(t="".concat(e.width,"px")),"number"==typeof e.height&&(n="".concat(e.height,"px")),{"--lottie-animation-container-width":t,"--lottie-animation-container-height":n,"--lottie-animation-container-background-color":e.backgroundColor}}));watch((function(){return e.pauseAnimation}),(function(){(e.pauseOnHover||e.playOnHover)&&e.pauseAnimation?console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover"):r&&(e.pauseAnimation?r.pause():r.play())}));var l=function(e){for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length,i=0;i<e;i++)t+=n.charAt(Math.floor(Math.random()*r));return t},u=function(t){if(e.pauseOnHover&&e.playOnHover)throw new Error("You cannot set pauseOnHover and playOnHover for Vue3-Lottie at the same time.");if(""===e.animationLink&&lodash.exports.isEqual(e.animationData,{}))throw console.log(e.animationData,"animationData",e.animationLink,"animationLink"),new Error("You must provide either animationLink or animationData");var n=setInterval((function(){if(function(e){return null!==document.querySelector('[data-id="'.concat(e,'"]'))}(t)){clearInterval(n);var e=document.querySelector('[data-id="'.concat(t,'" ]'));e&&o(e)}}),0)};return onMounted(_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.value=l(20),u(i.value);case 2:case"end":return e.stop()}}),e)})))),{elementid:i,hoverEnded:function(){r&&e.pauseOnHover&&r.play(),r&&e.playOnHover&&r.pause()},hoverStarted:function(){r&&e.pauseOnHover&&r.pause(),r&&e.playOnHover&&r.play()},getCurrentStyle:s,play:function(){r&&r.play()},pause:function(){r&&r.pause()},stop:function(){r&&r.stop()},destroy:function(){r&&r.destroy()},setSpeed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(e<=0)throw new Error("Speed must be greater than 0");r&&r.setSpeed(e)},setDirection:function(e){r&&("forward"===e?r.setDirection(1):"reverse"===e&&r.setDirection(-1))},goToAndStop:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r&&r.goToAndStop(e,t)},goToAndPlay:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];r&&r.goToAndPlay(e,t)},playSegments:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r&&r.playSegments(e,t)},setSubFrame:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r&&r.setSubframe(e)},getDuration:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(r)return r.getDuration(e)},updateDocumentData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;r&&r.renderer.elements[t].updateDocumentData(e)}}}}),_hoisted_1=["data-id"];function _sfc_render(e,t,n,r,i,a){return openBlock(),createElementBlock("div",{"data-id":e.elementid,class:"lottie-animation-container",style:normalizeStyle(e.getCurrentStyle),onMouseenter:t[0]||(t[0]=function(){return e.hoverStarted&&e.hoverStarted.apply(e,arguments)}),onMouseleave:t[1]||(t[1]=function(){return e.hoverEnded&&e.hoverEnded.apply(e,arguments)})},null,44,_hoisted_1)}var Vue3Lottie=_export_sfc(_sfc_main,[["render",_sfc_render]]),v$2="5.7.1",fr$1=60,ip$1=0,op$1=240,w$1=450,h$2=500,nm$1="评测前 2",ddd$1=0,assets$1=[{id:"image_0",w:69,h:58,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAA6CAYAAADm+ZQ9AAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAMIUlEQVRogeVbaYxlRRX+zqm6973unoAg4CBIQEfUiIAYJcYNgwEDGldixCVGTdBEUUhcgsFpf7hFMBFDjCTGxFGj8kPj9sOAjLiBu6Kiwowoi6hsw0x3v3er6nz+qKr7XjMzDChyFU7Sfe+7772+p776zndOnVst+B+0La899VBRHp9gx5jZYaBshOBRAA4Rcj8aR1CMSYwh4gToSAaBBApXBO52QbqNorcJ7c+Q9g8O4berizuuOeuSn4d93V8ehDHeq33x1ScdFL17QTI+D8AJIDaZpQNJAwhYSgAIoJ5np43WnxOAiuRXUq6KQEUBIaAOqg6qOoHgNwZcrWLfeMOWrZeJCO/p04MOCpeX9Qvbrzw1UV5pic+mpccbTSxGkAQtASQs5UGTCTRCSFCYzwXImLEMQkAAUhASFUgBRjSDJU4h4vI15yHOA6J/J+PXGq6c/8ZLf/nPBxUULi/r567behqhrwLthSGlgxAjyARLBiaDWQLMQBrMiMyUegQIq4QBOD+59VzmRpOBUAWICoxCRCEqoDqoOMA3EO8hrtmV4uSDb//q1R/5r4PyhTNPPyBi9W0UvDnGdITFAEsRTAkWQ2EGYSkCtPLaUFDIr8kycAHMAAForFcKLIRAICL9OXT2tQxICS/NDCIcpPGAesC38KMxUze96Jxv/vSd/xVQtrz2WU8I1p5H8hUphCXGDilGMEUYDRZTBsEiLDFrhFlhAGFGCAogUjEiQJZQKcd5wOaIQhKZJvm9rEGSw04EBoGoAuoA9ZBmBG1auNFCwtrayx5QUL7ypmceuGNn+1EVvj6GrrUU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1Y7p+uPBdDqMfT0i0d8RBO0hRRy59DJqqHDNCc293JVfT7lLyN67K99bo3jmjPU/neOSTnWRGhKRBS37/kYMK/2ta49i6GSMeQDYGheo3x945jWP1IH3nfYKIxnwjatlBKU/hZQlwW/N0NqXxJU4xhQux3CnySVAq3XosL3j+koJ0Az4ilyPgSrNhrtQcO6bYaWu1ZOpqXT+Ig64H8fG4H3vk01DaDecN9qFJ8e8mstw06E/nHqx4Whz/OLFrVerg645+rRHtREbBUKB7z9CpT+3saDEuquAV8aGlLjVyKVr9fXs//bPz5G45pwrfY9Fzk45I41X0fkhCET2HCT3LBtuNUBdREHHHWGUstG/P69baUNEVsRUdy59/sRWYYUcyqGekmgYVOfw55/FKVPV/v/+ntjNaCJ2jYy84HctXc/aXEKOUeiOQghbng7Txa8WjoAzc8R/Q12mn61WnjrZpXbTva2UaD9JvcfPJWBtXtSqEUU7ILiZUAfIm1E5WgykOcouIs4/KV6/a+eGeX3vc21/wds1Lcc59U5cQAAAABJRU5ErkJggg==",e:1}],layers$1=[{ddd:0,ind:1,ty:2,nm:"右触角",parent:8,refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[5]},{i:{x:[.169],y:[1]},o:{x:[.333],y:[0]},t:30,s:[5],e:[0]},{i:{x:[.199],y:[1]},o:{x:[.786],y:[0]},t:60,s:[0],e:[20]},{i:{x:[.667],y:[1]},o:{x:[.786],y:[0]},t:120,s:[20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0],e:[5]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[5],e:[0]},{t:240}],ix:10},p:{a:0,k:[193.146,30.9,0],ix:2},a:{a:0,k:[3.25,56.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"左触角",parent:8,refId:"image_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[-5]},{i:{x:[.148],y:[1]},o:{x:[.333],y:[0]},t:30,s:[-5],e:[0]},{i:{x:[.347],y:[1]},o:{x:[.659],y:[0]},t:60,s:[0],e:[-20]},{i:{x:[.667],y:[1]},o:{x:[.659],y:[0]},t:120,s:[-20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0],e:[-5]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[-5],e:[0]},{t:240}],ix:10},p:{a:0,k:[142.598,31.15,0],ix:2},a:{a:0,k:[66.75,56.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"睁眼",parent:8,refId:"image_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:35,s:[100],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:36,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:42,s:[0],e:[100]},{t:43}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[167.386,118.854,0],ix:2},a:{a:0,k:[107,43,0],ix:1},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:0,s:[100,100,100],e:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:30,s:[100,100,100],e:[100,35,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:35,s:[100,35,100],e:[100,35,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:43,s:[100,35,100],e:[100,100,100]},{t:48}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:4,ty:2,nm:"闭眼",parent:8,refId:"image_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[167.35,123.559,0],ix:2},a:{a:0,k:[97,7,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:5,ty:2,nm:"张嘴",parent:8,refId:"image_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[170.241,192.829,0],ix:2},a:{a:0,k:[32.5,32.5,0],ix:1},s:{a:0,k:[110,75,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:8,ty:2,nm:"脑袋",refId:"image_5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[6]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[6],e:[0]},{t:180}],ix:10},p:{a:0,k:[224.85,392.35,0],ix:2},a:{a:0,k:[168.5,240,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:9,ty:2,nm:"身体",refId:"image_6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[224.603,432.311,0],ix:2},a:{a:0,k:[57,67.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:10,ty:2,nm:"右手",refId:"image_7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[-5]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[-5],e:[-5]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[-5],e:[0]},{t:150}],ix:10},p:{a:0,k:[257.383,384.131,0],ix:2},a:{a:0,k:[11,6.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:11,ty:2,nm:"左手",refId:"image_8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[73]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[73],e:[46]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:105,s:[46],e:[73]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[73],e:[0]},{t:150}],ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:60,s:[192.861,387.971,0],e:[188.861,401.971,0],to:[-.667,2.333,0],ti:[.667,-1.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:90,s:[188.861,401.971,0],e:[188.861,395.971,0],to:[-.667,1.333,0],ti:[0,0,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:105,s:[188.861,395.971,0],e:[188.861,401.971,0],to:[0,0,0],ti:[-.667,1.333,0]},{i:{x:.667,y:1},o:{x:.333,y:0},t:120,s:[188.861,401.971,0],e:[192.861,387.971,0],to:[.667,-1.333,0],ti:[-.667,2.333,0]},{t:150}],ix:2},a:{a:0,k:[76.5,13.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers$1=[],startData={v:v$2,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$2,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1,markers:markers$1},v$1="5.7.1",fr=60,ip=0,op=239,w=450,h$1=500,nm="评测中",ddd=0,assets=[{id:"image_0",w:69,h:58,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAA6CAYAAADm+ZQ9AAAAC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yUE64KTCfGLmSqi0LbEXxYed57r7zuyvt7g/try8cedvhoqTlmmvRIafhoox4K41hUGhAtoB7KiZB3kbzdO/2npOnvwuhxly9v3RofCB/WgcLlZb3gJ9/cmabTxRgijIQ4B+f8Hedd/utHPhA3/H8wnX9x4dZLXw5ykUUEBQJRB6T466EcHMLWgYLGvRxF9ACULKcA4tcffNeGs3WgiHPHWbI5cROoKv3K9EsD+DaY9aCQFIgexbmHUqIKoe14d1koPVysB+Xik49+jpELfSqujxgsbRvSwSGsB2Ui49NhljtotZ+oDoJ0zZAODmE9KOLluPlHmGB5M3Y/G8y7gWxOU/Sxfdld31FF67B1KOeGshlTRA+dPaJE7qWC03OvuP53w7g2nCkAXHTipsMNsqE8fEXdGkWz24d2cAhTAOg2+JP7XUUA6qJdzP4xpHNDmQIAqcfksn6uw6UKM940oG+DWdYUymNzk2euRgEgSNcN694wpgAggsNnW6WACosX+/1wrg1nOXzUbWTfHswhRBFYStcO7eAQpgBgogdWkeX8w6qFpV8N694wphdt2jQCsJQf4K3riU7e9Z3frAzl2JCmqxvTE42U3EAum17y/pFdQzs3lKmabFq3b4MZmBTDzqGdG8o0KTIo5RmtlV3LEOwY2rmhTA16RCotyLqVkhBIsjuHdm4oUxCHW90Yh/IkP+8ieViuewBATWSjlU1xqQdEwJgeVi3IefNGeUTeG1If3mdQVHjz0M4NZUrIhtRv9JA+JRt549DODWUe4hYgebdg3chPKHzgX4Z2bijzVD8CLTepybKf1EF2cfvQzg1lXpumUa3/r0eo9/Dq+Z4/3njLwL4NZl7akXMhou5azbt+nO3jew9p804lYTTW5PIuBuc9NIV9/u/uQ9lUbvv78X7trqsbhh0Nw11ucve17codJw7t2JD2L8CLJaWUAO6QAAAAAElFTkSuQmCC",e:1},{id:"image_1",w:69,h:58,u:"",p:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAAA6CAYAAADm+ZQ9AAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAIm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2,nm:"右触角",parent:9,refId:"image_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0],e:[20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0],e:[20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[20],e:[0]},{t:240}],ix:10},p:{a:0,k:[193.146,30.9,0],ix:2},a:{a:0,k:[3.25,56.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:2,nm:"左触角",parent:9,refId:"image_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0],e:[-20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[-20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0],e:[-20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[-20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0],e:[-20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[-20],e:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0],e:[-20]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[-20],e:[0]},{t:240}],ix:10},p:{a:0,k:[142.598,31.15,0],ix:2},a:{a:0,k:[66.75,56.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:3,ty:2,nm:"睁眼 2",parent:9,refId:"image_2",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:102,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:103,s:[100],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:138,s:[100],e:[0]},{t:139}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[167.386,118.854,0],ix:2},a:{a:0,k:[107,43,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:103,s:[100,35,100],e:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:108,s:[100,100,100],e:[100,100,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},t:133,s:[100,100,100],e:[100,35,100]},{t:138}],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:4,ty:2,nm:"闭眼 2",parent:9,refId:"image_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[167.35,123.559,0],ix:2},a:{a:0,k:[97,7,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:6,ty:2,nm:"闭眼",parent:9,refId:"image_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[167.35,123.559,0],ix:2},a:{a:0,k:[97,7,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:8,ty:2,nm:"闭嘴",parent:9,refId:"image_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[168.804,184.705,0],ix:2},a:{a:0,k:[31,9.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:9,ty:2,nm:"脑袋",refId:"image_5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:30,s:[-5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:60,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:90,s:[5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:120,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:150,s:[-5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:180,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:210,s:[5],e:[0]},{t:240}],ix:10},p:{a:0,k:[224.85,392.35,0],ix:2},a:{a:0,k:[168.5,240,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:10,ty:2,nm:"身体",refId:"image_6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[224.603,432.311,0],ix:2},a:{a:0,k:[57,67.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:11,ty:2,nm:"1.png",cl:"png",refId:"image_7",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:135,s:[100],e:[0]},{t:150}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[223,298,0],e:[16,181.5,0],to:[-34.5,-19.417,0],ti:[34.5,19.417,0]},{t:150}],ix:2},a:{a:0,k:[13.5,18.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:12,ty:2,nm:"2.png",cl:"png",refId:"image_8",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:135,s:[100],e:[0]},{t:150}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[223,297,0],e:[431,206,0],to:[34.667,-15.167,0],ti:[-34.667,15.167,0]},{t:150}],ix:2},a:{a:0,k:[14,19.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:13,ty:2,nm:"3.png",cl:"png",refId:"image_9",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:135,s:[100],e:[0]},{t:150}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[222,300,0],e:[249,23,0],to:[4.5,-46.167,0],ti:[-4.5,46.167,0]},{t:150}],ix:2},a:{a:0,k:[14.5,21,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:14,ty:2,nm:"4.png",cl:"png",refId:"image_10",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:135,s:[100],e:[0]},{t:150}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[223,293,0],e:[393,86,0],to:[28.333,-34.5,0],ti:[-28.333,34.5,0]},{t:150}],ix:2},a:{a:0,k:[21,35,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:15,ty:2,nm:"5.png",cl:"png",refId:"image_11",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:135,s:[100],e:[0]},{t:150}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.667,y:1},o:{x:.333,y:0},t:30,s:[211.5,296.5,0],e:[76,72,0],to:[-26.25,-25.75,0],ti:[22.583,37.417,0]},{t:150}],ix:2},a:{a:0,k:[33.5,27.5,0],ix:1},s:{a:0,k:[90,90,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:16,ty:2,nm:"右手",refId:"image_12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:30,s:[-5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:60,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:90,s:[5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:120,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:150,s:[-5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:180,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:210,s:[5],e:[0]},{t:240}],ix:10},p:{a:0,k:[257.383,384.131,0],ix:2},a:{a:0,k:[14,11.25,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0},{ddd:0,ind:17,ty:2,nm:"左手",refId:"image_13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:0,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:30,s:[5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:60,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:90,s:[-5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:120,s:[0],e:[5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:150,s:[5],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:180,s:[0],e:[-5]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},t:210,s:[-5],e:[0]},{t:240}],ix:10},p:{a:0,k:[198,382,0],ix:2},a:{a:0,k:[79.5,10.5,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ip:0,op:300,st:0,bm:0}],markers=[],startingData={v:v$1,fr:fr,ip:ip,op:op,w:w,h:h$1,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers},iconEvaluatingStart="/orchestra-music-score/assets/icon-evaluatingStart.c1ce2873.png",actualBeatLength=0,backtime=0,initBehaviorId$2=""+(new Date).valueOf(),evaluating=ref(!1),playStatus=ref("stop"),endloading=ref(!1),connentLoading=ref(!1),playUrl=ref(""),endResult=ref(null),browserInfo$3=browser(),scoreList=[],getEvaluationCriteria=function(){var e="frequency";return[23,113,121].includes(state$2.subjectId)?e="amplitude":isRhythmicExercises()&&(e="decibels"),e},formatPitch=function(e){return e?state$3.sett.hertz&&442!==state$3.sett.hertz?e/442*state$3.sett.hertz:e:-1},starTime=0,formatTimes=function(){var e,t,n=state.speed/state$2.baseSpeed;actualBeatLength=Math.round(1e3*state$2.times[0].fixtime/n);var r=(null===(e=state$2.times)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.difftime)||0,i=!1,a=!1,o=!1,s=[],l=state$2.times,u="",c=[];if(unitTestData.isSelectMeasureMode){var h=state$2.times.findIndex((function(e){return e.NoteToGraphicalNoteObjectId==state$2.section[0].NoteToGraphicalNoteObjectId})),f=state$2.times.findIndex((function(e){return e.NoteToGraphicalNoteObjectId==state$2.section[1].NoteToGraphicalNoteObjectId}));l=state$2.times.filter((function(e,t){return t>=h&&t<=f})),c=state$2.times.filter((function(e,t){return t<h})),starTime=l[0].sourceRelativeTime||l[0].relativeTime,actualBeatLength=0!=h||state$2.needTick?0:actualBeatLength}if(c.length){for(var d=c.length-1;d>=0;d--){var p=c[d],m=getNoteByMeasuresSlursStart(p);if(m.formatLyricsEntries.contains("Play")||m.formatLyricsEntries.contains("Play...")){u="Play";break}if(m.formatLyricsEntries.contains("Listen")){u="Listen";break}}u=u||"Play"}for(var g=-1,v=-1,y=0;y<l.length;y++){var b,S,x,w,_,k,A,E,C=l[y],P=getNoteByMeasuresSlursStart(C),T=state.speed/state$2.baseSpeed,M=r+(C.sourceRelativeTime||C.relativeTime)-starTime,I=r+(C.sourceRelaEndtime||C.relaEndtime)-starTime,R=("function"==typeof P.voiceEntry.isStaccato?P.voiceEntry.isStaccato():P.voiceEntry.isStaccato)?.5:1;0!=y||P.formatLyricsEntries.length||(i="Play"!==u&&"Listen"===u),(P.formatLyricsEntries.contains("Play")||P.formatLyricsEntries.contains("Play..."))&&(i=!1),P.formatLyricsEntries.contains("Listen")&&(i=!0),P.formatLyricsEntries.contains("纯律结束")&&(a=!1),P.formatLyricsEntries.contains("纯律")&&(a=!0);var N=state$2.times[y+1];o&&(P.stave||!P.noteElement.isRestFlag||N&&!N.noteElement.isRestFlag)&&(o=!1),P.noteElement.isRestFlag&&P.stave&&N&&N.noteElement.isRestFlag&&(o=!0),P.measureOpenIndex!=v&&(g++,v=P.measureOpenIndex);var L={timeStamp:1e3*M/T,duration:(1e3*I/T-1e3*M/T)*R,frequency:formatPitch(null===(b=C.noteElement)||void 0===b||null===(S=b.pitch)||void 0===S?void 0:S.frequency),nextFrequency:formatPitch(null===(x=C.noteElement)||void 0===x||null===(w=x.pitch)||void 0===w?void 0:w.nextFrequency),prevFrequency:formatPitch(null===(_=C.noteElement)||void 0===_||null===(k=_.pitch)||void 0===k?void 0:k.prevFrequency),measureIndex:g,measureRenderIndex:P.noteElement.sourceMeasure.measureListIndex,dontEvaluating:i||a||C.skipMode,musicalNotesIndex:y,denominator:null===(A=P.noteElement)||void 0===A?void 0:A.Length.denominator,isOrnament:!(null==P||null===(E=P.voiceEntry)||void 0===E||!E.ornamentContainer)};s.push(L)}return s},connect=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r,i,a,o,s,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=useOriginSearch(),connentLoading.value=!0,a=sessionStorage.getItem("behaviorId")||i.behaviorId||initBehaviorId$2,state.speed,state$2.baseSpeed,o={musicXmlInfos:formatTimes(),subjectId:state$2.subjectId?state$2.subjectId:state$2.isPercussion?1:state$2.subjectId,detailId:null===(t=state$2.activeDetail)||void 0===t?void 0:t.id,examSongId:i.id,xmlUrl:null==state$2||null===(n=state$2.activeDetail)||void 0===n?void 0:n.xmlUrl,partIndex:state$2.partIndex,behaviorId:a,platform:"WEB",clientId:"STUDENT",hertz:state$3.sett.hertz,feature:"EVALUATION",practiceSource:i.unitId?"UNIT_TEST":"PRACTICE",reactionTimeMs:parseFloat(""+state$3.eva.reactionTimeMs)||0,speed:state.speed,heardLevel:state$3.eva.difficulty,beatLength:actualBeatLength,evaluationCriteria:getEvaluationCriteria()},s=useClientType(),o.clientId="student"===s?"STUDENT":"teacher"===s?"TEACHER":"BACKEND",browserInfo$3.android&&(o.platform="ANDROID"),browserInfo$3.ios&&(o.platform="IOS"),e.next=11,promisefiyPostMessage({api:"startEvaluating",content:o});case 11:if(null==(l=e.sent)||null===(r=l.content)||void 0===r||!r.reson){e.next=16;break}throw Toast.fail({message:null==l||null===(u=l.content)||void 0===u?void 0:u.reson}),connentLoading.value=!1,l;case 16:connentLoading.value=!1;case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sendOffsetTime=function(e){postMessage$1({api:"proxyServiceMessage",content:{header:{commond:"audioPlayStart",type:"SOUND_COMPARE"},body:{offsetTime:e}}},(function(){backtime=0}))},cancelTheEvaluation=function(){var e=useOriginSearch();postMessage$1({api:"endEvaluating",content:{musicScoreId:e.id}}),playStatus.value="stop",pause(),resetPlayStatus(),clearIntervalTimeline(),setCurrentTime(0),Toast.clear()},stopPlay=function(){console.log("调用stopPlay"),connentLoading.value||cancelTheEvaluation(),startButtonShow.value=!0,connentLoading.value=!1,evaluating.value=!1},evaluatStopPlay=stopPlay,startPlay=function(){console.log("连接服务成功,开始播放",(new Date).getTime()-state.clickTime),state$3.eva.mute?changeMode("background"):changeAllMode(),startButtonShow.value=!1,setPlayState()},setPlayer=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!connentLoading.value){e.next=2;break}return e.abrupt("return");case 2:if(state.clickTime=(new Date).getTime(),resetPlayStatus(),!state$2.isPauseRecording){e.next=8;break}return evaluating.value=!1,startPlay(),e.abrupt("return");case 8:return state$2.evaluatings={},t=Toast({duration:0,message:"服务连接中...",type:"loading"}),e.prev=10,e.next=13,connect();case 13:startPlay(),setTimeout((function(){console.log("关闭弹窗"),Toast.clear(),t.close()}),100),e.next=21;break;case 17:e.prev=17,e.t0=e.catch(10),state.evaluatingStatus=!1,Toast.clear();case 21:case"end":return e.stop()}}),e,null,[[10,17]])})));return function(){return e.apply(this,arguments)}}(),togglePlay=function(){if(state$2.isPauseRecording)return evaluating.value=!1,void startPlay();evaluating.value?stopPlay():setPlayer()},timeupdate=function(){if(console.log("播放事件被触发",playUrl.value,evaluating.value),playUrl.value){var e,t=(new Date).getTime(),n=null===(e=state.audiosInstance)||void 0===e?void 0:e.audios[playUrl.value].currentTime,r=state$2.section.length?state$2.section[0].i:0;unitTestData.isSelectMeasureMode&&r>0&&(n-=state$2.section[0].time),console.log("已播放时长: ",1e3*n),console.log("不减掉已播放时间: ",t-backtime);var i=t-backtime-1e3*n;console.log("真正播放延迟",i,n,unitTestData.isSelectMeasureMode,r),setTimeout((function(){sendOffsetTime(i)}),220)}},playerStop=function(){console.log("playerStop播放器停止事件",endloading.value),endloading.value||(playStatus.value="stop",endloading.value=!0,startButtonShow.value=!0,resetPlayStatus(),clearIntervalTimeline(),setCurrentTime(0),Toast({duration:0,message:"评分中...",type:"loading"}),postMessage$1({api:"endEvaluating",content:{musicScoreId:useOriginSearch().id}},(function(e){console.log("调用endEvaluating结束",e),endloading.value=!1,evaluating.value=!1})),endCapture())},endevent=function(e){var t;if(unitTestData.isSelectMeasureMode&&"play"===playStatus.value)return playerStop(),void(canSubmit.value=!0);(null===(t=e.target)||void 0===t?void 0:t.src)===playUrl.value&&"play"===playStatus.value&&(playerStop(),canSubmit.value=!0),state$2.isAppPlay&&(playerStop(),canSubmit.value=!0)},evaluatStart=function(){playStatus.value="play",state$2.isPauseRecording?postMessage$1({api:"resumeRecording"},(function(){evaluating.value=!0,state$2.isPauseRecording=!1,setCaptureMode()})):(setCaptureMode(),console.log("开始录音",(new Date).getTime()),postMessage$1({api:"startRecording"},(function(){var e,t;(backtime=Date.now(),evaluating.value=!0,null!==(e=state$2.activeDetail)&&void 0!==e&&e.midiUrl)&&(console.log("midiUrl",null===(t=state$2.activeDetail)||void 0===t?void 0:t.midiUrl),setTimeout((function(){sendOffsetTime(0)}),220))})),startCapture())},submitEvaluationScore=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=useOriginSearch()).unitId){e.next=8;break}if(canSubmit.value){e.next=5;break}return Toast("完整演奏结束才算测验分数!"),e.abrupt("return");case 5:(null===(r=endResult.value)||void 0===r?void 0:r.score)&&scoreList.push(null===(i=endResult.value)||void 0===i?void 0:i.score),postMessage$1({api:"setCache",content:{key:"h5-orchestra-unit",value:JSON.stringify({musicId:n.id||"",unitId:n.unitId||"",questionId:n.questionId||"",score:canSubmit.value&&(null===(a=endResult.value)||void 0===a?void 0:a.score)||0})}}),canSubmit.value=!1;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),canSubmit=ref(!1),sendResult=function(e){var t=(null==e?void 0:e.content)||{},n=t.body,r=t.header;if(console.log("评测返回",n),n&&r){var i,a=null==e||null===(i=e.content)||void 0===i?void 0:i.body;if("overall"===(null==e?void 0:e.content.header.commond))state$2.isHideEvaluatReportSaveBtn=!1,Toast.clear(),endResult.value=a,evaluatingShow.value=!0,submitEvaluationScore();else if("checkDone"===(null==e?void 0:e.content.header.commond));else if("checking"===(null==e?void 0:e.content.header.commond));else for(var o=function(e){for(;e>=0;){var t=state$2.times[e];if(t.stave)return t;e--}},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=getBoundingBoxByverticalNote(e);state$2.evaluatings=_objectSpread2(_objectSpread2({},state$2.evaluatings),{},_defineProperty2({},r.measureIndex,_objectSpread2(_objectSpread2(_objectSpread2({},r),getLeveByScoreMeasure(t.score)),{},{score:t.score,dontTransition:n})))},l=0;l<state$2.times.length;l++){var u=state$2.times[l];if(a.measureRenderIndex==u.noteElement.sourceMeasure.measureListIndex){if(!u.stave){var c=o(l);c&&(u=c)}if(u.noteElement.tie){var h,f=_createForOfIteratorHelper(u.noteElement.tie.notes);try{for(f.s();!(h=f.n()).done;){var d,p=h.value,m=getParentNote(p);m&&s(m,a,p.NoteToGraphicalNoteObjectId!==(null===(d=u.noteElement.tie.StartNote)||void 0===d?void 0:d.NoteToGraphicalNoteObjectId))}}catch(err){f.e(err)}finally{f.f()}}else s(u,a);break}}}},onProgress=function(){var e;state.currentTimeNum>=(null===(e=state$2.times[state$2.times.length-1])||void 0===e?void 0:e.time)-2&&(canSubmit.value=!0)},cloudMetronome=function(e){startButtonShow.value=!0},hideComplexButton=function(e,t){t?listenerMessage("hideComplexButton",e):removeListenerMessage("hideComplexButton",e)},handleComplexButton=function(e){console.log("监听是否隐藏保存按钮",e),null!=e&&e.content&&(e.content,state$2.isHideEvaluatReportSaveBtn=!0)},submitMaxScore=function(){var e=useOriginSearch();e.unitId&&scoreList.length&&(console.log("最高分",scoreList,Math.max.apply(Math,scoreList)),postMessage$1({api:"setCache",content:{key:"h5-orchestra-unit",value:JSON.stringify({musicId:e.id||"",unitId:e.unitId||"",questionId:e.questionId||"",score:Math.max.apply(Math,scoreList)})}}))},Evaluating=defineComponent({name:"ColexiuButtonEvaluating",setup:function(e,t){var n=t.expose;return onMounted(_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("进入评测模块"),handleCheckEvaluatStatus(),unitTestData.isSelectMeasureMode||(state$2.section=[],state$2.sectionStatus=!1),changeAllMode(),playUrl.value=state.songs.background||state.songs.music,null===(t=state.audiosInstance)||void 0===t||null===(n=t.audios[playUrl.value])||void 0===n||n.addEventListener("play",timeupdate),null===(r=state.audiosInstance)||void 0===r||null===(i=r.audios[playUrl.value])||void 0===i||i.addEventListener("timeupdate",onProgress),event$1.on("ended",endevent),listenerMessage("sendResult",sendResult),listenerMessage("cloudTimeUpdae",onProgress),event$1.on("tickDestroy",cloudMetronome),event$1.on("tickEnd",evaluatStart),hideComplexButton(handleComplexButton,!0);case 13:case"end":return e.stop()}}),e)})))),onBeforeUnmount((function(){var e,t,n,r;null===(e=state.audiosInstance)||void 0===e||null===(t=e.audios[playUrl.value])||void 0===t||t.removeEventListener("play",timeupdate),null===(n=state.audiosInstance)||void 0===n||null===(r=n.audios[playUrl.value])||void 0===r||r.removeEventListener("timeupdate",onProgress),event$1.off("ended",endevent),event$1.off("tickDestroy",cloudMetronome),removeListenerMessage("sendResult",sendResult),removeListenerMessage("cloudTimeUpdae",onProgress),hideComplexButton((function(){}),!1),event$1.off("tickEnd",evaluatStart),submitMaxScore()})),n({setPlayer:setPlayer,startPlay:startPlay,stopPlay:stopPlay,togglePlay:togglePlay,playerStop:playerStop,evaluating:evaluating,connentLoading:connentLoading,playStatus:playStatus,cancelTheEvaluation:cancelTheEvaluation}),function(){return createVNode(Teleport,{to:"body",key:"StartEvaluating"},{default:function(){return[createVNode(Evaluating$1,{data:endResult.value},null),createVNode(Transition,{name:"finish"},{default:function(){return[startButtonShow.value&&createVNode("div",{style:{backgroundImage:"url(".concat(iconEvaluatingStart,")"),transform:state$2.isSpecialShapedScreen?"translateX(".concat(state$2.notchHeight/4,"px)"):""},class:[styles$k.evaluatStartBtn],onClick:function(){setPlayer()}},null)]}}),evaluating.value?createVNode("div",{class:styles$k.dialogueBox,key:"starting"},[createVNode("div",{class:styles$k.inRadio},[createTextVNode("收音中...")]),createVNode(Vue3Lottie,{class:styles$k.inRadioIcon,animationData:startingData},null)]):createVNode("div",{class:styles$k.dialogueBox,key:"start"},[createVNode("div",{class:styles$k.dialogue},[createVNode("div",null,[createTextVNode("演奏前请调整好乐器,保证最佳演奏状态。"),createVNode("span",{class:styles$k.triangle},null)])]),createVNode(Vue3Lottie,{class:styles$k.dialogueIcon,animationData:startData},null)])]}})}}}),iconCancel="/orchestra-music-score/assets/cancel.4bba8aaa.svg",iconConfirm="/orchestra-music-score/assets/confirm.0f8024da.svg",permissionPopup=reactive({active:"earphone",show:!1}),InfoIcon="/orchestra-music-score/assets/info.df4a2cca.svg",iconTv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAB+ZJREFUWEftmHtsHEcdx7+/3T3nzja2UwmqChAxUAmaIhW1EVUQIU7dRLiNktRxKPSRxsZ2apRHjcmjoeRawjNJbTfFrh0gJLZJaycN0LqRm6hNCgk0lUAq/QdC4yBo1fJIHNfnx93O/NDs7u3jfHt2EG5VKSud7m73NzOf+c73NzszhPfZRe8zXlwBnukRu6Lwe6Ywv/jgDSBUg6kc4I+CuZB9NAQCw7vjDZX65Y9M/7PvB+PSFap4Ggbx3wAMgPWf0KIdf87W+Um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K5CYII=",setting="_setting_kd176_1",sliderWrap="_sliderWrap_kd176_44",slider="_slider_kd176_44",noticebar="_noticebar_kd176_68",groupBox="_groupBox_kd176_74",btnsbar="_btnsbar_kd176_93",btn$2="_btn_kd176_93",iconBtn="_iconBtn_kd176_115",radioGroup="_radioGroup_kd176_120",styles$j={setting:setting,sliderWrap:sliderWrap,slider:slider,noticebar:noticebar,groupBox:groupBox,btnsbar:btnsbar,btn:btn$2,iconBtn:iconBtn,radioGroup:radioGroup},tabs$1="_tabs_e40bs_1",styles$i={tabs:tabs$1},show=ref(!1),HelperPopup=defineComponent({name:"HelperPopup",setup:function(){return function(){return createVNode(Popup,{show:show.value,position:"right",round:!0,teleport:"body",onClickOverlay:function(){return show.value=!1},style:{height:"100vh",width:"40vw",overflow:"hidden"}},{default:function(){return[createVNode(Tabs,{class:styles$i.tabs},{default:function(){return[createVNode(Tab,{title:"投屏"},{default:function(){return[createVNode("iframe",{src:location.origin+"/orchestra-student/#/guide"},null)]}}),createVNode(Tab,{title:"帮助"},{default:function(){return[createVNode("iframe",{src:location.origin+"/orchestra-student/#/help-center?source=music"},null)]}})]}})]}})}}}),raf$1={exports:{}},performanceNow={exports:{}};(function(){var e,t,n,r,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?performanceNow.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(performanceNow.exports=function(){return(e()-i)/1e6},t=process.hrtime,r=(e=function(){var e;return 1e9*(e=t())[0]+e[1]})(),a=1e9*process.uptime(),i=r-a):Date.now?(performanceNow.exports=function(){return Date.now()-n},n=Date.now()):(performanceNow.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(commonjsGlobal$2);for(var now=performanceNow.exports,root="undefined"==typeof window?commonjsGlobal$2:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root["request"+suffix],caf=root["cancel"+suffix]||root["cancelRequest"+suffix],i$1=0;!raf&&i$1<vendors.length;i$1++)raf=root[vendors[i$1]+"Request"+suffix],caf=root[vendors[i$1]+"Cancel"+suffix]||root[vendors[i$1]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id$1=0,queue=[],frameDuration=1e3/60;raf=function(t){if(0===queue.length){var n=now(),r=Math.max(0,frameDuration-(n-last));last=r+n,setTimeout((function(){var t=queue.slice(0);queue.length=0;for(var n=0;n<t.length;n++)if(!t[n].cancelled)try{t[n].callback(last)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return queue.push({handle:++id$1,callback:t,cancelled:!1}),id$1},caf=function(e){for(var t=0;t<queue.length;t++)queue[t].handle===e&&(queue[t].cancelled=!0)}}raf$1.exports=function(e){return raf.call(root,e)},raf$1.exports.cancel=function(){caf.apply(root,arguments)},raf$1.exports.polyfill=function(e){e||(e=root),e.requestAnimationFrame=raf,e.cancelAnimationFrame=caf};var requestAnimationFrame$1=raf$1.exports,rgbcolor=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=n[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],i=0;i<r.length;i++){var a=r[i].re,o=r[i].process,s=a.exec(t);if(s){var l=o(s);this.r=l[0],this.g=l[1],this.b=l[2],l.length>3&&(this.alpha=l[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var a=r[i].example,o=0;o<a.length;o++)t[t.length]=a[o];for(var s in n)t[t.length]=s;var l=document.createElement("ul");l.setAttribute("id","rgbcolor-examples");for(i=0;i<t.length;i++)try{var u=document.createElement("li"),c=new RGBColor(t[i]),h=document.createElement("div");h.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),h.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[i]+" -> "+c.toRGB()+" -> "+c.toHex());u.appendChild(h),u.appendChild(f),l.appendChild(u)}catch(e){}return l}},_t13=function(e,t){return(_t13=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_t13(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function e(e){var t="";Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(r.type===_.CLOSE_PATH)t+="z";else if(r.type===_.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===_.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===_.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===_.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===_.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===_.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===_.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===_.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==_.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function i(e,t){var n=e[0],r=e[1];return[n*Math.cos(t)-r*Math.sin(t),n*Math.sin(t)+r*Math.cos(t)]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if("number"!=typeof e[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+_typeof3(e[n])+" == typeof "+e[n]);return!0}var n=Math.PI;function o(e,t,r){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var a=e.rX,o=e.rY,s=e.x,l=e.y;a=Math.abs(e.rX),o=Math.abs(e.rY);var u=i([(t-s)/2,(r-l)/2],-e.xRot/180*n),c=u[0],h=u[1],f=Math.pow(c,2)/Math.pow(a,2)+Math.pow(h,2)/Math.pow(o,2);1<f&&(a*=Math.sqrt(f),o*=Math.sqrt(f)),e.rX=a,e.rY=o;var d=Math.pow(a,2)*Math.pow(h,2)+Math.pow(o,2)*Math.pow(c,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(a,2)*Math.pow(o,2)-d)/d)),m=a*h/o*p,g=-o*c/a*p,v=i([m,g],e.xRot/180*n);e.cX=v[0]+(t+s)/2,e.cY=v[1]+(r+l)/2,e.phi1=Math.atan2((h-g)/o,(c-m)/a),e.phi2=Math.atan2((-h-g)/o,(-c-m)/a),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*n),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*n),e.phi1*=180/n,e.phi2*=180/n}function s(e,t,n){a(e,t,n);var r=e*e+t*t-n*n;if(0>r)return[];if(0===r)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var u,h=Math.PI/180;function c$1(e,t,n){return(1-n)*e+n*t}function y(e,t,r,i){return e+Math.cos(i/180*n)*t+Math.sin(i/180*n)*r}function p(e,t,n,r){var i=1e-6,a=t-e,o=n-t,s=3*a+3*(r-n)-6*o,l=6*(o-a),u=3*a;return Math.abs(s)<i?[-u/l]:function(e,t,n){void 0===n&&(n=1e-6);var r=e*e/4-t;if(r<-n)return[];if(r<=n)return[-e/2];var i=Math.sqrt(r);return[-e/2-i,-e/2+i]}(l/s,u/s,i)}function m$1(e,t,n,r,i){var a=1-i;return e*(a*a*a)+t*(3*a*a*i)+n*(3*a*i*i)+r*(i*i*i)}!function(e){function t(){return l((function(e,t,n){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=n),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=n),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=n),e.relative=!1),e}))}function n(){var e=NaN,t=NaN,n=NaN,r=NaN;return l((function(i,a,o){return i.type&_.SMOOTH_CURVE_TO&&(i.type=_.CURVE_TO,e=isNaN(e)?a:e,t=isNaN(t)?o:t,i.x1=i.relative?a-e:2*a-e,i.y1=i.relative?o-t:2*o-t),i.type&_.CURVE_TO?(e=i.relative?a+i.x2:i.x2,t=i.relative?o+i.y2:i.y2):(e=NaN,t=NaN),i.type&_.SMOOTH_QUAD_TO&&(i.type=_.QUAD_TO,n=isNaN(n)?a:n,r=isNaN(r)?o:r,i.x1=i.relative?a-n:2*a-n,i.y1=i.relative?o-r:2*o-r),i.type&_.QUAD_TO?(n=i.relative?a+i.x1:i.x1,r=i.relative?o+i.y1:i.y1):(n=NaN,r=NaN),i}))}function r(){var e=NaN,t=NaN;return l((function(n,r,i){if(n.type&_.SMOOTH_QUAD_TO&&(n.type=_.QUAD_TO,e=isNaN(e)?r:e,t=isNaN(t)?i:t,n.x1=n.relative?r-e:2*r-e,n.y1=n.relative?i-t:2*i-t),n.type&_.QUAD_TO){e=n.relative?r+n.x1:n.x1,t=n.relative?i+n.y1:n.y1;var a=n.x1,o=n.y1;n.type=_.CURVE_TO,n.x1=((n.relative?0:r)+2*a)/3,n.y1=((n.relative?0:i)+2*o)/3,n.x2=(n.x+2*a)/3,n.y2=(n.y+2*o)/3}else e=NaN,t=NaN;return n}))}function l(e){var t=0,n=0,r=NaN,i=NaN;return function(a){if(isNaN(r)&&!(a.type&_.MOVE_TO))throw new Error("path must start with moveto");var o=e(a,t,n,r,i);return a.type&_.CLOSE_PATH&&(t=r,n=i),void 0!==a.x&&(t=a.relative?t+a.x:a.x),void 0!==a.y&&(n=a.relative?n+a.y:a.y),a.type&_.MOVE_TO&&(r=t,i=n),o}}function u(e,t,n,r,i,o){return a(e,t,n,r,i,o),l((function(a,s,l,u){var c=a.x1,h=a.x2,f=a.relative&&!isNaN(u),d=void 0!==a.x?a.x:f?0:s,p=void 0!==a.y?a.y:f?0:l;function m(e){return e*e}a.type&_.HORIZ_LINE_TO&&0!==t&&(a.type=_.LINE_TO,a.y=a.relative?0:l),a.type&_.VERT_LINE_TO&&0!==n&&(a.type=_.LINE_TO,a.x=a.relative?0:s),void 0!==a.x&&(a.x=a.x*e+p*n+(f?0:i)),void 0!==a.y&&(a.y=d*t+a.y*r+(f?0:o)),void 0!==a.x1&&(a.x1=a.x1*e+a.y1*n+(f?0:i)),void 0!==a.y1&&(a.y1=c*t+a.y1*r+(f?0:o)),void 0!==a.x2&&(a.x2=a.x2*e+a.y2*n+(f?0:i)),void 0!==a.y2&&(a.y2=h*t+a.y2*r+(f?0:o));var g=e*r-t*n;if(void 0!==a.xRot&&(1!==e||0!==t||0!==n||1!==r))if(0===g)delete a.rX,delete a.rY,delete a.xRot,delete a.lArcFlag,delete a.sweepFlag,a.type=_.LINE_TO;else{var v=a.xRot*Math.PI/180,y=Math.sin(v),b=Math.cos(v),S=1/m(a.rX),x=1/m(a.rY),w=m(b)*S+m(y)*x,k=2*y*b*(S-x),A=m(y)*S+m(b)*x,E=w*r*r-k*t*r+A*t*t,C=k*(e*r+t*n)-2*(w*n*r+A*e*t),P=w*n*n-k*e*n+A*e*e,T=(Math.atan2(C,E-P)+Math.PI)%Math.PI/2,M=Math.sin(T),I=Math.cos(T);a.rX=Math.abs(g)/Math.sqrt(E*m(I)+C*M*I+P*m(M)),a.rY=Math.abs(g)/Math.sqrt(E*m(M)-C*M*I+P*m(I)),a.xRot=180*T/Math.PI}return void 0!==a.sweepFlag&&0>g&&(a.sweepFlag=+!a.sweepFlag),a}))}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),a(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return l((function(e,t,n){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=n),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=n),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=n),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),l((function(r,i,a,o,s){if(isNaN(o)&&!(r.type&_.MOVE_TO))throw new Error("path must start with moveto");return t&&r.type&_.HORIZ_LINE_TO&&(r.type=_.LINE_TO,r.y=r.relative?0:a),n&&r.type&_.VERT_LINE_TO&&(r.type=_.LINE_TO,r.x=r.relative?0:i),e&&r.type&_.CLOSE_PATH&&(r.type=_.LINE_TO,r.x=r.relative?o-i:o,r.y=r.relative?s-a:s),r.type&_.ARC&&(0===r.rX||0===r.rY)&&(r.type=_.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=l,e.SANITIZE=function(e){void 0===e&&(e=0),a(e);var t=NaN,n=NaN,r=NaN,i=NaN;return l((function(a,o,s,l,u){var c=Math.abs,h=!1,f=0,d=0;if(a.type&_.SMOOTH_CURVE_TO&&(f=isNaN(t)?0:o-t,d=isNaN(n)?0:s-n),a.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(t=a.relative?o+a.x2:a.x2,n=a.relative?s+a.y2:a.y2):(t=NaN,n=NaN),a.type&_.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,i=isNaN(i)?s:2*s-i):a.type&_.QUAD_TO?(r=a.relative?o+a.x1:a.x1,i=a.relative?s+a.y1:a.y2):(r=NaN,i=NaN),a.type&_.LINE_COMMANDS||a.type&_.ARC&&(0===a.rX||0===a.rY||!a.lArcFlag)||a.type&_.CURVE_TO||a.type&_.SMOOTH_CURVE_TO||a.type&_.QUAD_TO||a.type&_.SMOOTH_QUAD_TO){var p=void 0===a.x?0:a.relative?a.x:a.x-o,m=void 0===a.y?0:a.relative?a.y:a.y-s;f=isNaN(r)?void 0===a.x1?f:a.relative?a.x:a.x1-o:r-o,d=isNaN(i)?void 0===a.y1?d:a.relative?a.y:a.y1-s:i-s;var g=void 0===a.x2?0:a.relative?a.x:a.x2-o,v=void 0===a.y2?0:a.relative?a.y:a.y2-s;c(p)<=e&&c(m)<=e&&c(f)<=e&&c(d)<=e&&c(g)<=e&&c(v)<=e&&(h=!0)}return a.type&_.CLOSE_PATH&&c(o-l)<=e&&c(s-u)<=e&&(h=!0),h?[]:a}))},e.MATRIX=u,e.ROTATE=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0),a(e,t,n);var r=Math.sin(e),i=Math.cos(e);return u(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),a(e,t),u(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),a(e,t),u(e,0,0,t,0,0)},e.SKEW_X=function(e){return a(e),u(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return a(e),u(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),u(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),u(1,0,0,-1,0,e)},e.A_TO_C=function(){return l((function(e,t,n){return _.ARC===e.type?function(e,t,n){var r,a,s,l;e.cX||o(e,t,n);for(var u=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-u,f=Math.ceil(c/90),d=new Array(f),p=t,m=n,g=0;g<f;g++){var v=c$1(e.phi1,e.phi2,g/f),y=c$1(e.phi1,e.phi2,(g+1)/f),b=y-v,S=4/3*Math.tan(b*h/4),x=[Math.cos(v*h)-S*Math.sin(v*h),Math.sin(v*h)+S*Math.cos(v*h)],w=x[0],k=x[1],A=[Math.cos(y*h),Math.sin(y*h)],E=A[0],C=A[1],P=[E+S*Math.sin(y*h),C-S*Math.cos(y*h)],T=P[0],M=P[1];d[g]={relative:e.relative,type:_.CURVE_TO};var I=function(t,n){var r=i([t*e.rX,n*e.rY],e.xRot),a=r[0],o=r[1];return[e.cX+a,e.cY+o]};r=I(w,k),d[g].x1=r[0],d[g].y1=r[1],a=I(T,M),d[g].x2=a[0],d[g].y2=a[1],s=I(E,C),d[g].x=s[0],d[g].y=s[1],e.relative&&(d[g].x1-=p,d[g].y1-=m,d[g].x2-=p,d[g].y2-=m,d[g].x-=p,d[g].y-=m),p=(l=[d[g].x,d[g].y])[0],m=l[1]}return d}(e,e.relative?0:t,e.relative?0:n):e}))},e.ANNOTATE_ARCS=function(){return l((function(e,t,n){return e.relative&&(t=0,n=0),_.ARC===e.type&&o(e,t,n),e}))},e.CLONE=function(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),i=r(),a=n(),u=l((function(t,n,r){var l=a(i(e(function(e){var t={};for(var n in e)t[n]=e[n];return t}(t))));function c(e){e>u.maxX&&(u.maxX=e),e<u.minX&&(u.minX=e)}function h(e){e>u.maxY&&(u.maxY=e),e<u.minY&&(u.minY=e)}if(l.type&_.DRAWING_COMMANDS&&(c(n),h(r)),l.type&_.HORIZ_LINE_TO&&c(l.x),l.type&_.VERT_LINE_TO&&h(l.y),l.type&_.LINE_TO&&(c(l.x),h(l.y)),l.type&_.CURVE_TO){c(l.x),h(l.y);for(var f=0,d=p(n,l.x1,l.x2,l.x);f<d.length;f++)0<(R=d[f])&&1>R&&c(m$1(n,l.x1,l.x2,l.x,R));for(var m=0,g=p(r,l.y1,l.y2,l.y);m<g.length;m++)0<(R=g[m])&&1>R&&h(m$1(r,l.y1,l.y2,l.y,R))}if(l.type&_.ARC){c(l.x),h(l.y),o(l,n,r);for(var v=l.xRot/180*Math.PI,b=Math.cos(v)*l.rX,S=Math.sin(v)*l.rX,x=-Math.sin(v)*l.rY,w=Math.cos(v)*l.rY,k=l.phi1<l.phi2?[l.phi1,l.phi2]:-180>l.phi2?[l.phi2+360,l.phi1+360]:[l.phi2,l.phi1],A=k[0],E=k[1],C=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return r<A?r+360:r},P=0,T=s(x,-b,0).map(C);P<T.length;P++)(R=T[P])>A&&R<E&&c(y(l.cX,b,x,R));for(var M=0,I=s(w,-S,0).map(C);M<I.length;M++){var R;(R=I[M])>A&&R<E&&h(y(l.cY,S,w,R))}}return t}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(u||(u={}));var O,l=function(){function e(){}return e.prototype.round=function(e){return this.transform(u.ROUND(e))},e.prototype.toAbs=function(){return this.transform(u.TO_ABS())},e.prototype.toRel=function(){return this.transform(u.TO_REL())},e.prototype.normalizeHVZ=function(e,t,n){return this.transform(u.NORMALIZE_HVZ(e,t,n))},e.prototype.normalizeST=function(){return this.transform(u.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(u.QT_TO_C())},e.prototype.aToC=function(){return this.transform(u.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(u.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(u.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(u.SCALE(e,t))},e.prototype.rotate=function(e,t,n){return this.transform(u.ROTATE(e,t,n))},e.prototype.matrix=function(e,t,n,r,i,a){return this.transform(u.MATRIX(e,t,n,r,i,a))},e.prototype.skewX=function(e){return this.transform(u.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(u.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(u.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(u.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(u.ANNOTATE_ARCS())},e}(),T=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},v=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},f=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return r(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var n=this;void 0===t&&(t=[]);for(var r=function(e){t.push(e),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<e.length;i++){var a=e[i],o=!(this.curCommandType!==_.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=v(a)&&("0"===this.curNumber&&"0"===a||o);if(!v(a)||s)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===_.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(l),this.curArgs.length===N[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?r({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):_.VERT_LINE_TO===this.curCommandType?r({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?r({type:_.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===_.SMOOTH_CURVE_TO?r({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?r({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&r({type:_.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!T(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=_.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=_.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=_.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=_.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=_.ARC,this.curCommandRelative="a"===a}else t.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){void 0===n&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var a=i[r],o=e(a);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},t}(l),_=function(t){function n(e){var r=t.call(this)||this;return r.commands="string"==typeof e?n.parse(e):e,r}return r(n,t),n.prototype.encode=function(){return n.encode(this.commands)},n.prototype.getBounds=function(){var e=u.CALCULATE_BOUNDS();return this.transform(e),e},n.prototype.transform=function(e){for(var t=[],n=0,r=this.commands;n<r.length;n++){var i=e(r[n]);Array.isArray(i)?t.push.apply(t,i):t.push(i)}return this.commands=t,this},n.encode=function(t){return e(t)},n.parse=function(e){var t=new f,n=[];return t.parse(e,n),t.finish(n),n},n.CLOSE_PATH=1,n.MOVE_TO=2,n.HORIZ_LINE_TO=4,n.VERT_LINE_TO=8,n.LINE_TO=16,n.CURVE_TO=32,n.SMOOTH_CURVE_TO=64,n.QUAD_TO=128,n.SMOOTH_QUAD_TO=256,n.ARC=512,n.LINE_COMMANDS=n.LINE_TO|n.HORIZ_LINE_TO|n.VERT_LINE_TO,n.DRAWING_COMMANDS=n.HORIZ_LINE_TO|n.VERT_LINE_TO|n.LINE_TO|n.CURVE_TO|n.SMOOTH_CURVE_TO|n.QUAD_TO|n.SMOOTH_QUAD_TO|n.ARC,n}(l),N=((O={})[_.MOVE_TO]=2,O[_.LINE_TO]=2,O[_.HORIZ_LINE_TO]=1,O[_.VERT_LINE_TO]=1,O[_.CLOSE_PATH]=0,O[_.QUAD_TO]=4,O[_.SMOOTH_QUAD_TO]=2,O[_.CURVE_TO]=6,O[_.SMOOTH_CURVE_TO]=4,O[_.ARC]=7,O);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")}
  108. /**
  109. * StackBlur - a fast almost Gaussian Blur For Canvas
  110. *
  111. * In case you find this class useful - especially in commercial projects -
  112. * I am not totally unhappy for a small donation to my PayPal account
  113. * mario@quasimondo.de
  114. *
  115. * Or support me on flattr:
  116. * {@link https://flattr.com/thing/72791/StackBlur-a-fast-almost-Gaussian-Blur-Effect-for-CanvasJavascript}.
  117. *
  118. * @module StackBlur
  119. * @author Mario Klingemann
  120. * Contact: mario@quasimondo.com
  121. * Website: {@link http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html}
  122. * Twitter: @quasimondo
  123. *
  124. * @copyright (c) 2010 Mario Klingemann
  125. *
  126. * Permission is hereby granted, free of charge, to any person
  127. * obtaining a copy of this software and associated documentation
  128. * files (the "Software"), to deal in the Software without
  129. * restriction, including without limitation the rights to use,
  130. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  131. * copies of the Software, and to permit persons to whom the
  132. * Software is furnished to do so, subject to the following
  133. * conditions:
  134. *
  135. * The above copyright notice and this permission notice shall be
  136. * included in all copies or substantial portions of the Software.
  137. *
  138. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  139. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  140. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  141. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  142. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  143. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  144. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  145. * OTHER DEALINGS IN THE SOFTWARE.
  146. */var mulTable=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],shgTable=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function getImageDataFromCanvas(t,n,r,i,a){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==_typeof(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(n,r,i,a)}catch(e){throw new Error("unable to access image data: "+e)}}function processCanvasRGBA(e,t,n,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=getImageDataFromCanvas(e,t,n,r,i);o=processImageDataRGBA(o,t,n,r,i,a),e.getContext("2d").putImageData(o,t,n)}}function processImageDataRGBA(e,t,n,r,i,a){for(var o,s=e.data,l=2*a+1,u=r-1,c=i-1,h=a+1,f=h*(h+1)/2,d=new BlurStack,p=d,m=1;m<l;m++)p=p.next=new BlurStack,m===h&&(o=p);p.next=d;for(var g=null,v=null,y=0,b=0,S=mulTable[a],x=shgTable[a],w=0;w<i;w++){p=d;for(var _=s[b],k=s[b+1],A=s[b+2],E=s[b+3],C=0;C<h;C++)p.r=_,p.g=k,p.b=A,p.a=E,p=p.next;for(var P=0,T=0,M=0,I=0,R=h*_,N=h*k,L=h*A,D=h*E,B=f*_,F=f*k,O=f*A,V=f*E,G=1;G<h;G++){var z=b+((u<G?u:G)<<2),U=s[z],H=s[z+1],j=s[z+2],W=s[z+3],q=h-G;B+=(p.r=U)*q,F+=(p.g=H)*q,O+=(p.b=j)*q,V+=(p.a=W)*q,P+=U,T+=H,M+=j,I+=W,p=p.next}g=d,v=o;for(var X=0;X<r;X++){var Y=V*S>>x;if(s[b+3]=Y,0!==Y){var Q=255/Y;s[b]=(B*S>>x)*Q,s[b+1]=(F*S>>x)*Q,s[b+2]=(O*S>>x)*Q}else s[b]=s[b+1]=s[b+2]=0;B-=R,F-=N,O-=L,V-=D,R-=g.r,N-=g.g,L-=g.b,D-=g.a;var K=X+a+1;K=y+(K<u?K:u)<<2,B+=P+=g.r=s[K],F+=T+=g.g=s[K+1],O+=M+=g.b=s[K+2],V+=I+=g.a=s[K+3],g=g.next;var Z=v,J=Z.r,$=Z.g,ee=Z.b,te=Z.a;R+=J,N+=$,L+=ee,D+=te,P-=J,T-=$,M-=ee,I-=te,v=v.next,b+=4}y+=r}for(var ne=0;ne<r;ne++){var re=s[b=ne<<2],ie=s[b+1],ae=s[b+2],oe=s[b+3],se=h*re,le=h*ie,ue=h*ae,ce=h*oe,he=f*re,fe=f*ie,de=f*ae,pe=f*oe;p=d;for(var me=0;me<h;me++)p.r=re,p.g=ie,p.b=ae,p.a=oe,p=p.next;for(var ge=r,ve=0,ye=0,be=0,Se=0,xe=1;xe<=a;xe++){b=ge+ne<<2;var we=h-xe;he+=(p.r=re=s[b])*we,fe+=(p.g=ie=s[b+1])*we,de+=(p.b=ae=s[b+2])*we,pe+=(p.a=oe=s[b+3])*we,Se+=re,ve+=ie,ye+=ae,be+=oe,p=p.next,xe<c&&(ge+=r)}b=ne,g=d,v=o;for(var _e=0;_e<i;_e++){var ke=b<<2;s[ke+3]=oe=pe*S>>x,oe>0?(oe=255/oe,s[ke]=(he*S>>x)*oe,s[ke+1]=(fe*S>>x)*oe,s[ke+2]=(de*S>>x)*oe):s[ke]=s[ke+1]=s[ke+2]=0,he-=se,fe-=le,de-=ue,pe-=ce,se-=g.r,le-=g.g,ue-=g.b,ce-=g.a,ke=ne+((ke=_e+h)<c?ke:c)*r<<2,he+=Se+=g.r=s[ke],fe+=ve+=g.g=s[ke+1],de+=ye+=g.b=s[ke+2],pe+=be+=g.a=s[ke+3],g=g.next,se+=re=v.r,le+=ie=v.g,ue+=ae=v.b,ce+=oe=v.a,Se-=re,ve-=ie,ye-=ae,be-=oe,v=v.next,b+=r}}return e}var BlurStack=function e(){_classCallCheck(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function offscreen(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(e,t){return new OffscreenCanvas(e,t)},createImage:function(e){return _asyncToGenerator(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return n=t.sent,t.next=5,n.blob();case 5:return r=t.sent,t.next=8,createImageBitmap(r);case 8:return i=t.sent,t.abrupt("return",i);case 10:case"end":return t.stop()}}),t)})))()}};return void 0===globalThis.DOMParser&&void 0!==t||Reflect.deleteProperty(n,"DOMParser"),n}function node(e){var t=e.DOMParser,n=e.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:e.fetch,createCanvas:n.createCanvas,createImage:n.loadImage}}var index=exports("a1",Object.freeze({__proto__:null,offscreen:offscreen,node:node}));function compressSpaces(e){return e.replace(/(?!\u3000)\s+/gm," ")}function trimLeft(e){return e.replace(/^[\n \t]+/,"")}function trimRight(e){return e.replace(/[\n \t]+$/,"")}function toNumbers(e){var t=e.match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm);return t?t.map(parseFloat):[]}function toMatrixValue(e){var t=toNumbers(e);return[t[0]||0,t[1]||0,t[2]||0,t[3]||0,t[4]||0,t[5]||0]}var allUppercase=/^[A-Z-]+$/;function normalizeAttributeName(e){return allUppercase.test(e)?e.toLowerCase():e}function parseExternalUrl(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e);return t&&(t[2]||t[3]||t[4])||""}function normalizeColor(e){if(!e.startsWith("rgb"))return e;var t=3,n=e.replace(/\d+(\.\d+)?/g,(function(e,n){return t--&&n?String(Math.round(parseFloat(e))):e}));return n}var attributeRegex=/(\[[^\]]+\])/g,idRegex=/(#[^\s+>~.[:]+)/g,classRegex=/(\.[^\s+>~.[:]+)/g,pseudoElementRegex=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,pseudoClassWithBracketsRegex=/(:[\w-]+\([^)]*\))/gi,pseudoClassRegex=/(:[^\s+>~.[:]+)/g,elementRegex=/([^\s+>~.[:]+)/g;function findSelectorMatch(e,t){var n=t.exec(e);return n?[e.replace(t," "),n.length]:[e,0]}function getSelectorSpecificity(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0,i=_slicedToArray(findSelectorMatch(n,attributeRegex),2);n=i[0],r=i[1],t[1]+=r;var a=_slicedToArray(findSelectorMatch(n,idRegex),2);n=a[0],r=a[1],t[0]+=r;var o=_slicedToArray(findSelectorMatch(n,classRegex),2);n=o[0],r=o[1],t[1]+=r;var s=_slicedToArray(findSelectorMatch(n,pseudoElementRegex),2);n=s[0],r=s[1],t[2]+=r;var l=_slicedToArray(findSelectorMatch(n,pseudoClassWithBracketsRegex),2);n=l[0],r=l[1],t[1]+=r;var u=_slicedToArray(findSelectorMatch(n,pseudoClassRegex),2);n=u[0],r=u[1],t[1]+=r;var c=_slicedToArray(findSelectorMatch(n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),elementRegex),2);return n=c[0],r=c[1],t[2]+=r,t.join("")}var PSEUDO_ZERO=1e-8;function vectorMagnitude(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function vectorsRatio(e,t){return(e[0]*t[0]+e[1]*t[1])/(vectorMagnitude(e)*vectorMagnitude(t))}function vectorsAngle(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(vectorsRatio(e,t))}function CB1(e){return e*e*e}function CB2(e){return 3*e*e*(1-e)}function CB3(e){return 3*e*(1-e)*(1-e)}function CB4(e){return(1-e)*(1-e)*(1-e)}function QB1(e){return e*e}function QB2(e){return 2*e*(1-e)}function QB3(e){return(1-e)*(1-e)}var Property=function(){function e(t,n,r){_classCallCheck2(this,e),this.document=t,this.name=n,this.value=r,this.isNormalizedColor=!1}return _createClass2(e,[{key:"split",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",n=this.document,r=this.name;return compressSpaces(this.getString()).trim().split(t).map((function(t){return new e(n,r,t)}))}},{key:"hasValue",value:function(e){var t=this.value;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t}},{key:"isString",value:function(e){var t=this.value,n="string"==typeof t;return n&&e?e.test(t):n}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}},{key:"setValue",value:function(e){return this.value=e,this}},{key:"getValue",value:function(e){return void 0===e||this.hasValue()?this.value:e}},{key:"getNumber",value:function(e){if(!this.hasValue())return void 0===e?0:parseFloat(e);var t=this.value,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}},{key:"getString",value:function(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}},{key:"getColor",value:function(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=normalizeColor(t),this.value=t),t}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var n="boolean"==typeof e?[void 0,e]:[e],r=_slicedToArray(n,2),i=r[0],a=r[1],o=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(i);default:var s=this.getNumber();return t&&s<1?s*o.computeSize(i):s}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var e=this.getString(),t=/#([^)'"]+)/.exec(e),n=(null==t?void 0:t[1])||e;return this.document.definitions[n]}},{key:"getFillStyleDefinition",value:function(e,t){var n=this.getDefinition();if(!n)return null;if("function"==typeof n.createGradient&&"getBoundingBox"in e)return n.createGradient(this.document.ctx,e,t);if("function"==typeof n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute("patternTransform");(n=n.getHrefAttribute().getDefinition())&&r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)}if(n)return n.createPattern(this.document.ctx,e,t)}return null}},{key:"getTextBaseline",value:function(){if(!this.hasValue())return null;var t=this.getString();return e.textBaselineMapping[t]||null}},{key:"addOpacity",value:function(t){for(var n=this.getColor(),r=n.length,i=0,a=0;a<r&&(","===n[a]&&i++,3!==i);a++);if(t.hasValue()&&this.isString()&&3!==i){var o=new rgbcolor(n);o.ok&&(o.alpha=t.getNumber(),n=o.toRGBA())}return new e(this.document,this.name,n)}}],[{key:"empty",value:function(t){return new e(t,"EMPTY","")}}]),e}();Property.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var ViewPort=function(){function e(){_classCallCheck2(this,e),this.viewPorts=[]}return _createClass2(e,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(e,t){this.viewPorts.push({width:e,height:t})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getRoot",value:function(){var e=_slicedToArray(this.viewPorts,1)[0];return e||getDefault()}},{key:"getCurrent",value:function(){var e=this.viewPorts,t=e[e.length-1];return t||getDefault()}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}},{key:"computeSize",value:function(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}]),e}();function getDefault(){return{width:ViewPort.DEFAULT_VIEWPORT_WIDTH,height:ViewPort.DEFAULT_VIEWPORT_HEIGHT}}ViewPort.DEFAULT_VIEWPORT_WIDTH=800,ViewPort.DEFAULT_VIEWPORT_HEIGHT=600;var Point=function(){function e(t,n){_classCallCheck2(this,e),this.x=t,this.y=n}return _createClass2(e,[{key:"angleTo",value:function(e){return Math.atan2(e.y-this.y,e.x-this.x)}},{key:"applyTransform",value:function(e){var t=this.x,n=this.y,r=t*e[0]+n*e[2]+e[4],i=t*e[1]+n*e[3]+e[5];this.x=r,this.y=i}}],[{key:"parse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=toNumbers(t),i=_slicedToArray(r,2),a=i[0],o=void 0===a?n:a,s=i[1],l=void 0===s?n:s;return new e(o,l)}},{key:"parseScale",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=toNumbers(t),i=_slicedToArray(r,2),a=i[0],o=void 0===a?n:a,s=i[1],l=void 0===s?o:s;return new e(o,l)}},{key:"parsePath",value:function(t){for(var n=toNumbers(t),r=n.length,i=[],a=0;a<r;a+=2)i.push(new e(n[a],n[a+1]));return i}}]),e}(),Mouse=function(){function e(t){_classCallCheck2(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return _createClass2(e,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var e=this.screen,t=this.onClick,n=this.onMouseMove,r=e.ctx.canvas;r.onclick=t,r.onmousemove=n,this.working=!0}}},{key:"stop",value:function(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var e,t=this.screen,n=this.events,r=this.eventElements,i=t.ctx.canvas.style;i&&(i.cursor=""),n.forEach((function(t,n){var i=t.run;for(e=r[n];e;)i(e),e=e.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(e,t){if(this.working&&t){var n=this.events,r=this.eventElements;n.forEach((function(n,i){var a=n.x,o=n.y;!r[i]&&t.isPointInPath&&t.isPointInPath(a,o)&&(r[i]=e)}))}}},{key:"checkBoundingBox",value:function(e,t){if(this.working&&t){var n=this.events,r=this.eventElements;n.forEach((function(n,i){var a=n.x,o=n.y;!r[i]&&t.isPointInBox(a,o)&&(r[i]=e)}))}}},{key:"mapXY",value:function(e,t){for(var n=this.screen,r=n.window,i=n.ctx,a=new Point(e,t),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return(null==r?void 0:r.scrollX)&&(a.x+=r.scrollX),(null==r?void 0:r.scrollY)&&(a.y+=r.scrollY),a}},{key:"onClick",value:function(e){var t=this.mapXY(e.clientX,e.clientY),n=t.x,r=t.y;this.events.push({type:"onclick",x:n,y:r,run:function(e){e.onClick&&e.onClick()}})}},{key:"onMouseMove",value:function(e){var t=this.mapXY(e.clientX,e.clientY),n=t.x,r=t.y;this.events.push({type:"onmousemove",x:n,y:r,run:function(e){e.onMouseMove&&e.onMouseMove()}})}}]),e}(),defaultWindow="undefined"!=typeof window?window:null,defaultFetch$1="undefined"!=typeof fetch?fetch.bind(void 0):void 0,Screen=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fetch,i=void 0===r?defaultFetch$1:r,a=n.window,o=void 0===a?defaultWindow:a;if(_classCallCheck2(this,e),this.ctx=t,this.viewPort=new ViewPort,this.mouse=new Mouse(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=o,!i)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");this.fetch=i}return _createClass2(e,[{key:"wait",value:function(e){this.waits.push(e)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var e=this.waits.every((function(e){return e()}));return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}},{key:"setDefaults",value:function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}},{key:"setViewBox",value:function(e){var t=e.document,n=e.ctx,r=e.aspectRatio,i=e.width,a=e.desiredWidth,o=e.height,s=e.desiredHeight,l=e.minX,u=void 0===l?0:l,c=e.minY,h=void 0===c?0:c,f=e.refX,d=e.refY,p=e.clip,m=void 0!==p&&p,g=e.clipX,v=void 0===g?0:g,y=e.clipY,b=void 0===y?0:y,S=_slicedToArray(compressSpaces(r).replace(/^defer\s/,"").split(" "),2),x=S[0]||"xMidYMid",w=S[1]||"meet",_=i/a,k=o/s,A=Math.min(_,k),E=Math.max(_,k),C=a,P=s;"meet"===w&&(C*=A,P*=A),"slice"===w&&(C*=E,P*=E);var T=new Property(t,"refX",f),M=new Property(t,"refY",d),I=T.hasValue()&&M.hasValue();if(I&&n.translate(-A*T.getPixels("x"),-A*M.getPixels("y")),m){var R=A*v,N=A*b;n.beginPath(),n.moveTo(R,N),n.lineTo(i,N),n.lineTo(i,o),n.lineTo(R,o),n.closePath(),n.clip()}if(!I){var L="meet"===w&&A===k,D="slice"===w&&E===k,B="meet"===w&&A===_,F="slice"===w&&E===_;x.startsWith("xMid")&&(L||D)&&n.translate(i/2-C/2,0),x.endsWith("YMid")&&(B||F)&&n.translate(0,o/2-P/2),x.startsWith("xMax")&&(L||D)&&n.translate(i-C,0),x.endsWith("YMax")&&(B||F)&&n.translate(0,o-P)}switch(!0){case"none"===x:n.scale(_,k);break;case"meet"===w:n.scale(A,A);break;case"slice"===w:n.scale(E,E)}n.translate(-u,-h)}},{key:"start",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.enableRedraw,a=void 0!==i&&i,o=r.ignoreMouse,s=void 0!==o&&o,l=r.ignoreAnimation,u=void 0!==l&&l,c=r.ignoreDimensions,h=void 0!==c&&c,f=r.ignoreClear,d=void 0!==f&&f,p=r.forceRedraw,m=r.scaleWidth,g=r.scaleHeight,v=r.offsetX,y=r.offsetY,b=this.mouse,S=1e3/e.FRAMERATE;if(this.frameDuration=S,this.readyPromise=new Promise((function(e){n.resolveReady=e})),this.isReady()&&this.render(t,h,d,m,g,v,y),a){var x=Date.now(),w=x,_=0,k=function e(){x=Date.now(),(_=x-w)>=S&&(w=x-_%S,n.shouldUpdate(u,p)&&(n.render(t,h,d,m,g,v,y),b.runEvents())),n.intervalId=requestAnimationFrame$1(e)};s||b.start(),this.intervalId=requestAnimationFrame$1(k)}}},{key:"stop",value:function(){this.intervalId&&(requestAnimationFrame$1.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(e,t){if(!e){var n=this.frameDuration,r=this.animations.reduce((function(e,t){return t.update(n)||e}),!1);if(r)return!0}return!("function"!=typeof t||!t())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(e,t,n,r,i,a,o){var s=this.viewPort,l=this.ctx,u=this.isFirstRender,c=l.canvas;s.clear(),c.width&&c.height&&s.setCurrent(c.width,c.height);var h=e.getStyle("width"),f=e.getStyle("height");!t&&(u||"number"!=typeof r&&"number"!=typeof i)&&(h.hasValue()&&(c.width=h.getPixels("x"),c.style&&(c.style.width="".concat(c.width,"px"))),f.hasValue()&&(c.height=f.getPixels("y"),c.style&&(c.style.height="".concat(c.height,"px"))));var d=c.clientWidth||c.width,p=c.clientHeight||c.height;if(t&&h.hasValue()&&f.hasValue()&&(d=h.getPixels("x"),p=f.getPixels("y")),s.setCurrent(d,p),"number"==typeof a&&e.getAttribute("x",!0).setValue(a),"number"==typeof o&&e.getAttribute("y",!0).setValue(o),"number"==typeof r||"number"==typeof i){var m=toNumbers(e.getAttribute("viewBox").getString()),g=0,v=0;if("number"==typeof r){var y=e.getStyle("width");y.hasValue()?g=y.getPixels("x")/r:m[2]&&!isNaN(m[2])&&(g=m[2]/r)}if("number"==typeof i){var b=e.getStyle("height");b.hasValue()?v=b.getPixels("y")/i:m[3]&&!isNaN(m[3])&&(v=m[3]/i)}g||(g=v),v||(v=g),e.getAttribute("width",!0).setValue(r),e.getAttribute("height",!0).setValue(i);var S=e.getStyle("transform",!0,!0);S.setValue("".concat(S.getString()," scale(").concat(1/g,", ").concat(1/v,")"))}n||l.clearRect(0,0,d,p),e.render(l),u&&(this.isFirstRender=!1)}}]),e}();Screen.defaultWindow=defaultWindow,Screen.defaultFetch=defaultFetch$1,Screen.FRAMERATE=30,Screen.MAX_VIRTUAL_PIXELS=3e4;var defaultFetch=Screen.defaultFetch,DefaultDOMParser="undefined"!=typeof DOMParser?DOMParser:void 0,Parser$1=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.fetch,r=void 0===n?defaultFetch:n,i=t.DOMParser,a=void 0===i?DefaultDOMParser:i;if(_classCallCheck2(this,e),!r)throw new Error("Can't find 'fetch' in 'globalThis', please provide it via options");if(!a)throw new Error("Can't find 'DOMParser' in 'globalThis', please provide it via options");this.fetch=r,this.DOMParser=a}var t,n;return _createClass2(e,[{key:"parse",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.startsWith("<")){e.next=2;break}return e.abrupt("return",this.parseFromString(t));case 2:return e.abrupt("return",this.load(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"parseFromString",value:function(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(err){return this.checkDocument(t.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent||"Unknown parse error");return e}},{key:"load",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return n=e.sent,e.next=5,n.text();case 5:return r=e.sent,e.abrupt("return",this.parseFromString(r));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Translate=function(){function e(t,n){_classCallCheck2(this,e),this.type="translate",this.point=Point.parse(n)}return _createClass2(e,[{key:"apply",value:function(e){var t=this.point,n=t.x,r=t.y;e.translate(n||0,r||0)}},{key:"unapply",value:function(e){var t=this.point,n=t.x,r=t.y;e.translate(-1*n||0,-1*r||0)}},{key:"applyToPoint",value:function(e){var t=this.point,n=t.x,r=t.y;e.applyTransform([1,0,0,1,n||0,r||0])}}]),e}(),Rotate=function(){function e(t,n,r){_classCallCheck2(this,e),this.type="rotate";var i=toNumbers(n);this.angle=new Property(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}return _createClass2(e,[{key:"apply",value:function(e){var t=this.cx,n=this.cy,r=this.originX,i=this.originY,a=this.angle,o=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(o,s),e.rotate(a.getRadians()),e.translate(-o,-s)}},{key:"unapply",value:function(e){var t=this.cx,n=this.cy,r=this.originX,i=this.originY,a=this.angle,o=t+r.getPixels("x"),s=n+i.getPixels("y");e.translate(o,s),e.rotate(-1*a.getRadians()),e.translate(-o,-s)}},{key:"applyToPoint",value:function(e){var t=this.cx,n=this.cy,r=this.angle.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}]),e}(),Scale=function(){function e(t,n,r){_classCallCheck2(this,e),this.type="scale";var i=Point.parseScale(n);0!==i.x&&0!==i.y||(i.x=PSEUDO_ZERO,i.y=PSEUDO_ZERO),this.scale=i,this.originX=r[0],this.originY=r[1]}return _createClass2(e,[{key:"apply",value:function(e){var t=this.scale,n=t.x,r=t.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(n,r||n),e.translate(-o,-s)}},{key:"unapply",value:function(e){var t=this.scale,n=t.x,r=t.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");e.translate(o,s),e.scale(1/n,1/r||n),e.translate(-o,-s)}},{key:"applyToPoint",value:function(e){var t=this.scale,n=t.x,r=t.y;e.applyTransform([n||0,0,0,r||0,0,0])}}]),e}(),Matrix=function(){function e(t,n,r){_classCallCheck2(this,e),this.type="matrix",this.matrix=toMatrixValue(n),this.originX=r[0],this.originY=r[1]}return _createClass2(e,[{key:"apply",value:function(e){var t=this.originX,n=this.originY,r=this.matrix,i=t.getPixels("x"),a=n.getPixels("y");e.translate(i,a),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-a)}},{key:"unapply",value:function(e){var t=this.originX,n=this.originY,r=this.matrix,i=r[0],a=r[2],o=r[4],s=r[1],l=r[3],u=r[5],c=1/(i*(1*l-0*u)-a*(1*s-0*u)+o*(0*s-0*l)),h=t.getPixels("x"),f=n.getPixels("y");e.translate(h,f),e.transform(c*(1*l-0*u),c*(0*u-1*s),c*(0*o-1*a),c*(1*i-0*o),c*(a*u-o*l),c*(o*s-i*u)),e.translate(-h,-f)}},{key:"applyToPoint",value:function(e){e.applyTransform(this.matrix)}}]),e}(),Skew=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="skew",a.angle=new Property(e,"angle",r),a}return _createClass2(n)}(Matrix),SkewX=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="skewX",a.matrix=[1,0,Math.tan(a.angle.getRadians()),1,0,0],a}return _createClass2(n)}(Skew),SkewY=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="skewY",a.matrix=[1,Math.tan(a.angle.getRadians()),0,1,0,0],a}return _createClass2(n)}(Skew);function parseTransforms(e){return compressSpaces(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function parseTransform(e){var t=_slicedToArray(e.split("("),2),n=t[0],r=void 0===n?"":n,i=t[1],a=void 0===i?"":i;return[r.trim(),a.trim().replace(")","")]}var Transform=function(){function e(t,n,r){var i=this;_classCallCheck2(this,e),this.document=t,this.transforms=[],parseTransforms(n).forEach((function(t){if("none"!==t){var n=_slicedToArray(parseTransform(t),2),a=n[0],o=n[1],s=e.transformTypes[a];s&&i.transforms.push(new s(i.document,o,r))}}))}return _createClass2(e,[{key:"apply",value:function(e){this.transforms.forEach((function(t){return t.apply(e)}))}},{key:"unapply",value:function(e){this.transforms.forEach((function(t){return t.unapply(e)}))}},{key:"applyToPoint",value:function(e){this.transforms.forEach((function(t){return t.applyToPoint(e)}))}}],[{key:"fromElement",value:function(t,n){var r=n.getStyle("transform",!1,!0);if(r.hasValue()){var i=_slicedToArray(n.getStyle("transform-origin",!1,!0).split(),2),a=i[0],o=i[1],s=void 0===o?a:o;if(a&&s){var l=[a,s];return new e(t,r.getString(),l)}}return null}}]),e}();Transform.transformTypes={translate:Translate,rotate:Rotate,scale:Scale,matrix:Matrix,skewX:SkewX,skewY:SkewY};var Element$2=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(_classCallCheck2(this,e),this.document=t,this.node=n,this.captureTextNodes=i,this.type="",this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],n&&1===n.nodeType){if(Array.from(n.attributes).forEach((function(e){var n=normalizeAttributeName(e.nodeName);r.attributes[n]=new Property(t,n,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map((function(e){return e.trim()}));a.forEach((function(e){if(e){var n=e.split(":").map((function(e){return e.trim()})),i=_slicedToArray(n,2),a=i[0],o=i[1];a&&(r.styles[a]=new Property(t,a,o))}}))}var o=t.definitions,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(n.childNodes).forEach((function(e){if(1===e.nodeType)r.addChild(e);else if(i&&(3===e.nodeType||4===e.nodeType)){var n=t.createTextNode(e);n.getText().length>0&&r.addChild(n)}}))}}return _createClass2(e,[{key:"getAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.attributes[e];if(!n&&t){var r=new Property(this.document,e,"");return this.attributes[e]=r,r}return n||Property.empty(this.document)}},{key:"getHrefAttribute",value:function(){var e;for(var t in this.attributes)if("href"===t||t.endsWith(":href")){e=this.attributes[t];break}return e||Property.empty(this.document)}},{key:"getStyle",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=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(i.hasValue())return this.styles[e]=i,i;if(!n){var a=this.parent;if(a){var o=a.getStyle(e);if(o.hasValue())return o}}if(t){var s=new Property(this.document,e,"");return this.styles[e]=s,s}return Property.empty(this.document)}},{key:"render",value:function(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}},{key:"setContext",value:function(e){}},{key:"applyEffects",value:function(e){var t=Transform.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}},{key:"clearContext",value:function(e){}},{key:"renderChildren",value:function(e){this.children.forEach((function(t){t.render(e)}))}},{key:"addChild",value:function(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)}},{key:"matchesSelector",value:function(e){var t,n=this.node;if("function"==typeof n.matches)return n.matches(e);var r=null===(t=n.getAttribute)||void 0===t?void 0:t.call(n,"class");return!(!r||""===r)&&r.split(" ").some((function(t){return".".concat(t)===e}))}},{key:"addStylesFromStyleDefinition",value:function(){var e,t=this.document,n=t.styles,r=t.stylesSpecificity;for(var i in n)if(!i.startsWith("@")&&this.matchesSelector(i)){var a=n[i],o=r[i];if(a)for(var s in a){var l=this.stylesSpecificity[s];void 0===l&&(l="000"),o&&o>=l&&((e=a[s])&&(this.styles[s]=e),this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(e,t){var n=t.reduce((function(t,n){var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[].concat(_toConsumableArray2(t),[[n,i]])}),[]);return n}},{key:"restoreStyles",value:function(e,t){t.forEach((function(t){var n=_slicedToArray(t,2),r=n[0],i=n[1];e.getStyle(r,!0).setValue(i)}))}},{key:"isFirstChild",value:function(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}]),e}();Element$2.ignoreChildTypes=["title"];var UnknownElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){return _classCallCheck2(this,n),t.call(this,e,r,i)}return _createClass2(n)}(Element$2);function wrapFontFamily(e){var t=e.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function prepareFontFamily(e){return"undefined"==typeof process?e:e.trim().split(",").map(wrapFontFamily).join(",")}function prepareFontStyle(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function prepareFontWeight(e){if(!e)return"";var t=e.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}var Font$1=function(){function e(t,n,r,i,a,o){_classCallCheck2(this,e);var s=o?"string"==typeof o?e.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=n||s.fontVariant}return _createClass2(e,[{key:"toString",value:function(){return[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,prepareFontFamily(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r="",i="",a="",o="",s="",l=compressSpaces(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach((function(t){switch(!0){case!u.fontStyle&&e.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&e.variants.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&e.weights.includes(t):"inherit"!==t&&(a=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:"inherit"!==t&&(o=t.split("/")[0]||""),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new e(r,i,a,o,s,n)}}]),e}();Font$1.styles="normal|italic|oblique|inherit",Font$1.variants="normal|small-caps|inherit",Font$1.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var BoundingBox$2=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;_classCallCheck2(this,e),this.x1=t,this.y1=n,this.x2=r,this.y2=i,this.addPoint(t,n),this.addPoint(r,i)}return _createClass2(e,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(e,t){void 0!==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)),void 0!==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,0)}},{key:"addY",value:function(e){this.addPoint(0,e)}},{key:"addBoundingBox",value:function(e){if(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;this.addPoint(t,n),this.addPoint(r,i)}}},{key:"sumCubic",value:function(e,t,n,r,i){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*r+Math.pow(e,3)*i}},{key:"bezierCurveAdd",value:function(e,t,n,r,i){var a=6*t-12*n+6*r,o=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(0!==o){var l=Math.pow(a,2)-4*s*o;if(!(l<0)){var u=(-a+Math.sqrt(l))/(2*o);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,n,r,i)):this.addY(this.sumCubic(u,t,n,r,i)));var c=(-a-Math.sqrt(l))/(2*o);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,n,r,i)):this.addY(this.sumCubic(c,t,n,r,i)))}}else{if(0===a)return;var h=-s/a;0<h&&h<1&&(e?this.addX(this.sumCubic(h,t,n,r,i)):this.addY(this.sumCubic(h,t,n,r,i)))}}},{key:"addBezierCurve",value:function(e,t,n,r,i,a,o,s){this.addPoint(e,t),this.addPoint(o,s),this.bezierCurveAdd(!0,e,n,i,o),this.bezierCurveAdd(!1,t,r,a,s)}},{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,l,s,u,i,a)}},{key:"isPointInBox",value:function(e,t){var n=this.x1,r=this.y1,i=this.x2,a=this.y2;return n<=e&&e<=i&&r<=t&&t<=a}}]),e}(),RenderedElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).modifiedEmSizeStack=!1,e}return _createClass2(n,[{key:"calculateOpacity",value:function(){for(var e=1,t=this;t;){var n=t.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),t=t.parent}return e}},{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var n=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,r);o&&(e.fillStyle=o)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var s=n.getColor();"inherit"!==s&&(e.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(r.hasValue()){var l=new Property(this.document,"fill",e.fillStyle).addOpacity(r).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var u=i.getFillStyleDefinition(this,a);u&&(e.strokeStyle=u)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var c=i.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(a.hasValue()){var h=new Property(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=h}var f=this.getStyle("stroke-width");if(f.hasValue()){var d=f.getPixels();e.lineWidth=d||PSEUDO_ZERO}var p=this.getStyle("stroke-linecap"),m=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),v=this.getStyle("stroke-dasharray"),y=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),m.hasValue()&&(e.lineJoin=m.getString()),g.hasValue()&&(e.miterLimit=g.getNumber()),v.hasValue()&&"none"!==v.getString()){var b=toNumbers(v.getString());void 0!==e.setLineDash?e.setLineDash(b):void 0!==e.webkitLineDash?e.webkitLineDash=b:void 0===e.mozDash||1===b.length&&0===b[0]||(e.mozDash=b);var S=y.getPixels();void 0!==e.lineDashOffset?e.lineDashOffset=S:void 0!==e.webkitLineDashOffset?e.webkitLineDashOffset=S:void 0!==e.mozDashOffset&&(e.mozDashOffset=S)}}if(this.modifiedEmSizeStack=!1,void 0!==e.font){var x=this.getStyle("font"),w=this.getStyle("font-style"),_=this.getStyle("font-variant"),k=this.getStyle("font-weight"),A=this.getStyle("font-size"),E=this.getStyle("font-family"),C=new Font$1(w.getString(),_.getString(),k.getString(),A.hasValue()?"".concat(A.getPixels(!0),"px"):"",E.getString(),Font$1.parse(x.getString(),e.font));w.setValue(C.fontStyle),_.setValue(C.fontVariant),k.setValue(C.fontWeight),A.setValue(C.fontSize),E.setValue(C.fontFamily),e.font=C.toString(),A.isPixels()&&(this.document.emSize=A.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){_get(_getPrototypeOf2(n.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Element$2),TextElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,(this instanceof n?this.constructor:void 0)===n||i)).type="text",a.x=0,a.y=0,a.leafTexts=[],a.textChunkStart=0,a.minX=Number.POSITIVE_INFINITY,a.maxX=Number.NEGATIVE_INFINITY,a.measureCache=-1,a}return _createClass2(n,[{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_get(_getPrototypeOf2(n.prototype),"setContext",this).call(this,e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(e){var t=this;if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var n=null;return this.children.forEach((function(r,i){var a=t.getChildBoundingBox(e,t,t,i);n?n.addBoundingBox(a):n=a})),n}},{key:"getFontSize",value:function(){var e=this.document,t=this.parent,n=Font$1.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(n)}},{key:"getTElementBoundingBox",value:function(e){var t=this.getFontSize();return new BoundingBox$2(this.x,this.y-t,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,t,n){var r,i=t[n];if(e.isArabic){var a,o=t.length,s=t[n-1],l=t[n+1],u="isolated";(0===n||" "===s)&&n<o-1&&" "!==l&&(u="terminal"),n>0&&" "!==s&&n<o-1&&" "!==l&&(u="medial"),n>0&&" "!==s&&(n===o-1||" "===l)&&(u="initial"),r=(null===(a=e.arabicGlyphs[i])||void 0===a?void 0:a[u])||e.glyphs[i]}else r=e.glyphs[i];return r||(r=e.missingGlyph),r}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,a=compressSpaces(t.textContent||"");return 0===r&&(a=trimLeft(a)),r===i&&(a=trimRight(a)),a}},{key:"renderChildren",value:function(e){var t=this;if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((function(n,r){t.renderChild(e,t,t,r)}));var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}},{key:"renderTElementChildren",value:function(e){var t=this.document,n=this.parent,r=this.getText(),i=n.getStyle("font-family").getDefinition();if(i)for(var a=i.fontFace.unitsPerEm,o=Font$1.parse(t.ctx.font),s=n.getStyle("font-size").getNumber(o.fontSize),l=n.getStyle("font-style").getString(o.fontStyle),u=s/a,c=i.isRTL?r.split("").reverse().join(""):r,h=toNumbers(n.getAttribute("dx").getString()),f=c.length,d=0;d<f;d++){var p=this.getGlyph(i,c,d);e.translate(this.x,this.y),e.scale(u,-u);var m=e.lineWidth;e.lineWidth=e.lineWidth*a/s,"italic"===l&&e.transform(1,0,.4,1,0,0),p.render(e),"italic"===l&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/u,-1/u),e.translate(-this.x,-this.y),this.x+=s*(p.horizAdvX||i.horizAdvX)/a,void 0===h[d]||isNaN(h[d])||(this.x+=h[d])}else{var g=this.x,v=this.y;e.fillStyle&&e.fillText(r,g,v),e.strokeStyle&&e.strokeText(r,g,v)}}},{key:"applyAnchoring",value:function(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=0;n="start"===t?e.x-this.minX:"end"===t?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var r=this.textChunkStart;r<this.leafTexts.length;r++)this.leafTexts[r].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}},{key:"adjustChildCoordinatesRecursive",value:function(e){var t=this;this.children.forEach((function(n,r){t.adjustChildCoordinatesRecursiveCore(e,t,t,r)})),this.applyAnchoring()}},{key:"adjustChildCoordinatesRecursiveCore",value:function(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((function(n,r){t.adjustChildCoordinatesRecursiveCore(e,t,i,r)})):this.adjustChildCoordinates(e,t,n,r)}},{key:"adjustChildCoordinates",value:function(e,t,n,r){var i=n.children[r];if("function"!=typeof i.measureText)return i;e.save(),i.setContext(e,!0);var a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("dx"),l=i.getAttribute("dy"),u=i.getStyle("font-family").getDefinition(),c=Boolean(null==u?void 0:u.isRTL);0===r&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),o.hasValue()||o.setValue(i.getInheritedAttribute("y")),s.hasValue()||s.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var h=i.measureText(e);return c&&(t.x-=h),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels("x"),s.hasValue()&&(i.x+=s.getPixels("x"))):(s.hasValue()&&(t.x+=s.getPixels("x")),i.x=t.x),t.x=i.x,c||(t.x+=h),o.hasValue()?(i.y=o.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+h),t.maxX=Math.max(t.maxX,i.x,i.x+h),i.clearContext(e),e.restore(),i}},{key:"getChildBoundingBox",value:function(e,t,n,r){var i=n.children[r];if("function"!=typeof i.getBoundingBox)return null;var a=i.getBoundingBox(e);return a&&i.children.forEach((function(n,r){var o=t.getChildBoundingBox(e,t,i,r);a.addBoundingBox(o)})),a}},{key:"renderChild",value:function(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((function(n,r){t.renderChild(e,t,i,r)}))}},{key:"measureText",value:function(e){var t=this.measureCache;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}},{key:"measureTargetText",value:function(e,t){if(!t.length)return 0;var n=this.parent,r=n.getStyle("font-family").getDefinition();if(r){for(var i=this.getFontSize(),a=r.isRTL?t.split("").reverse().join(""):t,o=toNumbers(n.getAttribute("dx").getString()),s=a.length,l=0,u=0;u<s;u++){l+=(this.getGlyph(r,a,u).horizAdvX||r.horizAdvX)*i/r.fontFace.unitsPerEm,void 0===o[u]||isNaN(o[u])||(l+=o[u])}return l}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var c=e.measureText(t).width;return this.clearContext(e),e.restore(),c}},{key:"getInheritedAttribute",value:function(e){for(var t=this;t instanceof n&&t.isFirstChild()&&t.parent;){var r=t.parent.getAttribute(e);if(r.hasValue(!0))return r.getString("0");t=t.parent}return null}}]),n}(RenderedElement),TSpanElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,(this instanceof n?this.constructor:void 0)===n||i)).type="tspan",a.text=a.children.length>0?"":a.getTextFromNode(),a}return _createClass2(n,[{key:"getText",value:function(){return this.text}}]),n}(TextElement),TextNode=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="textNode",e}return _createClass2(n)}(TSpanElement),PathParser=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck2(this,n),(r=t.call(this,e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=new Point(0,0),r.start=new Point(0,0),r.current=new Point(0,0),r.command=null,r.commands=r.commands,r.i=-1,r.previousCommand=null,r.points=[],r.angles=[],r}return _createClass2(n,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Point(0,0),this.control=new Point(0,0),this.current=new Point(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=new Point(this.command[e],this.command[t]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,t){var n=this.getPoint(e,t);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,t){var n=this.getPoint(e,t);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==_.CURVE_TO&&e!==_.SMOOTH_CURVE_TO&&e!==_.QUAD_TO&&e!==_.SMOOTH_QUAD_TO)return this.current;var t=this.current,n=t.x,r=t.y,i=this.control,a=i.x,o=i.y;return new Point(2*n-a,2*r-o)}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var t=this.current,n=t.x,r=t.y;e.x+=n,e.y+=r}return e}},{key:"addMarker",value:function(e,t,n){var r=this.points,i=this.angles;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,t){this.points.push(e),this.angles.push(t)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,t=e.length,n=0;n<t;n++)if(!e[n])for(var r=n+1;r<t;r++)if(e[r]){e[n]=e[r];break}return e}}]),n}(_),PathElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="path",a.pathParser=new PathParser(a.getAttribute("d").getString()),a}return _createClass2(n,[{key:"path",value:function(e){var t=this.pathParser,n=new BoundingBox$2;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case PathParser.MOVE_TO:this.pathM(e,n);break;case PathParser.LINE_TO:this.pathL(e,n);break;case PathParser.HORIZ_LINE_TO:this.pathH(e,n);break;case PathParser.VERT_LINE_TO:this.pathV(e,n);break;case PathParser.CURVE_TO:this.pathC(e,n);break;case PathParser.SMOOTH_CURVE_TO:this.pathS(e,n);break;case PathParser.QUAD_TO:this.pathQ(e,n);break;case PathParser.SMOOTH_QUAD_TO:this.pathT(e,n);break;case PathParser.ARC:this.pathA(e,n);break;case PathParser.CLOSE_PATH:this.pathZ(e,n)}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,t=e.getMarkerPoints(),n=e.getMarkerAngles(),r=t.map((function(e,t){return[e,n[t]]}));return r}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?e.fill(t.getString()):e.fill()),""!==e.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),l=_slicedToArray(n[0],2),u=l[0],c=l[1];s.render(e,u,c)}if(a.isUrlDefinition())for(var h=a.getDefinition(),f=1;f<r;f++){var d=_slicedToArray(n[f],2),p=d[0],m=d[1];h.render(e,p,m)}if(o.isUrlDefinition()){var g=o.getDefinition(),v=_slicedToArray(n[r],2),y=v[0],b=v[1];g.render(e,y,b)}}}},{key:"pathM",value:function(e,t){var r=this.pathParser,i=n.pathM(r).point,a=i.x,o=i.y;r.addMarker(i),t.addPoint(a,o),e&&e.moveTo(a,o)}},{key:"pathL",value:function(e,t){var r=this.pathParser,i=n.pathL(r),a=i.current,o=i.point,s=o.x,l=o.y;r.addMarker(o,a),t.addPoint(s,l),e&&e.lineTo(s,l)}},{key:"pathH",value:function(e,t){var r=this.pathParser,i=n.pathH(r),a=i.current,o=i.point,s=o.x,l=o.y;r.addMarker(o,a),t.addPoint(s,l),e&&e.lineTo(s,l)}},{key:"pathV",value:function(e,t){var r=this.pathParser,i=n.pathV(r),a=i.current,o=i.point,s=o.x,l=o.y;r.addMarker(o,a),t.addPoint(s,l),e&&e.lineTo(s,l)}},{key:"pathC",value:function(e,t){var r=this.pathParser,i=n.pathC(r),a=i.current,o=i.point,s=i.controlPoint,l=i.currentPoint;r.addMarker(l,s,o),t.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,l.x,l.y),e&&e.bezierCurveTo(o.x,o.y,s.x,s.y,l.x,l.y)}},{key:"pathS",value:function(e,t){var r=this.pathParser,i=n.pathS(r),a=i.current,o=i.point,s=i.controlPoint,l=i.currentPoint;r.addMarker(l,s,o),t.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,l.x,l.y),e&&e.bezierCurveTo(o.x,o.y,s.x,s.y,l.x,l.y)}},{key:"pathQ",value:function(e,t){var r=this.pathParser,i=n.pathQ(r),a=i.current,o=i.controlPoint,s=i.currentPoint;r.addMarker(s,o,o),t.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),e&&e.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathT",value:function(e,t){var r=this.pathParser,i=n.pathT(r),a=i.current,o=i.controlPoint,s=i.currentPoint;r.addMarker(s,o,o),t.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),e&&e.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathA",value:function(e,t){var r=this.pathParser,i=n.pathA(r),a=i.currentPoint,o=i.rX,s=i.rY,l=i.sweepFlag,u=i.xAxisRotation,c=i.centp,h=i.a1,f=i.ad,d=1-l?1:-1,p=h+d*(f/2),m=new Point(c.x+o*Math.cos(p),c.y+s*Math.sin(p));if(r.addMarkerAngle(m,p-d*Math.PI/2),r.addMarkerAngle(a,p-d*Math.PI),t.addPoint(a.x,a.y),e&&!isNaN(h)&&!isNaN(f)){var g=o>s?o:s,v=o>s?1:o/s,y=o>s?s/o:1;e.translate(c.x,c.y),e.rotate(u),e.scale(v,y),e.arc(0,0,g,h,h+f,Boolean(1-l)),e.scale(1/v,1/y),e.rotate(-u),e.translate(-c.x,-c.y)}}},{key:"pathZ",value:function(e,t){n.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}],[{key:"pathM",value:function(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}},{key:"pathL",value:function(e){return{current:e.current,point:e.getAsCurrentPoint()}}},{key:"pathH",value:function(e){var t=e.current,n=e.command,r=new Point((n.relative?t.x:0)+n.x,t.y);return e.current=r,{current:t,point:r}}},{key:"pathV",value:function(e){var t=e.current,n=e.command,r=new Point(t.x,(n.relative?t.y:0)+n.y);return e.current=r,{current:t,point:r}}},{key:"pathC",value:function(e){return{current:e.current,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathS",value:function(e){return{current:e.current,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathQ",value:function(e){return{current:e.current,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathT",value:function(e){var t=e.current,n=e.getReflectedControlPoint();return e.control=n,{current:t,controlPoint:n,currentPoint:e.getAsCurrentPoint()}}},{key:"pathA",value:function(e){var t=e.current,n=e.command,r=n.rX,i=n.rY,a=n.xRot,o=n.lArcFlag,s=n.sweepFlag,l=a*(Math.PI/180),u=e.getAsCurrentPoint(),c=new Point(Math.cos(l)*(t.x-u.x)/2+Math.sin(l)*(t.y-u.y)/2,-Math.sin(l)*(t.x-u.x)/2+Math.cos(l)*(t.y-u.y)/2),h=Math.pow(c.x,2)/Math.pow(r,2)+Math.pow(c.y,2)/Math.pow(i,2);h>1&&(r*=Math.sqrt(h),i*=Math.sqrt(h));var f=(o===s?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(c.y,2)-Math.pow(i,2)*Math.pow(c.x,2))/(Math.pow(r,2)*Math.pow(c.y,2)+Math.pow(i,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var d=new Point(f*r*c.y/i,f*-i*c.x/r),p=new Point((t.x+u.x)/2+Math.cos(l)*d.x-Math.sin(l)*d.y,(t.y+u.y)/2+Math.sin(l)*d.x+Math.cos(l)*d.y),m=vectorsAngle([1,0],[(c.x-d.x)/r,(c.y-d.y)/i]),g=[(c.x-d.x)/r,(c.y-d.y)/i],v=[(-c.x-d.x)/r,(-c.y-d.y)/i],y=vectorsAngle(g,v);return vectorsRatio(g,v)<=-1&&(y=Math.PI),vectorsRatio(g,v)>=1&&(y=0),{currentPoint:u,rX:r,rY:i,sweepFlag:s,xAxisRotation:l,centp:p,a1:m,ad:y}}},{key:"pathZ",value:function(e){e.current=e.start}}]),n}(RenderedElement),SVGElement$1=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="svg",e.root=!1,e}return _createClass2(n,[{key:"setContext",value:function(e){var t,r=this.document,i=r.screen,a=r.window,o=e.canvas;if(i.setDefaults(e),"style"in o&&void 0!==e.font&&a&&void 0!==a.getComputedStyle){e.font=a.getComputedStyle(o).getPropertyValue("font");var s=new Property(r,"fontSize",Font$1.parse(e.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var l=i.viewPort,u=l.width,c=l.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),f=this.getAttribute("refY"),d=this.getAttribute("viewBox"),p=d.hasValue()?toNumbers(d.getString()):null,m=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),g=0,v=0,y=0,b=0;p&&(g=p[0],v=p[1]),this.root||(u=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),"marker"===this.type&&(y=g,b=v,g=0,v=0)),i.viewPort.setCurrent(u,c),!this.node||this.parent&&"foreignObject"!==(null===(t=this.node.parentNode)||void 0===t?void 0:t.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),_get(_getPrototypeOf2(n.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),p&&(u=p[2],c=p[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:c,minX:g,minY:v,refX:h.getValue(),refY:f.getValue(),clip:m,clipX:y,clipY:b}),p&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,c))}},{key:"clearContext",value:function(e){_get(_getPrototypeOf2(n.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),o=this.getAttribute("style"),s=r.getNumber(0),l=i.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(r.setValue(e),i.setValue(t),a.hasValue()||a.setValue("0 0 ".concat(s||e," ").concat(l||t)),o.hasValue()){var c=this.getStyle("width"),h=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),h.hasValue()&&h.setValue("".concat(t,"px"))}}}]),n}(RenderedElement),RectElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="rect",e}return _createClass2(n,[{key:"path",value:function(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),r=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),o=this.getAttribute("ry"),s=a.getPixels("x"),l=o.getPixels("y");if(a.hasValue()&&!o.hasValue()&&(l=s),o.hasValue()&&!a.hasValue()&&(s=l),s=Math.min(s,r/2),l=Math.min(l,i/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+u*s,n,t+r,n+l-u*l,t+r,n+l),e.lineTo(t+r,n+i-l),e.bezierCurveTo(t+r,n+i-l+u*l,t+r-s+u*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-u*s,n+i,t,n+i-l+u*l,t,n+i-l),e.lineTo(t,n+l),e.bezierCurveTo(t,n+l-u*l,t+s-u*s,n,t+s,n),e.closePath())}return new BoundingBox$2(t,n,t+r,n+i)}},{key:"getMarkers",value:function(){return null}}]),n}(PathElement),CircleElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="circle",e}return _createClass2(n,[{key:"path",value:function(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),r=this.getAttribute("r").getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.closePath()),new BoundingBox$2(t-r,n-r,t+r,n+r)}},{key:"getMarkers",value:function(){return null}}]),n}(PathElement),EllipseElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="ellipse",e}return _createClass2(n,[{key:"path",value:function(e){var t=(Math.sqrt(2)-1)/3*4,n=this.getAttribute("rx").getPixels("x"),r=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,a),e.bezierCurveTo(i+n,a+t*r,i+t*n,a+r,i,a+r),e.bezierCurveTo(i-t*n,a+r,i-n,a+t*r,i-n,a),e.bezierCurveTo(i-n,a-t*r,i-t*n,a-r,i,a-r),e.bezierCurveTo(i+t*n,a-r,i+n,a-t*r,i+n,a),e.closePath()),new BoundingBox$2(i-n,a-r,i+n,a+r)}},{key:"getMarkers",value:function(){return null}}]),n}(PathElement),LineElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="line",e}return _createClass2(n,[{key:"getPoints",value:function(){return[new Point(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Point(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var t=_slicedToArray(this.getPoints(),2),n=t[0],r=n.x,i=n.y,a=t[1],o=a.x,s=a.y;return e&&(e.beginPath(),e.moveTo(r,i),e.lineTo(o,s)),new BoundingBox$2(r,i,o,s)}},{key:"getMarkers",value:function(){var e=_slicedToArray(this.getPoints(),2),t=e[0],n=e[1],r=t.angleTo(n);return[[t,r],[n,r]]}}]),n}(PathElement),PolylineElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="polyline",a.points=[],a.points=Point.parsePath(a.getAttribute("points").getString()),a}return _createClass2(n,[{key:"path",value:function(e){var t=this.points,n=_slicedToArray(t,1)[0],r=n.x,i=n.y,a=new BoundingBox$2(r,i);return e&&(e.beginPath(),e.moveTo(r,i)),t.forEach((function(t){var n=t.x,r=t.y;a.addPoint(n,r),e&&e.lineTo(n,r)})),a}},{key:"getMarkers",value:function(){var e=this.points,t=e.length-1,n=[];return e.forEach((function(r,i){i!==t&&n.push([r,r.angleTo(e[i+1])])})),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),n}(PathElement),PolygonElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="polygon",e}return _createClass2(n,[{key:"path",value:function(e){var t=_get(_getPrototypeOf2(n.prototype),"path",this).call(this,e),r=_slicedToArray(this.points,1)[0],i=r.x,a=r.y;return e&&(e.lineTo(i,a),e.closePath()),t}}]),n}(PolylineElement),PatternElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="pattern",e}return _createClass2(n,[{key:"createPattern",value:function(e,t,n){var r=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new SVGElement$1(this.document,null);a.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new Property(this.document,"width","".concat(r,"px")),a.attributes.height=new Property(this.document,"height","".concat(i,"px")),a.attributes.transform=new Property(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var o=this.document.createCanvas(r,i),s=o.getContext("2d"),l=this.getAttribute("x"),u=this.getAttribute("y");l.hasValue()&&u.hasValue()&&s.translate(l.getPixels("x",!0),u.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var h=-1;h<=1;h++)s.save(),a.attributes.x=new Property(this.document,"x",c*o.width),a.attributes.y=new Property(this.document,"y",h*o.height),a.render(s),s.restore();return e.createPattern(o,"repeat")}}]),n}(Element$2),MarkerElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="marker",e}return _createClass2(n,[{key:"render",value:function(e,t,n){if(t){var r=t.x,i=t.y,a=this.getAttribute("orient").getString("auto"),o=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(r,i),"auto"===a&&e.rotate(n),"strokeWidth"===o&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new SVGElement$1(this.document);s.type=this.type,s.attributes.viewBox=new Property(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new Property(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new Property(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new Property(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new Property(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new Property(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new Property(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new Property(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(e),e.restore(),"strokeWidth"===o&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===a&&e.rotate(-n),e.translate(-r,-i)}}}]),n}(Element$2),DefsElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="defs",e}return _createClass2(n,[{key:"render",value:function(){}}]),n}(Element$2),GElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="g",e}return _createClass2(n,[{key:"getBoundingBox",value:function(e){var t=new BoundingBox$2;return this.children.forEach((function(n){t.addBoundingBox(n.getBoundingBox(e))})),t}}]),n}(RenderedElement),GradientElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).attributesToInherit=["gradientUnits"],a.stops=[];var o=_assertThisInitialized2(a),s=o.stops;return o.children.forEach((function(e){"stop"===e.type&&s.push(e)})),a}return _createClass2(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,t,n){var r=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var a=i.stops,o=this.getGradient(e,t);if(!o)return this.addParentOpacity(n,a[a.length-1].color);if(a.forEach((function(e){o.addColorStop(e.offset,r.addParentOpacity(n,e.color))})),this.getAttribute("gradientTransform").hasValue()){var s=this.document,l=Screen.MAX_VIRTUAL_PIXELS,u=s.screen.viewPort.getRoot(),c=new RectElement(s);c.attributes.x=new Property(s,"x",-l/3),c.attributes.y=new Property(s,"y",-l/3),c.attributes.width=new Property(s,"width",l),c.attributes.height=new Property(s,"height",l);var h=new GElement(s);h.attributes.transform=new Property(s,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[c];var f=new SVGElement$1(s);f.attributes.x=new Property(s,"x",0),f.attributes.y=new Property(s,"y",0),f.attributes.width=new Property(s,"width",u.width),f.attributes.height=new Property(s,"height",u.height),f.children=[h];var d=s.createCanvas(u.width,u.height),p=d.getContext("2d");return p.fillStyle=o,f.render(p),p.createPattern(d,"no-repeat")}return o}},{key:"inheritStopContainer",value:function(e){var t=this;this.attributesToInherit.forEach((function(n){!t.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&t.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())}))}},{key:"addParentOpacity",value:function(e,t){return e.hasValue()?new Property(this.document,"color",t).addOpacity(e).getColor():t}}]),n}(Element$2),LinearGradientElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="linearGradient",a.attributesToInherit.push("x1","y1","x2","y2"),a}return _createClass2(n,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=n?t.getBoundingBox(e):null;if(n&&!r)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=n?r.x+r.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=n?r.y+r.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=n?r.x+r.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=n?r.y+r.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===o&&a===s?null:e.createLinearGradient(i,a,o,s)}}]),n}(GradientElement),RadialGradientElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="radialGradient",a.attributesToInherit.push("cx","cy","r","fx","fy","fr"),a}return _createClass2(n,[{key:"getGradient",value:function(e,t){var n="objectBoundingBox"===this.getGradientUnits(),r=t.getBoundingBox(e);if(n&&!r)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=n?r.x+r.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=n?r.y+r.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=i,s=a;this.getAttribute("fx").hasValue()&&(o=n?r.x+r.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=n?r.y+r.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(r.width+r.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(o,s,u,i,a,l)}}]),n}(GradientElement),StopElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="stop";var o=Math.max(0,Math.min(1,a.getAttribute("offset").getNumber())),s=a.getStyle("stop-opacity"),l=a.getStyle("stop-color",!0);return""===l.getString()&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),a.offset=o,a.color=l.getColor(),a}return _createClass2(n)}(Element$2),AnimateElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="animate",a.duration=0,a.initialUnits="",a.removed=!1,a.frozen=!1,e.screen.animations.push(_assertThisInitialized2(a)),a.begin=a.getAttribute("begin").getMilliseconds(),a.maxDuration=a.begin+a.getAttribute("dur").getMilliseconds(),a.from=a.getAttribute("from"),a.to=a.getAttribute("to"),a.values=new Property(e,"values",null);var o=a.getAttribute("values");return o.hasValue()&&a.values.setValue(o.getString().split(";")),a}return _createClass2(n,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,t=this.getProgress(),n=t.progress,r=t.from,i=t.to,a=r.getNumber()+(i.getNumber()-r.getNumber())*n;return"%"===e&&(a*=100),"".concat(a).concat(e)}},{key:"update",value:function(e){var t=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==r||this.frozen){if("remove"===r&&!this.removed)return this.removed=!0,t&&n&&n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t&&n&&(t.animationFrozen=!0,t.animationFrozenValue=n.getString());return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute("type");if(o.hasValue()){var s=o.getString();a="".concat(s,"(").concat(a,")")}n.setValue(a),i=!0}return i}},{key:"getProgress",value:function(){var e,t,n=this.document,r=this.values,i=(this.duration-this.begin)/(this.maxDuration-this.begin);if(r.hasValue()){var a,o=i*(r.getValue().length-1),s=Math.floor(o),l=Math.ceil(o);a=r.getValue()[s],e=new Property(n,"from",a?parseFloat(a):0),a=r.getValue()[l],t=new Property(n,"to",a?parseFloat(a):0),i=(o-s)/(l-s)}else e=this.from,t=this.to;return{progress:i,from:e,to:t}}}]),n}(Element$2),AnimateColorElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="animateColor",e}return _createClass2(n,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,r=e.to,i=new rgbcolor(n.getColor()),a=new rgbcolor(r.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*t,s=i.g+(a.g-i.g)*t,l=i.b+(a.b-i.b)*t;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(l),")")}return this.getAttribute("from").getColor()}}]),n}(AnimateElement),AnimateTransformElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="animateTransform",e}return _createClass2(n,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,n=e.from,r=e.to,i=toNumbers(n.getString()),a=toNumbers(r.getString()),o=i.map((function(e,n){return e+(a[n]-e)*t})).join(" ");return o}}]),n}(AnimateElement),FontFaceElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="font-face",a.ascent=a.getAttribute("ascent").getNumber(),a.descent=a.getAttribute("descent").getNumber(),a.unitsPerEm=a.getAttribute("units-per-em").getNumber(),a}return _createClass2(n)}(Element$2),GlyphElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="glyph",a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber(),a.unicode=a.getAttribute("unicode").getString(),a.arabicForm=a.getAttribute("arabic-form").getString(),a}return _createClass2(n)}(PathElement),MissingGlyphElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="missing-glyph",e.horizAdvX=0,e}return _createClass2(n)}(GlyphElement),FontElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="font",a.isArabic=!1,a.glyphs={},a.arabicGlyphs={},a.isRTL=!1,a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber();var o,s=e.definitions,l=_createForOfIteratorHelper(_assertThisInitialized2(a).children);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(u instanceof FontFaceElement){a.fontFace=u;var c=u.getStyle("font-family");c.hasValue()&&(s[c.getString()]=_assertThisInitialized2(a))}else if(u instanceof MissingGlyphElement)a.missingGlyph=u;else if(u instanceof GlyphElement)if(u.arabicForm){a.isRTL=!0,a.isArabic=!0;var h=a.arabicGlyphs[u.unicode];void 0===h?a.arabicGlyphs[u.unicode]=_defineProperty2({},u.arabicForm,u):h[u.arabicForm]=u}else a.glyphs[u.unicode]=u}}catch(err){l.e(err)}finally{l.f()}return a}return _createClass2(n,[{key:"render",value:function(){}}]),n}(Element$2),TRefElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="tref",e}return _createClass2(n,[{key:"getText",value:function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}]),n}(TextElement),AElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="a";var o=r.childNodes,s=o[0],l=o.length>0&&Array.from(o).every((function(e){return 3===e.nodeType}));return a.hasText=l,a.text=l?a.getTextFromNode(s):"",a}return _createClass2(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){_get(_getPrototypeOf2(n.prototype),"renderChildren",this).call(this,e);var t=this.document,r=this.x,i=this.y,a=t.screen.mouse,o=new Property(t,"fontSize",Font$1.parse(t.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new BoundingBox$2(r,i-o.getPixels("y"),r+this.measureText(e),i))}else if(this.children.length>0){var s=new GElement(this.document);s.children=this.children,s.parent=this,s.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),n}(TextElement),TextPathElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="textPath",a.textWidth=0,a.textHeight=0,a.pathLength=-1,a.glyphInfo=null,a.letterSpacingCache=[],a.measuresCache=new Map([["",0]]);var o=a.getHrefAttribute().getDefinition();return a.text=a.getTextFromNode(),a.dataArray=a.parsePathData(o),a}return _createClass2(n,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(e){var t=this.dataArray;e&&e.beginPath(),t.forEach((function(t){var n=t.type,r=t.points;switch(n){case PathParser.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case PathParser.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case PathParser.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case PathParser.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case PathParser.ARC:var i=_slicedToArray(r,8),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],h=i[6],f=i[7],d=s>l?s:l,p=s>l?1:s/l,m=s>l?l/s:1;e&&(e.translate(a,o),e.rotate(h),e.scale(p,m),e.arc(0,0,d,u,u+c,Boolean(1-f)),e.scale(1/p,1/m),e.rotate(-h),e.translate(-a,-o));break;case PathParser.CLOSE_PATH:e&&e.closePath()}}))}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),r=this.glyphInfo,i=e.fillStyle;"underline"===t&&e.beginPath(),r.forEach((function(r,i){var a=r.p0,o=r.p1,s=r.rotation,l=r.text;e.save(),e.translate(a.x,a.y),e.rotate(s),e.fillStyle&&e.fillText(l,0,0),e.strokeStyle&&e.strokeText(l,0,0),e.restore(),"underline"===t&&(0===i&&e.moveTo(a.x,a.y+n/8),e.lineTo(o.x,o.y+n/5))})),"underline"===t&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,t,n,r,i,a,o,s,l){var u=a,c=this.measureText(e,s);" "===s&&"justify"===t&&n<r&&(c+=(r-n)/i),l>-1&&(u+=this.getLetterSpacingAt(l));var h=this.textHeight/20,f=this.getEquidistantPointOnPath(u,h,0),d=this.getEquidistantPointOnPath(u+c,h,0),p={p0:f,p1:d},m=f&&d?Math.atan2(d.y-f.y,d.x-f.x):0;if(o){var g=Math.cos(Math.PI/2+m)*o,v=Math.cos(-m)*o;p.p0=_objectSpread2(_objectSpread2({},f),{},{x:f.x+g,y:f.y+v}),p.p1=_objectSpread2(_objectSpread2({},d),{},{x:d.x+g,y:d.y+v})}return{offset:u+=c,segment:p,rotation:m}}},{key:"measureText",value:function(e,t){var n=this.measuresCache,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}},{key:"setTextData",value:function(e){var t=this;if(!this.glyphInfo){var n=this.getText(),r=n.split(""),i=n.split(" ").length-1,a=this.parent.getAttribute("dx").split().map((function(e){return e.getPixels("x")})),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),l=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),c=0;l.hasValue()&&"inherit"!==l.getValue()?l.hasValue()&&"initial"!==l.getValue()&&"unset"!==l.getValue()&&(c=l.getPixels()):c=u.getPixels();var h=[],f=n.length;this.letterSpacingCache=h;for(var d=0;d<f;d++)h.push(void 0!==a[d]?a[d]:c);var p=h.reduce((function(e,t,n){return 0===n?0:e+t||0}),0),m=this.measureText(e),g=Math.max(m+p,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,b=0;"middle"!==s&&"center"!==s||(b=-g/2),"end"!==s&&"right"!==s||(b=-g),b+=y,r.forEach((function(n,a){var l=t.findSegmentToFitChar(e,s,g,v,i,b,o,n,a),u=l.offset,c=l.segment,h=l.rotation;b=u,c.p0&&c.p1&&t.glyphInfo.push({text:r[a],p0:c.p0,p1:c.p1,rotation:h})}))}}},{key:"parsePathData",value:function(e){if(this.pathLength=-1,!e)return[];var t=[],n=e.pathParser;for(n.reset();!n.isEnd();){var r=n.current,i=r?r.x:0,a=r?r.y:0,o=n.next(),s=o.type,l=[];switch(o.type){case PathParser.MOVE_TO:this.pathM(n,l);break;case PathParser.LINE_TO:s=this.pathL(n,l);break;case PathParser.HORIZ_LINE_TO:s=this.pathH(n,l);break;case PathParser.VERT_LINE_TO:s=this.pathV(n,l);break;case PathParser.CURVE_TO:this.pathC(n,l);break;case PathParser.SMOOTH_CURVE_TO:s=this.pathS(n,l);break;case PathParser.QUAD_TO:this.pathQ(n,l);break;case PathParser.SMOOTH_QUAD_TO:s=this.pathT(n,l);break;case PathParser.ARC:l=this.pathA(n);break;case PathParser.CLOSE_PATH:PathElement.pathZ(n)}o.type!==PathParser.CLOSE_PATH?t.push({type:s,points:l,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,l)}):t.push({type:PathParser.CLOSE_PATH,points:[],pathLength:0})}return t}},{key:"pathM",value:function(e,t){var n=PathElement.pathM(e).point,r=n.x,i=n.y;t.push(r,i)}},{key:"pathL",value:function(e,t){var n=PathElement.pathL(e).point,r=n.x,i=n.y;return t.push(r,i),PathParser.LINE_TO}},{key:"pathH",value:function(e,t){var n=PathElement.pathH(e).point,r=n.x,i=n.y;return t.push(r,i),PathParser.LINE_TO}},{key:"pathV",value:function(e,t){var n=PathElement.pathV(e).point,r=n.x,i=n.y;return t.push(r,i),PathParser.LINE_TO}},{key:"pathC",value:function(e,t){var n=PathElement.pathC(e),r=n.point,i=n.controlPoint,a=n.currentPoint;t.push(r.x,r.y,i.x,i.y,a.x,a.y)}},{key:"pathS",value:function(e,t){var n=PathElement.pathS(e),r=n.point,i=n.controlPoint,a=n.currentPoint;return t.push(r.x,r.y,i.x,i.y,a.x,a.y),PathParser.CURVE_TO}},{key:"pathQ",value:function(e,t){var n=PathElement.pathQ(e),r=n.controlPoint,i=n.currentPoint;t.push(r.x,r.y,i.x,i.y)}},{key:"pathT",value:function(e,t){var n=PathElement.pathT(e),r=n.controlPoint,i=n.currentPoint;return t.push(r.x,r.y,i.x,i.y),PathParser.QUAD_TO}},{key:"pathA",value:function(e){var t=PathElement.pathA(e),n=t.rX,r=t.rY,i=t.sweepFlag,a=t.xAxisRotation,o=t.centp,s=t.a1,l=t.ad;return 0===i&&l>0&&(l-=2*Math.PI),1===i&&l<0&&(l+=2*Math.PI),[o.x,o.y,n,r,s,l,a,i]}},{key:"calcLength",value:function(e,t,n,r){var i=0,a=null,o=null,s=0;switch(n){case PathParser.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case PathParser.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case PathParser.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case PathParser.ARC:i=0;var l=r[4],u=r[5],c=r[4]+u,h=Math.PI/180;if(Math.abs(l-c)<h&&(h=Math.abs(l-c)),a=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],l,0),u<0)for(s=l-h;s>c;s-=h)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=l+h;s<c;s+=h)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],c,0),i+=this.getLineLength(a.x,a.y,o.x,o.y)}return 0}},{key:"getPointOnLine",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:n,s=(i-n)/(r-t+PSEUDO_ZERO),l=Math.sqrt(e*e/(1+s*s));r<t&&(l*=-1);var u=s*l,c=null;if(r===t)c={x:a,y:o+u};else if((o-n)/(a-t+PSEUDO_ZERO)===s)c={x:a+l,y:o+u};else{var h=0,f=0,d=this.getLineLength(t,n,r,i);if(d<PSEUDO_ZERO)return null;var p=(a-t)*(r-t)+(o-n)*(i-n);h=t+(p/=d*d)*(r-t),f=n+p*(i-n);var m=this.getLineLength(a,o,h,f),g=Math.sqrt(e*e-m*m);l=Math.sqrt(g*g/(1+s*s)),r<t&&(l*=-1),c={x:h+l,y:f+(u=s*l)}}return c}},{key:"getPointOnPath",value:function(e){var t=this.getPathLength(),n=0,r=null;if(e<-5e-5||e-5e-5>t)return null;var i,a=_createForOfIteratorHelper(this.dataArray);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(!o||!(o.pathLength<5e-5||n+o.pathLength+5e-5<e)){var s=e-n,l=0;switch(o.type){case PathParser.LINE_TO:r=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case PathParser.ARC:var u=o.points[4],c=o.points[5],h=o.points[4]+c;if(l=u+s/o.pathLength*c,c<0&&l<h||c>=0&&l>h)break;r=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],l,o.points[6]);break;case PathParser.CURVE_TO:(l=s/o.pathLength)>1&&(l=1),r=this.getPointOnCubicBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case PathParser.QUAD_TO:(l=s/o.pathLength)>1&&(l=1),r=this.getPointOnQuadraticBezier(l,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(r)return r;break}n+=o.pathLength}}catch(err){a.e(err)}finally{a.f()}return null}},{key:"getLineLength",value:function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(e,t){return t.pathLength>0?e+t.pathLength:e}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,t,n,r,i,a,o,s,l){return{x:s*CB1(e)+a*CB2(e)+r*CB3(e)+t*CB4(e),y:l*CB1(e)+o*CB2(e)+i*CB3(e)+n*CB4(e)}}},{key:"getPointOnQuadraticBezier",value:function(e,t,n,r,i,a,o){return{x:a*QB1(e)+r*QB2(e)+t*QB3(e),y:o*QB1(e)+i*QB2(e)+n*QB3(e)}}},{key:"getPointOnEllipticalArc",value:function(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),l=n*Math.cos(i),u=r*Math.sin(i);return{x:e+(l*o-u*s),y:t+(l*s+u*o)}}},{key:"buildEquidistantCache",value:function(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var a=0,o=0;o<=n;o+=r){var s=this.getPointOnPath(o),l=this.getPointOnPath(o+r);s&&l&&((a+=this.getLineLength(s.x,s.y,l.x,l.y))>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}}]),n}(TextElement),dataUriRegex=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,ImageElement=function(e){_inherits2(i,e);var t,n,r=_createSuper(i);function i(e,t,n){var a;_classCallCheck2(this,i),(a=r.call(this,e,t,n)).type="image",a.loaded=!1;var o=a.getHrefAttribute().getString();if(!o)return _possibleConstructorReturn2(a);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return e.images.push(_assertThisInitialized2(a)),s?a.loadSvg(o):a.loadImage(o),a}return _createClass2(i,[{key:"loadImage",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.document.createImage(t);case 3:n=e.sent,this.image=n,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 10:this.loaded=!0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e){return n.apply(this,arguments)})},{key:"loadSvg",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=dataUriRegex.exec(t))){e.next=6;break}(r=n[5])&&("base64"===n[4]?this.image=atob(r):this.image=decodeURIComponent(r)),e.next=19;break;case 6:return e.prev=6,e.next=9,this.document.fetch(t);case 9:return i=e.sent,e.next=12,i.text();case 12:a=e.sent,this.image=a,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 19:this.loaded=!0;case 20:case"end":return e.stop()}}),e,this,[[6,16]])}))),function(e){return t.apply(this,arguments)})},{key:"renderChildren",value:function(e){var t=this.document,n=this.image,r=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(r&&n&&o&&s){if(e.save(),e.translate(i,a),"string"==typeof n){var l=t.canvg.forkString(e,n,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s}),u=l.document.documentElement;u&&(u.parent=this),l.render()}else t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:n.width,height:s,desiredHeight:n.height}),this.loaded&&("complete"in n&&!n.complete||e.drawImage(n,0,0));e.restore()}}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),r=this.getStyle("height").getPixels("y");return new BoundingBox$2(e,t,e+n,t+r)}}]),i}(RenderedElement),SymbolElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="symbol",e}return _createClass2(n,[{key:"render",value:function(e){}}]),n}(RenderedElement),SVGFontLoader=function(){function e(t){_classCallCheck2(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}var t;return _createClass2(e,[{key:"load",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=this.document,e.next=4,r.canvg.parser.load(n);case 4:i=e.sent,a=i.getElementsByTagName("font"),Array.from(a).forEach((function(e){var n=r.createElement(e);r.definitions[t]=n})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error('Error while loading font "'.concat(n,'":'),e.t0);case 12:this.loaded=!0;case 13:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,n){return t.apply(this,arguments)})}]),e}(),StyleElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="style";var o=compressSpaces(Array.from(r.childNodes).map((function(e){return e.textContent})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,""));return o.split("}").forEach((function(t){var n=t.trim();if(n){var r=n.split("{"),i=r[0].split(","),a=r[1].split(";");i.forEach((function(t){var n=t.trim();if(n){var r=e.styles[n]||{};if(a.forEach((function(t){var n=t.indexOf(":"),i=t.substr(0,n).trim(),a=t.substr(n+1,t.length-n).trim();i&&a&&(r[i]=new Property(e,i,a))})),e.styles[n]=r,e.stylesSpecificity[n]=getSelectorSpecificity(n),"@font-face"===n){var i=r["font-family"].getString().replace(/"|'/g,"");r.src.getString().split(",").forEach((function(t){if(t.indexOf('format("svg")')>0){var n=parseExternalUrl(t);n&&new SVGFontLoader(e).load(i,n)}}))}}}))}})),a}return _createClass2(n)}(Element$2);StyleElement.parseExternalUrl=parseExternalUrl;var UseElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="use",e}return _createClass2(n,[{key:"setContext",value:function(e){_get(_getPrototypeOf2(n.prototype),"setContext",this).call(this,e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}},{key:"path",value:function(e){var t=this.element;t&&t.path(e)}},{key:"renderChildren",value:function(e){var t=this.document,n=this.element;if(n){var r=n;if("symbol"===n.type&&((r=new SVGElement$1(t)).attributes.viewBox=new Property(t,"viewBox",n.getAttribute("viewBox").getString()),r.attributes.preserveAspectRatio=new Property(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),r.attributes.overflow=new Property(t,"overflow",n.getAttribute("overflow").getString()),r.children=n.children,n.styles.opacity=new Property(t,"opacity",this.calculateOpacity())),"svg"===r.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(r.attributes.width=new Property(t,"width",i.getString())),a.hasValue()&&(r.attributes.height=new Property(t,"height",a.getString()))}var o=r.parent;r.parent=this,r.render(e),r.parent=o}}},{key:"getBoundingBox",value:function(e){var t=this.element;return t?t.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,t=this.element;return t?Transform.fromElement(e,t):null}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(RenderedElement);function imGet(e,t,n,r,i,a){return e[n*r*4+4*t+a]}function imSet(e,t,n,r,i,a,o){e[n*r*4+4*t+a]=o}function m(e,t,n){return e[t]*n}function c(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}var FeColorMatrixElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;_classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="feColorMatrix";var o=toNumbers(a.getAttribute("values").getString());switch(a.getAttribute("type").getString("matrix")){case"saturate":var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var l=o[0]*Math.PI/180;o=[c(l,.213,.787,-.213),c(l,.715,-.715,-.715),c(l,.072,-.072,.928),0,0,c(l,.213,-.213,.143),c(l,.715,.285,.14),c(l,.072,-.072,-.283),0,0,c(l,.213,-.213,-.787),c(l,.715,-.715,.715),c(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return a.matrix=o,a.includeOpacity=a.getAttribute("includeOpacity").hasValue(),a}return _createClass2(n,[{key:"apply",value:function(e,t,n,r,i){for(var a=this.includeOpacity,o=this.matrix,s=e.getImageData(0,0,r,i),l=0;l<i;l++)for(var u=0;u<r;u++){var c=imGet(s.data,u,l,r,i,0),h=imGet(s.data,u,l,r,i,1),f=imGet(s.data,u,l,r,i,2),d=imGet(s.data,u,l,r,i,3),p=m(o,0,c)+m(o,1,h)+m(o,2,f)+m(o,3,d)+m(o,4,1),g=m(o,5,c)+m(o,6,h)+m(o,7,f)+m(o,8,d)+m(o,9,1),v=m(o,10,c)+m(o,11,h)+m(o,12,f)+m(o,13,d)+m(o,14,1),y=m(o,15,c)+m(o,16,h)+m(o,17,f)+m(o,18,d)+m(o,19,1);a&&(p=0,g=0,v=0,y*=d/255),imSet(s.data,u,l,r,i,0,p),imSet(s.data,u,l,r,i,1,g),imSet(s.data,u,l,r,i,2,v),imSet(s.data,u,l,r,i,3,y)}e.clearRect(0,0,r,i),e.putImageData(s,0,0)}}]),n}(Element$2),MaskElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="mask",e}return _createClass2(n,[{key:"apply",value:function(e,t){var r=this.document,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var l=new BoundingBox$2;this.children.forEach((function(t){l.addBoundingBox(t.getBoundingBox(e))})),i=Math.floor(l.x1),a=Math.floor(l.y1),o=Math.floor(l.width),s=Math.floor(l.height)}var u=this.removeStyles(t,n.ignoreStyles),c=r.createCanvas(i+o,a+s),h=c.getContext("2d");r.screen.setDefaults(h),this.renderChildren(h),new FeColorMatrixElement(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+o,a+s);var f=r.createCanvas(i+o,a+s),d=f.getContext("2d");r.screen.setDefaults(d),t.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=h.createPattern(c,"no-repeat"),d.fillRect(0,0,i+o,a+s),e.fillStyle=d.createPattern(f,"no-repeat"),e.fillRect(0,0,i+o,a+s),this.restoreStyles(t,u)}},{key:"render",value:function(e){}}]),n}(Element$2);MaskElement.ignoreStyles=["mask","transform","clip-path"];var noop$1=function(){},ClipPathElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="clipPath",e}return _createClass2(n,[{key:"apply",value:function(e){var t=this.document,n=Reflect.getPrototypeOf(e),r=e.beginPath,i=e.closePath;n&&(n.beginPath=noop$1,n.closePath=noop$1),Reflect.apply(r,e,[]),this.children.forEach((function(r){if("path"in r){var a="elementTransform"in r?r.elementTransform():null;a||(a=Transform.fromElement(t,r)),a&&a.apply(e),r.path(e),n&&(n.closePath=i),a&&a.unapply(e)}})),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}},{key:"render",value:function(e){}}]),n}(Element$2),FilterElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="filter",e}return _createClass2(n,[{key:"apply",value:function(e,t){var r=this.document,i=this.children,a="getBoundingBox"in t?t.getBoundingBox(e):null;if(a){var o=0,s=0;i.forEach((function(e){var t=e.extraFilterDistance||0;o=Math.max(o,t),s=Math.max(s,t)}));var l=Math.floor(a.width),u=Math.floor(a.height),c=l+2*o,h=u+2*s;if(!(c<1||h<1)){var f=Math.floor(a.x),d=Math.floor(a.y),p=this.removeStyles(t,n.ignoreStyles),m=r.createCanvas(c,h),g=m.getContext("2d");r.screen.setDefaults(g),g.translate(-f+o,-d+s),t.render(g),i.forEach((function(e){"function"==typeof e.apply&&e.apply(g,0,0,c,h)})),e.drawImage(m,0,0,c,h,f-o,d-s,c,h),this.restoreStyles(t,p)}}}},{key:"render",value:function(e){}}]),n}(Element$2);FilterElement.ignoreStyles=["filter","transform","clip-path"];var FeDropShadowElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="feDropShadow",a.addStylesFromStyleDefinition(),a}return _createClass2(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Element$2),FeMorphologyElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="feMorphology",e}return _createClass2(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Element$2),FeCompositeElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="feComposite",e}return _createClass2(n,[{key:"apply",value:function(e,t,n,r,i){}}]),n}(Element$2),FeGaussianBlurElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(e,r,i){var a;return _classCallCheck2(this,n),(a=t.call(this,e,r,i)).type="feGaussianBlur",a.blurRadius=Math.floor(a.getAttribute("stdDeviation").getNumber()),a.extraFilterDistance=a.blurRadius,a}return _createClass2(n,[{key:"apply",value:function(e,t,n,r,i){var a=this.document,o=this.blurRadius,s=a.window?a.window.document.body:null,l=e.canvas;l.id=a.getUniqueId(),s&&(l.style.display="none",s.appendChild(l)),processCanvasRGBA(l,t,n,r,i,o),s&&s.removeChild(l)}}]),n}(Element$2),TitleElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="title",e}return _createClass2(n)}(Element$2),DescElement=function(e){_inherits2(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck2(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).type="desc",e}return _createClass2(n)}(Element$2),elements={svg:SVGElement$1,rect:RectElement,circle:CircleElement,ellipse:EllipseElement,line:LineElement,polyline:PolylineElement,polygon:PolygonElement,path:PathElement,pattern:PatternElement,marker:MarkerElement,defs:DefsElement,linearGradient:LinearGradientElement,radialGradient:RadialGradientElement,stop:StopElement,animate:AnimateElement,animateColor:AnimateColorElement,animateTransform:AnimateTransformElement,font:FontElement,"font-face":FontFaceElement,"missing-glyph":MissingGlyphElement,glyph:GlyphElement,text:TextElement,tspan:TSpanElement,tref:TRefElement,a:AElement,textPath:TextPathElement,image:ImageElement,g:GElement,symbol:SymbolElement,style:StyleElement,use:UseElement,mask:MaskElement,clipPath:ClipPathElement,filter:FilterElement,feDropShadow:FeDropShadowElement,feMorphology:FeMorphologyElement,feComposite:FeCompositeElement,feColorMatrix:FeColorMatrixElement,feGaussianBlur:FeGaussianBlurElement,title:TitleElement,desc:DescElement};function createCanvas(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function createImage(e){return _createImage.apply(this,arguments)}function _createImage(){return _createImage=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]&&i[1],r=document.createElement("img"),n&&(r.crossOrigin="Anonymous"),e.abrupt("return",new Promise((function(e,n){r.onload=function(){e(r)},r.onerror=function(e,t,r,i,a){n(a)},r.src=t})));case 4:case"end":return e.stop()}}),e)}))),_createImage.apply(this,arguments)}var DEFAULT_EM_SIZE=12,Document$1=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.rootEmSize,a=void 0===i?DEFAULT_EM_SIZE:i,o=r.emSize,s=void 0===o?DEFAULT_EM_SIZE:o,l=r.createCanvas,u=void 0===l?e.createCanvas:l,c=r.createImage,h=void 0===c?e.createImage:c,f=r.anonymousCrossOrigin;_classCallCheck2(this,e),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=a,this.emSize=s,this.createCanvas=u,this.createImage=this.bindCreateImage(h,f),this.screen.wait((function(){return n.isImagesLoaded()})),this.screen.wait((function(){return n.isFontsLoaded()}))}return _createClass2(e,[{key:"bindCreateImage",value:function(e,t){return"boolean"==typeof t?function(n,r){return e(n,"boolean"==typeof r?r:t)}:e}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var e=this.emSizeStack;return e[e.length-1]||DEFAULT_EM_SIZE},set:function(e){this.emSizeStack.push(e)}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every((function(e){return e.loaded}))}},{key:"isFontsLoaded",value:function(){return this.fonts.every((function(e){return e.loaded}))}},{key:"createDocumentElement",value:function(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}},{key:"createElement",value:function(t){var n=t.nodeName.replace(/^[^:]+:/,""),r=e.elementTypes[n];return r?new r(this,t):new UnknownElement(this,t)}},{key:"createTextNode",value:function(e){return new TextNode(this,e)}},{key:"setViewBox",value:function(e){this.screen.setViewBox(_objectSpread2({document:this},e))}}]),e}();Document$1.createCanvas=createCanvas,Document$1.createImage=createImage,Document$1.elementTypes=elements;var Canvg=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck2(this,e),this.parser=new Parser$1(r),this.screen=new Screen(t,r),this.options=r;var i=new Document$1(this,r),a=i.createDocumentElement(n);this.document=i,this.documentElement=a}var t,n;return _createClass2(e,[{key:"fork",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.from(t,n,_objectSpread2(_objectSpread2({},this.options),r))}},{key:"forkString",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.fromString(t,n,_objectSpread2(_objectSpread2({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},this.start(_objectSpread2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),e.next=4,this.ready();case 4:this.stop();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.documentElement,n=this.screen,r=this.options;n.start(t,_objectSpread2(_objectSpread2({enableRedraw:!0},r),e))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,n)}}],[{key:"from",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function t(n,r){var i,a,o,s=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:{},a=new Parser$1(i),t.next=4,a.parse(r);case 4:return o=t.sent,t.abrupt("return",new e(n,o,i));case 6:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})},{key:"fromString",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Parser$1(r),a=i.parseFromString(n);return new e(t,a,r)}}]),e}();exports("a2",Canvg),globalThis&&globalThis.__awaiter,globalThis&&globalThis.__awaiter,globalThis&&globalThis.__awaiter,globalThis&&globalThis.__awaiter,globalThis&&globalThis.__awaiter,globalThis&&globalThis.__awaiter;var bg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbwAAACNCAYAAADM4c9jAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABvKADAAQAAAABAAAAjQAAAADzprXxAABAAElEQVR4Ae2dd3Ndx3n/0UkUkiCIRoINJEWKtOXEtib515q0iTNOMsnIM7El9yLbif/IG7D1BpIZZyzZcpMcSeNYk+IUj1McyxlPEmtk/2JLIsUOkAAJgOgEQHT8Pt/l3aNT7z3nFtQ9M/eec7Y8++yzu0/bcqqr8lxra2vVo6OjLTU1Na08N6+srDTwXEeW6jzZdkrUWm1t7dLq6upSdXX1TFtb2yQVn+V5bacQwNXTUcBRwFFgK1EgVnBJ0E1PT++/d+9eD0y9YStVaCNxRSFY4Bo8duzYxEbi4cp2FHAUcBRwFIhSICLwXn311XoY9gmStviTY7nM1tXVLcDUlxCIO96KgR7VKAP1y8vLuyFHk59WvE+/8cYb1x955JFlf7h7dhRwFHAUcBTYOAoEBN7Nmzcbm5ubT8l1KZRw14lhDxE+/vDDDy9tHJqbu2QEXP2dO3cOgGW35KCwlbXX1dV1mfeFzY29w85RwFHAUWBnUMATeLLsTpw48aAVdvX19eP79u27AcNe2RmkKL2WCL66qampY0tLS62ClhN6FxwNS6etg+Ao4CjgKFAqBYzAg1FrccppgBk3Jgx6qL29fbBU4Dsxv2g5Pj5+GOu4U/VvaGiYQnG4shNp4ersKOAo4CiwmShQI2S0QIWbEXay7JywK76JUBbWWLE5gOCbEpTFxcV9CMB9xUN0OR0FHAUcBRwFykGBGlkkWo0pYJqzkxuzHIB3MgwJvY6Ojj5ouyo6sHLz8E6mh6u7o4CjgKPAZqBAjfb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L/H0U4I+33KKiUAAAAAElFTkSuQmCC",bgImg=new Image;function imgToCanvas(e){return _imgToCanvas.apply(this,arguments)}function _imgToCanvas(){return _imgToCanvas=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=document.createElement("img")).src=t,n.setAttribute("crossOrigin","anonymous"),e.next=5,new Promise((function(e){return n.onload=e}));case 5:return(r=document.createElement("canvas")).width=n.width,r.height=n.height,r.getContext("2d").drawImage(n,0,0),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),_imgToCanvas.apply(this,arguments)}function addWatermark(e,t){var n=Math.max(e.width,e.height),r=5*Math.floor(n/600),i=5*Math.floor(n/500),a=e.getContext("2d");a.rotate(-30*Math.PI/180),console.log(a);for(var o=0;o<r;o++)for(var s=0;s<i;s++)a.drawImage(bgImg,600*o-n,500*s-n/2);return e}function convasToImg(e){var t=new Image;return t.src=e.toDataURL("image/png"),t}function startRun(e){return _startRun.apply(this,arguments)}function _startRun(){return _startRun=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,e.next=3,imgToCanvas(n);case 3:return r=e.sent,i=addWatermark(r),a=convasToImg(i),e.abrupt("return",a.src);case 7:case"end":return e.stop()}}),e)}))),_startRun.apply(this,arguments)}bgImg.src=bg,window.OffscreenCanvas||(window.OffscreenCanvas=_createClass2((function e(t,n){var r=this;return _classCallCheck2(this,e),this.canvas=document.createElement("canvas"),this.canvas.width=t,this.canvas.height=n,this.canvas.convertToBlob=function(){return new Promise((function(e){r.canvas.toBlob(e)}))},this.canvas})));var preset=index.offscreen();function blobToBase64(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){return t(r.result)},r.readAsDataURL(e)}))}function svgtopng(e,t,n){return _svgtopng.apply(this,arguments)}function _svgtopng(){return _svgtopng=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n,r){var i,a,o,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new OffscreenCanvas(n,r),a=i.getContext("2d"),e.next=4,Canvg.fromString(a,t,preset);case 4:return(o=e.sent).resize(2*n,2*r,"xMidYMid meet"),e.next=8,o.start();case 8:return e.next=10,i.convertToBlob();case 10:return s=e.sent,e.next=13,blobToBase64(s);case 13:return l=e.sent,e.abrupt("return",l);case 15:case"end":return e.stop()}}),e)}))),_svgtopng.apply(this,arguments)}var feedback="_feedback_buyji_1",title$2="_title_buyji_9",wrap$4="_wrap_buyji_16",btns$1="_btns_buyji_22",sub$1="_sub_buyji_28",group$1="_group_buyji_34",text="_text_buyji_61",submit="_submit_buyji_81",styles$h={feedback:feedback,title:title$2,wrap:wrap$4,btns:btns$1,sub:sub$1,group:group$1,text:text,submit:submit},bgSubmit="/orchestra-music-score/assets/submit.2416f3ea.png";function _isSlot$2(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var Feedback=defineComponent({name:"ColexiuFeedBack",setup:function(){var e=ref("识别不准"),t=ref(""),n=ref(!1),r=[{name:"识别不准"},{name:"无法评测"},{name:"不出评测结果"},{name:"曲谱不一致"},{name:"指法错误"},{name:"其他"}],i=function(){try{var r;if(!t.value)return Toast("请先填写意见反馈");n.value=!0,request.post("/sysSuggestion/save",{data:{clientType:"STUDENT",content:t.value+"#"+e.value,type:"SMART_PRACTICE"}}),null===(r=suggestPopup.value)||void 0===r||r.close(),Toast("意见反馈已提交")}catch(i){}n.value=!1};return function(){var n;return createVNode("div",{class:styles$h.feedback},[createVNode("div",{class:styles$h.wrap},[createVNode("div",{class:styles$h.title},[createTextVNode("意见反馈")]),createVNode("div",{class:styles$h.sub},[createTextVNode("请选择问题类型")]),createVNode(RadioGroup,{class:styles$h.group,modelValue:e.value,"onUpdate:modelValue":function(t){return e.value=t}},{default:function(){return[createVNode(Row,{gutter:4},_isSlot$2(n=r.map((function(e){return createVNode(Col,{span:8},{default:function(){return[createVNode(Radio,{name:e.name},{default:function(){return[e.name]}})]}})})))?n:{default:function(){return[n]}})]}}),createVNode(Field,{type:"textarea",class:styles$h.text,placeholder:"请详细描述您遇到的问题,以便我们尽快为您解决!",maxlength:200,rows:"3",autosize:!0,"show-word-limit":!0,modelValue:t.value,"onUpdate:modelValue":function(e){return t.value=e}},null),createVNode("div",{class:styles$h.btns},[createVNode("img",{class:styles$h.submit,src:bgSubmit,onClick:i},null)])])])}}}),suggestPopup=ref(null),confirmShow$1=ref(!1),switchProps$2={"active-color":"#2dc7aa","inactive-color":"#CCCCCC",size:"20px"},Seet=defineComponent({name:"ColexiuSettingSett",setup:function(){return function(){return createVNode(Fragment,null,[createVNode("div",null,[createVNode(NoticeBar,{class:styles$j.noticebar,"left-icon":InfoIcon,background:"#FFF6E8",color:"var(--van-primary-color)",text:"全局设置会更改所有乐谱练习及评测"},null),createVNode("div",{class:styles$j.groupBox,style:{height:"auto"}},[createVNode(Cell,{center:!0,border:!1,title:"护眼模式"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.sett.eyeProtection,"onUpdate:modelValue":function(e){return state$3.sett.eyeProtection=e}},switchProps$2),null)]}}),createVNode(Divider,null,null)]),createVNode("div",{class:styles$j.btnsbar},[createVNode("div",{class:styles$j.btn,onClick:function(){return show.value=!0}},[createVNode("img",{class:styles$j.iconBtn,src:iconTv},null),createTextVNode("投屏帮助")]),createVNode("div",{class:styles$j.btn,onClick:function(){var e;null===(e=suggestPopup.value)||void 0===e||e.onShow()}},[createVNode("img",{class:styles$j.iconBtn,src:iconYijian},null),createTextVNode("意见反馈")])])]),createVNode(Popups,{ref:suggestPopup,overlay:!1,style:{borderRadius:"8px"}},{default:function(){return[createVNode(Feedback,null,null)]}}),createVNode(Dialog.Component,{teleport:"body",class:evastyles.confirm,style:{overflow:"initial"},show:confirmShow$1.value,"onUpdate:show":function(e){return confirmShow$1.value=e},message:"设置成功,是否立即重新加载?"},{title:function(){return createVNode("img",{class:evastyles.iconTitle,src:iconTitle},null)},footer:function(){return createVNode("div",{class:evastyles.footer},[createVNode("img",{src:iconCancel,onClick:function(){return confirmShow$1.value=!1}},null),createVNode("img",{src:iconConfirm,onClick:useReload},null)])}})])}}});ref(!1);var switchProps$1={"active-color":"#2dc7aa","inactive-color":"#CCCCCC",size:"20px"},Practise=defineComponent({name:"ColexiuSettingPractise",setup:function(){return function(){return createVNode("div",null,[createVNode("div",{class:styles$j.groupBox},[createVNode(Cell,{center:!0,border:!1,title:"循环播放"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.sett.loop,"onUpdate:modelValue":function(e){return state$3.sett.loop=e}},switchProps$1),{default:function(){return[createTextVNode("off")]}})]}}),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"显示指法"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.sett.fingering,"onUpdate:modelValue":function(e){return state$3.sett.fingering=e}},switchProps$1,{onChange:function(e){state$3.sett.fingering=e,event$1.emit("settingFingeringChange")}}),{default:function(){return[createTextVNode("off")]}})]}})])])}}}),switchProps={},Evaluat=defineComponent({name:"ColexiuSettingPractise",setup:function(){return function(){return createVNode("div",null,[createVNode("div",{class:styles$j.groupBox},[createVNode(Cell,{center:!0,border:!1,title:"评测难度"},{default:function(){return[createVNode(RadioGroup,{iconSize:20,class:styles$j.radioGroup,modelValue:state$3.eva.difficulty,"onUpdate:modelValue":function(e){return state$3.eva.difficulty=e}},{default:function(){return[createVNode(Radio,{name:"BEGINNER"},{default:function(){return[createTextVNode("入门")]}}),createVNode(Radio,{name:"ADVANCED"},{default:function(){return[createTextVNode("进阶")]}}),createVNode(Radio,{name:"PERFORMER"},{default:function(){return[createTextVNode("大师")]}})]}})]}}),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"校音提醒"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.sett.tuning,"onUpdate:modelValue":function(e){return state$3.sett.tuning=e}},switchProps),{default:function(){return[createTextVNode("off")]}})]}}),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"摄像头"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.sett.camera,"onUpdate:modelValue":function(e){return state$3.sett.camera=e}},switchProps),{default:function(){return[createTextVNode("off")]}})]}}),state$3.sett.camera&&createVNode(Fragment,null,[createVNode(Divider,null,null),createVNode("div",{class:styles$j.sliderWrap},[createVNode("div",{class:"cell__title"},[createTextVNode("透明度")]),createVNode(Slider,{min:0,max:100,modelValue:state$3.sett.opacity,"onUpdate:modelValue":function(e){return state$3.sett.opacity=e}},{button:function(){return createVNode("div",{class:styles$j.slider},[state$3.sett.opacity])}})])]),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"保存到相册"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.eva.save,"onUpdate:modelValue":function(e){return state$3.eva.save=e}},switchProps),{default:function(){return[createTextVNode("off")]}})]}}),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"评测伴奏"},{default:function(){return[createVNode(Switch,mergeProps({modelValue:state$3.eva.mute,"onUpdate:modelValue":function(e){return state$3.eva.mute=e}},switchProps),{default:function(){return[createTextVNode("off")]}})]}}),createVNode(Divider,null,null),createVNode(Cell,{center:!0,border:!1,title:"标准音高"},{default:function(){return[createVNode("div",{style:{display:"flex"}},[createVNode(RadioGroup,{iconSize:20,class:styles$j.radioGroup,modelValue:state$3.sett.hertz,"onUpdate:modelValue":function(e){return state$3.sett.hertz=e}},{default:function(){return[createVNode(Radio,{name:440},{default:function(){return[createTextVNode("440")]}}),createVNode(Radio,{name:442},{default:function(){return[createTextVNode("442")]}})]}})])]}}),createVNode(Divider,null,null)])])}}}),Setting=defineComponent({name:"ColexiuSetting",props:{active:{type:String,default:"1"}},setup:function(e){return function(){return createVNode("div",{class:styles$j.setting},[createVNode(Tabs,{active:e.active},{default:function(){return[createVNode(Tab,{title:"全局设置",name:"1"},{default:function(){return[createVNode(Seet,null,null)]}}),createVNode(Tab,{title:"练习设置",name:"2"},{default:function(){return[createVNode(Practise,null,null)]}}),createVNode(Tab,{title:"评测设置",name:"3"},{default:function(){return[createVNode(Evaluat,null,null)]}})]}})])}}}),BackIcon=exports("Y","/orchestra-music-score/assets/icon-back.a96b2fe2.png"),iconFollowEndBtn="/orchestra-music-score/assets/icon-followEndBtn.7736176b.png",iconEvaluatingEnd="/orchestra-music-score/assets/icon-evaluatingEnd.74d03c3c.png",iconCameraOff="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAOqADAAQAAAABAAAAOgAAAACjq6v0AAAPT0lEQVRoBbVbaZAV1RU+/QaGZUBcUImQSFBELeNGFDRSGs1ipaJBixkwJoLml5rNlAYoTdWUUZkoKX9YQX9YgaqUioMIKfdKTIUgOgoqpeWCI4sKimyRbRCYeZ3vO/eefrf7db95A+bUdN/lLPd8fe89997uN5H8Hyhub22UbRsmSBxfIHF5HFJc0UiJZCjyQ6Uci5Si3cjjkk2oXwM31kgUvSIjTn41amk98FW7FX1VBuP2m4bI9q4p0lOeBpuTAHCw2gamhOKgkJtXd7rwIJbjQSyUxiOfiG6etyfRP4zMYQONH5oxFuBmwYdp6KHBuJClWZ+ynAIVsLU+kAMrpR9JF0bCQukXtUW/ebST7EOlQwYaPzhjNJyaAzwtSEvqQAKI4LxLrIvQDFPl20MAX2W8oE+cjPGYghFFZWTapSGaHd2ycANq+0x9Bqrzb+v62+DA7WhtkLaoAHzbYZ5VYTkFJgSIPIt8IJy/5hV1WZ9QvA/Mu+XE0+7r6zw2k4mpWpl4/owRsi9eAucnqpw64T1JAMGk5ZOU0oHHWs+mUWfVJquirAzshHLKlw6J4qui3y/azGI9VDfQeN708QCwFEZHJc5ZptBZSCegLE+3AoBa9AY0CfOhjs/bNB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P1qJzIpTqG8zWIZK1Samhx196DfeTAYY8TNdfZL5rxdxD8MMInjL+D4B0UwRIuxDnMQ28an8ll5XaMAvwdZMQddp4ke09gryWaBsHfDPBzOmjYL+NDs35szsbicdKEEzD/5IME8SnE6VeCzRj56yCLq9whg0d0VO9TU9sDxf8PGfKSX00kAgsAAAAASUVORK5CYII=",iconToggle$1="/orchestra-music-score/assets/icon_toggle.2861c3f0.png",iconToggle="_iconToggle_8ao41_1",popup$1="_popup_8ao41_12",styles$g={iconToggle:iconToggle,popup:popup$1},container$5="_container_1nzf5_1",top="_top_1nzf5_10",picker="_picker_1nzf5_29",button$2="_button_1nzf5_32",styles$f={container:container$5,top:top,picker:picker,button:button$2},ChoosePartName=defineComponent({name:"choosePartName",props:{partListNames:{type:Array,default:function(){return[]}},partIndex:{type:Number,default:0}},emits:["close"],setup:function(e,t){var n=t.emit,r=toRefs(e),i=r.partListNames,a=r.partIndex,o=ref(i.value[a.value].value),s=computed((function(){return i.value}));return function(){return createVNode("div",{class:styles$f.container},[createVNode("div",{class:styles$f.top},[createVNode("div",{class:styles$f.title},[createTextVNode("请选择您练习的乐器")]),createVNode(Icon,{name:"cross",size:24,onClick:function(){return n("close")}},null)]),createVNode(Picker,{class:styles$f.picker,defaultIndex:a.value,showToolbar:!1,columns:s.value,visibleItemCount:Math.ceil(document.body.clientHeight/44/3),onChange:function(e){o.value=e.value}},null),createVNode(Button,{class:styles$f.button,type:"primary",round:!0,block:!0,onClick:function(){n("close",o.value)}},{default:function(){return[createTextVNode("确定")]}})])}}}),instruments={"Acoustic Grand Piano":"大钢琴","Bright Acoustic Piano":"明亮的钢琴","Electric Grand Piano":"电钢琴","Rhodes Piano":"柔和的电钢琴","Chorused Piano":"加合唱效果的电钢琴",Harpsichord:"羽管键琴",Clavichord:"科拉维科特琴",Celesta:"钢片琴",Glockenspiel:"钢片琴","Music box":"八音盒",Vibraphone:"颤音琴",Marimba:"马林巴",Xylophone:"木琴","Tubular Bells":"管钟",Dulcimer:"大扬琴","Hammond Organ":"击杆风琴","Percussive Organ":"打击式风琴","Rock Organ":"摇滚风琴","Church Organ":"教堂风琴","Reed Organ":"簧管风琴",Accordian:"手风琴",Harmonica:"口琴","Tango Accordian":"探戈手风琴","Acoustic Guitar":"钢弦吉他","Electric Guitar":"闷音电吉他","Overdriven Guitar":"加驱动效果的电吉他","Distortion Guitar":"加失真效果的电吉他","Guitar Harmonics":"吉他和音","Acoustic Bass":"大贝司","Electric Bass":"电贝司","Fretless Bass":"无品贝司","Slap Bass":"掌击","Synth Bass":"电子合成",Violin:"小提琴",Viola:"中提琴",Cello:"大提琴",Contrabass:"低音大提琴","Tremolo Strings":"弦乐群颤音音色","Pizzicato Strings":"弦乐群拨弦音色","Orchestral Harp":"竖琴",Timpani:"定音鼓","String Ensemble":"弦乐合奏音色","Synth Strings":"合成弦乐合奏音色","Choir Aahs":"人声合唱","Voice Oohs":"人声","Synth Voice":"合成人声","Orchestra Hit":"管弦乐敲击齐奏",Trumpet:"小号",Trombone:"长号",Tuba:"大号","Muted Trumpet":"加弱音器小号","French Horn":"法国号","Brass Section":"铜管组","Synth Brass":"合成铜管音色","Soprano Sax":"高音萨克斯管","Alto Sax":"中音萨克斯管","Tenor Sax":"次中音萨克斯管","Baritone Sax":"低音萨克斯管",Oboe:"双簧管","English Horn":"英国管",Bassoon:"巴松",Clarinet:"单簧管","Soprano Saxophone":"高音萨克斯管","Alto Saxophone":"中音萨克斯管","Tenor Saxophone":"次中音萨克斯管","Baritone Saxophone":"低音萨克斯管",Piccolo:"短笛",Flute:"长笛",Recorder:"竖笛","Soprano Recorder":"高音竖笛","Pan Flute":"排箫","Bottle Blow":"瓶木管",Whistle:"口哨声",Ocarina:"陶笛",Lead:"合成主音","Lead lead":"合成主音","Pad age":"合成音色",Pad:"合成音色",FX:"合成效果 科幻",Sitar:"西塔尔",Banjo:"班卓琴",Shamisen:"三昧线",Koto:"十三弦筝",Kalimba:"卡林巴",Bagpipe:"风笛",Fiddle:"民族提琴",Shanai:"山奈","Tinkle Bell":"叮当铃",Agogos:"阿戈戈铃","Steel Drums":"钢鼓","Taiko Drum":"太鼓","Melodic Toms":"嗵嗵鼓","Synth Drums":"合成鼓","Reverse Cymbals":"反向镲","Agogo Bells":"阿戈戈铃","Taiko Drums":"太鼓",Bongos:"邦戈鼓","Bongo Bell":"邦戈铃",Congas:"康加鼓",Guiro:"刮壶","Guitar Fret Noise":"吉他换把杂音","Breath Noise":"呼吸声",Seashore:"海浪声","Bird Tweet":"鸟鸣","Telephone Ring":"电话铃",Helicopter:"直升机",Applause:"鼓掌声",Gunshot:"枪声","Acoustic Bass Drum":"大鼓","Bass Drum":"大鼓","Side Drum":"小鼓鼓边","Acoustic Snare":"小鼓","Hand Claps":"拍手","Electric Snare":"小鼓","Low Floor Tom":"低音嗵鼓","Closed Hi-Hat":"闭合踩镲","High Floor Tom":"高音落地嗵鼓","Pedal Hi-Hat":"脚踏踩镲","Low Tom":"低音嗵鼓","Open Hi-Hat":"开音踩镲","Low-Mid Tom":"中低音嗵鼓","Hi Mid Tom":"高音鼓","Crash Cymbals":"对镲","High Tom":"高音嗵鼓","Ride Cymbals":"叮叮镲","Chinese Cymbals":"中国镲","Ride Bell":"圆铃",Tambourine:"铃鼓","Splash Cymbal":"溅音镲",Cowbell:"牛铃","Crash Cymbal":"强音钹","Vibra-Slap":"颤音器","Ride Cymbal":"打点钹","Hi Bongo":"高音邦戈鼓","Low Bongo":"低音邦戈鼓","Mute Hi Conga":"弱音高音康加鼓","Open Hi Conga":"强音高音康加鼓","Low Conga":"低音康加鼓","High Timbale":"高音天巴鼓","Low Timbale":"低音天巴鼓","High Agogo":"高音阿戈戈铃","Low Agogo":"低音阿戈戈铃",Cabasa:"卡巴萨",Maracas:"沙锤","Short Whistle":"短口哨","Long Whistle":"长口哨","Short Guiro":"短刮壶","Long Guiro":"长刮壶",Claves:"响棒","Hi Wood Block":"高音木鱼","Low Wood Block":"低音木鱼","Mute Triangle":"弱音三角铁","Open Triangle":"强音三角铁","Drum Set":"架子鼓","Hulusi flute":"葫芦丝",Melodica:"口风琴","Snare Drum":"小军鼓",Cymbal:"镲",Cymbals:"镲","Horn in F":"圆号",Triangle:"三角铁",Vibrato:"颤音琴","Suspend Cymbals":"吊镲","Suspended Cymbals":"吊镲","Tom-Toms":"嗵嗵鼓",Bell:"铃铛",Bells:"铃铛","Alto Clarinet":"中音单簧管","Bass Clarinet":"低音单簧管",Cornet:"短号",Euphonium:"上低音号","crash cymbals":"对镲",Castanets:"响板",Shaker:"沙锤","Mark tree":"音树",Chimes:"管钟","Mark Tree":"音树","Tom-toms":"嗵嗵鼓","Hi-Hat":"踩镲","Sleigh Bells":"雪橇铃",Flexatone:"弹音器","Brake drum":"闸鼓",Gong:"锣","concert tom":"音乐会嗵嗵鼓","brake drum":"车轮鼓","finger cymbal":"指钹","ride cymbal":"叮叮镲","Concert Toms":"音乐会嗵嗵鼓",Vibraslap:"弹音器","Wood Blocks":"木鱼","Temple Blocks":"木鱼","Wood Block":"木鱼","Field Drum":"军鼓","Quad-Toms":"筒鼓",Quads:"筒鼓","Drums set":"架子鼓","High Bongo":"邦戈",Timbales:"天巴鼓","rain stick":"雨棒","String Bass":"弦乐低音","Floor Tom":"侧嗵鼓","Brake Drum":"闸鼓","Tam-tam":"大锣"},getInstrumentName=function(e){for(var t=e.replace(/ /g," ").toLocaleLowerCase(),n=Object.keys(instruments),r=0;r<n.length;r++){if(n[r].replace(/ /g," ").toLocaleLowerCase()===t)return instruments[n[r]]||""}for(var i=0;i<n.length;i++){var a=n[i].replace(/ /g," ").toLocaleLowerCase();if(t.includes(a))return instruments[n[i]]||""}return""},toggleMusicSheet=reactive({show:!1,toggle:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];toggleMusicSheet.show=e}}),ToggleMusicSheet=defineComponent({name:"ToggleMusicSheet",setup:function(){var e=useOriginSearch(),t=computed((function(){var e,t=(null===(e=state$2.activeDetail)||void 0===e?void 0:e.background)||[];return t=t.filter((function(e){var t,n;return!(null!==(t=e.track)&&void 0!==t&&null!==(n=t.toLocaleUpperCase())&&void 0!==n&&n.includes("COMMON"))})),t.map((function(e,t){var n=getInstrumentName(e.track);return{text:e.track+(n?"(".concat(n,")"):""),value:t}})).filter(Boolean)}));return function(){return createVNode(Popup,{class:styles$g.popup,show:toggleMusicSheet.show,"onUpdate:show":function(e){return toggleMusicSheet.show=e}},{default:function(){return[createVNode(ChoosePartName,{partIndex:state$2.partIndex,partListNames:t.value,onClose:function(t){console.log("🚀 ~ value:",t),toggleMusicSheet.show=!1,void 0!==t&&function(t){pause(),postMessage({api:"cloudDestroy"}),postMessage({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});var n=location.origin+location.pathname+"?"+queryString.stringify(_objectSpread2(_objectSpread2({},e),{},{behaviorId:sessionStorage.getItem("behaviorId")||"",_t:(new Date).valueOf(),"part-index":t}));console.log(n),location.href=n}(t)}},null)]}})}}}),ac=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.msAudioContext;browser();var tipsTimer=null,metronomeData=exports("bl",reactive({disable:!0,lineShow:!1,isClick:!1,metro:null,metroList:[],activeList:[],metroMeasure:[],activeIndex:null,activeMetro:{},cursorMode:1,cursorTips:""}));watch((function(){return metronomeData.cursorMode}),(function(){var e=document.querySelector("#cursorImg-0");if(e){switch(metronomeData.cursorMode){case 1:e.classList.remove("lineHide"),e.style.opacity="inherit",metronomeData.cursorTips="您已切换到指针跟随音符播放",e.style.opacity="inherit";break;case 2:e.classList.add("lineHide"),e.style.opacity="inherit",metronomeData.cursorTips="您已切换到指针跟随节拍播放",console.log("光标",e);break;case 3:e.style.opacity="0",metronomeData.cursorTips="您已关闭指针显示",console.log("隐藏光标")}hideCursorTip()}}));var Metronome=function(){function e(t){var n=this;_classCallCheck2(this,e),this.ctx=new ac,this.playType="tick",this.source=null,this.source1=null,this.source2=null,this.sound=function(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(),void(metronomeData.isClick=!1);metronomeData.isClick=!1},this.playAudio=function(){var e;n.source=n.ctx.createBufferSource(),n.source.buffer=0===(null===(e=metronomeData.activeMetro)||void 0===e?void 0:e.index)?n.source1:n.source2;var t=n.ctx.createGain();t.gain.value=metronomeData.disable?0:.4,n.source.connect(t),t.connect(n.ctx.destination),n.source.start(0)},this.loadAudio1=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=tickUrl,e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.arrayBuffer();case 6:return i=e.sent,e.next=9,n.ctx.decodeAudioData(i,(function(e){return e}));case 9:return a=e.sent,e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)}))),this.loadAudio2=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=tockUrl,e.next=3,fetch(t);case 3:return r=e.sent,e.next=6,r.arrayBuffer();case 6:return i=e.sent,e.next=9,n.ctx.decodeAudioData(i,(function(e){return e}));case 9:return a=e.sent,e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})))}return _createClass2(e,[{key:"init",value:function(e){var t=this;return this.calculation(e),metronomeData.activeList=[],new Promise(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.source1||!t.source2){e.next=2;break}return e.abrupt("return",n(!0));case 2:return e.next=4,t.loadAudio1();case 4:return t.source1=e.sent,e.next=7,t.loadAudio2();case 7:t.source2=e.sent,n(!0);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{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){console.log("🚀 ~ times",e);for(var t=[],n=-1,r=function(r){var i,a,o,s,l=e[r],u=(null==l||null===(i=l.noteElement)||void 0===i||null===(a=i.sourceMeasure)||void 0===a?void 0:a.measureNumber)+1||-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!=n){var h,f,d,p,m,g,v,y,b,S={measureNumberXML:u,measureNumberIndex:c,numerator:(null==l||null===(h=l.noteElement)||void 0===h||null===(f=h.sourceMeasure)||void 0===f||null===(d=f.ActiveTimeSignature)||void 0===d?void 0:d.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===(m=p.sourceMeasure)||void 0===m||null===(g=m.verticalMeasureList)||void 0===g||null===(v=g[0])||void 0===v||null===(y=v.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:[]};if([121].includes(state$2.subjectId)){var x=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=x,S.start=l.measures[0].time,S.end=l.measures[l.measures.length-1].endtime,S.time=l.measures[l.measures.length-1].endtime-l.measures[0].time;try{var w=l.noteElement.sourceMeasure.verticalMeasureList.reduce((function(e,t){return e.push.apply(e,_toConsumableArray2(t.vfVoices[1].tickables)),e}),[]),_=[];S.svgs=w.map((function(e){var t=e.getBoundingBox().x;if(!_.includes(t)&&"w"!==e.duration)return _.push(t),e._start_x=t,e})).filter(Boolean).sort((function(e,t){return e._start_x-t._start_x}))}catch(k){console.log(k)}S.stepList=calculateMutilpleMetroStep(l.measures,S)}else S.stepList=calculateMetroStep(l.measures,S);t.push(S),n=u}},i=0;i<e.length;i++)r(i);console.log(t,t.length,6667);var a=[],o=[];try{for(var s=0;s<t.length;s++){var l=t[s],u=l.time/l.numerator,c=([121].includes(state$2.subjectId)?95:100)/(l.numerator+1);o[s]=[];for(var h=0;h<l.numerator;h++){var f,d=u*h+l.start;a.push(d);var p="";if(-1!==l.stepList[h]&&(1!==l.measureNumberXML||l.stepList[h])){if(l.stepList[h])p=l.stepList[h]+"px";else{var m=l.stepList[h-1];p=m?m.toString().indexOf("%")>-1?"".concat(m," + ").concat(c,"%"):"".concat(m,"px + ").concat(c,"%"):"".concat(c,"%"),l.stepList[h]=p}o[s].push({index:h,time:d,left:(null===(f=p)||void 0===f?void 0:f.indexOf("%"))>-1?"calc(".concat(p,")"):p,measureNumberXML:l.measureNumberXML})}}}}catch(g){console.log(g)}metronomeData.metroList=a,metronomeData.metroMeasure=o}}]),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].svgElelent;if(i&&!i.isRest()){for(var a,o,s,l,u,c,h,f,d=(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===(f=h.getBoundingClientRect)||void 0===f?void 0:f.call(h))||{x:0},m=Math.abs(d.right-p.x)/t.numerator,g=[],v=0;v<t.numerator;v++)1===t.measureNumberXML&&"w"!==i.duration?g.push(0===v?p.x-d.x:-1):g.push(p.x-d.x+v*m);return g}try{if(1===t.measureNumberXML&&i&&i.isRest()){for(var y,b,S,x,w,_,k,A,E=(null==i||null===(y=i.attrs)||void 0===y||null===(b=y.el)||void 0===b||null===(S=b.parentElement)||void 0===S||null===(x=S.parentElement)||void 0===x||null===(w=x.getBoundingClientRect)||void 0===w?void 0:w.call(x))||{x:0,right:0},C=(null==i||null===(_=i.attrs)||void 0===_||null===(k=_.el)||void 0===k||null===(A=k.getBoundingClientRect)||void 0===A?void 0:A.call(k))||{x:0},P=Math.abs(E.right-C.x)/t.numerator,T=[],M=-1;M<t.numerator-1;M++)T.push(C.x-E.x+M*P);return T}}catch(Ce){console.log("🚀 ~ error:",Ce)}return[]}for(var I=0,R=[],N=[],L=0;L<e.length;L++){var D=e[L];D.index=L;var B=(I+=D._noteLength)/r;if(B>=1){var F,O,V,G,z,U,H,j,W,q,X;I-=r;var Y=(null==D||null===(F=D.svgElelent)||void 0===F||null===(O=F.attrs)||void 0===O||null===(V=O.el)||void 0===V||null===(G=V.parentElement)||void 0===G||null===(z=G.parentElement)||void 0===z||null===(U=z.getBoundingClientRect)||void 0===U?void 0:U.call(z))||{x:0};if(R.length>0){var Q,K,Z,J,$,ee,te=(null===(Q=R[0])||void 0===Q||null===(K=Q.svgElelent)||void 0===K||null===(Z=K.attrs)||void 0===Z||null===(J=Z.el)||void 0===J||null===($=J.querySelector(".vf-note"))||void 0===$||null===(ee=$.getBoundingClientRect)||void 0===ee?void 0:ee.call($))||{x:0},ne=te.x-Y.x;if(R[0]._noteLength/r>=1){var re,ie,ae,oe,se,le=(null===(re=e[R[0].index+1])||void 0===re||null===(ie=re.svgElelent)||void 0===ie||null===(ae=ie.attrs)||void 0===ae||null===(oe=ae.el)||void 0===oe||null===(se=oe.getBoundingClientRect)||void 0===se?void 0:se.call(oe))||{x:Y.right},ue=Math.abs(te.x-le.x)/2;ne=te.x-Y.x+ue}N.push(ne)}else{var ce,he,fe,de,pe,me=((null==D||null===(ce=D.svgElelent)||void 0===ce||null===(he=ce.attrs)||void 0===he||null===(fe=he.el)||void 0===fe||null===(de=fe.querySelector(".vf-note"))||void 0===de||null===(pe=de.getBoundingClientRect)||void 0===pe?void 0:pe.call(de))||{x:0}).x-Y.x;N.push(me)}R=[];var ge=(null==D||null===(H=D.svgElelent)||void 0===H||null===(j=H.attrs)||void 0===j||null===(W=j.el)||void 0===W||null===(q=W.querySelector(".vf-note"))||void 0===q||null===(X=q.getBoundingClientRect)||void 0===X?void 0:X.call(q))||{x:0},ve=ge.x-Y.x,ye=0;if(B>1){var be,Se,xe,we,_e,ke,Ae=(null===(be=e[L+1])||void 0===be||null===(Se=be.svgElelent)||void 0===Se||null===(xe=Se.attrs)||void 0===xe||null===(we=xe.el)||void 0===we||null===(_e=we.querySelector(".vf-note"))||void 0===_e||null===(ke=_e.getBoundingClientRect)||void 0===ke?void 0:ke.call(_e))||{x:Y.right};ye=Math.abs(ge.x-Ae.x)/Math.ceil(B)}for(var Ee=1;Ee<B;Ee++)I-=r,N.push(ve+ye*Ee)}I>Number.EPSILON&&I>0&&R.push(D)}return N=N.reduce((function(e,t){return e.includes(t)?e.push(void 0):e.push(t),e}),[]),N}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.svgElelent)||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,f,d,p=t.svgs[0],m=(null==p||null===(h=p.attrs)||void 0===h||null===(f=h.el)||void 0===f||null===(d=f.getBoundingClientRect)||void 0===d?void 0:d.call(f))||{x:0};return p&&!p.isRest()?[m.x-c.x]:[]}for(var g=0,v=[],y=[],b=0;b<e.length;b++){var S,x,w,_,k=e[b];k._index=b;var A=k.endtime-k.time;g+=A;var E=null===(S=t.svgs[b])||void 0===S||null===(x=S.attrs)||void 0===x?void 0:x.el,C=(null===(w=E)||void 0===w||null===(_=w.getBoundingClientRect)||void 0===_?void 0:_.call(w))||{x:0};if(A>u){g-=u;var P,T,M,I,R=C.x-c.x;if(v.length>0)R=(C=(null===(M=E=null===(P=t.svgs[v[0]._index])||void 0===P||null===(T=P.attrs)||void 0===T?void 0:T.el)||void 0===M||null===(I=M.getBoundingClientRect)||void 0===I?void 0:I.call(M))||{x:0}).x-c.x;y.push(R),v=[]}else v.push(k);if(Math.abs(g-u)<.001){var N,L,D,B,F=C.x-c.x;if(v.length>0)F=(C=(null===(D=E=null===(N=t.svgs[v[0]._index])||void 0===N||null===(L=N.attrs)||void 0===L?void 0:L.el)||void 0===D||null===(B=D.getBoundingClientRect)||void 0===B?void 0:B.call(D))||{x:0}).x-c.x;y.push(F),g=0,v=[]}}return y=y.reduce((function(e,t){return e.includes(t)?e.push(void 0):e.push(t),e}),[]),y}function hideCursorTip(){tipsTimer?(clearTimeout(tipsTimer),tipsTimer=setTimeout((function(){metronomeData.cursorTips="",clearTimeout(tipsTimer),tipsTimer=null}),2e3)):tipsTimer=setTimeout((function(){metronomeData.cursorTips="",clearTimeout(tipsTimer),tipsTimer=null}),2e3)}var confirmShow=ref(!1),startButtonShow=ref(!0),evaluatingRef=ref({}),settingPopup=ref(null);ref(null);var followRef=ref(null),back=function(){submitMaxScore(),sendBackRecordTotalTime(),postMessage$1({api:"back"})},modelType=ref("init"),onChangeModelType=function(e){if(e!==modelType.value){if("follow"===e&&2===metronomeData.cursorMode&&(metronomeData.cursorMode=1),"evaluation"===e){var t;changeSpeed(null===(t=state$2.activeDetail)||void 0===t?void 0:t.originalSpeed,!1),state.evaluatingStatus=!0}else{var n=store_legacy.get("speeds")||{},r=useOriginSearch();n[r.id]&&changeSpeed(n[r.id])}nextTick((function(){modelType.value=e}))}},Buttons=defineComponent({name:"Colexiu-Buttons",props:{onSetMusicScoreType:{type:Object,default:function(e){}}},emits:["setMusicScoreType"],setup:function(e,t){t.emit;try{state$2.times=getAllNodes(state.osmd)}catch(c){console.log(c)}var n=useOriginSearch(),r=ref(),i=_slicedToArray(useMenu(),1)[0],a=ref(!1);onMounted((function(){!function(){var e=n.lessonTrainingId?"practice":n.modelType;e&&"evaluation"!=e&&onChangeModelType(e)}()}));var o=ref(!1),s=ref(""),l=function(e){s.value=e.text,confirmShow.value=!0},u=function(e){return"staff"===e?state$3.sett.type===e:"shoudiao"===e?"jianpu"===state$3.sett.type&&!state$3.sett.keySignature:"guding"===e?"jianpu"===state$3.sett.type&&state$3.sett.keySignature:void 0};return function(){var e,t,c,h,f,d,p,m,g,v,y=(null!==(e=state$2.activeDetail)&&void 0!==e&&e.isAppPlay?""===(null===(t=state$2.activeDetail)||void 0===t?void 0:t.midiUrl):state.isFirstPlay||1==(null===(c=state.audiosInstance)||void 0===c?void 0:c.length))||state.evaluatingStatus||(null===(h=state$2.activeDetail)||void 0===h?void 0:h.isAppPlay)&&state$2.midiPlayIniting;return createVNode("div",{onClick:function(e){return e.stopPropagation()},class:[styles$k.container,i.value?"":styles$k.outUp],style:n.headerHeight?{height:"1rem",paddingTop:"0.25rem"}:""},[createVNode("div",{class:styles$k.leftButton},[null!=n&&n.modelType&&!n.unitId?null:createVNode("img",{class:styles$k.backbtn,src:BackIcon,onClick:back},null),createVNode("div",{class:styles$k.titleWrap},[createVNode("div",{class:styles$k.title},[null===(f=state$2.activeDetail)||void 0===f?void 0:f.musicSheetName]),n.albumName&&createVNode("div",{class:styles$k.album},[n.albumName])])]),createVNode("div",{class:styles$k.centerButton},[createVNode(Transition,{name:"finish"},{default:function(){return[!startButtonShow.value&&createVNode(Button,{class:[styles$k.button,styles$k.finish],onClick:function(){var e,t;null===(e=evaluatingRef.value)||void 0===e||null===(t=e.playerStop)||void 0===t||t.call(e)}},{default:function(){return[createVNode("img",{style:{width:"100%",display:"block"},src:iconEvaluatingEnd},null)]}})]}}),createVNode(Transition,{name:"finish"},{default:function(){var e;return[(null==followRef||null===(e=followRef.value)||void 0===e?void 0:e.data.start)&&createVNode(Button,{class:[styles$k.button,styles$k.finish,styles$k.followEndBtn],onClick:function(){var e,t;null===(e=followRef.value)||void 0===e||null===(t=e.handleEnd)||void 0===t||t.call(e)}},{default:function(){return[createVNode("img",{style:{width:"100%",display:"block"},src:iconFollowEndBtn},null)]}})]}})]),createVNode("div",{class:[styles$k.moreButton],style:{opacity:state$2.initRendered?1:0}},[!(null!=n&&n.modelType)&&"init"!==modelType.value&&!state$2.frozenMode&&!state$2.isLessonTrain&&createVNode(Button,{"data-step":"m0",class:[styles$k.button,styles$k.hasText],disabled:state.evaluatingStatus&&!startButtonShow.value||(null===(d=followRef.value)||void 0===d?void 0:d.data.start),onClick:function(){!unitTestData.isSelectMeasureMode&&state$2.sectionStatus&&clearSectionStatus(),"practice"===modelType.value&&(resetPlayStatus(),setCurrentTime(0)),"evaluation"===modelType.value&&(state.evaluatingStatus=!1,evaluatStopPlay()),modelType.value="init"}},{default:function(){return[createVNode(ButtonIcon,{key:"modelType",name:["init","practice"].includes(modelType.value)?"modelType":["follow"].includes(modelType.value)?"modelType1":"modelType2"},null),createVNode("span",null,[createTextVNode("模式")])]}}),createVNode(Fragment,null,[createVNode(Button,{class:classnames(styles$k.button,styles$k.hasText,styles$k.minPadding),onClick:function(){var e=metronomeData.cursorMode;e=["follow"].includes(modelType.value)?1===metronomeData.cursorMode?3:1:3===metronomeData.cursorMode?1:metronomeData.cursorMode+1,metronomeData.cursorMode=e}},{default:function(){return[createVNode(ButtonIcon,{key:"modelType",name:1===metronomeData.cursorMode?"cursor-icon-1":2===metronomeData.cursorMode?"cursor-icon-2":3===metronomeData.cursorMode?"cursor-icon-3":""},null),createVNode("span",{class:styles$k.iconContent},[1===metronomeData.cursorMode?"音符指针":2===metronomeData.cursorMode?"节拍指针":3===metronomeData.cursorMode?"关闭指针":"",metronomeData.cursorTips&&createVNode(Fragment,null,[createVNode("i",{class:styles$k.arrowIcon},null),createVNode("div",{class:classnames(styles$k["botton-tips"],3===metronomeData.cursorMode?styles$k.tipSpec:"")},[metronomeData.cursorTips])])])]}})]),state$2.initRendered&&!n.lessonTrainingId&&!n.questionId&&"CONCERT"==(null===(p=state$2.activeDetail)||void 0===p?void 0:p.musicSheetType)&&createVNode(Button,{class:[styles$k.button,styles$k.hasText],onClick:function(){toggleMusicSheet.toggle(!0)},disabled:state.evaluatingStatus&&!startButtonShow.value||"play"===state.playState||(null===(m=followRef.value)||void 0===m?void 0:m.data.start)},{default:function(){return[createVNode("img",{src:iconToggle$1},null),createVNode("span",null,[createTextVNode("声轨")])]}}),"evaluation"===modelType.value&&createVNode(Fragment,null,[createVNode(Popover,{show:a.value,"onUpdate:show":function(e){return a.value=e},overlay:!1,placement:"bottom-end",class:"cameraPopover","show-arrow":!1},{default:function(){return[createVNode(CellGroup,{border:!1},{default:function(){return[createVNode(Cell,{center:!0,title:"摄像头"},{default:function(){return[createVNode("div",{style:"display:flex;justify-content: flex-end;"},[createVNode(Switch,mergeProps({modelValue:state$3.sett.camera,"onUpdate:modelValue":function(e){return state$3.sett.camera=e}},switchProps),{default:function(){return[createTextVNode("off")]}})])]}}),state$3.sett.camera&&createVNode(Cell,{class:"cameraOpacity",center:!0,title:"透明度"},{default:function(){return[createVNode(Slider,{style:{width:"90%"},min:0,max:100,modelValue:state$3.sett.opacity,"onUpdate:modelValue":function(e){return state$3.sett.opacity=e}},{button:function(){return createVNode("div",{class:styles$k.slider},[state$3.sett.opacity])}})]}})]}})]},reference:function(){return createVNode("div",{onClick:function(e){startButtonShow.value||e.stopPropagation()}},[createVNode(Button,{class:[styles$k.button,styles$k.hasText],disabled:!startButtonShow.value},{default:function(){return[createVNode("img",{src:state$3.sett.camera?iconCameraOn:iconCameraOff},null),createVNode("span",null,[createTextVNode("摄像头")])]}})])}}),createVNode(Evaluating,{ref:evaluatingRef},null)]),"practice"===modelType.value&&createVNode(Fragment,null,[createVNode(Button,{"data-step":"m1",class:[styles$k.button,styles$k.hasText],onClick:function(){return changeMode("background"===state.mode?"music":"background")},disabled:y},{default:function(){return[createVNode(ButtonIcon,{key:"music",name:"music"===state.mode?"music":"accompaniment"},null),createVNode("span",null,["background"===state.mode?"伴奏":"原声"])]}}),unitTestData.isSelectMeasureMode?null:createVNode(Button,{"data-step":"m2",class:[styles$k.button,styles$k.hasText],onClick:sectionChange,disabled:state.evaluatingStatus||"play"===state.playState},{default:function(){return[createVNode(ButtonIcon,{key:"section",name:"section"+(state$2.section.length&&state$2.section.length<=2?state$2.section.length:"")},null),createVNode("span",null,[createTextVNode("选段")])]}}),createVNode(Button,{"data-step":"m3",class:[styles$k.button,styles$k.hasText],disabled:"play"===state.playState,onClick:function(){state$3.sett.fingering=!state$3.sett.fingering,event$1.emit("settingFingeringChange")}},{default:function(){return[createVNode(ButtonIcon,{key:"music",name:state$3.sett.fingering?"fingeringOn":"fingeringOff"},null),createVNode("span",null,[createTextVNode("指法")])]}})]),["practice","evaluation"].includes(modelType.value)&&!n.lessonTrainingId&&createVNode(Popover,{trigger:"manual",overlay:!1,placement:"bottom",class:styles$k.popover,show:i.value&&state.speedShow&&!(state.evaluatingStatus||"play"===state.playState),"onUpdate:show":function(e){return state.speedShow=e}},{default:function(){return[createVNode(Speed,{ref:r,updateSpeed:function(e){return state.speed=e},changed:changeSpeed,mode:state.mode,changeMode:changeMode,lib:{speed:state.speed},class:styles$k.speed},null)]},reference:function(){return createVNode(Button,{"data-step":"m4",class:[styles$k.button,styles$k.hasText,styles$k.speedButton],disabled:state.evaluatingStatus||"play"===state.playState,onClick:function(){var e;null===(e=r.value)||void 0===e||e.refUpdateSpeed(state.speed),state.speedShow=!state.speedShow}},{default:function(){return[createVNode(ButtonIcon,{name:"speed"},null),createVNode("span",null,[createTextVNode("速度")]),createVNode("span",{class:styles$k.label},[state.speed])]}})}}),null!==(g=state$2.activeDetail)&&void 0!==g&&g.notation?createVNode(Popover,{class:styles$k.toggleMusicType,placement:"bottom-end",show:o.value,"onUpdate:show":function(e){var t;"play"===state.playState||state.evaluatingStatus&&!startButtonShow.value||null!==(t=followRef.value)&&void 0!==t&&t.data.start||(o.value=e)}},{reference:function(){var e;return createVNode(Button,{disabled:"play"===state.playState||state.evaluatingStatus&&!startButtonShow.value||(null===(e=followRef.value)||void 0===e?void 0:e.data.start),class:[styles$k.button,styles$k.hasText,styles$k.speedButton]},{default:function(){return[createVNode(ButtonIcon,{name:"icon-zhuanpu"},null),createVNode("span",null,[u("staff")?"转简谱":"转五线谱"])]}})},default:function(){return createVNode(Fragment,null,[createVNode("div",{role:"menuitem",class:"van-popover__action",onClick:function(){return l({text:"五线谱"})}},[createVNode(ButtonIcon,{key:"type",name:u("staff")?"icon-staff-active":"icon-staff"},null),createVNode("div",{class:["action-text",u("staff")&&"action-active"]},[createTextVNode("五线谱")])]),createVNode("div",{role:"menuitem",class:"van-popover__action",onClick:function(){return l({text:"简谱"})}},[createVNode(ButtonIcon,{key:"type",name:u("shoudiao")?"shuodiao-active":"shuodiao"},null),createVNode("div",{class:["action-text",u("shoudiao")&&"action-active"]},[createTextVNode("首调")])]),createVNode("div",{role:"menuitem",class:"van-popover__action",onClick:function(){return l({text:"固定调"})}},[createVNode(ButtonIcon,{key:"type",name:u("guding")?"guding-active":"guding"},null),createVNode("div",{class:["action-text",u("guding")&&"action-active"]},[createTextVNode("固定调")])])])}}):null,state$2.initRendered&&createVNode(Fragment,null,[createVNode(Button,{class:[styles$k.button,styles$k.hasText],onClick:function(){var e;null===(e=settingPopup.value)||void 0===e||e.onShow()},disabled:state.evaluatingStatus&&!startButtonShow.value||"play"===state.playState||(null===(v=followRef.value)||void 0===v?void 0:v.data.start)},{default:function(){return[createVNode(ButtonIcon,{name:"setting"},null),createVNode("span",null,[createTextVNode("设置")])]}}),createVNode(Popups,{ref:settingPopup,style:{borderRadius:"8px"}},{default:function(){return[createVNode(Setting,{active:"practice"==modelType.value?"2":"evaluation"==modelType.value?"3":"1"},null)]}})])]),createVNode(FloatWraper,null,null),createVNode(Dialog.Component,{teleport:"body",class:evastyles.confirm,style:{overflow:"initial"},show:confirmShow.value,"onUpdate:show":function(e){return confirmShow.value=e},message:"设置成功,是否立即重新加载?"},{title:function(){return createVNode("img",{class:evastyles.iconTitle,src:iconTitle},null)},footer:function(){return createVNode("div",{class:evastyles.footer},[createVNode("img",{src:iconCancel,onClick:function(){return confirmShow.value=!1}},null),createVNode("img",{src:iconConfirm,onClick:function(){"五线谱"===s.value?state$3.sett.type="staff":"简谱"===s.value?(state$3.sett.type="jianpu",state$3.sett.keySignature=!1):"固定调"===s.value&&(state$3.sett.type="jianpu",state$3.sett.keySignature=!0),sessionStorage.setItem("notation",state$3.sett.type),useReload()}},null)])}})])}}}),event$1=exports("aU",new EventEmitter),browserInfo$2=browser(),initBehaviorId$1=""+(new Date).valueOf(),getLinkId$1=function(){var e=useOriginSearch().id;return location.hash.split("?")[0].split("/").pop()||e||""},getFixTime=exports("aR",(function(e){var t=getDuration(state.osmd),n=t.numerator||0,r=t.denominator||4,i=t.beatUnit||"quarter";return state$2.repeatedBeats&&(n=2===n?4:n),state$2.needTick||state$2.skipTick?0:60/e*formatBeatUnit(i)*(n/r)})),prevIndex=0,state=exports("m",reactive({songs:{},playState:"init",sectionHint:new SectionHint,audiosInstance:null,mode:"music",isFirstPlay:!0,metro:null,metroing:!1,duration:"0:00",durationNum:0,currentTime:"0:00",currentTimeNum:0,loading:!1,speed:90,browser:browser(),speedShow:!1,progressShow:!1,touched:!1,osmd:null,tickPlayer:null,evaluatingStatus:!1,evaluatingTips:!1,clickTime:0,evaluatingFixTime:0,cameraStatus:!1,captureStatus:!1,ticking:!1,partIndex:0,activeIndex:0})),syncStepIndex=function(e){var t;!1!==state.osmd.hidden&&state.osmd.cursor.show(),prevIndex=e,setStepIndex(state.osmd,e),refreshIndex(null===(t=state$2.times[e])||void 0===t?void 0:t.time)},sendParentMessage=function(e){window.parent.postMessage({api:"headerTogge",playState:e},"*")};watchEffect((function(){state$2.maskStatus="play"===state.playState,["play","pause"].includes(state.playState)&&sendParentMessage(state.playState)}));var syncPlayState=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!state$2.activeDetail.isAppPlay){e.next=8;break}return e.next=3,promisefiyPostMessage({api:"cloudGetMediaStatus"});case 3:t=e.sent,n=null==t?void 0:t.content.status,state.playState=n,e.next=9;break;case 8:state.playState=state.audiosInstance.getStatus();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setCurrentTime=exports("aQ",(function(e){console.log("setCurrentTime",e);var t=e;state$2.fixedKey=0,state.currentTimeNum=t,state.currentTime=formatTime(t),state.audiosInstance.setCurrentTime(t),state$2.activeDetail.isAppPlay?promisefiyPostMessage({api:"cloudSetCurrentTime",content:{currentTime:1e3*e,songID:state$2.activeDetail.examSongId}}):state.audiosInstance.setCurrentTime(t),refreshView(),syncPlayState();var n=getIndex(state$2.times,state.currentTimeNum);syncStepIndex(n)})),getActiveMidiId=function(){var e,t,n,r,i,a,o;return null!==(e=null===(t=state.osmd)||void 0===t||null===(n=t.sheet)||void 0===n||null===(r=n.instruments)||void 0===r||null===(i=r[0])||void 0===i||null===(a=i.subInstruments)||void 0===a||null===(o=a[0])||void 0===o?void 0:o.midiInstrumentID)&&void 0!==e?e:0},changeMode=exports("aN",function(){var e=_asyncToGenerator(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:if(i="background"===t?"music":"background",state$2.activeDetail.isAppPlay){a=new Map,o=_createForOfIteratorHelper(state$2.partListNames);try{for(o.s();!(s=o.n()).done;)l=s.value,a.set(l,60)}catch(err){o.e(err)}finally{o.f()}u=_createForOfIteratorHelper(getVoicePartInfo().partListNames);try{for(u.s();!(c=u.n()).done;)h=c.value,a.set(h,"background"===i?100:0)}catch(err){u.e(err)}finally{u.f()}promisefiyPostMessage({api:"cloudVolume",content:{activeMidiId:getActiveMidiId(),activeMidiVolume:"background"===i?100:0,parts:Array.from(a.keys()).map((function(e){return{name:e,volume:a.get(e)}}))}})}state.mode=t,null===(n=state.audiosInstance)||void 0===n||n.setMute(!0,state.songs[i]),null===(r=state.audiosInstance)||void 0===r||r.setMute(!1,state.songs[t]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),changeAllMode=exports("aM",(function(){var e;if(null!==(e=state$2.activeDetail)&&void 0!==e&&e.isAppPlay){var t,n=new Map,r=_createForOfIteratorHelper(state$2.partListNames);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.set(i,1)}}catch(err){r.e(err)}finally{r.f()}promisefiyPostMessage({api:"cloudVolume",content:{activeMidiId:getActiveMidiId(),activeMidiVolume:100,parts:Array.from(n.keys()).map((function(e){return{name:e,volume:n.get(e)}}))}})}else{var a;state.mode="background",null===(a=state.audiosInstance)||void 0===a||a.setMute(!0)}})),changeSpeed=exports("b0",(function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=store_legacy.get("speeds")||{};n&&(r[getLinkId$1()]=e,store_legacy.set("speeds",r)),state.speed=e,state$2.activeDetail&&(null===(t=state.audiosInstance)||void 0===t||t.setSpeed(e/state$2.baseSpeed),promisefiyPostMessage({api:"cloudChangeSpeed",content:{speed:e,originalSpeed:state$2.activeDetail.originalSpeed,songID:state$2.activeDetail.examSongId}}),"play"===state.playState&&syncStepIndex(getIndex(state$2.times,state.currentTimeNum)))})),resetCursor=function(){state.osmd&&(state.osmd.product?state.osmd.cursor.setPosition(_objectSpread2({},state$2.times[0].cursorBox)):state.osmd.cursor.reset(),state.osmd.cursor.hide(),state$2.fixedKey=0)},refreshIndexBase=function(e){if(!(e<0)){var t=state.osmd;t&&state$2.times[e]&&(state$2.sectionStatus||state.sectionHint.show(),state$2.times[e]&&state$2.times[e].noteElement&&state.sectionHint.showForElement(state$2.times[e]),t.product||!1!==t.cursor.hidden&&(t.cursor.reset(),t.cursor.show(),state$2.fixedKey=0),prevIndex!==e&&(setStepIndex(state.osmd,state$2.times[e].i,prevIndex),prevIndex=e),state$2.fixedKey=state$2.times[e].realKey,state$2.activeNote=state$2.times[e])}},refreshIndex=function(e){if(state.osmd&&(e||state.audiosInstance.audio)){var t=e||state.audiosInstance.audio.currentTime;try{var n;null==metronomeData||null===(n=metronomeData.metro)||void 0===n||n.sound(t)}catch(a){}var r=getIndex(state$2.times,t);state.activeIndex=r,removeRepateBackground(r);var i=state$2.times[state$2.times.length-1];t>((null==i?void 0:i.sourceEndTime)||(null==i?void 0:i.endtime))?(state.osmd.cursor.hide(),state.sectionHint.destroy()):state$2.times[r]&&refreshIndexBase(r)}},removeRepateBackground=function(e){if(state.evaluatingStatus&&e){var t,n,r=state$2.times[e],i=state$2.times[e+1]||r,a=null==i||null===(t=i.noteElement)||void 0===t||null===(n=t.sourceMeasure)||void 0===n?void 0:n.measureListIndex;i&&state$2.evaluatings[a]&&e>0&&(state$2.evaluatings=_objectSpread2(_objectSpread2({},state$2.evaluatings),{},_defineProperty2({},a,void 0)))}},refreshPlayer=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!state.osmd||!t&&!state.audiosInstance.audio){e.next=45;break}r=t||state.audiosInstance.audio.currentTime;try{null==metronomeData||null===(i=metronomeData.metro)||void 0===i||i.sound(r)}catch(o){}if(0,!(r+1<0)){e.next=8;break}return setCurrentTime(0),e.abrupt("return");case 8:if(!function(){if(state$2.sectionStatus&&2===state$2.section.length){r>=state$2.section[0].time&&(state$2.sectionFlash=!1);var e=state$2.times[state$2.section[1].i+1],t=e?0===e.halfTone?state$2.section[1].endtime:e.time:state.durationNum;return r+(browserInfo$2.xiaomi?.2:.08)>=t}return!1}()){e.next=28;break}if(state.audiosInstance.setMute(!0),state.osmd.cursor.hide(),null===(a=state$2.activeDetail)||void 0===a||!a.isAppPlay){e.next=17;break}pause(),e.next=19;break;case 17:return e.next=19,state.audiosInstance.pause();case 19:if(!unitTestData.isSelectMeasureMode||!state.evaluatingStatus){e.next=23;break}return console.log(1),event$1.emit("ended"),e.abrupt("return");case 23:return setSectionModeCurrentTime(),clearAccelerateRefreshPlayer(),setTimeout((function(){state$2.section.length&&setPlayState()}),1e3),state.loading=!1,e.abrupt("return");case 28:if(!(null!==(n=state$2.activeDetail)&&void 0!==n&&n.isAppPlay&&state.durationNum+3<r)){e.next=45;break}if(!state.evaluatingStatus){e.next=35;break}pause(),console.log(2),event$1.emit("ended",new Event("ended")),e.next=45;break;case 35:if(!state$3.sett.loop){e.next=44;break}return e.next=38,pause();case 38:return e.next=40,setCurrentTime(0);case 40:return e.next=42,play();case 42:e.next=45;break;case 44:pause();case 45:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),resetPlayStatus=exports("aP",function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,prevIndex=0,state.osmd.cursor.reset(),state.osmd.cursor.hide(),state$2.fixedKey=0,state$2.sectionFlash=!1,state.sectionHint&&state.sectionHint.destroy(),t){e.next=15;break}if(!state$2.activeDetail.isAppPlay){e.next=13;break}return e.next=11,promisefiyPostMessage({api:"cloudSuspend",content:{songID:state$2.activeDetail.examSongId}});case 11:e.next=15;break;case 13:console.log("resetPlayStatus调用暂停"),state.audiosInstance.pause();case 15:syncPlayState(),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log("resetPlayStatus错误",e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t){return e.apply(this,arguments)}}()),play=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(state.isFirstPlay&&(resetPlayStatus(),state$2.fixedKey=0),!state$2.activeDetail.isAppPlay){e.next=7;break}return e.next=4,syncPlayState();case 4:promisefiyPostMessage({api:"cloudSuspend",content:{songID:state$2.activeDetail.examSongId}}),e.next=10;break;case 7:state.playState=state.audiosInstance.getStatus(),clearAccelerateRefreshPlayer(),accelerateRefreshPlayer();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setDelayTime=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){e(t)}),t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pause=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(state$2.sectionStatus&&state.osmd.cursor.hide(),!state$2.activeDetail.isAppPlay){e.next=10;break}return e.next=4,syncPlayState();case 4:return e.next=6,promisefiyPostMessage({api:"cloudSuspend"});case 6:return e.next=8,setDelayTime(200);case 8:e.next=13;break;case 10:state.playState=state.audiosInstance.getStatus(),clearAccelerateRefreshPlayer(),state.audiosInstance.pause();case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),waiting=function(){state.loading=!0},playing=function(){state.loading=!1},ended=exports("b4",lodash$1.exports.debounce(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(resetPlayStatus(),state$2.fixedKey=0,state.evaluatingStatus){e.next=7;break}if(refreshPlayer(0),!state$3.sett.loop){e.next=7;break}return e.next=7,setPlayState();case 7:setCurrentTime(0),event$1.emit("ended",t);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),300,{leading:!0,trailing:!1})),timer$1=null,accelerateRefreshPlayer=function(){!timer$1&&state.audiosInstance&&(timer$1=setInterval((function(){requestAnimationFrame((function(){refreshPlayer(),"play"===state.audiosInstance.getStatus()&&refreshIndex()}))}),16.7))},clearAccelerateRefreshPlayer=function(){clearInterval(timer$1),timer$1=null},sectionChange=exports("b3",(function(){state$2.sectionStatus=!state$2.sectionStatus,clearAccelerateRefreshPlayer(),resetPlayStatus(),state$2.sectionStatus||(setCurrentTime(0),state$2.fixedKey=0),state$2.sectionStatus&&2!=state$2.section.length&&resetCursor()})),clearSectionStatus=function(){state$2.section=[],state$2.sectionBoundingBoxs=[],state$2.sectionStatus=!1},getFirsrNoteByMeasureListIndex=function(e){var t,n=_createForOfIteratorHelper(state$2.times);try{for(n.s();!(t=n.n()).done;){var r,i,a=t.value;if((null==a||null===(r=a.noteElement)||void 0===r||null===(i=r.sourceMeasure)||void 0===i?void 0:i.measureListIndex)===e){var o,s,l=null,u=_createForOfIteratorHelper(a.measures);try{for(u.s();!(o=u.n()).done;){var c=o.value;getSlursNote(c)&&(l=getSlursNote(c))}}catch(err){u.e(err)}finally{u.f()}if(l)if((null===(s=l.sourceMeasure)||void 0===s?void 0:s.measureListIndex)!==e){var h,f=_createForOfIteratorHelper(state$2.times);try{for(f.s();!(h=f.n()).done;){var d=h.value;if(d.noteElement.NoteToGraphicalNoteObjectId===l.NoteToGraphicalNoteObjectId)return d}}catch(err){f.e(err)}finally{f.f()}}return a}}}catch(err){n.e(err)}finally{n.f()}return null},setSectionModeCurrentTime=function(){if(state$2.needTick)setCurrentTime(state$2.section[0].sourceStartTime||state$2.section[0].time);else{var e,t,n=null===(e=state$2.section[0].noteElement)||void 0===e||null===(t=e.sourceMeasure)||void 0===t?void 0:t.measureListIndex;n>0?(setCurrentTime(getFirsrNoteByMeasureListIndex(n-1).time),state$2.sectionFlash=!0):setCurrentTime(0)}},setPlayerView=function(){state$2.sectionStatus&&(syncStepIndex(getIndex(state$2.times,state.currentTimeNum)),2===state$2.section.length?setSectionModeCurrentTime():(state$2.section=[],state$2.sectionBoundingBoxs=[],state$2.sectionStatus=!1,Toast.clear()))},cloudToggleState=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,promisefiyPostMessage({api:"cloudGetMediaStatus"});case 2:if(t=e.sent,"init"!==(n=null==t?void 0:t.content.status)){e.next=6;break}return e.abrupt("return");case 6:if("suspend"!==n){e.next=11;break}return e.next=9,promisefiyPostMessage({api:"cloudPlay",content:{songID:state$2.activeDetail.examSongId,startTime:1e3*state.currentTimeNum,originalSpeed:state$2.activeDetail.originalSpeed,speed:state.speed,hertz:state$3.sett.hertz}});case 9:e.next=13;break;case 11:return e.next=13,promisefiyPostMessage({api:"cloudSuspend"});case 13:return e.next=15,promisefiyPostMessage({api:"cloudGetMediaStatus"});case 15:r=e.sent,state.playState=null==r?void 0:r.content.status,console.log(r,"cloudGetMediaStatused");case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),toggleState=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("init"!==modelType.value){e.next=2;break}return e.abrupt("return");case 2:if(!state$2.activeDetail.isAppPlay){e.next=7;break}return e.next=5,cloudToggleState();case 5:e.next=13;break;case 7:return state.isFirstPlay=!1,setPlayerView(),e.next=11,state.audiosInstance.togglePlay(t);case 11:state.evaluatingStatus||changeMode(state.mode),state.playState=state.audiosInstance.getStatus();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),setActiveKey=function(e){state$2.activeTick=e},setTickStop=function(){state$2.activeTick=-1,state$2.activeTickRepeat=1,toggleState(getTickTime(state.speed/state$2.baseSpeed))},timeliner=-1,clearIntervalTimeline=exports("aT",(function(){clearInterval(timeliner)})),onTickDestroy=function(){event$1.emit("tickDestroy")},setTick=function(e,t){var n=function(){e(),event$1.emit("tickEnd")};if(state$2.needTick){var r=getDuration(state.osmd),i=r.numerator,a=r.denominator;if(state.osmd.numerator&&state.osmd.denominator&&(i=state.osmd.numerator,a=state.osmd.denominator),state$2.activeDetail.isAppPlay)state.ticking=!0,postMessage$1({api:"cloudMetronome",content:{repeat:2===i?2:1,denominator:a,numerator:i}},(function(e){state.ticking=!1,"finish"===(null==e?void 0:e.content.status)?n():"cancel"===(null==e?void 0:e.content.status)&&event$1.emit("tickDestroy")}));else{var o,s,l,u,c,h,f,d=2===i?2:1;state$2.activeTickRepeat=d,console.log("ticking"),state.tickPlayer=new Player(i,(t||state.speed)/90),null===(o=state.tickPlayer)||void 0===o||o.start(i,(t||state.speed)/90,d),null===(s=state.tickPlayer)||void 0===s||s.event.off("tick",setActiveKey),null===(l=state.tickPlayer)||void 0===l||l.event.off("stop",n),null===(u=state.tickPlayer)||void 0===u||u.event.off("destroy",onTickDestroy),null===(c=state.tickPlayer)||void 0===c||c.event.on("tick",setActiveKey),null===(h=state.tickPlayer)||void 0===h||h.event.on("stop",n),null===(f=state.tickPlayer)||void 0===f||f.event.on("destroy",onTickDestroy)}}else n()},setPlayState=exports("aO",_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(state$2.activeTick>-1||state.ticking)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,syncPlayState();case 4:if("pause"===state.playState||"suspend"===state.playState){e.next=8;break}return e.next=7,toggleState();case 7:return e.abrupt("return");case 8:setPlayerView(),setTick(setTickStop);case 10:case"end":return e.stop()}}),e)})))),stopTick=exports("b7",(function(){state.tickPlayer&&state.tickPlayer.destroy(),event$1.emit("stopTick"),state$2.activeTickRepeat=1,state$2.activeTick=-1})),windowResize=function(){var e=getIndex(state$2.times,state.currentTimeNum);setTimeout((function(){var t,n;null===(t=state.sectionHint)||void 0===t||t.showForElement(null===(n=state$2.times[e])||void 0===n?void 0:n.noteElement)}),200)},loadedmetadata=function(){state.duration=formatTime(state.audiosInstance.duration),state.durationNum=state.audiosInstance.duration},prevDiff=0,viewing=!1,refreshView=function(){var e,t=void 0,n=void 0;null!=state&&null!==(e=state.osmd)&&void 0!==e&&e.product&&(t=state.osmd.cursor.img,n=document.querySelector("#colexiu-detail-music-sheet"));var r=Math.max(parseFloat((t||state.osmd.cursor.cursorElement).style.top),0);Math.abs(prevDiff-r)>10&&!viewing&&(viewing=!0,setTimeout((function(){viewing=!1,(n||("colexiu"===state$4.clintNmae?state.osmd.container.parentElement.parentElement:state.osmd.container.parentElement)).scrollTo({top:r,left:0,behavior:"smooth"}),prevDiff=r}),100))},updatePlayTime=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=useOriginSearch(),sessionStorage.getItem("behaviorId")||n.behaviorId,getRequestHostname(),useClientType();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),setAudioInit=exports("b1",(function(){state.audiosInstance.event.on("loadedmetadata",loadedmetadata),state.audiosInstance.event.on("waiting",waiting),state.audiosInstance.event.on("playing",playing),state.audiosInstance.event.on("play",play,!1),state.audiosInstance.event.on("pause",pause,!1),state.audiosInstance.event.on("ended",ended,!1),state.audiosInstance.event.on("updatePlayTime",updatePlayTime,!1),listenerMessage("cloudplayed",_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,syncPlayState();case 2:state.currentTimeNum=0,state.currentTime="00:00",state.audiosInstance.event.emit("ended",new Event("ended"));case 5:case"end":return e.stop()}}),e)})))),listenerMessage("cloudTimeUpdae",(function(e){var t=(null==e?void 0:e.content.currentTime)/1e3;"play"===state.playState&&(state.currentTimeNum=t,state.currentTime=formatTime(t),refreshPlayer(t),refreshIndex(t)),refreshView()})),state.audiosInstance.event.on("timeupdate",(function(){state.currentTimeNum=state.audiosInstance.currentTime,state.currentTime=formatTime(state.audiosInstance.currentTime),requestAnimationFrame((function(){"play"===state.audiosInstance.getStatus()&&refreshPlayer(),refreshView()}))})),window.addEventListener("resize",windowResize)})),setStepView=function(e,t){prevIndex=Math.max(e.i,0),syncStepIndex(e.i),t&&refreshPlayer(t),refreshView()},noteClick=exports("b2",(function(e){if(state.isFirstPlay)Toast("开始播放后才能调整进度");else{var t=getNoteBySlursStart(getActtiveNoteByTimes(e));if(t){var n=t.sourceStartTime||t.time;setCurrentTime(n),setStepView(t.i,n),state$2.fixedKey=t.realKey,state$2.activeNote=t}}})),startCapture=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("SettingState.sett.camera:",state$3.sett.camera," SettingState.eva.save:",state$3.eva.save),state$3.sett.camera&&state$3.eva.save&&postMessage$1({api:"startCapture"});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),endCapture=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:state$3.eva.save&&state$3.sett.camera&&postMessage$1({api:"endCapture"});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),setCaptureMode=exports("aS",_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:browserInfo$2.isApp&&state$3.sett.camera&&postMessage$1({api:"setCaptureMode",content:{mode:state.evaluatingStatus?"evaluating":"practice"}});case 1:case"end":return e.stop()}}),e)})))),getBoundingBoxByNote=function(e,t){var n,r,i,a,o,s,l,u=null===(n=e.sourceMeasure)||void 0===n||null===(r=n.verticalMeasureList)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.boundingBox;if(!u)return null;var c,h,f,d,p=_objectSpread2(_objectSpread2(_objectSpread2({},u.absolutePosition),u.size),t);(p.x=10*p.x,p.y=10*p.y,p.width=10*p.width,p.height=10*p.height,null!=e&&null!==(a=e.sourceMeasure)&&void 0!==a&&null!==(o=a.verticalMeasureList)&&void 0!==o&&null!==(s=o[0])&&void 0!==s&&null!==(l=s.stave)&&void 0!==l&&l.height)&&(p.height=null===(c=e.sourceMeasure)||void 0===c||null===(h=c.verticalMeasureList)||void 0===h||null===(f=h[0])||void 0===f||null===(d=f.stave)||void 0===d?void 0:d.height);return p},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 PlacementEnum.Above;case"below":return PlacementEnum.Below;case"aboveorbelow":case"abovebelow":return PlacementEnum.AboveOrBelow;case"left":return PlacementEnum.Left;case"right":return PlacementEnum.Right;default:return PlacementEnum.NotYetDefined}}}]),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=_createSuper(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&&(this.dynamicType===ContDynamicEnum.crescendo&&(this.startVolume=this.activeInstantaneousDynamic.Volume,this.endVolume=1.2*this.activeInstantaneousDynamic.Volume),this.dynamicType===ContDynamicEnum.diminuendo&&(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=ContDynamicEnum.crescendo:n.isStringInStringList(n.listContinuousDynamicDecreasing,this.label)&&(this.dynamicType=ContDynamicEnum.diminuendo)}}],[{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})),loglevel={exports:{}};!function(t){!function(e,n){t.exports?t.exports=n():e.log=n()}(commonjsGlobal$2,(function(){var t=function(){},n="undefined",r=("undefined"==typeof window?"undefined":_typeof3(window))!==n&&_typeof3(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){return"debug"===e&&(e="log"),("undefined"==typeof console?"undefined":_typeof3(console))!==n&&("trace"===e&&r?o:void 0!==console[e]?a(console,e):void 0!==console.log?a(console,"log"):t)}function l(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 u(e,t,r){return function(){("undefined"==typeof console?"undefined":_typeof3(console))!==n&&(l.call(this,t,r),this[e].apply(this,arguments))}}function c(e,t,n){return s(e)||u.apply(this,arguments)}function h(e,t,r){var a,o=this;t=null==t?"WARN":t;var s="loglevel";function u(){var e;if(("undefined"==typeof window?"undefined":_typeof3(window))!==n&&s){try{e=window.localStorage[s]}catch(i){}if(_typeof3(e)===n)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(i){}return void 0===o.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"===_typeof3(e)&&(s=void 0),o.name=e,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=r||c,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":_typeof3(window))!==n&&s){try{return void(window.localStorage[s]=t)}catch(r){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(r){}}}(t),l.call(o,t,e),("undefined"==typeof console?"undefined":_typeof3(console))===n&&t<o.levels.SILENT)return"No console available for logging"},o.setDefaultLevel=function(e){t=e,u()||o.setLevel(e,!1)},o.resetLevel=function(){o.setLevel(t,!1),function(){if(("undefined"==typeof window?"undefined":_typeof3(window))!==n&&s){try{return void window.localStorage.removeItem(s)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"=; 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=u();null==h&&(h=t),o.setLevel(h,!1)}var f=new h,d={};f.getLogger=function(e){if("symbol"!==_typeof3(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 h(e,f.getLevel(),f.methodFactory)),t};var p=("undefined"==typeof window?"undefined":_typeof3(window))!==n?window.log:void 0;return f.noConflict=function(){return("undefined"==typeof window?"undefined":_typeof3(window))!==n&&window.log===f&&(window.log=p),f},f.getLoggers=function(){return d},f.default=f,f}))}(loglevel);var log$2=loglevel.exports,lib$3={},arrays$4={},util$a={};!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$a),Object.defineProperty(arrays$4,"__esModule",{value:!0});var util$9=util$a;function indexOf$1(e,t,n){for(var r=n||util$9.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$9.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$9.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$9.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$8=util$a,Dictionary$1=function(){function e(e){this.table={},this.nElements=0,this.toStr=e||util$8.defaultToString}return e.prototype.getValue=function(e){var t=this.table["$"+this.toStr(e)];if(!util$8.isUndefined(t))return t.value},e.prototype.setValue=function(e,t){if(!util$8.isUndefined(e)&&!util$8.isUndefined(t)){var n,r="$"+this.toStr(e),i=this.table[r];return util$8.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$8.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$8.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$8.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$8.has(this.table,t)){var n=this.table[t];if(!1===e(n.key,n.value))return}},e.prototype.containsKey=function(e){return!util$8.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$7=util$a,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$7.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$6=util$a,Dictionary_1$4=Dictionary$2,Set_1$1=_Set,Bag=function(){function e(e){this.toStrF=e||util$6.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$6.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$6.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$5=util$a,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$5.isUndefined(t)&&(t=this.nElements),t<0||t>this.nElements||util$5.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$5.defaultEquals;if(util$5.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$5.defaultEquals;if(this.nElements<1||util$5.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$5.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$4=util$a,Queue_1$1=Queue$1,BSTreeKV=function(){function e(e){this.root=null,this.compare=e||util$4.defaultCompare,this.nElements=0}return e.prototype.add=function(e){return!util$4.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$4.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$2&&commonjsGlobal$2.__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$a,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$2&&commonjsGlobal$2.__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$3=util$a,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$3.isUndefined(e)){var t="$"+this.toStr(e);return this.table[t]}},t.prototype.getValue=function(e){var t=this.getLinkedDictionaryPair(e);if(!util$3.isUndefined(t))return t.value},t.prototype.remove=function(t){var n=this.getLinkedDictionaryPair(t);if(!util$3.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$3.isUndefined(e)&&!util$3.isUndefined(t)){var n=this.getLinkedDictionaryPair(e),r=new LinkedDictionaryPair(e,t),i="$"+this.toStr(e);return util$3.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$2=util$a,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$2.defaultEquals,this.allowDuplicate=n}return e.prototype.getValue=function(e){var t=this.dict.getValue(e);return util$2.isUndefined(t)?[]:arrays.copy(t)},e.prototype.setValue=function(e,t){if(util$2.isUndefined(e)||util$2.isUndefined(t))return!1;var n=this.dict.getValue(e);return util$2.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$2.isUndefined(t)){var n=this.dict.remove(e);return!util$2.isUndefined(n)}var r=this.dict.getValue(e);return!(util$2.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$2&&commonjsGlobal$2.__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$1=util$a,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$1.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=util$a,Heap_1$1=Heap$1,PriorityQueue=function(){function e(e){this.heap=new Heap_1$1.default(util.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$a;lib$3.util=_util;var _InstantaneousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper(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 log$2.debug("[Andrea] instantaneousDynamicExpression: not implemented: calculateLength!"),0}}],[{key:"staticConstructor",value:function(){n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.ffffff,1),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.fffff,126/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.ffff,125/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.fff,124/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.ff,122/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.f,108/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.mf,76/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.sf,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.sfp,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.sfpp,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.fp,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.rf,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.rfz,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.sfz,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.sffz,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.fz,.5),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.mp,60/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.p,28/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.pp,12/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.ppp,10/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.pppp,7/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.ppppp,5/127),n.dynamicToRelativeVolumeDict.setValue(DynamicEnum.pppppp,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=_createSuper(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){log$2.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$1=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),f=h[0].y,d=h[1].y-f;if(o){if(this.updateWidthAndStyle(o.PositionAndShape,r,f,d),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 f=a.StaffLines[a.StaffLines.length-1];i=a.PositionAndShape.AbsolutePosition.y+f.PositionAndShape.RelativePosition.y+f.StaffHeight-r;var d=this.graphic.findGraphicalMeasure(t.CurrentMeasureIndex,0).PositionAndShape;if(this.updateWidthAndStyle(d,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=_createSuper(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=_createSuper(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=_createSuper(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)?log$2.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 f=this.ChildElements[c];n=Math.min(n,f.relativePosition.x+f.borderLeft),r=Math.max(r,f.relativePosition.x+f.borderRight),i=Math.min(i,f.relativePosition.y+f.borderTop),a=Math.max(a,f.relativePosition.y+f.borderBottom),o=Math.min(o,f.relativePosition.x+f.borderMarginLeft),s=Math.max(s,f.relativePosition.x+f.borderMarginRight),l=Math.min(l,f.relativePosition.y+f.borderMarginTop),u=Math.max(u,f.relativePosition.y+f.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 ColDirEnum.Left:case ColDirEnum.Right:r=this.relativePosition.x,e.calculateMarginPositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.x)>.001;break;case ColDirEnum.Up:case ColDirEnum.Down: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 ColDirEnum.Left:case ColDirEnum.Right:r=this.relativePosition.x,e.calculatePositionAlongDirection(this,t),i=Math.abs(r-this.relativePosition.x)>1e-4;break;case ColDirEnum.Up:case ColDirEnum.Down: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 ColDirEnum.Left:return n=this.absolutePosition.x+this.borderMarginLeft-(e.absolutePosition.x+e.borderMarginRight),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case ColDirEnum.Right:return n=this.absolutePosition.x+this.borderMarginRight-(e.absolutePosition.x+e.borderMarginLeft),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case ColDirEnum.Up:return n=this.absolutePosition.y+this.borderMarginTop-(e.absolutePosition.y+e.borderMarginBottom),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);case ColDirEnum.Down: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 ColDirEnum.Left:return n=this.absolutePosition.x+this.borderLeft-(e.absolutePosition.x+e.borderRight),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case ColDirEnum.Right:return n=this.absolutePosition.x+this.borderRight-(e.absolutePosition.x+e.borderLeft),e.relativePosition.x+=n,void(e.absolutePosition.x+=n);case ColDirEnum.Up:return n=this.absolutePosition.y+this.borderTop-(e.absolutePosition.y+e.borderBottom),e.relativePosition.y+=n,void(e.absolutePosition.y+=n);case ColDirEnum.Down: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=_createSuper(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=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ClefEnum.G,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=ClefEnum.G,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 ClefEnum.G:this.clefPitch=new Pitch(NoteEnum.G,1+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+2;break;case ClefEnum.F:this.clefPitch=new Pitch(NoteEnum.F,0+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line+1.5;break;case ClefEnum.C:this.clefPitch=new Pitch(NoteEnum.C,1+this.octaveOffset,AccidentalEnum.NONE),this.referenceCyPosition=5-this.line;break;case ClefEnum.percussion:this.clefPitch=new Pitch(NoteEnum.C,2,AccidentalEnum.NONE),this.referenceCyPosition=2;break;case ClefEnum.TAB: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 MidiInstrument.Acoustic_Grand_Piano:case MidiInstrument.Electric_Bass_finger:case MidiInstrument.Electric_Bass_pick:case MidiInstrument.Fretless_Bass:case MidiInstrument.Slap_Bass_1:case MidiInstrument.Slap_Bass_2:case MidiInstrument.Synth_Bass_1:case MidiInstrument.Synth_Bass_2:case MidiInstrument.Contrabass:return new n(ClefEnum.F,0,4);default:return new n(ClefEnum.G,0,2)}}},{key:"getAllPossibleClefs",value:function(){for(var e=[],t=0;t<=2;t++){var r=new n(ClefEnum.G,t,2);e.push(r)}for(var i=-2;i<=0;i++){var a=new n(ClefEnum.F,i,4);e.push(a)}return e}},{key:"isSupportedClef",value:function(e){switch(e){case ClefEnum.G:case ClefEnum.F:case ClefEnum.C:case ClefEnum.percussion:case ClefEnum.TAB: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=_createSuper(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]:KeyEnum.major;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,KeyEnum.major);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=_createSuper(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],h=c.PositionAndShape.getObjectsInRegion(s,!1,t);if(h&&0!==h.length)for(var f=0,d=h.length;f<d;++f)a?a(h[f])&&o.push(h[f]):o.push(h[f])}n+=i}for(var p=void 0,m=0,g=o.length;m<g;++m){var v=o[m];if(void 0===p)p=v;else{var y=this.CalculateDistance(v.PositionAndShape.AbsolutePosition,e),b=this.CalculateDistance(p.PositionAndShape.AbsolutePosition,e);y<b&&(p=v)}}if(p)return p}},{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){log$2.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){log$2.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){log$2.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 f,d,p;t=l;var m=0;if(r)if(i){d=r.PositionAndShape.AbsolutePosition.x,p=i.PositionAndShape.AbsolutePosition.x,f=r===i?0:(a-r.getAbsoluteTimestamp().RealValue)/(i.getAbsoluteTimestamp().RealValue-r.getAbsoluteTimestamp().RealValue);var g=r.parentMeasure,v=r.parentMeasure.parentSourceMeasure.multipleRestMeasures,y=g.MeasureNumber/(v+1),b=g.PositionAndShape.Size.width-g.beginInstructionsWidth;m=g.PositionAndShape.AbsolutePosition.x+g.beginInstructionsWidth+y*b}else{d=r.PositionAndShape.AbsolutePosition.x,p=t.GetRightBorderAbsoluteXPosition();var S=r.parentMeasure.parentSourceMeasure;f=(a-r.getAbsoluteTimestamp().RealValue)/(Fraction$1.plus(S.AbsoluteTimestamp,S.Duration).RealValue-r.getAbsoluteTimestamp().RealValue)}else d=p=i.PositionAndShape.AbsolutePosition.x,f=0;return f=Math.min(1,Math.max(0,f)),m&&1===r.parentMeasure.MeasureNumber?[m,t,r]:[d+f*(p-d),t,r]}var x,w,_=i.parentMeasure.parentSourceMeasure.AbsoluteTimestamp.RealValue;if(a<_){t=l;var k=r.PositionAndShape.AbsolutePosition.x,A=t.GetRightBorderAbsoluteXPosition();x=(a-r.getAbsoluteTimestamp().RealValue)/(_-r.getAbsoluteTimestamp().RealValue),w=k+(x=Math.min(1,Math.max(0,x)))*(A-k)}else{t=h;var E=i.PositionAndShape.AbsolutePosition.x,C=t.GetLeftBorderAbsoluteXPosition();x=(a-_)/(i.getAbsoluteTimestamp().RealValue-_),w=C+(x=Math.min(1,Math.max(0,x)))*(E-C)}return[w,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=exports("bB",(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){var t=function(t){_inherits2(r,t);var n=_createSuper(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));return t};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]:{},n=t.type;_classCallCheck2(this,e),this.attrs={id:e.newID(),el:null,type:n||"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,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getStyle();return t?(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],f=[o,s];this.addPoint(u[0],u[1]),this.addPoint(f[0],f[1]);var d=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)*f[t]};for(l=0;l<=1;l++){var p=6*u[l]-12*c[l]+6*h[l],m=-3*u[l]+9*c[l]-9*h[l]+3*f[l],g=3*c[l]-3*u[l];if(0!==m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0<y&&y<1&&(0===l&&this.addX(d(y,l)),1===l&&this.addY(d(y,l)));var b=(-p-Math.sqrt(v))/(2*m);0<b&&b<1&&(0===l&&this.addX(d(b,l)),1===l&&this.addY(d(b,l)))}}else{if(0===p)continue;var S=-g/p;0<S&&S<1&&(0===l&&this.addX(d(S,l)),1===l&&this.addY(d(S,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=_createSuper(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"===_typeof3(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,f=o.shift_right,d={};if(i.length>2&&i[2]){var p=i[2].toUpperCase();d=Flow.keyProperties.customNoteHeads[p]||{}}return _objectSpread2({key:a,octave:s,line:l,int_value:c,accidental:o.accidental,code:h,stroke:u,shift_right:f,displaced:!1},d)},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=_objectSpread2({code_head:i.code},i)}return _objectSpread2(_objectSpread2({},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],a=t[1],o=t[2],s=t[3],l=i+" "+a+" "+o+" "+s;this.svg.setAttribute("viewBox",l)}}},{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,f=!0;!(o<0?u<=r:u>=r)||!(s<0?c<=i:c>=i);){var d=a[h++%a.length],p=u+Math.cos(l)*d;u=o<0?Math.max(r,p):Math.min(r,p);var m=c+Math.sin(l)*d;c=s<0?Math.max(i,m):Math.min(i,m),f?e.lineTo(u,c):e.moveTo(u,c),f=!f}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=_createSuper(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=_createSuper(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=_createSuper(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,f=0,d=i;d<=r;d+=u){for(var p=0,m=0,g=1;g<e.length;++g){var v=e[g],y=this.getSlopeY(v.getStemX(),s.getStemX(),s.getStemExtents().topY,d)+m,b=v.getStemExtents().topY;if(b*t<y*t){var S=Math.abs(b-y);m+=S*-t,p+=S*g}else p+=(b-y)*t}var x=l/2,w=o*Math.abs(x-d)+Math.abs(p);w<c&&(c=w,h=d,f=m)}this.slope=h,this.y_shift=f}},{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],f=h.getStemExtents().topY;o+=f,t===Stem.DOWN&&u<f?(u=f,s=Math.max.apply(Math,_toConsumableArray2(h.getYs())),l=h.getBeamCount()):t===Stem.UP&&(0===u||u>f)&&(u=f,s=Math.min.apply(Math,_toConsumableArray2(h.getYs())),l=h.getBeamCount())}var d=o/e.length,p=i+l*(1.5*r),m=s+p*-t;t===Stem.DOWN&&d<m?d=s+p:t===Stem.UP&&d>m&&(d=s-p),a+this.render_options.flat_beam_offset_per_beam>0?(t===Stem.DOWN&&d>a&&!this.render_options.flat_beams||t===Stem.UP&&d<a&&!this.render_options.flat_beams)&&(this.render_options.flat_beam_offset=d):this.render_options.flat_beam_offset=d,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(),f=0;f<e.length;++f){var d=e[f],p=d.getStemX(),m=d.getStemExtents().topY,g=this.getSlopeY(p,h,c,t)+n,v=d.getStem().getExtension(),y=r===Stem.UP?m-g:g-m;if(d.stem.setExtension(v+y),d.stem.renderHeightAdjustment=-Stem.WIDTH/2,d.isRest()&&o){var b=(i-1)*l*1.5+l;d.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,f=u.getStemX()-Stem.WIDTH/2,d=this.notes[l-1],p=this.notes[l+1],m=p&&p.getIntrinsicTicks()<t,g=d&&d.getIntrinsicTicks()<t,v=d&&p&&h&&!g&&!m;if(h)if(r)(i=n[n.length-1]).end=f,c&&(r=!1,p&&!m&&null===i.end&&(i.end=i.start-a));else{if(i={start:f,end:null,start_note:u},r=!0,v){var y=d.getIntrinsicTicks(),b=p.getIntrinsicTicks(),S=u.getIntrinsicTicks(),x=this.lookupBeamDirection(e,y,S,b);[BEAM_LEFT,BEAM_BOTH].includes(x)?i.end=i.start-a:i.end=i.start+a}else m?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 w=n[n.length-1];return w&&null===w.end&&(w.end=w.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 f=c[h],d=f.start,p=f.start_note.getAttribute("id"),m=o[p];o[p]++;var g=this.getSlopeY(d,i,r,this.slope),v=f.end,y=this.getSlopeY(v,i,r,this.slope),b=p;this.context.openGroup("beam","".concat(b,"-beam").concat(m)),this.context.beginPath(),this.context.moveTo(d,g),this.context.lineTo(d,g+a),this.context.lineTo(v+1,y+a),this.context.lineTo(v+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 f=parseInt(e.duration,10)<8;l||u||c||f?(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})),f=(c=[],s.forEach((function(e){var t=null;e.forEach((function(e){e.tuplet&&t!==e.tuplet&&(t=e.tuplet,c.push(t))}))})),c),d=[];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),d.push(r)})),f.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)})),d}}]),n}(Element$1),Voice$1=function(e){_inherits2(n,e);var t=_createSuper(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=_createSuper(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,f=l+o/2,d=h-.9*i,p=l+.2*o,m=s+1.1*i,g=f-.135*o,v=m,y=f+.135*o,b=d,S=c-.2*o,x=h-i,w=S,_=s+.4*i,k=f+.135*o,A=_,E=f-.135*o,C=x,P=p;e.beginPath(),e.moveTo(s,l),e.bezierCurveTo(d,p,m,g,h,f),e.bezierCurveTo(v,y,b,S,u,c),e.bezierCurveTo(x,w,_,k,h,f),e.bezierCurveTo(A,E,C,P,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 T=0;T<this.texts.length;T++){var M=this.texts[T],I=e.measureText(""+M.content).width,R=this.top_stave.getX()-I-24+M.options.shift_x,N=(this.top_stave.getYForLine(0)+this.bottom_stave.getBottomLineY())/2+M.options.shift_y;e.fillText(""+M.content,R,N+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=_createSuper(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=_createSuper(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"!==_typeof3(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 f=n+7;function d(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f;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()}d(i,a,"red"),d(a,o,"#999"),d(o,s,"green"),d(s,l,"#999"),d(l,u,"red"),d(u,c,"#DD0"),d(i-t.getXShift(),i,"#BBB"),Vex.drawDot(e,o+t.getXShift(),f,"blue");var p=t.getFormatterMetrics();if(p.iterations>0){var m=p.space.deviation,g=m>=0?"+":"";e.setFillStyle("red"),e.fillText(g+Math.round(m),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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=this.dot_shiftY*e;this.note&&"jianpu"==this.note.DYMusicScoreType&&(r=-5);var i=t.y+this.y_shift+r,a=this.context;a.beginPath(),a.arc(n,i,this.radius,0,2*Math.PI,!1),a.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,f=0,d=null,p=null,m=null,g=0,v=0;v<r.length;++v){var y=r[v],b=y.dot,S=y.note,x=y.note_id,w=y.line;w===d&&S===p||(h=i[x]),S.isRest()||w===d||(.5===Math.abs(w%1)?g=0:(g=.5,null==p||p.isRest()||d-w!=.5?w+g===m&&(g=-.5):g=-.5)),S.isRest()?b.dot_shiftY+=-g:b.dot_shiftY=-g,m=w+g,b.setXShift(h),f=(h+=b.getWidth()+1)>f?h:f,d=w,p=S}return t.right_shift+=f,!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=_createSuper(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 f=0;f<this.ys.length;++f){var d=this.ys[f];0===f?(a=d,o=d):(a=Math.min(d,a),o=Math.max(d,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(),f=c.getY();(null===e||f<e)&&(e=f),(null===t||f>t)&&(t=f),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,f=o.lowest_non_displaced_line,d=o.displaced_x,p=o.non_displaced_x,m=Math.min(d,p),g=function(e,t,o){var s;s=o&&t?m-n:t?p-n:d-n;var l=t&&o?a:i;r.beginPath(),r.moveTo(s,e),r.lineTo(s+l,e),r.stroke()},v=_objectSpread2(_objectSpread2({},e.getStyle()||{}),this.getLedgerLineStyle()||{});this.applyStyle(r,v);for(var y=6;y<=s;++y){var b=null!==p&&y<=c,S=null!==d&&y<=u;g(e.getYForNote(y),b,S)}for(var x=0;x>=l;--x){var w=null!==p&&x>=f,_=null!==d&&x>=h;g(e.getYForNote(x),w,_)}this.restoreStyle(r,v)}}},{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();if((!this.isRest()||"articulations"!==n.getCategory())&&(!n.note||"jianpu"!=n.note.DYMusicScoreType||"Dot"!==n.getAttribute("type")||n.note.formatterMetrics.duration)){if(n.note&&"jianpu"==n.note.DYMusicScoreType&&"Dot"===n.getAttribute("type"))try{n.note.getModifierStartXY(n.position,0,{forceFlagRight:!0}).x-n.note.x<9&&(n.x_shift+=7)}catch(a){console.log("🚀 ~ error:",a)}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 f=0;f<c/2;++f)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 d=0;d<c/2;++d)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 f=n.length,d=n[0],p=f>2?n[1]:null,m=f>2?n[2]:n[1];2===f&&-1===d.stemDirection&&1===m.stemDirection&&(d=n[1],m=n[0]);var g,v=Math.max(d.voice_shift,m.voice_shift),y=0;if(2===f){var b=d.stemDirection===m.stemDirection?0:.5;if(d.stemDirection===m.stemDirection&&d.minLine<=m.maxLine&&(d.isrest||(g=Math.abs(d.line-(m.maxLine+.5)),g=Math.max(g,d.stemMin),d.minLine=d.line-g,d.note.setStemLength(10*g))),d.minLine<=m.maxLine+b)if(d.isrest)shiftRestVertical(d,m,1);else if(m.isrest)shiftRestVertical(m,d,-1);else{y=v;var S=Math.abs(d.line-m.line),x=0,w=0;"h"===d.note.duration?x++:"w"===d.note.duration&&w++,"h"===m.note.duration?x++:"w"===m.note.duration&&w++;var _=1===x||1===w||d.note.dots!==m.note.dots;if(r&&(_=_||2===w),0===S&&_){if(m.note.setXShift(y),d.note.dots>0){var k,A=0,E=_createForOfIteratorHelper(d.note.modifiers);try{for(E.s();!(k=E.n()).done;){var C=k.value;if(C instanceof Dot&&(A++,C.setYShift(-10*(m.maxLine-d.line+1)),A===d.note.dots))break}}catch(err){E.e(err)}finally{E.f()}}}else S<1&&S>0?m.note.setXShift(y):d.note.voice!==m.note.voice&&d.stemDirection===m.stemDirection&&(d.line>m.line?1===d.stemDirection?m.note.renderFlag=!1:d.note.renderFlag=!1:m.line>d.line?1===m.stemDirection?d.note.renderFlag=!1:m.note.renderFlag=!1:1===m.stemDirection&&(m.stemDirection=-1,m.note.setStemDirection(-1)))}return!0}if((null!==p&&p.minLine<m.maxLine+.5&&(p.isrest||(g=Math.abs(p.line-(m.maxLine+.5)),g=Math.max(g,p.stemMin),p.minLine=p.line-g,p.note.setStemLength(10*g))),p.isrest&&!d.isrest&&!m.isrest)&&(d.minLine<=p.maxLine||p.minLine<=m.maxLine))return p.maxLine-p.minLine<d.minLine-m.maxLine?centerRest(p,d,m):(y=v+3,p.note.setXShift(y)),!0;return d.isrest&&p.isrest&&m.isrest?(shiftRestVertical(d,p,1),shiftRestVertical(m,p,-1),!0):(p.isrest&&d.isrest&&p.minLine<=m.maxLine&&shiftRestVertical(p,m,1),p.isrest&&m.isrest&&d.minLine<=p.maxLine&&shiftRestVertical(p,d,-1),d.isrest&&d.minLine<=p.maxLine&&shiftRestVertical(d,p,1),m.isrest&&p.minLine<=m.maxLine&&shiftRestVertical(m,p,-1),(!d.isrest&&!p.isrest&&d.minLine<=p.maxLine+.5||!p.isrest&&!m.isrest&&p.minLine<=m.maxLine)&&(y=v+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=_createSuper(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(),f=c.getKeyProps()[u.getIndex()];if(c!==a){for(var d=0;d<c.keys.length;++d){var p=c.getKeyProps()[d];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:f.line,shiftL:o,shiftR:s})}i.sort((function(e,t){return t.line-e.line}));for(var m=0,g=0,v=0,y=0,b=null,S=null,x=0;x<i.length;++x){var w=0,_=i[x],k=_.note,A=_.pos,E=_.num,C=_.line,P=_.shiftL,T=_.shiftR;C===b&&k===S||(m=n+P,g=r+T);var M=E.getWidth()+1;A===Modifier.Position.LEFT?(E.setXShift(n+m),v=(w=n+M)>v?w:v):A===Modifier.Position.RIGHT&&(E.setXShift(g),y=(w=s+M)>y?w:y),b=C,S=k}return t.left_shift+=v,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=_createSuper(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,f=h.parenLeftPadding,d=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),m=p.x+o,g=p.y+s;L$g("Rendering: ",t,m,g),a?(c.render(e,m,g),m-=getGlyphWidth(c),m-=d,m-=this.accidental.parenRightPaddingAdjustment,l.render(e,m,g),m-=getGlyphWidth(l),m-=f,u.render(e,m,g)):l.render(e,m,g),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 f=0;f<u.keys.length;++f)o=u.getKeyProps()[f].displaced?u.getExtraLeftPx():o;a=u}if(null!==c){var d=c.options.spacing_between_lines_px,p=c.getYForLine(h.line),m=Math.round(p/d*2)/2;i.push({y:p,line:m,shift:o,acc:l,lineSpace:d})}else i.push({line:h.line,shift:o,acc:l})}i.sort((function(e,t){return t.line-e.line}));for(var g=[],v=0,y=null,b=0;b<i.length;b++){var S=i[b];null!==y&&y===S.line||g.push({line:S.line,flatLine:!0,dblSharpLine:!0,numAcc:0,width:0}),"b"!==S.acc.type&&"bb"!==S.acc.type&&(g[g.length-1].flatLine=!1),"##"!==S.acc.type&&(g[g.length-1].dblSharpLine=!1),g[g.length-1].numAcc++,g[g.length-1].width+=S.acc.getWidth()+3,v=S.shift>v?S.shift:v,y=S.line}for(var x=0,w=function(e){for(var t=!1,r=e,i=e;i+1<g.length&&!t;)n.checkCollision(g[i],g[i+1])?i++:t=!0;var a=function(e){return g[r+e]},o=function(e){return e.map(a)},s=function(t,n){var r=o([t,n]).map((function(e){return e.line})),i=_slicedToArray(r,2),a=i[0],s=i[1];return _=e,a-s},l=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map(o).every((function(e){return!n.checkCollision.apply(n,_toConsumableArray2(e))}))},u=i-r+1,c=n.checkCollision(g[r],g[i])?"a":"b";switch(u){case 3:"a"===c&&.5===s(1,2)&&.5!==s(0,1)&&(c="second_on_bottom");break;case 4:l([0,2],[1,3])&&(c="spaced_out_tetrachord");break;case 5:"b"===c&&l([1,3])&&(c="spaced_out_pentachord",l([0,2],[2,4])&&(c="very_spaced_out_pentachord"));break;case 6:l([0,3],[1,4],[2,5])&&(c="spaced_out_hexachord"),l([0,2],[2,4],[1,3],[3,5])&&(c="very_spaced_out_hexachord")}var h=void 0,f=void 0;if(u>=7){for(var d=2,p=!0;!0===p;){p=!1;for(var m=0;m+d<g.length;m++)if(n.checkCollision(g[m],g[m+d])){p=!0,d++;break}}for(h=e;h<=i;h++)f=(h-e)%d+1,g[h].column=f,x=x>f?x:f}else for(h=e;h<=i;h++)f=Flow.accidentalColumnsTable[u][c][h-e],g[h].column=f,x=x>f?x:f;_=e=i},_=0;_<g.length;_++)w(_);for(var k=[],A=[],E=0;E<=x;E++)k[E]=0,A[E]=0;k[0]=v+r,A[0]=v+r,g.forEach((function(e){e.width>k[e.column]&&(k[e.column]=e.width)}));for(var C=1;C<k.length;C++)A[C]=k[C]+A[C-1];var P=A[A.length-1],T=0;g.forEach((function(e){for(var t=0,n=T+e.numAcc;T<n;T++){var r=A[e.column-1]+t;i[T].acc.setXShift(r),t+=i[T].acc.getWidth()+3,L$g("Line, accCount, shift: ",e.line,T,r)}})),t.left_shift+=P}}},{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 f=new n(l);t.addAccidental(i,f),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=_createSuper(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=_createSuper(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,f=(u+c)/2+r*e.direction,d=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&&(d=-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+d),t.quadraticCurveTo(l,h+2.3*d,e.last_x_px+a,c+d),t.quadraticCurveTo(l,f+2.3*d,e.first_x_px+i,u+d),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=_createSuper(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=_createSuper(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,f=n[0].shift,d=0;d<n.length;++d){var p=n[d].gracenote_group;p.preFormat(),h=p.getWidth()+n[d].spacing,f=Math.max(h,f)}for(var m=0;m<n.length;++m){var g=n[m].gracenote_group;h=g.getWidth()+n[m].spacing,g.setSpacingFromNextModifier(f-Math.min(h,f))}return t.left_shift+=f,!0}}]),n}(Modifier),Stroke=function(e){_inherits2(n,e);var t=_createSuper(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,f=this.getModifierContext().getModifiers(this.note.getCategory()),d=0;d<f.length;d++){s=f[d].getYs();for(var p=0;p<s.length;p++)(this.note===f[d]||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 m=l;m<=u;m+=h)Glyph.renderGlyph(this.context,c+this.x_shift-4,m,this.render_options.font_scale,"va3");else{var g;for(g=l;g<=u;g+=10)Glyph.renderGlyph(this.context,c+this.x_shift-4,g,this.render_options.font_scale,"va3");this.type===n.Type.RASQUEDO_DOWN&&(a=g+.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=_createSuper(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,f=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 d=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&&(f=l.displaced?o.getExtraRightPx():f);c=o}u.push({pos:s,note:o,num:a,line:d.line,shiftL:h,shiftR:f})}u.sort((function(e,t){return t.line-e.line}));var m=0,g=0,v=0,y=null,b=null;for(i=0;i<u.length;++i){var S=0;o=u[i].note,s=u[i].pos,a=u[i].num;var x=u[i].line;u[i].shiftL;var w=u[i].shiftR;x===y&&o===b||(m=r+w);var _=a.getWidth()+1;s===Modifier.Position.LEFT?(a.setXShift(n),g=(S=h+_)>g?S:g):s===Modifier.Position.RIGHT&&(a.setXShift(m),v=(S+=_)>v?S:v),y=x,b=o}return t.left_shift+=g,t.right_shift+=v,!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=_createSuper(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(),f="tabnotes"===r.getCategory(),d=r.getModifierStartXY(a,i).x,p=!s||f,m=getInitialOffset(r,a),g=(e={},_defineProperty2(e,ABOVE,(function(){o.setOrigin(.5,1);var e=getTopY(r,l)-(l+m)*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+m)*h;return p?Math.max(c.getYForBottomText(n.INITIAL_OFFSET),e):e})),e)[a]();if(!f){var v=a===ABOVE?-1:1,y=f?r.positions[i].str:r.getKeyProps()[i].line,b=(r.getYs()[i]-g)/h+y,S=snapLineToStaff(s,b,a,v);isWithinLines(S,a)&&o.setOrigin(.5,.5),g+=Math.abs(S-b)*h*v}L$e("Rendering articulation at (x: ".concat(d,", y: ").concat(g,")")),o.render(u,d,g)}}],[{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=_createSuper(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=_createSuper(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 f=_TickContext.getNextContext(this.note.getTickContext());h+=f?.5*(f.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=_createSuper(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 f=this.note.getStemExtents();r=f.topY+(f.baseY-f.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=_createSuper(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;function t(t){return e.context?e.context.measureText(t).width:Flow.textWidth(t)}for(var 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))+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,f=0,d=0;d<this.phrase.length;++d){var p=this.phrase[d];0===d&&(p.draw_width+=t),f=p.draw_width+(h?h.draw_width:0)-(1===d?t:0),p.type===n.UP&&(h&&h.type===n.UP&&u(e.x,i),s(e.x,e.y,f,i)),p.type===n.DOWN&&(h&&h.type===n.UP&&l(e.x,e.y,f,i),h&&h.type===n.DOWN&&(u(e.x,e.y,-1),l(e.x,e.y,f,i)),null===h&&(f=p.draw_width,l(e.x,e.y,f,i))),c(e.x+f,p.text),(h=p).x=e.x,e.x+=f}h.type===n.UP?u(h.x+f,i):h.type===n.DOWN&&u(h.x+f,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=_createSuper(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 f=t-this.minTotalWidth,d=f/(this.totalTicks.value()*l),p=0;o.forEach((function(e,t){var n=o[t-1]||0,r=s[e];p+=(e-n)*d,r.setX(r.getX()+p),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,u=(l=a.getTickables().map((function(e){return e.getFormatterMetrics().space.deviation})),-l.reduce((function(e,t){return e+t})));u>0?t=-Math.min(a.getFormatterMetrics().freedom.right,Math.abs(u)):u<0&&(t=s?Math.min(s.getFormatterMetrics().freedom.right,Math.abs(u)):0);var c=Math.min(5,Math.abs(t));t=t>0?c:-c})),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),r.stave&&this.postFormat(),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]:{},r=n.paddingBetween,i=void 0===r?10:r;e.reduce((function(e,t){t.addToModifierContext(new _ModifierContext);var n=(new _TickContext).addTickable(t).preFormat(),r=n.getExtraPx();return n.setX(e+r.left),e+n.getWidth()+r.right+i}),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"===_typeof3(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"===_typeof3(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,f=u[c].stem;if(f)if(f.stem_direction>0){var d=h<1.5?Math.abs(h-1.5)*i:0;f.setResetHeight(d)}else{var p=h>4.5?Math.abs(h-4.5)*i:0;f.setResetHeight(p)}}}}}})),this}}]),e}(),StaveModifier=function(e){_inherits2(n,e);var t=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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 f=Flow.getGlyphProps(o);if(c+=3*i,Glyph.renderGlyph(n,c,h,r.glyph_font_scale,f.code_head),c+=f.getWidth()*i,f.stem){var d=30;f.beam_count&&(d+=3*(f.beam_count-1));var p=h-(d*=i);n.fillRect(c-i,p,i,d),f.flag&&(Glyph.renderGlyph(n,c,p,r.glyph_font_scale,f.code_flag_upstem),s||(c+=6*i))}for(var m=0;m<s;m++)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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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,f=n.getMetrics().x_min;n.getMetrics=function(){return{x_min:f,x_max:f+h,width:h}};var d=(h-r)/2,p=(h-s)/2,m=this;return n.renderToStave=function(e){for(var t=e+d,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(m.topLine)),t+=r.getMetrics().width}t=e+p;for(var i=0;i<this.botGlyphs.length;++i){var a=this.botGlyphs[i];m.placeGlyphOnLine(a,this.stave,a.line),Glyph.renderOutline(this.context,a.metrics.outline,a.scale,t+a.x_shift,this.stave.getYForLine(m.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=_createSuper(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=_createSuper(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++)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 _objectSpread2({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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("number"!=typeof e)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 t=this.start_x-this.x,n=this.modifiers[0];return n.getType()===Barline.type.REPEAT_BEGIN&&t>n.getWidth()&&(t-=n.getWidth()),t}},{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,f=0;f<o.length;f++){h="barlines"===(n=o[f]).getCategory()?f:h,c.right=0,c.left=0,c.paddingRight=0,c.paddingLeft=0;var d=n.getLayoutMetrics();d?(0!==f&&(c.right=d.xMax||0,c.paddingRight=d.paddingRight||0),c.left=-d.xMin||0,c.paddingLeft=d.paddingLeft||0,f===o.length-1&&(c.paddingLeft=0)):(c.paddingRight=n.getPadding(f-h)||0,0!==f&&(c.right=n.getWidth()||0),0===f&&(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),"jianpu"===this.options.DYMusicScoreType?this.applyStyle(this.context,{strokeStyle:"transparent"}):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=_createSuper(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=_createSuper(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=getPartialStemLines(t,getUnusedStringGroups(this.stave.getNumLines(),this.positions.map((function(e){return e.str}))),this.getStave(),this.getStemDirection());n.save(),n.setLineWidth(Stem.WIDTH),i.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=_createSuper(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=_createSuper(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 f=t+.5*(n-t)-.5*(i*c[2].width+o*c[2].width+s*c[1].width+(i+o+s-1)*h),d=this.stave.getYForLine(this.render_options.line-1),p=this.stave.getYForLine(this.render_options.line),m=this.stave.getYForLine(this.render_options.line+1);e.save(),e.setStrokeStyle("none"),e.setLineWidth(0);for(var g=0;g<i;++g)e.fillRect(f,p-c[2].height,c[2].width,c[2].height),e.fillRect(f,m-c[2].height,c[2].width,c[2].height),f+=c[2].width+h;for(var v=0;v<o;++v)e.fillRect(f,p-c[2].height,c[2].width,c[2].height),f+=c[2].width+h;for(var y=0;y<s;++y)Glyph.renderGlyph(e,f,d,this.render_options.semibrave_rest_glyph_scale,l.glyph_code),f+=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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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,f=Flow.STEM_HEIGHT;f-=f/2.8,c+=(f+=h)*t*o;var d=o===Flow.Stem.UP?{x1:1,y1:0,x2:13,y2:-9}:{x1:-4,y1:1,x2:13,y2:9};i={x1:u+=d.x1*r,y1:c+=d.y1*r,x2:u+d.x2*r,y2:c+d.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,f=Math.cos(u)*n.beam*a,d=Math.sin(u)*n.beam,p=this.getStemX(),m=r.notes[0].getStemX(),g=this.beam.getBeamYToDraw()+(p-m)*i;return{x1:p-c,y1:g+e-h,x2:p+s*a+f,y2:g+l+d}}}],[{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=_createSuper(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=_createSuper(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=_createSuper(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),f=c(this.render_options.position_end);return h===n.Position.NEAR_TOP&&(l="topY",u="topY"),f===n.Position.NEAR_HEAD?u="baseY":f===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=_createSuper(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,f=n.y,d=Math.sqrt((h-u)*(h-u)+(f-c)*(f-c)),p=(d-r.arrowhead_length/3)/d;r.draw_end_arrow||l?(i=Math.round(u+(h-u)*p),a=Math.round(c+(f-c)*p)):(i=h,a=f),r.draw_start_arrow||l?(o=u+(h-u)*(1-p),s=c+(f-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 m,g,v,y,b=Math.atan2(f-c,h-u),S=Math.abs(r.arrowhead_length/Math.cos(r.arrowhead_angle));(r.draw_end_arrow||l)&&(m=b+Math.PI+r.arrowhead_angle,v=h+Math.cos(m)*S,y=f+Math.sin(m)*S,g=b+Math.PI-r.arrowhead_angle,drawArrowHead(e,v,y,h,f,h+Math.cos(g)*S,f+Math.sin(g)*S)),(r.draw_start_arrow||l)&&(m=b+r.arrowhead_angle,v=u+Math.cos(m)*S,y=c+Math.sin(m)*S,g=b-r.arrowhead_angle,drawArrowHead(e,v,y,u,c,u+Math.cos(g)*S,c+Math.sin(g)*S))}var _StaveLine=function(e){_inherits2(n,e);var t=_createSuper(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 f=s.text_position_vertical;return f===n.TextVerticalPosition.TOP?l=a.getStave().getYForTopText():f===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=_createSuper(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 f=h.getYForBottomText(o.line+3);t&&t>f&&(f=t);var d=u[l+1]===s,p=u[l-1]===s,m=0;if(a)if(m=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+m,f):(r.ChangeBegin&&(c+=5),i.moveTo(c,f-o.render_options.bracket_height),r.ChangeBegin&&(c+=5),i.lineTo(c+m,f)),i.stroke(),i.closePath();else if(o.custom_depress_text){var g=i.measureText(o.custom_depress_text).width;i.fillText(o.custom_depress_text,c-g/2,f),m=g/2+o.render_options.text_margin_right}else drawPedalGlyph("pedal_depress",i,c,f,o.render_options.glyph_point_size),m=20+o.render_options.text_margin_right;else m=d&&!r.EndsStave?-5:0,i.beginPath(),i.moveTo(e,t),i.lineTo(c+m,f),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,f-o.render_options.bracket_height)),i.stroke(),i.closePath();e=c+m,t=f}))}},{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=_createSuper(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=_objectSpread2(_objectSpread2({},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,f=l,d=i.x+this.stop.getGlyph().getWidth();this.position===n.Positions.TOP?(h+=o+u+5,f-=c/2.7):this.position===n.Positions.BOTTOM&&(f+=c/2.7,h+=o+2,this.render_options.underline_superscript||(h+=u)),this.render_options.dashed?(Renderer.drawDashedLine(e,h,f,d,f,this.render_options.dash),this.render_options.show_bracket&&Renderer.drawDashedLine(e,d,f+1*this.position,d,f+a,this.render_options.dash)):(e.beginPath(),e.moveTo(h,f),e.lineTo(d,f),this.render_options.show_bracket&&e.lineTo(d,f+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=_createSuper(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=_createSuper(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"!==_typeof3(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=_createSuper(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=_createSuper(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],n=t?new RegExp("^(("+e+"))"):new RegExp("^(("+e+")\\s*)"),r=this.line.slice(this.pos),i=r.match(n);return null!==i?{success:!0,matchedString:i[2],incrementPos:i[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"!==_typeof3(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=_objectSpread2(_objectSpread2({},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,f=l.map((function(e){return e.key+"/"+e.octave})),d=t.StaveNote({keys:f,duration:u,dots:c,type:h,clef:i,auto_stem:a});a||d.setStemDirection(o);var p=l.map((function(e){return e.accid||null}));p.forEach((function(e,n){e&&d.addAccidental(n,t.Accidental({type:e}))}));for(var m=0;m<c;m++)d.addDotToAll();this.commitHooks.forEach((function(t){return t(n,d,e)})),this.elements.notes.push(d),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=_objectSpread2({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=_objectSpread2({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=_objectSpread2({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=_createSuper(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){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;return new e({renderer:{elementId:t,width:n,height:r}})}}]),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=_createSuper(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]:ArpeggioType.ARPEGGIO_DIRECTIONLESS;_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=_createSuper(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:(log$2.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 NoteHeadShape.NORMAL;case"x":return NoteHeadShape.X;case"slash":return NoteHeadShape.SLASH;case"diamond":return NoteHeadShape.DIAMOND;case"square":case"la":return NoteHeadShape.SQUARE;case"do":case"triangle":return NoteHeadShape.TRIANGLE;case"rectangle":return NoteHeadShape.RECTANGLE;case"circle-x":return NoteHeadShape.CIRCLEX;default:return log$2.info("unsupported/unhandled xml notehead '"+e+"'. Using normal notehead."),NoteHeadShape.NORMAL}}}]),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(e.alignment===AlignmentType.End&&t.alignment===AlignmentType.End){if(e.parentRepetition.StartIndex<t.parentRepetition.StartIndex)return 1;if(e.parentRepetition.StartIndex>t.parentRepetition.StartIndex)return-1}if(e.alignment===AlignmentType.Begin&&t.alignment===AlignmentType.Begin){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]:AlignmentType.End,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(this.alignment===AlignmentType.Begin){if(t.alignment===AlignmentType.End)return-1;switch(this.type){case RepetitionInstructionEnum.Ending:return 1;case RepetitionInstructionEnum.StartLine:return t.type===RepetitionInstructionEnum.Ending?-1:1;case RepetitionInstructionEnum.Coda:case RepetitionInstructionEnum.Segno:return t.type===RepetitionInstructionEnum.Coda?1:-1}}else{if(t.alignment===AlignmentType.Begin)return 1;switch(this.type){case RepetitionInstructionEnum.Ending:return-1;case RepetitionInstructionEnum.Fine:case RepetitionInstructionEnum.ToCoda:return t.type===RepetitionInstructionEnum.Ending?1:-1;case RepetitionInstructionEnum.ForwardJump:switch(t.type){case RepetitionInstructionEnum.Ending:case RepetitionInstructionEnum.Fine:case RepetitionInstructionEnum.ToCoda:return 1}return-1;case RepetitionInstructionEnum.DalSegnoAlFine:case RepetitionInstructionEnum.DaCapoAlFine:case RepetitionInstructionEnum.DalSegnoAlCoda:case RepetitionInstructionEnum.DaCapoAlCoda:case RepetitionInstructionEnum.DaCapo:case RepetitionInstructionEnum.DalSegno:case RepetitionInstructionEnum.BackJumpLine: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 f=new VerticalSourceStaffEntryContainer(this,e.clone(),this.completeNumberOfStaves);this.verticalSourceStaffEntryContainers.splice(c,0,f),a=new SourceStaffEntry(f,n),f.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,f=r.length;h<f;++h){var d=r[h];n.lt(d)&&(n=d)}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 f=l.value;if(f){var d,p=_createForOfIteratorHelper(f.StaffEntries);try{for(p.s();!(d=p.n()).done;){var m=d.value;if(m&&m.ParentStaff.ParentInstrument.Visible){if(m.ChordContainers.length>0)return!1;if(m.ParentStaff.hasLyrics&&(c=!0),this.firstRepetitionInstructions.length>0||this.lastRepetitionInstructions.length>0)return!1;var g,v=_createForOfIteratorHelper(m.VoiceEntries);try{for(v.s();!(g=v.n()).done;){var y,b=_createForOfIteratorHelper(g.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){v.e(err)}finally{v.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 S,x=_createForOfIteratorHelper(this.staffLinkedExpressions);try{for(x.s();!(S=x.n()).done;){if(S.value.length>0)return!1}}catch(err){x.e(err)}finally{x.f()}var w,_=_createForOfIteratorHelper(this.lastInstructionsStaffEntries);try{for(_.s();!(w=_.n()).done;)for(var k=w.value,A=0,E=null==k?void 0:k.Instructions.length;A<E;++A){if(k.Instructions[A]instanceof ClefInstruction)return!1}}catch(err){_.e(err)}finally{_.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 log$2.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=StemDirectionType.Undefined,this.stemDirectionXml=StemDirectionType.Undefined,this.stemDirection=StemDirectionType.Undefined,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(e.value.articulationEnum===ArticulationEnum.staccato)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(n.articulationEnum===ArticulationEnum.accent||n.articulationEnum===ArticulationEnum.strongaccent)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 ArticulationEnum.accent:case ArticulationEnum.strongaccent:case ArticulationEnum.invertedstrongaccent:case ArticulationEnum.staccato:case ArticulationEnum.staccatissimo:case ArticulationEnum.spiccato:case ArticulationEnum.tenuto:case ArticulationEnum.fermata:case ArticulationEnum.invertedfermata:case ArticulationEnum.breathmark:case ArticulationEnum.caesura:case ArticulationEnum.lefthandpizzicato:case ArticulationEnum.naturalharmonic:case ArticulationEnum.snappizzicato:case ArticulationEnum.upbow:case ArticulationEnum.downbow:case ArticulationEnum.bend:case ArticulationEnum.detachedlegato: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=_createSuper(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 f=c.value,d=0;switch(this.Label.textAlignment){case TextAlignmentEnum.RightBottom:case TextAlignmentEnum.RightCenter:case TextAlignmentEnum.RightTop:d=a-f.width;break;case TextAlignmentEnum.CenterBottom:case TextAlignmentEnum.CenterCenter:case TextAlignmentEnum.CenterTop:d=(a-f.width)/2}f.xOffset=d}}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 m=this.PositionAndShape;switch(this.Label.textAlignment){case TextAlignmentEnum.CenterBottom:m.BorderTop=-p,m.BorderLeft=-a/2,m.BorderBottom=0,m.BorderRight=a/2;break;case TextAlignmentEnum.CenterCenter:m.BorderTop=-p/2,m.BorderLeft=-a/2,m.BorderBottom=p/2,m.BorderRight=a/2;break;case TextAlignmentEnum.CenterTop:m.BorderTop=0,m.BorderLeft=-a/2,m.BorderBottom=p,m.BorderRight=a/2;break;case TextAlignmentEnum.LeftBottom:m.BorderTop=-p,m.BorderLeft=0,m.BorderBottom=0,m.BorderRight=a;break;case TextAlignmentEnum.LeftCenter:m.BorderTop=-p/2,m.BorderLeft=0,m.BorderBottom=p/2,m.BorderRight=a;break;case TextAlignmentEnum.LeftTop:m.BorderTop=0,m.BorderLeft=0,m.BorderBottom=p,m.BorderRight=a;break;case TextAlignmentEnum.RightBottom:m.BorderTop=-p,m.BorderLeft=-a,m.BorderBottom=0,m.BorderRight=0;break;case TextAlignmentEnum.RightCenter:m.BorderTop=-p/2,m.BorderLeft=-a,m.BorderBottom=p/2,m.BorderRight=0;break;case TextAlignmentEnum.RightTop:m.BorderTop=0,m.BorderLeft=-a,m.BorderBottom=p,m.BorderRight=0}m.BorderMarginTop=m.BorderTop-p*n,m.BorderMarginLeft=m.BorderLeft-p*n,m.BorderMarginBottom=m.BorderBottom+p*n,m.BorderMarginRight=m.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,f,d,p=0,m=(null===(c=this.graphicalMusicSheet)||void 0===c||null===(h=c.MusicPages)||void 0===h||null===(f=h[0])||void 0===f?void 0:f.MusicSystems)||[];try{for(var g=0;g<m.length;g++){var v=m[g];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=(d=y[0]).PositionAndShape.AbsolutePosition.y-d.PositionAndShape.Size.height/2);break}if(v.PositionAndShape.AbsolutePosition.y-10<e.PositionAndShape.AbsolutePosition.y&&e.PositionAndShape.AbsolutePosition.y<v.PositionAndShape.AbsolutePosition.y+10){for(var b,S,x=(null==v?void 0:v.GraphicalMeasures.map((function(e){return e[0]})).filter(Boolean))||[],w=[],_=!1,k=0;k<x.length;k++){var A,E,C,P=x[k];if(1===(null===(A=P.vfVoices)||void 0===A||null===(E=A[1])||void 0===E||null===(C=E.tickables)||void 0===C?void 0:C.length)&&P.PositionAndShape.AbsolutePosition.x<e.PositionAndShape.AbsolutePosition.x&&e.PositionAndShape.AbsolutePosition.x<P.PositionAndShape.AbsolutePosition.x+P.PositionAndShape.Size.width){d=P,_=!0;break}var T=P.PositionAndShape.AbsolutePosition.x+P.PositionAndShape.Size.width,M=e.PositionAndShape.AbsolutePosition.x;T-15<M&&M<T+15&&w.push({measure:P,x:Math.abs(M-T)})}if(_)break;d=null===(b=w.sort((function(e,t){return e.x-t.x})))||void 0===b||null===(S=b[0])||void 0===S?void 0:S.measure;break}}}catch(X){console.log("🚀 ~ error",X)}var I,R,N=0;if(d)N=(null===(I=d.stave)||void 0===I?void 0:I.end_x)||0;else N=(null===(R=a.sourceNote.SourceMeasure.VerticalMeasureList[0])||void 0===R?void 0:R.getVFStave()).end_x;s.ScreenPosition.x=N,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));for(var D=["ffp","p-f","sfzp","szf","sffzp"],B=0;B<D.length;B++){var F=D[B].replace(/ /g,""),O=o.text.replace(/ /g,"");if(O.toLocaleLowerCase()===F.toLocaleLowerCase()||O.includes(F)){o.fontStyle=3,"sfzp"===o.text&&(o.fontHeight=2.3);break}}"R"!=o.text&&"L"!=o.text||(s.ScreenPosition.x+=5),"r"!==o.text&&"l"!==o.text||(s.ScreenPosition.x+=6);var V=e.PositionAndShape.Size.width/2*10;if(l.x-V<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 G,z=-1,U=!1,H=_createForOfIteratorHelper((null==u?void 0:u.AbstractExpressions)||[]);try{for(H.s();!(G=H.n()).done;){var j,W,q=G.value;if(q.Label===e)z=null==q||null===(W=q.parentMeasure)||void 0===W?void 0:W.measureListIndex;else null!==(j=q.expression)&&void 0!==j&&j.TempoInBpm&&(U=q.expression.TempoInBpm>0);if(U&&z>-1){s.ScreenPosition.y-=40;break}}}catch(err){H.e(err)}finally{H.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,f=_createForOfIteratorHelper(e.Labels);try{for(f.s();!(h=f.n()).done;){var d=h.value;d.SVGNode=this.drawLabel(d,GraphicalLayers.Notes)}}catch(err){f.e(err)}finally{f.f()}}var p,m=this.graphicalMusicSheet.ParentMusicSheet.Instruments,g=m.filter((function(e){return e.Visible})).length,v=_createForOfIteratorHelper(e.InstrumentBrackets);try{for(v.s();!(p=v.n()).done;){var y=p.value;this.drawInstrumentBrace(y,e)}}catch(err){v.e(err)}finally{v.f()}if(m.length>0)if(g>1){var b,S=_createForOfIteratorHelper(e.GroupBrackets);try{for(S.s();!(b=S.n()).done;){var x=b.value;this.drawGroupBracket(x,e)}}catch(err){S.e(err)}finally{S.f()}}else{var w,_=_createForOfIteratorHelper(e.GroupBrackets);try{for(_.s();!(w=_.n()).done;){w.value.Visible=!1}}catch(err){_.e(err)}finally{_.f()}}if(!this.leadSheet){var k,A=_createForOfIteratorHelper(e.MeasureNumberLabels);try{for(A.s();!(k=A.n()).done;){var E=k.value;E.SVGNode=this.drawLabel(E,GraphicalLayers.Notes)}}catch(err){A.e(err)}finally{A.f()}}var C,P=_createForOfIteratorHelper(e.StaffLines);try{for(P.s();!(C=P.n()).done;){var T=C.value;this.drawStaffLineSymbols(T)}}catch(err){P.e(err)}finally{P.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,f=h.PositionAndShape,d=f.AbsolutePosition.x,p=f.AbsolutePosition.y+2;h.hasError&&this.graphicalMusicSheet.ParentMusicSheet.DrawErroneousMeasures&&this.drawLineAsHorizontalRectangle(new GraphicalLine(new PointF2D(d,p),new PointF2D(d+f.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=_createSuper(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=_createSuper(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=_createSuper(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:log$2.error("Placement for GraphicalInstantaneousDynamicExpression is unknown")}}}]),n}(AbstractGraphicalExpression),GraphicalContinuousDynamicExpression=function(e){_inherits2(n,e);var t=_createSuper(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&&log$2.warn("Not enough lines for SkyBottomLine calculation"),this.IsVerbal)||this.ContinuousDynamic.DynamicType!==ContDynamicEnum.crescendo&&this.ContinuousDynamic.DynamicType!==ContDynamicEnum.diminuendo&&log$2.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:log$2.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=_createSuper(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:log$2.error("Placement for GraphicalUnknownExpression is unknown")}}}]),n}(AbstractGraphicalExpression);Vex.Flow;var unitInPixels=10,VexFlowMusicSheetDrawer=function(e){_inherits2(n,e);var t=_createSuper(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){log$2.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),f=new PointF2D(i[0]/c+s.x,s.y);this.drawLine(h,f,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 d=1;d<i.length;d++)h=new PointF2D(i[d-1]/c+s.x,s.y+e[i[d-1]]),f=new PointF2D(i[d]/c+s.x,s.y+e[i[d-1]]),this.drawLine(h,f,r),l=new PointF2D(i[d]/c+s.x,s.y+e[i[d-1]]),u=new PointF2D(i[d]/c+s.x,s.y+e[i[d]]),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]]),f=new PointF2D(s.x+n,s.y+e[i[i.length-1]]),this.drawLine(h,f,r)):(h=new PointF2D(i[i.length-1]/c+s.x,s.y),f=new PointF2D(s.x+n,s.y),this.drawLine(h,f,r))}else{var p=new PointF2D(s.x,s.y),m=new PointF2D(s.x+n,s.y);this.drawLine(p,m,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){log$2.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 f=this.getDotId(h),d=this.getDotId(h,"x");l[f]||(l[f]=[]),u[d]||(u[d]=[]),this.hasDot(h.Label.PositionAndShape.RelativePosition,l[f],!0)||(l[f].push(h.Label.PositionAndShape.RelativePosition),u[d].push(h.Label.PositionAndShape.RelativePosition)),s[f]=h.Label.PositionAndShape.RelativePosition}}}catch(err){c.e(err)}finally{c.f()}var p,m=0,g=_createForOfIteratorHelper(e.AbstractExpressions);try{for(g.s();!(p=g.n()).done;){var v,y=p.value,b=null===(v=y.parentMeasure)||void 0===v?void 0:v.MeasureNumber;if(y instanceof GraphicalUnknownExpression&&n.includes(b)){var S,x=null===(S=y.parentMeasure.verticalMeasureList[0])||void 0===S?void 0:S.stave,w=(null==x?void 0:x.end_x)-(null==x?void 0:x.x),_=this.getDotId(y,"x");if(1===(u[_]||[]).length&&m!==b){var k=y.Label.PositionAndShape.AbsolutePosition.y;r=0===r?k:Math.min(r,k)}1!==(u[_]||[]).length&&w/10<y.Label.PositionAndShape.MarginSize.width&&(m=b+1)}}}catch(err){g.e(err)}finally{g.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 f=l.Label.PositionAndShape.AbsolutePosition.y;n[h]?r.includes(c)||0===n[h]||(l.Label.PositionAndShape.AbsolutePosition.y=f-1):(n[h]=-Math.abs(a-f),l.Label.PositionAndShape.AbsolutePosition.y=f+n[h]),r.push(c)}var d=l.Label;d.SVGNode=this.drawLabel(d,GraphicalLayers.Notes)}else log$2.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)>Number.EPSILON){var n=Math.min.apply(Math,_toConsumableArray2(e.Lines.map((function(e){return e.Start.x})))),r=Math.min.apply(Math,_toConsumableArray2(e.Lines.map((function(e){return e.Start.y}))));e.Lines[0].Start.x=n,e.Lines[1].Start.x=n,e.Lines[0].Start.y=r+this.rules.WedgeOpeningLength/2,e.Lines[1].Start.y=r+2*this.rules.WedgeOpeningLength,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],f=this.calculatePixelDistance(h.xOffset),d=new PointF2D(t.ScreenPosition.x+f,t.ScreenPosition.y),p=this.backend.renderText(r,s,i,h.text,t.FontHeightInPixel,d,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,f=e.durations(c,h)[0];void 0!==s.sourceNote.TypeLength&&s.sourceNote.TypeLength!==c&&0!==s.sourceNote.TypeLength.RealValue&&(f=e.durations(s.sourceNote.TypeLength,h)[0],s.numberOfDots=s.sourceNote.DotsXml);var d,p,m,g=void 0,v=s.numberOfDots,y=!1,b=0,S=!1,x=!1,w=_createForOfIteratorHelper(a);try{for(w.s();!(p=w.n()).done;){var _,k,A=p.value;if(v<A.numberOfDots&&(v=A.numberOfDots),A.sourceNote.isRest()){if(x=!0,A.sourceNote.Pitch){l=[A.vfpitch[0]];break}var E;l=["b/4"];var C=null===(E=A.parentVoiceEntry)||void 0===E?void 0:E.parentVoiceEntry;if(C){for(var P,T,M,I,R,N=null===(P=A.parentVoiceEntry)||void 0===P?void 0:P.parentStaffEntry.parentMeasure.staffEntries,L=void 0,D=void 0,B=-1,F=0;F<N.length;F++){var O;if((null===(O=N[F])||void 0===O?void 0:O.graphicalVoiceEntries[0].parentVoiceEntry)===C){B=F;break}}if(B>=1&&N.length-1>=B+1)if(L=null===(T=N[B-1])||void 0===T||null===(M=T.graphicalVoiceEntries[0])||void 0===M?void 0:M.parentVoiceEntry,D=null===(I=N[B+1])||void 0===I||null===(R=I.graphicalVoiceEntries[0])||void 0===R?void 0:R.parentVoiceEntry,L&&D){var V,G=L.Notes[0],z=D.Notes[0];if(null!==(V=G.NoteBeam)&&void 0!==V&&V.Notes.includes(z)&&1!==z.ParentStaffEntry.ParentStaff.StafflineCount){var U=L.Notes.last().Pitch,H=A.Clef(),j=e.pitch(e.restToNotePitch(U.getTransposedPitch(-2),H.ClefType),!1,H);4===U.FundamentalNote&&(l=[j[0]])}}}c.RealValue===A.sourceNote.SourceMeasure.ActiveTimeSignature.RealValue&&(l="staff"===o.DYMusicScoreType?["d/5"]:["R/5"],f="w",v=0,y=!0,b=o.WholeRestXShiftVexflow*unitInPixels);var W=_toConsumableArray2(A.sourceNote.ParentStaff.Voices).filter((function(e){return 1!=(null==e?void 0:e.VoiceId)}));if(W.length){var q,X=A.parentVoiceEntry.parentStaffEntry.graphicalVoiceEntries,Y=A.parentVoiceEntry.parentVoiceEntry.ParentVoice.VoiceId,Q=void 0,K=void 0,Z=_createForOfIteratorHelper(X);try{for(Z.s();!(q=Z.n()).done;){var J,$=_createForOfIteratorHelper(q.value.notes);try{for($.s();!(J=$.n()).done;){var ee=J.value;if(ee!==A&&!ee.sourceNote.isRest()&&ee.sourceNote.PrintObject){var te=ee.parentVoiceEntry.parentVoiceEntry.WantedStemDirection,ne=1===Y||5===Y,re=ne?1:-1,ie=ee.sourceNote.Pitch.getHalfTone();(!Q||1===re&&ie>Q||-1===re&&ie<Q)&&(Q=ie,K=0,ne&&te===StemDirectionType.Up?K+=7:ne||te!==StemDirectionType.Down?K+=ne?1:2:K+=7,f.includes("8")||te===StemDirectionType.Up&&-1===re&&(K+=1),ee.sourceNote.NoteBeam&&(K+=1),f.includes("w")&&(K=3.5),K+=.5*Math.ceil(o.RestCollisionYPadding),K*=re,A.lineShift=K)}else A.lineShift=-2}}catch(err){$.e(err)}finally{$.f()}}}catch(err){Z.e(err)}finally{Z.f()}if(Q>0){var ae=3,oe=A.Clef();switch(oe.ClefType){case ClefEnum.F:ae=5;break;case ClefEnum.C:ae=4}d=Pitch.fromHalftone(Q),l=[e.pitch(d,!0,oe,void 0,ae)[0]]}}break}A.sourceNote.Notehead&&A.sourceNote.Notehead.Shape===NoteHeadShape.SLASH&&(S=!0);var se=A.vfpitch;if(null!==(_=se[2])&&void 0!==_&&null!==(k=_.Parent)&&void 0!==k&&k.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]),!g)g=e.Clef(se[2]).type;"percussion"===g&&1===A.sourceNote.ParentStaff.StafflineCount&&(l=["b/4"])}}catch(err){w.e(err)}finally{w.f()}if(!g)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(ze){}for(var fe=0,de=v;fe<de;++fe)f+="d";S&&(f+="s"),x&&(f+="r");var pe={align_center:y,auto_stem:!1,clef:g,duration:f,keys:l,stem_direction:1,slash:t.GraceSlash,note_size:20,DYMusicScoreType:o.DYMusicScoreType,keyString:e.keySignature(i)},me=t.notes[0].sourceNote;me.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,m=new _NumberedNote(pe)):m=new VF$c.GraceNote(pe):(m="jianpu"===o.DYMusicScoreType?new _NumberedNote(pe):new VF$c.StaveNote(pe)).stagger_same_whole_notes=o.StaggerSameWholeNotes;var ge,ve,ye=t.notes[0].lineShift;(0!==ye&&(m.getKeyProps()[0].line+=ye),null===(n=window.GYM)||void 0===n?void 0:n.isDrumset)&&(t.notes[0].sourceNote.isRest()&&(null===(ge=t.notes[0].sourceNote.ParentStaffEntry)||void 0===ge||null===(ve=ge.VoiceEntries)||void 0===ve?void 0:ve.length)>1&&1==t.notes[0].sourceNote.ParentVoiceEntry.ParentVoice.VoiceId&&(m.getKeyProps()[0].line=4.5));var be=null===(r=window.GYM)||void 0===r?void 0:r.customBassDrum;if(be&&m.isRest()&&("q"===m.getDuration()&&(m.getKeyProps()[0].line=be),"h"===m.getDuration()&&(m.getKeyProps()[0].line=be-1)),m.getKeyProps().forEach((function(e,n){var r=e.line;return t.notes[n].staffLine=r})),(o.LedgerLineWidth||o.LedgerLineStrokeStyle)&&(m.ledgerLineStyle||(m.ledgerLineStyle={}),o.LedgerLineWidth&&(m.ledgerLineStyle.lineWidth=o.LedgerLineWidth),o.LedgerLineStrokeStyle&&(m.ledgerLineStyle.strokeStyle=o.LedgerLineStrokeStyle)),o.ColoringEnabled){var Se=o.DefaultColorStem,xe=t.parentVoiceEntry.StemColor;!xe&&Se&&(xe=Se);var we={fillStyle:xe,strokeStyle:xe};xe&&(m.setStemStyle(we),m.flag&&o.ColorFlags&&m.setFlagStyle(we))}if(m.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 _e,ke=t.parentVoiceEntry.WantedStemDirection,Ae=(null===(_e=window.GYM)||void 0===_e?void 0:_e.stemDirectionNote)||[],Ee=null==Ae?void 0:Ae.find((function(e){return e.id===t.notes[0].sourceNote.NoteToGraphicalNoteObjectId}));switch(Ee&&"number"==typeof(null==Ee?void 0:Ee.direction)&&(ke=Ee.direction),ke){case StemDirectionType.Up:m.setStemDirection(VF$c.Stem.UP),t.parentVoiceEntry.StemDirection=StemDirectionType.Up;break;case StemDirectionType.Down:m.setStemDirection(VF$c.Stem.DOWN),t.parentVoiceEntry.StemDirection=StemDirectionType.Down}}for(var Ce=0,Pe=a.length;Ce<Pe;Ce+=1){if(a[Ce].setIndex(m,Ce),u[Ce]){if("###"===u[Ce]){m.addAccidental(Ce,new VF$c.Accidental("##")),m.addAccidental(Ce,new VF$c.Accidental("#"));continue}if("bbs"===u[Ce]){m.addAccidental(Ce,new VF$c.Accidental("bb")),m.addAccidental(Ce,new VF$c.Accidental("b"));continue}m.addAccidental(Ce,new VF$c.Accidental(u[Ce]))}var Te=a[Ce].sourceNote.TremoloStrokes,Me=a[Ce].sourceNote.TremoloType;if(Te>0&&"single"===Me){var Ie=new VF$c.Tremolo(Te);Ie.extra_stroke_scale=o.TremoloStrokeScale,Ie.y_spacing_scale=o.TremoloYSpacingScale,m&&"w"===m.duration&&m.stem.setExtension(-9),m.addModifier(Ce,Ie)}if(Te>0&&"start"===Me&&this.noteTremoloList.push(m),Te>0&&"stop"===Me){this.noteTremoloList.push(m);var Re=this.noteTremoloList.filter((function(e){return"w"===e.duration})).length===this.noteTremoloList.length;if(Re)try{var Ne;if(this.noteTremoloList[0].keyProps&&this.noteTremoloList[1].keyProps)null===(Ne=(this.noteTremoloList[0].keyProps[0].line>this.noteTremoloList[1].keyProps[0].line?this.noteTremoloList[1]:this.noteTremoloList[0]).stem)||void 0===Ne||Ne.setResetHeight(30)}catch(ze){console.error("设置都是全音符,stem的高度失败")}var Le=new VF$c.Tremolo(Te,_toConsumableArray2(this.noteTremoloList));Le.extra_stroke_scale=1.2,Le.y_spacing_scale=1.2,Le.x_shift=-30,m.addModifier(Ce,Le),this.noteTremoloList=[]}this.glissandoList.length&&(m.setVibrato(this.glissandoList[0].vfnote[0]),this.glissandoList=[]),"start"===a[Ce].sourceNote.glissandoType&&this.glissandoList.push(a[Ce])}if(this.slideNote){try{m.setSlideNote(this.slideNote)}catch(ze){console.error(ze)}this.slideNote=null}if("start"===t.notes[0].sourceNote.slideType&&(this.slideNote=m),.25===me.Length.RealValue&&me.Notehead&&!1===me.Notehead.Filled)for(var De=m.getKeyProps(),Be=0;Be<De.length;Be++)De[Be].code="v81";for(var Fe=0,Oe=v;Fe<Oe;++Fe)m.addDotToAll();if(l.length>1){var Ve,Ge=m.getKeyProps().filter((function(e){return!e.code&&e.line>3}));(null===(Ve=window.GYM)||void 0===Ve?void 0:Ve.stemDirectionNote)||Ge.length!==l.length||m.setStemDirection(-1)}"jianpu"===o.DYMusicScoreType&&window&&window.sett&&window.sett.keySignature&&m.addAccidental(0,new VF$c.Accidental("#"));try{!function(){var e,t=["b","#","§","º","X"],n={b:"b","#":"#","§":"n","º":"bb",X:"##"},r=_createForOfIteratorHelper(a);try{for(r.s();!(e=r.n()).done;){var i,o=e.value,s=o.sourceNote.voiceEntry.Timestamp,l=_createForOfIteratorHelper(o.sourceNote.SourceMeasure.StaffLinkedExpressions);try{for(l.s();!(i=l.n()).done;){var u,c=_createForOfIteratorHelper(i.value);try{for(c.s();!(u=c.n()).done;){var h=u.value,f=Fraction$1.Equal(s,h.Timestamp),d=h.EntriesList.map((function(e){return e.label})).filter((function(e){return t.includes(e)})),p=d.map((function(e){return n[e]}));if(f){var g,v=_createForOfIteratorHelper(p);try{for(v.s();!(g=v.n()).done;){var y=g.value;y&&m.addAnnotation(0,new VF$c.Annotation(y))}}catch(err){v.e(err)}finally{v.f()}break}}}catch(err){c.e(err)}finally{c.f()}}}catch(err){l.e(err)}finally{l.f()}}}catch(err){r.e(err)}finally{r.f()}}()}catch(ze){}return m}},{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,f,d,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!==(f=h.filter((function(e){return["TREMOLO"].includes(e.getCategory().toLocaleUpperCase())})))&&void 0!==f&&f.length&&s.setYShift(-16);if(l===ArticulationEnum.strongaccent)o=VF$c.Modifier.Position.ABOVE,(null===(d=window.GYM)||void 0===d?void 0:d.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 log$2.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 f=0,d=u;f<d;++f)l+="d";for(var p=new VF$c.TabNote({duration:l,positions:r}),m=0,g=i.length;m<g;m+=1)i[m].setIndex(p,m);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&&(log$2.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",log$2.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",log$2.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",log$2.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:log$2.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>3?arguments[3]:void 0),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i="normal",a="normal",o="'".concat(n.DefaultFontFamily,"'");switch(t){case FontStyles.Bold:a="bold";break;case FontStyles.Italic:i="italic";break;case FontStyles.BoldItalic:i="italic",a="bold";case FontStyles.Underlined:}return Fonts.Kokila,r&&"default"!==r&&(o="'".concat(r,"'")),i+" "+a+" "+Math.floor(e)+"px "+o}},{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?OctaveEnum.VA8:1===t&&"up"===e?OctaveEnum.VB8:2===t&&"down"===e?OctaveEnum.MA15:2===t&&"up"===e?OctaveEnum.MB15:OctaveEnum.NONE}}],[{key:"getPitchFromOctaveShift",value:function(e,t){if(e){var n=e.Octave;switch(t){case OctaveEnum.VA8:n-=1;break;case OctaveEnum.VB8:n+=1;break;case OctaveEnum.MA15:n-=2;break;case OctaveEnum.MB15:n+=2;break;case OctaveEnum.NONE: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=_createSuper(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=_createSuper(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(TempoEnum.larghissimo)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.larghissimo)):n.isStringInStringList(n.listInstantaneousTempoGrave,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.grave)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.grave)):n.isStringInStringList(n.listInstantaneousTempoLento,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.lento)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.lento)):n.isStringInStringList(n.listInstantaneousTempoLargo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.largo)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.largo)):n.isStringInStringList(n.listInstantaneousTempoLarghetto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.larghetto)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.larghetto)):n.isStringInStringList(n.listInstantaneousTempoAdagio,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.adagio)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.adagio)):n.isStringInStringList(n.listInstantaneousTempoAdagietto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.adagietto)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.adagietto)):n.isStringInStringList(n.listInstantaneousTempoAndanteModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.andanteModerato)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.andanteModerato)):n.isStringInStringList(n.listInstantaneousTempoAndante,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.andante)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.andante)):n.isStringInStringList(n.listInstantaneousTempoAndantino,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.andantino)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.andantino)):n.isStringInStringList(n.listInstantaneousTempoModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.moderato)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.moderato)):n.isStringInStringList(n.listInstantaneousTempoAllegretto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.allegretto)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.allegretto)):n.isStringInStringList(n.listInstantaneousTempoAllegroModerato,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.allegroModerato)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.allegroModerato)):n.isStringInStringList(n.listInstantaneousTempoAllegro,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.allegro)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.allegro)):n.isStringInStringList(n.listInstantaneousTempoVivace,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.vivace)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.vivace)):n.isStringInStringList(n.listInstantaneousTempoVivacissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.vivacissimo)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.vivacissimo)):n.isStringInStringList(n.listInstantaneousTempoAllegrissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.allegrissimo)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.allegrissimo)):n.isStringInStringList(n.listInstantaneousTempoPresto,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.presto)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.presto)):n.isStringInStringList(n.listInstantaneousTempoPrestissimo,this.label)?(0===e&&(e=n.getDefaultValueForTempoType(TempoEnum.prestissimo)),this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.prestissimo)):n.isStringInStringList(n.listInstantaneousTempoAddons,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=TempoEnum.addon)):n.isStringInStringList(n.listInstantaneousTempoChangesGeneral,this.label)?(this.tempoInBpm=0,void(this.tempoEnum=TempoEnum.changes)):void 0:(this.tempoInBpm=e,void(this.tempoEnum=TempoEnum.metronomeMark))}}],[{key:"getDefaultValueForTempoType",value:function(e){switch(e){case TempoEnum.larghissimo:return 20;case TempoEnum.grave:return 30;case TempoEnum.lento:return 48;case TempoEnum.largo:return 52;case TempoEnum.larghetto:return 63;case TempoEnum.adagio:return 70;case TempoEnum.adagietto:return 75;case TempoEnum.andanteModerato:return 88;case TempoEnum.andante:return 92;case TempoEnum.andantino:return 96;case TempoEnum.moderato:return 106;case TempoEnum.allegretto:return 112;case TempoEnum.allegroModerato:return 118;case TempoEnum.allegro:return 130;case TempoEnum.vivace:return 140;case TempoEnum.vivacissimo:return 155;case TempoEnum.allegrissimo:return 170;case TempoEnum.presto:return 184;case TempoEnum.prestissimo: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=_createSuper(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=MoodEnum.Affettuoso:n.isStringInStringList(n.listMoodAgitato,this.label)?this.moodType=MoodEnum.Agitato:n.isStringInStringList(n.listMoodAnimato,this.label)?this.moodType=MoodEnum.Animato:n.isStringInStringList(n.listMoodAppassionato,this.label)?this.moodType=MoodEnum.Appassionato:n.isStringInStringList(n.listMoodBrillante,this.label)?this.moodType=MoodEnum.Brillante:n.isStringInStringList(n.listMoodCantabile,this.label)?this.moodType=MoodEnum.Cantabile:n.isStringInStringList(n.listMoodDolce,this.label)?this.moodType=MoodEnum.Dolce:n.isStringInStringList(n.listMoodEnergico,this.label)?this.moodType=MoodEnum.Energico:n.isStringInStringList(n.listMoodEroico,this.label)?this.moodType=MoodEnum.Eroico:n.isStringInStringList(n.listMoodEspressivo,this.label)?this.moodType=MoodEnum.Espressivo:n.isStringInStringList(n.listMoodFurioso,this.label)?this.moodType=MoodEnum.Furioso:n.isStringInStringList(n.listMoodGiocoso,this.label)?this.moodType=MoodEnum.Giocoso:n.isStringInStringList(n.listMoodGioioso,this.label)?this.moodType=MoodEnum.Gioioso:n.isStringInStringList(n.listMoodGrandioso,this.label)?this.moodType=MoodEnum.Grandioso:n.isStringInStringList(n.listMoodGrazioso,this.label)?this.moodType=MoodEnum.Grazioso:n.isStringInStringList(n.listMoodLacrimoso,this.label)?this.moodType=MoodEnum.Lacrimoso:n.isStringInStringList(n.listMoodLeggiero,this.label)?this.moodType=MoodEnum.Leggiero:n.isStringInStringList(n.listMoodMaestoso,this.label)?this.moodType=MoodEnum.Maestoso:n.isStringInStringList(n.listMoodMalinconico,this.label)?this.moodType=MoodEnum.Malinconico:n.isStringInStringList(n.listMoodMarcato,this.label)?this.moodType=MoodEnum.Marcato:n.isStringInStringList(n.listMoodMarziale,this.label)?this.moodType=MoodEnum.Marziale:n.isStringInStringList(n.listMoodMesto,this.label)?this.moodType=MoodEnum.Mesto:n.isStringInStringList(n.listMoodMorendo,this.label)?this.moodType=MoodEnum.Morendo:n.isStringInStringList(n.listMoodNobilmente,this.label)?this.moodType=MoodEnum.Nobilmente:n.isStringInStringList(n.listMoodPatetico,this.label)?this.moodType=MoodEnum.Patetico:n.isStringInStringList(n.listMoodPesante,this.label)?this.moodType=MoodEnum.Pesante:n.isStringInStringList(n.listMoodSaltando,this.label)?this.moodType=MoodEnum.Saltando:n.isStringInStringList(n.listMoodSautille,this.label)?this.moodType=MoodEnum.Sautille:n.isStringInStringList(n.listMoodScherzando,this.label)?this.moodType=MoodEnum.Scherzando:n.isStringInStringList(n.listMoodSostenuto,this.label)?this.moodType=MoodEnum.Sostenuto:n.isStringInStringList(n.listMoodSpiccato,this.label)?this.moodType=MoodEnum.Spiccato:n.isStringInStringList(n.listMoodTenerezza,this.label)?this.moodType=MoodEnum.Tenerezza:n.isStringInStringList(n.listMoodTranquillamente,this.label)?this.moodType=MoodEnum.Tranquillamente:n.isStringInStringList(n.listMoodTrionfante,this.label)&&(this.moodType=MoodEnum.Trionfante)}}],[{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 MoodEnum=function(e){return e[e.Affettuoso=0]="Affettuoso",e[e.Agitato=1]="Agitato",e[e.Appassionato=2]="Appassionato",e[e.Animato=3]="Animato",e[e.Brillante=4]="Brillante",e[e.Cantabile=5]="Cantabile",e[e.Dolce=6]="Dolce",e[e.Energico=7]="Energico",e[e.Eroico=8]="Eroico",e[e.Espressivo=9]="Espressivo",e[e.Furioso=10]="Furioso",e[e.Giocoso=11]="Giocoso",e[e.Gioioso=12]="Gioioso",e[e.Lacrimoso=13]="Lacrimoso",e[e.Grandioso=14]="Grandioso",e[e.Grazioso=15]="Grazioso",e[e.Leggiero=16]="Leggiero",e[e.Maestoso=17]="Maestoso",e[e.Malinconico=18]="Malinconico",e[e.Marcato=19]="Marcato",e[e.Marziale=20]="Marziale",e[e.Mesto=21]="Mesto",e[e.Morendo=22]="Morendo",e[e.Nobilmente=23]="Nobilmente",e[e.Patetico=24]="Patetico",e[e.Pesante=25]="Pesante",e[e.Sautille=26]="Sautille",e[e.Saltando=27]="Saltando",e[e.Scherzando=28]="Scherzando",e[e.Sostenuto=29]="Sostenuto",e[e.Spiccato=30]="Spiccato",e[e.Tenerezza=31]="Tenerezza",e[e.Tranquillamente=32]="Tranquillamente",e[e.Trionfante=33]="Trionfante",e[e.Vivace=34]="Vivace",e}(MoodEnum||{}),UnknownExpression=function(e){_inherits2(n,e);var t=_createSuper(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=_createSuper(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=ContinuousTempoType.accelerando:n.isStringInStringList(n.listContinuousTempoSlower,this.label)&&(this.tempoType=ContinuousTempoType.ritardando)}}],[{key:"isInputStringContinuousTempo",value:function(e){return!!e&&(n.isStringInStringList(n.listContinuousTempoFaster,e)||n.isStringInStringList(n.listContinuousTempoSlower,e))}},{key:"isIncreasingTempo",value:function(e){return e<=ContinuousTempoType.piuMosso}},{key:"isDecreasingTempo",value:function(e){return e>=ContinuousTempoType.allargando&&e<=ContinuousTempoType.ritenuto}}]),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 ContinuousTempoType=function(e){return e[e.accelerando=0]="accelerando",e[e.stretto=1]="stretto",e[e.stringendo=2]="stringendo",e[e.mosso=3]="mosso",e[e.piuMosso=4]="piuMosso",e[e.allargando=5]="allargando",e[e.calando=6]="calando",e[e.menoMosso=7]="menoMosso",e[e.rallentando=8]="rallentando",e[e.ritardando=9]="ritardando",e[e.ritard=10]="ritard",e[e.rit=11]="rit",e[e.ritenuto=12]="ritenuto",e[e.rubato=13]="rubato",e[e.precipitando=14]="precipitando",e}(ContinuousTempoType||{}),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=_createSuper(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,f=this.currentSystemParams.IsSystemStartMeasure();u.IsSystemStartMeasure=f;var d=u===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure(),p=this.rules.MeasureLeftMargin,m=0,g=this.getMeasureStartLine();if(p+=this.getLineWidth(o[0],g,f),!this.leadSheet){var v=!1;t&&this.rules.ShowRhythmAgainAfterPartEndOrFinalBarline&&(v=!0),p+=this.addBeginInstructions(o,f,d||v),m+=this.addEndInstructions(o)}for(var y=0,b=0;b<this.numberOfVisibleStaffLines;b++)y=Math.max(y,o[b].minimumStaffEntriesWidth);var S=this.getMeasureEndLine();m+=this.getLineWidth(o[0],S,f);var x=this.rules.MeasureLeftMargin;if(this.measureListIndex+1<this.measureList.length){var w,_,k=this.measureList[this.measureListIndex+1];null!==(_=null===(w=k[0])||void 0===w?void 0:w.parentSourceMeasure)&&void 0!==_&&_.hasBeginInstructions()&&(x+=this.addBeginInstructions(k,!1,!1))}var A=p+m+y;null!==(i=o[0])&&void 0!==i&&null!==(a=i.parentSourceMeasure)&&void 0!==a&&a.multipleRestMeasures&&(A=this.rules.MultipleRestMeasureDefaultWidth);var E=this.currentSystemParams.currentWidth+A+x<e;0===n&&(n=(n=Math.abs(Math.floor((e-p-m-x)/(A-p))))%2==0?n:n-1)<1&&(n=1);var C=this.rules.NewPageAtXMLNewPageAttribute&&u.printNewPageXml,P=C||this.rules.NewSystemAtXMLNewSystemAttribute&&u.printNewSystemXml;if((f||E&&!P)&&(this.rules.DYWorkSpecial||r<n)){if(this.addMeasureToSystem(o,g,S,A,p,y,m),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 f=0,d=r.length;f<d;++f){if(r[f].ParentInstrument.LyricVersesNumbers.length>1){h=!0;break}}for(var p=0,m=0;m<r.length;m++)if(this.addStaffLineToMusicSystem(e,p,r[m]),p+=this.rules.StaffHeight,m+1<r.length){p+=this.leadSheet&&!h?2.5:r[m].ParentInstrument===r[m+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 f=e.Instructions[c];f instanceof ClefInstruction?s=f:f instanceof KeyInstruction?l=f:f instanceof RhythmInstruction&&(u=f)}var d,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!==(d=l.AlteratedNotes)&&void 0!==d&&d.length||((l=KeyInstruction.copy(this.activeKeys[0])).PrintObject=!1),r&&!u&&(u=this.activeRhythm[n]));var m=!1,g=!1,v=!1;if(s?(t.addClefAtBegin(s),m=!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,S,x;null===(b=t.stave)||void 0===b||null===(S=b.getModifiers(void 0,"keysignatures"))||void 0===S||null===(x=S[0])||void 0===x||x.setDrawState(!1)}catch(E){}g=!0}if(void 0!==u&&u.PrintObject&&this.rules.RenderTimeSignatures){var w=!0,_=t.MeasureNumber-1-this.rules.MinMeasureToDrawIndex;if(t.MeasureNumber-1>=0&&this.measureList[_]){var k,A=null===(k=this.measureList[_][0])||void 0===k?void 0:k.parentSourceMeasure;null!=A&&A.ImplicitMeasure&&null!=A&&A.RhythmPrinted&&(w=!1)}w&&(t.addRhythmAtBegin(u),t.parentSourceMeasure.RhythmPrinted=u,v=!0)}return(m||g||v)&&(o+=t.beginInstructionsWidth,v&&(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 f=u[c];if(f.Instructions)for(var d=0,p=f.Instructions.length;d<p;++d){var m=f.Instructions[d];m instanceof ClefInstruction&&(this.activeClefs[n]=m)}}var g=e.LastInstructionsStaffEntries[i];if(g)for(var v=g.Instructions,y=0,b=v.length;y<b;++y){var S=v[y];S instanceof ClefInstruction&&(this.activeClefs[n]=S)}}}},{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,f=void 0,d=0,p=c.length;d<p;++d){var m=c[d];m instanceof KeyInstruction&&m.Key!==this.activeKeys[s].Key&&(h=m),m instanceof RhythmInstruction&&m!==this.activeRhythm[s]&&(f=m)}if(void 0!==h||f){var g=this.addExtraInstructionMeasure(s,h,f);o=Math.max(o,g)}}}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 f=o;0===s&&(f=o+l.beginInstructionsWidth-h),n.createVerticalLineForMeasure(f,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 d=SystemLinesEnum.SingleThin;s<this.currentSystemParams.systemMeasures.length&&(d=this.currentSystemParams.systemMeasures[s].endLine);var p=l.getLineWidth(d),m=l.PositionAndShape.RelativePosition.x+l.PositionAndShape.BorderRight-p;d===SystemLinesEnum.DotsBoldBoldDots&&(m-=p/2),n.createVerticalLineForMeasure(m,p,d,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 f=(i=Math.max(i,this.rules.StaffHeight+this.rules.MinimumStaffLineDistance))+e.StaffLines[t].PositionAndShape.RelativePosition.y;this.updateStaffLinesRelativePosition(e,t+1,f)}var d=e.StaffLines[0];e.PositionAndShape.BorderTop=d.PositionAndShape.RelativePosition.y+d.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,f=_createForOfIteratorHelper(l.parentSourceMeasure.StaffLinkedExpressions);try{for(f.s();!(h=f.n()).done;){n+=h.value.length}}catch(err){f.e(err)}finally{f.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,f,d=this.musicSystems[u-1],p=d.StaffLines[d.StaffLines.length-1],m=p.PositionAndShape,g=this.findRequiredDistanceWithSkyBottomLine(d,n);g=Math.max(i,g),g+=this.rules.MinSkyBottomDistBetweenSystems,"GYM"===(null===(h=window)||void 0===h||null===(f=h.appName)||void 0===f?void 0:f.toLocaleUpperCase())&&(g=g<16?16:g);var v=this.hasExpressionCounts(n);v.TempoCount>0&&this.rules.MetronomeMarksDrawn&&(g+=2),v.OtherCount>0&&this.rules.MetronomeMarksDrawn&&(g+=2),g=Math.max(g,this.rules.MinimumDistanceBetweenSystems+p.StaffHeight);var y=t+m.RelativePosition.y+g,b=y+n.PositionAndShape.BorderMarginBottom;if(this.rules.NewPageAtXMLNewPageAttribute&&d.breaksPage||!(b<this.rules.PageHeight-this.rules.PageBottomMargin)){e=this.createMusicPage(),u-=1;continue}this.addSystemToPage(e,n),t=y;var S=new PointF2D(this.rules.PageLeftMargin+this.rules.SystemLeftMargin,t);n.PositionAndShape.RelativePosition=S}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],f=c+Math.round((o.RelativePosition.x-s.RelativePosition.x)*l);if(!(f<0)){if(f>=a.length)break;for(var d=Math.max(0,f-6),p=Math.min(a.length-1,f+6),m=0,g=d;g<=p;g++)m=Math.min(m,a[g]);var v=h-m;u=Math.max(v,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=_createSuper(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=[],f=[],d=[],p=0,m=e;p<m.length;p++){for(var g=m[p],v=0,y=g.startIndex;y<=g.endIndex;++y){this.measureListIndex=y;var b=this.measureList[y];if(b&&b[0]){for(var S=0,x=b.length;S<x;++S)b[S].resetLayout();var w=b[0].parentSourceMeasure===this.graphicalMusicSheet.ParentMusicSheet.getFirstSourceMeasure(),_=this.rules.MeasureLeftMargin,k=0,A=this.getMeasureStartLine();_+=this.getLineWidth(b[0],A,!1),this.leadSheet||(_+=this.addBeginInstructions(b,!1,w),k+=this.addEndInstructions(b));for(var E=0,C=0;C<this.numberOfVisibleStaffLines;C++){var P,T=((null===(P=b[C].vfVoices[1])||void 0===P?void 0:P.tickables.length)||1)*this.rules.DYMinNoteWidth;E=Math.max(E,b[C].minimumStaffEntriesWidth,T)}var M=this.getMeasureEndLine(),I=_+(k+=this.getLineWidth(b[0],M,!1))+E;f.push(I),d.push(v+I/2),v+=I}else f.push(0),d.push(0)}for(var R=v,N=this.getFullPageSystemWidth()-8,L=Math.ceil(R/N)*N/R,D=1,B=0,F=0,O=0,V=g.startIndex;V<=g.endIndex;++V){var G,z=d[V];if(0!==z){var U=f[V],H=f[V+1]||0,j=z*L/N;F+=U;var W=(null===(G=window)||void 0===G?void 0:G.appName)||"";if("GYM"===(null==W?void 0:W.toLocaleUpperCase())){var q,X=null===(q=window.GYM)||void 0===q?void 0:q.wrapNum;O===(X=Number(X)>0?Number(X):6)||F+H>N&&O%2==0?(h.push(O),F=U,O=1):O++}else F>N?(h.push(O),F=U,O=1):O++;D===(j=U>N?V+1:Math.ceil(j))?B+=1:(c.push(B),D=j,B=1)}}c.push(B),h.push(O),h=h.filter(Boolean)}return h.length>1&&1===h[h.length-1]&&(h[h.length-2]=h[h.length-2]-1,h[h.length-1]=h[h.length-1]+1),console.log(h,c),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(),f=this.rules.MeasureLeftMargin,d=0,p=this.getMeasureStartLine();if(f+=this.getLineWidth(i[0],p,c),!this.leadSheet){var m=!1;t&&this.rules.ShowRhythmAgainAfterPartEndOrFinalBarline&&(m=!0),f+=this.addBeginInstructions(i,c,h||m),d+=this.addEndInstructions(i)}for(var g=0,v=0;v<this.numberOfVisibleStaffLines;v++)g=Math.max(g,i[v].minimumStaffEntriesWidth);var y=this.getMeasureEndLine(),b=f+(d+=this.getLineWidth(i[0],y,c))+g;this.addMeasureToSystem(i,p,y,b,f,g,d),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 f=c.multipleRestMeasures-1;l+=f;for(var d=1;d<=f;d++){var p=e.SourceMeasures[c.MeasureNumber-1+d];p.multipleRestMeasureNumber=d+1,p.isReducedToMultiRest=!0,t.push([void 0])}}}if(this.rules.AutoGenerateMutipleRestMeasuresFromRestMeasures&&this.rules.RenderMultipleRestMeasures){for(var m=void 0,g=0,v=0,y=e.SourceMeasures.length;v<y;++v){var b=e.SourceMeasures[v];if(!b.isReducedToMultiRest&&b.canBeReducedToMultiRest())if(g>0){m.isReducedToMultiRest=!0,m.multipleRestMeasureNumber=1,g++,b.multipleRestMeasureNumber=g,b.isReducedToMultiRest=!0;for(var S=0;S<t[v].length;S++)t[v][S]=void 0}else m=b,g=1;else if(g>1){m.multipleRestMeasures=g;var x=this.createGraphicalMeasuresForSourceMeasure(m,n,i,o,r);t[m.measureListIndex]=x,g=0,m=void 0}else g=0,m=void 0}if(g>1){m.multipleRestMeasures=g,m.isReducedToMultiRest=!0;var w=this.createGraphicalMeasuresForSourceMeasure(m,n,i,o,r);t[m.measureListIndex]=w,g=0,m=void 0}}var _=r.map((function(e){return e.ClefType===ClefEnum.percussion}));this.handleStaffEntries(_),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 log$2.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,f=(c-=t.PositionAndShape.RelativePosition.x)+.5,d=(h-=t.PositionAndShape.RelativePosition.x)-.5,p=s.getSkyLineMinInRange(f,d);if(e===t.Measures[0]){var m=0;if(n.GroupBrackets.length>0){var g,v=_createForOfIteratorHelper(n.GroupBrackets);try{for(v.s();!(g=v.n()).done;){var y=g.value;m=Math.min(m,y.PositionAndShape.BorderTop)}}catch(err){v.e(err)}finally{v.f()}}l=Math.min(p,m)}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 f=l.staffEntries[h];if(f.LyricsEntries.length>0){i.push(f),n=Math.max(n,f.LyricsEntries.length);for(var d=f.PositionAndShape.RelativePosition.x+u.x,p=Number.MAX_VALUE,m=Number.MIN_VALUE,g=0;g<f.LyricsEntries.length;g++){var v=f.LyricsEntries[g].GraphicalLabel;p=Math.min(p,d+v.PositionAndShape.BorderMarginLeft),m=Math.max(m,d+v.PositionAndShape.BorderMarginRight)}var y=a.getBottomLineMaxInRange(p,m);r=Math.max(r,y)}}var b=0;o=i.length;for(var S=0,x=i;S<x.length;S++)for(var w=x[S],_=0;_<w.LyricsEntries.length;_++){var k=w.LyricsEntries[_],A=k.GraphicalLabel,E=k.LyricsEntry.VerseNumber,C=t.indexOf(E),P=r+this.rules.LyricsHeight+this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsYOffsetToStaffHeight+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*C;this.leadSheet&&(P=3.4+(this.rules.VerticalBetweenLyricsDistance+this.rules.LyricsHeight)*C);var T=A.PositionAndShape.RelativePosition.x;A.PositionAndShape.RelativePosition=new PointF2D(T,P),b=Math.max(b,P)}if(i.length>0){var M=e.PositionAndShape.Size.width,I=i[0].PositionAndShape.RelativePosition.x+i[0].PositionAndShape.BorderMarginLeft+i[0].parentMeasure.PositionAndShape.RelativePosition.x;I=I>M?M:I,a.updateBottomLineInRange(I,M,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 log$2.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 f=this.rules.UnknownTextHeight,d=e.getPlacementOfFirstEntry(),p=this.calculateLabel(h,a,s,e.getFontstyleOfFirstEntry(),d,f);new GraphicalUnknownExpression(h,p,d,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){log$2.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&&(log$2.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 f=0,d=0,p=t.length;d<p;++d){var m=t[d];f=Math.max(m.length,f);break}if(0!==f){var g;if((g=1===e.length||this.rules.RenderSingleHorizontalStaffline?new MusicSystemBuilder:new JustifiedMusicSystemBuilder).initialize(this.graphicalMusicSheet,t,f),this.musicSystems=g.buildMusicSystems(),this.formatMeasures(),this.leadSheet||(this.optimizeRestPlacement(),this.calculateStaffEntryArticulationMarks(),this.rules.RenderSlurs&&this.calculateTieCurves()),this.calculateSkyBottomLines(),this.calculateTupletNumbers(),this.rules.RenderMeasureNumbers)for(var v=0,y=this.musicSystems.length;v<y;++v){var b=this.musicSystems[v];this.calculateMeasureNumberPlacement(b)}if(this.calculateFingerings(),!this.leadSheet&&this.rules.RenderSlurs&&this.calculateSlurs(),this.rules.RenderMeasureNumbers)for(var S=0,x=this.musicSystems.length;S<x;++S){var w=this.musicSystems[S];this.calculateMeasureNumberSkyline(w)}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 _=0,k=this.musicSystems.length;_<k;++_)for(var A=this.musicSystems[_],E=0,C=A.StaffLines.length;E<C;++E){var P=A.StaffLines[E];this.updateStaffLineBorders(P)}g.calculateSystemYLayout(),this.calculateMarkedAreas();for(var T=0,M=this.graphicalMusicSheet.MusicPages.length;T<M;++T){for(var I=this.graphicalMusicSheet.MusicPages[T],R=0,N=I.MusicSystems.length;R<N;++R){var L=0===T&&0===R,D=I.MusicSystems[R];D.setMusicSystemLabelsYPosition(),this.leadSheet?D===D.Parent.MusicSystems[0]&&D.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,L):(D.setYPositionsToVerticalLineObjectsAndCreateLines(this.rules),D.createSystemLeftLine(this.rules.SystemThinLineWidth,this.rules.SystemLabelsRightMargin,L),D.createInstrumentBrackets(this.graphicalMusicSheet.ParentMusicSheet.Instruments,this.rules.StaffHeight),D.createGroupBrackets(this.graphicalMusicSheet.ParentMusicSheet.InstrumentalGroups,this.rules.StaffHeight,0),D.alignBeginInstructions()),D.calculateBorders(this.rules)}for(var B=I.MusicSystems[0].PositionAndShape.BorderTop,F=0,O=I.MusicSystems.length;F<O;++F){var V=I.MusicSystems[F];V.PositionAndShape.RelativePosition=new PointF2D(V.PositionAndShape.RelativePosition.x,V.PositionAndShape.RelativePosition.y-B)}for(var G=0,z=I.MusicSystems.length;G<z;++G)for(var U=I.MusicSystems[G],H=0,j=U.StaffLines.length;H<j;++H){U.StaffLines[H].addActivitySymbolClickArea()}I.PositionAndShape.calculateTopBottomBorders(),I===this.graphicalMusicSheet.MusicPages[0]&&this.calculatePageLabels(I),I.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,f=_createForOfIteratorHelper(i.Measures);try{for(f.s();!(h=f.n()).done;){var d=h.value;this.rules.ChordSymbolYAlignment&&"measure"===this.rules.ChordSymbolYAlignmentScope&&(o=this.calculateAlignedChordSymbolsOffset(d.staffEntries,a));var p,m=_createForOfIteratorHelper(d.staffEntries);try{for(m.s();!(p=m.n()).done;){var g=p.value;if(g.graphicalChordContainers&&0!==g.graphicalChordContainers.length)for(var v=0;v<g.graphicalChordContainers.length;v++){var y=g.graphicalChordContainers[v],b=g.PositionAndShape,S=y.PositionAndShape,x=S.BorderMarginLeft+b.AbsolutePosition.x,w=S.BorderMarginRight+b.AbsolutePosition.x;(!this.rules.ChordSymbolYAlignment||o>0)&&(o=a.getSkyLineMinInRange(x,w));var _=0;0===v?(_+=this.rules.ChordSymbolYOffset,_+=.1):_+=this.rules.ChordSymbolYPadding,_*=-1;var k=y.GraphicalLabel;k.PositionAndShape.RelativePosition.y=o+_,k.setLabelPositionAndShapeBorders(),k.PositionAndShape.calculateBoundingBox(),a.updateSkyLineInRange(x,w,o+k.PositionAndShape.BorderMarginTop)}}}catch(err){m.e(err)}finally{m.f()}}}catch(err){f.e(err)}finally{f.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,f=c.BorderMarginRight+u.AbsolutePosition.x;r=Math.min(r,t.getSkyLineMinInRange(h,f))}}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),f=this.graphicalMusicSheet.GetVerticalContainerFromTimestamp(h),d=f.getFirstNonNullStaffEntry().parentMeasure,p=d.PositionAndShape.AbsolutePosition.x+d.PositionAndShape.BorderRight,m=new Fraction$1(0,0,0),g=_createForOfIteratorHelper(f.StaffEntries);try{for(g.s();!(c=g.n()).done;){var v,y=c.value,b=null==y||null===(v=y.sourceStaffEntry)||void 0===v?void 0:v.calculateMaxNoteLength();null!=b&&b.gt(m)&&(m=b)}}catch(err){g.e(err)}finally{g.f()}var S=this.getRelativePositionInStaffLineFromTimestamp(h,i,s,u,0),x=Fraction$1.plus(h,m),w=this.getRelativePositionInStaffLineFromTimestamp(x,i,s,u,0);w.x>S.x&&w.x<p?S.x+=(w.x-S.x)/this.rules.WedgeEndDistanceBetweenTimestampsFactor:S.x=p-this.rules.WedgeHorizontalMargin;var _=this.dynamicExpressionMap.get(e.ContinuousDynamic.StartMultiExpression.AbsoluteTimestamp.RealValue);_&&(t.x=_.RelativePosition.x+_.BorderMarginRight+this.rules.WedgeHorizontalMargin);var k=o.ParentMusicSystem,A=k.StaffLines.indexOf(o),E=o.SkyBottomLineCalculator,C=e.ContinuousDynamic.Placement,P=e.ContinuousDynamic.DynamicType;0!==P&&1!==P||(C=1);var T=void 0;l&&S.x-t.x<this.rules.WedgeMinLength&&(S.x=t.x+this.rules.WedgeMinLength);var M=t.x,I=s.Measures[0].beginInstructionsWidth-this.rules.WedgeHorizontalMargin-2,R=0,N=0;l?R=S.x:(R=o.PositionAndShape.Size.width,N=S.x,(T=new GraphicalContinuousDynamicExpression(e.ContinuousDynamic,s,a.parentSourceMeasure)).IsSplittedPart=!0,e.IsSplittedPart=!0);var L=0,D=0;if(C===PlacementEnum.Below){var B=0;if(A<k.StaffLines.length-1&&(B=A+1),B>A){var F=k.StaffLines[B].PositionAndShape.RelativePosition.y-o.PositionAndShape.RelativePosition.y-this.rules.StaffHeight;L=this.rules.StaffHeight+F/2}else L=this.rules.WedgePlacementBelowY;L-=this.rules.WedgeOpeningLength/2,l||(D=L);var O=E.getBottomLineMaxInRange(M,R);if(O>L&&(L=O),A<k.StaffLines.length-1){var V=o.findClosestStaffEntry(R),G=o.findClosestStaffEntry(M);G&&V&&G.parentVerticalContainer}l||((O=s.SkyBottomLineCalculator.getBottomLineMaxInRange(I,N))>D&&(D=O),D+=this.rules.WedgeOpeningLength/2,D+=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 z=0;A>0&&(z=A-1);var U=k.StaffLines[z];L=-(o.PositionAndShape.RelativePosition.y-U.PositionAndShape.RelativePosition.y-this.rules.StaffHeight)/2}L+=this.rules.WedgeOpeningLength/2,l||(D=L);var H=E.getSkyLineMinInRange(M,R);if(H<L&&(L=H),o.ParentStaff.ParentInstrument.Staves.length>1&&A>0){var j=o.findClosestStaffEntry(M),W=o.findClosestStaffEntry(R);j&&W&&j.parentVerticalContainer}l||((H=s.SkyBottomLineCalculator.getSkyLineMinInRange(I,N))<D&&(D=H),D-=this.rules.WedgeOpeningLength/2),L-=this.rules.WedgeOpeningLength/2,L-=this.rules.WedgeVerticalMargin,l||(D-=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,D+=3),e.ContinuousDynamic.DynamicType===ContDynamicEnum.crescendo?l?(e.createCrescendoLines(M,R,L),e.calcPsi()):(e.createFirstHalfCrescendoLines(M,R,L),e.calcPsi(),T.createSecondHalfCrescendoLines(I,N,D),T.calcPsi()):e.ContinuousDynamic.DynamicType===ContDynamicEnum.diminuendo&&(l?(e.createDiminuendoLines(M,R,L),e.calcPsi()):(e.createFirstHalfDiminuendoLines(M,R,L),e.calcPsi(),T.createSecondHalfDiminuendoLines(I,N,D),T.calcPsi())),this.dynamicExpressionMap.set(h.RealValue,e.PositionAndShape)}else log$2.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),f=r.ParentStaff.ParentInstrument.Staves[r.ParentStaff.ParentInstrument.Staves.length-1];if(r.isPartOfMultiStaffInstrument()&&r.ParentStaff!==f){var d=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+d/2?this.rules.StaffHeight+d/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,f=t.x+l.PositionAndShape.BorderMarginRight;f>e.PositionAndShape.Size.width&&(h=(f=e.PositionAndShape.Size.width-this.rules.MeasureRightMargin)-l.PositionAndShape.MarginSize.width,t.x=h-l.PositionAndShape.BorderMarginLeft);var d=e.SkyBottomLineCalculator;return c=i===PlacementEnum.Below?d.getBottomLineMaxInRange(h,f):d.getSkyLineMinInRange(h,f),l.PositionAndShape.RelativePosition=new PointF2D(t.x,c),i===PlacementEnum.Below?d.updateBottomLineInRange(h,f,l.PositionAndShape.BorderMarginBottom+c):d.updateSkyLineInRange(h,f,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 f=h.GraphicalInstructions.last();o.x=f.PositionAndShape.RelativePosition.x}this.rules.CompactMode&&(o.x=s.PositionAndShape.RelativePosition.x+s.Measures[0].PositionAndShape.RelativePosition.x)}var d,p=_createForOfIteratorHelper(t.EntriesList);try{for(p.s();!(d=p.n()).done;){var m=d.value,g=TextAlignmentEnum.CenterBottom;this.rules.CompactMode&&(g=TextAlignmentEnum.LeftBottom);var v=this.calculateLabel(s,o,m.label,t.getFontstyleOfFirstEntry(),m.Expression.Placement,this.rules.UnknownTextHeight,g);if(m.Expression instanceof InstantaneousTempoExpression){var y,b=_createForOfIteratorHelper(s.AbstractExpressions);try{for(b.s();!(y=b.n()).done;){var S=y.value;S instanceof GraphicalInstantaneousTempoExpression&&(S.SourceExpression.Label,m.Expression.Label)}}catch(err){b.e(err)}finally{b.f()}new GraphicalInstantaneousTempoExpression(m.Expression,v).ParentStaffLine||log$2.warn("Adding staffline didn't work"),m.Expression.Enum===TempoEnum.metronomeMark&&(metronomeMarks[n]=m.Expression)}else m.Expression;if(r===e.TempoExpressions.length-1)for(var x=0,w=Object.values(metronomeMarks);x<w.length;x++){var _=w[x];this.createMetronomeMark(_,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 f=h.PositionAndShape.ChildElements.indexOf(h.FirstInstructionStaffEntry.PositionAndShape);f>-1&&h.PositionAndShape.ChildElements.splice(f,1),h.FirstInstructionStaffEntry=void 0,h.beginInstructionsWidth=0}if(h.LastInstructionStaffEntry){var d=h.PositionAndShape.ChildElements.indexOf(h.LastInstructionStaffEntry.PositionAndShape);d>-1&&h.PositionAndShape.ChildElements.splice(d,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 f=n.findOrCreateGraphicalVoiceEntry(t);f.octaveShiftValue=l;var d,p=n.tabStaffEntry;p&&(d=p.findOrCreateGraphicalVoiceEntry(t));for(var m=0,g=t.Notes.length;m<g;++m){var v=t.Notes[m];if(v&&!(void 0!==h&&void 0!==h.Link&&void 0!==c&&c.indexOf(v)>-1)){var y=void 0;if(t.IsGrace?y=e.symbolFactory.createGraceNote(v,f,a,this.rules,l):(y=e.symbolFactory.createNote(v,f,a,l,this.rules,void 0),e.stafflineNoteCalculator.trackNote(y)),v.Pitch&&this.checkNoteForAccidental(y,r,a,l),this.resetYPositionForLeadSheet(y.PositionAndShape),n.addGraphicalNoteToListAtCorrectYPosition(f,y),y.PositionAndShape.calculateBoundingBox(),this.leadSheet||(void 0!==v.NoteBeam&&v.PrintObject&&this.handleBeam(y,v.NoteBeam,s),void 0!==v.NoteTuplet&&v.PrintObject&&this.handleTuplet(y,v.NoteTuplet,o)),d){var b=e.symbolFactory.createNote(v,d,a,l,this.rules,void 0);p.addGraphicalNoteToListAtCorrectYPosition(d,b),b.PositionAndShape.calculateBoundingBox(),this.leadSheet||v.NoteTuplet&&this.handleTuplet(b,v.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,f=c.Instructions.length;h<f;++h){var d=c.Instructions[h];d instanceof ClefInstruction||(d instanceof KeyInstruction?l=d:d instanceof RhythmInstruction&&(u=d))}if(l){t.CurrentKeyInstruction=l;var p=VexFlowConverter.keySignature(l),m=new Label("1="+p),g=new Label("".concat(u.Rhythm.Numerator,"\n\n").concat(u.Rhythm.Denominator)),v=new GraphicalLabel(m,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules),y=new GraphicalLabel(g,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules),b=new Label("ᅳ"),S=new GraphicalLabel(b,this.rules.SheetAuthorHeight,TextAlignmentEnum.LeftCenter,this.rules);m.fontFamily="Arial",m.IsCreditLabel=!0,m.colorDefault=n,g.fontFamily="Arial",g.IsCreditLabel=!0,g.colorDefault=n,b.fontFamily="Arial",b.IsCreditLabel=!0,b.colorDefault=n,this.graphicalMusicSheet.JianpuKeySignature=v,this.graphicalMusicSheet.jianpuTimeSignature=y,this.graphicalMusicSheet.jianpuLine=S,v.setLabelPositionAndShapeBorders(),y.setLabelPositionAndShapeBorders(),S.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 f=o.parentMeasure.PositionAndShape.RelativePosition.x;i>0&&(f=i);var d=o.PositionAndShape.RelativePosition.x+f,p=s.PositionAndShape.RelativePosition.x+s.parentMeasure.PositionAndShape.RelativePosition.x;i>0&&(p=s.PositionAndShape.RelativePosition.x+f);var m=0;if(o!==s){var g=o.getAbsoluteTimestamp(),v=s.getAbsoluteTimestamp(),y=Fraction$1.minus(e,g);m=y.RealValue/Fraction$1.minus(v,g).RealValue}o.parentMeasure.ParentStaffLine!==s.parentMeasure.ParentStaffLine&&(o.parentMeasure.ParentStaffLine===n?p=n.PositionAndShape.Size.width:d=n.PositionAndShape.RelativePosition.x),a=new PointF2D(d+(p-d)*m,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 f=this.graphicalMusicSheet.Lyricist;if(f){var d;f.PositionAndShape.Parent=e.PositionAndShape,f.setLabelPositionAndShapeBorders();var p=new PointF2D;p.x=this.rules.PageLeftMargin,p.y=t,p.y+=f.PositionAndShape.BorderBottom,p.y=Math.min(p.y,null!==(d=s)&&void 0!==d?d:Number.MAX_SAFE_INTEGER),f.PositionAndShape.RelativePosition=p,e.Labels.push(f)}}},{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 f=h.NoteTie;if(h===h.NoteTie.Notes.last())continue;var d,p=_createForOfIteratorHelper(a.GraphicalTies);try{for(p.s();!(d=p.n()).done;){d.value.Tie}}catch(err){p.e(err)}finally{p.f()}this.handleTie(f,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 f=0,d=t.FirstInstructionsStaffEntries[l].Instructions.length;f<d;++f){var p=t.FirstInstructionsStaffEntries[l].Instructions[f];if(p instanceof KeyInstruction){var m=KeyInstruction.copy(p),g=h.getTransposedHalftones();0!==g&&h.ParentStaff.ParentInstrument.MidiInstrumentId!==MidiInstrument.Percussion&&e.transposeCalculator&&e.transposeCalculator.transposeKey(m,g),i.ActiveKeyInstruction=m}}for(var v=[],y=0,b=t.StaffLinkedExpressions[l].length;y<b;++y){var S=t.StaffLinkedExpressions[l][y];if(S.OctaveShiftStart){var x;v.push(S);var w=S.OctaveShiftStart,_=null==w||null===(x=w.ParentEndMultiExpression)||void 0===x?void 0:x.AbsoluteTimestamp;if(null==w||!w.ParentEndMultiExpression)_=Fraction$1.plus(t.AbsoluteTimestamp,t.Duration);o[l]=new OctaveShiftParams(w,null==S?void 0:S.AbsoluteTimestamp,_)}}for(var k=0;k<t.VerticalSourceStaffEntryContainers.length;k++){var A=t.VerticalSourceStaffEntryContainers[k].StaffEntries[l];if(A){for(var E,C=0,P=A.Instructions.length;C<P;++C){var T=A.Instructions[C];T instanceof ClefInstruction&&(a[l]=T)}var M=e.symbolFactory.createStaffEntry(A,h);k<h.staffEntries.length?h.addGraphicalStaffEntryAtTimestamp(M):h.addGraphicalStaffEntry(M);var I=[];A.Link&&(A.findLinkedNotes(I),this.handleStaffEntryLink(M,u));var R=OctaveEnum.NONE;if(o[l]&&o[l].getAbsoluteStartTimestamp.lte(A.AbsoluteTimestamp)&&A.AbsoluteTimestamp.lte(o[l].getAbsoluteEndTimestamp)&&(R=o[l].getOpenOctaveShift.Type),R===OctaveEnum.NONE){var N,L=_createForOfIteratorHelper(v);try{for(L.s();!(N=L.n()).done;){var D,B,F,O,V=N.value;if(null!==(D=V.OctaveShiftStart)&&void 0!==D&&null!==(B=D.ParentStartMultiExpression)&&void 0!==B&&B.AbsoluteTimestamp.lte(A.AbsoluteTimestamp)&&(null===(F=V.OctaveShiftStart)||void 0===F||null===(O=F.ParentEndMultiExpression)||void 0===O||!O.AbsoluteTimestamp.lt(A.AbsoluteTimestamp))){R=V.OctaveShiftStart.Type;break}}}catch(err){L.e(err)}finally{L.f()}}for(var G=0,z=A.VoiceEntries.length;G<z;++G){var U=A.VoiceEntries[G];R=this.handleVoiceEntry(U,M,i,s,a[l],n,r,R,l,I,A)}if(A.Instructions.length>0){var H=A.Instructions[0];e.symbolFactory.createInStaffClef(M,H)}this.rules.RenderChordSymbols&&(null===(E=A.ChordContainers)||void 0===E?void 0:E.length)>0&&(A.ParentStaff.ParentInstrument.HasChordSymbols=!0,e.symbolFactory.createChordSymbols(A,M,i.ActiveKeyInstruction,this.graphicalMusicSheet.ParentMusicSheet.Transpose))}}if(i.doCalculationsAtEndOfMeasure(),t.LastInstructionsStaffEntries[l])for(var j=t.LastInstructionsStaffEntries[l],W=0,q=j.Instructions.length;W<q;++W){var X=j.Instructions[W];X instanceof ClefInstruction&&(a[l]=X)}for(var Y=0,Q=t.StaffLinkedExpressions[l].length;Y<Q;++Y){var K=t.StaffLinkedExpressions[l][Y];void 0!==K.OctaveShiftEnd&&void 0!==o[l]&&K.OctaveShiftEnd===o[l].getOpenOctaveShift&&(o[l]=void 0)}var Z,J=_createForOfIteratorHelper(h.staffEntries);try{for(J.s();!(Z=J.n()).done;){var $,ee=_createForOfIteratorHelper(Z.value.graphicalVoiceEntries);try{for(ee.s();!($=ee.n()).done;){var te=$.value;this.setBeamNotesWantedStemDirections(te.parentVoiceEntry)}}catch(err){ee.e(err)}finally{ee.f()}}}catch(err){J.e(err)}finally{J.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],f=0,d=h.sourceStaffEntry.VoiceEntries.length;f<d;++f){var p=h.sourceStaffEntry.VoiceEntries[f];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],f=0,d=h.sourceStaffEntry.VoiceEntries.length;f<d;++f){var p=h.sourceStaffEntry.VoiceEntries[f];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 f,d=a.SkyBottomLineCalculator,p=h.PositionAndShape.RelativePosition.x+l.PositionAndShape.RelativePosition.x,m=[],g=_createForOfIteratorHelper(h.graphicalVoiceEntries);try{for(g.s();!(f=g.n()).done;){var v,y=_createForOfIteratorHelper(f.value.notes);try{for(y.s();!(v=y.n()).done;){var b=v.value.sourceNote;b.Fingering&&!b.IsGraceNote&&m.push(b.Fingering)}}catch(err){y.e(err)}finally{y.f()}}}catch(err){g.e(err)}finally{g.f()}u===PlacementEnum.Below&&m.reverse();for(var S=0;S<m.length;S++){var x=m[S],w=u===PlacementEnum.Above?TextAlignmentEnum.CenterBottom:TextAlignmentEnum.CenterTop,_=new Label(x.value,w),k=new GraphicalLabel(_,this.rules.FingeringTextSize,_.textAlignment,this.rules,a.PositionAndShape),A=p+k.PositionAndShape.BorderMarginLeft,E=p+k.PositionAndShape.BorderMarginRight,C=void 0;C=u===PlacementEnum.Above?d.getSkyLineMinInRange(A,E):d.getBottomLineMaxInRange(A,E);var P=0;0===S?(P+=this.rules.FingeringOffsetY,u===PlacementEnum.Above&&(P+=.1)):P+=this.rules.FingeringPaddingY,u===PlacementEnum.Above&&(P*=-1),k.PositionAndShape.RelativePosition.y+=C+P,k.PositionAndShape.RelativePosition.x=p,k.setLabelPositionAndShapeBorders(),k.PositionAndShape.calculateBoundingBox(),h.FingeringEntries.push(k);var T=k.PositionAndShape.RelativePosition.x+k.PositionAndShape.BorderLeft,M=T-k.PositionAndShape.BorderLeft+k.PositionAndShape.BorderRight;u===PlacementEnum.Above?d.updateSkyLineInRange(T,M,k.PositionAndShape.RelativePosition.y+k.PositionAndShape.BorderTop):u===PlacementEnum.Below&&d.updateBottomLineInRange(T,M,k.PositionAndShape.RelativePosition.y+k.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 f=u.value;if(void 0!==f.StartNote&&f.StartNote.parentVoiceEntry.parentStaffEntry===c){var d=f.StartNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine!==f.EndNote.parentVoiceEntry.parentStaffEntry.parentMeasure.ParentStaffLine;this.layoutGraphicalTie(f,d,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,f=this.musicSystems.length;h<f;++h)for(var d=this.musicSystems[h],p=0,m=d.StaffLines.length;p<m;++p){var g=d.StaffLines[p];this.calculateLyricsExtendsAndDashes(e.getValue(g))}}},{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 f=o.parentMeasure.PositionAndShape.RelativePosition.x+o.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,d=i.Measures[i.Measures.length-1],p=d.PositionAndShape.RelativePosition.x+d.PositionAndShape.Size.width,m=e.GraphicalLabel.PositionAndShape.RelativePosition.y;if(this.calculateDashes(i,f,p,m),a&&a.Measures[0]&&s.parentMeasure.ParentStaffLine&&(s!==s.parentMeasure.staffEntries[0]||s.parentMeasure!==s.parentMeasure.ParentStaffLine.Measures[0])){var g=a.Measures[0].staffEntries[0].PositionAndShape.RelativePosition.x,v=s.parentMeasure.PositionAndShape.RelativePosition.x+s.PositionAndShape.RelativePosition.x+r.GraphicalLabel.PositionAndShape.BorderMarginLeft;m=r.GraphicalLabel.PositionAndShape.RelativePosition.y,this.calculateDashes(a,g,v,m)}}}}},{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,f=n.parentMeasure.PositionAndShape.RelativePosition.x+n.PositionAndShape.RelativePosition.x+e.GraphicalLabel.PositionAndShape.BorderMarginRight,d=h.RelativePosition.x+h.Size.width;if(t-=e.GraphicalLabel.PositionAndShape.Size.height/4,this.calculateSingleLyricWordWithUnderscore(r,f,d,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,m=i.parentMeasure.PositionAndShape.RelativePosition.x+i.PositionAndShape.RelativePosition.x+i.PositionAndShape.BorderMarginRight;this.calculateSingleLyricWordWithUnderscore(a,p,m,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)),e.ChordKind===ChordSymbolEnum.none)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 ChordDegreeText.add:o.adds.push(u);break;case ChordDegreeText.alter:o.alts.push(u);break;case ChordDegreeText.subtract:o.subs.push(u)}}}}catch(err){s.e(err)}finally{s.f()}var c,h=e.getTextFromChordKindEnum(e.ChordKind),f=["adds","alts","subs"],d=_createForOfIteratorHelper(e.rules.CustomChords);try{for(d.s();!(c=d.n()).done;){var p=c.value;if(p.chordKind===e.chordKind){var m,g=!0,v=_createForOfIteratorHelper(f);try{for(v.s();!(m=v.n()).done;){var y,b=m.value,S=_createForOfIteratorHelper(p.degrees[b]||[]);try{for(S.s();!(y=S.n()).done;){var x=y.value;if(o[b].indexOf(x)<0){g=!1;break}}}catch(err){S.e(err)}finally{S.f()}if(!g)break}}catch(err){v.e(err)}finally{v.f()}if(g){var w,_=_createForOfIteratorHelper(f);try{for(_.s();!(w=_.n()).done;){var k,A=w.value,E=_createForOfIteratorHelper(p.degrees[A]||[]);try{for(E.s();!(k=E.n()).done;){var C=k.value;o[A].splice(o[A].indexOf(C),1)}}catch(err){E.e(err)}finally{E.f()}}}catch(err){_.e(err)}finally{_.f()}h=p.alternateName}}}}catch(err){d.e(err)}finally{d.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 P=e.BassPitch;MusicSheetCalculator.transposeCalculator&&(P=MusicSheetCalculator.transposeCalculator.transposePitch(e.BassPitch,n,t)),i+="/",i+=Pitch.getNoteEnumString(P.FundamentalNote),i+=this.getTextForAccidental(P.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=_createSuper(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){log$2.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}();exports("a3",PageFormat);var 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=_createSuper(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 f=0,d=h.Voices.length;f<d;++f){h.Voices[f]===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 f=0,d=h.Voices.length;f<d;++f){h.Voices[f]===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=_createSuper(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 f=this.staffLines[c];f.ParentStaff===o.Staves[0]&&(l=f),f.ParentStaff===s.Staves[0]&&(u=f)}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 f=new GraphicalLabel(u,e,TextAlignmentEnum.LeftCenter,this.rules,this.boundingBox);f.setLabelPositionAndShapeBorders(),this.labels.setValue(l,f)}else t=0}this.maxLabelLength=0;for(var d=this.labels.values(),p=0,m=d.length;p<m;++p){var g=d[p];g.Label.print&&(g.PositionAndShape.Size.width>this.maxLabelLength&&(this.maxLabelLength=g.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,f=c.staffEntries.length;h<f;++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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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],f=new Fraction$1(0,1),d=_createForOfIteratorHelper(this.staffEntries);try{for(d.s();!(c=d.n()).done;){var p,m=_createForOfIteratorHelper(c.value.graphicalVoiceEntries);try{for(m.s();!(p=m.n()).done;){var g=p.value;g.parentVoiceEntry.ParentVoice===h&&g.notes.length>0&&f.Add(g.notes[0].graphicalNoteLength)}}catch(err){m.e(err)}finally{m.f()}}}catch(err){d.e(err)}finally{d.f()}e.lt(f)&&(e=Fraction$1.createFromFraction(f))}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);Vex.Flow;var VexFlowVoiceEntry=function(e){_inherits2(n,e);var t=_createSuper(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,f=!0,d=0;d<h.length;d++)h[d].NoteheadColorCurrentlyRendered!==e&&(f=!1);if(f)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 m=i,g=!1;this.rules.ColoringEnabled&&((m=this.parentVoiceEntry.StemColor)&&"#000000"!==m||(m=i),this.rules.ColorStemsLikeNoteheads&&e&&(m=e,g=!0));var v,y=!0,b=_createForOfIteratorHelper(this.parentVoiceEntry.Notes);try{for(b.s();!(v=b.n()).done;){if(v.value.PrintObject){y=!1;break}}}catch(err){b.e(err)}finally{b.f()}y&&(m=a);var S={fillStyle:m,strokeStyle:m};o&&o.setStemStyle&&(!y&&g&&(this.parentVoiceEntry.StemColor=m),o.setStemStyle(S),o.flag&&o.setFlagStyle&&this.rules.ColorFlags&&o.setFlagStyle(S))}}]),n}(GraphicalVoiceEntry),VF$9=Vex.Flow,NoteSubGroup=VF$9.NoteSubGroup,VexFlowMeasure=function(e){_inherits2(n,e);var t=_createSuper(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(),t=StavePositionEnum.ABOVE;this.stave.setText(e,t,{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 f,d=this.ParentStaffLine.Measures[h];d instanceof n&&(d.MeasureNumber!==c-1&&d.MeasureNumber+(null===(f=d.parentSourceMeasure)||void 0===f?void 0:f.multipleRestMeasures)!==c||(u=d))}if(u)for(var p=u.stave.getModifiers(),m=0;m<p.length;m++){var g=p[m];if(g.hasOwnProperty("volta")){var v=u.ParentStaffLine.SkyBottomLineCalculator,y=u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginLeft+.4,b=Math.max(u.PositionAndShape.AbsolutePosition.x+u.PositionAndShape.BorderMarginRight,y+.4),S=v.getSkyLineMinInRange(y,b);if(S<=s)l+=S-s,s=S;else g.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 f=e.openGroup();if(null==f||null===(o=f.classList)||void 0===o||o.add("vf-beams"),"jianpu"!==this.rules.DYMusicScoreType)for(var d in this.vfbeams)if(this.vfbeams.hasOwnProperty(d)){var p,m=_createForOfIteratorHelper(this.vfbeams[d]);try{for(m.s();!(p=m.n()).done;){p.value.setContext(e).draw()}}catch(err){m.e(err)}finally{m.f()}}if(this.autoVfBeams){var g,v=_createForOfIteratorHelper(this.autoVfBeams);try{for(v.s();!(g=v.n()).done;){g.value.setContext(e).draw()}}catch(err){v.e(err)}finally{v.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 S in this.vftuplets)if(this.vftuplets.hasOwnProperty(S)){var x,w=_createForOfIteratorHelper(this.vftuplets[S]);try{for(w.s();!(x=w.n()).done;){var _=x.value;if("jianpu"===this.rules.DYMusicScoreType){var k=_.getNotes(),A=new VF$9.StaveTie({first_note:k[0],last_note:k[k.length-1]},k.length+"");this.vfTies.push(A),_.setTupletLocation(1)}else _.setContext(e).draw()}}catch(err){w.e(err)}finally{w.f()}}}e.closeGroup(),e.closeGroup();var E=e.openGroup();null==E||null===(s=E.classList)||void 0===s||s.add("vf-ties");var C,P=_createForOfIteratorHelper(this.vfTies);try{for(P.s();!(C=P.n()).done;){C.value.setContext(e).draw()}}catch(err){P.e(err)}finally{P.f()}e.closeGroup();var T,M=_createForOfIteratorHelper(this.connectors);try{for(M.s();!(T=M.n()).done;){T.value.setContext(e).draw()}}catch(err){M.e(err)}finally{M.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 f;log$2.trace("Ghost Found in between (measure ".concat(this.MeasureNumber,")"));var d=this.createGhostGves(h);(f=n).splice.apply(f,[r,0].concat(_toConsumableArray2(d))),r+=d.length}}else{var p=Fraction$1.minus(o,this.parentSourceMeasure.AbsoluteTimestamp);if(p.RealValue>0){var m;log$2.trace("Ghost Found at start (measure ".concat(this.MeasureNumber,")"));var g=this.createGhostGves(p);(m=n).splice.apply(m,[0,0].concat(_toConsumableArray2(g))),r+=g.length}}t=s}var v=Fraction$1.plus(this.parentSourceMeasure.AbsoluteTimestamp,this.parentSourceMeasure.Duration),y=Fraction$1.minus(v,t);if(y.RealValue>0){log$2.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)log$2.debug("Beam between note >= quarter, likely tremolo, currently unsupported. continuing.");else{var c,h=[],f=o[0],d=o[1],p=!0,m=_createForOfIteratorHelper(d);try{for(m.s();!(c=m.n()).done;){var g=c.value;g.parentVoiceEntry.ParentVoice===f.Notes[0].ParentVoiceEntry.ParentVoice&&(p=g.parentVoiceEntry.WantedStemDirection===StemDirectionType.Undefined)}}catch(err){m.e(err)}finally{m.f()}var v,y=!1,b=void 0,S=[],x=_createForOfIteratorHelper(d);try{for(x.s();!(v=x.n()).done;){var w=v.value,_=w.vfStaveNote;_&&(h.push(_),e.push(_)),w.parentVoiceEntry.IsGrace&&(y=!0),w.parentVoiceEntry.StemColor&&this.rules.ColoringEnabled&&S.push(w.parentVoiceEntry.StemColor)}}catch(err){x.e(err)}finally{x.f()}if(h.length>1){var k=new VF$9.Beam(h,p);if(y&&(k.render_options.beam_width=3,k.render_options.partial_beam_length=4),S.length>=2&&this.rules.ColorBeams){b=S[0];var A,E=_createForOfIteratorHelper(S);try{for(E.s();!(A=E.n()).done;){if(A.value!==b){b=void 0;break}}}catch(err){E.e(err)}finally{E.f()}k.setStyle({fillStyle:b,strokeStyle:b})}this.rules.FlatBeams&&(k.render_options.flat_beams=!0,k.render_options.flat_beam_offset=this.rules.FlatBeamOffset,k.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),n.push(k)}else log$2.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 f=u.value,d=f.vfStaveNote,p=f.notes[0],m=c.relInMeasureTimestamp.isOnBeat(o),g=r.length>=2,v=p.sourceNote.Length.RealValue-new Fraction$1(1,4).RealValue>-Fraction$1.FloatInaccuracyTolerance,y=f.parentVoiceEntry.IsGrace||v||e.contains(d);if(y||m){if(g){var b,S=_createForOfIteratorHelper(r);try{for(S.s();!(b=S.n()).done;){var x=b.value;n.push(x)}}catch(err){S.e(err)}finally{S.f()}a.push(n.slice()),n=[]}if(r=[],y)continue}var w=f.notes[0].sourceNote.NoteTuplet;if(w){var _,k=!1,A=_createForOfIteratorHelper(w.Notes);try{for(A.s();!(_=A.n()).done;){var E,C=_createForOfIteratorHelper(_.value);try{for(C.s();!(E=C.n()).done;){var P=E.value;if(P.NoteTypeXml>=NoteType.QUARTER||P.ParentVoiceEntry.IsGrace||P.isRest()&&!this.rules.AutoBeamOptions.beam_rests){k=!0;break}}}catch(err){C.e(err)}finally{C.f()}if(k)break}}catch(err){A.e(err)}finally{A.f()}if(t){if(t!==w){if(i.length>1){var T=new VF$9.Beam(i,!0);this.rules.FlatBeams&&(T.render_options.flat_beams=!0,T.render_options.flat_beam_offset=this.rules.FlatBeamOffset,T.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoTupletVfBeams.push(T)}i=[],t=w}}else t=w;k||i.push(d)}else t=void 0,r.push(d)}}catch(err){h.e(err)}finally{h.f()}}}catch(err){l.e(err)}finally{l.f()}if(i.length>=2){var M=new VF$9.Beam(i,!0);this.rules.FlatBeams&&(M.render_options.flat_beams=!0,M.render_options.flat_beam_offset=this.rules.FlatBeamOffset,M.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoTupletVfBeams.push(M)}if(r.length>=2){var I,R=_createForOfIteratorHelper(r);try{for(R.s();!(I=R.n()).done;){var N=I.value;n.push(N)}}catch(err){R.e(err)}finally{R.f()}a.push(n)}var L=this.rules.AutoBeamOptions,D={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 B,F=[],O=_createForOfIteratorHelper(L.groups);try{for(O.s();!(B=O.n()).done;){var V=B.value;F.push(new VF$9.Fraction(V[0],V[1]))}}catch(err){O.e(err)}finally{O.f()}D.groups=F}for(var G=0,z=a;G<z.length;G++){var U,H=z[G],j=_createForOfIteratorHelper(VF$9.Beam.generateBeams(H,D));try{for(j.s();!(U=j.n()).done;){var W=U.value;this.rules.FlatBeams&&(W.render_options.flat_beams=!0,W.render_options.flat_beam_offset=this.rules.FlatBeamOffset,W.render_options.flat_beam_offset_per_beam=this.rules.FlatBeamOffsetPerBeam),this.autoVfBeams.push(W)}}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,f=VF$9.Tuplet.LOCATION_TOP;u.tupletLabelNumberPlacement===PlacementEnum.Below&&(f=VF$9.Tuplet.LOCATION_BOTTOM),t.push(new VF$9.Tuplet(o,{bracketed:h,location:f,notes_occupied:c,num_notes:u.TupletLabelNumber,ratioed:this.rules.TupletsRatioed}))}else log$2.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 f=VexFlowConverter.StaveNote(h);h.vfStaveNote=f,u.push(f)}var d=new VF$9.GraceNoteGroup(u,e);l.vfStaveNote.addModifier(0,d),n=[]}}}catch(err){s.e(err)}finally{s.f()}}}catch(err){i.e(err)}finally{i.f()}if(n.length>0){var p,m=_createForOfIteratorHelper(n);try{for(m.s();!(p=m.n()).done;){var g=p.value;g.vfStaveNote=VexFlowConverter.StaveNote(g),g.parentVoiceEntry.GraceAfterMainNote=!0}}catch(err){m.e(err)}finally{m.f()}}this.finalizeBeams(),this.finalizeTuplets();var v=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 S,x=_createForOfIteratorHelper(v);try{for(x.s();!(S=x.n()).done;){var w=S.value;if(w){this.vfVoices[w.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 _,k=_createForOfIteratorHelper(this.getRestFilledVexFlowStaveNotesPerVoice(w));try{for(k.s();!(_=k.n()).done;){var A=_.value;if(!A.parentVoiceEntry||!A.parentVoiceEntry.IsGrace||A.parentVoiceEntry.GraceAfterMainNote){var E=A;if(0!==E.vfStaveNote.ticks.denominator)if(0!==A.notes.length&&A.notes[0]&&A.notes[0].sourceNote.PrintObject){var C=E.parentStaffEntry;if(C&&C.vfClefBefore){var P=new NoteSubGroup([C.vfClefBefore]);E.vfStaveNote.getCategory&&"stavenotes"===E.vfStaveNote.getCategory()&&E.vfStaveNote.addModifier(0,P)}A.parentVoiceEntry&&this.rules.RenderFingerings&&(this.rules.FingeringPosition!==PlacementEnum.Left&&this.rules.FingeringPosition!==PlacementEnum.Right||this.createFingerings(A),this.createStringNumber(A)),this.createArpeggio(A),this.vfVoices[w.VoiceId].addTickable(E.vfStaveNote)}else this.vfVoices[w.VoiceId].addTickable(E.vfStaveNote)}}}catch(err){k.e(err)}finally{k.f()}}}}catch(err){x.e(err)}finally{x.f()}this.setStemDirectionFromVexFlow();for(var T=0,M=r;T<M.length;T++){var I=M[T];this.createFingerings(I),this.createStringNumber(I),this.createArpeggio(I)}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 log$2.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,f=void 0;switch(c){default:case PlacementEnum.Left:f=VF$9.StaveModifier.Position.LEFT,h-=l.baseFingeringXOffset*unitInPixels;break;case PlacementEnum.Right:f=VF$9.StaveModifier.Position.RIGHT,h+=l.baseFingeringXOffset*unitInPixels;break;case PlacementEnum.Above:f=VF$9.StaveModifier.Position.ABOVE;break;case PlacementEnum.Below:f=VF$9.StaveModifier.Position.BELOW;break;case PlacementEnum.NotYetDefined:var d=e.parentStaffEntry.sourceStaffEntry.ParentStaff;e.notes.length>1||e.parentStaffEntry.graphicalVoiceEntries.length>1?f=VF$9.StaveModifier.Position.LEFT:0===d.idInMusicSheet?(f=VF$9.StaveModifier.Position.ABOVE,c=PlacementEnum.Above):(f=VF$9.StaveModifier.Position.BELOW,c=PlacementEnum.Below)}var p=new VF$9.FretHandFinger(u.value);if(p.setPosition(f),p.setOffsetX(h),c===PlacementEnum.Above||c===PlacementEnum.Below){var m=c===PlacementEnum.Above?-1:1,g=c===PlacementEnum.Above?o:r-1-o;if(this.rules.FingeringInsideStafflines&&r>1){var v=p.getWidth()/2,y=2.5*r;p.setOffsetY(m*(g+y)*v)}else if(!this.rules.FingeringInsideStafflines){var b=new VF$9.StringNumber(u.value);b.radius=0,b.setPosition(f),b.setOffsetY(m*g*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;o.getPosition()===StavePositionEnum.BEGIN?r+=o.getWidth()+o.getPadding(void 0):o.getPosition()===StavePositionEnum.END&&(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),StavePositionEnum=function(e){return e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.ABOVE=3]="ABOVE",e[e.BELOW=4]="BELOW",e[e.BEGIN=5]="BEGIN",e[e.END=6]="END",e}(StavePositionEnum||{}),GraphicalStaffEntry=function(e){_inherits2(n,e);var t=_createSuper(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=_createSuper(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);Vex.Flow;var VexFlowGraphicalNote=function(e){_inherits2(n,e);var t=_createSuper(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,t=e;t||(t=this.vfnote[0]);var n=t.note_heads;return n&&n.length>this.vfnoteIndex&&n[this.vfnoteIndex]?t.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=_createSuper(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=_createSuper(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 f=c.parentVoiceEntry.Arpeggio;if(c.notes&&c.notes.length>1){var d=VexFlowConverter.StrokeTypeFromArpeggioType(f.type),p=new VF$7.Stroke(d,{all_voices:this.rules.ArpeggiosGoAcrossVoices});this.rules.RenderArpeggios&&h.vfStaveNote.addStroke(0,p)}else log$2.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=_createSuper(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=_createSuper(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,f,d=c.map((function(e){return e.PositionAndShape.Center.y})),p=Math.max.apply(Math,_toConsumableArray2(d)),m=(null===(h=window.GYM)||void 0===h?void 0:h.noNeedContinuousDynamic)||!1,g=(null===(f=window.GYM)||void 0===f?void 0:f.noNeedGraphicalContinuousDynamic)||!1,v=0;v<c.length;v++){var y=c[v],b=d[v]-p;if(y instanceof VexFlowContinuousDynamicExpression?m||(y.shiftYPosition(-b),y.calcPsi()):(g||(y.PositionAndShape.RelativePosition.y-=.8*b),y.PositionAndShape.calculateBoundingBox()),!m&&y.squeeze){var S=v<c.length-1?c[v+1]:void 0,x=v>0?c[v-1]:void 0;if(S){var w=this.getOverlap(y.PositionAndShape,S.PositionAndShape);y.squeeze(-(w.x+this.rules.DynamicExpressionSpacer))}if(x){var _=this.getOverlap(x.PositionAndShape,y.PositionAndShape);y.squeeze(_.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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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 log$2.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=_createSuper(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=_createSuper(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=_createSuper(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:log$2.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);Vex.Flow;var 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 f=a.parentVoiceEntry.parentVoiceEntry;!this.rules.SetWantedStemDirectionByXml&&f.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||(log$2.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 f=h.height;"jianpu"===this.mRules.DYMusicScoreType?l.setY(l.y-50):l.setY(l.y+100);var d=l.getWidth();l.setWidth(u),s.format(),l.setWidth(d);try{s.draw(c)}catch(I){log$2.warn("SkyBottomLineCalculator.calculateLines.draw",I)}for(var p=c.getImageData(0,0,u,f),m=Math.max(Math.ceil(s.PositionAndShape.Size.width*this.mRules.SamplingUnit),1),g=new Array(m),v=new Array(m),y=0;y<u;y++){for(var b=0;b<f;b++){var S=b*u*4+4*y;if(p.data[S+3]>0){g[y]=b;break}}for(var x=f;x>0;x--){var w=x*u*4+4*y;if(p.data[w+3]>0){v[y]=x;break}}}for(var _=0;_<g.length;_++)void 0===g[_]&&(g[_]=Math.max(this.findPreviousValidNumber(_,g),this.findNextValidNumber(_,g)));for(var k=0;k<v.length;k++)void 0===v[k]&&(v[k]=Math.max(this.findPreviousValidNumber(k,v),this.findNextValidNumber(k,v)));(a=this.mSkyLine).push.apply(a,g),(o=this.mBottomLine).push.apply(o,v),r.clear()}}}catch(err){i.e(err)}finally{i.f()}for(var A=this.mSkyLine.length/t,E=[],C=[],P=0;P<this.mSkyLine.length&&E.length!==t;P+=A){var T=Math.min(this.mSkyLine.length,P+A),M=this.mSkyLine.slice(P,T+1);E.push(Math.min.apply(Math,_toConsumableArray2(M))),M=this.mBottomLine.slice(P,T+1),C.push(Math.max.apply(Math,_toConsumableArray2(M)))}this.mSkyLine=E,this.mBottomLine=C,this.mSkyLine.length!==t&&log$2.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}(),parser$3={exports:{}};
  147. /*!
  148. * d-path-parser - v1.0.0
  149. * by Massimo Artizzu (MaxArt2501)
  150. *
  151. * https://github.com/MaxArt2501/d-path-parser
  152. *
  153. * Licensed under the MIT License
  154. * See LICENSE for details
  155. */
  156. !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$3);var parse$3=parser$3.exports,SkyBottomLineCalculatorSVG=function(e){_inherits2(n,e);var t=_createSuper(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 f=c.value;this.recursiveUpdate(f,t,n,r)}}catch(err){h.e(err)}finally{h.f()}break;case"circle":case"rect":case"line":case"path":var d=Math.floor((i.x-n.x)/unitInPixels*this.mRules.SamplingUnit),p=d+Math.ceil(i.width/unitInPixels*this.mRules.SamplingUnit);if(e.parentElement.classList.contains("vf-beams")&&e.hasAttribute("d")){var m=parse$3(e.getAttribute("d"));if(5===m.length)for(var g=m[0],v=m[3],y=(v.end.y-g.end.y)/(v.end.x-g.end.x),b=g.end.y/unitInPixels;d<=p;d++)b<l[d]&&(l[d]=b),b>u[d]&&(u[d]=b),b+=y/this.mRules.SamplingUnit}else for(;d<=p;d++)a<l[d]&&(l[d]=a),o>u[d]&&(u[d]=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,f=e.getVFStave(),d=(null!==(n=f.options)&&void 0!==n&&n.num_lines?f.options.num_lines:5)-1,p=-1,m=0,g=[d],v=_createForOfIteratorHelper(null===(i=f.options)||void 0===i?void 0:i.line_config);try{for(v.s();!(a=v.n()).done;){a.value.visible?(-1===p&&(p=m),g.push(m)):d--,m++}}catch(err){v.e(err)}finally{v.f()}-1===p&&(p=0),d=g.pop()-p;var y=null===(r=f.options)||void 0===r?void 0:r.spacing_between_lines_px,b=d*y/unitInPixels;c-b>.2&&(c=b,h=p*y/unitInPixels);var S=h+c,x=new Array(s).fill(h),w=new Array(s).fill(S),_=[x,w];if(l>c){var k,A=_createForOfIteratorHelper(t.children);try{for(A.s();!(k=A.n()).done;){var E=k.value;this.recursiveUpdate(E,{top:h,bottom:S},o,[x,w])}}catch(err){A.e(err)}finally{A.f()}}return _}},{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],f=c[1];(o=this.mSkyLine).push.apply(o,_toConsumableArray2(h)),(s=this.mBottomLine).push.apply(s,_toConsumableArray2(f))}}catch(err){a.e(err)}finally{a.f()}n.closeGroup();var d,p=_createForOfIteratorHelper(r.getElementsByClassName("vf-ties"));try{for(p.s();!(d=p.n()).done;){var m,g=_createForOfIteratorHelper(d.value.childNodes);try{for(g.s();!(m=g.n()).done;){var v=m.value;if("path"===v.nodeName.toLowerCase())for(var y=v.getBBox(),b=Math.floor(y.x/unitInPixels*this.mRules.SamplingUnit),S=b+Math.ceil(y.width/unitInPixels*this.mRules.SamplingUnit),x=y.y/unitInPixels,w=y.height/unitInPixels+x;b<=S;b++)x<this.mSkyLine[b]&&(this.mSkyLine[b]=x),w>this.mBottomLine[b]&&(this.mBottomLine[b]=w)}}catch(err){g.e(err)}finally{g.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,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;return new VexFlowGraphicalNote(e,t,n,r,i,a)}},{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}();Vex.Flow;var 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=_createSuper(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,f=l.endY,d=e.SlurTangentMinAngle,p=e.SlurTangentMaxAngle;if(this.placement===PlacementEnum.Above){h-=e.SlurNoteHeadYOffset,f-=e.SlurNoteHeadYOffset;var m=new PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,h);r?m.x+=this.staffEntries[0].PositionAndShape.BorderRight:m.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(m.x+=n.PositionAndShape.RelativePosition.x);var g=new PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,f);if(i?g.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:g.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&(g.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),0===(s=this.calculateTopPoints(m,g,a,o)).length){var v=new PointF2D((g.x-m.x)/2+m.x,(g.y-m.y)/2+m.y);s.push(v)}var y=Math.atan((f-h)/(c-u)),b=new PointF2D(0,0),S=new PointF2D(c-u,-(f-h)),x=Matrix2D.getRotationMatrix(y),w=x.getTransposeMatrix();S=x.vectorMultiplication(S);var _=this.calculateTranslatedAndRotatedPointListAbove(s,u,h,x),k=this.calculateMaxLeftSlope(_,b,S),A=this.calculateMaxRightSlope(_,b,S),E=b.y-b.x*k,C=S.y-S.x*A,P=new PointF2D,T=!1;Math.abs(Math.abs(k)-Math.abs(A))<1e-4?(P.x=S.x/2,P.y=0,T=!0):(P.x=(C-E)/(k-A),P.y=k*P.x+E);var M=this.calculateHeightWidthRatio(S.x,_),I=0,R=0;if(Math.abs(M)>.001){var N=Math.abs(k/(2*M)),L=Math.abs(k);k-=I=Math.max(0,L*(Math.min(10,N-1)/10));var D=Math.abs(A/(2*M)),B=Math.abs(A);A+=R=Math.max(0,B*(Math.min(10,D-1)/10))}var F=d,O=-d;if(!T){var V=this.calculateAngles(d,k,A,p);F=V.startAngle,O=V.endAngle}var G=this.calculateControlPoints(S.x,F,O,_,M,h,f),z=G.startControlPoint,U=G.endControlPoint;(z=w.vectorMultiplication(z)).x+=u,z.y=-z.y+h,(U=w.vectorMultiplication(U)).x+=u,U.y=-U.y+h,this.bezierStartPt=new PointF2D(u,h-I),this.bezierStartControlPt=new PointF2D(z.x,z.y-I),this.bezierEndControlPt=new PointF2D(U.x,U.y-R),this.bezierEndPt=new PointF2D(c,f-R);for(var H=a.SkyLine.length,j=o.getLeftIndexForPointX(this.bezierStartPt.x,H),W=o.getLeftIndexForPointX(this.bezierEndPt.x,H),q=this.bezierEndPt.x-this.bezierStartPt.x,X=o.SamplingUnit,Y=j;Y<W;Y++){var Q=Y/X-this.bezierStartPt.x,K=this.calculateCurvePointAtIndex(Math.abs(Q)/q),Z=o.getLeftIndexForPointX(K.x,H);Z>=j&&(a.SkyLine[Z]=Math.min(a.SkyLine[Z],K.y)),++Z<H&&(a.SkyLine[Z]=Math.min(a.SkyLine[Z],K.y))}}else{h+=e.SlurNoteHeadYOffset,f+=e.SlurNoteHeadYOffset;var J=new PointF2D(this.staffEntries[0].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[0].PositionAndShape.RelativePosition.x,h);r?J.x+=this.staffEntries[0].PositionAndShape.BorderRight:J.x=this.staffEntries[0].parentMeasure.beginInstructionsWidth,this.graceStart&&(J.x+=n.PositionAndShape.RelativePosition.x);var $=new PointF2D(this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].PositionAndShape.RelativePosition.x,f);if(i?$.x+=this.staffEntries[this.staffEntries.length-1].PositionAndShape.BorderLeft:$.x=this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.RelativePosition.x+this.staffEntries[this.staffEntries.length-1].parentMeasure.PositionAndShape.Size.width,this.graceEnd&&($.x+=n.staffEntryParent.PositionAndShape.RelativePosition.x),0===(s=this.calculateBottomPoints(J,$,a,o)).length){var ee=new PointF2D(($.x-J.x)/2+J.x,($.y-J.y)/2+J.y);s.push(ee)}var te=Math.atan((f-h)/(c-u)),ne=new PointF2D(0,0),re=new PointF2D(c-u,f-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,fe=!1;Math.abs(Math.abs(se)-Math.abs(le))<1e-4?(he.x=re.x/2,he.y=0,fe=!0):(he.x=(ce-ue)/(se-le),he.y=se*he.x+ue);var de=this.calculateHeightWidthRatio(re.x,oe),pe=0,me=0;if(Math.abs(de)>.001){var ge=Math.abs(se/(2*de)),ve=Math.abs(se);se-=pe=Math.max(0,ve*(Math.min(10,ge-1)/10));var ye=Math.abs(le/(2*de)),be=Math.abs(le);le+=me=Math.max(0,be*(Math.min(10,ye-1)/10))}var Se=d,xe=-d;if(!fe){var we=this.calculateAngles(d,se,le,p);Se=we.startAngle,xe=we.endAngle}var _e=this.calculateControlPoints(re.x,Se,xe,oe,de,h,f),ke=_e.startControlPoint,Ae=_e.endControlPoint;(ke=ae.vectorMultiplication(ke)).x+=u,ke.y+=h,(Ae=ae.vectorMultiplication(Ae)).x+=u,Ae.y+=h,this.bezierStartPt=new PointF2D(u,h+pe),this.bezierStartControlPt=new PointF2D(ke.x,ke.y+pe),this.bezierEndControlPt=new PointF2D(Ae.x,Ae.y+me),this.bezierEndPt=new PointF2D(c,f+me);for(var Ee=a.BottomLine.length,Ce=o.getLeftIndexForPointX(this.bezierStartPt.x,Ee),Pe=o.getLeftIndexForPointX(this.bezierEndPt.x,Ee),Te=this.bezierEndPt.x-this.bezierStartPt.x,Me=o.SamplingUnit,Ie=Ce;Ie<Pe;Ie++){var Re=Ie/Me-this.bezierStartPt.x,Ne=this.calculateCurvePointAtIndex(Math.abs(Re)/Te),Le=o.getLeftIndexForPointX(Ne.x,Ee);Le>=Ce&&(a.BottomLine[Le]=Math.max(a.BottomLine[Le],Ne.y)),++Le<Ee&&(a.BottomLine[Le]=Math.max(a.BottomLine[Le],Ne.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),f=e.getBottomLineMaxInRange(u,c)-t.StaffHeight;this.placement=f>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 f=Math.min(.5,Math.max(.1,1.7*t/80*l*Math.pow(Math.max(a,.05),.4))),d=Math.min(.5,Math.max(.1,1.7*-r/80*l*Math.pow(Math.max(a,.05),.4))),p=new PointF2D;p.x=e*f*Math.cos(t*n.degreesToRadiansFactor),p.y=e*f*Math.sin(t*n.degreesToRadiansFactor);var m=new PointF2D;m.x=e-e*d*Math.cos(r*n.degreesToRadiansFactor),m.y=-e*d*Math.sin(r*n.degreesToRadiansFactor);for(var g=p.y-m.y;this.rules.SlurMaximumYControlPointDistance&&Math.abs(g)>this.rules.SlurMaximumYControlPointDistance;)g<0?(p.y+=1,m.y-=1):(p.y-=1,m.y+=1),g=p.y-m.y;return{startControlPoint:p,endControlPoint:m}}},{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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(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=_createSuper(r);function r(e){var t,i,a,o,s,l;if(_classCallCheck2(this,r),(a=n.call(this)).beamsNeedUpdate=!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 f,d=0,p=_createForOfIteratorHelper(h.staffEntries);try{for(p.s();!(f=p.n()).done;){d+=f.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+d,u));var m=h.vfVoices,g=[];for(var v in m)m.hasOwnProperty(v)&&(g.push(m[v]),o.push(m[v]));0!==g.length?s.joinVoices(g):log$2.debug("Found a measure with no voices. Continuing anyway.",m)}}}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 S,x=function(e,t){s.formatToStave(o,t.getVFStave())},w=function(e,t){s.formatToStave(o,t.getVFStave(),{align_rests:!0,context:void 0})},_=_createForOfIteratorHelper(e);try{for(_.s();!(S=_.n()).done;){var k=S.value;if(this.rules.AlignRests===AlignRestOption.Never)k.formatVoices=x;else if(this.rules.AlignRests===AlignRestOption.Always)k.formatVoices=w;else if(this.rules.AlignRests===AlignRestOption.Auto){var A,E=!1,C=_createForOfIteratorHelper(k.staffEntries);try{for(C.s();!(A=C.n()).done;){var P,T=A.value,M=0,I=0,R=_createForOfIteratorHelper(T.graphicalVoiceEntries);try{for(R.s();!(P=R.n()).done;){var N=P.value;if(N.parentVoiceEntry.IsGrace||N&&N.notes&&N.notes[0]&&N.notes[0].sourceNote&&N.notes[0].sourceNote.PrintObject&&M++,N&&N.notes&&N.notes[0]&&N.notes[0].sourceNote&&N.notes[0].sourceNote.isRest()&&N.notes[0].sourceNote.PrintObject&&I++,M>1&&I>=1){E=!0;break}}}catch(err){R.e(err)}finally{R.f()}if(E)break}}catch(err){C.e(err)}finally{C.f()}k.formatVoices=E?w:x}if(k===e[0]){var L=k;L.formatVoices(y*unitInPixels,L)}}}catch(err){_.e(err)}finally{_.f()}}var D,B=_createForOfIteratorHelper(e);try{for(B.s();!(D=B.n()).done;){var F=D.value;if(F){var O,V=_createForOfIteratorHelper(F.staffEntries);try{for(V.s();!(O=V.n()).done;){O.value.calculateXPosition()}}catch(err){V.e(err)}finally{V.f()}}}}catch(err){B.e(err)}finally{B.f()}var G,z=_createForOfIteratorHelper(e);try{for(z.s();!(G=z.n()).done;){var U=G.value;if(U){var H=U.vfVoices,j=[];for(var W in H)H.hasOwnProperty(W)&&j.push(H[W]);0!==j.length?s.joinVoices(j):log$2.debug("Found a measure with no voices. Continuing anyway.",H)}}}catch(err){z.e(err)}finally{z.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 f=l.value,d=f.GraphicalLabel.Label.textAlignment,p=o,m=s;if(f instanceof GraphicalLyricEntry&&f.ParentLyricWord){f.LyricsEntry.SyllableIndex>0&&(p=this.rules.BetweenSyllableMinimumDistance,TextAlignment.IsCenterAligned(d)&&(p+=1));var g=f.ParentLyricWord.GetLyricWord.Syllables;g.length>1&&f.LyricsEntry.SyllableIndex<g.length-1&&(void 0===this.dashSpace&&(this.dashSpace=1.5),m-=this.dashSpace)}var v=f instanceof GraphicalLyricEntry?f.GraphicalLabel.PositionAndShape:f.PositionAndShape,y=v.Size.width,b=t.PositionAndShape.RelativePosition.x+v.BorderMarginLeft;void 0!==n[c]&&n[c].extend;var S=void 0,x=void 0;n[c]&&(x=b-n[c].xPosition);var w=void 0,_=void 0,k=r*i;TextAlignment.IsCenterAligned(d)?(w=k-b,_=y/2-(m/=4),n[c]&&(S=n[c].labelWidth/2+y/2+p)):TextAlignment.IsLeft(d)&&(w=k-b,_=y-m,n[c]&&(S=n[c].labelWidth+p));var A,E=_/w,C=1;if(f instanceof GraphicalLyricEntry&&f.LyricsEntry){if(n[c]){var P=n[c].sourceNoteDuration;C=S/x,P.Denominator>4&&(C*=1.1)}}else n[c]&&(C=S/x);A=Math.max(E,C),u=Math.max(u,A);var T=Math.max(S-x||0,0);n[c]&&(T+=n[c].cumulativeOverlap),n[c]={cumulativeOverlap:T,extend:f instanceof GraphicalLyricEntry&&f.LyricsEntry.extend,labelWidth:y,measureNumber:a,sourceNoteDuration:f instanceof GraphicalLyricEntry&&(f.LyricsEntry&&f.LyricsEntry.Parent.Notes[0].Length),text:f instanceof GraphicalLyricEntry?f.LyricsEntry.Text:f.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,f,d;"w"===s.getDuration()&&(null===(h=s.keyProps)||void 0===h||null===(f=h[0])||void 0===f?void 0:f.line)>=3&&s.setStemDirection(-1);var p,m,g=(null===(d=window.GYM)||void 0===d?void 0:d.tieDirection)||0;if(1===Math.abs(g))(null===(p=s.keyProps)||void 0===p||null===(m=p[0])||void 0===m?void 0:m.line)>=3?s.setStemDirection(-g):s.setStemDirection(g);null==u||u.setDirection(s.getStemDirection())}if(c.vfTies.length>0){var v=c.vfTies[0].direction;null==u||u.setDirection(v?-v: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 S=b.vfTies[0].direction;null==y||y.setDirection(S?-S:1)}b.addStaveTie(y,e)}}else if(a||s){var x,w;if(n)if("S"===e.Tie.Type){var _=e.StartNote.sourceNote,k=e.EndNote.sourceNote,A=1;_.FretNumber>k.FretNumber&&(A=-1),w=new VF.TabSlide({first_indices:[o],first_note:a,last_indices:[l],last_note:s},A)}else w=new VF.TabTie({first_indices:[o],first_note:a,last_indices:[l],last_note:s},e.Tie.Type);else{w=new VF.StaveTie({first_indices:[o],first_note:a,last_indices:[l],last_note:s});var E=e.Tie.getTieDirection(r.sourceNote);E===PlacementEnum.Below?w.setDirection(1):E===PlacementEnum.Above&&w.setDirection(-1);try{var C,P;Math.abs((null===(C=a)||void 0===C?void 0:C.getTieRightX())-(null===(P=s)||void 0===P?void 0:P.getTieLeftX()))<10&&(w.render_options.first_x_shift=-3,w.render_options.last_x_shift=3)}catch(I){console.log(I)}}var T=i.parentVoiceEntry.parentStaffEntry.parentMeasure,M=(null===(x=window.GYM)||void 0===x?void 0:x.graceCustom)||!1;M&&w.setDirection(M.direction),T.addStaveTie(w,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):log$2.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,f=!1,d=[];if(e.parentMeasure){var p,m=_createForOfIteratorHelper(e.parentMeasure.StaffLinkedExpressions);try{for(m.s();!(p=m.n()).done;){var g,v=_createForOfIteratorHelper(p.value);try{for(v.s();!(g=v.n()).done;){var y=g.value;y&&y instanceof UnknownExpression&&d.push(y)}}catch(err){v.e(err)}finally{v.f()}}}catch(err){m.e(err)}finally{m.f()}var b,S=_createForOfIteratorHelper(e.parentMeasure.TempoExpressions);try{for(S.s();!(b=S.n()).done;){var x,w=b.value,_=(null===(x=w.InstantaneousTempo)||void 0===x?void 0:x.Enum)===TempoEnum.metronomeMark;if(!e.beatUnit&&w.InstantaneousTempo.beatUnit){var k=NoteTypeHandler.getNoteDurationFromType(e.beatUnit);u=VexFlowConverter.durations(k,!1)[0]}if(w.getPlacementOfFirstEntry()===PlacementEnum.Above&&!_){f=!0;break}}}catch(err){S.e(err)}finally{S.f()}}f&&(h-=1.4);var A,E=null===(n=this.graphicalMusicSheet.MeasureList[0][0].ParentStaffLine)||void 0===n?void 0:n.SkyLine,C=e.TempoInBpm,P="",T="",M="",I=_createForOfIteratorHelper(this.graphicalMusicSheet.MeasureList[o][s].parentSourceMeasure.TempoExpressions);try{for(I.s();!(A=I.n()).done;){var R=A.value;if(T=R.CombinedExpressionsText,isSpecialMark(R.CombinedExpressionsText)){P=R.CombinedExpressionsText;break}if(isSpeedKeyword(R.CombinedExpressionsText)||isSpeedHiddenKeyword(R.CombinedExpressionsText)){P=formatSpeedKeyword(R.CombinedExpressionsText),C=R.sourceMeasure.TempoInBPM,isSpeedKeyword(R.CombinedExpressionsText)&&(M=u);break}}}catch(err){I.e(err)}finally{I.f()}var N={bpm:e.TempoInBpm,dots:e.dotted,duration:u,name:P};P&&(N.bpm=C/(N.dots?1.5:1),isSpeedKeyword(T)?N.duration=M:C!==SpeedTag[P]&&SpeedTag[P]||(N.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(E){var D,B,F=(null===(D=this.graphicalMusicSheet.MeasureList[0])||void 0===D||null===(B=D[s])||void 0===B?void 0:B.ParentStaffLine).Measures.map((function(e){return e.MeasureNumber-1}));if(L&&F.includes(o)&&(isSpeedKeyword(T)||isSpeedHiddenKeyword(T))){var O=E.slice(0,9),V=Math.min.apply(Math,_toConsumableArray2(O));h+=V=V<0?V-1:V}F.includes(o)&&d.length?E[0]=Math.min(E[0],-4.5+h-4):E[0]=Math.min(E[0],-4.5+h)}l.options.line_config.reduce((function(e,t){return t.visible&&e++,e}),0)<5&&(h-=2),l.setTempo(N,h*unitInPixels);var G=0;try{var z,U,H;G+=(null===(z=this.graphicalMusicSheet.MeasureList[o][s])||void 0===z||null===(U=z.vfVoices)||void 0===U||null===(H=U[1])||void 0===H?void 0:H.getTickables())[e.parentMeasure.metronomeNoteIndex].getBoundingBox().getX()-l.getNoteStartX()}catch(j){}l.getModifiers()[l.getModifiers().length-1].setShiftX(G)}}},{key:"calculateRehearsalMark",value:function(e){var t,n,r,i,a,o=e.rehearsalExpression;if(o){var s=null===(t=e.VerticalMeasureList)||void 0===t||null===(n=t[0])||void 0===n||null===(r=n.getVFStave)||void 0===r?void 0:r.call(n);if(s){var l=-this.rules.RehearsalMarkYOffsetDefault-this.rules.RehearsalMarkYOffset,u=this.rules.RehearsalMarkXOffsetDefault+this.rules.RehearsalMarkXOffset;e.IsSystemStartMeasure&&(u+=this.rules.RehearsalMarkXOffsetSystemStartMeasure);var c=this.rules.RehearsalMarkFontSize,h=s.getModifiers(),f=h.find((function(e){return"repetitions"===e.getCategory().toLocaleLowerCase()}));if(f&&f.setShiftY(f.y_shift-10),s.setSection(o.label,l,u,c),null!==(i=e.VerticalMeasureList)&&void 0!==i&&null!==(a=i[0])&&void 0!==a&&a.ParentStaffLine.AbstractExpressions){var d,p,m,g,v=h.find((function(e){return"stavesection"===e.getCategory().toLocaleLowerCase()})),y=_createForOfIteratorHelper((null==e||null===(d=e.VerticalMeasureList)||void 0===d||null===(p=d[0])||void 0===p||null===(m=p.ParentStaffLine)||void 0===m?void 0:m.AbstractExpressions)||[]);try{for(y.s();!(g=y.n()).done;){var b=g.value;b instanceof GraphicalUnknownExpression&&(v&&(b.Label.PositionAndShape.RelativePosition.y-=.5),f&&(b.Label.PositionAndShape.RelativePosition.y-=1.7))}}catch(err){y.e(err)}finally{y.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 f=void 0;if((f=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.MeasureList[l][r]).MeasureNumber<l+1&&(f=this.graphicalMusicSheet.MeasureList[l][r]),!(f.parentSourceMeasure.measureListIndex<l||f.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var d=h.ParentStaffLine;if(d||(d=c),h&&c&&d){var p=new VexFlowOctaveShift(a,c.PositionAndShape);if(!p.startNote){var m,g,v=_createForOfIteratorHelper(f.staffEntries);try{for(v.s();!(g=v.n()).done;){var y=g.value;if(y){m=y;break}}}catch(err){v.e(err)}finally{v.f()}if(!m)return;if(p.setStartNote(m),!p.startNote)return}if(!p.endNote){for(var b,S=h.staffEntries.length-1;S>=0;S++)if(h.staffEntries[S]){b=h.staffEntries[S];break}if(p.setEndNote(b),!p.endNote)return}var x=f.findGraphicalStaffEntryFromTimestamp(o);x||(x=f.staffEntries[0]);var w=h.findGraphicalStaffEntryFromTimestamp(s);if(w||(w=h.staffEntries[h.staffEntries.length-1]),p.setStartNote(x),d!==c){p.endsOnDifferentStaffLine=!0;var _=c.Measures[c.Measures.length-1];void 0===_&&(_=h);var k=_.staffEntries[_.staffEntries.length-1];p.setEndNote(k);var A=d.ParentMusicSystem.Id-c.ParentMusicSystem.Id;if(A>0)for(var E=c.ParentMusicSystem.Id;E<d.ParentMusicSystem.Id;E++){var C=E+1,P=this.musicSystems[C].StaffLines[r],T=P.Measures[0],M=new VexFlowOctaveShift(a,T.PositionAndShape);E<A&&(M.endsOnDifferentStaffLine=!0);var I=P.Measures[P.Measures.length-1];I.IsExtraGraphicalMeasure&&(I=P.Measures[P.Measures.length-2]);var R=T.staffEntries[0],N=I.staffEntries[I.staffEntries.length-1];h.ParentStaffLine===P&&(I=h,N=w);var L="VexFlowMusicSheetCalculator.calculateSingleOctaveShift: ";R||log$2.warn(L+"no firstNote found"),N||log$2.warn(L+"no lastNote found"),M.setStartNote(R),M.setEndNote(N),P.OctaveShifts.push(M),this.calculateOctaveShiftSkyBottomLine(R,N,M,P)}this.calculateOctaveShiftSkyBottomLine(x,k,p,c)}else p.setEndNote(w),this.calculateOctaveShiftSkyBottomLine(x,w,p,c);c.OctaveShifts.push(p)}else log$2.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 f=void 0;if(a.ParentEndMultiExpression?f=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):(f=this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r))||(f=this.graphicalMusicSheet.MeasureList[l][r]),f.MeasureNumber<l+1&&(f=this.graphicalMusicSheet.MeasureList[l][r]),!(f.parentSourceMeasure.measureListIndex<l||f.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var d=h.ParentStaffLine;if(d||(d=c),h&&c&&d){var p=!1;c!==d&&(p=!0);var m=new VexFlowPedal(a,c.PositionAndShape,!1,p),g=f.findGraphicalStaffEntryFromTimestamp(o);g||(g=f.staffEntries[0]);var v=h.findGraphicalStaffEntryFromTimestamp(s);if(v||(v=h.staffEntries[h.staffEntries.length-1]),!m.setStartNote(g))return;if(d!==c)if(m.pedalSymbol===MusicSymbol.PEDAL_SYMBOL){m.setEndNote(v),m.setEndMeasure(h),m.ReleaseText=" ",m.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(m.startVfVoiceEntry,m.endVfVoiceEntry,m,c);var y=d.Measures[0],b=new VexFlowPedal(a,y.PositionAndShape),S=y.staffEntries[0];if(!b.setStartNote(S))return;b.setEndNote(v),m.setEndMeasure(h),d.Pedals.push(b),b.CalculateBoundingBox(),b.DepressText=" ",this.calculatePedalSkyBottomLine(b.startVfVoiceEntry,b.endVfVoiceEntry,b,d)}else{var x=c.Measures[c.Measures.length-1];void 0===x&&(x=h);var w=x.staffEntries[x.staffEntries.length-1];m.setEndNote(w),m.setEndMeasure(h),m.ChangeEnd=!1;var _=d.ParentMusicSystem.Id-c.ParentMusicSystem.Id;if(_>0)for(var k=1,A=c.ParentMusicSystem.Id;A<d.ParentMusicSystem.Id;A++){var E=this.musicSystems[A+1].StaffLines[r],C=E.Measures[0],P=!1,T=!1;k<_?P=!0:T=!0,k++;var M=new VexFlowPedal(a,C.PositionAndShape,!0,P);M.ChangeBegin=!1,M.ChangeEnd=!!T&&a.ChangeEnd;var I=E.Measures[E.Measures.length-1],R=C.staffEntries[0],N=I.staffEntries[I.staffEntries.length-1];if(h.ParentStaffLine===E&&(I=h,N=v),!M.setStartNote(R))break;M.setEndNote(N),m.setEndMeasure(h),E.Pedals.push(M),M.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(M.startVfVoiceEntry,M.endVfVoiceEntry,M,E)}m.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(m.startVfVoiceEntry,m.endVfVoiceEntry,m,c)}else m.setEndNote(v),m.setEndMeasure(h),m.CalculateBoundingBox(),this.calculatePedalSkyBottomLine(m.startVfVoiceEntry,m.endVfVoiceEntry,m,c);c.Pedals.push(m)}else log$2.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 f=void 0;if((f=a.ParentEndMultiExpression?this.graphicalMusicSheet.getGraphicalMeasureFromSourceMeasureAndIndex(a.ParentStartMultiExpression.SourceMeasureParent,r):this.graphicalMusicSheet.MeasureList[l][r]).MeasureNumber<l+1&&(f=this.graphicalMusicSheet.MeasureList[l][r]),!(f.parentSourceMeasure.measureListIndex<l||f.parentSourceMeasure.measureListIndex>u||h.parentSourceMeasure.measureListIndex<l||h.parentSourceMeasure.measureListIndex>u)){var d=h.ParentStaffLine;if(d||(d=c),h&&c&&d){var p=new VexflowVibratoBracket(a,c.PositionAndShape,f.ParentStaff.isTab),m=f.findGraphicalStaffEntryFromTimestamp(o);m||(m=f.staffEntries[0]);var g=h.findGraphicalStaffEntryFromTimestamp(s);if(g||(g=h.staffEntries[h.staffEntries.length-1]),p.setStartNote(m),d!==c){var v=c.Measures[c.Measures.length-1];void 0===v&&(v=h);var y=v.staffEntries[v.staffEntries.length-1];if(p.setEndNote(y),d.ParentMusicSystem.Id-c.ParentMusicSystem.Id>0)for(var b=c.ParentMusicSystem.Id;b<d.ParentMusicSystem.Id;b++){var S,x=this.musicSystems[b+1].StaffLines[r],w=null==x||null===(S=x.Measures)||void 0===S?void 0:S[0];if(!w)return;var _=new VexflowVibratoBracket(a,w.PositionAndShape,x.ParentStaff.isTab),k=x.Measures[x.Measures.length-1],A=w.staffEntries[0],E=k.staffEntries[k.staffEntries.length-1];h.ParentStaffLine===x&&(k=h,E=g),_.setStartNote(A),_.setEndNote(E),x.WavyLines.push(_),_.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(_.startVfVoiceEntry,_.endVfVoiceEntry,_,x)}p.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(p.startVfVoiceEntry,p.endVfVoiceEntry,p,c)}else p.setEndNote(g),p.CalculateBoundingBox(),this.calculateWavyLineSkyBottomLine(p.startVfVoiceEntry,p.endVfVoiceEntry,p,c);c.WavyLines.push(p)}else log$2.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,f=1/0,d=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,d=(f=r.SkyBottomLineCalculator.getSkyLineMinInRange(c,h))+1.85);var m=void 0;if(n.ToEndOfStopStave)m=t.parentStaffEntry.parentMeasure.PositionAndShape.AbsolutePosition.x+t.parentStaffEntry.parentMeasure.PositionAndShape.BorderRight-1;else{m=t.PositionAndShape.AbsolutePosition.x+t.PositionAndShape.BorderRight;var g=t.parentStaffEntry.vfClefBefore;if(g)m+=g.getWidth()/10}(u=r.SkyBottomLineCalculator.getSkyLineMinInRange(p,m))!==1/0&&(u<f?(o.options.top_text_position=-u,s.options.top_text_position=-u,r.SkyBottomLineCalculator.updateSkyLineInRange(c,h,u-1.85)):(n.line=-d,u=d),u-=n.PositionAndShape.Size.height,r.SkyBottomLineCalculator.updateSkyLineInRange(p,m,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,f=r.StaffLines.length-1,d=_createForOfIteratorHelper(r.Pedals);try{for(d.s();!(c=d.n()).done;){var p=c.value.getPedalMarking().line+3+(r.StaffLines.length-1);f=Math.max(p,f)}}catch(err){d.e(err)}finally{d.f()}if(n.EndSymbolPositionAndShape){var m=o.render_options.glyph_point_size/20;h=u+3.4;var g=i.AbsolutePosition.x-l,v=g+1.5;f=Math.max(r.SkyBottomLineCalculator.getBottomLineMaxInRange(u,h),f),f=Math.max(s+2*m,f);var y=r.SkyBottomLineCalculator.getBottomLineMaxInRange(g,v);n.DepressText||(f=Math.max(f,y)),n.setLine(f-3-(r.StaffLines.length-1)),r.SkyBottomLineCalculator.updateBottomLineInRange(u,h,f+m),r.SkyBottomLineCalculator.updateBottomLineInRange(g,v,f+m)}else{var b,S=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 x=null==t||null===(b=t.parentStaffEntry)||void 0===b?void 0:b.vfClefBefore;if(x)h+=x.getWidth()/10;if((f=Math.max(r.SkyBottomLineCalculator.getBottomLineMaxInRange(u,h),f))===1/0)return;if(f=Math.max(f,s+S),n.setLine(f-3-(r.StaffLines.length-1)),u>h){var w=h;h=u,u=w}r.SkyBottomLineCalculator.updateBottomLineInRange(u,h,f+S)}var _,k=_createForOfIteratorHelper(r.Pedals);try{for(k.s();!(_=k.n()).done;){var A=_.value,E=A.getPedalMarking();if(f>E.line+3+(r.StaffLines.length-1)){var C,P=E.render_options.text_margin_right/10,T=A.startVfVoiceEntry.PositionAndShape.AbsolutePosition.x-P,M=void 0;A.setLine(f-3-(r.StaffLines.length-1));var I=null===(C=A.endVfVoiceEntry)||void 0===C?void 0:C.PositionAndShape;if(I||(I=A.endMeasure.PositionAndShape),A.EndSymbolPositionAndShape){var R=o.render_options.glyph_point_size/20;M=T+3.4;var N=I.AbsolutePosition.x-P,L=N+1.5;r.SkyBottomLineCalculator.updateBottomLineInRange(T,M,f+R),r.SkyBottomLineCalculator.updateBottomLineInRange(N,L,f+R)}else{var D,B,F=E.render_options.bracket_height/10;if(E.EndsStave)M=I.AbsolutePosition.x+I.Size.width-P;else switch(o.style){case a.BRACKET_OPEN_END:case a.BRACKET_OPEN_BOTH:case a.MIXED_OPEN_END:M=I.AbsolutePosition.x+I.BorderRight-P;break;default:M=I.AbsolutePosition.x+I.BorderLeft-P}var O=null===(D=A.endVfVoiceEntry)||void 0===D||null===(B=D.parentStaffEntry)||void 0===B?void 0:B.vfClefBefore;if(O)M+=O.getWidth()/10;if(T>M){var V=T;T=M,M=V}r.SkyBottomLineCalculator.updateBottomLineInRange(T,M,f+F)}}}}catch(err){k.e(err)}finally{k.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 log$2.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 f,d=_createForOfIteratorHelper(s.Measures);try{for(d.s();!(f=d.n()).done;){var p,m=_createForOfIteratorHelper(f.value.staffEntries);try{for(m.s();!(p=m.n()).done;){var g,v=p.value,y=_createForOfIteratorHelper(v.graphicalVoiceEntries);try{for(y.s();!(g=y.n()).done;){var b,S=_createForOfIteratorHelper(g.value.notes);try{for(S.s();!(b=S.n()).done;){var x,w=b.value,_=_createForOfIteratorHelper(w.sourceNote.NoteSlurs);try{for(_.s();!(x=_.n()).done;){var k=x.value;if(k.EndNote&&k.StartNote){if(k.StartNote===w.sourceNote){var A=new GraphicalSlur(k,this.rules);l.push(A),s.addSlurToStaffline(A)}if(k.EndNote===w.sourceNote){var E=this.findIndexGraphicalSlurFromSlur(l,k);if(E>=0){var C=l[E];-1===C.staffEntries.indexOf(v)&&C.staffEntries.push(v),l.splice(E,1)}}}}}catch(err){_.e(err)}finally{_.f()}}}catch(err){S.e(err)}finally{S.f()}}}catch(err){y.e(err)}finally{y.f()}var P,T=_createForOfIteratorHelper(l);try{for(T.s();!(P=T.n()).done;){var M=P.value;-1===M.staffEntries.indexOf(v)&&M.staffEntries.push(v)}}catch(err){T.e(err)}finally{T.f()}}}catch(err){m.e(err)}finally{m.f()}}}catch(err){d.e(err)}finally{d.f()}}}catch(err){o.e(err)}finally{o.f()}}}catch(err){i.e(err)}finally{i.f()}var I,R=_createForOfIteratorHelper(this.musicSystems);try{for(R.s();!(I=R.n()).done;){var N,L=_createForOfIteratorHelper(I.value.StaffLines);try{for(L.s();!(N=L.n()).done;){var D,B=_createForOfIteratorHelper(N.value.GraphicalSlurs.sort(GraphicalSlur.Compare));try{for(B.s();!(D=B.n()).done;){var F=D.value;F.slur.isCrossed()||F.calculateCurve(this.rules)}}catch(err){B.e(err)}finally{B.f()}}}catch(err){L.e(err)}finally{L.f()}}}catch(err){R.e(err)}finally{R.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=_createSuper(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=_createSuper(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){log$2.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$1=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||(log$2.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 log$2.info("MusicSheet.FirstMeasureNumber: ",e),0}}},{key:"LastMeasureNumber",get:function(){try{return this.getLastSourceMeasure().MeasureNumber}catch(e){return log$2.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$1.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 f=a.elements(),d=0,p=0;p<f.length;p++){if("elision"===f[p].name){d=p;break}}var m=void 0,g=void 0;if(d>0)for(var v=d;v<f.length;v++){var y=f[v];"text"===y.name&&(m=y),"syllabic"===y.name&&(g=y)}void 0!==m&&g&&(s=m,o="middle")}var b=1,S=!1;if(void 0!==a.attributes()&&a.attribute("number")){try{b=parseInt(a.attribute("number").value,10)}catch(err){S=!0}if(S=S||isNaN(b))try{var x=a.attribute("number").value.toLowerCase().split("verse");x.length>1&&(b=parseInt(x[1],10))}catch(err){var w=ITextTranslation.translateText("ReaderErrorMessages/LyricVerseNumberError","Invalid lyric verse number");this.musicSheet.SheetErrors.pushMeasureError(w);continue}}var _=void 0;if("single"===o||"end"===o){if(this.openLyricWords[b]){this.currentLyricWord=this.openLyricWords[b];var k=this.currentLyricWord.Syllables.length;_=new LyricsEntry(u,b,this.currentLyricWord,t,k),this.currentLyricWord.Syllables.push(_),delete this.openLyricWords[b],this.currentLyricWord=void 0}else _=new LyricsEntry(u,b,void 0,t);_.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,_=new LyricsEntry(u,b,this.currentLyricWord,t,0),this.currentLyricWord.Syllables.push(_);else if("middle"===o)if(this.openLyricWords[b]){this.currentLyricWord=this.openLyricWords[b];var A=this.currentLyricWord.Syllables.length;_=new LyricsEntry(u,b,this.currentLyricWord,t,A),this.currentLyricWord.Syllables.push(_)}else _=new LyricsEntry(u,b,void 0,t);if(_){var E,C;if(!t.LyricsEntries[b])t.LyricsEntries.setValue(b,_),null!==(E=t.ParentSourceStaffEntry)&&void 0!==E&&null!==(C=E.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 P=ITextTranslation.translateText("ReaderErrorMessages/LyricError","Error while reading lyric entry.");this.musicSheet.SheetErrors.pushMeasureError(P);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 f,d=null==a||null===(f=a.attribute("type"))||void 0===f?void 0:f.value;"up"===d?h.articulationEnum=ArticulationEnum.marcatoup:"down"===d&&(h.articulationEnum=ArticulationEnum.marcatodown)}if("detachedlegato"===o){var p,m=new Articulation(ArticulationEnum.staccato,u),g=new Articulation(ArticulationEnum.tenuto,u);(p=t.Articulations).push.apply(p,[m,g])}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(v){return void log$2.debug("addArticulationExpression","Invalid note articulation.",v)}}}},{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 f=this.createTechnicalInstruction(h,n);f.type=TechnicalInstructionType.Fingering,n.Fingering=f,t.TechnicalInstructions.push(f)}var d=e.element("string");if(d){var p=this.createTechnicalInstruction(d,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,f=c.length;h<f;++h){var d=c[h],p=d.value;u=this.getAccEnumFromString(p);var m=d.attribute("placement");d.hasAttributes&&m&&("above"===(p=m.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=_createSuper(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,f,d,p,m,g,v,y,b,S,x,w){this.currentStaffEntry=o,this.currentMeasure=s;try{this.currentNote=a?this.addRestNote(e.element("rest"),t,r,i,f,d,y):this.addSingleNote(e,t,r,n,i,c,h,f,d,p,m,g,v,y,S,x,w),this.currentNote.DotsXml=b;var _=e.elements("lyric");void 0!==this.lyricsReader&&_&&(this.lyricsReader.addLyricEntry(_,this.currentVoiceEntry),this.voice.Parent.HasLyrics=!0);var k=!1,A=e.element("notations");if(A){this.articulationReader&&this.readArticulations(A,this.currentVoiceEntry,this.currentNote);var E=A.elements("slur");void 0!==this.slurReader&&E.length>0&&!this.currentNote.ParentVoiceEntry.IsGrace&&this.slurReader.addSlur(E,this.currentNote);var C=A.elements("tuplet");C.length>0&&(this.openTupletNumber=this.addTuplet(e,C),k=!0);var P=A.element("arpeggiate");if(void 0!==P){var T;if(this.currentVoiceEntry.Arpeggio)T=this.currentVoiceEntry.Arpeggio;else{var M,I=!1,R=_createForOfIteratorHelper(this.currentStaffEntry.VoiceEntries);try{for(R.s();!(M=R.n()).done;){var N=M.value;if(N.Arpeggio){I=!0,T=N.Arpeggio;break}}}catch(err){R.e(err)}finally{R.f()}if(!I){var L=ArpeggioType.ARPEGGIO_DIRECTIONLESS,D=P.attribute("direction");if(D)switch(D.value){case"up":L=ArpeggioType.ROLL_UP;break;case"down":L=ArpeggioType.ROLL_DOWN;break;default:L=ArpeggioType.ARPEGGIO_DIRECTIONLESS}T=new Arpeggio(this.currentVoiceEntry,L),this.currentVoiceEntry.Arpeggio=T}}T.addNote(this.currentNote)}var B=A.elements("tied");B.length>0&&this.addTie(B,l,u,TieTypes.SIMPLE);var F=A.elements("slide");F.length>0&&this.addTie(F,l,u,TieTypes.SLIDE);var O=A.element("technical");if(O){var V=O.elements("hammer-on");V.length>0&&this.addTie(V,l,u,TieTypes.HAMMERON);var G=O.elements("pull-off");G.length>0&&this.addTie(G,l,u,TieTypes.PULLOFF)}}void 0===e.element("time-modification")||k||this.handleTimeModificationNode(e)}catch(err){log$2.warn(err);var z=ITextTranslation.translateText("ReaderErrorMessages/NoteError","Ignored erroneous Note.");this.musicSheet.SheetErrors.pushMeasureError(z),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,f,d,p,m,g){for(var v,y=0,b=AccidentalEnum.NONE,S=NoteEnum.C,x=NoteEnum.C,w=0,_=0,k=void 0,A=void 0,E=void 0,C=e.elements(),P=0,T=C.length;P<T;++P){var M=C[P];try{if("pitch"===M.name)for(var I=M.elements(),R=0,N=I.length;R<N;++R){var L=I[R];A=void 0,E=void 0;try{if("step"===L.name){if(void 0===(S=NoteEnum[L.value])){var D=ITextTranslation.translateText("ReaderErrorMessages/NotePitchError","Invalid pitch while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(D),new MusicSheetReadingException(D,void 0)}}else if("alter"===L.name){if(y=parseFloat(L.value),isNaN(y)){var B=ITextTranslation.translateText("ReaderErrorMessages/NoteAlterationError","Invalid alteration while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(B),new MusicSheetReadingException(B,void 0)}b=Pitch.AccidentalFromHalfTones(y)}else if("octave"===L.name&&(w=parseInt(L.value,10),isNaN(w))){var F=ITextTranslation.translateText("ReaderErrorMessages/NoteOctaveError","Invalid octave value while reading note.");throw this.musicSheet.SheetErrors.pushMeasureError(F),new MusicSheetReadingException(F,void 0)}}catch(J){log$2.info("VoiceGenerator.addSingleNote read Step: ",J.message)}}else if("accidental"===M.name)"natural"===(v=M.value)?b=AccidentalEnum.NATURAL:"slash-flat"===v?b=AccidentalEnum.SLASHFLAT:"slash-quarter-sharp"===v?b=AccidentalEnum.SLASHQUARTERSHARP:"slash-sharp"===v?b=AccidentalEnum.SLASHSHARP:"double-slash-flat"===v?b=AccidentalEnum.DOUBLESLASHFLAT:"sori"===v?b=AccidentalEnum.SORI:"koron"===v&&(b=AccidentalEnum.KORON);else if("unpitched"===M.name){var O=M.element("display-step"),V=M.element("display-octave");if(V&&(_=(w=parseInt(V.value,10))-3,o&&(w+=1),1===this.instrument.Staves[0].StafflineCount&&(_+=1)),O){S=NoteEnum[O.value.toUpperCase()];var G=this.musicSheet.Rules.PercussionXMLDisplayStepNoteValueShift;1===this.instrument.Staves[0].StafflineCount&&(G-=3);var z=_slicedToArray(Pitch.lineShiftFromNoteEnum(S,G),2);x=z[0],_+=z[1]}}else"instrument"===M.name?M.firstAttribute&&(k=M.firstAttribute.value):"notehead"===M.name&&(A=M.value,M.attribute("filled")&&(E="yes"===M.attribute("filled").value))}catch(J){log$2.info("VoiceGenerator.addSingleNote: ",J)}}w-=Pitch.OctaveXmlDifference;var U=new Pitch(S,w,b,v),H=Fraction$1.createFromFraction(t),j=void 0,W=-1,q=-1,X=[],Y=e.element("notations");if(Y){var Q=Y.element("technical");if(Q){var K=Q.element("string");K&&(W=parseInt(K.value,10));var Z=Q.element("fret");Z&&(q=parseInt(Z.value,10)),Q.elements("bend").forEach((function(e){var t=e.element("bend-alter");void 0!==e.element("release")?X.push({bendalter:parseInt(t.value,10),direction:"down"}):X.push({bendalter:parseInt(t.value,10),direction:"up"})}))}}return j=W<0||q<0?new Note$1(this.currentVoiceEntry,this.currentStaffEntry,H,U,this.currentMeasure):new TabNote(this.currentVoiceEntry,this.currentStaffEntry,H,U,this.currentMeasure,W,q,X),this.addNoteInfo(j,n,s,l,i,x,_,d,d),j.TypeLength=r,j.IsGraceNote=u,j.StemDirectionXml=c,j.TremoloStrokes=h,j.PlaybackInstrumentId=k,(void 0!==A&&"normal"!==A||void 0!==E)&&(j.Notehead=new Notehead(j,A,E)),j.NoteheadColorXml=d,j.NoteheadColor=d,j.PlaybackInstrumentId=k,j.TremoloType=p,j.glissandoType=m,j.slideType=g,this.currentVoiceEntry.addNote(j),c===StemDirectionType.None&&(f="#00000000"),this.currentVoiceEntry.StemDirectionXml=c,f&&(this.currentVoiceEntry.StemColorXml=f,this.currentVoiceEntry.StemColor=f,j.StemColorXml=f),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"),f=void 0;c&&h&&(s=NoteEnum[c.value.toUpperCase()],l=parseInt(h.value,10),f=new Pitch(s,l,AccidentalEnum.NONE));var d=new Note$1(this.currentVoiceEntry,this.currentStaffEntry,u,f,this.currentMeasure,!0);return this.addNoteInfo(d,n,i,a,r,s,l,o,o),this.currentVoiceEntry.Notes.push(d),this.openBeams.length>0&&this.openBeams.last().ExtendedNoteList.push(d),d}},{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 log$2.debug("[OSMD] invalid beamnumber");for(var c=0,h=this.openBeams[o-1].Notes.length;c<h;++c){var f=this.openBeams[o-1].Notes[c];this.currentVoiceEntry===f.ParentVoiceEntry&&(u=!0)}if(!u)this.openBeams[o-1].addNoteToBeam(n),"end"===l&&this.endBeam()}}catch(e){var d=ITextTranslation.translateText("ReaderErrorMessages/BeamError","Error while reading beam.");throw this.musicSheet.SheetErrors.pushMeasureError(d),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 f=ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(f),new MusicSheetReadingException(f,void 0)}var d=new Tuplet(h,n);d.tupletLabelNumberPlacement=PlacementEnum.Above;var p=s.attribute("placement");p&&("below"===p.value&&(d.tupletLabelNumberPlacement=PlacementEnum.Below),d.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]=d;var m=[];m.push(this.currentNote),d.Notes.push(m),d.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=d,this.openTupletNumber=c}else if("stop"===u.value){var g=1;s.attribute("number")&&(g=parseInt(s.attribute("number").value,10));var v=this.tupletDict[g];if(v){var y=s.attribute("placement");y&&("below"===y.value?v.tupletLabelNumberPlacement=PlacementEnum.Below:v.tupletLabelNumberPlacement=PlacementEnum.Above,v.PlacementFromXml=!0);var b=[];if(b.push(this.currentNote),v.Notes.push(b),!v.PlacementFromXml){var S,x=!1,w=_createForOfIteratorHelper(v.Notes);try{for(w.s();!(S=w.n()).done;){var _,k=_createForOfIteratorHelper(S.value);try{for(k.s();!(_=k.n()).done;){var A=_.value;if(!A.isRest()){A.StemDirectionXml===StemDirectionType.Down?v.tupletLabelNumberPlacement=PlacementEnum.Below:v.tupletLabelNumberPlacement=PlacementEnum.Above,x=!0;break}}}catch(err){k.e(err)}finally{k.f()}if(x)break}}catch(err){w.e(err)}finally{w.f()}}v.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=v,delete this.tupletDict[g],0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--}}}}}else if(t[0]){var E=t[0];if(E.hasAttributes){var C=E.attribute("type").value,P=1;E.attribute("number")&&(P=parseInt(E.attribute("number").value,10));var T=isNaN(P),M=E.attribute("bracket");if(M&&"yes"===M.value&&(n=!0),"start"===C){var I=0,R=e.element("time-modification");if(R&&(R=R.element("actual-notes")),R&&(I=parseInt(R.value,10),isNaN(I))){var N=ITextTranslation.translateText("ReaderErrorMessages/TupletNoteDurationError","Invalid tuplet note duration.");throw this.musicSheet.SheetErrors.pushMeasureError(N),new MusicSheetReadingException(N)}T&&(this.openTupletNumber++,P=this.openTupletNumber);var L=this.tupletDict[P];L||((L=this.tupletDict[P]=new Tuplet(I,n)).tupletLabelNumberPlacement=PlacementEnum.Above);var D=E.attribute("placement");D&&("below"===D.value?L.tupletLabelNumberPlacement=PlacementEnum.Below:L.tupletLabelNumberPlacement=PlacementEnum.Above,L.PlacementFromXml=!0);var B=[];B.push(this.currentNote),L.Notes.push(B),L.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=L,this.openTupletNumber=P}else if("stop"===C){T&&(P=this.openTupletNumber);var F=this.tupletDict[this.openTupletNumber];if(F){var O=E.attribute("placement");O&&("below"===O.value?F.tupletLabelNumberPlacement=PlacementEnum.Below:F.tupletLabelNumberPlacement=PlacementEnum.Above,F.PlacementFromXml=!0);var V=[];if(V.push(this.currentNote),F.Notes.push(V),!F.PlacementFromXml){var G,z=!1,U=_createForOfIteratorHelper(F.Notes);try{for(U.s();!(G=U.n()).done;){var H,j=_createForOfIteratorHelper(G.value);try{for(j.s();!(H=j.n()).done;){var W=H.value;if(!W.isRest()){W.StemDirectionXml===StemDirectionType.Down?F.tupletLabelNumberPlacement=PlacementEnum.Below:F.tupletLabelNumberPlacement=PlacementEnum.Above,z=!0;break}}}catch(err){j.e(err)}finally{j.f()}if(z)break}}catch(err){U.e(err)}finally{U.f()}}F.Fractions.push(this.getTupletNoteDurationFromType(e)),this.currentNote.NoteTuplet=F,0===Object.keys(this.tupletDict).length?this.openTupletNumber=0:Object.keys(this.tupletDict).length>1&&this.openTupletNumber--,delete this.tupletDict[P]}}}}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 f=ITextTranslation.translateText("ReaderErrorMessages/TieError","Error while reading tie.");this.musicSheet.SheetErrors.pushMeasureError(f)}}}else if(2===e.length){var d=this.findCurrentNoteInTieDict(this.currentNote);if(d>=0){var p=this.openTieDict[d];p.AddNote(this.currentNote);var m,g=_createForOfIteratorHelper(e);try{for(g.s();!(m=g.n()).done;){var v=m.value;if("start"===v.attribute("type").value){var y=this.getTieDirection(v);p.NoteIndexToTieDirection[p.Notes.length-1]=y}}}catch(err){g.e(err)}finally{g.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(F){var u=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(u),void log$2.debug("InstrumentReader.readChordSymbol",u,F)}var c=AccidentalEnum.NONE;if(s)try{c=Pitch.AccidentalFromHalfTones(parseInt(s.value,10))}catch(F){var h=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");t.SheetErrors.pushMeasureError(h),log$2.debug("InstrumentReader.readChordSymbol",h,F)}var f,d=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{f=ChordSymbolEnum[p]}catch(F){var m=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(m),void log$2.debug("InstrumentReader.readChordSymbol",m,F)}var g=void 0,v=e.element("bass");if(v){var y=v.element("bass-step"),b=v.element("bass-alter"),S=NoteEnum.C;if(y)try{S=NoteEnum[y.value.trim()]}catch(F){var x=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(x),void log$2.debug("InstrumentReader.readChordSymbol",x,F)}var w=AccidentalEnum.NONE;if(b)try{w=Pitch.AccidentalFromHalfTones(parseInt(b.value,10))}catch(F){var _=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");t.SheetErrors.pushMeasureError(_),log$2.debug("InstrumentReader.readChordSymbol",_,F)}g=new Pitch(S,1,w)}var k,A=[],E=_createForOfIteratorHelper(e.elements("degree"));try{for(E.s();!(k=E.n()).done;){var C=k.value;if(C){var P=C.element("degree-value"),T=C.element("degree-alter"),M=C.element("degree-type");if(!P||!T||!M)return;var I=void 0;try{I=parseInt(P.value.trim(),10)}catch(F){var R=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(R),void log$2.debug("InstrumentReader.readChordSymbol",R,F)}var N=void 0;try{N=Pitch.AccidentalFromHalfTones(parseInt(T.value,10))}catch(F){var L=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(L),void log$2.debug("InstrumentReader.readChordSymbol",L,F)}var D=void 0;try{D=ChordDegreeText[M.value.trim().toLowerCase()]}catch(F){var B=ITextTranslation.translateText("ReaderErrorMessages/ChordSymbolError","Invalid chord symbol");return t.SheetErrors.pushMeasureError(B),void log$2.debug("InstrumentReader.readChordSymbol",B,F)}A.push(new Degree(I,N,D))}}}catch(err){E.e(err)}finally{E.f()}return new ChordSymbolContainer(d,f,g,A,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=_createSuper(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(_){var l="ReaderErrorMessages/ExpressionOffsetError, Invalid expression offset -> set to default.";log$2.debug("ExpressionReader.readExpressionParameters",l,_),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(_){var f=ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");log$2.debug("ExpressionReader.readExpressionParameters",f,_),this.musicSheet.SheetErrors.pushMeasureError(f),this.placement=PlacementEnum.Below}if(this.placement===PlacementEnum.NotYetDefined)try{var d=e.element("direction-type");if(d){var p=d.element("dynamics");if(p){var m=p.attribute("default-y");m&&this.readExpressionPlacement(m,"read dynamics y pos")}var g=d.element("wedge");if(g){var v=g.attribute("default-y");v&&this.readExpressionPlacement(v,"read wedge y pos")}var y=d.element("words");if(y){var b=y.attribute("default-y");b&&this.readExpressionPlacement(b,"read words y pos")}var S=d.element("rehearsal");if(S){var x=S.attribute("default-y");x&&this.readExpressionPlacement(x,"read rehearsal pos")}}}catch(_){var w=ITextTranslation.translateText("ReaderErrorMessages/ExpressionPlacementError","Invalid expression placement -> set to default.");log$2.debug("ExpressionReader.readExpressionParameters",w,_),this.musicSheet.SheetErrors.pushMeasureError(w),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)):(log$2.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 f=e.element("direction-type");if(f){var d=f.element("metronome");if(d){t.metronomeNoteIndex=i;var p=d.element("beat-unit"),m=void 0!==d.element("beat-unit-dot"),g=d.element("per-minute");if(void 0!==p&&g){var v=d.hasAttributes&&void 0!==d.attribute("default-x");v&&(this.directionTimestamp=Fraction$1.createFromFraction(n));var y=parseFloat(g.value);this.createNewTempoExpressionIfNeeded(t);var b=new InstantaneousTempoExpression(void 0,this.placement,this.staffNumber,y,this.currentMultiTempoExpression,!0);b.parentMeasure=t,this.soundTempo=y,t.TempoInBPM=this.soundTempo*(m?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,b.dotted=m,b.beatUnit=p.value,this.currentMultiTempoExpression.addExpression(b,""),this.currentMultiTempoExpression.CombinedExpressionsText="test"}}else if(d=f.element("dynamics")){var S=void 0!==e.element("notations");this.interpretInstantaneousDynamics(d,t,n,S)}else if(d=f.element("words")){var x,w=f.elements("words"),_="",k=_createForOfIteratorHelper(w);try{for(k.s();!(x=k.n()).done;){var A=x.value;_+=A.value}}catch(err){k.e(err)}finally{k.f()}if(d.value=_,a||isSpeedKeyword(d.value)||isSpeedHiddenKeyword(d.value)){this.createNewTempoExpressionIfNeeded(t),this.currentMultiTempoExpression.CombinedExpressionsText=d.value,(isSpeedKeyword(d.value)||isSpeedHiddenKeyword(d.value))&&(d.value=void 0);var E=new InstantaneousTempoExpression(d.value,this.placement,this.staffNumber,this.soundTempo,this.currentMultiTempoExpression);this.currentMultiTempoExpression.addExpression(E,"")}else o||this.interpretWords(d,t,n)}else(d=f.element("wedge"))?this.interpretWedge(d,t,r,t.MeasureNumber):(d=f.element("rehearsal"))&&this.interpretRehearsalMark(d,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(g){var a=ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftStaffError","Invalid octave shift staff number -> set to default");this.musicSheet.SheetErrors.pushMeasureError(a),r=1,log$2.debug("ExpressionReader.addOctaveShift",a,g)}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),f=0;8===h?f=1:15===h&&(f=2);var d=null===(c=s.attribute("type"))||void 0===c?void 0:c.value;if(d||(l===PlacementEnum.Above?d="down":l===PlacementEnum.Below&&(d="up")),"up"===d||"down"===d){var p=new OctaveShift(d,f);p.StaffNumber=r,this.getMultiExpression=this.createNewMultiExpressionIfNeeded(t,u),this.getMultiExpression.OctaveShiftStart=p,p.ParentStartMultiExpression=this.getMultiExpression,this.openOctaveShift=p}else if("stop"===d){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 d||log$2.debug("octave-shift missing type in xml")}}catch(g){var m=ITextTranslation.translateText("ReaderErrorMessages/OctaveShiftError","Error while reading octave shift.");this.musicSheet.SheetErrors.pushMeasureError(m),log$2.debug("ExpressionReader.addOctaveShift",m,g)}}}},{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(f){var h=ITextTranslation.translateText("ReaderErrorMessages/PedalError","Error while reading pedal.");this.musicSheet.SheetErrors.pushMeasureError(h),log$2.debug("ExpressionReader.addPedalMarking",h,f)}}}}},{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),log$2.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){log$2.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),log$2.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),f=this.getMultiExpression;return f&&this.closeOpenContinuousDynamic(f.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 d=this.createNewMultiExpressionIfNeeded(n,-1);n.hasMoodExpressions=!0;var p=new MoodExpression(t,this.placement,this.staffNumber);return p.fontStyle=a,d.addExpression(p,e),!0}var m=this.createNewMultiExpressionIfNeeded(n,-1);if(n.TempoExpressions.length>0)for(var g=0,v=n.TempoExpressions.length;g<v;++g){var y=n.TempoExpressions[g];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 S=new UnknownExpression(t,this.placement,b,this.staffNumber);return S.fontStyle=a,m.addExpression(S,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(d){log$2.debug("VoiceGenerator.addSlur number: ",d)}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 f=ITextTranslation.translateText("ReaderErrorMessages/SlurError","Error while reading slur.");this.musicSheet.SheetErrors.pushMeasureError(f)}}}]),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],f=h.elements();if(t.Rules.UseXMLMeasureNumbers&&!Number.isInteger(t.MeasureNumberXML)){var d,p=parseInt(null===(d=h.attribute("number"))||void 0===d?void 0:d.value,10);Number.isInteger(p)&&(t.MeasureNumberXML=p)}for(var m=0;m<f.length;m++){var g=f[m];if(m>0&&(c=f[m-1]),"print"===g.name){var v=g.attribute("new-system");"yes"===(null==v?void 0:v.value)&&(t.printNewSystemXml=!0);var y=g.attribute("new-page");"yes"===(null==y?void 0:y.value)&&(t.printNewPageXml=!0)}else if("note"===g.name){var b;g.element("grace")||(this.xmlNotes.push(g),u.push(g));var S=!0;"no"===(null===(b=g.attribute("print-object"))||void 0===b?void 0:b.value)&&(S=!1);var x=1;this.instrument.Staves.length>1&&g.element("staff")&&(x=parseInt(g.element("staff").value,10),isNaN(x)&&(log$2.debug("InstrumentReader.readNextXmlMeasure.get staff number"),x=1)),this.currentStaff=this.instrument.Staves[x-1];var w=void 0!==g.element("chord");if(g.element("voice")){var _=parseInt(g.element("voice").value,10);this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(_,x-1)}else w&&this.currentVoiceGenerator||(this.currentVoiceGenerator=this.getOrCreateVoiceGenerator(1,x-1));var k=0,A=new Fraction$1(0,1),E=2,C=void 0,P=!1;if(g.element("duration")){if(k=parseInt(g.element("duration").value,10),isNaN(k)){var T=ITextTranslation.translateText("ReaderErrorMessages/NoteDurationError","Invalid Note Duration.");this.musicSheet.SheetErrors.pushMeasureError(T),log$2.debug("InstrumentReader.readNextXmlMeasure",T);continue}if(A=new Fraction$1(k,4*this.divisions),0===k?A=this.getNoteDurationFromTypeNode(g):C=this.getNoteDurationFromTypeNode(g),g.element("time-modification")){A=this.getNoteDurationForTuplet(g);var M=g.element("time-modification");null!=M&&M.element("normal-notes")&&(E=parseInt(M.element("normal-notes").value,10)),P=!0}}var I=void 0!==g.element("rest"),R=g.element("notations"),N=void 0!==g.element("grace")||0===k||w&&l,L=!1,D=!1;if(N){var B=g.element("duration"),F=g.element("grace");if(F&&F.attributes())if(F.attribute("slash"))"yes"===F.attribute("slash").value&&(L=!0);B||(A=this.getNoteDurationFromTypeNode(g));var O=g.element("notations");O&&O.element("slur")&&(D=!0)}var V=!1;g.element("cue")&&(V=!0);var G=g.element("type"),z=NoteType.UNDEFINED;if(G){var U=G.attribute("size");"cue"===(null==U?void 0:U.value)&&(V=!0),z=NoteTypeHandler.StringToNoteType(G.value)}var H=StemDirectionType.Undefined,j=void 0,W=g.element("stem");if(W){switch(W.value){case"down":H=StemDirectionType.Down;break;case"up":H=StemDirectionType.Up;break;case"double":H=StemDirectionType.Double;break;case"none":H=StemDirectionType.None;break;default:H=StemDirectionType.Undefined}var q=W.attribute("color");q&&(j=this.parseXmlColor(q.value))}var X=0,Y="",Q="",K="";if(R){var Z=R.element("ornaments");if(Z){var J=Z.element("tremolo");if(J){var $=J.attribute("type");if(Y=$.value,$){var ee=parseInt(J.value,10);ee>0&&(X=ee),"start"!==$.value&&"stop"!==$.value||(A=new Fraction$1(parseInt(g.element("duration").value,10),4*this.divisions))}}var te=Z.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(g)-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()}}}R.elements("glissando").find((function(e){return"start"===e.attribute("type").value}))&&(Q="start"),R.elements("slide").find((function(e){return"start"===e.attribute("type").value}))&&(K="start")}var oe=void 0,se=g.element("notehead");if(se){var le=se.attribute("color");le&&(oe=this.parseXmlColor(le.value))}var ue=void 0,ce=g.attribute("color");ce&&(ue=this.parseXmlColor(ce.value),oe||(oe=ue),j||(j=ue));var he=a.clone();w&&(he=o.clone()),this.currentStaffEntry=this.currentMeasure.findOrCreateStaffEntry(he,this.inSourceMeasureInstrumentIndex+x-1,this.currentStaff).staffEntry,(!this.currentVoiceGenerator.hasVoiceEntry()||!w&&!N&&!l||N&&!l||N&&!w||!N&&l)&&this.currentVoiceGenerator.createVoiceEntry(he,this.currentStaffEntry,this.activeKey,this.ActiveRhythm,N,L,D),N||w||(o=a.clone(),a.Add(A)),w&&void 0!==this.currentStaffEntry&&this.currentStaffEntry.ParentStaff!==this.currentStaff&&(this.currentStaffEntry=this.currentVoiceGenerator.checkForStaffEntryLink(this.inSourceMeasureInstrumentIndex+x-1,this.currentStaff,this.currentStaffEntry,this.currentMeasure));var fe=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,fe),0!==this.openChordSymbolContainers.length&&(this.currentStaffEntry.ChordContainers=this.openChordSymbolContainers,this.openChordSymbolContainers=[]),this.activeRhythm,P||N||(A=new Fraction$1(k,4*this.divisions));var de=g.elements("dot").length;if(this.currentVoiceGenerator.read(g,A,C,z,E,I,this.currentStaffEntry,this.currentMeasure,n,this.maxTieNoteFraction,w,r,S,V,N,H,X,j,oe,de,Y,Q,K),void 0!==R&&R.element("dynamics")){var pe=this.expressionReaders[this.readExpressionStaffNumber(g)-1];pe&&(pe.readExpressionParameters(g,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!1),pe.read(g,this.currentMeasure,o,void 0,u.length))}l=N}else if("attributes"===g.name){var me=g.element("divisions");if(me&&(this.divisions=parseInt(me.value,10),isNaN(this.divisions))){var ge=ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(log$2.debug("InstrumentReader.readNextXmlMeasure",ge),this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw s=!0,new MusicSheetReadingException(ge+this.instrument.Name);this.musicSheet.SheetErrors.push(ge+this.instrument.Name)}if(!g.element("divisions")&&0===this.divisions&&0===this.currentXmlMeasureIndex){var ve=ITextTranslation.translateText("ReaderErrorMessages/DivisionError","Invalid divisions value at Instrument: ");if(this.divisions=this.readDivisionsFromNotes(),!(this.divisions>0))throw s=!0,new MusicSheetReadingException(ve+this.instrument.Name);this.musicSheet.SheetErrors.push(ve+this.instrument.Name)}this.addAbstractInstruction(g,r,c,a.clone()),a.Equals(new Fraction$1(0,1))&&this.isAttributesNodeAtBeginOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],g)&&this.saveAbstractInstructionList(this.instrument.Staves.length,!0),this.isAttributesNodeAtEndOfMeasure(this.xmlMeasureList[this.currentXmlMeasureIndex],g)&&this.saveClefInstructionAtEndOfMeasure();var ye,be=_createForOfIteratorHelper(g.elements("staff-details"));try{for(be.s();!(ye=be.n()).done;){var Se=ye.value,xe=Se.element("staff-lines");if(xe){var we=1,_e=Se.attribute("number");_e&&(we=parseInt(_e.value,10)),this.instrument.Staves[we-1].StafflineCount=parseInt(xe.value,10)}}}catch(err){be.e(err)}finally{be.f()}var ke=g.element("measure-style");if(ke){var Ae=ke.element("multiple-rest");if(Ae){var Ee=Ae.value,Ce=0;try{Ce=Number.parseInt(Ee,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"===g.name){var Pe=parseInt(g.element("duration").value,10);a.Add(new Fraction$1(Pe,4*this.divisions))}else if("backup"===g.name){var Te=parseInt(g.element("duration").value,10);a.Sub(new Fraction$1(Te,4*this.divisions)),a.IsNegative()&&(a=new Fraction$1(0,1)),o.Sub(new Fraction$1(Te,4*this.divisions)),o.IsNegative()&&(o=new Fraction$1(0,1))}else if("direction"===g.name){var Me=g.elements("direction-type"),Ie=g.element("direction-type"),Re=Math.min(1,a.RealValue);void 0!==this.activeRhythm&&this.activeRhythm.Rhythm&&(Re/=this.activeRhythm.Rhythm.RealValue);var Ne=!1;if(this.repetitionInstructionReader&&(Ne=this.repetitionInstructionReader.handleRepetitionInstructionsFromWordsOrSymbols(Ie,Re)),!Ne){var Le=this.expressionReaders[0],De=this.readExpressionStaffNumber(g)-1;if(De<this.expressionReaders.length&&(Le=this.expressionReaders[De]),Le){var Be;Ie.element("octave-shift")&&(Le.readExpressionParameters(g,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!0),Le.addOctaveShift(g,this.currentMeasure,o.clone())),Ie.element("pedal")&&(Le.readExpressionParameters(g,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!0),Le.addPedalMarking(g,this.currentMeasure,o.clone()));var Fe=Ie.element("words");if(Fe){var Oe,Ve,Ge,ze,Ue;if(GradientWords.map((function(e){return null==e?void 0:e.toLocaleLowerCase()})).includes(null===(Oe=Fe.value)||void 0===Oe?void 0:Oe.toLocaleLowerCase()))this.currentGradualChangeMeasure=this.currentMeasure,this.currentMeasure.speedInfo={startWord:null===(Ue=Fe.value)||void 0===Ue?void 0:Ue.toLocaleLowerCase(),startXmlNoteIndex:u.length,endXmlNoteIndex:0,resetXmlNoteIndex:0,startMeasureListIndex:this.currentXmlMeasureIndex,endMeasureListIndex:0,resetMeasureListIndex:0},this.xmlNotes=[];if(Fe.value.startsWith(GRADIENT_SPEED_CLOSE_TAG)&&null!==(Ve=this.currentGradualChangeMeasure)&&void 0!==Ve&&Ve.speedInfo&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread2(_objectSpread2({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:this.xmlNotes.length,endMeasureListIndex:this.currentXmlMeasureIndex})),(null===(Ge=Fe.value)||void 0===Ge?void 0:Ge.toLocaleLowerCase())==="a tempo".toLocaleLowerCase()&&null!==(ze=this.currentGradualChangeMeasure)&&void 0!==ze&&ze.speedInfo){var He=this.currentGradualChangeMeasure.speedInfo,je=He.endXmlNoteIndex,We=He.resetXmlNoteIndex,qe=He.endMeasureListIndex;0===We&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread2(_objectSpread2({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:je||this.xmlNotes.length,endMeasureListIndex:qe||this.currentXmlMeasureIndex,resetXmlNoteIndex:this.xmlNotes.length,resetMeasureListIndex:this.currentXmlMeasureIndex})),this.xmlNotes=[]}}if(Me.find((function(e){return e.element("metronome")}))&&null!==(Be=this.currentGradualChangeMeasure)&&void 0!==Be&&Be.speedInfo){var Xe=this.currentGradualChangeMeasure.speedInfo,Ye=Xe.endXmlNoteIndex,Qe=Xe.resetXmlNoteIndex,Ke=Xe.endMeasureListIndex;0===Qe&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread2(_objectSpread2({},this.currentGradualChangeMeasure.speedInfo),{},{endXmlNoteIndex:Ye||this.xmlNotes.length,endMeasureListIndex:Ke||this.currentXmlMeasureIndex,resetXmlNoteIndex:this.xmlNotes.length,resetMeasureListIndex:this.currentXmlMeasureIndex})),this.xmlNotes=[]}Le.readExpressionParameters(g,this.instrument,this.divisions,a,o,this.currentMeasure.MeasureNumber,!1),Le.read(g,this.currentMeasure,a,o.clone(),u.length)}}}else if("barline"===g.name){if(this.repetitionInstructionReader)this.repetitionInstructionReader.handleLineRepetitionInstructions(g)&&(this.currentMeasure.HasEndLine=!0);var Ze=g.attribute("location");if(m===f.length-1||Ze&&"right"===Ze.value){var Je,$e,et=null===(Je=g.element("bar-style"))||void 0===Je?void 0:Je.value;if(et)if(this.currentMeasure.endingBarStyleXml=et,this.currentMeasure.endingBarStyleEnum=SystemLinesEnumHelper.xmlBarlineStyleToSystemLinesEnum(et),null!==($e=this.currentGradualChangeMeasure)&&void 0!==$e&&$e.speedInfo){var tt=this.currentGradualChangeMeasure.speedInfo,nt=tt.endXmlNoteIndex,rt=tt.resetXmlNoteIndex,it=tt.endMeasureListIndex;0===rt&&(this.currentGradualChangeMeasure.speedInfo=_objectSpread2(_objectSpread2({},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"===g.name)try{if(g.attribute("tempo")){var at=parseFloat(g.attribute("tempo").value);g.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){log$2.debug("InstrumentReader.readTempoInstruction",e)}else"harmony"===g.name&&this.openChordSymbolContainers.push(ChordSymbolReader.readChordSymbol(g,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),log$2.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],f=ClefEnum.G,d=2,p=1,m=0,g=h.element("line");if(g)try{d=parseInt(g.value,10)}catch(Z){s=ITextTranslation.translateText("ReaderErrorMessages/ClefLineError","Invalid clef line given -> using default clef line."),this.musicSheet.SheetErrors.pushMeasureError(s),d=2,log$2.debug("InstrumentReader.addAbstractInstruction",s,Z)}var v=h.element("sign");if(v)try{f=ClefEnum[v.value],ClefInstruction.isSupportedClef(f)||(s=ITextTranslation.translateText("ReaderErrorMessages/ClefError","Unsupported clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),f=ClefEnum.G,d=2),f===ClefEnum.TAB&&(m=-1)}catch(e){s=ITextTranslation.translateText("ReaderErrorMessages/ClefError","Invalid clef found -> using default clef."),this.musicSheet.SheetErrors.pushMeasureError(s),f=ClefEnum.G,d=2,log$2.debug("InstrumentReader.addAbstractInstruction",s,e)}var y=h.element("clef-octave-change");if(y)try{m=parseInt(y.value,10)}catch(e){s=ITextTranslation.translateText("ReaderErrorMessages/ClefOctaveError","Invalid clef octave found -> using default clef octave."),this.musicSheet.SheetErrors.pushMeasureError(s),m=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(f,m,d);this.abstractInstructions.push([p,b,i])}if(void 0!==t.element("key")&&this.instrument.MidiInstrumentId!==MidiInstrument.Percussion){var S=0,x=t.element("key").element("fifths");if(x)try{S=parseInt(x.value,10)}catch(Z){s=ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),S=0,log$2.debug("InstrumentReader.addAbstractInstruction",s,Z)}var w=KeyEnum.none,_=t.element("key");if(_&&(_=_.element("mode")),_)try{w=KeyEnum[_.value]}catch(Z){s=ITextTranslation.translateText("ReaderErrorMessages/KeyError","Invalid key found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),w=KeyEnum.major,log$2.debug("InstrumentReader.addAbstractInstruction",s,Z)}var k=new KeyInstruction(void 0,S,w);this.abstractInstructions.push([1,k,i])}if(t.element("time")){var A=t.element("time"),E=RhythmSymbolEnum.NONE,C=!0;if(void 0!==A&&A.hasAttributes){var P=A.attribute("symbol");P&&("common"===P.value?E=RhythmSymbolEnum.COMMON:"cut"===P.value&&(E=RhythmSymbolEnum.CUT));var T=A.attribute("print-object");T&&"no"===T.value&&(C=!1)}for(var M=0,I=0,R=A&&void 0!==A.element("senza-misura"),N=t.elements("time"),L=[],D=[],B=0,F=N.length;B<F;++B){var O=N[B];L.push.apply(L,O.elements("beats")),D.push.apply(D,O.elements("beat-type"))}if(R)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!==D&&L.length===D.length){for(var V=L.length,G=new Array(V),z=0,U=0;U<V;U++){var H,j=L[U].value,W=0;if(-1!==j.indexOf("+"))for(var q=j.split("+"),X=0,Y=q.length;X<Y;++X)W+=parseInt(q[X],10);else W=parseInt(j,10);H=parseInt(D[U].value,10),z=Math.max(z,H),G[U]=new Fraction$1(W,H,0,!1)}for(var Q=0;Q<V;Q++)G[Q].Denominator===z?M+=G[Q].Numerator:M+=z/G[Q].Denominator*G[Q].Numerator;I=z}else M=parseInt(t.element("time").element("beats").value,10),I=parseInt(t.element("time").element("beat-type").value,10)}catch(Z){s=ITextTranslation.translateText("ReaderErrorMessages/RhythmError","Invalid rhythm found -> set to default."),this.musicSheet.SheetErrors.pushMeasureError(s),M=4,I=4,log$2.debug("InstrumentReader.addAbstractInstruction",s,Z)}var K=new RhythmInstruction(new Fraction$1(M,I,0,!1),E);K.PrintObject=C,this.abstractInstructions.push([1,K,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 f=new SourceStaffEntry(void 0,void 0);this.currentMeasure.LastInstructionsStaffEntries[c]=f,u.Parent=f,f.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 d=this.previousMeasure;this.followingMultirestMeasures>0&&this.currentMeasure.Rules.RenderMultipleRestMeasures&&(d=this.currentMultirestStartMeasure);var p=new SourceStaffEntry(void 0,void 0);d.LastInstructionsStaffEntries[c]=p,u.Parent=p,p.Instructions.push(u)}else{var m=this.musicSheet.SourceMeasures[0];m.FirstInstructionsStaffEntries[c]?(l=m.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 g=void 0,v=this.activeRhythm.Rhythm;v.RealValue>0&&o.RealValue/v.RealValue>.9&&(this.currentMeasure.LastInstructionsStaffEntries[i-1]||(this.currentMeasure.LastInstructionsStaffEntries[i-1]=new SourceStaffEntry(void 0,this.instrument.Staves[i-1])),g=this.currentMeasure.LastInstructionsStaffEntries[i-1]),g&&(s.Parent=g,g.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 S=a;if(this.activeKey&&this.activeKey.Key===S.Key)this.abstractInstructions.splice(n,1);else{this.activeKey=S,this.abstractInstructions.splice(n,1);var x=void 0;if(this.activeKeyHasBeenInitialized?x=this.currentMeasure:(this.activeKeyHasBeenInitialized=!0,x=this.currentXmlMeasureIndex>0?this.musicSheet.SourceMeasures[0]:this.currentMeasure),x)for(var w=this.inSourceMeasureInstrumentIndex;w<this.inSourceMeasureInstrumentIndex+e;w++){var _=S;if(x.FirstInstructionsStaffEntries[w]){var k=x.FirstInstructionsStaffEntries[w];_.Parent=k,k.removeFirstInstructionOfTypeKeyInstruction(),0===k.Instructions.length?k.Instructions.push(_):k.Instructions[0]instanceof ClefInstruction?k.Instructions.splice(1,0,_):k.Instructions.splice(0,0,_)}else{var A=new SourceStaffEntry(void 0,void 0);x.FirstInstructionsStaffEntries[w]=A,_.Parent=A,A.Instructions.push(_)}}}}if(a instanceof RhythmInstruction){var E=a;if(this.activeRhythm&&this.activeRhythm===E)this.abstractInstructions.splice(n,1);else if(this.activeRhythm=E,this.abstractInstructions.splice(n,1),this.currentMeasure)for(var C=this.inSourceMeasureInstrumentIndex;C<this.inSourceMeasureInstrumentIndex+e;C++){var P=E,T=void 0;this.currentMeasure.FirstInstructionsStaffEntries[C]?(T=this.currentMeasure.FirstInstructionsStaffEntries[C]).removeFirstInstructionOfTypeRhythmInstruction():(T=new SourceStaffEntry(void 0,void 0),this.currentMeasure.FirstInstructionsStaffEntries[C]=T),P.Parent=T,T.Instructions.push(P)}}}}},{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,log$2.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(f){log$2.debug("InstrumentReader.readDivisionsFromNotes",f);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){log$2.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){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new RegExp("( |^)"+t+"([ .]|$)",n?"i":void 0);return r.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 f=u[c];if("repeat"===f.name&&f.hasAttributes)r=!0,i=f.attribute("direction").value;else if("ending"===f.name&&f.hasAttributes&&void 0!==f.attribute("type")&&f.attribute("number")){a=f.attribute("type").value;for(var d=f.attribute("number").value.split("[,+]"),p=0,m=d.length;p<m;++p){var g=d[p],v=g.match("[0-9]");if(-1!==g.search("-")&&2===v.length)for(var y=parseInt(v[0],10),b=parseInt(v[1],10),S=y;S<=b;S++)s.push(S);else for(var x=0,w=v.length;x<w;++x){var _=v[x];s.push(parseInt(_,10))}}}}if("light-heavy"!==o||0!==s.length||r||(t=!0),r||s.length>0)if("left"===n){if("start"===a){var k=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Ending,AlignmentType.Begin,void 0,s);this.addInstruction(this.repetitionInstructions,k)}if("forward"===i){var A=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.StartLine);this.addInstruction(this.repetitionInstructions,A)}}else{if("stop"===a){var E=new RepetitionInstruction(this.currentMeasureIndex,RepetitionInstructionEnum.Ending,AlignmentType.End,void 0,s);this.addInstruction(this.repetitionInstructions,E)}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 f=new RepetitionInstruction(r,RepetitionInstructionEnum.DaCapo);return this.addInstruction(this.repetitionInstructions,f),!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 d=new RepetitionInstruction(r,RepetitionInstructionEnum.ToCoda);return this.addInstruction(this.repetitionInstructions,d),!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 m=new RepetitionInstruction(r,RepetitionInstructionEnum.Coda);return this.addInstruction(this.repetitionInstructions,m),!0}if(StringUtil.StringContainsSeparatedWord(a,"segno",!0)){var g=new RepetitionInstruction(r,RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,g),!0}}else{if(e.element("segno")){var v=new RepetitionInstruction(r,RepetitionInstructionEnum.Segno);return this.addInstruction(this.repetitionInstructions,v),!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(_){log$2.error("RepetitionCalculator: calculateRepetitions",_)}}}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,f=_createForOfIteratorHelper(this.repetitionInstructions);try{for(f.s();!(c=f.n()).done;){var d=c.value;d.parentRepetition===h&&(d.parentRepetition=void 0)}}catch(err){f.e(err)}finally{f.f()}this.openRepetitions.splice(this.openRepetitions.length-1,1)}catch(_){log$2.error("RepetitionCalculator: calculateRepetitions2",_)}}var p,m=!1,g=this.musicSheet.SourceMeasures.length-1,v=_createForOfIteratorHelper(this.musicSheet.Repetitions);try{for(v.s();!(p=v.n()).done;){var y=p.value;if(0===y.StartIndex&&y.EndIndex===g){m=!0;break}}}catch(err){v.e(err)}finally{v.f()}if(!m){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(g,RepetitionInstructionEnum.BackJumpLine),b.endMarker.parentRepetition=b,b.BackwardJumpInstructions.push(b.endMarker),b.UserNumberOfRepetitions=b.DefaultNumberOfRepetitions,this.musicSheet.Repetitions.push(b)}for(var S=0,x=this.musicSheet.SourceMeasures.length;S<x;++S){var w=this.musicSheet.SourceMeasures[S];w.FirstRepetitionInstructions.length>1&&w.FirstRepetitionInstructions.sort(RepetitionInstructionComparer.Compare),w.LastRepetitionInstructions.length>1&&w.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 f=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Segno,e.measureIndex);f>=0&&(t.SegnoFound=!0,t.RepetitonUnderConstruction.startMarker=new RepetitionInstruction(f,RepetitionInstructionEnum.Segno,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[f].FirstRepetitionInstructions.splice(0,0,t.RepetitonUnderConstruction.startMarker))}if(!t.ToCodaFound){var d=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.ToCoda,e.measureIndex);if(d>=0)t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(d,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[d].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 m=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.ToCoda,e.measureIndex);if(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;else{var g=this.findInstructionInMainListBackwards(RepetitionInstructionEnum.Coda,e.measureIndex);g>=0&&(t.RepetitonUnderConstruction.forwardJumpInstruction=new RepetitionInstruction(g,RepetitionInstructionEnum.ToCoda,AlignmentType.Begin,t.RepetitonUnderConstruction),this.musicSheet.SourceMeasures[g].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){log$2.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 log$2.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$1,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 f,d,p=_createForOfIteratorHelper(i);try{for(p.s();!(f=p.n()).done;){var m=f.value;try{u=u&&m.readNextXmlMeasure(this.currentMeasure,this.currentFraction,c)}catch(e){var g=ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading instruments.");throw new MusicSheetReadingException(g,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===(d=i[0])||void 0===d?void 0:d.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 v=0,y=this.afterSheetReadingModules.length;v<y;++v){this.afterSheetReadingModules[v].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 f=ITextTranslation.translateText("ReaderErrorMessages/InstrumentStavesNumberError","Invalid number of staves at instrument: ");this.musicSheet.SheetErrors.push(f+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,f=e.length;h<f;++h){e[h].ActiveRhythm=u}}if(0===t.length&&this.currentMeasure===this.musicSheet.SourceMeasures[0]){for(var d=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(d);for(var m=0,g=e.length;m<g;++m){e[m].ActiveRhythm=d}}for(var v=0,y=t.length;v<y;++v){var b=t[v];if(b.Rhythm.RealValue<i&&this._lastElement(this.currentMeasure.FirstInstructionsStaffEntries[t.indexOf(b)].Instructions)instanceof RhythmInstruction){var S=this.currentMeasure.FirstInstructionsStaffEntries[t.indexOf(b)].Instructions;S[S.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 f=l.value;c.lt(f)&&(c=f)}}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 d=0;d<u.length;d++){var p=u[d];if(this.currentMeasure.ImplicitMeasure&&p!==c||!Fraction$1.Equal(p,r)&&!this.allInstrumentsHaveSameDuration(u,c))for(var m=this.musicSheet.getGlobalStaffIndexOfFirstStaff(this.musicSheet.Instruments[d]),g=0;g<this.musicSheet.Instruments[d].Staves.length;g++)if(!this.graphicalMeasureIsEmpty(m+g)){this.currentMeasure.setErrorInGraphicalMeasure(m+g,!0);var v=ITextTranslation.translateText("ReaderErrorMessages/MissingNotesError","Given Notes don't correspond to measure duration.");this.musicSheet.SheetErrors.pushMeasureError(v)}}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){log$2.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){log$2.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 f,d;if(!(h=c.element("credit-words")).attribute("justify"))break;var p=null===(f=h.attribute("justify"))||void 0===f?void 0:f.value,m=null===(d=h.attribute("default-y"))||void 0===d?void 0:d.value,g=null!=m,v=g?parseFloat(m):Number.MIN_VALUE;if(g&&v>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<v&&(i=v,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 log$2.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 f=u[c];if(f.element("print")){for(var d=f.element("print").elements("system-layout"),p=0,m=d.length;p<m;++p){var g=d[p];if(g.element("top-system-distance")){var v=g.element("top-system-distance").value;r=parseFloat(v),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(),f=0,d=h.length;f<d;++f){var p=h[f];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 m=new SubInstrument(c);m.idString=p.firstAttribute.value,c.SubInstruments.push(m);var g=p.element("instrument-name");g&&(m.name=g.value,m.setMidiInstrument(g.value))}else if("midi-instrument"===p.name){for(var v=c.getSubInstrument(p.firstAttribute.value),y=0,b=c.SubInstruments.length;y<b;++y){var S=c.SubInstruments[y];if(S.idString===p.value){v=S;break}}for(var x=p.elements(),w=0,_=x.length;w<_;++w){var k=x[w];try{if("midi-channel"===k.name)10===parseInt(k.value,10)&&(c.MidiInstrumentId=MidiInstrument.Percussion);else if("midi-program"===k.name)c.SubInstruments.length>0&&c.MidiInstrumentId!==MidiInstrument.Percussion&&(v.midiInstrumentID=Math.max(0,parseInt(k.value,10)-1));else if("midi-unpitched"===k.name)v.fixedKey=Math.max(0,parseInt(k.value,10));else if("volume"===k.name)try{var A=parseFloat(k.value);v.volume=A/127}catch(L){log$2.debug("ExpressionReader.readExpressionParameters","read volume",L)}else if("pan"===k.name)try{var E=parseFloat(k.value);v.pan=E/64}catch(L){log$2.debug("ExpressionReader.readExpressionParameters","read pan",L)}}catch(L){log$2.info("MusicSheetReader.createInstrumentGroups midi settings: ",L)}}}}catch(L){log$2.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 P=new InstrumentalGroup("group",this.musicSheet,n);n?n.InstrumentalGroups.push(P):this.musicSheet.InstrumentalGroups.push(P),n=P}else if("part-group"===l.name&&"stop"===l.attribute("type").value&&n){if(1===n.InstrumentalGroups.length){var T=n.InstrumentalGroups[0];n.Parent?(n.Parent.InstrumentalGroups.push(T),this._removeFromArray(n.Parent.InstrumentalGroups,n)):(this.musicSheet.InstrumentalGroups.push(T),this._removeFromArray(this.musicSheet.InstrumentalGroups,n))}n=n.Parent}}}catch(e){var M=ITextTranslation.translateText("ReaderErrorMessages/InstrumentError","Error while reading Instruments");throw new MusicSheetReadingException(M,e)}for(var I=0,R=this.musicSheet.Instruments.length;I<R;++I){var N=this.musicSheet.Instruments[I];N.Name||(N.Name="Instr. "+N.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}(),jszip_min={exports:{}};
  157. /*!
  158. JSZip v3.7.1 - A JavaScript class for generating and reading zip files
  159. <http://stuartk.com/jszip>
  160. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  161. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
  162. JSZip uses the library pako released under the MIT license :
  163. https://github.com/nodeca/pako/blob/master/LICENSE
  164. */
  165. !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$1&&commonjsRequire$1;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$1&&commonjsRequire$1,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,f=e.length,d=f,p="string"!==r.getTypeOf(e);h<e.length;)d=f-h,i=p?(t=e[h++],n=h<f?e[h++]:0,h<f?e[h++]:0):(t=e.charCodeAt(h++),n=h<f?e.charCodeAt(h++):0,h<f?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|n>>4,l=1<d?(15&n)<<2|i>>6:64,u=2<d?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 f,d=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&d--,e.charAt(e.length-2)===a.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|d):new Array(0|d);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++))),f[c++]=t,64!==s&&(f[c++]=n),64!==l&&(f[c++]=r);return f}},{"./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,f,d=e.file,p=e.compression,m=c!==s.utf8encode,g=a.transformTo("string",c(d.name)),v=a.transformTo("string",s.utf8encode(d.name)),y=d.comment,b=a.transformTo("string",c(y)),S=a.transformTo("string",s.utf8encode(y)),x=v.length!==d.name.length,w=S.length!==y.length,_="",k="",A="",E=d.dir,C=d.date,P={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(P.crc32=e.crc32,P.compressedSize=e.compressedSize,P.uncompressedSize=e.uncompressedSize);var T=0;t&&(T|=8),m||!x&&!w||(T|=2048);var M=0,I=0;E&&(M|=16),"UNIX"===o?(I=798,M|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(d.unixPermissions,E)):(I=20,M|=function(e){return 63&(e||0)}(d.dosPermissions)),h=C.getUTCHours(),h<<=6,h|=C.getUTCMinutes(),h<<=5,h|=C.getUTCSeconds()/2,f=C.getUTCFullYear()-1980,f<<=4,f|=C.getUTCMonth()+1,f<<=5,f|=C.getUTCDate(),x&&(k=r(1,1)+r(l(g),4)+v,_+="up"+r(k.length,2)+k),w&&(A=r(1,1)+r(l(b),4)+S,_+="uc"+r(A.length,2)+A);var R="";return R+="\n\0",R+=r(T,2),R+=p.magic,R+=r(h,2),R+=r(f,2),R+=r(P.crc32,4),R+=r(P.compressedSize,4),R+=r(P.uncompressedSize,4),R+=r(g.length,2),R+=r(_.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+g+_,dirRecord:u.CENTRAL_FILE_HEADER+r(I,2)+R+r(b.length,2)+"\0\0\0\0"+r(M,4)+r(i,4)+g+_+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=m(e)),s.createFolders&&(r=p(e))&&g.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 v=null;v=t instanceof u||t instanceof o?t:f.isNode&&f.isStream(t)?new d(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new c(e,v,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"),f=e("./nodejsUtils"),d=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):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(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(v(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(v(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=g.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 f(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=h;var d={};d.string={string:l,array:function(e){return u(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return u(e,new Uint8Array(e.length))},nodebuffer:function(e){return u(e,a.allocBuffer(e.length))}},d.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)}},d.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return f(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))}},d.uint8array={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return a.newBufferFrom(e)}},d.nodebuffer={string:h,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(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 d[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$2?commonjsGlobal$2:"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&&d(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 f(e){var t=e&&e.then;if(e&&("object"==_typeof3(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function d(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(f,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)d(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,f=8;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({level:c,method:f,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 d(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}d.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))},d.prototype.onData=function(e){this.chunks.push(e)},d.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=d,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 f(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,f,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?d.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(f="string"==typeof m?a.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(d.output,d.next_out),u=d.next_out-l,h=a.buf2string(d.output,l),d.next_out=u,d.avail_out=p-u,u&&i.arraySet(d.output,d.output,l,u,0),this.onData(h)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((0<d.avail_in||0===d.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),!(d.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=f,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},n.ungzip=f},{"./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"!=_typeof3(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,f=-2,d=-1,p=4,m=2,g=8,v=9,y=286,b=30,S=19,x=2*y+1,w=15,_=3,k=258,A=k+_+1,E=42,C=113,P=1,T=2,M=3,I=4;function R(e,t){return e.msg=l[t],t}function N(e){return(e<<1)-(4<e?9:0)}function L(e){for(var t=e.length;0<=--t;)e[t]=0}function D(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 B(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,D(e.strm)}function F(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-A?e.strstart-(e.w_size-A):0,u=e.window,c=e.w_mask,h=e.prev,f=e.strstart+k,d=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]===d&&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<f);if(r=k-(f-a),a=f-k,o<r){if(e.match_start=t,s<=(o=r))break;d=u[a+o-1],p=u[a+o]}}}while((t=h[t&c])>l&&0!=--i);return o<=e.lookahead?o:e.lookahead}function G(e){var t,n,r,a,l,u,c,h,f,d,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-A)){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,d=void 0,(f=a)<(d=u.avail_in)&&(d=f),n=0===d?0:(u.avail_in-=d,i.arraySet(c,u.input,u.next_in,d,h),1===u.state.wrap?u.adler=o(u.adler,c,d,h):2===u.state.wrap&&(u.adler=s(u.adler,c,d,h)),u.next_in+=d,u.total_in+=d,d),e.lookahead+=n,e.lookahead+e.insert>=_)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+_-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<_)););}while(e.lookahead<A&&0!==e.strm.avail_in)}function z(e,t){for(var n,r;;){if(e.lookahead<A){if(G(e),e.lookahead<A&&t===u)return P;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-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-A&&(e.match_length=V(e,n)),e.match_length>=_)if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-_),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-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&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=e.strstart<_-1?e.strstart:_-1,t===c?(B(e,!0),0===e.strm.avail_out?M:I):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:T}function U(e,t){for(var n,r,i;;){if(e.lookahead<A){if(G(e),e.lookahead<A&&t===u)return P;if(0===e.lookahead)break}if(n=0,e.lookahead>=_&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_-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=_-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-A&&(e.match_length=V(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===_&&4096<e.strstart-e.match_start)&&(e.match_length=_-1)),e.prev_length>=_&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-_,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_),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+_-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=_-1,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return P}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&B(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return P}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<_-1?e.strstart:_-1,t===c?(B(e,!0),0===e.strm.avail_out?M:I):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:T}function H(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=g,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*x),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*S+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(w+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 W(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:C,e.adler=2===t.wrap?0:1,t.last_flush=u,a._tr_init(t),h):R(e,f)}function q(e){var t=W(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=_-1,e.match_available=0,e.ins_h=0}(e.state),t}function X(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===d&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||v<a||n!==g||r<8||15<r||t<0||9<t||o<0||p<o)return R(e,f);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+_-1)/_),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,q(e)}r=[new H(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(G(e),0===e.lookahead&&t===u)return P;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,B(e,!1),0===e.strm.avail_out))return P;if(e.strstart-e.block_start>=e.w_size-A&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===c?(B(e,!0),0===e.strm.avail_out?M:I):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),P)})),new H(4,4,8,4,z),new H(4,5,16,8,z),new H(4,6,32,32,z),new H(4,4,16,16,U),new H(8,16,32,32,U),new H(8,16,128,128,U),new H(8,32,128,256,U),new H(32,128,258,1024,U),new H(32,258,258,4096,U)],n.deflateInit=function(e,t){return X(e,t,g,15,8,0)},n.deflateInit2=X,n.deflateReset=q,n.deflateResetKeep=W,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,h):f},n.deflate=function(e,t){var n,i,o,l;if(!e||!e.state||5<t||t<0)return e?R(e,f):f;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==c)return R(e,0===e.avail_out?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E)if(2===i.wrap)e.adler=0,F(i,31),F(i,139),F(i,8),i.gzhead?(F(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)),F(i,255&i.gzhead.time),F(i,i.gzhead.time>>8&255),F(i,i.gzhead.time>>16&255),F(i,i.gzhead.time>>24&255),F(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),F(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(F(i,255&i.gzhead.extra.length),F(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):(F(i,0),F(i,0),F(i,0),F(i,0),F(i,0),F(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),F(i,3),i.status=C);else{var d=g+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=C,O(i,d),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)),D(e),o=i.pending,i.pending!==i.pending_buf_size));)F(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)),D(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,F(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)),D(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,F(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&&D(e),i.pending+2<=i.pending_buf_size&&(F(i,255&e.adler),F(i,e.adler>>8&255),e.adler=0,i.status=C)):i.status=C),0!==i.pending){if(D(e),0===e.avail_out)return i.last_flush=-1,h}else if(0===e.avail_in&&N(t)<=N(n)&&t!==c)return R(e,-5);if(666===i.status&&0!==e.avail_in)return R(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&&(G(e),0===e.lookahead)){if(t===u)return P;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===c?(B(e,!0),0===e.strm.avail_out?M:I):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:T}(i,t):3===i.strategy?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=k){if(G(e),e.lookahead<=k&&t===u)return P;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=_&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+k;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=k-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_?(n=a._tr_tally(e,1,e.match_length-_),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&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===c?(B(e,!0),0===e.strm.avail_out?M:I):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:T}(i,t):r[i.level].func(i,t);if(p!==M&&p!==I||(i.status=666),p===P||p===M)return 0===e.avail_out&&(i.last_flush=-1),h;if(p===T&&(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))),D(e),0===e.avail_out))return i.last_flush=-1,h}return t!==c?h:i.wrap<=0?1:(2===i.wrap?(F(i,255&e.adler),F(i,e.adler>>8&255),F(i,e.adler>>16&255),F(i,e.adler>>24&255),F(i,255&e.total_in),F(i,e.total_in>>8&255),F(i,e.total_in>>16&255),F(i,e.total_in>>24&255)):(O(i,e.adler>>>16),O(i,65535&e.adler)),D(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)!==E&&69!==t&&73!==t&&91!==t&&103!==t&&t!==C&&666!==t?R(e,f):(e.state=null,t===C?R(e,-3):h):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,l,u,c,d,p=t.length;if(!e||!e.state)return f;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==E||n.lookahead)return f;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),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,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,G(n);n.lookahead>=_;){for(r=n.strstart,a=n.lookahead-(_-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+_-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=_-1,G(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=_-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,f,d,p,m,g,v,y,b,S,x,w,_,k,A,E;n=e.state,r=e.next_in,A=e.input,i=r+(e.avail_in-5),a=e.next_out,E=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,f=n.window,d=n.hold,p=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),b=m[d&v];t:for(;;){if(d>>>=S=b>>>24,p-=S,0==(S=b>>>16&255))E[a++]=65535&b;else{if(!(16&S)){if(0==(64&S)){b=m[(65535&b)+(d&(1<<S)-1)];continue t}if(32&S){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}x=65535&b,(S&=15)&&(p<S&&(d+=A[r++]<<p,p+=8),x+=d&(1<<S)-1,d>>>=S,p-=S),p<15&&(d+=A[r++]<<p,p+=8,d+=A[r++]<<p,p+=8),b=g[d&y];n:for(;;){if(d>>>=S=b>>>24,p-=S,!(16&(S=b>>>16&255))){if(0==(64&S)){b=g[(65535&b)+(d&(1<<S)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(w=65535&b,p<(S&=15)&&(d+=A[r++]<<p,(p+=8)<S&&(d+=A[r++]<<p,p+=8)),l<(w+=d&(1<<S)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=S,p-=S,(S=a-o)<w){if(c<(S=w-S)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=f,(_=0)===h){if(_+=u-S,S<x){for(x-=S;E[a++]=f[_++],--S;);_=a-w,k=E}}else if(h<S){if(_+=u+h-S,(S-=h)<x){for(x-=S;E[a++]=f[_++],--S;);if(_=0,h<x){for(x-=S=h;E[a++]=f[_++],--S;);_=a-w,k=E}}}else if(_+=h-S,S<x){for(x-=S;E[a++]=f[_++],--S;);_=a-w,k=E}for(;2<x;)E[a++]=k[_++],E[a++]=k[_++],E[a++]=k[_++],x-=3;x&&(E[a++]=k[_++],1<x&&(E[a++]=k[_++]))}else{for(_=a-w;E[a++]=E[_++],E[a++]=E[_++],E[a++]=E[_++],2<(x-=3););x&&(E[a++]=E[_++],1<x&&(E[a++]=E[_++]))}break}}break}}while(r<i&&a<s);r-=x=p>>3,d&=(1<<(p-=x<<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=d,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,f=1,d=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){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 v(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=f,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(d),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,v(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 S(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=b(e,t))!==c&&(e.state=null),n):h}var x,w,_=!0;function k(e){if(_){var t;for(x=new r.Buf32(512),w=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,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,w,0,e.work,{bits:5}),_=!1}e.lencode=x,e.lenbits=9,e.distcode=w,e.distbits=5}function A(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=v,n.inflateInit=function(e){return S(e,15)},n.inflateInit2=S,n.inflate=function(e,t){var n,d,p,g,v,y,b,S,x,w,_,E,C,P,T,M,I,R,N,L,D,B,F,O,V=0,G=new r.Buf8(4),z=[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),v=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,d=e.input,y=e.avail_in,S=n.hold,x=n.bits,w=y,_=b,B=c;e:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(2&n.wrap&&35615===S){G[n.check=0]=255&S,G[1]=S>>>8&255,n.check=a(n.check,G,2,0),x=S=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&S)<<8)+(S>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&S)){e.msg="unknown compression method",n.mode=30;break}if(x-=4,D=8+(15&(S>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,e.adler=n.check=1,n.mode=512&S?10:12,x=S=0;break;case 2:for(;x<16;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(n.flags=S,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=S>>8&1),512&n.flags&&(G[0]=255&S,G[1]=S>>>8&255,n.check=a(n.check,G,2,0)),x=S=0,n.mode=3;case 3:for(;x<32;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.head&&(n.head.time=S),512&n.flags&&(G[0]=255&S,G[1]=S>>>8&255,G[2]=S>>>16&255,G[3]=S>>>24&255,n.check=a(n.check,G,4,0)),x=S=0,n.mode=4;case 4:for(;x<16;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.head&&(n.head.xflags=255&S,n.head.os=S>>8),512&n.flags&&(G[0]=255&S,G[1]=S>>>8&255,n.check=a(n.check,G,2,0)),x=S=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.length=S,n.head&&(n.head.extra_len=S),512&n.flags&&(G[0]=255&S,G[1]=S>>>8&255,n.check=a(n.check,G,2,0)),x=S=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(E=n.length)&&(E=y),E&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,g,E,D)),512&n.flags&&(n.check=a(n.check,d,E,g)),y-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(E=0;D=d[g+E++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,g)),y-=E,g+=E,D)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(E=0;D=d[g+E++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&E<y;);if(512&n.flags&&(n.check=a(n.check,d,E,g)),y-=E,g+=E,D)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(S!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}x=S=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(;x<32;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}e.adler=n.check=m(S),x=S=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=S,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){S>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}switch(n.last=1&S,x-=1,3&(S>>>=1)){case 0:n.mode=14;break;case 1:if(k(n),n.mode=20,6!==t)break;S>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}S>>>=2,x-=2;break;case 14:for(S>>>=7&x,x-=7&x;x<32;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if((65535&S)!=(S>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&S,x=S=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(E=n.length){if(y<E&&(E=y),b<E&&(E=b),0===E)break e;r.arraySet(p,d,g,E,v),y-=E,g+=E,b-=E,v+=E,n.length-=E;break}n.mode=12;break;case 17:for(;x<14;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(n.nlen=257+(31&S),S>>>=5,x-=5,n.ndist=1+(31&S),S>>>=5,x-=5,n.ncode=4+(15&S),S>>>=4,x-=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(;x<3;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.lens[z[n.have++]]=7&S,S>>>=3,x-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,F={bits:n.lenbits},B=s(0,n.lens,0,19,n.lencode,0,n.work,F),n.lenbits=F.bits,B){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(;M=(V=n.lencode[S&(1<<n.lenbits)-1])>>>16&255,I=65535&V,!((T=V>>>24)<=x);){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(I<16)S>>>=T,x-=T,n.lens[n.have++]=I;else{if(16===I){for(O=T+2;x<O;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(S>>>=T,x-=T,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],E=3+(3&S),S>>>=2,x-=2}else if(17===I){for(O=T+3;x<O;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}x-=T,D=0,E=3+(7&(S>>>=T)),S>>>=3,x-=3}else{for(O=T+7;x<O;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}x-=T,D=0,E=11+(127&(S>>>=T)),S>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=D}}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,F={bits:n.lenbits},B=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,F),n.lenbits=F.bits,B){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,F={bits:n.distbits},B=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,F),n.distbits=F.bits,B){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=v,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=S,n.bits=x,o(e,_),v=e.next_out,p=e.output,b=e.avail_out,g=e.next_in,d=e.input,y=e.avail_in,S=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;M=(V=n.lencode[S&(1<<n.lenbits)-1])>>>16&255,I=65535&V,!((T=V>>>24)<=x);){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(M&&0==(240&M)){for(R=T,N=M,L=I;M=(V=n.lencode[L+((S&(1<<R+N)-1)>>R)])>>>16&255,I=65535&V,!(R+(T=V>>>24)<=x);){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}S>>>=R,x-=R,n.back+=R}if(S>>>=T,x-=T,n.back+=T,n.length=I,0===M){n.mode=26;break}if(32&M){n.back=-1,n.mode=12;break}if(64&M){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&M,n.mode=22;case 22:if(n.extra){for(O=n.extra;x<O;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.length+=S&(1<<n.extra)-1,S>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;M=(V=n.distcode[S&(1<<n.distbits)-1])>>>16&255,I=65535&V,!((T=V>>>24)<=x);){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(0==(240&M)){for(R=T,N=M,L=I;M=(V=n.distcode[L+((S&(1<<R+N)-1)>>R)])>>>16&255,I=65535&V,!(R+(T=V>>>24)<=x);){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}S>>>=R,x-=R,n.back+=R}if(S>>>=T,x-=T,n.back+=T,64&M){e.msg="invalid distance code",n.mode=30;break}n.offset=I,n.extra=15&M,n.mode=24;case 24:if(n.extra){for(O=n.extra;x<O;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}n.offset+=S&(1<<n.extra)-1,S>>>=n.extra,x-=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(E=_-b,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}C=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),P=n.window}else P=p,C=v-n.offset,E=n.length;for(b<E&&(E=b),b-=E,n.length-=E;p[v++]=P[C++],--E;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===y)break e;y--,S|=d[g++]<<x,x+=8}if(_-=b,e.total_out+=_,n.total+=_,_&&(e.adler=n.check=n.flags?a(n.check,p,_,v-_):i(n.check,p,_,v-_)),_=b,(n.flags?S:m(S))!==n.check){e.msg="incorrect data check",n.mode=30;break}x=S=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===y)break e;y--,S+=d[g++]<<x,x+=8}if(S!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}x=S=0}n.mode=29;case 29:B=1;break e;case 30:B=-3;break e;case 31:return-4;default:return h}return e.next_out=v,e.avail_out=b,e.next_in=g,e.avail_in=y,n.hold=S,n.bits=x,(n.wsize||_!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&A(e,e.output,e.next_out,_-e.avail_out)?(n.mode=31,-4):(w-=e.avail_in,_-=e.avail_out,e.total_in+=w,e.total_out+=_,n.total+=_,n.wrap&&_&&(e.adler=n.check=n.flags?a(n.check,p,_,e.next_out-_):i(n.check,p,_,e.next_out-_)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===_||4===t)&&B===c&&(B=-5),B)},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:A(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,f){var d,p,m,g,v,y,b,S,x,w=f.bits,_=0,k=0,A=0,E=0,C=0,P=0,T=0,M=0,I=0,R=0,N=null,L=0,D=new r.Buf16(16),B=new r.Buf16(16),F=null,O=0;for(_=0;_<=15;_++)D[_]=0;for(k=0;k<l;k++)D[t[n+k]]++;for(C=w,E=15;1<=E&&0===D[E];E--);if(E<C&&(C=E),0===E)return u[c++]=20971520,u[c++]=20971520,f.bits=1,0;for(A=1;A<E&&0===D[A];A++);for(C<A&&(C=A),_=M=1;_<=15;_++)if(M<<=1,(M-=D[_])<0)return-1;if(0<M&&(0===e||1!==E))return-1;for(B[1]=0,_=1;_<15;_++)B[_+1]=B[_]+D[_];for(k=0;k<l;k++)0!==t[n+k]&&(h[B[t[n+k]]++]=k);if(y=0===e?(N=F=h,19):1===e?(N=i,L-=257,F=a,O-=257,256):(N=o,F=s,-1),_=A,v=c,T=k=R=0,m=-1,g=(I=1<<(P=C))-1,1===e&&852<I||2===e&&592<I)return 1;for(;;){for(b=_-T,x=h[k]<y?(S=0,h[k]):h[k]>y?(S=F[O+h[k]],N[L+h[k]]):(S=96,0),d=1<<_-T,A=p=1<<P;u[v+(R>>T)+(p-=d)]=b<<24|S<<16|x|0,0!==p;);for(d=1<<_-1;R&d;)d>>=1;if(0!==d?(R&=d-1,R+=d):R=0,k++,0==--D[_]){if(_===E)break;_=t[n+h[k]]}if(C<_&&(R&g)!==m){for(0===T&&(T=C),v+=A,M=1<<(P=_-T);P+T<E&&!((M-=D[P+T])<=0);)P++,M<<=1;if(I+=1<<P,1===e&&852<I||2===e&&592<I)return 1;u[m=R&g]=C<<24|P<<16|v-c|0}}return 0!==R&&(u[v+R]=_-T<<24|64<<16|0),f.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,f=19,d=2*c+1,p=15,m=16,g=7,v=256,y=16,b=17,S=18,x=[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],w=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(c+2));o(A);var E=new Array(2*h);o(E);var C=new Array(512);o(C);var P=new Array(256);o(P);var T=new Array(l);o(T);var M,I,R,N=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 D(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function B(e){return e<256?C[e]:C[256+(e>>>7)]}function F(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>m-n?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=n-m):(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 G(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function z(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]=G(a[s]++,s))}}function U(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<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?F(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 W(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 q(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=P[i])+u+1,t),0!==(o=x[a])&&O(e,i-=T[a],o),V(e,a=B(--r),n),0!==(o=w[a])&&O(e,r-=N[a],o)),s<e.last_lit;);V(e,v,t)}function X(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=d,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--)W(e,a,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(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++,W(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,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=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<d;n++)g<(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(a=g,v++),l[2*r+1]=a,u<r||(e.bl_count[a]++,o=0,m<=r&&(o=f[r-m]),s=l[2*r],e.opt_len+=s*(a+o),h&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==v){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,v-=2}while(0<v);for(a=g;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),z(a,u,e.bl_count)}function Y(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*S]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function Q(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,S,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(N);var K=!1;function Z(e,t,n,i){O(e,(s<<1)+(i?1:0),3),function(e,t,n,i){H(e),i&&(F(e,n),F(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){K||(function(){var e,t,n,r,i,a=new Array(p+1);for(r=n=0;r<l-1;r++)for(T[r]=n,e=0;e<1<<x[r];e++)P[n++]=r;for(P[n-1]=r,r=i=0;r<16;r++)for(N[r]=i,e=0;e<1<<w[r];e++)C[i++]=r;for(i>>=7;r<h;r++)for(N[r]=i<<7,e=0;e<1<<w[r]-7;e++)C[256+i++]=r;for(t=0;t<=p;t++)a[t]=0;for(e=0;e<=143;)A[2*e+1]=8,e++,a[8]++;for(;e<=255;)A[2*e+1]=9,e++,a[9]++;for(;e<=279;)A[2*e+1]=7,e++,a[7]++;for(;e<=287;)A[2*e+1]=8,e++,a[8]++;for(z(A,c+1,a),e=0;e<h;e++)E[2*e+1]=5,E[2*e]=G(e,5);M=new L(A,x,u+1,c,p),I=new L(E,w,0,h,p),R=new L(new Array(0),_,0,f,g)}(),K=!0),e.l_desc=new D(e.dyn_ltree,M),e.d_desc=new D(e.dyn_dtree,I),e.bl_desc=new D(e.bl_tree,R),e.bi_buf=0,e.bi_valid=0,U(e)},n._tr_stored_block=Z,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)),X(e,e.l_desc),X(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),X(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*k[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?Z(e,t,n,r):4===e.strategy||s===o?(O(e,2+(r?1:0),3),q(e,A,E)):(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*k[i]+1],3);Q(e,e.dyn_ltree,t-1),Q(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),q(e,e.dyn_ltree,e.dyn_dtree)),U(e),r&&H(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*(P[n]+u+1)]++,e.dyn_dtree[2*B(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){O(e,2,3),V(e,v,A),function(e){16===e.bi_valid?(F(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 JSZip=jszip_min.exports,MXLHelper=function(){function e(){_classCallCheck2(this,e)}return _createClass2(e,null,[{key:"MXLtoIXmlElement",value:function(e){var t=new JSZip;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;return t.loadAsync(e).then((function(e){return t.file("META-INF/container.xml").async("text")}),(function(e){throw log$2.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=_createSuper(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:_objectSpread2(_objectSpread2({},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=_createSuper(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=_createSuper(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 f=n[u][c];(void 0===f.instantaneousDynamicExpression||InstantaneousDynamicExpression.dynamicToRelativeVolumeDict.containsKey(f.instantaneousDynamicExpression.DynEnum))&&i.push(f)}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){log$2.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 log$2.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 log$2.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,r=new Promise((function(t,r){var i=new Promise((function(t,r){if("string"==typeof e){var i=e.trim();if(n.isMxl(i))log$2.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)}}));i.then((function(e){e&&e.nodeName||r(new Error("OpenSheetMusicDisplay: The document which was provided is invalid"));var i,a=e.childNodes;log$2.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,f=new MusicSheetReader([c,h],n.rules);n.sheet=f.createMusicSheet(u,"Untitled Score"),void 0===n.sheet&&r(new Error("given music sheet was incomplete or could not be loaded.")),log$2.info("[OSMD] Loaded sheet ".concat(n.sheet.TitleString," successfully.")),n.needBackendUpdate=!0,n.updateGraphic(),t()})).catch((function(e){log$2.debug("Content XML Promise was rejected"),r(e)}))}));return r}},{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,log$2.debug("[OSMD] PageHeight: "+this.rules.PageHeight)):(log$2.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&&(log$2.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&&(log$2.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 log$2.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":log$2.setLevel(log$2.levels.TRACE);break;case"debug":log$2.setLevel(log$2.levels.DEBUG);break;case"info":log$2.setLevel(log$2.levels.INFO);break;case"warn":log$2.setLevel(log$2.levels.WARN);break;case"error":log$2.setLevel(log$2.levels.ERROR);break;case"silent":log$2.setLevel(log$2.levels.SILENT);break;default:log$2.warn("Could not set log level to ".concat(e,". Using warn instead.")),log$2.setLevel(log$2.levels.WARN)}}},{key:"getLogLevel",value:function(){return log$2.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=this;function o(){a.AutoResizeEnabled&&(n=(new Date).getTime(),i||(e(),n=(new Date).getTime(),i=window.setTimeout(s,200)))}function s(){i=void 0,window.clearTimeout(i),(new Date).getTime()-n<200?i=window.setTimeout(s,200):t()}window.attachEvent?window.attachEvent("onresize",o):window.addEventListener("resize",o),this.disposeResizeListener=function(){window.detachEvent?window.detachEvent("onresize",o):window.removeEventListener("resize",o),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$1(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=exports("U",_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 handlebars={exports:{}},handlebars_runtime={exports:{}},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"!==_typeof3(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 exception={exports:{}};!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,exception.exports);var helpers$1={},blockHelperMissing={exports:{}};!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,blockHelperMissing.exports);var each={exports:{}};!function(e,t){t.__esModule=!0;var n,r=utils,i=exception.exports,a=(n=i)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var n,i=t.fn,o=t.inverse,s=0,l="",u=void 0,c=void 0;function h(t,n,a){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!a,c&&(u.contextPath=c+t)),l+=i(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"===_typeof3(e))if(r.isArray(e))for(var f=e.length;s<f;s++)s in e&&h(s,s,s===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var d=[],p=e[Symbol.iterator](),m=p.next();!m.done;m=p.next())d.push(m.value);for(f=(e=d).length;s<f;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,each.exports);var helperMissing={exports:{}};!function(e,t){t.__esModule=!0;var n,r=exception.exports,i=(n=r)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default}(helperMissing,helperMissing.exports);var _if={exports:{}};!function(e,t){t.__esModule=!0;var n,r=utils,i=exception.exports,a=(n=i)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new a.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 a.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,_if.exports);var log$1={exports:{}};!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,log$1.exports);var lookup={exports:{}};!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,lookup.exports);var _with={exports:{}};function _interopRequireDefault$7(e){return e&&e.__esModule?e:{default:e}}!function(e,t){t.__esModule=!0;var n,r=utils,i=exception.exports,a=(n=i)&&n.__esModule?n:{default:n};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new a.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 i=t.data;return t.data&&t.ids&&((i=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:r.blockParams([e],[i&&i.contextPath])})}))},e.exports=t.default}(_with,_with.exports),helpers$1.__esModule=!0,helpers$1.registerDefaultHelpers=registerDefaultHelpers,helpers$1.moveHelperToHooks=moveHelperToHooks;var _helpersBlockHelperMissing=blockHelperMissing.exports,_helpersBlockHelperMissing2=_interopRequireDefault$7(_helpersBlockHelperMissing),_helpersEach=each.exports,_helpersEach2=_interopRequireDefault$7(_helpersEach),_helpersHelperMissing=helperMissing.exports,_helpersHelperMissing2=_interopRequireDefault$7(_helpersHelperMissing),_helpersIf=_if.exports,_helpersIf2=_interopRequireDefault$7(_helpersIf),_helpersLog=log$1.exports,_helpersLog2=_interopRequireDefault$7(_helpersLog),_helpersLookup=lookup.exports,_helpersLookup2=_interopRequireDefault$7(_helpersLookup),_helpersWith=_with.exports,_helpersWith2=_interopRequireDefault$7(_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={},inline={exports:{}};function _interopRequireDefault$6(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,inline.exports),decorators.__esModule=!0,decorators.registerDefaultDecorators=registerDefaultDecorators;var _decoratorsInline=inline.exports,_decoratorsInline2=_interopRequireDefault$6(_decoratorsInline);function registerDefaultDecorators(e){_decoratorsInline2.default(e)}var logger={exports:{}};!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,logger.exports);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 _interopRequireDefault$5(e){return e&&e.__esModule?e:{default:e}}protoAccess.__esModule=!0,protoAccess.createProtoAccessControl=createProtoAccessControl,protoAccess.resultIsAllowed=resultIsAllowed,protoAccess.resetLoggedProperties=resetLoggedProperties;var _createNewLookupObject=createNewLookupObject$1,_logger$1=logger.exports,_logger2$1=_interopRequireDefault$5(_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,_logger2$1.default.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=exception.exports,_exception2$3=_interopRequireDefault$4(_exception$3),_helpers$2=helpers$1,_decorators=decorators,_logger=logger.exports,_logger2=_interopRequireDefault$4(_logger),_internalProtoAccess$1=protoAccess,VERSION="4.7.8";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 safeString={exports:{}};!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,safeString.exports);var runtime={},wrapHelper$1={};function wrapHelper(e,t){if("function"!=typeof e)return e;return function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),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=exception.exports,_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: "+_typeof3(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 noConflict={exports:{}};!function(e,t){t.__esModule=!0,t.default=function(e){"object"!==("undefined"==typeof globalThis?"undefined":_typeof3(globalThis))&&(Object.prototype.__defineGetter__("__magic__",(function(){return this})),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default}(noConflict,noConflict.exports),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(safeString.exports),o=n(exception.exports),s=r(utils),l=r(runtime),u=n(noConflict.exports);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_runtime.exports);var ast={exports:{}};!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,ast.exports);var base={},parser$2={exports:{}};!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 f,d,p,m,g,v,y,b,S={};;){if(d=n[n.length-1],this.defaultActions[d]?p=this.defaultActions[d]:(null==f&&(f=h()),p=a[d]&&a[d][f]),void 0===p||!p.length||!p[0]){var x="";for(g in b=[],a[d])this.terminals_[g]&&g>2&&b.push("'"+this.terminals_[g]+"'");x=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[f]||f,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: "+d+", token: "+f);switch(p[0]){case 1:n.push(f),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(p[1]),f=null,l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,u=this.lexer.yylloc;break;case 2:if(v=this.productions_[p[1]][1],S.$=r[r.length-v],S._$={first_line:i[i.length-(v||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(v||1)].first_column,last_column:i[i.length-1].last_column},c&&(S._$.range=[i[i.length-(v||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.call(S,o,l,s,this.yy,p[1],r,i)))return m;v&&(n=n.slice(0,-1*v*2),r=r.slice(0,-1*v),i=i.slice(0,-1*v)),n.push(this.productions_[p[1]][0]),r.push(S.$),i.push(S._$),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$2,parser$2.exports);var whitespaceControl={exports:{}},visitor={exports:{}};!function(e,t){t.__esModule=!0;var n,r=exception.exports,i=(n=r)&&n.__esModule?n:{default:n};function a(){this.parents=[]}function o(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function s(e){o.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!a.prototype[n.type])throw new i.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 i.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 i.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:o,Decorator:o,BlockStatement:s,DecoratorBlock:s,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:o,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=a,e.exports=t.default}(visitor,visitor.exports),function(e,t){t.__esModule=!0;var n,r=visitor.exports,i=(n=r)&&n.__esModule?n:{default:n};function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function o(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 s(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 l(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 u(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}}a.prototype=new i.default,a.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,a=r.length;i<a;i++){var c=r[i],h=this.accept(c);if(h){var f=o(r,i,n),d=s(r,i,n),p=h.openStandalone&&f,m=h.closeStandalone&&d,g=h.inlineStandalone&&f&&d;h.close&&l(r,i,!0),h.open&&u(r,i,!0),t&&g&&(l(r,i),u(r,i)&&"PartialStatement"===c.type&&(c.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&p&&(l((c.program||c.inverse).body),u(r,i)),t&&m&&(l(r,i),u((c.inverse||c.program).body))}}return e},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.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 a={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:s(t.body),closeStandalone:o((r||t).body)};if(e.openStrip.close&&l(t.body,null,!0),n){var c=e.inverseStrip;c.open&&u(t.body,null,!0),c.close&&l(r.body,null,!0),e.closeStrip.open&&u(i.body,null,!0),!this.options.ignoreStandalone&&o(t.body)&&s(r.body)&&(u(t.body),l(r.body))}else e.closeStrip.open&&u(t.body,null,!0);return a},a.prototype.Decorator=a.prototype.MustacheStatement=function(e){return e.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=a,e.exports=t.default}(whitespaceControl,whitespaceControl.exports);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=exception.exports,_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=parser$2.exports,_parser2=_interopRequireDefault$1(_parser),_whitespaceControl=whitespaceControl.exports,_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=exception.exports,_exception2=_interopRequireDefault(_exception),_utils=utils,_ast=ast.exports,_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 javascriptCompiler={exports:{}},codeGen={exports:{}};!function(e,t){t.__esModule=!0;var n=utils,r=void 0;try{var i=require("source-map");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,codeGen.exports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=base$1,i=n(exception.exports),a=utils,o=n(codeGen.exports);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 f=this.context,d=f.programs,p=f.decorators;for(l=0,u=d.length;l<u;l++)d[l]&&(h[l]=d[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,i){var a=t.popStack(),o=n.length;e&&o--;for(;r<o;r++)a=t.nameLookup(a,n[r],i);return e?[t.aliasable("container.strict"),"(",a,", ",t.quotedString(n[r]),", ",JSON.stringify(t.source.currentLocation)," )"]:a}(this.options.strict&&i,this,t,n,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,javascriptCompiler.exports),function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(handlebars_runtime.exports),i=n(ast.exports),a=base,o=compiler,s=n(javascriptCompiler.exports),l=n(visitor.exports),u=n(noConflict.exports),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 f=h();f.create=h,u.default(f),f.Visitor=l.default,f.default=f,t.default=f,e.exports=t.default}(handlebars,handlebars.exports);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 lib$2={exports:{}},lib$1={exports:{}};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=function(e){return e instanceof ArrayBuffer}(t)?o:s(t)?l:function(e){return e&&"function"==typeof e.then}(t)?u:c(t)?h:function(e){return e&&"object"===_typeof3(e)}(t)?f:d(t)?p:m(t)?g:v(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 f(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 d=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 m=r(/^data:audio/);function g(e,n,r){var i=n.indexOf(",");return a(e,t.decode(n.slice(i+1)).buffer,r)}var v=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 lib={exports:{}},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$1={parse:parse$1,regex:regex$1,midiToFreq:midiToFreq$1},FNS=["letter","acc","pc","step","alt","chroma","oct","midi","freq"];FNS.forEach((function(e){parser$1[e]=function(t){var n=parse$1(t);return n&&void 0!==n[e]?n[e]:null}}));var noteParser$1=parser$1,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"===_typeof3(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_min={exports:{}};!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$1&&commonjsRequire$1;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$1&&commonjsRequire$1,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_min.exports,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,regex:regex,parse:parse,build:build,midi:midi,freq:freq,letter:letter,acc:acc,pc:pc,step:step,alt:alt,chroma:chroma,oct:oct},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(noteParser),parser=require$$0;function Soundfont(e,t){if(console.warn("new Soundfont() is deprected"),console.log("Please use Soundfont.instrument() instead of new Soundfont().instrument()"),!(this instanceof Soundfont))return new Soundfont(e);this.nameToUrl=t||Soundfont.nameToUrl,this.ctx=e,this.instruments={},this.promises=[]}function loadBuffers(e,t,n){return console.warn("Soundfont.loadBuffers is deprecate."),console.log("Use Soundfont.instrument(..) and get buffers properties from the result."),Soundfont.instrument(e,t,n).then((function(e){return e.buffers}))}function oscillatorPlayer(e,t){return t=t||{},function(n,r,i,a){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 o=n>0&&n<129?+n:parser.midi(n),s=o?parser.midiToFreq(o,440):null;if(s){i=i||.2;var l=(a=a||{}).destination||t.destination||e.destination,u=a.vcoType||t.vcoType||"sine",c=a.gain||t.gain||.4,h=e.createOscillator();h.type=u,h.frequency.value=s;var f=e.createGain();return f.gain.value=c,h.connect(f),f.connect(l),h.start(r),i>0&&h.stop(r+i),h}}}Soundfont.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)},Soundfont.prototype.instrument=function(e,t){console.warn("new Soundfont().instrument() is deprecated."),console.log("Please use Soundfont.instrument() instead.");var n=this.ctx;if((e=e||"default")in this.instruments)return this.instruments[e];var r={name:e,play:oscillatorPlayer(n,t)};if(this.instruments[e]=r,"default"!==e){var i=Soundfont.instrument(n,e,t).then((function(e){return r.play=e.play,r}));this.promises.push(i),r.onready=function(e){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),i.then(e)}}else r.onready=function(e){console.warn("onready is deprecated. Use Soundfont.instrument().then()"),e()};return r},Soundfont.loadBuffers=loadBuffers,Soundfont.noteToMidi=parser.midi;var legacy=Soundfont;!function(e){var t=lib$1.exports,n=lib.exports;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=legacy;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 dayjs_min={exports:{}};!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",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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("_")},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(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:f,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",S={};S[b]=g;var x=function(e){return e instanceof A},w=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var a=t.toLowerCase();S[a]&&(i=a),n&&(S[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;S[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},_=function(e,t){if(x(e))return e.clone();var n="object"==_typeof3(t)?t:{};return n.date=e,n.args=arguments,new A(n)},k=y;k.l=w,k.i=x,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=w(e.locale,null,!0),this.parse(e)}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.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()},v.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()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,c=k.p(e),d=function(e,t){var i=k.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 k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(c){case h:return r?d(1,0):d(31,11);case u:return r?d(1,g):d(0,g+1);case l:var b=this.$locale().weekStart||0,S=(m<b?m+7:m)-b;return d(r?v-S:v+(6-S),g);case s:case f: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()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=k.p(e),c="set"+(this.$u?"UTC":""),d=(n={},n[s]=c+"Date",n[f]=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 m=this.clone().set(f,1);m.$d[d](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,c){var f,d=this;r=Number(r);var p=k.p(c),m=function(e){var t=_(d);return k.w(t.date(t.date()+Math.round(e*r)),d)};if(p===u)return this.set(u,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===s)return m(1);if(p===l)return m(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[p]||1,v=this.$d.getTime()+r*g;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.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 k.s(a%12||12,e,"0")},f=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:k.s(s+1,2,"0"),MMM:c(n.monthsShort,s,u,3),MMMM:c(u,s),D:this.$D,DD:k.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:k.s(a,2,"0"),h:h(1),hh:h(2),a:f(a,o,!0),A:f(a,o,!1),m:String(o),mm:k.s(o,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(e,t){return t||p[e]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var p,m=k.p(f),g=_(r),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,b=k.m(this,g);return b=(p={},p[h]=b/12,p[u]=b,p[c]=b/3,p[l]=(y-v)/6048e5,p[s]=(y-v)/864e5,p[o]=y/n,p[a]=y/t,p[i]=y/e,p)[m]||y,d?b:k.a(b)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return S[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),E=A.prototype;return _.prototype=E,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",u],["$y",h],["$D",f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),_.extend=function(e,t){return e.$i||(e(t,A,_),e.$i=!0),_},_.locale=w,_.isDayjs=x,_.unix=function(e){return _(1e3*e)},_.en=S[b],_.Ls=S,_.p={},_}()}(dayjs_min);var dayjs=dayjs_min.exports,browserInfo$1=browser(),getLinkId=function(){return location.hash.split("?")[0].split("/").pop()||""},retain=function(e){return Math.ceil(1e6*e)/1e6};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}var 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},getMeasureDurationDiff=function(e){return e.activeTimeSignature.realValue-e.duration.realValue},speedInfo$1={"rall.":1.333333333,"poco rit.":1.333333333,"rit.":1.333333333,"molto rit.":1.333333333,"molto rall":1.333333333,lentando:1.333333333,allargando:1.333333333,morendo:1.333333333,"accel.":.8,calando:2,"poco accel.":.8},createSpeedInfo=function(e,t){var n;if(e&&speedInfo$1[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$1[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")},getAllNodes=exports("n",(function(e){console.log(9999,e);var t=getLinkId(),n=browserInfo$1.huawei?.08:0,r=[],i=[],a=[],o=state$2.baseSpeed,s=void 0===o?100:o,l=function(e,n){var i;if(["906"].includes(t))return(null===(i=n.measures[0])||void 0===i?void 0:i.realKey)||e;if(["782","784"].includes(t)){var a,o;if([14,16,30,32].includes(null===(a=n.firstVerticalMeasure)||void 0===a?void 0:a.measureNumber))return(null===(o=r[r.length-1])||void 0===o?void 0:o.realKey)||e}var s,l,u;if(["900","901","640","641","739","740","800","801","773","774","869","872","714","715"].includes(t)&&(3===(null===(s=n.firstVerticalMeasure)||void 0===s?void 0:s.measureNumber)||9===(null===(l=n.firstVerticalMeasure)||void 0===l?void 0:l.measureNumber)))return(null===(u=n.measures[0])||void 0===u?void 0:u.realKey)||e;return e};if(state$2.gradualTimes&&console.log("合奏速度",state$2.gradual,state$2.gradualTimes),null!=e&&e.cursor){try{e.cursor.reset()}catch(j){}for(var u,c,h=e.cursor.iterator,f=0,d=0,p=[],m=[],g=0,v=0,y=0,b="quarter",S=0,x=1,w=0,_=0,k=0,A=!1;!h.endReached;){var E,C,P,T=e.cursor.cursorElement,M={move:!1};T&&(M.move=!0,M.x=T.offsetLeft,M.y=T.offsetTop,M.w=T.offsetWidth,M.h=T.offsetHeight);for(var I=null!==(E=h.currentVoiceEntries)&&void 0!==E&&E[0]?[null===(C=h.currentVoiceEntries)||void 0===C?void 0:C[0]]:[],R=null===(P=h.currentVoiceEntries)||void 0===P?void 0:P[1],N=!1,L=0,D=I;L<D.length;L++){var B,F,O=D[L],V=O.notes[0];if(["Piano"].includes(null===(B=state$2.activeDetail)||void 0===B?void 0:B.code)||"CONCERT"==(null===(F=state$2.activeDetail)||void 0===F?void 0:F.musicSheetType)){var G=[];try{var z;G=null===(z=h.currentVoiceEntries)||void 0===z?void 0:z.map((function(e){return e.notes})).flat().sort((function(e,t){return e.Length.realValue-t.Length.realValue})),V=G[0]}catch(j){}}if(V){var U=function(){var t,o,E,C,P,T,I,L,D,B,F,G,z,U,H,j,W,q,X,Y,Q,K,Z,J,$,ee,te,ne,re,ie,ae,oe,se,le,ue,ce;if(0===d&&a.push(V.sourceMeasure),0===d&&state$2.isSpecialBookCategory){var he,fe,de=_createForOfIteratorHelper(null===(he=V.sourceMeasure)||void 0===he?void 0:he.TempoExpressions);try{for(de.s();!(fe=de.n()).done;){var pe,me=fe.value;null!=me&&null!==(pe=me.InstantaneousTempo)&&void 0!==pe&&pe.beatUnit&&(b=me.InstantaneousTempo.beatUnit)}}catch(err){de.e(err)}finally{de.f()}}(x=null===(t=V.sourceMeasure)||void 0===t?void 0:t.MeasureNumberXML,w==(null===(o=V.sourceMeasure)||void 0===o?void 0:o.MeasureNumberXML))?_++:(w=null===(ce=V.sourceMeasure)||void 0===ce?void 0:ce.MeasureNumberXML,_=0);var ge,ve=V.sourceMeasure.tempoInBPM,ye=h.currentMeasure.metronomeNoteIndex;0!==ye&&ye>d&&(ve=(null===(ge=r[r.length-1])||void 0===ge?void 0:ge.speed)||100);var be=[null===(E=V.sourceMeasure.verticalMeasureList)||void 0===E?void 0:E[0]],Se=h.currentTimeStamp.realValue,xe=formatDuration(h.currentMeasure.activeTimeSignature,h.currentMeasure.duration),we=xe.RealValue,_e=xe.Denominator,ke=V.length,Ae=ke.wholeValue,Ee=ke.numerator,Ce=ke.denominator,Pe=ke.realValue,Te=g,Me=(state$2.isSpecialBookCategory?ve:s)||1,Ie=(state$2.isSpecialBookCategory?ve:s)||1;c=h.currentMeasure.speedInfo||c,(!(u=(null===(C=e.sheet.soundTempos)||void 0===C?void 0:C.get(V.sourceMeasure.measureListIndex))||u)||u.length<2)&&(u=createSpeedInfo(c,Ie));var Re=0,Ne=h.currentMeasure.measureListIndex;if(state$2.gradualTimes&&Object.keys(state$2.gradualTimes).length>0){var Le=state$2.gradual.find((function(e,t){var n,r=state$2.gradual[t+1];return e[0].measureIndex<=Ne&&(null===(n=e[1])||void 0===n?void 0:n.measureIndex)>=Ne&&(!r||(null==r?void 0:r[0].measureIndex)!==Ne)})),De=_slicedToArray(Le||[],2),Be=De[0],Fe=De[1];if(Be&&Fe){var Oe=Fe.measureIndex-Be.measureIndex,Ve=Be.closedMeasureIndex==Ne&&d>=Be.noteInMeasureIndex,Ge=Fe.closedMeasureIndex===Ne&&d<Fe.noteInMeasureIndex,ze=Be.closedMeasureIndex!==Ne&&Fe.closedMeasureIndex!==Ne;if(Ve||Ge||ze){var Ue=state$2.gradualTimes[Be.measureIndex],He=state$2.gradualTimes[Fe.measureIndex];if(Ue&&He)Re=Pe/we/(Oe-Be.leftDuration/Be.allDuration+Fe.leftDuration/Fe.allDuration)*dayjs(tranTime(He)).diff(dayjs(tranTime(Ue)),"millisecond")/1e3}}}else if(c&&u&&(c.startXmlNoteIndex===d||S>0)){var je=u[0]-(u[1]-u[0]),We=c,qe=We.resetXmlNoteIndex,Xe=We.endXmlNoteIndex,Ye=(u[u.length-1]-je)/Xe;if(Ye=V.DotsXml?Ye/1.5:Ye,S<Xe){var Qe=Math.ceil(Ie+Ye*S),Ke=getTimeByBeatUnit(b,Qe,h.currentMeasure.activeTimeSignature.Denominator),Ze=(Ae+Ee/Ce)*_e*(60/Ke);Ie+=Math.ceil(Ye*(S+1)),Re=(Ze+(Ae+Ee/Ce)*_e*(60/(Ke=getTimeByBeatUnit(b,Ie,h.currentMeasure.activeTimeSignature.Denominator))))/2}else if(qe>S){var Je;Ie=null===(Je=r[f-1])||void 0===Je?void 0:Je.speed}Me=(state$2.isSpecialBookCategory?getTimeByBeatUnit(b,Ie,h.currentMeasure.activeTimeSignature.Denominator):s)||1;var $e=!(S<Xe||qe>S);S++,$e&&(S=0,c=void 0,u=void 0,m=[])}0===f&&(n+=getFixTime(Me));var et=Re||Math.min(we,Pe)*formatBeatUnit(b)*(60/Me),tt=we*_e*(60/Me);["Piano"].includes(null===(P=state$2.activeDetail)||void 0===P?void 0:P.code)&&(et=(h.currentTimeStamp.realValue-k||(0===Ee?we:(Ae+Ee)/Ce))*_e*(60/Me));V.isRestFlag&&et>tt&&(et=tt),V.DotsXml&&V.tuplet&&(console.log("处理附点时长不正确问题"),et*=1.5),A&&(et=1e-7,A=!1,N=!0);var nt,rt=_createForOfIteratorHelper((null===(T=V.sourceMeasure.staffLinkedExpressions)||void 0===T?void 0:T[0])||[]);try{for(rt.s();!(nt=rt.n()).done;){var it=nt.value;if(it){var at,ot,st=null===(at=it.expressions)||void 0===at?void 0:at.find((function(e){return"跳过下一个"===e.label}));if(st&&Fraction$1.Equal(null===(ot=V.voiceEntry)||void 0===ot?void 0:ot.Timestamp,it.Timestamp)){A=!0;break}}}}catch(err){rt.e(err)}finally{rt.f()}k=h.currentTimeStamp.realValue,g+=et,v+=et;var lt=et+Te,ut=V.ParentVoiceEntry.ParentVoice.Parent.SubInstruments[0].fixedKey||0,ct=null===(I=be[0])||void 0===I||null===(L=I.vfVoices[1])||void 0===L?void 0:L.tickables[_];if(r.length&&r[r.length-1].relativeTime===Te)return"continue";if(0===f){var ht,ft,dt,pt=getMeasureDurationDiff(h.currentMeasure);((null===(ht=V.sourceMeasure.verticalMeasureList)||void 0===ht||null===(ft=ht[0])||void 0===ft?void 0:ft.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&&e.sourceStaffEntry.voiceEntries[0].notes[0].length.realValue})),pt>0&&(y=pt*formatBeatUnit(b)*(60/Me)),"MIDI"===(null===(dt=state$2.activeDetail)||void 0===dt?void 0:dt.audioType)&&(y=0),n+=y}var mt={_noteLength:Pe,fixtime:n,skipMode:N,NoteToGraphicalNoteObjectId:V.NoteToGraphicalNoteObjectId,cursorBox:M,skipNextNote:A,measureNumberPrinted:x,difftime:y,octaveOffset:null===(D=be[0])||void 0===D?void 0:D.octaveOffset,frequency:null===(B=V.pitch)||void 0===B?void 0:B.frequency,speed:Ie,beatSpeed:Me,i:f,si:d,stepSpeeds:m,indexOfMeasures:0,measureOpenIndex:a.length-1,measures:p,tempoInBPM:V.sourceMeasure.tempoInBPM,measureLength:tt,relaMeasureLength:v,id:null==ct?void 0:ct.attrs.id,note:V.halfTone+12,relativeTime:retain(Te),time:retain(Te+n),endtime:retain(lt+n),relaEndtime:retain(lt),realValue:Se,halfTone:V.halfTone,voiceEntry:{isStaccato:V.voiceEntry.isStaccato(),Timestamp:_objectSpread2({},V.voiceEntry.Timestamp),ornamentContainer:V.voiceEntry.ornamentContainer?_objectSpread2({},V.voiceEntry.ornamentContainer):""},noteElement:_objectSpread2(_objectSpread2({},V.SourceMeasure),{},{NoteToGraphicalNoteObjectId:V.NoteToGraphicalNoteObjectId,notehead:V.notehead?{filled:V.notehead.filled,shape:V.notehead.shape,sourceNote:null===(F=V.notehead.sourceNote)||void 0===F?void 0:F.NoteToGraphicalNoteObjectId}:"",noteheadColor:V.noteheadColor,isRestFlag:V.isRestFlag,sourceMeasure:_objectSpread2(_objectSpread2({},V.SourceMeasure),{},{measureListIndex:null===(G=V)||void 0===G||null===(z=G.SourceMeasure)||void 0===z?void 0:z.measureListIndex,MeasureNumberXML:null===(U=V)||void 0===U||null===(H=U.SourceMeasure)||void 0===H?void 0:H.MeasureNumberXML,allRests:null===(j=V)||void 0===j||null===(W=j.SourceMeasure)||void 0===W?void 0:W.allRests,isRestFlag:null===(q=V)||void 0===q||null===(X=q.SourceMeasure)||void 0===X?void 0:X.isRestFlag,multipleRestMeasures:null===(Y=V)||void 0===Y||null===(Q=Y.SourceMeasure)||void 0===Q?void 0:Q.multipleRestMeasures,verticalMeasureList:Array.isArray(null===(K=V)||void 0===K||null===(Z=K.SourceMeasure)||void 0===Z?void 0:Z.verticalMeasureList)?V.SourceMeasure.verticalMeasureList.map((function(e){var t=(null==e?void 0:e.stave)||{},n=t.x,r=t.y,i=t.width,a=t.height,o=t.start_x,s=t.end_x;return e?{stave:{x:n,y:r,width:i,height:a,start_x:o,end_x:s},boundingBox:e&&e.boundingBox?{absolutePosition:_objectSpread2({},e.boundingBox.absolutePosition),size:_objectSpread2({},e.boundingBox.size)}:""}:void 0})):[],activeTimeSignature:null===(J=V.sourceMeasure)||void 0===J?void 0:J.activeTimeSignature,ActiveTimeSignature:null===($=V.sourceMeasure)||void 0===$?void 0:$.activeTimeSignature}),tie:V.tie?{StartNote:{NoteToGraphicalNoteObjectId:V.tie.StartNote.NoteToGraphicalNoteObjectId},notes:Array.isArray(V.tie.notes)&&(null===(ee=V.tie.notes)||void 0===ee?void 0:ee.map((function(e){return{NoteToGraphicalNoteObjectId:e.NoteToGraphicalNoteObjectId}})))||[]}:"",slurs:Array.isArray(V.slurs)?V.slurs.map((function(e){return{startNote:{NoteToGraphicalNoteObjectId:e.startNote.NoteToGraphicalNoteObjectId},endNote:{NoteToGraphicalNoteObjectId:e.endNote.NoteToGraphicalNoteObjectId}}})):[],pitch:{prevFrequency:null===(te=V.pitch)||void 0===te?void 0:te.prevFrequency,nextFrequency:null===(ne=V.pitch)||void 0===ne?void 0:ne.nextFrequency,frequency:null===(re=V.pitch)||void 0===re?void 0:re.frequency},Length:_objectSpread2({},V.Length)}),svgElelent:ct||"",fixedKey:ut,realKey:0,duration:0,formatLyricsEntries:formatLyricsEntries(V),stave:be[0]&&be[0].stave?{attrs:be[0].stave?_objectSpread2({},be[0].stave.attrs):{}}:"",firstVerticalMeasure:{measureNumber:null==be||null===(ie=be[0])||void 0===ie?void 0:ie.measureNumber},noteLength:1,halfTone1:Array.isArray(O.notes)?O.notes.map((function(e){return e.halfTone+12})).filter(Boolean):[],halfTone2:R&&Array.isArray(R.notes)?R.notes.map((function(e){return e.halfTone+12})).filter(Boolean):[]};mt.realKey=l(V.halfTone-12*ut,mt),mt.duration=mt.endtime-mt.time;var gt=(null===(ae=be[0])||void 0===ae||null===(oe=ae.vfVoices[1])||void 0===oe?void 0:oe.tickables)||[],vt=(null===(se=V.sourceMeasure.verticalMeasureList)||void 0===se||null===(le=se[0])||void 0===le||null===(ue=le.staffEntries)||void 0===ue?void 0:ue.length)||gt.length;mt.noteLength=vt||1,r.push(mt),i.push(mt.id),p.push(mt),d<vt-1?d++:(d=0,v=0,p=[])}();if("continue"===U)continue}}e.cursor.next(),f++}try{e.cursor.reset()}catch(j){}}var H=r.sort((function(e,t){return e.relativeTime-t.relativeTime})).map((function(e,t){return _objectSpread2(_objectSpread2({},e),{},{i:t})}));return H})),setStepIndex=function(e,t,n){if(e.product){if(t||0===t)if(n&&t-n==1)e.cursor.setPosition(_objectSpread2({},state$2.times[t].cursorBox));else if(n&&t-n>0)for(;t-n>0;)n++,e.cursor.setPosition(_objectSpread2({},state$2.times[n].cursorBox));else e.cursor.setPosition(_objectSpread2({},state$2.times[t].cursorBox))}else if(t||0===t)if(n&&t-n==1)e.cursor.next();else if(n&&t-n>0)for(;t-n>0;)n++,e.cursor.next();else{var r=0;for(e.cursor.reset();r<t;)r++,!1!==e.cursor.hidden?e.cursor.show():e.cursor.next()}},getIndex=function(e,t){if(t>state$2.times[state$2.times.length-1].endtime)return state$2.times.length-1;for(var n=0,r=0;r<e.length;r++){var i=e[r],a=e[r-1];if(!(t>=i.time))break;a&&i.time==a.time||(n=i.i)}if(state$2.sectionStatus&&2===state$2.section.length){var o=state$2.befireSection||state$2.section[0];n=Math.min(Math.max(n,o.i),state$2.section[1].i)}return n},getSlursNote=function(e,t){var n,r,i=state$2.times.find((function(t){return t.NoteToGraphicalNoteObjectId==e.NoteToGraphicalNoteObjectId}))||{},a="end"===t?null===(n=i.noteElement.slurs[0])||void 0===n?void 0:n.endNote:null===(r=i.noteElement.slurs[0])||void 0===r?void 0:r.startNote;if(a)return state$2.times.find((function(e){return e.NoteToGraphicalNoteObjectId==a.NoteToGraphicalNoteObjectId}))},getNoteBySlursStart=function(e,t,n){var r=e,i=getSlursNote(r,n);if(!i&&t){var a,o=_createForOfIteratorHelper(r.measures);try{var s=function(){var e=a.value,t=state$2.times.find((function(t){return t.NoteToGraphicalNoteObjectId==e.NoteToGraphicalNoteObjectId}));t.noteElement.slurs.length&&(i=getSlursNote(t,n),r=t)};for(o.s();!(a=o.n()).done;)s()}catch(err){o.e(err)}finally{o.f()}}if(r&&i!==r.noteElement){var l,u=_createForOfIteratorHelper(state$2.times);try{for(u.s();!(l=u.n()).done;){var c=l.value;if(i===c.noteElement)return c}}catch(err){u.e(err)}finally{u.f()}}return r},getParentNote=exports("p",(function(e){if(e){var t,n=_createForOfIteratorHelper(state$2.times);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.NoteToGraphicalNoteObjectId===r.noteElement.NoteToGraphicalNoteObjectId)return r}}catch(err){n.e(err)}finally{n.f()}}})),getNoteByMeasuresSlursStart=exports("aV",(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$2.times);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(t.NoteToGraphicalNoteObjectId===a.noteElement.NoteToGraphicalNoteObjectId)return a}}catch(err){i.e(err)}finally{i.f()}}return n})),getActtiveNoteByTimes=function(e){var t,n,r=null===(t=e.target)||void 0===t?void 0:t.dataset,i={},a=_createForOfIteratorHelper(state$2.times);try{for(a.s();!(n=a.n()).done;){var o=n.value;o.id&&!i[o.id]&&(i[o.id]=o)}}catch(err){a.e(err)}finally{a.f()}return i[r.id||""]},getPrevHasSourceNote=function(e){for(var t=Math.max(state$2.times.indexOf(e)-1,0);t>=0;t--){var n=state$2.times[t];if(null!=n&&n.stave)return n}},getBoundingBoxByverticalNote=exports("z",(function(e){var t,n,r,i,a,o,s=null==e||null===(t=e.noteElement)||void 0===t||null===(n=t.sourceMeasure)||void 0===n?void 0:n.verticalMeasureList,l=0;if(s=s&&s[0]?s:(null==e||null===(r=e.noteElement)||void 0===r?void 0:r.isRestFlag)&&(null===(i=getPrevHasSourceNote(e))||void 0===i||null===(a=i.noteElement)||void 0===a||null===(o=a.sourceMeasure)||void 0===o?void 0:o.verticalMeasureList))for(var u=s[state.partIndex],c=0;c<s.length;c++){var h=s[c];if(null!=h&&h.stave){var f,d,p,m=(null==h?void 0:h.stave).height;if(c>0)l+=null===(p=s[c-1])||void 0===p?void 0:p.stave.height;l+=m;var g=null==u?void 0:u.stave,v=g.x,y=g.y,b=g.width,S=g.context,x=g.start_x,w=g.end_x;return{measureIndex:(null==e||null===(f=e.noteElement)||void 0===f?void 0:f.sourceMeasure.measureListIndex)||0,MeasureNumberXML:(null==e||null===(d=e.noteElement)||void 0===d?void 0:d.sourceMeasure.MeasureNumberXML)||1,start_x:x,end_x:w,height:l,x:v,y:y,width:b,context:S}}}return{measureIndex:0,height:l,start_x:0,end_x:0,x:0,y:0,width:0,context:{element:null}}})),getDuration=exports("a$",(function(e){if(e){var t,n=null==e||null===(t=e.graphic)||void 0===t?void 0:t.measureList[0][0];if(n){var r=null==n?void 0:n.parentSourceMeasure,i=r.duration,a=r.tempoInBPM,o=r.activeTimeSignature,s=r.TempoExpressions;if(i){var l,u="quarter",c=_createForOfIteratorHelper(s);try{for(c.s();!(l=c.n()).done;){u=l.value.InstantaneousTempo.beatUnit||"quarter"}}catch(err){c.e(err)}finally{c.f()}return _objectSpread2(_objectSpread2({},formatDuration(o)),{},{tempoInBPM:a,beatUnit:u})}}}return{}})),formatDuration=function(e,t){return e},getTimeByBeatUnit=function(e,t,n){var r=4;switch(e){case"1024th":r=1024;break;case"512th":r=512;break;case"256th":r=256;break;case"128th":r=128;break;case"64th":r=64;break;case"32nd":r=32;break;case"16th":r=16;break;case"eighth":r=8;break;case"quarter":r=4;break;case"half":r=2;break;case"whole":r=1;break;case"breve":r=.5;break;case"long":r=.25;break;case"maxima":r=.125}return n/r*t},getEnvHostname=exports("aI",(function(){return location.origin.indexOf("online")>-1?"https://mstuonline.dayaedu.com":location.origin.indexOf("dev")>-1?"http://mstudev.dayaedu.com":"https://mstutest.dayaedu.com"})),getTvIconUrl=exports("aH",(function(){return location.origin.indexOf("online")>-1?"https://mteaonline.dayaedu.com/#/guide":location.origin.indexOf("dev")>-1?"http://mteadev.dayaedu.com/#/guide":"https://mteatest.dayaedu.com/#/guide"})),setPrefix=exports("b9",(function(e){return e?"?"+e:""})),formatXML=exports("x",(function(e,t){if(!e)return"";var n,r=(new DOMParser).parseFromString(e,"text/xml"),i=-1,a=-1,o=_createForOfIteratorHelper(r.getElementsByTagName("measure"));try{for(o.s();!(n=o.n()).done;){var s,l=n.value;-1===i&&l.getElementsByTagName("beats").length&&(i=parseInt(l.getElementsByTagName("beats")[0].textContent||"4")),-1===a&&l.getElementsByTagName("beat-type").length&&(a=parseInt(l.getElementsByTagName("beat-type")[0].textContent||"4"));var u=parseInt((null===(s=l.getElementsByTagName("divisions")[0])||void 0===s?void 0:s.textContent)||"256");if(0===l.getElementsByTagName("note").length){var c,h=null===(c=l.getElementsByTagName("forward")[0])||void 0===c?void 0:c.getElementsByTagName("duration")[0];h&&(h.textContent="0"),l.innerHTML=l.innerHTML+'\n <note>\n <rest measure="yes"/>\n <duration>'.concat(u*i,"</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>")}}}catch(err){o.e(err)}finally{o.f()}if(t){var f=r.querySelector("work-title");f&&t.title&&(f.textContent=t.title)}return(new XMLSerializer).serializeToString(r)})),getCustomInfo=exports("v",(function(e){var t,n,r={showSpeed:!0,parsedXML:e,code:""},i=(new DOMParser).parseFromString(e,"text/xml"),a=_createForOfIteratorHelper(i.getElementsByTagName("words"));try{for(a.s();!(n=a.n()).done;){var o,s,l=n.value;l&&"隐藏速度"===(null===(o=l.textContent)||void 0===o?void 0:o.trim())&&(r.showSpeed=!1,l.textContent=""),l&&"@"===(null===(s=l.textContent)||void 0===s?void 0:s.trim())&&(l.textContent="segno")}}catch(err){a.e(err)}finally{a.f()}return r.parsedXML=(new XMLSerializer).serializeToString(i),r.code=(null===(t=i.querySelector("part-name"))||void 0===t?void 0:t.innerHTML)||"",r})),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)for(var o=0,s=0;s<n.childNodes.length;s++){var l=n.childNodes[s];if("note"===l.nodeName&&(o+=1)===r){n.insertBefore(e,l);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=exports("y",(function(e,t){var n,r,i,a,o,s,l,u;if(!e)return"";var c=(new DOMParser).parseFromString(e,"text/xml"),h=(null===(n=c.getElementsByTagName("part-list"))||void 0===n||null===(r=n[0])||void 0===r?void 0:r.getElementsByTagName("score-part"))||[],f=Array.from(h).map((function(e){var t;return(null===(t=e.getElementsByTagName("part-name"))||void 0===t?void 0:t[0].textContent)||""})),d=c.getElementsByTagName("part")||[];if(!d.length)return"";var p=_toConsumableArray2(null===(i=d[0])||void 0===i?void 0:i.getElementsByTagName("measure")),m=_toConsumableArray2(null===(a=d[0])||void 0===a?void 0:a.getElementsByTagName("metronome")),g=_toConsumableArray2(null===(o=d[0])||void 0===o?void 0:o.getElementsByTagName("words")),v=_toConsumableArray2(null===(s=d[0])||void 0===s?void 0:s.getElementsByTagName("rehearsal"));"COMMON"===(null===(l=f[0])||void 0===l||null===(u=l.toLocaleUpperCase)||void 0===u?void 0:u.call(l))&&(t++,f.shift());var y=h[t];if(state$2.partListNames=f,y){var b=y.getAttribute("id");Array.from(d).forEach((function(e){var t;if(e&&e.getAttribute("id")!==b)null===(t=e.parentNode)||void 0===t||t.removeChild(e);else if(e&&"P1"!==e.getAttribute("id")){for(var n={},r=0;r<m.length;r++){var i,a,o=m[r],s=null===(i=o.parentElement)||void 0===i||null===(a=i.parentElement)||void 0===a?void 0:a.parentElement;if(s)n[p.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=p.indexOf(i),l=e.getElementsByTagName("measure")[s];setElementNoteBefore(r,i,l)}})),g.forEach((function(t){var n=t.textContent||"";if((isSpecialMark(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=p.indexOf(a),u=e.getElementsByTagName("measure")[l];setElementNoteBefore(i,a,u)}}})),v.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=p.indexOf(i);null===(a=e.getElementsByTagName("measure")[o])||void 0===a||a.appendChild(r.cloneNode(!0))}}))}if(e&&e.getAttribute("id")===b){var l,u,c=e.getElementsByTagName("barline"),h=null===(l=c[c.length-1])||void 0===l?void 0:l.parentElement;if("barline"!==(null==h||null===(u=h.lastElementChild)||void 0===u?void 0:u.tagName)){var f,d=_createForOfIteratorHelper((null==h?void 0:h.children)||[]);try{for(d.s();!(f=d.n()).done;){var y=f.value;if("barline"===y.tagName){null==h||h.appendChild(y);break}}}catch(err){d.e(err)}finally{d.f()}}}})),Array.from(h).forEach((function(e){var t;e&&e.getAttribute("id")!==b&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e))}));var S=c.getElementsByTagName("note");Array.from(S).forEach((function(e,t){var n,r=e.getElementsByTagName("grace");r&&r.length&&e.appendChild(null===(n=function(e){for(var t,n=S[e+1],r=e;r<S.length;r++){var i,a=S[r];if(null===(i=a.getElementsByTagName("grace"))||void 0===i||!i.length){n=a;break}}return null===(t=n)||void 0===t?void 0:t.getElementsByTagName("duration")[0]}(t))||void 0===n?void 0:n.cloneNode(!0))}))}return(new XMLSerializer).serializeToString(c)})),appoggianceFormate=exports("bk",(function(e){if(!e)return e;var t=(new DOMParser).parseFromString(e,"text/xml"),n=t.querySelectorAll("grace");if(!n.length)return e;var r,i=function e(t){return t.querySelector("grace")?e(null==t?void 0:t.nextElementSibling):t},a=_createForOfIteratorHelper(n);try{for(a.s();!(r=a.n()).done;){var o,s=r.value,l=null===(o=s.parentElement)||void 0===o?void 0:o.querySelector("notations");if(l&&l.querySelectorAll("slur").length>1){var u,c=i(null===(u=s.parentElement)||void 0===u?void 0:u.nextElementSibling);if(c&&c.querySelectorAll("slur").length>0){var h,f,d=Array.from((null===(h=c.querySelector("notations"))||void 0===h?void 0:h.children)||[]).map((function(e){return e.getAttribute("number")})),p=_createForOfIteratorHelper(l.querySelectorAll("slur"));try{for(p.s();!(f=p.n()).done;){var m,g=f.value;if(!d.includes(g.getAttribute("number")))null===(m=c.querySelector("notations"))||void 0===m||m.appendChild(g)}}catch(err){p.e(err)}finally{p.f()}}}}}catch(err){a.e(err)}finally{a.f()}return(new XMLSerializer).serializeToString(t)})),getVoicePartInfo=exports("bh",(function(){var e=state$4.MusicalInstrumentClassification,t=state$4.chinesePartName,n=-1,r=state$2.partListNames,i=state$2.partIndex,a=r.filter((function(e){return""!==(e||"").trim()}));if(a.length)for(var o=function(){var e=_slicedToArray(l[s],2),a=e[0],o=e[1],u=r[i],c=o.filter((function(e){return e&&u.indexOf(e||"")>-1}));if(u&&(c.length||o.includes(u)))return isNaN(+a)||(n=+a),{v:{realPartListNames:r,subjectId:n,partListNames:o,partName:u,chinesePartName:t[u]||u}}},s=0,l=Object.entries(e);s<l.length;s++){var u=o();if("object"===_typeof3(u))return u.v}return{subjectId:n,partListNames:[]}})),classids$1=[1,30],idIsInClassIds=exports("bj",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return!1;var r,i=!1,a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.id===t&&(n||classids$1.includes(o.id))){i=!0;break}if(o.sysMusicScoreCategoriesList&&(i=idIsInClassIds(o.sysMusicScoreCategoriesList,t,n||classids$1.includes(o.id))))break}}catch(err){a.e(err)}finally{a.f()}return i})),setSettionBackground=function(){state$2.sectionBoundingBoxs=[];var e=state$2.section.sort((function(e,t){return e.i-t.i})),t=_slicedToArray(e,2),n=t[0],r=t[1],i=Math.abs(r.i-n.i)+1;r.noteLength;for(var a=[],o=[],s=0;s<i;s++){var l=s+n.i,u=state$2.times[l].noteElement,c=u.sourceMeasure.measureListIndex;if(0===s&&0!==c&&!state$2.needTick){var h=getFirsrNoteByMeasureListIndex(c-1),f=null==h?void 0:h.noteElement;if(f)for(var d=null===(p=f.sourceMeasure)||void 0===p?void 0:p.measureListIndex;d<(null===(m=n.noteElement)||void 0===m||null===(g=m.sourceMeasure)||void 0===g?void 0:g.measureListIndex);d++){var p,m,g;if(!a.includes(d)){var v,y=_createForOfIteratorHelper(state$2.times);try{for(y.s();!(v=y.n()).done;){var b,S,x=v.value;if((null===(b=x.noteElement)||void 0===b||null===(S=b.sourceMeasure)||void 0===S?void 0:S.measureListIndex)===d&&!a.includes(d)){var w=getBoundingBoxByNote(x.noteElement,{before:!0});if(state$2.befireSection=!w&&state$2.befireSection?state$2.befireSection:x,!w)continue;state$2.sectionBoundingBoxs.push(w),o.push(w.height),a.push(d)}}}catch(err){y.e(err)}finally{y.f()}}}}if(!a.includes(c)){a.push(c);var _=getBoundingBoxByNote(u);_&&(state$2.sectionBoundingBoxs.push(_),o.push(_.height))}}state$2.sectionBoundingBoxs.map((function(e){return e.height=Math.max.apply(Math,o),e}))},useMidi=function(e,t){var n=ref(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,state$2.midiPlayIniting=!0,postMessage$1({api:"cloudDestroy"}),postMessage$1({api:"cloudDetail",content:{midi:t,denominator:getDuration(state.osmd).denominator,numerator:getDuration(state.osmd).numerator,originalSpeed:state$2.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){state$2.midiPlayIniting=!1,n.value=!1,t&&changeMode("music")})),state.durationNum=e),{initial:n}},getFeature=function(e){return e.feature?e.feature:e.lessonTrainingId?"LESSON_TRAINING":"PRACTICE"},useOriginSearch=exports("u",(function(){var e=location.search||location.hash.replaceAll("#/",""),t=queryString.parse(e);return t.Authorization&&sessionStorage.setItem("Authorization",t.Authorization||""),t.feature=getFeature(t),t})),useReload=exports("bd",(function(){var e=useOriginSearch(),t=queryString.stringify(_objectSpread2(_objectSpread2({},e),{},{_t:Date.now()}),{});location.search="?"+t})),useMenu=function(){var e=ref(!0);return useEventListener("click",(function(t){var n=t.path||t.composedPath(),r=n[0];if(r){var i=r.dataset.id&&r.dataset.id.indexOf("auto")>-1,a=n.find((function(e){var t;return"BUTTON"===e.tagName||"button"===(null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"role"))}));if(i||a)return}e.value=!e.value}),{target:document.body.querySelector("#colexiu-detail-music-sheet")}),watch((function(){return state.playState}),(function(t,n){var r=n;"suspend"===r&&(r="pause"),e.value="pause"!==r})),[e]},box="_box_eceij_1",button$1="_button_eceij_14",iconSound$1="_iconSound_eceij_31",skepBtn="_skepBtn_eceij_37",skepItems="_skepItems_eceij_59",bottom="_bottom_eceij_78",wrap$3="_wrap_eceij_85",staff="_staff_eceij_98",des="_des_eceij_111",lampWrap="_lampWrap_eceij_116",lamp="_lamp_eceij_116",flickerAnimate="_flickerAnimate_eceij_131",flicker$1="_flicker_eceij_131",styles$e={box:box,button:button$1,iconSound:iconSound$1,skepBtn:skepBtn,skepItems:skepItems,bottom:bottom,wrap:wrap$3,staff:staff,des:des,lampWrap:lampWrap,lamp:lamp,flickerAnimate:flickerAnimate,flicker:flicker$1},iconArrow="/orchestra-music-score/assets/icon-arrow.15f5e430.svg",iconBottom="/orchestra-music-score/assets/icon-bottom.91b813f9.png",iconRed="data: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CDYij75paWgz/r6HfdygIn/fB8SeRDnOzs737iuey//ScTvCBFJPvWT6D9cJW2Lx33GagAAAABJRU5ErkJggg==",iconSound="/orchestra-music-score/assets/icon-sound.12d833d8.png",score=exports("aJ",(function(e){return 12==e||4==e?{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.3</page-height>\n <page-width>1292</page-width>\n <page-margins type="both">\n <left-margin>61.2</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>379.6</top-margin>\n <bottom-margin>61.3</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>0</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>G</sign>\n <line>2</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>C</step>\n <octave>5</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:""}:5==e||6==e?{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.4</page-height>\n <page-width>1292.1</page-width>\n <page-margins type="both">\n <left-margin>61.3</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>355.6</top-margin>\n <bottom-margin>61.4</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>1</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>G</sign>\n <line>2</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>C</step>\n <octave>5</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:"C"}:13==e?{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.4</page-height>\n <page-width>1292.1</page-width>\n <page-margins type="both">\n <left-margin>61.3</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>355.6</top-margin>\n <bottom-margin>61.4</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>-1</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>G</sign>\n <line>2</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>F</step>\n <octave>4</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:"F"}:14==e||15==e?{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.4</page-height>\n <page-width>1292.1</page-width>\n <page-margins type="both">\n <left-margin>61.3</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>355.6</top-margin>\n <bottom-margin>61.4</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>-2</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>F</sign>\n <line>4</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>B</step>\n <alter>-1</alter>\n <octave>2</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:"S"}:120==e?{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.3</page-height>\n <page-width>1292</page-width>\n <page-margins type="both">\n <left-margin>61.2</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>379.6</top-margin>\n <bottom-margin>61.3</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>0</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>G</sign>\n <line>2</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>A</step>\n <octave>5</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:"A"}:{xml:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">\n <score-partwise version="3.1">\n <movement-title>Click to add Title</movement-title>\n <identification>\n <creator type="composer">Click to add Composer</creator>\n <rights>Click to add Copyright</rights>\n <encoding>\n <encoding-date>2021-08-27</encoding-date>\n <software>SmartMusic</software>\n <supports element="accidental" type="yes"/>\n <supports element="beam" type="yes"/>\n <supports element="stem" type="yes"/>\n <supports element="print" attribute="new-system" type="yes" value="yes"/>\n <supports element="print" attribute="new-page" type="yes" value="yes"/>\n </encoding>\n </identification>\n <defaults>\n <scaling>\n <millimeters>6.5000</millimeters>\n <tenths>40</tenths>\n </scaling>\n <page-layout>\n <page-height>1827.4</page-height>\n <page-width>1292.1</page-width>\n <page-margins type="both">\n <left-margin>61.3</left-margin>\n <right-margin>61.5</right-margin>\n <top-margin>355.6</top-margin>\n <bottom-margin>61.4</bottom-margin>\n </page-margins>\n </page-layout>\n <appearance>\n <line-width type="staff">1.0000</line-width>\n <line-width type="stem">1.0000</line-width>\n <line-width type="beam">5.0000</line-width>\n <line-width type="leger">1.0000</line-width>\n <line-width type="light barline">1.0000</line-width>\n <line-width type="heavy barline">3.4199</line-width>\n <line-width type="wedge">1.0000</line-width>\n <note-size type="cue">60</note-size>\n <note-size type="grace">50</note-size>\n </appearance>\n <music-font font-family="Maestro,engraved"/>\n <word-font font-family="Times New Roman" font-size="8"/>\n <lyric-font font-family="Times New Roman" font-size="9"/>\n </defaults>\n <part-list>\n <score-part id="P1">\n <part-name print-object="no">Music</part-name>\n <score-instrument id="P1-I1">\n <instrument-name>Music</instrument-name>\n <instrument-sound>wind.flutes.flute</instrument-sound>\n <virtual-instrument>\n <virtual-library>Finale Default Bank</virtual-library>\n </virtual-instrument>\n </score-instrument>\n <?SmartMusic instrument-id="2" staff="1"?>\n </score-part>\n </part-list>\n <part id="P1">\n <measure number="1" width="1109.2">\n <print>\n <system-layout>\n <system-margins>\n <left-margin>60</left-margin>\n <right-margin>0</right-margin>\n </system-margins>\n <top-system-distance>40</top-system-distance>\n </system-layout>\n <measure-numbering>system</measure-numbering>\n </print>\n <attributes>\n <divisions>3840</divisions>\n <key>\n <fifths>-2</fifths>\n <mode>major</mode>\n </key>\n <time>\n <beats>4</beats>\n <beat-type>4</beat-type>\n </time>\n <clef>\n <sign>G</sign>\n <line>2</line>\n </clef>\n </attributes>\n <sound tempo="100"/>\n <note>\n <pitch>\n <step>B</step>\n <alter>-1</alter>\n <octave>4</octave>\n </pitch>\n <duration>15360</duration>\n <voice>1</voice>\n <type>whole</type>\n </note>\n </measure>\n </part>\n </score-partwise>\n ',text:"Bb"}})),storeKeys={lastCheckTime:"lastCheckTime"},contentSound="/orchestra-music-score/assets/sound.a2da33e9.svg",checkStatus=ref("checking"),checkFrequency=ref(417.19244620530856),dotIcons=ref([iconWhite,iconWhite,iconWhite]),trend=ref(-1),time=ref(0),useStart=function(){postMessage$1({api:"proxyServiceMessage",content:{header:{status:200,commond:"xmlInfo",type:"SOUND_CHECK"},body:{frequency:checkFrequency.value}}}),postMessage$1({api:"startSoundCheck"},(function(){checkStatus.value="checking"})),localStorage.setItem(storeKeys.lastCheckTime,""+(new Date).valueOf())},useEnd=function(){postMessage$1({api:"endSoundCheck"})},useLister=function(){var e=function(e){var t,n=null==e||null===(t=e.content)||void 0===t?void 0:t.body.frequency;console.log("frequency",n,checkFrequency.value),trend.value=Math.abs(n-checkFrequency.value)<=5?0:n-checkFrequency.value>0?1:-1,dotIcons.value=[iconWhite,iconWhite,iconWhite],dotIcons.value[trend.value+1]=0===trend.value?iconGreen:iconRed,0!==trend.value&&(time.value=(new Date).getTime()),(new Date).getTime()-time.value>3e3&&(useEnd(),checkStatus.value="success",dotIcons.value=[iconGreen,iconGreen,iconGreen],setTimeout((function(){soundEffectShow.value=!1}),1e3))};onMounted((function(){useStart(),listenerMessage("sendResult",e)})),onBeforeUnmount((function(){removeListenerMessage("sendResult",e)}))},soundEffectShow=ref(!1),SoundEffect=defineComponent({name:"ColexiuSoundEffect",setup:function(){var e=ref(!1);return useLister(),watch(soundEffectShow,(function(){!1===soundEffectShow.value&&useEnd()})),function(){var t=score(2);return null==t||t.xml,createVNode("div",{class:styles$e.box},[createVNode("img",{class:styles$e.iconSound,src:iconSound},null),createVNode("div",{class:styles$e.wrap},[createVNode("div",{class:styles$e.staff},[createVNode("img",{src:contentSound},null)]),createVNode("div",{class:styles$e.des},[createTextVNode("请演奏 "),createVNode("span",{style:{color:"var(--primary-color)"}},[createTextVNode("Ab")]),createTextVNode("直到绿灯全部亮起")]),createVNode("div",{class:styles$e.lampWrap},[dotIcons.value.map((function(e,t){return createVNode("div",{class:styles$e.lamp,key:t},[createVNode("img",{class:["checking"===checkStatus.value&&styles$e.flickerAnimate],src:e},null)])}))])]),createVNode("img",{class:styles$e.bottom,src:iconBottom},null),createVNode(Button,{class:styles$e.button,icon:iconBack,onClick:function(){return soundEffectShow.value=!1}},null),createVNode(Popover,{class:styles$e.skepItems,show:e.value,"onUpdate:show":function(t){return e.value=t},actions:[{text:"跳过本次"},{text:"关闭校音"}],onSelect:function(e){return function(e){"关闭校音"===e.text&&(state$3.sett.tuning=!1),soundEffectShow.value=!1}(e)}},{reference:function(){return createVNode(Button,{class:styles$e.skepBtn,icon:iconArrow,iconPosition:"right"},{default:function(){return[createTextVNode("跳过")]}})}})])}}}),soundNeedShow=function(){state.evaluatingStatus&&state$3.sett.tuning&&(soundEffectShow.value=!0)},handleCheckEvaluatStatus=function(){soundNeedShow(),postMessage$1({api:"isWiredHeadsetOn"},(function(e){permissionPopup.active="earphone",permissionPopup.show=!(null!=e&&e.content.checkIsWired)}))},useWiredHeadsetCheck=function(){var e=ref(!1);return watch([function(){return state.evaluatingStatus}],(function(){state$3.sett.fingering})),watch([function(){return state.evaluatingStatus},function(){return permissionPopup.show},function(){return soundEffectShow.value}],(function(e){var t=_slicedToArray(e,3);t[0],t[1],t[2]})),[e]},gotoMemberCenter=function(){var e=getDevelopment()?"https://ponline.colexiu.com/orchestra-student/#/memberCenter":"".concat(location.origin,"/orchestra-student/#/memberCenter");postMessage$1({api:"back"}),postMessage$1({api:"openWebView",content:{url:e,orientation:1}})},useFee=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!browser().isStudent){e.next=20;break}return t="",e.prev=3,e.next=6,request.get("/student/member");case 6:n=e.sent,t=null==n?void 0:n.data,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:if(t){e.next=14;break}return e.abrupt("return");case 14:if(t.membershipDays||!t.purchaseMemberRecord){e.next=17;break}return Dialog.alert({title:"温馨提示",message:"您的团练宝暂未激活,请激活后使用",className:"noVip"}).then((function(e){gotoMemberCenter()})),e.abrupt("return");case 17:if(t.vipMember){e.next=20;break}return Dialog.alert({title:"温馨提示",message:"您暂未开通团练宝,请开通后使用",className:"noVip"}).then((function(){gotoMemberCenter()})),e.abrupt("return");case 20:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),useCamera=function(){watch((function(){return state$3.sett.camera}),(function(e){postMessage$1(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0})};useOriginSearch();var browserInfo=browser(),useClientType=function(){var e=useOriginSearch();if(e.client)return e.client;var t=0===location.pathname.indexOf("/orchestra-student/")||browserInfo.isStudent,n=0===location.pathname.indexOf("/orchestra-teacher/")||browserInfo.isTeacher;return t?"student":n?"teacher":"web"},typeById={2:{name:"flute",direction:"transverse"},4:{name:"clarinet",direction:"vertical",width:"1rem",paddingLeft:"0rem"},5:{name:"saxophone",direction:"vertical",width:"2rem"},6:{name:"saxophone",direction:"vertical",width:"2rem"},12:{name:"trumpet",direction:"transverse",height:"80px"},13:{name:"horn",direction:"vertical",width:"3.5rem"},14:{name:"trombone",direction:"transverse",height:"80px"},15:{name:"up-bass-horn",direction:"vertical",width:"3rem"},17:{name:"tuba",direction:"vertical",width:"3rem"},120:{name:"piccolo",direction:"vertical",width:"1rem"},136:{name:"hulusi-flute",direction:"vertical",width:"1.2rem"},135:{name:"pan-flute",direction:"vertical",width:"2.5rem"},134:{name:"ocarina",direction:"vertical",width:"2rem"},137:{name:"melodica",direction:"transverse"},130:{name:"ukulele",direction:"vertical",width:"2rem"},140:{name:"mouthorgan",direction:"transverse",height:"80px"},150:{name:"piano",direction:"transverse",height:"80px"}},relationships=exports("bg",{flute17:{59:[27,26,25,15,24,22,17,20],60:[1,2,3,5,7,9,11,12,13,15],1060:[1,2,3,5,7,9,1011,12,13,15],61:[1,2,3,5,7,9,13,15],1061:[1,2,3,5,7,9,1013,15],62:[1,2,3,5,7,9,15],1062:[1,2,3,5,7,9,1010,15],63:[1,2,3,5,7,9,10,15],1063:[1,2,3,5,7,1009,10,15],64:[1,2,3,5,7,10,15],1064:[1,2,3,5,1007,10,15],65:[1,2,3,5,10,15],1065:[1,2,3,1005,9,10,15],66:[1,2,3,9,10,15],1066:[1,2,3,1009,10,15],67:[1,2,3,10,15],1067:[1,2,3,1004,10,15],68:[1,2,3,4,10,15],1068:[[1,2,1003,4,10,15],[1,2,1003,1004,10,15]],69:[1,2,10,15],1069:[1,1002,10,14],70:[[1,5,10,15],[1,10,14]],1070:[1,1005,10,15],71:[1,10,15],1071:[1,10,1015],72:[1,10],1072:[1001,10],73:[13],1073:[1006,13],74:[2,3,5,7,9,15],1074:[2,3,5,7,9,1013,15],75:[2,3,5,7,9,10,15],1075:[2,3,5,7,9,10,15],76:[1,2,3,5,7,10,15],1076:[1,2,3,5,1007,10,15],77:[1,2,3,5,10,15],1077:[1,2,3,1005,9,10,15],78:[1,2,3,9,10,15],1078:[1,2,3,1009,10,15],79:[1,2,3,10,15],1079:[1,2,3,4,10,15],80:[1,2,3,4,10,15],1080:[1,2,1003,4,10,15],81:[1,2,10,15],1081:[1,1002,10,15],82:[[1,5,10],[1,10,14]],1082:[1,1005,10,15],83:[1,10,15],1083:[1,10,1015],84:[1,10],1084:[1001,10],85:[10],1085:[1006,10],86:[2,3,10,15],1086:[2,3,1008,10,15],87:[1,2,3,4,5,7,8,10,15],1087:[1,2,1003,4,5,7,8,10,15],88:[1,2,5,7,10,15],1088:[1,1002,5,7,10,15],89:[1,3,5,10,15],1089:[1,3,1005,9,10,15],90:[1,3,9,10,15],1090:[1,3,9,10,1015],91:[1,2,3,10],1091:[1,2,3,1006,10],92:[2,3,4,10],1092:[2,3,4,1006,10],93:[2,5,10,15],1093:[1002,5,10,15],94:[5,6,15],1094:[1,3,1005,1006,8,15],95:[1,3,8,15],1095:[1,3,8,10,1015],96:[1,2,3,4,5,11],1096:[1001,2,3,4,5,11]},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]},upBassHorn:{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:[1,5,3],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,7],88:[1,2,33,4,5,6],89:[1,2,33,4,5,7],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,7],95:[1,2,33,5,6],96:[1,2,5,6],97:[1,2,4,5,7,8],98:[1,2,4]},smallDrum:{0:["active","active-left","active-right"],64:["left","right"]},hulusi:{59:[7,6,5,4,3,2,1],60:[7,6,5,4,3,2],61:[7,6,5,4,3],62:[7,6,5,4],63:[7,6,5],64:[7,6],65:[[7,5,4,3,2,1],[7,5,4,3,2],[7,66]],66:[7]},pan:{54:[21],56:[20],58:[19],60:[18],62:[17],64:[16],66:[15],68:[14],70:[13],72:[12],74:[11],76:[10],78:[9],80:[8],82:[7],84:[6],86:[5],88:[4],90:[3],92:[2],94:[1]},ocarina:{57:[1,2,3,4,5,6,7,8,9,10,11,12],58:[1,2,3,4,5,6,8,9,10,11,12],59:[1,2,4,5,6,8,9,10,11,12],60:[1,2,4,5,6,11,12],61:[1,2,4,5,6,7,8,9,11,12],62:[1,2,4,5,6,8,9,11,12],63:[1,2,4,5,6,8,10,11,12],64:[1,2,4,5,6,8,11,12],65:[1,2,4,5,6,11,12],66:[1,2,4,6,9,11,12],67:[1,2,4,6,11,12],68:[1,2,6,9,11,12],69:[1,2,6,11,12],70:[1,2,6,9,11,12],71:[1,6,9,11,12],72:[6,11,12],73:[2,6,12],74:[6,12],75:[2,6],76:[6],77:[]},melodica:{56:[1],57:[2],58:[3],59:[4],60:[5],61:[6],62:[7],63:[8],64:[9],65:[10],66:[11],67:[12],68:[13],69:[14],70:[15],71:[16],72:[17],73:[18],74:[19],75:[20],76:[21],77:[22],78:[23],79:[24],80:[25],81:[26],82:[27],83:[28],84:[29],85:[30],86:[31],87:[32]},ukulele:{60:[3,300],61:[3,301],62:[3,302],63:[3,303],64:[2,200],65:[2,201],66:[2,202],67:[2,203],68:[2,204],69:[1,100],70:[1,101],71:[1,102],72:[1,103],73:[1,104],74:[1,105],75:[1,106],76:[1,107],77:[1,108],78:[1,109],79:[1,110],80:[1,111],81:[1,112],82:[1,113],83:[1,114],84:[1,115],85:[1,116],86:[1,117]},mouthorgan:{53:[101],54:[1],55:[102],56:[2],57:[103],58:[3],59:[104],60:[105],61:[4],62:[106],63:[5],64:[107],65:[108],66:[6],67:[109],68:[7],69:[110],70:[8],71:[111],72:[112],73:[9],74:[113],75:[10],76:[114],77:[115],78:[11],79:[116],80:[12],81:[117],82:[13],83:[118],84:[119],85:[14],86:[120],87:[15],88:[121],89:[122]},piano:{21:[101],22:[1],23:[102],24:[103],25:[2],26:[104],27:[3],28:[105],29:[106],30:[4],31:[107],32:[5],33:[108],34:[6],35:[109],36:[110],37:[7],38:[111],39:[8],40:[112],41:[113],42:[9],43:[114],44:[10],45:[115],46:[11],47:[116],48:[117],49:[12],50:[118],51:[13],52:[119],53:[120],54:[14],55:[121],56:[15],57:[122],58:[16],59:[123],60:[124],61:[17],62:[125],63:[18],64:[126],65:[127],66:[19],67:[128],68:[20],69:[129],70:[21],71:[130],72:[131],73:[22],74:[132],75:[23],76:[133],77:[134],78:[24],79:[135],80:[25],81:[136],82:[26],83:[137],84:[138],85:[27],86:[139],87:[28],88:[140],89:[141],90:[29],91:[142],92:[30],93:[143],94:[31],95:[144],96:[145],97:[32],98:[146],99:[33],100:[147],101:[148],102:[34],103:[149],104:[35],105:[150],106:[36],107:[151],108:[152]}}),getTypes=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s,l,u,c,h,f,d,p,m,g,v,y;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:"hulusi-flute"===e.t0?43:"pan-flute"===e.t0?47:"ocarina"===e.t0?51:"melodica"===e.t0?55:"ukulele"===e.t0?59:"mouthorgan"===e.t0?63:"piano"===e.t0?67:71;break;case 3:return e.next=5,__vitePreload((function(){return module.import("./index-legacy.fa6adf21.js")}),void 0);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.b76912f0.js")}),void 0);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.fb3b5ff7.js")}),void 0);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.c0359bda.js")}),void 0);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.a40d31f0.js")}),void 0);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.751aa416.js")}),void 0);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.3387fea3.js")}),void 0);case 29:return l=e.sent,e.abrupt("return",{json:l.default,relationship:relationships.upBassHorn});case 31:return e.next=33,__vitePreload((function(){return module.import("./index-legacy.5b8ff9d7.js")}),void 0);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.a4e2912c.js")}),void 0);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.3a52eaf3.js")}),void 0);case 41:return h=e.sent,e.abrupt("return",{json:h.default,relationship:relationships.smallDrum,width:"180px"});case 43:return e.next=45,__vitePreload((function(){return module.import("./index-legacy.c7dff827.js")}),void 0);case 45:return f=e.sent,e.abrupt("return",{json:f.default,relationship:relationships.hulusi,styles:{marginLeft:".6rem",marginRight:".7rem"}});case 47:return e.next=49,__vitePreload((function(){return module.import("./index-legacy.c4408dd6.js")}),void 0);case 49:return d=e.sent,e.abrupt("return",{json:d.default,relationship:relationships.pan,width:"240px",styles:{marginTop:"auto",marginLeft:".6rem",marginRight:".7rem"}});case 51:return e.next=53,__vitePreload((function(){return module.import("./index-legacy.9fdfdeec.js")}),void 0);case 53:return p=e.sent,e.abrupt("return",{json:p.default,relationship:relationships.ocarina,width:"180px",styles:{marginTop:"auto"}});case 55:return e.next=57,__vitePreload((function(){return module.import("./index-legacy.c8105c13.js")}),void 0);case 57:return m=e.sent,e.abrupt("return",{json:m.default,relationship:relationships.melodica,height:"80px",styles:{marginTop:"auto"}});case 59:return e.next=61,__vitePreload((function(){return module.import("./index-legacy.69114e0a.js")}),void 0);case 61:return g=e.sent,e.abrupt("return",{json:g.default,relationship:relationships.ukulele});case 63:return e.next=65,__vitePreload((function(){return module.import("./index-legacy.771b9517.js")}),void 0);case 65:return v=e.sent,e.abrupt("return",{json:v.default,relationship:relationships.mouthorgan});case 67:return e.next=69,__vitePreload((function(){return module.import("./index-legacy.dbcc0444.js")}),void 0);case 69:return y=e.sent,e.abrupt("return",{json:y.default,relationship:relationships.piano});case 71:return e.abrupt("return",null);case 72:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),container$4="_container_ajal8_1",changeIndex$1="_changeIndex_ajal8_6",activeopacity$1="_activeopacity_ajal8_1",leftrotates$1="_leftrotates_ajal8_1",rightrotates$1="_rightrotates_ajal8_1",styles$d={container:container$4,changeIndex:changeIndex$1,activeopacity:activeopacity$1,leftrotates:leftrotates$1,rightrotates:rightrotates$1},getImageSize=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=function(){t(r)},r.onerror=function(e){return t(r)}}))},formatFixedKey$1=function(e,t){return"piccolo"===e&&state$2.times[0]?ref(t+12*(1-state$2.times[0].octaveOffset)):ref(t)},formatRelationship$1=function(e,t){var n=e[t]||e[0]||[];return"number"==typeof n[0]||"string"==typeof n[0]?[n]:"object"===_typeof3(n[0])?n:[[]]},useFingeringSrc=function(e,t,n){var r=ref("");return e&&"trombone"===t&&!e.relationship[n]?(r.value=e.json.full2,r):(r.value=e.json.full,r)},FingeringComponent=defineComponent({name:"fingering",props:{type:{type:String,default:""},fixedKey:{type:Number,default:0},fingeringInfo:{type:Object},loaded:{type:Function,default:function(){}},viewInfo:{type:Object}},setup:function(e,t){var n=t.expose,r=toRefs(e),i=ref(null),a=ref(null),o=ref(0),s=ref(0);return n({container:i,containerWidth:o}),function(){var t,n,o,l,u,c,h,f,d,p,m,g,v,y,b;if(null===(t=r.viewInfo.value)||void 0===t||!t.activeType)return null;var S=formatFixedKey$1(null===(n=e.fingeringInfo)||void 0===n?void 0:n.name,r.fixedKey.value).value,x=formatRelationship$1(null===(o=r.viewInfo.value)||void 0===o||null===(l=o.activeType)||void 0===l?void 0:l.relationship,S||0),w=x[s.value]||[];return createVNode("div",{ref:i,class:classnames(null===(u=e.fingeringInfo)||void 0===u?void 0:u.name,styles$d.container),style:{width:"vertical"===(null===(c=e.fingeringInfo)||void 0===c?void 0:c.direction)?null===(h=e.fingeringInfo)||void 0===h?void 0:h.width:"",height:"transverse"===(null===(f=e.fingeringInfo)||void 0===f?void 0:f.direction)?(null===(d=e.fingeringInfo)||void 0===d?void 0:d.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(p=e.fingeringInfo)||void 0===p?void 0:p.direction)?null===(m=e.fingeringInfo)||void 0===m?void 0:m.paddingLeft:"",paddingRight:"vertical"===(null===(g=e.fingeringInfo)||void 0===g?void 0:g.direction)?null===(v=e.fingeringInfo)||void 0===v?void 0:v.paddingRight:""}},[w.includes(0)?createVNode("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[createTextVNode("转调")]):null,createVNode("img",{ref:a,src:null===(y=r.viewInfo.value)||void 0===y?void 0:y.fullsrc,style:{width:"auto",maxWidth:"100%",maxHeight:"ukulele"==(null===(b=e.fingeringInfo)||void 0===b?void 0:b.name)?"110%":"100%"}},null),w.map((function(t,n){var i,o,s,l,u,c,h,f,d="string"==typeof t?t.replace("active-",""):String(t);return createVNode("img",{"data-index":d,style:{position:"absolute",top:(null===(i=a.value)||void 0===i?void 0:i.offsetTop)+"px",left:(null===(o=a.value)||void 0===o?void 0:o.offsetLeft)+"px",zIndex:n,height:(null===(s=a.value)||void 0===s?void 0:s.height)+"px",width:(null===(l=a.value)||void 0===l?void 0:l.width)+"px",maxWidth:"100%",maxHeight:"ukulele"==(null===(u=e.fingeringInfo)||void 0===u?void 0:u.name)?"110%":"100%"},src:null===(c=r.viewInfo.value)||void 0===c||null===(h=c.activeType)||void 0===h||null===(f=h.json)||void 0===f?void 0:f[d]},null)})),x.length>1?createVNode("div",{role:"button",onClick:function(){var e=s.value===x.length-1?0:s.value+1;s.value=e},class:["substituteFinger",styles$d.changeIndex]},[createTextVNode("替指")]):null])}}}),formatdata={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},subjectTypes={1:"SmallDrum",2:"Flute",3:"Saxophone",4:"Clarinet",5:"Trumpet",6:"Trombone",7:"Horn",8:"UpBassHorn",9:"Tuba"},getSubjectIdCode=function(e){return subjectTypes[e]||""},formatId=function(e){return formatdata[e]||-1},fingeringWidth$1=ref(0),fingeringStatus$1=ref("hidden"),fingeringViewInfo$1=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s,l,u,c,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,getTypes(n.name);case 4:if(!(r=e.sent)){e.next=19;break}return a=formatFixedKey$1(n.name,state$2.fixedKey),o=useFingeringSrc(r,n.name,a.value),e.next=10,getImageSize(o.value);case 10:return s=e.sent,l=s.width,u=s.height,c=(null===(i=document.getElementById("colexiu-detail-music-sheet"))||void 0===i?void 0:i.clientHeight)||0,h=state.evaluatingStatus?0:l,f=c/u,fingeringWidth$1.value=c?f*h:h,l&&(fingeringStatus$1.value="show"),e.abrupt("return",reactive({width:l,height:u,scale:f,usedFixedKey:a.value,fullsrc:o.value,activeType:r,detail:n}));case 19:e.next=22;break;case 21:fingeringStatus$1.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),useFingering=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:"",n=ref({}),r=ref({}),e.next=5,fingeringViewInfo$1(typeById[formatId(t)]);case 5:return i=e.sent,n.value=(null==i?void 0:i.activeType)||{},r.value=(null==i?void 0:i.detail)||{},e.abrupt("return",[fingeringStatus$1,fingeringWidth$1,n,r]);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=new EventEmitter,playStartTime=0,MultipleAudio=function(){function e(t){var n=this;_classCallCheck2(this,e),this.audios={},this.audioList=[],this.length=0,this.status="init",this.speed=90,this.muted=!1,this.audio=null,this.event=ee,this.currentTime=0,this.duration=0,this.timer=null,this.accelerateRefreshPlayer=function(){if(!n.timer){var e=n.currentTime,t=(new Date).getTime();n.timer=setInterval((function(){n.currentTime=((new Date).getTime()-t)/1e3+e,n.event.emit("timeupdate",n)}),10)}},this.clearAccelerateRefreshPlayer=function(){clearInterval(n.timer),n.timer=null},this.setVolume=function(e,t){var r=setInterval((function(){Object.values(n.audios).map((function(n){e?(n.volume-=.01,n.volume<=.01&&(n.volume=0,clearInterval(r),t&&t())):(n.volume+=.01,n.volume>=1&&(n.volume=1,clearInterval(r),t&&t())),console.log(n.volume)}))}),16.7)},this.setSongs(t)}var t,n;return _createClass2(e,[{key:"setSongs",value:(n=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.audioList=t.filter((function(e){return!!e})).map((function(e){return e})),this.audio=null,this.event.removeAllListeners(),this.audios={},n=t.filter((function(e){return!!e})).map(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{url:t});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=7,Promise.all(n);case 7:r=e.sent,i=_createForOfIteratorHelper(r);try{for(i.s();!(a=i.n()).done;)o=a.value,(s=new Audio(o.url)).load(),this.audios[o.url]=s,this.audio||(this.audio=s)}catch(err){i.e(err)}finally{i.f()}this.length=n.length,this.audio&&(this.audio.addEventListener("loadedmetadata",(function(e){l.setDuration()})),this.audio.addEventListener("timeupdate",(function(e){var t;l.currentTime=(null===(t=l.audio)||void 0===t?void 0:t.currentTime)||0,l.event.emit("timeupdate",e);var n=!1;l.currentTime!==l.duration||n||(n=!0)}))),t.length&&(this.status=this.getStatus()),this.event.on("allWaiting",(function(){l.hasWaitng()&&l.event.emit("waiting")})),this.event.on("allPlaying",(function(){l.hasWaitng()||l.event.emit("playing")})),this.syncEvent();case 16:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setDuration",value:function(e){var t=Object.values(e||this.audios||{});if(t.length){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value.duration;a>0&&r.push(a)}}catch(err){i.e(err)}finally{i.f()}var o,s=Math.floor(Math.max.apply(Math,r)-Math.min.apply(Math,r));if(s>=1&&console.log("该教程原音与伴奏时长超过"+s+"秒,请修改后使用"),this.duration=Math.min.apply(Math,r),this.duration>0)null===(o=this.event)||void 0===o||o.emit("loadedmetadata",null,this.duration)}}},{key:"destroyed",value:function(){this.pause(),this.event.removeAllListeners(),this.audio=null,this.audios={}}},{key:"hasWaitng",value:function(){for(var e=!1,t=0,n=Object.values(this.audios);t<n.length;t++){if("waiting"===n[t].dataset.status){e=!0;break}}return e}},{key:"syncEvent",value:function(){for(var e=this,t=!1,n=function(n){var r;t=!1,e.event.emit("play",n),(null===(r=n.target)||void 0===r?void 0:r.src)===e.audioList[0]&&(playStartTime=(new Date).getTime())},r=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(n){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.pause();case 2:e.event.emit("pause",n),(null===(r=n.target)||void 0===r?void 0:r.src)===e.audioList[0]&&(i=(new Date).getTime()-playStartTime,e.event.emit("updatePlayTime",i/1e3));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),i=function(t){"play"===e.status&&(t.target.dataset.status="waiting"),e.event.emit("allWaiting")},a=function(t){t.target.dataset.status="",e.event.emit("allPlaying")},o=function(){var n=_asyncToGenerator(regeneratorRuntime.mark((function n(r){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t){n.next=4;break}return t=!0,n.next=4,e.pause();case 4:for(i in e.audios)Object.prototype.hasOwnProperty.call(e.audios,i)&&e.event.emit("ended",{target:e.audios[i]});case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),s=0,l=Object.values(this.audios);s<l.length;s++){var u=l[s];u.addEventListener("loadedmetadata",(function(){return e.setDuration(e.audios)})),u.addEventListener("play",n),u.addEventListener("pause",r),u.addEventListener("waiting",i),u.addEventListener("playing",a),u.addEventListener("ended",o)}}},{key:"getStatus",value:function(){var e;return this.audio?null!==(e=this.audio)&&void 0!==e&&e.paused?"pause":"play":"init"}},{key:"play",value:function(e){var t=this;return"play"!==this.getStatus()?new Promise((function(n){setTimeout((function(){(new Date).getTime(),Object.values(t.audios).map(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.play();case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n(t.audios)}),e||100)})):(this.status=this.getStatus(),Promise.resolve())}},{key:"pause",value:function(){var e=this;return this.status=this.getStatus(),Promise.all(Object.values(this.audios).map(function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.pause();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())).then((function(t){return e.status=e.getStatus(),t}))}},{key:"setMute",value:function(e,t){t?this.audios[t]&&(this.audios[t].muted=e):(this.muted=e,Object.values(this.audios).map((function(t){return t.muted=e})))}},{key:"setSpeed",value:function(e,t){t?this.audios[t]&&(this.audios[t].playbackRate=e):(this.speed=e,Object.values(this.audios).map((function(t){return t.playbackRate=e,t})))}},{key:"setCurrentTime",value:function(e){this.currentTime=e,Object.values(this.audios).map((function(t){return t.currentTime=e}))}},{key:"toggleMute",value:function(e){var t=this;e?this.audios[e]&&(this.audios[e].muted=!this.audios[e].muted):(Object.values(this.audios).map((function(e){return e.muted=!t.muted})),this.muted=!this.muted)}},{key:"togglePlay",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("pause"!==this.getStatus()){e.next=6;break}return e.next=3,this.play(t);case 3:case 10:return e.abrupt("return",e.sent);case 6:if("play"!==this.getStatus()){e.next=11;break}return this.setMute(!0),e.next=10,this.pause();case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();exports("bi",MultipleAudio);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=onlyVisible(e,0),n=(new DOMParser).parseFromString(t,"text/xml"),r=Array.from(n.querySelectorAll("measure")),i=Array.from(n.querySelectorAll("note")),a=Array.from(n.querySelectorAll("words")),o=Array.from(n.querySelectorAll("metronome")),s=[],l=function(){var e=c[u],t=getNextNote(e,"direction");if(t){for(var n=null==t?void 0:t.closest("measure"),a=Array.from(n.querySelectorAll("note")),o=Array.from(n.childNodes).filter((function(e){return"note"===e.nodeName})).findIndex((function(e){return e===t})),l=0,h=0,f=0;f<a.length;f++){var d;l+=+((null===(d=a[f].querySelector("duration"))||void 0===d?void 0:d.textContent)||"0"),f<o&&(h=l)}s.push({ele:e,index:i.indexOf(t),noteInMeasureIndex:o,textContent:e.textContent,measureIndex:r.indexOf(n),type:e.tagName,allDuration:l,leftDuration:h})}},u=0,c=[].concat(_toConsumableArray2(a),_toConsumableArray2(o));u<c.length;u++)l();s.push({ele:i[i.length-1],index:i.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:r.length});var h=[];s.sort((function(e,t){return e.index-t.index}));for(var f=Object.keys(speedInfo).map((function(e){return e.toLocaleLowerCase()})),d=function(){var e,t,n=m[p],r=!1,i=0,a=null===(e=n.textContent)||void 0===e?void 0:e.toLocaleLowerCase().trim();n===s[s.length-1]&&(1===(null===(t=h[h.length-1])||void 0===t?void 0:t.length)&&(r=!0));var o=f.find((function(e){var t=e.split(" ");return a&&t.includes(a)}));if("metronome"===n.type||"words"===n.type&&(a.startsWith("a tempo")||o)||r){var l,u=h.findIndex((function(e){return 1===e.length}));u>-1&&n.index>(null===(l=h[u])||void 0===l?void 0:l[0].start)&&(i=-1,h[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&&o&&h.push([{start:n.index,measureIndex:n.measureIndex,closedMeasureIndex:n.measureIndex+i,noteInMeasureIndex:n.noteInMeasureIndex,allDuration:n.allDuration,leftDuration:n.leftDuration,type:a}])},p=0,m=s;p<m.length;p++)d();return h},storeData=reactive({platformType:"STUDENT"}),musicInfo=reactive({id:"",audioFileUrl:"",musicId:"",musicSubject:"",musicSvg:"",speed:null,track:""});reactive({loading:"initail",mode:"exercise"});var search=useOriginSearch(),skpList=["Ukulele"],classids=[1,2,6,7,8,9,3,10,11,12,13,4,14,15,16,17,30,31,35,36,108],useXml=exports("ai",function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Number(search["part-index"])||0,i=ref(""),e.prev=2,e.next=5,request$1$1(t);case 5:a=e.sent,o=getCustomInfo(a),skpList.includes(o.code)?i.value=a:(i.value=formatXML(o.parsedXML,{title:n.musicSheetName}),i.value=onlyVisible(i.value,r),state$2.partIndex=r),state$2.gradual=getGradualLengthByXml(a),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(2);case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t,n){return e.apply(this,arguments)}}()),useMp3s=function(){var e=_asyncToGenerator(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:if(r=useOriginSearch(),i=r["part-index"]||0,a=null===(n=t.background)||void 0===n?void 0:n[i],Object.assign(musicInfo,a),musicInfo.musicSvg)try{musicInfo.musicSvg="string"==typeof musicInfo.musicSvg&&musicInfo.musicSvg?JSON.parse(musicInfo.musicSvg):""}catch(f){}o=isEncoded(t.metronomeUrl||"")?t.metronomeUrl||"":encodeURI(t.metronomeUrl||""),s=isEncoded((null==a?void 0:a.audioFileUrl)||"")?(null==a?void 0:a.audioFileUrl)||"":encodeURI((null==a?void 0:a.audioFileUrl)||""),state.songs={background:o?o+"?t=background":"",music:s?s+"?t=music":""},state$2.isAppPlay="MIDI"===t.audioType,l={skipTick:!1,repeatedBeats:!1,scoreSize:"middle"},u={},state$2.activeDetail=_objectSpread2(_objectSpread2({},t),{},{examSongId:t.id,originalSpeed:90,isAppPlay:"MIDI"===t.audioType,extConfigJson:_objectSpread2({},l)}),state$2.isPercussion="1"==musicInfo.musicSubject||isRhythmicExercises();try{u=JSON.parse((null==t?void 0:t.extConfigJson)||"")}catch(f){}state$2.activeDetail.extConfigJson=_objectSpread2(_objectSpread2({},state$2.activeDetail.extConfigJson),u),c=state$2.activeDetail.extConfigJson.scoreSize,h=store_legacy.get("zooms")||{},c&&!h[""+t.id]&&(store_legacy.set("zooms",_objectSpread2(_objectSpread2({},h),{},_defineProperty2({},""+t.id,c))),state$3.sett.scoreSize=c),state$2.needTick="MP3"===t.audioType&&"MP3"===t.mp3Type&&"CONCERT"!=t.musicSheetType||"MIDI"===t.audioType,state$2.skipTick=state$2.activeDetail.extConfigJson.skipTick,state$2.repeatedBeats=state$2.activeDetail.extConfigJson.repeatedBeats,state.songs.music||changeMode("background"),state.audiosInstance||(state.audiosInstance=new MultipleAudio(Object.values(state.songs)));case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),useSpecialShapedScreen=exports("h",(function(){var e=ref(0);return postMessage$1({api:"isSpecialShapedScreen"},(function(t){var n=null==t?void 0:t.content.notchHeight;state$2.notchHeight=(browser().ios?2*n:n)||(null!=t&&t.content.isSpecialShapedScreen&&browser().ios?100:0),e.value=state$2.notchHeight,state$2.isSpecialShapedScreen=null==t?void 0:t.content.isSpecialShapedScreen,document.documentElement.style.setProperty("--popup-loading",state$2.notchHeight/4+"px")})),[e]})),useDetail=function(e){var t=getRequestHostname(),n=ref("loading"),r=ref({});return n.value="loading",request.get("/musicSheet/detail/".concat(e),{prefix:t}).then((function(e){var t,i;useMp3s(e.data),r.value=_objectSpread2(_objectSpread2({},e.data),{},{code:Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.background)&&e.data.background.length?getSubjectIdCode(e.data.background[0].musicSubject):""}),0!=r.value.notation&&sessionStorage.getItem("notation")||(state$3.sett.type="staff"),state$2.isSpecialBookCategory=!classids.includes(e.data.musicSheetCategoriesId),state$2.subjectId=Number(musicInfo.musicSubject),window.DYSubjectId=formatId(r.value.code),n.value="success";var a={gradualTimes:{}};try{var o;null!==(o=r.value)&&void 0!==o&&o.extConfigJson&&(a=_objectSpread2(_objectSpread2({},a),JSON.parse(r.value.extConfigJson)))}catch(v){}if(state$2.gradualTimes=a.gradualTimes,"CONCERT"==(null==e||null===(i=e.data)||void 0===i?void 0:i.musicSheetType)){var s,l,u,c,h,f=(null==e||null===(s=e.data)||void 0===s?void 0:s.background)||[],d=Number(search["part-index"])||0,p=null===(l=f[d])||void 0===l?void 0:l.track;if("COMMON"==(null===(u=f[0])||void 0===u||null===(c=u.track)||void 0===c?void 0:c.toLocaleUpperCase()))p=null===(h=f[d+1])||void 0===h?void 0:h.track;var m=getInstrumentName(p);console.log("🚀 ~ track:",p),state$2.partName=p+(m?"(".concat(m,")"):"");var g=Object.keys(formatdata).filter((function(e){return e.includes(p)||p.includes(e)}))[0];r.value.code=g}})).catch((function(){return n.value="error"})),[n,r]},useSuspendPlay=function(){listenerMessage("suspendPlay",(function(){state$2.activeTick>-1&&stopTick(),console.log(state.playState),"play"===state.playState&&(resetPlayStatus(),state.evaluatingStatus&&evaluatStopPlay())}))},useActivity=function(){var e=ref(!0),t=ref(!1),n=ref(!1);try{var r=useOriginSearch().setting||{};"EVALUATING"===r.mode&&(n.value=!0,e.value=!1,t.value=!0),r.difficulty&&(state$3.eva.difficulty=r.difficulty),state$2.setting=r}catch(i){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(i)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},event=exports("R",new EventEmitter),setEngravingRules=function(e){var t;e.EngravingRules.CompactMode=!0,e.EngravingRules.DYMinNoteWidth=3,e.EngravingRules.VoiceSpacingMultiplierVexflow=.65,e.EngravingRules.VoiceSpacingAddendVexflow=2,e.EngravingRules.MinSkyBottomDistBetweenStaves=2,e.EngravingRules.MinSkyBottomDistBetweenSystems=2,e.EngravingRules.MinimumStaffLineDistance=4,e.EngravingRules.BetweenStaffDistance=2.5,e.EngravingRules.StaffDistance=3.5,e.EngravingRules.MinimumDistanceBetweenSystems=1,e.EngravingRules.PageBottomMargin=0,e.EngravingRules.PageLeftMargin=2,e.EngravingRules.PageRightMargin=2,e.EngravingRules.PageTopMarginNarrow=3,e.EngravingRules.WedgeEndDistanceBetweenTimestampsFactor=1,e.EngravingRules.RehearsalMarkXOffset=-18,e.EngravingRules.RehearsalMarkYOffset=10,e.EngravingRules.DYWorkId=(null===(t=state$2.activeDetail)||void 0===t?void 0:t.parentCategoriesId)||0},useEngravingRules=function(e,t){onMounted((function(){for(var n in setEngravingRules(e),t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=n,i=t[r];e.EngravingRules[r]=i}}))},useOsmd=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ref();if(e.value){for(var i=new EngravingRules,a=0,o=Object.entries(n);a<o.length;a++){var s=_slicedToArray(o[a],2),l=s[0],u=s[1];i[l]=u}r.value=new OpenSheetMusicDisplay(e.value,_objectSpread2({followCursor:!1,autoResize:!0,drawSubtitle:!1,drawTitle:!1,autoBeam:!0,drawMetronomeMarks:!1,drawMeasureNumbers:!1,drawComposer:!1,drawLyricist:!1},t),i)}return r},useOsmdLoader=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}throw"score is required";case 2:if(e.prev=2,!n||!t){e.next=9;break}return e.next=6,t.load(n);case 6:return t.zoom=formatZoom(),e.next=9,t.render();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(2);case 13:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t,n){return e.apply(this,arguments)}}(),container$3="_container_1fzyz_1",eyeProtection="_eyeProtection_1fzyz_27",styles$c=exports("V",{container:container$3,eyeProtection:eyeProtection}),section="_section_fyemo_1",measure="_measure_fyemo_1",dontTransition="_dontTransition_fyemo_5",after="_after_fyemo_5",img$1="_img_fyemo_22",font="_font_fyemo_30",bad="_bad_fyemo_35",good="_good_fyemo_43",great="_great_fyemo_51",perfect="_perfect_fyemo_58",noteWrap="_noteWrap_fyemo_80",noteBase="_noteBase_fyemo_86",noteRight="_noteRight_fyemo_89",noteError="_noteError_fyemo_92",lineHide="_lineHide_fyemo_113",lineTEST="_lineTEST_fyemo_119",flash="_flash_fyemo_139",restFlag="_restFlag_fyemo_142",restFlagActive="_restFlagActive_fyemo_156",flicker="_flicker_fyemo_1",styles$b={section:section,measure:measure,dontTransition:dontTransition,after:after,img:img$1,font:font,bad:bad,good:good,great:great,perfect:perfect,noteWrap:noteWrap,noteBase:noteBase,noteRight:noteRight,noteError:noteError,lineHide:lineHide,lineTEST:lineTEST,flash:flash,restFlag:restFlag,restFlagActive:restFlagActive,flicker:flicker},restPromptData=reactive({list:[]}),restPromptMain=function(e){calculateMergeRest(e)};function calculateMergeRest(e){var t,n=[],r=document.querySelector("#osmdSvgPage1"),i=(null===(t=r.getAttribute("viewBox"))||void 0===t?void 0:t.split(" "))||[],a=Number(r.getAttribute("width"))/Number(i[2]);a=isNaN(a)?1:a;for(var o=function(t){var r,i,o,s,l,u,c=e[t],h=(null==c||null===(r=c.noteElement)||void 0===r||null===(i=r.sourceMeasure)||void 0===i?void 0:i.MeasureNumberXML)||-1,f=(null==c||null===(o=c.noteElement)||void 0===o||null===(s=o.sourceMeasure)||void 0===s?void 0:s.multipleRestMeasures)||0,d=(null==c||null===(l=c.noteElement)||void 0===l||null===(u=l.sourceMeasure)||void 0===u?void 0:u.allRests)||!1,p=n.find((function(e){return e.measureNumberXML===h}));if(!p&&d&&f>1){var m,g,v=getStaveBox(null==c||null===(m=c.stave)||void 0===m||null===(g=m.attrs)||void 0===g?void 0:g.id,a);n.push({measureNumberXML:h,allRests:d,multipleRestMeasures:f,staveBox:v})}},s=0;s<e.length;s++)o(s);restPromptData.list=n}function getStaveBox(e,t){if(!e)return{};var n=document.querySelector("#"+e);if(n){var r,i=null==n||null===(r=n.nextElementSibling)||void 0===r?void 0:r.getBBox();return{left:i.x*t+"px",top:i.y*t+"px",width:i.width*t+"px",height:i.height*t+"px"}}return{}}function _isSlot$1(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var sectionRef=ref(null),noteInfoItems=reactive({duration:!1,numerator:!1,denominator:!1,i:!1,time:!1,speed:!1});window.setNoteInfoItems=function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(noteInfoItems[t]=e[t])};var uniqueByPosition=function(e){var t,n={},r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i&&i.start_x&&(n["".concat(i.x,"-").concat(i.y)]=i)}}catch(err){r.e(err)}finally{r.f()}return n};watchEffect((function(){state$2.sectionStatus?state$2.section.length?1===state$2.section.length&&(Toast.clear(),Toast({duration:0,message:"请选择结束节点",position:"top"})):(state$2.befireSection=null,Toast.clear(),Toast({duration:0,message:"请选择开始节点",position:"top"})):(state$2.section=[],state$2.sectionBoundingBoxs=[],Toast.clear())}));var Section=exports("L",defineComponent({name:"section-box",props:{type:{type:String,default:"evaluating"},top:{type:Number,default:0},left:{type:Number,default:0}},data:function(){return{sectionTop:0,sectionLeft:0}},methods:{setSection:function(e){var t=getActtiveNoteByTimes(e);if(t&&state$2.section.length<2){var n=state$2.section.length;if(0===n){var r=getNoteBySlursStart(t,!0);state$2.section.push(state$2.times[r.i-r.si])}if(1===n){var i=getNoteBySlursStart(t,!0,"end");state$2.section.push(state$2.times[i.i-i.si+i.noteLength-1])}}2===state$2.section.length&&(Toast.clear(),setSettionBackground())},sectionClick:function(e){if(metronomeData.isClick=!0,state$2.sectionStatus)this.setSection(e);else{if("contact"!==state$2.mode||state.evaluatingStatus)return;event.emit("section-click",e)}},filterTimes:function(e){var t=[];return e.filter((function(e){var n=t.includes(e.id);return t.push(e.id),!n}))}},mounted:function(){var e,t;Toast.clear(),state$2.section=[],this.sectionTop=null===(e=sectionRef.value)||void 0===e?void 0:e.getBoundingClientRect().top,this.sectionLeft=null===(t=sectionRef.value)||void 0===t?void 0:t.getBoundingClientRect().left},beforeUnmount:function(){Toast.clear(),state$2.sectionStatus=!1,state$2.section=[]},render:function(){var e,t,n,r,i=this,a=state$3.sett.eyeProtection?"var(--eye-section-border-color)":"var(--section-border-color)",o=function(e){return state$3.sett.eyeProtection?e.before?"var(--section-background-color)":"var(--eye-section-background-color)":e.before?"var(--eye-section-background-color)":"var(--section-background-color)"},s=(null===(e=state$2.times[state.activeIndex])||void 0===e||null===(t=e.noteElement)||void 0===t||null===(n=t.sourceMeasure)||void 0===n?void 0:n.MeasureNumberXML)||-2,l=restPromptData.list.find((function(e){var t=s-e.measureNumberXML;return e.allRests&&t>=0&&t<e.multipleRestMeasures})),u=l?s-l.measureNumberXML+1:0,c=document.querySelector("#cursorImg-0");return l?c&&2===metronomeData.cursorMode&&c.classList.remove("lineHide"):c&&2===metronomeData.cursorMode&&c.classList.add("lineHide"),createVNode("div",{class:styles$b.section,ref:sectionRef},[this.filterTimes(state$2.times).map((function(e){var t,n,r,a,o,s,l,u,c,h,f,d,p;if(!e.svgElelent)return null;try{var m,g,v,y;!(p=e.svgElelent.bbox||(null===(m=(g=e.svgElelent).getBoundingBox)||void 0===m?void 0:m.call(g)))&&null!==(v=e.svgElelent)&&void 0!==v&&null!==(y=v.attrs)&&void 0!==y&&y.el&&((p=e.svgElelent.attrs.el.getBBox()).w=p.width<15?15:p.width,p.h=p.height<11?11:p.height)}catch(E){console.log(E)}if(!p)return null;"jianpu"===state$3.sett.type&&e.svgElelent&&e.svgElelent.top_y&&e.svgElelent.note_height&&(p.y=e.svgElelent.top_y-e.svgElelent.note_height);var b=p,S=b.x,x=b.y,w=b.h,_=b.w,k=null,A=(null==e||null===(t=e.noteElement)||void 0===t||null===(n=t.sourceMeasure)||void 0===n?void 0:n.measureNumber)+1||-2;return 0===e.si&&(k=getBoundingBoxByNote(e.noteElement)),createVNode(Fragment,null,[0===e.si&&k&&createVNode("div",{"data-id":e.id,"data-num":e.noteElement.sourceMeasure.MeasureNumberXML,style:{position:"absolute",top:formatZoom(k.y)+"px",left:formatZoom(k.x)+"px",height:formatZoom(k.height)+"px",width:formatZoom(k.width)+"px",background:unitTestData.isSelectMeasureMode&&state$2.sectionStatus?"".concat((null==e||null===(r=e.noteElement)||void 0===r||null===(a=r.sourceMeasure)||void 0===a?void 0:a.MeasureNumberXML)<(null===(o=state$2.section[0])||void 0===o||null===(s=o.noteElement)||void 0===s||null===(l=s.sourceMeasure)||void 0===l?void 0:l.MeasureNumberXML)||(null==e||null===(u=e.noteElement)||void 0===u||null===(c=u.sourceMeasure)||void 0===c?void 0:c.MeasureNumberXML)>(null===(h=state$2.section[1])||void 0===h||null===(f=h.noteElement)||void 0===f?void 0:f.sourceMeasure.MeasureNumberXML)?"rgba(0, 0, 0,.28)":"var(--section-background-color)"):""},onClick:state$2.sectionStatus?i.sectionClick:void 0},[2===metronomeData.cursorMode&&A===(null===(d=metronomeData.activeMetro)||void 0===d?void 0:d.measureNumberXML)&&createVNode("div",{class:styles$b.lineTEST,style:{left:metronomeData.activeMetro.left}},null)]),createVNode("div",{"data-id":e.id,"data-vf":"vf"+e.id,class:styles$b.noteWrap,style:{position:"absolute",top:formatZoom(x)+"px",left:formatZoom(S)+"px",height:formatZoom(w)+"px",width:formatZoom(_)+"px",background:Object.values(noteInfoItems).find((function(e){return!0===e}))?"rgba(255, 255, 255, 0.8)":""},onClick:i.sectionClick},[noteInfoItems.duration&&createVNode(Fragment,null,[parseInt(100*e.duration+"")/100,createVNode("br",null,null)]),noteInfoItems.time&&createVNode(Fragment,null,[e.time.toFixed(2),createVNode("br",null,null)]),noteInfoItems.numerator&&createVNode(Fragment,null,[e.noteElement.sourceMeasure.activeTimeSignature.numerator,createVNode("br",null,null),createVNode("br",null,null)]),noteInfoItems.denominator&&createVNode(Fragment,null,[e.noteElement.sourceMeasure.activeTimeSignature.denominator,createVNode("br",null,null),createVNode("br",null,null)]),noteInfoItems.i&&createVNode(Fragment,null,[e.i,createVNode("br",null,null),createVNode("br",null,null)]),noteInfoItems.speed&&createVNode(Fragment,null,[e.speed.toFixed(0),createVNode("br",null,null),createVNode("br",null,null)]),createVNode("div",{class:[styles$b.noteBase,styles$b.noteRight]},[createVNode(Icon,{name:"success",size:"16",color:"var(--primary-color)"},null)]),createVNode("div",{class:[styles$b.noteBase,styles$b.noteError]},[createVNode(Icon,{name:"cross",size:"16",color:"red"},null)])])])})),state$2.section.map((function(e,t){var n=getBoundingBoxByverticalNote(e),r=void 0;try{var i,o=e.svgElelent.bbox||(null===(i=e.svgElelent)||void 0===i?void 0:i.getBoundingBox());r=formatZoom((null==o?void 0:o.x)||(0===t?n.start_x:n.end_x))}catch(s){console.log(s)}return r?0===t&&n?createVNode("div",{style:{position:"absolute",top:formatZoom(n.y)+"px",left:formatZoom(n.x)+"px",height:formatZoom(n.height)+"px",border:"5px solid ".concat(a),borderColor:"".concat(a," transparent ").concat(a," ").concat(a),borderRight:"none",width:"5px"}},null):1===t&&n?createVNode("div",{style:{position:"absolute",top:formatZoom(n.y)+"px",left:formatZoom(n.end_x)+"px",height:formatZoom(n.height)+"px",border:"5px solid ".concat(a),borderColor:"".concat(a," ").concat(a," ").concat(a," transparent"),borderLeft:"none",width:"5px"}},null):null:null})),state$2.sectionBoundingBoxs.map((function(e){var t;return createVNode("div",{class:_defineProperty2({},styles$b.flash,e.before&&state$2.sectionFlash&&"play"===state.playState),style:{position:"absolute",top:formatZoom(e.y)+"px",left:formatZoom(e.x)+"px",height:formatZoom(null===(t=getBoundingBoxByverticalNote(state$2.section[0]))||void 0===t?void 0:t.height)+"px",width:formatZoom(e.width)+"px",backgroundColor:o(e)}},null)})),createVNode(TransitionGroup,{name:"list",duration:800},_isSlot$1(r=Object.values(uniqueByPosition(Object.values(state$2.evaluatings))).map((function(e){return e?createVNode("div",{key:e.y+e.x+e.text,class:classnames(styles$b[e.text],styles$b.measure,_defineProperty2({},styles$b.dontTransition,e.dontTransition)),style:{position:"absolute",top:formatZoom(e.y)+i.top+"px",left:formatZoom(e.x)+i.left+"px",height:formatZoom(e.height)+"px",width:formatZoom(e.width)+"px"}},["evaluating"===i.type?createVNode("span",{class:styles$b.after},[createVNode("span",{class:styles$b.img},null),createVNode("span",{class:styles$b.font},[e.score])]):null]):createVNode("span",null,null)})))?r:{default:function(){return[r]}}),l&&createVNode("div",{class:["dotWrap",styles$b.restMeasure],style:l.staveBox},[createVNode("div",{class:"dot"},[u])])])}})),Cursor=function(){function e(t){_classCallCheck2(this,e),this.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAYAAAASC7TOAAAAAXNSR0IArs4c6QAAABdJREFUGFdj3Pp5c0Ptm2oGdNAs0soAAHslBd3n2kNUAAAAAElFTkSuQmCC",this.x=t.x,this.y=t.y,this.width=t.w,this.height=t.h,this.img=document.createElement("img"),this.img.src=this.src,this.img.style.position="absolute",this.img.style.zIndex="-1",this.setValue()}return _createClass2(e,[{key:"reset",value:function(){var e,t,n=null===(e=state$2.times)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.cursorBox;n&&this.setPosition(n)}},{key:"show",value:function(){this.img.style.display=""}},{key:"hide",value:function(){this.img.style.display="none"}},{key:"setPosition",value:function(e){var t=e.x,n=e.y,r=e.w,i=e.h;this.x=t,this.y=n,this.width=r,this.height=i,this.setValue()}},{key:"setValue",value:function(){this.img.style.left=this.x+"px",this.img.style.top=this.y+"px",this.img.style.width=this.width+"px",this.img.style.height=this.height+"px",this.show()}}]),e}(),rendered=ref(!1),MusicSheet=exports("M",defineComponent({name:"music-score",props:{isSoundEffect:{type:Boolean,default:!1},score:{type:String,default:""},showPartNames:{type:Boolean,default:!1},opotions:{type:Object,default:function(){}},EngravingRules:{type:Object,default:function(){}},showSection:{type:Boolean,default:!0}},emits:["rerender","startRender","renderError","loaddingEnd"],setup:function(e,t){var n=t.emit,r=t.expose,i=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var r,i,a,o,s,l,u,c,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return event.off("section-click",noteClick),n("startRender"),e.next=4,request$1$1.get(t);case 4:r=e.sent,f.value&&((a=document.createElement("div")).innerHTML=r,null===(i=f.value)||void 0===i||i.appendChild(a.firstElementChild),o=document.querySelector("#osmdSvgPage1"),s=document.getElementById("svgContainer"),l=null==o?void 0:o.getAttribute("width"),u=null==o?void 0:o.getAttribute("height"),l=isNaN(Number(l))?0:Number(l),u=isNaN(Number(u))?0:Number(u),l&&u&&(c=u/l,h=(null==s?void 0:s.offsetWidth)||document.body.clientWidth,state$2.zoom=h/l,null==o||o.setAttribute("width",h),null==o||o.setAttribute("height",h*c+"")));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(e){for(var t=0;t<e.length;t++){var n,r,i,a,o,s,l,u,c,h,f=e[t];null!=f&&null!==(n=f.svgElelent)&&void 0!==n&&n.bbox&&(f.svgElelent.bbox.x*=state$2.zoom,f.svgElelent.bbox.y*=state$2.zoom,f.svgElelent.bbox.w*=state$2.zoom,f.svgElelent.bbox.h*=state$2.zoom),null!==(r=f.noteElement)&&void 0!==r&&null!==(i=r.sourceMeasure)&&void 0!==i&&null!==(a=i.verticalMeasureList)&&void 0!==a&&null!==(o=a[0])&&void 0!==o&&o.boundingBox&&(f.noteElement.sourceMeasure.verticalMeasureList[0].boundingBox.absolutePosition.x*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].boundingBox.absolutePosition.y*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].boundingBox.size.width*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].boundingBox.size.height*=state$2.zoom),null!==(s=f.noteElement)&&void 0!==s&&null!==(l=s.sourceMeasure)&&void 0!==l&&null!==(u=l.verticalMeasureList)&&void 0!==u&&null!==(c=u[0])&&void 0!==c&&c.stave&&(f.noteElement.sourceMeasure.verticalMeasureList[0].stave.x*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].stave.y*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].stave.width*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].stave.height*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].stave.start_x*=state$2.zoom,f.noteElement.sourceMeasure.verticalMeasureList[0].stave.end_x*=state$2.zoom),null!=f&&null!==(h=f.cursorBox)&&void 0!==h&&h.move&&(f.cursorBox.x*=state$2.zoom,f.cursorBox.y=f.cursorBox.y*state$2.zoom+10,f.cursorBox.w*=state$2.zoom,f.cursorBox.h*=state$2.zoom)}return e},o=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var r,i,o,s,l,u,c,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request$1$1.get(t);case 2:i=e.sent,state$3.sett.scoreSize=(null==i||null===(r=i.osmd)||void 0===r?void 0:r.scoreSize)||"middle",i&&Array.isArray(i.times)&&(state$2.times=a(i.times),null!==(o=state$2.times)&&void 0!==o&&null!==(s=o[0])&&void 0!==s&&null!==(l=s.cursorBox)&&void 0!==l&&l.move&&(i.osmd.cursor=new Cursor(_objectSpread2({},null===(u=state$2.times)||void 0===u||null===(c=u[0])||void 0===c?void 0:c.cursorBox)),i.osmd.cursor.img.id="cursorImg-0",null===(h=f.value)||void 0===h||h.appendChild(i.osmd.cursor.img)),state$2.renderType="cache",n("rerender",i.osmd),state.isFirstPlay=!1,event.on("section-click",noteClick));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=toRefs(e),l=s.EngravingRules,u=s.opotions,c=s.showPartNames,h=s.score,f=ref(),d=ref(),p=function(){event.off("section-click",noteClick),n("startRender"),d.value=useOsmd(f,_objectSpread2(_objectSpread2({},u.value),{},{drawPartNames:c.value}),l.value).value,d.value&&(useEngravingRules(d.value,l.value),state.isFirstPlay=!1,event.on("section-click",noteClick))},m=ref(),g=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t.svg);case 2:o(t.json);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();onMounted(_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!rendered.value){e.next=2;break}return e.abrupt("return");case 2:p();case 3:case"end":return e.stop()}}),e)})))),onUnmounted((function(){event.off("section-click",noteClick)})),watch([h,d],_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d&&d.value&&h.value)){e.next=14;break}return e.prev=1,n("startRender"),e.next=5,useOsmdLoader(d.value,h.value);case 5:n("rerender",d.value),event.emit("loaded"),v(),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0),n("renderError");case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),{immediate:!0});var v=function(){},y=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,r,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a.length>0&&void 0!==a[0]?a[0]:{},r=t.score,i=r||h.value,setTimeout(_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(d&&d.value&&i)){e.next=18;break}return e.next=3,d.value.clear();case 3:return p(),e.prev=4,state$2.section=[],state$2.sectionStatus=!1,e.next=9,useOsmdLoader(d.value,i);case 9:n("rerender",d.value),event.emit("loaded"),v(),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(4),console.error(e.t0),n("renderError");case 18:case"end":return e.stop()}}),e,null,[[4,14]])}))),100);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"native"==state$2.renderType?(null===(t=d.value)||void 0===t||t.render(),state$2.times=getAllNodes(d.value)):(f.value&&(f.value.innerHTML=""),g(m.value));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return r({setRender:y,reRender:b}),function(){return createVNode("div",{id:"svgContainer",class:styles$c.container,style:{position:"relative"}},[createVNode("div",{ref:f},null),e.showSection&&createVNode(Section,{style:{position:"absolute",width:"100%",height:"100%",zIndex:1,top:0,left:0}},null)])}}})),ButtonsPlayer=defineComponent({name:"ButtonsPlayer",setup:function(){useWiredHeadsetCheck();var e=function(){state$2.activeTick>-1||(setCurrentTime(0),ended(new Event("ended")))},t=Math.floor(2*Math.PI*16),n=function(e){var t;"setPlayState"===(null==e||null===(t=e.data)||void 0===t?void 0:t.api)&&(console.log("父页面的切换事件关闭播放"),"play"==state.playState&&setPlayState(),stopTick(),setCurrentTime(0),setTimeout((function(){"play"==state.playState&&setPlayState()}),300))};return onMounted((function(){window.addEventListener("message",n)})),onUnmounted((function(){window.removeEventListener("message",n)})),function(){var n=state.currentTimeNum/state.durationNum*t;return createVNode(Teleport,{to:"body"},{default:function(){var t;return[createVNode("div",{class:styles$k.player,id:"globalPlayer"},[!state.evaluatingStatus&&createVNode(Fragment,null,[("pause"===state.playState||"suspend"===state.playState)&&state.currentTimeNum>0&&!state$2.sectionStatus&&createVNode(Button,{class:[styles$k.button,styles$k.fullbtn],onClick:e},{default:function(){return[createVNode(ButtonIcon,{key:"reset",name:"reset"},null)]}}),createVNode(Button,{class:[styles$k.button,styles$k.fullbtn],style:{marginLeft:"14px"},disabled:(null===(t=state$2.activeDetail)||void 0===t?void 0:t.isAppPlay)&&state$2.midiPlayIniting,onClick:function(){setPlayState()}},{default:function(){return[createVNode("div",{class:styles$k.schedule},[createVNode("div",{class:styles$k.schedule},["play"===state.playState?createVNode(ButtonIcon,{key:"pause",name:"pause",onClick:function(){console.log("暂停播放"),sendParentMessage("pause")}},null):createVNode(ButtonIcon,{key:"play",name:"play",onClick:function(){console.log("开始播放"),sendParentMessage("play")}},null),state.currentTimeNum>0&&!state$2.sectionStatus&&createVNode("svg",{class:styles$k.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[createVNode("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#fff","stroke-width":"2","stroke-linecap":"round"},null),createVNode("circle",{class:styles$k.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":n+",10000"},null)])])])]}})])])]}})}}}),popup="_popup_6gl7n_1",wrap$2="_wrap_6gl7n_6",image="_image_6gl7n_11",title$1="_title_6gl7n_16",andTitle="_andTitle_6gl7n_23",sub="_sub_6gl7n_26",andSub="_andSub_6gl7n_32",btnWrap="_btnWrap_6gl7n_35",btn$1="_btn_6gl7n_35",cancelBtn="_cancelBtn_6gl7n_49",confirmBtn="_confirmBtn_6gl7n_52",tryoutBtn="_tryoutBtn_6gl7n_55",discounts="_discounts_6gl7n_58",membershipBtn="_membershipBtn_6gl7n_74",demandBtn="_demandBtn_6gl7n_77",demandBtnFree="_demandBtnFree_6gl7n_80",earphoneBtn="_earphoneBtn_6gl7n_83",closeBtn="_closeBtn_6gl7n_86",styles$a={popup:popup,wrap:wrap$2,image:image,title:title$1,andTitle:andTitle,sub:sub,andSub:andSub,btnWrap:btnWrap,btn:btn$1,cancelBtn:cancelBtn,confirmBtn:confirmBtn,tryoutBtn:tryoutBtn,discounts:discounts,membershipBtn:membershipBtn,demandBtn:demandBtn,demandBtnFree:demandBtnFree,earphoneBtn:earphoneBtn,closeBtn:closeBtn},iconMicrophone="/orchestra-music-score/assets/microphone.7e50c915.svg",Microphone=defineComponent({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return createVNode("div",null,[createVNode("img",{class:styles$a.image,src:iconMicrophone},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:styles$a.title},[createTextVNode("开启权限")]),createVNode("div",{class:styles$a.sub},[createTextVNode("请开启麦克风访问权限")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.cancelBtn)},null),createVNode(Button,{class:classnames(styles$a.btn,styles$a.confirmBtn)},null)])])])}}}),iconCamera="/orchestra-music-score/assets/camera.ad45a2ea.svg",Camera=defineComponent({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return createVNode("div",null,[createVNode("img",{class:styles$a.image,src:iconCamera},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:styles$a.title},[createTextVNode("开启权限")]),createVNode("div",{class:styles$a.sub},[createTextVNode("请开启相机访问权限")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.cancelBtn)},null),createVNode(Button,{class:classnames(styles$a.btn,styles$a.confirmBtn)},null)])])])}}}),iconMembership="/orchestra-music-score/assets/membership.78b7ec9a.png",Member=defineComponent({name:"ColexiuMember",setup:function(){var e=useOriginSearch(),t=useClientType(),n=function(){delete e.Authorization,postMessage$1({api:"openWebView",content:{url:location.origin+"/"+t+"/#/memberCenter?"+queryString.stringify(_objectSpread2({},e)),orientation:1}})},r=function(){permissionPopup.show=!1,setCurrentTime(0),refreshIndex(0)};return function(){return createVNode("div",null,[createVNode("img",{class:styles$a.image,src:iconMembership},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:styles$a.title},[createTextVNode("请开通会员")]),createVNode("div",{class:styles$a.sub},[createTextVNode("开通会员后可完整使用该曲目")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.tryoutBtn),onClick:r},null),createVNode(Button,{class:classnames([styles$a.btn,styles$a.membershipBtn,_defineProperty2({},styles$a.discounts,1==e.discounts)]),onClick:n},null)])])])}}}),iconDemand="/orchestra-music-score/assets/demand.14944949.svg";ref(!1);var Demand=defineComponent({name:"ColexiuDemand",setup:function(){var e=useOriginSearch(),t=useClientType(),n=function(){var n=_asyncToGenerator(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:delete e.Authorization,postMessage$1({api:"openWebView",content:{url:location.origin+"/"+t+"/#/orderDetail?"+queryString.stringify(_objectSpread2({orderType:"MUSIC"},e)),orientation:1}});case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),r=function(){permissionPopup.show=!1,setCurrentTime(0),refreshIndex(0)};return function(){var e;return createVNode("div",{style:{position:"relative"}},[createVNode("img",{class:styles$a.image,src:iconDemand},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:styles$a.title},[createTextVNode("该曲目为点播曲目")]),createVNode("div",{class:styles$a.sub},[createTextVNode("点播价格 "),createVNode("span",{style:{color:"#FF4E19"}},[createTextVNode("¥"),null===(e=state$2.activeDetail)||void 0===e?void 0:e.musicPrice]),createTextVNode(",点播后可永久使用")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.tryoutBtn),onClick:r},null),createVNode(Button,{class:classnames(styles$a.btn,styles$a.demandBtn),onClick:n},null)])])])}}}),iconEarphone="/orchestra-music-score/assets/earphone.47c00320.png",Earphone=defineComponent({name:"ColexiuEarphone",setup:function(){return function(){return createVNode("div",null,[createVNode("img",{class:styles$a.image,src:iconEarphone},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:styles$a.title},[createTextVNode("请佩戴耳机")]),createVNode("div",{class:styles$a.sub},[createTextVNode("佩戴耳机可以保证测评准确率哦~")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.earphoneBtn),onClick:function(){permissionPopup.show=!1}},null)])])])}}});ref(!1);var MemberAndDemand=defineComponent({name:"memberAndDemand",setup:function(){var e=useOriginSearch(),t=useClientType(),n=function(){var n=_asyncToGenerator(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:delete e.Authorization,postMessage$1({api:"openWebView",content:{url:location.origin+"/"+t+"/#/orderDetail?"+queryString.stringify(_objectSpread2({orderType:"MUSIC"},e)),orientation:1}});case 2:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),r=function(){delete e.Authorization,postMessage$1({api:"openWebView",content:{url:location.origin+"/"+t+"/#/memberCenter",orientation:1}})},i=function(){permissionPopup.show=!1,setCurrentTime(0),refreshIndex(0)};return function(){var e;return createVNode("div",{style:{position:"relative"}},[createVNode("img",{class:styles$a.closeBtn,src:iconColse,onClick:i},null),createVNode("img",{class:styles$a.image,src:iconDemand},null),createVNode("div",{class:styles$a.wrap},[createVNode("div",{class:styles$a.des},[createVNode("div",{class:[styles$a.title,styles$a.andTitle]},[createTextVNode("该曲目为会员曲目,可以单曲购买哦")]),createVNode("div",{class:[styles$a.sub,styles$a.andSub]},[createTextVNode("开通酷乐秀会员海量曲目尽情练习"),createVNode("br",null,null),createTextVNode("单曲点播仅需 "),createVNode("span",{style:{color:"#FF4E19"}},[createTextVNode("¥"),null===(e=state$2.activeDetail)||void 0===e?void 0:e.musicPrice]),createTextVNode(",点播后可永久使用")])]),createVNode("div",{class:styles$a.btnWrap},[createVNode(Button,{class:classnames(styles$a.btn,styles$a.membershipBtn),onClick:r},null),createVNode(Button,{class:classnames(styles$a.btn,styles$a.demandBtn),onClick:n},null)])])])}}}),Permission=defineComponent({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){permissionPopup.show=!permissionPopup.show}}),function(){return createVNode(Popup,{class:styles$a.popup,show:permissionPopup.show,"onUpdate:show":function(e){return permissionPopup.show=e},teleport:"body",onClosed:function(){setCurrentTime(0)}},{default:function(){return["microphone"===permissionPopup.active?createVNode(Microphone,null,null):"camera"===permissionPopup.active?createVNode(Camera,null,null):"member"===permissionPopup.active?createVNode(Member,null,null):"demand"===permissionPopup.active?createVNode(Demand,null,null):"earphone"===permissionPopup.active?createVNode(Earphone,null,null):"memberAndDemand"===permissionPopup.active?createVNode(MemberAndDemand,null,null):null]}})}}}),ErrorIcon="/orchestra-music-score/assets/error.4d7eb6c9.svg",Empty=exports("E",defineComponent({name:"ColexiuEmpty",props:{description:{type:String,default:"网络错误"},imageSize:{type:Number,default:200},image:{type:String,default:ErrorIcon}},setup:function(e,t){var n=t.slots,r=function(){return postMessage$1({api:"back"})},i=toRefs(e),a=i.image,o=i.imageSize,s=i.description;return function(){return createVNode(Empty$1,{image:a.value,imageSize:o.value,description:s.value},{default:function(){return[n.default?n.default():createVNode(Button,{type:"primary",onClick:r},{default:function(){return[createTextVNode("返回")]}})]}})}}})),item$1="_item_6tre7_1",tag="_tag_6tre7_23",tabs="_tabs_6tre7_60",list="_list_6tre7_105",tab="_tab_6tre7_60",styles$9={item:item$1,tag:tag,tabs:tabs,list:list,tab:tab},chargeType={VIP:"会员",CHARGE:"点播",FREE:"免费"},SwitchTag=defineComponent({name:"SwitchTag",props:{type:String},setup:function(e){return function(){return createVNode(Tag,{plain:!0,class:[styles$9.tag,e.type,"van-hairline--surround"]},{default:function(){return[chargeType[e.type]]}})}}}),Item=defineComponent({name:"MusicList-MusicScore-Item",props:{item:{type:Object}},setup:function(e){var t=useOriginSearch(),n=sessionStorage.getItem("behaviorId")||""+(new Date).valueOf();return function(){var r,i,a;return createVNode("div",{class:[styles$9.item,{active:(null===(r=e.item)||void 0===r?void 0:r.id)==t.id}],onClick:function(){return pause(),postMessage$1({api:"cloudDestroy"}),postMessage$1({api:"cloudLoading",content:{show:!0,type:"fullscreen"}}),void(location.href=location.origin+location.pathname+"?"+queryString.stringify(_objectSpread2(_objectSpread2({},t),{},{behaviorId:n,id:null===(r=e.item)||void 0===r?void 0:r.id,_t:(new Date).valueOf()})));var r}},[createVNode("div",{style:{display:"flex"}},[((null===(i=e.item)||void 0===i?void 0:i.paymentType)||"").split(",").map((function(e){return createVNode(SwitchTag,{key:e,type:e},null)}))]),createVNode("p",null,[null===(a=e.item)||void 0===a?void 0:a.musicSheetName])])}}});function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var List=defineComponent({name:"MusicList-MusicScore-List",props:{list:{type:Array,default:function(){return[]}},url:{type:String,default:""},moreSearch:{type:Object,default:function(){return{}}}},emits:["refresh"],setup:function(e,t){t.emit;var n=ref(!1),r=ref(!1),i=ref(1),a=ref([]),o=ref(),s=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.url){t.next=2;break}return t.abrupt("return");case 2:return n.value=!0,t.prev=3,t.next=6,request(e.url,{params:_objectSpread2({page:i.value},e.moreSearch)});case 6:o=t.sent,a.value=[].concat(_toConsumableArray2(a.value),_toConsumableArray2(o.data.rows)),r.value=o.data.totalPage<i.value,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(3);case 13:n.value=!1;case 14:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(){return t.apply(this,arguments)}}();onMounted(s);var l=function(){n.value||r.value||(i.value=i.value+1,s())};return function(){var e;return a.value.length||n.value?createVNode("div",{class:styles$9.tab},[createVNode(List$1,{ref:o,class:styles$9.list,loading:n.value,finished:r.value,onLoad:l},_isSlot(e=a.value.map((function(e){return createVNode(Item,{item:e,key:e.id},null)})))?e:{default:function(){return[e]}})]):createVNode(Empty,{description:"暂无曲目"},{default:function(){return[createVNode("span",null,null)]}})}}}),MusicScore=defineComponent({name:"MusicList-MusicScore",setup:function(){var e=useOriginSearch();return function(){return createVNode(List,{url:"/music/sheet/queryRelatedList",moreSearch:{albumId:e.albumId,musicSheetId:e.id}},null)}}}),Collection=defineComponent({name:"MusicList-MusicScore",setup:function(){return function(){return createVNode(List,{url:"/music/sheet/favorite"},null)}}}),Practice=defineComponent({name:"MusicList-Practice",setup:function(){return function(){return createVNode(List,{url:"/music/sheet/practice"},null)}}}),Content=defineComponent({name:"MusicListContent",setup:function(){return function(){return createVNode(Tabs,{class:styles$9.tabs},{default:function(){return[createVNode(Tab,{title:"其他曲谱"},{default:function(){return[createVNode(MusicScore,null,null)]}}),createVNode(Tab,{title:"最近练习"},{default:function(){return[createVNode(Practice,null,null)]}}),createVNode(Tab,{class:styles$9.tab,title:"我的收藏"},{default:function(){return[createVNode(Collection,null,null)]}})]}})}}}),visible=ref(!1),survive=ref(!1),close=function(){visible.value=!1},closed=function(){survive.value=!1},MusicList=defineComponent({name:"MusicList",setup:function(e){return function(){return createVNode(Popup,{show:visible.value,onClickOverlay:close,onClosed:closed,position:"right",teleport:"body",style:{height:"100vh",width:"55vw",borderRadius:"5px 0 0 5px",overflow:"hidden"}},{default:function(){return[survive.value&&createVNode(Content,e,null)]}})}}}),dot="_dot_1cv1i_1",active="_active_1cv1i_9",container$2="_container_1cv1i_12",styles$8={dot:dot,active:active,container:container$2},Tick=function(e){return createVNode("div",{class:styles$8.container},[Array(e.dots*(e.repeat||1)).fill(0).map((function(t,n){return createVNode("div",{class:classnames(styles$8.dot,_defineProperty2({},styles$8.first,n%e.dots==0),_defineProperty2({},styles$8.active,state$2.activeTick>=0&&state$2.activeTick===n))},null)}))])},tickWrap="_tickWrap_1ouif_1",styles$7={tickWrap:tickWrap},TickPopup=exports("bm",defineComponent({name:"DetailTick",props:{show:{type:Boolean,default:!1},score:{default:""}},methods:{sendMessage:function(){window.parent.postMessage({api:"headerTogge",playState:state.playState,show:!0},"*")}},render:function(){var e=this;return this.score&&state.osmd||this.show?createVNode(Popup,{class:styles$7.tickWrap,show:state$2.activeTick>-1,closeable:!0,onClickCloseIcon:function(){stopTick(),e.sendMessage()},style:{width:"100%",height:"100%",display:"flex",background:"transparent"}},{default:function(){var e;return[createVNode(Tick,{dots:(null==state||null===(e=state.osmd)||void 0===e?void 0:e.numerator)||getDuration(state.osmd).numerator||0,repeat:state$2.activeTickRepeat},null)]}}):null}})),container$1="_container_hiwv0_1",changeIndex="_changeIndex_hiwv0_6",activeopacity="_activeopacity_hiwv0_1",leftrotates="_leftrotates_hiwv0_1",rightrotates="_rightrotates_hiwv0_1",styles$6={container:container$1,changeIndex:changeIndex,activeopacity:activeopacity,leftrotates:leftrotates,rightrotates:rightrotates},formatFixedKey=function(e,t){return"piccolo"===e&&state$2.times[0]?ref(t+12*(1-state$2.times[0].octaveOffset)):ref(t)},formatRelationship=function(e,t){var n=e[t]||e[0]||[];return"number"==typeof n[0]||"string"==typeof n[0]?[n]:"object"===_typeof3(n[0])?n:[[]]},FingeringComponentSvg=defineComponent({name:"fingering",props:{type:{type:String,default:""},fixedKey:{type:Number,default:0},fingeringInfo:{type:Object},loaded:{type:Function,default:function(){}},viewInfo:{type:Object}},setup:function(e,t){var n=t.expose,r=toRefs(e),i=ref(null);ref(null);var a=ref(0),o=ref(0);return n({container:i,containerWidth:a}),function(){var t,n,a,s,l,u,c,h,f,d,p,m,g,v,y;if(null===(t=r.viewInfo.value)||void 0===t||!t.activeType)return null;var b,S,x=formatFixedKey(null===(n=e.fingeringInfo)||void 0===n?void 0:n.name,r.fixedKey.value).value,w=formatRelationship(null===(a=r.viewInfo.value)||void 0===a||null===(s=a.activeType)||void 0===s?void 0:s.relationship,x||0),_=[];state$2.activeNote&&(null===(b=state$2.activeNote)||void 0===b||b.halfTone1.forEach((function(e){var t,n,i,a=(null===(t=r.viewInfo.value)||void 0===t||null===(n=t.activeType)||void 0===n||null===(i=n.relationship)||void 0===i?void 0:i[e])||[];a=a.map((function(e){return"right"+e})),_.push.apply(_,_toConsumableArray2(a))})),null===(S=state$2.activeNote)||void 0===S||S.halfTone2.forEach((function(e){var t,n,i,a=(null===(t=r.viewInfo.value)||void 0===t||null===(n=t.activeType)||void 0===n||null===(i=n.relationship)||void 0===i?void 0:i[e])||[];a=a.map((function(e){return"left"+e})),_.push.apply(_,_toConsumableArray2(a))})));var k=w[o.value]||[];return createVNode("div",{ref:i,class:classnames(null===(l=e.fingeringInfo)||void 0===l?void 0:l.name,styles$6.container),style:{width:"vertical"===(null===(u=e.fingeringInfo)||void 0===u?void 0:u.direction)?null===(c=e.fingeringInfo)||void 0===c?void 0:c.width:"",height:"transverse"===(null===(h=e.fingeringInfo)||void 0===h?void 0:h.direction)?(null===(f=e.fingeringInfo)||void 0===f?void 0:f.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(d=e.fingeringInfo)||void 0===d?void 0:d.direction)?null===(p=e.fingeringInfo)||void 0===p?void 0:p.paddingLeft:"",paddingRight:"vertical"===(null===(m=e.fingeringInfo)||void 0===m?void 0:m.direction)?null===(g=e.fingeringInfo)||void 0===g?void 0:g.paddingRight:""}},[k.includes(0)?createVNode("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[createTextVNode("转调")]):null,createVNode("div",{style:{width:"100%",height:"100%"},class:_,innerHTML:null===(v=r.viewInfo.value)||void 0===v||null===(y=v.activeType)||void 0===y?void 0:y.json.full2},null),w.length>1?createVNode("div",{role:"button",onClick:function(){var e=o.value===w.length-1?0:o.value+1;o.value=e},class:["substituteFinger",styles$6.changeIndex]},[createTextVNode("替指")]):null])}}}),fingering="_fingering_y2dbu_1",styles$5={fingering:fingering},subjectsSvg=["piano"],fingeringWidth=ref(0),fingeringStatus=ref("hidden"),fingeringViewInfo=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n,r,i,a,o,s,l,u,c,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,getTypes(n.name);case 4:if(!(r=e.sent)){e.next=19;break}return a=formatFixedKey$1(n.name,state$2.fixedKey),o=useFingeringSrc(r,n.name,a.value),e.next=10,getImageSize(o.value);case 10:return s=e.sent,l=s.width,u=s.height,c=(null===(i=document.getElementById("colexiu-detail-music-sheet"))||void 0===i?void 0:i.clientHeight)||0,h=state.evaluatingStatus?0:l,f=c/u,fingeringWidth.value=c?f*h:h,l&&(fingeringStatus.value="show"),e.abrupt("return",reactive({width:l,height:u,scale:f,usedFixedKey:a.value,fullsrc:o.value,activeType:r,detail:n}));case 19:e.next=22;break;case 21:fingeringStatus.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Fingering=defineComponent({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=toRefs(e).code,n=ref(null),r=ref(-1);return watch([t],function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(i,a){var o,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=_slicedToArray(i,1),s=o[0],l=_slicedToArray(a,1),u=l[0],r.value=formatId(t.value),s===u){e.next=8;break}return e.next=6,fingeringViewInfo(typeById[r.value]);case 6:(c=e.sent)&&(n.value=c);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{immediate:!0,deep:!0}),function(){if(r.value<0||!n.value)return null;var e=typeById[r.value];return createVNode("div",{class:[styles$5.fingering,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?state$2.notchHeight/2+"px":""}},[subjectsSvg.includes(null==e?void 0:e.name)?createVNode(FingeringComponentSvg,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:state$2.fixedKey},null):createVNode(FingeringComponent,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:state$2.fixedKey},null)])}}}),wrap$1="_wrap_1a32j_1",wrapItem="_wrapItem_1a32j_7",clearItem="_clearItem_1a32j_24",saveItem="_saveItem_1a32j_25",styles$4={wrap:wrap$1,wrapItem:wrapItem,clearItem:clearItem,saveItem:saveItem},getHasCache=function(){var e,t,n,r=!1;"staff"===state$3.sett.type?r=!(null!==(e=musicInfo.musicSvg)&&void 0!==e&&e.staff):r=state$3.sett.keySignature?!(null!==(t=musicInfo.musicSvg)&&void 0!==t&&t.fixedTone):!(null!==(n=musicInfo.musicSvg)&&void 0!==n&&n.firstTone);return r};defineComponent({name:"productJson",setup:function(e,t){var n=t.expose,r=useOriginSearch();n({autoProduct:function(e){if("json"!==r.modeType){var t;if(!musicJSON.svg)musicJSON.svg=(null===(t=document.getElementById("osmdSvgPage1"))||void 0===t?void 0:t.outerHTML)||"";musicJSON.svg&&a(!1)}}});var i=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({id:musicInfo.id,musicSvg:""});case 2:Toast("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r,i,a,l,u,c,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!(h.length>0&&void 0!==h[0])||h[0],musicJSON.json){e.next=4;break}return r&&Toast("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(musicJSON.svg){e.next=7;break}return r&&Toast("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return i=null,r&&(i=Toast.loading({message:"上传数据中 1/2",duration:0})),a={svg:"",json:""},e.next=12,s("".concat(null===(t=state$2.activeDetail)||void 0===t?void 0:t.id,".json"),musicJSON.json);case 12:return a.json=e.sent,i&&(i.message="上传数据中 2/2"),e.next=16,s("".concat(null===(n=state$2.activeDetail)||void 0===n?void 0:n.id,".svg"),musicJSON.svg);case 16:if(a.svg=e.sent,a.json&&a.svg){e.next=20;break}return r&&Toast("上传缓存数据失败"),e.abrupt("return");case 20:return l={id:musicInfo.id,musicSvg:""},u={},"staff"===state$3.sett.type?u.staff=a:state$3.sett.keySignature?u.fixedTone=a:u.firstTone=a,l.musicSvg=JSON.stringify(u),i&&(i.message="保存数据中"),console.log("🚀 ~ body:",l),e.next=28,o(l);case 28:200==(null==(c=e.sent)?void 0:c.code)?i&&(i.message="保存成功"):i&&(i.message="保存失败"),setTimeout((function(){i&&i.close()}),300);case 31:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,request.post("/musicSheet/updateRenderFile",{requestType:"json",data:t});case 2:return 200===(n=e.sent).code&&t.musicSvg&&(musicInfo.musicSvg=JSON.parse(t.musicSvg)),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t,n){var r,i,a,o,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="https://".concat(r="cloud-coach",".ks3-cn-beijing.ksyuncs.com/"),a=Date.now()+"_"+t,o={filename:t,bucketName:r,postData:{filename:t,acl:"public-read",key:a}},e.next=6,request.post("/open/getUploadSign",{requestType:"json",data:o});case 6:for(c in s=e.sent,l=new FormData,u={policy:s.data.policy,signature:s.data.signature,key:a,KSSAccessKeyId:s.data.kssAccessKeyId,acl:"public-read",name:t})l.append(c,u[c]);return l.append("file",new Blob([n])),e.next=13,request$1$1.post(i,{data:l});case 13:return e.abrupt("return",i+a);case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){return createVNode(Fragment,null,["json"===r.modeType&&createVNode("div",{class:styles$4.wrap},[createVNode(CellGroup,null,{default:function(){return[createVNode(Cell,{center:!0},{title:function(){var e,t,n;return createVNode("div",{class:styles$4.wrapItem},[createVNode("span",null,[createTextVNode("缓存状态: ")]),createVNode("span",null,[createTextVNode("五线谱 "),null!==(e=musicInfo.musicSvg)&&void 0!==e&&e.staff?createVNode(Icon,{name:"success",color:"rgba(103,201,176,1)"},null):createVNode(Icon,{name:"cross",color:"#ff6868"},null)]),createVNode("span",null,[createTextVNode("首调 "),null!==(t=musicInfo.musicSvg)&&void 0!==t&&t.firstTone?createVNode(Icon,{name:"success",color:"rgba(103,201,176,1)"},null):createVNode(Icon,{name:"cross",color:"#ff6868"},null)]),createVNode("span",null,[createTextVNode("固定调 "),null!==(n=musicInfo.musicSvg)&&void 0!==n&&n.fixedTone?createVNode(Icon,{name:"checked",color:"rgba(103,201,176,1)"},null):createVNode(Icon,{name:"cross",color:"#ff6868"},null)])])}}),createVNode(Cell,{class:styles$4.clearItem,title:"清除缓存数据",clickable:!0,onClick:i},null),createVNode(Cell,{class:styles$4.saveItem,title:"保存缓存数据",clickable:!0,onClick:a},null)]}})])])}}});var container="_container_gkw8f_1",headTitle="_headTitle_gkw8f_8",musicSheet="_musicSheet_gkw8f_18",skeleton="_skeleton_gkw8f_48",tips="_tips_gkw8f_56",errorWrap="_errorWrap_gkw8f_80",partName="_partName_gkw8f_92",styles$3=exports("i",{container:container,headTitle:headTitle,musicSheet:musicSheet,skeleton:skeleton,tips:tips,errorWrap:errorWrap,partName:partName}),tipsContainer="_tipsContainer_1tygt_1",backBtn="_backBtn_1tygt_7",content="_content_1tygt_21",parent="_parent_1tygt_26",myscale="_myscale_1tygt_1",item="_item_1tygt_37",img="_img_1tygt_42",iconHead="_iconHead_1tygt_46",btns="_btns_1tygt_52",btn="_btn_1tygt_52",styles$2={tipsContainer:tipsContainer,backBtn:backBtn,content:content,parent:parent,myscale:myscale,item:item,img:img,iconHead:iconHead,btns:btns,btn:btn},iconHand2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABqCAMAAAAlSZcPAAAC+lBMVEUAAAD/gFj/gFf/hFX/gVj/akD/f1f/gFf/gVf/+vf/gVv28fD/gFf/flf/gFb/glv/gFf/gFn/fVn/eln/hlX/cVX/kXP/glf/gFr/flfv6ufz7+//gED/dHD/dG/6+fj/emT/f2D28/Hp4uL/cnD28/P+iXb/inH/fWny6eft6Ob7+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auGYHwVJaK1BfxBeVQXiiS0Nqf05sLTaCxzIBvjjd32gGjIAsy5mMugkiHC+uw0HM4JgReAaEkCGgbieoIjEqY/jRHmKW3lqeCuGAwFmIxBRFCYXEeFhieKHFSsxj6x7jGfr3kj344TC4QNbUS4rD1jPBABIjqV/qGu/+Sv4Dy8eZptphfnjs0XjTm+4v2tfDvyAovuetBnC5AAAAAElFTkSuQmCC",__glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:iconHand2},Symbol.toStringTag,{value:"Module"})),iconHeader="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABqCAMAAAAlSZcPAAAC91BMVEUAAAD/gFj/gVj/gVj/glP/gVj/f1b/gFf/gFn/eEz/+vf/gVv/gFf/gFj/gFj/gFf/fVn/gFv/bUn/ZjP/flb/gFb/glf/flf/rZb/c2/6+fj/2s/8+/nx7ev/cnD49fX18fDo4d7n4N7/eXD/d27+eGz/m37/fWn/e2X18fDk3tnq6urq5ePo4d/z8O//dHD/+Pb/qJL9/f3/8e3/pI3o4d//jnv/////oIbs5+X/////0MHu6ef/hm7m4N39+/vq4+H/g2P/fV//kGzr5+bq4eD8+/r49fXp5eH//f3h19ft6Ob//v759/fm4N3/dnP7+vn/mIn/g3r/jYL+c3D/qJP39fX18vH/+ff////m39z/gXjy7u3/qpL/hHj/dG7/7Obp4uD59vby7ezv6uj/pYr7+vr9jHj9hnT9dWrm393/eGb/jXT/jXH/gWj/eGTu6uj/lnf/j3H59/fv7Or5+fn////8+/rr5eP/9vT/oY//eXT/////eXT/1svy7+7+dnD/8/Dt6ej/m4n/lIT/loP/kID39fXx7ez/////moX/lIH/4dn+dGv/39X/2s729fX/////x7b/jHP/////pYjk3dr////k3Nn/6+jx8fH/+vr////+cnD+/f3+gnrm39318vH08O/o4d/u6ujq5OL28/Py7u3x7evp4+D7+fj+enX7+/re1dLi2tf59/ft6Ob+fHfr5uTk3dv+dHH49fXg19Tk3Nn+i4D+dnPd09D+fnj+gHnw6+r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eKjmZdVLplJ0nVPPT66Ie8O1tjIOX2INZKTmwbwv6AO/cOcFdNNsu/HGsq29uPQGcwHuVG7sxhwQO8bD0Xvj9lad9vpbwBPGEdBA4trOAo8IX/evzka8/v9zm1g47L4lwlp0KHxEPVTPWrNDa4QgfnQq6UIoDTuTuWbxZcbwYgUcUCruMEQ5Lh9CsLtrXjgR7OmrTZUxPMh+eJ1QzZ57AO2/nce4+vjWVnmR0CygIMEY6IHxgHxc+gTeX1QJA3lTwaN5lPh3nRelYSzYoZqVMAhYRPmZ6H04g64Td3PNQvLPY2iGkYxnd3NlLjw/b3deIB+kQzBtPLz3shXGQBA9zdwW5MEov293ZPHH4ujQhl23pTcU4HzJ8Z/hqfu3gbaM3FdJbnjFi3lFkn1DNQvjujiK3PM43ZBscPOQuNdtqUhsyme3iGGfhG0VtF2U3s+O6S/G6NaA3s/Jb7aaD2LNjYBN6q63oIFAqjw/Z/K72K8U4CCg9pkwqXlCcjq7FJqqZxxTlh6jSJYrnqdSp04LFxUqUTs+8JLPUEc8tZZQ/gCoXdgCljscuK7vQhNmHd5dpWMXRjxZc9JS2jX7woTwLRNzYj2UUyoOuEPZDI0XKQFev5CMtedO8ZCD4AzcZadgZlXscyLYsUxaFGPphJV0cnllVbilVLo03jvLW5AIv3Rd60OuVU5Mjhyanl2eatCp5/QV2hN6EL0Y8wwAAAABJRU5ErkJggg==",__glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:iconHeader},Symbol.toStringTag,{value:"Module"})),m1="/orchestra-music-score/assets/m1.37a4864c.png",__glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:m1},Symbol.toStringTag,{value:"Module"})),m2="/orchestra-music-score/assets/m2.54eec470.png",__glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:m2},Symbol.toStringTag,{value:"Module"})),m3="/orchestra-music-score/assets/m3.e37e9821.png",__glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:m3},Symbol.toStringTag,{value:"Module"})),m4="/orchestra-music-score/assets/m4.b4d55e79.png",__glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:m4},Symbol.toStringTag,{value:"Module"})),m5="/orchestra-music-score/assets/m5.a57ac942.png",__glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:m5},Symbol.toStringTag,{value:"Module"})),step0="/orchestra-music-score/assets/step0.bd130092.png",__glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:step0},Symbol.toStringTag,{value:"Module"})),step1="/orchestra-music-score/assets/step1.e7319562.png",__glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:step1},Symbol.toStringTag,{value:"Module"})),step2="/orchestra-music-score/assets/step2.498f7723.png",__glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:step2},Symbol.toStringTag,{value:"Module"})),modules={"../images/icon-hand2.png":__glob_0_0,"../images/icon-header.png":__glob_0_1,"../images/index.ts":__glob_0_2,"../images/m1.png":__glob_0_3,"../images/m2.png":__glob_0_4,"../images/m3.png":__glob_0_5,"../images/m4.png":__glob_0_6,"../images/m5.png":__glob_0_7,"../images/step0.png":__glob_0_8,"../images/step1.png":__glob_0_9,"../images/step2.png":__glob_0_10},getImage=function(e){var t;return(null===(t=modules["../images/".concat(e)])||void 0===t?void 0:t.default)||""},Tip1=defineComponent({name:"tips-tip1",emits:["hanldeStop"],setup:function(e,t){var n=t.emit,r=ref(),i=reactive({show:!1,steps:[{ele:"",eleRect:{},img:getImage("step0.png"),btnsStyle:{top:"-2.13333rem"},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.4rem"}},{ele:"",img:getImage("step1.png"),btnsStyle:{top:"-2.2rem"},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.4rem"}},{ele:"",img:getImage("step2.png"),btnsStyle:{top:"-0.7rem",left:"-2.5rem","justify-content":"space-evenly",padding:0},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.7rem",left:"-2.3rem"}}],step:0});onMounted((function(){!function(){for(var e=0;e<i.steps.length;e++){var t=document.querySelector("[data-step='step".concat(e,"']"));if(t){var n=t.cloneNode(!0),r=t.getBoundingClientRect(),a=document.createElement("div");a.classList.add(styles$2.parent),a.style.left=(null==r?void 0:r.left)-10+"px",a.style.top=(null==r?void 0:r.top)-10+"px",a.style.width=(null==r?void 0:r.width)+20+"px",a.style.height=(null==r?void 0:r.height)+20+"px",a.appendChild(n),i.steps[e].ele=a.outerHTML,i.steps[e].eleRect=r}}}()}));var a=function(e){if(void 0!==e)i.step=e;else{if(i.step+1>=i.steps.length)return void o();i.step+=1}},o=function(){n("hanldeStop")};return function(){return createVNode("div",{class:styles$2.content,ref:r,onClick:function(){return a()}},[createVNode("div",{class:styles$2.backBtn,onClick:function(e){e.stopPropagation(),o()}},[createTextVNode("跳过引导")]),i.steps.map((function(e,t){var n,r;return createVNode("div",{style:{display:t===i.step?"block":"none"},onClick:function(e){return e.stopPropagation()}},[createVNode("div",{class:styles$2.item,style:{left:"".concat(null===(n=e.eleRect)||void 0===n?void 0:n.left,"px"),top:"".concat(null===(r=e.eleRect)||void 0===r?void 0:r.top,"px")}},[createVNode("img",{class:styles$2.img,style:e.imgStyle,src:e.img},null),createVNode("img",{class:styles$2.iconHead,style:e.handStyle,src:getImage("icon-header.png")},null),createVNode("div",{class:styles$2.btns,style:e.btnsStyle},[i.step+1==i.steps.length?createVNode(Fragment,null,[createVNode(Button,{class:styles$2.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){return a(0)}},{default:function(){return[createTextVNode("再看一遍")]}}),createVNode(Button,{class:styles$2.btn,round:!0,type:"primary",onClick:function(){return o()}},{default:function(){return[createTextVNode("完成")]}})]):createVNode(Button,{class:styles$2.btn,round:!0,type:"primary",onClick:function(){return a()}},{default:function(){return[createTextVNode("下一步 ("),i.step+1,createTextVNode("/"),i.steps.length,createTextVNode(")")]}})])]),createVNode("div",{innerHTML:e.ele},null)])}))])}}}),Tip2=defineComponent({name:"tips-tip1",emits:["hanldeStop"],setup:function(e,t){var n=t.emit,r=ref(),i=reactive({show:!1,step:0,steps:[{ele:"",eleRect:{},img:getImage("m1.png"),btnsStyle:{top:"2.4rem",left:"-0.1rem"},handStyle:{top:"0.6rem",left:"0.1rem"},imgStyle:{top:"0.6rem",left:"-0.2rem"}},{ele:"",eleRect:{},img:getImage("m2.png"),btnsStyle:{top:"2.2rem"},handStyle:{top:"0.6rem",left:"0.1rem"},imgStyle:{width:"2.6rem",top:"0.6rem",left:"-0.2rem"}},{img:getImage("m3.png"),btnsStyle:{top:"2.6rem"},handStyle:{top:"0.6rem",left:"0.1rem"},imgStyle:{width:"2.45333rem",top:"0.6rem",left:"-0.2rem"}},{ele:"",eleRect:{},img:getImage("m4.png"),btnsStyle:{top:"2.5rem",left:"-1.5rem"},handStyle:{top:"0.6rem",left:"0.1rem"},imgStyle:{width:"2.45333rem",top:"0.6rem",left:"-1.7rem"}},{ele:"",eleRect:{},img:getImage("m5.png"),btnsStyle:{top:"2.2rem",left:"-2rem",width:"2.93333rem","justify-content":"space-evenly",padding:0},handStyle:{top:"0.6rem",left:"0.1rem"},imgStyle:{top:"0.4rem",left:"-2rem",width:"2.93333rem"}}]});onMounted((function(){!function(){for(var e=0;e<i.steps.length;e++){var t=document.querySelector("[data-step='m".concat(e,"']"));if(t){var n=t.cloneNode(!0),r=t.getBoundingClientRect(),a=document.createElement("div");a.classList.add(styles$2.parent),a.style.left=(null==r?void 0:r.left)-10+"px",a.style.top="0",a.style.borderRadius="0.1rem",a.appendChild(n),i.steps[e].ele=a.outerHTML,i.steps[e].eleRect=r}}}()}));var a=function(e){if(void 0!==e)i.step=e;else{if(i.step+1>=i.steps.length)return void o();i.step+=1}},o=function(){n("hanldeStop")};return function(){return createVNode("div",{class:styles$2.content,ref:r,onClick:function(){return a()}},[createVNode("div",{class:styles$2.backBtn,onClick:function(e){e.stopPropagation(),o()}},[createTextVNode("跳过引导")]),i.steps.map((function(e,t){var n;return createVNode("div",{style:{display:t===i.step?"block":"none"},onClick:function(e){return e.stopPropagation()}},[createVNode("div",{onClick:function(e){return e.stopPropagation()},class:styles$2.item,style:{width:"2.18667rem",left:"".concat(null===(n=e.eleRect)||void 0===n?void 0:n.left,"px")}},[createVNode("img",{class:styles$2.img,style:e.imgStyle,src:e.img},null),createVNode("img",{class:styles$2.iconHead,style:e.handStyle,src:getImage("icon-hand2.png")},null),createVNode("div",{class:styles$2.btns,style:e.btnsStyle},[i.step+1==i.steps.length?createVNode(Fragment,null,[createVNode(Button,{class:styles$2.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){return a(0)}},{default:function(){return[createTextVNode("再看一遍")]}}),createVNode(Button,{class:styles$2.btn,round:!0,type:"primary",onClick:function(){return o()}},{default:function(){return[createTextVNode("完成")]}})]):createVNode(Button,{class:styles$2.btn,round:!0,type:"primary",onClick:function(){return a()}},{default:function(){return[createTextVNode("下一步 ("),i.step+1,createTextVNode("/"),i.steps.length,createTextVNode(")")]}})])]),createVNode("div",{innerHTML:e.ele},null)])}))])}}}),Tips=defineComponent({name:"tips-step",setup:function(e,t){var n=ref(!1),r=reactive({tipStep:1,tip1:!1,tip2:!1});watch(modelType,(function(){"practice"===modelType.value&&a()}));var i=function(e){localStorage.setItem(e,"ok")},a=function(){var e=useOriginSearch();if(!e.questionId&&!e.lessonTrainingId){var t=localStorage.getItem("isFirstTip"),i=localStorage.getItem("isFirstModel");"init"!=modelType.value||t?"practice"!=modelType.value||i||(n.value=!0,r.tipStep=2):(n.value=!0,r.tipStep=1)}};return onMounted((function(){a()})),function(){return createVNode(Popup,{teleport:"body",closeOnClickOverlay:!1,class:styles$2.tipsContainer,show:n.value,"onUpdate:show":function(e){return n.value=e}},{default:function(){return[1==r.tipStep&&createVNode(Tip1,{onHanldeStop:function(){n.value=!1,i("isFirstTip")}},null),2==r.tipStep&&createVNode(Tip2,{onHanldeStop:function(){n.value=!1,i("isFirstModel")}},null)]}})}}}),AfterClassTraining=defineComponent({name:"afterClassTraining",setup:function(){return watch((function(){return state$2.initRendered}),(function(){var e,t;state$2.initRendered&&window.parent.postMessage({api:"admin-selectMusicMeasure",start:null===(e=state$2.times[0])||void 0===e?void 0:e.measureNumberPrinted,end:null===(t=state$2.times[state$2.times.length-1])||void 0===t?void 0:t.measureNumberPrinted,speed:state$2.activeSpeed},"*")})),watch((function(){return state$2.section.length}),(function(){var e,t;2===state$2.section.length&&window.parent.postMessage({api:"admin-selectMusicMeasure",start:null===(e=state$2.section[0])||void 0===e?void 0:e.measureNumberPrinted,end:null===(t=state$2.section[1])||void 0===t?void 0:t.measureNumberPrinted,speed:state$2.activeSpeed,change:!0},"*")})),function(){return""}}}),modelWraper="_modelWraper_xj35j_1",wrap="_wrap_xj35j_8",styles$1={modelWraper:modelWraper,wrap:wrap},model1="/orchestra-music-score/assets/model-1.b93fcb09.png",model2="/orchestra-music-score/assets/model-2.b9e6613b.png",model3="/orchestra-music-score/assets/model-3.6da5a4f0.png",ModelWraper=defineComponent({name:"modelWraper",props:{onChangeModelType:{type:Function,default:function(){}}},setup:function(e,t){return function(){return createVNode("div",{class:styles$1.modelWraper,onClick:function(e){return e.stopPropagation()}},[createVNode("div",{class:styles$1.wrap},[createVNode("img",{"data-step":"step0",onClick:function(){return e.onChangeModelType("practice")},src:model1},null),createVNode("img",{"data-step":"step1",onClick:function(){return e.onChangeModelType("follow")},src:model3},null),createVNode("img",{"data-step":"step2",onClick:function(){return e.onChangeModelType("evaluation")},src:model2},null)])])}}}),follow="_follow_1hnxg_4",title="_title_1hnxg_12",endBtns="_endBtns_1hnxg_16",button="_button_1hnxg_21",hasText="_hasText_1hnxg_29",bigIcon="_bigIcon_1hnxg_52",start="_start_1hnxg_59",styles={follow:follow,title:title,endBtns:endBtns,button:button,hasText:hasText,bigIcon:bigIcon,start:start},iconFollwBtn="/orchestra-music-score/assets/icon-follwBtn.9fb45e5d.png",togglePlayer=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.querySelector("#globalPlayer");t&&(t.style.display=e?"":"none")},data=reactive({list:[],index:0,start:!1,times:[],endIndex:0});useToggle(!0);var noteFrequency=ref(0),audioFrequency=ref(0),followTime=ref(0),openToggleRecord=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(postMessage$1({api:"cloudToggleFollow",content:{state:e?"start":"end"}}),e)followTime.value=Date.now();else{var t=Date.now()-followTime.value;0!==followTime.value&&t>0&&(followTime.value=0)}};(new Date).valueOf();var onClear=function(){state$2.times.forEach((function(e){var t=document.querySelector("div[data-vf=vf".concat(e.id,"]"));t&&(t.classList.remove("follow-error"),t.classList.remove("follow-success"))}))},getDefaultIndex=function(){if(unitTestData.isSelectMeasureMode){data.endIndex=state$2.times.findIndex((function(e){return e.NoteToGraphicalNoteObjectId==state$2.section[1].NoteToGraphicalNoteObjectId}));var e=state$2.times.findIndex((function(e){return e.NoteToGraphicalNoteObjectId==state$2.section[0].NoteToGraphicalNoteObjectId}));return e>-1?e:0}return 0},handleStart=function(){onClear(),data.start=!0,openToggleRecord(!0),data.index=getDefaultIndex(),data.list=[],setStepIndex(state.osmd,data.index),getNoteIndex(),refreshView()},handleEnd=function(){data.start=!1,openToggleRecord(!1),data.index=getDefaultIndex(),setStepIndex(state.osmd,data.index),getNoteIndex()},next=function(){state.osmd.product?state.osmd.cursor.setPosition(state$2.times[data.index].cursorBox):state.osmd.cursor.next(),refreshView()},getNoteIndex=function e(){var t=state$2.times[data.index];return t.frequency?(noteFrequency.value=t.frequency,state$2.fixedKey=t.realKey,{id:t.id,min:t.frequency-.1*(t.frequency-t.noteElement.pitch.prevFrequency),max:t.frequency+.1*(t.noteElement.pitch.nextFrequency-t.frequency)}):(data.index=data.index+1,next(),e())},checking=!1,onFollowTime=function(e){var t;if(unitTestData.isSelectMeasureMode&&data.index>=data.endIndex)handleEnd();else{var n=null==e||null===(t=e.content)||void 0===t?void 0:t.frequency;audioFrequency.value=n,data.list.push(n),checked()}},checked=function(){if(!checking){checking=!0;for(var e=getNoteIndex(),t=0;t<data.list.length;t++){var n=data.list[t];if(n>e.min&&n<e.max)return console.log(e.min,n,e.max),next(),data.index+=1,data.list=data.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("follow-error"),n.classList.add("follow-success")):(n.classList.remove("follow-success"),n.classList.add("follow-error")))},Follow=defineComponent({name:"follow",setup:function(e,t){var n=t.expose;return onMounted((function(){togglePlayer(),listenerMessage("cloudFollowTime",onFollowTime)})),onUnmounted((function(){removeListenerMessage("cloudFollowTime",onFollowTime),togglePlayer(!0),onClear(),setStepIndex(state.osmd,0)})),n({data:data,handleEnd:handleEnd}),function(){return createVNode(Teleport,{to:"#colexiu-detail-music-sheet"},{default:function(){return[createVNode("div",{class:styles.follow},[createVNode(Transition,{name:"start",duration:300},{default:function(){return[!data.start&&createVNode(Button,{style:{backgroundImage:"url(".concat(iconFollwBtn,")"),marginLeft:state$2.isSpecialShapedScreen?"".concat(state$2.notchHeight/4,"px"):""},class:[styles.button,styles.start,styles.followBtn],onClick:function(){return handleStart()}},null)]}})])]}})}}}),musicJSON=reactive({json:"",svg:"",rended:!1}),MusicSheetRef=ref(),HomeIndex=defineComponent({name:"Colexiu",setup:function(){var e=useOriginSearch(),t=browser(),n=ref(!1);state$2.midiPlayIniting=!0,state$2.isLessonTrain=!!e.lessonTrainingId;var r=ref(!0),i=ref(!1),a=ref(""),o=ref("init"),s=ref(""),l=ref({}),u=ref({}),c=_slicedToArray(useDetail(e.id),2),h=c[0],f=c[1];watch(h,_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,c,d,p,m,g,v,y,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("success"!==h.value||!f.value.xmlFileUrl){e.next=25;break}return u.value=typeById[formatId(f.value.code||"")]||{},t=useActivity(),n=t.showFingering,c=t.frozenMode,d=t.compulsionEvaluating,e.next=5,useFingering(n.value?f.value.code:void 0);case 5:return p=e.sent,m=_slicedToArray(p,3),g=m[0],v=m[1],y=m[2],o.value=g.value,s.value=v.value,l.value=y.value,state$2.frozenMode=c.value,i.value=d.value,e.next=17,useXml(f.value.xmlFileUrl,f.value);case 17:if((b=e.sent).value){e.next=24;break}return r.value=!1,renderError.value=!0,e.abrupt("return");case 24:a.value=b.value;case 25:"error"===h.value&&(renderError.value=!0);case 26:case"end":return e.stop()}}),e)})))),onMounted((function(){window.appName="colexiu",event$1.on("settingFingeringChange",d),postMessage$1({api:"setEventTracking",content:{type:"klx_xiaokuAI"}}),e.chenkuang&&(state$2.chenkuang=!0)})),onUnmounted((function(){var e,t;(event$1.off("settingFingeringChange",d),"function"==typeof(null==state||null===(e=state.audiosInstance)||void 0===e?void 0:e.destroy))&&(null===(t=state.audiosInstance)||void 0===t||t.destroy())}));var d=function(e,t){var n=!0;return function(){if(!n)return!1;n=!1,setTimeout((function(){e(),n=!0}),t)}}((function(){"vertical"===u.value.direction&&(Toast("加载中,请稍后..."),setTimeout((function(){MusicSheetRef.value.reRender(),state$2.isNeedRefreshSection=!0}),16))}),300);useSpecialShapedScreen(),useSuspendPlay();var p=function(){window.isLoading=!1,postMessage$1({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})},m=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n=[];request.get("/musicSheetCategories/queryTree?page=1&rows=999&parentId=".concat(t)).then((function(t){200==(null==t?void 0:t.code)?(n=t.data.map((function(e){return e.id})),e(n)):e([])})).catch((function(t){e([])}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();ref();var g=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function t(n){var i,a,o,s,l,u,c,h,d,g;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p(),console.time("获取数据"),state.osmd=n,s=(store_legacy.get("speeds")||{})[e.id],l=n.bpm||n.Sheet.userStartTempoInBPM,state$2.activeSpeed=s||f.value.playSpeed||l||100,state$2.baseSpeed=f.value.playSpeed||l||100,state$2.code=(null===(i=f.value)||void 0===i?void 0:i.code)||"",state$2.activeDetail.originalSpeed=state$2.baseSpeed,t.next=11,m(49);case 11:u=t.sent,c=state$2.activeDetail.musicSheetCategoriesId,state$2.skipTick=u.includes(c),console.log("😯~",n,state$2),"native"===state$2.renderType&&(state$2.times=getAllNodes(n)),"json"===e.modeType||getHasCache(),console.timeEnd("获取数据"),console.log("🚀 ~👀~ detailState.times",state$2.times),state$2.initRendered=!0,h=(null===(a=state$2.times[state$2.times.length-1||0])||void 0===a?void 0:a.endtime)||0,state$2.isAppPlay&&useMidi(h,f.value.midiUrl),state.durationNum||(state.durationNum=h);try{metronomeData.metro=new Metronome({speed:state$2.activeSpeed}),metronomeData.metro.init(state$2.times)}catch(v){}useCamera(),changeSpeed(state$2.activeSpeed),((null===(o=state$2.setting)||void 0===o?void 0:o.resets)||[]).includes("SPEED")&&state$2.activeDetail&&changeSpeed(null===(d=state$2.activeDetail)||void 0===d?void 0:d.originalSpeed),setAudioInit(),(g=e.modelType)&&(modelType.value=g),r.value=!1;try{restPromptMain(state$2.times)}catch(v){}g&&"evaluation"==g&&(state.evaluatingStatus=!0,nextTick((function(){onChangeModelType(g)}))),nextTick((function(){useFee(),postMessage$1({api:"cloudAccompanyMessage",content:{accompanyUrl:state.songs.background}}),e.chenkuang&&refreshView()}));case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),v=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r.value=!0;case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(){p(),renderError.value=!0,r.value=!1};return watch((function(){return state.evaluatingStatus}),(function(){var e;state$3.sett.fingering&&"vertical"===(null===(e=u.value)||void 0===e?void 0:e.direction)&&nextTick((function(){MusicSheetRef.value.reRender()}))})),function(){r.value||h.value;var i=renderError.value||"error"===h.value,s=u.value,l=s.width,c=s.paddingRight,d=s.paddingLeft,p=s.direction,m="init"!==o.value,b=l||"0px",S=c||"0px",x=d||"0px",w="vertical"===p,_="vertical"===p?"20px":"0px",k="show"===o.value&&state$3.sett.fingering&&!state.evaluatingStatus,A="vertical"===p&&k,E=_objectSpread2(_objectSpread2({},w&&{margin:"auto",marginRight:0}),{},{width:u.value&&A?"calc(100% - ".concat(b," - ").concat(S," - ").concat(x," - ").concat(_,")"):""});return createVNode(Fragment,null,[createVNode("div",{class:[styles$3.container,state$3.sett.eyeProtection&&"eyeProtection",t.android&&"android"]},[createVNode(Transition,{name:"van-slide-down"},{default:function(){return[!r.value&&createVNode(Buttons,{class:styles$3.buttons},null)]}}),createVNode("div",{id:"colexiu-detail-music-sheet",class:[styles$3.musicSheet,{evaluating:state.evaluatingStatus||"follow"===modelType.value}],style:{paddingLeft:state$2.isSpecialShapedScreen?state$2.notchHeight/2+"px":"auto",paddingBottom:k&&u.value.height?u.value.height:"78px",background:state$3.sett.camera?"rgba(".concat(state$3.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(state$3.sett.opacity/100,") !important"):""}},[!!f.value.musicSheetName&&createVNode("div",{style:{width:r.value?"":E.width},class:styles$3.headTitle},[f.value.musicSheetName]),state$2.partName?createVNode("div",{style:{width:r.value?"":E.width},class:styles$3.partName},[state$2.partName]):null,createVNode(Skeleton,{class:styles$3.skeleton,rowWidth:"80%",title:!0,loading:"loading"===h.value},null),createVNode(Skeleton,{class:styles$3.skeleton,row:6,loading:r.value},null),a.value&&m&&createVNode(Fragment,null,[createVNode(MusicSheet,{ref:MusicSheetRef,style:E,score:a.value,isSoundEffect:!0,EngravingRules:{DYMusicScoreType:state$3.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:v,onRenderError:y,onRerender:g},null),k&&state$2.initRendered&&createVNode(Fingering,{code:f.value.code},null)]),"follow"===modelType.value&&createVNode(Follow,{ref:followRef},null),state$2.chenkuang&&createVNode("div",{style:{height:"100px"}},null)]),!r.value&&createVNode(ButtonsPlayer,null,null),createVNode(TickPopup,{score:a.value},null),createVNode(Permission,null,null),createVNode(HelperPopup,null,null),createVNode(MusicList,null,null),createVNode(AfterClassTraining,null,null),createVNode(Transition,{name:"van-slide-up",onAfterEnter:function(){n.value=!0}},{default:function(){return[!r.value&&"init"==modelType.value&&!state$2.isLessonTrain&&createVNode(ModelWraper,{onChangeModelType:onChangeModelType},null)]}}),n.value&&!i&&createVNode(Tips,null,null)]),createVNode(Transition,{name:"van-slide-up"},{default:function(){return[soundEffectShow.value&&createVNode(SoundEffect,null,null)]}}),!r.value&&createVNode(UnitTest,null,null),!e.lessonTrainingId&&!e.questionId&&"CONCERT"==f.value.musicSheetType&&createVNode(ToggleMusicSheet,null,null)])}}}),startTime=Date.now(),timer=null,initBehaviorId=""+Date.now(),recordTotalTime=function(){var e=useClientType();if("web"!=e){var t=useOriginSearch(),n=getRequestHostname(),r=(Date.now()-startTime)/1e3;if(startTime=Date.now(),!(r<0))if(t.lessonTrainingId){var i=browser();request.post("/studentLessonTraining/lessonTrainingRecord",{prefix:n,requestType:"json",data:{materialType:"SONG",record:{clientType:null==e?void 0:e.toLocaleUpperCase(),practiceSource:"LESSON_TRAINING",feature:"PRACTICE",deviceType:i.android?"ANDROID":i.isApp?"IOS":"WEB",behaviorId:initBehaviorId,playTime:r,musicSheetId:t.id},courseScheduleId:t.courseScheduleId,lessonTrainingId:t.lessonTrainingId,materialId:t.materialId}})}else request.post("/musicPracticeRecord/save",{prefix:n,requestType:"json",data:{musicSheetId:t.id,sysMusicScoreId:t.id,feature:"PRACTICE",practiceSource:"PRACTICE",playTime:r,deviceType:getPlatform(),behaviorId:initBehaviorId}})}},sendBackRecordTotalTime=function(){clearInterval(timer),recordTotalTime()},userInfo=reactive({id:"",membershipDays:0,purchaseMemberRecord:!1,vipMember:!1}),renderError=ref(!1),App=exports("A",defineComponent({setup:function(){var e=function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(sessionStorage.getItem("Authorization")){e.next=6;break}return e.next=4,promisefiyPostMessage({api:"getToken"});case 4:null!=(n=e.sent)&&null!==(t=n.content)&&void 0!==t&&t.accessToken&&sessionStorage.setItem("Authorization",n.content.tokenType+" "+n.content.accessToken);case 6:return e.prev=6,e.next=9,request.get("/user/getUserInfo");case 9:i=e.sent,Object.assign(userInfo,(null==i?void 0:i.data)||{}),null!==(r=i.data)&&void 0!==r&&r.clientType&&(storeData.platformType=i.data.clientType),e.next=20;break;case 14:e.prev=14,e.t0=e.catch(6),console.log(e.t0),renderError.value=!0,window.isLoading=!1,postMessage$1({api:"cloudLoading",content:{show:!1,type:"fullscreen"}});case 20:case"end":return e.stop()}}),e,null,[[6,14]])})));return function(){return e.apply(this,arguments)}}();return onMounted((function(){postMessage$1({api:"keepScreenLongLight",content:{isOpenLight:!0}}),e(),clearInterval(timer),timer=setInterval((function(){recordTotalTime()}),6e4)})),function(){return createVNode(Fragment,null,[!!userInfo.id&&createVNode(Fragment,null,[createVNode(HomeIndex,null,null)]),renderError.value&&createVNode("div",{class:styles$3.errorWrap},[createVNode(Empty,null,null)])])}}}))}}}))})();