@werckmeister/components 1.1.6-156 → 1.1.6-157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@werckmeister/components",
3
- "version": "1.1.6-156",
3
+ "version": "1.1.6-157",
4
4
  "description": "",
5
5
  "main": "werckmeister-components.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "@types/codemirror": "0.0.98",
32
32
  "@types/lodash": "^4.14.164",
33
33
  "@werckmeister/compilerjs": "1.4.3-754",
34
- "@werckmeister/language-features": "1.0.0-70",
34
+ "@werckmeister/language-features": "1.0.0-72",
35
35
  "@werckmeister/midiplayer": "1.0.2-43",
36
36
  "babel-core": "^6.26.3",
37
37
  "babel-polyfill": "^6.26.0",
@@ -36,7 +36,7 @@ var e=require("codemirror/lib/codemirror.js");require("codemirror/addon/mode/sim
36
36
  "use strict";function e(e,r){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=t(e))||r&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,u=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){l=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(l)throw a}}}}function t(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}var a=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&a(t,e,r);return u(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function u(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Editor=exports.Mode=void 0;var c=require("./SourceDocumentImpl"),f=l(require("lodash")),h=require("codemirror/lib/codemirror.js");require("codemirror/addon/hint/show-hint.js"),require("codemirror/mode/lua/lua.js"),require("./SheetMode"),require("./ConductionsSheetMode");var d,m="base16-dark";function v(e,t){var r=f.map(t,function(e){return"".concat(e,"?")}).join("");r=r.replace(/\./g,"\\.").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\{/g,"\\{").replace(/\}/g,"\\}").replace(/\[/g,"\\[").replace(/\[/g,"\\]");var n=new RegExp("(".concat(r,")$"),"g");return(e.match(n)||[])[0]}function p(e,t){return(e.match(/.*="?(.*)/)||[])[1]}!function(e){e.sheet="sheet",e.text="text",e.lua="lua",e.conductions="conductions"}(d=exports.Mode||(exports.Mode={}));var y=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0;n(this,t),this.element=e,this.eventMarkClass="wm-marked",this.errorClass="wm-error",this.warningClass="wm-warning",i=i||{theme:"default"},this.editor=h(e,{value:r,theme:i.theme,mode:d[d.sheet],lineNumbers:i.lineNumbers})}return o(t,[{key:"activateAutoCompletion",value:function(e,t){var r=this;this.languageFeatures=e,h.registerHelper("hint","wmAutoComplete",function(e,n){return s(r,void 0,void 0,regeneratorRuntime.mark(function r(){var n,i,o,a,u,l,s;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.getCursor(),i=n.ch,o=i,a=new c.ActiveSourceDocument(e,t),r.next=5,this.languageFeatures.autoComplete(a);case 5:return u=r.sent,l=function(e){return e.file?e.file.isDirectory?"isFolder":"isFile":""},s={list:u.map(function(e){return{text:e.displayText,replaceText:e.text,isValueSuggestion:!!e.parameter,className:l(e),hint:function(e,t,r){var i=r.isValueSuggestion,a=e.getRange({line:n.line,ch:0},{line:n.line,ch:n.ch}),u=r.replaceText,l=((i?p(a,u):v(a,u))||"").length,s=o-l,c=o+l;s!==c&&(c-=1),e.replaceRange(r.replaceText,h.Pos(n.line,s),h.Pos(n.line,c))}}}),from:h.Pos(n.line,o),to:h.Pos(n.line,i)},r.abrupt("return",s);case 9:case"end":return r.stop()}},r,this)}))}),h.commands.autocomplete=function(e){e.showHint({hint:h.hint.wmAutoComplete,container:r.element})};var n=function(e,t){var r=t.getCursor();t.replaceRange(e,r),h.commands.autocomplete(t)};this.editor.setOption("extraKeys",{"Ctrl-Space":"autocomplete","'\"'":n.bind(null,'"'),"'/'":n.bind(null,"/"),"'_'":n.bind(null,"_"),"'='":n.bind(null,"=")})}},{key:"setMode",value:function(e){e!==d.text?this.editor.setOption("mode",d[e]):this.editor.setOption("mode",null)}},{key:"getValue",value:function(){return this.editor.getValue()}},{key:"setValue",value:function(e){this.editor.setValue(e)}},{key:"clearEventMarkers",value:function(){var t,r=e(this.editor.getAllMarks());try{for(r.s();!(t=r.n()).done;){var n=t.value;n.className!==this.warningClass&&n.className!==this.errorClass&&n.clear()}}catch(i){r.e(i)}finally{r.f()}}},{key:"clearAllMarkers",value:function(){var t,r=e(this.editor.getAllMarks());try{for(r.s();!(t=r.n()).done;){t.value.clear()}}catch(n){r.e(n)}finally{r.f()}}},{key:"setMarker",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i=this.editor.posFromIndex(e),o=this.editor.posFromIndex(t+1);return this.editor.markText(i,o,{className:r,attributes:n})}},{key:"setEventMarker",value:function(e,t){return this.setMarker(e,t,this.eventMarkClass,{"wm-doc-pos":e})}},{key:"setErrorMarker",value:function(e,t){return this.setMarker(e,t,this.errorClass)}},{key:"setWarningMarker",value:function(e,t,r){return this.setMarker(t,r,this.warningClass,{title:e})}},{key:"update",value:function(){this.editor.refresh()}},{key:"isClean",value:function(){return this.editor.isClean()}},{key:"markClean",value:function(){this.editor.markClean()}},{key:"clearHistory",value:function(){this.editor.clearHistory()}}]),t}();exports.Editor=y;
37
37
  },{"./SourceDocumentImpl":"Glli","lodash":"B1iE","codemirror/lib/codemirror.js":"tQq4","codemirror/addon/hint/show-hint.js":"rbVD","codemirror/mode/lua/lua.js":"JTrO","./SheetMode":"edJQ","./ConductionsSheetMode":"PWBo"}],"LghJ":[function(require,module,exports) {
38
38
  var define;
39
- var e;parcelRequire=function(t,n,r,i){var o,a="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function c(e,r){if(!n[e]){if(!t[e]){var i="function"==typeof parcelRequire&&parcelRequire;if(!r&&i)return i(e,!0);if(a)return a(e,!0);if(u&&"string"==typeof e)return u(e);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}f.resolve=function(n){return t[e][1][n]||n},f.cache={};var s=n[e]=new c.Module(e);t[e][0].call(s.exports,f,s,s.exports,this)}return n[e].exports;function f(e){return c(f.resolve(e))}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=t,c.cache=n,c.parent=a,c.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]};for(var s=0;s<r.length;s++)try{c(r[s])}catch(t){o||(o=t)}if(r.length){var f=c(r[r.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof e&&e.amd&&e(function(){return f})}if(parcelRequire=c,o)throw o;return c}({sarP:[function(e,t,n){!function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&quot;":'"'};function r(e){return e&&e.replace(/^\s+|\s+$/g,"")}function i(e){return e.replace(/(&(?:lt|gt|amp|apos|quot|#(?:\d{1,6}|x[0-9a-fA-F]{1,5}));)/g,function(e){if("#"===e[1]){var n="x"===e[2]?parseInt(e.substr(3),16):parseInt(e.substr(2),10);if(n>-1)return String.fromCharCode(n)}return t[e]||e})}function o(e,t,n){if(void 0!==n){var r=e[t];r instanceof Array?r.push(n):e[t]=t in e?[r,n]:n}}("object"==typeof n&&n||{}).fromXML=function(e,t){return function e(t,n){if("string"==typeof t)return t;var a=t.r;if(a)return a;var u,c=function(e,t){if(e.t){for(var n,a,u=e.t.split(/([^\s='"]+(?:\s*=\s*(?:'[\S\s]*?'|"[\S\s]*?"|[^\s'"]*))?)/),c=u.length,s=0;s<c;s++){var f=r(u[s]);if(f){n||(n={});var l=f.indexOf("=");if(l<0)f="@"+f,a=null;else{a=f.substr(l+1).replace(/^\s+/,""),f="@"+f.substr(0,l).replace(/\s+$/,"");var p=a[0];p!==a[a.length-1]||"'"!==p&&'"'!==p||(a=a.substr(1,a.length-2)),a=i(a)}t&&(a=t(f,a)),o(n,f,a)}}return n}}(t,n),s=t.f,f=s.length;if(c||f>1)u=c||{},s.forEach(function(t){"string"==typeof t?o(u,"#",t):o(u,t.n,e(t,n))});else if(f){var l=s[0];if(u=e(l,n),l.n){var p={};p[l.n]=u,u=p}}else u=t.c?null:"";return n&&(u=n(t.n||"",u)),u}(function(e){for(var t=String.prototype.split.call(e,/<([^!<>?](?:'[\S\s]*?'|"[\S\s]*?"|[^'"<>])*|!(?:--[\S\s]*?--|\[[^\[\]'"<>]+\[[\S\s]*?]]|DOCTYPE[^\[<>]*?\[[\S\s]*?]|(?:ENTITY[^"<>]*?"[\S\s]*?")?[\S\s]*?)|\?[\S\s]*?\?)>/),n=t.length,o={f:[]},a=o,u=[],c=0;c<n;){var s=t[c++];s&&h(s);var f=t[c++];f&&l(f)}return o;function l(e){var t=e.length,n=e[0];if("/"===n)for(var r=e.replace(/^\/|[\s\/].*$/g,"").toLowerCase();u.length;){var i=a.n&&a.n.toLowerCase();if(a=u.pop(),i===r)break}else if("?"===n)p({n:"?",r:e.substr(1,t-2)});else if("!"===n)"[CDATA["===e.substr(1,7)&&"]]"===e.substr(-2)?h(e.substr(8,t-10)):p({n:"!",r:e.substr(1)});else{var o=function(e){var t={f:[]},n=(e=e.replace(/\s*\/?$/,"")).search(/[\s='"\/]/);return n<0?t.n=e:(t.n=e.substr(0,n),t.t=e.substr(n)),t}(e);p(o),"/"===e[t-1]?o.c=1:(u.push(a),a=o)}}function p(e){a.f.push(e)}function h(e){(e=r(e))&&p(i(e))}}(e),t)}}()},{}],ol4r:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}Object.defineProperty(n,"__esModule",{value:!0}),n.DocParser=n.parseCommandDbJson=void 0;var s=e("from-xml"),f="https://werckme.github.io",l=function(){function e(t){a(this,e),this.rawObject=t}return c(e,[{key:"getName",value:function(){return(this.rawObject||{})["@name"]}},{key:"getIsOptional",value:function(){return"1"===(this.rawObject||{})["@optional"]}},{key:"getType",value:function(){return(this.rawObject||{})["@type"]}},{key:"getDescription",value:function(){var e=(this.rawObject||{})["#"];return e&&e.join?e.join("\n"):e}},{key:"getIsDeprecated",value:function(){return(this.rawObject||{})["@deprecated"].length>0}},{key:"getDeprecatedText",value:function(){return(this.rawObject||{})["@deprecated"]}}]),e}(),p=function(){function e(t){a(this,e),this.rawObject=t}return c(e,[{key:"getDocumentContext",value:function(){var e,t,n=((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["@where"];return n?n.split(",").map(function(e){return e.trim()}):[]}},{key:"getName",value:function(){var e,t;return((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["@name"]}},{key:"getUrl",value:function(){return"https://werckme.github.io/manual#".concat(this.getName())}},{key:"getDescription",value:function(){var e,t,n=((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["#"];return n&&n.join&&(n=n.join("\n")),n}},{key:"getParameter",value:function(){var e,t,n=null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.param;return n?(Array.isArray(n)||(n=[n]),(n||[]).map(function(e){return new l(e)})):[]}}]),e}();n.parseCommandDbJson=function(e){var t={},n=JSON.parse(e);for(var r in n)t[r]=new p(n[r].rawObject);return t};var h=function(){function e(){a(this,e),this.commandDb={}}return c(e,[{key:"getDocComment",value:function(e,t){var n,i=[],o=!1,a=r(e.split("\n"));try{for(a.s();!(n=a.n()).done;){var u=n.value,c=u.trim().startsWith(t);if(!o&&c&&(o=!0),o&&!c)break;c&&i.push(u.replace(t,"").trim())}}catch(p){a.e(p)}finally{a.f()}return i.join("\n")}},{key:"normalizeText",value:function(e){return e.replace(/(\[.*\])\(\s*\/{0,1}manual(.*)\)/g,"$1(".concat(f,"/manual$2)")).replace(/(\[.*\])\((?!(\s*http|\s*https|\s*ftp))\s*(.*)\)/g,"$1(".concat(f,"/manual$3)")).replace(/\\n/g,"")}},{key:"parseDocumentText",value:function(e){e=this.normalizeText(e);var t=s.fromXML("<doc>".concat(e,"</doc>")),n=new p(t),r=n.getName();r&&(this.commandDb[r]=n)}},{key:"parseLua",value:function(e){e=this.normalizeText(e);var t=this.getDocComment(e,"--");t&&this.parseDocumentText(t)}},{key:"parseHpp",value:function(e){e=this.normalizeText(e);var t=this.getDocComment(e,"///");t&&this.parseDocumentText(t)}}]),e}();n.DocParser=h},{"from-xml":"sarP"}],f88W:[function(e,t,n){},{}],Y3F9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPreInstalledAuxFiles=n.getAutoHintDb=void 0;var r=e("./parser/docParser"),i=(e("fs"),r.parseCommandDbJson('{"device":{"rawObject":{"doc":{"command":{"@name":"device","@where":"document","#":"Defines a device which can be used when adding instruments (see [instrumentDef](https://werckme.github.io/manual#instrumentDef))\\nsee [instrumentDef](https://werckme.github.io/manual#instrumentDef), [instrument](https://werckme.github.io/manual#instrument)\\n#### example\\ndefine an device, an instrument and assign it to a track.\\n```\\ndevice: MyDevice midi 0;\\ninstrumentDef: organ _onDevice=MyDevice _ch=0 _pc=16;\\n[\\ninstrument: organ;\\n{\\nc d e f\\n}\\n]\\n```\\n**Fluidsynth**\\nIf you want to use [fluidSynth](http://www.fluidsynth.org) as output device, you can achieve this with a command like this:\\n`device: MyDevice fluidSynth _useFont=\\"PATH OF A SOUNDFONT FILE\\";`\\nOn mac, make sure that you have fluidsynth installed."},"param":[{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."},{"@name":"isType","@position":"1","@type":"[midi,fluidSynth]","#":"The type of the device."},{"@name":"usePort","@position":"2","@optional":"1","@type":"0..N","#":"The midi port id of your device. You can get a list of your connected devices, by executing `sheetp --list`. Alternatively you can use `useDevice` instead."},{"@name":"useDevice","@position":"","@optional":"1","@type":"text","#":"The name of the midi port of your device. You can get a list of your connected devices, by executing `sheetp --list`. It is not necessary to give the full name, a subset will match."},{"@name":"withOffset","@position":"","@optional":"1","@type":"0..N","#":"Defines an offset in milliseconds. Can be used to keep different devices in sync."},{"@name":"useFont","@position":"","@optional":"1","@type":"a file path","#":"Only valid if isType=`fluidsynth`. Sets the location of the soundfont file, which will be used by FluidSynth"}]}}},"instrumentConf":{"rawObject":{"doc":{"command":{"@name":"instrumentConf","@where":"document","#":"With `instrumentConf` you are able to setup a specific instrument.\\nFollowing settings can be applied:\\n* volume\\n* pan\\n* cc\\n* voicing strategy\\n* mod\\n* velocity remap\\n#### examples\\n##### mixed settings\\n`instrumentConf: piano volume 100 pan 50;`\\n##### setup a mod\\n`instrumentConf: piano mod myLuaMod someValue; --the `someValue` argument belongs to \\"myLuaMod\\"`\\n##### setup a velocity remap\\nWith `remapVelocity` you are able to change the velocity values behind `ppppp..fffff` for a specific instrument.\\nIn the example below the velocity for `p` will be set to 100 and the value for `f` will be set to 10.\\n> this approach is deprecated, use [conduction rules](https://werckme.github.io/manual#conduction-rules) instead\\nThe value range is 0..100. (100=127 Midi velocity)\\n`instrumentConf: _set=remapVelocity _p=100 _f=10;`"},"param":{"@name":"for","@position":"0","#":"The name of the target instrument. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related setting."}}}},"mod":{"rawObject":{"doc":{"command":{"@name":"mod","@where":"voice","#":"Adds a modification to the track. Every `mod` statement adds a further modification to the related voice.\\nIf you want to use ony one modification at the time use [do](https://werckme.github.io/manual#do) instead.\\n#### examples\\n`/mod: arpeggio/`\\nMods can be external lua scripts, or one of these internal mods:\\n##### Bend\\nPerforms a pitch bend from or to the pitch of a note. The value range is 0..100 where 50 means the pichbend center.\\n```language=Werckmeister,type=single,tempo=140\\n/doOnce: bend _from=0/ c1 | /doOnce: bend _to=0/ c1\\n```\\n##### Arpeggio\\nPerforms an arpeggio over a given chord.\\n**Arpeggio is deprecated. Use the lua mod [myArpeggio](https://werckme.github.io/manual#myarpeggio) instead.**"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"modOnce":{"rawObject":{"doc":{"command":{"@name":"modOnce","@where":"voice","#":"Like [mod](https://werckme.github.io/manual#mod). But with the difference, that the loaded mod will be only executed once for the following event.\\n#### examples\\n`/modOnce: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"cue":{"rawObject":{"doc":{"command":{"@name":"cue","@where":"voice","#":"adds a cue MIDI meta message to the corresponding midi track\\n#### examples\\n`/cue: cueText/`\\n> If a cue was visited several times during a repeat or jump an additional repeat index will be added.\\n> For example:\\n> `/cue: myCue/ c d e f :|` will create two cue MIDI messages: \\"myCue\\" and \\"myCue2\\"\\n>"},"param":{"@name":"text","@type":"text","#":"the text which appears in the MIDI message"}}}},"instrumentSection":{"rawObject":{"doc":{"command":{"@name":"instrumentSection","@where":"document","#":["Layers arbitrary instruments into one.\\nsee [instrumentDef](#instrumentDef), [instrument](https://werckme.github.io/manual#instrument), [device](https://werckme.github.io/manual#device)\\n#### example\\ncreate 3 instruments and assign them to the section `myNewInstrument`.","```language=Werckmeister\\ntempo: 120;\\ndevice: MyDevice midi _usePort=0;\\ninstrumentDef:piano _onDevice=MyDevice _ch=0 _pc=0;\\ninstrumentDef:guitar _onDevice=MyDevice _ch=1 _pc=29;\\ninstrumentDef:organ _onDevice=MyDevice _ch=2 _pc=16;\\ninstrumentSection: myNewInstrument piano guitar organ;\\n\\n[\\ninstrument: myNewInstrument;\\n{\\na,,1 | a, | d#,~ | &\\n}\\n]\\n```"]},"param":{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."}}}},"instrumentDef":{"rawObject":{"doc":{"command":{"@name":"instrumentDef","@where":"document","#":"Adds a new MIDI instrument.\\nsee [instrument](https://werckme.github.io/manual#instrument), [device](https://werckme.github.io/manual#device)\\n#### example\\ndefine an device, an instrument and assign it to a track.\\n```\\ndevice: MyDevice midi 0;\\ninstrumentDef: organ _onDevice=MyDevice _ch=0 _pc=16;\\n[\\ninstrument: organ;\\n{\\nc d e f\\n}\\n]\\n```"},"param":[{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."},{"@name":"onDevice","@position":"1","@type":"text","#":"The device which to use (The name of the device, see [device](https://werckme.github.io/manual#device))."},{"@name":"ch","@position":"2","@type":"0..15","#":"The MIDI channel."},{"@name":"bankMsb","@position":"3","@type":"0..127","#":"A MIDI `bank select MSB` value."},{"@name":"pc","@position":"4","@type":"0..127","#":"A MIDI `program change` value."},{"@name":"bankLsb","@type":"0..127","#":"A MIDI `bank select LSB` value."},{"@name":"cc","@type":"0..127","@deprecated":"use bankMsb instead","#":"A MIDI `bank select MSB. Deprecated use bankMsb instead` value."},{"@name":"gmInstrument","@type":"text","#":"You can use a GM instrument name instead of a pc number. It is not necessary to give the full name, a subset will match. You can find a complete list of instrument names here: [GM Instruments](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/gm_instrument_names.md)."}]}}},"execute":{"rawObject":{"doc":{"command":{"@name":"execute","@where":"voice","#":"Executes a lua function.\\n#### examples\\ntbd."},"param":{"@name":"name","@position":"0","@type":"text","#":"The name of the lua function. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"fadeCC":{"rawObject":{"doc":{"command":{"@name":"fadeCC","@where":"voice","#":"Fades a CC value from a start to an end value.\\n#### examples\\n`/cc: _nr=1 _value=10/ --modulation by controller number`\\n`/cc: _name=\\"modulation\\" _value=10/ --modulation value by controller name`\\n#### supported CC names\\n* BankSelectMSB\\n* Modulation\\n* BreathController\\n* FootController\\n* PortamentoTime\\n* MainVolume\\n* Balance\\n* Panorama\\n* Expression\\n* EffectControl1\\n* EffectControl2\\n* BankSelectLSB\\n* Hold1\\n* Portamento\\n* Sostenuto\\n* SoftPedal\\n* Legato\\n* Hold2\\n* PortamentoControl\\n* Effects1Depth\\n* Effects2Depth\\n* Effects3Depth\\n* Effects4Depth\\n* Effects5Depth\\n* AllSoundsOff\\n* ControllerReset\\n* LocalControl\\n* AllNotesOff\\n* OmniOff\\n* OmniOn\\n* MonoOn\\n* MonoOff\\n![supported curve types](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/curve-types.png)"},"param":[{"@name":"nr","@type":"0..N","@position":"0","@optional":"0","#":"The number of the controller"},{"@name":"from","@type":"0..127","@position":"1","@optional":"0","#":"the start value"},{"@name":"to","@type":"0..127","@position":"2","@optional":"0","#":"the end value"},{"@name":"name","@type":"text","@position":"3","@optional":"1","#":"a controller name, can be used instead of a number. (supported names, see list below)"},{"@name":"curve","@position":"4","@default":"lin","@optional":"1","@type":"lin,quad,cub,quart,quint,exp","#":"The fade curve type."}]}}},"fill":{"rawObject":{"doc":{"command":{"@name":"fill","@where":"accomp","#":["Plays a template only once. Is also able to replace the performance of another template during its playback.\\nUseful for fill ins.","```language=Werckmeister\\nusing \\"chords/default.chords\\";\\ntempo: 90;\\ndevice: MyDevice midi _usePort=0;\\ninstrumentDef:drums _onDevice=MyDevice _ch=9 _pc=0;\\n\\n[\\ntype: template;\\nname: drums.fill;\\ninstrument: drums;\\n{\\n(c, & &)4 (b,, & &)4 (a,, & &)4 (g,, & &)4 |\\n}\\n]\\n\\n[\\ntype: template;\\nname: drums.main;\\ninstrument: drums;\\n{\\nr8 f#,, r & r & r & |\\n}\\n{\\nr4 d,, r4 & |\\n}\\n{\\nc,,4 r & r |\\n}\\n]\\n\\n[\\ntype: accomp;\\n{\\n/template: drums.main/\\nC |\\n/fill: drums.fill/ -- play fill and drum beat together\\nC | C |\\n/fill: drums.fill _replace=\\"drums.main\\"/ -- play only the fill in\\nC | C |\\n}\\n]\\n```"]},"param":{"@name":"replace","@type":"text","#":"the name of the template to be replaced by the fill"}}}},"jump":{"rawObject":{"doc":{"command":{"@name":"jump","@where":"voice","#":["Jumps to a previous defined mark See [mark](https://werckme.github.io/manual/#mark).\\n#### example","```language=Werckmeister\\ndevice: _usePort=0 _setName=MyDevice _isType=midi;\\ninstrumentDef: _setName=piano _onDevice=MyDevice _ch=0 _pc=1 _cc=8;\\n[\\ninstrument: piano;\\n{\\n/signature: 5 4/\\n/mark: A/ -- valid & unique to this voice\\nc4 d e f g |\\n/jump: A/ -- jumps to A once\\na b c\'2\\n}\\n]\\n```"]},"param":[{"@name":"to","@position":"0","@type":"text","#":"the destination marker"},{"@name":"ignore","@position":"","@optional":"1","@type":"0..100","#":"Ignores the jump N times"},{"@name":"repeat","@position":"","@optional":"1","@type":"0..100","#":"Repeats the jump N times. (A repeat value of 1 performs 2 jumps)"}]}}},"mark":{"rawObject":{"doc":{"command":{"@name":"mark","@where":"voice","#":["adds a mark to the voice. Us it in combination with [jump](https://werckme.github.io/manual/#jump).\\n#### examples","```language=Werckmeister\\ndevice: _usePort=0 _setName=MyDevice _isType=midi;\\ninstrumentDef: _setName=piano _onDevice=MyDevice _ch=0 _pc=1 _cc=8;\\n[\\ninstrument: piano;\\n{\\n/signature: 5 4/\\n/mark: A/ -- valid & unique to this voice\\nc4 d e f g |\\n/jump: A/ -- jumps to A once\\na b c\'2\\n}\\n]\\n```"]},"param":{"@name":"name","@position":"0","@type":"word","#":"the name of the mark"}}}},"cc":{"rawObject":{"doc":{"command":{"@name":"cc","@where":"voice","#":"Adds a midi CC message.\\n#### examples\\n`/cc: _nr=1 _value=10/ --modulation by controller number`\\n`/cc: _name=\\"modulation\\" _value=10/ --modulation value by controller name`\\n#### supported CC names\\n* BankSelectMSB\\n* Modulation\\n* BreathController\\n* FootController\\n* PortamentoTime\\n* MainVolume\\n* Balance\\n* Panorama\\n* Expression\\n* EffectControl1\\n* EffectControl2\\n* BankSelectLSB\\n* Hold1\\n* Portamento\\n* Sostenuto\\n* SoftPedal\\n* Legato\\n* Hold2\\n* PortamentoControl\\n* Effects1Depth\\n* Effects2Depth\\n* Effects3Depth\\n* Effects4Depth\\n* Effects5Depth\\n* AllSoundsOff\\n* ControllerReset\\n* LocalControl\\n* AllNotesOff\\n* OmniOff\\n* OmniOn\\n* MonoOn\\n* MonoOff"},"param":[{"@name":"nr","@type":"0..N","@position":"0","@optional":"1","#":"The number of the controller"},{"@name":"value","@type":"0..127","@position":"1","@optional":"0","#":"the controller values"},{"@name":"name","@type":"text","@position":"2","@optional":"1","#":"a controller name, can be used instead of a number. (supported names, see list below)"}]}}},"setChord":{"rawObject":{"doc":{"command":{"@name":"setChord","@where":"voice","#":"Sets a chord context to the current voice to be able to use relative [degrees](https://werckme.github.io/manual#degree-events) instead of absolute notes.\\nThe given chord name must be defined in a *.chords file.\\n#### example\\n```language=Werckmeister,type=full\\nusing \\"/chords/default.chords\\";\\ndevice: myDevice midi _usePort=0;\\ninstrumentDef: piano myDevice _ch=0 _pc=0;\\ntempo: 120;\\n[\\ninstrument: piano;\\n{\\n/chord: \\"C-9\\"/\\nI III V VII | II\'1\\n}\\n]\\n```"},"param":{"@name":"name","@type":"text","#":"the chord name"}}}},"fade":{"rawObject":{"doc":{"command":{"@name":"fade","@where":"voice","#":"Fades the volume over a given duration in quarters.\\n#### example\\n```language=Werckmeister,type=full\\ndevice: myDevice midi _usePort=0;\\ninstrumentDef: organ myDevice _ch=0 _pc=16;\\ntempo: 75;\\n[\\ninstrument: organ;\\n{\\n\\\\fff\\n/fade: _from=0 _to=100 _duration=4/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quad\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"cub\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quart\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quint\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"exp\\"/\\nc1 |\\n}\\n]\\n```\\n![supported curve types](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/curve-types.png)"},"param":[{"@name":"duration","@position":"0","@type":"0..N","#":"the duration in quarters."},{"@name":"from","@position":"1","@default":"0","@type":"0..100","#":"The source volume value."},{"@name":"to","@position":"2","@default":"100","@type":"0..100","#":"The target volume value."},{"@name":"curve","@position":"3","@default":"lin","@type":"lin,quad,cub,quart,quint,exp","#":"The fade curve type."}]}}},"instrument":{"rawObject":{"doc":{"command":{"@name":"instrument","@where":"track, voice","#":"Set or change the instrument of a track.\\n#### examples\\n**set an instrument for a track**\\n```\\n[\\ninstrument: myInstrument;\\n{\\nc d e f\\n}\\n]\\n```\\n**change current instrument within a track**\\n```\\n[\\n{\\nc d e f |\\n/instrument: myOtherInstrument/\\nc d e f\\n}\\n]\\n```"},"param":{"@name":"use","@position":"0","@type":"text","#":"The instrument name."}}}},"pan":{"rawObject":{"doc":{"command":{"@name":"pan","@where":"voice","#":"set the pan of the current track\\n#### example\\n`/pan: 50/`"},"param":{"@name":"to","@position":"0","@type":"0..100","#":"The pan value. Where 50 means the center"}}}},"signature":{"rawObject":{"doc":{"command":{"@name":"signature","@where":"voice","#":"Set the time signature of the current track.\\n#### example\\n`/signature: 3 4/`"},"param":[{"@name":"upper","@position":"0","#":"The upper value of the signature."},{"@name":"lower","@position":"1","#":"The lower value of the signature."}]}}},"do":{"rawObject":{"doc":{"command":{"@name":"do","@where":"voice","#":"Such as [mod](https://werckme.github.io/manual#mod)&nbsp;`do` adds a modification to the track.\\nThe difference is: every `mod` command adds a further modification to a voice.\\n`do` replaces the previous modification.\\n#### example\\n`/do: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"doOnce":{"rawObject":{"doc":{"command":{"@name":"doOnce","@where":"voice","#":"Like [do](https://werckme.github.io/manual#do). But with the difference, that the loaded mod will be only executed once for the following event.\\n#### example\\n`/doOnce: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"tempo":{"rawObject":{"doc":{"command":{"@name":"tempo","@where":"document, track","#":"`tempo` defines or changes the current tempo.\\n#### example\\n`tempo: 120;`\\nIt is also possible to set different tempo values for several tracks:\\n[see here](https://werckme.github.io/manual#tempo)"},"param":{"@name":"bpm","@position":"0","#":"The tempo bpm value."}}}},"voicingStrategy":{"rawObject":{"doc":{"command":{"@name":"voicingStrategy","@where":"voice","#":"Adds a modification to the track.\\n#### example\\n`/voicingStrategy: asNotated/`\\nVoicing strategies can be external lua scripts, or one of these internal strategies:\\n* asNotated\\n* simpleGuitar"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the strategy to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related strategy."}}}},"volume":{"rawObject":{"doc":{"command":{"@name":"volume","@where":"voice","#":"set the volume of the current instrument\\n#### examples\\n`/volume: 50/`"},"param":{"@name":"to","@position":"0","@type":"0..100","#":"The volume value."}}}},"drumRudiments":{"rawObject":{"doc":{"command":{"@name":"drumRudiments","@where":"mod","@using":"lua/mod/drumRudiments.lua","#":"Implements a collection of different drum rudiments. ([see Wikipedia](https://en.wikipedia.org/wiki/Drum_rudiment))\\nYou can specify which notes are for `L` and `R` and performing duration.\\nThis will be achieved by using an chord as source material.\\nThe chord pitches will be used for `L` and `R`.\\nThe length of the chord event defines over which time the rudiment will be peformed.\\nAn event tag specifies which rudiment will be performed.\\nFor example:\\nThis plays one paradiddle over a length of 1 quarter\\nusing `sn1` for R and `sn2` for L:\\n```\\n/mod: drumRudiments/\\nR L\\n\\"paradiddle\\"@<\\"sn1\\" \\"sn2\\">4\\n```\\nExamples:\\n**a single paradiddle**\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 150;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- a paradiddle (RLRR) with c\' for R and c for L\\n\\"paradiddle\\"@<c\' c>1\\n}\\n]\\n```\\n**repeating**\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- performs 4 paradiddles (RLRR LRLL RLRR LRLL) with c\' for R and c for L\\n\\"4x paradiddle\\"@<c\' c>1\\n}\\n]\\n```\\n**orchestration**\\nIf you want to orchestrate a rudiment over a drum set,\\nyou are able to define more R & L notes. *(The total number of the notes has to be even.)*\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- performs 4 paradiddles (RLRR LRLL RLRR LRLL) with\\n-- c\' for R1 and c for L1\\n-- and c, for R2 and c,, for L2.\\n-- The final sequence will be: c\'(R1) c(L1) c,(R2) c,,(R1) ...\\n\\"4x paradiddle\\"@<c\' c c, c,,>1\\n}\\n]\\n```\\n**Supported Rudiments**\\n<ul style=\\"font-size: 0.9em;\\">\\n<li>singleStrokeRoll</li>\\n<li>doubleStrokeRoll</li>\\n<li>trippleStrokeRoll</li>\\n<li>fiveStrokeRoll</li>\\n<li>singleStrokeFour</li>\\n<li>singleStrokeSeven</li>\\n<li>multipleBounceRoll</li>\\n<li>sixStrokeRoll</li>\\n<li>sevenStrokeRoll</li>\\n<li>nineStrokeRoll</li>\\n<li>tenStrokeRoll</li>\\n<li>elevenStrokeRoll</li>\\n<li>thirteenStrokeRoll</li>\\n<li>fifteenStrokeRoll</li>\\n<li>seventeenStrokeRoll</li>\\n<li>paradiddle</li>\\n<li>doubleParadiddle</li>\\n<li>trippleParadiddle</li>\\n<li>paradiddlediddle</li>\\n<li>flam</li>\\n<li>flamAccent</li>\\n<li>flamTap</li>\\n<li>flamacue</li>\\n<li>flamParadiddle</li>\\n<li>singleFlammedMill</li>\\n<li>pataflafla</li>\\n<li>swissArmytriplet</li>\\n<li>invertedFlamTap</li>\\n<li>flamDrag</li>\\n<li>singleDragTap</li>\\n<li>doubleDragTap</li>\\n<li>lesson25</li>\\n<li>singleDragadiddle</li>\\n<li>dragParadiddle1</li>\\n<li>dragParadiddle2</li>\\n<li>singleRatamacue</li>\\n<li>doubleRatamacue</li>\\n<li>trippleRatamacue</li>\\n</ul>"},"param":[{"@name":"velocityFactorAccented","@optional":"1","@type":"0..1","#":"The velocity factor for accented notes (Default=1)"},{"@name":"velocityFactorUnaccented","@optional":"1","@type":"0..1","#":"The velocity factor for unaccented notes (Default=0.7)"},{"@name":"velocityFactorGraceNote","@optional":"1","@type":"0..1","#":"The velocity factor for accented notes (Default=1)"},{"@name":"flamOffset","@optional":"1","@type":"0..N","#":"The offset in quartes when to perform the grace note before the actual note (Default=0.05)"},{"@name":"dragOffset","@optional":"1","@type":"0..N","#":"The offset in quartes when to perform the two grace notes before the actual note (Default=0.05)"}]}}},"guitarStroke":{"rawObject":{"doc":{"command":{"@name":"guitarStroke","@where":"mod","@using":"lua/mod/guitarStroke.lua","#":"Simulates guitar strokes as mini arpeggios.\\n*Note: the alternate mode works only if this mod is set via instrumentConf.*\\n```\\n-- does not work:\\n[\\n{\\n/mod: guitarStroke _mode=alternate/\\n}\\n]\\n```\\n```\\n-- does work:\\ninstrumentConf: myInstrument mod guitarStroke _mode=alternate;\\n```\\n**Example**\\n```language=Werckmeister\\nusing \\"lua/mods/guitarStroke.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=24;\\ninstrumentConf: piano mod guitarStroke _mode=alternate _value=16;\\n[\\ninstrument: piano;\\n{\\n<c e g b>4 <c e g b>4 <c eb g bb>2 | <c eb g bb>2 <c eb g bb>2\\n}\\n]\\n```"},"param":[{"@name":"direction","@optional":"1","@type":"[up,down,alternate]","#":"Specifies the start direction of the stroke"},{"@name":"value","@optional":"1","@type":"[1,2,4,8,...]","#":"the duration of one arpeggio event. (Default=64)"},{"@name":"mode","@optional":"1","@type":"[normal,alternate]","#":"Deprecated: Use _direction=alternate instead. Perform only one stroke direction (normal) or alternates between up and down. (Default=normal)"}]}}},"legato":{"rawObject":{"doc":{"command":{"@name":"legato","@where":"mod","@using":"lua/mod/legato.lua","#":"Performs every note legato. It is also possible to tag single notes.\\nIf a tag is given, only the tagged notes are performed legato.\\n```language=Werckmeister\\nusing \\"lua/mods/legato.lua\\";\\ntempo: 140;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: legato _forTag=leg _amount=100/\\n-- only the `d` will be performed legato.\\nc \\"leg\\"@d e f\\n}\\n]\\n```"},"param":[{"@name":"forTag","@optional":"1","@type":"text","#":"Specifies a tag name. If set only events with this tag name will be affected by the legato mod."},{"@name":"amount","@optional":"1","@type":"0..100","#":"The ammount of the legato effect"}]}}},"myArpeggio":{"rawObject":{"doc":{"command":{"@name":"myArpeggio","@where":"mod","@using":"lua/mod/myArpeggio.lua","#":"A simple arpeggio implementation.\\n**Example**\\n```language=Werckmeister\\nusing \\"lua/mods/myArpeggio.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/do: myArpeggio/\\n<c e g b>2\\n/do: myArpeggio _direction=down/\\n<c eb g bb>2\\n}\\n]\\n```"},"param":[{"@name":"style","@optional":"1","@type":"[normal,legato]","#":"Performs the arpeggio normal or legato"},{"@name":"direction","@optional":"1","@type":"[up,down]","#":"the direction of the arpeggio. (Default=up)"}]}}},"staccato":{"rawObject":{"doc":{"command":{"@name":"staccato","@where":"mod","@using":"lua/mod/staccato.lua","#":"Performs every note staccato. It is also possible to tag single notes.\\nIf a tag is given, only the tagged notes are performed staccato.\\n```language=Werckmeister\\nusing \\"lua/mods/staccato.lua\\";\\ntempo: 140;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: staccato _forTag=stac _amount=100/\\n-- only the `d` will be performed staccato.\\nc \\"stac\\"@d e f\\n}\\n]\\n```"},"param":[{"@name":"forTag","@optional":"1","@type":"text","#":"Specifies a tag name. If set only events with this tag name will be affected by the staccato mod."},{"@name":"amount","@optional":"1","@type":"0..100","#":"The ammount of the staccato effect"}]}}},"swing":{"rawObject":{"doc":{"command":{"@name":"swing","@where":"mod","@using":"lua/mod/swing.lua","#":"Performs a swing groove.\\n```language=Werckmeister\\nusing \\"lua/mods/swing.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: swing/\\nc8 c c c c c c c\\n}\\n]\\n```"},"param":[{"@name":"grid","@optional":"1","@type":"[8, 16]","#":"Performs the swing offset either on 8th or 16th. (Default=8)"},{"@name":"offset","@optional":"1","@type":"0..100","#":"The ammount of the swing offset"}]}}},"guitar":{"rawObject":{"doc":{"command":{"@name":"guitar","@where":"voicingStrategy","@using":"lua/voicings/guitar.lua","#":"Tries to simulate the chord voicing of an guitar.\\n```language=Werckmeister\\nusing \\"/lua/voicings/guitar.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: guitar/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}},"inversion":{"rawObject":{"doc":{"command":{"@name":"inversion","@where":"voicingStrategy","@using":"lua/voicings/inversion.lua","#":"creates an inversion by moving the lowest note an octave hihgher.\\n```language=Werckmeister\\nusing \\"/lua/voicings/inversion.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: inversion/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":[{"@name":"level","@optional":"1","@type":"number","#":"level of inversion"},{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}]}}},"simple":{"rawObject":{"doc":{"command":{"@name":"simple","@where":"voicingStrategy","@using":"lua/voicings/simple.lua","#":"The simple approach with no strategy.\\n```language=Werckmeister\\nusing \\"/lua/voicings/simple.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: simple/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}},"voicelead":{"rawObject":{"doc":{"command":{"@name":"voicelead","@where":"voicingStrategy","@using":"lua/voicings/voicelead.lua","#":"Tries to simulates a voice leading approach:\\nthe octaves of a chord are rearranged, so that the actual pitch distance between the previous chord is kept minimal.\\n```language=Werckmeister\\nusing \\"/lua/voicings/voicelead.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: voicelead/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}}}'));n.getAutoHintDb=function(){return i};var o=JSON.parse('{"/":[{"name":"chords","isDirectory":true},{"name":"lua","isDirectory":true},{"name":"pitchmaps","isDirectory":true},{"name":"templates","isDirectory":true}],"/chords":[{"name":"default.chords"}],"/lua/com":[{"name":"com.lua"},{"name":"globals.lua"},{"name":"inspect.lua"},{"name":"tests.lua"}],"/lua/mods":[{"name":"drumRudiments.lua"},{"name":"guitarStroke.lua"},{"name":"legato.lua"},{"name":"myArpeggio.lua"},{"name":"staccato.lua"},{"name":"swing.lua"}],"/lua/voicings":[{"name":"com.lua"},{"name":"guitar.lua"},{"name":"inversion.lua"},{"name":"simple.lua"},{"name":"voicelead.lua"}],"/lua":[{"name":"com","isDirectory":true},{"name":"mods","isDirectory":true},{"name":"voicings","isDirectory":true}],"/pitchmaps":[{"name":"battery3.tight.pitchmap"},{"name":"defaultMIDI.pitchmap"},{"name":"defaultMidiDrumMap.pitchmap"}],"/templates":[{"name":"bass.blues.template"},{"name":"bass.bossanova.template"},{"name":"bass.country.template"},{"name":"bass.disco.template"},{"name":"bass.jazzSwing.template"},{"name":"bass.reggae.template"},{"name":"bass.soca.template"},{"name":"bossanova.template"},{"name":"countryschlager1.template"},{"name":"drums.bossanova.template"},{"name":"drums.country.template"},{"name":"drums.disco.template"},{"name":"drums.jazzSwing.template"},{"name":"drums.purdie.template"},{"name":"drums.reggae.template"},{"name":"drums.soca.template"},{"name":"ennio.template"},{"name":"guitar.bossanova.template"},{"name":"guitar.country.template"},{"name":"rhythm.bossanova.template"},{"name":"rhythm.country.template"},{"name":"rhythm.jazzSwing.template"},{"name":"rhythm.reggae.template"}]}');n.getPreInstalledAuxFiles=function(){return o}},{"./parser/docParser":"ol4r",fs:"f88W"}],yh9p:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),f=0,l=u>0?a-4:a;for(n=0;n<l;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,u=n-i;a<u;a+=16383)o.push(l(e,a,a+16383>u?u:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],JgNJ:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,c=(1<<u)-1,s=c>>1,f=-7,l=n?i-1:0,p=n?-1:1,h=e[t+l];for(l+=p,o=h&(1<<-f)-1,h>>=-f,f+=u;f>0;o=256*o+e[t+l],l+=p,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=p,f-=8);if(0===o)o=1-s;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=s}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,u,c,s=8*o-i-1,f=(1<<s)-1,l=f>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,m=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(t*c-1)*Math.pow(2,i),a+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&u,h+=m,u/=256,i-=8);for(a=a<<i|u,s+=i;s>0;e[n+h]=255&a,h+=m,a/=256,s-=8);e[n+h-m]|=128*d}},{}],REa7:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],dskh:[function(e,t,n){arguments[3];var r=arguments[3],i=e("base64-js"),o=e("ieee754"),a=e("isarray");function u(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(u()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(t,n),i=(e=c(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):m(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(l(t),e=c(e,t<0?0:0|d(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t){if(s.isBuffer(t)){var n=0|d(t.length);return 0===(e=c(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?c(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|e}function g(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var o,a=1,u=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=n;o<u;o++)if(s(e,o)===s(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(n+c>u&&(n=u-c),o=n;o>=0;o--){for(var l=!0,p=0;p<c;p++)if(s(e,o+p)!==s(t,p)){l=!1;break}if(l)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function w(e,t,n,r){return q(W(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return x(e,t,n,r)}function k(e,t,n,r){return q(Y(t),e,n,r)}function S(e,t,n,r){return q(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,c,s=e[i],f=null,l=s>239?4:s>223?3:s>191?2:1;if(i+l<=n)switch(l){case 1:s<128&&(f=s);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&s)<<6|63&o)>127&&(f=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&s)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}n.Buffer=s,n.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},n.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(i){return!1}}(),n.kMaxLength=u(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return f(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=g,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(o,a),c=this.slice(r,i),f=e.slice(t,n),l=0;l<u;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var i=t-e;n=new s(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:W(new s(e,r).toString()),u=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%u]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},{"base64-js":"yh9p",ieee754:"JgNJ",isarray:"REa7",buffer:"dskh"}],B1iE:[function(e,t,n){arguments[3],e("buffer").Buffer;var r=arguments[3];e("buffer").Buffer;(function(){var e,i=200,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=1,s=2,f=4,l=1,p=2,h=1,m=2,d=4,g=8,v=16,y=32,_=64,b=128,w=256,x=512,A=800,k=16,S=1/0,D=9007199254740991,I=1.7976931348623157e308,R=NaN,E=4294967295,O=E-1,T=E>>>1,j=[["ary",b],["bind",h],["bindKey",m],["curry",g],["curryRight",v],["flip",x],["partial",y],["partialRight",_],["rearg",w]],C="[object Arguments]",P="[object Array]",M="[object AsyncFunction]",B="[object Boolean]",L="[object Date]",U="[object DOMException]",N="[object Error]",z="[object Function]",F="[object GeneratorFunction]",W="[object Map]",Y="[object Number]",q="[object Null]",V="[object Object]",$="[object Proxy]",G="[object RegExp]",H="[object Set]",K="[object String]",Z="[object Symbol]",J="[object Undefined]",X="[object WeakMap]",Q="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",ae="[object Uint8Array]",ue="[object Uint8ClampedArray]",ce="[object Uint16Array]",se="[object Uint32Array]",fe=/\b__p \+= '';/g,le=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,me=/[&<>"']/g,de=RegExp(he.source),ge=RegExp(me.source),ve=/<%-([\s\S]+?)%>/g,ye=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(Ae.source),Se=/^\s+/,De=/\s/,Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Te=/[()=,{}\[\]\/\s]/,je=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Ne=/^(?:0|[1-9]\d*)$/,ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fe=/($^)/,We=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qe="\\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",Ve="["+qe+"]",$e="["+Ye+"]",Ge="\\d+",He="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ke="[^\\ud800-\\udfff"+qe+Ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ze="\\ud83c[\\udffb-\\udfff]",Je="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+He+"|"+Ke+")",nt="(?:"+et+"|"+Ke+")",rt="(?:"+$e+"|"+Ze+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Je,Xe,Qe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Xe,Qe].join("|")+")"+it,at="(?:"+[Je+$e+"?",$e,Xe,Qe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['’]","g"),ct=RegExp($e,"g"),st=RegExp(Ze+"(?="+Ze+")|"+at+it,"g"),ft=RegExp([et+"?"+He+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ve,et,"$"].join("|")+")",nt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ve,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ge,ot].join("|"),"g"),lt=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["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"],mt=-1,dt={};dt[te]=dt[ne]=dt[re]=dt[ie]=dt[oe]=dt[ae]=dt[ue]=dt[ce]=dt[se]=!0,dt[C]=dt[P]=dt[Q]=dt[B]=dt[ee]=dt[L]=dt[N]=dt[z]=dt[W]=dt[Y]=dt[V]=dt[G]=dt[H]=dt[K]=dt[X]=!1;var gt={};gt[C]=gt[P]=gt[Q]=gt[ee]=gt[B]=gt[L]=gt[te]=gt[ne]=gt[re]=gt[ie]=gt[oe]=gt[W]=gt[Y]=gt[V]=gt[G]=gt[H]=gt[K]=gt[Z]=gt[ae]=gt[ue]=gt[ce]=gt[se]=!0,gt[N]=gt[z]=gt[X]=!1;var vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yt=parseFloat,_t=parseInt,bt="object"==typeof r&&r&&r.Object===Object&&r,wt="object"==typeof self&&self&&self.Object===Object&&self,xt=bt||wt||Function("return this")(),At="object"==typeof n&&n&&!n.nodeType&&n,kt=At&&"object"==typeof t&&t&&!t.nodeType&&t,St=kt&&kt.exports===At,Dt=St&&bt.process,It=function(){try{return kt&&kt.require&&kt.require("util").types||Dt&&Dt.binding&&Dt.binding("util")}catch(r){}}(),Rt=It&&It.isArrayBuffer,Et=It&&It.isDate,Ot=It&&It.isMap,Tt=It&&It.isRegExp,jt=It&&It.isSet,Ct=It&&It.isTypedArray;function Pt(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 Mt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Lt(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 Ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(e,t){return!(null==e||!e.length)&&Kt(e,t,0)>-1}function zt(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 Ft(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 Wt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Yt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function qt(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 Vt(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 $t=Qt("length");function Gt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ht(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Jt,n)}function Zt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Jt(e){return e!=e}function Xt(e,t){var n=null==e?0:e.length;return n?nn(e,t)/n:R}function Qt(t){return function(n){return null==n?e:n[t]}}function en(t){return function(n){return null==t?e:t[n]}}function tn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function nn(t,n){for(var r,i=-1,o=t.length;++i<o;){var a=n(t[i]);a!==e&&(r=r===e?a:r+a)}return r}function rn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function on(e){return e?e.slice(0,wn(e)+1).replace(Se,""):e}function an(e){return function(t){return e(t)}}function un(e,t){return Ft(t,function(t){return e[t]})}function cn(e,t){return e.has(t)}function sn(e,t){for(var n=-1,r=e.length;++n<r&&Kt(t,e[n],0)>-1;);return n}function fn(e,t){for(var n=e.length;n--&&Kt(t,e[n],0)>-1;);return n}var ln=en({"À":"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"}),pn=en({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function hn(e){return"\\"+vt[e]}function mn(e){return lt.test(e)}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gn(e,t){return function(n){return e(t(n))}}function vn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,o[i++]=n)}return o}function yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function _n(e){return mn(e)?function(e){for(var t=st.lastIndex=0;st.test(e);)++t;return t}(e):$t(e)}function bn(e){return mn(e)?function(e){return e.match(st)||[]}(e):function(e){return e.split("")}(e)}function wn(e){for(var t=e.length;t--&&De.test(e.charAt(t)););return t}var xn=en({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),An=function t(n){var r,De=(n=null==n?xt:An.defaults(xt.Object(),n,An.pick(xt,ht))).Array,Ye=n.Date,qe=n.Error,Ve=n.Function,$e=n.Math,Ge=n.Object,He=n.RegExp,Ke=n.String,Ze=n.TypeError,Je=De.prototype,Xe=Ve.prototype,Qe=Ge.prototype,et=n["__core-js_shared__"],tt=Xe.toString,nt=Qe.hasOwnProperty,rt=0,it=(r=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",ot=Qe.toString,at=tt.call(Ge),st=xt._,lt=He("^"+tt.call(nt).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=St?n.Buffer:e,bt=n.Symbol,wt=n.Uint8Array,At=vt?vt.allocUnsafe:e,kt=gn(Ge.getPrototypeOf,Ge),Dt=Ge.create,It=Qe.propertyIsEnumerable,$t=Je.splice,en=bt?bt.isConcatSpreadable:e,kn=bt?bt.iterator:e,Sn=bt?bt.toStringTag:e,Dn=function(){try{var e=So(Ge,"defineProperty");return e({},"",{}),e}catch(n){}}(),In=n.clearTimeout!==xt.clearTimeout&&n.clearTimeout,Rn=Ye&&Ye.now!==xt.Date.now&&Ye.now,En=n.setTimeout!==xt.setTimeout&&n.setTimeout,On=$e.ceil,Tn=$e.floor,jn=Ge.getOwnPropertySymbols,Cn=vt?vt.isBuffer:e,Pn=n.isFinite,Mn=Je.join,Bn=gn(Ge.keys,Ge),Ln=$e.max,Un=$e.min,Nn=Ye.now,zn=n.parseInt,Fn=$e.random,Wn=Je.reverse,Yn=So(n,"DataView"),qn=So(n,"Map"),Vn=So(n,"Promise"),$n=So(n,"Set"),Gn=So(n,"WeakMap"),Hn=So(Ge,"create"),Kn=Gn&&new Gn,Zn={},Jn=Jo(Yn),Xn=Jo(qn),Qn=Jo(Vn),er=Jo($n),tr=Jo(Gn),nr=bt?bt.prototype:e,rr=nr?nr.valueOf:e,ir=nr?nr.toString:e;function or(e){if(mu(e)&&!ru(e)&&!(e instanceof sr)){if(e instanceof cr)return e;if(nt.call(e,"__wrapped__"))return Xo(e)}return new cr(e)}var ar=function(){function t(){}return function(n){if(!hu(n))return{};if(Dt)return Dt(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function ur(){}function cr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function sr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function fr(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 lr(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 pr(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 hr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pr;++t<n;)this.add(e[t])}function mr(e){var t=this.__data__=new lr(e);this.size=t.size}function dr(e,t){var n=ru(e),r=!n&&nu(e),i=!n&&!r&&uu(e),o=!n&&!r&&!i&&xu(e),a=n||r||i||o,u=a?rn(e.length,Ke):[],c=u.length;for(var s in e)!t&&!nt.call(e,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||jo(s,c))||u.push(s);return u}function gr(t){var n=t.length;return n?t[fi(0,n-1)]:e}function vr(t,n,r){(r===e||Qa(t[n],r))&&(r!==e||n in t)||xr(t,n,r)}function yr(t,n,r){var i=t[n];nt.call(t,n)&&Qa(i,r)&&(r!==e||n in t)||xr(t,n,r)}function _r(e,t){for(var n=e.length;n--;)if(Qa(e[n][0],t))return n;return-1}function br(e,t,n,r){return Er(e,function(e,i,o){t(r,e,n(e),o)}),r}function wr(e,t){return e&&Yi(t,qu(t),e)}function xr(e,t,n){"__proto__"==t&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ar(t,n){for(var r=-1,i=n.length,o=De(i),a=null==t;++r<i;)o[r]=a?e:Nu(t,n[r]);return o}function kr(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function Sr(t,n,r,i,o,a){var u,l=n&c,p=n&s,h=n&f;if(r&&(u=o?r(t,i,o,a):r(t)),u!==e)return u;if(!hu(t))return t;var m=ru(t);if(m){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&nt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Wi(t,u)}else{var d=Ro(t),g=d==z||d==F;if(uu(t))return Bi(t,l);if(d==V||d==C||g&&!o){if(u=p||g?{}:Oo(t),!l)return p?function(e,t){return Yi(e,Io(e),t)}(t,function(e,t){return e&&Yi(t,Vu(t),e)}(u,t)):function(e,t){return Yi(e,Do(e),t)}(t,wr(u,t))}else{if(!gt[d])return o?t:{};u=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case Q:return Li(e);case B:case L:return new a(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case ae:case ue:case ce:case se:return Ui(e,n);case W:return new a;case Y:case K:return new a(e);case G:return(o=new(i=e).constructor(i.source,Pe.exec(i))).lastIndex=i.lastIndex,o;case H:return new a;case Z:return r=e,rr?Ge(rr.call(r)):{}}}(t,d,l)}}a||(a=new mr);var v=a.get(t);if(v)return v;a.set(t,u),_u(t)?t.forEach(function(e){u.add(Sr(e,n,r,e,t,a))}):du(t)&&t.forEach(function(e,i){u.set(i,Sr(e,n,r,i,t,a))});var y=m?e:(h?p?yo:vo:p?Vu:qu)(t);return Bt(y||t,function(e,i){y&&(e=t[i=e]),yr(u,i,Sr(e,n,r,i,t,a))}),u}function Dr(t,n,r){var i=r.length;if(null==t)return!i;for(t=Ge(t);i--;){var o=r[i],a=n[o],u=t[o];if(u===e&&!(o in t)||!a(u))return!1}return!0}function Ir(t,n,r){if("function"!=typeof t)throw new Ze(o);return qo(function(){t.apply(e,r)},n)}function Rr(e,t,n,r){var o=-1,a=Nt,u=!0,c=e.length,s=[],f=t.length;if(!c)return s;n&&(t=Ft(t,an(n))),r?(a=zt,u=!1):t.length>=i&&(a=cn,u=!1,t=new hr(t));e:for(;++o<c;){var l=e[o],p=null==n?l:n(l);if(l=r||0!==l?l:0,u&&p==p){for(var h=f;h--;)if(t[h]===p)continue e;s.push(l)}else a(t,p,r)||s.push(l)}return s}or.templateSettings={escape:ve,evaluate:ye,interpolate:_e,variable:"",imports:{_:or}},or.prototype=ur.prototype,or.prototype.constructor=or,cr.prototype=ar(ur.prototype),cr.prototype.constructor=cr,sr.prototype=ar(ur.prototype),sr.prototype.constructor=sr,fr.prototype.clear=function(){this.__data__=Hn?Hn(null):{},this.size=0},fr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fr.prototype.get=function(t){var n=this.__data__;if(Hn){var r=n[t];return r===a?e:r}return nt.call(n,t)?n[t]:e},fr.prototype.has=function(t){var n=this.__data__;return Hn?n[t]!==e:nt.call(n,t)},fr.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Hn&&n===e?a:n,this},lr.prototype.clear=function(){this.__data__=[],this.size=0},lr.prototype.delete=function(e){var t=this.__data__,n=_r(t,e);return!(n<0||(n==t.length-1?t.pop():$t.call(t,n,1),--this.size,0))},lr.prototype.get=function(t){var n=this.__data__,r=_r(n,t);return r<0?e:n[r][1]},lr.prototype.has=function(e){return _r(this.__data__,e)>-1},lr.prototype.set=function(e,t){var n=this.__data__,r=_r(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new fr,map:new(qn||lr),string:new fr}},pr.prototype.delete=function(e){var t=Ao(this,e).delete(e);return this.size-=t?1:0,t},pr.prototype.get=function(e){return Ao(this,e).get(e)},pr.prototype.has=function(e){return Ao(this,e).has(e)},pr.prototype.set=function(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},hr.prototype.add=hr.prototype.push=function(e){return this.__data__.set(e,a),this},hr.prototype.has=function(e){return this.__data__.has(e)},mr.prototype.clear=function(){this.__data__=new lr,this.size=0},mr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mr.prototype.get=function(e){return this.__data__.get(e)},mr.prototype.has=function(e){return this.__data__.has(e)},mr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!qn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pr(r)}return n.set(e,t),this.size=n.size,this};var Er=$i(Lr),Or=$i(Ur,!0);function Tr(e,t){var n=!0;return Er(e,function(e,r,i){return n=!!t(e,r,i)}),n}function jr(t,n,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=n(a);if(null!=u&&(c===e?u==u&&!wu(u):r(u,c)))var c=u,s=a}return s}function Cr(e,t){var n=[];return Er(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Pr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=To),i||(i=[]);++o<a;){var u=e[o];t>0&&n(u)?t>1?Pr(u,t-1,n,r,i):Wt(i,u):r||(i[i.length]=u)}return i}var Mr=Gi(),Br=Gi(!0);function Lr(e,t){return e&&Mr(e,t,qu)}function Ur(e,t){return e&&Br(e,t,qu)}function Nr(e,t){return Ut(t,function(t){return fu(e[t])})}function zr(t,n){for(var r=0,i=(n=ji(n,t)).length;null!=t&&r<i;)t=t[Zo(n[r++])];return r&&r==i?t:e}function Fr(e,t,n){var r=t(e);return ru(e)?r:Wt(r,n(e))}function Wr(t){return null==t?t===e?J:q:Sn&&Sn in Ge(t)?function(t){var n=nt.call(t,Sn),r=t[Sn];try{t[Sn]=e;var i=!0}catch(a){}var o=ot.call(t);return i&&(n?t[Sn]=r:delete t[Sn]),o}(t):function(e){return ot.call(e)}(t)}function Yr(e,t){return e>t}function qr(e,t){return null!=e&&nt.call(e,t)}function Vr(e,t){return null!=e&&t in Ge(e)}function $r(t,n,r){for(var i=r?zt:Nt,o=t[0].length,a=t.length,u=a,c=De(a),s=1/0,f=[];u--;){var l=t[u];u&&n&&(l=Ft(l,an(n))),s=Un(l.length,s),c[u]=!r&&(n||o>=120&&l.length>=120)?new hr(u&&l):e}l=t[0];var p=-1,h=c[0];e:for(;++p<o&&f.length<s;){var m=l[p],d=n?n(m):m;if(m=r||0!==m?m:0,!(h?cn(h,d):i(f,d,r))){for(u=a;--u;){var g=c[u];if(!(g?cn(g,d):i(t[u],d,r)))continue e}h&&h.push(d),f.push(m)}}return f}function Gr(t,n,r){var i=null==(t=Fo(t,n=ji(n,t)))?t:t[Zo(sa(n))];return null==i?e:Pt(i,t,r)}function Hr(e){return mu(e)&&Wr(e)==C}function Kr(t,n,r,i,o){return t===n||(null==t||null==n||!mu(t)&&!mu(n)?t!=t&&n!=n:function(t,n,r,i,o,a){var u=ru(t),c=ru(n),s=u?P:Ro(t),f=c?P:Ro(n),h=(s=s==C?V:s)==V,m=(f=f==C?V:f)==V,d=s==f;if(d&&uu(t)){if(!uu(n))return!1;u=!0,h=!1}if(d&&!h)return a||(a=new mr),u||xu(t)?mo(t,n,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Q:return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case B:case L:case Y:return Qa(+e,+t);case N:return e.name==t.name&&e.message==t.message;case G:case K:return e==t+"";case W:var u=dn;case H:var c=r&l;if(u||(u=yn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=p,a.set(e,t);var f=mo(u(e),u(t),r,i,o,a);return a.delete(e),f;case Z:if(rr)return rr.call(e)==rr.call(t)}return!1}(t,n,s,r,i,o,a);if(!(r&l)){var g=h&&nt.call(t,"__wrapped__"),v=m&&nt.call(n,"__wrapped__");if(g||v){var y=g?t.value():t,_=v?n.value():n;return a||(a=new mr),o(y,_,r,i,a)}}return!!d&&(a||(a=new mr),function(t,n,r,i,o,a){var u=r&l,c=vo(t),s=c.length;if(s!=vo(n).length&&!u)return!1;for(var f=s;f--;){var p=c[f];if(!(u?p in n:nt.call(n,p)))return!1}var h=a.get(t),m=a.get(n);if(h&&m)return h==n&&m==t;var d=!0;a.set(t,n),a.set(n,t);for(var g=u;++f<s;){var v=t[p=c[f]],y=n[p];if(i)var _=u?i(y,v,p,n,t,a):i(v,y,p,t,n,a);if(!(_===e?v===y||o(v,y,r,i,a):_)){d=!1;break}g||(g="constructor"==p)}if(d&&!g){var b=t.constructor,w=n.constructor;b!=w&&"constructor"in t&&"constructor"in n&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(d=!1)}return a.delete(t),a.delete(n),d}(t,n,r,i,o,a))}(t,n,r,i,Kr,o))}function Zr(t,n,r,i){var o=r.length,a=o,u=!i;if(null==t)return!a;for(t=Ge(t);o--;){var c=r[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var s=(c=r[o])[0],f=t[s],h=c[1];if(u&&c[2]){if(f===e&&!(s in t))return!1}else{var m=new mr;if(i)var d=i(f,h,s,t,n,m);if(!(d===e?Kr(h,f,l|p,i,m):d))return!1}}return!0}function Jr(e){return!(!hu(e)||(t=e,it&&it in t))&&(fu(e)?lt:Le).test(Jo(e));var t}function Xr(e){return"function"==typeof e?e:null==e?gc:"object"==typeof e?ru(e)?ri(e[0],e[1]):ni(e):Sc(e)}function Qr(e){if(!Lo(e))return Bn(e);var t=[];for(var n in Ge(e))nt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ei(e,t){return e<t}function ti(e,t){var n=-1,r=ou(e)?De(e.length):[];return Er(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function ni(e){var t=ko(e);return 1==t.length&&t[0][2]?No(t[0][0],t[0][1]):function(n){return n===e||Zr(n,e,t)}}function ri(t,n){return Po(t)&&Uo(n)?No(Zo(t),n):function(r){var i=Nu(r,t);return i===e&&i===n?zu(r,t):Kr(n,i,l|p)}}function ii(t,n,r,i,o){t!==n&&Mr(n,function(a,u){if(o||(o=new mr),hu(a))!function(t,n,r,i,o,a,u){var c=Wo(t,r),s=Wo(n,r),f=u.get(s);if(f)vr(t,r,f);else{var l=a?a(c,s,r+"",t,n,u):e,p=l===e;if(p){var h=ru(s),m=!h&&uu(s),d=!h&&!m&&xu(s);l=s,h||m||d?ru(c)?l=c:au(c)?l=Wi(c):m?(p=!1,l=Bi(s,!0)):d?(p=!1,l=Ui(s,!0)):l=[]:vu(s)||nu(s)?(l=c,nu(c)?l=Ou(c):hu(c)&&!fu(c)||(l=Oo(s))):p=!1}p&&(u.set(s,l),o(l,s,i,a,u),u.delete(s)),vr(t,r,l)}}(t,n,u,r,ii,i,o);else{var c=i?i(Wo(t,u),a,u+"",t,n,o):e;c===e&&(c=a),vr(t,u,c)}},Vu)}function oi(t,n){var r=t.length;if(r)return jo(n+=n<0?r:0,r)?t[n]:e}function ai(e,t,n){t=t.length?Ft(t,function(e){return ru(e)?function(t){return zr(t,1===e.length?e[0]:e)}:e}):[gc];var r=-1;return t=Ft(t,an(xo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ti(e,function(e,n,i){return{criteria:Ft(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;++r<a;){var c=Ni(i[r],o[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function ui(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=zr(e,a);n(u,a)&&hi(o,ji(a,e),u)}return o}function ci(e,t,n,r){var i=r?Zt:Kt,o=-1,a=t.length,u=e;for(e===t&&(t=Wi(t)),n&&(u=Ft(e,an(n)));++o<a;)for(var c=0,s=t[o],f=n?n(s):s;(c=i(u,f,c,r))>-1;)u!==e&&$t.call(u,c,1),$t.call(e,c,1);return e}function si(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;jo(i)?$t.call(e,i,1):ki(e,i)}}return e}function fi(e,t){return e+Tn(Fn()*(t-e+1))}function li(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),(t=Tn(t/2))&&(e+=e)}while(t);return n}function pi(e,t){return Vo(zo(e,t,gc),e+"")}function hi(t,n,r,i){if(!hu(t))return t;for(var o=-1,a=(n=ji(n,t)).length,u=a-1,c=t;null!=c&&++o<a;){var s=Zo(n[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=u){var l=c[s];(f=i?i(l,s,c):e)===e&&(f=hu(l)?l:jo(n[o+1])?[]:{})}yr(c,s,f),c=c[s]}return t}var mi=Kn?function(e,t){return Kn.set(e,t),e}:gc,di=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:hc(t),writable:!0})}:gc;function gi(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 o=De(i);++r<i;)o[r]=e[r+t];return o}function vi(e,t){var n;return Er(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function yi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=T){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!wu(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return _i(e,t,gc,n)}function _i(t,n,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var u=(n=r(n))!=n,c=null===n,s=wu(n),f=n===e;o<a;){var l=Tn((o+a)/2),p=r(t[l]),h=p!==e,m=null===p,d=p==p,g=wu(p);if(u)var v=i||d;else v=f?d&&(i||h):c?d&&h&&(i||!m):s?d&&h&&!m&&(i||!g):!m&&!g&&(i?p<=n:p<n);v?o=l+1:a=l}return Un(a,O)}function bi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Qa(u,c)){var c=u;o[i++]=0===a?0:a}}return o}function wi(e){return"number"==typeof e?e:wu(e)?R:+e}function xi(e){if("string"==typeof e)return e;if(ru(e))return Ft(e,xi)+"";if(wu(e))return ir?ir.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}function Ai(e,t,n){var r=-1,o=Nt,a=e.length,u=!0,c=[],s=c;if(n)u=!1,o=zt;else if(a>=i){var f=t?null:co(e);if(f)return yn(f);u=!1,o=cn,s=new hr}else s=t?[]:c;e:for(;++r<a;){var l=e[r],p=t?t(l):l;if(l=n||0!==l?l:0,u&&p==p){for(var h=s.length;h--;)if(s[h]===p)continue e;t&&s.push(p),c.push(l)}else o(s,p,n)||(s!==c&&s.push(p),c.push(l))}return c}function ki(e,t){return null==(e=Fo(e,t=ji(t,e)))||delete e[Zo(sa(t))]}function Si(e,t,n,r){return hi(e,t,n(zr(e,t)),r)}function Di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?gi(e,r?0:o,r?o+1:i):gi(e,r?o+1:0,r?i:o)}function Ii(e,t){var n=e;return n instanceof sr&&(n=n.value()),Yt(t,function(e,t){return t.func.apply(t.thisArg,Wt([e],t.args))},n)}function Ri(e,t,n){var r=e.length;if(r<2)return r?Ai(e[0]):[];for(var i=-1,o=De(r);++i<r;)for(var a=e[i],u=-1;++u<r;)u!=i&&(o[i]=Rr(o[i]||a,e[u],t,n));return Ai(Pr(o,1),t,n)}function Ei(t,n,r){for(var i=-1,o=t.length,a=n.length,u={};++i<o;){var c=i<a?n[i]:e;r(u,t[i],c)}return u}function Oi(e){return au(e)?e:[]}function Ti(e){return"function"==typeof e?e:gc}function ji(e,t){return ru(e)?e:Po(e,t)?[e]:Ko(Tu(e))}var Ci=pi;function Pi(t,n,r){var i=t.length;return r=r===e?i:r,!n&&r>=i?t:gi(t,n,r)}var Mi=In||function(e){return xt.clearTimeout(e)};function Bi(e,t){if(t)return e.slice();var n=e.length,r=At?At(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ui(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ni(t,n){if(t!==n){var r=t!==e,i=null===t,o=t==t,a=wu(t),u=n!==e,c=null===n,s=n==n,f=wu(n);if(!c&&!f&&!a&&t>n||a&&u&&s&&!c&&!f||i&&u&&s||!r&&s||!o)return 1;if(!i&&!a&&!f&&t<n||f&&r&&o&&!i&&!a||c&&r&&o||!u&&o||!s)return-1}return 0}function zi(e,t,n,r){for(var i=-1,o=e.length,a=n.length,u=-1,c=t.length,s=Ln(o-a,0),f=De(c+s),l=!r;++u<c;)f[u]=t[u];for(;++i<a;)(l||i<o)&&(f[n[i]]=e[i]);for(;s--;)f[u++]=e[i++];return f}function Fi(e,t,n,r){for(var i=-1,o=e.length,a=-1,u=n.length,c=-1,s=t.length,f=Ln(o-u,0),l=De(f+s),p=!r;++i<f;)l[i]=e[i];for(var h=i;++c<s;)l[h+c]=t[c];for(;++a<u;)(p||i<o)&&(l[h+n[a]]=e[i++]);return l}function Wi(e,t){var n=-1,r=e.length;for(t||(t=De(r));++n<r;)t[n]=e[n];return t}function Yi(t,n,r,i){var o=!r;r||(r={});for(var a=-1,u=n.length;++a<u;){var c=n[a],s=i?i(r[c],t[c],c,r,t):e;s===e&&(s=t[c]),o?xr(r,c,s):yr(r,c,s)}return r}function qi(e,t){return function(n,r){var i=ru(n)?Mt:br,o=t?t():{};return i(n,e,xo(r,2),o)}}function Vi(t){return pi(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:e,u=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,u&&Co(r[0],r[1],u)&&(a=o<3?e:a,o=1),n=Ge(n);++i<o;){var c=r[i];c&&t(n,c,i,a)}return n})}function $i(e,t){return function(n,r){if(null==n)return n;if(!ou(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ge(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Gi(e){return function(t,n,r){for(var i=-1,o=Ge(t),a=r(t),u=a.length;u--;){var c=a[e?u:++i];if(!1===n(o[c],c,o))break}return t}}function Hi(t){return function(n){var r=mn(n=Tu(n))?bn(n):e,i=r?r[0]:n.charAt(0),o=r?Pi(r,1).join(""):n.slice(1);return i[t]()+o}}function Ki(e){return function(t){return Yt(fc(nc(t).replace(ut,"")),e,"")}}function Zi(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=ar(e.prototype),r=e.apply(n,t);return hu(r)?r:n}}function Ji(t){return function(n,r,i){var o=Ge(n);if(!ou(n)){var a=xo(r,3);n=qu(n),r=function(e){return a(o[e],e,o)}}var u=t(n,r,i);return u>-1?o[a?n[u]:u]:e}}function Xi(t){return go(function(n){var r=n.length,i=r,a=cr.prototype.thru;for(t&&n.reverse();i--;){var u=n[i];if("function"!=typeof u)throw new Ze(o);if(a&&!c&&"wrapper"==bo(u))var c=new cr([],!0)}for(i=c?i:r;++i<r;){var s=bo(u=n[i]),f="wrapper"==s?_o(u):e;c=f&&Mo(f[0])&&f[1]==(b|g|y|w)&&!f[4].length&&1==f[9]?c[bo(f[0])].apply(c,f[3]):1==u.length&&Mo(u)?c[s]():c.thru(u)}return function(){var e=arguments,t=e[0];if(c&&1==e.length&&ru(t))return c.plant(t).value();for(var i=0,o=r?n[i].apply(this,e):t;++i<r;)o=n[i].call(this,o);return o}})}function Qi(t,n,r,i,o,a,u,c,s,f){var l=n&b,p=n&h,d=n&m,y=n&(g|v),_=n&x,w=d?e:Zi(t);return function h(){for(var m=arguments.length,g=De(m),v=m;v--;)g[v]=arguments[v];if(y)var b=wo(h),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(g,b);if(i&&(g=zi(g,i,o,y)),a&&(g=Fi(g,a,u,y)),m-=x,y&&m<f){var A=vn(g,b);return ao(t,n,Qi,h.placeholder,r,g,A,c,s,f-m)}var k=p?r:this,S=d?k[t]:t;return m=g.length,c?g=function(t,n){for(var r=t.length,i=Un(n.length,r),o=Wi(t);i--;){var a=n[i];t[i]=jo(a,r)?o[a]:e}return t}(g,c):_&&m>1&&g.reverse(),l&&s<m&&(g.length=s),this&&this!==xt&&this instanceof h&&(S=w||Zi(S)),S.apply(k,g)}}function eo(e,t){return function(n,r){return function(e,t,n,r){return Lr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function to(t,n){return function(r,i){var o;if(r===e&&i===e)return n;if(r!==e&&(o=r),i!==e){if(o===e)return i;"string"==typeof r||"string"==typeof i?(r=xi(r),i=xi(i)):(r=wi(r),i=wi(i)),o=t(r,i)}return o}}function no(e){return go(function(t){return t=Ft(t,an(xo())),pi(function(n){var r=this;return e(t,function(e){return Pt(e,r,n)})})})}function ro(t,n){var r=(n=n===e?" ":xi(n)).length;if(r<2)return r?li(n,t):n;var i=li(n,On(t/_n(n)));return mn(n)?Pi(bn(i),0,t).join(""):i.slice(0,t)}function io(t){return function(n,r,i){return i&&"number"!=typeof i&&Co(n,r,i)&&(r=i=e),n=Du(n),r===e?(r=n,n=0):r=Du(r),function(e,t,n,r){for(var i=-1,o=Ln(On((t-e)/(n||1)),0),a=De(o);o--;)a[r?o:++i]=e,e+=n;return a}(n,r,i=i===e?n<r?1:-1:Du(i),t)}}function oo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Eu(t),n=Eu(n)),e(t,n)}}function ao(t,n,r,i,o,a,u,c,s,f){var l=n&g;n|=l?y:_,(n&=~(l?_:y))&d||(n&=~(h|m));var p=[t,n,o,l?a:e,l?u:e,l?e:a,l?e:u,c,s,f],v=r.apply(e,p);return Mo(t)&&Yo(v,p),v.placeholder=i,$o(v,t,n)}function uo(e){var t=$e[e];return function(e,n){if(e=Eu(e),(n=null==n?0:Un(Iu(n),292))&&Pn(e)){var r=(Tu(e)+"e").split("e");return+((r=(Tu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var co=$n&&1/yn(new $n([,-0]))[1]==S?function(e){return new $n(e)}:wc;function so(e){return function(t){var n=Ro(t);return n==W?dn(t):n==H?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Ft(t,function(t){return[t,e[t]]})}(t,e(t))}}function fo(t,n,r,i,a,c,s,f){var l=n&m;if(!l&&"function"!=typeof t)throw new Ze(o);var p=i?i.length:0;if(p||(n&=~(y|_),i=a=e),s=s===e?s:Ln(Iu(s),0),f=f===e?f:Iu(f),p-=a?a.length:0,n&_){var x=i,A=a;i=a=e}var k=l?e:_o(t),S=[t,n,r,i,a,x,A,c,s,f];if(k&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(h|m|b),a=r==b&&n==g||r==b&&n==w&&e[7].length<=t[8]||r==(b|w)&&t[7].length<=t[8]&&n==g;if(!o&&!a)return e;r&h&&(e[2]=t[2],i|=n&h?0:d);var c=t[3];if(c){var s=e[3];e[3]=s?zi(s,c,t[4]):c,e[4]=s?vn(e[3],u):t[4]}(c=t[5])&&(s=e[5],e[5]=s?Fi(s,c,t[6]):c,e[6]=s?vn(e[5],u):t[6]),(c=t[7])&&(e[7]=c),r&b&&(e[8]=null==e[8]?t[8]:Un(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(S,k),t=S[0],n=S[1],r=S[2],i=S[3],a=S[4],!(f=S[9]=S[9]===e?l?0:t.length:Ln(S[9]-p,0))&&n&(g|v)&&(n&=~(g|v)),n&&n!=h)D=n==g||n==v?function(t,n,r){var i=Zi(t);return function o(){for(var a=arguments.length,u=De(a),c=a,s=wo(o);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==s&&u[a-1]!==s?[]:vn(u,s);return(a-=f.length)<r?ao(t,n,Qi,o.placeholder,e,u,f,e,e,r-a):Pt(this&&this!==xt&&this instanceof o?i:t,this,u)}}(t,n,f):n!=y&&n!=(h|y)||a.length?Qi.apply(e,S):function(e,t,n,r){var i=t&h,o=Zi(e);return function t(){for(var a=-1,u=arguments.length,c=-1,s=r.length,f=De(s+u),l=this&&this!==xt&&this instanceof t?o:e;++c<s;)f[c]=r[c];for(;u--;)f[c++]=arguments[++a];return Pt(l,i?n:this,f)}}(t,n,r,i);else var D=function(e,t,n){var r=t&h,i=Zi(e);return function t(){return(this&&this!==xt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(t,n,r);return $o((k?mi:Yo)(D,S),t,n)}function lo(t,n,r,i){return t===e||Qa(t,Qe[r])&&!nt.call(i,r)?n:t}function po(t,n,r,i,o,a){return hu(t)&&hu(n)&&(a.set(n,t),ii(t,n,e,po,a),a.delete(n)),t}function ho(t){return vu(t)?e:t}function mo(t,n,r,i,o,a){var u=r&l,c=t.length,s=n.length;if(c!=s&&!(u&&s>c))return!1;var f=a.get(t),h=a.get(n);if(f&&h)return f==n&&h==t;var m=-1,d=!0,g=r&p?new hr:e;for(a.set(t,n),a.set(n,t);++m<c;){var v=t[m],y=n[m];if(i)var _=u?i(y,v,m,n,t,a):i(v,y,m,t,n,a);if(_!==e){if(_)continue;d=!1;break}if(g){if(!Vt(n,function(e,t){if(!cn(g,t)&&(v===e||o(v,e,r,i,a)))return g.push(t)})){d=!1;break}}else if(v!==y&&!o(v,y,r,i,a)){d=!1;break}}return a.delete(t),a.delete(n),d}function go(t){return Vo(zo(t,e,ia),t+"")}function vo(e){return Fr(e,qu,Do)}function yo(e){return Fr(e,Vu,Io)}var _o=Kn?function(e){return Kn.get(e)}:wc;function bo(e){for(var t=e.name+"",n=Zn[t],r=nt.call(Zn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function wo(e){return(nt.call(or,"placeholder")?or:e).placeholder}function xo(){var e=or.iteratee||vc;return e=e===vc?Xr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ko(e){for(var t=qu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Uo(i)]}return t}function So(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Jr(r)?r:e}var Do=jn?function(e){return null==e?[]:(e=Ge(e),Ut(jn(e),function(t){return It.call(e,t)}))}:Rc,Io=jn?function(e){for(var t=[];e;)Wt(t,Do(e)),e=kt(e);return t}:Rc,Ro=Wr;function Eo(e,t,n){for(var r=-1,i=(t=ji(t,e)).length,o=!1;++r<i;){var a=Zo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&pu(i)&&jo(a,i)&&(ru(e)||nu(e))}function Oo(e){return"function"!=typeof e.constructor||Lo(e)?{}:ar(kt(e))}function To(e){return ru(e)||nu(e)||!!(en&&e&&e[en])}function jo(e,t){var n=typeof e;return!!(t=null==t?D:t)&&("number"==n||"symbol"!=n&&Ne.test(e))&&e>-1&&e%1==0&&e<t}function Co(e,t,n){if(!hu(n))return!1;var r=typeof t;return!!("number"==r?ou(n)&&jo(t,n.length):"string"==r&&t in n)&&Qa(n[t],e)}function Po(e,t){if(ru(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!wu(e))||we.test(e)||!be.test(e)||null!=t&&e in Ge(t)}function Mo(e){var t=bo(e),n=or[t];if("function"!=typeof n||!(t in sr.prototype))return!1;if(e===n)return!0;var r=_o(n);return!!r&&e===r[0]}(Yn&&Ro(new Yn(new ArrayBuffer(1)))!=ee||qn&&Ro(new qn)!=W||Vn&&"[object Promise]"!=Ro(Vn.resolve())||$n&&Ro(new $n)!=H||Gn&&Ro(new Gn)!=X)&&(Ro=function(t){var n=Wr(t),r=n==V?t.constructor:e,i=r?Jo(r):"";if(i)switch(i){case Jn:return ee;case Xn:return W;case Qn:return"[object Promise]";case er:return H;case tr:return X}return n});var Bo=et?fu:Ec;function Lo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)}function Uo(e){return e==e&&!hu(e)}function No(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in Ge(r))}}function zo(t,n,r){return n=Ln(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,o=Ln(e.length-n,0),a=De(o);++i<o;)a[i]=e[n+i];i=-1;for(var u=De(n+1);++i<n;)u[i]=e[i];return u[n]=r(a),Pt(t,this,u)}}function Fo(e,t){return t.length<2?e:zr(e,gi(t,0,-1))}function Wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Yo=Go(mi),qo=En||function(e,t){return xt.setTimeout(e,t)},Vo=Go(di);function $o(e,t,n){var r=t+"";return Vo(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(Ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Bt(j,function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=r.match(Re);return t?t[1].split(Ee):[]}(),n)))}function Go(t){var n=0,r=0;return function(){var i=Nn(),o=k-(i-r);if(r=i,o>0){if(++n>=A)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ho(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r<n;){var a=fi(r,o),u=t[a];t[a]=t[r],t[r]=u}return t.length=n,t}var Ko=function(e){var t=Ga(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xe,function(e,n,r,i){t.push(r?i.replace(je,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}();function Zo(e){if("string"==typeof e||wu(e))return e;var t=e+"";return"0"==t&&1/e==-S?"-0":t}function Jo(e){if(null!=e){try{return tt.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function Xo(e){if(e instanceof sr)return e.clone();var t=new cr(e.__wrapped__,e.__chain__);return t.__actions__=Wi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qo=pi(function(e,t){return au(e)?Rr(e,Pr(t,1,au,!0)):[]}),ea=pi(function(t,n){var r=sa(n);return au(r)&&(r=e),au(t)?Rr(t,Pr(n,1,au,!0),xo(r,2)):[]}),ta=pi(function(t,n){var r=sa(n);return au(r)&&(r=e),au(t)?Rr(t,Pr(n,1,au,!0),e,r):[]});function na(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Iu(n);return i<0&&(i=Ln(r+i,0)),Ht(e,xo(t,3),i)}function ra(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==e&&(o=Iu(r),o=r<0?Ln(i+o,0):Un(o,i-1)),Ht(t,xo(n,3),o,!0)}function ia(e){return null!=e&&e.length?Pr(e,1):[]}function oa(t){return t&&t.length?t[0]:e}var aa=pi(function(e){var t=Ft(e,Oi);return t.length&&t[0]===e[0]?$r(t):[]}),ua=pi(function(t){var n=sa(t),r=Ft(t,Oi);return n===sa(r)?n=e:r.pop(),r.length&&r[0]===t[0]?$r(r,xo(n,2)):[]}),ca=pi(function(t){var n=sa(t),r=Ft(t,Oi);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?$r(r,e,n):[]});function sa(t){var n=null==t?0:t.length;return n?t[n-1]:e}var fa=pi(la);function la(e,t){return e&&e.length&&t&&t.length?ci(e,t):e}var pa=go(function(e,t){var n=null==e?0:e.length,r=Ar(e,t);return si(e,Ft(t,function(e){return jo(e,n)?+e:e}).sort(Ni)),r});function ha(e){return null==e?e:Wn.call(e)}var ma=pi(function(e){return Ai(Pr(e,1,au,!0))}),da=pi(function(t){var n=sa(t);return au(n)&&(n=e),Ai(Pr(t,1,au,!0),xo(n,2))}),ga=pi(function(t){var n=sa(t);return n="function"==typeof n?n:e,Ai(Pr(t,1,au,!0),e,n)});function va(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,function(e){if(au(e))return t=Ln(e.length,t),!0}),rn(t,function(t){return Ft(e,Qt(t))})}function ya(t,n){if(!t||!t.length)return[];var r=va(t);return null==n?r:Ft(r,function(t){return Pt(n,e,t)})}var _a=pi(function(e,t){return au(e)?Rr(e,t):[]}),ba=pi(function(e){return Ri(Ut(e,au))}),wa=pi(function(t){var n=sa(t);return au(n)&&(n=e),Ri(Ut(t,au),xo(n,2))}),xa=pi(function(t){var n=sa(t);return n="function"==typeof n?n:e,Ri(Ut(t,au),e,n)}),Aa=pi(va),ka=pi(function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,ya(t,r)});function Sa(e){var t=or(e);return t.__chain__=!0,t}function Da(e,t){return t(e)}var Ia=go(function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(e){return Ar(e,t)};return!(n>1||this.__actions__.length)&&i instanceof sr&&jo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:Da,args:[o],thisArg:e}),new cr(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(o)}),Ra=qi(function(e,t,n){nt.call(e,n)?++e[n]:xr(e,n,1)}),Ea=Ji(na),Oa=Ji(ra);function Ta(e,t){return(ru(e)?Bt:Er)(e,xo(t,3))}function ja(e,t){return(ru(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Or)(e,xo(t,3))}var Ca=qi(function(e,t,n){nt.call(e,n)?e[n].push(t):xr(e,n,[t])}),Pa=pi(function(e,t,n){var r=-1,i="function"==typeof t,o=ou(e)?De(e.length):[];return Er(e,function(e){o[++r]=i?Pt(t,e,n):Gr(e,t,n)}),o}),Ma=qi(function(e,t,n){xr(e,n,t)});function Ba(e,t){return(ru(e)?Ft:ti)(e,xo(t,3))}var La=qi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ua=pi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Co(e,t[0],t[1])?t=[]:n>2&&Co(t[0],t[1],t[2])&&(t=[t[0]]),ai(e,Pr(t,1),[])}),Na=Rn||function(){return xt.Date.now()};function za(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,fo(t,b,e,e,e,e,n)}function Fa(t,n){var r;if("function"!=typeof n)throw new Ze(o);return t=Iu(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=e),r}}var Wa=pi(function(e,t,n){var r=h;if(n.length){var i=vn(n,wo(Wa));r|=y}return fo(e,r,t,n,i)}),Ya=pi(function(e,t,n){var r=h|m;if(n.length){var i=vn(n,wo(Ya));r|=y}return fo(t,r,e,n,i)});function qa(t,n,r){var i,a,u,c,s,f,l=0,p=!1,h=!1,m=!0;if("function"!=typeof t)throw new Ze(o);function d(n){var r=i,o=a;return i=a=e,l=n,c=t.apply(o,r)}function g(t){var r=t-f;return f===e||r>=n||r<0||h&&t-l>=u}function v(){var e=Na();if(g(e))return y(e);s=qo(v,function(e){var t=n-(e-f);return h?Un(t,u-(e-l)):t}(e))}function y(t){return s=e,m&&i?d(t):(i=a=e,c)}function _(){var t=Na(),r=g(t);if(i=arguments,a=this,f=t,r){if(s===e)return function(e){return l=e,s=qo(v,n),p?d(e):c}(f);if(h)return Mi(s),s=qo(v,n),d(f)}return s===e&&(s=qo(v,n)),c}return n=Eu(n)||0,hu(r)&&(p=!!r.leading,u=(h="maxWait"in r)?Ln(Eu(r.maxWait)||0,n):u,m="trailing"in r?!!r.trailing:m),_.cancel=function(){s!==e&&Mi(s),l=0,i=f=a=s=e},_.flush=function(){return s===e?c:y(Na())},_}var Va=pi(function(e,t){return Ir(e,1,t)}),$a=pi(function(e,t,n){return Ir(e,Eu(t)||0,n)});function Ga(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ze(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ga.Cache||pr),n}function Ha(e){if("function"!=typeof e)throw new Ze(o);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)}}Ga.Cache=pr;var Ka=Ci(function(e,t){var n=(t=1==t.length&&ru(t[0])?Ft(t[0],an(xo())):Ft(Pr(t,1),an(xo()))).length;return pi(function(r){for(var i=-1,o=Un(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Pt(e,this,r)})}),Za=pi(function(t,n){var r=vn(n,wo(Za));return fo(t,y,e,n,r)}),Ja=pi(function(t,n){var r=vn(n,wo(Ja));return fo(t,_,e,n,r)}),Xa=go(function(t,n){return fo(t,w,e,e,e,n)});function Qa(e,t){return e===t||e!=e&&t!=t}var eu=oo(Yr),tu=oo(function(e,t){return e>=t}),nu=Hr(function(){return arguments}())?Hr:function(e){return mu(e)&&nt.call(e,"callee")&&!It.call(e,"callee")},ru=De.isArray,iu=Rt?an(Rt):function(e){return mu(e)&&Wr(e)==Q};function ou(e){return null!=e&&pu(e.length)&&!fu(e)}function au(e){return mu(e)&&ou(e)}var uu=Cn||Ec,cu=Et?an(Et):function(e){return mu(e)&&Wr(e)==L};function su(e){if(!mu(e))return!1;var t=Wr(e);return t==N||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!vu(e)}function fu(e){if(!hu(e))return!1;var t=Wr(e);return t==z||t==F||t==M||t==$}function lu(e){return"number"==typeof e&&e==Iu(e)}function pu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function hu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function mu(e){return null!=e&&"object"==typeof e}var du=Ot?an(Ot):function(e){return mu(e)&&Ro(e)==W};function gu(e){return"number"==typeof e||mu(e)&&Wr(e)==Y}function vu(e){if(!mu(e)||Wr(e)!=V)return!1;var t=kt(e);if(null===t)return!0;var n=nt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&tt.call(n)==at}var yu=Tt?an(Tt):function(e){return mu(e)&&Wr(e)==G},_u=jt?an(jt):function(e){return mu(e)&&Ro(e)==H};function bu(e){return"string"==typeof e||!ru(e)&&mu(e)&&Wr(e)==K}function wu(e){return"symbol"==typeof e||mu(e)&&Wr(e)==Z}var xu=Ct?an(Ct):function(e){return mu(e)&&pu(e.length)&&!!dt[Wr(e)]},Au=oo(ei),ku=oo(function(e,t){return e<=t});function Su(e){if(!e)return[];if(ou(e))return bu(e)?bn(e):Wi(e);if(kn&&e[kn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[kn]());var t=Ro(e);return(t==W?dn:t==H?yn:Qu)(e)}function Du(e){return e?(e=Eu(e))===S||e===-S?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Iu(e){var t=Du(e),n=t%1;return t==t?n?t-n:t:0}function Ru(e){return e?kr(Iu(e),0,E):0}function Eu(e){if("number"==typeof e)return e;if(wu(e))return R;if(hu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=on(e);var n=Be.test(e);return n||Ue.test(e)?_t(e.slice(2),n?2:8):Me.test(e)?R:+e}function Ou(e){return Yi(e,Vu(e))}function Tu(e){return null==e?"":xi(e)}var ju=Vi(function(e,t){if(Lo(t)||ou(t))Yi(t,qu(t),e);else for(var n in t)nt.call(t,n)&&yr(e,n,t[n])}),Cu=Vi(function(e,t){Yi(t,Vu(t),e)}),Pu=Vi(function(e,t,n,r){Yi(t,Vu(t),e,r)}),Mu=Vi(function(e,t,n,r){Yi(t,qu(t),e,r)}),Bu=go(Ar),Lu=pi(function(t,n){t=Ge(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&Co(n[0],n[1],o)&&(i=1);++r<i;)for(var a=n[r],u=Vu(a),c=-1,s=u.length;++c<s;){var f=u[c],l=t[f];(l===e||Qa(l,Qe[f])&&!nt.call(t,f))&&(t[f]=a[f])}return t}),Uu=pi(function(t){return t.push(e,po),Pt(Gu,e,t)});function Nu(t,n,r){var i=null==t?e:zr(t,n);return i===e?r:i}function zu(e,t){return null!=e&&Eo(e,t,Vr)}var Fu=eo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ot.call(t)),e[t]=n},hc(gc)),Wu=eo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ot.call(t)),nt.call(e,t)?e[t].push(n):e[t]=[n]},xo),Yu=pi(Gr);function qu(e){return ou(e)?dr(e):Qr(e)}function Vu(e){return ou(e)?dr(e,!0):function(e){if(!hu(e))return function(e){var t=[];if(null!=e)for(var n in Ge(e))t.push(n);return t}(e);var t=Lo(e),n=[];for(var r in e)("constructor"!=r||!t&&nt.call(e,r))&&n.push(r);return n}(e)}var $u=Vi(function(e,t,n){ii(e,t,n)}),Gu=Vi(function(e,t,n,r){ii(e,t,n,r)}),Hu=go(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ft(t,function(t){return t=ji(t,e),r||(r=t.length>1),t}),Yi(e,yo(e),n),r&&(n=Sr(n,c|s|f,ho));for(var i=t.length;i--;)ki(n,t[i]);return n}),Ku=go(function(e,t){return null==e?{}:function(e,t){return ui(e,t,function(t,n){return zu(e,n)})}(e,t)});function Zu(e,t){if(null==e)return{};var n=Ft(yo(e),function(e){return[e]});return t=xo(t),ui(e,n,function(e,n){return t(e,n[0])})}var Ju=so(qu),Xu=so(Vu);function Qu(e){return null==e?[]:un(e,qu(e))}var ec=Ki(function(e,t,n){return t=t.toLowerCase(),e+(n?tc(t):t)});function tc(e){return sc(Tu(e).toLowerCase())}function nc(e){return(e=Tu(e))&&e.replace(ze,ln).replace(ct,"")}var rc=Ki(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ic=Ki(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),oc=Hi("toLowerCase"),ac=Ki(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),uc=Ki(function(e,t,n){return e+(n?" ":"")+sc(t)}),cc=Ki(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),sc=Hi("toUpperCase");function fc(t,n,r){return t=Tu(t),(n=r?e:n)===e?function(e){return pt.test(e)}(t)?function(e){return e.match(ft)||[]}(t):function(e){return e.match(Oe)||[]}(t):t.match(n)||[]}var lc=pi(function(t,n){try{return Pt(t,e,n)}catch(i){return su(i)?i:new qe(i)}}),pc=go(function(e,t){return Bt(t,function(t){t=Zo(t),xr(e,t,Wa(e[t],e))}),e});function hc(e){return function(){return e}}var mc=Xi(),dc=Xi(!0);function gc(e){return e}function vc(e){return Xr("function"==typeof e?e:Sr(e,c))}var yc=pi(function(e,t){return function(n){return Gr(n,e,t)}}),_c=pi(function(e,t){return function(n){return Gr(e,n,t)}});function bc(e,t,n){var r=qu(t),i=Nr(t,r);null!=n||hu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Nr(t,qu(t)));var o=!(hu(n)&&"chain"in n&&!n.chain),a=fu(e);return Bt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Wi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Wt([this.value()],arguments))})}),e}function wc(){}var xc=no(Ft),Ac=no(Lt),kc=no(Vt);function Sc(e){return Po(e)?Qt(Zo(e)):function(e){return function(t){return zr(t,e)}}(e)}var Dc=io(),Ic=io(!0);function Rc(){return[]}function Ec(){return!1}var Oc,Tc=to(function(e,t){return e+t},0),jc=uo("ceil"),Cc=to(function(e,t){return e/t},1),Pc=uo("floor"),Mc=to(function(e,t){return e*t},1),Bc=uo("round"),Lc=to(function(e,t){return e-t},0);return or.after=function(e,t){if("function"!=typeof t)throw new Ze(o);return e=Iu(e),function(){if(--e<1)return t.apply(this,arguments)}},or.ary=za,or.assign=ju,or.assignIn=Cu,or.assignInWith=Pu,or.assignWith=Mu,or.at=Bu,or.before=Fa,or.bind=Wa,or.bindAll=pc,or.bindKey=Ya,or.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ru(e)?e:[e]},or.chain=Sa,or.chunk=function(t,n,r){n=(r?Co(t,n,r):n===e)?1:Ln(Iu(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,u=De(On(i/n));o<i;)u[a++]=gi(t,o,o+=n);return u},or.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},or.concat=function(){var e=arguments.length;if(!e)return[];for(var t=De(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Wt(ru(n)?Wi(n):[n],Pr(t,1))},or.cond=function(e){var t=null==e?0:e.length,n=xo();return e=t?Ft(e,function(e){if("function"!=typeof e[1])throw new Ze(o);return[n(e[0]),e[1]]}):[],pi(function(n){for(var r=-1;++r<t;){var i=e[r];if(Pt(i[0],this,n))return Pt(i[1],this,n)}})},or.conforms=function(e){return function(e){var t=qu(e);return function(n){return Dr(n,e,t)}}(Sr(e,c))},or.constant=hc,or.countBy=Ra,or.create=function(e,t){var n=ar(e);return null==t?n:wr(n,t)},or.curry=function t(n,r,i){var o=fo(n,g,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},or.curryRight=function t(n,r,i){var o=fo(n,v,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},or.debounce=qa,or.defaults=Lu,or.defaultsDeep=Uu,or.defer=Va,or.delay=$a,or.difference=Qo,or.differenceBy=ea,or.differenceWith=ta,or.drop=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,(n=r||n===e?1:Iu(n))<0?0:n,i):[]},or.dropRight=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,0,(n=i-(n=r||n===e?1:Iu(n)))<0?0:n):[]},or.dropRightWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!0,!0):[]},or.dropWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!0):[]},or.fill=function(t,n,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&Co(t,n,r)&&(r=0,i=o),function(t,n,r,i){var o=t.length;for((r=Iu(r))<0&&(r=-r>o?0:o+r),(i=i===e||i>o?o:Iu(i))<0&&(i+=o),i=r>i?0:Ru(i);r<i;)t[r++]=n;return t}(t,n,r,i)):[]},or.filter=function(e,t){return(ru(e)?Ut:Cr)(e,xo(t,3))},or.flatMap=function(e,t){return Pr(Ba(e,t),1)},or.flatMapDeep=function(e,t){return Pr(Ba(e,t),S)},or.flatMapDepth=function(t,n,r){return r=r===e?1:Iu(r),Pr(Ba(t,n),r)},or.flatten=ia,or.flattenDeep=function(e){return null!=e&&e.length?Pr(e,S):[]},or.flattenDepth=function(t,n){return null!=t&&t.length?Pr(t,n=n===e?1:Iu(n)):[]},or.flip=function(e){return fo(e,x)},or.flow=mc,or.flowRight=dc,or.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},or.functions=function(e){return null==e?[]:Nr(e,qu(e))},or.functionsIn=function(e){return null==e?[]:Nr(e,Vu(e))},or.groupBy=Ca,or.initial=function(e){return null!=e&&e.length?gi(e,0,-1):[]},or.intersection=aa,or.intersectionBy=ua,or.intersectionWith=ca,or.invert=Fu,or.invertBy=Wu,or.invokeMap=Pa,or.iteratee=vc,or.keyBy=Ma,or.keys=qu,or.keysIn=Vu,or.map=Ba,or.mapKeys=function(e,t){var n={};return t=xo(t,3),Lr(e,function(e,r,i){xr(n,t(e,r,i),e)}),n},or.mapValues=function(e,t){var n={};return t=xo(t,3),Lr(e,function(e,r,i){xr(n,r,t(e,r,i))}),n},or.matches=function(e){return ni(Sr(e,c))},or.matchesProperty=function(e,t){return ri(e,Sr(t,c))},or.memoize=Ga,or.merge=$u,or.mergeWith=Gu,or.method=yc,or.methodOf=_c,or.mixin=bc,or.negate=Ha,or.nthArg=function(e){return e=Iu(e),pi(function(t){return oi(t,e)})},or.omit=Hu,or.omitBy=function(e,t){return Zu(e,Ha(xo(t)))},or.once=function(e){return Fa(2,e)},or.orderBy=function(t,n,r,i){return null==t?[]:(ru(n)||(n=null==n?[]:[n]),ru(r=i?e:r)||(r=null==r?[]:[r]),ai(t,n,r))},or.over=xc,or.overArgs=Ka,or.overEvery=Ac,or.overSome=kc,or.partial=Za,or.partialRight=Ja,or.partition=La,or.pick=Ku,or.pickBy=Zu,or.property=Sc,or.propertyOf=function(t){return function(n){return null==t?e:zr(t,n)}},or.pull=fa,or.pullAll=la,or.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?ci(e,t,xo(n,2)):e},or.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?ci(t,n,e,r):t},or.pullAt=pa,or.range=Dc,or.rangeRight=Ic,or.rearg=Xa,or.reject=function(e,t){return(ru(e)?Ut:Cr)(e,Ha(xo(t,3)))},or.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=xo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return si(e,i),n},or.rest=function(t,n){if("function"!=typeof t)throw new Ze(o);return pi(t,n=n===e?n:Iu(n))},or.reverse=ha,or.sampleSize=function(t,n,r){return n=(r?Co(t,n,r):n===e)?1:Iu(n),(ru(t)?function(e,t){return Ho(Wi(e),kr(t,0,e.length))}:function(e,t){var n=Qu(e);return Ho(n,kr(t,0,n.length))})(t,n)},or.set=function(e,t,n){return null==e?e:hi(e,t,n)},or.setWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:hi(t,n,r,i)},or.shuffle=function(e){return(ru(e)?function(e){return Ho(Wi(e))}:function(e){return Ho(Qu(e))})(e)},or.slice=function(t,n,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&Co(t,n,r)?(n=0,r=i):(n=null==n?0:Iu(n),r=r===e?i:Iu(r)),gi(t,n,r)):[]},or.sortBy=Ua,or.sortedUniq=function(e){return e&&e.length?bi(e):[]},or.sortedUniqBy=function(e,t){return e&&e.length?bi(e,xo(t,2)):[]},or.split=function(t,n,r){return r&&"number"!=typeof r&&Co(t,n,r)&&(n=r=e),(r=r===e?E:r>>>0)?(t=Tu(t))&&("string"==typeof n||null!=n&&!yu(n))&&!(n=xi(n))&&mn(t)?Pi(bn(t),0,r):t.split(n,r):[]},or.spread=function(e,t){if("function"!=typeof e)throw new Ze(o);return t=null==t?0:Ln(Iu(t),0),pi(function(n){var r=n[t],i=Pi(n,0,t);return r&&Wt(i,r),Pt(e,this,i)})},or.tail=function(e){var t=null==e?0:e.length;return t?gi(e,1,t):[]},or.take=function(t,n,r){return t&&t.length?gi(t,0,(n=r||n===e?1:Iu(n))<0?0:n):[]},or.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,(n=i-(n=r||n===e?1:Iu(n)))<0?0:n,i):[]},or.takeRightWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!1,!0):[]},or.takeWhile=function(e,t){return e&&e.length?Di(e,xo(t,3)):[]},or.tap=function(e,t){return t(e),e},or.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ze(o);return hu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),qa(e,t,{leading:r,maxWait:t,trailing:i})},or.thru=Da,or.toArray=Su,or.toPairs=Ju,or.toPairsIn=Xu,or.toPath=function(e){return ru(e)?Ft(e,Zo):wu(e)?[e]:Wi(Ko(Tu(e)))},or.toPlainObject=Ou,or.transform=function(e,t,n){var r=ru(e),i=r||uu(e)||xu(e);if(t=xo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:hu(e)&&fu(o)?ar(kt(e)):{}}return(i?Bt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},or.unary=function(e){return za(e,1)},or.union=ma,or.unionBy=da,or.unionWith=ga,or.uniq=function(e){return e&&e.length?Ai(e):[]},or.uniqBy=function(e,t){return e&&e.length?Ai(e,xo(t,2)):[]},or.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?Ai(t,e,n):[]},or.unset=function(e,t){return null==e||ki(e,t)},or.unzip=va,or.unzipWith=ya,or.update=function(e,t,n){return null==e?e:Si(e,t,Ti(n))},or.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:Si(t,n,Ti(r),i)},or.values=Qu,or.valuesIn=function(e){return null==e?[]:un(e,Vu(e))},or.without=_a,or.words=fc,or.wrap=function(e,t){return Za(Ti(t),e)},or.xor=ba,or.xorBy=wa,or.xorWith=xa,or.zip=Aa,or.zipObject=function(e,t){return Ei(e||[],t||[],yr)},or.zipObjectDeep=function(e,t){return Ei(e||[],t||[],hi)},or.zipWith=ka,or.entries=Ju,or.entriesIn=Xu,or.extend=Cu,or.extendWith=Pu,bc(or,or),or.add=Tc,or.attempt=lc,or.camelCase=ec,or.capitalize=tc,or.ceil=jc,or.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=Eu(r))==r?r:0),n!==e&&(n=(n=Eu(n))==n?n:0),kr(Eu(t),n,r)},or.clone=function(e){return Sr(e,f)},or.cloneDeep=function(e){return Sr(e,c|f)},or.cloneDeepWith=function(t,n){return Sr(t,c|f,n="function"==typeof n?n:e)},or.cloneWith=function(t,n){return Sr(t,f,n="function"==typeof n?n:e)},or.conformsTo=function(e,t){return null==t||Dr(e,t,qu(t))},or.deburr=nc,or.defaultTo=function(e,t){return null==e||e!=e?t:e},or.divide=Cc,or.endsWith=function(t,n,r){t=Tu(t),n=xi(n);var i=t.length,o=r=r===e?i:kr(Iu(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},or.eq=Qa,or.escape=function(e){return(e=Tu(e))&&ge.test(e)?e.replace(me,pn):e},or.escapeRegExp=function(e){return(e=Tu(e))&&ke.test(e)?e.replace(Ae,"\\$&"):e},or.every=function(t,n,r){var i=ru(t)?Lt:Tr;return r&&Co(t,n,r)&&(n=e),i(t,xo(n,3))},or.find=Ea,or.findIndex=na,or.findKey=function(e,t){return Gt(e,xo(t,3),Lr)},or.findLast=Oa,or.findLastIndex=ra,or.findLastKey=function(e,t){return Gt(e,xo(t,3),Ur)},or.floor=Pc,or.forEach=Ta,or.forEachRight=ja,or.forIn=function(e,t){return null==e?e:Mr(e,xo(t,3),Vu)},or.forInRight=function(e,t){return null==e?e:Br(e,xo(t,3),Vu)},or.forOwn=function(e,t){return e&&Lr(e,xo(t,3))},or.forOwnRight=function(e,t){return e&&Ur(e,xo(t,3))},or.get=Nu,or.gt=eu,or.gte=tu,or.has=function(e,t){return null!=e&&Eo(e,t,qr)},or.hasIn=zu,or.head=oa,or.identity=gc,or.includes=function(e,t,n,r){e=ou(e)?e:Qu(e),n=n&&!r?Iu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Kt(e,t,n)>-1},or.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Iu(n);return i<0&&(i=Ln(r+i,0)),Kt(e,t,i)},or.inRange=function(t,n,r){return n=Du(n),r===e?(r=n,n=0):r=Du(r),function(e,t,n){return e>=Un(t,n)&&e<Ln(t,n)}(t=Eu(t),n,r)},or.invoke=Yu,or.isArguments=nu,or.isArray=ru,or.isArrayBuffer=iu,or.isArrayLike=ou,or.isArrayLikeObject=au,or.isBoolean=function(e){return!0===e||!1===e||mu(e)&&Wr(e)==B},or.isBuffer=uu,or.isDate=cu,or.isElement=function(e){return mu(e)&&1===e.nodeType&&!vu(e)},or.isEmpty=function(e){if(null==e)return!0;if(ou(e)&&(ru(e)||"string"==typeof e||"function"==typeof e.splice||uu(e)||xu(e)||nu(e)))return!e.length;var t=Ro(e);if(t==W||t==H)return!e.size;if(Lo(e))return!Qr(e).length;for(var n in e)if(nt.call(e,n))return!1;return!0},or.isEqual=function(e,t){return Kr(e,t)},or.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?Kr(t,n,e,r):!!i},or.isError=su,or.isFinite=function(e){return"number"==typeof e&&Pn(e)},or.isFunction=fu,or.isInteger=lu,or.isLength=pu,or.isMap=du,or.isMatch=function(e,t){return e===t||Zr(e,t,ko(t))},or.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Zr(t,n,ko(n),r)},or.isNaN=function(e){return gu(e)&&e!=+e},or.isNative=function(e){if(Bo(e))throw new qe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Jr(e)},or.isNil=function(e){return null==e},or.isNull=function(e){return null===e},or.isNumber=gu,or.isObject=hu,or.isObjectLike=mu,or.isPlainObject=vu,or.isRegExp=yu,or.isSafeInteger=function(e){return lu(e)&&e>=-D&&e<=D},or.isSet=_u,or.isString=bu,or.isSymbol=wu,or.isTypedArray=xu,or.isUndefined=function(t){return t===e},or.isWeakMap=function(e){return mu(e)&&Ro(e)==X},or.isWeakSet=function(e){return mu(e)&&"[object WeakSet]"==Wr(e)},or.join=function(e,t){return null==e?"":Mn.call(e,t)},or.kebabCase=rc,or.last=sa,or.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=Iu(r))<0?Ln(i+o,0):Un(o,i-1)),n==n?function(e,t,n){for(var r=o+1;r--;)if(e[r]===t)return r;return r}(t,n):Ht(t,Jt,o,!0)},or.lowerCase=ic,or.lowerFirst=oc,or.lt=Au,or.lte=ku,or.max=function(t){return t&&t.length?jr(t,gc,Yr):e},or.maxBy=function(t,n){return t&&t.length?jr(t,xo(n,2),Yr):e},or.mean=function(e){return Xt(e,gc)},or.meanBy=function(e,t){return Xt(e,xo(t,2))},or.min=function(t){return t&&t.length?jr(t,gc,ei):e},or.minBy=function(t,n){return t&&t.length?jr(t,xo(n,2),ei):e},or.stubArray=Rc,or.stubFalse=Ec,or.stubObject=function(){return{}},or.stubString=function(){return""},or.stubTrue=function(){return!0},or.multiply=Mc,or.nth=function(t,n){return t&&t.length?oi(t,Iu(n)):e},or.noConflict=function(){return xt._===this&&(xt._=st),this},or.noop=wc,or.now=Na,or.pad=function(e,t,n){e=Tu(e);var r=(t=Iu(t))?_n(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ro(Tn(i),n)+e+ro(On(i),n)},or.padEnd=function(e,t,n){e=Tu(e);var r=(t=Iu(t))?_n(e):0;return t&&r<t?e+ro(t-r,n):e},or.padStart=function(e,t,n){e=Tu(e);var r=(t=Iu(t))?_n(e):0;return t&&r<t?ro(t-r,n)+e:e},or.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),zn(Tu(e).replace(Se,""),t||0)},or.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Co(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=Du(t),n===e?(n=t,t=0):n=Du(n)),t>n){var i=t;t=n,n=i}if(r||t%1||n%1){var o=Fn();return Un(t+o*(n-t+yt("1e-"+((o+"").length-1))),n)}return fi(t,n)},or.reduce=function(e,t,n){var r=ru(e)?Yt:tn,i=arguments.length<3;return r(e,xo(t,4),n,i,Er)},or.reduceRight=function(e,t,n){var r=ru(e)?qt:tn,i=arguments.length<3;return r(e,xo(t,4),n,i,Or)},or.repeat=function(t,n,r){return n=(r?Co(t,n,r):n===e)?1:Iu(n),li(Tu(t),n)},or.replace=function(){var e=arguments,t=Tu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},or.result=function(t,n,r){var i=-1,o=(n=ji(n,t)).length;for(o||(o=1,t=e);++i<o;){var a=null==t?e:t[Zo(n[i])];a===e&&(i=o,a=r),t=fu(a)?a.call(t):a}return t},or.round=Bc,or.runInContext=t,or.sample=function(e){return(ru(e)?gr:function(e){return gr(Qu(e))})(e)},or.size=function(e){if(null==e)return 0;if(ou(e))return bu(e)?_n(e):e.length;var t=Ro(e);return t==W||t==H?e.size:Qr(e).length},or.snakeCase=ac,or.some=function(t,n,r){var i=ru(t)?Vt:vi;return r&&Co(t,n,r)&&(n=e),i(t,xo(n,3))},or.sortedIndex=function(e,t){return yi(e,t)},or.sortedIndexBy=function(e,t,n){return _i(e,t,xo(n,2))},or.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=yi(e,t);if(r<n&&Qa(e[r],t))return r}return-1},or.sortedLastIndex=function(e,t){return yi(e,t,!0)},or.sortedLastIndexBy=function(e,t,n){return _i(e,t,xo(n,2),!0)},or.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=yi(e,t,!0)-1;if(Qa(e[n],t))return n}return-1},or.startCase=uc,or.startsWith=function(e,t,n){return e=Tu(e),n=null==n?0:kr(Iu(n),0,e.length),t=xi(t),e.slice(n,n+t.length)==t},or.subtract=Lc,or.sum=function(e){return e&&e.length?nn(e,gc):0},or.sumBy=function(e,t){return e&&e.length?nn(e,xo(t,2)):0},or.template=function(t,n,r){var i=or.templateSettings;r&&Co(t,n,r)&&(n=e),t=Tu(t),n=Pu({},n,i,lo);var o,a,u=Pu({},n.imports,i.imports,lo),c=qu(u),s=un(u,c),f=0,l=n.interpolate||Fe,p="__p += '",h=He((n.escape||Fe).source+"|"+l.source+"|"+(l===_e?Ce:Fe).source+"|"+(n.evaluate||Fe).source+"|$","g"),m="//# sourceURL="+(nt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mt+"]")+"\n";t.replace(h,function(e,n,r,i,u,c){return r||(r=i),p+=t.slice(f,c).replace(We,hn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+e.length,e}),p+="';\n";var d=nt.call(n,"variable")&&n.variable;if(d){if(Te.test(d))throw new qe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(fe,""):p).replace(le,"$1").replace(pe,"$1;"),p="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=lc(function(){return Ve(c,m+"return "+p).apply(e,s)});if(g.source=p,su(g))throw g;return g},or.times=function(e,t){if((e=Iu(e))<1||e>D)return[];var n=E,r=Un(e,E);t=xo(t),e-=E;for(var i=rn(r,t);++n<e;)t(n);return i},or.toFinite=Du,or.toInteger=Iu,or.toLength=Ru,or.toLower=function(e){return Tu(e).toLowerCase()},or.toNumber=Eu,or.toSafeInteger=function(e){return e?kr(Iu(e),-D,D):0===e?e:0},or.toString=Tu,or.toUpper=function(e){return Tu(e).toUpperCase()},or.trim=function(t,n,r){if((t=Tu(t))&&(r||n===e))return on(t);if(!t||!(n=xi(n)))return t;var i=bn(t),o=bn(n);return Pi(i,sn(i,o),fn(i,o)+1).join("")},or.trimEnd=function(t,n,r){if((t=Tu(t))&&(r||n===e))return t.slice(0,wn(t)+1);if(!t||!(n=xi(n)))return t;var i=bn(t);return Pi(i,0,fn(i,bn(n))+1).join("")},or.trimStart=function(t,n,r){if((t=Tu(t))&&(r||n===e))return t.replace(Se,"");if(!t||!(n=xi(n)))return t;var i=bn(t);return Pi(i,sn(i,bn(n))).join("")},or.truncate=function(t,n){var r=30,i="...";if(hu(n)){var o="separator"in n?n.separator:o;r="length"in n?Iu(n.length):r,i="omission"in n?xi(n.omission):i}var a=(t=Tu(t)).length;if(mn(t)){var u=bn(t);a=u.length}if(r>=a)return t;var c=r-_n(i);if(c<1)return i;var s=u?Pi(u,0,c).join(""):t.slice(0,c);if(o===e)return s+i;if(u&&(c+=s.length-c),yu(o)){if(t.slice(c).search(o)){var f,l=s;for(o.global||(o=He(o.source,Tu(Pe.exec(o))+"g")),o.lastIndex=0;f=o.exec(l);)var p=f.index;s=s.slice(0,p===e?c:p)}}else if(t.indexOf(xi(o),c)!=c){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+i},or.unescape=function(e){return(e=Tu(e))&&de.test(e)?e.replace(he,xn):e},or.uniqueId=function(e){var t=++rt;return Tu(e)+t},or.upperCase=cc,or.upperFirst=sc,or.each=Ta,or.eachRight=ja,or.first=oa,bc(or,(Oc={},Lr(or,function(e,t){nt.call(or.prototype,t)||(Oc[t]=e)}),Oc),{chain:!1}),or.VERSION="4.17.21",Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){or[e].placeholder=or}),Bt(["drop","take"],function(t,n){sr.prototype[t]=function(r){r=r===e?1:Ln(Iu(r),0);var i=this.__filtered__&&!n?new sr(this):this.clone();return i.__filtered__?i.__takeCount__=Un(r,i.__takeCount__):i.__views__.push({size:Un(r,E),type:t+(i.__dir__<0?"Right":"")}),i},sr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Bt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;sr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Bt(["head","last"],function(e,t){var n="take"+(t?"Right":"");sr.prototype[e]=function(){return this[n](1).value()[0]}}),Bt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");sr.prototype[e]=function(){return this.__filtered__?new sr(this):this[n](1)}}),sr.prototype.compact=function(){return this.filter(gc)},sr.prototype.find=function(e){return this.filter(e).head()},sr.prototype.findLast=function(e){return this.reverse().find(e)},sr.prototype.invokeMap=pi(function(e,t){return"function"==typeof e?new sr(this):this.map(function(n){return Gr(n,e,t)})}),sr.prototype.reject=function(e){return this.filter(Ha(xo(e)))},sr.prototype.slice=function(t,n){t=Iu(t);var r=this;return r.__filtered__&&(t>0||n<0)?new sr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=Iu(n))<0?r.dropRight(-n):r.take(n-t)),r)},sr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},sr.prototype.toArray=function(){return this.take(E)},Lr(sr.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=or[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(or.prototype[n]=function(){var n=this.__wrapped__,u=i?[1]:arguments,c=n instanceof sr,s=u[0],f=c||ru(n),l=function(e){var t=o.apply(or,Wt([e],u));return i&&p?t[0]:t};f&&r&&"function"==typeof s&&1!=s.length&&(c=f=!1);var p=this.__chain__,h=!!this.__actions__.length,m=a&&!p,d=c&&!h;if(!a&&f){n=d?n:new sr(this);var g=t.apply(n,u);return g.__actions__.push({func:Da,args:[l],thisArg:e}),new cr(g,p)}return m&&d?t.apply(this,u):(g=this.thru(l),m?i?g.value()[0]:g.value():g)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ru(i)?i:[],e)}return this[n](function(n){return t.apply(ru(n)?n:[],e)})}}),Lr(sr.prototype,function(e,t){var n=or[t];if(n){var r=n.name+"";nt.call(Zn,r)||(Zn[r]=[]),Zn[r].push({name:t,func:n})}}),Zn[Qi(e,m).name]=[{name:"wrapper",func:e}],sr.prototype.clone=function(){var e=new sr(this.__wrapped__);return e.__actions__=Wi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Wi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Wi(this.__views__),e},sr.prototype.reverse=function(){if(this.__filtered__){var e=new sr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},sr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ru(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Un(t,e+a);break;case"takeRight":e=Ln(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,u=o.end,c=u-a,s=r?u:a-1,f=this.__iteratees__,l=f.length,p=0,h=Un(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return Ii(e,this.__actions__);var m=[];e:for(;c--&&p<h;){for(var d=-1,g=e[s+=t];++d<l;){var v=f[d],y=v.iteratee,_=v.type,b=y(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}m[p++]=g}return m},or.prototype.at=Ia,or.prototype.chain=function(){return Sa(this)},or.prototype.commit=function(){return new cr(this.value(),this.__chain__)},or.prototype.next=function(){this.__values__===e&&(this.__values__=Su(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},or.prototype.plant=function(t){for(var n,r=this;r instanceof ur;){var i=Xo(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},or.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof sr){var n=t;return this.__actions__.length&&(n=new sr(this)),(n=n.reverse()).__actions__.push({func:Da,args:[ha],thisArg:e}),new cr(n,this.__chain__)}return this.thru(ha)},or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=function(){return Ii(this.__wrapped__,this.__actions__)},or.prototype.first=or.prototype.head,kn&&(or.prototype[kn]=function(){return this}),or}();kt?((kt.exports=An)._=An,At._=An):xt._=An}).call(this)},{buffer:"dskh"}],I6jy:[function(e,t,n){"use strict";function r(e){return(r="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})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(){o=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),a(o,n.prototype)}function i(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return function(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&&a(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=i(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var u=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!==r(e[e.length-1])&&(e=[].slice.call(e)).push(i(e,u)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},o.apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return c(t,e),t},f=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.getExpressionDocContext=n.getExpressionLine=n.getFileExtension=n.SupportedFileExtensions=n.AllMetaCommands=n.AllKeywords=n.Keywords=n.MetaCommands=n.SupportedUsingFileExtensions=n.SupportedDocumentContextValues=void 0;var l=e("./WerckmeisterAutoHintDb"),p=s(e("lodash"));n.SupportedDocumentContextValues={voice:"voice",document:"document",track:"track",accomp:"accomp",mod:"mod",voicingStrategy:"voicingStrategy"},n.SupportedUsingFileExtensions=[".lua",".template",".chords",".pitchmap",".config",".conductions",".part"],n.MetaCommands=p.fromPairs(p.map(l.getAutoHintDb(),function(e,t){return[t,t]})),n.Keywords=Object.assign({using:"using"},n.MetaCommands),n.AllKeywords=p.values(n.Keywords),n.AllMetaCommands=p.values(n.MetaCommands);var h=["(".concat(n.AllMetaCommands.join("|"),")\\s*:\\s*[^/;]*$"),"".concat(n.Keywords.using,"[^;]*$")],m=new RegExp(".*?(".concat(h.join("|"),")"),"s"),d=o(/(.*\/([0-9A-Z_a-z]+$))|(^([A-Za-z]+)$)/,{a:2,b:4}),g=/\.*?\{[^}]*$/,v=/\.*?\[[^\]]*$/;n.SupportedFileExtensions=[].concat(function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.SupportedUsingFileExtensions),[".sheet"]),n.getFileExtension=function(e){if(e)return(e.match(/^.*(\.\w+)$/)||[])[1]},n.getExpressionLine=function(e,t){var n;return f(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o,a,u,c,s,f,l;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=t.line;case 1:if(!(i>=0)){r.next=16;break}return o={line:i,col:0},r.next=5,e.getRange(o,t);case 5:if(a=r.sent,!(u=m.exec(a))){r.next=10;break}return c=u[1],r.abrupt("return",c.replace(/\n/g," "));case 10:if(!(p.findIndex(a,function(e){return"]"===e||"}"===e||";"===e})>=0)){r.next=13;break}return r.abrupt("break",16);case 13:--i,r.next=1;break;case 16:return r.next=18,e.getRange({line:t.line,col:0},t);case 18:if(s=r.sent,f=(null===(n=s.match(d))||void 0===n?void 0:n.groups)||{},!(l=f.a||f.b)){r.next=23;break}return r.abrupt("return",l);case 23:return r.abrupt("return","");case 24:case"end":return r.stop()}},r)}))},n.getExpressionDocContext=function(e,t){return f(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i={line:0,col:0},r.next=3,e.getRange(i,t);case 3:if(!(o=r.sent).match(g)){r.next=6;break}return r.abrupt("return",n.SupportedDocumentContextValues.voice);case 6:if(!o.match(v)){r.next=8;break}return r.abrupt("return",n.SupportedDocumentContextValues.track);case 8:return r.abrupt("return",n.SupportedDocumentContextValues.document);case 9:case"end":return r.stop()}},r)}))}},{"./WerckmeisterAutoHintDb":"Y3F9",lodash:"B1iE"}],zyF4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GMInstruments=void 0,n.GMInstruments=["Acoustic Grand Piano","Bright Acoustic Piano","Electric Grand Piano","Honky-tonk Piano","Electric Piano 1","Electric Piano 2","Harpsichord","Clavi","Celesta","Glockenspiel","Music Box","Vibraphone","Marimba","Xylophone","Tubular Bells","Dulcimer","Drawbar Organ","Percussive Organ","Rock Organ","Church Organ","Reed Organ","Accordion","Harmonica","Tango Accordion","Acoustic Guitar Nylon","Acoustic Guitar Steel","Electric Guitar Jazz","Electric Guitar Clean","Electric Guitar Muted","Overdriven Guitar","Distortion Guitar","Guitar harmonics","Acoustic Bass","Electric Bass Finger","Electric Bass Pick","Fretless Bass","Slap Bass 1","Slap Bass 2","Synth Bass 1","Synth Bass 2","Violin","Viola","Cello","Contrabass","Tremolo Strings","Pizzicato Strings","Orchestral Harp","Timpani","String Ensemble 1","String Ensemble 2","SynthStrings 1","SynthStrings 2","Choir Aahs","Voice Oohs","Synth Voice","Orchestra Hit","Trumpet","Trombone","Tuba","Muted Trumpet","French Horn","Brass Section","SynthBrass 1","SynthBrass 2","Soprano Sax","Alto Sax","Tenor Sax","Baritone Sax","Oboe","English Horn","Bassoon","Clarinet","Piccolo","Flute","Recorder","Pan Flute","Blown Bottle","Shakuhachi","Whistle","Ocarina","Lead 1 Square","Lead 2 Sawtooth","Lead 3 Calliope","Lead 4 Chiff","Lead 5 Charang","Lead 6 Voice","Lead 7 Fifths","Lead 8 Bass+Lead","Pad 1 New Age","Pad 2 Warm","Pad 3 Polysynth","Pad 4 Choir","Pad 5 Bowed","Pad 6 Metallic","Pad 7 Halo","Pad 8 Sweep","FX 1 Rain","FX 2 Soundtrack","FX 3 Crystal","FX 4 Atmosphere","FX 5 Brightness","FX 6 Goblins","FX 7 Echoes","FX 8 Sci-Fi","Sitar","Banjo","Shamisen","Koto","Kalimba","Bag pipe","Fiddle","Shanai","Tinkle Bell","Agogo","Steel Drums","Woodblock","Taiko Drum","Melodic Tom","Synth Drum","Reverse Cymbal","Guitar Fret Noise","Breath Noise","Seashore","Bird Tweet","Telephone Ring","Helicopter","Applause","Gunshot"]},{}],ykR4:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.CommandArgument=void 0;var a=e("../../Common"),u=e("./GMInstruments"),c=e("../../WerckmeisterAutoHintDb"),s=[a.Keywords.mod,a.Keywords.voicingStrategy,a.Keywords.do,a.Keywords.doOnce],f=[a.Keywords.volume,a.Keywords.pan],l=[].concat(f,s),p=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.environmentInspector=t,this.autoHintDb=c.getAutoHintDb()}return i(e,[{key:"getModName",value:function(e){e=e||"";var t=l.join("|"),n=new RegExp("\\s*(".concat(a.Keywords.modOnce,"|").concat(t,')\\s*:.*_use="?([a-zA-Z0-9]+)"?')).exec(e);return n||(n=new RegExp("\\s*(".concat(a.Keywords.modOnce,"|").concat(t,")\\s*:\\s*([a-zA-Z0-9]+)")).exec(e)),!n||n.length<2?"":n[2]}},{key:"getInstrumentConfModName",value:function(e){e=e||"";var t=l.join("|"),n=(new RegExp(".*(".concat(t,").*")).exec(e)||[])[1];if(n&&f.includes(n))return n;t=l.map(function(e){return"".concat(e,".*")}).join("|");var r=(new RegExp(".*(".concat(t,")")).exec(e)||[])[1];if(r){var i=r.match(/\s*_use="?([a-zA-Z0-9]+)"?/);return i&&i.length>1?i[1]:(t=l.join("|"),!(i=new RegExp("\\s*(".concat(t,")\\s*([a-zA-Z0-9]+)")).exec(r))||i.length<2?"":i[2])}}},{key:"isMod",value:function(e){return e===a.Keywords.mod||e===a.Keywords.modOnce||e===a.Keywords.voicingStrategy}},{key:"isInstrumentConf",value:function(e){return e===a.Keywords.instrumentConf}},{key:"getParameterSuggestion",value:function(e,t){var n=e.getParameter();return t&&(n=n.filter(function(e){return e.getName().startsWith(t)})),n.sort(function(e,t){return e.getName().localeCompare(t.getName())}).map(function(t){return{displayText:t.getName(),text:"_".concat(t.getName()),deprecated:t.getDeprecatedText(),command:e,description:t.getDescription()}})}},{key:"getInstrumentDefPcSuggestions",value:function(e,t,n){var r=u.GMInstruments.map(function(n,r){return{displayText:"".concat(n," (").concat(r,")"),text:r.toString(),command:e,parameter:t}});return n&&(r=r.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r}},{key:"getInstrumentDefGmNameSuggestions",value:function(e,t,n){var r=u.GMInstruments.map(function(n,r){return{displayText:"".concat(n," (").concat(r,")"),text:'"'.concat(n,'"'),command:e,parameter:t}});return n&&(r=r.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r}},{key:"getDeviceIdList",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.environmentInspector.getMidiOutputDevices();case 2:return i=r.sent,o=i.map(function(n){return{displayText:"".concat(n.name," (").concat(n.id,")"),text:n.id,command:e,parameter:t}}),n&&(o=o.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r.abrupt("return",o);case 6:case"end":return r.stop()}},r,this)}))}},{key:"getDeviceNameList",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.environmentInspector.getMidiOutputDevices();case 2:return i=r.sent,o=i.map(function(n){return{displayText:"".concat(n.name," (").concat(n.id,")"),text:'"'.concat(n.name,'"'),command:e,parameter:t}}),n&&(o=o.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r.abrupt("return",o);case 6:case"end":return r.stop()}},r,this)}))}},{key:"getValueSuggestion",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o,u,c;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.getParameter().filter(function(e){return e.getName()===t})[0]){r.next=3;break}return r.abrupt("return",[]);case 3:if(e.getName()!==a.Keywords.instrumentDef||"pc"!=t){r.next=5;break}return r.abrupt("return",this.getInstrumentDefPcSuggestions(e,i,n));case 5:if(e.getName()!==a.Keywords.instrumentDef||"gmInstrument"!=t){r.next=7;break}return r.abrupt("return",this.getInstrumentDefGmNameSuggestions(e,i,n));case 7:if(e.getName()!==a.Keywords.device||"usePort"!=t){r.next=11;break}return r.next=10,this.getDeviceIdList(e,i,n);case 10:return r.abrupt("return",r.sent);case 11:if(e.getName()!==a.Keywords.device||"useDevice"!=t){r.next=15;break}return r.next=14,this.getDeviceNameList(e,i,n);case 14:return r.abrupt("return",r.sent);case 15:if("web"!==this.environmentInspector.environment||e.getName()!==a.Keywords.device||"isType"!=t){r.next=17;break}return r.abrupt("return",[{command:e,displayText:"webPlayer",text:"webPlayer"}]);case 17:if("web"!==this.environmentInspector.environment||e.getName()!==a.Keywords.device||"useFont"!=t){r.next=19;break}return r.abrupt("return",(this.environmentInspector.webplayerPresets||[]).map(function(t){return{command:e,displayText:t,text:t}}));case 19:if(o=i.getType()||"",(u=o.match(/\[(.*)\]/))&&u[1]){r.next=23;break}return r.abrupt("return",[]);case 23:return c=u[1].split(",").map(function(e){return e.trim()}),n&&(c=c.filter(function(e){return e.startsWith(n)})),r.abrupt("return",c.map(function(t){return{displayText:t,text:'"'.concat(t,'"'),command:e,parameter:i}}));case 26:case"end":return r.stop()}},r,this)}))}},{key:"getSuggestions",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r,i,o,a,u,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",[]);case 2:if(n=e.match(/.*?(\w+)\s*:.*?_(\w*)(="?(\w*))?$/)){t.next=5;break}return t.abrupt("return",[]);case 5:if(r=(n[1]||"").trim(),i=void 0!==n[3],o=(n[2]||"").trim(),this.isMod(r)&&(r=this.getModName(e)),this.isInstrumentConf(r)&&(r=this.getInstrumentConfModName(e)),a=this.autoHintDb[r]){t.next=13;break}return t.abrupt("return",[]);case 13:if(!i){t.next=19;break}return u=(n[2]||"").trim(),c=(n[4]||"").trim(),t.next=18,this.getValueSuggestion(a,u,c);case 18:return t.abrupt("return",t.sent);case 19:return t.abrupt("return",this.getParameterSuggestion(a,o));case 20:case"end":return t.stop()}},t,this)}))}}]),e}();n.CommandArgument=p},{"../../Common":"I6jy","./GMInstruments":"zyF4","../../WerckmeisterAutoHintDb":"Y3F9"}],nviV:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.Command=void 0;var a=e("lodash"),u=e("../../WerckmeisterAutoHintDb"),c=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.commandDb=u.getAutoHintDb()}return i(e,[{key:"getSuggestions",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function t(){var r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.toLowerCase(),i=a(this.commandDb).filter(function(e,t){return t.toLowerCase().indexOf(r)>=0&&e.getDocumentContext().includes(n)}).value(),t.abrupt("return",i.map(function(e){return{displayText:e.getName(),text:e.getName(),description:e.getDescription(),url:e.getUrl()}}));case 3:case"end":return t.stop()}},t,this)}))}}]),e}();n.Command=c},{lodash:"B1iE","../../WerckmeisterAutoHintDb":"Y3F9"}],Tlxz:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e)||function(){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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(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)}}var a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return u(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.Using=void 0;var f=e("../../Common"),l=c(e("lodash")),p=e("../../WerckmeisterAutoHintDb").getPreInstalledAuxFiles(),h=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.fileInspector=t}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"ls",value:function(e,t){return s(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i,o,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.fileInspector.ls(e);case 2:return i=n.sent,(t=t.trim()).endsWith("/")&&t.length>1&&(t=l.trimEnd(t,"/")),(o=p[t])&&(a=i).push.apply(a,r(o.map(function(e){return{name:e.name,isDirectory:e.isDirectory||!1}}))),i=l.uniqBy(i,function(e){return e.name}),n.abrupt("return",i);case 9:case"end":return n.stop()}},n,this)}))}},{key:"getSuggestions",value:function(e,t,n){return s(this,void 0,void 0,regeneratorRuntime.mark(function n(){var r,i,o,a,u,c;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return",[]);case 2:if(e.match(/^\s*using\s*"{0,1}[^"]*$/)){n.next=5;break}return n.abrupt("return",[]);case 5:if(r=(e.match(/.+"(.*)/)||[])[1]){n.next=8;break}return n.abrupt("return",[]);case 8:return i=r?l.last(r.split("/")):"",n.next=11,t.getAbsolutePath();case 11:return o=n.sent,n.next=14,this.fileInspector.getParentPath(o);case 14:if(o=n.sent,a=r,!i){n.next=20;break}return n.next=19,this.fileInspector.getParentPath(r);case 19:a=n.sent;case 20:return n.next=22,this.fileInspector.resolve(o,a);case 22:return a=n.sent,n.next=25,this.ls(a,r);case 25:return u=n.sent,c=u.filter(function(e){return e.isDirectory||f.SupportedUsingFileExtensions.includes(f.getFileExtension(e.name))}),i&&(c=c.filter(function(e){return e.name.startsWith(i)})),n.abrupt("return",c.sort(function(e,t){return e.isDirectory&&!t.isDirectory?-1:!e.isDirectory&&t.isDirectory?1:e.name.localeCompare(t.name)}).map(function(e){return{displayText:e.name,text:e.name,file:e}}));case 29:case"end":return n.stop()}},n,this)}))}}]),e}();n.Using=h},{"../../Common":"I6jy",lodash:"B1iE","../../WerckmeisterAutoHintDb":"Y3F9"}],xTxX:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.DummyEnvironmentInspector=void 0;var a=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.environment="local"}return i(e,[{key:"getMidiOutputDevices",value:function(){return o(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}},e)}))}}]),e}();n.DummyEnvironmentInspector=a},{}],bvdo:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){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 i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(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,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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)}}var c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.LanguageFeatures=void 0;var s=e("./Common"),f=e("./features/autocomplete/CommandArgument"),l=e("./features/autocomplete/Command"),p=e("./features/autocomplete/Using"),h=e("./DummyEnvironmentInspector"),m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new h.DummyEnvironmentInspector;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.fileSystemInspector=t,this.environmentInspector=n,this.features={autoCompletes:[new p.Using(this.fileSystemInspector),new l.Command,new f.CommandArgument(this.environmentInspector)]}}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(e,[{key:"autoComplete",value:function(e){return c(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,o,a,u,c,f,l,p;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getCursor();case 2:return n=t.sent,t.next=5,s.getExpressionLine(e,n);case 5:if(o=t.sent){t.next=8;break}return t.abrupt("return",[]);case 8:return t.next=10,s.getExpressionDocContext(e,n);case 10:a=t.sent,u=[],c=i(this.features.autoCompletes),t.prev=13,c.s();case 15:if((f=c.n()).done){t.next=25;break}return l=f.value,t.next=19,l.getSuggestions(o,e,a);case 19:if(p=t.sent){t.next=22;break}return t.abrupt("continue",23);case 22:u.push.apply(u,r(p));case 23:t.next=15;break;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(13),c.e(t.t0);case 30:return t.prev=30,c.f(),t.finish(30);case 33:return t.abrupt("return",u);case 34:case"end":return t.stop()}},t,this,[[13,27,30,33]])}))}}]),e}();n.LanguageFeatures=m},{"./Common":"I6jy","./features/autocomplete/CommandArgument":"ykR4","./features/autocomplete/Command":"nviV","./features/autocomplete/Using":"Tlxz","./DummyEnvironmentInspector":"xTxX"}]},{},["bvdo"]);
39
+ var e;parcelRequire=function(t,n,r,i){var o,a="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function c(e,r){if(!n[e]){if(!t[e]){var i="function"==typeof parcelRequire&&parcelRequire;if(!r&&i)return i(e,!0);if(a)return a(e,!0);if(u&&"string"==typeof e)return u(e);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}f.resolve=function(n){return t[e][1][n]||n},f.cache={};var s=n[e]=new c.Module(e);t[e][0].call(s.exports,f,s,s.exports,this)}return n[e].exports;function f(e){return c(f.resolve(e))}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=t,c.cache=n,c.parent=a,c.register=function(e,n){t[e]=[function(e,t){t.exports=n},{}]};for(var s=0;s<r.length;s++)try{c(r[s])}catch(t){o||(o=t)}if(r.length){var f=c(r[r.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof e&&e.amd&&e(function(){return f})}if(parcelRequire=c,o)throw o;return c}({sarP:[function(e,t,n){!function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&quot;":'"'};function r(e){return e&&e.replace(/^\s+|\s+$/g,"")}function i(e){return e.replace(/(&(?:lt|gt|amp|apos|quot|#(?:\d{1,6}|x[0-9a-fA-F]{1,5}));)/g,function(e){if("#"===e[1]){var n="x"===e[2]?parseInt(e.substr(3),16):parseInt(e.substr(2),10);if(n>-1)return String.fromCharCode(n)}return t[e]||e})}function o(e,t,n){if(void 0!==n){var r=e[t];r instanceof Array?r.push(n):e[t]=t in e?[r,n]:n}}("object"==typeof n&&n||{}).fromXML=function(e,t){return function e(t,n){if("string"==typeof t)return t;var a=t.r;if(a)return a;var u,c=function(e,t){if(e.t){for(var n,a,u=e.t.split(/([^\s='"]+(?:\s*=\s*(?:'[\S\s]*?'|"[\S\s]*?"|[^\s'"]*))?)/),c=u.length,s=0;s<c;s++){var f=r(u[s]);if(f){n||(n={});var l=f.indexOf("=");if(l<0)f="@"+f,a=null;else{a=f.substr(l+1).replace(/^\s+/,""),f="@"+f.substr(0,l).replace(/\s+$/,"");var p=a[0];p!==a[a.length-1]||"'"!==p&&'"'!==p||(a=a.substr(1,a.length-2)),a=i(a)}t&&(a=t(f,a)),o(n,f,a)}}return n}}(t,n),s=t.f,f=s.length;if(c||f>1)u=c||{},s.forEach(function(t){"string"==typeof t?o(u,"#",t):o(u,t.n,e(t,n))});else if(f){var l=s[0];if(u=e(l,n),l.n){var p={};p[l.n]=u,u=p}}else u=t.c?null:"";return n&&(u=n(t.n||"",u)),u}(function(e){for(var t=String.prototype.split.call(e,/<([^!<>?](?:'[\S\s]*?'|"[\S\s]*?"|[^'"<>])*|!(?:--[\S\s]*?--|\[[^\[\]'"<>]+\[[\S\s]*?]]|DOCTYPE[^\[<>]*?\[[\S\s]*?]|(?:ENTITY[^"<>]*?"[\S\s]*?")?[\S\s]*?)|\?[\S\s]*?\?)>/),n=t.length,o={f:[]},a=o,u=[],c=0;c<n;){var s=t[c++];s&&h(s);var f=t[c++];f&&l(f)}return o;function l(e){var t=e.length,n=e[0];if("/"===n)for(var r=e.replace(/^\/|[\s\/].*$/g,"").toLowerCase();u.length;){var i=a.n&&a.n.toLowerCase();if(a=u.pop(),i===r)break}else if("?"===n)p({n:"?",r:e.substr(1,t-2)});else if("!"===n)"[CDATA["===e.substr(1,7)&&"]]"===e.substr(-2)?h(e.substr(8,t-10)):p({n:"!",r:e.substr(1)});else{var o=function(e){var t={f:[]},n=(e=e.replace(/\s*\/?$/,"")).search(/[\s='"\/]/);return n<0?t.n=e:(t.n=e.substr(0,n),t.t=e.substr(n)),t}(e);p(o),"/"===e[t-1]?o.c=1:(u.push(a),a=o)}}function p(e){a.f.push(e)}function h(e){(e=r(e))&&p(i(e))}}(e),t)}}()},{}],ol4r:[function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}Object.defineProperty(n,"__esModule",{value:!0}),n.DocParser=n.parseCommandDbJson=void 0;var s=e("from-xml"),f="https://werckme.github.io",l=function(){function e(t){a(this,e),this.rawObject=t}return c(e,[{key:"getName",value:function(){return(this.rawObject||{})["@name"]}},{key:"getIsOptional",value:function(){return"1"===(this.rawObject||{})["@optional"]}},{key:"getType",value:function(){return(this.rawObject||{})["@type"]}},{key:"getDescription",value:function(){var e=(this.rawObject||{})["#"];return e&&e.join?e.join("\n"):e}},{key:"getIsDeprecated",value:function(){return(this.rawObject||{})["@deprecated"].length>0}},{key:"getDeprecatedText",value:function(){return(this.rawObject||{})["@deprecated"]}}]),e}(),p=function(){function e(t){a(this,e),this.rawObject=t}return c(e,[{key:"getDocumentContext",value:function(){var e,t,n=((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["@where"];return n?n.split(",").map(function(e){return e.trim()}):[]}},{key:"getName",value:function(){var e,t;return((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["@name"]}},{key:"getUrl",value:function(){return"https://werckme.github.io/manual#".concat(this.getName())}},{key:"getDescription",value:function(){var e,t,n=((null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.command)||{})["#"];return n&&n.join&&(n=n.join("\n")),n}},{key:"getParameter",value:function(){var e,t,n=null===(t=null===(e=this.rawObject)||void 0===e?void 0:e.doc)||void 0===t?void 0:t.param;return n?(Array.isArray(n)||(n=[n]),(n||[]).map(function(e){return new l(e)})):[]}}]),e}();n.parseCommandDbJson=function(e){var t={},n=JSON.parse(e);for(var r in n)t[r]=new p(n[r].rawObject);return t};var h=function(){function e(){a(this,e),this.commandDb={}}return c(e,[{key:"getDocComment",value:function(e,t){var n,i=[],o=!1,a=r(e.split("\n"));try{for(a.s();!(n=a.n()).done;){var u=n.value,c=u.trim().startsWith(t);if(!o&&c&&(o=!0),o&&!c)break;c&&i.push(u.replace(t,"").trim())}}catch(p){a.e(p)}finally{a.f()}return i.join("\n")}},{key:"normalizeText",value:function(e){return e.replace(/(\[.*\])\(\s*\/{0,1}manual(.*)\)/g,"$1(".concat(f,"/manual$2)")).replace(/(\[.*\])\((?!(\s*http|\s*https|\s*ftp))\s*(.*)\)/g,"$1(".concat(f,"/manual$3)")).replace(/\\n/g,"")}},{key:"parseDocumentText",value:function(e){e=this.normalizeText(e);var t=s.fromXML("<doc>".concat(e,"</doc>")),n=new p(t),r=n.getName();r&&(this.commandDb[r]=n)}},{key:"parseLua",value:function(e){e=this.normalizeText(e);var t=this.getDocComment(e,"--");t&&this.parseDocumentText(t)}},{key:"parseHpp",value:function(e){e=this.normalizeText(e);var t=this.getDocComment(e,"///");t&&this.parseDocumentText(t)}}]),e}();n.DocParser=h},{"from-xml":"sarP"}],f88W:[function(e,t,n){},{}],Y3F9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getPreInstalledAuxFiles=n.getAutoHintDb=void 0;var r=e("./parser/docParser"),i=(e("fs"),r.parseCommandDbJson('{"device":{"rawObject":{"doc":{"command":{"@name":"device","@where":"document","#":"Defines a device which can be used when adding instruments (see [instrumentDef](https://werckme.github.io/manual#instrumentDef))\\nsee [instrumentDef](https://werckme.github.io/manual#instrumentDef), [instrument](https://werckme.github.io/manual#instrument)\\n#### example\\ndefine an device, an instrument and assign it to a track.\\n```\\ndevice: MyDevice midi 0;\\ninstrumentDef: organ _onDevice=MyDevice _ch=0 _pc=16;\\n[\\ninstrument: organ;\\n{\\nc d e f\\n}\\n]\\n```\\n**Fluidsynth**\\nIf you want to use [fluidSynth](http://www.fluidsynth.org) as output device, you can achieve this with a command like this:\\n`device: MyDevice fluidSynth _useFont=\\"PATH OF A SOUNDFONT FILE\\";`\\nOn mac, make sure that you have fluidsynth installed."},"param":[{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."},{"@name":"isType","@position":"1","@type":"[midi,fluidSynth]","#":"The type of the device."},{"@name":"usePort","@position":"2","@optional":"1","@type":"0..N","#":"The midi port id of your device. You can get a list of your connected devices, by executing `sheetp --list`. Alternatively you can use `useDevice` instead."},{"@name":"useDevice","@position":"","@optional":"1","@type":"text","#":"The name of the midi port of your device. You can get a list of your connected devices, by executing `sheetp --list`. It is not necessary to give the full name, a subset will match."},{"@name":"withOffset","@position":"","@optional":"1","@type":"0..N","#":"Defines an offset in milliseconds. Can be used to keep different devices in sync."},{"@name":"useFont","@position":"","@optional":"1","@type":"a file path","#":"Only valid if isType=`fluidsynth`. Sets the location of the soundfont file, which will be used by FluidSynth"}]}}},"instrumentConf":{"rawObject":{"doc":{"command":{"@name":"instrumentConf","@where":"document","#":"With `instrumentConf` you are able to setup a specific instrument.\\nFollowing settings can be applied:\\n* volume\\n* pan\\n* cc\\n* voicing strategy\\n* mod\\n* velocity remap\\n#### examples\\n##### mixed settings\\n`instrumentConf: piano volume 100 pan 50;`\\n##### setup a mod\\n`instrumentConf: piano mod myLuaMod someValue; --the `someValue` argument belongs to \\"myLuaMod\\"`\\n##### setup a velocity remap\\nWith `remapVelocity` you are able to change the velocity values behind `ppppp..fffff` for a specific instrument.\\nIn the example below the velocity for `p` will be set to 100 and the value for `f` will be set to 10.\\n> this approach is deprecated, use [conduction rules](https://werckme.github.io/manual#conduction-rules) instead\\nThe value range is 0..100. (100=127 Midi velocity)\\n`instrumentConf: _set=remapVelocity _p=100 _f=10;`"},"param":{"@name":"for","@position":"0","#":"The name of the target instrument. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related setting."}}}},"mod":{"rawObject":{"doc":{"command":{"@name":"mod","@where":"voice","#":"Adds a modification to the track. Every `mod` statement adds a further modification to the related voice.\\nIf you want to use ony one modification at the time use [do](https://werckme.github.io/manual#do) instead.\\n#### examples\\n`/mod: arpeggio/`\\nMods can be external lua scripts, or one of these internal mods:\\n##### Bend\\nPerforms a pitch bend from or to the pitch of a note. The value range is 0..100 where 50 means the pichbend center.\\n```language=Werckmeister,type=single,tempo=140\\n/doOnce: bend _from=0/ c1 | /doOnce: bend _to=0/ c1\\n```\\n##### Arpeggio\\nPerforms an arpeggio over a given chord.\\n**Arpeggio is deprecated. Use the lua mod [myArpeggio](https://werckme.github.io/manual#myarpeggio) instead.**"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"modOnce":{"rawObject":{"doc":{"command":{"@name":"modOnce","@where":"voice","#":"Like [mod](https://werckme.github.io/manual#mod). But with the difference, that the loaded mod will be only executed once for the following event.\\n#### examples\\n`/modOnce: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"beginTag":{"rawObject":{"doc":{"command":{"@name":"beginTag","@where":"voice","#":"Begins a tag region where its including events will receive the given tags. See [endTag](https://werckme.github.io/manual/#endTag).\\nExample: TBD"},"param":{"@name":"tags","@position":"0","@type":"text","#":"a space separated list of tag names"}}}},"cue":{"rawObject":{"doc":{"command":{"@name":"cue","@where":"voice","#":"adds a cue MIDI meta message to the corresponding midi track\\n#### examples\\n`/cue: cueText/`\\n> If a cue was visited several times during a repeat or jump an additional repeat index will be added.\\n> For example:\\n> `/cue: myCue/ c d e f :|` will create two cue MIDI messages: \\"myCue\\" and \\"myCue2\\"\\n>"},"param":{"@name":"text","@type":"text","#":"the text which appears in the MIDI message"}}}},"instrumentSection":{"rawObject":{"doc":{"command":{"@name":"instrumentSection","@where":"document","#":["Layers arbitrary instruments into one.\\nsee [instrumentDef](#instrumentDef), [instrument](https://werckme.github.io/manual#instrument), [device](https://werckme.github.io/manual#device)\\n#### example\\ncreate 3 instruments and assign them to the section `myNewInstrument`.","```language=Werckmeister\\ntempo: 120;\\ndevice: MyDevice midi _usePort=0;\\ninstrumentDef:piano _onDevice=MyDevice _ch=0 _pc=0;\\ninstrumentDef:guitar _onDevice=MyDevice _ch=1 _pc=29;\\ninstrumentDef:organ _onDevice=MyDevice _ch=2 _pc=16;\\ninstrumentSection: myNewInstrument piano guitar organ;\\n\\n[\\ninstrument: myNewInstrument;\\n{\\na,,1 | a, | d#,~ | &\\n}\\n]\\n```"]},"param":{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."}}}},"instrumentDef":{"rawObject":{"doc":{"command":{"@name":"instrumentDef","@where":"document","#":"Adds a new MIDI instrument.\\nsee [instrument](https://werckme.github.io/manual#instrument), [device](https://werckme.github.io/manual#device)\\n#### example\\ndefine an device, an instrument and assign it to a track.\\n```\\ndevice: MyDevice midi 0;\\ninstrumentDef: organ _onDevice=MyDevice _ch=0 _pc=16;\\n[\\ninstrument: organ;\\n{\\nc d e f\\n}\\n]\\n```"},"param":[{"@name":"setName","@position":"0","@type":"text","#":"An arbitary name."},{"@name":"onDevice","@position":"1","@type":"text","#":"The device which to use (The name of the device, see [device](https://werckme.github.io/manual#device))."},{"@name":"ch","@position":"2","@type":"0..15","#":"The MIDI channel."},{"@name":"bankMsb","@position":"3","@type":"0..127","#":"A MIDI `bank select MSB` value."},{"@name":"pc","@position":"4","@type":"0..127","#":"A MIDI `program change` value."},{"@name":"bankLsb","@type":"0..127","#":"A MIDI `bank select LSB` value."},{"@name":"cc","@type":"0..127","@deprecated":"use bankMsb instead","#":"A MIDI `bank select MSB. Deprecated use bankMsb instead` value."},{"@name":"gmInstrument","@type":"text","#":"You can use a GM instrument name instead of a pc number. It is not necessary to give the full name, a subset will match. You can find a complete list of instrument names here: [GM Instruments](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/gm_instrument_names.md)."}]}}},"endTag":{"rawObject":{"doc":{"command":{"@name":"endTag","@where":"voice","#":"Ends a tag region where its including events will receive the given tags. See [beginTag](https://werckme.github.io/manual/#beginTag).\\nExample: TBD"},"param":{"@name":"tags","@position":"0","@type":"text","#":"a space separated list of tag names"}}}},"execute":{"rawObject":{"doc":{"command":{"@name":"execute","@where":"voice","#":"Executes a lua function.\\n#### examples\\ntbd."},"param":{"@name":"name","@position":"0","@type":"text","#":"The name of the lua function. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"fadeCC":{"rawObject":{"doc":{"command":{"@name":"fadeCC","@where":"voice","#":"Fades a CC value from a start to an end value.\\n#### examples\\n`/fadeCC: _nr=1 _from=0 _to=100 _duration=2/ --modulation by controller number`\\n`/fadeCC: _name=\\"Modulation\\" _from=0 _to=100 _duration=2/ --modulation value by controller name`\\n#### supported CC names\\n* BankSelectMSB\\n* Modulation\\n* BreathController\\n* FootController\\n* PortamentoTime\\n* MainVolume\\n* Balance\\n* Panorama\\n* Expression\\n* EffectControl1\\n* EffectControl2\\n* BankSelectLSB\\n* Hold1\\n* Portamento\\n* Sostenuto\\n* SoftPedal\\n* Legato\\n* Hold2\\n* PortamentoControl\\n* Effects1Depth\\n* Effects2Depth\\n* Effects3Depth\\n* Effects4Depth\\n* Effects5Depth\\n* AllSoundsOff\\n* ControllerReset\\n* LocalControl\\n* AllNotesOff\\n* OmniOff\\n* OmniOn\\n* MonoOn\\n* MonoOff\\n![supported curve types](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/curve-types.png)"},"param":[{"@name":"nr","@type":"0..N","@position":"0","@optional":"0","#":"The number of the controller"},{"@name":"from","@type":"0..127","@position":"1","@optional":"0","#":"the start value"},{"@name":"to","@type":"0..127","@position":"2","@optional":"0","#":"the end value"},{"@name":"name","@type":"text","@position":"3","@optional":"1","#":"a controller name, can be used instead of a number. (supported names, see list below)"},{"@name":"curve","@position":"4","@default":"lin","@optional":"1","@type":"lin,quad,cub,quart,quint,exp","#":"The fade curve type."}]}}},"fill":{"rawObject":{"doc":{"command":{"@name":"fill","@where":"accomp","#":["Plays a template only once. Is also able to replace the performance of another template during its playback.\\nUseful for fill ins.","```language=Werckmeister\\nusing \\"chords/default.chords\\";\\ntempo: 90;\\ndevice: MyDevice midi _usePort=0;\\ninstrumentDef:drums _onDevice=MyDevice _ch=9 _pc=0;\\n\\n[\\ntype: template;\\nname: drums.fill;\\ninstrument: drums;\\n{\\n(c, & &)4 (b,, & &)4 (a,, & &)4 (g,, & &)4 |\\n}\\n]\\n\\n[\\ntype: template;\\nname: drums.main;\\ninstrument: drums;\\n{\\nr8 f#,, r & r & r & |\\n}\\n{\\nr4 d,, r4 & |\\n}\\n{\\nc,,4 r & r |\\n}\\n]\\n\\n[\\ntype: accomp;\\n{\\n/template: drums.main/\\nC |\\n/fill: drums.fill/ -- play fill and drum beat together\\nC | C |\\n/fill: drums.fill _replace=\\"drums.main\\"/ -- play only the fill in\\nC | C |\\n}\\n]\\n```"]},"param":{"@name":"replace","@type":"text","#":"the name of the template to be replaced by the fill"}}}},"jump":{"rawObject":{"doc":{"command":{"@name":"jump","@where":"voice","#":["Jumps to a previous defined mark See [mark](https://werckme.github.io/manual/#mark).\\n#### example","```language=Werckmeister\\ndevice: _usePort=0 _setName=MyDevice _isType=midi;\\ninstrumentDef: _setName=piano _onDevice=MyDevice _ch=0 _pc=1 _cc=8;\\n[\\ninstrument: piano;\\n{\\n/signature: 5 4/\\n/mark: A/ -- valid & unique to this voice\\nc4 d e f g |\\n/jump: A/ -- jumps to A once\\na b c\'2\\n}\\n]\\n```"]},"param":[{"@name":"to","@position":"0","@type":"text","#":"the destination marker"},{"@name":"ignore","@position":"","@optional":"1","@type":"0..100","#":"Ignores the jump N times"},{"@name":"repeat","@position":"","@optional":"1","@type":"0..100","#":"Repeats the jump N times. (A repeat value of 1 performs 2 jumps)"}]}}},"mark":{"rawObject":{"doc":{"command":{"@name":"mark","@where":"voice","#":["adds a mark to the voice. Use it in combination with [jump](https://werckme.github.io/manual/#jump).\\n#### examples","```language=Werckmeister\\ndevice: _usePort=0 _setName=MyDevice _isType=midi;\\ninstrumentDef: _setName=piano _onDevice=MyDevice _ch=0 _pc=1 _cc=8;\\n[\\ninstrument: piano;\\n{\\n/signature: 5 4/\\n/mark: A/ -- valid & unique to this voice\\nc4 d e f g |\\n/jump: A/ -- jumps to A once\\na b c\'2\\n}\\n]\\n```"]},"param":{"@name":"name","@position":"0","@type":"word","#":"the name of the mark"}}}},"cc":{"rawObject":{"doc":{"command":{"@name":"cc","@where":"voice","#":"Adds a midi CC message.\\n#### examples\\n`/cc: _nr=1 _value=10/ --modulation by controller number`\\n`/cc: _name=\\"modulation\\" _value=10/ --modulation value by controller name`\\n#### supported CC names\\n* BankSelectMSB\\n* Modulation\\n* BreathController\\n* FootController\\n* PortamentoTime\\n* MainVolume\\n* Balance\\n* Panorama\\n* Expression\\n* EffectControl1\\n* EffectControl2\\n* BankSelectLSB\\n* Hold1\\n* Portamento\\n* Sostenuto\\n* SoftPedal\\n* Legato\\n* Hold2\\n* PortamentoControl\\n* Effects1Depth\\n* Effects2Depth\\n* Effects3Depth\\n* Effects4Depth\\n* Effects5Depth\\n* AllSoundsOff\\n* ControllerReset\\n* LocalControl\\n* AllNotesOff\\n* OmniOff\\n* OmniOn\\n* MonoOn\\n* MonoOff"},"param":[{"@name":"nr","@type":"0..N","@position":"0","@optional":"1","#":"The number of the controller"},{"@name":"value","@type":"0..127","@position":"1","@optional":"0","#":"the controller values"},{"@name":"name","@type":"text","@position":"2","@optional":"1","#":"a controller name, can be used instead of a number. (supported names, see list below)"}]}}},"setChord":{"rawObject":{"doc":{"command":{"@name":"setChord","@where":"voice","#":"Sets a chord context to the current voice to be able to use relative [degrees](https://werckme.github.io/manual#degree-events) instead of absolute notes.\\nThe given chord name must be defined in a *.chords file.\\n#### example\\n```language=Werckmeister,type=full\\nusing \\"/chords/default.chords\\";\\ndevice: myDevice midi _usePort=0;\\ninstrumentDef: piano myDevice _ch=0 _pc=0;\\ntempo: 120;\\n[\\ninstrument: piano;\\n{\\n/chord: \\"C-9\\"/\\nI III V VII | II\'1\\n}\\n]\\n```"},"param":{"@name":"name","@type":"text","#":"the chord name"}}}},"fade":{"rawObject":{"doc":{"command":{"@name":"fade","@where":"voice","#":"Fades the volume over a given duration in quarters.\\n#### example\\n```language=Werckmeister,type=full\\ndevice: myDevice midi _usePort=0;\\ninstrumentDef: organ myDevice _ch=0 _pc=16;\\ntempo: 75;\\n[\\ninstrument: organ;\\n{\\n\\\\fff\\n/fade: _from=0 _to=100 _duration=4/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quad\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"cub\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quart\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"quint\\"/\\nc1 |\\n/fade: _from=0 _to=100 _duration=4 _curve=\\"exp\\"/\\nc1 |\\n}\\n]\\n```\\n![supported curve types](https://raw.githubusercontent.com/werckme/werckmeister/main/assets/curve-types.png)"},"param":[{"@name":"duration","@position":"0","@type":"0..N","#":"the duration in quarters."},{"@name":"from","@position":"1","@default":"0","@type":"0..100","#":"The source volume value."},{"@name":"to","@position":"2","@default":"100","@type":"0..100","#":"The target volume value."},{"@name":"curve","@position":"3","@default":"lin","@type":"lin,quad,cub,quart,quint,exp","#":"The fade curve type."}]}}},"instrument":{"rawObject":{"doc":{"command":{"@name":"instrument","@where":"track, voice","#":"Set or change the instrument of a track.\\n#### examples\\n**set an instrument for a track**\\n```\\n[\\ninstrument: myInstrument;\\n{\\nc d e f\\n}\\n]\\n```\\n**change current instrument within a track**\\n```\\n[\\n{\\nc d e f |\\n/instrument: myOtherInstrument/\\nc d e f\\n}\\n]\\n```"},"param":{"@name":"use","@position":"0","@type":"text","#":"The instrument name."}}}},"pan":{"rawObject":{"doc":{"command":{"@name":"pan","@where":"voice","#":"set the pan of the current track\\n#### example\\n`/pan: 50/`"},"param":{"@name":"to","@position":"0","@type":"0..100","#":"The pan value. Where 50 means the center"}}}},"signature":{"rawObject":{"doc":{"command":{"@name":"signature","@where":"voice","#":"Set the time signature of the current track.\\n#### example\\n`/signature: 3 4/`"},"param":[{"@name":"upper","@position":"0","#":"The upper value of the signature."},{"@name":"lower","@position":"1","#":"The lower value of the signature."}]}}},"do":{"rawObject":{"doc":{"command":{"@name":"do","@where":"voice","#":"Such as [mod](https://werckme.github.io/manual#mod)&nbsp;`do` adds a modification to the track.\\nThe difference is: every `mod` command adds a further modification to a voice.\\n`do` replaces the previous modification.\\n#### example\\n`/do: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"doOnce":{"rawObject":{"doc":{"command":{"@name":"doOnce","@where":"voice","#":"Like [do](https://werckme.github.io/manual#do). But with the difference, that the loaded mod will be only executed once for the following event.\\n#### example\\n`/doOnce: arpeggio/`"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the modification to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related modification."}}}},"tempo":{"rawObject":{"doc":{"command":{"@name":"tempo","@where":"document, track","#":"`tempo` defines or changes the current tempo.\\n#### example\\n`tempo: 120;`\\nIt is also possible to set different tempo values for several tracks:\\n[see here](https://werckme.github.io/manual#tempo)"},"param":{"@name":"bpm","@position":"0","#":"The tempo bpm value."}}}},"voicingStrategy":{"rawObject":{"doc":{"command":{"@name":"voicingStrategy","@where":"voice","#":"Adds a modification to the track.\\n#### example\\n`/voicingStrategy: asNotated/`\\nVoicing strategies can be external lua scripts, or one of these internal strategies:\\n* asNotated\\n* simpleGuitar"},"param":{"@name":"use","@position":"0","@type":"text","#":"The name of the strategy to load. This is the only \\"unique\\" parameter for this command. All further parameters are specific to its related strategy."}}}},"volume":{"rawObject":{"doc":{"command":{"@name":"volume","@where":"voice","#":"set the volume of the current instrument\\n#### examples\\n`/volume: 50/`"},"param":{"@name":"to","@position":"0","@type":"0..100","#":"The volume value."}}}},"drumRudiments":{"rawObject":{"doc":{"command":{"@name":"drumRudiments","@where":"mod","@using":"lua/mod/drumRudiments.lua","#":"Implements a collection of different drum rudiments. ([see Wikipedia](https://en.wikipedia.org/wiki/Drum_rudiment))\\nYou can specify which notes are for `L` and `R` and performing duration.\\nThis will be achieved by using an chord as source material.\\nThe chord pitches will be used for `L` and `R`.\\nThe length of the chord event defines over which time the rudiment will be peformed.\\nAn event tag specifies which rudiment will be performed.\\nFor example:\\nThis plays one paradiddle over a length of 1 quarter\\nusing `sn1` for R and `sn2` for L:\\n```\\n/mod: drumRudiments/\\nR L\\n\\"paradiddle\\"@<\\"sn1\\" \\"sn2\\">4\\n```\\nExamples:\\n**a single paradiddle**\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 150;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- a paradiddle (RLRR) with c\' for R and c for L\\n\\"paradiddle\\"@<c\' c>1\\n}\\n]\\n```\\n**repeating**\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- performs 4 paradiddles (RLRR LRLL RLRR LRLL) with c\' for R and c for L\\n\\"4x paradiddle\\"@<c\' c>1\\n}\\n]\\n```\\n**orchestration**\\nIf you want to orchestrate a rudiment over a drum set,\\nyou are able to define more R & L notes. *(The total number of the notes has to be even.)*\\n```language=Werckmeister\\nusing \\"lua/mods/drumRudiments.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=118;\\n[\\ninstrument: piano;\\n{\\n/mod: drumRudiments/\\n-- performs 4 paradiddles (RLRR LRLL RLRR LRLL) with\\n-- c\' for R1 and c for L1\\n-- and c, for R2 and c,, for L2.\\n-- The final sequence will be: c\'(R1) c(L1) c,(R2) c,,(R1) ...\\n\\"4x paradiddle\\"@<c\' c c, c,,>1\\n}\\n]\\n```\\n**Supported Rudiments**\\n<ul style=\\"font-size: 0.9em;\\">\\n<li>singleStrokeRoll</li>\\n<li>doubleStrokeRoll</li>\\n<li>trippleStrokeRoll</li>\\n<li>fiveStrokeRoll</li>\\n<li>singleStrokeFour</li>\\n<li>singleStrokeSeven</li>\\n<li>multipleBounceRoll</li>\\n<li>sixStrokeRoll</li>\\n<li>sevenStrokeRoll</li>\\n<li>nineStrokeRoll</li>\\n<li>tenStrokeRoll</li>\\n<li>elevenStrokeRoll</li>\\n<li>thirteenStrokeRoll</li>\\n<li>fifteenStrokeRoll</li>\\n<li>seventeenStrokeRoll</li>\\n<li>paradiddle</li>\\n<li>doubleParadiddle</li>\\n<li>trippleParadiddle</li>\\n<li>paradiddlediddle</li>\\n<li>flam</li>\\n<li>flamAccent</li>\\n<li>flamTap</li>\\n<li>flamacue</li>\\n<li>flamParadiddle</li>\\n<li>singleFlammedMill</li>\\n<li>pataflafla</li>\\n<li>swissArmytriplet</li>\\n<li>invertedFlamTap</li>\\n<li>flamDrag</li>\\n<li>singleDragTap</li>\\n<li>doubleDragTap</li>\\n<li>lesson25</li>\\n<li>singleDragadiddle</li>\\n<li>dragParadiddle1</li>\\n<li>dragParadiddle2</li>\\n<li>singleRatamacue</li>\\n<li>doubleRatamacue</li>\\n<li>trippleRatamacue</li>\\n</ul>"},"param":[{"@name":"velocityFactorAccented","@optional":"1","@type":"0..1","#":"The velocity factor for accented notes (Default=1)"},{"@name":"velocityFactorUnaccented","@optional":"1","@type":"0..1","#":"The velocity factor for unaccented notes (Default=0.7)"},{"@name":"velocityFactorGraceNote","@optional":"1","@type":"0..1","#":"The velocity factor for accented notes (Default=1)"},{"@name":"flamOffset","@optional":"1","@type":"0..N","#":"The offset in quartes when to perform the grace note before the actual note (Default=0.05)"},{"@name":"dragOffset","@optional":"1","@type":"0..N","#":"The offset in quartes when to perform the two grace notes before the actual note (Default=0.05)"}]}}},"guitarStroke":{"rawObject":{"doc":{"command":{"@name":"guitarStroke","@where":"mod","@using":"lua/mod/guitarStroke.lua","#":"Simulates guitar strokes as mini arpeggios.\\n*Note: the alternate mode works only if this mod is set via instrumentConf.*\\n```\\n-- does not work:\\n[\\n{\\n/mod: guitarStroke _mode=alternate/\\n}\\n]\\n```\\n```\\n-- does work:\\ninstrumentConf: myInstrument mod guitarStroke _mode=alternate;\\n```\\n**Example**\\n```language=Werckmeister\\nusing \\"lua/mods/guitarStroke.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=24;\\ninstrumentConf: piano mod guitarStroke _mode=alternate _value=16;\\n[\\ninstrument: piano;\\n{\\n<c e g b>4 <c e g b>4 <c eb g bb>2 | <c eb g bb>2 <c eb g bb>2\\n}\\n]\\n```"},"param":[{"@name":"direction","@optional":"1","@type":"[up,down,alternate]","#":"Specifies the start direction of the stroke"},{"@name":"value","@optional":"1","@type":"[1,2,4,8,...]","#":"the duration of one arpeggio event. (Default=64)"},{"@name":"mode","@optional":"1","@type":"[normal,alternate]","#":"Deprecated: Use _direction=alternate instead. Perform only one stroke direction (normal) or alternates between up and down. (Default=normal)"}]}}},"legato":{"rawObject":{"doc":{"command":{"@name":"legato","@where":"mod","@using":"lua/mod/legato.lua","#":"Performs every note legato. It is also possible to tag single notes.\\nIf a tag is given, only the tagged notes are performed legato.\\n```language=Werckmeister\\nusing \\"lua/mods/legato.lua\\";\\ntempo: 140;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: legato _forTag=leg _amount=100/\\n-- only the `d` will be performed legato.\\nc \\"leg\\"@d e f\\n}\\n]\\n```"},"param":[{"@name":"forTag","@optional":"1","@type":"text","#":"Specifies a tag name. If set only events with this tag name will be affected by the legato mod."},{"@name":"amount","@optional":"1","@type":"0..100","#":"The ammount of the legato effect"}]}}},"myArpeggio":{"rawObject":{"doc":{"command":{"@name":"myArpeggio","@where":"mod","@using":"lua/mod/myArpeggio.lua","#":"A simple arpeggio implementation.\\n**Example**\\n```language=Werckmeister\\nusing \\"lua/mods/myArpeggio.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/do: myArpeggio/\\n<c e g b>2\\n/do: myArpeggio _direction=down/\\n<c eb g bb>2\\n}\\n]\\n```"},"param":[{"@name":"style","@optional":"1","@type":"[normal,legato]","#":"Performs the arpeggio normal or legato"},{"@name":"direction","@optional":"1","@type":"[up,down]","#":"the direction of the arpeggio. (Default=up)"}]}}},"staccato":{"rawObject":{"doc":{"command":{"@name":"staccato","@where":"mod","@using":"lua/mod/staccato.lua","#":"Performs every note staccato. It is also possible to tag single notes.\\nIf a tag is given, only the tagged notes are performed staccato.\\n```language=Werckmeister\\nusing \\"lua/mods/staccato.lua\\";\\ntempo: 140;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: staccato _forTag=stac _amount=100/\\n-- only the `d` will be performed staccato.\\nc \\"stac\\"@d e f\\n}\\n]\\n```"},"param":[{"@name":"forTag","@optional":"1","@type":"text","#":"Specifies a tag name. If set only events with this tag name will be affected by the staccato mod."},{"@name":"amount","@optional":"1","@type":"0..100","#":"The ammount of the staccato effect"}]}}},"swing":{"rawObject":{"doc":{"command":{"@name":"swing","@where":"mod","@using":"lua/mod/swing.lua","#":"Performs a swing groove.\\n```language=Werckmeister\\nusing \\"lua/mods/swing.lua\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef: piano MyDevice _ch=0 _pc=0;\\n[\\ninstrument: piano;\\n{\\n/mod: swing/\\nc8 c c c c c c c\\n}\\n]\\n```"},"param":[{"@name":"grid","@optional":"1","@type":"[8, 16]","#":"Performs the swing offset either on 8th or 16th. (Default=8)"},{"@name":"offset","@optional":"1","@type":"0..100","#":"The ammount of the swing offset"}]}}},"guitar":{"rawObject":{"doc":{"command":{"@name":"guitar","@where":"voicingStrategy","@using":"lua/voicings/guitar.lua","#":"Tries to simulate the chord voicing of an guitar.\\n```language=Werckmeister\\nusing \\"/lua/voicings/guitar.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: guitar/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}},"inversion":{"rawObject":{"doc":{"command":{"@name":"inversion","@where":"voicingStrategy","@using":"lua/voicings/inversion.lua","#":"creates an inversion by moving the lowest note an octave hihgher.\\n```language=Werckmeister\\nusing \\"/lua/voicings/inversion.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: inversion/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":[{"@name":"level","@optional":"1","@type":"number","#":"level of inversion"},{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}]}}},"simple":{"rawObject":{"doc":{"command":{"@name":"simple","@where":"voicingStrategy","@using":"lua/voicings/simple.lua","#":"The simple approach with no strategy.\\n```language=Werckmeister\\nusing \\"/lua/voicings/simple.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: simple/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}},"voicelead":{"rawObject":{"doc":{"command":{"@name":"voicelead","@where":"voicingStrategy","@using":"lua/voicings/voicelead.lua","#":"Tries to simulates a voice leading approach:\\nthe octaves of a chord are rearranged, so that the actual pitch distance between the previous chord is kept minimal.\\n```language=Werckmeister\\nusing \\"/lua/voicings/voicelead.lua\\";\\nusing \\"/chords/default.chords\\";\\ntempo: 120;\\ndevice: MyDevice midi 0;\\ninstrumentDef:piano MyDevice _ch=0 _pc=0;\\n[\\ntype: template;\\nname: myTemplate;\\ninstrument: piano;\\n{\\n/voicingStrategy: voicelead/\\n<I II III IV V VI VII>1\\n}\\n]\\n[\\ntype: accomp;\\n{\\n/template: myTemplate/\\nC | F | G | C |\\n}\\n]\\n```"},"param":{"@name":"range","@optional":"1","@type":"[contrabass,bass,baritone,tenor,alto,mezzosoprano,soprano]","#":"If given the strategy tries to keeps the range by shifting the octave of the chord."}}}}}'));n.getAutoHintDb=function(){return i};var o=JSON.parse('{"/":[{"name":"chords","isDirectory":true},{"name":"lua","isDirectory":true},{"name":"pitchmaps","isDirectory":true},{"name":"templates","isDirectory":true}],"/chords":[{"name":"default.chords"}],"/lua/com":[{"name":"com.lua"},{"name":"globals.lua"},{"name":"inspect.lua"},{"name":"tests.lua"}],"/lua/mods":[{"name":"drumRudiments.lua"},{"name":"guitarStroke.lua"},{"name":"legato.lua"},{"name":"myArpeggio.lua"},{"name":"staccato.lua"},{"name":"swing.lua"}],"/lua/voicings":[{"name":"com.lua"},{"name":"guitar.lua"},{"name":"inversion.lua"},{"name":"simple.lua"},{"name":"voicelead.lua"}],"/lua":[{"name":"com","isDirectory":true},{"name":"mods","isDirectory":true},{"name":"voicings","isDirectory":true}],"/pitchmaps":[{"name":"battery3.tight.pitchmap"},{"name":"defaultMIDI.pitchmap"},{"name":"defaultMidiDrumMap.pitchmap"}],"/templates":[{"name":"bass.blues.template"},{"name":"bass.bossanova.template"},{"name":"bass.country.template"},{"name":"bass.disco.template"},{"name":"bass.jazzSwing.template"},{"name":"bass.reggae.template"},{"name":"bass.soca.template"},{"name":"bossanova.template"},{"name":"countryschlager1.template"},{"name":"drums.bossanova.template"},{"name":"drums.country.template"},{"name":"drums.disco.template"},{"name":"drums.jazzSwing.template"},{"name":"drums.purdie.template"},{"name":"drums.reggae.template"},{"name":"drums.soca.template"},{"name":"ennio.template"},{"name":"guitar.bossanova.template"},{"name":"guitar.country.template"},{"name":"rhythm.bossanova.template"},{"name":"rhythm.country.template"},{"name":"rhythm.jazzSwing.template"},{"name":"rhythm.reggae.template"}]}');n.getPreInstalledAuxFiles=function(){return o}},{"./parser/docParser":"ol4r",fs:"f88W"}],yh9p:[function(e,t,n){"use strict";n.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=s(e),a=r[0],u=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),f=0,l=u>0?a-4:a;for(n=0;n<l;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===u&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[f++]=255&t),1===u&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,u=n-i;a<u;a+=16383)o.push(l(e,a,a+16383>u?u:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)r[u]=a[u],i[a.charCodeAt(u)]=u;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(r));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],JgNJ:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,c=(1<<u)-1,s=c>>1,f=-7,l=n?i-1:0,p=n?-1:1,h=e[t+l];for(l+=p,o=h&(1<<-f)-1,h>>=-f,f+=u;f>0;o=256*o+e[t+l],l+=p,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+e[t+l],l+=p,f-=8);if(0===o)o=1-s;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=s}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,u,c,s=8*o-i-1,f=(1<<s)-1,l=f>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,m=r?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(t*c-1)*Math.pow(2,i),a+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&u,h+=m,u/=256,i-=8);for(a=a<<i|u,s+=i;s>0;e[n+h]=255&a,h+=m,a/=256,s-=8);e[n+h-m]|=128*d}},{}],REa7:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],dskh:[function(e,t,n){arguments[3];var r=arguments[3],i=e("base64-js"),o=e("ieee754"),a=e("isarray");function u(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(u()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=s.prototype:(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),s.TYPED_ARRAY_SUPPORT?(e=t).__proto__=s.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|g(t,n),i=(e=c(e,r)).write(t,n);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):m(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(l(t),e=c(e,t<0?0:0|d(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|d(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function m(e,t){if(s.isBuffer(t)){var n=0|d(t.length);return 0===(e=c(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?c(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|e}function g(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(r)return W(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,i){var o,a=1,u=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,c/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=n;o<u;o++)if(s(e,o)===s(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===c)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(n+c>u&&(n=u-c),o=n;o>=0;o--){for(var l=!0,p=0;p<c;p++)if(s(e,o+p)!==s(t,p)){l=!1;break}if(l)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function w(e,t,n,r){return q(W(t,e.length-n),e,n,r)}function x(e,t,n,r){return q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return x(e,t,n,r)}function k(e,t,n,r){return q(Y(t),e,n,r)}function S(e,t,n,r){return q(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,u,c,s=e[i],f=null,l=s>239?4:s>223?3:s>191?2:1;if(i+l<=n)switch(l){case 1:s<128&&(f=s);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&s)<<6|63&o)>127&&(f=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&s)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(f=c);break;case 4:o=e[i+1],a=e[i+2],u=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&u)&&(c=(15&s)<<18|(63&o)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(f=c)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=l}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}n.Buffer=s,n.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},n.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(i){return!1}}(),n.kMaxLength=u(),s.poolSize=8192,s._augment=function(e){return e.__proto__=s.prototype,e},s.from=function(e,t,n){return f(null,e,t,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},s.allocUnsafe=function(e){return p(null,e)},s.allocUnsafeSlow=function(e){return p(null,e)},s.isBuffer=function(e){return!(null==e||!e._isBuffer)},s.compare=function(e,t){if(!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},s.byteLength=g,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},s.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},s.prototype.compare=function(e,t,n,r,i){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(o,a),c=this.slice(r,i),f=e.slice(t,n),l=0;l<u;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return A(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function j(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function L(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||L(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,i){return i||L(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=s.prototype;else{var i=t-e;n=new s(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},s.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return t||C(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||C(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||C(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||C(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||C(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||C(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||C(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||C(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:W(new s(e,r).toString()),u=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%u]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}},{"base64-js":"yh9p",ieee754:"JgNJ",isarray:"REa7",buffer:"dskh"}],B1iE:[function(e,t,n){arguments[3],e("buffer").Buffer;var r=arguments[3];e("buffer").Buffer;(function(){var e,i=200,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=1,s=2,f=4,l=1,p=2,h=1,m=2,d=4,g=8,v=16,y=32,_=64,b=128,w=256,x=512,A=800,k=16,S=1/0,D=9007199254740991,I=1.7976931348623157e308,R=NaN,E=4294967295,T=E-1,O=E>>>1,j=[["ary",b],["bind",h],["bindKey",m],["curry",g],["curryRight",v],["flip",x],["partial",y],["partialRight",_],["rearg",w]],C="[object Arguments]",P="[object Array]",M="[object AsyncFunction]",B="[object Boolean]",L="[object Date]",U="[object DOMException]",N="[object Error]",z="[object Function]",F="[object GeneratorFunction]",W="[object Map]",Y="[object Number]",q="[object Null]",V="[object Object]",$="[object Proxy]",G="[object RegExp]",H="[object Set]",K="[object String]",Z="[object Symbol]",J="[object Undefined]",X="[object WeakMap]",Q="[object ArrayBuffer]",ee="[object DataView]",te="[object Float32Array]",ne="[object Float64Array]",re="[object Int8Array]",ie="[object Int16Array]",oe="[object Int32Array]",ae="[object Uint8Array]",ue="[object Uint8ClampedArray]",ce="[object Uint16Array]",se="[object Uint32Array]",fe=/\b__p \+= '';/g,le=/\b(__p \+=) '' \+/g,pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,me=/[&<>"']/g,de=RegExp(he.source),ge=RegExp(me.source),ve=/<%-([\s\S]+?)%>/g,ye=/<%([\s\S]+?)%>/g,_e=/<%=([\s\S]+?)%>/g,be=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,we=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ae=/[\\^$.*+?()[\]{}|]/g,ke=RegExp(Ae.source),Se=/^\s+/,De=/\s/,Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Re=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Oe=/[()=,{}\[\]\/\s]/,je=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,Me=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,Le=/^\[object .+?Constructor\]$/,Ue=/^0o[0-7]+$/i,Ne=/^(?:0|[1-9]\d*)$/,ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Fe=/($^)/,We=/['\n\r\u2028\u2029\\]/g,Ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",qe="\\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",Ve="["+qe+"]",$e="["+Ye+"]",Ge="\\d+",He="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ke="[^\\ud800-\\udfff"+qe+Ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ze="\\ud83c[\\udffb-\\udfff]",Je="[^\\ud800-\\udfff]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Qe="[\\ud800-\\udbff][\\udc00-\\udfff]",et="[A-Z\\xc0-\\xd6\\xd8-\\xde]",tt="(?:"+He+"|"+Ke+")",nt="(?:"+et+"|"+Ke+")",rt="(?:"+$e+"|"+Ze+")?",it="[\\ufe0e\\ufe0f]?"+rt+"(?:\\u200d(?:"+[Je,Xe,Qe].join("|")+")[\\ufe0e\\ufe0f]?"+rt+")*",ot="(?:"+["[\\u2700-\\u27bf]",Xe,Qe].join("|")+")"+it,at="(?:"+[Je+$e+"?",$e,Xe,Qe,"[\\ud800-\\udfff]"].join("|")+")",ut=RegExp("['’]","g"),ct=RegExp($e,"g"),st=RegExp(Ze+"(?="+Ze+")|"+at+it,"g"),ft=RegExp([et+"?"+He+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ve,et,"$"].join("|")+")",nt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ve,et+tt,"$"].join("|")+")",et+"?"+tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",et+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ge,ot].join("|"),"g"),lt=RegExp("[\\u200d\\ud800-\\udfff"+Ye+"\\ufe0e\\ufe0f]"),pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=["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"],mt=-1,dt={};dt[te]=dt[ne]=dt[re]=dt[ie]=dt[oe]=dt[ae]=dt[ue]=dt[ce]=dt[se]=!0,dt[C]=dt[P]=dt[Q]=dt[B]=dt[ee]=dt[L]=dt[N]=dt[z]=dt[W]=dt[Y]=dt[V]=dt[G]=dt[H]=dt[K]=dt[X]=!1;var gt={};gt[C]=gt[P]=gt[Q]=gt[ee]=gt[B]=gt[L]=gt[te]=gt[ne]=gt[re]=gt[ie]=gt[oe]=gt[W]=gt[Y]=gt[V]=gt[G]=gt[H]=gt[K]=gt[Z]=gt[ae]=gt[ue]=gt[ce]=gt[se]=!0,gt[N]=gt[z]=gt[X]=!1;var vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yt=parseFloat,_t=parseInt,bt="object"==typeof r&&r&&r.Object===Object&&r,wt="object"==typeof self&&self&&self.Object===Object&&self,xt=bt||wt||Function("return this")(),At="object"==typeof n&&n&&!n.nodeType&&n,kt=At&&"object"==typeof t&&t&&!t.nodeType&&t,St=kt&&kt.exports===At,Dt=St&&bt.process,It=function(){try{return kt&&kt.require&&kt.require("util").types||Dt&&Dt.binding&&Dt.binding("util")}catch(r){}}(),Rt=It&&It.isArrayBuffer,Et=It&&It.isDate,Tt=It&&It.isMap,Ot=It&&It.isRegExp,jt=It&&It.isSet,Ct=It&&It.isTypedArray;function Pt(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 Mt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Lt(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 Ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Nt(e,t){return!(null==e||!e.length)&&Kt(e,t,0)>-1}function zt(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 Ft(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 Wt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Yt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function qt(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 Vt(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 $t=Qt("length");function Gt(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Ht(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Jt,n)}function Zt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Jt(e){return e!=e}function Xt(e,t){var n=null==e?0:e.length;return n?nn(e,t)/n:R}function Qt(t){return function(n){return null==n?e:n[t]}}function en(t){return function(n){return null==t?e:t[n]}}function tn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function nn(t,n){for(var r,i=-1,o=t.length;++i<o;){var a=n(t[i]);a!==e&&(r=r===e?a:r+a)}return r}function rn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function on(e){return e?e.slice(0,wn(e)+1).replace(Se,""):e}function an(e){return function(t){return e(t)}}function un(e,t){return Ft(t,function(t){return e[t]})}function cn(e,t){return e.has(t)}function sn(e,t){for(var n=-1,r=e.length;++n<r&&Kt(t,e[n],0)>-1;);return n}function fn(e,t){for(var n=e.length;n--&&Kt(t,e[n],0)>-1;);return n}var ln=en({"À":"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"}),pn=en({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function hn(e){return"\\"+vt[e]}function mn(e){return lt.test(e)}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function gn(e,t){return function(n){return e(t(n))}}function vn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,o[i++]=n)}return o}function yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function _n(e){return mn(e)?function(e){for(var t=st.lastIndex=0;st.test(e);)++t;return t}(e):$t(e)}function bn(e){return mn(e)?function(e){return e.match(st)||[]}(e):function(e){return e.split("")}(e)}function wn(e){for(var t=e.length;t--&&De.test(e.charAt(t)););return t}var xn=en({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),An=function t(n){var r,De=(n=null==n?xt:An.defaults(xt.Object(),n,An.pick(xt,ht))).Array,Ye=n.Date,qe=n.Error,Ve=n.Function,$e=n.Math,Ge=n.Object,He=n.RegExp,Ke=n.String,Ze=n.TypeError,Je=De.prototype,Xe=Ve.prototype,Qe=Ge.prototype,et=n["__core-js_shared__"],tt=Xe.toString,nt=Qe.hasOwnProperty,rt=0,it=(r=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",ot=Qe.toString,at=tt.call(Ge),st=xt._,lt=He("^"+tt.call(nt).replace(Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=St?n.Buffer:e,bt=n.Symbol,wt=n.Uint8Array,At=vt?vt.allocUnsafe:e,kt=gn(Ge.getPrototypeOf,Ge),Dt=Ge.create,It=Qe.propertyIsEnumerable,$t=Je.splice,en=bt?bt.isConcatSpreadable:e,kn=bt?bt.iterator:e,Sn=bt?bt.toStringTag:e,Dn=function(){try{var e=So(Ge,"defineProperty");return e({},"",{}),e}catch(n){}}(),In=n.clearTimeout!==xt.clearTimeout&&n.clearTimeout,Rn=Ye&&Ye.now!==xt.Date.now&&Ye.now,En=n.setTimeout!==xt.setTimeout&&n.setTimeout,Tn=$e.ceil,On=$e.floor,jn=Ge.getOwnPropertySymbols,Cn=vt?vt.isBuffer:e,Pn=n.isFinite,Mn=Je.join,Bn=gn(Ge.keys,Ge),Ln=$e.max,Un=$e.min,Nn=Ye.now,zn=n.parseInt,Fn=$e.random,Wn=Je.reverse,Yn=So(n,"DataView"),qn=So(n,"Map"),Vn=So(n,"Promise"),$n=So(n,"Set"),Gn=So(n,"WeakMap"),Hn=So(Ge,"create"),Kn=Gn&&new Gn,Zn={},Jn=Jo(Yn),Xn=Jo(qn),Qn=Jo(Vn),er=Jo($n),tr=Jo(Gn),nr=bt?bt.prototype:e,rr=nr?nr.valueOf:e,ir=nr?nr.toString:e;function or(e){if(mu(e)&&!ru(e)&&!(e instanceof sr)){if(e instanceof cr)return e;if(nt.call(e,"__wrapped__"))return Xo(e)}return new cr(e)}var ar=function(){function t(){}return function(n){if(!hu(n))return{};if(Dt)return Dt(n);t.prototype=n;var r=new t;return t.prototype=e,r}}();function ur(){}function cr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function sr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=E,this.__views__=[]}function fr(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 lr(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 pr(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 hr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pr;++t<n;)this.add(e[t])}function mr(e){var t=this.__data__=new lr(e);this.size=t.size}function dr(e,t){var n=ru(e),r=!n&&nu(e),i=!n&&!r&&uu(e),o=!n&&!r&&!i&&xu(e),a=n||r||i||o,u=a?rn(e.length,Ke):[],c=u.length;for(var s in e)!t&&!nt.call(e,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||jo(s,c))||u.push(s);return u}function gr(t){var n=t.length;return n?t[fi(0,n-1)]:e}function vr(t,n,r){(r===e||Qa(t[n],r))&&(r!==e||n in t)||xr(t,n,r)}function yr(t,n,r){var i=t[n];nt.call(t,n)&&Qa(i,r)&&(r!==e||n in t)||xr(t,n,r)}function _r(e,t){for(var n=e.length;n--;)if(Qa(e[n][0],t))return n;return-1}function br(e,t,n,r){return Er(e,function(e,i,o){t(r,e,n(e),o)}),r}function wr(e,t){return e&&Yi(t,qu(t),e)}function xr(e,t,n){"__proto__"==t&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ar(t,n){for(var r=-1,i=n.length,o=De(i),a=null==t;++r<i;)o[r]=a?e:Nu(t,n[r]);return o}function kr(t,n,r){return t==t&&(r!==e&&(t=t<=r?t:r),n!==e&&(t=t>=n?t:n)),t}function Sr(t,n,r,i,o,a){var u,l=n&c,p=n&s,h=n&f;if(r&&(u=o?r(t,i,o,a):r(t)),u!==e)return u;if(!hu(t))return t;var m=ru(t);if(m){if(u=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&nt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Wi(t,u)}else{var d=Ro(t),g=d==z||d==F;if(uu(t))return Bi(t,l);if(d==V||d==C||g&&!o){if(u=p||g?{}:To(t),!l)return p?function(e,t){return Yi(e,Io(e),t)}(t,function(e,t){return e&&Yi(t,Vu(t),e)}(u,t)):function(e,t){return Yi(e,Do(e),t)}(t,wr(u,t))}else{if(!gt[d])return o?t:{};u=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case Q:return Li(e);case B:case L:return new a(+e);case ee:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case te:case ne:case re:case ie:case oe:case ae:case ue:case ce:case se:return Ui(e,n);case W:return new a;case Y:case K:return new a(e);case G:return(o=new(i=e).constructor(i.source,Pe.exec(i))).lastIndex=i.lastIndex,o;case H:return new a;case Z:return r=e,rr?Ge(rr.call(r)):{}}}(t,d,l)}}a||(a=new mr);var v=a.get(t);if(v)return v;a.set(t,u),_u(t)?t.forEach(function(e){u.add(Sr(e,n,r,e,t,a))}):du(t)&&t.forEach(function(e,i){u.set(i,Sr(e,n,r,i,t,a))});var y=m?e:(h?p?yo:vo:p?Vu:qu)(t);return Bt(y||t,function(e,i){y&&(e=t[i=e]),yr(u,i,Sr(e,n,r,i,t,a))}),u}function Dr(t,n,r){var i=r.length;if(null==t)return!i;for(t=Ge(t);i--;){var o=r[i],a=n[o],u=t[o];if(u===e&&!(o in t)||!a(u))return!1}return!0}function Ir(t,n,r){if("function"!=typeof t)throw new Ze(o);return qo(function(){t.apply(e,r)},n)}function Rr(e,t,n,r){var o=-1,a=Nt,u=!0,c=e.length,s=[],f=t.length;if(!c)return s;n&&(t=Ft(t,an(n))),r?(a=zt,u=!1):t.length>=i&&(a=cn,u=!1,t=new hr(t));e:for(;++o<c;){var l=e[o],p=null==n?l:n(l);if(l=r||0!==l?l:0,u&&p==p){for(var h=f;h--;)if(t[h]===p)continue e;s.push(l)}else a(t,p,r)||s.push(l)}return s}or.templateSettings={escape:ve,evaluate:ye,interpolate:_e,variable:"",imports:{_:or}},or.prototype=ur.prototype,or.prototype.constructor=or,cr.prototype=ar(ur.prototype),cr.prototype.constructor=cr,sr.prototype=ar(ur.prototype),sr.prototype.constructor=sr,fr.prototype.clear=function(){this.__data__=Hn?Hn(null):{},this.size=0},fr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},fr.prototype.get=function(t){var n=this.__data__;if(Hn){var r=n[t];return r===a?e:r}return nt.call(n,t)?n[t]:e},fr.prototype.has=function(t){var n=this.__data__;return Hn?n[t]!==e:nt.call(n,t)},fr.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Hn&&n===e?a:n,this},lr.prototype.clear=function(){this.__data__=[],this.size=0},lr.prototype.delete=function(e){var t=this.__data__,n=_r(t,e);return!(n<0||(n==t.length-1?t.pop():$t.call(t,n,1),--this.size,0))},lr.prototype.get=function(t){var n=this.__data__,r=_r(n,t);return r<0?e:n[r][1]},lr.prototype.has=function(e){return _r(this.__data__,e)>-1},lr.prototype.set=function(e,t){var n=this.__data__,r=_r(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new fr,map:new(qn||lr),string:new fr}},pr.prototype.delete=function(e){var t=Ao(this,e).delete(e);return this.size-=t?1:0,t},pr.prototype.get=function(e){return Ao(this,e).get(e)},pr.prototype.has=function(e){return Ao(this,e).has(e)},pr.prototype.set=function(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},hr.prototype.add=hr.prototype.push=function(e){return this.__data__.set(e,a),this},hr.prototype.has=function(e){return this.__data__.has(e)},mr.prototype.clear=function(){this.__data__=new lr,this.size=0},mr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mr.prototype.get=function(e){return this.__data__.get(e)},mr.prototype.has=function(e){return this.__data__.has(e)},mr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof lr){var r=n.__data__;if(!qn||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pr(r)}return n.set(e,t),this.size=n.size,this};var Er=$i(Lr),Tr=$i(Ur,!0);function Or(e,t){var n=!0;return Er(e,function(e,r,i){return n=!!t(e,r,i)}),n}function jr(t,n,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=n(a);if(null!=u&&(c===e?u==u&&!wu(u):r(u,c)))var c=u,s=a}return s}function Cr(e,t){var n=[];return Er(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Pr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Oo),i||(i=[]);++o<a;){var u=e[o];t>0&&n(u)?t>1?Pr(u,t-1,n,r,i):Wt(i,u):r||(i[i.length]=u)}return i}var Mr=Gi(),Br=Gi(!0);function Lr(e,t){return e&&Mr(e,t,qu)}function Ur(e,t){return e&&Br(e,t,qu)}function Nr(e,t){return Ut(t,function(t){return fu(e[t])})}function zr(t,n){for(var r=0,i=(n=ji(n,t)).length;null!=t&&r<i;)t=t[Zo(n[r++])];return r&&r==i?t:e}function Fr(e,t,n){var r=t(e);return ru(e)?r:Wt(r,n(e))}function Wr(t){return null==t?t===e?J:q:Sn&&Sn in Ge(t)?function(t){var n=nt.call(t,Sn),r=t[Sn];try{t[Sn]=e;var i=!0}catch(a){}var o=ot.call(t);return i&&(n?t[Sn]=r:delete t[Sn]),o}(t):function(e){return ot.call(e)}(t)}function Yr(e,t){return e>t}function qr(e,t){return null!=e&&nt.call(e,t)}function Vr(e,t){return null!=e&&t in Ge(e)}function $r(t,n,r){for(var i=r?zt:Nt,o=t[0].length,a=t.length,u=a,c=De(a),s=1/0,f=[];u--;){var l=t[u];u&&n&&(l=Ft(l,an(n))),s=Un(l.length,s),c[u]=!r&&(n||o>=120&&l.length>=120)?new hr(u&&l):e}l=t[0];var p=-1,h=c[0];e:for(;++p<o&&f.length<s;){var m=l[p],d=n?n(m):m;if(m=r||0!==m?m:0,!(h?cn(h,d):i(f,d,r))){for(u=a;--u;){var g=c[u];if(!(g?cn(g,d):i(t[u],d,r)))continue e}h&&h.push(d),f.push(m)}}return f}function Gr(t,n,r){var i=null==(t=Fo(t,n=ji(n,t)))?t:t[Zo(sa(n))];return null==i?e:Pt(i,t,r)}function Hr(e){return mu(e)&&Wr(e)==C}function Kr(t,n,r,i,o){return t===n||(null==t||null==n||!mu(t)&&!mu(n)?t!=t&&n!=n:function(t,n,r,i,o,a){var u=ru(t),c=ru(n),s=u?P:Ro(t),f=c?P:Ro(n),h=(s=s==C?V:s)==V,m=(f=f==C?V:f)==V,d=s==f;if(d&&uu(t)){if(!uu(n))return!1;u=!0,h=!1}if(d&&!h)return a||(a=new mr),u||xu(t)?mo(t,n,r,i,o,a):function(e,t,n,r,i,o,a){switch(n){case ee:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Q:return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case B:case L:case Y:return Qa(+e,+t);case N:return e.name==t.name&&e.message==t.message;case G:case K:return e==t+"";case W:var u=dn;case H:var c=r&l;if(u||(u=yn),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;r|=p,a.set(e,t);var f=mo(u(e),u(t),r,i,o,a);return a.delete(e),f;case Z:if(rr)return rr.call(e)==rr.call(t)}return!1}(t,n,s,r,i,o,a);if(!(r&l)){var g=h&&nt.call(t,"__wrapped__"),v=m&&nt.call(n,"__wrapped__");if(g||v){var y=g?t.value():t,_=v?n.value():n;return a||(a=new mr),o(y,_,r,i,a)}}return!!d&&(a||(a=new mr),function(t,n,r,i,o,a){var u=r&l,c=vo(t),s=c.length;if(s!=vo(n).length&&!u)return!1;for(var f=s;f--;){var p=c[f];if(!(u?p in n:nt.call(n,p)))return!1}var h=a.get(t),m=a.get(n);if(h&&m)return h==n&&m==t;var d=!0;a.set(t,n),a.set(n,t);for(var g=u;++f<s;){var v=t[p=c[f]],y=n[p];if(i)var _=u?i(y,v,p,n,t,a):i(v,y,p,t,n,a);if(!(_===e?v===y||o(v,y,r,i,a):_)){d=!1;break}g||(g="constructor"==p)}if(d&&!g){var b=t.constructor,w=n.constructor;b!=w&&"constructor"in t&&"constructor"in n&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(d=!1)}return a.delete(t),a.delete(n),d}(t,n,r,i,o,a))}(t,n,r,i,Kr,o))}function Zr(t,n,r,i){var o=r.length,a=o,u=!i;if(null==t)return!a;for(t=Ge(t);o--;){var c=r[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<a;){var s=(c=r[o])[0],f=t[s],h=c[1];if(u&&c[2]){if(f===e&&!(s in t))return!1}else{var m=new mr;if(i)var d=i(f,h,s,t,n,m);if(!(d===e?Kr(h,f,l|p,i,m):d))return!1}}return!0}function Jr(e){return!(!hu(e)||(t=e,it&&it in t))&&(fu(e)?lt:Le).test(Jo(e));var t}function Xr(e){return"function"==typeof e?e:null==e?gc:"object"==typeof e?ru(e)?ri(e[0],e[1]):ni(e):Sc(e)}function Qr(e){if(!Lo(e))return Bn(e);var t=[];for(var n in Ge(e))nt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ei(e,t){return e<t}function ti(e,t){var n=-1,r=ou(e)?De(e.length):[];return Er(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function ni(e){var t=ko(e);return 1==t.length&&t[0][2]?No(t[0][0],t[0][1]):function(n){return n===e||Zr(n,e,t)}}function ri(t,n){return Po(t)&&Uo(n)?No(Zo(t),n):function(r){var i=Nu(r,t);return i===e&&i===n?zu(r,t):Kr(n,i,l|p)}}function ii(t,n,r,i,o){t!==n&&Mr(n,function(a,u){if(o||(o=new mr),hu(a))!function(t,n,r,i,o,a,u){var c=Wo(t,r),s=Wo(n,r),f=u.get(s);if(f)vr(t,r,f);else{var l=a?a(c,s,r+"",t,n,u):e,p=l===e;if(p){var h=ru(s),m=!h&&uu(s),d=!h&&!m&&xu(s);l=s,h||m||d?ru(c)?l=c:au(c)?l=Wi(c):m?(p=!1,l=Bi(s,!0)):d?(p=!1,l=Ui(s,!0)):l=[]:vu(s)||nu(s)?(l=c,nu(c)?l=Tu(c):hu(c)&&!fu(c)||(l=To(s))):p=!1}p&&(u.set(s,l),o(l,s,i,a,u),u.delete(s)),vr(t,r,l)}}(t,n,u,r,ii,i,o);else{var c=i?i(Wo(t,u),a,u+"",t,n,o):e;c===e&&(c=a),vr(t,u,c)}},Vu)}function oi(t,n){var r=t.length;if(r)return jo(n+=n<0?r:0,r)?t[n]:e}function ai(e,t,n){t=t.length?Ft(t,function(e){return ru(e)?function(t){return zr(t,1===e.length?e[0]:e)}:e}):[gc];var r=-1;return t=Ft(t,an(xo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ti(e,function(e,n,i){return{criteria:Ft(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;++r<a;){var c=Ni(i[r],o[r]);if(c)return r>=u?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function ui(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=zr(e,a);n(u,a)&&hi(o,ji(a,e),u)}return o}function ci(e,t,n,r){var i=r?Zt:Kt,o=-1,a=t.length,u=e;for(e===t&&(t=Wi(t)),n&&(u=Ft(e,an(n)));++o<a;)for(var c=0,s=t[o],f=n?n(s):s;(c=i(u,f,c,r))>-1;)u!==e&&$t.call(u,c,1),$t.call(e,c,1);return e}function si(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;jo(i)?$t.call(e,i,1):ki(e,i)}}return e}function fi(e,t){return e+On(Fn()*(t-e+1))}function li(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),(t=On(t/2))&&(e+=e)}while(t);return n}function pi(e,t){return Vo(zo(e,t,gc),e+"")}function hi(t,n,r,i){if(!hu(t))return t;for(var o=-1,a=(n=ji(n,t)).length,u=a-1,c=t;null!=c&&++o<a;){var s=Zo(n[o]),f=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return t;if(o!=u){var l=c[s];(f=i?i(l,s,c):e)===e&&(f=hu(l)?l:jo(n[o+1])?[]:{})}yr(c,s,f),c=c[s]}return t}var mi=Kn?function(e,t){return Kn.set(e,t),e}:gc,di=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:hc(t),writable:!0})}:gc;function gi(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 o=De(i);++r<i;)o[r]=e[r+t];return o}function vi(e,t){var n;return Er(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function yi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=O){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!wu(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return _i(e,t,gc,n)}function _i(t,n,r,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var u=(n=r(n))!=n,c=null===n,s=wu(n),f=n===e;o<a;){var l=On((o+a)/2),p=r(t[l]),h=p!==e,m=null===p,d=p==p,g=wu(p);if(u)var v=i||d;else v=f?d&&(i||h):c?d&&h&&(i||!m):s?d&&h&&!m&&(i||!g):!m&&!g&&(i?p<=n:p<n);v?o=l+1:a=l}return Un(a,T)}function bi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Qa(u,c)){var c=u;o[i++]=0===a?0:a}}return o}function wi(e){return"number"==typeof e?e:wu(e)?R:+e}function xi(e){if("string"==typeof e)return e;if(ru(e))return Ft(e,xi)+"";if(wu(e))return ir?ir.call(e):"";var t=e+"";return"0"==t&&1/e==-S?"-0":t}function Ai(e,t,n){var r=-1,o=Nt,a=e.length,u=!0,c=[],s=c;if(n)u=!1,o=zt;else if(a>=i){var f=t?null:co(e);if(f)return yn(f);u=!1,o=cn,s=new hr}else s=t?[]:c;e:for(;++r<a;){var l=e[r],p=t?t(l):l;if(l=n||0!==l?l:0,u&&p==p){for(var h=s.length;h--;)if(s[h]===p)continue e;t&&s.push(p),c.push(l)}else o(s,p,n)||(s!==c&&s.push(p),c.push(l))}return c}function ki(e,t){return null==(e=Fo(e,t=ji(t,e)))||delete e[Zo(sa(t))]}function Si(e,t,n,r){return hi(e,t,n(zr(e,t)),r)}function Di(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?gi(e,r?0:o,r?o+1:i):gi(e,r?o+1:0,r?i:o)}function Ii(e,t){var n=e;return n instanceof sr&&(n=n.value()),Yt(t,function(e,t){return t.func.apply(t.thisArg,Wt([e],t.args))},n)}function Ri(e,t,n){var r=e.length;if(r<2)return r?Ai(e[0]):[];for(var i=-1,o=De(r);++i<r;)for(var a=e[i],u=-1;++u<r;)u!=i&&(o[i]=Rr(o[i]||a,e[u],t,n));return Ai(Pr(o,1),t,n)}function Ei(t,n,r){for(var i=-1,o=t.length,a=n.length,u={};++i<o;){var c=i<a?n[i]:e;r(u,t[i],c)}return u}function Ti(e){return au(e)?e:[]}function Oi(e){return"function"==typeof e?e:gc}function ji(e,t){return ru(e)?e:Po(e,t)?[e]:Ko(Ou(e))}var Ci=pi;function Pi(t,n,r){var i=t.length;return r=r===e?i:r,!n&&r>=i?t:gi(t,n,r)}var Mi=In||function(e){return xt.clearTimeout(e)};function Bi(e,t){if(t)return e.slice();var n=e.length,r=At?At(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ui(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ni(t,n){if(t!==n){var r=t!==e,i=null===t,o=t==t,a=wu(t),u=n!==e,c=null===n,s=n==n,f=wu(n);if(!c&&!f&&!a&&t>n||a&&u&&s&&!c&&!f||i&&u&&s||!r&&s||!o)return 1;if(!i&&!a&&!f&&t<n||f&&r&&o&&!i&&!a||c&&r&&o||!u&&o||!s)return-1}return 0}function zi(e,t,n,r){for(var i=-1,o=e.length,a=n.length,u=-1,c=t.length,s=Ln(o-a,0),f=De(c+s),l=!r;++u<c;)f[u]=t[u];for(;++i<a;)(l||i<o)&&(f[n[i]]=e[i]);for(;s--;)f[u++]=e[i++];return f}function Fi(e,t,n,r){for(var i=-1,o=e.length,a=-1,u=n.length,c=-1,s=t.length,f=Ln(o-u,0),l=De(f+s),p=!r;++i<f;)l[i]=e[i];for(var h=i;++c<s;)l[h+c]=t[c];for(;++a<u;)(p||i<o)&&(l[h+n[a]]=e[i++]);return l}function Wi(e,t){var n=-1,r=e.length;for(t||(t=De(r));++n<r;)t[n]=e[n];return t}function Yi(t,n,r,i){var o=!r;r||(r={});for(var a=-1,u=n.length;++a<u;){var c=n[a],s=i?i(r[c],t[c],c,r,t):e;s===e&&(s=t[c]),o?xr(r,c,s):yr(r,c,s)}return r}function qi(e,t){return function(n,r){var i=ru(n)?Mt:br,o=t?t():{};return i(n,e,xo(r,2),o)}}function Vi(t){return pi(function(n,r){var i=-1,o=r.length,a=o>1?r[o-1]:e,u=o>2?r[2]:e;for(a=t.length>3&&"function"==typeof a?(o--,a):e,u&&Co(r[0],r[1],u)&&(a=o<3?e:a,o=1),n=Ge(n);++i<o;){var c=r[i];c&&t(n,c,i,a)}return n})}function $i(e,t){return function(n,r){if(null==n)return n;if(!ou(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ge(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Gi(e){return function(t,n,r){for(var i=-1,o=Ge(t),a=r(t),u=a.length;u--;){var c=a[e?u:++i];if(!1===n(o[c],c,o))break}return t}}function Hi(t){return function(n){var r=mn(n=Ou(n))?bn(n):e,i=r?r[0]:n.charAt(0),o=r?Pi(r,1).join(""):n.slice(1);return i[t]()+o}}function Ki(e){return function(t){return Yt(fc(nc(t).replace(ut,"")),e,"")}}function Zi(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=ar(e.prototype),r=e.apply(n,t);return hu(r)?r:n}}function Ji(t){return function(n,r,i){var o=Ge(n);if(!ou(n)){var a=xo(r,3);n=qu(n),r=function(e){return a(o[e],e,o)}}var u=t(n,r,i);return u>-1?o[a?n[u]:u]:e}}function Xi(t){return go(function(n){var r=n.length,i=r,a=cr.prototype.thru;for(t&&n.reverse();i--;){var u=n[i];if("function"!=typeof u)throw new Ze(o);if(a&&!c&&"wrapper"==bo(u))var c=new cr([],!0)}for(i=c?i:r;++i<r;){var s=bo(u=n[i]),f="wrapper"==s?_o(u):e;c=f&&Mo(f[0])&&f[1]==(b|g|y|w)&&!f[4].length&&1==f[9]?c[bo(f[0])].apply(c,f[3]):1==u.length&&Mo(u)?c[s]():c.thru(u)}return function(){var e=arguments,t=e[0];if(c&&1==e.length&&ru(t))return c.plant(t).value();for(var i=0,o=r?n[i].apply(this,e):t;++i<r;)o=n[i].call(this,o);return o}})}function Qi(t,n,r,i,o,a,u,c,s,f){var l=n&b,p=n&h,d=n&m,y=n&(g|v),_=n&x,w=d?e:Zi(t);return function h(){for(var m=arguments.length,g=De(m),v=m;v--;)g[v]=arguments[v];if(y)var b=wo(h),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(g,b);if(i&&(g=zi(g,i,o,y)),a&&(g=Fi(g,a,u,y)),m-=x,y&&m<f){var A=vn(g,b);return ao(t,n,Qi,h.placeholder,r,g,A,c,s,f-m)}var k=p?r:this,S=d?k[t]:t;return m=g.length,c?g=function(t,n){for(var r=t.length,i=Un(n.length,r),o=Wi(t);i--;){var a=n[i];t[i]=jo(a,r)?o[a]:e}return t}(g,c):_&&m>1&&g.reverse(),l&&s<m&&(g.length=s),this&&this!==xt&&this instanceof h&&(S=w||Zi(S)),S.apply(k,g)}}function eo(e,t){return function(n,r){return function(e,t,n,r){return Lr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function to(t,n){return function(r,i){var o;if(r===e&&i===e)return n;if(r!==e&&(o=r),i!==e){if(o===e)return i;"string"==typeof r||"string"==typeof i?(r=xi(r),i=xi(i)):(r=wi(r),i=wi(i)),o=t(r,i)}return o}}function no(e){return go(function(t){return t=Ft(t,an(xo())),pi(function(n){var r=this;return e(t,function(e){return Pt(e,r,n)})})})}function ro(t,n){var r=(n=n===e?" ":xi(n)).length;if(r<2)return r?li(n,t):n;var i=li(n,Tn(t/_n(n)));return mn(n)?Pi(bn(i),0,t).join(""):i.slice(0,t)}function io(t){return function(n,r,i){return i&&"number"!=typeof i&&Co(n,r,i)&&(r=i=e),n=Du(n),r===e?(r=n,n=0):r=Du(r),function(e,t,n,r){for(var i=-1,o=Ln(Tn((t-e)/(n||1)),0),a=De(o);o--;)a[r?o:++i]=e,e+=n;return a}(n,r,i=i===e?n<r?1:-1:Du(i),t)}}function oo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Eu(t),n=Eu(n)),e(t,n)}}function ao(t,n,r,i,o,a,u,c,s,f){var l=n&g;n|=l?y:_,(n&=~(l?_:y))&d||(n&=~(h|m));var p=[t,n,o,l?a:e,l?u:e,l?e:a,l?e:u,c,s,f],v=r.apply(e,p);return Mo(t)&&Yo(v,p),v.placeholder=i,$o(v,t,n)}function uo(e){var t=$e[e];return function(e,n){if(e=Eu(e),(n=null==n?0:Un(Iu(n),292))&&Pn(e)){var r=(Ou(e)+"e").split("e");return+((r=(Ou(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var co=$n&&1/yn(new $n([,-0]))[1]==S?function(e){return new $n(e)}:wc;function so(e){return function(t){var n=Ro(t);return n==W?dn(t):n==H?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return Ft(t,function(t){return[t,e[t]]})}(t,e(t))}}function fo(t,n,r,i,a,c,s,f){var l=n&m;if(!l&&"function"!=typeof t)throw new Ze(o);var p=i?i.length:0;if(p||(n&=~(y|_),i=a=e),s=s===e?s:Ln(Iu(s),0),f=f===e?f:Iu(f),p-=a?a.length:0,n&_){var x=i,A=a;i=a=e}var k=l?e:_o(t),S=[t,n,r,i,a,x,A,c,s,f];if(k&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(h|m|b),a=r==b&&n==g||r==b&&n==w&&e[7].length<=t[8]||r==(b|w)&&t[7].length<=t[8]&&n==g;if(!o&&!a)return e;r&h&&(e[2]=t[2],i|=n&h?0:d);var c=t[3];if(c){var s=e[3];e[3]=s?zi(s,c,t[4]):c,e[4]=s?vn(e[3],u):t[4]}(c=t[5])&&(s=e[5],e[5]=s?Fi(s,c,t[6]):c,e[6]=s?vn(e[5],u):t[6]),(c=t[7])&&(e[7]=c),r&b&&(e[8]=null==e[8]?t[8]:Un(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(S,k),t=S[0],n=S[1],r=S[2],i=S[3],a=S[4],!(f=S[9]=S[9]===e?l?0:t.length:Ln(S[9]-p,0))&&n&(g|v)&&(n&=~(g|v)),n&&n!=h)D=n==g||n==v?function(t,n,r){var i=Zi(t);return function o(){for(var a=arguments.length,u=De(a),c=a,s=wo(o);c--;)u[c]=arguments[c];var f=a<3&&u[0]!==s&&u[a-1]!==s?[]:vn(u,s);return(a-=f.length)<r?ao(t,n,Qi,o.placeholder,e,u,f,e,e,r-a):Pt(this&&this!==xt&&this instanceof o?i:t,this,u)}}(t,n,f):n!=y&&n!=(h|y)||a.length?Qi.apply(e,S):function(e,t,n,r){var i=t&h,o=Zi(e);return function t(){for(var a=-1,u=arguments.length,c=-1,s=r.length,f=De(s+u),l=this&&this!==xt&&this instanceof t?o:e;++c<s;)f[c]=r[c];for(;u--;)f[c++]=arguments[++a];return Pt(l,i?n:this,f)}}(t,n,r,i);else var D=function(e,t,n){var r=t&h,i=Zi(e);return function t(){return(this&&this!==xt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(t,n,r);return $o((k?mi:Yo)(D,S),t,n)}function lo(t,n,r,i){return t===e||Qa(t,Qe[r])&&!nt.call(i,r)?n:t}function po(t,n,r,i,o,a){return hu(t)&&hu(n)&&(a.set(n,t),ii(t,n,e,po,a),a.delete(n)),t}function ho(t){return vu(t)?e:t}function mo(t,n,r,i,o,a){var u=r&l,c=t.length,s=n.length;if(c!=s&&!(u&&s>c))return!1;var f=a.get(t),h=a.get(n);if(f&&h)return f==n&&h==t;var m=-1,d=!0,g=r&p?new hr:e;for(a.set(t,n),a.set(n,t);++m<c;){var v=t[m],y=n[m];if(i)var _=u?i(y,v,m,n,t,a):i(v,y,m,t,n,a);if(_!==e){if(_)continue;d=!1;break}if(g){if(!Vt(n,function(e,t){if(!cn(g,t)&&(v===e||o(v,e,r,i,a)))return g.push(t)})){d=!1;break}}else if(v!==y&&!o(v,y,r,i,a)){d=!1;break}}return a.delete(t),a.delete(n),d}function go(t){return Vo(zo(t,e,ia),t+"")}function vo(e){return Fr(e,qu,Do)}function yo(e){return Fr(e,Vu,Io)}var _o=Kn?function(e){return Kn.get(e)}:wc;function bo(e){for(var t=e.name+"",n=Zn[t],r=nt.call(Zn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function wo(e){return(nt.call(or,"placeholder")?or:e).placeholder}function xo(){var e=or.iteratee||vc;return e=e===vc?Xr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ko(e){for(var t=qu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Uo(i)]}return t}function So(t,n){var r=function(t,n){return null==t?e:t[n]}(t,n);return Jr(r)?r:e}var Do=jn?function(e){return null==e?[]:(e=Ge(e),Ut(jn(e),function(t){return It.call(e,t)}))}:Rc,Io=jn?function(e){for(var t=[];e;)Wt(t,Do(e)),e=kt(e);return t}:Rc,Ro=Wr;function Eo(e,t,n){for(var r=-1,i=(t=ji(t,e)).length,o=!1;++r<i;){var a=Zo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&pu(i)&&jo(a,i)&&(ru(e)||nu(e))}function To(e){return"function"!=typeof e.constructor||Lo(e)?{}:ar(kt(e))}function Oo(e){return ru(e)||nu(e)||!!(en&&e&&e[en])}function jo(e,t){var n=typeof e;return!!(t=null==t?D:t)&&("number"==n||"symbol"!=n&&Ne.test(e))&&e>-1&&e%1==0&&e<t}function Co(e,t,n){if(!hu(n))return!1;var r=typeof t;return!!("number"==r?ou(n)&&jo(t,n.length):"string"==r&&t in n)&&Qa(n[t],e)}function Po(e,t){if(ru(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!wu(e))||we.test(e)||!be.test(e)||null!=t&&e in Ge(t)}function Mo(e){var t=bo(e),n=or[t];if("function"!=typeof n||!(t in sr.prototype))return!1;if(e===n)return!0;var r=_o(n);return!!r&&e===r[0]}(Yn&&Ro(new Yn(new ArrayBuffer(1)))!=ee||qn&&Ro(new qn)!=W||Vn&&"[object Promise]"!=Ro(Vn.resolve())||$n&&Ro(new $n)!=H||Gn&&Ro(new Gn)!=X)&&(Ro=function(t){var n=Wr(t),r=n==V?t.constructor:e,i=r?Jo(r):"";if(i)switch(i){case Jn:return ee;case Xn:return W;case Qn:return"[object Promise]";case er:return H;case tr:return X}return n});var Bo=et?fu:Ec;function Lo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qe)}function Uo(e){return e==e&&!hu(e)}function No(t,n){return function(r){return null!=r&&r[t]===n&&(n!==e||t in Ge(r))}}function zo(t,n,r){return n=Ln(n===e?t.length-1:n,0),function(){for(var e=arguments,i=-1,o=Ln(e.length-n,0),a=De(o);++i<o;)a[i]=e[n+i];i=-1;for(var u=De(n+1);++i<n;)u[i]=e[i];return u[n]=r(a),Pt(t,this,u)}}function Fo(e,t){return t.length<2?e:zr(e,gi(t,0,-1))}function Wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Yo=Go(mi),qo=En||function(e,t){return xt.setTimeout(e,t)},Vo=Go(di);function $o(e,t,n){var r=t+"";return Vo(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(Ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Bt(j,function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=r.match(Re);return t?t[1].split(Ee):[]}(),n)))}function Go(t){var n=0,r=0;return function(){var i=Nn(),o=k-(i-r);if(r=i,o>0){if(++n>=A)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ho(t,n){var r=-1,i=t.length,o=i-1;for(n=n===e?i:n;++r<n;){var a=fi(r,o),u=t[a];t[a]=t[r],t[r]=u}return t.length=n,t}var Ko=function(e){var t=Ga(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xe,function(e,n,r,i){t.push(r?i.replace(je,"$1"):n||e)}),t},function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}();function Zo(e){if("string"==typeof e||wu(e))return e;var t=e+"";return"0"==t&&1/e==-S?"-0":t}function Jo(e){if(null!=e){try{return tt.call(e)}catch(n){}try{return e+""}catch(n){}}return""}function Xo(e){if(e instanceof sr)return e.clone();var t=new cr(e.__wrapped__,e.__chain__);return t.__actions__=Wi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Qo=pi(function(e,t){return au(e)?Rr(e,Pr(t,1,au,!0)):[]}),ea=pi(function(t,n){var r=sa(n);return au(r)&&(r=e),au(t)?Rr(t,Pr(n,1,au,!0),xo(r,2)):[]}),ta=pi(function(t,n){var r=sa(n);return au(r)&&(r=e),au(t)?Rr(t,Pr(n,1,au,!0),e,r):[]});function na(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Iu(n);return i<0&&(i=Ln(r+i,0)),Ht(e,xo(t,3),i)}function ra(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return r!==e&&(o=Iu(r),o=r<0?Ln(i+o,0):Un(o,i-1)),Ht(t,xo(n,3),o,!0)}function ia(e){return null!=e&&e.length?Pr(e,1):[]}function oa(t){return t&&t.length?t[0]:e}var aa=pi(function(e){var t=Ft(e,Ti);return t.length&&t[0]===e[0]?$r(t):[]}),ua=pi(function(t){var n=sa(t),r=Ft(t,Ti);return n===sa(r)?n=e:r.pop(),r.length&&r[0]===t[0]?$r(r,xo(n,2)):[]}),ca=pi(function(t){var n=sa(t),r=Ft(t,Ti);return(n="function"==typeof n?n:e)&&r.pop(),r.length&&r[0]===t[0]?$r(r,e,n):[]});function sa(t){var n=null==t?0:t.length;return n?t[n-1]:e}var fa=pi(la);function la(e,t){return e&&e.length&&t&&t.length?ci(e,t):e}var pa=go(function(e,t){var n=null==e?0:e.length,r=Ar(e,t);return si(e,Ft(t,function(e){return jo(e,n)?+e:e}).sort(Ni)),r});function ha(e){return null==e?e:Wn.call(e)}var ma=pi(function(e){return Ai(Pr(e,1,au,!0))}),da=pi(function(t){var n=sa(t);return au(n)&&(n=e),Ai(Pr(t,1,au,!0),xo(n,2))}),ga=pi(function(t){var n=sa(t);return n="function"==typeof n?n:e,Ai(Pr(t,1,au,!0),e,n)});function va(e){if(!e||!e.length)return[];var t=0;return e=Ut(e,function(e){if(au(e))return t=Ln(e.length,t),!0}),rn(t,function(t){return Ft(e,Qt(t))})}function ya(t,n){if(!t||!t.length)return[];var r=va(t);return null==n?r:Ft(r,function(t){return Pt(n,e,t)})}var _a=pi(function(e,t){return au(e)?Rr(e,t):[]}),ba=pi(function(e){return Ri(Ut(e,au))}),wa=pi(function(t){var n=sa(t);return au(n)&&(n=e),Ri(Ut(t,au),xo(n,2))}),xa=pi(function(t){var n=sa(t);return n="function"==typeof n?n:e,Ri(Ut(t,au),e,n)}),Aa=pi(va),ka=pi(function(t){var n=t.length,r=n>1?t[n-1]:e;return r="function"==typeof r?(t.pop(),r):e,ya(t,r)});function Sa(e){var t=or(e);return t.__chain__=!0,t}function Da(e,t){return t(e)}var Ia=go(function(t){var n=t.length,r=n?t[0]:0,i=this.__wrapped__,o=function(e){return Ar(e,t)};return!(n>1||this.__actions__.length)&&i instanceof sr&&jo(r)?((i=i.slice(r,+r+(n?1:0))).__actions__.push({func:Da,args:[o],thisArg:e}),new cr(i,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(o)}),Ra=qi(function(e,t,n){nt.call(e,n)?++e[n]:xr(e,n,1)}),Ea=Ji(na),Ta=Ji(ra);function Oa(e,t){return(ru(e)?Bt:Er)(e,xo(t,3))}function ja(e,t){return(ru(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Tr)(e,xo(t,3))}var Ca=qi(function(e,t,n){nt.call(e,n)?e[n].push(t):xr(e,n,[t])}),Pa=pi(function(e,t,n){var r=-1,i="function"==typeof t,o=ou(e)?De(e.length):[];return Er(e,function(e){o[++r]=i?Pt(t,e,n):Gr(e,t,n)}),o}),Ma=qi(function(e,t,n){xr(e,n,t)});function Ba(e,t){return(ru(e)?Ft:ti)(e,xo(t,3))}var La=qi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Ua=pi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Co(e,t[0],t[1])?t=[]:n>2&&Co(t[0],t[1],t[2])&&(t=[t[0]]),ai(e,Pr(t,1),[])}),Na=Rn||function(){return xt.Date.now()};function za(t,n,r){return n=r?e:n,n=t&&null==n?t.length:n,fo(t,b,e,e,e,e,n)}function Fa(t,n){var r;if("function"!=typeof n)throw new Ze(o);return t=Iu(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=e),r}}var Wa=pi(function(e,t,n){var r=h;if(n.length){var i=vn(n,wo(Wa));r|=y}return fo(e,r,t,n,i)}),Ya=pi(function(e,t,n){var r=h|m;if(n.length){var i=vn(n,wo(Ya));r|=y}return fo(t,r,e,n,i)});function qa(t,n,r){var i,a,u,c,s,f,l=0,p=!1,h=!1,m=!0;if("function"!=typeof t)throw new Ze(o);function d(n){var r=i,o=a;return i=a=e,l=n,c=t.apply(o,r)}function g(t){var r=t-f;return f===e||r>=n||r<0||h&&t-l>=u}function v(){var e=Na();if(g(e))return y(e);s=qo(v,function(e){var t=n-(e-f);return h?Un(t,u-(e-l)):t}(e))}function y(t){return s=e,m&&i?d(t):(i=a=e,c)}function _(){var t=Na(),r=g(t);if(i=arguments,a=this,f=t,r){if(s===e)return function(e){return l=e,s=qo(v,n),p?d(e):c}(f);if(h)return Mi(s),s=qo(v,n),d(f)}return s===e&&(s=qo(v,n)),c}return n=Eu(n)||0,hu(r)&&(p=!!r.leading,u=(h="maxWait"in r)?Ln(Eu(r.maxWait)||0,n):u,m="trailing"in r?!!r.trailing:m),_.cancel=function(){s!==e&&Mi(s),l=0,i=f=a=s=e},_.flush=function(){return s===e?c:y(Na())},_}var Va=pi(function(e,t){return Ir(e,1,t)}),$a=pi(function(e,t,n){return Ir(e,Eu(t)||0,n)});function Ga(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ze(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ga.Cache||pr),n}function Ha(e){if("function"!=typeof e)throw new Ze(o);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)}}Ga.Cache=pr;var Ka=Ci(function(e,t){var n=(t=1==t.length&&ru(t[0])?Ft(t[0],an(xo())):Ft(Pr(t,1),an(xo()))).length;return pi(function(r){for(var i=-1,o=Un(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Pt(e,this,r)})}),Za=pi(function(t,n){var r=vn(n,wo(Za));return fo(t,y,e,n,r)}),Ja=pi(function(t,n){var r=vn(n,wo(Ja));return fo(t,_,e,n,r)}),Xa=go(function(t,n){return fo(t,w,e,e,e,n)});function Qa(e,t){return e===t||e!=e&&t!=t}var eu=oo(Yr),tu=oo(function(e,t){return e>=t}),nu=Hr(function(){return arguments}())?Hr:function(e){return mu(e)&&nt.call(e,"callee")&&!It.call(e,"callee")},ru=De.isArray,iu=Rt?an(Rt):function(e){return mu(e)&&Wr(e)==Q};function ou(e){return null!=e&&pu(e.length)&&!fu(e)}function au(e){return mu(e)&&ou(e)}var uu=Cn||Ec,cu=Et?an(Et):function(e){return mu(e)&&Wr(e)==L};function su(e){if(!mu(e))return!1;var t=Wr(e);return t==N||t==U||"string"==typeof e.message&&"string"==typeof e.name&&!vu(e)}function fu(e){if(!hu(e))return!1;var t=Wr(e);return t==z||t==F||t==M||t==$}function lu(e){return"number"==typeof e&&e==Iu(e)}function pu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function hu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function mu(e){return null!=e&&"object"==typeof e}var du=Tt?an(Tt):function(e){return mu(e)&&Ro(e)==W};function gu(e){return"number"==typeof e||mu(e)&&Wr(e)==Y}function vu(e){if(!mu(e)||Wr(e)!=V)return!1;var t=kt(e);if(null===t)return!0;var n=nt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&tt.call(n)==at}var yu=Ot?an(Ot):function(e){return mu(e)&&Wr(e)==G},_u=jt?an(jt):function(e){return mu(e)&&Ro(e)==H};function bu(e){return"string"==typeof e||!ru(e)&&mu(e)&&Wr(e)==K}function wu(e){return"symbol"==typeof e||mu(e)&&Wr(e)==Z}var xu=Ct?an(Ct):function(e){return mu(e)&&pu(e.length)&&!!dt[Wr(e)]},Au=oo(ei),ku=oo(function(e,t){return e<=t});function Su(e){if(!e)return[];if(ou(e))return bu(e)?bn(e):Wi(e);if(kn&&e[kn])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[kn]());var t=Ro(e);return(t==W?dn:t==H?yn:Qu)(e)}function Du(e){return e?(e=Eu(e))===S||e===-S?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Iu(e){var t=Du(e),n=t%1;return t==t?n?t-n:t:0}function Ru(e){return e?kr(Iu(e),0,E):0}function Eu(e){if("number"==typeof e)return e;if(wu(e))return R;if(hu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=hu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=on(e);var n=Be.test(e);return n||Ue.test(e)?_t(e.slice(2),n?2:8):Me.test(e)?R:+e}function Tu(e){return Yi(e,Vu(e))}function Ou(e){return null==e?"":xi(e)}var ju=Vi(function(e,t){if(Lo(t)||ou(t))Yi(t,qu(t),e);else for(var n in t)nt.call(t,n)&&yr(e,n,t[n])}),Cu=Vi(function(e,t){Yi(t,Vu(t),e)}),Pu=Vi(function(e,t,n,r){Yi(t,Vu(t),e,r)}),Mu=Vi(function(e,t,n,r){Yi(t,qu(t),e,r)}),Bu=go(Ar),Lu=pi(function(t,n){t=Ge(t);var r=-1,i=n.length,o=i>2?n[2]:e;for(o&&Co(n[0],n[1],o)&&(i=1);++r<i;)for(var a=n[r],u=Vu(a),c=-1,s=u.length;++c<s;){var f=u[c],l=t[f];(l===e||Qa(l,Qe[f])&&!nt.call(t,f))&&(t[f]=a[f])}return t}),Uu=pi(function(t){return t.push(e,po),Pt(Gu,e,t)});function Nu(t,n,r){var i=null==t?e:zr(t,n);return i===e?r:i}function zu(e,t){return null!=e&&Eo(e,t,Vr)}var Fu=eo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ot.call(t)),e[t]=n},hc(gc)),Wu=eo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ot.call(t)),nt.call(e,t)?e[t].push(n):e[t]=[n]},xo),Yu=pi(Gr);function qu(e){return ou(e)?dr(e):Qr(e)}function Vu(e){return ou(e)?dr(e,!0):function(e){if(!hu(e))return function(e){var t=[];if(null!=e)for(var n in Ge(e))t.push(n);return t}(e);var t=Lo(e),n=[];for(var r in e)("constructor"!=r||!t&&nt.call(e,r))&&n.push(r);return n}(e)}var $u=Vi(function(e,t,n){ii(e,t,n)}),Gu=Vi(function(e,t,n,r){ii(e,t,n,r)}),Hu=go(function(e,t){var n={};if(null==e)return n;var r=!1;t=Ft(t,function(t){return t=ji(t,e),r||(r=t.length>1),t}),Yi(e,yo(e),n),r&&(n=Sr(n,c|s|f,ho));for(var i=t.length;i--;)ki(n,t[i]);return n}),Ku=go(function(e,t){return null==e?{}:function(e,t){return ui(e,t,function(t,n){return zu(e,n)})}(e,t)});function Zu(e,t){if(null==e)return{};var n=Ft(yo(e),function(e){return[e]});return t=xo(t),ui(e,n,function(e,n){return t(e,n[0])})}var Ju=so(qu),Xu=so(Vu);function Qu(e){return null==e?[]:un(e,qu(e))}var ec=Ki(function(e,t,n){return t=t.toLowerCase(),e+(n?tc(t):t)});function tc(e){return sc(Ou(e).toLowerCase())}function nc(e){return(e=Ou(e))&&e.replace(ze,ln).replace(ct,"")}var rc=Ki(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ic=Ki(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),oc=Hi("toLowerCase"),ac=Ki(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),uc=Ki(function(e,t,n){return e+(n?" ":"")+sc(t)}),cc=Ki(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),sc=Hi("toUpperCase");function fc(t,n,r){return t=Ou(t),(n=r?e:n)===e?function(e){return pt.test(e)}(t)?function(e){return e.match(ft)||[]}(t):function(e){return e.match(Te)||[]}(t):t.match(n)||[]}var lc=pi(function(t,n){try{return Pt(t,e,n)}catch(i){return su(i)?i:new qe(i)}}),pc=go(function(e,t){return Bt(t,function(t){t=Zo(t),xr(e,t,Wa(e[t],e))}),e});function hc(e){return function(){return e}}var mc=Xi(),dc=Xi(!0);function gc(e){return e}function vc(e){return Xr("function"==typeof e?e:Sr(e,c))}var yc=pi(function(e,t){return function(n){return Gr(n,e,t)}}),_c=pi(function(e,t){return function(n){return Gr(e,n,t)}});function bc(e,t,n){var r=qu(t),i=Nr(t,r);null!=n||hu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Nr(t,qu(t)));var o=!(hu(n)&&"chain"in n&&!n.chain),a=fu(e);return Bt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Wi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Wt([this.value()],arguments))})}),e}function wc(){}var xc=no(Ft),Ac=no(Lt),kc=no(Vt);function Sc(e){return Po(e)?Qt(Zo(e)):function(e){return function(t){return zr(t,e)}}(e)}var Dc=io(),Ic=io(!0);function Rc(){return[]}function Ec(){return!1}var Tc,Oc=to(function(e,t){return e+t},0),jc=uo("ceil"),Cc=to(function(e,t){return e/t},1),Pc=uo("floor"),Mc=to(function(e,t){return e*t},1),Bc=uo("round"),Lc=to(function(e,t){return e-t},0);return or.after=function(e,t){if("function"!=typeof t)throw new Ze(o);return e=Iu(e),function(){if(--e<1)return t.apply(this,arguments)}},or.ary=za,or.assign=ju,or.assignIn=Cu,or.assignInWith=Pu,or.assignWith=Mu,or.at=Bu,or.before=Fa,or.bind=Wa,or.bindAll=pc,or.bindKey=Ya,or.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ru(e)?e:[e]},or.chain=Sa,or.chunk=function(t,n,r){n=(r?Co(t,n,r):n===e)?1:Ln(Iu(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,a=0,u=De(Tn(i/n));o<i;)u[a++]=gi(t,o,o+=n);return u},or.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},or.concat=function(){var e=arguments.length;if(!e)return[];for(var t=De(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Wt(ru(n)?Wi(n):[n],Pr(t,1))},or.cond=function(e){var t=null==e?0:e.length,n=xo();return e=t?Ft(e,function(e){if("function"!=typeof e[1])throw new Ze(o);return[n(e[0]),e[1]]}):[],pi(function(n){for(var r=-1;++r<t;){var i=e[r];if(Pt(i[0],this,n))return Pt(i[1],this,n)}})},or.conforms=function(e){return function(e){var t=qu(e);return function(n){return Dr(n,e,t)}}(Sr(e,c))},or.constant=hc,or.countBy=Ra,or.create=function(e,t){var n=ar(e);return null==t?n:wr(n,t)},or.curry=function t(n,r,i){var o=fo(n,g,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},or.curryRight=function t(n,r,i){var o=fo(n,v,e,e,e,e,e,r=i?e:r);return o.placeholder=t.placeholder,o},or.debounce=qa,or.defaults=Lu,or.defaultsDeep=Uu,or.defer=Va,or.delay=$a,or.difference=Qo,or.differenceBy=ea,or.differenceWith=ta,or.drop=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,(n=r||n===e?1:Iu(n))<0?0:n,i):[]},or.dropRight=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,0,(n=i-(n=r||n===e?1:Iu(n)))<0?0:n):[]},or.dropRightWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!0,!0):[]},or.dropWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!0):[]},or.fill=function(t,n,r,i){var o=null==t?0:t.length;return o?(r&&"number"!=typeof r&&Co(t,n,r)&&(r=0,i=o),function(t,n,r,i){var o=t.length;for((r=Iu(r))<0&&(r=-r>o?0:o+r),(i=i===e||i>o?o:Iu(i))<0&&(i+=o),i=r>i?0:Ru(i);r<i;)t[r++]=n;return t}(t,n,r,i)):[]},or.filter=function(e,t){return(ru(e)?Ut:Cr)(e,xo(t,3))},or.flatMap=function(e,t){return Pr(Ba(e,t),1)},or.flatMapDeep=function(e,t){return Pr(Ba(e,t),S)},or.flatMapDepth=function(t,n,r){return r=r===e?1:Iu(r),Pr(Ba(t,n),r)},or.flatten=ia,or.flattenDeep=function(e){return null!=e&&e.length?Pr(e,S):[]},or.flattenDepth=function(t,n){return null!=t&&t.length?Pr(t,n=n===e?1:Iu(n)):[]},or.flip=function(e){return fo(e,x)},or.flow=mc,or.flowRight=dc,or.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},or.functions=function(e){return null==e?[]:Nr(e,qu(e))},or.functionsIn=function(e){return null==e?[]:Nr(e,Vu(e))},or.groupBy=Ca,or.initial=function(e){return null!=e&&e.length?gi(e,0,-1):[]},or.intersection=aa,or.intersectionBy=ua,or.intersectionWith=ca,or.invert=Fu,or.invertBy=Wu,or.invokeMap=Pa,or.iteratee=vc,or.keyBy=Ma,or.keys=qu,or.keysIn=Vu,or.map=Ba,or.mapKeys=function(e,t){var n={};return t=xo(t,3),Lr(e,function(e,r,i){xr(n,t(e,r,i),e)}),n},or.mapValues=function(e,t){var n={};return t=xo(t,3),Lr(e,function(e,r,i){xr(n,r,t(e,r,i))}),n},or.matches=function(e){return ni(Sr(e,c))},or.matchesProperty=function(e,t){return ri(e,Sr(t,c))},or.memoize=Ga,or.merge=$u,or.mergeWith=Gu,or.method=yc,or.methodOf=_c,or.mixin=bc,or.negate=Ha,or.nthArg=function(e){return e=Iu(e),pi(function(t){return oi(t,e)})},or.omit=Hu,or.omitBy=function(e,t){return Zu(e,Ha(xo(t)))},or.once=function(e){return Fa(2,e)},or.orderBy=function(t,n,r,i){return null==t?[]:(ru(n)||(n=null==n?[]:[n]),ru(r=i?e:r)||(r=null==r?[]:[r]),ai(t,n,r))},or.over=xc,or.overArgs=Ka,or.overEvery=Ac,or.overSome=kc,or.partial=Za,or.partialRight=Ja,or.partition=La,or.pick=Ku,or.pickBy=Zu,or.property=Sc,or.propertyOf=function(t){return function(n){return null==t?e:zr(t,n)}},or.pull=fa,or.pullAll=la,or.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?ci(e,t,xo(n,2)):e},or.pullAllWith=function(t,n,r){return t&&t.length&&n&&n.length?ci(t,n,e,r):t},or.pullAt=pa,or.range=Dc,or.rangeRight=Ic,or.rearg=Xa,or.reject=function(e,t){return(ru(e)?Ut:Cr)(e,Ha(xo(t,3)))},or.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=xo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return si(e,i),n},or.rest=function(t,n){if("function"!=typeof t)throw new Ze(o);return pi(t,n=n===e?n:Iu(n))},or.reverse=ha,or.sampleSize=function(t,n,r){return n=(r?Co(t,n,r):n===e)?1:Iu(n),(ru(t)?function(e,t){return Ho(Wi(e),kr(t,0,e.length))}:function(e,t){var n=Qu(e);return Ho(n,kr(t,0,n.length))})(t,n)},or.set=function(e,t,n){return null==e?e:hi(e,t,n)},or.setWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:hi(t,n,r,i)},or.shuffle=function(e){return(ru(e)?function(e){return Ho(Wi(e))}:function(e){return Ho(Qu(e))})(e)},or.slice=function(t,n,r){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&Co(t,n,r)?(n=0,r=i):(n=null==n?0:Iu(n),r=r===e?i:Iu(r)),gi(t,n,r)):[]},or.sortBy=Ua,or.sortedUniq=function(e){return e&&e.length?bi(e):[]},or.sortedUniqBy=function(e,t){return e&&e.length?bi(e,xo(t,2)):[]},or.split=function(t,n,r){return r&&"number"!=typeof r&&Co(t,n,r)&&(n=r=e),(r=r===e?E:r>>>0)?(t=Ou(t))&&("string"==typeof n||null!=n&&!yu(n))&&!(n=xi(n))&&mn(t)?Pi(bn(t),0,r):t.split(n,r):[]},or.spread=function(e,t){if("function"!=typeof e)throw new Ze(o);return t=null==t?0:Ln(Iu(t),0),pi(function(n){var r=n[t],i=Pi(n,0,t);return r&&Wt(i,r),Pt(e,this,i)})},or.tail=function(e){var t=null==e?0:e.length;return t?gi(e,1,t):[]},or.take=function(t,n,r){return t&&t.length?gi(t,0,(n=r||n===e?1:Iu(n))<0?0:n):[]},or.takeRight=function(t,n,r){var i=null==t?0:t.length;return i?gi(t,(n=i-(n=r||n===e?1:Iu(n)))<0?0:n,i):[]},or.takeRightWhile=function(e,t){return e&&e.length?Di(e,xo(t,3),!1,!0):[]},or.takeWhile=function(e,t){return e&&e.length?Di(e,xo(t,3)):[]},or.tap=function(e,t){return t(e),e},or.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ze(o);return hu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),qa(e,t,{leading:r,maxWait:t,trailing:i})},or.thru=Da,or.toArray=Su,or.toPairs=Ju,or.toPairsIn=Xu,or.toPath=function(e){return ru(e)?Ft(e,Zo):wu(e)?[e]:Wi(Ko(Ou(e)))},or.toPlainObject=Tu,or.transform=function(e,t,n){var r=ru(e),i=r||uu(e)||xu(e);if(t=xo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:hu(e)&&fu(o)?ar(kt(e)):{}}return(i?Bt:Lr)(e,function(e,r,i){return t(n,e,r,i)}),n},or.unary=function(e){return za(e,1)},or.union=ma,or.unionBy=da,or.unionWith=ga,or.uniq=function(e){return e&&e.length?Ai(e):[]},or.uniqBy=function(e,t){return e&&e.length?Ai(e,xo(t,2)):[]},or.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?Ai(t,e,n):[]},or.unset=function(e,t){return null==e||ki(e,t)},or.unzip=va,or.unzipWith=ya,or.update=function(e,t,n){return null==e?e:Si(e,t,Oi(n))},or.updateWith=function(t,n,r,i){return i="function"==typeof i?i:e,null==t?t:Si(t,n,Oi(r),i)},or.values=Qu,or.valuesIn=function(e){return null==e?[]:un(e,Vu(e))},or.without=_a,or.words=fc,or.wrap=function(e,t){return Za(Oi(t),e)},or.xor=ba,or.xorBy=wa,or.xorWith=xa,or.zip=Aa,or.zipObject=function(e,t){return Ei(e||[],t||[],yr)},or.zipObjectDeep=function(e,t){return Ei(e||[],t||[],hi)},or.zipWith=ka,or.entries=Ju,or.entriesIn=Xu,or.extend=Cu,or.extendWith=Pu,bc(or,or),or.add=Oc,or.attempt=lc,or.camelCase=ec,or.capitalize=tc,or.ceil=jc,or.clamp=function(t,n,r){return r===e&&(r=n,n=e),r!==e&&(r=(r=Eu(r))==r?r:0),n!==e&&(n=(n=Eu(n))==n?n:0),kr(Eu(t),n,r)},or.clone=function(e){return Sr(e,f)},or.cloneDeep=function(e){return Sr(e,c|f)},or.cloneDeepWith=function(t,n){return Sr(t,c|f,n="function"==typeof n?n:e)},or.cloneWith=function(t,n){return Sr(t,f,n="function"==typeof n?n:e)},or.conformsTo=function(e,t){return null==t||Dr(e,t,qu(t))},or.deburr=nc,or.defaultTo=function(e,t){return null==e||e!=e?t:e},or.divide=Cc,or.endsWith=function(t,n,r){t=Ou(t),n=xi(n);var i=t.length,o=r=r===e?i:kr(Iu(r),0,i);return(r-=n.length)>=0&&t.slice(r,o)==n},or.eq=Qa,or.escape=function(e){return(e=Ou(e))&&ge.test(e)?e.replace(me,pn):e},or.escapeRegExp=function(e){return(e=Ou(e))&&ke.test(e)?e.replace(Ae,"\\$&"):e},or.every=function(t,n,r){var i=ru(t)?Lt:Or;return r&&Co(t,n,r)&&(n=e),i(t,xo(n,3))},or.find=Ea,or.findIndex=na,or.findKey=function(e,t){return Gt(e,xo(t,3),Lr)},or.findLast=Ta,or.findLastIndex=ra,or.findLastKey=function(e,t){return Gt(e,xo(t,3),Ur)},or.floor=Pc,or.forEach=Oa,or.forEachRight=ja,or.forIn=function(e,t){return null==e?e:Mr(e,xo(t,3),Vu)},or.forInRight=function(e,t){return null==e?e:Br(e,xo(t,3),Vu)},or.forOwn=function(e,t){return e&&Lr(e,xo(t,3))},or.forOwnRight=function(e,t){return e&&Ur(e,xo(t,3))},or.get=Nu,or.gt=eu,or.gte=tu,or.has=function(e,t){return null!=e&&Eo(e,t,qr)},or.hasIn=zu,or.head=oa,or.identity=gc,or.includes=function(e,t,n,r){e=ou(e)?e:Qu(e),n=n&&!r?Iu(n):0;var i=e.length;return n<0&&(n=Ln(i+n,0)),bu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Kt(e,t,n)>-1},or.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Iu(n);return i<0&&(i=Ln(r+i,0)),Kt(e,t,i)},or.inRange=function(t,n,r){return n=Du(n),r===e?(r=n,n=0):r=Du(r),function(e,t,n){return e>=Un(t,n)&&e<Ln(t,n)}(t=Eu(t),n,r)},or.invoke=Yu,or.isArguments=nu,or.isArray=ru,or.isArrayBuffer=iu,or.isArrayLike=ou,or.isArrayLikeObject=au,or.isBoolean=function(e){return!0===e||!1===e||mu(e)&&Wr(e)==B},or.isBuffer=uu,or.isDate=cu,or.isElement=function(e){return mu(e)&&1===e.nodeType&&!vu(e)},or.isEmpty=function(e){if(null==e)return!0;if(ou(e)&&(ru(e)||"string"==typeof e||"function"==typeof e.splice||uu(e)||xu(e)||nu(e)))return!e.length;var t=Ro(e);if(t==W||t==H)return!e.size;if(Lo(e))return!Qr(e).length;for(var n in e)if(nt.call(e,n))return!1;return!0},or.isEqual=function(e,t){return Kr(e,t)},or.isEqualWith=function(t,n,r){var i=(r="function"==typeof r?r:e)?r(t,n):e;return i===e?Kr(t,n,e,r):!!i},or.isError=su,or.isFinite=function(e){return"number"==typeof e&&Pn(e)},or.isFunction=fu,or.isInteger=lu,or.isLength=pu,or.isMap=du,or.isMatch=function(e,t){return e===t||Zr(e,t,ko(t))},or.isMatchWith=function(t,n,r){return r="function"==typeof r?r:e,Zr(t,n,ko(n),r)},or.isNaN=function(e){return gu(e)&&e!=+e},or.isNative=function(e){if(Bo(e))throw new qe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Jr(e)},or.isNil=function(e){return null==e},or.isNull=function(e){return null===e},or.isNumber=gu,or.isObject=hu,or.isObjectLike=mu,or.isPlainObject=vu,or.isRegExp=yu,or.isSafeInteger=function(e){return lu(e)&&e>=-D&&e<=D},or.isSet=_u,or.isString=bu,or.isSymbol=wu,or.isTypedArray=xu,or.isUndefined=function(t){return t===e},or.isWeakMap=function(e){return mu(e)&&Ro(e)==X},or.isWeakSet=function(e){return mu(e)&&"[object WeakSet]"==Wr(e)},or.join=function(e,t){return null==e?"":Mn.call(e,t)},or.kebabCase=rc,or.last=sa,or.lastIndexOf=function(t,n,r){var i=null==t?0:t.length;if(!i)return-1;var o=i;return r!==e&&(o=(o=Iu(r))<0?Ln(i+o,0):Un(o,i-1)),n==n?function(e,t,n){for(var r=o+1;r--;)if(e[r]===t)return r;return r}(t,n):Ht(t,Jt,o,!0)},or.lowerCase=ic,or.lowerFirst=oc,or.lt=Au,or.lte=ku,or.max=function(t){return t&&t.length?jr(t,gc,Yr):e},or.maxBy=function(t,n){return t&&t.length?jr(t,xo(n,2),Yr):e},or.mean=function(e){return Xt(e,gc)},or.meanBy=function(e,t){return Xt(e,xo(t,2))},or.min=function(t){return t&&t.length?jr(t,gc,ei):e},or.minBy=function(t,n){return t&&t.length?jr(t,xo(n,2),ei):e},or.stubArray=Rc,or.stubFalse=Ec,or.stubObject=function(){return{}},or.stubString=function(){return""},or.stubTrue=function(){return!0},or.multiply=Mc,or.nth=function(t,n){return t&&t.length?oi(t,Iu(n)):e},or.noConflict=function(){return xt._===this&&(xt._=st),this},or.noop=wc,or.now=Na,or.pad=function(e,t,n){e=Ou(e);var r=(t=Iu(t))?_n(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ro(On(i),n)+e+ro(Tn(i),n)},or.padEnd=function(e,t,n){e=Ou(e);var r=(t=Iu(t))?_n(e):0;return t&&r<t?e+ro(t-r,n):e},or.padStart=function(e,t,n){e=Ou(e);var r=(t=Iu(t))?_n(e):0;return t&&r<t?ro(t-r,n)+e:e},or.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),zn(Ou(e).replace(Se,""),t||0)},or.random=function(t,n,r){if(r&&"boolean"!=typeof r&&Co(t,n,r)&&(n=r=e),r===e&&("boolean"==typeof n?(r=n,n=e):"boolean"==typeof t&&(r=t,t=e)),t===e&&n===e?(t=0,n=1):(t=Du(t),n===e?(n=t,t=0):n=Du(n)),t>n){var i=t;t=n,n=i}if(r||t%1||n%1){var o=Fn();return Un(t+o*(n-t+yt("1e-"+((o+"").length-1))),n)}return fi(t,n)},or.reduce=function(e,t,n){var r=ru(e)?Yt:tn,i=arguments.length<3;return r(e,xo(t,4),n,i,Er)},or.reduceRight=function(e,t,n){var r=ru(e)?qt:tn,i=arguments.length<3;return r(e,xo(t,4),n,i,Tr)},or.repeat=function(t,n,r){return n=(r?Co(t,n,r):n===e)?1:Iu(n),li(Ou(t),n)},or.replace=function(){var e=arguments,t=Ou(e[0]);return e.length<3?t:t.replace(e[1],e[2])},or.result=function(t,n,r){var i=-1,o=(n=ji(n,t)).length;for(o||(o=1,t=e);++i<o;){var a=null==t?e:t[Zo(n[i])];a===e&&(i=o,a=r),t=fu(a)?a.call(t):a}return t},or.round=Bc,or.runInContext=t,or.sample=function(e){return(ru(e)?gr:function(e){return gr(Qu(e))})(e)},or.size=function(e){if(null==e)return 0;if(ou(e))return bu(e)?_n(e):e.length;var t=Ro(e);return t==W||t==H?e.size:Qr(e).length},or.snakeCase=ac,or.some=function(t,n,r){var i=ru(t)?Vt:vi;return r&&Co(t,n,r)&&(n=e),i(t,xo(n,3))},or.sortedIndex=function(e,t){return yi(e,t)},or.sortedIndexBy=function(e,t,n){return _i(e,t,xo(n,2))},or.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=yi(e,t);if(r<n&&Qa(e[r],t))return r}return-1},or.sortedLastIndex=function(e,t){return yi(e,t,!0)},or.sortedLastIndexBy=function(e,t,n){return _i(e,t,xo(n,2),!0)},or.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=yi(e,t,!0)-1;if(Qa(e[n],t))return n}return-1},or.startCase=uc,or.startsWith=function(e,t,n){return e=Ou(e),n=null==n?0:kr(Iu(n),0,e.length),t=xi(t),e.slice(n,n+t.length)==t},or.subtract=Lc,or.sum=function(e){return e&&e.length?nn(e,gc):0},or.sumBy=function(e,t){return e&&e.length?nn(e,xo(t,2)):0},or.template=function(t,n,r){var i=or.templateSettings;r&&Co(t,n,r)&&(n=e),t=Ou(t),n=Pu({},n,i,lo);var o,a,u=Pu({},n.imports,i.imports,lo),c=qu(u),s=un(u,c),f=0,l=n.interpolate||Fe,p="__p += '",h=He((n.escape||Fe).source+"|"+l.source+"|"+(l===_e?Ce:Fe).source+"|"+(n.evaluate||Fe).source+"|$","g"),m="//# sourceURL="+(nt.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++mt+"]")+"\n";t.replace(h,function(e,n,r,i,u,c){return r||(r=i),p+=t.slice(f,c).replace(We,hn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+e.length,e}),p+="';\n";var d=nt.call(n,"variable")&&n.variable;if(d){if(Oe.test(d))throw new qe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(fe,""):p).replace(le,"$1").replace(pe,"$1;"),p="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=lc(function(){return Ve(c,m+"return "+p).apply(e,s)});if(g.source=p,su(g))throw g;return g},or.times=function(e,t){if((e=Iu(e))<1||e>D)return[];var n=E,r=Un(e,E);t=xo(t),e-=E;for(var i=rn(r,t);++n<e;)t(n);return i},or.toFinite=Du,or.toInteger=Iu,or.toLength=Ru,or.toLower=function(e){return Ou(e).toLowerCase()},or.toNumber=Eu,or.toSafeInteger=function(e){return e?kr(Iu(e),-D,D):0===e?e:0},or.toString=Ou,or.toUpper=function(e){return Ou(e).toUpperCase()},or.trim=function(t,n,r){if((t=Ou(t))&&(r||n===e))return on(t);if(!t||!(n=xi(n)))return t;var i=bn(t),o=bn(n);return Pi(i,sn(i,o),fn(i,o)+1).join("")},or.trimEnd=function(t,n,r){if((t=Ou(t))&&(r||n===e))return t.slice(0,wn(t)+1);if(!t||!(n=xi(n)))return t;var i=bn(t);return Pi(i,0,fn(i,bn(n))+1).join("")},or.trimStart=function(t,n,r){if((t=Ou(t))&&(r||n===e))return t.replace(Se,"");if(!t||!(n=xi(n)))return t;var i=bn(t);return Pi(i,sn(i,bn(n))).join("")},or.truncate=function(t,n){var r=30,i="...";if(hu(n)){var o="separator"in n?n.separator:o;r="length"in n?Iu(n.length):r,i="omission"in n?xi(n.omission):i}var a=(t=Ou(t)).length;if(mn(t)){var u=bn(t);a=u.length}if(r>=a)return t;var c=r-_n(i);if(c<1)return i;var s=u?Pi(u,0,c).join(""):t.slice(0,c);if(o===e)return s+i;if(u&&(c+=s.length-c),yu(o)){if(t.slice(c).search(o)){var f,l=s;for(o.global||(o=He(o.source,Ou(Pe.exec(o))+"g")),o.lastIndex=0;f=o.exec(l);)var p=f.index;s=s.slice(0,p===e?c:p)}}else if(t.indexOf(xi(o),c)!=c){var h=s.lastIndexOf(o);h>-1&&(s=s.slice(0,h))}return s+i},or.unescape=function(e){return(e=Ou(e))&&de.test(e)?e.replace(he,xn):e},or.uniqueId=function(e){var t=++rt;return Ou(e)+t},or.upperCase=cc,or.upperFirst=sc,or.each=Oa,or.eachRight=ja,or.first=oa,bc(or,(Tc={},Lr(or,function(e,t){nt.call(or.prototype,t)||(Tc[t]=e)}),Tc),{chain:!1}),or.VERSION="4.17.21",Bt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){or[e].placeholder=or}),Bt(["drop","take"],function(t,n){sr.prototype[t]=function(r){r=r===e?1:Ln(Iu(r),0);var i=this.__filtered__&&!n?new sr(this):this.clone();return i.__filtered__?i.__takeCount__=Un(r,i.__takeCount__):i.__views__.push({size:Un(r,E),type:t+(i.__dir__<0?"Right":"")}),i},sr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Bt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;sr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:xo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Bt(["head","last"],function(e,t){var n="take"+(t?"Right":"");sr.prototype[e]=function(){return this[n](1).value()[0]}}),Bt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");sr.prototype[e]=function(){return this.__filtered__?new sr(this):this[n](1)}}),sr.prototype.compact=function(){return this.filter(gc)},sr.prototype.find=function(e){return this.filter(e).head()},sr.prototype.findLast=function(e){return this.reverse().find(e)},sr.prototype.invokeMap=pi(function(e,t){return"function"==typeof e?new sr(this):this.map(function(n){return Gr(n,e,t)})}),sr.prototype.reject=function(e){return this.filter(Ha(xo(e)))},sr.prototype.slice=function(t,n){t=Iu(t);var r=this;return r.__filtered__&&(t>0||n<0)?new sr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),n!==e&&(r=(n=Iu(n))<0?r.dropRight(-n):r.take(n-t)),r)},sr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},sr.prototype.toArray=function(){return this.take(E)},Lr(sr.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=or[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(or.prototype[n]=function(){var n=this.__wrapped__,u=i?[1]:arguments,c=n instanceof sr,s=u[0],f=c||ru(n),l=function(e){var t=o.apply(or,Wt([e],u));return i&&p?t[0]:t};f&&r&&"function"==typeof s&&1!=s.length&&(c=f=!1);var p=this.__chain__,h=!!this.__actions__.length,m=a&&!p,d=c&&!h;if(!a&&f){n=d?n:new sr(this);var g=t.apply(n,u);return g.__actions__.push({func:Da,args:[l],thisArg:e}),new cr(g,p)}return m&&d?t.apply(this,u):(g=this.thru(l),m?i?g.value()[0]:g.value():g)})}),Bt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);or.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ru(i)?i:[],e)}return this[n](function(n){return t.apply(ru(n)?n:[],e)})}}),Lr(sr.prototype,function(e,t){var n=or[t];if(n){var r=n.name+"";nt.call(Zn,r)||(Zn[r]=[]),Zn[r].push({name:t,func:n})}}),Zn[Qi(e,m).name]=[{name:"wrapper",func:e}],sr.prototype.clone=function(){var e=new sr(this.__wrapped__);return e.__actions__=Wi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Wi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Wi(this.__views__),e},sr.prototype.reverse=function(){if(this.__filtered__){var e=new sr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},sr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ru(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Un(t,e+a);break;case"takeRight":e=Ln(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,u=o.end,c=u-a,s=r?u:a-1,f=this.__iteratees__,l=f.length,p=0,h=Un(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return Ii(e,this.__actions__);var m=[];e:for(;c--&&p<h;){for(var d=-1,g=e[s+=t];++d<l;){var v=f[d],y=v.iteratee,_=v.type,b=y(g);if(2==_)g=b;else if(!b){if(1==_)continue e;break e}}m[p++]=g}return m},or.prototype.at=Ia,or.prototype.chain=function(){return Sa(this)},or.prototype.commit=function(){return new cr(this.value(),this.__chain__)},or.prototype.next=function(){this.__values__===e&&(this.__values__=Su(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},or.prototype.plant=function(t){for(var n,r=this;r instanceof ur;){var i=Xo(r);i.__index__=0,i.__values__=e,n?o.__wrapped__=i:n=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,n},or.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof sr){var n=t;return this.__actions__.length&&(n=new sr(this)),(n=n.reverse()).__actions__.push({func:Da,args:[ha],thisArg:e}),new cr(n,this.__chain__)}return this.thru(ha)},or.prototype.toJSON=or.prototype.valueOf=or.prototype.value=function(){return Ii(this.__wrapped__,this.__actions__)},or.prototype.first=or.prototype.head,kn&&(or.prototype[kn]=function(){return this}),or}();kt?((kt.exports=An)._=An,At._=An):xt._=An}).call(this)},{buffer:"dskh"}],I6jy:[function(e,t,n){"use strict";function r(e){return(r="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})(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(){o=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),a(o,n.prototype)}function i(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){return t[n]=e[r[n]],t},Object.create(null))}return function(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&&a(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=i(n,this)),n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var a=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,function(e,t){return"$"+a[t]}))}if("function"==typeof o){var u=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!==r(e[e.length-1])&&(e=[].slice.call(e)).push(i(e,u)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},o.apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return c(t,e),t},f=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.getExpressionDocContext=n.getExpressionLine=n.getFileExtension=n.SupportedFileExtensions=n.AllMetaCommands=n.AllKeywords=n.Keywords=n.MetaCommands=n.SupportedUsingFileExtensions=n.SupportedDocumentContextValues=void 0;var l=e("./WerckmeisterAutoHintDb"),p=s(e("lodash"));n.SupportedDocumentContextValues={voice:"voice",document:"document",track:"track",accomp:"accomp",mod:"mod",voicingStrategy:"voicingStrategy"},n.SupportedUsingFileExtensions=[".lua",".template",".chords",".pitchmap",".config",".conductions",".part"],n.MetaCommands=p.fromPairs(p.map(l.getAutoHintDb(),function(e,t){return[t,t]})),n.Keywords=Object.assign({using:"using"},n.MetaCommands),n.AllKeywords=p.values(n.Keywords),n.AllMetaCommands=p.values(n.MetaCommands);var h=["(".concat(n.AllMetaCommands.join("|"),")\\s*:\\s*[^/;]*$"),"".concat(n.Keywords.using,"[^;]*$")],m=new RegExp(".*?(".concat(h.join("|"),")"),"s"),d=o(/(.*\/([0-9A-Z_a-z]+$))|(^([A-Za-z]+)$)/,{a:2,b:4}),g=/\.*?\{[^}]*$/,v=/\.*?\[[^\]]*$/;n.SupportedFileExtensions=[].concat(function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.SupportedUsingFileExtensions),[".sheet"]),n.getFileExtension=function(e){if(e)return(e.match(/^.*(\.\w+)$/)||[])[1]},n.getExpressionLine=function(e,t){var n;return f(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o,a,u,c,s,f,l;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i=t.line;case 1:if(!(i>=0)){r.next=16;break}return o={line:i,col:0},r.next=5,e.getRange(o,t);case 5:if(a=r.sent,!(u=m.exec(a))){r.next=10;break}return c=u[1],r.abrupt("return",c.replace(/\n/g," "));case 10:if(!(p.findIndex(a,function(e){return"]"===e||"}"===e||";"===e})>=0)){r.next=13;break}return r.abrupt("break",16);case 13:--i,r.next=1;break;case 16:return r.next=18,e.getRange({line:t.line,col:0},t);case 18:if(s=r.sent,f=(null===(n=s.match(d))||void 0===n?void 0:n.groups)||{},!(l=f.a||f.b)){r.next=23;break}return r.abrupt("return",l);case 23:return r.abrupt("return","");case 24:case"end":return r.stop()}},r)}))},n.getExpressionDocContext=function(e,t){return f(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i={line:0,col:0},r.next=3,e.getRange(i,t);case 3:if(!(o=r.sent).match(g)){r.next=6;break}return r.abrupt("return",n.SupportedDocumentContextValues.voice);case 6:if(!o.match(v)){r.next=8;break}return r.abrupt("return",n.SupportedDocumentContextValues.track);case 8:return r.abrupt("return",n.SupportedDocumentContextValues.document);case 9:case"end":return r.stop()}},r)}))}},{"./WerckmeisterAutoHintDb":"Y3F9",lodash:"B1iE"}],zyF4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GMInstruments=void 0,n.GMInstruments=["Acoustic Grand Piano","Bright Acoustic Piano","Electric Grand Piano","Honky-tonk Piano","Electric Piano 1","Electric Piano 2","Harpsichord","Clavi","Celesta","Glockenspiel","Music Box","Vibraphone","Marimba","Xylophone","Tubular Bells","Dulcimer","Drawbar Organ","Percussive Organ","Rock Organ","Church Organ","Reed Organ","Accordion","Harmonica","Tango Accordion","Acoustic Guitar Nylon","Acoustic Guitar Steel","Electric Guitar Jazz","Electric Guitar Clean","Electric Guitar Muted","Overdriven Guitar","Distortion Guitar","Guitar harmonics","Acoustic Bass","Electric Bass Finger","Electric Bass Pick","Fretless Bass","Slap Bass 1","Slap Bass 2","Synth Bass 1","Synth Bass 2","Violin","Viola","Cello","Contrabass","Tremolo Strings","Pizzicato Strings","Orchestral Harp","Timpani","String Ensemble 1","String Ensemble 2","SynthStrings 1","SynthStrings 2","Choir Aahs","Voice Oohs","Synth Voice","Orchestra Hit","Trumpet","Trombone","Tuba","Muted Trumpet","French Horn","Brass Section","SynthBrass 1","SynthBrass 2","Soprano Sax","Alto Sax","Tenor Sax","Baritone Sax","Oboe","English Horn","Bassoon","Clarinet","Piccolo","Flute","Recorder","Pan Flute","Blown Bottle","Shakuhachi","Whistle","Ocarina","Lead 1 Square","Lead 2 Sawtooth","Lead 3 Calliope","Lead 4 Chiff","Lead 5 Charang","Lead 6 Voice","Lead 7 Fifths","Lead 8 Bass+Lead","Pad 1 New Age","Pad 2 Warm","Pad 3 Polysynth","Pad 4 Choir","Pad 5 Bowed","Pad 6 Metallic","Pad 7 Halo","Pad 8 Sweep","FX 1 Rain","FX 2 Soundtrack","FX 3 Crystal","FX 4 Atmosphere","FX 5 Brightness","FX 6 Goblins","FX 7 Echoes","FX 8 Sci-Fi","Sitar","Banjo","Shamisen","Koto","Kalimba","Bag pipe","Fiddle","Shanai","Tinkle Bell","Agogo","Steel Drums","Woodblock","Taiko Drum","Melodic Tom","Synth Drum","Reverse Cymbal","Guitar Fret Noise","Breath Noise","Seashore","Bird Tweet","Telephone Ring","Helicopter","Applause","Gunshot"]},{}],ykR4:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.CommandArgument=void 0;var a=e("../../Common"),u=e("./GMInstruments"),c=e("../../WerckmeisterAutoHintDb"),s=[a.Keywords.mod,a.Keywords.voicingStrategy,a.Keywords.do,a.Keywords.doOnce],f=[a.Keywords.volume,a.Keywords.pan],l=[].concat(f,s),p=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.environmentInspector=t,this.autoHintDb=c.getAutoHintDb()}return i(e,[{key:"getModName",value:function(e){e=e||"";var t=l.join("|"),n=new RegExp("\\s*(".concat(a.Keywords.modOnce,"|").concat(t,')\\s*:.*_use="?([a-zA-Z0-9]+)"?')).exec(e);return n||(n=new RegExp("\\s*(".concat(a.Keywords.modOnce,"|").concat(t,")\\s*:\\s*([a-zA-Z0-9]+)")).exec(e)),!n||n.length<2?"":n[2]}},{key:"getInstrumentConfModName",value:function(e){e=e||"";var t=l.join("|"),n=(new RegExp(".*(".concat(t,").*")).exec(e)||[])[1];if(n&&f.includes(n))return n;t=l.map(function(e){return"".concat(e,".*")}).join("|");var r=(new RegExp(".*(".concat(t,")")).exec(e)||[])[1];if(r){var i=r.match(/\s*_use="?([a-zA-Z0-9]+)"?/);return i&&i.length>1?i[1]:(t=l.join("|"),!(i=new RegExp("\\s*(".concat(t,")\\s*([a-zA-Z0-9]+)")).exec(r))||i.length<2?"":i[2])}}},{key:"isMod",value:function(e){return e===a.Keywords.mod||e===a.Keywords.modOnce||e===a.Keywords.voicingStrategy}},{key:"isInstrumentConf",value:function(e){return e===a.Keywords.instrumentConf}},{key:"getParameterSuggestion",value:function(e,t){var n=e.getParameter();return t&&(n=n.filter(function(e){return e.getName().startsWith(t)})),n.sort(function(e,t){return e.getName().localeCompare(t.getName())}).map(function(t){return{displayText:t.getName(),text:"_".concat(t.getName()),deprecated:t.getDeprecatedText(),command:e,description:t.getDescription()}})}},{key:"getInstrumentDefPcSuggestions",value:function(e,t,n){var r=u.GMInstruments.map(function(n,r){return{displayText:"".concat(n," (").concat(r,")"),text:r.toString(),command:e,parameter:t}});return n&&(r=r.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r}},{key:"getInstrumentDefGmNameSuggestions",value:function(e,t,n){var r=u.GMInstruments.map(function(n,r){return{displayText:"".concat(n," (").concat(r,")"),text:'"'.concat(n,'"'),command:e,parameter:t}});return n&&(r=r.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r}},{key:"getDeviceIdList",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.environmentInspector.getMidiOutputDevices();case 2:return i=r.sent,o=i.map(function(n){return{displayText:"".concat(n.name," (").concat(n.id,")"),text:n.id,command:e,parameter:t}}),n&&(o=o.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r.abrupt("return",o);case 6:case"end":return r.stop()}},r,this)}))}},{key:"getDeviceNameList",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.environmentInspector.getMidiOutputDevices();case 2:return i=r.sent,o=i.map(function(n){return{displayText:"".concat(n.name," (").concat(n.id,")"),text:'"'.concat(n.name,'"'),command:e,parameter:t}}),n&&(o=o.filter(function(e){return e.displayText.toLowerCase().indexOf(n.toLowerCase())>=0})),r.abrupt("return",o);case 6:case"end":return r.stop()}},r,this)}))}},{key:"getValueSuggestion",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function r(){var i,o,u,c;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.getParameter().filter(function(e){return e.getName()===t})[0]){r.next=3;break}return r.abrupt("return",[]);case 3:if(e.getName()!==a.Keywords.instrumentDef||"pc"!=t){r.next=5;break}return r.abrupt("return",this.getInstrumentDefPcSuggestions(e,i,n));case 5:if(e.getName()!==a.Keywords.instrumentDef||"gmInstrument"!=t){r.next=7;break}return r.abrupt("return",this.getInstrumentDefGmNameSuggestions(e,i,n));case 7:if(e.getName()!==a.Keywords.device||"usePort"!=t){r.next=11;break}return r.next=10,this.getDeviceIdList(e,i,n);case 10:return r.abrupt("return",r.sent);case 11:if(e.getName()!==a.Keywords.device||"useDevice"!=t){r.next=15;break}return r.next=14,this.getDeviceNameList(e,i,n);case 14:return r.abrupt("return",r.sent);case 15:if("web"!==this.environmentInspector.environment||e.getName()!==a.Keywords.device||"isType"!=t){r.next=17;break}return r.abrupt("return",[{command:e,displayText:"webPlayer",text:"webPlayer"}]);case 17:if("web"!==this.environmentInspector.environment||e.getName()!==a.Keywords.device||"useFont"!=t){r.next=19;break}return r.abrupt("return",(this.environmentInspector.webplayerPresets||[]).map(function(t){return{command:e,displayText:t,text:t}}));case 19:if(o=i.getType()||"",(u=o.match(/\[(.*)\]/))&&u[1]){r.next=23;break}return r.abrupt("return",[]);case 23:return c=u[1].split(",").map(function(e){return e.trim()}),n&&(c=c.filter(function(e){return e.startsWith(n)})),r.abrupt("return",c.map(function(t){return{displayText:t,text:'"'.concat(t,'"'),command:e,parameter:i}}));case 26:case"end":return r.stop()}},r,this)}))}},{key:"getSuggestions",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,r,i,o,a,u,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",[]);case 2:if(n=e.match(/.*?(\w+)\s*:.*?_(\w*)(="?(\w*))?$/)){t.next=5;break}return t.abrupt("return",[]);case 5:if(r=(n[1]||"").trim(),i=void 0!==n[3],o=(n[2]||"").trim(),this.isMod(r)&&(r=this.getModName(e)),this.isInstrumentConf(r)&&(r=this.getInstrumentConfModName(e)),a=this.autoHintDb[r]){t.next=13;break}return t.abrupt("return",[]);case 13:if(!i){t.next=19;break}return u=(n[2]||"").trim(),c=(n[4]||"").trim(),t.next=18,this.getValueSuggestion(a,u,c);case 18:return t.abrupt("return",t.sent);case 19:return t.abrupt("return",this.getParameterSuggestion(a,o));case 20:case"end":return t.stop()}},t,this)}))}}]),e}();n.CommandArgument=p},{"../../Common":"I6jy","./GMInstruments":"zyF4","../../WerckmeisterAutoHintDb":"Y3F9"}],nviV:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.Command=void 0;var a=e("lodash"),u=e("../../WerckmeisterAutoHintDb"),c=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.commandDb=u.getAutoHintDb()}return i(e,[{key:"getSuggestions",value:function(e,t,n){return o(this,void 0,void 0,regeneratorRuntime.mark(function t(){var r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.toLowerCase(),i=a(this.commandDb).filter(function(e,t){return t.toLowerCase().indexOf(r)>=0&&e.getDocumentContext().includes(n)}).value(),t.abrupt("return",i.map(function(e){return{displayText:e.getName(),text:e.getName(),description:e.getDescription(),url:e.getUrl()}}));case 3:case"end":return t.stop()}},t,this)}))}}]),e}();n.Command=c},{lodash:"B1iE","../../WerckmeisterAutoHintDb":"Y3F9"}],Tlxz:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(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)?i(e,t):void 0}}(e)||function(){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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(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)}}var a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return u(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.Using=void 0;var f=e("../../Common"),l=c(e("lodash")),p=e("../../WerckmeisterAutoHintDb").getPreInstalledAuxFiles(),h=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.fileInspector=t}return function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(e,[{key:"ls",value:function(e,t){return s(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i,o,a;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.fileInspector.ls(e);case 2:return i=n.sent,(t=t.trim()).endsWith("/")&&t.length>1&&(t=l.trimEnd(t,"/")),(o=p[t])&&(a=i).push.apply(a,r(o.map(function(e){return{name:e.name,isDirectory:e.isDirectory||!1}}))),i=l.uniqBy(i,function(e){return e.name}),n.abrupt("return",i);case 9:case"end":return n.stop()}},n,this)}))}},{key:"getSuggestions",value:function(e,t,n){return s(this,void 0,void 0,regeneratorRuntime.mark(function n(){var r,i,o,a,u,c;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=2;break}return n.abrupt("return",[]);case 2:if(e.match(/^\s*using\s*"{0,1}[^"]*$/)){n.next=5;break}return n.abrupt("return",[]);case 5:if(r=(e.match(/.+"(.*)/)||[])[1]){n.next=8;break}return n.abrupt("return",[]);case 8:return i=r?l.last(r.split("/")):"",n.next=11,t.getAbsolutePath();case 11:return o=n.sent,n.next=14,this.fileInspector.getParentPath(o);case 14:if(o=n.sent,a=r,!i){n.next=20;break}return n.next=19,this.fileInspector.getParentPath(r);case 19:a=n.sent;case 20:return n.next=22,this.fileInspector.resolve(o,a);case 22:return a=n.sent,n.next=25,this.ls(a,r);case 25:return u=n.sent,c=u.filter(function(e){return e.isDirectory||f.SupportedUsingFileExtensions.includes(f.getFileExtension(e.name))}),i&&(c=c.filter(function(e){return e.name.startsWith(i)})),n.abrupt("return",c.sort(function(e,t){return e.isDirectory&&!t.isDirectory?-1:!e.isDirectory&&t.isDirectory?1:e.name.localeCompare(t.name)}).map(function(e){return{displayText:e.name,text:e.name,file:e}}));case 29:case"end":return n.stop()}},n,this)}))}}]),e}();n.Using=h},{"../../Common":"I6jy",lodash:"B1iE","../../WerckmeisterAutoHintDb":"Y3F9"}],xTxX:[function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}var o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.DummyEnvironmentInspector=void 0;var a=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.environment="local"}return i(e,[{key:"getMidiOutputDevices",value:function(){return o(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[]);case 1:case"end":return e.stop()}},e)}))}}]),e}();n.DummyEnvironmentInspector=a},{}],bvdo:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){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 i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(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,u=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(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)}}var c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(t){o(t)}}function u(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,u)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(n,"__esModule",{value:!0}),n.LanguageFeatures=void 0;var s=e("./Common"),f=e("./features/autocomplete/CommandArgument"),l=e("./features/autocomplete/Command"),p=e("./features/autocomplete/Using"),h=e("./DummyEnvironmentInspector"),m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new h.DummyEnvironmentInspector;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.fileSystemInspector=t,this.environmentInspector=n,this.features={autoCompletes:[new p.Using(this.fileSystemInspector),new l.Command,new f.CommandArgument(this.environmentInspector)]}}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(e,[{key:"autoComplete",value:function(e){return c(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,o,a,u,c,f,l,p;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getCursor();case 2:return n=t.sent,t.next=5,s.getExpressionLine(e,n);case 5:if(o=t.sent){t.next=8;break}return t.abrupt("return",[]);case 8:return t.next=10,s.getExpressionDocContext(e,n);case 10:a=t.sent,u=[],c=i(this.features.autoCompletes),t.prev=13,c.s();case 15:if((f=c.n()).done){t.next=25;break}return l=f.value,t.next=19,l.getSuggestions(o,e,a);case 19:if(p=t.sent){t.next=22;break}return t.abrupt("continue",23);case 22:u.push.apply(u,r(p));case 23:t.next=15;break;case 25:t.next=30;break;case 27:t.prev=27,t.t0=t.catch(13),c.e(t.t0);case 30:return t.prev=30,c.f(),t.finish(30);case 33:return t.abrupt("return",u);case 34:case"end":return t.stop()}},t,this,[[13,27,30,33]])}))}}]),e}();n.LanguageFeatures=m},{"./Common":"I6jy","./features/autocomplete/CommandArgument":"ykR4","./features/autocomplete/Command":"nviV","./features/autocomplete/Using":"Tlxz","./DummyEnvironmentInspector":"xTxX"}]},{},["bvdo"]);
40
40
  },{}],"vSbS":[function(require,module,exports) {
41
41
  "use strict";var t=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(u,a){function o(t){try{i(r.next(t))}catch(e){a(e)}}function c(t){try{i(r.throw(t))}catch(e){a(e)}}function i(t){var e;t.done?u(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,c)}i((r=r.apply(t,e||[])).next())})};Object.defineProperty(exports,"__esModule",{value:!0}),exports.fetchText=void 0;var e=new Map;function n(n){return t(this,void 0,void 0,regeneratorRuntime.mark(function t(){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.has(n)){t.next=2;break}return t.abrupt("return",e.get(n));case 2:return r=fetch(n).then(function(t){return t.text()}),e.set(n,r),t.abrupt("return",r);case 5:case"end":return t.stop()}},t)}))}exports.fetchText=n;
42
42
  },{}],"pBGv":[function(require,module,exports) {