Spaces:
Paused
Paused
Include updated package-lock.json (part 25)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- node_modules/lodash-es/LICENSE +47 -0
- node_modules/lodash-es/README.md +10 -0
- node_modules/lodash-es/_DataView.js +7 -0
- node_modules/lodash-es/_Hash.js +32 -0
- node_modules/lodash-es/_LazyWrapper.js +28 -0
- node_modules/lodash-es/_ListCache.js +32 -0
- node_modules/lodash-es/_LodashWrapper.js +22 -0
- node_modules/lodash-es/_Map.js +7 -0
- node_modules/lodash-es/_MapCache.js +32 -0
- node_modules/lodash-es/_Promise.js +7 -0
- node_modules/lodash-es/_Set.js +7 -0
- node_modules/lodash-es/_SetCache.js +27 -0
- node_modules/lodash-es/_Stack.js +27 -0
- node_modules/lodash-es/_Symbol.js +6 -0
- node_modules/lodash-es/_Uint8Array.js +6 -0
- node_modules/lodash-es/_WeakMap.js +7 -0
- node_modules/lodash-es/_addMapEntry.js +15 -0
- node_modules/lodash-es/_addSetEntry.js +15 -0
- node_modules/lodash-es/_apply.js +21 -0
- node_modules/lodash-es/_arrayAggregator.js +22 -0
- node_modules/lodash-es/_arrayEach.js +22 -0
- node_modules/lodash-es/_arrayEachRight.js +21 -0
- node_modules/lodash-es/_arrayEvery.js +23 -0
- node_modules/lodash-es/_arrayFilter.js +25 -0
- node_modules/lodash-es/_arrayIncludes.js +17 -0
- node_modules/lodash-es/_arrayIncludesWith.js +22 -0
- node_modules/lodash-es/_arrayLikeKeys.js +49 -0
- node_modules/lodash-es/_arrayMap.js +21 -0
- node_modules/lodash-es/_arrayPush.js +20 -0
- node_modules/lodash-es/_arrayReduce.js +26 -0
- node_modules/lodash-es/_arrayReduceRight.js +24 -0
- node_modules/lodash-es/_arraySample.js +15 -0
- node_modules/lodash-es/_arraySampleSize.js +17 -0
- node_modules/lodash-es/_arrayShuffle.js +15 -0
- node_modules/lodash-es/_arraySome.js +23 -0
- node_modules/lodash-es/_asciiSize.js +12 -0
- node_modules/lodash-es/_asciiToArray.js +12 -0
- node_modules/lodash-es/_asciiWords.js +15 -0
- node_modules/lodash-es/_assignMergeValue.js +20 -0
- node_modules/lodash-es/_assignValue.js +28 -0
- node_modules/lodash-es/_assocIndexOf.js +21 -0
- node_modules/lodash-es/_baseAggregator.js +21 -0
- node_modules/lodash-es/_baseAssign.js +17 -0
- node_modules/lodash-es/_baseAssignIn.js +17 -0
- node_modules/lodash-es/_baseAssignValue.js +25 -0
- node_modules/lodash-es/_baseAt.js +23 -0
- node_modules/lodash-es/_baseClamp.js +22 -0
- node_modules/lodash-es/_baseClone.js +166 -0
- node_modules/lodash-es/_baseConforms.js +18 -0
- node_modules/lodash-es/_baseConformsTo.js +27 -0
node_modules/lodash-es/LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
| 2 |
+
|
| 3 |
+
Based on Underscore.js, copyright Jeremy Ashkenas,
|
| 4 |
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
| 5 |
+
|
| 6 |
+
This software consists of voluntary contributions made by many
|
| 7 |
+
individuals. For exact contribution history, see the revision history
|
| 8 |
+
available at https://github.com/lodash/lodash
|
| 9 |
+
|
| 10 |
+
The following license applies to all parts of this software except as
|
| 11 |
+
documented below:
|
| 12 |
+
|
| 13 |
+
====
|
| 14 |
+
|
| 15 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 16 |
+
a copy of this software and associated documentation files (the
|
| 17 |
+
"Software"), to deal in the Software without restriction, including
|
| 18 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 19 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 20 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 21 |
+
the following conditions:
|
| 22 |
+
|
| 23 |
+
The above copyright notice and this permission notice shall be
|
| 24 |
+
included in all copies or substantial portions of the Software.
|
| 25 |
+
|
| 26 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 27 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 28 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 29 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
| 30 |
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
| 31 |
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
| 32 |
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 33 |
+
|
| 34 |
+
====
|
| 35 |
+
|
| 36 |
+
Copyright and related rights for sample code are waived via CC0. Sample
|
| 37 |
+
code is defined as all source code displayed within the prose of the
|
| 38 |
+
documentation.
|
| 39 |
+
|
| 40 |
+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
| 41 |
+
|
| 42 |
+
====
|
| 43 |
+
|
| 44 |
+
Files located in the node_modules and vendor directories are externally
|
| 45 |
+
maintained libraries used by this software which have their own
|
| 46 |
+
licenses; we recommend you read them, as their terms may differ from the
|
| 47 |
+
terms above.
|
node_modules/lodash-es/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# lodash-es v4.18.1
|
| 2 |
+
|
| 3 |
+
The [Lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules.
|
| 4 |
+
|
| 5 |
+
Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli):
|
| 6 |
+
```shell
|
| 7 |
+
$ lodash modularize exports=es -o ./
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
See the [package source](https://github.com/lodash/lodash/tree/4.18.1-es) for more details.
|
node_modules/lodash-es/_DataView.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import getNative from './_getNative.js';
|
| 2 |
+
import root from './_root.js';
|
| 3 |
+
|
| 4 |
+
/* Built-in method references that are verified to be native. */
|
| 5 |
+
var DataView = getNative(root, 'DataView');
|
| 6 |
+
|
| 7 |
+
export default DataView;
|
node_modules/lodash-es/_Hash.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import hashClear from './_hashClear.js';
|
| 2 |
+
import hashDelete from './_hashDelete.js';
|
| 3 |
+
import hashGet from './_hashGet.js';
|
| 4 |
+
import hashHas from './_hashHas.js';
|
| 5 |
+
import hashSet from './_hashSet.js';
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Creates a hash object.
|
| 9 |
+
*
|
| 10 |
+
* @private
|
| 11 |
+
* @constructor
|
| 12 |
+
* @param {Array} [entries] The key-value pairs to cache.
|
| 13 |
+
*/
|
| 14 |
+
function Hash(entries) {
|
| 15 |
+
var index = -1,
|
| 16 |
+
length = entries == null ? 0 : entries.length;
|
| 17 |
+
|
| 18 |
+
this.clear();
|
| 19 |
+
while (++index < length) {
|
| 20 |
+
var entry = entries[index];
|
| 21 |
+
this.set(entry[0], entry[1]);
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// Add methods to `Hash`.
|
| 26 |
+
Hash.prototype.clear = hashClear;
|
| 27 |
+
Hash.prototype['delete'] = hashDelete;
|
| 28 |
+
Hash.prototype.get = hashGet;
|
| 29 |
+
Hash.prototype.has = hashHas;
|
| 30 |
+
Hash.prototype.set = hashSet;
|
| 31 |
+
|
| 32 |
+
export default Hash;
|
node_modules/lodash-es/_LazyWrapper.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseCreate from './_baseCreate.js';
|
| 2 |
+
import baseLodash from './_baseLodash.js';
|
| 3 |
+
|
| 4 |
+
/** Used as references for the maximum length and index of an array. */
|
| 5 |
+
var MAX_ARRAY_LENGTH = 4294967295;
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
|
| 9 |
+
*
|
| 10 |
+
* @private
|
| 11 |
+
* @constructor
|
| 12 |
+
* @param {*} value The value to wrap.
|
| 13 |
+
*/
|
| 14 |
+
function LazyWrapper(value) {
|
| 15 |
+
this.__wrapped__ = value;
|
| 16 |
+
this.__actions__ = [];
|
| 17 |
+
this.__dir__ = 1;
|
| 18 |
+
this.__filtered__ = false;
|
| 19 |
+
this.__iteratees__ = [];
|
| 20 |
+
this.__takeCount__ = MAX_ARRAY_LENGTH;
|
| 21 |
+
this.__views__ = [];
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
// Ensure `LazyWrapper` is an instance of `baseLodash`.
|
| 25 |
+
LazyWrapper.prototype = baseCreate(baseLodash.prototype);
|
| 26 |
+
LazyWrapper.prototype.constructor = LazyWrapper;
|
| 27 |
+
|
| 28 |
+
export default LazyWrapper;
|
node_modules/lodash-es/_ListCache.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import listCacheClear from './_listCacheClear.js';
|
| 2 |
+
import listCacheDelete from './_listCacheDelete.js';
|
| 3 |
+
import listCacheGet from './_listCacheGet.js';
|
| 4 |
+
import listCacheHas from './_listCacheHas.js';
|
| 5 |
+
import listCacheSet from './_listCacheSet.js';
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Creates an list cache object.
|
| 9 |
+
*
|
| 10 |
+
* @private
|
| 11 |
+
* @constructor
|
| 12 |
+
* @param {Array} [entries] The key-value pairs to cache.
|
| 13 |
+
*/
|
| 14 |
+
function ListCache(entries) {
|
| 15 |
+
var index = -1,
|
| 16 |
+
length = entries == null ? 0 : entries.length;
|
| 17 |
+
|
| 18 |
+
this.clear();
|
| 19 |
+
while (++index < length) {
|
| 20 |
+
var entry = entries[index];
|
| 21 |
+
this.set(entry[0], entry[1]);
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// Add methods to `ListCache`.
|
| 26 |
+
ListCache.prototype.clear = listCacheClear;
|
| 27 |
+
ListCache.prototype['delete'] = listCacheDelete;
|
| 28 |
+
ListCache.prototype.get = listCacheGet;
|
| 29 |
+
ListCache.prototype.has = listCacheHas;
|
| 30 |
+
ListCache.prototype.set = listCacheSet;
|
| 31 |
+
|
| 32 |
+
export default ListCache;
|
node_modules/lodash-es/_LodashWrapper.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseCreate from './_baseCreate.js';
|
| 2 |
+
import baseLodash from './_baseLodash.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* The base constructor for creating `lodash` wrapper objects.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {*} value The value to wrap.
|
| 9 |
+
* @param {boolean} [chainAll] Enable explicit method chain sequences.
|
| 10 |
+
*/
|
| 11 |
+
function LodashWrapper(value, chainAll) {
|
| 12 |
+
this.__wrapped__ = value;
|
| 13 |
+
this.__actions__ = [];
|
| 14 |
+
this.__chain__ = !!chainAll;
|
| 15 |
+
this.__index__ = 0;
|
| 16 |
+
this.__values__ = undefined;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
LodashWrapper.prototype = baseCreate(baseLodash.prototype);
|
| 20 |
+
LodashWrapper.prototype.constructor = LodashWrapper;
|
| 21 |
+
|
| 22 |
+
export default LodashWrapper;
|
node_modules/lodash-es/_Map.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import getNative from './_getNative.js';
|
| 2 |
+
import root from './_root.js';
|
| 3 |
+
|
| 4 |
+
/* Built-in method references that are verified to be native. */
|
| 5 |
+
var Map = getNative(root, 'Map');
|
| 6 |
+
|
| 7 |
+
export default Map;
|
node_modules/lodash-es/_MapCache.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import mapCacheClear from './_mapCacheClear.js';
|
| 2 |
+
import mapCacheDelete from './_mapCacheDelete.js';
|
| 3 |
+
import mapCacheGet from './_mapCacheGet.js';
|
| 4 |
+
import mapCacheHas from './_mapCacheHas.js';
|
| 5 |
+
import mapCacheSet from './_mapCacheSet.js';
|
| 6 |
+
|
| 7 |
+
/**
|
| 8 |
+
* Creates a map cache object to store key-value pairs.
|
| 9 |
+
*
|
| 10 |
+
* @private
|
| 11 |
+
* @constructor
|
| 12 |
+
* @param {Array} [entries] The key-value pairs to cache.
|
| 13 |
+
*/
|
| 14 |
+
function MapCache(entries) {
|
| 15 |
+
var index = -1,
|
| 16 |
+
length = entries == null ? 0 : entries.length;
|
| 17 |
+
|
| 18 |
+
this.clear();
|
| 19 |
+
while (++index < length) {
|
| 20 |
+
var entry = entries[index];
|
| 21 |
+
this.set(entry[0], entry[1]);
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
// Add methods to `MapCache`.
|
| 26 |
+
MapCache.prototype.clear = mapCacheClear;
|
| 27 |
+
MapCache.prototype['delete'] = mapCacheDelete;
|
| 28 |
+
MapCache.prototype.get = mapCacheGet;
|
| 29 |
+
MapCache.prototype.has = mapCacheHas;
|
| 30 |
+
MapCache.prototype.set = mapCacheSet;
|
| 31 |
+
|
| 32 |
+
export default MapCache;
|
node_modules/lodash-es/_Promise.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import getNative from './_getNative.js';
|
| 2 |
+
import root from './_root.js';
|
| 3 |
+
|
| 4 |
+
/* Built-in method references that are verified to be native. */
|
| 5 |
+
var Promise = getNative(root, 'Promise');
|
| 6 |
+
|
| 7 |
+
export default Promise;
|
node_modules/lodash-es/_Set.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import getNative from './_getNative.js';
|
| 2 |
+
import root from './_root.js';
|
| 3 |
+
|
| 4 |
+
/* Built-in method references that are verified to be native. */
|
| 5 |
+
var Set = getNative(root, 'Set');
|
| 6 |
+
|
| 7 |
+
export default Set;
|
node_modules/lodash-es/_SetCache.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import MapCache from './_MapCache.js';
|
| 2 |
+
import setCacheAdd from './_setCacheAdd.js';
|
| 3 |
+
import setCacheHas from './_setCacheHas.js';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
*
|
| 7 |
+
* Creates an array cache object to store unique values.
|
| 8 |
+
*
|
| 9 |
+
* @private
|
| 10 |
+
* @constructor
|
| 11 |
+
* @param {Array} [values] The values to cache.
|
| 12 |
+
*/
|
| 13 |
+
function SetCache(values) {
|
| 14 |
+
var index = -1,
|
| 15 |
+
length = values == null ? 0 : values.length;
|
| 16 |
+
|
| 17 |
+
this.__data__ = new MapCache;
|
| 18 |
+
while (++index < length) {
|
| 19 |
+
this.add(values[index]);
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// Add methods to `SetCache`.
|
| 24 |
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
| 25 |
+
SetCache.prototype.has = setCacheHas;
|
| 26 |
+
|
| 27 |
+
export default SetCache;
|
node_modules/lodash-es/_Stack.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import ListCache from './_ListCache.js';
|
| 2 |
+
import stackClear from './_stackClear.js';
|
| 3 |
+
import stackDelete from './_stackDelete.js';
|
| 4 |
+
import stackGet from './_stackGet.js';
|
| 5 |
+
import stackHas from './_stackHas.js';
|
| 6 |
+
import stackSet from './_stackSet.js';
|
| 7 |
+
|
| 8 |
+
/**
|
| 9 |
+
* Creates a stack cache object to store key-value pairs.
|
| 10 |
+
*
|
| 11 |
+
* @private
|
| 12 |
+
* @constructor
|
| 13 |
+
* @param {Array} [entries] The key-value pairs to cache.
|
| 14 |
+
*/
|
| 15 |
+
function Stack(entries) {
|
| 16 |
+
var data = this.__data__ = new ListCache(entries);
|
| 17 |
+
this.size = data.size;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
// Add methods to `Stack`.
|
| 21 |
+
Stack.prototype.clear = stackClear;
|
| 22 |
+
Stack.prototype['delete'] = stackDelete;
|
| 23 |
+
Stack.prototype.get = stackGet;
|
| 24 |
+
Stack.prototype.has = stackHas;
|
| 25 |
+
Stack.prototype.set = stackSet;
|
| 26 |
+
|
| 27 |
+
export default Stack;
|
node_modules/lodash-es/_Symbol.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import root from './_root.js';
|
| 2 |
+
|
| 3 |
+
/** Built-in value references. */
|
| 4 |
+
var Symbol = root.Symbol;
|
| 5 |
+
|
| 6 |
+
export default Symbol;
|
node_modules/lodash-es/_Uint8Array.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import root from './_root.js';
|
| 2 |
+
|
| 3 |
+
/** Built-in value references. */
|
| 4 |
+
var Uint8Array = root.Uint8Array;
|
| 5 |
+
|
| 6 |
+
export default Uint8Array;
|
node_modules/lodash-es/_WeakMap.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import getNative from './_getNative.js';
|
| 2 |
+
import root from './_root.js';
|
| 3 |
+
|
| 4 |
+
/* Built-in method references that are verified to be native. */
|
| 5 |
+
var WeakMap = getNative(root, 'WeakMap');
|
| 6 |
+
|
| 7 |
+
export default WeakMap;
|
node_modules/lodash-es/_addMapEntry.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Adds the key-value `pair` to `map`.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Object} map The map to modify.
|
| 6 |
+
* @param {Array} pair The key-value pair to add.
|
| 7 |
+
* @returns {Object} Returns `map`.
|
| 8 |
+
*/
|
| 9 |
+
function addMapEntry(map, pair) {
|
| 10 |
+
// Don't return `map.set` because it's not chainable in IE 11.
|
| 11 |
+
map.set(pair[0], pair[1]);
|
| 12 |
+
return map;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default addMapEntry;
|
node_modules/lodash-es/_addSetEntry.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Adds `value` to `set`.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Object} set The set to modify.
|
| 6 |
+
* @param {*} value The value to add.
|
| 7 |
+
* @returns {Object} Returns `set`.
|
| 8 |
+
*/
|
| 9 |
+
function addSetEntry(set, value) {
|
| 10 |
+
// Don't return `set.add` because it's not chainable in IE 11.
|
| 11 |
+
set.add(value);
|
| 12 |
+
return set;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default addSetEntry;
|
node_modules/lodash-es/_apply.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
| 3 |
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Function} func The function to invoke.
|
| 7 |
+
* @param {*} thisArg The `this` binding of `func`.
|
| 8 |
+
* @param {Array} args The arguments to invoke `func` with.
|
| 9 |
+
* @returns {*} Returns the result of `func`.
|
| 10 |
+
*/
|
| 11 |
+
function apply(func, thisArg, args) {
|
| 12 |
+
switch (args.length) {
|
| 13 |
+
case 0: return func.call(thisArg);
|
| 14 |
+
case 1: return func.call(thisArg, args[0]);
|
| 15 |
+
case 2: return func.call(thisArg, args[0], args[1]);
|
| 16 |
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
| 17 |
+
}
|
| 18 |
+
return func.apply(thisArg, args);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export default apply;
|
node_modules/lodash-es/_arrayAggregator.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `baseAggregator` for arrays.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Array} [array] The array to iterate over.
|
| 6 |
+
* @param {Function} setter The function to set `accumulator` values.
|
| 7 |
+
* @param {Function} iteratee The iteratee to transform keys.
|
| 8 |
+
* @param {Object} accumulator The initial aggregated object.
|
| 9 |
+
* @returns {Function} Returns `accumulator`.
|
| 10 |
+
*/
|
| 11 |
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
| 12 |
+
var index = -1,
|
| 13 |
+
length = array == null ? 0 : array.length;
|
| 14 |
+
|
| 15 |
+
while (++index < length) {
|
| 16 |
+
var value = array[index];
|
| 17 |
+
setter(accumulator, value, iteratee(value), array);
|
| 18 |
+
}
|
| 19 |
+
return accumulator;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
export default arrayAggregator;
|
node_modules/lodash-es/_arrayEach.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.forEach` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} iteratee The function invoked per iteration.
|
| 8 |
+
* @returns {Array} Returns `array`.
|
| 9 |
+
*/
|
| 10 |
+
function arrayEach(array, iteratee) {
|
| 11 |
+
var index = -1,
|
| 12 |
+
length = array == null ? 0 : array.length;
|
| 13 |
+
|
| 14 |
+
while (++index < length) {
|
| 15 |
+
if (iteratee(array[index], index, array) === false) {
|
| 16 |
+
break;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
return array;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
export default arrayEach;
|
node_modules/lodash-es/_arrayEachRight.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.forEachRight` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} iteratee The function invoked per iteration.
|
| 8 |
+
* @returns {Array} Returns `array`.
|
| 9 |
+
*/
|
| 10 |
+
function arrayEachRight(array, iteratee) {
|
| 11 |
+
var length = array == null ? 0 : array.length;
|
| 12 |
+
|
| 13 |
+
while (length--) {
|
| 14 |
+
if (iteratee(array[length], length, array) === false) {
|
| 15 |
+
break;
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
return array;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export default arrayEachRight;
|
node_modules/lodash-es/_arrayEvery.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.every` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} predicate The function invoked per iteration.
|
| 8 |
+
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
| 9 |
+
* else `false`.
|
| 10 |
+
*/
|
| 11 |
+
function arrayEvery(array, predicate) {
|
| 12 |
+
var index = -1,
|
| 13 |
+
length = array == null ? 0 : array.length;
|
| 14 |
+
|
| 15 |
+
while (++index < length) {
|
| 16 |
+
if (!predicate(array[index], index, array)) {
|
| 17 |
+
return false;
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
return true;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export default arrayEvery;
|
node_modules/lodash-es/_arrayFilter.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.filter` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} predicate The function invoked per iteration.
|
| 8 |
+
* @returns {Array} Returns the new filtered array.
|
| 9 |
+
*/
|
| 10 |
+
function arrayFilter(array, predicate) {
|
| 11 |
+
var index = -1,
|
| 12 |
+
length = array == null ? 0 : array.length,
|
| 13 |
+
resIndex = 0,
|
| 14 |
+
result = [];
|
| 15 |
+
|
| 16 |
+
while (++index < length) {
|
| 17 |
+
var value = array[index];
|
| 18 |
+
if (predicate(value, index, array)) {
|
| 19 |
+
result[resIndex++] = value;
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
return result;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
export default arrayFilter;
|
node_modules/lodash-es/_arrayIncludes.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseIndexOf from './_baseIndexOf.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* A specialized version of `_.includes` for arrays without support for
|
| 5 |
+
* specifying an index to search from.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {Array} [array] The array to inspect.
|
| 9 |
+
* @param {*} target The value to search for.
|
| 10 |
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
| 11 |
+
*/
|
| 12 |
+
function arrayIncludes(array, value) {
|
| 13 |
+
var length = array == null ? 0 : array.length;
|
| 14 |
+
return !!length && baseIndexOf(array, value, 0) > -1;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
export default arrayIncludes;
|
node_modules/lodash-es/_arrayIncludesWith.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* This function is like `arrayIncludes` except that it accepts a comparator.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Array} [array] The array to inspect.
|
| 6 |
+
* @param {*} target The value to search for.
|
| 7 |
+
* @param {Function} comparator The comparator invoked per element.
|
| 8 |
+
* @returns {boolean} Returns `true` if `target` is found, else `false`.
|
| 9 |
+
*/
|
| 10 |
+
function arrayIncludesWith(array, value, comparator) {
|
| 11 |
+
var index = -1,
|
| 12 |
+
length = array == null ? 0 : array.length;
|
| 13 |
+
|
| 14 |
+
while (++index < length) {
|
| 15 |
+
if (comparator(value, array[index])) {
|
| 16 |
+
return true;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
return false;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
export default arrayIncludesWith;
|
node_modules/lodash-es/_arrayLikeKeys.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseTimes from './_baseTimes.js';
|
| 2 |
+
import isArguments from './isArguments.js';
|
| 3 |
+
import isArray from './isArray.js';
|
| 4 |
+
import isBuffer from './isBuffer.js';
|
| 5 |
+
import isIndex from './_isIndex.js';
|
| 6 |
+
import isTypedArray from './isTypedArray.js';
|
| 7 |
+
|
| 8 |
+
/** Used for built-in method references. */
|
| 9 |
+
var objectProto = Object.prototype;
|
| 10 |
+
|
| 11 |
+
/** Used to check objects for own properties. */
|
| 12 |
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
| 13 |
+
|
| 14 |
+
/**
|
| 15 |
+
* Creates an array of the enumerable property names of the array-like `value`.
|
| 16 |
+
*
|
| 17 |
+
* @private
|
| 18 |
+
* @param {*} value The value to query.
|
| 19 |
+
* @param {boolean} inherited Specify returning inherited property names.
|
| 20 |
+
* @returns {Array} Returns the array of property names.
|
| 21 |
+
*/
|
| 22 |
+
function arrayLikeKeys(value, inherited) {
|
| 23 |
+
var isArr = isArray(value),
|
| 24 |
+
isArg = !isArr && isArguments(value),
|
| 25 |
+
isBuff = !isArr && !isArg && isBuffer(value),
|
| 26 |
+
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
| 27 |
+
skipIndexes = isArr || isArg || isBuff || isType,
|
| 28 |
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
| 29 |
+
length = result.length;
|
| 30 |
+
|
| 31 |
+
for (var key in value) {
|
| 32 |
+
if ((inherited || hasOwnProperty.call(value, key)) &&
|
| 33 |
+
!(skipIndexes && (
|
| 34 |
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
| 35 |
+
key == 'length' ||
|
| 36 |
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
| 37 |
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
| 38 |
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
| 39 |
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
| 40 |
+
// Skip index properties.
|
| 41 |
+
isIndex(key, length)
|
| 42 |
+
))) {
|
| 43 |
+
result.push(key);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
return result;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
export default arrayLikeKeys;
|
node_modules/lodash-es/_arrayMap.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.map` for arrays without support for iteratee
|
| 3 |
+
* shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} iteratee The function invoked per iteration.
|
| 8 |
+
* @returns {Array} Returns the new mapped array.
|
| 9 |
+
*/
|
| 10 |
+
function arrayMap(array, iteratee) {
|
| 11 |
+
var index = -1,
|
| 12 |
+
length = array == null ? 0 : array.length,
|
| 13 |
+
result = Array(length);
|
| 14 |
+
|
| 15 |
+
while (++index < length) {
|
| 16 |
+
result[index] = iteratee(array[index], index, array);
|
| 17 |
+
}
|
| 18 |
+
return result;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export default arrayMap;
|
node_modules/lodash-es/_arrayPush.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Appends the elements of `values` to `array`.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Array} array The array to modify.
|
| 6 |
+
* @param {Array} values The values to append.
|
| 7 |
+
* @returns {Array} Returns `array`.
|
| 8 |
+
*/
|
| 9 |
+
function arrayPush(array, values) {
|
| 10 |
+
var index = -1,
|
| 11 |
+
length = values.length,
|
| 12 |
+
offset = array.length;
|
| 13 |
+
|
| 14 |
+
while (++index < length) {
|
| 15 |
+
array[offset + index] = values[index];
|
| 16 |
+
}
|
| 17 |
+
return array;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export default arrayPush;
|
node_modules/lodash-es/_arrayReduce.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.reduce` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} iteratee The function invoked per iteration.
|
| 8 |
+
* @param {*} [accumulator] The initial value.
|
| 9 |
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
| 10 |
+
* the initial value.
|
| 11 |
+
* @returns {*} Returns the accumulated value.
|
| 12 |
+
*/
|
| 13 |
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
| 14 |
+
var index = -1,
|
| 15 |
+
length = array == null ? 0 : array.length;
|
| 16 |
+
|
| 17 |
+
if (initAccum && length) {
|
| 18 |
+
accumulator = array[++index];
|
| 19 |
+
}
|
| 20 |
+
while (++index < length) {
|
| 21 |
+
accumulator = iteratee(accumulator, array[index], index, array);
|
| 22 |
+
}
|
| 23 |
+
return accumulator;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
export default arrayReduce;
|
node_modules/lodash-es/_arrayReduceRight.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.reduceRight` for arrays without support for
|
| 3 |
+
* iteratee shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} iteratee The function invoked per iteration.
|
| 8 |
+
* @param {*} [accumulator] The initial value.
|
| 9 |
+
* @param {boolean} [initAccum] Specify using the last element of `array` as
|
| 10 |
+
* the initial value.
|
| 11 |
+
* @returns {*} Returns the accumulated value.
|
| 12 |
+
*/
|
| 13 |
+
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
|
| 14 |
+
var length = array == null ? 0 : array.length;
|
| 15 |
+
if (initAccum && length) {
|
| 16 |
+
accumulator = array[--length];
|
| 17 |
+
}
|
| 18 |
+
while (length--) {
|
| 19 |
+
accumulator = iteratee(accumulator, array[length], length, array);
|
| 20 |
+
}
|
| 21 |
+
return accumulator;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
export default arrayReduceRight;
|
node_modules/lodash-es/_arraySample.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseRandom from './_baseRandom.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* A specialized version of `_.sample` for arrays.
|
| 5 |
+
*
|
| 6 |
+
* @private
|
| 7 |
+
* @param {Array} array The array to sample.
|
| 8 |
+
* @returns {*} Returns the random element.
|
| 9 |
+
*/
|
| 10 |
+
function arraySample(array) {
|
| 11 |
+
var length = array.length;
|
| 12 |
+
return length ? array[baseRandom(0, length - 1)] : undefined;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default arraySample;
|
node_modules/lodash-es/_arraySampleSize.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseClamp from './_baseClamp.js';
|
| 2 |
+
import copyArray from './_copyArray.js';
|
| 3 |
+
import shuffleSelf from './_shuffleSelf.js';
|
| 4 |
+
|
| 5 |
+
/**
|
| 6 |
+
* A specialized version of `_.sampleSize` for arrays.
|
| 7 |
+
*
|
| 8 |
+
* @private
|
| 9 |
+
* @param {Array} array The array to sample.
|
| 10 |
+
* @param {number} n The number of elements to sample.
|
| 11 |
+
* @returns {Array} Returns the random elements.
|
| 12 |
+
*/
|
| 13 |
+
function arraySampleSize(array, n) {
|
| 14 |
+
return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
export default arraySampleSize;
|
node_modules/lodash-es/_arrayShuffle.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import copyArray from './_copyArray.js';
|
| 2 |
+
import shuffleSelf from './_shuffleSelf.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* A specialized version of `_.shuffle` for arrays.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {Array} array The array to shuffle.
|
| 9 |
+
* @returns {Array} Returns the new shuffled array.
|
| 10 |
+
*/
|
| 11 |
+
function arrayShuffle(array) {
|
| 12 |
+
return shuffleSelf(copyArray(array));
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default arrayShuffle;
|
node_modules/lodash-es/_arraySome.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* A specialized version of `_.some` for arrays without support for iteratee
|
| 3 |
+
* shorthands.
|
| 4 |
+
*
|
| 5 |
+
* @private
|
| 6 |
+
* @param {Array} [array] The array to iterate over.
|
| 7 |
+
* @param {Function} predicate The function invoked per iteration.
|
| 8 |
+
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
| 9 |
+
* else `false`.
|
| 10 |
+
*/
|
| 11 |
+
function arraySome(array, predicate) {
|
| 12 |
+
var index = -1,
|
| 13 |
+
length = array == null ? 0 : array.length;
|
| 14 |
+
|
| 15 |
+
while (++index < length) {
|
| 16 |
+
if (predicate(array[index], index, array)) {
|
| 17 |
+
return true;
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
return false;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export default arraySome;
|
node_modules/lodash-es/_asciiSize.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseProperty from './_baseProperty.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Gets the size of an ASCII `string`.
|
| 5 |
+
*
|
| 6 |
+
* @private
|
| 7 |
+
* @param {string} string The string inspect.
|
| 8 |
+
* @returns {number} Returns the string size.
|
| 9 |
+
*/
|
| 10 |
+
var asciiSize = baseProperty('length');
|
| 11 |
+
|
| 12 |
+
export default asciiSize;
|
node_modules/lodash-es/_asciiToArray.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Converts an ASCII `string` to an array.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {string} string The string to convert.
|
| 6 |
+
* @returns {Array} Returns the converted array.
|
| 7 |
+
*/
|
| 8 |
+
function asciiToArray(string) {
|
| 9 |
+
return string.split('');
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
export default asciiToArray;
|
node_modules/lodash-es/_asciiWords.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** Used to match words composed of alphanumeric characters. */
|
| 2 |
+
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* Splits an ASCII `string` into an array of its words.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {string} The string to inspect.
|
| 9 |
+
* @returns {Array} Returns the words of `string`.
|
| 10 |
+
*/
|
| 11 |
+
function asciiWords(string) {
|
| 12 |
+
return string.match(reAsciiWord) || [];
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
export default asciiWords;
|
node_modules/lodash-es/_assignMergeValue.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseAssignValue from './_baseAssignValue.js';
|
| 2 |
+
import eq from './eq.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* This function is like `assignValue` except that it doesn't assign
|
| 6 |
+
* `undefined` values.
|
| 7 |
+
*
|
| 8 |
+
* @private
|
| 9 |
+
* @param {Object} object The object to modify.
|
| 10 |
+
* @param {string} key The key of the property to assign.
|
| 11 |
+
* @param {*} value The value to assign.
|
| 12 |
+
*/
|
| 13 |
+
function assignMergeValue(object, key, value) {
|
| 14 |
+
if ((value !== undefined && !eq(object[key], value)) ||
|
| 15 |
+
(value === undefined && !(key in object))) {
|
| 16 |
+
baseAssignValue(object, key, value);
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export default assignMergeValue;
|
node_modules/lodash-es/_assignValue.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseAssignValue from './_baseAssignValue.js';
|
| 2 |
+
import eq from './eq.js';
|
| 3 |
+
|
| 4 |
+
/** Used for built-in method references. */
|
| 5 |
+
var objectProto = Object.prototype;
|
| 6 |
+
|
| 7 |
+
/** Used to check objects for own properties. */
|
| 8 |
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
| 9 |
+
|
| 10 |
+
/**
|
| 11 |
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
| 12 |
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
| 13 |
+
* for equality comparisons.
|
| 14 |
+
*
|
| 15 |
+
* @private
|
| 16 |
+
* @param {Object} object The object to modify.
|
| 17 |
+
* @param {string} key The key of the property to assign.
|
| 18 |
+
* @param {*} value The value to assign.
|
| 19 |
+
*/
|
| 20 |
+
function assignValue(object, key, value) {
|
| 21 |
+
var objValue = object[key];
|
| 22 |
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
|
| 23 |
+
(value === undefined && !(key in object))) {
|
| 24 |
+
baseAssignValue(object, key, value);
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
export default assignValue;
|
node_modules/lodash-es/_assocIndexOf.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import eq from './eq.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
| 5 |
+
*
|
| 6 |
+
* @private
|
| 7 |
+
* @param {Array} array The array to inspect.
|
| 8 |
+
* @param {*} key The key to search for.
|
| 9 |
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
| 10 |
+
*/
|
| 11 |
+
function assocIndexOf(array, key) {
|
| 12 |
+
var length = array.length;
|
| 13 |
+
while (length--) {
|
| 14 |
+
if (eq(array[length][0], key)) {
|
| 15 |
+
return length;
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
return -1;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export default assocIndexOf;
|
node_modules/lodash-es/_baseAggregator.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseEach from './_baseEach.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
| 5 |
+
* by `iteratee` and values set by `setter`.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {Array|Object} collection The collection to iterate over.
|
| 9 |
+
* @param {Function} setter The function to set `accumulator` values.
|
| 10 |
+
* @param {Function} iteratee The iteratee to transform keys.
|
| 11 |
+
* @param {Object} accumulator The initial aggregated object.
|
| 12 |
+
* @returns {Function} Returns `accumulator`.
|
| 13 |
+
*/
|
| 14 |
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
| 15 |
+
baseEach(collection, function(value, key, collection) {
|
| 16 |
+
setter(accumulator, value, iteratee(value), collection);
|
| 17 |
+
});
|
| 18 |
+
return accumulator;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
export default baseAggregator;
|
node_modules/lodash-es/_baseAssign.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import copyObject from './_copyObject.js';
|
| 2 |
+
import keys from './keys.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* The base implementation of `_.assign` without support for multiple sources
|
| 6 |
+
* or `customizer` functions.
|
| 7 |
+
*
|
| 8 |
+
* @private
|
| 9 |
+
* @param {Object} object The destination object.
|
| 10 |
+
* @param {Object} source The source object.
|
| 11 |
+
* @returns {Object} Returns `object`.
|
| 12 |
+
*/
|
| 13 |
+
function baseAssign(object, source) {
|
| 14 |
+
return object && copyObject(source, keys(source), object);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
export default baseAssign;
|
node_modules/lodash-es/_baseAssignIn.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import copyObject from './_copyObject.js';
|
| 2 |
+
import keysIn from './keysIn.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* The base implementation of `_.assignIn` without support for multiple sources
|
| 6 |
+
* or `customizer` functions.
|
| 7 |
+
*
|
| 8 |
+
* @private
|
| 9 |
+
* @param {Object} object The destination object.
|
| 10 |
+
* @param {Object} source The source object.
|
| 11 |
+
* @returns {Object} Returns `object`.
|
| 12 |
+
*/
|
| 13 |
+
function baseAssignIn(object, source) {
|
| 14 |
+
return object && copyObject(source, keysIn(source), object);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
export default baseAssignIn;
|
node_modules/lodash-es/_baseAssignValue.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import defineProperty from './_defineProperty.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
| 5 |
+
* value checks.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {Object} object The object to modify.
|
| 9 |
+
* @param {string} key The key of the property to assign.
|
| 10 |
+
* @param {*} value The value to assign.
|
| 11 |
+
*/
|
| 12 |
+
function baseAssignValue(object, key, value) {
|
| 13 |
+
if (key == '__proto__' && defineProperty) {
|
| 14 |
+
defineProperty(object, key, {
|
| 15 |
+
'configurable': true,
|
| 16 |
+
'enumerable': true,
|
| 17 |
+
'value': value,
|
| 18 |
+
'writable': true
|
| 19 |
+
});
|
| 20 |
+
} else {
|
| 21 |
+
object[key] = value;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
export default baseAssignValue;
|
node_modules/lodash-es/_baseAt.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import get from './get.js';
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* The base implementation of `_.at` without support for individual paths.
|
| 5 |
+
*
|
| 6 |
+
* @private
|
| 7 |
+
* @param {Object} object The object to iterate over.
|
| 8 |
+
* @param {string[]} paths The property paths to pick.
|
| 9 |
+
* @returns {Array} Returns the picked elements.
|
| 10 |
+
*/
|
| 11 |
+
function baseAt(object, paths) {
|
| 12 |
+
var index = -1,
|
| 13 |
+
length = paths.length,
|
| 14 |
+
result = Array(length),
|
| 15 |
+
skip = object == null;
|
| 16 |
+
|
| 17 |
+
while (++index < length) {
|
| 18 |
+
result[index] = skip ? undefined : get(object, paths[index]);
|
| 19 |
+
}
|
| 20 |
+
return result;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export default baseAt;
|
node_modules/lodash-es/_baseClamp.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* The base implementation of `_.clamp` which doesn't coerce arguments.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {number} number The number to clamp.
|
| 6 |
+
* @param {number} [lower] The lower bound.
|
| 7 |
+
* @param {number} upper The upper bound.
|
| 8 |
+
* @returns {number} Returns the clamped number.
|
| 9 |
+
*/
|
| 10 |
+
function baseClamp(number, lower, upper) {
|
| 11 |
+
if (number === number) {
|
| 12 |
+
if (upper !== undefined) {
|
| 13 |
+
number = number <= upper ? number : upper;
|
| 14 |
+
}
|
| 15 |
+
if (lower !== undefined) {
|
| 16 |
+
number = number >= lower ? number : lower;
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
return number;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
export default baseClamp;
|
node_modules/lodash-es/_baseClone.js
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import Stack from './_Stack.js';
|
| 2 |
+
import arrayEach from './_arrayEach.js';
|
| 3 |
+
import assignValue from './_assignValue.js';
|
| 4 |
+
import baseAssign from './_baseAssign.js';
|
| 5 |
+
import baseAssignIn from './_baseAssignIn.js';
|
| 6 |
+
import cloneBuffer from './_cloneBuffer.js';
|
| 7 |
+
import copyArray from './_copyArray.js';
|
| 8 |
+
import copySymbols from './_copySymbols.js';
|
| 9 |
+
import copySymbolsIn from './_copySymbolsIn.js';
|
| 10 |
+
import getAllKeys from './_getAllKeys.js';
|
| 11 |
+
import getAllKeysIn from './_getAllKeysIn.js';
|
| 12 |
+
import getTag from './_getTag.js';
|
| 13 |
+
import initCloneArray from './_initCloneArray.js';
|
| 14 |
+
import initCloneByTag from './_initCloneByTag.js';
|
| 15 |
+
import initCloneObject from './_initCloneObject.js';
|
| 16 |
+
import isArray from './isArray.js';
|
| 17 |
+
import isBuffer from './isBuffer.js';
|
| 18 |
+
import isMap from './isMap.js';
|
| 19 |
+
import isObject from './isObject.js';
|
| 20 |
+
import isSet from './isSet.js';
|
| 21 |
+
import keys from './keys.js';
|
| 22 |
+
import keysIn from './keysIn.js';
|
| 23 |
+
|
| 24 |
+
/** Used to compose bitmasks for cloning. */
|
| 25 |
+
var CLONE_DEEP_FLAG = 1,
|
| 26 |
+
CLONE_FLAT_FLAG = 2,
|
| 27 |
+
CLONE_SYMBOLS_FLAG = 4;
|
| 28 |
+
|
| 29 |
+
/** `Object#toString` result references. */
|
| 30 |
+
var argsTag = '[object Arguments]',
|
| 31 |
+
arrayTag = '[object Array]',
|
| 32 |
+
boolTag = '[object Boolean]',
|
| 33 |
+
dateTag = '[object Date]',
|
| 34 |
+
errorTag = '[object Error]',
|
| 35 |
+
funcTag = '[object Function]',
|
| 36 |
+
genTag = '[object GeneratorFunction]',
|
| 37 |
+
mapTag = '[object Map]',
|
| 38 |
+
numberTag = '[object Number]',
|
| 39 |
+
objectTag = '[object Object]',
|
| 40 |
+
regexpTag = '[object RegExp]',
|
| 41 |
+
setTag = '[object Set]',
|
| 42 |
+
stringTag = '[object String]',
|
| 43 |
+
symbolTag = '[object Symbol]',
|
| 44 |
+
weakMapTag = '[object WeakMap]';
|
| 45 |
+
|
| 46 |
+
var arrayBufferTag = '[object ArrayBuffer]',
|
| 47 |
+
dataViewTag = '[object DataView]',
|
| 48 |
+
float32Tag = '[object Float32Array]',
|
| 49 |
+
float64Tag = '[object Float64Array]',
|
| 50 |
+
int8Tag = '[object Int8Array]',
|
| 51 |
+
int16Tag = '[object Int16Array]',
|
| 52 |
+
int32Tag = '[object Int32Array]',
|
| 53 |
+
uint8Tag = '[object Uint8Array]',
|
| 54 |
+
uint8ClampedTag = '[object Uint8ClampedArray]',
|
| 55 |
+
uint16Tag = '[object Uint16Array]',
|
| 56 |
+
uint32Tag = '[object Uint32Array]';
|
| 57 |
+
|
| 58 |
+
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
| 59 |
+
var cloneableTags = {};
|
| 60 |
+
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
| 61 |
+
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
| 62 |
+
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
| 63 |
+
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
| 64 |
+
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
| 65 |
+
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
| 66 |
+
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
| 67 |
+
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
| 68 |
+
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
| 69 |
+
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
| 70 |
+
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
| 71 |
+
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
| 72 |
+
cloneableTags[weakMapTag] = false;
|
| 73 |
+
|
| 74 |
+
/**
|
| 75 |
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
| 76 |
+
* traversed objects.
|
| 77 |
+
*
|
| 78 |
+
* @private
|
| 79 |
+
* @param {*} value The value to clone.
|
| 80 |
+
* @param {boolean} bitmask The bitmask flags.
|
| 81 |
+
* 1 - Deep clone
|
| 82 |
+
* 2 - Flatten inherited properties
|
| 83 |
+
* 4 - Clone symbols
|
| 84 |
+
* @param {Function} [customizer] The function to customize cloning.
|
| 85 |
+
* @param {string} [key] The key of `value`.
|
| 86 |
+
* @param {Object} [object] The parent object of `value`.
|
| 87 |
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
| 88 |
+
* @returns {*} Returns the cloned value.
|
| 89 |
+
*/
|
| 90 |
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
| 91 |
+
var result,
|
| 92 |
+
isDeep = bitmask & CLONE_DEEP_FLAG,
|
| 93 |
+
isFlat = bitmask & CLONE_FLAT_FLAG,
|
| 94 |
+
isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
| 95 |
+
|
| 96 |
+
if (customizer) {
|
| 97 |
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
| 98 |
+
}
|
| 99 |
+
if (result !== undefined) {
|
| 100 |
+
return result;
|
| 101 |
+
}
|
| 102 |
+
if (!isObject(value)) {
|
| 103 |
+
return value;
|
| 104 |
+
}
|
| 105 |
+
var isArr = isArray(value);
|
| 106 |
+
if (isArr) {
|
| 107 |
+
result = initCloneArray(value);
|
| 108 |
+
if (!isDeep) {
|
| 109 |
+
return copyArray(value, result);
|
| 110 |
+
}
|
| 111 |
+
} else {
|
| 112 |
+
var tag = getTag(value),
|
| 113 |
+
isFunc = tag == funcTag || tag == genTag;
|
| 114 |
+
|
| 115 |
+
if (isBuffer(value)) {
|
| 116 |
+
return cloneBuffer(value, isDeep);
|
| 117 |
+
}
|
| 118 |
+
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
| 119 |
+
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
| 120 |
+
if (!isDeep) {
|
| 121 |
+
return isFlat
|
| 122 |
+
? copySymbolsIn(value, baseAssignIn(result, value))
|
| 123 |
+
: copySymbols(value, baseAssign(result, value));
|
| 124 |
+
}
|
| 125 |
+
} else {
|
| 126 |
+
if (!cloneableTags[tag]) {
|
| 127 |
+
return object ? value : {};
|
| 128 |
+
}
|
| 129 |
+
result = initCloneByTag(value, tag, isDeep);
|
| 130 |
+
}
|
| 131 |
+
}
|
| 132 |
+
// Check for circular references and return its corresponding clone.
|
| 133 |
+
stack || (stack = new Stack);
|
| 134 |
+
var stacked = stack.get(value);
|
| 135 |
+
if (stacked) {
|
| 136 |
+
return stacked;
|
| 137 |
+
}
|
| 138 |
+
stack.set(value, result);
|
| 139 |
+
|
| 140 |
+
if (isSet(value)) {
|
| 141 |
+
value.forEach(function(subValue) {
|
| 142 |
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
| 143 |
+
});
|
| 144 |
+
} else if (isMap(value)) {
|
| 145 |
+
value.forEach(function(subValue, key) {
|
| 146 |
+
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
| 147 |
+
});
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
var keysFunc = isFull
|
| 151 |
+
? (isFlat ? getAllKeysIn : getAllKeys)
|
| 152 |
+
: (isFlat ? keysIn : keys);
|
| 153 |
+
|
| 154 |
+
var props = isArr ? undefined : keysFunc(value);
|
| 155 |
+
arrayEach(props || value, function(subValue, key) {
|
| 156 |
+
if (props) {
|
| 157 |
+
key = subValue;
|
| 158 |
+
subValue = value[key];
|
| 159 |
+
}
|
| 160 |
+
// Recursively populate clone (susceptible to call stack limits).
|
| 161 |
+
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
| 162 |
+
});
|
| 163 |
+
return result;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
export default baseClone;
|
node_modules/lodash-es/_baseConforms.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import baseConformsTo from './_baseConformsTo.js';
|
| 2 |
+
import keys from './keys.js';
|
| 3 |
+
|
| 4 |
+
/**
|
| 5 |
+
* The base implementation of `_.conforms` which doesn't clone `source`.
|
| 6 |
+
*
|
| 7 |
+
* @private
|
| 8 |
+
* @param {Object} source The object of property predicates to conform to.
|
| 9 |
+
* @returns {Function} Returns the new spec function.
|
| 10 |
+
*/
|
| 11 |
+
function baseConforms(source) {
|
| 12 |
+
var props = keys(source);
|
| 13 |
+
return function(object) {
|
| 14 |
+
return baseConformsTo(object, source, props);
|
| 15 |
+
};
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
export default baseConforms;
|
node_modules/lodash-es/_baseConformsTo.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* The base implementation of `_.conformsTo` which accepts `props` to check.
|
| 3 |
+
*
|
| 4 |
+
* @private
|
| 5 |
+
* @param {Object} object The object to inspect.
|
| 6 |
+
* @param {Object} source The object of property predicates to conform to.
|
| 7 |
+
* @returns {boolean} Returns `true` if `object` conforms, else `false`.
|
| 8 |
+
*/
|
| 9 |
+
function baseConformsTo(object, source, props) {
|
| 10 |
+
var length = props.length;
|
| 11 |
+
if (object == null) {
|
| 12 |
+
return !length;
|
| 13 |
+
}
|
| 14 |
+
object = Object(object);
|
| 15 |
+
while (length--) {
|
| 16 |
+
var key = props[length],
|
| 17 |
+
predicate = source[key],
|
| 18 |
+
value = object[key];
|
| 19 |
+
|
| 20 |
+
if ((value === undefined && !(key in object)) || !predicate(value)) {
|
| 21 |
+
return false;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
return true;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
export default baseConformsTo;
|