@xiaonoodles/meetfun-i18n 1.2.16 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FIX_WEBPACK_RESOLUTION.md +245 -245
- package/LICENSE +22 -22
- package/MIGRATION_GUIDE.md +253 -253
- package/README.md +482 -482
- package/TROUBLESHOOTING.md +280 -280
- package/VERIFY_FIX.md +272 -272
- package/VUE2_USAGE.md +170 -170
- package/dist/index.esm.js +40 -16
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +40 -16
- package/dist/index.js.map +1 -1
- package/dist/vue2/index.cjs +2589 -17
- package/dist/vue2/index.cjs.map +1 -1
- package/dist/vue2/index.esm.js +2575 -3
- package/dist/vue2/index.esm.js.map +1 -1
- package/package.json +78 -78
- package/vue2/index.d.ts +3 -3
- package/vue2/index.js +3 -3
- package/vue2/index.mjs +4 -4
- package/vue2/package.json +14 -14
- package/vue2.d.ts +3 -3
- package/vue2.mjs +13 -13
package/dist/vue2/index.esm.js
CHANGED
|
@@ -1,5 +1,2577 @@
|
|
|
1
1
|
import * as VueI18nModule from 'vue-i18n';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Removes all key-value entries from the list cache.
|
|
11
|
+
*
|
|
12
|
+
* @private
|
|
13
|
+
* @name clear
|
|
14
|
+
* @memberOf ListCache
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
function listCacheClear$1() {
|
|
18
|
+
this.__data__ = [];
|
|
19
|
+
this.size = 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var _listCacheClear = listCacheClear$1;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Performs a
|
|
26
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
27
|
+
* comparison between two values to determine if they are equivalent.
|
|
28
|
+
*
|
|
29
|
+
* @static
|
|
30
|
+
* @memberOf _
|
|
31
|
+
* @since 4.0.0
|
|
32
|
+
* @category Lang
|
|
33
|
+
* @param {*} value The value to compare.
|
|
34
|
+
* @param {*} other The other value to compare.
|
|
35
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
36
|
+
* @example
|
|
37
|
+
*
|
|
38
|
+
* var object = { 'a': 1 };
|
|
39
|
+
* var other = { 'a': 1 };
|
|
40
|
+
*
|
|
41
|
+
* _.eq(object, object);
|
|
42
|
+
* // => true
|
|
43
|
+
*
|
|
44
|
+
* _.eq(object, other);
|
|
45
|
+
* // => false
|
|
46
|
+
*
|
|
47
|
+
* _.eq('a', 'a');
|
|
48
|
+
* // => true
|
|
49
|
+
*
|
|
50
|
+
* _.eq('a', Object('a'));
|
|
51
|
+
* // => false
|
|
52
|
+
*
|
|
53
|
+
* _.eq(NaN, NaN);
|
|
54
|
+
* // => true
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
function eq$4(value, other) {
|
|
58
|
+
return value === other || (value !== value && other !== other);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var eq_1 = eq$4;
|
|
62
|
+
|
|
63
|
+
var eq$3 = eq_1;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
67
|
+
*
|
|
68
|
+
* @private
|
|
69
|
+
* @param {Array} array The array to inspect.
|
|
70
|
+
* @param {*} key The key to search for.
|
|
71
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
72
|
+
*/
|
|
73
|
+
function assocIndexOf$4(array, key) {
|
|
74
|
+
var length = array.length;
|
|
75
|
+
while (length--) {
|
|
76
|
+
if (eq$3(array[length][0], key)) {
|
|
77
|
+
return length;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return -1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
84
|
+
|
|
85
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
86
|
+
|
|
87
|
+
/** Used for built-in method references. */
|
|
88
|
+
var arrayProto = Array.prototype;
|
|
89
|
+
|
|
90
|
+
/** Built-in value references. */
|
|
91
|
+
var splice = arrayProto.splice;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Removes `key` and its value from the list cache.
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
* @name delete
|
|
98
|
+
* @memberOf ListCache
|
|
99
|
+
* @param {string} key The key of the value to remove.
|
|
100
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
101
|
+
*/
|
|
102
|
+
function listCacheDelete$1(key) {
|
|
103
|
+
var data = this.__data__,
|
|
104
|
+
index = assocIndexOf$3(data, key);
|
|
105
|
+
|
|
106
|
+
if (index < 0) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
var lastIndex = data.length - 1;
|
|
110
|
+
if (index == lastIndex) {
|
|
111
|
+
data.pop();
|
|
112
|
+
} else {
|
|
113
|
+
splice.call(data, index, 1);
|
|
114
|
+
}
|
|
115
|
+
--this.size;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
120
|
+
|
|
121
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Gets the list cache value for `key`.
|
|
125
|
+
*
|
|
126
|
+
* @private
|
|
127
|
+
* @name get
|
|
128
|
+
* @memberOf ListCache
|
|
129
|
+
* @param {string} key The key of the value to get.
|
|
130
|
+
* @returns {*} Returns the entry value.
|
|
131
|
+
*/
|
|
132
|
+
function listCacheGet$1(key) {
|
|
133
|
+
var data = this.__data__,
|
|
134
|
+
index = assocIndexOf$2(data, key);
|
|
135
|
+
|
|
136
|
+
return index < 0 ? undefined : data[index][1];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
var _listCacheGet = listCacheGet$1;
|
|
140
|
+
|
|
141
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Checks if a list cache value for `key` exists.
|
|
145
|
+
*
|
|
146
|
+
* @private
|
|
147
|
+
* @name has
|
|
148
|
+
* @memberOf ListCache
|
|
149
|
+
* @param {string} key The key of the entry to check.
|
|
150
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
151
|
+
*/
|
|
152
|
+
function listCacheHas$1(key) {
|
|
153
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
var _listCacheHas = listCacheHas$1;
|
|
157
|
+
|
|
158
|
+
var assocIndexOf = _assocIndexOf;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Sets the list cache `key` to `value`.
|
|
162
|
+
*
|
|
163
|
+
* @private
|
|
164
|
+
* @name set
|
|
165
|
+
* @memberOf ListCache
|
|
166
|
+
* @param {string} key The key of the value to set.
|
|
167
|
+
* @param {*} value The value to set.
|
|
168
|
+
* @returns {Object} Returns the list cache instance.
|
|
169
|
+
*/
|
|
170
|
+
function listCacheSet$1(key, value) {
|
|
171
|
+
var data = this.__data__,
|
|
172
|
+
index = assocIndexOf(data, key);
|
|
173
|
+
|
|
174
|
+
if (index < 0) {
|
|
175
|
+
++this.size;
|
|
176
|
+
data.push([key, value]);
|
|
177
|
+
} else {
|
|
178
|
+
data[index][1] = value;
|
|
179
|
+
}
|
|
180
|
+
return this;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
var _listCacheSet = listCacheSet$1;
|
|
184
|
+
|
|
185
|
+
var listCacheClear = _listCacheClear,
|
|
186
|
+
listCacheDelete = _listCacheDelete,
|
|
187
|
+
listCacheGet = _listCacheGet,
|
|
188
|
+
listCacheHas = _listCacheHas,
|
|
189
|
+
listCacheSet = _listCacheSet;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Creates an list cache object.
|
|
193
|
+
*
|
|
194
|
+
* @private
|
|
195
|
+
* @constructor
|
|
196
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
197
|
+
*/
|
|
198
|
+
function ListCache$4(entries) {
|
|
199
|
+
var index = -1,
|
|
200
|
+
length = entries == null ? 0 : entries.length;
|
|
201
|
+
|
|
202
|
+
this.clear();
|
|
203
|
+
while (++index < length) {
|
|
204
|
+
var entry = entries[index];
|
|
205
|
+
this.set(entry[0], entry[1]);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Add methods to `ListCache`.
|
|
210
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
211
|
+
ListCache$4.prototype['delete'] = listCacheDelete;
|
|
212
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
213
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
214
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
215
|
+
|
|
216
|
+
var _ListCache = ListCache$4;
|
|
217
|
+
|
|
218
|
+
var ListCache$3 = _ListCache;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Removes all key-value entries from the stack.
|
|
222
|
+
*
|
|
223
|
+
* @private
|
|
224
|
+
* @name clear
|
|
225
|
+
* @memberOf Stack
|
|
226
|
+
*/
|
|
227
|
+
function stackClear$1() {
|
|
228
|
+
this.__data__ = new ListCache$3;
|
|
229
|
+
this.size = 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
var _stackClear = stackClear$1;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Removes `key` and its value from the stack.
|
|
236
|
+
*
|
|
237
|
+
* @private
|
|
238
|
+
* @name delete
|
|
239
|
+
* @memberOf Stack
|
|
240
|
+
* @param {string} key The key of the value to remove.
|
|
241
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
function stackDelete$1(key) {
|
|
245
|
+
var data = this.__data__,
|
|
246
|
+
result = data['delete'](key);
|
|
247
|
+
|
|
248
|
+
this.size = data.size;
|
|
249
|
+
return result;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
var _stackDelete = stackDelete$1;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Gets the stack value for `key`.
|
|
256
|
+
*
|
|
257
|
+
* @private
|
|
258
|
+
* @name get
|
|
259
|
+
* @memberOf Stack
|
|
260
|
+
* @param {string} key The key of the value to get.
|
|
261
|
+
* @returns {*} Returns the entry value.
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
function stackGet$1(key) {
|
|
265
|
+
return this.__data__.get(key);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
var _stackGet = stackGet$1;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Checks if a stack value for `key` exists.
|
|
272
|
+
*
|
|
273
|
+
* @private
|
|
274
|
+
* @name has
|
|
275
|
+
* @memberOf Stack
|
|
276
|
+
* @param {string} key The key of the entry to check.
|
|
277
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
function stackHas$1(key) {
|
|
281
|
+
return this.__data__.has(key);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
var _stackHas = stackHas$1;
|
|
285
|
+
|
|
286
|
+
/** Detect free variable `global` from Node.js. */
|
|
287
|
+
|
|
288
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
289
|
+
|
|
290
|
+
var _freeGlobal = freeGlobal$1;
|
|
291
|
+
|
|
292
|
+
var freeGlobal = _freeGlobal;
|
|
293
|
+
|
|
294
|
+
/** Detect free variable `self`. */
|
|
295
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
296
|
+
|
|
297
|
+
/** Used as a reference to the global object. */
|
|
298
|
+
var root$4 = freeGlobal || freeSelf || Function('return this')();
|
|
299
|
+
|
|
300
|
+
var _root = root$4;
|
|
301
|
+
|
|
302
|
+
var root$3 = _root;
|
|
303
|
+
|
|
304
|
+
/** Built-in value references. */
|
|
305
|
+
var Symbol$2 = root$3.Symbol;
|
|
306
|
+
|
|
307
|
+
var _Symbol = Symbol$2;
|
|
308
|
+
|
|
309
|
+
var Symbol$1 = _Symbol;
|
|
310
|
+
|
|
311
|
+
/** Used for built-in method references. */
|
|
312
|
+
var objectProto$a = Object.prototype;
|
|
313
|
+
|
|
314
|
+
/** Used to check objects for own properties. */
|
|
315
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Used to resolve the
|
|
319
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
320
|
+
* of values.
|
|
321
|
+
*/
|
|
322
|
+
var nativeObjectToString$1 = objectProto$a.toString;
|
|
323
|
+
|
|
324
|
+
/** Built-in value references. */
|
|
325
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
329
|
+
*
|
|
330
|
+
* @private
|
|
331
|
+
* @param {*} value The value to query.
|
|
332
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
333
|
+
*/
|
|
334
|
+
function getRawTag$1(value) {
|
|
335
|
+
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
336
|
+
tag = value[symToStringTag$1];
|
|
337
|
+
|
|
338
|
+
try {
|
|
339
|
+
value[symToStringTag$1] = undefined;
|
|
340
|
+
var unmasked = true;
|
|
341
|
+
} catch (e) {}
|
|
342
|
+
|
|
343
|
+
var result = nativeObjectToString$1.call(value);
|
|
344
|
+
if (unmasked) {
|
|
345
|
+
if (isOwn) {
|
|
346
|
+
value[symToStringTag$1] = tag;
|
|
347
|
+
} else {
|
|
348
|
+
delete value[symToStringTag$1];
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
return result;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
var _getRawTag = getRawTag$1;
|
|
355
|
+
|
|
356
|
+
/** Used for built-in method references. */
|
|
357
|
+
|
|
358
|
+
var objectProto$9 = Object.prototype;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Used to resolve the
|
|
362
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
363
|
+
* of values.
|
|
364
|
+
*/
|
|
365
|
+
var nativeObjectToString = objectProto$9.toString;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
369
|
+
*
|
|
370
|
+
* @private
|
|
371
|
+
* @param {*} value The value to convert.
|
|
372
|
+
* @returns {string} Returns the converted string.
|
|
373
|
+
*/
|
|
374
|
+
function objectToString$1(value) {
|
|
375
|
+
return nativeObjectToString.call(value);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
var _objectToString = objectToString$1;
|
|
379
|
+
|
|
380
|
+
var Symbol = _Symbol,
|
|
381
|
+
getRawTag = _getRawTag,
|
|
382
|
+
objectToString = _objectToString;
|
|
383
|
+
|
|
384
|
+
/** `Object#toString` result references. */
|
|
385
|
+
var nullTag = '[object Null]',
|
|
386
|
+
undefinedTag = '[object Undefined]';
|
|
387
|
+
|
|
388
|
+
/** Built-in value references. */
|
|
389
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
393
|
+
*
|
|
394
|
+
* @private
|
|
395
|
+
* @param {*} value The value to query.
|
|
396
|
+
* @returns {string} Returns the `toStringTag`.
|
|
397
|
+
*/
|
|
398
|
+
function baseGetTag$4(value) {
|
|
399
|
+
if (value == null) {
|
|
400
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
401
|
+
}
|
|
402
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
403
|
+
? getRawTag(value)
|
|
404
|
+
: objectToString(value);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
var _baseGetTag = baseGetTag$4;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Checks if `value` is the
|
|
411
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
412
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
413
|
+
*
|
|
414
|
+
* @static
|
|
415
|
+
* @memberOf _
|
|
416
|
+
* @since 0.1.0
|
|
417
|
+
* @category Lang
|
|
418
|
+
* @param {*} value The value to check.
|
|
419
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
420
|
+
* @example
|
|
421
|
+
*
|
|
422
|
+
* _.isObject({});
|
|
423
|
+
* // => true
|
|
424
|
+
*
|
|
425
|
+
* _.isObject([1, 2, 3]);
|
|
426
|
+
* // => true
|
|
427
|
+
*
|
|
428
|
+
* _.isObject(_.noop);
|
|
429
|
+
* // => true
|
|
430
|
+
*
|
|
431
|
+
* _.isObject(null);
|
|
432
|
+
* // => false
|
|
433
|
+
*/
|
|
434
|
+
|
|
435
|
+
function isObject$7(value) {
|
|
436
|
+
var type = typeof value;
|
|
437
|
+
return value != null && (type == 'object' || type == 'function');
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
var isObject_1 = isObject$7;
|
|
441
|
+
|
|
442
|
+
var baseGetTag$3 = _baseGetTag,
|
|
443
|
+
isObject$6 = isObject_1;
|
|
444
|
+
|
|
445
|
+
/** `Object#toString` result references. */
|
|
446
|
+
var asyncTag = '[object AsyncFunction]',
|
|
447
|
+
funcTag$1 = '[object Function]',
|
|
448
|
+
genTag = '[object GeneratorFunction]',
|
|
449
|
+
proxyTag = '[object Proxy]';
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Checks if `value` is classified as a `Function` object.
|
|
453
|
+
*
|
|
454
|
+
* @static
|
|
455
|
+
* @memberOf _
|
|
456
|
+
* @since 0.1.0
|
|
457
|
+
* @category Lang
|
|
458
|
+
* @param {*} value The value to check.
|
|
459
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
460
|
+
* @example
|
|
461
|
+
*
|
|
462
|
+
* _.isFunction(_);
|
|
463
|
+
* // => true
|
|
464
|
+
*
|
|
465
|
+
* _.isFunction(/abc/);
|
|
466
|
+
* // => false
|
|
467
|
+
*/
|
|
468
|
+
function isFunction$3(value) {
|
|
469
|
+
if (!isObject$6(value)) {
|
|
470
|
+
return false;
|
|
471
|
+
}
|
|
472
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
473
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
474
|
+
var tag = baseGetTag$3(value);
|
|
475
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
var isFunction_1 = isFunction$3;
|
|
479
|
+
|
|
480
|
+
var root$2 = _root;
|
|
481
|
+
|
|
482
|
+
/** Used to detect overreaching core-js shims. */
|
|
483
|
+
var coreJsData$1 = root$2['__core-js_shared__'];
|
|
484
|
+
|
|
485
|
+
var _coreJsData = coreJsData$1;
|
|
486
|
+
|
|
487
|
+
var coreJsData = _coreJsData;
|
|
488
|
+
|
|
489
|
+
/** Used to detect methods masquerading as native. */
|
|
490
|
+
var maskSrcKey = (function() {
|
|
491
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
492
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
493
|
+
}());
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Checks if `func` has its source masked.
|
|
497
|
+
*
|
|
498
|
+
* @private
|
|
499
|
+
* @param {Function} func The function to check.
|
|
500
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
501
|
+
*/
|
|
502
|
+
function isMasked$1(func) {
|
|
503
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
var _isMasked = isMasked$1;
|
|
507
|
+
|
|
508
|
+
/** Used for built-in method references. */
|
|
509
|
+
|
|
510
|
+
var funcProto$2 = Function.prototype;
|
|
511
|
+
|
|
512
|
+
/** Used to resolve the decompiled source of functions. */
|
|
513
|
+
var funcToString$2 = funcProto$2.toString;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* Converts `func` to its source code.
|
|
517
|
+
*
|
|
518
|
+
* @private
|
|
519
|
+
* @param {Function} func The function to convert.
|
|
520
|
+
* @returns {string} Returns the source code.
|
|
521
|
+
*/
|
|
522
|
+
function toSource$1(func) {
|
|
523
|
+
if (func != null) {
|
|
524
|
+
try {
|
|
525
|
+
return funcToString$2.call(func);
|
|
526
|
+
} catch (e) {}
|
|
527
|
+
try {
|
|
528
|
+
return (func + '');
|
|
529
|
+
} catch (e) {}
|
|
530
|
+
}
|
|
531
|
+
return '';
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
var _toSource = toSource$1;
|
|
535
|
+
|
|
536
|
+
var isFunction$2 = isFunction_1,
|
|
537
|
+
isMasked = _isMasked,
|
|
538
|
+
isObject$5 = isObject_1,
|
|
539
|
+
toSource = _toSource;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Used to match `RegExp`
|
|
543
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
544
|
+
*/
|
|
545
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
546
|
+
|
|
547
|
+
/** Used to detect host constructors (Safari). */
|
|
548
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
549
|
+
|
|
550
|
+
/** Used for built-in method references. */
|
|
551
|
+
var funcProto$1 = Function.prototype,
|
|
552
|
+
objectProto$8 = Object.prototype;
|
|
553
|
+
|
|
554
|
+
/** Used to resolve the decompiled source of functions. */
|
|
555
|
+
var funcToString$1 = funcProto$1.toString;
|
|
556
|
+
|
|
557
|
+
/** Used to check objects for own properties. */
|
|
558
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
559
|
+
|
|
560
|
+
/** Used to detect if a method is native. */
|
|
561
|
+
var reIsNative = RegExp('^' +
|
|
562
|
+
funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
|
|
563
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
564
|
+
);
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
568
|
+
*
|
|
569
|
+
* @private
|
|
570
|
+
* @param {*} value The value to check.
|
|
571
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
572
|
+
* else `false`.
|
|
573
|
+
*/
|
|
574
|
+
function baseIsNative$1(value) {
|
|
575
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
579
|
+
return pattern.test(toSource(value));
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
var _baseIsNative = baseIsNative$1;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Gets the value at `key` of `object`.
|
|
586
|
+
*
|
|
587
|
+
* @private
|
|
588
|
+
* @param {Object} [object] The object to query.
|
|
589
|
+
* @param {string} key The key of the property to get.
|
|
590
|
+
* @returns {*} Returns the property value.
|
|
591
|
+
*/
|
|
592
|
+
|
|
593
|
+
function getValue$1(object, key) {
|
|
594
|
+
return object == null ? undefined : object[key];
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
var _getValue = getValue$1;
|
|
598
|
+
|
|
599
|
+
var baseIsNative = _baseIsNative,
|
|
600
|
+
getValue = _getValue;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Gets the native function at `key` of `object`.
|
|
604
|
+
*
|
|
605
|
+
* @private
|
|
606
|
+
* @param {Object} object The object to query.
|
|
607
|
+
* @param {string} key The key of the method to get.
|
|
608
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
609
|
+
*/
|
|
610
|
+
function getNative$3(object, key) {
|
|
611
|
+
var value = getValue(object, key);
|
|
612
|
+
return baseIsNative(value) ? value : undefined;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
var _getNative = getNative$3;
|
|
616
|
+
|
|
617
|
+
var getNative$2 = _getNative,
|
|
618
|
+
root$1 = _root;
|
|
619
|
+
|
|
620
|
+
/* Built-in method references that are verified to be native. */
|
|
621
|
+
var Map$3 = getNative$2(root$1, 'Map');
|
|
622
|
+
|
|
623
|
+
var _Map = Map$3;
|
|
624
|
+
|
|
625
|
+
var getNative$1 = _getNative;
|
|
626
|
+
|
|
627
|
+
/* Built-in method references that are verified to be native. */
|
|
628
|
+
var nativeCreate$4 = getNative$1(Object, 'create');
|
|
629
|
+
|
|
630
|
+
var _nativeCreate = nativeCreate$4;
|
|
631
|
+
|
|
632
|
+
var nativeCreate$3 = _nativeCreate;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Removes all key-value entries from the hash.
|
|
636
|
+
*
|
|
637
|
+
* @private
|
|
638
|
+
* @name clear
|
|
639
|
+
* @memberOf Hash
|
|
640
|
+
*/
|
|
641
|
+
function hashClear$1() {
|
|
642
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
643
|
+
this.size = 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
var _hashClear = hashClear$1;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Removes `key` and its value from the hash.
|
|
650
|
+
*
|
|
651
|
+
* @private
|
|
652
|
+
* @name delete
|
|
653
|
+
* @memberOf Hash
|
|
654
|
+
* @param {Object} hash The hash to modify.
|
|
655
|
+
* @param {string} key The key of the value to remove.
|
|
656
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
657
|
+
*/
|
|
658
|
+
|
|
659
|
+
function hashDelete$1(key) {
|
|
660
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
661
|
+
this.size -= result ? 1 : 0;
|
|
662
|
+
return result;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
var _hashDelete = hashDelete$1;
|
|
666
|
+
|
|
667
|
+
var nativeCreate$2 = _nativeCreate;
|
|
668
|
+
|
|
669
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
670
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
671
|
+
|
|
672
|
+
/** Used for built-in method references. */
|
|
673
|
+
var objectProto$7 = Object.prototype;
|
|
674
|
+
|
|
675
|
+
/** Used to check objects for own properties. */
|
|
676
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Gets the hash value for `key`.
|
|
680
|
+
*
|
|
681
|
+
* @private
|
|
682
|
+
* @name get
|
|
683
|
+
* @memberOf Hash
|
|
684
|
+
* @param {string} key The key of the value to get.
|
|
685
|
+
* @returns {*} Returns the entry value.
|
|
686
|
+
*/
|
|
687
|
+
function hashGet$1(key) {
|
|
688
|
+
var data = this.__data__;
|
|
689
|
+
if (nativeCreate$2) {
|
|
690
|
+
var result = data[key];
|
|
691
|
+
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
692
|
+
}
|
|
693
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
var _hashGet = hashGet$1;
|
|
697
|
+
|
|
698
|
+
var nativeCreate$1 = _nativeCreate;
|
|
699
|
+
|
|
700
|
+
/** Used for built-in method references. */
|
|
701
|
+
var objectProto$6 = Object.prototype;
|
|
702
|
+
|
|
703
|
+
/** Used to check objects for own properties. */
|
|
704
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Checks if a hash value for `key` exists.
|
|
708
|
+
*
|
|
709
|
+
* @private
|
|
710
|
+
* @name has
|
|
711
|
+
* @memberOf Hash
|
|
712
|
+
* @param {string} key The key of the entry to check.
|
|
713
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
714
|
+
*/
|
|
715
|
+
function hashHas$1(key) {
|
|
716
|
+
var data = this.__data__;
|
|
717
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
var _hashHas = hashHas$1;
|
|
721
|
+
|
|
722
|
+
var nativeCreate = _nativeCreate;
|
|
723
|
+
|
|
724
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
725
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Sets the hash `key` to `value`.
|
|
729
|
+
*
|
|
730
|
+
* @private
|
|
731
|
+
* @name set
|
|
732
|
+
* @memberOf Hash
|
|
733
|
+
* @param {string} key The key of the value to set.
|
|
734
|
+
* @param {*} value The value to set.
|
|
735
|
+
* @returns {Object} Returns the hash instance.
|
|
736
|
+
*/
|
|
737
|
+
function hashSet$1(key, value) {
|
|
738
|
+
var data = this.__data__;
|
|
739
|
+
this.size += this.has(key) ? 0 : 1;
|
|
740
|
+
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
741
|
+
return this;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
var _hashSet = hashSet$1;
|
|
745
|
+
|
|
746
|
+
var hashClear = _hashClear,
|
|
747
|
+
hashDelete = _hashDelete,
|
|
748
|
+
hashGet = _hashGet,
|
|
749
|
+
hashHas = _hashHas,
|
|
750
|
+
hashSet = _hashSet;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Creates a hash object.
|
|
754
|
+
*
|
|
755
|
+
* @private
|
|
756
|
+
* @constructor
|
|
757
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
758
|
+
*/
|
|
759
|
+
function Hash$1(entries) {
|
|
760
|
+
var index = -1,
|
|
761
|
+
length = entries == null ? 0 : entries.length;
|
|
762
|
+
|
|
763
|
+
this.clear();
|
|
764
|
+
while (++index < length) {
|
|
765
|
+
var entry = entries[index];
|
|
766
|
+
this.set(entry[0], entry[1]);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
// Add methods to `Hash`.
|
|
771
|
+
Hash$1.prototype.clear = hashClear;
|
|
772
|
+
Hash$1.prototype['delete'] = hashDelete;
|
|
773
|
+
Hash$1.prototype.get = hashGet;
|
|
774
|
+
Hash$1.prototype.has = hashHas;
|
|
775
|
+
Hash$1.prototype.set = hashSet;
|
|
776
|
+
|
|
777
|
+
var _Hash = Hash$1;
|
|
778
|
+
|
|
779
|
+
var Hash = _Hash,
|
|
780
|
+
ListCache$2 = _ListCache,
|
|
781
|
+
Map$2 = _Map;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Removes all key-value entries from the map.
|
|
785
|
+
*
|
|
786
|
+
* @private
|
|
787
|
+
* @name clear
|
|
788
|
+
* @memberOf MapCache
|
|
789
|
+
*/
|
|
790
|
+
function mapCacheClear$1() {
|
|
791
|
+
this.size = 0;
|
|
792
|
+
this.__data__ = {
|
|
793
|
+
'hash': new Hash,
|
|
794
|
+
'map': new (Map$2 || ListCache$2),
|
|
795
|
+
'string': new Hash
|
|
796
|
+
};
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
803
|
+
*
|
|
804
|
+
* @private
|
|
805
|
+
* @param {*} value The value to check.
|
|
806
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
807
|
+
*/
|
|
808
|
+
|
|
809
|
+
function isKeyable$1(value) {
|
|
810
|
+
var type = typeof value;
|
|
811
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
812
|
+
? (value !== '__proto__')
|
|
813
|
+
: (value === null);
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
var _isKeyable = isKeyable$1;
|
|
817
|
+
|
|
818
|
+
var isKeyable = _isKeyable;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Gets the data for `map`.
|
|
822
|
+
*
|
|
823
|
+
* @private
|
|
824
|
+
* @param {Object} map The map to query.
|
|
825
|
+
* @param {string} key The reference key.
|
|
826
|
+
* @returns {*} Returns the map data.
|
|
827
|
+
*/
|
|
828
|
+
function getMapData$4(map, key) {
|
|
829
|
+
var data = map.__data__;
|
|
830
|
+
return isKeyable(key)
|
|
831
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
832
|
+
: data.map;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
var _getMapData = getMapData$4;
|
|
836
|
+
|
|
837
|
+
var getMapData$3 = _getMapData;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Removes `key` and its value from the map.
|
|
841
|
+
*
|
|
842
|
+
* @private
|
|
843
|
+
* @name delete
|
|
844
|
+
* @memberOf MapCache
|
|
845
|
+
* @param {string} key The key of the value to remove.
|
|
846
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
847
|
+
*/
|
|
848
|
+
function mapCacheDelete$1(key) {
|
|
849
|
+
var result = getMapData$3(this, key)['delete'](key);
|
|
850
|
+
this.size -= result ? 1 : 0;
|
|
851
|
+
return result;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
855
|
+
|
|
856
|
+
var getMapData$2 = _getMapData;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Gets the map value for `key`.
|
|
860
|
+
*
|
|
861
|
+
* @private
|
|
862
|
+
* @name get
|
|
863
|
+
* @memberOf MapCache
|
|
864
|
+
* @param {string} key The key of the value to get.
|
|
865
|
+
* @returns {*} Returns the entry value.
|
|
866
|
+
*/
|
|
867
|
+
function mapCacheGet$1(key) {
|
|
868
|
+
return getMapData$2(this, key).get(key);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
872
|
+
|
|
873
|
+
var getMapData$1 = _getMapData;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Checks if a map value for `key` exists.
|
|
877
|
+
*
|
|
878
|
+
* @private
|
|
879
|
+
* @name has
|
|
880
|
+
* @memberOf MapCache
|
|
881
|
+
* @param {string} key The key of the entry to check.
|
|
882
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
883
|
+
*/
|
|
884
|
+
function mapCacheHas$1(key) {
|
|
885
|
+
return getMapData$1(this, key).has(key);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
889
|
+
|
|
890
|
+
var getMapData = _getMapData;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Sets the map `key` to `value`.
|
|
894
|
+
*
|
|
895
|
+
* @private
|
|
896
|
+
* @name set
|
|
897
|
+
* @memberOf MapCache
|
|
898
|
+
* @param {string} key The key of the value to set.
|
|
899
|
+
* @param {*} value The value to set.
|
|
900
|
+
* @returns {Object} Returns the map cache instance.
|
|
901
|
+
*/
|
|
902
|
+
function mapCacheSet$1(key, value) {
|
|
903
|
+
var data = getMapData(this, key),
|
|
904
|
+
size = data.size;
|
|
905
|
+
|
|
906
|
+
data.set(key, value);
|
|
907
|
+
this.size += data.size == size ? 0 : 1;
|
|
908
|
+
return this;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
912
|
+
|
|
913
|
+
var mapCacheClear = _mapCacheClear,
|
|
914
|
+
mapCacheDelete = _mapCacheDelete,
|
|
915
|
+
mapCacheGet = _mapCacheGet,
|
|
916
|
+
mapCacheHas = _mapCacheHas,
|
|
917
|
+
mapCacheSet = _mapCacheSet;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Creates a map cache object to store key-value pairs.
|
|
921
|
+
*
|
|
922
|
+
* @private
|
|
923
|
+
* @constructor
|
|
924
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
925
|
+
*/
|
|
926
|
+
function MapCache$1(entries) {
|
|
927
|
+
var index = -1,
|
|
928
|
+
length = entries == null ? 0 : entries.length;
|
|
929
|
+
|
|
930
|
+
this.clear();
|
|
931
|
+
while (++index < length) {
|
|
932
|
+
var entry = entries[index];
|
|
933
|
+
this.set(entry[0], entry[1]);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
// Add methods to `MapCache`.
|
|
938
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
939
|
+
MapCache$1.prototype['delete'] = mapCacheDelete;
|
|
940
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
941
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
942
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
943
|
+
|
|
944
|
+
var _MapCache = MapCache$1;
|
|
945
|
+
|
|
946
|
+
var ListCache$1 = _ListCache,
|
|
947
|
+
Map$1 = _Map,
|
|
948
|
+
MapCache = _MapCache;
|
|
949
|
+
|
|
950
|
+
/** Used as the size to enable large array optimizations. */
|
|
951
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* Sets the stack `key` to `value`.
|
|
955
|
+
*
|
|
956
|
+
* @private
|
|
957
|
+
* @name set
|
|
958
|
+
* @memberOf Stack
|
|
959
|
+
* @param {string} key The key of the value to set.
|
|
960
|
+
* @param {*} value The value to set.
|
|
961
|
+
* @returns {Object} Returns the stack cache instance.
|
|
962
|
+
*/
|
|
963
|
+
function stackSet$1(key, value) {
|
|
964
|
+
var data = this.__data__;
|
|
965
|
+
if (data instanceof ListCache$1) {
|
|
966
|
+
var pairs = data.__data__;
|
|
967
|
+
if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
968
|
+
pairs.push([key, value]);
|
|
969
|
+
this.size = ++data.size;
|
|
970
|
+
return this;
|
|
971
|
+
}
|
|
972
|
+
data = this.__data__ = new MapCache(pairs);
|
|
973
|
+
}
|
|
974
|
+
data.set(key, value);
|
|
975
|
+
this.size = data.size;
|
|
976
|
+
return this;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
var _stackSet = stackSet$1;
|
|
980
|
+
|
|
981
|
+
var ListCache = _ListCache,
|
|
982
|
+
stackClear = _stackClear,
|
|
983
|
+
stackDelete = _stackDelete,
|
|
984
|
+
stackGet = _stackGet,
|
|
985
|
+
stackHas = _stackHas,
|
|
986
|
+
stackSet = _stackSet;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Creates a stack cache object to store key-value pairs.
|
|
990
|
+
*
|
|
991
|
+
* @private
|
|
992
|
+
* @constructor
|
|
993
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
994
|
+
*/
|
|
995
|
+
function Stack$1(entries) {
|
|
996
|
+
var data = this.__data__ = new ListCache(entries);
|
|
997
|
+
this.size = data.size;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
// Add methods to `Stack`.
|
|
1001
|
+
Stack$1.prototype.clear = stackClear;
|
|
1002
|
+
Stack$1.prototype['delete'] = stackDelete;
|
|
1003
|
+
Stack$1.prototype.get = stackGet;
|
|
1004
|
+
Stack$1.prototype.has = stackHas;
|
|
1005
|
+
Stack$1.prototype.set = stackSet;
|
|
1006
|
+
|
|
1007
|
+
var _Stack = Stack$1;
|
|
1008
|
+
|
|
1009
|
+
var getNative = _getNative;
|
|
1010
|
+
|
|
1011
|
+
var defineProperty$2 = (function() {
|
|
1012
|
+
try {
|
|
1013
|
+
var func = getNative(Object, 'defineProperty');
|
|
1014
|
+
func({}, '', {});
|
|
1015
|
+
return func;
|
|
1016
|
+
} catch (e) {}
|
|
1017
|
+
}());
|
|
1018
|
+
|
|
1019
|
+
var _defineProperty = defineProperty$2;
|
|
1020
|
+
|
|
1021
|
+
var defineProperty$1 = _defineProperty;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
1025
|
+
* value checks.
|
|
1026
|
+
*
|
|
1027
|
+
* @private
|
|
1028
|
+
* @param {Object} object The object to modify.
|
|
1029
|
+
* @param {string} key The key of the property to assign.
|
|
1030
|
+
* @param {*} value The value to assign.
|
|
1031
|
+
*/
|
|
1032
|
+
function baseAssignValue$3(object, key, value) {
|
|
1033
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
1034
|
+
defineProperty$1(object, key, {
|
|
1035
|
+
'configurable': true,
|
|
1036
|
+
'enumerable': true,
|
|
1037
|
+
'value': value,
|
|
1038
|
+
'writable': true
|
|
1039
|
+
});
|
|
1040
|
+
} else {
|
|
1041
|
+
object[key] = value;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
var _baseAssignValue = baseAssignValue$3;
|
|
1046
|
+
|
|
1047
|
+
var baseAssignValue$2 = _baseAssignValue,
|
|
1048
|
+
eq$2 = eq_1;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* This function is like `assignValue` except that it doesn't assign
|
|
1052
|
+
* `undefined` values.
|
|
1053
|
+
*
|
|
1054
|
+
* @private
|
|
1055
|
+
* @param {Object} object The object to modify.
|
|
1056
|
+
* @param {string} key The key of the property to assign.
|
|
1057
|
+
* @param {*} value The value to assign.
|
|
1058
|
+
*/
|
|
1059
|
+
function assignMergeValue$2(object, key, value) {
|
|
1060
|
+
if ((value !== undefined && !eq$2(object[key], value)) ||
|
|
1061
|
+
(value === undefined && !(key in object))) {
|
|
1062
|
+
baseAssignValue$2(object, key, value);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
var _assignMergeValue = assignMergeValue$2;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
1070
|
+
*
|
|
1071
|
+
* @private
|
|
1072
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1073
|
+
* @returns {Function} Returns the new base function.
|
|
1074
|
+
*/
|
|
1075
|
+
|
|
1076
|
+
function createBaseFor$1(fromRight) {
|
|
1077
|
+
return function(object, iteratee, keysFunc) {
|
|
1078
|
+
var index = -1,
|
|
1079
|
+
iterable = Object(object),
|
|
1080
|
+
props = keysFunc(object),
|
|
1081
|
+
length = props.length;
|
|
1082
|
+
|
|
1083
|
+
while (length--) {
|
|
1084
|
+
var key = props[fromRight ? length : ++index];
|
|
1085
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
1086
|
+
break;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return object;
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
var _createBaseFor = createBaseFor$1;
|
|
1094
|
+
|
|
1095
|
+
var createBaseFor = _createBaseFor;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1099
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1100
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
1101
|
+
*
|
|
1102
|
+
* @private
|
|
1103
|
+
* @param {Object} object The object to iterate over.
|
|
1104
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
1105
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1106
|
+
* @returns {Object} Returns `object`.
|
|
1107
|
+
*/
|
|
1108
|
+
var baseFor$1 = createBaseFor();
|
|
1109
|
+
|
|
1110
|
+
var _baseFor = baseFor$1;
|
|
1111
|
+
|
|
1112
|
+
var _cloneBuffer = {exports: {}};
|
|
1113
|
+
|
|
1114
|
+
_cloneBuffer.exports;
|
|
1115
|
+
|
|
1116
|
+
(function (module, exports) {
|
|
1117
|
+
var root = _root;
|
|
1118
|
+
|
|
1119
|
+
/** Detect free variable `exports`. */
|
|
1120
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
1121
|
+
|
|
1122
|
+
/** Detect free variable `module`. */
|
|
1123
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
1124
|
+
|
|
1125
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1126
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1127
|
+
|
|
1128
|
+
/** Built-in value references. */
|
|
1129
|
+
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
1130
|
+
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Creates a clone of `buffer`.
|
|
1134
|
+
*
|
|
1135
|
+
* @private
|
|
1136
|
+
* @param {Buffer} buffer The buffer to clone.
|
|
1137
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1138
|
+
* @returns {Buffer} Returns the cloned buffer.
|
|
1139
|
+
*/
|
|
1140
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1141
|
+
if (isDeep) {
|
|
1142
|
+
return buffer.slice();
|
|
1143
|
+
}
|
|
1144
|
+
var length = buffer.length,
|
|
1145
|
+
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1146
|
+
|
|
1147
|
+
buffer.copy(result);
|
|
1148
|
+
return result;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
module.exports = cloneBuffer;
|
|
1152
|
+
} (_cloneBuffer, _cloneBuffer.exports));
|
|
1153
|
+
|
|
1154
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
1155
|
+
|
|
1156
|
+
var root = _root;
|
|
1157
|
+
|
|
1158
|
+
/** Built-in value references. */
|
|
1159
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
1160
|
+
|
|
1161
|
+
var _Uint8Array = Uint8Array$1;
|
|
1162
|
+
|
|
1163
|
+
var Uint8Array = _Uint8Array;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Creates a clone of `arrayBuffer`.
|
|
1167
|
+
*
|
|
1168
|
+
* @private
|
|
1169
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1170
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1171
|
+
*/
|
|
1172
|
+
function cloneArrayBuffer$1(arrayBuffer) {
|
|
1173
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1174
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1175
|
+
return result;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
var _cloneArrayBuffer = cloneArrayBuffer$1;
|
|
1179
|
+
|
|
1180
|
+
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Creates a clone of `typedArray`.
|
|
1184
|
+
*
|
|
1185
|
+
* @private
|
|
1186
|
+
* @param {Object} typedArray The typed array to clone.
|
|
1187
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1188
|
+
* @returns {Object} Returns the cloned typed array.
|
|
1189
|
+
*/
|
|
1190
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
1191
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1192
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Copies the values of `source` to `array`.
|
|
1199
|
+
*
|
|
1200
|
+
* @private
|
|
1201
|
+
* @param {Array} source The array to copy values from.
|
|
1202
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
1203
|
+
* @returns {Array} Returns `array`.
|
|
1204
|
+
*/
|
|
1205
|
+
|
|
1206
|
+
function copyArray$1(source, array) {
|
|
1207
|
+
var index = -1,
|
|
1208
|
+
length = source.length;
|
|
1209
|
+
|
|
1210
|
+
array || (array = Array(length));
|
|
1211
|
+
while (++index < length) {
|
|
1212
|
+
array[index] = source[index];
|
|
1213
|
+
}
|
|
1214
|
+
return array;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
var _copyArray = copyArray$1;
|
|
1218
|
+
|
|
1219
|
+
var isObject$4 = isObject_1;
|
|
1220
|
+
|
|
1221
|
+
/** Built-in value references. */
|
|
1222
|
+
var objectCreate = Object.create;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The base implementation of `_.create` without support for assigning
|
|
1226
|
+
* properties to the created object.
|
|
1227
|
+
*
|
|
1228
|
+
* @private
|
|
1229
|
+
* @param {Object} proto The object to inherit from.
|
|
1230
|
+
* @returns {Object} Returns the new object.
|
|
1231
|
+
*/
|
|
1232
|
+
var baseCreate$1 = (function() {
|
|
1233
|
+
function object() {}
|
|
1234
|
+
return function(proto) {
|
|
1235
|
+
if (!isObject$4(proto)) {
|
|
1236
|
+
return {};
|
|
1237
|
+
}
|
|
1238
|
+
if (objectCreate) {
|
|
1239
|
+
return objectCreate(proto);
|
|
1240
|
+
}
|
|
1241
|
+
object.prototype = proto;
|
|
1242
|
+
var result = new object;
|
|
1243
|
+
object.prototype = undefined;
|
|
1244
|
+
return result;
|
|
1245
|
+
};
|
|
1246
|
+
}());
|
|
1247
|
+
|
|
1248
|
+
var _baseCreate = baseCreate$1;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1252
|
+
*
|
|
1253
|
+
* @private
|
|
1254
|
+
* @param {Function} func The function to wrap.
|
|
1255
|
+
* @param {Function} transform The argument transform.
|
|
1256
|
+
* @returns {Function} Returns the new function.
|
|
1257
|
+
*/
|
|
1258
|
+
|
|
1259
|
+
function overArg$1(func, transform) {
|
|
1260
|
+
return function(arg) {
|
|
1261
|
+
return func(transform(arg));
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
var _overArg = overArg$1;
|
|
1266
|
+
|
|
1267
|
+
var overArg = _overArg;
|
|
1268
|
+
|
|
1269
|
+
/** Built-in value references. */
|
|
1270
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
1271
|
+
|
|
1272
|
+
var _getPrototype = getPrototype$2;
|
|
1273
|
+
|
|
1274
|
+
/** Used for built-in method references. */
|
|
1275
|
+
|
|
1276
|
+
var objectProto$5 = Object.prototype;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* Checks if `value` is likely a prototype object.
|
|
1280
|
+
*
|
|
1281
|
+
* @private
|
|
1282
|
+
* @param {*} value The value to check.
|
|
1283
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1284
|
+
*/
|
|
1285
|
+
function isPrototype$2(value) {
|
|
1286
|
+
var Ctor = value && value.constructor,
|
|
1287
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
|
|
1288
|
+
|
|
1289
|
+
return value === proto;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
var _isPrototype = isPrototype$2;
|
|
1293
|
+
|
|
1294
|
+
var baseCreate = _baseCreate,
|
|
1295
|
+
getPrototype$1 = _getPrototype,
|
|
1296
|
+
isPrototype$1 = _isPrototype;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
* Initializes an object clone.
|
|
1300
|
+
*
|
|
1301
|
+
* @private
|
|
1302
|
+
* @param {Object} object The object to clone.
|
|
1303
|
+
* @returns {Object} Returns the initialized clone.
|
|
1304
|
+
*/
|
|
1305
|
+
function initCloneObject$1(object) {
|
|
1306
|
+
return (typeof object.constructor == 'function' && !isPrototype$1(object))
|
|
1307
|
+
? baseCreate(getPrototype$1(object))
|
|
1308
|
+
: {};
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
var _initCloneObject = initCloneObject$1;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1315
|
+
* and has a `typeof` result of "object".
|
|
1316
|
+
*
|
|
1317
|
+
* @static
|
|
1318
|
+
* @memberOf _
|
|
1319
|
+
* @since 4.0.0
|
|
1320
|
+
* @category Lang
|
|
1321
|
+
* @param {*} value The value to check.
|
|
1322
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1323
|
+
* @example
|
|
1324
|
+
*
|
|
1325
|
+
* _.isObjectLike({});
|
|
1326
|
+
* // => true
|
|
1327
|
+
*
|
|
1328
|
+
* _.isObjectLike([1, 2, 3]);
|
|
1329
|
+
* // => true
|
|
1330
|
+
*
|
|
1331
|
+
* _.isObjectLike(_.noop);
|
|
1332
|
+
* // => false
|
|
1333
|
+
*
|
|
1334
|
+
* _.isObjectLike(null);
|
|
1335
|
+
* // => false
|
|
1336
|
+
*/
|
|
1337
|
+
|
|
1338
|
+
function isObjectLike$5(value) {
|
|
1339
|
+
return value != null && typeof value == 'object';
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
1343
|
+
|
|
1344
|
+
var baseGetTag$2 = _baseGetTag,
|
|
1345
|
+
isObjectLike$4 = isObjectLike_1;
|
|
1346
|
+
|
|
1347
|
+
/** `Object#toString` result references. */
|
|
1348
|
+
var argsTag$1 = '[object Arguments]';
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* The base implementation of `_.isArguments`.
|
|
1352
|
+
*
|
|
1353
|
+
* @private
|
|
1354
|
+
* @param {*} value The value to check.
|
|
1355
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1356
|
+
*/
|
|
1357
|
+
function baseIsArguments$1(value) {
|
|
1358
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
1362
|
+
|
|
1363
|
+
var baseIsArguments = _baseIsArguments,
|
|
1364
|
+
isObjectLike$3 = isObjectLike_1;
|
|
1365
|
+
|
|
1366
|
+
/** Used for built-in method references. */
|
|
1367
|
+
var objectProto$4 = Object.prototype;
|
|
1368
|
+
|
|
1369
|
+
/** Used to check objects for own properties. */
|
|
1370
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
1371
|
+
|
|
1372
|
+
/** Built-in value references. */
|
|
1373
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* Checks if `value` is likely an `arguments` object.
|
|
1377
|
+
*
|
|
1378
|
+
* @static
|
|
1379
|
+
* @memberOf _
|
|
1380
|
+
* @since 0.1.0
|
|
1381
|
+
* @category Lang
|
|
1382
|
+
* @param {*} value The value to check.
|
|
1383
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1384
|
+
* else `false`.
|
|
1385
|
+
* @example
|
|
1386
|
+
*
|
|
1387
|
+
* _.isArguments(function() { return arguments; }());
|
|
1388
|
+
* // => true
|
|
1389
|
+
*
|
|
1390
|
+
* _.isArguments([1, 2, 3]);
|
|
1391
|
+
* // => false
|
|
1392
|
+
*/
|
|
1393
|
+
var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
1394
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
1395
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
var isArguments_1 = isArguments$2;
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* Checks if `value` is classified as an `Array` object.
|
|
1402
|
+
*
|
|
1403
|
+
* @static
|
|
1404
|
+
* @memberOf _
|
|
1405
|
+
* @since 0.1.0
|
|
1406
|
+
* @category Lang
|
|
1407
|
+
* @param {*} value The value to check.
|
|
1408
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1409
|
+
* @example
|
|
1410
|
+
*
|
|
1411
|
+
* _.isArray([1, 2, 3]);
|
|
1412
|
+
* // => true
|
|
1413
|
+
*
|
|
1414
|
+
* _.isArray(document.body.children);
|
|
1415
|
+
* // => false
|
|
1416
|
+
*
|
|
1417
|
+
* _.isArray('abc');
|
|
1418
|
+
* // => false
|
|
1419
|
+
*
|
|
1420
|
+
* _.isArray(_.noop);
|
|
1421
|
+
* // => false
|
|
1422
|
+
*/
|
|
1423
|
+
|
|
1424
|
+
var isArray$2 = Array.isArray;
|
|
1425
|
+
|
|
1426
|
+
var isArray_1 = isArray$2;
|
|
1427
|
+
|
|
1428
|
+
/** Used as references for various `Number` constants. */
|
|
1429
|
+
|
|
1430
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Checks if `value` is a valid array-like length.
|
|
1434
|
+
*
|
|
1435
|
+
* **Note:** This method is loosely based on
|
|
1436
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1437
|
+
*
|
|
1438
|
+
* @static
|
|
1439
|
+
* @memberOf _
|
|
1440
|
+
* @since 4.0.0
|
|
1441
|
+
* @category Lang
|
|
1442
|
+
* @param {*} value The value to check.
|
|
1443
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1444
|
+
* @example
|
|
1445
|
+
*
|
|
1446
|
+
* _.isLength(3);
|
|
1447
|
+
* // => true
|
|
1448
|
+
*
|
|
1449
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1450
|
+
* // => false
|
|
1451
|
+
*
|
|
1452
|
+
* _.isLength(Infinity);
|
|
1453
|
+
* // => false
|
|
1454
|
+
*
|
|
1455
|
+
* _.isLength('3');
|
|
1456
|
+
* // => false
|
|
1457
|
+
*/
|
|
1458
|
+
function isLength$2(value) {
|
|
1459
|
+
return typeof value == 'number' &&
|
|
1460
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
var isLength_1 = isLength$2;
|
|
1464
|
+
|
|
1465
|
+
var isFunction$1 = isFunction_1,
|
|
1466
|
+
isLength$1 = isLength_1;
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1470
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1471
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1472
|
+
*
|
|
1473
|
+
* @static
|
|
1474
|
+
* @memberOf _
|
|
1475
|
+
* @since 4.0.0
|
|
1476
|
+
* @category Lang
|
|
1477
|
+
* @param {*} value The value to check.
|
|
1478
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1479
|
+
* @example
|
|
1480
|
+
*
|
|
1481
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1482
|
+
* // => true
|
|
1483
|
+
*
|
|
1484
|
+
* _.isArrayLike(document.body.children);
|
|
1485
|
+
* // => true
|
|
1486
|
+
*
|
|
1487
|
+
* _.isArrayLike('abc');
|
|
1488
|
+
* // => true
|
|
1489
|
+
*
|
|
1490
|
+
* _.isArrayLike(_.noop);
|
|
1491
|
+
* // => false
|
|
1492
|
+
*/
|
|
1493
|
+
function isArrayLike$3(value) {
|
|
1494
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
var isArrayLike_1 = isArrayLike$3;
|
|
1498
|
+
|
|
1499
|
+
var isArrayLike$2 = isArrayLike_1,
|
|
1500
|
+
isObjectLike$2 = isObjectLike_1;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1504
|
+
* is an object.
|
|
1505
|
+
*
|
|
1506
|
+
* @static
|
|
1507
|
+
* @memberOf _
|
|
1508
|
+
* @since 4.0.0
|
|
1509
|
+
* @category Lang
|
|
1510
|
+
* @param {*} value The value to check.
|
|
1511
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1512
|
+
* else `false`.
|
|
1513
|
+
* @example
|
|
1514
|
+
*
|
|
1515
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
1516
|
+
* // => true
|
|
1517
|
+
*
|
|
1518
|
+
* _.isArrayLikeObject(document.body.children);
|
|
1519
|
+
* // => true
|
|
1520
|
+
*
|
|
1521
|
+
* _.isArrayLikeObject('abc');
|
|
1522
|
+
* // => false
|
|
1523
|
+
*
|
|
1524
|
+
* _.isArrayLikeObject(_.noop);
|
|
1525
|
+
* // => false
|
|
1526
|
+
*/
|
|
1527
|
+
function isArrayLikeObject$1(value) {
|
|
1528
|
+
return isObjectLike$2(value) && isArrayLike$2(value);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
1532
|
+
|
|
1533
|
+
var isBuffer$2 = {exports: {}};
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* This method returns `false`.
|
|
1537
|
+
*
|
|
1538
|
+
* @static
|
|
1539
|
+
* @memberOf _
|
|
1540
|
+
* @since 4.13.0
|
|
1541
|
+
* @category Util
|
|
1542
|
+
* @returns {boolean} Returns `false`.
|
|
1543
|
+
* @example
|
|
1544
|
+
*
|
|
1545
|
+
* _.times(2, _.stubFalse);
|
|
1546
|
+
* // => [false, false]
|
|
1547
|
+
*/
|
|
1548
|
+
|
|
1549
|
+
function stubFalse() {
|
|
1550
|
+
return false;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
var stubFalse_1 = stubFalse;
|
|
1554
|
+
|
|
1555
|
+
isBuffer$2.exports;
|
|
1556
|
+
|
|
1557
|
+
(function (module, exports) {
|
|
1558
|
+
var root = _root,
|
|
1559
|
+
stubFalse = stubFalse_1;
|
|
1560
|
+
|
|
1561
|
+
/** Detect free variable `exports`. */
|
|
1562
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
1563
|
+
|
|
1564
|
+
/** Detect free variable `module`. */
|
|
1565
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
1566
|
+
|
|
1567
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1568
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1569
|
+
|
|
1570
|
+
/** Built-in value references. */
|
|
1571
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
1572
|
+
|
|
1573
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1574
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Checks if `value` is a buffer.
|
|
1578
|
+
*
|
|
1579
|
+
* @static
|
|
1580
|
+
* @memberOf _
|
|
1581
|
+
* @since 4.3.0
|
|
1582
|
+
* @category Lang
|
|
1583
|
+
* @param {*} value The value to check.
|
|
1584
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1585
|
+
* @example
|
|
1586
|
+
*
|
|
1587
|
+
* _.isBuffer(new Buffer(2));
|
|
1588
|
+
* // => true
|
|
1589
|
+
*
|
|
1590
|
+
* _.isBuffer(new Uint8Array(2));
|
|
1591
|
+
* // => false
|
|
1592
|
+
*/
|
|
1593
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1594
|
+
|
|
1595
|
+
module.exports = isBuffer;
|
|
1596
|
+
} (isBuffer$2, isBuffer$2.exports));
|
|
1597
|
+
|
|
1598
|
+
var isBufferExports = isBuffer$2.exports;
|
|
1599
|
+
|
|
1600
|
+
var baseGetTag$1 = _baseGetTag,
|
|
1601
|
+
getPrototype = _getPrototype,
|
|
1602
|
+
isObjectLike$1 = isObjectLike_1;
|
|
1603
|
+
|
|
1604
|
+
/** `Object#toString` result references. */
|
|
1605
|
+
var objectTag$1 = '[object Object]';
|
|
1606
|
+
|
|
1607
|
+
/** Used for built-in method references. */
|
|
1608
|
+
var funcProto = Function.prototype,
|
|
1609
|
+
objectProto$3 = Object.prototype;
|
|
1610
|
+
|
|
1611
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1612
|
+
var funcToString = funcProto.toString;
|
|
1613
|
+
|
|
1614
|
+
/** Used to check objects for own properties. */
|
|
1615
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
1616
|
+
|
|
1617
|
+
/** Used to infer the `Object` constructor. */
|
|
1618
|
+
var objectCtorString = funcToString.call(Object);
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
1622
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
1623
|
+
*
|
|
1624
|
+
* @static
|
|
1625
|
+
* @memberOf _
|
|
1626
|
+
* @since 0.8.0
|
|
1627
|
+
* @category Lang
|
|
1628
|
+
* @param {*} value The value to check.
|
|
1629
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
1630
|
+
* @example
|
|
1631
|
+
*
|
|
1632
|
+
* function Foo() {
|
|
1633
|
+
* this.a = 1;
|
|
1634
|
+
* }
|
|
1635
|
+
*
|
|
1636
|
+
* _.isPlainObject(new Foo);
|
|
1637
|
+
* // => false
|
|
1638
|
+
*
|
|
1639
|
+
* _.isPlainObject([1, 2, 3]);
|
|
1640
|
+
* // => false
|
|
1641
|
+
*
|
|
1642
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
1643
|
+
* // => true
|
|
1644
|
+
*
|
|
1645
|
+
* _.isPlainObject(Object.create(null));
|
|
1646
|
+
* // => true
|
|
1647
|
+
*/
|
|
1648
|
+
function isPlainObject$1(value) {
|
|
1649
|
+
if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
|
|
1650
|
+
return false;
|
|
1651
|
+
}
|
|
1652
|
+
var proto = getPrototype(value);
|
|
1653
|
+
if (proto === null) {
|
|
1654
|
+
return true;
|
|
1655
|
+
}
|
|
1656
|
+
var Ctor = hasOwnProperty$3.call(proto, 'constructor') && proto.constructor;
|
|
1657
|
+
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
|
|
1658
|
+
funcToString.call(Ctor) == objectCtorString;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
var isPlainObject_1 = isPlainObject$1;
|
|
1662
|
+
|
|
1663
|
+
var baseGetTag = _baseGetTag,
|
|
1664
|
+
isLength = isLength_1,
|
|
1665
|
+
isObjectLike = isObjectLike_1;
|
|
1666
|
+
|
|
1667
|
+
/** `Object#toString` result references. */
|
|
1668
|
+
var argsTag = '[object Arguments]',
|
|
1669
|
+
arrayTag = '[object Array]',
|
|
1670
|
+
boolTag = '[object Boolean]',
|
|
1671
|
+
dateTag = '[object Date]',
|
|
1672
|
+
errorTag = '[object Error]',
|
|
1673
|
+
funcTag = '[object Function]',
|
|
1674
|
+
mapTag = '[object Map]',
|
|
1675
|
+
numberTag = '[object Number]',
|
|
1676
|
+
objectTag = '[object Object]',
|
|
1677
|
+
regexpTag = '[object RegExp]',
|
|
1678
|
+
setTag = '[object Set]',
|
|
1679
|
+
stringTag = '[object String]',
|
|
1680
|
+
weakMapTag = '[object WeakMap]';
|
|
1681
|
+
|
|
1682
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
1683
|
+
dataViewTag = '[object DataView]',
|
|
1684
|
+
float32Tag = '[object Float32Array]',
|
|
1685
|
+
float64Tag = '[object Float64Array]',
|
|
1686
|
+
int8Tag = '[object Int8Array]',
|
|
1687
|
+
int16Tag = '[object Int16Array]',
|
|
1688
|
+
int32Tag = '[object Int32Array]',
|
|
1689
|
+
uint8Tag = '[object Uint8Array]',
|
|
1690
|
+
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
1691
|
+
uint16Tag = '[object Uint16Array]',
|
|
1692
|
+
uint32Tag = '[object Uint32Array]';
|
|
1693
|
+
|
|
1694
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1695
|
+
var typedArrayTags = {};
|
|
1696
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
1697
|
+
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
1698
|
+
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
1699
|
+
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
1700
|
+
typedArrayTags[uint32Tag] = true;
|
|
1701
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
|
1702
|
+
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
1703
|
+
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
|
1704
|
+
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
1705
|
+
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
|
1706
|
+
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
|
1707
|
+
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
|
1708
|
+
typedArrayTags[weakMapTag] = false;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1712
|
+
*
|
|
1713
|
+
* @private
|
|
1714
|
+
* @param {*} value The value to check.
|
|
1715
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1716
|
+
*/
|
|
1717
|
+
function baseIsTypedArray$1(value) {
|
|
1718
|
+
return isObjectLike(value) &&
|
|
1719
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
1726
|
+
*
|
|
1727
|
+
* @private
|
|
1728
|
+
* @param {Function} func The function to cap arguments for.
|
|
1729
|
+
* @returns {Function} Returns the new capped function.
|
|
1730
|
+
*/
|
|
1731
|
+
|
|
1732
|
+
function baseUnary$1(func) {
|
|
1733
|
+
return function(value) {
|
|
1734
|
+
return func(value);
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
var _baseUnary = baseUnary$1;
|
|
1739
|
+
|
|
1740
|
+
var _nodeUtil = {exports: {}};
|
|
1741
|
+
|
|
1742
|
+
_nodeUtil.exports;
|
|
1743
|
+
|
|
1744
|
+
(function (module, exports) {
|
|
1745
|
+
var freeGlobal = _freeGlobal;
|
|
1746
|
+
|
|
1747
|
+
/** Detect free variable `exports`. */
|
|
1748
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
1749
|
+
|
|
1750
|
+
/** Detect free variable `module`. */
|
|
1751
|
+
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
1752
|
+
|
|
1753
|
+
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1754
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1755
|
+
|
|
1756
|
+
/** Detect free variable `process` from Node.js. */
|
|
1757
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
1758
|
+
|
|
1759
|
+
/** Used to access faster Node.js helpers. */
|
|
1760
|
+
var nodeUtil = (function() {
|
|
1761
|
+
try {
|
|
1762
|
+
// Use `util.types` for Node.js 10+.
|
|
1763
|
+
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
1764
|
+
|
|
1765
|
+
if (types) {
|
|
1766
|
+
return types;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
// Legacy `process.binding('util')` for Node.js < 10.
|
|
1770
|
+
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
1771
|
+
} catch (e) {}
|
|
1772
|
+
}());
|
|
1773
|
+
|
|
1774
|
+
module.exports = nodeUtil;
|
|
1775
|
+
} (_nodeUtil, _nodeUtil.exports));
|
|
1776
|
+
|
|
1777
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
1778
|
+
|
|
1779
|
+
var baseIsTypedArray = _baseIsTypedArray,
|
|
1780
|
+
baseUnary = _baseUnary,
|
|
1781
|
+
nodeUtil = _nodeUtilExports;
|
|
1782
|
+
|
|
1783
|
+
/* Node.js helper references. */
|
|
1784
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Checks if `value` is classified as a typed array.
|
|
1788
|
+
*
|
|
1789
|
+
* @static
|
|
1790
|
+
* @memberOf _
|
|
1791
|
+
* @since 3.0.0
|
|
1792
|
+
* @category Lang
|
|
1793
|
+
* @param {*} value The value to check.
|
|
1794
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1795
|
+
* @example
|
|
1796
|
+
*
|
|
1797
|
+
* _.isTypedArray(new Uint8Array);
|
|
1798
|
+
* // => true
|
|
1799
|
+
*
|
|
1800
|
+
* _.isTypedArray([]);
|
|
1801
|
+
* // => false
|
|
1802
|
+
*/
|
|
1803
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1804
|
+
|
|
1805
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
1809
|
+
*
|
|
1810
|
+
* @private
|
|
1811
|
+
* @param {Object} object The object to query.
|
|
1812
|
+
* @param {string} key The key of the property to get.
|
|
1813
|
+
* @returns {*} Returns the property value.
|
|
1814
|
+
*/
|
|
1815
|
+
|
|
1816
|
+
function safeGet$2(object, key) {
|
|
1817
|
+
if (key === 'constructor' && typeof object[key] === 'function') {
|
|
1818
|
+
return;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
if (key == '__proto__') {
|
|
1822
|
+
return;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
return object[key];
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
var _safeGet = safeGet$2;
|
|
1829
|
+
|
|
1830
|
+
var baseAssignValue$1 = _baseAssignValue,
|
|
1831
|
+
eq$1 = eq_1;
|
|
1832
|
+
|
|
1833
|
+
/** Used for built-in method references. */
|
|
1834
|
+
var objectProto$2 = Object.prototype;
|
|
1835
|
+
|
|
1836
|
+
/** Used to check objects for own properties. */
|
|
1837
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
1841
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1842
|
+
* for equality comparisons.
|
|
1843
|
+
*
|
|
1844
|
+
* @private
|
|
1845
|
+
* @param {Object} object The object to modify.
|
|
1846
|
+
* @param {string} key The key of the property to assign.
|
|
1847
|
+
* @param {*} value The value to assign.
|
|
1848
|
+
*/
|
|
1849
|
+
function assignValue$1(object, key, value) {
|
|
1850
|
+
var objValue = object[key];
|
|
1851
|
+
if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
|
|
1852
|
+
(value === undefined && !(key in object))) {
|
|
1853
|
+
baseAssignValue$1(object, key, value);
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
var _assignValue = assignValue$1;
|
|
1858
|
+
|
|
1859
|
+
var assignValue = _assignValue,
|
|
1860
|
+
baseAssignValue = _baseAssignValue;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Copies properties of `source` to `object`.
|
|
1864
|
+
*
|
|
1865
|
+
* @private
|
|
1866
|
+
* @param {Object} source The object to copy properties from.
|
|
1867
|
+
* @param {Array} props The property identifiers to copy.
|
|
1868
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
1869
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
1870
|
+
* @returns {Object} Returns `object`.
|
|
1871
|
+
*/
|
|
1872
|
+
function copyObject$1(source, props, object, customizer) {
|
|
1873
|
+
var isNew = !object;
|
|
1874
|
+
object || (object = {});
|
|
1875
|
+
|
|
1876
|
+
var index = -1,
|
|
1877
|
+
length = props.length;
|
|
1878
|
+
|
|
1879
|
+
while (++index < length) {
|
|
1880
|
+
var key = props[index];
|
|
1881
|
+
|
|
1882
|
+
var newValue = customizer
|
|
1883
|
+
? customizer(object[key], source[key], key, object, source)
|
|
1884
|
+
: undefined;
|
|
1885
|
+
|
|
1886
|
+
if (newValue === undefined) {
|
|
1887
|
+
newValue = source[key];
|
|
1888
|
+
}
|
|
1889
|
+
if (isNew) {
|
|
1890
|
+
baseAssignValue(object, key, newValue);
|
|
1891
|
+
} else {
|
|
1892
|
+
assignValue(object, key, newValue);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
return object;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
var _copyObject = copyObject$1;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
1902
|
+
* or max array length checks.
|
|
1903
|
+
*
|
|
1904
|
+
* @private
|
|
1905
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
1906
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
1907
|
+
* @returns {Array} Returns the array of results.
|
|
1908
|
+
*/
|
|
1909
|
+
|
|
1910
|
+
function baseTimes$1(n, iteratee) {
|
|
1911
|
+
var index = -1,
|
|
1912
|
+
result = Array(n);
|
|
1913
|
+
|
|
1914
|
+
while (++index < n) {
|
|
1915
|
+
result[index] = iteratee(index);
|
|
1916
|
+
}
|
|
1917
|
+
return result;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
var _baseTimes = baseTimes$1;
|
|
1921
|
+
|
|
1922
|
+
/** Used as references for various `Number` constants. */
|
|
1923
|
+
|
|
1924
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1925
|
+
|
|
1926
|
+
/** Used to detect unsigned integer values. */
|
|
1927
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Checks if `value` is a valid array-like index.
|
|
1931
|
+
*
|
|
1932
|
+
* @private
|
|
1933
|
+
* @param {*} value The value to check.
|
|
1934
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1935
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1936
|
+
*/
|
|
1937
|
+
function isIndex$2(value, length) {
|
|
1938
|
+
var type = typeof value;
|
|
1939
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1940
|
+
|
|
1941
|
+
return !!length &&
|
|
1942
|
+
(type == 'number' ||
|
|
1943
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
1944
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
var _isIndex = isIndex$2;
|
|
1948
|
+
|
|
1949
|
+
var baseTimes = _baseTimes,
|
|
1950
|
+
isArguments$1 = isArguments_1,
|
|
1951
|
+
isArray$1 = isArray_1,
|
|
1952
|
+
isBuffer$1 = isBufferExports,
|
|
1953
|
+
isIndex$1 = _isIndex,
|
|
1954
|
+
isTypedArray$1 = isTypedArray_1;
|
|
1955
|
+
|
|
1956
|
+
/** Used for built-in method references. */
|
|
1957
|
+
var objectProto$1 = Object.prototype;
|
|
1958
|
+
|
|
1959
|
+
/** Used to check objects for own properties. */
|
|
1960
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1964
|
+
*
|
|
1965
|
+
* @private
|
|
1966
|
+
* @param {*} value The value to query.
|
|
1967
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
1968
|
+
* @returns {Array} Returns the array of property names.
|
|
1969
|
+
*/
|
|
1970
|
+
function arrayLikeKeys$1(value, inherited) {
|
|
1971
|
+
var isArr = isArray$1(value),
|
|
1972
|
+
isArg = !isArr && isArguments$1(value),
|
|
1973
|
+
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
1974
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
1975
|
+
skipIndexes = isArr || isArg || isBuff || isType,
|
|
1976
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
1977
|
+
length = result.length;
|
|
1978
|
+
|
|
1979
|
+
for (var key in value) {
|
|
1980
|
+
if ((inherited || hasOwnProperty$1.call(value, key)) &&
|
|
1981
|
+
!(skipIndexes && (
|
|
1982
|
+
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1983
|
+
key == 'length' ||
|
|
1984
|
+
// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1985
|
+
(isBuff && (key == 'offset' || key == 'parent')) ||
|
|
1986
|
+
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1987
|
+
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
1988
|
+
// Skip index properties.
|
|
1989
|
+
isIndex$1(key, length)
|
|
1990
|
+
))) {
|
|
1991
|
+
result.push(key);
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
return result;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* This function is like
|
|
2001
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
2002
|
+
* except that it includes inherited enumerable properties.
|
|
2003
|
+
*
|
|
2004
|
+
* @private
|
|
2005
|
+
* @param {Object} object The object to query.
|
|
2006
|
+
* @returns {Array} Returns the array of property names.
|
|
2007
|
+
*/
|
|
2008
|
+
|
|
2009
|
+
function nativeKeysIn$1(object) {
|
|
2010
|
+
var result = [];
|
|
2011
|
+
if (object != null) {
|
|
2012
|
+
for (var key in Object(object)) {
|
|
2013
|
+
result.push(key);
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
return result;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
2020
|
+
|
|
2021
|
+
var isObject$3 = isObject_1,
|
|
2022
|
+
isPrototype = _isPrototype,
|
|
2023
|
+
nativeKeysIn = _nativeKeysIn;
|
|
2024
|
+
|
|
2025
|
+
/** Used for built-in method references. */
|
|
2026
|
+
var objectProto = Object.prototype;
|
|
2027
|
+
|
|
2028
|
+
/** Used to check objects for own properties. */
|
|
2029
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
2033
|
+
*
|
|
2034
|
+
* @private
|
|
2035
|
+
* @param {Object} object The object to query.
|
|
2036
|
+
* @returns {Array} Returns the array of property names.
|
|
2037
|
+
*/
|
|
2038
|
+
function baseKeysIn$1(object) {
|
|
2039
|
+
if (!isObject$3(object)) {
|
|
2040
|
+
return nativeKeysIn(object);
|
|
2041
|
+
}
|
|
2042
|
+
var isProto = isPrototype(object),
|
|
2043
|
+
result = [];
|
|
2044
|
+
|
|
2045
|
+
for (var key in object) {
|
|
2046
|
+
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
2047
|
+
result.push(key);
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
return result;
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
2054
|
+
|
|
2055
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
2056
|
+
baseKeysIn = _baseKeysIn,
|
|
2057
|
+
isArrayLike$1 = isArrayLike_1;
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
2061
|
+
*
|
|
2062
|
+
* **Note:** Non-object values are coerced to objects.
|
|
2063
|
+
*
|
|
2064
|
+
* @static
|
|
2065
|
+
* @memberOf _
|
|
2066
|
+
* @since 3.0.0
|
|
2067
|
+
* @category Object
|
|
2068
|
+
* @param {Object} object The object to query.
|
|
2069
|
+
* @returns {Array} Returns the array of property names.
|
|
2070
|
+
* @example
|
|
2071
|
+
*
|
|
2072
|
+
* function Foo() {
|
|
2073
|
+
* this.a = 1;
|
|
2074
|
+
* this.b = 2;
|
|
2075
|
+
* }
|
|
2076
|
+
*
|
|
2077
|
+
* Foo.prototype.c = 3;
|
|
2078
|
+
*
|
|
2079
|
+
* _.keysIn(new Foo);
|
|
2080
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2081
|
+
*/
|
|
2082
|
+
function keysIn$2(object) {
|
|
2083
|
+
return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
var keysIn_1 = keysIn$2;
|
|
2087
|
+
|
|
2088
|
+
var copyObject = _copyObject,
|
|
2089
|
+
keysIn$1 = keysIn_1;
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* Converts `value` to a plain object flattening inherited enumerable string
|
|
2093
|
+
* keyed properties of `value` to own properties of the plain object.
|
|
2094
|
+
*
|
|
2095
|
+
* @static
|
|
2096
|
+
* @memberOf _
|
|
2097
|
+
* @since 3.0.0
|
|
2098
|
+
* @category Lang
|
|
2099
|
+
* @param {*} value The value to convert.
|
|
2100
|
+
* @returns {Object} Returns the converted plain object.
|
|
2101
|
+
* @example
|
|
2102
|
+
*
|
|
2103
|
+
* function Foo() {
|
|
2104
|
+
* this.b = 2;
|
|
2105
|
+
* }
|
|
2106
|
+
*
|
|
2107
|
+
* Foo.prototype.c = 3;
|
|
2108
|
+
*
|
|
2109
|
+
* _.assign({ 'a': 1 }, new Foo);
|
|
2110
|
+
* // => { 'a': 1, 'b': 2 }
|
|
2111
|
+
*
|
|
2112
|
+
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
2113
|
+
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
2114
|
+
*/
|
|
2115
|
+
function toPlainObject$1(value) {
|
|
2116
|
+
return copyObject(value, keysIn$1(value));
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
var toPlainObject_1 = toPlainObject$1;
|
|
2120
|
+
|
|
2121
|
+
var assignMergeValue$1 = _assignMergeValue,
|
|
2122
|
+
cloneBuffer = _cloneBufferExports,
|
|
2123
|
+
cloneTypedArray = _cloneTypedArray,
|
|
2124
|
+
copyArray = _copyArray,
|
|
2125
|
+
initCloneObject = _initCloneObject,
|
|
2126
|
+
isArguments = isArguments_1,
|
|
2127
|
+
isArray = isArray_1,
|
|
2128
|
+
isArrayLikeObject = isArrayLikeObject_1,
|
|
2129
|
+
isBuffer = isBufferExports,
|
|
2130
|
+
isFunction = isFunction_1,
|
|
2131
|
+
isObject$2 = isObject_1,
|
|
2132
|
+
isPlainObject = isPlainObject_1,
|
|
2133
|
+
isTypedArray = isTypedArray_1,
|
|
2134
|
+
safeGet$1 = _safeGet,
|
|
2135
|
+
toPlainObject = toPlainObject_1;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
2139
|
+
* deep merges and tracks traversed objects enabling objects with circular
|
|
2140
|
+
* references to be merged.
|
|
2141
|
+
*
|
|
2142
|
+
* @private
|
|
2143
|
+
* @param {Object} object The destination object.
|
|
2144
|
+
* @param {Object} source The source object.
|
|
2145
|
+
* @param {string} key The key of the value to merge.
|
|
2146
|
+
* @param {number} srcIndex The index of `source`.
|
|
2147
|
+
* @param {Function} mergeFunc The function to merge values.
|
|
2148
|
+
* @param {Function} [customizer] The function to customize assigned values.
|
|
2149
|
+
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2150
|
+
* counterparts.
|
|
2151
|
+
*/
|
|
2152
|
+
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2153
|
+
var objValue = safeGet$1(object, key),
|
|
2154
|
+
srcValue = safeGet$1(source, key),
|
|
2155
|
+
stacked = stack.get(srcValue);
|
|
2156
|
+
|
|
2157
|
+
if (stacked) {
|
|
2158
|
+
assignMergeValue$1(object, key, stacked);
|
|
2159
|
+
return;
|
|
2160
|
+
}
|
|
2161
|
+
var newValue = customizer
|
|
2162
|
+
? customizer(objValue, srcValue, (key + ''), object, source, stack)
|
|
2163
|
+
: undefined;
|
|
2164
|
+
|
|
2165
|
+
var isCommon = newValue === undefined;
|
|
2166
|
+
|
|
2167
|
+
if (isCommon) {
|
|
2168
|
+
var isArr = isArray(srcValue),
|
|
2169
|
+
isBuff = !isArr && isBuffer(srcValue),
|
|
2170
|
+
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2171
|
+
|
|
2172
|
+
newValue = srcValue;
|
|
2173
|
+
if (isArr || isBuff || isTyped) {
|
|
2174
|
+
if (isArray(objValue)) {
|
|
2175
|
+
newValue = objValue;
|
|
2176
|
+
}
|
|
2177
|
+
else if (isArrayLikeObject(objValue)) {
|
|
2178
|
+
newValue = copyArray(objValue);
|
|
2179
|
+
}
|
|
2180
|
+
else if (isBuff) {
|
|
2181
|
+
isCommon = false;
|
|
2182
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2183
|
+
}
|
|
2184
|
+
else if (isTyped) {
|
|
2185
|
+
isCommon = false;
|
|
2186
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2187
|
+
}
|
|
2188
|
+
else {
|
|
2189
|
+
newValue = [];
|
|
2190
|
+
}
|
|
2191
|
+
}
|
|
2192
|
+
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2193
|
+
newValue = objValue;
|
|
2194
|
+
if (isArguments(objValue)) {
|
|
2195
|
+
newValue = toPlainObject(objValue);
|
|
2196
|
+
}
|
|
2197
|
+
else if (!isObject$2(objValue) || isFunction(objValue)) {
|
|
2198
|
+
newValue = initCloneObject(srcValue);
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
else {
|
|
2202
|
+
isCommon = false;
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
if (isCommon) {
|
|
2206
|
+
// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
2207
|
+
stack.set(srcValue, newValue);
|
|
2208
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2209
|
+
stack['delete'](srcValue);
|
|
2210
|
+
}
|
|
2211
|
+
assignMergeValue$1(object, key, newValue);
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
var _baseMergeDeep = baseMergeDeep$1;
|
|
2215
|
+
|
|
2216
|
+
var Stack = _Stack,
|
|
2217
|
+
assignMergeValue = _assignMergeValue,
|
|
2218
|
+
baseFor = _baseFor,
|
|
2219
|
+
baseMergeDeep = _baseMergeDeep,
|
|
2220
|
+
isObject$1 = isObject_1,
|
|
2221
|
+
keysIn = keysIn_1,
|
|
2222
|
+
safeGet = _safeGet;
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* The base implementation of `_.merge` without support for multiple sources.
|
|
2226
|
+
*
|
|
2227
|
+
* @private
|
|
2228
|
+
* @param {Object} object The destination object.
|
|
2229
|
+
* @param {Object} source The source object.
|
|
2230
|
+
* @param {number} srcIndex The index of `source`.
|
|
2231
|
+
* @param {Function} [customizer] The function to customize merged values.
|
|
2232
|
+
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2233
|
+
* counterparts.
|
|
2234
|
+
*/
|
|
2235
|
+
function baseMerge$1(object, source, srcIndex, customizer, stack) {
|
|
2236
|
+
if (object === source) {
|
|
2237
|
+
return;
|
|
2238
|
+
}
|
|
2239
|
+
baseFor(source, function(srcValue, key) {
|
|
2240
|
+
stack || (stack = new Stack);
|
|
2241
|
+
if (isObject$1(srcValue)) {
|
|
2242
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
|
|
2243
|
+
}
|
|
2244
|
+
else {
|
|
2245
|
+
var newValue = customizer
|
|
2246
|
+
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
|
2247
|
+
: undefined;
|
|
2248
|
+
|
|
2249
|
+
if (newValue === undefined) {
|
|
2250
|
+
newValue = srcValue;
|
|
2251
|
+
}
|
|
2252
|
+
assignMergeValue(object, key, newValue);
|
|
2253
|
+
}
|
|
2254
|
+
}, keysIn);
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
var _baseMerge = baseMerge$1;
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* This method returns the first argument it receives.
|
|
2261
|
+
*
|
|
2262
|
+
* @static
|
|
2263
|
+
* @since 0.1.0
|
|
2264
|
+
* @memberOf _
|
|
2265
|
+
* @category Util
|
|
2266
|
+
* @param {*} value Any value.
|
|
2267
|
+
* @returns {*} Returns `value`.
|
|
2268
|
+
* @example
|
|
2269
|
+
*
|
|
2270
|
+
* var object = { 'a': 1 };
|
|
2271
|
+
*
|
|
2272
|
+
* console.log(_.identity(object) === object);
|
|
2273
|
+
* // => true
|
|
2274
|
+
*/
|
|
2275
|
+
|
|
2276
|
+
function identity$2(value) {
|
|
2277
|
+
return value;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
var identity_1 = identity$2;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
2284
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
2285
|
+
*
|
|
2286
|
+
* @private
|
|
2287
|
+
* @param {Function} func The function to invoke.
|
|
2288
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
2289
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
2290
|
+
* @returns {*} Returns the result of `func`.
|
|
2291
|
+
*/
|
|
2292
|
+
|
|
2293
|
+
function apply$1(func, thisArg, args) {
|
|
2294
|
+
switch (args.length) {
|
|
2295
|
+
case 0: return func.call(thisArg);
|
|
2296
|
+
case 1: return func.call(thisArg, args[0]);
|
|
2297
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
|
2298
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
2299
|
+
}
|
|
2300
|
+
return func.apply(thisArg, args);
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
var _apply = apply$1;
|
|
2304
|
+
|
|
2305
|
+
var apply = _apply;
|
|
2306
|
+
|
|
2307
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2308
|
+
var nativeMax = Math.max;
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* A specialized version of `baseRest` which transforms the rest array.
|
|
2312
|
+
*
|
|
2313
|
+
* @private
|
|
2314
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
2315
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2316
|
+
* @param {Function} transform The rest array transform.
|
|
2317
|
+
* @returns {Function} Returns the new function.
|
|
2318
|
+
*/
|
|
2319
|
+
function overRest$1(func, start, transform) {
|
|
2320
|
+
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
2321
|
+
return function() {
|
|
2322
|
+
var args = arguments,
|
|
2323
|
+
index = -1,
|
|
2324
|
+
length = nativeMax(args.length - start, 0),
|
|
2325
|
+
array = Array(length);
|
|
2326
|
+
|
|
2327
|
+
while (++index < length) {
|
|
2328
|
+
array[index] = args[start + index];
|
|
2329
|
+
}
|
|
2330
|
+
index = -1;
|
|
2331
|
+
var otherArgs = Array(start + 1);
|
|
2332
|
+
while (++index < start) {
|
|
2333
|
+
otherArgs[index] = args[index];
|
|
2334
|
+
}
|
|
2335
|
+
otherArgs[start] = transform(array);
|
|
2336
|
+
return apply(func, this, otherArgs);
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
var _overRest = overRest$1;
|
|
2341
|
+
|
|
2342
|
+
/**
|
|
2343
|
+
* Creates a function that returns `value`.
|
|
2344
|
+
*
|
|
2345
|
+
* @static
|
|
2346
|
+
* @memberOf _
|
|
2347
|
+
* @since 2.4.0
|
|
2348
|
+
* @category Util
|
|
2349
|
+
* @param {*} value The value to return from the new function.
|
|
2350
|
+
* @returns {Function} Returns the new constant function.
|
|
2351
|
+
* @example
|
|
2352
|
+
*
|
|
2353
|
+
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
2354
|
+
*
|
|
2355
|
+
* console.log(objects);
|
|
2356
|
+
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
2357
|
+
*
|
|
2358
|
+
* console.log(objects[0] === objects[1]);
|
|
2359
|
+
* // => true
|
|
2360
|
+
*/
|
|
2361
|
+
|
|
2362
|
+
function constant$1(value) {
|
|
2363
|
+
return function() {
|
|
2364
|
+
return value;
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
var constant_1 = constant$1;
|
|
2369
|
+
|
|
2370
|
+
var constant = constant_1,
|
|
2371
|
+
defineProperty = _defineProperty,
|
|
2372
|
+
identity$1 = identity_1;
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* The base implementation of `setToString` without support for hot loop shorting.
|
|
2376
|
+
*
|
|
2377
|
+
* @private
|
|
2378
|
+
* @param {Function} func The function to modify.
|
|
2379
|
+
* @param {Function} string The `toString` result.
|
|
2380
|
+
* @returns {Function} Returns `func`.
|
|
2381
|
+
*/
|
|
2382
|
+
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
2383
|
+
return defineProperty(func, 'toString', {
|
|
2384
|
+
'configurable': true,
|
|
2385
|
+
'enumerable': false,
|
|
2386
|
+
'value': constant(string),
|
|
2387
|
+
'writable': true
|
|
2388
|
+
});
|
|
2389
|
+
};
|
|
2390
|
+
|
|
2391
|
+
var _baseSetToString = baseSetToString$1;
|
|
2392
|
+
|
|
2393
|
+
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
2394
|
+
|
|
2395
|
+
var HOT_COUNT = 800,
|
|
2396
|
+
HOT_SPAN = 16;
|
|
2397
|
+
|
|
2398
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2399
|
+
var nativeNow = Date.now;
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Creates a function that'll short out and invoke `identity` instead
|
|
2403
|
+
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
2404
|
+
* milliseconds.
|
|
2405
|
+
*
|
|
2406
|
+
* @private
|
|
2407
|
+
* @param {Function} func The function to restrict.
|
|
2408
|
+
* @returns {Function} Returns the new shortable function.
|
|
2409
|
+
*/
|
|
2410
|
+
function shortOut$1(func) {
|
|
2411
|
+
var count = 0,
|
|
2412
|
+
lastCalled = 0;
|
|
2413
|
+
|
|
2414
|
+
return function() {
|
|
2415
|
+
var stamp = nativeNow(),
|
|
2416
|
+
remaining = HOT_SPAN - (stamp - lastCalled);
|
|
2417
|
+
|
|
2418
|
+
lastCalled = stamp;
|
|
2419
|
+
if (remaining > 0) {
|
|
2420
|
+
if (++count >= HOT_COUNT) {
|
|
2421
|
+
return arguments[0];
|
|
2422
|
+
}
|
|
2423
|
+
} else {
|
|
2424
|
+
count = 0;
|
|
2425
|
+
}
|
|
2426
|
+
return func.apply(undefined, arguments);
|
|
2427
|
+
};
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
var _shortOut = shortOut$1;
|
|
2431
|
+
|
|
2432
|
+
var baseSetToString = _baseSetToString,
|
|
2433
|
+
shortOut = _shortOut;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Sets the `toString` method of `func` to return `string`.
|
|
2437
|
+
*
|
|
2438
|
+
* @private
|
|
2439
|
+
* @param {Function} func The function to modify.
|
|
2440
|
+
* @param {Function} string The `toString` result.
|
|
2441
|
+
* @returns {Function} Returns `func`.
|
|
2442
|
+
*/
|
|
2443
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
2444
|
+
|
|
2445
|
+
var _setToString = setToString$1;
|
|
2446
|
+
|
|
2447
|
+
var identity = identity_1,
|
|
2448
|
+
overRest = _overRest,
|
|
2449
|
+
setToString = _setToString;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
2453
|
+
*
|
|
2454
|
+
* @private
|
|
2455
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
2456
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2457
|
+
* @returns {Function} Returns the new function.
|
|
2458
|
+
*/
|
|
2459
|
+
function baseRest$1(func, start) {
|
|
2460
|
+
return setToString(overRest(func, start, identity), func + '');
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
var _baseRest = baseRest$1;
|
|
2464
|
+
|
|
2465
|
+
var eq = eq_1,
|
|
2466
|
+
isArrayLike = isArrayLike_1,
|
|
2467
|
+
isIndex = _isIndex,
|
|
2468
|
+
isObject = isObject_1;
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Checks if the given arguments are from an iteratee call.
|
|
2472
|
+
*
|
|
2473
|
+
* @private
|
|
2474
|
+
* @param {*} value The potential iteratee value argument.
|
|
2475
|
+
* @param {*} index The potential iteratee index or key argument.
|
|
2476
|
+
* @param {*} object The potential iteratee object argument.
|
|
2477
|
+
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
2478
|
+
* else `false`.
|
|
2479
|
+
*/
|
|
2480
|
+
function isIterateeCall$1(value, index, object) {
|
|
2481
|
+
if (!isObject(object)) {
|
|
2482
|
+
return false;
|
|
2483
|
+
}
|
|
2484
|
+
var type = typeof index;
|
|
2485
|
+
if (type == 'number'
|
|
2486
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
2487
|
+
: (type == 'string' && index in object)
|
|
2488
|
+
) {
|
|
2489
|
+
return eq(object[index], value);
|
|
2490
|
+
}
|
|
2491
|
+
return false;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
2495
|
+
|
|
2496
|
+
var baseRest = _baseRest,
|
|
2497
|
+
isIterateeCall = _isIterateeCall;
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* Creates a function like `_.assign`.
|
|
2501
|
+
*
|
|
2502
|
+
* @private
|
|
2503
|
+
* @param {Function} assigner The function to assign values.
|
|
2504
|
+
* @returns {Function} Returns the new assigner function.
|
|
2505
|
+
*/
|
|
2506
|
+
function createAssigner$1(assigner) {
|
|
2507
|
+
return baseRest(function(object, sources) {
|
|
2508
|
+
var index = -1,
|
|
2509
|
+
length = sources.length,
|
|
2510
|
+
customizer = length > 1 ? sources[length - 1] : undefined,
|
|
2511
|
+
guard = length > 2 ? sources[2] : undefined;
|
|
2512
|
+
|
|
2513
|
+
customizer = (assigner.length > 3 && typeof customizer == 'function')
|
|
2514
|
+
? (length--, customizer)
|
|
2515
|
+
: undefined;
|
|
2516
|
+
|
|
2517
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2518
|
+
customizer = length < 3 ? undefined : customizer;
|
|
2519
|
+
length = 1;
|
|
2520
|
+
}
|
|
2521
|
+
object = Object(object);
|
|
2522
|
+
while (++index < length) {
|
|
2523
|
+
var source = sources[index];
|
|
2524
|
+
if (source) {
|
|
2525
|
+
assigner(object, source, index, customizer);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
return object;
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
var _createAssigner = createAssigner$1;
|
|
2533
|
+
|
|
2534
|
+
var baseMerge = _baseMerge,
|
|
2535
|
+
createAssigner = _createAssigner;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* This method is like `_.assign` except that it recursively merges own and
|
|
2539
|
+
* inherited enumerable string keyed properties of source objects into the
|
|
2540
|
+
* destination object. Source properties that resolve to `undefined` are
|
|
2541
|
+
* skipped if a destination value exists. Array and plain object properties
|
|
2542
|
+
* are merged recursively. Other objects and value types are overridden by
|
|
2543
|
+
* assignment. Source objects are applied from left to right. Subsequent
|
|
2544
|
+
* sources overwrite property assignments of previous sources.
|
|
2545
|
+
*
|
|
2546
|
+
* **Note:** This method mutates `object`.
|
|
2547
|
+
*
|
|
2548
|
+
* @static
|
|
2549
|
+
* @memberOf _
|
|
2550
|
+
* @since 0.5.0
|
|
2551
|
+
* @category Object
|
|
2552
|
+
* @param {Object} object The destination object.
|
|
2553
|
+
* @param {...Object} [sources] The source objects.
|
|
2554
|
+
* @returns {Object} Returns `object`.
|
|
2555
|
+
* @example
|
|
2556
|
+
*
|
|
2557
|
+
* var object = {
|
|
2558
|
+
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
2559
|
+
* };
|
|
2560
|
+
*
|
|
2561
|
+
* var other = {
|
|
2562
|
+
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
2563
|
+
* };
|
|
2564
|
+
*
|
|
2565
|
+
* _.merge(object, other);
|
|
2566
|
+
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
2567
|
+
*/
|
|
2568
|
+
var merge = createAssigner(function(object, source, srcIndex) {
|
|
2569
|
+
baseMerge(object, source, srcIndex);
|
|
2570
|
+
});
|
|
2571
|
+
|
|
2572
|
+
var merge_1 = merge;
|
|
2573
|
+
|
|
2574
|
+
var merge$1 = /*@__PURE__*/getDefaultExportFromCjs(merge_1);
|
|
3
2575
|
|
|
4
2576
|
/**
|
|
5
2577
|
* 缓存管理类
|
|
@@ -130,7 +2702,7 @@ class CacheManager {
|
|
|
130
2702
|
...other,
|
|
131
2703
|
};
|
|
132
2704
|
// 合并基础语言包和缓存的语言包
|
|
133
|
-
const mergedMessages = merge({}, this.baseMessages, correctDictionaryData);
|
|
2705
|
+
const mergedMessages = merge$1({}, this.baseMessages, correctDictionaryData);
|
|
134
2706
|
console.log("国际化 初始化合并完成,最终语言包:", Object.keys(mergedMessages));
|
|
135
2707
|
return mergedMessages;
|
|
136
2708
|
}
|
|
@@ -665,7 +3237,7 @@ class TranslateManager {
|
|
|
665
3237
|
// 获取 i18n.global 中现有的语言包
|
|
666
3238
|
const currentMessages = this.getI18nMessages();
|
|
667
3239
|
// 使用 Lodash merge 深度合并
|
|
668
|
-
const allMessage = merge({}, currentMessages, correctDictionaryData);
|
|
3240
|
+
const allMessage = merge$1({}, currentMessages, correctDictionaryData);
|
|
669
3241
|
this.log('合并后的语言包:', allMessage);
|
|
670
3242
|
// 更新 i18n 实例的语言包
|
|
671
3243
|
Object.keys(allMessage).forEach((langCode) => {
|