@mjhls/mjh-framework 1.0.54 → 1.0.56
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/README.md +1 -1
- package/dist/index.es.js +1020 -17
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1020 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4083,6 +4083,993 @@ var DeckContent = function (_React$Component) {
|
|
|
4083
4083
|
|
|
4084
4084
|
var ContentCard = router.withRouter(DeckContent);
|
|
4085
4085
|
|
|
4086
|
+
/**
|
|
4087
|
+
* Checks if `value` is classified as an `Array` object.
|
|
4088
|
+
*
|
|
4089
|
+
* @static
|
|
4090
|
+
* @memberOf _
|
|
4091
|
+
* @since 0.1.0
|
|
4092
|
+
* @category Lang
|
|
4093
|
+
* @param {*} value The value to check.
|
|
4094
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
4095
|
+
* @example
|
|
4096
|
+
*
|
|
4097
|
+
* _.isArray([1, 2, 3]);
|
|
4098
|
+
* // => true
|
|
4099
|
+
*
|
|
4100
|
+
* _.isArray(document.body.children);
|
|
4101
|
+
* // => false
|
|
4102
|
+
*
|
|
4103
|
+
* _.isArray('abc');
|
|
4104
|
+
* // => false
|
|
4105
|
+
*
|
|
4106
|
+
* _.isArray(_.noop);
|
|
4107
|
+
* // => false
|
|
4108
|
+
*/
|
|
4109
|
+
var isArray = Array.isArray;
|
|
4110
|
+
|
|
4111
|
+
var isArray_1 = isArray;
|
|
4112
|
+
|
|
4113
|
+
/** Used to match property names within property paths. */
|
|
4114
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
4115
|
+
reIsPlainProp = /^\w*$/;
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* Checks if `value` is a property name and not a property path.
|
|
4119
|
+
*
|
|
4120
|
+
* @private
|
|
4121
|
+
* @param {*} value The value to check.
|
|
4122
|
+
* @param {Object} [object] The object to query keys on.
|
|
4123
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
4124
|
+
*/
|
|
4125
|
+
function isKey(value, object) {
|
|
4126
|
+
if (isArray_1(value)) {
|
|
4127
|
+
return false;
|
|
4128
|
+
}
|
|
4129
|
+
var type = typeof value;
|
|
4130
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
4131
|
+
value == null || isSymbol_1(value)) {
|
|
4132
|
+
return true;
|
|
4133
|
+
}
|
|
4134
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
4135
|
+
(object != null && value in Object(object));
|
|
4136
|
+
}
|
|
4137
|
+
|
|
4138
|
+
var _isKey = isKey;
|
|
4139
|
+
|
|
4140
|
+
/** `Object#toString` result references. */
|
|
4141
|
+
var asyncTag = '[object AsyncFunction]',
|
|
4142
|
+
funcTag = '[object Function]',
|
|
4143
|
+
genTag = '[object GeneratorFunction]',
|
|
4144
|
+
proxyTag = '[object Proxy]';
|
|
4145
|
+
|
|
4146
|
+
/**
|
|
4147
|
+
* Checks if `value` is classified as a `Function` object.
|
|
4148
|
+
*
|
|
4149
|
+
* @static
|
|
4150
|
+
* @memberOf _
|
|
4151
|
+
* @since 0.1.0
|
|
4152
|
+
* @category Lang
|
|
4153
|
+
* @param {*} value The value to check.
|
|
4154
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
4155
|
+
* @example
|
|
4156
|
+
*
|
|
4157
|
+
* _.isFunction(_);
|
|
4158
|
+
* // => true
|
|
4159
|
+
*
|
|
4160
|
+
* _.isFunction(/abc/);
|
|
4161
|
+
* // => false
|
|
4162
|
+
*/
|
|
4163
|
+
function isFunction(value) {
|
|
4164
|
+
if (!isObject_1(value)) {
|
|
4165
|
+
return false;
|
|
4166
|
+
}
|
|
4167
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
4168
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
4169
|
+
var tag = _baseGetTag(value);
|
|
4170
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
4171
|
+
}
|
|
4172
|
+
|
|
4173
|
+
var isFunction_1 = isFunction;
|
|
4174
|
+
|
|
4175
|
+
/** Used to detect overreaching core-js shims. */
|
|
4176
|
+
var coreJsData = _root['__core-js_shared__'];
|
|
4177
|
+
|
|
4178
|
+
var _coreJsData = coreJsData;
|
|
4179
|
+
|
|
4180
|
+
/** Used to detect methods masquerading as native. */
|
|
4181
|
+
var maskSrcKey = (function() {
|
|
4182
|
+
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
|
|
4183
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
4184
|
+
}());
|
|
4185
|
+
|
|
4186
|
+
/**
|
|
4187
|
+
* Checks if `func` has its source masked.
|
|
4188
|
+
*
|
|
4189
|
+
* @private
|
|
4190
|
+
* @param {Function} func The function to check.
|
|
4191
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
4192
|
+
*/
|
|
4193
|
+
function isMasked(func) {
|
|
4194
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
4195
|
+
}
|
|
4196
|
+
|
|
4197
|
+
var _isMasked = isMasked;
|
|
4198
|
+
|
|
4199
|
+
/** Used for built-in method references. */
|
|
4200
|
+
var funcProto = Function.prototype;
|
|
4201
|
+
|
|
4202
|
+
/** Used to resolve the decompiled source of functions. */
|
|
4203
|
+
var funcToString = funcProto.toString;
|
|
4204
|
+
|
|
4205
|
+
/**
|
|
4206
|
+
* Converts `func` to its source code.
|
|
4207
|
+
*
|
|
4208
|
+
* @private
|
|
4209
|
+
* @param {Function} func The function to convert.
|
|
4210
|
+
* @returns {string} Returns the source code.
|
|
4211
|
+
*/
|
|
4212
|
+
function toSource(func) {
|
|
4213
|
+
if (func != null) {
|
|
4214
|
+
try {
|
|
4215
|
+
return funcToString.call(func);
|
|
4216
|
+
} catch (e) {}
|
|
4217
|
+
try {
|
|
4218
|
+
return (func + '');
|
|
4219
|
+
} catch (e) {}
|
|
4220
|
+
}
|
|
4221
|
+
return '';
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
var _toSource = toSource;
|
|
4225
|
+
|
|
4226
|
+
/**
|
|
4227
|
+
* Used to match `RegExp`
|
|
4228
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
4229
|
+
*/
|
|
4230
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
4231
|
+
|
|
4232
|
+
/** Used to detect host constructors (Safari). */
|
|
4233
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
4234
|
+
|
|
4235
|
+
/** Used for built-in method references. */
|
|
4236
|
+
var funcProto$1 = Function.prototype,
|
|
4237
|
+
objectProto$2 = Object.prototype;
|
|
4238
|
+
|
|
4239
|
+
/** Used to resolve the decompiled source of functions. */
|
|
4240
|
+
var funcToString$1 = funcProto$1.toString;
|
|
4241
|
+
|
|
4242
|
+
/** Used to check objects for own properties. */
|
|
4243
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
4244
|
+
|
|
4245
|
+
/** Used to detect if a method is native. */
|
|
4246
|
+
var reIsNative = RegExp('^' +
|
|
4247
|
+
funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
|
|
4248
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
4249
|
+
);
|
|
4250
|
+
|
|
4251
|
+
/**
|
|
4252
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
4253
|
+
*
|
|
4254
|
+
* @private
|
|
4255
|
+
* @param {*} value The value to check.
|
|
4256
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
4257
|
+
* else `false`.
|
|
4258
|
+
*/
|
|
4259
|
+
function baseIsNative(value) {
|
|
4260
|
+
if (!isObject_1(value) || _isMasked(value)) {
|
|
4261
|
+
return false;
|
|
4262
|
+
}
|
|
4263
|
+
var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
|
|
4264
|
+
return pattern.test(_toSource(value));
|
|
4265
|
+
}
|
|
4266
|
+
|
|
4267
|
+
var _baseIsNative = baseIsNative;
|
|
4268
|
+
|
|
4269
|
+
/**
|
|
4270
|
+
* Gets the value at `key` of `object`.
|
|
4271
|
+
*
|
|
4272
|
+
* @private
|
|
4273
|
+
* @param {Object} [object] The object to query.
|
|
4274
|
+
* @param {string} key The key of the property to get.
|
|
4275
|
+
* @returns {*} Returns the property value.
|
|
4276
|
+
*/
|
|
4277
|
+
function getValue(object, key) {
|
|
4278
|
+
return object == null ? undefined : object[key];
|
|
4279
|
+
}
|
|
4280
|
+
|
|
4281
|
+
var _getValue = getValue;
|
|
4282
|
+
|
|
4283
|
+
/**
|
|
4284
|
+
* Gets the native function at `key` of `object`.
|
|
4285
|
+
*
|
|
4286
|
+
* @private
|
|
4287
|
+
* @param {Object} object The object to query.
|
|
4288
|
+
* @param {string} key The key of the method to get.
|
|
4289
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
4290
|
+
*/
|
|
4291
|
+
function getNative(object, key) {
|
|
4292
|
+
var value = _getValue(object, key);
|
|
4293
|
+
return _baseIsNative(value) ? value : undefined;
|
|
4294
|
+
}
|
|
4295
|
+
|
|
4296
|
+
var _getNative = getNative;
|
|
4297
|
+
|
|
4298
|
+
/* Built-in method references that are verified to be native. */
|
|
4299
|
+
var nativeCreate = _getNative(Object, 'create');
|
|
4300
|
+
|
|
4301
|
+
var _nativeCreate = nativeCreate;
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Removes all key-value entries from the hash.
|
|
4305
|
+
*
|
|
4306
|
+
* @private
|
|
4307
|
+
* @name clear
|
|
4308
|
+
* @memberOf Hash
|
|
4309
|
+
*/
|
|
4310
|
+
function hashClear() {
|
|
4311
|
+
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
|
|
4312
|
+
this.size = 0;
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
var _hashClear = hashClear;
|
|
4316
|
+
|
|
4317
|
+
/**
|
|
4318
|
+
* Removes `key` and its value from the hash.
|
|
4319
|
+
*
|
|
4320
|
+
* @private
|
|
4321
|
+
* @name delete
|
|
4322
|
+
* @memberOf Hash
|
|
4323
|
+
* @param {Object} hash The hash to modify.
|
|
4324
|
+
* @param {string} key The key of the value to remove.
|
|
4325
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4326
|
+
*/
|
|
4327
|
+
function hashDelete(key) {
|
|
4328
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
4329
|
+
this.size -= result ? 1 : 0;
|
|
4330
|
+
return result;
|
|
4331
|
+
}
|
|
4332
|
+
|
|
4333
|
+
var _hashDelete = hashDelete;
|
|
4334
|
+
|
|
4335
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
4336
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4337
|
+
|
|
4338
|
+
/** Used for built-in method references. */
|
|
4339
|
+
var objectProto$3 = Object.prototype;
|
|
4340
|
+
|
|
4341
|
+
/** Used to check objects for own properties. */
|
|
4342
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
4343
|
+
|
|
4344
|
+
/**
|
|
4345
|
+
* Gets the hash value for `key`.
|
|
4346
|
+
*
|
|
4347
|
+
* @private
|
|
4348
|
+
* @name get
|
|
4349
|
+
* @memberOf Hash
|
|
4350
|
+
* @param {string} key The key of the value to get.
|
|
4351
|
+
* @returns {*} Returns the entry value.
|
|
4352
|
+
*/
|
|
4353
|
+
function hashGet(key) {
|
|
4354
|
+
var data = this.__data__;
|
|
4355
|
+
if (_nativeCreate) {
|
|
4356
|
+
var result = data[key];
|
|
4357
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
4358
|
+
}
|
|
4359
|
+
return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
var _hashGet = hashGet;
|
|
4363
|
+
|
|
4364
|
+
/** Used for built-in method references. */
|
|
4365
|
+
var objectProto$4 = Object.prototype;
|
|
4366
|
+
|
|
4367
|
+
/** Used to check objects for own properties. */
|
|
4368
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
4369
|
+
|
|
4370
|
+
/**
|
|
4371
|
+
* Checks if a hash value for `key` exists.
|
|
4372
|
+
*
|
|
4373
|
+
* @private
|
|
4374
|
+
* @name has
|
|
4375
|
+
* @memberOf Hash
|
|
4376
|
+
* @param {string} key The key of the entry to check.
|
|
4377
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4378
|
+
*/
|
|
4379
|
+
function hashHas(key) {
|
|
4380
|
+
var data = this.__data__;
|
|
4381
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4384
|
+
var _hashHas = hashHas;
|
|
4385
|
+
|
|
4386
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
4387
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
4388
|
+
|
|
4389
|
+
/**
|
|
4390
|
+
* Sets the hash `key` to `value`.
|
|
4391
|
+
*
|
|
4392
|
+
* @private
|
|
4393
|
+
* @name set
|
|
4394
|
+
* @memberOf Hash
|
|
4395
|
+
* @param {string} key The key of the value to set.
|
|
4396
|
+
* @param {*} value The value to set.
|
|
4397
|
+
* @returns {Object} Returns the hash instance.
|
|
4398
|
+
*/
|
|
4399
|
+
function hashSet(key, value) {
|
|
4400
|
+
var data = this.__data__;
|
|
4401
|
+
this.size += this.has(key) ? 0 : 1;
|
|
4402
|
+
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
4403
|
+
return this;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
var _hashSet = hashSet;
|
|
4407
|
+
|
|
4408
|
+
/**
|
|
4409
|
+
* Creates a hash object.
|
|
4410
|
+
*
|
|
4411
|
+
* @private
|
|
4412
|
+
* @constructor
|
|
4413
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
4414
|
+
*/
|
|
4415
|
+
function Hash(entries) {
|
|
4416
|
+
var index = -1,
|
|
4417
|
+
length = entries == null ? 0 : entries.length;
|
|
4418
|
+
|
|
4419
|
+
this.clear();
|
|
4420
|
+
while (++index < length) {
|
|
4421
|
+
var entry = entries[index];
|
|
4422
|
+
this.set(entry[0], entry[1]);
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
// Add methods to `Hash`.
|
|
4427
|
+
Hash.prototype.clear = _hashClear;
|
|
4428
|
+
Hash.prototype['delete'] = _hashDelete;
|
|
4429
|
+
Hash.prototype.get = _hashGet;
|
|
4430
|
+
Hash.prototype.has = _hashHas;
|
|
4431
|
+
Hash.prototype.set = _hashSet;
|
|
4432
|
+
|
|
4433
|
+
var _Hash = Hash;
|
|
4434
|
+
|
|
4435
|
+
/**
|
|
4436
|
+
* Removes all key-value entries from the list cache.
|
|
4437
|
+
*
|
|
4438
|
+
* @private
|
|
4439
|
+
* @name clear
|
|
4440
|
+
* @memberOf ListCache
|
|
4441
|
+
*/
|
|
4442
|
+
function listCacheClear() {
|
|
4443
|
+
this.__data__ = [];
|
|
4444
|
+
this.size = 0;
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
var _listCacheClear = listCacheClear;
|
|
4448
|
+
|
|
4449
|
+
/**
|
|
4450
|
+
* Performs a
|
|
4451
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
4452
|
+
* comparison between two values to determine if they are equivalent.
|
|
4453
|
+
*
|
|
4454
|
+
* @static
|
|
4455
|
+
* @memberOf _
|
|
4456
|
+
* @since 4.0.0
|
|
4457
|
+
* @category Lang
|
|
4458
|
+
* @param {*} value The value to compare.
|
|
4459
|
+
* @param {*} other The other value to compare.
|
|
4460
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
4461
|
+
* @example
|
|
4462
|
+
*
|
|
4463
|
+
* var object = { 'a': 1 };
|
|
4464
|
+
* var other = { 'a': 1 };
|
|
4465
|
+
*
|
|
4466
|
+
* _.eq(object, object);
|
|
4467
|
+
* // => true
|
|
4468
|
+
*
|
|
4469
|
+
* _.eq(object, other);
|
|
4470
|
+
* // => false
|
|
4471
|
+
*
|
|
4472
|
+
* _.eq('a', 'a');
|
|
4473
|
+
* // => true
|
|
4474
|
+
*
|
|
4475
|
+
* _.eq('a', Object('a'));
|
|
4476
|
+
* // => false
|
|
4477
|
+
*
|
|
4478
|
+
* _.eq(NaN, NaN);
|
|
4479
|
+
* // => true
|
|
4480
|
+
*/
|
|
4481
|
+
function eq(value, other) {
|
|
4482
|
+
return value === other || (value !== value && other !== other);
|
|
4483
|
+
}
|
|
4484
|
+
|
|
4485
|
+
var eq_1 = eq;
|
|
4486
|
+
|
|
4487
|
+
/**
|
|
4488
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
4489
|
+
*
|
|
4490
|
+
* @private
|
|
4491
|
+
* @param {Array} array The array to inspect.
|
|
4492
|
+
* @param {*} key The key to search for.
|
|
4493
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
4494
|
+
*/
|
|
4495
|
+
function assocIndexOf(array, key) {
|
|
4496
|
+
var length = array.length;
|
|
4497
|
+
while (length--) {
|
|
4498
|
+
if (eq_1(array[length][0], key)) {
|
|
4499
|
+
return length;
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4502
|
+
return -1;
|
|
4503
|
+
}
|
|
4504
|
+
|
|
4505
|
+
var _assocIndexOf = assocIndexOf;
|
|
4506
|
+
|
|
4507
|
+
/** Used for built-in method references. */
|
|
4508
|
+
var arrayProto = Array.prototype;
|
|
4509
|
+
|
|
4510
|
+
/** Built-in value references. */
|
|
4511
|
+
var splice = arrayProto.splice;
|
|
4512
|
+
|
|
4513
|
+
/**
|
|
4514
|
+
* Removes `key` and its value from the list cache.
|
|
4515
|
+
*
|
|
4516
|
+
* @private
|
|
4517
|
+
* @name delete
|
|
4518
|
+
* @memberOf ListCache
|
|
4519
|
+
* @param {string} key The key of the value to remove.
|
|
4520
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4521
|
+
*/
|
|
4522
|
+
function listCacheDelete(key) {
|
|
4523
|
+
var data = this.__data__,
|
|
4524
|
+
index = _assocIndexOf(data, key);
|
|
4525
|
+
|
|
4526
|
+
if (index < 0) {
|
|
4527
|
+
return false;
|
|
4528
|
+
}
|
|
4529
|
+
var lastIndex = data.length - 1;
|
|
4530
|
+
if (index == lastIndex) {
|
|
4531
|
+
data.pop();
|
|
4532
|
+
} else {
|
|
4533
|
+
splice.call(data, index, 1);
|
|
4534
|
+
}
|
|
4535
|
+
--this.size;
|
|
4536
|
+
return true;
|
|
4537
|
+
}
|
|
4538
|
+
|
|
4539
|
+
var _listCacheDelete = listCacheDelete;
|
|
4540
|
+
|
|
4541
|
+
/**
|
|
4542
|
+
* Gets the list cache value for `key`.
|
|
4543
|
+
*
|
|
4544
|
+
* @private
|
|
4545
|
+
* @name get
|
|
4546
|
+
* @memberOf ListCache
|
|
4547
|
+
* @param {string} key The key of the value to get.
|
|
4548
|
+
* @returns {*} Returns the entry value.
|
|
4549
|
+
*/
|
|
4550
|
+
function listCacheGet(key) {
|
|
4551
|
+
var data = this.__data__,
|
|
4552
|
+
index = _assocIndexOf(data, key);
|
|
4553
|
+
|
|
4554
|
+
return index < 0 ? undefined : data[index][1];
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4557
|
+
var _listCacheGet = listCacheGet;
|
|
4558
|
+
|
|
4559
|
+
/**
|
|
4560
|
+
* Checks if a list cache value for `key` exists.
|
|
4561
|
+
*
|
|
4562
|
+
* @private
|
|
4563
|
+
* @name has
|
|
4564
|
+
* @memberOf ListCache
|
|
4565
|
+
* @param {string} key The key of the entry to check.
|
|
4566
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4567
|
+
*/
|
|
4568
|
+
function listCacheHas(key) {
|
|
4569
|
+
return _assocIndexOf(this.__data__, key) > -1;
|
|
4570
|
+
}
|
|
4571
|
+
|
|
4572
|
+
var _listCacheHas = listCacheHas;
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Sets the list cache `key` to `value`.
|
|
4576
|
+
*
|
|
4577
|
+
* @private
|
|
4578
|
+
* @name set
|
|
4579
|
+
* @memberOf ListCache
|
|
4580
|
+
* @param {string} key The key of the value to set.
|
|
4581
|
+
* @param {*} value The value to set.
|
|
4582
|
+
* @returns {Object} Returns the list cache instance.
|
|
4583
|
+
*/
|
|
4584
|
+
function listCacheSet(key, value) {
|
|
4585
|
+
var data = this.__data__,
|
|
4586
|
+
index = _assocIndexOf(data, key);
|
|
4587
|
+
|
|
4588
|
+
if (index < 0) {
|
|
4589
|
+
++this.size;
|
|
4590
|
+
data.push([key, value]);
|
|
4591
|
+
} else {
|
|
4592
|
+
data[index][1] = value;
|
|
4593
|
+
}
|
|
4594
|
+
return this;
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
var _listCacheSet = listCacheSet;
|
|
4598
|
+
|
|
4599
|
+
/**
|
|
4600
|
+
* Creates an list cache object.
|
|
4601
|
+
*
|
|
4602
|
+
* @private
|
|
4603
|
+
* @constructor
|
|
4604
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
4605
|
+
*/
|
|
4606
|
+
function ListCache(entries) {
|
|
4607
|
+
var index = -1,
|
|
4608
|
+
length = entries == null ? 0 : entries.length;
|
|
4609
|
+
|
|
4610
|
+
this.clear();
|
|
4611
|
+
while (++index < length) {
|
|
4612
|
+
var entry = entries[index];
|
|
4613
|
+
this.set(entry[0], entry[1]);
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
// Add methods to `ListCache`.
|
|
4618
|
+
ListCache.prototype.clear = _listCacheClear;
|
|
4619
|
+
ListCache.prototype['delete'] = _listCacheDelete;
|
|
4620
|
+
ListCache.prototype.get = _listCacheGet;
|
|
4621
|
+
ListCache.prototype.has = _listCacheHas;
|
|
4622
|
+
ListCache.prototype.set = _listCacheSet;
|
|
4623
|
+
|
|
4624
|
+
var _ListCache = ListCache;
|
|
4625
|
+
|
|
4626
|
+
/* Built-in method references that are verified to be native. */
|
|
4627
|
+
var Map = _getNative(_root, 'Map');
|
|
4628
|
+
|
|
4629
|
+
var _Map = Map;
|
|
4630
|
+
|
|
4631
|
+
/**
|
|
4632
|
+
* Removes all key-value entries from the map.
|
|
4633
|
+
*
|
|
4634
|
+
* @private
|
|
4635
|
+
* @name clear
|
|
4636
|
+
* @memberOf MapCache
|
|
4637
|
+
*/
|
|
4638
|
+
function mapCacheClear() {
|
|
4639
|
+
this.size = 0;
|
|
4640
|
+
this.__data__ = {
|
|
4641
|
+
'hash': new _Hash,
|
|
4642
|
+
'map': new (_Map || _ListCache),
|
|
4643
|
+
'string': new _Hash
|
|
4644
|
+
};
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
var _mapCacheClear = mapCacheClear;
|
|
4648
|
+
|
|
4649
|
+
/**
|
|
4650
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
4651
|
+
*
|
|
4652
|
+
* @private
|
|
4653
|
+
* @param {*} value The value to check.
|
|
4654
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
4655
|
+
*/
|
|
4656
|
+
function isKeyable(value) {
|
|
4657
|
+
var type = typeof value;
|
|
4658
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
4659
|
+
? (value !== '__proto__')
|
|
4660
|
+
: (value === null);
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4663
|
+
var _isKeyable = isKeyable;
|
|
4664
|
+
|
|
4665
|
+
/**
|
|
4666
|
+
* Gets the data for `map`.
|
|
4667
|
+
*
|
|
4668
|
+
* @private
|
|
4669
|
+
* @param {Object} map The map to query.
|
|
4670
|
+
* @param {string} key The reference key.
|
|
4671
|
+
* @returns {*} Returns the map data.
|
|
4672
|
+
*/
|
|
4673
|
+
function getMapData(map, key) {
|
|
4674
|
+
var data = map.__data__;
|
|
4675
|
+
return _isKeyable(key)
|
|
4676
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
4677
|
+
: data.map;
|
|
4678
|
+
}
|
|
4679
|
+
|
|
4680
|
+
var _getMapData = getMapData;
|
|
4681
|
+
|
|
4682
|
+
/**
|
|
4683
|
+
* Removes `key` and its value from the map.
|
|
4684
|
+
*
|
|
4685
|
+
* @private
|
|
4686
|
+
* @name delete
|
|
4687
|
+
* @memberOf MapCache
|
|
4688
|
+
* @param {string} key The key of the value to remove.
|
|
4689
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4690
|
+
*/
|
|
4691
|
+
function mapCacheDelete(key) {
|
|
4692
|
+
var result = _getMapData(this, key)['delete'](key);
|
|
4693
|
+
this.size -= result ? 1 : 0;
|
|
4694
|
+
return result;
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4697
|
+
var _mapCacheDelete = mapCacheDelete;
|
|
4698
|
+
|
|
4699
|
+
/**
|
|
4700
|
+
* Gets the map value for `key`.
|
|
4701
|
+
*
|
|
4702
|
+
* @private
|
|
4703
|
+
* @name get
|
|
4704
|
+
* @memberOf MapCache
|
|
4705
|
+
* @param {string} key The key of the value to get.
|
|
4706
|
+
* @returns {*} Returns the entry value.
|
|
4707
|
+
*/
|
|
4708
|
+
function mapCacheGet(key) {
|
|
4709
|
+
return _getMapData(this, key).get(key);
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4712
|
+
var _mapCacheGet = mapCacheGet;
|
|
4713
|
+
|
|
4714
|
+
/**
|
|
4715
|
+
* Checks if a map value for `key` exists.
|
|
4716
|
+
*
|
|
4717
|
+
* @private
|
|
4718
|
+
* @name has
|
|
4719
|
+
* @memberOf MapCache
|
|
4720
|
+
* @param {string} key The key of the entry to check.
|
|
4721
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4722
|
+
*/
|
|
4723
|
+
function mapCacheHas(key) {
|
|
4724
|
+
return _getMapData(this, key).has(key);
|
|
4725
|
+
}
|
|
4726
|
+
|
|
4727
|
+
var _mapCacheHas = mapCacheHas;
|
|
4728
|
+
|
|
4729
|
+
/**
|
|
4730
|
+
* Sets the map `key` to `value`.
|
|
4731
|
+
*
|
|
4732
|
+
* @private
|
|
4733
|
+
* @name set
|
|
4734
|
+
* @memberOf MapCache
|
|
4735
|
+
* @param {string} key The key of the value to set.
|
|
4736
|
+
* @param {*} value The value to set.
|
|
4737
|
+
* @returns {Object} Returns the map cache instance.
|
|
4738
|
+
*/
|
|
4739
|
+
function mapCacheSet(key, value) {
|
|
4740
|
+
var data = _getMapData(this, key),
|
|
4741
|
+
size = data.size;
|
|
4742
|
+
|
|
4743
|
+
data.set(key, value);
|
|
4744
|
+
this.size += data.size == size ? 0 : 1;
|
|
4745
|
+
return this;
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
var _mapCacheSet = mapCacheSet;
|
|
4749
|
+
|
|
4750
|
+
/**
|
|
4751
|
+
* Creates a map cache object to store key-value pairs.
|
|
4752
|
+
*
|
|
4753
|
+
* @private
|
|
4754
|
+
* @constructor
|
|
4755
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
4756
|
+
*/
|
|
4757
|
+
function MapCache(entries) {
|
|
4758
|
+
var index = -1,
|
|
4759
|
+
length = entries == null ? 0 : entries.length;
|
|
4760
|
+
|
|
4761
|
+
this.clear();
|
|
4762
|
+
while (++index < length) {
|
|
4763
|
+
var entry = entries[index];
|
|
4764
|
+
this.set(entry[0], entry[1]);
|
|
4765
|
+
}
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
// Add methods to `MapCache`.
|
|
4769
|
+
MapCache.prototype.clear = _mapCacheClear;
|
|
4770
|
+
MapCache.prototype['delete'] = _mapCacheDelete;
|
|
4771
|
+
MapCache.prototype.get = _mapCacheGet;
|
|
4772
|
+
MapCache.prototype.has = _mapCacheHas;
|
|
4773
|
+
MapCache.prototype.set = _mapCacheSet;
|
|
4774
|
+
|
|
4775
|
+
var _MapCache = MapCache;
|
|
4776
|
+
|
|
4777
|
+
/** Error message constants. */
|
|
4778
|
+
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
4779
|
+
|
|
4780
|
+
/**
|
|
4781
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
4782
|
+
* provided, it determines the cache key for storing the result based on the
|
|
4783
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
4784
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
4785
|
+
* is invoked with the `this` binding of the memoized function.
|
|
4786
|
+
*
|
|
4787
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
4788
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
4789
|
+
* constructor with one whose instances implement the
|
|
4790
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
4791
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
4792
|
+
*
|
|
4793
|
+
* @static
|
|
4794
|
+
* @memberOf _
|
|
4795
|
+
* @since 0.1.0
|
|
4796
|
+
* @category Function
|
|
4797
|
+
* @param {Function} func The function to have its output memoized.
|
|
4798
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
4799
|
+
* @returns {Function} Returns the new memoized function.
|
|
4800
|
+
* @example
|
|
4801
|
+
*
|
|
4802
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
4803
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
4804
|
+
*
|
|
4805
|
+
* var values = _.memoize(_.values);
|
|
4806
|
+
* values(object);
|
|
4807
|
+
* // => [1, 2]
|
|
4808
|
+
*
|
|
4809
|
+
* values(other);
|
|
4810
|
+
* // => [3, 4]
|
|
4811
|
+
*
|
|
4812
|
+
* object.a = 2;
|
|
4813
|
+
* values(object);
|
|
4814
|
+
* // => [1, 2]
|
|
4815
|
+
*
|
|
4816
|
+
* // Modify the result cache.
|
|
4817
|
+
* values.cache.set(object, ['a', 'b']);
|
|
4818
|
+
* values(object);
|
|
4819
|
+
* // => ['a', 'b']
|
|
4820
|
+
*
|
|
4821
|
+
* // Replace `_.memoize.Cache`.
|
|
4822
|
+
* _.memoize.Cache = WeakMap;
|
|
4823
|
+
*/
|
|
4824
|
+
function memoize(func, resolver) {
|
|
4825
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
4826
|
+
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
4827
|
+
}
|
|
4828
|
+
var memoized = function() {
|
|
4829
|
+
var args = arguments,
|
|
4830
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
4831
|
+
cache = memoized.cache;
|
|
4832
|
+
|
|
4833
|
+
if (cache.has(key)) {
|
|
4834
|
+
return cache.get(key);
|
|
4835
|
+
}
|
|
4836
|
+
var result = func.apply(this, args);
|
|
4837
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
4838
|
+
return result;
|
|
4839
|
+
};
|
|
4840
|
+
memoized.cache = new (memoize.Cache || _MapCache);
|
|
4841
|
+
return memoized;
|
|
4842
|
+
}
|
|
4843
|
+
|
|
4844
|
+
// Expose `MapCache`.
|
|
4845
|
+
memoize.Cache = _MapCache;
|
|
4846
|
+
|
|
4847
|
+
var memoize_1 = memoize;
|
|
4848
|
+
|
|
4849
|
+
/** Used as the maximum memoize cache size. */
|
|
4850
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
4851
|
+
|
|
4852
|
+
/**
|
|
4853
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
4854
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
4855
|
+
*
|
|
4856
|
+
* @private
|
|
4857
|
+
* @param {Function} func The function to have its output memoized.
|
|
4858
|
+
* @returns {Function} Returns the new memoized function.
|
|
4859
|
+
*/
|
|
4860
|
+
function memoizeCapped(func) {
|
|
4861
|
+
var result = memoize_1(func, function(key) {
|
|
4862
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
4863
|
+
cache.clear();
|
|
4864
|
+
}
|
|
4865
|
+
return key;
|
|
4866
|
+
});
|
|
4867
|
+
|
|
4868
|
+
var cache = result.cache;
|
|
4869
|
+
return result;
|
|
4870
|
+
}
|
|
4871
|
+
|
|
4872
|
+
var _memoizeCapped = memoizeCapped;
|
|
4873
|
+
|
|
4874
|
+
/** Used to match property names within property paths. */
|
|
4875
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
4876
|
+
|
|
4877
|
+
/** Used to match backslashes in property paths. */
|
|
4878
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
4879
|
+
|
|
4880
|
+
/**
|
|
4881
|
+
* Converts `string` to a property path array.
|
|
4882
|
+
*
|
|
4883
|
+
* @private
|
|
4884
|
+
* @param {string} string The string to convert.
|
|
4885
|
+
* @returns {Array} Returns the property path array.
|
|
4886
|
+
*/
|
|
4887
|
+
var stringToPath = _memoizeCapped(function(string) {
|
|
4888
|
+
var result = [];
|
|
4889
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
4890
|
+
result.push('');
|
|
4891
|
+
}
|
|
4892
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
4893
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
4894
|
+
});
|
|
4895
|
+
return result;
|
|
4896
|
+
});
|
|
4897
|
+
|
|
4898
|
+
var _stringToPath = stringToPath;
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
4902
|
+
* shorthands.
|
|
4903
|
+
*
|
|
4904
|
+
* @private
|
|
4905
|
+
* @param {Array} [array] The array to iterate over.
|
|
4906
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
4907
|
+
* @returns {Array} Returns the new mapped array.
|
|
4908
|
+
*/
|
|
4909
|
+
function arrayMap(array, iteratee) {
|
|
4910
|
+
var index = -1,
|
|
4911
|
+
length = array == null ? 0 : array.length,
|
|
4912
|
+
result = Array(length);
|
|
4913
|
+
|
|
4914
|
+
while (++index < length) {
|
|
4915
|
+
result[index] = iteratee(array[index], index, array);
|
|
4916
|
+
}
|
|
4917
|
+
return result;
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4920
|
+
var _arrayMap = arrayMap;
|
|
4921
|
+
|
|
4922
|
+
/** Used as references for various `Number` constants. */
|
|
4923
|
+
var INFINITY = 1 / 0;
|
|
4924
|
+
|
|
4925
|
+
/** Used to convert symbols to primitives and strings. */
|
|
4926
|
+
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
4927
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
4931
|
+
* values to empty strings.
|
|
4932
|
+
*
|
|
4933
|
+
* @private
|
|
4934
|
+
* @param {*} value The value to process.
|
|
4935
|
+
* @returns {string} Returns the string.
|
|
4936
|
+
*/
|
|
4937
|
+
function baseToString(value) {
|
|
4938
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
4939
|
+
if (typeof value == 'string') {
|
|
4940
|
+
return value;
|
|
4941
|
+
}
|
|
4942
|
+
if (isArray_1(value)) {
|
|
4943
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
4944
|
+
return _arrayMap(value, baseToString) + '';
|
|
4945
|
+
}
|
|
4946
|
+
if (isSymbol_1(value)) {
|
|
4947
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
4948
|
+
}
|
|
4949
|
+
var result = (value + '');
|
|
4950
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
4951
|
+
}
|
|
4952
|
+
|
|
4953
|
+
var _baseToString = baseToString;
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
4957
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
4958
|
+
*
|
|
4959
|
+
* @static
|
|
4960
|
+
* @memberOf _
|
|
4961
|
+
* @since 4.0.0
|
|
4962
|
+
* @category Lang
|
|
4963
|
+
* @param {*} value The value to convert.
|
|
4964
|
+
* @returns {string} Returns the converted string.
|
|
4965
|
+
* @example
|
|
4966
|
+
*
|
|
4967
|
+
* _.toString(null);
|
|
4968
|
+
* // => ''
|
|
4969
|
+
*
|
|
4970
|
+
* _.toString(-0);
|
|
4971
|
+
* // => '-0'
|
|
4972
|
+
*
|
|
4973
|
+
* _.toString([1, 2, 3]);
|
|
4974
|
+
* // => '1,2,3'
|
|
4975
|
+
*/
|
|
4976
|
+
function toString(value) {
|
|
4977
|
+
return value == null ? '' : _baseToString(value);
|
|
4978
|
+
}
|
|
4979
|
+
|
|
4980
|
+
var toString_1 = toString;
|
|
4981
|
+
|
|
4982
|
+
/**
|
|
4983
|
+
* Casts `value` to a path array if it's not one.
|
|
4984
|
+
*
|
|
4985
|
+
* @private
|
|
4986
|
+
* @param {*} value The value to inspect.
|
|
4987
|
+
* @param {Object} [object] The object to query keys on.
|
|
4988
|
+
* @returns {Array} Returns the cast property path array.
|
|
4989
|
+
*/
|
|
4990
|
+
function castPath(value, object) {
|
|
4991
|
+
if (isArray_1(value)) {
|
|
4992
|
+
return value;
|
|
4993
|
+
}
|
|
4994
|
+
return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
|
|
4995
|
+
}
|
|
4996
|
+
|
|
4997
|
+
var _castPath = castPath;
|
|
4998
|
+
|
|
4999
|
+
/** Used as references for various `Number` constants. */
|
|
5000
|
+
var INFINITY$1 = 1 / 0;
|
|
5001
|
+
|
|
5002
|
+
/**
|
|
5003
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
5004
|
+
*
|
|
5005
|
+
* @private
|
|
5006
|
+
* @param {*} value The value to inspect.
|
|
5007
|
+
* @returns {string|symbol} Returns the key.
|
|
5008
|
+
*/
|
|
5009
|
+
function toKey(value) {
|
|
5010
|
+
if (typeof value == 'string' || isSymbol_1(value)) {
|
|
5011
|
+
return value;
|
|
5012
|
+
}
|
|
5013
|
+
var result = (value + '');
|
|
5014
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
var _toKey = toKey;
|
|
5018
|
+
|
|
5019
|
+
/**
|
|
5020
|
+
* The base implementation of `_.get` without support for default values.
|
|
5021
|
+
*
|
|
5022
|
+
* @private
|
|
5023
|
+
* @param {Object} object The object to query.
|
|
5024
|
+
* @param {Array|string} path The path of the property to get.
|
|
5025
|
+
* @returns {*} Returns the resolved value.
|
|
5026
|
+
*/
|
|
5027
|
+
function baseGet(object, path) {
|
|
5028
|
+
path = _castPath(path, object);
|
|
5029
|
+
|
|
5030
|
+
var index = 0,
|
|
5031
|
+
length = path.length;
|
|
5032
|
+
|
|
5033
|
+
while (object != null && index < length) {
|
|
5034
|
+
object = object[_toKey(path[index++])];
|
|
5035
|
+
}
|
|
5036
|
+
return (index && index == length) ? object : undefined;
|
|
5037
|
+
}
|
|
5038
|
+
|
|
5039
|
+
var _baseGet = baseGet;
|
|
5040
|
+
|
|
5041
|
+
/**
|
|
5042
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
5043
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
5044
|
+
*
|
|
5045
|
+
* @static
|
|
5046
|
+
* @memberOf _
|
|
5047
|
+
* @since 3.7.0
|
|
5048
|
+
* @category Object
|
|
5049
|
+
* @param {Object} object The object to query.
|
|
5050
|
+
* @param {Array|string} path The path of the property to get.
|
|
5051
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
5052
|
+
* @returns {*} Returns the resolved value.
|
|
5053
|
+
* @example
|
|
5054
|
+
*
|
|
5055
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
5056
|
+
*
|
|
5057
|
+
* _.get(object, 'a[0].b.c');
|
|
5058
|
+
* // => 3
|
|
5059
|
+
*
|
|
5060
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
5061
|
+
* // => 3
|
|
5062
|
+
*
|
|
5063
|
+
* _.get(object, 'a.b.c', 'default');
|
|
5064
|
+
* // => 'default'
|
|
5065
|
+
*/
|
|
5066
|
+
function get$1(object, path, defaultValue) {
|
|
5067
|
+
var result = object == null ? undefined : _baseGet(object, path);
|
|
5068
|
+
return result === undefined ? defaultValue : result;
|
|
5069
|
+
}
|
|
5070
|
+
|
|
5071
|
+
var get_1 = get$1;
|
|
5072
|
+
|
|
4086
5073
|
var DeckQueue = function (_React$Component) {
|
|
4087
5074
|
inherits(DeckQueue, _React$Component);
|
|
4088
5075
|
|
|
@@ -4187,7 +5174,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
4187
5174
|
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
4188
5175
|
React__default.createElement(
|
|
4189
5176
|
Link,
|
|
4190
|
-
{ href: _this2.page + '/[url]', as: _this2.page + '/' + row
|
|
5177
|
+
{ href: _this2.page + '/[url]', as: _this2.page + '/' + get_1(row, 'url.current') },
|
|
4191
5178
|
React__default.createElement(
|
|
4192
5179
|
'a',
|
|
4193
5180
|
null,
|
|
@@ -6451,7 +7438,7 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
|
6451
7438
|
}));
|
|
6452
7439
|
});
|
|
6453
7440
|
|
|
6454
|
-
var isArray = Array.isArray;
|
|
7441
|
+
var isArray$1 = Array.isArray;
|
|
6455
7442
|
var keyList = Object.keys;
|
|
6456
7443
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
6457
7444
|
|
|
@@ -6459,8 +7446,8 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
6459
7446
|
if (a === b) return true;
|
|
6460
7447
|
|
|
6461
7448
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6462
|
-
var arrA = isArray(a)
|
|
6463
|
-
, arrB = isArray(b)
|
|
7449
|
+
var arrA = isArray$1(a)
|
|
7450
|
+
, arrB = isArray$1(b)
|
|
6464
7451
|
, i
|
|
6465
7452
|
, length
|
|
6466
7453
|
, key;
|
|
@@ -7693,7 +8680,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
7693
8680
|
// Check that value is an object with an inspect function on it
|
|
7694
8681
|
if (ctx.customInspect &&
|
|
7695
8682
|
value &&
|
|
7696
|
-
isFunction(value.inspect) &&
|
|
8683
|
+
isFunction$1(value.inspect) &&
|
|
7697
8684
|
// Filter out the util module, it's inspect function is special
|
|
7698
8685
|
value.inspect !== inspect &&
|
|
7699
8686
|
// Also filter out any prototype objects using the circular check.
|
|
@@ -7728,7 +8715,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
7728
8715
|
|
|
7729
8716
|
// Some type of object without properties can be shortcutted.
|
|
7730
8717
|
if (keys.length === 0) {
|
|
7731
|
-
if (isFunction(value)) {
|
|
8718
|
+
if (isFunction$1(value)) {
|
|
7732
8719
|
var name = value.name ? ': ' + value.name : '';
|
|
7733
8720
|
return ctx.stylize('[Function' + name + ']', 'special');
|
|
7734
8721
|
}
|
|
@@ -7746,13 +8733,13 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
7746
8733
|
var base = '', array = false, braces = ['{', '}'];
|
|
7747
8734
|
|
|
7748
8735
|
// Make Array say that they are Array
|
|
7749
|
-
if (isArray$
|
|
8736
|
+
if (isArray$2(value)) {
|
|
7750
8737
|
array = true;
|
|
7751
8738
|
braces = ['[', ']'];
|
|
7752
8739
|
}
|
|
7753
8740
|
|
|
7754
8741
|
// Make functions say that they are functions
|
|
7755
|
-
if (isFunction(value)) {
|
|
8742
|
+
if (isFunction$1(value)) {
|
|
7756
8743
|
var n = value.name ? ': ' + value.name : '';
|
|
7757
8744
|
base = ' [Function' + n + ']';
|
|
7758
8745
|
}
|
|
@@ -7828,7 +8815,7 @@ function formatError(value) {
|
|
|
7828
8815
|
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
7829
8816
|
var output = [];
|
|
7830
8817
|
for (var i = 0, l = value.length; i < l; ++i) {
|
|
7831
|
-
if (hasOwnProperty$
|
|
8818
|
+
if (hasOwnProperty$4(value, String(i))) {
|
|
7832
8819
|
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
7833
8820
|
String(i), true));
|
|
7834
8821
|
} else {
|
|
@@ -7859,7 +8846,7 @@ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
|
7859
8846
|
str = ctx.stylize('[Setter]', 'special');
|
|
7860
8847
|
}
|
|
7861
8848
|
}
|
|
7862
|
-
if (!hasOwnProperty$
|
|
8849
|
+
if (!hasOwnProperty$4(visibleKeys, key)) {
|
|
7863
8850
|
name = '[' + key + ']';
|
|
7864
8851
|
}
|
|
7865
8852
|
if (!str) {
|
|
@@ -7925,7 +8912,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
7925
8912
|
|
|
7926
8913
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
7927
8914
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
7928
|
-
function isArray$
|
|
8915
|
+
function isArray$2(ar) {
|
|
7929
8916
|
return Array.isArray(ar);
|
|
7930
8917
|
}
|
|
7931
8918
|
|
|
@@ -7974,7 +8961,7 @@ function isError(e) {
|
|
|
7974
8961
|
(objectToString$1(e) === '[object Error]' || e instanceof Error);
|
|
7975
8962
|
}
|
|
7976
8963
|
|
|
7977
|
-
function isFunction(arg) {
|
|
8964
|
+
function isFunction$1(arg) {
|
|
7978
8965
|
return typeof arg === 'function';
|
|
7979
8966
|
}
|
|
7980
8967
|
|
|
@@ -8030,7 +9017,7 @@ function _extend(origin, add) {
|
|
|
8030
9017
|
}
|
|
8031
9018
|
return origin;
|
|
8032
9019
|
}
|
|
8033
|
-
function hasOwnProperty$
|
|
9020
|
+
function hasOwnProperty$4(obj, prop) {
|
|
8034
9021
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
8035
9022
|
}
|
|
8036
9023
|
|
|
@@ -8040,7 +9027,7 @@ var util = {
|
|
|
8040
9027
|
log: log,
|
|
8041
9028
|
isBuffer: isBuffer,
|
|
8042
9029
|
isPrimitive: isPrimitive,
|
|
8043
|
-
isFunction: isFunction,
|
|
9030
|
+
isFunction: isFunction$1,
|
|
8044
9031
|
isError: isError,
|
|
8045
9032
|
isDate: isDate,
|
|
8046
9033
|
isObject: isObject$1,
|
|
@@ -8052,7 +9039,7 @@ var util = {
|
|
|
8052
9039
|
isNullOrUndefined: isNullOrUndefined,
|
|
8053
9040
|
isNull: isNull,
|
|
8054
9041
|
isBoolean: isBoolean,
|
|
8055
|
-
isArray: isArray$
|
|
9042
|
+
isArray: isArray$2,
|
|
8056
9043
|
inspect: inspect,
|
|
8057
9044
|
deprecate: deprecate,
|
|
8058
9045
|
format: format,
|
|
@@ -9081,7 +10068,7 @@ object-assign
|
|
|
9081
10068
|
*/
|
|
9082
10069
|
/* eslint-disable no-unused-vars */
|
|
9083
10070
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
9084
|
-
var hasOwnProperty$
|
|
10071
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
9085
10072
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
9086
10073
|
|
|
9087
10074
|
function toObject(val) {
|
|
@@ -9145,7 +10132,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
9145
10132
|
from = Object(arguments[s]);
|
|
9146
10133
|
|
|
9147
10134
|
for (var key in from) {
|
|
9148
|
-
if (hasOwnProperty$
|
|
10135
|
+
if (hasOwnProperty$5.call(from, key)) {
|
|
9149
10136
|
to[key] = from[key];
|
|
9150
10137
|
}
|
|
9151
10138
|
}
|
|
@@ -10097,6 +11084,22 @@ var getSerializers$1 = function getSerializers(client) {
|
|
|
10097
11084
|
|
|
10098
11085
|
return React__default.createElement(Media$1, { uploadDoc: upload_doc, poster: poster, blank: blank, client: client, caption: caption });
|
|
10099
11086
|
}
|
|
11087
|
+
},
|
|
11088
|
+
marks: {
|
|
11089
|
+
superscript: function superscript(props) {
|
|
11090
|
+
return React__default.createElement(
|
|
11091
|
+
'sup',
|
|
11092
|
+
null,
|
|
11093
|
+
props.children
|
|
11094
|
+
);
|
|
11095
|
+
},
|
|
11096
|
+
subscript: function subscript(props) {
|
|
11097
|
+
return React__default.createElement(
|
|
11098
|
+
'sub',
|
|
11099
|
+
null,
|
|
11100
|
+
props.children
|
|
11101
|
+
);
|
|
11102
|
+
}
|
|
10100
11103
|
}
|
|
10101
11104
|
};
|
|
10102
11105
|
};
|