diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7cd53fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/node_modules/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..d026035 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +ethan.a.obrien@gmail.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/README.md b/README.md index 2a5e582..564b963 100644 --- a/README.md +++ b/README.md @@ -5,18 +5,34 @@

- + + + # Allancoding's Version of EmulatorJS + +--- +## *These are the things that were change*d from: https://github.com/ethanaobrien/emulatorjs + +Added code: + +- Background image code +- Remove the ad loader after 4.5 seconds + +--- + + [![Badge License]][License] Self-hosted **Javascript** emulation for various system. +
-**⸢ [Website] ⸥**   -**⸢ [Usage] ⸥**   -**⸢ [Example] ⸥**   -**⸢ [Demo] ⸥**  -**⸢ [Beta] ⸥** +[![Badge Website]][Website]  +[![Badge Usage]][Usage]
+[![Badge Configurator]][Configurator]
+[![Badge Demo]][Demo]  +[![Badge Legacy]][Legacy]  +[![Badge Beta]][Beta]  @@ -29,9 +45,11 @@ Self-hosted **Javascript** emulation for various system.
-### Audio +### Extensions -*The* ***Screen Recording*** *option currently doesn't support* ***Audio*** *.* + **[GameLibrary]** + +   *A library overview for your **ROM** folder.*
@@ -110,41 +128,67 @@ EJS_BETA = true;
- -[Badge License]: https://img.shields.io/badge/License-GPLv3-blue.svg + [License]: LICENSE [Issue]: https://github.com/ethanaobrien/emulatorjs/issues -[Example]: https://coldcast.org/games/1/Super-Mario-Bros + + +[GameLibrary]: https://github.com/Ramaerel/emulatorjs-GameLibrary + + + + +[Configurator]: https://emulatorjs.ga/codehelper [Website]: https://emulatorjs.ga/ +[Legacy]: https://coldcast.org/games/1/Super-Mario-Bros [Usage]: docs/Usage.md [Demo]: https://emulatorjs.ga/demo/ [Beta]: https://emulatorjs.ga/beta/ -[NES / Famicom]: docs/Systems/NES-Famicom.md -[SNES]: docs/Systems/SNES.md -[Nintendo 64]: docs/Systems/Nintendo%2064.md -[Nintendo Game Boy]: docs/Systems/Nintendo%20Game%20Boy.md + + + [Nintendo Game Boy Advance]: docs/Systems/Nintendo%20Game%20Boy%20Advance.md +[Nintendo Game Boy]: docs/Systems/Nintendo%20Game%20Boy.md +[Nintendo 64]: docs/Systems/Nintendo%2064.md [Nintendo DS]: docs/Systems/Nintendo%20DS.md -[PlayStation]: docs/Systems/PlayStation.md -[Virtual Boy]: docs/Systems/Virtual%20Boy.md -[Sega Mega Drive]: docs/Systems/Sega%20Mega%20Drive.md + [Sega Master System]: docs/Systems/Sega%20Master%20System.md -[Sega CD]: docs/Systems/Sega%20CD.md -[Atari Lynx]: docs/Systems/Atari%20Lynx.md -[MSX]: docs/Systems/MSX.md -[3DO]: docs/Systems/3DO.md -[Sega 32X]: docs/Systems/Sega%2032X.md -[Atari Jaguar]: docs/Systems/Atari%20Jaguar.md -[Neo Geo Poket]: docs/Systems/Neo%20Geo%20Poket.md +[Sega Mega Drive]: docs/Systems/Sega%20Mega%20Drive.md [Sega Game Gear]: docs/Systems/Sega%20Game%20Gear.md [Sega Saturn]: docs/Systems/Sega%20Saturn.md +[Sega 32X]: docs/Systems/Sega%2032X.md +[Sega CD]: docs/Systems/Sega%20CD.md + +[Atari Jaguar]: docs/Systems/Atari%20Jaguar.md +[Atari Lynx]: docs/Systems/Atari%20Lynx.md [Atari 7800]: docs/Systems/Atari%207800.md -[WanderSwan / Color]: docs/Systems/WanderSwan-Color.md -[TurboGrafs-16 / PC Engine]: docs/Systems/TurboGrafs%2016-PC%20Engine.md -[Arcade]: docs/Systems/Arcade.md [Atari 2600]: docs/Systems/Atari%202600.md + +[NES / Famicom]: docs/Systems/NES-Famicom.md +[SNES]: docs/Systems/SNES.md + +[TurboGrafs-16 / PC Engine]: docs/Systems/TurboGrafs%2016-PC%20Engine.md +[WanderSwan / Color]: docs/Systems/WanderSwan-Color.md +[Neo Geo Poket]: docs/Systems/Neo%20Geo%20Poket.md +[PlayStation]: docs/Systems/PlayStation.md +[Virtual Boy]: docs/Systems/Virtual%20Boy.md +[Arcade]: docs/Systems/Arcade.md +[MSX]: docs/Systems/MSX.md +[3DO]: docs/Systems/3DO.md + + + + +[Badge License]: https://img.shields.io/badge/License-GPLv3-blue.svg?style=for-the-badge + +[Badge Configurator]: https://img.shields.io/badge/Configurator-992cb3?style=for-the-badge +[Badge Website]: https://img.shields.io/badge/Website-736e9b?style=for-the-badge +[Badge Legacy]: https://img.shields.io/badge/Legacy-ab910b?style=for-the-badge +[Badge Usage]: https://img.shields.io/badge/Usage-2478b5?style=for-the-badge +[Badge Demo]: https://img.shields.io/badge/Demo-528116?style=for-the-badge +[Badge Beta]: https://img.shields.io/badge/Beta-bb044f?style=for-the-badge diff --git a/data/emu-main.js b/data/emu-main.js index cb7f048..cbbd143 100644 --- a/data/emu-main.js +++ b/data/emu-main.js @@ -5,7 +5,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { window.EJS_RESET_VARS.push(k); } _0x2c1832.r(_0x17edbf); - _0x2c1832(0xa2), _0x2c1832(0x16c), _0x2c1832(0x16d); var _0x39ca5e = { 'volume': 0.5, 'muted': false, @@ -99,7 +98,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { 'tabFocus': 'ejs__tab-focus' } }, - _0x3d61f9 = _0x2c1832(0x38), + renderErrorPage = _0x2c1832(0), _0x5127f4 = _0x2c1832(0x9d), _0x48e5ff = _0x2c1832.n(_0x5127f4), _0x406e79 = function(_0x2aa74f) { @@ -584,10 +583,10 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { } }]) && _0x4c97b0(_0x17edbf.prototype, _0x2c1832), _0x4496fc && _0x4c97b0(_0x17edbf, _0x4496fc), _0x566dbe; }(); - var _0x13fb79, _0x569918 = _0x2c1832(0x6c), + var _0x13fb79, _0x569918 = _0x2c1832(108), _0x4e4ca6 = _0x2c1832.n(_0x569918), - _0x4ad1c6 = _0x2c1832(0x6), - _0x4704b1 = _0x2c1832(0x9f), + _0x4ad1c6 = _0x2c1832(6), + _0x4704b1 = _0x2c1832(159), _0x3a58c8 = _0x2c1832.n(_0x4704b1), _0x5032e6 = { '2xScaleHQ.glslp': 'shaders = 1\n\nshader0 = "2xScaleHQ.glsl"\nfilter_linear0 = false\nscale_type_0 = source\n', @@ -604,7 +603,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0x5bb4c9 = _0x2c1832(0x39), _0x50f370 = _0x2c1832.n(_0x5bb4c9), _0x246d02 = _0x2c1832(0xb), - _0x550f17 = _0x2c1832.n(_0x246d02), + _0x550f17 = _0x2c1832.n(_0x246d02).a, _0x5ab74d = { 'addStyleHook': function() { _0x3a8e2f(this.elements.container, this.config.selectors.container.replace('.', ''), true), _0x3a8e2f(this.elements.container, this.config.classNames.uiSupported, true), _0x3a8e2f(this.elements.container, this.config.classNames.hideControls, true); @@ -627,6 +626,39 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { } } }; + _0x550f17.a.get = function(oldGet) { + return function(url, set) { + if (url.startsWith('blob:')) { + return new Promise(async function(resolve, reject) { + var a = await fetch(url); + if (set && set.responseType && set.responseType.toLowerCase() === 'arraybuffer') { + a = await a.arrayBuffer(); + } else { + a = await a.text(); + try { + a = JSON.parse(a); + } catch(e) {} + } + resolve({data:a}); + }) + } else { + return oldGet.apply(null, arguments); + } + } + }(_0x550f17.a.get); + _0x550f17.a.head = function(oldHead) { + return function(url) { + if (url.startsWith('blob:')) { + return new Promise(async function(resolve, reject) { + var a = await fetch(url); + a = await a.arrayBuffer(); + resolve({headers:{'content-length': a.size}}); + }) + } else { + return oldHead.apply(null, arguments); + } + } + }(_0x550f17.a.head); function _0x5272a8(_0x4d422a) { return (_0x5272a8 = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(_0x241239) { @@ -1441,6 +1473,13 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0xb0c5d8 = -0x1, _0x567713 = '', _0x567717 = function() { + var mainLoop = _0x4d7024.Module.cwrap('toggleMainLoop', 'null', ['number']); + _0x4d7024.Module.resumeMainLoop = function() { + mainLoop(1); + } + _0x4d7024.Module.pauseMainLoop = function() { + mainLoop(0); + } if (typeof _0x55627a.loadStateOnStart == 'string') { fetch(_0x55627a.loadStateOnStart).then(function(response) { response.arrayBuffer().then(function(ab) { @@ -1563,16 +1602,14 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0x139f1c = _0x154dc5[_0x154dc5.length - 0x1]; _0x139f1c.indexOf('?') > -0x1 && (_0x139f1c = _0x139f1c.substr(0x0, _0x139f1c.indexOf('?'))); _0x139f1c.split('.').pop(); - _0x2c1832.innerHTML = _0xa88a13.localization('Download Game Data'), ['arcade', 'mame', 'mame2003', 'fba0.2.97.29'].includes(_0x17edbf.system) && _0x17edbf.config.gameParentUrl && (_0x2c1832.innerHTML += ' (2/2)'), _0x17edbf.config.gamePatchUrl && (_0x2c1832.innerHTML += ' (2/2)'); - new Promise(async function(resolve, reject) { - if (! _0x3cf3cf.startsWith('blob:')) { - resolve(await _0x550f17.a.head(_0x3cf3cf, {})) - } else { - var a = await fetch(_0x3cf3cf) - var a = await a.blob() - resolve({headers:{'content-length': a.size, 'content-type': 'text/plain'}}) - } - }).then(function(_0x3d703e) { + _0x2c1832.innerHTML = _0xa88a13.localization('Download Game Data'); + if (['arcade', 'mame', 'mame2003', 'fba0.2.97.29'].includes(_0x17edbf.system) && _0x17edbf.config.gameParentUrl) { + _0x2c1832.innerHTML += ' (2/2)'; + } + if (_0x17edbf.config.gamePatchUrl) { + _0x2c1832.innerHTML += ' (2/2)'; + } + _0x550f17.a.head(_0x3cf3cf, {}).then(function(_0x3d703e) { var _0x21b526 = _0x3d703e.headers['content-length'], _0x7e8d4c = _0x3d703e.headers['content-type'], _0x107e8a = (_0x3d703e.headers['last-modified'], '' .concat(_0x594488, '-').concat(_0x139f1c)), @@ -1620,7 +1657,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { }); _0x3512e9(_0x139f1c, _0x17edbf); }).catch(function(_0x2e4d62) { - console.log(_0x2e4d62), _0x2c1832.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x2e4d62, _0x2c1832, _0xa88a13); }); }; _0x1ffb98.db ? _0x1ffb98.get(_0x107e8a, function(_0x5afc4a) { @@ -1644,7 +1681,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { else _0x43a689(); }) : _0x43a689(); }).catch(function(_0x5ec6be) { - _0x2c1832.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x5ec6be, _0x2c1832, _0xa88a13); }); }, _0x139f68 = function() { @@ -1655,7 +1692,8 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0x179b43 = _0x227b23[_0x227b23.length - 0x1]; _0x179b43.indexOf('?') > -0x1 && (_0x179b43 = _0x179b43.substr(0x0, _0x179b43.indexOf('?'))); _0x179b43.split('.').pop(); - _0x2591d9.innerHTML = _0xa88a13.localization('Download Game Data')+' (1/2)', _0x550f17.a.get(_0x5c896f, { + _0x2591d9.innerHTML = _0xa88a13.localization('Download Game Data')+' (1/2)'; + _0x550f17.a.get(_0x5c896f, { 'onDownloadProgress': function(_0x3da9ab) { _0x2591d9.innerHTML = _0xa88a13.localization('Download Game Data')+' (1/2) '; var _0x17edbf = _0x3da9ab.total ? '' .concat(Math.floor(_0x3da9ab.loaded / _0x3da9ab.total * 0x64), '%') : ''; @@ -1693,7 +1731,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { }), _0x4c332a = true), _0x4c332a || (_0x468801 += _0x1097ca.length, _0x4d7024.gamePatch = '/' .concat(_0xe531f0), _0x4d7024._FS.createDataFile('/', _0xe531f0, _0x1097ca, true, !0x1), _0x5048db()); }(_0x179b43, _0x39a81f); }).catch(function(_0x314293) { - console.log(_0x314293), _0x2591d9.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x314293, _0x2c1832, _0xa88a13); }); } else _0x5048db(); }, @@ -1758,7 +1796,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { console.log(_0x125736); } }).catch(function(_0x516cc3) { - console.log(_0x516cc3), _0x2c1832.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x516cc3, _0x2c1832, _0xa88a13); }); }; _0x1ffb98.db ? _0x1ffb98.get(_0x316472, function(_0x3e612b) { @@ -1778,7 +1816,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { else _0x31f098(); }) : _0x31f098(); }).catch(function(_0x20f2e3) { - _0x2c1832.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x20f2e3, _0x2c1832, _0xa88a13); }); } else _0x139f68(); }, @@ -1887,14 +1925,14 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { 'data': _0x17edbf }), _0x57d85d(_0x103241, _0x17edbf); }).catch(function(_0x58e374) { - _0x1f8424.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x58e374, _0x1f8424, _0xa88a13); }); }; _0xa884ea.db ? _0xa884ea.get(_0x51bfef, function(_0x5cac21) { _0x5cac21 && _0x5cac21.filename === _0x103241 && _0x5cac21.filesize - _0x8e30bf == 0x0 && _0x5cac21.filetype === _0x14309b ? _0x57d85d(_0x5cac21.filename, _0x5cac21.data) : _0x574747(); }) : _0x574747(); }).catch(function(_0x4f39c1) { - _0x1f8424.innerHTML = ''+_0xa88a13.localization('Network Error')+''; + renderErrorPage(_0x4f39c1, _0x1f8424, _0xa88a13); }); } else _0x452592(); }, @@ -2026,7 +2064,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { } }).catch(function(_0x2e06c8) { - _0x3787ba.innerHTML = ''+_0x2c1832.localization('Network Error')+''; + renderErrorPage(_0x2e06c8, _0x3787ba, _0xc6823); }); }; _0x550f17.a.get(_0xa88a13, {}).then(function(_0x578a2b) { @@ -2122,20 +2160,13 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { } else _0x3641d6(_0x2458d5, _0x124167); }) : _0x3641d6(_0x2458d5, _0x124167); } - if (_0x2c1832.coreVer === 2) { + if (_0x2c1832.coreVer === 2 && !('undefined' != typeof EJS_DEBUG_XX && true === EJS_DEBUG_XX)) { _0x1e2c68.element(_0x2c1832.elements.buttons.gamepad) && _0x132da7(_0x2c1832.elements.buttons.gamepad, true); - if (Array.isArray(_0x2c1832.elements.buttons.play)) { - for (var i=0; i<_0x2c1832.elements.buttons.play.length; i++) { - _0x1e2c68.element(_0x2c1832.elements.buttons.play[i]) && _0x132da7(_0x2c1832.elements.buttons.play[i], true); - } - } else { - _0x1e2c68.element(_0x2c1832.elements.buttons.play) && _0x132da7(_0x2c1832.elements.buttons.play, true); - } } _0x254bc2 || _0x1e2c68.element(_0x2c1832.elements.buttons.netplay) && _0x132da7(_0x2c1832.elements.buttons.netplay, true), _0x1e2c68.element(_0x2c1832.elements.buttons.saveState) && _0x132da7(_0x2c1832.elements.buttons.saveState, !_0x5b1dcd), _0x1e2c68.element(_0x2c1832.elements.buttons.loadState) && _0x132da7(_0x2c1832.elements.buttons.loadState, !_0x5b1dcd), _0x132da7(_0x2593da.contextMenu.querySelectorAll('ul li').item(0x2), !_0x5b1dcd), _0x132da7(_0x2593da.contextMenu.querySelectorAll('ul li').item(0x3), !_0x5b1dcd); _0xc6823.setStatesSupported(_0x5b1dcd); }).catch(function(_0x2d06a9) { - _0x3787ba.innerHTML = ''+_0x2c1832.localization('Network Error')+''; + renderErrorPage(_0x2d06a9, _0x3787ba, _0xc6823); }), clearInterval(_0x1c9c57), _0x4d7024.romdb = _0x4e171c; } }, 0x1f4); @@ -3452,7 +3483,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { var _0xa88a13 = this, _0x17edbf = this, _0x2c1832 = this.elements.dialogs.gamepad.querySelector('.' .concat(_0x378b5c.classNames.overlay)), - _0x181250 = new _0x4ad1c6[('Gamepad')](); + _0x181250 = new _0x4ad1c6.Gamepad(); _0x378b5c.gamepad = _0x181250, _0x181250.init() && (_0x181250.bind(_0x4ad1c6.Gamepad.Event.TICK, function(_0x2fe35d) { _0x2fe35d.forEach(function(_0x2b21f8) { var _0x17edbf; @@ -3810,30 +3841,12 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { inputLocation = _0x2593da.getCoreOptionsValues()['joystick-input']; } if (inputLocation === 'd-pad') { - return { - downVal: 1, - 4: 4, - 5: 5, - 6: 6, - 7: 7 - } + return {downVal:1,4:4,5:5,6:6,7:7}; } else { - return { - downVal: 0x7fff, - 4: 19, - 5: 18, - 6: 17, - 7: 16 - } + return {downVal:0x7fff,4:19,5:18,6:17,7:16}; } } else { - return { - downVal: 1, - 4: 4, - 5: 5, - 6: 6, - 7: 7 - } + return {downVal:1,4:4,5:5,6:6,7:7}; } } _0x17edbf.on('end', function(_0x27f006, _0x1fb527) { @@ -3868,92 +3881,28 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0x2ae626.stopPropagation(); }); } - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_a': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x185083) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x185083.type) ? (_0x3a8e2f(_0x185083.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x8, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x185083.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x8, 0x1)), _0x185083.stopPropagation(); + [ + {id: {"b_a":true},number: 8}, + {id: {"b_b":true},number: 0}, + {id: {"b_x":true},number: 9}, + {id: {"b_y":true},number: 1}, + {id: {"b_l":true},number: 10}, + {id: {"b_z":true},number: 12}, + {id: {"b_r":true},number: 11}, + {id: {"b_start":true},number: 3}, + {id: {"b_select":true},number: 2}, + {id: {"b_cu":true},number: 23}, + {id: {"b_cd":true},number: 22}, + {id: {"b_cl":true},number: 21}, + {id: {"b_cr":true},number: 20} + ].forEach((a) => { + _0x1093f4.call(this, _0x530042.call(this, '.'.concat(_0x2c1832, ' .').concat(_0x449eac(a.id))), + 'touchstart touchend mousedown mouseup mouseout', function(e) { + ['touchend', 'mouseup', 'mouseout'].includes(e.type) ? (_0x3a8e2f(e.target, _0x2ec721, false), window.setTimeout(function() { + _0x378b5c.syncInput(0, a.number, 0); + }, 30)) : (_0x3a8e2f(e.target, _0x2ec721, true), _0x378b5c.syncInput(0, a.number, 1)), e.stopPropagation(); + }) }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_b': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x213c3d) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x213c3d.type) ? (_0x3a8e2f(_0x213c3d.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x0, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x213c3d.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x0, 0x1)), _0x213c3d.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_x': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x5ce708) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x5ce708.type) ? (_0x3a8e2f(_0x5ce708.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x9, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x5ce708.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x9, 0x1)), _0x5ce708.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_y': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1cfae6) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x1cfae6.type) ? (_0x3a8e2f(_0x1cfae6.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x1, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x1cfae6.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x1, 0x1)), _0x1cfae6.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_l': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1a50ab) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x1a50ab.type) ? (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0xa, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0xa, 0x1)), _0x1a50ab.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_z': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x1a50ab) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x1a50ab.type) ? (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 12, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x1a50ab.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 12, 0x1)), _0x1a50ab.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_r': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x3b8139) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x3b8139.type) ? (_0x3a8e2f(_0x3b8139.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0xb, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x3b8139.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0xb, 0x1)), _0x3b8139.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_start': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x3, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x3, 0x1)), _0x47af91.stopPropagation(); - }); - - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_cu': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0, 23, 0); - }, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 23, 0x7fff)), _0x47af91.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_cd': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0, 22, 0); - }, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 22, 0x7fff)), _0x47af91.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_cl': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0, 21, 0); - }, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 21, 0x7fff)), _0x47af91.stopPropagation(); - }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_cr': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x47af91) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x47af91.type) ? (_0x3a8e2f(_0x47af91.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0, 20, 0); - }, 0x1e)) : (_0x3a8e2f(_0x47af91.target, _0x2ec721, true), _0x378b5c.syncInput(0, 20, 0x7fff)), _0x47af91.stopPropagation(); - }); - var hideTimeout; _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ 'b_c': true @@ -3969,13 +3918,6 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { }, 5000) } }); - _0x1093f4.call(this, _0x530042.call(this, '.' .concat(_0x2c1832, ' .').concat(_0x449eac({ - 'b_select': true - }))), 'touchstart touchend mousedown mouseup mouseout', function(_0x37f594) { - ['touchend', 'mouseup', 'mouseout'].includes(_0x37f594.type) ? (_0x3a8e2f(_0x37f594.target, _0x2ec721, !0x1), window.setTimeout(function() { - _0x378b5c.syncInput(0x0, 0x2, 0x0); - }, 0x1e)) : (_0x3a8e2f(_0x37f594.target, _0x2ec721, true), _0x378b5c.syncInput(0x0, 0x2, 0x1)), _0x37f594.stopPropagation(); - }); } else _0x132da7(_0x378b5c.virtualGamepadContainer, !_0x1ed80b); }, 'setup': function() { @@ -4052,9 +3994,8 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { _0xa88a13.recordData = {started:false, data:[], stopped: false} } if (! _0xa88a13.recordData.started) { //start recording - _0xa88a13.elements.buttons.screenRecord.getElementsByClassName('ejs--74c6d4176d27e37a19d2e9e61de8f4')[0].innerHTML = _0xa88a13.localization('Stop Screen Recording'); if (MediaRecorder.isTypeSupported('video/webm; codecs=h264')) { - var options = {mimeType: 'video/webm; codecs=h264'}; // video/webm; codecs=h264,opus + var options = {mimeType: 'video/webm; codecs=h264'}; } else if (MediaRecorder.isTypeSupported('video/webm; codecs=H264')) { var options = {mimeType: 'video/webm; codecs=H264'}; } else if (MediaRecorder.isTypeSupported('video/webm; codecs=vp9')) { @@ -4070,28 +4011,57 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { } else { var options = {}; } - _0xa88a13.recordData.stream = _0x27f4c4.Module.canvas.captureStream(30); - //_0xa88a13.recordData.stream.addTrack(); // TODO - find audio element - _0xa88a13.recordData.recorder = new MediaRecorder(_0xa88a13.recordData.stream, options); - _0xa88a13.recordData.recorder.ondataavailable = function(e) { - if (e.data.size > 0) { - _0xa88a13.recordData.data.push(e.data) - } - if (_0xa88a13.recordData.stopped) { - var a = document.createElement("a") - a.href = window.URL.createObjectURL(new Blob(_0xa88a13.recordData.data, {type: "video/webm"})) - if (typeof _0xa88a13.gameName == 'string') { - var aname = _0xa88a13.gameName + function gotStreams(stream) { + _0xa88a13.elements.buttons.screenRecord.querySelector('.'.concat(_0x449eac({ + 'ejs__tooltip': true + }))).innerHTML = _0xa88a13.localization('Stop Screen Recording'); + _0xa88a13.recordData.stream = stream; + _0xa88a13.recordData.recorder = new MediaRecorder(_0xa88a13.recordData.stream, options); + _0xa88a13.recordData.recorder.ondataavailable = function(e) { + if (e.data.size > 0) { + _0xa88a13.recordData.data.push(e.data) + } + if (_0xa88a13.recordData.stopped) { + var a = document.createElement("a") + a.href = window.URL.createObjectURL(new Blob(_0xa88a13.recordData.data, {type: "video/webm"})) + if (typeof _0xa88a13.gameName == 'string') { + var aname = _0xa88a13.gameName + } + a.download = aname ? '' .concat(aname, '-recording.webm') : 'record.webm'; + a.click() + window.URL.revokeObjectURL(a.href) + delete _0xa88a13.recordData + _0xa88a13.elements.buttons.screenRecord.querySelector('.'.concat(_0x449eac({ + 'ejs__tooltip': true + }))).innerHTML = _0xa88a13.localization('Start Screen Recording'); } - a.download = aname ? '' .concat(aname, '-recording.webm') : 'record.webm'; - a.click() - window.URL.revokeObjectURL(a.href) - delete _0xa88a13.recordData - _0xa88a13.elements.buttons.screenRecord.getElementsByClassName('ejs--74c6d4176d27e37a19d2e9e61de8f4')[0].innerHTML = _0xa88a13.localization('Start Screen Recording'); } + _0xa88a13.recordData.recorder.start() + _0xa88a13.recordData.started = true } - _0xa88a13.recordData.recorder.start() - _0xa88a13.recordData.started = true + _0x27f4c4.Module.pauseMainLoop(); + _0xa88a13.playing = false; + alert('please check "share system audio" to have audio in the recording. We only need the audio stream so your entire screen will not be recorded'); + var canvasStream = _0x27f4c4.Module.canvas.captureStream(30); + var time = setTimeout(function() { + _0xa88a13.playing = true; + _0x27f4c4.Module.resumeMainLoop(); + }, 20000); + navigator.mediaDevices.getDisplayMedia({ + audio: true, //we only need the audio, we dont use the video stream at all + video: {mediaSource: "screen"} + }).then(function(stream) { + try { + clearTimeout(time); + }catch(e){} + var audio = stream.getAudioTracks(); + for (var i=0; i 0) { var split1 = function(origpath) { - var fullrequestpath = origpath - var finpath = fullrequestpath.split('/').pop() - var finalpath = fullrequestpath.substring(0, fullrequestpath.length - finpath.length) - if (origpath == '/') { + if (origpath === '/') { return '/' } else { - return finalpath + return origpath.substring(0, origpath.length - origpath.split('/').pop().length); } }(split1.join('/')).split('/'); } @@ -6275,7 +6250,7 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { var a = function(_0x154660, _0x15626f) { if (!(_0x154660 instanceof _0x15626f)) throw new TypeError('Cannot call a class as a function'); }(this, _0x6954aa); - this.version = '1.1.2'; + this.version = '1.1.6'; this.system = ''; this.adUrl = null; this.gameName = null; @@ -6303,11 +6278,9 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) { /*if (['dos'].includes(core)) { return 2; }*/ - if (useBeta === true) { - if (window.WebAssembly) { - var supportedCores = ['nes', 'snes', 'gb', 'nds']; - return supportedCores.includes(core) ? 2 : 1; - } + if (useBeta === true && window.WebAssembly) { + var supportedCores = ['nes', 'snes', 'gb', 'nds']; + return supportedCores.includes(core) ? 2 : 1; } return 1; }(this.config.system, this.config.useBeta); // 2 = beta cores, 1 = old cores diff --git a/data/emu-min.js b/data/emu-min.js index 7af530b..0b375b7 100644 --- a/data/emu-min.js +++ b/data/emu-min.js @@ -1,8 +1 @@ -var EJS=function(e){t=!0;var t,n={};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=396)}([function(e,t,n){var o=n(2),r=n(20),a=n(13),i=n(14),s=n(21),c=function(e,t,n){var l,u,d,f,p=e&c.F,h=e&c.G,m=e&c.S,v=e&c.P,g=e&c.B,b=h?o:m?o[t]||(o[t]={}):(o[t]||{}).prototype,y=h?r:r[t]||(r[t]={}),w=y.prototype||(y.prototype={});for(l in h&&(n=t),n)d=((u=!p&&b&&void 0!==b[l])?b:n)[l],f=g&&u?s(d,o):v&&"function"==typeof d?s(Function.call,d):d,b&&i(b,l,d,e&c.U),y[l]!=d&&a(y,l,f),v&&w[l]!=d&&(w[l]=d)};o.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var o=n(4);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(58)("wks"),r=n(36),a=n(2).Symbol,i="function"==typeof a;(e.exports=function(e){return o[e]||(o[e]=i&&a[e]||(i?a:r)("Symbol."+e))}).store=o},function(e,t,n){!function(e){"use strict";var t=function(){},n={getType:function(){return"null"},isSupported:function(){return!1},update:t},o=function(e){var n=this,o=window;this.update=t,this.requestAnimationFrame=e||o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame,this.tickFunction=function(){n.update(),n.startTicker()},this.startTicker=function(){n.requestAnimationFrame.apply(o,[n.tickFunction])}};o.prototype.start=function(e){this.update=e||t,this.startTicker()};var r=function(){};r.prototype.update=t,r.prototype.start=function(e){this.update=e||t};var a=function(e,t){this.listener=e,this.gamepadGetter=t,this.knownGamepads=[]};a.factory=function(e){var t=n,o=window&&window.navigator;return o&&(void 0!==o.getGamepads?t=new a(e,(function(){return o.getGamepads()})):void 0!==o.webkitGamepads?t=new a(e,(function(){return o.webkitGamepads()})):void 0!==o.webkitGetGamepads&&(t=new a(e,(function(){return o.webkitGetGamepads()})))),t},a.getType=function(){return"WebKit"},a.prototype.getType=function(){return a.getType()},a.prototype.isSupported=function(){return!0},a.prototype.update=function(){var e,t,n=Array.prototype.slice.call(this.gamepadGetter(),0);for(t=this.knownGamepads.length-1;t>=0;t--)e=this.knownGamepads[t],n.indexOf(e)<0&&(this.knownGamepads.splice(t,1),this.listener._disconnect(e));for(t=0;t.5,l=n>.5;e.state[r]=t,o&&!l?i._fire(s.Event.BUTTON_DOWN,Object.create(c)):(!o&&l||i.buttonState[e.index][r]!=t)&&i._fire(s.Event.BUTTON_UP,Object.create(c)),0!==t&&1!==t&&t!==n&&i._fireAxisChangedEvent(e,r,t),e.lastState[r]=t,i.buttonState[e.index][r]=t},e.updater.push(o)},s.prototype._addAxisUpdater=function(e,t,n){var o,r=l(s.StandardAxes,n,"EXTRA_AXIS_"),a=this._createAxisGetter(e,t.axes,n),i=this;e.state[r]=0,e.lastState[r]=0,null==this.buttonState[e.index][r]&&(this.buttonState[e.index][r]=0),o=function(){var t=a(),n=i.buttonState[e.index][r];e.state[r]=t,t!==n&&i._fireAxisChangedEvent(e,r,t),e.lastState[r]=t,i.buttonState[e.index][r]=t},e.updater.push(o)},s.prototype._fireAxisChangedEvent=function(e,t,n){var o={gamepad:e,axis:t,value:n};this._fire(s.Event.AXIS_CHANGED,o)},s.prototype._createButtonGetter=(c=function(){return 0},function(e,t,n){var o,r,a,i,s,l,u=c,d=this;return-1!==(o=t.byButton[n])?"number"==typeof o&&o1?0:1-t}),u=l)),u}),s.prototype._createAxisGetter=function(){var e=function(){return 0};return function(t,n,o){var r,a=e,i=this;return-1!==(r=n.byAxis[o])&&"number"==typeof r&&r0&&this._fire(s.Event.TICK,this.gamepads)},s.prototype._applyDeadzoneMaximize=function(e,t,n){return t=void 0!==t?t:this.deadzone,n=void 0!==n?n:this.maximizeThreshold,e>=0?en&&(e=1):e>-t?e=0:e<-n&&(e=-1),e},e.Gamepad=s}(e.exports||window)},function(e,t,n){e.exports=!n(3)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(1),r=n(109),a=n(24),i=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(26),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(25);e.exports=function(e){return Object(o(e))}},function(e,t,n){(function(e,n){var o,r,a,i;function s(e){return(s="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)}i=function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function o(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var r=n(2),a=n(3),i=n(5),s=n(22),c=o(n(11));c.Axios=i,c.create=function(e){return o(s(c.defaults,e))},c.Cancel=n(23),c.CancelToken=n(24),c.isCancel=n(10),c.all=function(e){return Promise.all(e)},c.spread=n(25),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function o(e){return"[object Array]"===u.call(e)}function r(e){return null!==e&&"object"==s(e)}function a(e){return"[object Function]"===u.call(e)}function i(e,t){if(null!=e)if("object"!=s(e)&&(e=[e]),o(e))for(var n=0,r=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){c.headers[e]=a.merge(s)})),t.exports=c},function(e,t,n){"use strict";var o=n(2);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},function(e,t,n){"use strict";var o=n(2),r=n(14),a=n(6),i=n(17),s=n(18),c=n(15);e.exports=function(e){return new Promise((function(t,l){var u=e.data,d=e.headers;o.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+h)}if(f.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};r(t,l,o),f=null}},f.onabort=function(){f&&(l(c("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){l(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},o.isStandardBrowserEnv()){var m=n(19),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in f&&o.forEach(d,(function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),l(e),f=null)})),void 0===u&&(u=null),f.send(u)}))}},function(e,t,n){"use strict";var o=n(15);e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(o("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";var o=n(16);e.exports=function(e,t,n,r,a){var i=new Error(e);return o(i,t,n,r,a)}},function(e,t){"use strict";e.exports=function(e,t,n,o,r){return e.config=t,n&&(e.code=n),e.request=o,e.response=r,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var o=n(2),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(o.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=o.trim(e.substr(0,a)).toLowerCase(),n=o.trim(e.substr(a+1)),t){if(i[t]&&r.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var o=n(2);e.exports=o.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return t=e(window.location.href),function(n){var r=o.isString(n)?e(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},function(e,t,n){"use strict";var o=n(2);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,r,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),o.isString(r)&&s.push("path="+r),o.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var o=n(2);e.exports=function(e,t){t=t||{};var n={};return o.forEach(["url","method","params","data"],(function(e){void 0!==t[e]&&(n[e]=t[e])})),o.forEach(["headers","auth","proxy"],(function(r){o.isObject(t[r])?n[r]=o.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:o.isObject(e[r])?n[r]=o.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])})),o.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(o){void 0!==t[o]?n[o]=t[o]:void 0!==e[o]&&(n[o]=e[o])})),n}},function(e,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,n){"use strict";function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}var r=n(23);o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}}])},"object"==s(t)&&"object"==s(n)?n.exports=i():(r=[],void 0===(a="function"==typeof(o=i)?o.apply(t,r):o)||(n.exports=a))}).call(this,n(49),n(143)(e))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var o=n(8),r=n(35);e.exports=n(7)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(2),r=n(13),a=n(16),i=n(36)("src"),s=Function.toString,c=(""+s).split("toString");n(20).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(a(n,i)||r(n,i,e[t]?""+e[t]:c.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(e,t,n){var o=n(0),r=n(3),a=n(25),i=/"/g,s=function(e,t,n,o){var r=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,""")+'"'),s+">"+r+""};e.exports=function(e,t){var n={};n[e]=t(s),o(o.P+o.F*r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(53),r=n(25);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(54),r=n(35),a=n(17),i=n(24),s=n(16),c=n(109),l=Object.getOwnPropertyDescriptor;t.f=n(7)?l:function(e,t){if(e=a(e),t=i(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var o=n(16),r=n(10),a=n(80)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(12);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var o=n(3);e.exports=function(e,t){return!!e&&o((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var o=n(4);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(0),r=n(20),a=n(3);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],i={};i[e]=t(n),o(o.S+o.F*a((function(){n(1)})),"Object",i)}},function(e,t,n){var o=n(21),r=n(53),a=n(10),i=n(9),s=n(97);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var m,v,g=a(t),b=r(g),y=o(s,h,3),w=i(b.length),x=0,_=n?p(t,w):c?p(t,0):void 0;w>x;x++)if((f||x in b)&&(v=y(m=b[x],x,g),e))if(n)_[x]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:_.push(m)}else if(u)return!1;return d?-1:l||u?u:_}}},function(e,t,n){"use strict";if(n(7)){var o=n(33),r=n(2),a=n(3),i=n(0),s=n(69),c=n(103),l=n(21),u=n(42),d=n(35),f=n(13),p=n(44),h=n(26),m=n(9),v=n(135),g=n(38),b=n(24),y=n(16),w=n(55),x=n(4),_=n(10),S=n(94),T=n(39),C=n(19),E=n(40).f,A=n(96),k=n(36),M=n(5),O=n(28),R=n(59),P=n(66),j=n(99),I=n(47),N=n(63),L=n(41),F=n(98),D=n(125),z=n(8),B=n(18),U=z.f,G=B.f,V=r.RangeError,q=r.TypeError,H=r.Uint8Array,W=Array.prototype,Y=c.ArrayBuffer,X=c.DataView,K=O(0),J=O(2),$=O(3),Z=O(4),Q=O(5),ee=O(6),te=R(!0),ne=R(!1),oe=j.values,re=j.keys,ae=j.entries,ie=W.lastIndexOf,se=W.reduce,ce=W.reduceRight,le=W.join,ue=W.sort,de=W.slice,fe=W.toString,pe=W.toLocaleString,he=M("iterator"),me=M("toStringTag"),ve=k("typed_constructor"),ge=k("def_constructor"),be=s.CONSTR,ye=s.TYPED,we=s.VIEW,xe=O(1,(function(e,t){return Ee(P(e,e[ge]),t)})),_e=a((function(){return 1===new H(new Uint16Array([1]).buffer)[0]})),Se=!!H&&!!H.prototype.set&&a((function(){new H(1).set({})})),Te=function(e,t){var n=h(e);if(n<0||n%t)throw V("Wrong offset!");return n},Ce=function(e){if(x(e)&&ye in e)return e;throw q(e+" is not a typed array!")},Ee=function(e,t){if(!x(e)||!(ve in e))throw q("It is not a typed array constructor!");return new e(t)},Ae=function(e,t){return ke(P(e,e[ge]),t)},ke=function(e,t){for(var n=0,o=t.length,r=Ee(e,o);o>n;)r[n]=t[n++];return r},Me=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Oe=function(e){var t,n,o,r,a,i,s=_(e),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,f=A(s);if(null!=f&&!S(f)){for(i=f.call(s),o=[],t=0;!(a=i.next()).done;t++)o.push(a.value);s=o}for(d&&c>2&&(u=l(u,arguments[2],2)),t=0,n=m(s.length),r=Ee(this,n);n>t;t++)r[t]=d?u(s[t],t):s[t];return r},Re=function(){for(var e=0,t=arguments.length,n=Ee(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!H&&a((function(){pe.call(new H(1))})),je=function(){return pe.apply(Pe?de.call(Ce(this)):Ce(this),arguments)},Ie={copyWithin:function(e,t){return D.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ce(this),arguments)},filter:function(e){return Ae(this,J(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(Ce(this),arguments)},lastIndexOf:function(e){return ie.apply(Ce(this),arguments)},map:function(e){return xe(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ce(this),arguments)},reduceRight:function(e){return ce.apply(Ce(this),arguments)},reverse:function(){for(var e,t=Ce(this).length,n=Math.floor(t/2),o=0;o1?arguments[1]:void 0)},sort:function(e){return ue.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),o=n.length,r=g(e,o);return new(P(n,n[ge]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===t?o:g(t,o))-r))}},Ne=function(e,t){return Ae(this,de.call(Ce(this),e,t))},Le=function(e){Ce(this);var t=Te(arguments[1],1),n=this.length,o=_(e),r=m(o.length),a=0;if(r+t>n)throw V("Wrong length!");for(;a255?255:255&r),void a.v[p](o*t+a.o,r,_e);var o,r,a},enumerable:!0})};y?(h=n((function(e,n,o,r){u(e,h,l,"_d");var a,i,s,c,d=0,p=0;if(x(n)){if(!(n instanceof Y||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return ye in n?ke(h,n):Oe.call(h,n);a=n,p=Te(o,t);var g=n.byteLength;if(void 0===r){if(g%t)throw V("Wrong length!");if((i=g-p)<0)throw V("Wrong length!")}else if((i=m(r)*t)+p>g)throw V("Wrong length!");s=i/t}else s=v(n),a=new Y(i=s*t);for(f(e,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});ddocument.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c.prototype[a[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[i]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(111),r=n(81).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=n(2),r=n(8),a=n(7),i=n(5)("species");e.exports=function(e){var t=o[e];a&&t&&!t[i]&&r.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(21),r=n(123),a=n(94),i=n(1),s=n(9),c=n(96),l={},u={};(t=e.exports=function(e,t,n,d,f){var p,h,m,v,g=f?function(){return e}:c(e),b=o(n,d,t?2:1),y=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(a(g)){for(p=s(e.length);p>y;y++)if((v=t?b(i(h=e[y])[0],h[1]):b(e[y]))===l||v===u)return v}else for(m=g.call(e);!(h=m.next()).done;)if((v=r(m,b,h.value,t))===l||v===u)return v}).BREAK=l,t.RETURN=u},function(e,t,n){var o=n(14);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(8).f,r=n(16),a=n(5)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&o(e,a,{configurable:!0,value:t})}},function(e,t,n){var o=n(0),r=n(25),a=n(3),i=n(84),s="["+i+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e,t,n){var r={},s=a((function(){return!!i[e]()||"​…"!="​…"[e]()})),c=r[e]=s?t(d):i[e];n&&(r[n]=c),o(o.P+o.F*s,"String",r)},d=u.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},function(e,t){e.exports={}},function(e,t,n){var o=n(4);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){var n,o,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{o="function"==typeof clearTimeout?clearTimeout:i}catch(e){o=i}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d1)for(var n=1;n1?{type:p[r],data:e.substring(1)}:{type:p[r]}:h}r=new Uint8Array(e)[0];var a=i(e,1);return m&&"blob"===n&&(a=new m([a])),{type:p[r],data:a}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!o)return{type:n,data:{base64:!0,data:e.substr(1)}};var r=o.decode(e.substr(1));return"blob"===t&&m&&(r=new m([r])),{type:n,data:r}},t.encodePayload=function(e,n,o){"function"==typeof n&&(o=n,n=null);var r=a(e);return n&&r?m&&!d?t.encodePayloadAsBlob(e,o):t.encodePayloadAsArrayBuffer(e,o):e.length?void v(e,(function(e,o){t.encodePacket(e,!!r&&n,!1,(function(e){var t;o(null,(t=e).length+":"+t)}))}),(function(e,t){return o(t.join(""))})):o("0:")},t.decodePayload=function(e,n,o){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,o);var r;if("function"==typeof n&&(o=n,n=null),""===e)return o(h,0,1);for(var a,i,s="",c=0,l=e.length;c0;){for(var s=new Uint8Array(r),c=0===s[0],l="",u=1;255!==s[u];u++){if(l.length>310)return o(h,0,1);l+=s[u]}r=i(r,2+l.length),l=parseInt(l);var d=i(r,0,l);if(c)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var f=new Uint8Array(d);for(d="",u=0;uu;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(22);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(4),r=n(22),a=n(5)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},function(e,t,n){var o=n(5)("iterator"),r=!1;try{var a=[7][o]();a.return=function(){r=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a=[7],i=a[o]();i.next=function(){return{done:n=!0}},a[o]=function(){return i},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var o=n(1);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var o=n(13),r=n(14),a=n(3),i=n(25),s=n(5);e.exports=function(e,t,n){var c=s(e),l=n(i,c,""[e]),u=l[0],d=l[1];a((function(){var t={};return t[c]=function(){return 7},7!=""[e](t)}))&&(r(String.prototype,e,u),o(RegExp.prototype,c,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){var o=n(1),r=n(12),a=n(5)("species");e.exports=function(e,t){var n,i=o(e).constructor;return void 0===i||null==(n=o(i)[a])?t:r(n)}},function(e,t,n){var o=n(2).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){"use strict";var o=n(2),r=n(0),a=n(14),i=n(44),s=n(32),c=n(43),l=n(42),u=n(4),d=n(3),f=n(63),p=n(45),h=n(85);e.exports=function(e,t,n,m,v,g){var b=o[e],y=b,w=v?"set":"add",x=y&&y.prototype,_={},S=function(e){var t=x[e];a(x,e,"delete"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(g||x.forEach&&!d((function(){(new y).entries().next()})))){var T=new y,C=T[w](g?{}:-0,1)!=T,E=d((function(){T.has(1)})),A=f((function(e){new y(e)})),k=!g&&d((function(){for(var e=new y,t=5;t--;)e[w](t,t);return!e.has(-0)}));A||((y=t((function(t,n){l(t,y,e);var o=h(new b,t,y);return null!=n&&c(n,v,o[w],o),o}))).prototype=x,x.constructor=y),(E||k)&&(S("delete"),S("has"),v&&S("get")),(k||C)&&S(w),g&&x.clear&&delete x.clear}else y=m.getConstructor(t,e,v,w),i(y.prototype,n),s.NEED=!0;return p(y,e),_[e]=y,r(r.G+r.W+r.F*(y!=b),_),g||m.setStrong(y,e,v),y}},function(e,t,n){for(var o,r=n(2),a=n(13),i=n(36),s=i("typed_array"),c=i("view"),l=!(!r.ArrayBuffer||!r.DataView),u=l,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(o=r[f[d++]])?(a(o.prototype,s,!0),a(o.prototype,c,!0)):u=!1;e.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},function(e,t,n){"use strict";e.exports=n(33)||!n(3)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(2)[e]}))},function(e,t,n){"use strict";var o=n(0);e.exports=function(e){o(o.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var o=n(0),r=n(12),a=n(21),i=n(43);e.exports=function(e){o(o.S,e,{from:function(e){var t,n,o,s,c=arguments[1];return r(this),(t=void 0!==c)&&r(c),null==e?new this:(n=[],t?(o=0,s=a(c,arguments[2],2),i(e,!1,(function(e){n.push(s(e,o++))}))):i(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";(function(e){ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -var o=n(370),r=n(371),a=n(372);function i(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function h(e,t){if(c.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 o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(o)return N(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var r,a,i,s=!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 C(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return r=this,i=n,0===(a=t)&&i===r.length?o.fromByteArray(r):o.fromByteArray(r.slice(a,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function v(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,o,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,o,r){var a,i=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(r){var u=-1;for(a=n;as&&(n=s-c),a=n;a>=0;a--){for(var d=!0,f=0;fr&&(o=r):o=r;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");o>a/2&&(o=a/2);for(var i=0;i239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[r+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[r+1],i=e[r+2],128==(192&a)&&128==(192&i)&&(c=(15&l)<<12|(63&a)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[r+1],i=e[r+2],s=e[r+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),r+=d}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);for(var n="",o=0;o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,o,r){if(!c.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===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(o>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),l=this.slice(o,r),u=e.slice(t,n),d=0;dp)&&(n=p),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var h=!1;;)switch(o){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return d=t,f=n,F(N(e,(u=this).length-d),u,d,f);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return s=this,c=t,l=n,F(L(e),s,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,i=n,F(function(e,t){for(var n,o,r,a=[],i=0;i>8,r=n%256,a.push(r),a.push(o);return a}(e,(r=this).length-a),r,a,i);default:if(h)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),h=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function S(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;rr)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,o,r,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function M(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r>>8*(o?r:1-r)}function O(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r>>8*(o?r:3-r)&255}function R(e,t,n,o,r,a){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,o,a){return a||R(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function j(e,t,n,o,a){return a||R(e,0,n,8),r.write(e,t,n,o,52,8),n+8}c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=this[e],r=1,a=0;++a=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var o=t,r=1,a=this[e+--o];o>0&&(r*=256);)a+=this[e+--o]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||k(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+r]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}var a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}var a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t=0;--r)e[r+t]=this[r+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===o){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function L(e){return o.toByteArray(function(e){if((e=(t=e,t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(I,"")).length<2)return"";for(var t;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,o){for(var r=0;r=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(31))},function(e,t,n){(function(o){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==o&&"env"in o&&(e=o.env.DEBUG),e}(t=e.exports=n(374)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var o="color: "+this.color;e.splice(1,0,o,"color: inherit");var r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),e.splice(a,0,o)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}).call(this,n(49))},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),o=0,r=n.length;o=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}).call(this,n(49))},function(e,t,n){var o=n(4),r=n(2).document,a=o(r)&&o(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var o=n(2),r=n(20),a=n(33),i=n(110),s=n(8).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:i.f(e)})}},function(e,t,n){var o=n(58)("keys"),r=n(36);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(2).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(4),r=n(1),a=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(21)(Function.call,n(18).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:a}},function(e,t){e.exports=atob("w5prwofDtMO6wrfCq+GYheGjnuKBluKDuuKDuuKBk+KDvOKCmuKCn+KBt+KAuOKCueKBguKDjeKCgOODtuKBpeKBg++6pg==")},function(e,t,n){var o=n(4),r=n(83).set;e.exports=function(e,t,n){var a,i=t.constructor;return i!==n&&"function"==typeof i&&(a=i.prototype)!==n.prototype&&o(a)&&r&&r(e,a),e}},function(e,t,n){"use strict";var o=n(26),r=n(25);e.exports=function(e){var t=String(r(this)),n="",a=o(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var o=n(26),r=n(25);e.exports=function(e){return function(t,n){var a,i,s=String(r(t)),c=o(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(i=s.charCodeAt(c+1))<56320||i>57343?e?s.charAt(c):a:e?s.slice(c,c+2):i-56320+(a-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(33),r=n(0),a=n(14),i=n(13),s=n(47),c=n(91),l=n(45),u=n(19),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,m,v,g){c(n,t,h);var b,y,w,x=function(e){if(!f&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",S="values"==m,T=!1,C=e.prototype,E=C[d]||C["@@iterator"]||m&&C[m],A=E||x(m),k=m?S?x("entries"):A:void 0,M="Array"==t&&C.entries||E;if(M&&(w=u(M.call(new e)))!==Object.prototype&&w.next&&(l(w,_,!0),o||"function"==typeof w[d]||i(w,d,p)),S&&E&&"values"!==E.name&&(T=!0,A=function(){return E.call(this)}),o&&!g||!f&&!T&&C[d]||i(C,d,A),s[t]=A,s[_]=p,m)if(b={values:S?A:x("values"),keys:v?A:x("keys"),entries:k},g)for(y in b)y in C||a(C,y,b[y]);else r(r.P+r.F*(f||T),t,b);return b}},function(e,t,n){"use strict";var o=n(39),r=n(35),a=n(45),i={};n(13)(i,n(5)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=o(i,{next:r(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var o=n(62),r=n(25);e.exports=function(e,t,n){if(o(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var o=n(5)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(47),r=n(5)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},function(e,t,n){"use strict";var o=n(8),r=n(35);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(55),r=n(5)("iterator"),a=n(47);e.exports=n(20).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[o(e)]}},function(e,t,n){var o=n(254);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,n){"use strict";var o=n(10),r=n(38),a=n(9);e.exports=function(e){for(var t=o(this),n=a(t.length),i=arguments.length,s=r(i>1?arguments[1]:void 0,n),c=i>2?arguments[2]:void 0,l=void 0===c?n:r(c,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var o=n(34),r=n(126),a=n(47),i=n(17);e.exports=n(90)(Array,"Array",(function(e,t){this._t=i(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o,r,a,i=n(21),s=n(116),c=n(82),l=n(78),u=n(2),d=u.process,f=u.setImmediate,p=u.clearImmediate,h=u.MessageChannel,m=u.Dispatch,v=0,g={},b=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},y=function(e){b.call(e.data)};f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++v]=function(){s("function"==typeof e?e:Function(e),t)},o(v),v},p=function(e){delete g[e]},"process"==n(22)(d)?o=function(e){d.nextTick(i(b,e,1))}:m&&m.now?o=function(e){m.now(i(b,e,1))}:h?(a=(r=new h).port2,r.port1.onmessage=y,o=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(o=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):o="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(i(b,e,1),0)}),e.exports={set:f,clear:p}},function(e,t,n){var o=n(2),r=n(100).set,a=o.MutationObserver||o.WebKitMutationObserver,i=o.process,s=o.Promise,c="process"==n(22)(i);e.exports=function(){var e,t,n,l=function(){var o,r;for(c&&(o=i.domain)&&o.exit();e;){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(c)n=function(){i.nextTick(l)};else if(!a||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(o,l)};else{var d=!0,f=document.createTextNode("");new a(l).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(o){var r={fn:o,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){"use strict";var o=n(12);function r(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var o=n(2),r=n(7),a=n(33),i=n(69),s=n(13),c=n(44),l=n(3),u=n(42),d=n(26),f=n(9),p=n(135),h=n(40).f,m=n(8).f,v=n(98),g=n(45),b="Wrong index!",y=o.ArrayBuffer,w=o.DataView,x=o.Math,_=o.RangeError,S=o.Infinity,T=y,C=x.abs,E=x.pow,A=x.floor,k=x.log,M=x.LN2,O=r?"_b":"buffer",R=r?"_l":"byteLength",P=r?"_o":"byteOffset";function j(e,t,n){var o,r,a,i=new Array(n),s=8*n-t-1,c=(1<>1,u=23===t?E(2,-24)-E(2,-77):0,d=0,f=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===S?(r=e!=e?1:0,o=c):(o=A(k(e)/M),e*(a=E(2,-o))<1&&(o--,a*=2),(e+=o+l>=1?u/a:u*E(2,1-l))*a>=2&&(o++,a/=2),o+l>=c?(r=0,o=c):o+l>=1?(r=(e*a-1)*E(2,t),o+=l):(r=e*E(2,l-1)*E(2,t),o=0));t>=8;i[d++]=255&r,r/=256,t-=8);for(o=o<0;i[d++]=255&o,o/=256,s-=8);return i[--d]|=128*f,i}function I(e,t,n){var o,r=8*n-t-1,a=(1<>1,s=r-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=t;s>0;o=256*o+e[c],c--,s-=8);if(0===u)u=1-i;else{if(u===a)return o?NaN:l?-S:S;o+=E(2,t),u-=i}return(l?-1:1)*o*E(2,u-t)}function N(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function L(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function z(e){return j(e,52,8)}function B(e){return j(e,23,4)}function U(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function G(e,t,n,o){var r=p(+n);if(r+t>e[R])throw _(b);var a=e[O]._b,i=r+e[P],s=a.slice(i,i+t);return o?s:s.reverse()}function V(e,t,n,o,r,a){var i=p(+n);if(i+t>e[R])throw _(b);for(var s=e[O]._b,c=i+e[P],l=o(+r),u=0;uY;)(q=W[Y++])in y||s(y,q,T[q]);a||(H.constructor=y)}var X=new w(new y(2)),K=w.prototype.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||c(w.prototype,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},!0)}else y=function(e){u(this,y,"ArrayBuffer");var t=p(e);this._b=v.call(new Array(t),0),this[R]=t},w=function(e,t,n){u(this,w,"DataView"),u(e,y,"DataView");var o=e[R],r=d(t);if(r<0||r>o)throw _("Wrong offset!");if(r+(n=void 0===n?o-r:f(n))>o)throw _("Wrong length!");this[O]=e,this[P]=r,this[R]=n},r&&(U(y,"byteLength","_l"),U(w,"buffer","_b"),U(w,"byteLength","_l"),U(w,"byteOffset","_o")),c(w.prototype,{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var t=G(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=G(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return N(G(this,4,e,arguments[1]))},getUint32:function(e){return N(G(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return I(G(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return I(G(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){V(this,1,e,L,t)},setUint8:function(e,t){V(this,1,e,L,t)},setInt16:function(e,t){V(this,2,e,F,t,arguments[2])},setUint16:function(e,t){V(this,2,e,F,t,arguments[2])},setInt32:function(e,t){V(this,4,e,D,t,arguments[2])},setUint32:function(e,t){V(this,4,e,D,t,arguments[2])},setFloat32:function(e,t){V(this,4,e,B,t,arguments[2])},setFloat64:function(e,t){V(this,8,e,z,t,arguments[2])}});g(y,"ArrayBuffer"),g(w,"DataView"),s(w.prototype,i.VIEW,!0),t.ArrayBuffer=y,t.DataView=w},function(e,t){var n=1e3,o=6e4,r=36e5,a=864e5;function i(e,t,n){if(!(e0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*o;case"seconds":case"second":case"secs":case"sec":case"s":return i*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return t.long?i(s=e,a,"day")||i(s,r,"hour")||i(s,o,"minute")||i(s,n,"second")||s+" ms":(c=e)>=a?Math.round(c/a)+"d":c>=r?Math.round(c/r)+"h":c>=o?Math.round(c/o)+"m":c>=n?Math.round(c/n)+"s":c+"ms";throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){var o=n(375)("socket.io-parser"),r=n(50),a=n(377),i=n(146),s=n(147);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=d;var l=t.ERROR+'"encode error"';function u(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var r=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===r)return l;n+=r}return o("encoded %j as %s",e,n),n}function d(){this.reconstructor=null}function f(e){this.reconPack=e,this.buffers=[]}function p(e){return{type:t.ERROR,data:"parser error: "+e}}c.prototype.encode=function(e,n){var r,i;o("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?(r=e,i=n,a.removeBlobs(r,(function(e){var t=a.deconstructPacket(e),n=u(t.packet),o=t.buffers;o.unshift(n),i(o)}))):n([u(e)])},r(d.prototype),d.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,r={type:Number(e.charAt(0))};if(null==t.types[r.type])return p("unknown packet type "+r.type);if(t.BINARY_EVENT===r.type||t.BINARY_ACK===r.type){for(var a="";"-"!==e.charAt(++n)&&(a+=e.charAt(n),n!=e.length););if(a!=Number(a)||"-"!==e.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(a)}if("/"===e.charAt(n+1))for(r.nsp="";++n&&","!==(c=e.charAt(n))&&(r.nsp+=c,n!==e.length););else r.nsp="/";var s=e.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var c;if(null==(c=e.charAt(n))||Number(c)!=c){--n;break}if(r.id+=e.charAt(n),n===e.length)break}r.id=Number(r.id)}if(e.charAt(++n)){var l=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(n));if(!1===l||r.type!==t.ERROR&&!i(l))return p("invalid payload");r.data=l}return o("decoded %s as %j",e,r),r}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new f(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},f.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},f.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){var o=n(380);e.exports=function(e){var t=e.xdomain,n=e.xscheme,r=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||o))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&r)return new XDomainRequest}catch(e){}if(!t)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t,n){var o=n(51),r=n(50);function a(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=a,r(a.prototype),a.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},a.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},a.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},a.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},a.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},a.prototype.onData=function(e){var t=o.decodePacket(e,this.socket.binaryType);this.onPacket(t)},a.prototype.onPacket=function(e){this.emit("packet",e)},a.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){(function(n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";function t(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){i(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function o(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,i=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,i){var s=a.URL||a.webkitURL,c=document.createElement("a");n=n||e.name||"download",c.download=n,c.rel="noopener","string"==typeof e?(c.href=e,c.origin===location.origin?r(c):o(c.href)?t(e,n,i):r(c,c.target="_blank")):(c.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){r(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob((s=e,void 0===(c=a)?c={autoBom:!1}:"object"!=typeof c&&(console.warn("Deprecated: Expected third argument to be a object"),c={autoBom:!c}),c.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\ufeff",s],{type:s.type}):s),n);else if(o(e))t(e,n,a);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){r(i)}))}var s,c}:function(e,n,o,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,o);var i="application/octet-stream"===e.type,s=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||i&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},l.readAsDataURL(e)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=i.saveAs=i,e.exports=i})?o.apply(t,[]):o)||(e.exports=r)}).call(this,n(31))},function(e,t,n){e.exports=!n(7)&&!n(3)((function(){return 7!=Object.defineProperty(n(78)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(5)},function(e,t,n){var o=n(16),r=n(17),a=n(59)(!1),i=n(80)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),c=0,l=[];for(n in s)n!=i&&o(s,n)&&l.push(n);for(;t.length>c;)o(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var o=n(8),r=n(1),a=n(37);e.exports=n(7)?Object.defineProperties:function(e,t){r(e);for(var n,i=a(t),s=i.length,c=0;s>c;)o.f(e,n=i[c++],t[n]);return e}},function(e,t,n){var o=n(17),r=n(40).f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==a.call(e)?function(e){try{return r(e)}catch(e){return i.slice()}}(e):r(o(e))}},function(e,t,n){"use strict";var o=n(37),r=n(60),a=n(54),i=n(10),s=n(53),c=Object.assign;e.exports=!c||n(3)((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=o}))?function(e,t){for(var n=i(e),c=arguments.length,l=1,u=r.f,d=a.f;c>l;)for(var f,p=s(arguments[l++]),h=u?o(p).concat(u(p)):o(p),m=h.length,v=0;m>v;)d.call(p,f=h[v++])&&(n[f]=p[f]);return n}:c},function(e,t,n){"use strict";var o=n(12),r=n(4),a=n(116),i=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var o=[],r=0;r>>0||(i.test(n)?16:10))}:o},function(e,t,n){var o=n(2).parseFloat,r=n(46).trim;e.exports=1/o(n(84)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},function(e,t,n){var o=n(22);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=o(e))throw TypeError(t);return+e}},function(e,t,n){var o=n(4),r=Math.floor;e.exports=function(e){return!o(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var o=n(87),r=Math.pow,a=r(2,-52),i=r(2,-23),s=r(2,127)*(2-i),c=r(2,-126);e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),l=o(e);return rs||n!=n?l*(1/0):l*n}},function(e,t,n){var o=n(1);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&o(a.call(e)),t}}},function(e,t,n){var o=n(12),r=n(10),a=n(53),i=n(9);e.exports=function(e,t,n,s,c){o(t);var l=r(e),u=a(l),d=i(l.length),f=c?d-1:0,p=c?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=p;break}if(f+=p,c?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;c?f>=0:d>f;f+=p)f in u&&(s=t(s,u[f],f,l));return s}},function(e,t,n){"use strict";var o=n(10),r=n(38),a=n(9);e.exports=[].copyWithin||function(e,t){var n=o(this),i=a(n.length),s=r(e,i),c=r(t,i),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?i:r(l,i))-c,i-s),d=1;for(c0;)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(7)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(64)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(1),r=n(4),a=n(102);e.exports=function(e,t){if(o(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var o=n(131),r=n(48);e.exports=n(68)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=o.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return o.def(r(this,"Map"),0===e?0:e,t)}},o,!0)},function(e,t,n){"use strict";var o=n(8).f,r=n(39),a=n(44),i=n(21),s=n(42),c=n(43),l=n(90),u=n(126),d=n(41),f=n(7),p=n(32).fastKey,h=n(48),m=f?"_s":"size",v=function(e,t){var n,o=p(t);if("F"!==o)return e._i[o];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,o){s(e,u,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,null!=o&&c(o,n,e[l],e)}));return a(u.prototype,{clear:function(){for(var e=h(this,t),n=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete n[o.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),o=v(n,e);if(o){var r=o.n,a=o.p;delete n._i[o.i],o.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==o&&(n._f=r),n._l==o&&(n._l=a),n[m]--}return!!o},forEach:function(e){h(this,t);for(var n,o=i(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(o(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(h(this,t),e)}}),f&&o(u.prototype,"size",{get:function(){return h(this,t)[m]}}),u},def:function(e,t,n){var o,r,a=v(e,t);return a?a.v=n:(e._l=a={i:r=p(t,!0),k:t,v:n,p:o=e._l,n:void 0,r:!1},e._f||(e._f=a),o&&(o.n=a),e[m]++,"F"!==r&&(e._i[r]=a)),e},getEntry:v,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var o=n(131),r=n(48);e.exports=n(68)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return o.def(r(this,"Set"),e=0===e?0:e,e)}},o)},function(e,t,n){"use strict";var o,r=n(28)(0),a=n(14),i=n(32),s=n(114),c=n(134),l=n(4),u=n(3),d=n(48),f=i.getWeak,p=Object.isExtensible,h=c.ufstore,m={},v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(e){if(l(e)){var t=f(e);return!0===t?h(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},b=e.exports=n(68)("WeakMap",v,g,c,!0,!0);u((function(){return 7!=(new b).set((Object.freeze||Object)(m),7).get(m)}))&&(s((o=c.getConstructor(v,"WeakMap")).prototype,g),i.NEED=!0,r(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,r){if(l(t)&&!p(t)){this._f||(this._f=new o);var a=this._f[e](t,r);return"set"==e?this:a}return n.call(this,t,r)}))})))},function(e,t,n){"use strict";var o=n(44),r=n(32).getWeak,a=n(1),i=n(4),s=n(42),c=n(43),l=n(28),u=n(16),d=n(48),f=l(5),p=l(6),h=0,m=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},g=function(e,t){return f(e.a,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var l=e((function(e,o){s(e,l,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=o&&c(o,n,e[a],e)}));return o(l.prototype,{delete:function(e){if(!i(e))return!1;var n=r(e);return!0===n?m(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!i(e))return!1;var n=r(e);return!0===n?m(d(this,t)).has(e):n&&u(n,this._i)}}),l},def:function(e,t,n){var o=r(a(t),!0);return!0===o?m(e).set(t,n):o[e._i]=n,e},ufstore:m}},function(e,t,n){var o=n(26),r=n(9);e.exports=function(e){if(void 0===e)return 0;var t=o(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var o=n(40),r=n(60),a=n(1),i=n(2).Reflect;e.exports=i&&i.ownKeys||function(e){var t=o.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var o=n(61),r=n(4),a=n(9),i=n(21),s=n(5)("isConcatSpreadable");e.exports=function e(t,n,c,l,u,d,f,p){for(var h,m,v=u,g=0,b=!!f&&i(f,p,3);g0)v=e(t,n,h,a(h.length),v,d-1)-1;else{if(v>=9007199254740991)throw TypeError();t[v]=h}v++}g++}return v}},function(e,t,n){var o=n(9),r=n(86),a=n(25);e.exports=function(e,t,n,i){var s=String(a(e)),c=s.length,l=void 0===n?" ":String(n),u=o(t);if(u<=c||""==l)return s;var d=u-c,f=r.call(l,Math.ceil(d/l.length));return f.length>d&&(f=f.slice(0,d)),i?f+s:s+f}},function(e,t,n){var o=n(37),r=n(17),a=n(54).f;e.exports=function(e){return function(t){for(var n,i=r(t),s=o(i),c=s.length,l=0,u=[];c>l;)a.call(i,n=s[l++])&&u.push(e?[n,i[n]]:i[n]);return u}}},function(e,t,n){var o=n(55),r=n(141);e.exports=function(e){return function(){if(o(this)!=e)throw TypeError(e+"#toJSON isn't generic");return r(this)}}},function(e,t,n){var o=n(43);e.exports=function(e,t){var n=[];return o(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,o,r){return 0===arguments.length||e!=e||t!=t||n!=n||o!=o||r!=r?NaN:e===1/0||e===-1/0?e:(e-t)*(r-o)/(n-t)+o}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,r=e.indexOf("["),a=e.indexOf("]");-1!=r&&-1!=a&&(e=e.substring(0,r)+e.substring(r,a).replace(/:/g,";")+e.substring(a,e.length));for(var i=n.exec(e||""),s={},c=14;c--;)s[o[c]]=i[c]||"";return-1!=r&&-1!=a&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){e.exports=function(e){return n&&t.isBuffer(e)||o&&(e instanceof ArrayBuffer||r(e))};var n="function"==typeof t&&"function"==typeof t.isBuffer,o="function"==typeof ArrayBuffer,r=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}}).call(this,n(73).Buffer)},function(e,t,n){var o=n(378),r=n(154),a=n(50),i=n(105),s=n(155),c=n(156),l=n(74)("socket.io-client:manager"),u=n(153),d=n(394),f=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)f.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)f.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},a(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=o(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var a=s(n,"open",(function(){r.onopen(),e&&e()})),i=s(n,"error",(function(t){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else r.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;l("connect attempt will timeout after %d",c);var u=setTimeout((function(){l("connect attempt timed out after %d",c),a.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(a),this.subs.push(i),this},p.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",c(this,"ondata"))),this.subs.push(s(e,"ping",c(this,"onping"))),this.subs.push(s(e,"pong",c(this,"onpong"))),this.subs.push(s(e,"error",c(this,"onerror"))),this.subs.push(s(e,"close",c(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){l("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new r(this,e,t),this.nsps[e]=n;var o=this;n.on("connecting",a),n.on("connect",(function(){n.id=o.generateId(e)})),this.autoConnect&&a()}function a(){~u(o.connecting,n)||o.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=u(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){l("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var o=0;o0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){l("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();l("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout((function(){e.skipReconnect||(l("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(l("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(l("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var o=n(106),r=n(381),a=n(390),i=n(391);t.polling=function(e){var t=!1,n=!1,i=!1!==e.jsonp;if("undefined"!=typeof location){var s="https:"===location.protocol,c=location.port;c||(c=s?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==s}if(e.xdomain=t,e.xscheme=n,"open"in new o(e)&&!e.forceJSONP)return new r(e);if(!i)throw new Error("JSONP disabled");return new a(e)},t.websocket=i},function(e,t,n){var o=n(107),r=n(75),a=n(51),i=n(76),s=n(152),c=n(77)("engine.io-client:polling");e.exports=u;var l=null!=new(n(106))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;l&&!t||(this.supportsBinary=!1),o.call(this,e)}i(u,o),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var o=0;this.polling&&(c("we are currently polling - waiting to pause"),o++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--o||n()}))),this.writable||(c("we are currently writing - waiting to pause"),o++,this.once("drain",(function(){c("pre-pause writing complete"),--o||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;c("polling got data %s",e),a.decodePayload(e,this.socket.binaryType,(function(e,n,o){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=r.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var o=n(383),r=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),i="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(o(n)){for(var r=0,s=n.length;r0);return t}function l(){var e=c(+new Date);return e!==o?(i=0,o=e):e+"."+c(i++)}for(;s<64;s++)a[r[s]]=s;l.encode=c,l.decode=function(e){var t=0;for(s=0;s=0&&n._handlers_[e].splice(n._handlers_[e].indexOf(t),1),n},e.prototype.trigger=function(e,t){var n,o=this,r=e.split(/[ ,]+/g);o._handlers_=o._handlers_||{};for(var a=0;aa&&r<3*a&&!e.lockX?t="up":r>-a&&r<=a&&!e.lockY?t="left":r>3*-a&&r<=-a&&!e.lockX?t="down":e.lockY||(t="right"),e.lockY||(n=r>-i&&r0?"up":"down"),e.force>this.options.threshold){var s={};for(var c in this.direction)this.direction.hasOwnProperty(c)&&(s[c]=this.direction[c]);var l={};for(var c in this.direction={x:n,y:o,angle:t},e.direction=this.direction,s)s[c]===this.direction[c]&&(l[c]=!0);if(l.x&&l.y&&l.angle)return e;l.x&&l.y||this.trigger("plain",e),l.x||this.trigger("plain:"+n,e),l.y||this.trigger("plain:"+o,e),l.angle||this.trigger("dir dir:"+t,e)}return e},n.prototype=new e,n.constructor=n,n.id=0,n.prototype.prepareNipples=function(){var e=this,t=e.nipples;t.on=e.on.bind(e),t.off=e.off.bind(e),t.options=e.options,t.destroy=e.destroy.bind(e),t.ids=e.ids,t.id=e.id,t.processOnMove=e.processOnMove.bind(e),t.processOnEnd=e.processOnEnd.bind(e),t.get=function(e){if(void 0===e)return t[0];for(var n=0,o=t.length;n