···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2014-2017, Jon Schlinkert.
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in
1313+all copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121+THE SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+"use strict";
22+33+var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
44+55+var _typeof = "function" == typeof Symbol && "symbol" == _typeof2(Symbol.iterator) ? function (e) {
66+ return typeof e === "undefined" ? "undefined" : _typeof2(e);
77+} : function (e) {
88+ return e && "function" == typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e === "undefined" ? "undefined" : _typeof2(e);
99+};!function (e) {
1010+ if ("object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module) module.exports = e();else if ("function" == typeof define && define.amd) define([], e);else {
1111+ var t;t = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, t.$ = e();
1212+ }
1313+}(function () {
1414+ return function e(t, n, o) {
1515+ function r(i, u) {
1616+ if (!n[i]) {
1717+ if (!t[i]) {
1818+ var c = "function" == typeof require && require;if (!u && c) return c(i, !0);if (f) return f(i, !0);var d = new Error("Cannot find module '" + i + "'");throw d.code = "MODULE_NOT_FOUND", d;
1919+ }var l = n[i] = { exports: {} };t[i][0].call(l.exports, function (e) {
2020+ var n = t[i][1][e];return r(n ? n : e);
2121+ }, l, l.exports, e, t, n, o);
2222+ }return n[i].exports;
2323+ }for (var f = "function" == typeof require && require, i = 0; i < o.length; i++) {
2424+ r(o[i]);
2525+ }return r;
2626+ }({ 1: [function (e, t) {
2727+ function n(e, t) {
2828+ return "string" == typeof e ? "<" === e.charAt(0) ? (e = document.createElement(e.slice(1, -1)), o(t || {}, function (t, n) {
2929+ switch (n) {case "text":
3030+ return void (e.textContent = t);case "html":
3131+ return void (e.innerHTML = t);}e.setAttribute(n, t);
3232+ }), e) : (t = t || document, t.querySelector(e)) : e;
3333+ }var o = e("iterate-object");n.$$ = function (e, t) {
3434+ return t = t || document, t.querySelectorAll(e);
3535+ }, t.exports = n;
3636+ }, { "iterate-object": 2 }], 2: [function (e, t) {
3737+ function n(e, t) {
3838+ var n = 0,
3939+ o = [];if (Array.isArray(e)) for (; n < e.length && t(e[n], n, e) !== !1; ++n) {} else if ("object" === ("undefined" == typeof e ? "undefined" : _typeof(e)) && null !== e) for (o = Object.keys(e); n < o.length && t(e[o[n]], o[n], e) !== !1; ++n) {}
4040+ }t.exports = n;
4141+ }, {}] }, {}, [1])(1);
4242+});
+63
node_modules/elly/lib/index.js
···11+"use strict";
22+33+var iterateObj = require("iterate-object"),
44+ sliced = require("sliced");
55+66+/**
77+ * elly
88+ * Selects the DOM elements based on the provided selector. If there is no
99+ * commonjs/module environment, the `$` global variable will be created.
1010+ *
1111+ * @name elly
1212+ * @function
1313+ * @param {String|HTMLElement} input The element selector (e.g.
1414+ * `'#my-id > .my-class'`), the element tag you want to create
1515+ * (e.g. `'<ul>'`) or the HTML element (will be returned by the function).
1616+ * @param {Object|HTMLElement} contextOrAttributes
1717+ * @returns {HTMLElement} The HTMLElement that was provided or selected.
1818+ */
1919+function $(input, contextOrAttributes) {
2020+ if (typeof input === "string") {
2121+ if (input.charAt(0) === "<") {
2222+ input = document.createElement(input.slice(1, -1));
2323+ iterateObj(contextOrAttributes || {}, function (value, name) {
2424+2525+ switch (name) {
2626+ case "text":
2727+ input.textContent = value;
2828+ return;
2929+ case "html":
3030+ input.innerHTML = value;
3131+ return;
3232+ }
3333+3434+ input.setAttribute(name, value);
3535+ });
3636+ return input;
3737+ } else {
3838+ contextOrAttributes = contextOrAttributes || document;
3939+ return contextOrAttributes.querySelector(input);
4040+ }
4141+ }
4242+ return input;
4343+};
4444+4545+/**
4646+ * elly.$$
4747+ * Selects multiple elements. Note that if there is no commonjs/module environment, you will access this function using `$.$$`.
4848+ *
4949+ * @name elly.$$
5050+ * @function
5151+ * @param {String} selector The DOM query selector.
5252+ * @param {HTMLElement} context The element context/container. Defaults to `document`.
5353+ * @returns {Array} The array of elements.
5454+ */
5555+$.$$ = function (selector, context) {
5656+ if (typeof selector === "string") {
5757+ context = context || document;
5858+ return sliced(context.querySelectorAll(selector));
5959+ }
6060+ return [selector];
6161+};
6262+6363+module.exports = $;
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+"use strict";
22+33+/**
44+ * fillo
55+ * Fill additional characters at the beginning of the string.
66+ *
77+ * @name fillo
88+ * @function
99+ * @param {String|Number} what The input snippet (number, string or anything that can be stringified).
1010+ * @param {Number} size The width of the final string (default: `2`).
1111+ * @param {String} ch The character to repeat (default: `"0"`).
1212+ * @return {String} The input value with filled characters.
1313+ */
1414+module.exports = function fillo(what, size, ch) {
1515+ size = size || 2;
1616+ ch = ch || "0";
1717+ what = what.toString();
1818+ var howMany = size - what.length;
1919+ return (howMany <= 0 ? "" : ch.repeat(howMany)) + what;
2020+};
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2016-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2016-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2016-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+# :eight_spoked_asterisk: :stars: :sparkles: :dizzy: :star2: :star2: :sparkles: :dizzy: :star2: :star2: Contributing :star: :star2: :dizzy: :sparkles: :star: :star2: :dizzy: :sparkles: :stars: :eight_spoked_asterisk:
22+33+So, you want to contribute to this project! That's awesome. However, before
44+doing so, please read the following simple steps how to contribute. This will
55+make the life easier and will avoid wasting time on things which are not
66+requested. :sparkles:
77+88+## Discuss the changes before doing them
99+ - First of all, open an issue in the repository, using the [bug tracker][1],
1010+ describing the contribution you would like to make, the bug you found or any
1111+ other ideas you have. This will help us to get you started on the right
1212+ foot.
1313+1414+ - If it makes sense, add the platform and software information (e.g. operating
1515+ system, Node.JS version etc.), screenshots (so we can see what you are
1616+ seeing).
1717+1818+ - It is recommended to wait for feedback before continuing to next steps.
1919+ However, if the issue is clear (e.g. a typo) and the fix is simple, you can
2020+ continue and fix it.
2121+2222+## Fixing issues
2323+ - Fork the project in your account and create a branch with your fix:
2424+ `some-great-feature` or `some-issue-fix`.
2525+2626+ - Commit your changes in that branch, writing the code following the
2727+ [code style][2]. If the project contains tests (generally, the `test`
2828+ directory), you are encouraged to add a test as well. :memo:
2929+3030+ - If the project contains a `package.json` or a `bower.json` file add yourself
3131+ in the `contributors` array (or `authors` in the case of `bower.json`;
3232+ if the array does not exist, create it):
3333+3434+ ```json
3535+ {
3636+ "contributors": [
3737+ "Your Name <and@email.address> (http://your.website)"
3838+ ]
3939+ }
4040+ ```
4141+4242+## Creating a pull request
4343+4444+ - Open a pull request, and reference the initial issue in the pull request
4545+ message (e.g. *fixes #<your-issue-number>*). Write a good description and
4646+ title, so everybody will know what is fixed/improved.
4747+4848+ - If it makes sense, add screenshots, gifs etc., so it is easier to see what
4949+ is going on.
5050+5151+## Wait for feedback
5252+Before accepting your contributions, we will review them. You may get feedback
5353+about what should be fixed in your modified code. If so, just keep committing
5454+in your branch and the pull request will be updated automatically.
5555+5656+## Everyone is happy!
5757+Finally, your contributions will be merged, and everyone will be happy! :smile:
5858+Contributions are more than welcome!
5959+6060+Thanks! :sweat_smile:
6161+6262+6363+6464+[1]: https://github.com/IonicaBizau/node-iterate-object/issues
6565+6666+[2]: https://github.com/IonicaBizau/code-style
+15
node_modules/iterate-object/DOCUMENTATION.md
···11+## Documentation
22+33+You can see below the API reference of this module.
44+55+### `iterateObject(obj, fn)`
66+Iterates an object. Note the object field order may differ.
77+88+#### Params
99+1010+- **Object** `obj`: The input object.
1111+- **Function** `fn`: A function that will be called with the current value, field name and provided object.
1212+1313+#### Return
1414+- **Function** The `iterateObject` function.
1515+
+21
node_modules/iterate-object/LICENSE
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2014-2017, Jon Schlinkert.
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in
1313+all copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121+THE SOFTWARE.
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+"use strict";
22+33+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
44+55+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
66+77+var regexEscape = require("regex-escape");
88+99+var ParseIt = function () {
1010+ /**
1111+ * ParseIt
1212+ * The `ParseIt` class. It can be used to use the same data object but with different formats/arguments.
1313+ *
1414+ * @name ParseIt
1515+ * @function
1616+ * @param {Object} obj An object containing the fields to replace.
1717+ */
1818+ function ParseIt(obj) {
1919+ _classCallCheck(this, ParseIt);
2020+2121+ this.obj = obj || {};
2222+ this.re = new RegExp("^(" + Object.keys(obj).map(regexEscape).join("|") + ")");
2323+ }
2424+2525+ /**
2626+ * run
2727+ * Replaces the fields in the format string with data coming from the data object.
2828+ *
2929+ *
3030+ * @name parseIt
3131+ * @function
3232+ * @param {String} format The format input.
3333+ * @param {Array} args An array of arguments to be passed to the replace function (stored in the `obj` object).
3434+ * @return {String} The result as string.
3535+ */
3636+3737+3838+ _createClass(ParseIt, [{
3939+ key: "run",
4040+ value: function run(format, args) {
4141+ var result = "";
4242+ args = args || [];
4343+ do {
4444+ var arr = format.match(this.re),
4545+ field = arr && arr[1],
4646+ c = field || format.charAt(0);
4747+4848+ if (field) {
4949+ var value = this.obj[field];
5050+ if (typeof value === "function") {
5151+ value = value.apply(this, args);
5252+ }
5353+ result += value;
5454+ } else {
5555+ result += c;
5656+ }
5757+ format = format.substring(c.length);
5858+ } while (format);
5959+ return result;
6060+ }
6161+ }]);
6262+6363+ return ParseIt;
6464+}();
6565+6666+/**
6767+ * parseIt
6868+ * A wrapper around the `ParseIt` class. The `ParseIt` constructor is accessible using `parseIt.Parser`.
6969+ *
7070+ * @name parseIt
7171+ * @function
7272+ * @param {String} format The format input.
7373+ * @param {Object} obj An object containing the fields to replace.
7474+ * @param {Array} args An array of arguments to be passed to the replace function (stored in the `obj` object).
7575+ * @return {String} The result as string.
7676+ */
7777+7878+7979+function parseIt(format, obj, args) {
8080+ return new ParseIt(obj).run(format, args);
8181+}
8282+8383+parseIt.Parser = ParseIt;
8484+8585+module.exports = parseIt;
···11+The MIT License (MIT)
22+33+Copyright (c) 2015-19 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
···11+(The MIT License)
22+33+Copyright (c) 2012 [Aaron Heckmann](aaron.heckmann+github@gmail.com)
44+55+Permission is hereby granted, free of charge, to any person obtaining
66+a copy of this software and associated documentation files (the
77+'Software'), to deal in the Software without restriction, including
88+without limitation the rights to use, copy, modify, merge, publish,
99+distribute, sublicense, and/or sell copies of the Software, and to
1010+permit persons to whom the Software is furnished to do so, subject to
1111+the following conditions:
1212+1313+The above copyright notice and this permission notice shall be
1414+included in all copies or substantial portions of the Software.
1515+1616+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1717+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1818+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1919+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
2020+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
2121+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2222+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+62
node_modules/sliced/README.md
···11+#sliced
22+==========
33+44+A faster alternative to `[].slice.call(arguments)`.
55+66+[](http://travis-ci.org/aheckmann/sliced)
77+88+Example output from [benchmark.js](https://github.com/bestiejs/benchmark.js)
99+1010+ Array.prototype.slice.call x 1,401,820 ops/sec ±2.16% (90 runs sampled)
1111+ [].slice.call x 1,313,116 ops/sec ±2.04% (96 runs sampled)
1212+ cached slice.call x 10,297,910 ops/sec ±1.81% (96 runs sampled)
1313+ sliced x 19,906,019 ops/sec ±1.23% (89 runs sampled)
1414+ fastest is sliced
1515+1616+ Array.prototype.slice.call(arguments, 1) x 1,373,238 ops/sec ±1.84% (95 runs sampled)
1717+ [].slice.call(arguments, 1) x 1,395,336 ops/sec ±1.36% (93 runs sampled)
1818+ cached slice.call(arguments, 1) x 9,926,018 ops/sec ±1.67% (92 runs sampled)
1919+ sliced(arguments, 1) x 20,747,990 ops/sec ±1.16% (93 runs sampled)
2020+ fastest is sliced(arguments, 1)
2121+2222+ Array.prototype.slice.call(arguments, -1) x 1,319,908 ops/sec ±2.12% (91 runs sampled)
2323+ [].slice.call(arguments, -1) x 1,336,170 ops/sec ±1.33% (97 runs sampled)
2424+ cached slice.call(arguments, -1) x 10,078,718 ops/sec ±1.21% (98 runs sampled)
2525+ sliced(arguments, -1) x 20,471,474 ops/sec ±1.81% (92 runs sampled)
2626+ fastest is sliced(arguments, -1)
2727+2828+ Array.prototype.slice.call(arguments, -2, -10) x 1,369,246 ops/sec ±1.68% (97 runs sampled)
2929+ [].slice.call(arguments, -2, -10) x 1,387,935 ops/sec ±1.70% (95 runs sampled)
3030+ cached slice.call(arguments, -2, -10) x 9,593,428 ops/sec ±1.23% (97 runs sampled)
3131+ sliced(arguments, -2, -10) x 23,178,931 ops/sec ±1.70% (92 runs sampled)
3232+ fastest is sliced(arguments, -2, -10)
3333+3434+ Array.prototype.slice.call(arguments, -2, -1) x 1,441,300 ops/sec ±1.26% (98 runs sampled)
3535+ [].slice.call(arguments, -2, -1) x 1,410,326 ops/sec ±1.96% (93 runs sampled)
3636+ cached slice.call(arguments, -2, -1) x 9,854,419 ops/sec ±1.02% (97 runs sampled)
3737+ sliced(arguments, -2, -1) x 22,550,801 ops/sec ±1.86% (91 runs sampled)
3838+ fastest is sliced(arguments, -2, -1)
3939+4040+_Benchmark [source](https://github.com/aheckmann/sliced/blob/master/bench.js)._
4141+4242+##Usage
4343+4444+`sliced` accepts the same arguments as `Array#slice` so you can easily swap it out.
4545+4646+```js
4747+function zing () {
4848+ var slow = [].slice.call(arguments, 1, 8);
4949+ var args = slice(arguments, 1, 8);
5050+5151+ var slow = Array.prototype.slice.call(arguments);
5252+ var args = slice(arguments);
5353+ // etc
5454+}
5555+```
5656+5757+## install
5858+5959+ npm install sliced
6060+6161+6262+[LICENSE](https://github.com/aheckmann/sliced/blob/master/LICENSE)
+33
node_modules/sliced/index.js
···11+22+/**
33+ * An Array.prototype.slice.call(arguments) alternative
44+ *
55+ * @param {Object} args something with a length
66+ * @param {Number} slice
77+ * @param {Number} sliceEnd
88+ * @api public
99+ */
1010+1111+module.exports = function (args, slice, sliceEnd) {
1212+ var ret = [];
1313+ var len = args.length;
1414+1515+ if (0 === len) return ret;
1616+1717+ var start = slice < 0
1818+ ? Math.max(0, slice + len)
1919+ : slice || 0;
2020+2121+ if (sliceEnd !== undefined) {
2222+ len = sliceEnd < 0
2323+ ? sliceEnd + len
2424+ : sliceEnd
2525+ }
2626+2727+ while (len-- > start) {
2828+ ret[len - start] = args[len];
2929+ }
3030+3131+ return ret;
3232+}
3333+